From f9857b17926cfa9bf8f65850e943e5320b41c74c Mon Sep 17 00:00:00 2001 From: "S. Robert" Date: Tue, 23 Mar 2021 12:24:48 +0000 Subject: [PATCH] fix firefox bug --- plugin_build/logo-maker.asset.php | 2 +- plugin_build/logo-maker.js | 2 +- src/Application.tsx | 15 ++++++++++----- src/assets/fonts/google-fonts.ts | 1 - 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/plugin_build/logo-maker.asset.php b/plugin_build/logo-maker.asset.php index 2ea4f64..920990f 100644 --- a/plugin_build/logo-maker.asset.php +++ b/plugin_build/logo-maker.asset.php @@ -1 +1 @@ - array('react', 'react-dom'), 'version' => '3e63f244d75252778e7269ca7092b12d'); \ No newline at end of file + array('react', 'react-dom'), 'version' => '42468e3f7249b847b516c0bcb82753e5'); \ No newline at end of file diff --git a/plugin_build/logo-maker.js b/plugin_build/logo-maker.js index f2da498..ea3bcdc 100644 --- a/plugin_build/logo-maker.js +++ b/plugin_build/logo-maker.js @@ -1,2 +1,2 @@ /*! For license information please see logo-maker.js.LICENSE.txt */ -(()=>{var e,t,r={5079:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:()=>n})},8342:(e,t,r)=>{"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;tn})},7045:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3144);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.Z)(e,t)}},385:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,{Z:()=>n})},3144:(e,t,r)=>{"use strict";function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}r.d(t,{Z:()=>n})},841:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(9033),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,'.logo-maker.logo-maker-container{max-width:1470px;margin:15px auto;font-family:"Noto Sans",sans-serif}@media(max-width: 1440px){.logo-maker.logo-maker-container{max-width:90%}}@media(max-width: 600px){.logo-maker.logo-maker-container{max-width:100%;margin:15px 15px}}@media(max-width: 350px){.logo-maker.logo-maker-container{max-width:100%;margin:15px 3px}}.logo-maker .top-section{position:relative;text-align:center}.logo-maker .top-section .back{display:inline-block;position:absolute;left:0;visibility:visible}.logo-maker .top-section .back a{display:inline-flex;align-items:center;text-decoration:none}.logo-maker .top-section .back a p{color:#585858;text-transform:uppercase;font-size:14px;font-weight:600;margin-left:13px;padding-bottom:0px;margin-bottom:0px;margin-top:0px}@media(max-width: 600px){.logo-maker .top-section .back{visibility:hidden}}.logo-maker .top-section .logo-holder{display:inline-flex}.logo-maker .top-section .logo-holder img{max-width:134px;max-height:44px}.logo-maker .top-section .logo-holder a{max-height:44px}.logo-maker .top-section .logo-holder .logo-maker-name{margin-top:2.5px;height:44px;line-height:24.52px;display:inline-grid;align-content:center;font-size:18px;font-weight:700;color:#ff7f66;margin:1px 0 0 4px}@media(max-width: 600px){.logo-maker .top-section{text-align:left}}.logo-maker .content-section{margin-top:115px}.logo-maker .content-section .titles{text-align:center}.logo-maker .content-section .titles h1{color:#32456b;font-size:36px;font-weight:700;line-height:49.03px;margin:0 0 8px}@media(max-width: 600px){.logo-maker .content-section .titles h1{line-height:32.69px}}.logo-maker .content-section .titles p{color:#939393;font-size:18px;font-weight:500;line-height:24.52px;margin:0}@media(max-width: 600px){.logo-maker .content-section{margin-top:60px}.logo-maker .content-section .titles{text-align:left}.logo-maker .content-section .titles h1{font-size:24px}.logo-maker .content-section .titles p{font-size:16px;color:#393939}}.logo-maker .step1{margin:50px auto 25px;max-width:480px}.logo-maker .step1 label{display:block;font-size:14px;font-weight:500;line-height:19px;color:#6a6a6a;margin-bottom:8px}.logo-maker .step1 input{height:54px;width:100%;color:#393939;font-size:14px;font-weight:500;line-height:19.07px;font-family:"Noto Sans",sans-serif;padding:18px 13px;margin-bottom:20px;border:1px solid #e7e7e7;border-radius:4px}.logo-maker .step1 input:focus{outline:none;border-color:#43c2d1;transition:.3s ease all}.logo-maker .next{text-align:center}.logo-maker .next a{color:#fff;background-color:#43c2d1;text-decoration:none;text-transform:uppercase;font-size:14px;font-weight:700;line-height:36px;padding:14px 80px;border-radius:4px}@media(max-width: 600px){.logo-maker .next a{display:block;padding:7px}}@media(max-width: 600px){.logo-maker .step1{margin:35px auto 5px;max-width:100%}}',""]);const a=o},8676:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(9033),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".fallback-container{display:flex;align-items:center;justify-content:center;height:100vh}.fallback-container .info{text-align:center}.fallback-container .info h1{color:#ff7f66;animation:blinker 2s linear infinite;font-size:100px}@media(max-width: 600px){.fallback-container .info h1{font-size:72px}}@media(max-width: 350px){.fallback-container .info h1{font-size:40px}}@keyframes blinker{50%{opacity:0}}",""]);const a=o},6663:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(9033),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,"html{box-sizing:border-box;scroll-behavior:smooth}*,*:before,*:after{box-sizing:inherit}body{margin:0}.single-page-container,main{background-color:#fff}footer{display:none}.copyright{display:none}.svg-animations{transition:all .3s ease-out}",""]);const a=o},9033:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var a=0;a{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(o of t.entries())if(!r.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],r.get(o[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(o of t.entries())if(!r.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(t[o]!==r[o])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var i=a[o];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r}},5043:(e,t,r)=>{"use strict";r.d(t,{lX:()=>y,q_:()=>k,ob:()=>f,PP:()=>E,Ep:()=>p});var n=r(8342);function o(e){return"/"===e.charAt(0)}function a(e,t){for(var r=t,n=r+1,o=e.length;n=0;f--){var h=i[f];"."===h?a(i,f):".."===h?(a(i,f),p++):p&&(a(i,f),p--)}if(!c)for(;p--;p)i.unshift("..");!c||""===i[0]||i[0]&&o(i[0])||i.unshift("");var d=i.join("/");return r&&"/"!==d.substr(-1)&&(d+="/"),d}(s.pathname,i.pathname)):s.pathname=i.pathname:s.pathname||(s.pathname="/"),s}function h(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,n,o){if(null!=e){var a="function"==typeof e?e(t,r):e;"string"==typeof a?"function"==typeof n?n(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var r=!0;function n(){r&&e.apply(void 0,arguments)}return t.push(n),function(){r=!1,t=t.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,r=new Array(e),n=0;nt?r.splice(t,r.length-t,o):r.push(o),d({action:n,location:o,index:t,entries:r})}}))},replace:function(e,t){var n="REPLACE",o=f(e,t,g(),b.location);l.confirmTransitionTo(o,n,r,(function(e){e&&(b.entries[b.index]=o,d({action:n,location:o}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=b.index+e;return t>=0&&t{"use strict";var n=r(6237),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return n.isMemo(e)?i:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(d){var o=h(r);o&&o!==d&&e(t,o,n)}var i=l(r);p&&(i=i.concat(p(r)));for(var s=u(t),g=u(r),v=0;v{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},7720:(e,t,r)=>{var n=r(901);e.exports=function e(t,r,o){return n(r)||(o=r||o,r=[]),o=o||{},t instanceof RegExp?function(e,t){var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n{"use strict";var n=r(2134);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},9036:(e,t,r)=>{e.exports=r(6132)()},2134:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4800:(e,t,r)=>{"use strict";r.d(t,{yh:()=>ie});var n=r(1202),o=r.n(n),a=r(3804),i=r.n(a);function s(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:g(e)?2:v(e)?3:0}function f(e,t){return 2===p(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){return 2===p(e)?e.get(t):e[t]}function d(e,t,r){var n=p(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function g(e){return z&&e instanceof Map}function v(e){return Z&&e instanceof Set}function m(e){return e.o||e.t}function C(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=$(e);delete t[X];for(var r=Y(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=b),Object.freeze(e),t&&l(e,(function(e,t){return y(t,!0)}),!0)),e}function b(){s(2)}function x(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function S(e){var t=K[e];return t||s(18,e),t}function w(){return _}function L(e,t){t&&(S("Patches"),e.u=[],e.s=[],e.v=t)}function k(e){O(e),e.p.forEach(T),e.p=null}function O(e){e===_&&(_=e.l)}function E(e){return _={p:[],l:_,h:e,m:!0,_:0}}function T(e){var t=e[X];0===t.i||1===t.i?t.j():t.g=!0}function U(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.O||S("ES5").S(t,e,n),n?(r[X].P&&(k(t),s(4)),c(e)&&(e=R(t,e),t.l||M(t,e)),t.u&&S("Patches").M(r[X],e,t.u,t.s)):e=R(t,r,[]),k(t),t.u&&t.v(t.u,t.s),e!==q?e:void 0}function R(e,t,r){if(x(t))return t;var n=t[X];if(!n)return l(t,(function(o,a){return P(e,n,t,o,a,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return M(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=C(n.k):n.o;l(3===n.i?new Set(o):o,(function(t,a){return P(e,n,o,t,a,r)})),M(e,o,!1),r&&e.u&&S("Patches").R(n,r,e.u,e.s)}return n.o}function P(e,t,r,n,o,a){if(u(o)){var i=R(e,o,a&&t&&3!==t.i&&!f(t.D,n)?a.concat(n):void 0);if(d(r,n,i),!u(i))return;e.m=!1}if(c(o)&&!x(o)){if(!e.h.N&&e._<1)return;R(e,o),t&&t.A.l||M(e,o)}}function M(e,t,r){void 0===r&&(r=!1),e.h.N&&e.m&&y(t,r)}function D(e,t){var r=e[X];return(r?m(r):e)[t]}function A(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function I(e){e.P||(e.P=!0,e.l&&I(e.l))}function N(e){e.o||(e.o=C(e.t))}function B(e,t,r){var n=g(t)?S("MapSet").T(t,r):v(t)?S("MapSet").F(t,r):e.O?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:w(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=n,a=J;r&&(o=[n],a=Q);var i=Proxy.revocable(o,a),s=i.revoke,u=i.proxy;return n.k=u,n.j=s,u}(t,r):S("ES5").J(t,r);return(r?r.A:w()).p.push(n),n}function F(e){return u(e)||s(22,e),function e(t){if(!c(t))return t;var r,n=t[X],o=p(t);if(n){if(!n.P&&(n.i<4||!S("ES5").K(n)))return n.t;n.I=!0,r=G(t,o),n.I=!1}else r=G(t,o);return l(r,(function(t,o){n&&h(n.t,t)===o||d(r,t,e(o))})),3===o?new Set(r):r}(e)}function G(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return C(e)}var H,_,j="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),z="undefined"!=typeof Map,Z="undefined"!=typeof Set,W="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,q=j?Symbol.for("immer-nothing"):((H={})["immer-nothing"]=!0,H),V=j?Symbol.for("immer-draftable"):"__$immer_draftable",X=j?Symbol.for("immer-state"):"__$immer_state",Y=("undefined"!=typeof Symbol&&Symbol.iterator,"undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames),$=Object.getOwnPropertyDescriptors||function(e){var t={};return Y(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},K={},J={get:function(e,t){if(t===X)return e;var r=m(e);if(!f(r,t))return function(e,t,r){var n,o=A(t,r);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!c(n)?n:n===D(e.t,t)?(N(e),e.o[t]=B(e.A.h,n,e)):n},has:function(e,t){return t in m(e)},ownKeys:function(e){return Reflect.ownKeys(m(e))},set:function(e,t,r){var n=A(m(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=D(m(e),t),a=null==o?void 0:o[X];if(a&&a.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,o)&&(void 0!==r||f(e.t,t)))return!0;N(e),I(e)}return e.o[t]=r,e.D[t]=!0,!0},deleteProperty:function(e,t){return void 0!==D(e.t,t)||t in e.t?(e.D[t]=!1,N(e),I(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=m(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){s(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){s(12)}},Q={};l(J,(function(e,t){Q[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Q.deleteProperty=function(e,t){return J.deleteProperty.call(this,e[0],t)},Q.set=function(e,t,r){return J.set.call(this,e[0],t,r,e[0])};var ee=new(function(){function e(e){this.O=W,this.N=!0,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var t=e.prototype;return t.produce=function(e,t,r){if("function"==typeof e&&"function"!=typeof t){var n=t;t=e;var o=this;return function(e){var r=this;void 0===e&&(e=n);for(var a=arguments.length,i=Array(a>1?a-1:0),s=1;s1?r-1:0),a=1;a=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}var o=S("Patches").$;return u(e)?o(e,t):this.produce(e,(function(e){return o(e,t.slice(r+1))}))},e}()),te=ee.produce,re=ee.produceWithPatches.bind(ee),ne=(ee.setAutoFreeze.bind(ee),ee.setUseProxies.bind(ee),ee.applyPatches.bind(ee));function oe(e,t){const r=(0,a.useRef)();if(null==r.current&&(r.current=new ie(e)),void 0!==t){const n=(0,a.useRef)(t);o()(t,n)||(r.current=new ie(e))}return r.current}ee.createDraft.bind(ee),ee.finishDraft.bind(ee);const ae={storeOrdinal:0,batching:!1,flushStores:{}};!function(){function e(t){if(!c(t))return t;if(Array.isArray(t))return t.map(e);if(g(t))return new Map(Array.from(t.entries()).map((function(t){return[t[0],e(t[1])]})));if(v(t))return new Set(Array.from(t).map(e));var r=Object.create(Object.getPrototypeOf(t));for(var n in t)r[n]=e(t[n]);return r}function t(t){return u(t)?e(t):t}var r="add";!function(e,t){K[e]||(K[e]=t)}("Patches",{$:function(t,n){return n.forEach((function(n){for(var o=n.path,a=n.op,i=t,u=0;ue;this.internalOrdId=ae.storeOrdinal++}_setInternalOptions({ssr:e,reactionCreators:t=[]}){this.ssr=e,this.reactionCreators=t,this.reactions=t.map((e=>e(this)))}_getReactionCreators(){return this.reactionCreators}_instantiateReactions(){this.reactions=this.reactionCreators.map((e=>e(this)))}_getInitialState(){return this.createInitialState()}_updateStateWithoutReaction(e){this.currentState=e}_updateState(e,t=[]){this.currentState=e,this.batchState=void 0;for(const e of this.reactions)t.push(...e());if(!this.ssr){for(const e of this.clientSubscriptions)e();if(t.length>0){const e=new Set;for(const r of t)if(this.optimizedListenerPropertyMap[r])for(const t of this.optimizedListenerPropertyMap[r])e.add(t);for(const t of e.values())this.optimizedUpdateListeners[t]&&this.optimizedUpdateListeners[t]()}this.updateListeners.forEach((e=>e()))}}_addUpdateListener(e){this.updateListeners.push(e)}_addUpdateListenerOpt(e,t,r){this.optimizedUpdateListeners[t]=e;const n=r.map((e=>e.join("~._.~")));this.optimizedUpdateListenerPaths[t]=n;for(const e of n)null==this.optimizedListenerPropertyMap[e]?this.optimizedListenerPropertyMap[e]=[t]:this.optimizedListenerPropertyMap[e].push(t);this._optListenerCount++}_removeUpdateListener(e){this.updateListeners=this.updateListeners.filter((t=>t!==e))}_removeUpdateListenerOpt(e){const t=this.optimizedUpdateListenerPaths[e];for(const r of t)this.optimizedListenerPropertyMap[r]=this.optimizedListenerPropertyMap[r].filter((t=>t!==e));delete this.optimizedUpdateListenerPaths[e],delete this.optimizedUpdateListeners[e],this._optListenerCount--}listenToPatches(e){return this._patchListeners.push(e),()=>{this._patchListeners=this._patchListeners.filter((t=>t!==e))}}subscribe(e,t){if(!this.ssr){const r=function(e,t,r){let n=t(e.getRawState());return()=>{const a=e.getRawState(),i=t(a);o()(i,n)||(r(i,a,n),n=i)}}(this,e,t);return this.clientSubscriptions.push(r),()=>{this.clientSubscriptions=this.clientSubscriptions.filter((e=>e!==r))}}return()=>{console.warn("Pullstate: Subscriptions made on the server side are not registered - so therefor this call to unsubscribe does nothing.")}}createReaction(e,t,{runNow:r=!1,runNowWithSideEffects:n=!1}={}){const a=function(e,t){return r=>{let n=e(r.getRawState());return(a=!1)=>{const i=r.getRawState(),s=e(i);if(a||!o()(s,n))if(r._optListenerCount>0){const[e,o,a]=re(i,(e=>t(s,e,i,n)));if(r._updateStateWithoutReaction(e),n=s,o.length>0)return r._patchListeners.forEach((e=>e(o,a))),Object.keys(se(o))}else{if(r._patchListeners.length>0){const[e,o,a]=re(i,(e=>t(s,e,i,n)));o.length>0&&r._patchListeners.forEach((e=>e(o,a))),r._updateStateWithoutReaction(e)}else r._updateStateWithoutReaction(te(i,(e=>t(s,e,i,n))));n=s}return[]}}}(e,t);this.reactionCreators.push(a);const i=a(this);return this.reactions.push(i),(r||n)&&(i(!0),n&&!this.ssr&&this._updateState(this.currentState)),()=>{this.reactions=this.reactions.filter((e=>e!==i))}}getRawState(){return void 0!==this.batchState?this.batchState:this.currentState}useState(e,t){return function(e,t,r){const n=(0,a.useRef)({state:void 0,initialized:!1});n.current.initialized||(n.current.state=t?t(e.getRawState()):e.getRawState(),n.current.initialized=!0);const[,i]=(0,a.useState)(0);if((0,a.useEffect)((()=>{const r={shouldUpdate:!0};function a(){if(r.shouldUpdate){const a=t?t(e.getRawState()):e.getRawState();o()(n.current.state,a)||r.shouldUpdate&&(n.current.state=a,i((e=>e+1)))}}return e._addUpdateListener(a),a(),()=>{r.shouldUpdate=!1,e._removeUpdateListener(a)}}),null!=r?r:[]),void 0!==r){const i=(0,a.useRef)(r);o()(r,i)||(n.current.state=t(e.getRawState()))}return n.current.state}(this,e,t)}useLocalCopyInitial(e){return oe(this.createInitialState,e)}useLocalCopySnapshot(e){return oe(this.currentState,e)}flushBatch(e=!1){void 0!==this.batchState?this.batchState!==this.currentState&&this._updateState(this.batchState):e||console.error("Pullstate: Trying to flush batch state which was never created or updated on"),this.batchState=void 0}update(e,t){if(ae.batching){void 0===this.batchState&&(this.batchState=this.currentState,ae.flushStores[this.internalOrdId]=this);const r="function"==typeof e,[n,o,a]=ue(this.batchState,e,r);o.length>0&&(this._patchListeners.length>0||t)&&(t&&t(o,a),this._patchListeners.forEach((e=>e(o,a)))),this.batchState=n}else this.batchState=void 0,function(e,t,r){const n=e.getRawState(),o="function"==typeof t;if(e._optListenerCount>0){const[a,i,s]=ue(n,t,o);i.length>0&&(r&&r(i,s),e._patchListeners.forEach((e=>e(i,s))),e._updateState(a,Object.keys(se(i))))}else{let a;if(e._patchListeners.length>0||r){const[i,s,u]=ue(n,t,o);s.length>0&&(r&&r(s,u),e._patchListeners.forEach((e=>e(s,u)))),a=i}else a=te(n,(e=>o?t(e,n):t.reduce(((e,t)=>te(e,(r=>t(r,e)))),n)));a!==n&&e._updateState(a)}}(this,e,t)}replace(e){this._updateState(e)}applyPatches(e){!function(e,t){const r=e.getRawState(),n=ne(r,t);n!==r&&e._updateState(n,Object.keys(se(t)))}(this,e)}}function se(e,t={}){for(const r of e){let e;for(const n of r.path)e=e?`${e}~._.~${n}`:n,t[e]=1}return t}function ue(e,t,r){return r?re(e,(r=>t(r,e))):t.reduce((([e,t,r],n)=>{const o=re(e,(t=>n(t,e)));return t.push(...o[1]),r.push(...o[2]),[o[0],t,r]}),[e,[],[]])}var ce,le;let pe;!function(e){e.THREW_ERROR="THREW_ERROR",e.RETURNED_ERROR="RETURNED_ERROR",e.UNFINISHED="UNFINISHED",e.DORMANT="DORMANT"}(ce||(ce={})),function(e){e.WATCH_HIT_CACHE="WATCH_HIT_CACHE",e.BECKON_HIT_CACHE="BECKON_HIT_CACHE",e.RUN_HIT_CACHE="RUN_HIT_CACHE",e.READ_HIT_CACHE="READ_HIT_CACHE",e.READ_RUN="READ_RUN",e.SHORT_CIRCUIT="SHORT_CIRCUIT",e.DIRECT_RUN="DIRECT_RUN",e.BECKON_RUN="BECKON_RUN",e.CACHE_UPDATE="CACHE_UPDATE"}(le||(le={})),Error;try{pe=new Proxy({},{get:function(e,t){throw new Error(`Pullstate: Trying to access store (${String(t)}) inside async actions without the correct usage or setup.\nIf this error occurred on the server:\n* If using run(), make use of your created instance for this request: instance.runAsyncAction()\n* If using read(), useWatch(), useBeckon() etc. - make sure you have properly set up your \n\nIf this error occurred on the client:\n* Make sure you have created your "pullstateCore" object with all your stores, using createPullstateCore(), and are making use of instantiate() before rendering.`)}})}catch{pe={}}var fe;ce.UNFINISHED,i().createContext(null),function(e){e.WATCH="watch",e.BECKON="beckon"}(fe||(fe={}))},1631:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>ce});var n={};r.r(n),r.d(n,{addTrackers:()=>W,default:()=>oe,event:()=>Q,exception:()=>ee,ga:()=>V,initialize:()=>q,modalview:()=>K,outboundLink:()=>re,pageview:()=>$,plugin:()=>te,send:()=>Y,set:()=>X,testModeAPI:()=>ne,timing:()=>J});var o=r(3804),a=r.n(o),i=r(9036),s=r.n(i);function u(e){console.warn("[react-ga]",e)}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["to","target"])),{},{target:r,href:t,onClick:this.handleClick});return r===y&&(n.rel="".concat(n.rel?n.rel:""," noopener noreferrer").trim()),delete n.eventLabel,delete n.trackerNames,a().createElement("a",n)}}])&&h(t.prototype,r),s}(o.Component);function x(e){return"string"==typeof(t=e)&&-1!==t.indexOf("@")?(u("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e;var t}function S(e){return e&&e.toString().replace(/^\s+|\s+$/g,"")}C(b,"trackLink",(function(){u("ga tracking not enabled")})),b.propTypes={eventLabel:s().string.isRequired,target:s().string,to:s().string,onClick:s().func,trackerNames:s().arrayOf(s().string)},b.defaultProps={target:null,to:null,onClick:null,trackerNames:null};var w=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function L(e){return S(e).replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,t,r){return t>0&&t+e.length!==r.length&&e.search(w)>-1&&":"!==r.charAt(t-2)&&("-"!==r.charAt(t+e.length)||"-"===r.charAt(t-1))&&r.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)}))}var k=!1;function O(e){console.info("[react-ga]",e)}var E=[];const T={calls:E,ga:function(){for(var e=arguments.length,t=new Array(e),r=0;r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e||"";return(arguments.length>1?arguments[1]:void 0)&&(r=L(e)),t&&(r=x(r)),r}(e,B,H)}function z(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&(_.apply(void 0,t),N&&(O("called ga('arguments');"),O("with arguments: ".concat(JSON.stringify(t))))),window.ga}function X(e,t){e?"object"===M(e)?(0===Object.keys(e).length&&u("empty `fieldsObject` given to .set()"),z(t,"set",e),N&&(O("called ga('set', fieldsObject);"),O("with fieldsObject: ".concat(JSON.stringify(e))))):u("Expected `fieldsObject` arg to be an Object"):u("`fieldsObject` is required in .set()")}function Y(e,t){z(t,"send",e),N&&(O("called ga('send', fieldObject);"),O("with fieldObject: ".concat(JSON.stringify(e))),O("with trackers: ".concat(JSON.stringify(t))))}function $(e,t,r){if(e){var n=S(e);if(""!==n){var o={};if(r&&(o.title=r),z(t,"send",function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,r=e.variable,n=e.value,o=e.label,a=arguments.length>1?arguments[1]:void 0;if(t&&r&&"number"==typeof n){var i={hitType:"timing",timingCategory:j(t),timingVar:j(r),timingValue:n};o&&(i.timingLabel=j(o)),Y(i,a)}else u("args.category, args.variable AND args.value are required in timing() AND args.value has to be a number")}function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,r=e.action,n=e.label,o=e.value,a=e.nonInteraction,i=e.transport,s=U(e,["category","action","label","value","nonInteraction","transport"]),c=arguments.length>1?arguments[1]:void 0;if(t&&r){var l={hitType:"event",eventCategory:j(t),eventAction:j(r)};n&&(l.eventLabel=j(n)),void 0!==o&&("number"!=typeof o?u("Expected `args.value` arg to be a Number."):l.eventValue=o),void 0!==a&&("boolean"!=typeof a?u("`args.nonInteraction` must be a boolean."):l.nonInteraction=a),void 0!==i&&("string"!=typeof i?u("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(i)&&u("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),l.transport=i)),Object.keys(s).filter((function(e){return"dimension"===e.substr(0,"dimension".length)})).forEach((function(e){l[e]=s[e]})),Object.keys(s).filter((function(e){return"metric"===e.substr(0,"metric".length)})).forEach((function(e){l[e]=s[e]})),Y(l,c)}else u("args.category AND args.action are required in event()")}function ee(e,t){var r=e.description,n=e.fatal,o={hitType:"exception"};r&&(o.exDescription=j(r)),void 0!==n&&("boolean"!=typeof n?u("`args.fatal` must be a boolean."):o.exFatal=n),Y(o,t)}var te={require:function(e,t,r){if(e){var n=S(e);if(""!==n){var o=r?"".concat(r,".require"):"require";if(t){if("object"!==M(t))return void u("Expected `options` arg to be an Object");0===Object.keys(t).length&&u("Empty `options` given to .require()"),V(o,n,t),N&&O("called ga('require', '".concat(n,"', ").concat(JSON.stringify(t)))}else V(o,n),N&&O("called ga('require', '".concat(n,"');"))}else u("`name` cannot be an empty string in .require()")}else u("`name` is required in .require()")},execute:function(e,t){for(var r,n,o=arguments.length,a=new Array(o>2?o-2:0),i=2;i{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,C=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case p:case a:case s:case i:case h:return e;default:switch(e=e&&e.$$typeof){case c:case f:case v:case g:case u:return e;default:return t}}case o:return t}}}function S(e){return x(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=n,t.ForwardRef=f,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||x(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===i},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===s||e===i||e===h||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===C||e.$$typeof===y||e.$$typeof===b||e.$$typeof===m)},t.typeOf=x},6237:(e,t,r)=>{"use strict";e.exports=r(198)},7386:(e,t,r)=>{"use strict";r.d(t,{UT:()=>p,rU:()=>m});var n=r(8542),o=r(7045),a=r(3804),i=r.n(a),s=r(5043),u=(r(9036),r(8342)),c=r(385),l=r(8005);i().Component;var p=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o{"use strict";r.d(t,{AW:()=>S,F0:()=>C,rs:()=>w,s6:()=>m,LX:()=>x});var n=r(7045),o=r(3804),a=r.n(o),i=r(9036),s=r.n(i),u=(r(5043),1073741823),c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:{};function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(r,n){e=r,t.forEach((function(t){return t(e,n)}))}}}const p=a().createContext||function(e,t){var r,a,i,p="__create-react-context-"+((c[i="__global_unique_id__"]=(c[i]||0)+1)+"__"),f=function(e){function r(){var t;return(t=e.apply(this,arguments)||this).emitter=l(t.props.value),t}(0,n.Z)(r,e);var o=r.prototype;return o.getChildContext=function(){var e;return(e={})[p]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var r,n=this.props.value,o=e.value;((a=n)===(i=o)?0!==a||1/a==1/i:a!=a&&i!=i)?r=0:(r="function"==typeof t?t(n,o):u,0!=(r|=0)&&this.emitter.set(e.value,r))}var a,i},o.render=function(){return this.props.children},r}(o.Component);f.childContextTypes=((r={})[p]=s().object.isRequired,r);var h=function(t){function r(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,r){0!=((0|e.observedBits)&r)&&e.setState({value:e.getValue()})},e}(0,n.Z)(r,t);var o=r.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?u:t},o.componentDidMount=function(){this.context[p]&&this.context[p].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?u:e},o.componentWillUnmount=function(){this.context[p]&&this.context[p].off(this.onUpdate)},o.getValue=function(){return this.context[p]?this.context[p].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},r}(o.Component);return h.contextTypes=((a={})[p]=s().object,a),{Provider:f,Consumer:h}};var f=r(8005),h=r(8342),d=r(7720),g=r.n(d),v=(r(6237),r(385),r(2535),function(e){var t=p();return t.displayName="Router-History",t}()),m=function(e){var t=p();return t.displayName="Router",t}(),C=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={location:t.history.location},r._isMounted=!1,r._pendingLocation=null,t.staticContext||(r.unlisten=t.history.listen((function(e){r._isMounted?r.setState({location:e}):r._pendingLocation=e}))),r}(0,n.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var r=t.prototype;return r.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&this.unlisten()},r.render=function(){return a().createElement(m.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a().createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a().Component);a().Component,a().Component;var y={},b=0;function x(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var r=t,n=r.path,o=r.exact,a=void 0!==o&&o,i=r.strict,s=void 0!==i&&i,u=r.sensitive,c=void 0!==u&&u;return[].concat(n).reduce((function(t,r){if(!r&&""!==r)return null;if(t)return t;var n=function(e,t){var r=""+t.end+t.strict+t.sensitive,n=y[r]||(y[r]={});if(n[e])return n[e];var o=[],a={regexp:g()(e,o,t),keys:o};return b<1e4&&(n[e]=a,b++),a}(r,{end:a,strict:s,sensitive:c}),o=n.regexp,i=n.keys,u=o.exec(e);if(!u)return null;var l=u[0],p=u.slice(1),f=e===l;return a&&!f?null:{path:r,url:"/"===r&&""===l?"/":l,isExact:f,params:i.reduce((function(e,t,r){return e[t.name]=p[r],e}),{})}}),null)}var S=function(e){function t(){return e.apply(this,arguments)||this}return(0,n.Z)(t,e),t.prototype.render=function(){var e=this;return a().createElement(m.Consumer,null,(function(t){t||(0,f.Z)(!1);var r=e.props.location||t.location,n=e.props.computedMatch?e.props.computedMatch:e.props.path?x(r.pathname,e.props):t.match,o=(0,h.Z)({},t,{location:r,match:n}),i=e.props,s=i.children,u=i.component,c=i.render;return Array.isArray(s)&&0===s.length&&(s=null),a().createElement(m.Provider,{value:o},o.match?s?"function"==typeof s?s(o):s:u?a().createElement(u,o):c?c(o):null:"function"==typeof s?s(o):null)}))},t}(a().Component);a().Component;var w=function(e){function t(){return e.apply(this,arguments)||this}return(0,n.Z)(t,e),t.prototype.render=function(){var e=this;return a().createElement(m.Consumer,null,(function(t){t||(0,f.Z)(!1);var r,n,o=e.props.location||t.location;return a().Children.forEach(e.props.children,(function(e){if(null==n&&a().isValidElement(e)){r=e;var i=e.props.path||e.props.from;n=i?x(o.pathname,(0,h.Z)({},e.props,{path:i})):t.match}})),n?a().cloneElement(r,{location:o,computedMatch:n}):null}))},t}(a().Component);a().useContext},1332:(e,t,r)=>{"use strict";var n,o=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function i(e){for(var t=-1,r=0;r{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){if(!e)throw new Error("Invariant failed")}},5875:(e,t,r)=>{"use strict";r.d(t,{I6:()=>o});const n=JSON.parse('["Open Sans","Bangers","Roboto","Dancing Script","Henny Penny","Alfa Slab One","Oswald","Anton","Permanent Marker","Cinzel Decorative","Lato","Karla","Montserrat","Libre Baskerville","Bebas Neue","Fira Sans","Play","Crete Round","Rajdhani","Satisfy","Lobster Two","Orbitron","Parisienne","Playball","Noto Serif","Noto Sans","Lora","Source Serif Pro","Ubuntu","Lemonada","UnifrakturMaguntia","Oleo Script Swash Caps","Creepster"]');console.log(n),n.sort();const o=e=>n.includes(e)},3312:(e,t,r)=>{"use strict";r.d(t,{uO:()=>o,ZP:()=>a});const n={id:"logo-1",svg:'\n\t\n\t\n\t\n\t\n\t\n\t\t'},o=n,a=[n,{id:"logo-2",svg:'\n\t\n\n\n'},{id:"logo-3",svg:'\n\t\n\n\n\n'},{id:"logo-4",svg:'\n\t\n\n\n\n\n\n\n\n\n'},{id:"logo-5",svg:'\n\t\n\n\n\n\n\n\n\n\n'},{id:"logo-6",svg:'\n\t\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'},{id:"logo-7",svg:'\n\t\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'},{id:"logo-8",svg:'\n\t\n\n\n\n\n\n\n'},{id:"logo-9",svg:'\n\t\n \n \n \n \n'},{id:"logo-10",svg:'\n\t\n\n\n\n\n\n\n\n\n\n\n\n\n'}]},170:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(3804),o=r(7386);const a=e=>n.createElement("div",{className:"back"},n.createElement(o.rU,{className:"",to:e.to||"/start"},n.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("circle",{cx:"21",cy:"21",r:"20.5",fill:"white",stroke:"#E7E7E7"}),n.createElement("path",{d:"M23 17L19 21L23 25",stroke:"#585858",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),n.createElement("p",null,"Back")))},1422:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3804);const o=()=>n.createElement("div",{className:"logo-holder"},n.createElement("a",{href:"https://themeisle.com/"},n.createElement("img",{width:"134px",height:"44px",src:"https://mllj2j8xvfl0.i.optimole.com/d0cOXWA.d0eL~37102/w:auto/h:auto/q:90/https://s30246.pcdn.co/wp-content/uploads/2019/03/logo.png",alt:"Themeisle Logo"})),n.createElement("a",{className:"logo-maker-name"},"LogoMaker"))},1928:(e,t,r)=>{"use strict";r.d(t,{e:()=>n});const n=new(r(4800).yh)({fonts:{fontsStatus:"inactive",activeFonts:[],fontRenderers:{}}})},2347:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3312);const o=new(r(4800).yh)(JSON.parse(sessionStorage.getItem("logo-maker-themeisle")||"null")||{container:{width:765,height:625,align:"align-top",viewbox:{x:0,y:0,width:250,height:250},style:{color:"#ABABCB"}},logo:{src:n.uO,width:100,height:100,style:{fill:"#FFFFFF"}},title:{text:"Optimole",style:{color:"#FFFFFF",fontSize:53,fontFamily:"Helvetica"}},slogan:{text:"An elegant choice",style:{color:"#FFFFFF",fontSize:24,fontFamily:"Helvetica"}}})},3804:e=>{"use strict";e.exports=window.React},7196:e=>{"use strict";e.exports=window.ReactDOM},7078:()=>{}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return r[e](a,a.exports,o),a.loaded=!0,a.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="logo-maker-plugin:",o.l=(r,n,a,i)=>{if(e[r])e[r].push(n);else{var s,u;if(void 0!==a)for(var c=document.getElementsByTagName("script"),l=0;l{s.onerror=s.onload=null,clearTimeout(h);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),u&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={290:0};o.f.j=(t,r)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var a=new Promise(((r,o)=>{n=e[t]=[r,o]}));r.push(n[2]=a);var i=o.p+o.u(t),s=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,a,[i,s,u]=r,c=0;for(n in s)o.o(s,n)&&(o.m[n]=s[n]);for(u&&u(o),t&&t(r);c{"use strict";var e=o(3804),t=o.n(e),r=o(7196),n=o(7386),a=o(8542),i=o(1332),s=o.n(i),u=o(6663);s()(u.Z,{insert:"head",singleton:!1}),u.Z.locals;var c=o(1422),l=o(2347),p=o(841);s()(p.Z,{insert:"head",singleton:!1}),p.Z.locals;var f=o(170),h=o(1631);const d=()=>{var t,r;return e.useEffect((()=>{var e;(null===(e=window.logomaker)||void 0===e?void 0:e.parentLink)||console.log("Parent link was not provided by WordPress. The back button from the start page will point to itself as default behaviour!"),h.ZP.pageview(window.location.pathname+window.location.hash+window.location.search)}),[]),e.createElement("div",{className:"logo-maker logo-maker-container"},e.createElement("div",{className:"top-section"},(null===(t=window.logomaker)||void 0===t?void 0:t.parentLink)?e.createElement("div",{className:"back"},e.createElement("a",{href:null===(r=window.logomaker)||void 0===r?void 0:r.parentLink},e.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{cx:"21",cy:"21",r:"20.5",fill:"white",stroke:"#E7E7E7"}),e.createElement("path",{d:"M23 17L19 21L23 25",stroke:"#585858",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),e.createElement("p",null,"Back"))):e.createElement(f.Z,null),e.createElement(c.Z,null)),e.createElement("div",{className:"content-section"},e.createElement("div",{className:"titles"},e.createElement("h1",null,"Add your business name"),e.createElement("p",null,"You can change this information after you designs have been created")),e.createElement("div",{className:"step1"},e.createElement("label",null,"Logo Text"),e.createElement("input",{type:"text",id:"input-logo-text",value:l.Z.useState((e=>e.title.text)),onChange:e=>{return t=e.target.value,void l.Z.update((e=>{e.title.text=t}));var t}}),e.createElement("label",null,"Slogan text (Optional)"),e.createElement("input",{type:"text",id:"input-logo-slogan",value:l.Z.useState((e=>e.slogan.text)),onChange:e=>{return t=e.target.value,void l.Z.update((e=>{e.slogan.text=t}));var t}})),e.createElement("div",{className:"next"},e.createElement(n.rU,{to:"/showcase"},"Next"))))};var g=o(1928);function v(e){if(window.logomaker.pluginURL){const t=e.split(" ").join("")+"-Regular.ttf";return window.logomaker.pluginURL+"plugin_build/font/"+t}return null}var m,C,y=o(5875);function b(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function x(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new b,this.dtree=new b}String.prototype.codePointAt||(C=function(e){if(null==this)throw TypeError();var t=String(this),r=t.length,n=e?Number(e):0;if(n!=n&&(n=0),!(n<0||n>=r)){var o,a=t.charCodeAt(n);return a>=55296&&a<=56319&&r>n+1&&(o=t.charCodeAt(n+1))>=56320&&o<=57343?1024*(a-55296)+o-56320+65536:a}},(m=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?m(String.prototype,"codePointAt",{value:C,configurable:!0,writable:!0}):String.prototype.codePointAt=C);var S=new b,w=new b,L=new Uint8Array(30),k=new Uint16Array(30),O=new Uint8Array(30),E=new Uint16Array(30),T=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),U=new b,R=new Uint8Array(320);function P(e,t,r,n){var o,a;for(o=0;o>>=1,t}function I(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<>>16-t;return e.tag>>>=t,e.bitcount-=t,n+r}function N(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<>>=1,++o,r+=t.table[o],n-=t.table[o]}while(n>=0);return e.tag=a,e.bitcount-=o,t.trans[r+n]}function B(e,t,r){var n,o,a,i,s,u;for(n=I(e,5,257),o=I(e,5,1),a=I(e,4,4),i=0;i<19;++i)R[i]=0;for(i=0;i8;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return-3;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,0}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(S,w),P(L,k,4,3),P(O,E,2,1),L[28]=0,k[28]=258;function H(e,t,r,n,o){return Math.pow(1-o,3)*e+3*Math.pow(1-o,2)*o*t+3*(1-o)*Math.pow(o,2)*r+Math.pow(o,3)*n}function _(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function j(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}function z(e){throw new Error(e)}function Z(e,t){e||z(t)}_.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},_.prototype.addPoint=function(e,t){"number"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),ethis.x2&&(this.x2=e)),"number"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))},_.prototype.addX=function(e){this.addPoint(e,null)},_.prototype.addY=function(e){this.addPoint(null,e)},_.prototype.addBezier=function(e,t,r,n,o,a,i,s){var u=[e,t],c=[r,n],l=[o,a],p=[i,s];this.addPoint(e,t),this.addPoint(i,s);for(var f=0;f<=1;f++){var h=6*u[f]-12*c[f]+6*l[f],d=-3*u[f]+9*c[f]-9*l[f]+3*p[f],g=3*c[f]-3*u[f];if(0!==d){var v=Math.pow(h,2)-4*g*d;if(!(v<0)){var m=(-h+Math.sqrt(v))/(2*d);0=0&&n>0&&(r+=" "),r+=t(o)}return r}e=void 0!==e?e:2;for(var n="",o=0;o"},j.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d",t),r};var W={fail:z,argument:Z,assert:Z},q=2147483648,V={},X={},Y={};function $(e){return function(){return e}}X.BYTE=function(e){return W.argument(e>=0&&e<=255,"Byte value should be between 0 and 255."),[e]},Y.BYTE=$(1),X.CHAR=function(e){return[e.charCodeAt(0)]},Y.CHAR=$(1),X.CHARARRAY=function(e){for(var t=[],r=0;r>8&255,255&e]},Y.USHORT=$(2),X.SHORT=function(e){return e>=32768&&(e=-(65536-e)),[e>>8&255,255&e]},Y.SHORT=$(2),X.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},Y.UINT24=$(3),X.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},Y.ULONG=$(4),X.LONG=function(e){return e>=q&&(e=-(2*q-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},Y.LONG=$(4),X.FIXED=X.ULONG,Y.FIXED=Y.ULONG,X.FWORD=X.SHORT,Y.FWORD=Y.SHORT,X.UFWORD=X.USHORT,Y.UFWORD=Y.USHORT,X.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},Y.LONGDATETIME=$(8),X.TAG=function(e){return W.argument(4===e.length,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},Y.TAG=$(4),X.Card8=X.BYTE,Y.Card8=Y.BYTE,X.Card16=X.USHORT,Y.Card16=Y.USHORT,X.OffSize=X.BYTE,Y.OffSize=Y.BYTE,X.SID=X.USHORT,Y.SID=Y.USHORT,X.NUMBER=function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?X.NUMBER16(e):X.NUMBER32(e)},Y.NUMBER=function(e){return X.NUMBER(e).length},X.NUMBER16=function(e){return[28,e>>8&255,255&e]},Y.NUMBER16=$(3),X.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},Y.NUMBER32=$(5),X.REAL=function(e){var t=e.toString(),r=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var n=parseFloat("1e"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*n)/n).toString()}for(var o="",a=0,i=t.length;a>8&255,t[t.length]=255&n}return t},Y.UTF16=function(e){return 2*e.length};var K={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-cyrillic":"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",macintosh:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"};V.MACSTRING=function(e,t,r,n){var o=K[n];if(void 0!==o){for(var a="",i=0;i=-128&&e<=127}function te(e,t,r){for(var n=0,o=e.length;t>8&255,u+256&255)}return a}X.MACSTRING=function(e,t){var r=function(e){if(!J)for(var t in J={},K)J[t]=new String(t);var r=J[e];if(void 0!==r){if(Q){var n=Q.get(r);if(void 0!==n)return n}var o=K[e];if(void 0!==o){for(var a={},i=0;i=128&&void 0===(a=r[a]))return;n[o]=a}return n}},Y.MACSTRING=function(e,t){var r=X.MACSTRING(e,t);return void 0!==r?r.length:0},X.VARDELTAS=function(e){for(var t=0,r=[];t=-128&&n<=127?re(e,t,r):ne(e,t,r)}return r},X.INDEX=function(e){for(var t=1,r=[t],n=[],o=0;o>8,t[p+1]=255&f,t=t.concat(n[l])}return t},Y.TABLE=function(e){for(var t=0,r=e.fields.length,n=0;n0)return new ye(this.data,this.offset+t).parseStruct(e)},ye.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(t>0)return new ye(this.data,this.offset+t).parseStruct(e)},ye.prototype.parseListOfLists=function(e){for(var t=this.parseOffset16List(),r=t.length,n=this.relativeOffset,o=new Array(r),a=0;a=0;o-=1){var a=xe.getUShort(e,t+4+8*o),i=xe.getUShort(e,t+4+8*o+2);if(3===a&&(0===i||1===i||10===i)||0===a&&(0===i||1===i||2===i||3===i||4===i)){n=xe.getULong(e,t+4+8*o+4);break}}if(-1===n)throw new Error("No valid cmap sub-tables found.");var s=new xe.Parser(e,t+n);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var n=0;n>1,t.skip("uShort",3),e.glyphIndexMap={};for(var i=new xe.Parser(r,n+o+14),s=new xe.Parser(r,n+o+16+2*a),u=new xe.Parser(r,n+o+16+4*a),c=new xe.Parser(r,n+o+16+6*a),l=n+o+16+8*a,p=0;p0;t-=1)if(e.get(t).unicode>65535){console.log("Adding CMAP format 12 (needed!)"),r=!1;break}var n=[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:r?1:2},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:r?12:20}];r||(n=n.concat([{name:"cmap12PlatformID",type:"USHORT",value:3},{name:"cmap12EncodingID",type:"USHORT",value:10},{name:"cmap12Offset",type:"ULONG",value:0}])),n=n.concat([{name:"format",type:"USHORT",value:4},{name:"cmap4Length",type:"USHORT",value:0},{name:"language",type:"USHORT",value:0},{name:"segCountX2",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);var o=new he.Table("cmap",n);for(o.segments=[],t=0;t>4,a=15&n;if(15===o)break;if(t+=r[o],15===a)break;t+=r[a]}return parseFloat(t)}(e);if(t>=32&&t<=246)return t-139;if(t>=247&&t<=250)return 256*(t-247)+e.parseByte()+108;if(t>=251&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error("Invalid b0 "+t)}function je(e,t,r){t=void 0!==t?t:0;var n=new xe.Parser(e,t),o=[],a=[];for(r=void 0!==r?r:e.length;n.relativeOffset>1,f.length=0,d=!0}return function r(c){for(var C,y,w,L,k,O,E,T,U,R,P,M,D=0;D1&&!d&&(b=f.shift()+l,d=!0),m+=f.pop(),x(v,m);break;case 5:for(;f.length>0;)v+=f.shift(),m+=f.shift(),p.lineTo(v,m);break;case 6:for(;f.length>0&&(v+=f.shift(),p.lineTo(v,m),0!==f.length);)m+=f.shift(),p.lineTo(v,m);break;case 7:for(;f.length>0&&(m+=f.shift(),p.lineTo(v,m),0!==f.length);)v+=f.shift(),p.lineTo(v,m);break;case 8:for(;f.length>0;)n=v+f.shift(),o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),v=a+f.shift(),m=i+f.shift(),p.curveTo(n,o,a,i,v,m);break;case 10:k=f.pop()+u,(O=s[k])&&r(O);break;case 11:return;case 12:switch(A=c[D],D+=1,A){case 35:n=v+f.shift(),o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),E=a+f.shift(),T=i+f.shift(),U=E+f.shift(),R=T+f.shift(),P=U+f.shift(),M=R+f.shift(),v=P+f.shift(),m=M+f.shift(),f.shift(),p.curveTo(n,o,a,i,E,T),p.curveTo(U,R,P,M,v,m);break;case 34:n=v+f.shift(),o=m,a=n+f.shift(),i=o+f.shift(),E=a+f.shift(),T=i,U=E+f.shift(),R=i,P=U+f.shift(),M=m,v=P+f.shift(),p.curveTo(n,o,a,i,E,T),p.curveTo(U,R,P,M,v,m);break;case 36:n=v+f.shift(),o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),E=a+f.shift(),T=i,U=E+f.shift(),R=i,P=U+f.shift(),M=R+f.shift(),v=P+f.shift(),p.curveTo(n,o,a,i,E,T),p.curveTo(U,R,P,M,v,m);break;case 37:n=v+f.shift(),o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),E=a+f.shift(),T=i+f.shift(),U=E+f.shift(),R=T+f.shift(),P=U+f.shift(),M=R+f.shift(),Math.abs(P-v)>Math.abs(M-m)?v=P+f.shift():m=M+f.shift(),p.curveTo(n,o,a,i,E,T),p.curveTo(U,R,P,M,v,m);break;default:console.log("Glyph "+t.index+": unknown operator 1200"+A),f.length=0}break;case 14:f.length>0&&!d&&(b=f.shift()+l,d=!0),g&&(p.closePath(),g=!1);break;case 18:S();break;case 19:case 20:S(),D+=h+7>>3;break;case 21:f.length>2&&!d&&(b=f.shift()+l,d=!0),m+=f.pop(),x(v+=f.pop(),m);break;case 22:f.length>1&&!d&&(b=f.shift()+l,d=!0),x(v+=f.pop(),m);break;case 23:S();break;case 24:for(;f.length>2;)n=v+f.shift(),o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),v=a+f.shift(),m=i+f.shift(),p.curveTo(n,o,a,i,v,m);v+=f.shift(),m+=f.shift(),p.lineTo(v,m);break;case 25:for(;f.length>6;)v+=f.shift(),m+=f.shift(),p.lineTo(v,m);n=v+f.shift(),o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),v=a+f.shift(),m=i+f.shift(),p.curveTo(n,o,a,i,v,m);break;case 26:for(f.length%2&&(v+=f.shift());f.length>0;)n=v,o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),v=a,m=i+f.shift(),p.curveTo(n,o,a,i,v,m);break;case 27:for(f.length%2&&(m+=f.shift());f.length>0;)n=v+f.shift(),o=m,a=n+f.shift(),i=o+f.shift(),v=a+f.shift(),m=i,p.curveTo(n,o,a,i,v,m);break;case 28:C=c[D],y=c[D+1],f.push((C<<24|y<<16)>>16),D+=2;break;case 29:k=f.pop()+e.gsubrsBias,(O=e.gsubrs[k])&&r(O);break;case 30:for(;f.length>0&&(n=v,o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),v=a+f.shift(),m=i+(1===f.length?f.shift():0),p.curveTo(n,o,a,i,v,m),0!==f.length);)n=v+f.shift(),o=m,a=n+f.shift(),i=o+f.shift(),m=i+f.shift(),v=a+(1===f.length?f.shift():0),p.curveTo(n,o,a,i,v,m);break;case 31:for(;f.length>0&&(n=v+f.shift(),o=m,a=n+f.shift(),i=o+f.shift(),m=i+f.shift(),v=a+(1===f.length?f.shift():0),p.curveTo(n,o,a,i,v,m),0!==f.length);)n=v,o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),v=a+f.shift(),m=i+(1===f.length?f.shift():0),p.curveTo(n,o,a,i,v,m);break;default:A<32?console.log("Glyph "+t.index+": unknown operator "+A):A<247?f.push(A-139):A<251?(C=c[D],D+=1,f.push(256*(A-247)+C+108)):A<255?(C=c[D],D+=1,f.push(256*-(A-251)-C-108)):(C=c[D],y=c[D+1],w=c[D+2],L=c[D+3],D+=4,f.push((C<<24|y<<16|w<<8|L)/65536))}}}(r),t.advanceWidth=b,p}function Ke(e,t){var r,n=ke.indexOf(e);return n>=0&&(r=n),(n=t.indexOf(e))>=0?r=n+ke.length:(r=ke.length+t.length,t.push(e)),r}function Je(e,t,r){for(var n={},o=0;o=n)throw new Error("CFF table CID Font FDSelect has bad FD index value "+o+" (FD count "+n+")");a.push(o)}else{if(3!==s)throw new Error("CFF Table CID Font FDSelect table has unsupported format "+s);var c,l=i.parseCard16(),p=i.parseCard16();if(0!==p)throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+p);for(var f=0;f=n)throw new Error("CFF table CID Font FDSelect has bad FD index value "+o+" (FD count "+n+")");if(c>r)throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID "+c);for(;p=1&&(r.ulCodePageRange1=n.parseULong(),r.ulCodePageRange2=n.parseULong()),r.version>=2&&(r.sxHeight=n.parseShort(),r.sCapHeight=n.parseShort(),r.usDefaultChar=n.parseUShort(),r.usBreakChar=n.parseUShort(),r.usMaxContent=n.parseUShort()),r},Rt=function(e){return new he.Table("OS/2",[{name:"version",type:"USHORT",value:3},{name:"xAvgCharWidth",type:"SHORT",value:0},{name:"usWeightClass",type:"USHORT",value:0},{name:"usWidthClass",type:"USHORT",value:0},{name:"fsType",type:"USHORT",value:0},{name:"ySubscriptXSize",type:"SHORT",value:650},{name:"ySubscriptYSize",type:"SHORT",value:699},{name:"ySubscriptXOffset",type:"SHORT",value:0},{name:"ySubscriptYOffset",type:"SHORT",value:140},{name:"ySuperscriptXSize",type:"SHORT",value:650},{name:"ySuperscriptYSize",type:"SHORT",value:699},{name:"ySuperscriptXOffset",type:"SHORT",value:0},{name:"ySuperscriptYOffset",type:"SHORT",value:479},{name:"yStrikeoutSize",type:"SHORT",value:49},{name:"yStrikeoutPosition",type:"SHORT",value:258},{name:"sFamilyClass",type:"SHORT",value:0},{name:"bFamilyType",type:"BYTE",value:0},{name:"bSerifStyle",type:"BYTE",value:0},{name:"bWeight",type:"BYTE",value:0},{name:"bProportion",type:"BYTE",value:0},{name:"bContrast",type:"BYTE",value:0},{name:"bStrokeVariation",type:"BYTE",value:0},{name:"bArmStyle",type:"BYTE",value:0},{name:"bLetterform",type:"BYTE",value:0},{name:"bMidline",type:"BYTE",value:0},{name:"bXHeight",type:"BYTE",value:0},{name:"ulUnicodeRange1",type:"ULONG",value:0},{name:"ulUnicodeRange2",type:"ULONG",value:0},{name:"ulUnicodeRange3",type:"ULONG",value:0},{name:"ulUnicodeRange4",type:"ULONG",value:0},{name:"achVendID",type:"CHARARRAY",value:"XXXX"},{name:"fsSelection",type:"USHORT",value:0},{name:"usFirstCharIndex",type:"USHORT",value:0},{name:"usLastCharIndex",type:"USHORT",value:0},{name:"sTypoAscender",type:"SHORT",value:0},{name:"sTypoDescender",type:"SHORT",value:0},{name:"sTypoLineGap",type:"SHORT",value:0},{name:"usWinAscent",type:"USHORT",value:0},{name:"usWinDescent",type:"USHORT",value:0},{name:"ulCodePageRange1",type:"ULONG",value:0},{name:"ulCodePageRange2",type:"ULONG",value:0},{name:"sxHeight",type:"SHORT",value:0},{name:"sCapHeight",type:"SHORT",value:0},{name:"usDefaultChar",type:"USHORT",value:0},{name:"usBreakChar",type:"USHORT",value:0},{name:"usMaxContext",type:"USHORT",value:0}],e)},Pt=function(e){for(var t=0;t=r.begin&&e=Te.length){var i=n.parseChar();r.names.push(n.parseString(i))}break;case 2.5:r.numberOfGlyphs=n.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;st.value.tag?1:-1})),t.fields=t.fields.concat(n),t.fields=t.fields.concat(o),t}function Wt(e,t,r){for(var n=0;n0)return e.glyphs.get(o).getMetrics()}return r}function qt(e){for(var t=0,r=0;rv||void 0===t)&&v>0&&(t=v),c 123 are reserved for internal usage");h|=1<0?lt(M):void 0,I=Dt(),N=nt(e.glyphs,{version:e.getEnglishName("version"),fullName:T,familyName:O,weightName:E,postScriptName:U,unitsPerEm:e.unitsPerEm,fontBBox:[0,y.yMin,y.ascender,y.advanceWidthMax]}),B=e.metas&&Object.keys(e.metas).length>0?Ht(e.metas):void 0,F=[b,x,S,w,D,k,I,N,L];A&&F.push(A),e.tables.gsub&&F.push(Ft(e.tables.gsub)),B&&F.push(B);for(var G=Zt(F),H=jt(G.encode()),_=G.fields,j=!1,z=0;z<_.length;z+=1)if("head table"===_[z].name){_[z].value.checkSumAdjustment=2981146554-H,j=!0;break}if(!j)throw new Error("Could not find head table with checkSum to adjust.");return G};function Xt(e,t){for(var r=0,n=e.length-1;r<=n;){var o=r+n>>>1,a=e[o].tag;if(a===t)return o;a>>1,a=e[o];if(a===t)return o;a>>1,i=(r=e[a]).start;if(i===t)return r;i0)return t>(r=e[n-1]).end?0:r}function Kt(e,t){this.font=e,this.tableName=t}function Jt(e){Kt.call(this,e,"gpos")}function Qt(e){Kt.call(this,e,"gsub")}function er(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n0?(a=e.parseByte(),0==(t&o)&&(a=-a),a=r+a):a=(t&o)>0?r:r+e.parseShort(),a}function ar(e,t,r){var n,o,a=new xe.Parser(t,r);if(e.numberOfContours=a.parseShort(),e._xMin=a.parseShort(),e._yMin=a.parseShort(),e._xMax=a.parseShort(),e._yMax=a.parseShort(),e.numberOfContours>0){for(var i=e.endPointIndices=[],s=0;s0)for(var p=a.parseByte(),f=0;f0){var h,d=[];if(c>0){for(var g=0;g=0,d.push(h);for(var v=0,m=0;m0?(2&n)>0?(x.dx=a.parseShort(),x.dy=a.parseShort()):x.matchedPoints=[a.parseUShort(),a.parseUShort()]:(2&n)>0?(x.dx=a.parseChar(),x.dy=a.parseChar()):x.matchedPoints=[a.parseByte(),a.parseByte()],(8&n)>0?x.xScale=x.yScale=a.parseF2Dot14():(64&n)>0?(x.xScale=a.parseF2Dot14(),x.yScale=a.parseF2Dot14()):(128&n)>0&&(x.xScale=a.parseF2Dot14(),x.scale01=a.parseF2Dot14(),x.scale10=a.parseF2Dot14(),x.yScale=a.parseF2Dot14()),e.components.push(x),b=!!(32&n)}if(256&n){e.instructionLength=a.parseUShort(),e.instructions=[];for(var S=0;St.points.length-1||n.matchedPoints[1]>o.points.length-1)throw Error("Matched points out of range in "+t.name);var i=t.points[n.matchedPoints[0]],s=o.points[n.matchedPoints[1]],u={xScale:n.xScale,scale01:n.scale01,scale10:n.scale10,yScale:n.yScale,dx:0,dy:0};s=ir([s],u)[0],u.dx=i.x-s.x,u.dy=i.y-s.y,a=ir(o.points,u)}t.points=t.points.concat(a)}}return sr(t.points)}Kt.prototype={searchTag:Xt,binSearch:Yt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map((function(e){return e.tag})):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r=0)return n[o].script;if(t){var a={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return n.splice(-1-o,0,a),a.script}}},getLangSysTable:function(e,t,r){var n=this.getScriptTable(e,r);if(n){if(!t||"dflt"===t||"DFLT"===t)return n.defaultLangSys;var o=Xt(n.langSysRecords,t);if(o>=0)return n.langSysRecords[o].langSys;if(r){var a={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return n.langSysRecords.splice(-1-o,0,a),a.langSys}}},getFeatureTable:function(e,t,r,n){var o=this.getLangSysTable(e,t,n);if(o){for(var a,i=o.featureIndexes,s=this.font.tables[this.tableName].features,u=0;u=s[c-1].tag,"Features must be added in alphabetical order."),a={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(a),i.push(c),a.feature}}},getLookupTables:function(e,t,r,n,o){var a=this.getFeatureTable(e,t,r,o),i=[];if(a){for(var s,u=a.lookupListIndexes,c=this.font.tables[this.tableName].lookups,l=0;l=0?r:-1;case 2:var n=$t(e.ranges,t);return n?n.index+t-n.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,n=0;n=0){for(var l=a.ligatureSets[c],p=0;p=176&&r<=183)o+=r-176+1;else if(r>=184&&r<=191)o+=2*(r-184+1);else if(t&&1===a&&27===r)break}while(a>0);e.ip=o}function Mr(e,t){exports.DEBUG&&console.log(t.step,"SVTCA["+e.axis+"]"),t.fv=t.pv=t.dpv=e}function Dr(e,t){exports.DEBUG&&console.log(t.step,"SPVTCA["+e.axis+"]"),t.pv=t.dpv=e}function Ar(e,t){exports.DEBUG&&console.log(t.step,"SFVTCA["+e.axis+"]"),t.fv=e}function Ir(e,t){var r,n,o=t.stack,a=o.pop(),i=o.pop(),s=t.z2[a],u=t.z1[i];exports.DEBUG&&console.log("SPVTL["+e+"]",a,i),e?(r=s.y-u.y,n=u.x-s.x):(r=u.x-s.x,n=u.y-s.y),t.pv=t.dpv=kr(r,n)}function Nr(e,t){var r,n,o=t.stack,a=o.pop(),i=o.pop(),s=t.z2[a],u=t.z1[i];exports.DEBUG&&console.log("SFVTL["+e+"]",a,i),e?(r=s.y-u.y,n=u.x-s.x):(r=u.x-s.x,n=u.y-s.y),t.fv=kr(r,n)}function Br(e){exports.DEBUG&&console.log(e.step,"POP[]"),e.stack.pop()}function Fr(e,t){var r=t.stack.pop(),n=t.z0[r],o=t.fv,a=t.pv;exports.DEBUG&&console.log(t.step,"MDAP["+e+"]",r);var i=a.distance(n,Er);e&&(i=t.round(i)),o.setRelative(n,Er,i,a),o.touch(n),t.rp0=t.rp1=r}function Gr(e,t){var r,n,o,a=t.z2,i=a.length-2;exports.DEBUG&&console.log(t.step,"IUP["+e.axis+"]");for(var s=0;s1?"loop "+(t.loop-s)+": ":"")+"SHP["+(e?"rp1":"rp2")+"]",c)}t.loop=1}function _r(e,t){var r=t.stack,n=e?t.rp1:t.rp2,o=(e?t.z0:t.z1)[n],a=t.fv,i=t.pv,s=r.pop(),u=t.z2[t.contours[s]],c=u;exports.DEBUG&&console.log(t.step,"SHC["+e+"]",s);var l=i.distance(o,o,!1,!0);do{c!==o&&a.setRelative(c,c,l,i),c=c.nextPointOnContour}while(c!==u)}function jr(e,t){var r,n,o=t.stack,a=e?t.rp1:t.rp2,i=(e?t.z0:t.z1)[a],s=t.fv,u=t.pv,c=o.pop();switch(exports.DEBUG&&console.log(t.step,"SHZ["+e+"]",c),c){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error("Invalid zone")}for(var l=u.distance(i,i,!1,!0),p=r.length-2,f=0;f",s),t.stack.push(Math.round(64*s))}function Vr(e,t){var r=t.stack,n=r.pop(),o=t.fv,a=t.pv,i=t.ppem,s=t.deltaBase+16*(e-1),u=t.deltaShift,c=t.z0;exports.DEBUG&&console.log(t.step,"DELTAP["+e+"]",n,r);for(var l=0;l>4)===i){var h=(15&f)-8;h>=0&&h++,exports.DEBUG&&console.log(t.step,"DELTAPFIX",p,"by",h*u);var d=c[p];o.setRelative(d,d,h*u,a)}}}function Xr(e,t){var r=t.stack,n=r.pop();exports.DEBUG&&console.log(t.step,"ROUND[]"),r.push(64*t.round(n/64))}function Yr(e,t){var r=t.stack,n=r.pop(),o=t.ppem,a=t.deltaBase+16*(e-1),i=t.deltaShift;exports.DEBUG&&console.log(t.step,"DELTAC["+e+"]",n,r);for(var s=0;s>4)===o){var l=(15&c)-8;l>=0&&l++;var p=l*i;exports.DEBUG&&console.log(t.step,"DELTACFIX",u,"by",p),t.cvt[u]+=p}}}function $r(e,t){var r,n,o=t.stack,a=o.pop(),i=o.pop(),s=t.z2[a],u=t.z1[i];exports.DEBUG&&console.log(t.step,"SDPVTL["+e+"]",a,i),e?(r=s.y-u.y,n=u.x-s.x):(r=u.x-s.x,n=u.y-s.y),t.dpv=kr(r,n)}function Kr(e,t){var r=t.stack,n=t.prog,o=t.ip;exports.DEBUG&&console.log(t.step,"PUSHB["+e+"]");for(var a=0;a=0?1:-1,s=Math.abs(s),e&&(c=a.cvt[p],n&&Math.abs(s-c)":"_")+(n?"R":"_")+(0===o?"Gr":1===o?"Bl":2===o?"Wh":"")+"]",e?p+"("+a.cvt[p]+","+c+")":"",f,"(d =",i,"->",u*s,")"),a.rp1=a.rp0,a.rp2=f,t&&(a.rp0=f)}function en(e){this.char=e,this.state={},this.activeState=null}function tn(e,t,r){this.contextName=r,this.startIndex=e,this.endOffset=t}function rn(e,t,r){this.contextName=e,this.openRange=null,this.ranges=[],this.checkStart=t,this.checkEnd=r}function nn(e,t){this.context=e,this.index=t,this.length=e.length,this.current=e[t],this.backtrack=e.slice(0,t),this.lookahead=e.slice(t+1)}function on(e){this.eventId=e,this.subscribers=[]}function an(e){var t=this,r=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];r.forEach((function(e){Object.defineProperty(t.events,e,{value:new on(e)})})),e&&r.forEach((function(r){var n=e[r];"function"==typeof n&&t.events[r].subscribe(n)})),["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"].forEach((function(e){t.events[e].subscribe(t.updateContextsRanges)}))}function sn(e){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],an.call(this,e)}function un(e){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(e)}function cn(e){return/[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(e)}function ln(e){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(e)}function pn(e){return/[A-z]/.test(e)}function fn(e){this.font=e,this.features={}}function hn(e){this.id=e.id,this.tag=e.tag,this.substitution=e.substitution}function dn(e,t){if(!e)return-1;switch(t.format){case 1:return t.glyphs.indexOf(e);case 2:for(var r=t.ranges,n=0;n=o.start&&e<=o.end){var a=e-o.start;return o.index+a}}break;default:return-1}return-1}function gn(e,t){return-1===dn(e,t.coverage)?null:e+t.deltaGlyphId}function vn(e,t){var r=dn(e,t.coverage);return-1===r?null:t.substitute[r]}function mn(e,t){for(var r=[],n=0;n2)){var r=this.font,n=this._prepState;if(!n||n.ppem!==t){var o=this._fpgmState;if(!o){Ur.prototype=Tr,(o=this._fpgmState=new Ur("fpgm",r.tables.fpgm)).funcs=[],o.font=r,exports.DEBUG&&(console.log("---EXEC FPGM---"),o.step=-1);try{lr(o)}catch(e){return console.log("Hinting error in FPGM:"+e),void(this._errorState=3)}}Ur.prototype=o,(n=this._prepState=new Ur("prep",r.tables.prep)).ppem=t;var a=r.tables.cvt;if(a)for(var i=n.cvt=new Array(a.length),s=t/r.unitsPerEm,u=0;u1))try{return pr(e,n)}catch(e){return this._errorState<1&&(console.log("Hinting error:"+e),console.log("Note: further hinting errors are silenced")),void(this._errorState=1)}}},pr=function(e,t){var r,n,o,a=t.ppem/t.font.unitsPerEm,i=a,s=e.components;if(Ur.prototype=t,s){var u=t.font;n=[],r=[];for(var c=0;c1?"loop "+(e.loop-r)+": ":"")+"SHPIX[]",i,o),n.setRelative(s,s,o),n.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,n=e.rp2,o=e.loop,a=e.z0[r],i=e.z1[n],s=e.fv,u=e.dpv,c=e.z2;o--;){var l=t.pop(),p=c[l];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-o)+": ":"")+"IP[]",l,r,"<->",n),s.interpolate(p,a,i,u),s.touch(p)}e.loop=1},zr.bind(void 0,0),zr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,n=e.z0[r],o=e.loop,a=e.fv,i=e.pv,s=e.z1;o--;){var u=t.pop(),c=s[u];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-o)+": ":"")+"ALIGNRP[]",u),a.setRelative(c,n,0,i),a.touch(c)}e.loop=1},function(e){exports.DEBUG&&console.log(e.step,"RTDG[]"),e.round=mr},Zr.bind(void 0,0),Zr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,n=e.stack,o=t[++r];exports.DEBUG&&console.log(e.step,"NPUSHB[]",o);for(var a=0;ar?1:0)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"GTEQ[]",r,n),t.push(n>=r?1:0)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"EQ[]",r,n),t.push(r===n?1:0)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"NEQ[]",r,n),t.push(r!==n?1:0)},function(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"ODD[]",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"EVEN[]",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"IF[]",t),t||(Pr(e,!0),exports.DEBUG&&console.log(e.step,"EIF[]"))},function(e){exports.DEBUG&&console.log(e.step,"EIF[]")},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"AND[]",r,n),t.push(r&&n?1:0)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"OR[]",r,n),t.push(r||n?1:0)},function(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"NOT[]",r),t.push(r?0:1)},Vr.bind(void 0,1),function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SDB[]",t),e.deltaBase=t},function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SDS[]",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"ADD[]",r,n),t.push(n+r)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"SUB[]",r,n),t.push(n-r)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"DIV[]",r,n),t.push(64*n/r)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"MUL[]",r,n),t.push(n*r/64)},function(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"ABS[]",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"NEG[]",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"FLOOR[]",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"CEILING[]",r),t.push(64*Math.ceil(r/64))},Xr.bind(void 0,0),Xr.bind(void 0,1),Xr.bind(void 0,2),Xr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"WCVTF[]",r,n),e.cvt[n]=r*e.ppem/e.font.unitsPerEm},Vr.bind(void 0,2),Vr.bind(void 0,3),Yr.bind(void 0,1),Yr.bind(void 0,2),Yr.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SROUND[]",r),e.round=xr,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error("invalid SROUND value")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error("invalid SROUND value")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"S45ROUND[]",r),e.round=xr,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error("invalid S45ROUND value")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error("invalid S45ROUND value")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){exports.DEBUG&&console.log(e.step,"ROFF[]"),e.round=gr},void 0,function(e){exports.DEBUG&&console.log(e.step,"RUTG[]"),e.round=yr},function(e){exports.DEBUG&&console.log(e.step,"RDTG[]"),e.round=br},Br,Br,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANCTRL[]",t)},$r.bind(void 0,0),$r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),n=0;exports.DEBUG&&console.log(e.step,"GETINFO[]",r),1&r&&(n=35),32&r&&(n|=4096),t.push(n)},void 0,function(e){var t=e.stack,r=t.pop(),n=t.pop(),o=t.pop();exports.DEBUG&&console.log(e.step,"ROLL[]"),t.push(n),t.push(r),t.push(o)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"MAX[]",r,n),t.push(Math.max(n,r))},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"MIN[]",r,n),t.push(Math.min(n,r))},function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANTYPE[]",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"INSTCTRL[]",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error("invalid INSTCTRL[] selector")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Kr.bind(void 0,1),Kr.bind(void 0,2),Kr.bind(void 0,3),Kr.bind(void 0,4),Kr.bind(void 0,5),Kr.bind(void 0,6),Kr.bind(void 0,7),Kr.bind(void 0,8),Jr.bind(void 0,1),Jr.bind(void 0,2),Jr.bind(void 0,3),Jr.bind(void 0,4),Jr.bind(void 0,5),Jr.bind(void 0,6),Jr.bind(void 0,7),Jr.bind(void 0,8),Qr.bind(void 0,0,0,0,0,0),Qr.bind(void 0,0,0,0,0,1),Qr.bind(void 0,0,0,0,0,2),Qr.bind(void 0,0,0,0,0,3),Qr.bind(void 0,0,0,0,1,0),Qr.bind(void 0,0,0,0,1,1),Qr.bind(void 0,0,0,0,1,2),Qr.bind(void 0,0,0,0,1,3),Qr.bind(void 0,0,0,1,0,0),Qr.bind(void 0,0,0,1,0,1),Qr.bind(void 0,0,0,1,0,2),Qr.bind(void 0,0,0,1,0,3),Qr.bind(void 0,0,0,1,1,0),Qr.bind(void 0,0,0,1,1,1),Qr.bind(void 0,0,0,1,1,2),Qr.bind(void 0,0,0,1,1,3),Qr.bind(void 0,0,1,0,0,0),Qr.bind(void 0,0,1,0,0,1),Qr.bind(void 0,0,1,0,0,2),Qr.bind(void 0,0,1,0,0,3),Qr.bind(void 0,0,1,0,1,0),Qr.bind(void 0,0,1,0,1,1),Qr.bind(void 0,0,1,0,1,2),Qr.bind(void 0,0,1,0,1,3),Qr.bind(void 0,0,1,1,0,0),Qr.bind(void 0,0,1,1,0,1),Qr.bind(void 0,0,1,1,0,2),Qr.bind(void 0,0,1,1,0,3),Qr.bind(void 0,0,1,1,1,0),Qr.bind(void 0,0,1,1,1,1),Qr.bind(void 0,0,1,1,1,2),Qr.bind(void 0,0,1,1,1,3),Qr.bind(void 0,1,0,0,0,0),Qr.bind(void 0,1,0,0,0,1),Qr.bind(void 0,1,0,0,0,2),Qr.bind(void 0,1,0,0,0,3),Qr.bind(void 0,1,0,0,1,0),Qr.bind(void 0,1,0,0,1,1),Qr.bind(void 0,1,0,0,1,2),Qr.bind(void 0,1,0,0,1,3),Qr.bind(void 0,1,0,1,0,0),Qr.bind(void 0,1,0,1,0,1),Qr.bind(void 0,1,0,1,0,2),Qr.bind(void 0,1,0,1,0,3),Qr.bind(void 0,1,0,1,1,0),Qr.bind(void 0,1,0,1,1,1),Qr.bind(void 0,1,0,1,1,2),Qr.bind(void 0,1,0,1,1,3),Qr.bind(void 0,1,1,0,0,0),Qr.bind(void 0,1,1,0,0,1),Qr.bind(void 0,1,1,0,0,2),Qr.bind(void 0,1,1,0,0,3),Qr.bind(void 0,1,1,0,1,0),Qr.bind(void 0,1,1,0,1,1),Qr.bind(void 0,1,1,0,1,2),Qr.bind(void 0,1,1,0,1,3),Qr.bind(void 0,1,1,1,0,0),Qr.bind(void 0,1,1,1,0,1),Qr.bind(void 0,1,1,1,0,2),Qr.bind(void 0,1,1,1,0,3),Qr.bind(void 0,1,1,1,1,0),Qr.bind(void 0,1,1,1,1,1),Qr.bind(void 0,1,1,1,1,2),Qr.bind(void 0,1,1,1,1,3)],en.prototype.setState=function(e,t){return this.state[e]=t,this.activeState={key:e,value:this.state[e]},this.activeState},en.prototype.getState=function(e){return this.state[e]||null},sn.prototype.inboundIndex=function(e){return e>=0&&e0&&e<=this.lookahead.length:return this.lookahead[e-1];default:return null}},sn.prototype.rangeToText=function(e){if(e instanceof tn)return this.getRangeTokens(e).map((function(e){return e.char})).join("")},sn.prototype.getText=function(){return this.tokens.map((function(e){return e.char})).join("")},sn.prototype.getContext=function(e){return this.registeredContexts[e]||null},sn.prototype.on=function(e,t){var r=this.events[e];return r?r.subscribe(t):null},sn.prototype.dispatch=function(e,t){var r=this,n=this.events[e];n instanceof on&&n.subscribers.forEach((function(e){e.apply(r,t||[])}))},sn.prototype.registerContextChecker=function(e,t,r){if(this.getContext(e))return{FAIL:"context name '"+e+"' is already registered."};if("function"!=typeof t)return{FAIL:"missing context start check."};if("function"!=typeof r)return{FAIL:"missing context end check."};var n=new rn(e,t,r);return this.registeredContexts[e]=n,this.contextCheckers.push(n),n},sn.prototype.getRangeTokens=function(e){var t=e.startIndex+e.endOffset;return[].concat(this.tokens.slice(e.startIndex,t))},sn.prototype.getContextRanges=function(e){var t=this.getContext(e);return t?t.ranges:{FAIL:"context checker '"+e+"' is not registered."}},sn.prototype.resetContextsRanges=function(){var e=this.registeredContexts;for(var t in e)e.hasOwnProperty(t)&&(e[t].ranges=[])},sn.prototype.updateContextsRanges=function(){this.resetContextsRanges();for(var e=this.tokens.map((function(e){return e.char})),t=0;t=0;r--){var n=t[r],o=cn(n),a=ln(n);if(!o&&!a)return!0;if(o)return!1}return!1}(a)&&(u|=1),function(e){if(cn(e.current))return!1;for(var t=0;t1&&console.warn("Only the first kern subtable is supported."),e.skip("uLong");var r=255&e.parseUShort();if(e.skip("uShort"),0===r){var n=e.parseUShort();e.skip("uShort",3);for(var o=0;oe.createElement("div",{className:"fallback-container"},e.createElement("div",{className:"info"},e.createElement("h1",null,"LogoMaker"))),wo=bo((()=>Promise.all([o.e(527),o.e(349),o.e(402),o.e(784)]).then(o.bind(o,2784))),{fallback:e.createElement(So,null)}),Lo=bo((()=>Promise.all([o.e(527),o.e(402),o.e(882)]).then(o.bind(o,8633))),{fallback:e.createElement(So,null)}),ko=()=>(e.useEffect((()=>{var e;(null===(e=window.logomaker)||void 0===e?void 0:e.googleAnalyticsCode)&&(h.ZP.initialize(window.logomaker.googleAnalyticsCode),h.ZP.set({anonymizeIp:!0})),document.fonts.ready.then((()=>{const e=new Set;document.fonts.forEach((t=>{if((0,y.I6)(t.family)){e.add(t.family);const r=v(t.family);r&&fetch(r,{method:"HEAD",mode:"cors"}).then((e=>e.ok?t.family:null))}}));const t=Array.from(e).map((e=>({font:e,path:v(e)}))).filter((e=>e.path)).map((async e=>{const t=await Jn.load(e.path||"");return{font:e.font,renderer:t}}));Promise.all(t).then((e=>{console.log(e),g.e.update((t=>{t.fonts.fontRenderers=e.reduce(((e,t)=>(e[t.font]=t.renderer,e)),{}),t.fonts.activeFonts=e.map((({font:e})=>e))}))}))}))}),[]),e.createElement(e.Fragment,null,e.createElement(n.UT,null,e.createElement(a.rs,null,e.createElement(a.AW,{path:"/creator"},e.createElement(wo,null)),e.createElement(a.AW,{path:"/showcase"},e.createElement(Lo,null)),e.createElement(a.AW,{path:"/fallback"},e.createElement(So,null)),e.createElement(a.AW,{path:"/"},e.createElement(d,null))))));window.addEventListener("load",(()=>{(0,r.render)(e.createElement(ko,null),document.querySelector("#themeisle-logo-maker-root"))}))})()})(); \ No newline at end of file +(()=>{var e,t,r={5079:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:()=>n})},8342:(e,t,r)=>{"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;tn})},7045:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3144);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.Z)(e,t)}},385:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,{Z:()=>n})},3144:(e,t,r)=>{"use strict";function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}r.d(t,{Z:()=>n})},841:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(9033),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,'.logo-maker.logo-maker-container{max-width:1470px;margin:15px auto;font-family:"Noto Sans",sans-serif}@media(max-width: 1440px){.logo-maker.logo-maker-container{max-width:90%}}@media(max-width: 600px){.logo-maker.logo-maker-container{max-width:100%;margin:15px 15px}}@media(max-width: 350px){.logo-maker.logo-maker-container{max-width:100%;margin:15px 3px}}.logo-maker .top-section{position:relative;text-align:center}.logo-maker .top-section .back{display:inline-block;position:absolute;left:0;visibility:visible}.logo-maker .top-section .back a{display:inline-flex;align-items:center;text-decoration:none}.logo-maker .top-section .back a p{color:#585858;text-transform:uppercase;font-size:14px;font-weight:600;margin-left:13px;padding-bottom:0px;margin-bottom:0px;margin-top:0px}@media(max-width: 600px){.logo-maker .top-section .back{visibility:hidden}}.logo-maker .top-section .logo-holder{display:inline-flex}.logo-maker .top-section .logo-holder img{max-width:134px;max-height:44px}.logo-maker .top-section .logo-holder a{max-height:44px}.logo-maker .top-section .logo-holder .logo-maker-name{margin-top:2.5px;height:44px;line-height:24.52px;display:inline-grid;align-content:center;font-size:18px;font-weight:700;color:#ff7f66;margin:1px 0 0 4px}@media(max-width: 600px){.logo-maker .top-section{text-align:left}}.logo-maker .content-section{margin-top:115px}.logo-maker .content-section .titles{text-align:center}.logo-maker .content-section .titles h1{color:#32456b;font-size:36px;font-weight:700;line-height:49.03px;margin:0 0 8px}@media(max-width: 600px){.logo-maker .content-section .titles h1{line-height:32.69px}}.logo-maker .content-section .titles p{color:#939393;font-size:18px;font-weight:500;line-height:24.52px;margin:0}@media(max-width: 600px){.logo-maker .content-section{margin-top:60px}.logo-maker .content-section .titles{text-align:left}.logo-maker .content-section .titles h1{font-size:24px}.logo-maker .content-section .titles p{font-size:16px;color:#393939}}.logo-maker .step1{margin:50px auto 25px;max-width:480px}.logo-maker .step1 label{display:block;font-size:14px;font-weight:500;line-height:19px;color:#6a6a6a;margin-bottom:8px}.logo-maker .step1 input{height:54px;width:100%;color:#393939;font-size:14px;font-weight:500;line-height:19.07px;font-family:"Noto Sans",sans-serif;padding:18px 13px;margin-bottom:20px;border:1px solid #e7e7e7;border-radius:4px}.logo-maker .step1 input:focus{outline:none;border-color:#43c2d1;transition:.3s ease all}.logo-maker .next{text-align:center}.logo-maker .next a{color:#fff;background-color:#43c2d1;text-decoration:none;text-transform:uppercase;font-size:14px;font-weight:700;line-height:36px;padding:14px 80px;border-radius:4px}@media(max-width: 600px){.logo-maker .next a{display:block;padding:7px}}@media(max-width: 600px){.logo-maker .step1{margin:35px auto 5px;max-width:100%}}',""]);const a=o},8676:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(9033),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".fallback-container{display:flex;align-items:center;justify-content:center;height:100vh}.fallback-container .info{text-align:center}.fallback-container .info h1{color:#ff7f66;animation:blinker 2s linear infinite;font-size:100px}@media(max-width: 600px){.fallback-container .info h1{font-size:72px}}@media(max-width: 350px){.fallback-container .info h1{font-size:40px}}@keyframes blinker{50%{opacity:0}}",""]);const a=o},6663:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(9033),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,"html{box-sizing:border-box;scroll-behavior:smooth}*,*:before,*:after{box-sizing:inherit}body{margin:0}.single-page-container,main{background-color:#fff}footer{display:none}.copyright{display:none}.svg-animations{transition:all .3s ease-out}",""]);const a=o},9033:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var a=0;a{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(o of t.entries())if(!r.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],r.get(o[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(o of t.entries())if(!r.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(t[o]!==r[o])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var i=a[o];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r}},5043:(e,t,r)=>{"use strict";r.d(t,{lX:()=>y,q_:()=>k,ob:()=>f,PP:()=>E,Ep:()=>p});var n=r(8342);function o(e){return"/"===e.charAt(0)}function a(e,t){for(var r=t,n=r+1,o=e.length;n=0;f--){var h=i[f];"."===h?a(i,f):".."===h?(a(i,f),p++):p&&(a(i,f),p--)}if(!c)for(;p--;p)i.unshift("..");!c||""===i[0]||i[0]&&o(i[0])||i.unshift("");var d=i.join("/");return r&&"/"!==d.substr(-1)&&(d+="/"),d}(s.pathname,i.pathname)):s.pathname=i.pathname:s.pathname||(s.pathname="/"),s}function h(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,n,o){if(null!=e){var a="function"==typeof e?e(t,r):e;"string"==typeof a?"function"==typeof n?n(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var r=!0;function n(){r&&e.apply(void 0,arguments)}return t.push(n),function(){r=!1,t=t.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,r=new Array(e),n=0;nt?r.splice(t,r.length-t,o):r.push(o),d({action:n,location:o,index:t,entries:r})}}))},replace:function(e,t){var n="REPLACE",o=f(e,t,g(),b.location);l.confirmTransitionTo(o,n,r,(function(e){e&&(b.entries[b.index]=o,d({action:n,location:o}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=b.index+e;return t>=0&&t{"use strict";var n=r(6237),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return n.isMemo(e)?i:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(d){var o=h(r);o&&o!==d&&e(t,o,n)}var i=l(r);p&&(i=i.concat(p(r)));for(var s=u(t),g=u(r),v=0;v{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},7720:(e,t,r)=>{var n=r(901);e.exports=function e(t,r,o){return n(r)||(o=r||o,r=[]),o=o||{},t instanceof RegExp?function(e,t){var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n{"use strict";var n=r(2134);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},9036:(e,t,r)=>{e.exports=r(6132)()},2134:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4800:(e,t,r)=>{"use strict";r.d(t,{yh:()=>ie});var n=r(1202),o=r.n(n),a=r(3804),i=r.n(a);function s(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:g(e)?2:v(e)?3:0}function f(e,t){return 2===p(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){return 2===p(e)?e.get(t):e[t]}function d(e,t,r){var n=p(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function g(e){return z&&e instanceof Map}function v(e){return Z&&e instanceof Set}function m(e){return e.o||e.t}function C(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=$(e);delete t[X];for(var r=Y(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=b),Object.freeze(e),t&&l(e,(function(e,t){return y(t,!0)}),!0)),e}function b(){s(2)}function x(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function S(e){var t=K[e];return t||s(18,e),t}function w(){return _}function L(e,t){t&&(S("Patches"),e.u=[],e.s=[],e.v=t)}function k(e){O(e),e.p.forEach(T),e.p=null}function O(e){e===_&&(_=e.l)}function E(e){return _={p:[],l:_,h:e,m:!0,_:0}}function T(e){var t=e[X];0===t.i||1===t.i?t.j():t.g=!0}function U(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.O||S("ES5").S(t,e,n),n?(r[X].P&&(k(t),s(4)),c(e)&&(e=R(t,e),t.l||M(t,e)),t.u&&S("Patches").M(r[X],e,t.u,t.s)):e=R(t,r,[]),k(t),t.u&&t.v(t.u,t.s),e!==q?e:void 0}function R(e,t,r){if(x(t))return t;var n=t[X];if(!n)return l(t,(function(o,a){return P(e,n,t,o,a,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return M(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=C(n.k):n.o;l(3===n.i?new Set(o):o,(function(t,a){return P(e,n,o,t,a,r)})),M(e,o,!1),r&&e.u&&S("Patches").R(n,r,e.u,e.s)}return n.o}function P(e,t,r,n,o,a){if(u(o)){var i=R(e,o,a&&t&&3!==t.i&&!f(t.D,n)?a.concat(n):void 0);if(d(r,n,i),!u(i))return;e.m=!1}if(c(o)&&!x(o)){if(!e.h.N&&e._<1)return;R(e,o),t&&t.A.l||M(e,o)}}function M(e,t,r){void 0===r&&(r=!1),e.h.N&&e.m&&y(t,r)}function D(e,t){var r=e[X];return(r?m(r):e)[t]}function A(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function I(e){e.P||(e.P=!0,e.l&&I(e.l))}function N(e){e.o||(e.o=C(e.t))}function B(e,t,r){var n=g(t)?S("MapSet").T(t,r):v(t)?S("MapSet").F(t,r):e.O?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:w(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=n,a=J;r&&(o=[n],a=Q);var i=Proxy.revocable(o,a),s=i.revoke,u=i.proxy;return n.k=u,n.j=s,u}(t,r):S("ES5").J(t,r);return(r?r.A:w()).p.push(n),n}function F(e){return u(e)||s(22,e),function e(t){if(!c(t))return t;var r,n=t[X],o=p(t);if(n){if(!n.P&&(n.i<4||!S("ES5").K(n)))return n.t;n.I=!0,r=G(t,o),n.I=!1}else r=G(t,o);return l(r,(function(t,o){n&&h(n.t,t)===o||d(r,t,e(o))})),3===o?new Set(r):r}(e)}function G(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return C(e)}var H,_,j="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),z="undefined"!=typeof Map,Z="undefined"!=typeof Set,W="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,q=j?Symbol.for("immer-nothing"):((H={})["immer-nothing"]=!0,H),V=j?Symbol.for("immer-draftable"):"__$immer_draftable",X=j?Symbol.for("immer-state"):"__$immer_state",Y=("undefined"!=typeof Symbol&&Symbol.iterator,"undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames),$=Object.getOwnPropertyDescriptors||function(e){var t={};return Y(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},K={},J={get:function(e,t){if(t===X)return e;var r=m(e);if(!f(r,t))return function(e,t,r){var n,o=A(t,r);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!c(n)?n:n===D(e.t,t)?(N(e),e.o[t]=B(e.A.h,n,e)):n},has:function(e,t){return t in m(e)},ownKeys:function(e){return Reflect.ownKeys(m(e))},set:function(e,t,r){var n=A(m(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=D(m(e),t),a=null==o?void 0:o[X];if(a&&a.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,o)&&(void 0!==r||f(e.t,t)))return!0;N(e),I(e)}return e.o[t]=r,e.D[t]=!0,!0},deleteProperty:function(e,t){return void 0!==D(e.t,t)||t in e.t?(e.D[t]=!1,N(e),I(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=m(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){s(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){s(12)}},Q={};l(J,(function(e,t){Q[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Q.deleteProperty=function(e,t){return J.deleteProperty.call(this,e[0],t)},Q.set=function(e,t,r){return J.set.call(this,e[0],t,r,e[0])};var ee=new(function(){function e(e){this.O=W,this.N=!0,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var t=e.prototype;return t.produce=function(e,t,r){if("function"==typeof e&&"function"!=typeof t){var n=t;t=e;var o=this;return function(e){var r=this;void 0===e&&(e=n);for(var a=arguments.length,i=Array(a>1?a-1:0),s=1;s1?r-1:0),a=1;a=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}var o=S("Patches").$;return u(e)?o(e,t):this.produce(e,(function(e){return o(e,t.slice(r+1))}))},e}()),te=ee.produce,re=ee.produceWithPatches.bind(ee),ne=(ee.setAutoFreeze.bind(ee),ee.setUseProxies.bind(ee),ee.applyPatches.bind(ee));function oe(e,t){const r=(0,a.useRef)();if(null==r.current&&(r.current=new ie(e)),void 0!==t){const n=(0,a.useRef)(t);o()(t,n)||(r.current=new ie(e))}return r.current}ee.createDraft.bind(ee),ee.finishDraft.bind(ee);const ae={storeOrdinal:0,batching:!1,flushStores:{}};!function(){function e(t){if(!c(t))return t;if(Array.isArray(t))return t.map(e);if(g(t))return new Map(Array.from(t.entries()).map((function(t){return[t[0],e(t[1])]})));if(v(t))return new Set(Array.from(t).map(e));var r=Object.create(Object.getPrototypeOf(t));for(var n in t)r[n]=e(t[n]);return r}function t(t){return u(t)?e(t):t}var r="add";!function(e,t){K[e]||(K[e]=t)}("Patches",{$:function(t,n){return n.forEach((function(n){for(var o=n.path,a=n.op,i=t,u=0;ue;this.internalOrdId=ae.storeOrdinal++}_setInternalOptions({ssr:e,reactionCreators:t=[]}){this.ssr=e,this.reactionCreators=t,this.reactions=t.map((e=>e(this)))}_getReactionCreators(){return this.reactionCreators}_instantiateReactions(){this.reactions=this.reactionCreators.map((e=>e(this)))}_getInitialState(){return this.createInitialState()}_updateStateWithoutReaction(e){this.currentState=e}_updateState(e,t=[]){this.currentState=e,this.batchState=void 0;for(const e of this.reactions)t.push(...e());if(!this.ssr){for(const e of this.clientSubscriptions)e();if(t.length>0){const e=new Set;for(const r of t)if(this.optimizedListenerPropertyMap[r])for(const t of this.optimizedListenerPropertyMap[r])e.add(t);for(const t of e.values())this.optimizedUpdateListeners[t]&&this.optimizedUpdateListeners[t]()}this.updateListeners.forEach((e=>e()))}}_addUpdateListener(e){this.updateListeners.push(e)}_addUpdateListenerOpt(e,t,r){this.optimizedUpdateListeners[t]=e;const n=r.map((e=>e.join("~._.~")));this.optimizedUpdateListenerPaths[t]=n;for(const e of n)null==this.optimizedListenerPropertyMap[e]?this.optimizedListenerPropertyMap[e]=[t]:this.optimizedListenerPropertyMap[e].push(t);this._optListenerCount++}_removeUpdateListener(e){this.updateListeners=this.updateListeners.filter((t=>t!==e))}_removeUpdateListenerOpt(e){const t=this.optimizedUpdateListenerPaths[e];for(const r of t)this.optimizedListenerPropertyMap[r]=this.optimizedListenerPropertyMap[r].filter((t=>t!==e));delete this.optimizedUpdateListenerPaths[e],delete this.optimizedUpdateListeners[e],this._optListenerCount--}listenToPatches(e){return this._patchListeners.push(e),()=>{this._patchListeners=this._patchListeners.filter((t=>t!==e))}}subscribe(e,t){if(!this.ssr){const r=function(e,t,r){let n=t(e.getRawState());return()=>{const a=e.getRawState(),i=t(a);o()(i,n)||(r(i,a,n),n=i)}}(this,e,t);return this.clientSubscriptions.push(r),()=>{this.clientSubscriptions=this.clientSubscriptions.filter((e=>e!==r))}}return()=>{console.warn("Pullstate: Subscriptions made on the server side are not registered - so therefor this call to unsubscribe does nothing.")}}createReaction(e,t,{runNow:r=!1,runNowWithSideEffects:n=!1}={}){const a=function(e,t){return r=>{let n=e(r.getRawState());return(a=!1)=>{const i=r.getRawState(),s=e(i);if(a||!o()(s,n))if(r._optListenerCount>0){const[e,o,a]=re(i,(e=>t(s,e,i,n)));if(r._updateStateWithoutReaction(e),n=s,o.length>0)return r._patchListeners.forEach((e=>e(o,a))),Object.keys(se(o))}else{if(r._patchListeners.length>0){const[e,o,a]=re(i,(e=>t(s,e,i,n)));o.length>0&&r._patchListeners.forEach((e=>e(o,a))),r._updateStateWithoutReaction(e)}else r._updateStateWithoutReaction(te(i,(e=>t(s,e,i,n))));n=s}return[]}}}(e,t);this.reactionCreators.push(a);const i=a(this);return this.reactions.push(i),(r||n)&&(i(!0),n&&!this.ssr&&this._updateState(this.currentState)),()=>{this.reactions=this.reactions.filter((e=>e!==i))}}getRawState(){return void 0!==this.batchState?this.batchState:this.currentState}useState(e,t){return function(e,t,r){const n=(0,a.useRef)({state:void 0,initialized:!1});n.current.initialized||(n.current.state=t?t(e.getRawState()):e.getRawState(),n.current.initialized=!0);const[,i]=(0,a.useState)(0);if((0,a.useEffect)((()=>{const r={shouldUpdate:!0};function a(){if(r.shouldUpdate){const a=t?t(e.getRawState()):e.getRawState();o()(n.current.state,a)||r.shouldUpdate&&(n.current.state=a,i((e=>e+1)))}}return e._addUpdateListener(a),a(),()=>{r.shouldUpdate=!1,e._removeUpdateListener(a)}}),null!=r?r:[]),void 0!==r){const i=(0,a.useRef)(r);o()(r,i)||(n.current.state=t(e.getRawState()))}return n.current.state}(this,e,t)}useLocalCopyInitial(e){return oe(this.createInitialState,e)}useLocalCopySnapshot(e){return oe(this.currentState,e)}flushBatch(e=!1){void 0!==this.batchState?this.batchState!==this.currentState&&this._updateState(this.batchState):e||console.error("Pullstate: Trying to flush batch state which was never created or updated on"),this.batchState=void 0}update(e,t){if(ae.batching){void 0===this.batchState&&(this.batchState=this.currentState,ae.flushStores[this.internalOrdId]=this);const r="function"==typeof e,[n,o,a]=ue(this.batchState,e,r);o.length>0&&(this._patchListeners.length>0||t)&&(t&&t(o,a),this._patchListeners.forEach((e=>e(o,a)))),this.batchState=n}else this.batchState=void 0,function(e,t,r){const n=e.getRawState(),o="function"==typeof t;if(e._optListenerCount>0){const[a,i,s]=ue(n,t,o);i.length>0&&(r&&r(i,s),e._patchListeners.forEach((e=>e(i,s))),e._updateState(a,Object.keys(se(i))))}else{let a;if(e._patchListeners.length>0||r){const[i,s,u]=ue(n,t,o);s.length>0&&(r&&r(s,u),e._patchListeners.forEach((e=>e(s,u)))),a=i}else a=te(n,(e=>o?t(e,n):t.reduce(((e,t)=>te(e,(r=>t(r,e)))),n)));a!==n&&e._updateState(a)}}(this,e,t)}replace(e){this._updateState(e)}applyPatches(e){!function(e,t){const r=e.getRawState(),n=ne(r,t);n!==r&&e._updateState(n,Object.keys(se(t)))}(this,e)}}function se(e,t={}){for(const r of e){let e;for(const n of r.path)e=e?`${e}~._.~${n}`:n,t[e]=1}return t}function ue(e,t,r){return r?re(e,(r=>t(r,e))):t.reduce((([e,t,r],n)=>{const o=re(e,(t=>n(t,e)));return t.push(...o[1]),r.push(...o[2]),[o[0],t,r]}),[e,[],[]])}var ce,le;let pe;!function(e){e.THREW_ERROR="THREW_ERROR",e.RETURNED_ERROR="RETURNED_ERROR",e.UNFINISHED="UNFINISHED",e.DORMANT="DORMANT"}(ce||(ce={})),function(e){e.WATCH_HIT_CACHE="WATCH_HIT_CACHE",e.BECKON_HIT_CACHE="BECKON_HIT_CACHE",e.RUN_HIT_CACHE="RUN_HIT_CACHE",e.READ_HIT_CACHE="READ_HIT_CACHE",e.READ_RUN="READ_RUN",e.SHORT_CIRCUIT="SHORT_CIRCUIT",e.DIRECT_RUN="DIRECT_RUN",e.BECKON_RUN="BECKON_RUN",e.CACHE_UPDATE="CACHE_UPDATE"}(le||(le={})),Error;try{pe=new Proxy({},{get:function(e,t){throw new Error(`Pullstate: Trying to access store (${String(t)}) inside async actions without the correct usage or setup.\nIf this error occurred on the server:\n* If using run(), make use of your created instance for this request: instance.runAsyncAction()\n* If using read(), useWatch(), useBeckon() etc. - make sure you have properly set up your \n\nIf this error occurred on the client:\n* Make sure you have created your "pullstateCore" object with all your stores, using createPullstateCore(), and are making use of instantiate() before rendering.`)}})}catch{pe={}}var fe;ce.UNFINISHED,i().createContext(null),function(e){e.WATCH="watch",e.BECKON="beckon"}(fe||(fe={}))},1631:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>ce});var n={};r.r(n),r.d(n,{addTrackers:()=>W,default:()=>oe,event:()=>Q,exception:()=>ee,ga:()=>V,initialize:()=>q,modalview:()=>K,outboundLink:()=>re,pageview:()=>$,plugin:()=>te,send:()=>Y,set:()=>X,testModeAPI:()=>ne,timing:()=>J});var o=r(3804),a=r.n(o),i=r(9036),s=r.n(i);function u(e){console.warn("[react-ga]",e)}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["to","target"])),{},{target:r,href:t,onClick:this.handleClick});return r===y&&(n.rel="".concat(n.rel?n.rel:""," noopener noreferrer").trim()),delete n.eventLabel,delete n.trackerNames,a().createElement("a",n)}}])&&h(t.prototype,r),s}(o.Component);function x(e){return"string"==typeof(t=e)&&-1!==t.indexOf("@")?(u("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e;var t}function S(e){return e&&e.toString().replace(/^\s+|\s+$/g,"")}C(b,"trackLink",(function(){u("ga tracking not enabled")})),b.propTypes={eventLabel:s().string.isRequired,target:s().string,to:s().string,onClick:s().func,trackerNames:s().arrayOf(s().string)},b.defaultProps={target:null,to:null,onClick:null,trackerNames:null};var w=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function L(e){return S(e).replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,t,r){return t>0&&t+e.length!==r.length&&e.search(w)>-1&&":"!==r.charAt(t-2)&&("-"!==r.charAt(t+e.length)||"-"===r.charAt(t-1))&&r.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)}))}var k=!1;function O(e){console.info("[react-ga]",e)}var E=[];const T={calls:E,ga:function(){for(var e=arguments.length,t=new Array(e),r=0;r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e||"";return(arguments.length>1?arguments[1]:void 0)&&(r=L(e)),t&&(r=x(r)),r}(e,B,H)}function z(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&(_.apply(void 0,t),N&&(O("called ga('arguments');"),O("with arguments: ".concat(JSON.stringify(t))))),window.ga}function X(e,t){e?"object"===M(e)?(0===Object.keys(e).length&&u("empty `fieldsObject` given to .set()"),z(t,"set",e),N&&(O("called ga('set', fieldsObject);"),O("with fieldsObject: ".concat(JSON.stringify(e))))):u("Expected `fieldsObject` arg to be an Object"):u("`fieldsObject` is required in .set()")}function Y(e,t){z(t,"send",e),N&&(O("called ga('send', fieldObject);"),O("with fieldObject: ".concat(JSON.stringify(e))),O("with trackers: ".concat(JSON.stringify(t))))}function $(e,t,r){if(e){var n=S(e);if(""!==n){var o={};if(r&&(o.title=r),z(t,"send",function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,r=e.variable,n=e.value,o=e.label,a=arguments.length>1?arguments[1]:void 0;if(t&&r&&"number"==typeof n){var i={hitType:"timing",timingCategory:j(t),timingVar:j(r),timingValue:n};o&&(i.timingLabel=j(o)),Y(i,a)}else u("args.category, args.variable AND args.value are required in timing() AND args.value has to be a number")}function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,r=e.action,n=e.label,o=e.value,a=e.nonInteraction,i=e.transport,s=U(e,["category","action","label","value","nonInteraction","transport"]),c=arguments.length>1?arguments[1]:void 0;if(t&&r){var l={hitType:"event",eventCategory:j(t),eventAction:j(r)};n&&(l.eventLabel=j(n)),void 0!==o&&("number"!=typeof o?u("Expected `args.value` arg to be a Number."):l.eventValue=o),void 0!==a&&("boolean"!=typeof a?u("`args.nonInteraction` must be a boolean."):l.nonInteraction=a),void 0!==i&&("string"!=typeof i?u("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(i)&&u("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),l.transport=i)),Object.keys(s).filter((function(e){return"dimension"===e.substr(0,"dimension".length)})).forEach((function(e){l[e]=s[e]})),Object.keys(s).filter((function(e){return"metric"===e.substr(0,"metric".length)})).forEach((function(e){l[e]=s[e]})),Y(l,c)}else u("args.category AND args.action are required in event()")}function ee(e,t){var r=e.description,n=e.fatal,o={hitType:"exception"};r&&(o.exDescription=j(r)),void 0!==n&&("boolean"!=typeof n?u("`args.fatal` must be a boolean."):o.exFatal=n),Y(o,t)}var te={require:function(e,t,r){if(e){var n=S(e);if(""!==n){var o=r?"".concat(r,".require"):"require";if(t){if("object"!==M(t))return void u("Expected `options` arg to be an Object");0===Object.keys(t).length&&u("Empty `options` given to .require()"),V(o,n,t),N&&O("called ga('require', '".concat(n,"', ").concat(JSON.stringify(t)))}else V(o,n),N&&O("called ga('require', '".concat(n,"');"))}else u("`name` cannot be an empty string in .require()")}else u("`name` is required in .require()")},execute:function(e,t){for(var r,n,o=arguments.length,a=new Array(o>2?o-2:0),i=2;i{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,C=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case p:case a:case s:case i:case h:return e;default:switch(e=e&&e.$$typeof){case c:case f:case v:case g:case u:return e;default:return t}}case o:return t}}}function S(e){return x(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=n,t.ForwardRef=f,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||x(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===i},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===s||e===i||e===h||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===C||e.$$typeof===y||e.$$typeof===b||e.$$typeof===m)},t.typeOf=x},6237:(e,t,r)=>{"use strict";e.exports=r(198)},7386:(e,t,r)=>{"use strict";r.d(t,{UT:()=>p,rU:()=>m});var n=r(8542),o=r(7045),a=r(3804),i=r.n(a),s=r(5043),u=(r(9036),r(8342)),c=r(385),l=r(8005);i().Component;var p=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o{"use strict";r.d(t,{AW:()=>S,F0:()=>C,rs:()=>w,s6:()=>m,LX:()=>x});var n=r(7045),o=r(3804),a=r.n(o),i=r(9036),s=r.n(i),u=(r(5043),1073741823),c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:{};function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(r,n){e=r,t.forEach((function(t){return t(e,n)}))}}}const p=a().createContext||function(e,t){var r,a,i,p="__create-react-context-"+((c[i="__global_unique_id__"]=(c[i]||0)+1)+"__"),f=function(e){function r(){var t;return(t=e.apply(this,arguments)||this).emitter=l(t.props.value),t}(0,n.Z)(r,e);var o=r.prototype;return o.getChildContext=function(){var e;return(e={})[p]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var r,n=this.props.value,o=e.value;((a=n)===(i=o)?0!==a||1/a==1/i:a!=a&&i!=i)?r=0:(r="function"==typeof t?t(n,o):u,0!=(r|=0)&&this.emitter.set(e.value,r))}var a,i},o.render=function(){return this.props.children},r}(o.Component);f.childContextTypes=((r={})[p]=s().object.isRequired,r);var h=function(t){function r(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,r){0!=((0|e.observedBits)&r)&&e.setState({value:e.getValue()})},e}(0,n.Z)(r,t);var o=r.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?u:t},o.componentDidMount=function(){this.context[p]&&this.context[p].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?u:e},o.componentWillUnmount=function(){this.context[p]&&this.context[p].off(this.onUpdate)},o.getValue=function(){return this.context[p]?this.context[p].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},r}(o.Component);return h.contextTypes=((a={})[p]=s().object,a),{Provider:f,Consumer:h}};var f=r(8005),h=r(8342),d=r(7720),g=r.n(d),v=(r(6237),r(385),r(2535),function(e){var t=p();return t.displayName="Router-History",t}()),m=function(e){var t=p();return t.displayName="Router",t}(),C=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={location:t.history.location},r._isMounted=!1,r._pendingLocation=null,t.staticContext||(r.unlisten=t.history.listen((function(e){r._isMounted?r.setState({location:e}):r._pendingLocation=e}))),r}(0,n.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var r=t.prototype;return r.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&this.unlisten()},r.render=function(){return a().createElement(m.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a().createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a().Component);a().Component,a().Component;var y={},b=0;function x(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var r=t,n=r.path,o=r.exact,a=void 0!==o&&o,i=r.strict,s=void 0!==i&&i,u=r.sensitive,c=void 0!==u&&u;return[].concat(n).reduce((function(t,r){if(!r&&""!==r)return null;if(t)return t;var n=function(e,t){var r=""+t.end+t.strict+t.sensitive,n=y[r]||(y[r]={});if(n[e])return n[e];var o=[],a={regexp:g()(e,o,t),keys:o};return b<1e4&&(n[e]=a,b++),a}(r,{end:a,strict:s,sensitive:c}),o=n.regexp,i=n.keys,u=o.exec(e);if(!u)return null;var l=u[0],p=u.slice(1),f=e===l;return a&&!f?null:{path:r,url:"/"===r&&""===l?"/":l,isExact:f,params:i.reduce((function(e,t,r){return e[t.name]=p[r],e}),{})}}),null)}var S=function(e){function t(){return e.apply(this,arguments)||this}return(0,n.Z)(t,e),t.prototype.render=function(){var e=this;return a().createElement(m.Consumer,null,(function(t){t||(0,f.Z)(!1);var r=e.props.location||t.location,n=e.props.computedMatch?e.props.computedMatch:e.props.path?x(r.pathname,e.props):t.match,o=(0,h.Z)({},t,{location:r,match:n}),i=e.props,s=i.children,u=i.component,c=i.render;return Array.isArray(s)&&0===s.length&&(s=null),a().createElement(m.Provider,{value:o},o.match?s?"function"==typeof s?s(o):s:u?a().createElement(u,o):c?c(o):null:"function"==typeof s?s(o):null)}))},t}(a().Component);a().Component;var w=function(e){function t(){return e.apply(this,arguments)||this}return(0,n.Z)(t,e),t.prototype.render=function(){var e=this;return a().createElement(m.Consumer,null,(function(t){t||(0,f.Z)(!1);var r,n,o=e.props.location||t.location;return a().Children.forEach(e.props.children,(function(e){if(null==n&&a().isValidElement(e)){r=e;var i=e.props.path||e.props.from;n=i?x(o.pathname,(0,h.Z)({},e.props,{path:i})):t.match}})),n?a().cloneElement(r,{location:o,computedMatch:n}):null}))},t}(a().Component);a().useContext},1332:(e,t,r)=>{"use strict";var n,o=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function i(e){for(var t=-1,r=0;r{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){if(!e)throw new Error("Invariant failed")}},5875:(e,t,r)=>{"use strict";r.d(t,{I6:()=>o});const n=JSON.parse('["Open Sans","Bangers","Roboto","Dancing Script","Henny Penny","Alfa Slab One","Oswald","Anton","Permanent Marker","Cinzel Decorative","Lato","Karla","Montserrat","Libre Baskerville","Bebas Neue","Fira Sans","Play","Crete Round","Rajdhani","Satisfy","Lobster Two","Orbitron","Parisienne","Playball","Noto Serif","Noto Sans","Lora","Source Serif Pro","Ubuntu","Lemonada","UnifrakturMaguntia","Oleo Script Swash Caps","Creepster"]');n.sort();const o=e=>n.includes(e)},3312:(e,t,r)=>{"use strict";r.d(t,{uO:()=>o,ZP:()=>a});const n={id:"logo-1",svg:'\n\t\n\t\n\t\n\t\n\t\n\t\t'},o=n,a=[n,{id:"logo-2",svg:'\n\t\n\n\n'},{id:"logo-3",svg:'\n\t\n\n\n\n'},{id:"logo-4",svg:'\n\t\n\n\n\n\n\n\n\n\n'},{id:"logo-5",svg:'\n\t\n\n\n\n\n\n\n\n\n'},{id:"logo-6",svg:'\n\t\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'},{id:"logo-7",svg:'\n\t\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'},{id:"logo-8",svg:'\n\t\n\n\n\n\n\n\n'},{id:"logo-9",svg:'\n\t\n \n \n \n \n'},{id:"logo-10",svg:'\n\t\n\n\n\n\n\n\n\n\n\n\n\n\n'}]},170:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(3804),o=r(7386);const a=e=>n.createElement("div",{className:"back"},n.createElement(o.rU,{className:"",to:e.to||"/start"},n.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("circle",{cx:"21",cy:"21",r:"20.5",fill:"white",stroke:"#E7E7E7"}),n.createElement("path",{d:"M23 17L19 21L23 25",stroke:"#585858",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),n.createElement("p",null,"Back")))},1422:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3804);const o=()=>n.createElement("div",{className:"logo-holder"},n.createElement("a",{href:"https://themeisle.com/"},n.createElement("img",{width:"134px",height:"44px",src:"https://mllj2j8xvfl0.i.optimole.com/d0cOXWA.d0eL~37102/w:auto/h:auto/q:90/https://s30246.pcdn.co/wp-content/uploads/2019/03/logo.png",alt:"Themeisle Logo"})),n.createElement("a",{className:"logo-maker-name"},"LogoMaker"))},1928:(e,t,r)=>{"use strict";r.d(t,{e:()=>n});const n=new(r(4800).yh)({fonts:{fontsStatus:"inactive",activeFonts:[],fontRenderers:{}}})},2347:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(3312);const o=new(r(4800).yh)(JSON.parse(sessionStorage.getItem("logo-maker-themeisle")||"null")||{container:{width:765,height:625,align:"align-top",viewbox:{x:0,y:0,width:250,height:250},style:{color:"#ABABCB"}},logo:{src:n.uO,width:100,height:100,style:{fill:"#FFFFFF"}},title:{text:"Optimole",style:{color:"#FFFFFF",fontSize:53,fontFamily:"Helvetica"}},slogan:{text:"An elegant choice",style:{color:"#FFFFFF",fontSize:24,fontFamily:"Helvetica"}}})},3804:e=>{"use strict";e.exports=window.React},7196:e=>{"use strict";e.exports=window.ReactDOM},7078:()=>{}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return r[e](a,a.exports,o),a.loaded=!0,a.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="logo-maker-plugin:",o.l=(r,n,a,i)=>{if(e[r])e[r].push(n);else{var s,u;if(void 0!==a)for(var c=document.getElementsByTagName("script"),l=0;l{s.onerror=s.onload=null,clearTimeout(h);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),u&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={290:0};o.f.j=(t,r)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var a=new Promise(((r,o)=>{n=e[t]=[r,o]}));r.push(n[2]=a);var i=o.p+o.u(t),s=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,a,[i,s,u]=r,c=0;for(n in s)o.o(s,n)&&(o.m[n]=s[n]);for(u&&u(o),t&&t(r);c{"use strict";var e=o(3804),t=o.n(e),r=o(7196),n=o(7386),a=o(8542),i=o(1332),s=o.n(i),u=o(6663);s()(u.Z,{insert:"head",singleton:!1}),u.Z.locals;var c=o(1422),l=o(2347),p=o(841);s()(p.Z,{insert:"head",singleton:!1}),p.Z.locals;var f=o(170),h=o(1631);const d=()=>{var t,r;return e.useEffect((()=>{var e;(null===(e=window.logomaker)||void 0===e?void 0:e.parentLink)||console.log("Parent link was not provided by WordPress. The back button from the start page will point to itself as default behaviour!"),h.ZP.pageview(window.location.pathname+window.location.hash+window.location.search)}),[]),e.createElement("div",{className:"logo-maker logo-maker-container"},e.createElement("div",{className:"top-section"},(null===(t=window.logomaker)||void 0===t?void 0:t.parentLink)?e.createElement("div",{className:"back"},e.createElement("a",{href:null===(r=window.logomaker)||void 0===r?void 0:r.parentLink},e.createElement("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{cx:"21",cy:"21",r:"20.5",fill:"white",stroke:"#E7E7E7"}),e.createElement("path",{d:"M23 17L19 21L23 25",stroke:"#585858",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),e.createElement("p",null,"Back"))):e.createElement(f.Z,null),e.createElement(c.Z,null)),e.createElement("div",{className:"content-section"},e.createElement("div",{className:"titles"},e.createElement("h1",null,"Add your business name"),e.createElement("p",null,"You can change this information after you designs have been created")),e.createElement("div",{className:"step1"},e.createElement("label",null,"Logo Text"),e.createElement("input",{type:"text",id:"input-logo-text",value:l.Z.useState((e=>e.title.text)),onChange:e=>{return t=e.target.value,void l.Z.update((e=>{e.title.text=t}));var t}}),e.createElement("label",null,"Slogan text (Optional)"),e.createElement("input",{type:"text",id:"input-logo-slogan",value:l.Z.useState((e=>e.slogan.text)),onChange:e=>{return t=e.target.value,void l.Z.update((e=>{e.slogan.text=t}));var t}})),e.createElement("div",{className:"next"},e.createElement(n.rU,{to:"/showcase"},"Next"))))};var g=o(1928);function v(e){if(window.logomaker.pluginURL){const t=e.split(" ").join("")+"-Regular.ttf";return window.logomaker.pluginURL+"plugin_build/font/"+t}return null}var m,C,y=o(5875);function b(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function x(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new b,this.dtree=new b}String.prototype.codePointAt||(C=function(e){if(null==this)throw TypeError();var t=String(this),r=t.length,n=e?Number(e):0;if(n!=n&&(n=0),!(n<0||n>=r)){var o,a=t.charCodeAt(n);return a>=55296&&a<=56319&&r>n+1&&(o=t.charCodeAt(n+1))>=56320&&o<=57343?1024*(a-55296)+o-56320+65536:a}},(m=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?m(String.prototype,"codePointAt",{value:C,configurable:!0,writable:!0}):String.prototype.codePointAt=C);var S=new b,w=new b,L=new Uint8Array(30),k=new Uint16Array(30),O=new Uint8Array(30),E=new Uint16Array(30),T=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),U=new b,R=new Uint8Array(320);function P(e,t,r,n){var o,a;for(o=0;o>>=1,t}function I(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<>>16-t;return e.tag>>>=t,e.bitcount-=t,n+r}function N(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<>>=1,++o,r+=t.table[o],n-=t.table[o]}while(n>=0);return e.tag=a,e.bitcount-=o,t.trans[r+n]}function B(e,t,r){var n,o,a,i,s,u;for(n=I(e,5,257),o=I(e,5,1),a=I(e,4,4),i=0;i<19;++i)R[i]=0;for(i=0;i8;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return-3;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,0}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(S,w),P(L,k,4,3),P(O,E,2,1),L[28]=0,k[28]=258;function H(e,t,r,n,o){return Math.pow(1-o,3)*e+3*Math.pow(1-o,2)*o*t+3*(1-o)*Math.pow(o,2)*r+Math.pow(o,3)*n}function _(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function j(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}function z(e){throw new Error(e)}function Z(e,t){e||z(t)}_.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},_.prototype.addPoint=function(e,t){"number"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),ethis.x2&&(this.x2=e)),"number"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))},_.prototype.addX=function(e){this.addPoint(e,null)},_.prototype.addY=function(e){this.addPoint(null,e)},_.prototype.addBezier=function(e,t,r,n,o,a,i,s){var u=[e,t],c=[r,n],l=[o,a],p=[i,s];this.addPoint(e,t),this.addPoint(i,s);for(var f=0;f<=1;f++){var h=6*u[f]-12*c[f]+6*l[f],d=-3*u[f]+9*c[f]-9*l[f]+3*p[f],g=3*c[f]-3*u[f];if(0!==d){var v=Math.pow(h,2)-4*g*d;if(!(v<0)){var m=(-h+Math.sqrt(v))/(2*d);0=0&&n>0&&(r+=" "),r+=t(o)}return r}e=void 0!==e?e:2;for(var n="",o=0;o"},j.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d",t),r};var W={fail:z,argument:Z,assert:Z},q=2147483648,V={},X={},Y={};function $(e){return function(){return e}}X.BYTE=function(e){return W.argument(e>=0&&e<=255,"Byte value should be between 0 and 255."),[e]},Y.BYTE=$(1),X.CHAR=function(e){return[e.charCodeAt(0)]},Y.CHAR=$(1),X.CHARARRAY=function(e){for(var t=[],r=0;r>8&255,255&e]},Y.USHORT=$(2),X.SHORT=function(e){return e>=32768&&(e=-(65536-e)),[e>>8&255,255&e]},Y.SHORT=$(2),X.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},Y.UINT24=$(3),X.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},Y.ULONG=$(4),X.LONG=function(e){return e>=q&&(e=-(2*q-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},Y.LONG=$(4),X.FIXED=X.ULONG,Y.FIXED=Y.ULONG,X.FWORD=X.SHORT,Y.FWORD=Y.SHORT,X.UFWORD=X.USHORT,Y.UFWORD=Y.USHORT,X.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},Y.LONGDATETIME=$(8),X.TAG=function(e){return W.argument(4===e.length,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},Y.TAG=$(4),X.Card8=X.BYTE,Y.Card8=Y.BYTE,X.Card16=X.USHORT,Y.Card16=Y.USHORT,X.OffSize=X.BYTE,Y.OffSize=Y.BYTE,X.SID=X.USHORT,Y.SID=Y.USHORT,X.NUMBER=function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?X.NUMBER16(e):X.NUMBER32(e)},Y.NUMBER=function(e){return X.NUMBER(e).length},X.NUMBER16=function(e){return[28,e>>8&255,255&e]},Y.NUMBER16=$(3),X.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},Y.NUMBER32=$(5),X.REAL=function(e){var t=e.toString(),r=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var n=parseFloat("1e"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*n)/n).toString()}for(var o="",a=0,i=t.length;a>8&255,t[t.length]=255&n}return t},Y.UTF16=function(e){return 2*e.length};var K={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-cyrillic":"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",macintosh:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"};V.MACSTRING=function(e,t,r,n){var o=K[n];if(void 0!==o){for(var a="",i=0;i=-128&&e<=127}function te(e,t,r){for(var n=0,o=e.length;t>8&255,u+256&255)}return a}X.MACSTRING=function(e,t){var r=function(e){if(!J)for(var t in J={},K)J[t]=new String(t);var r=J[e];if(void 0!==r){if(Q){var n=Q.get(r);if(void 0!==n)return n}var o=K[e];if(void 0!==o){for(var a={},i=0;i=128&&void 0===(a=r[a]))return;n[o]=a}return n}},Y.MACSTRING=function(e,t){var r=X.MACSTRING(e,t);return void 0!==r?r.length:0},X.VARDELTAS=function(e){for(var t=0,r=[];t=-128&&n<=127?re(e,t,r):ne(e,t,r)}return r},X.INDEX=function(e){for(var t=1,r=[t],n=[],o=0;o>8,t[p+1]=255&f,t=t.concat(n[l])}return t},Y.TABLE=function(e){for(var t=0,r=e.fields.length,n=0;n0)return new ye(this.data,this.offset+t).parseStruct(e)},ye.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(t>0)return new ye(this.data,this.offset+t).parseStruct(e)},ye.prototype.parseListOfLists=function(e){for(var t=this.parseOffset16List(),r=t.length,n=this.relativeOffset,o=new Array(r),a=0;a=0;o-=1){var a=xe.getUShort(e,t+4+8*o),i=xe.getUShort(e,t+4+8*o+2);if(3===a&&(0===i||1===i||10===i)||0===a&&(0===i||1===i||2===i||3===i||4===i)){n=xe.getULong(e,t+4+8*o+4);break}}if(-1===n)throw new Error("No valid cmap sub-tables found.");var s=new xe.Parser(e,t+n);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var n=0;n>1,t.skip("uShort",3),e.glyphIndexMap={};for(var i=new xe.Parser(r,n+o+14),s=new xe.Parser(r,n+o+16+2*a),u=new xe.Parser(r,n+o+16+4*a),c=new xe.Parser(r,n+o+16+6*a),l=n+o+16+8*a,p=0;p0;t-=1)if(e.get(t).unicode>65535){console.log("Adding CMAP format 12 (needed!)"),r=!1;break}var n=[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:r?1:2},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:r?12:20}];r||(n=n.concat([{name:"cmap12PlatformID",type:"USHORT",value:3},{name:"cmap12EncodingID",type:"USHORT",value:10},{name:"cmap12Offset",type:"ULONG",value:0}])),n=n.concat([{name:"format",type:"USHORT",value:4},{name:"cmap4Length",type:"USHORT",value:0},{name:"language",type:"USHORT",value:0},{name:"segCountX2",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);var o=new he.Table("cmap",n);for(o.segments=[],t=0;t>4,a=15&n;if(15===o)break;if(t+=r[o],15===a)break;t+=r[a]}return parseFloat(t)}(e);if(t>=32&&t<=246)return t-139;if(t>=247&&t<=250)return 256*(t-247)+e.parseByte()+108;if(t>=251&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error("Invalid b0 "+t)}function je(e,t,r){t=void 0!==t?t:0;var n=new xe.Parser(e,t),o=[],a=[];for(r=void 0!==r?r:e.length;n.relativeOffset>1,f.length=0,d=!0}return function r(c){for(var C,y,w,L,k,O,E,T,U,R,P,M,D=0;D1&&!d&&(b=f.shift()+l,d=!0),m+=f.pop(),x(v,m);break;case 5:for(;f.length>0;)v+=f.shift(),m+=f.shift(),p.lineTo(v,m);break;case 6:for(;f.length>0&&(v+=f.shift(),p.lineTo(v,m),0!==f.length);)m+=f.shift(),p.lineTo(v,m);break;case 7:for(;f.length>0&&(m+=f.shift(),p.lineTo(v,m),0!==f.length);)v+=f.shift(),p.lineTo(v,m);break;case 8:for(;f.length>0;)n=v+f.shift(),o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),v=a+f.shift(),m=i+f.shift(),p.curveTo(n,o,a,i,v,m);break;case 10:k=f.pop()+u,(O=s[k])&&r(O);break;case 11:return;case 12:switch(A=c[D],D+=1,A){case 35:n=v+f.shift(),o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),E=a+f.shift(),T=i+f.shift(),U=E+f.shift(),R=T+f.shift(),P=U+f.shift(),M=R+f.shift(),v=P+f.shift(),m=M+f.shift(),f.shift(),p.curveTo(n,o,a,i,E,T),p.curveTo(U,R,P,M,v,m);break;case 34:n=v+f.shift(),o=m,a=n+f.shift(),i=o+f.shift(),E=a+f.shift(),T=i,U=E+f.shift(),R=i,P=U+f.shift(),M=m,v=P+f.shift(),p.curveTo(n,o,a,i,E,T),p.curveTo(U,R,P,M,v,m);break;case 36:n=v+f.shift(),o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),E=a+f.shift(),T=i,U=E+f.shift(),R=i,P=U+f.shift(),M=R+f.shift(),v=P+f.shift(),p.curveTo(n,o,a,i,E,T),p.curveTo(U,R,P,M,v,m);break;case 37:n=v+f.shift(),o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),E=a+f.shift(),T=i+f.shift(),U=E+f.shift(),R=T+f.shift(),P=U+f.shift(),M=R+f.shift(),Math.abs(P-v)>Math.abs(M-m)?v=P+f.shift():m=M+f.shift(),p.curveTo(n,o,a,i,E,T),p.curveTo(U,R,P,M,v,m);break;default:console.log("Glyph "+t.index+": unknown operator 1200"+A),f.length=0}break;case 14:f.length>0&&!d&&(b=f.shift()+l,d=!0),g&&(p.closePath(),g=!1);break;case 18:S();break;case 19:case 20:S(),D+=h+7>>3;break;case 21:f.length>2&&!d&&(b=f.shift()+l,d=!0),m+=f.pop(),x(v+=f.pop(),m);break;case 22:f.length>1&&!d&&(b=f.shift()+l,d=!0),x(v+=f.pop(),m);break;case 23:S();break;case 24:for(;f.length>2;)n=v+f.shift(),o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),v=a+f.shift(),m=i+f.shift(),p.curveTo(n,o,a,i,v,m);v+=f.shift(),m+=f.shift(),p.lineTo(v,m);break;case 25:for(;f.length>6;)v+=f.shift(),m+=f.shift(),p.lineTo(v,m);n=v+f.shift(),o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),v=a+f.shift(),m=i+f.shift(),p.curveTo(n,o,a,i,v,m);break;case 26:for(f.length%2&&(v+=f.shift());f.length>0;)n=v,o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),v=a,m=i+f.shift(),p.curveTo(n,o,a,i,v,m);break;case 27:for(f.length%2&&(m+=f.shift());f.length>0;)n=v+f.shift(),o=m,a=n+f.shift(),i=o+f.shift(),v=a+f.shift(),m=i,p.curveTo(n,o,a,i,v,m);break;case 28:C=c[D],y=c[D+1],f.push((C<<24|y<<16)>>16),D+=2;break;case 29:k=f.pop()+e.gsubrsBias,(O=e.gsubrs[k])&&r(O);break;case 30:for(;f.length>0&&(n=v,o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),v=a+f.shift(),m=i+(1===f.length?f.shift():0),p.curveTo(n,o,a,i,v,m),0!==f.length);)n=v+f.shift(),o=m,a=n+f.shift(),i=o+f.shift(),m=i+f.shift(),v=a+(1===f.length?f.shift():0),p.curveTo(n,o,a,i,v,m);break;case 31:for(;f.length>0&&(n=v+f.shift(),o=m,a=n+f.shift(),i=o+f.shift(),m=i+f.shift(),v=a+(1===f.length?f.shift():0),p.curveTo(n,o,a,i,v,m),0!==f.length);)n=v,o=m+f.shift(),a=n+f.shift(),i=o+f.shift(),v=a+f.shift(),m=i+(1===f.length?f.shift():0),p.curveTo(n,o,a,i,v,m);break;default:A<32?console.log("Glyph "+t.index+": unknown operator "+A):A<247?f.push(A-139):A<251?(C=c[D],D+=1,f.push(256*(A-247)+C+108)):A<255?(C=c[D],D+=1,f.push(256*-(A-251)-C-108)):(C=c[D],y=c[D+1],w=c[D+2],L=c[D+3],D+=4,f.push((C<<24|y<<16|w<<8|L)/65536))}}}(r),t.advanceWidth=b,p}function Ke(e,t){var r,n=ke.indexOf(e);return n>=0&&(r=n),(n=t.indexOf(e))>=0?r=n+ke.length:(r=ke.length+t.length,t.push(e)),r}function Je(e,t,r){for(var n={},o=0;o=n)throw new Error("CFF table CID Font FDSelect has bad FD index value "+o+" (FD count "+n+")");a.push(o)}else{if(3!==s)throw new Error("CFF Table CID Font FDSelect table has unsupported format "+s);var c,l=i.parseCard16(),p=i.parseCard16();if(0!==p)throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+p);for(var f=0;f=n)throw new Error("CFF table CID Font FDSelect has bad FD index value "+o+" (FD count "+n+")");if(c>r)throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID "+c);for(;p=1&&(r.ulCodePageRange1=n.parseULong(),r.ulCodePageRange2=n.parseULong()),r.version>=2&&(r.sxHeight=n.parseShort(),r.sCapHeight=n.parseShort(),r.usDefaultChar=n.parseUShort(),r.usBreakChar=n.parseUShort(),r.usMaxContent=n.parseUShort()),r},Rt=function(e){return new he.Table("OS/2",[{name:"version",type:"USHORT",value:3},{name:"xAvgCharWidth",type:"SHORT",value:0},{name:"usWeightClass",type:"USHORT",value:0},{name:"usWidthClass",type:"USHORT",value:0},{name:"fsType",type:"USHORT",value:0},{name:"ySubscriptXSize",type:"SHORT",value:650},{name:"ySubscriptYSize",type:"SHORT",value:699},{name:"ySubscriptXOffset",type:"SHORT",value:0},{name:"ySubscriptYOffset",type:"SHORT",value:140},{name:"ySuperscriptXSize",type:"SHORT",value:650},{name:"ySuperscriptYSize",type:"SHORT",value:699},{name:"ySuperscriptXOffset",type:"SHORT",value:0},{name:"ySuperscriptYOffset",type:"SHORT",value:479},{name:"yStrikeoutSize",type:"SHORT",value:49},{name:"yStrikeoutPosition",type:"SHORT",value:258},{name:"sFamilyClass",type:"SHORT",value:0},{name:"bFamilyType",type:"BYTE",value:0},{name:"bSerifStyle",type:"BYTE",value:0},{name:"bWeight",type:"BYTE",value:0},{name:"bProportion",type:"BYTE",value:0},{name:"bContrast",type:"BYTE",value:0},{name:"bStrokeVariation",type:"BYTE",value:0},{name:"bArmStyle",type:"BYTE",value:0},{name:"bLetterform",type:"BYTE",value:0},{name:"bMidline",type:"BYTE",value:0},{name:"bXHeight",type:"BYTE",value:0},{name:"ulUnicodeRange1",type:"ULONG",value:0},{name:"ulUnicodeRange2",type:"ULONG",value:0},{name:"ulUnicodeRange3",type:"ULONG",value:0},{name:"ulUnicodeRange4",type:"ULONG",value:0},{name:"achVendID",type:"CHARARRAY",value:"XXXX"},{name:"fsSelection",type:"USHORT",value:0},{name:"usFirstCharIndex",type:"USHORT",value:0},{name:"usLastCharIndex",type:"USHORT",value:0},{name:"sTypoAscender",type:"SHORT",value:0},{name:"sTypoDescender",type:"SHORT",value:0},{name:"sTypoLineGap",type:"SHORT",value:0},{name:"usWinAscent",type:"USHORT",value:0},{name:"usWinDescent",type:"USHORT",value:0},{name:"ulCodePageRange1",type:"ULONG",value:0},{name:"ulCodePageRange2",type:"ULONG",value:0},{name:"sxHeight",type:"SHORT",value:0},{name:"sCapHeight",type:"SHORT",value:0},{name:"usDefaultChar",type:"USHORT",value:0},{name:"usBreakChar",type:"USHORT",value:0},{name:"usMaxContext",type:"USHORT",value:0}],e)},Pt=function(e){for(var t=0;t=r.begin&&e=Te.length){var i=n.parseChar();r.names.push(n.parseString(i))}break;case 2.5:r.numberOfGlyphs=n.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;st.value.tag?1:-1})),t.fields=t.fields.concat(n),t.fields=t.fields.concat(o),t}function Wt(e,t,r){for(var n=0;n0)return e.glyphs.get(o).getMetrics()}return r}function qt(e){for(var t=0,r=0;rv||void 0===t)&&v>0&&(t=v),c 123 are reserved for internal usage");h|=1<0?lt(M):void 0,I=Dt(),N=nt(e.glyphs,{version:e.getEnglishName("version"),fullName:T,familyName:O,weightName:E,postScriptName:U,unitsPerEm:e.unitsPerEm,fontBBox:[0,y.yMin,y.ascender,y.advanceWidthMax]}),B=e.metas&&Object.keys(e.metas).length>0?Ht(e.metas):void 0,F=[b,x,S,w,D,k,I,N,L];A&&F.push(A),e.tables.gsub&&F.push(Ft(e.tables.gsub)),B&&F.push(B);for(var G=Zt(F),H=jt(G.encode()),_=G.fields,j=!1,z=0;z<_.length;z+=1)if("head table"===_[z].name){_[z].value.checkSumAdjustment=2981146554-H,j=!0;break}if(!j)throw new Error("Could not find head table with checkSum to adjust.");return G};function Xt(e,t){for(var r=0,n=e.length-1;r<=n;){var o=r+n>>>1,a=e[o].tag;if(a===t)return o;a>>1,a=e[o];if(a===t)return o;a>>1,i=(r=e[a]).start;if(i===t)return r;i0)return t>(r=e[n-1]).end?0:r}function Kt(e,t){this.font=e,this.tableName=t}function Jt(e){Kt.call(this,e,"gpos")}function Qt(e){Kt.call(this,e,"gsub")}function er(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n0?(a=e.parseByte(),0==(t&o)&&(a=-a),a=r+a):a=(t&o)>0?r:r+e.parseShort(),a}function ar(e,t,r){var n,o,a=new xe.Parser(t,r);if(e.numberOfContours=a.parseShort(),e._xMin=a.parseShort(),e._yMin=a.parseShort(),e._xMax=a.parseShort(),e._yMax=a.parseShort(),e.numberOfContours>0){for(var i=e.endPointIndices=[],s=0;s0)for(var p=a.parseByte(),f=0;f0){var h,d=[];if(c>0){for(var g=0;g=0,d.push(h);for(var v=0,m=0;m0?(2&n)>0?(x.dx=a.parseShort(),x.dy=a.parseShort()):x.matchedPoints=[a.parseUShort(),a.parseUShort()]:(2&n)>0?(x.dx=a.parseChar(),x.dy=a.parseChar()):x.matchedPoints=[a.parseByte(),a.parseByte()],(8&n)>0?x.xScale=x.yScale=a.parseF2Dot14():(64&n)>0?(x.xScale=a.parseF2Dot14(),x.yScale=a.parseF2Dot14()):(128&n)>0&&(x.xScale=a.parseF2Dot14(),x.scale01=a.parseF2Dot14(),x.scale10=a.parseF2Dot14(),x.yScale=a.parseF2Dot14()),e.components.push(x),b=!!(32&n)}if(256&n){e.instructionLength=a.parseUShort(),e.instructions=[];for(var S=0;St.points.length-1||n.matchedPoints[1]>o.points.length-1)throw Error("Matched points out of range in "+t.name);var i=t.points[n.matchedPoints[0]],s=o.points[n.matchedPoints[1]],u={xScale:n.xScale,scale01:n.scale01,scale10:n.scale10,yScale:n.yScale,dx:0,dy:0};s=ir([s],u)[0],u.dx=i.x-s.x,u.dy=i.y-s.y,a=ir(o.points,u)}t.points=t.points.concat(a)}}return sr(t.points)}Kt.prototype={searchTag:Xt,binSearch:Yt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map((function(e){return e.tag})):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r=0)return n[o].script;if(t){var a={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return n.splice(-1-o,0,a),a.script}}},getLangSysTable:function(e,t,r){var n=this.getScriptTable(e,r);if(n){if(!t||"dflt"===t||"DFLT"===t)return n.defaultLangSys;var o=Xt(n.langSysRecords,t);if(o>=0)return n.langSysRecords[o].langSys;if(r){var a={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return n.langSysRecords.splice(-1-o,0,a),a.langSys}}},getFeatureTable:function(e,t,r,n){var o=this.getLangSysTable(e,t,n);if(o){for(var a,i=o.featureIndexes,s=this.font.tables[this.tableName].features,u=0;u=s[c-1].tag,"Features must be added in alphabetical order."),a={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(a),i.push(c),a.feature}}},getLookupTables:function(e,t,r,n,o){var a=this.getFeatureTable(e,t,r,o),i=[];if(a){for(var s,u=a.lookupListIndexes,c=this.font.tables[this.tableName].lookups,l=0;l=0?r:-1;case 2:var n=$t(e.ranges,t);return n?n.index+t-n.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,n=0;n=0){for(var l=a.ligatureSets[c],p=0;p=176&&r<=183)o+=r-176+1;else if(r>=184&&r<=191)o+=2*(r-184+1);else if(t&&1===a&&27===r)break}while(a>0);e.ip=o}function Mr(e,t){exports.DEBUG&&console.log(t.step,"SVTCA["+e.axis+"]"),t.fv=t.pv=t.dpv=e}function Dr(e,t){exports.DEBUG&&console.log(t.step,"SPVTCA["+e.axis+"]"),t.pv=t.dpv=e}function Ar(e,t){exports.DEBUG&&console.log(t.step,"SFVTCA["+e.axis+"]"),t.fv=e}function Ir(e,t){var r,n,o=t.stack,a=o.pop(),i=o.pop(),s=t.z2[a],u=t.z1[i];exports.DEBUG&&console.log("SPVTL["+e+"]",a,i),e?(r=s.y-u.y,n=u.x-s.x):(r=u.x-s.x,n=u.y-s.y),t.pv=t.dpv=kr(r,n)}function Nr(e,t){var r,n,o=t.stack,a=o.pop(),i=o.pop(),s=t.z2[a],u=t.z1[i];exports.DEBUG&&console.log("SFVTL["+e+"]",a,i),e?(r=s.y-u.y,n=u.x-s.x):(r=u.x-s.x,n=u.y-s.y),t.fv=kr(r,n)}function Br(e){exports.DEBUG&&console.log(e.step,"POP[]"),e.stack.pop()}function Fr(e,t){var r=t.stack.pop(),n=t.z0[r],o=t.fv,a=t.pv;exports.DEBUG&&console.log(t.step,"MDAP["+e+"]",r);var i=a.distance(n,Er);e&&(i=t.round(i)),o.setRelative(n,Er,i,a),o.touch(n),t.rp0=t.rp1=r}function Gr(e,t){var r,n,o,a=t.z2,i=a.length-2;exports.DEBUG&&console.log(t.step,"IUP["+e.axis+"]");for(var s=0;s1?"loop "+(t.loop-s)+": ":"")+"SHP["+(e?"rp1":"rp2")+"]",c)}t.loop=1}function _r(e,t){var r=t.stack,n=e?t.rp1:t.rp2,o=(e?t.z0:t.z1)[n],a=t.fv,i=t.pv,s=r.pop(),u=t.z2[t.contours[s]],c=u;exports.DEBUG&&console.log(t.step,"SHC["+e+"]",s);var l=i.distance(o,o,!1,!0);do{c!==o&&a.setRelative(c,c,l,i),c=c.nextPointOnContour}while(c!==u)}function jr(e,t){var r,n,o=t.stack,a=e?t.rp1:t.rp2,i=(e?t.z0:t.z1)[a],s=t.fv,u=t.pv,c=o.pop();switch(exports.DEBUG&&console.log(t.step,"SHZ["+e+"]",c),c){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error("Invalid zone")}for(var l=u.distance(i,i,!1,!0),p=r.length-2,f=0;f",s),t.stack.push(Math.round(64*s))}function Vr(e,t){var r=t.stack,n=r.pop(),o=t.fv,a=t.pv,i=t.ppem,s=t.deltaBase+16*(e-1),u=t.deltaShift,c=t.z0;exports.DEBUG&&console.log(t.step,"DELTAP["+e+"]",n,r);for(var l=0;l>4)===i){var h=(15&f)-8;h>=0&&h++,exports.DEBUG&&console.log(t.step,"DELTAPFIX",p,"by",h*u);var d=c[p];o.setRelative(d,d,h*u,a)}}}function Xr(e,t){var r=t.stack,n=r.pop();exports.DEBUG&&console.log(t.step,"ROUND[]"),r.push(64*t.round(n/64))}function Yr(e,t){var r=t.stack,n=r.pop(),o=t.ppem,a=t.deltaBase+16*(e-1),i=t.deltaShift;exports.DEBUG&&console.log(t.step,"DELTAC["+e+"]",n,r);for(var s=0;s>4)===o){var l=(15&c)-8;l>=0&&l++;var p=l*i;exports.DEBUG&&console.log(t.step,"DELTACFIX",u,"by",p),t.cvt[u]+=p}}}function $r(e,t){var r,n,o=t.stack,a=o.pop(),i=o.pop(),s=t.z2[a],u=t.z1[i];exports.DEBUG&&console.log(t.step,"SDPVTL["+e+"]",a,i),e?(r=s.y-u.y,n=u.x-s.x):(r=u.x-s.x,n=u.y-s.y),t.dpv=kr(r,n)}function Kr(e,t){var r=t.stack,n=t.prog,o=t.ip;exports.DEBUG&&console.log(t.step,"PUSHB["+e+"]");for(var a=0;a=0?1:-1,s=Math.abs(s),e&&(c=a.cvt[p],n&&Math.abs(s-c)":"_")+(n?"R":"_")+(0===o?"Gr":1===o?"Bl":2===o?"Wh":"")+"]",e?p+"("+a.cvt[p]+","+c+")":"",f,"(d =",i,"->",u*s,")"),a.rp1=a.rp0,a.rp2=f,t&&(a.rp0=f)}function en(e){this.char=e,this.state={},this.activeState=null}function tn(e,t,r){this.contextName=r,this.startIndex=e,this.endOffset=t}function rn(e,t,r){this.contextName=e,this.openRange=null,this.ranges=[],this.checkStart=t,this.checkEnd=r}function nn(e,t){this.context=e,this.index=t,this.length=e.length,this.current=e[t],this.backtrack=e.slice(0,t),this.lookahead=e.slice(t+1)}function on(e){this.eventId=e,this.subscribers=[]}function an(e){var t=this,r=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];r.forEach((function(e){Object.defineProperty(t.events,e,{value:new on(e)})})),e&&r.forEach((function(r){var n=e[r];"function"==typeof n&&t.events[r].subscribe(n)})),["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"].forEach((function(e){t.events[e].subscribe(t.updateContextsRanges)}))}function sn(e){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],an.call(this,e)}function un(e){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(e)}function cn(e){return/[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(e)}function ln(e){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(e)}function pn(e){return/[A-z]/.test(e)}function fn(e){this.font=e,this.features={}}function hn(e){this.id=e.id,this.tag=e.tag,this.substitution=e.substitution}function dn(e,t){if(!e)return-1;switch(t.format){case 1:return t.glyphs.indexOf(e);case 2:for(var r=t.ranges,n=0;n=o.start&&e<=o.end){var a=e-o.start;return o.index+a}}break;default:return-1}return-1}function gn(e,t){return-1===dn(e,t.coverage)?null:e+t.deltaGlyphId}function vn(e,t){var r=dn(e,t.coverage);return-1===r?null:t.substitute[r]}function mn(e,t){for(var r=[],n=0;n2)){var r=this.font,n=this._prepState;if(!n||n.ppem!==t){var o=this._fpgmState;if(!o){Ur.prototype=Tr,(o=this._fpgmState=new Ur("fpgm",r.tables.fpgm)).funcs=[],o.font=r,exports.DEBUG&&(console.log("---EXEC FPGM---"),o.step=-1);try{lr(o)}catch(e){return console.log("Hinting error in FPGM:"+e),void(this._errorState=3)}}Ur.prototype=o,(n=this._prepState=new Ur("prep",r.tables.prep)).ppem=t;var a=r.tables.cvt;if(a)for(var i=n.cvt=new Array(a.length),s=t/r.unitsPerEm,u=0;u1))try{return pr(e,n)}catch(e){return this._errorState<1&&(console.log("Hinting error:"+e),console.log("Note: further hinting errors are silenced")),void(this._errorState=1)}}},pr=function(e,t){var r,n,o,a=t.ppem/t.font.unitsPerEm,i=a,s=e.components;if(Ur.prototype=t,s){var u=t.font;n=[],r=[];for(var c=0;c1?"loop "+(e.loop-r)+": ":"")+"SHPIX[]",i,o),n.setRelative(s,s,o),n.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,n=e.rp2,o=e.loop,a=e.z0[r],i=e.z1[n],s=e.fv,u=e.dpv,c=e.z2;o--;){var l=t.pop(),p=c[l];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-o)+": ":"")+"IP[]",l,r,"<->",n),s.interpolate(p,a,i,u),s.touch(p)}e.loop=1},zr.bind(void 0,0),zr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,n=e.z0[r],o=e.loop,a=e.fv,i=e.pv,s=e.z1;o--;){var u=t.pop(),c=s[u];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-o)+": ":"")+"ALIGNRP[]",u),a.setRelative(c,n,0,i),a.touch(c)}e.loop=1},function(e){exports.DEBUG&&console.log(e.step,"RTDG[]"),e.round=mr},Zr.bind(void 0,0),Zr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,n=e.stack,o=t[++r];exports.DEBUG&&console.log(e.step,"NPUSHB[]",o);for(var a=0;ar?1:0)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"GTEQ[]",r,n),t.push(n>=r?1:0)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"EQ[]",r,n),t.push(r===n?1:0)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"NEQ[]",r,n),t.push(r!==n?1:0)},function(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"ODD[]",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"EVEN[]",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"IF[]",t),t||(Pr(e,!0),exports.DEBUG&&console.log(e.step,"EIF[]"))},function(e){exports.DEBUG&&console.log(e.step,"EIF[]")},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"AND[]",r,n),t.push(r&&n?1:0)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"OR[]",r,n),t.push(r||n?1:0)},function(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"NOT[]",r),t.push(r?0:1)},Vr.bind(void 0,1),function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SDB[]",t),e.deltaBase=t},function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SDS[]",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"ADD[]",r,n),t.push(n+r)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"SUB[]",r,n),t.push(n-r)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"DIV[]",r,n),t.push(64*n/r)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"MUL[]",r,n),t.push(n*r/64)},function(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"ABS[]",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"NEG[]",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"FLOOR[]",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"CEILING[]",r),t.push(64*Math.ceil(r/64))},Xr.bind(void 0,0),Xr.bind(void 0,1),Xr.bind(void 0,2),Xr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"WCVTF[]",r,n),e.cvt[n]=r*e.ppem/e.font.unitsPerEm},Vr.bind(void 0,2),Vr.bind(void 0,3),Yr.bind(void 0,1),Yr.bind(void 0,2),Yr.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SROUND[]",r),e.round=xr,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error("invalid SROUND value")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error("invalid SROUND value")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"S45ROUND[]",r),e.round=xr,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error("invalid S45ROUND value")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error("invalid S45ROUND value")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){exports.DEBUG&&console.log(e.step,"ROFF[]"),e.round=gr},void 0,function(e){exports.DEBUG&&console.log(e.step,"RUTG[]"),e.round=yr},function(e){exports.DEBUG&&console.log(e.step,"RDTG[]"),e.round=br},Br,Br,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANCTRL[]",t)},$r.bind(void 0,0),$r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),n=0;exports.DEBUG&&console.log(e.step,"GETINFO[]",r),1&r&&(n=35),32&r&&(n|=4096),t.push(n)},void 0,function(e){var t=e.stack,r=t.pop(),n=t.pop(),o=t.pop();exports.DEBUG&&console.log(e.step,"ROLL[]"),t.push(n),t.push(r),t.push(o)},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"MAX[]",r,n),t.push(Math.max(n,r))},function(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"MIN[]",r,n),t.push(Math.min(n,r))},function(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANTYPE[]",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"INSTCTRL[]",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error("invalid INSTCTRL[] selector")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Kr.bind(void 0,1),Kr.bind(void 0,2),Kr.bind(void 0,3),Kr.bind(void 0,4),Kr.bind(void 0,5),Kr.bind(void 0,6),Kr.bind(void 0,7),Kr.bind(void 0,8),Jr.bind(void 0,1),Jr.bind(void 0,2),Jr.bind(void 0,3),Jr.bind(void 0,4),Jr.bind(void 0,5),Jr.bind(void 0,6),Jr.bind(void 0,7),Jr.bind(void 0,8),Qr.bind(void 0,0,0,0,0,0),Qr.bind(void 0,0,0,0,0,1),Qr.bind(void 0,0,0,0,0,2),Qr.bind(void 0,0,0,0,0,3),Qr.bind(void 0,0,0,0,1,0),Qr.bind(void 0,0,0,0,1,1),Qr.bind(void 0,0,0,0,1,2),Qr.bind(void 0,0,0,0,1,3),Qr.bind(void 0,0,0,1,0,0),Qr.bind(void 0,0,0,1,0,1),Qr.bind(void 0,0,0,1,0,2),Qr.bind(void 0,0,0,1,0,3),Qr.bind(void 0,0,0,1,1,0),Qr.bind(void 0,0,0,1,1,1),Qr.bind(void 0,0,0,1,1,2),Qr.bind(void 0,0,0,1,1,3),Qr.bind(void 0,0,1,0,0,0),Qr.bind(void 0,0,1,0,0,1),Qr.bind(void 0,0,1,0,0,2),Qr.bind(void 0,0,1,0,0,3),Qr.bind(void 0,0,1,0,1,0),Qr.bind(void 0,0,1,0,1,1),Qr.bind(void 0,0,1,0,1,2),Qr.bind(void 0,0,1,0,1,3),Qr.bind(void 0,0,1,1,0,0),Qr.bind(void 0,0,1,1,0,1),Qr.bind(void 0,0,1,1,0,2),Qr.bind(void 0,0,1,1,0,3),Qr.bind(void 0,0,1,1,1,0),Qr.bind(void 0,0,1,1,1,1),Qr.bind(void 0,0,1,1,1,2),Qr.bind(void 0,0,1,1,1,3),Qr.bind(void 0,1,0,0,0,0),Qr.bind(void 0,1,0,0,0,1),Qr.bind(void 0,1,0,0,0,2),Qr.bind(void 0,1,0,0,0,3),Qr.bind(void 0,1,0,0,1,0),Qr.bind(void 0,1,0,0,1,1),Qr.bind(void 0,1,0,0,1,2),Qr.bind(void 0,1,0,0,1,3),Qr.bind(void 0,1,0,1,0,0),Qr.bind(void 0,1,0,1,0,1),Qr.bind(void 0,1,0,1,0,2),Qr.bind(void 0,1,0,1,0,3),Qr.bind(void 0,1,0,1,1,0),Qr.bind(void 0,1,0,1,1,1),Qr.bind(void 0,1,0,1,1,2),Qr.bind(void 0,1,0,1,1,3),Qr.bind(void 0,1,1,0,0,0),Qr.bind(void 0,1,1,0,0,1),Qr.bind(void 0,1,1,0,0,2),Qr.bind(void 0,1,1,0,0,3),Qr.bind(void 0,1,1,0,1,0),Qr.bind(void 0,1,1,0,1,1),Qr.bind(void 0,1,1,0,1,2),Qr.bind(void 0,1,1,0,1,3),Qr.bind(void 0,1,1,1,0,0),Qr.bind(void 0,1,1,1,0,1),Qr.bind(void 0,1,1,1,0,2),Qr.bind(void 0,1,1,1,0,3),Qr.bind(void 0,1,1,1,1,0),Qr.bind(void 0,1,1,1,1,1),Qr.bind(void 0,1,1,1,1,2),Qr.bind(void 0,1,1,1,1,3)],en.prototype.setState=function(e,t){return this.state[e]=t,this.activeState={key:e,value:this.state[e]},this.activeState},en.prototype.getState=function(e){return this.state[e]||null},sn.prototype.inboundIndex=function(e){return e>=0&&e0&&e<=this.lookahead.length:return this.lookahead[e-1];default:return null}},sn.prototype.rangeToText=function(e){if(e instanceof tn)return this.getRangeTokens(e).map((function(e){return e.char})).join("")},sn.prototype.getText=function(){return this.tokens.map((function(e){return e.char})).join("")},sn.prototype.getContext=function(e){return this.registeredContexts[e]||null},sn.prototype.on=function(e,t){var r=this.events[e];return r?r.subscribe(t):null},sn.prototype.dispatch=function(e,t){var r=this,n=this.events[e];n instanceof on&&n.subscribers.forEach((function(e){e.apply(r,t||[])}))},sn.prototype.registerContextChecker=function(e,t,r){if(this.getContext(e))return{FAIL:"context name '"+e+"' is already registered."};if("function"!=typeof t)return{FAIL:"missing context start check."};if("function"!=typeof r)return{FAIL:"missing context end check."};var n=new rn(e,t,r);return this.registeredContexts[e]=n,this.contextCheckers.push(n),n},sn.prototype.getRangeTokens=function(e){var t=e.startIndex+e.endOffset;return[].concat(this.tokens.slice(e.startIndex,t))},sn.prototype.getContextRanges=function(e){var t=this.getContext(e);return t?t.ranges:{FAIL:"context checker '"+e+"' is not registered."}},sn.prototype.resetContextsRanges=function(){var e=this.registeredContexts;for(var t in e)e.hasOwnProperty(t)&&(e[t].ranges=[])},sn.prototype.updateContextsRanges=function(){this.resetContextsRanges();for(var e=this.tokens.map((function(e){return e.char})),t=0;t=0;r--){var n=t[r],o=cn(n),a=ln(n);if(!o&&!a)return!0;if(o)return!1}return!1}(a)&&(u|=1),function(e){if(cn(e.current))return!1;for(var t=0;t1&&console.warn("Only the first kern subtable is supported."),e.skip("uLong");var r=255&e.parseUShort();if(e.skip("uShort"),0===r){var n=e.parseUShort();e.skip("uShort",3);for(var o=0;oe.createElement("div",{className:"fallback-container"},e.createElement("div",{className:"info"},e.createElement("h1",null,"LogoMaker"))),wo=bo((()=>Promise.all([o.e(527),o.e(349),o.e(402),o.e(784)]).then(o.bind(o,2784))),{fallback:e.createElement(So,null)}),Lo=bo((()=>Promise.all([o.e(527),o.e(402),o.e(882)]).then(o.bind(o,8633))),{fallback:e.createElement(So,null)}),ko=()=>(e.useEffect((()=>{var e;(null===(e=window.logomaker)||void 0===e?void 0:e.googleAnalyticsCode)&&(h.ZP.initialize(window.logomaker.googleAnalyticsCode),h.ZP.set({anonymizeIp:!0})),document.fonts.ready.then((()=>{const e=new Set;document.fonts.forEach((t=>{const r=t.family.replace(/"/g,"");if((0,y.I6)(r)){e.add(r);const t=v(r);t&&fetch(t,{method:"HEAD",mode:"cors"}).then((e=>e.ok?r:null))}}));const t=Array.from(e).map((e=>({font:e,path:v(e)}))).filter((e=>e.path)).map((async e=>{const t=await Jn.load(e.path||"");return{font:e.font,renderer:t}}));Promise.all(t).then((e=>{g.e.update((t=>{t.fonts.fontRenderers=e.reduce(((e,t)=>(e[t.font]=t.renderer,e)),{}),t.fonts.activeFonts=e.map((({font:e})=>e))}))}))}))}),[]),e.createElement(e.Fragment,null,e.createElement(n.UT,null,e.createElement(a.rs,null,e.createElement(a.AW,{path:"/creator"},e.createElement(wo,null)),e.createElement(a.AW,{path:"/showcase"},e.createElement(Lo,null)),e.createElement(a.AW,{path:"/fallback"},e.createElement(So,null)),e.createElement(a.AW,{path:"/"},e.createElement(d,null))))));window.addEventListener("load",(()=>{(0,r.render)(e.createElement(ko,null),document.querySelector("#themeisle-logo-maker-root"))}))})()})(); \ No newline at end of file diff --git a/src/Application.tsx b/src/Application.tsx index c75c701..875b31e 100644 --- a/src/Application.tsx +++ b/src/Application.tsx @@ -32,16 +32,18 @@ export const Application: React.FunctionComponent = () => { const fontSet = new Set() document.fonts.forEach((f) => { - if (isFontFromGoogle(f.family)) { - fontSet.add(f.family) - const fileURL = buildFontSourceFileURL(f.family) + const cleanedFontFamily = f.family.replace(/"/g, '') + // console.log(cleanedFontFamily) + if (isFontFromGoogle(cleanedFontFamily)) { + fontSet.add(cleanedFontFamily) + const fileURL = buildFontSourceFileURL(cleanedFontFamily) if (fileURL) { fetch(fileURL, { method: "HEAD", mode: "cors", }).then((resp) => { if (resp.ok) { - return f.family + return cleanedFontFamily } return null }) @@ -56,9 +58,12 @@ export const Application: React.FunctionComponent = () => { } }) + // console.log(fontPaths) + const fontRequets = fontPaths .filter((fontPath) => fontPath.path) .map(async (font) => { + // console.log(font.path) const renderer = await opentype.load(font.path || "") return { font: font.font, @@ -67,7 +72,7 @@ export const Application: React.FunctionComponent = () => { }) Promise.all(fontRequets).then((fontRenderers) => { - console.log(fontRenderers) + // console.log(fontRenderers) // transformTextToSVG(fontRenderers[0].renderer, 'Hey', 52) AssetsStore.update((s) => { s.fonts.fontRenderers = fontRenderers.reduce( diff --git a/src/assets/fonts/google-fonts.ts b/src/assets/fonts/google-fonts.ts index d00ad61..876263e 100644 --- a/src/assets/fonts/google-fonts.ts +++ b/src/assets/fonts/google-fonts.ts @@ -1,5 +1,4 @@ import fonts from './fonts.json' -console.log(fonts) // const fonts = [ // "Helvetica", // "Open Sans",