zakeke-configurator-react 0.1.310 → 0.1.311
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/globals0.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var Zakeke,T;window.Logger={info:function(...e){void 0!==window&&-1!=window.location.href.indexOf("localhost")&&console.log.apply(window,e)},error:function(...e){console.error.apply(window,e)}},function(e){e.config={baseUrl:"https://portal.zakeke.com/",cloudFlareApiUrl:"https://zakeke-worker-prod.zakeke.workers.dev/api/",baseApiUrl:"https://api.zakeke.com/api/",tryOnApiUrl:"https://api.zakeke.com/api/",baseImagesUploadApiUrl:"https://api.zakeke.com/api/",baseImageTasksApiUrl:"https://api.zakeke.com/api/",baseImageGeneratePreviewApiUrl:"https://api.zakeke.com/api/",baseAdminUrl:"https://admin.zakeke.com/",apiHost:"https://api.zakeke.com/api/",graphqlUrl:"https://apollo.zakeke.com/graphql",baseScenesApiUrl:"https://api.zakeke.com/api/",imagesUploadApiHost:"api.zakeke.com",maxUploadSize:10485760,facebookAppID:"1157894994331979",instagramClientID:"1066407470424468",localizationsUrl:"https://cdn.zakeke.com/cdn/production/localizations/",mazingSettings:{url:"https://glass.mazing.link/?customStyle=true"},banubaSettings:{url:"https://zakeke-demo.sites.banuba.net/test-frame/index.html",token:"jLr5ekMAhNnfID7hTIS92zRKfl6KoEI4M7W1GH3HmBnIrkvZ5UFkfyXBArfdDPJ+ruILLhDjOrIbQji4RQLoFqZ6zIvTZOOVAcdrM/qGgzdNiv1jLHq12mexlUOOm7mxDBeuccYFsN5AggiYDzhEQAD42AxMTvFOvMP+3tmO8h9yOzUbFjK4AlOFL0jWE703NrxoOfEsu93UfNvhgHjOZwMreVD8EO+/WUOGxi3S/RG6H6xvg9v7OZUCtoxZp2Pp2Hs/r+Id2/7WwqUx4N3+g75l5B1UwBsQv73urcNXlx4AeW+3p5opSq9L4TGg0+ZrRBvzffK5uUkZyaDTNmyca7Bxn4Xq9RAcNUtdijPckDB9Z1kGxCTsnEtYif1xElYpFcNf9gO6hX/24puAdiIFLPF9v/vwR469ACF9seIDMYd4kw=="},deepARSettings:{url:"https://vto.zakeke.com/",token:"d7c878a74e21f5a1d62644f8f70d451ce4e2656ea8088aaa225720c43f5f0dc956facb3fd4702c17"},damSettings:{analyticsUrl:"https://api.3dsuite.io/api/v1/rpc/3d-models/analytics-event"},modelViewerPage:"https://files.zakeke.com/files/ar-viewer/model-viewer/model-viewer.html",avaibleLanguages:["it","en","es","fr","de","af","fa","sq","am","ar","hy","az","eu","bn","my","bs","bg","ca","cs","ny","zh","zh-TW","ko","co","hr","ku","da","he","et","fil","fi","gl","cy","ka","ja","jv","el","gu","ha","haw","hi","hmn","id","is","kn","kk","km","ky","lo","lv","lt","lb","mk","ml","ms","mg","mt","mi","mr","mn","ne","no","nb","nl","ps","pl","pt","pa","ro","ru","sm","sr","st","sn","sd","si","sk","sl","so","su","sv","sw","tg","tai","ta","tr","uk","hu","ur","uz","vi","xh","yi","yo","zu","nb"]}}(Zakeke||(Zakeke={})),function(e){e._=function(e,t){var n,r=null===(n=window.ZakekeTranslation)||void 0===n?void 0:n.statics.find(function(t){return t.original.toLowerCase()===e.toLowerCase()});return(null==r?void 0:r.localization)?null==r?void 0:r.localization:window.T2._(e,t)},e._d=function(e){var t,n,r;return null!==(r=null===(n=null===(t=window.ZakekeTranslation)||void 0===t?void 0:t.dynamics.find(function(t){return t.original.toLowerCase()===e.toLowerCase()}))||void 0===n?void 0:n.localization)&&void 0!==r?r:e}}(T||(T={}));var ArrayHelper,DateHelper,StringHelper,ValidationHelper,Pagination,Browser,Logger,BlobHelpers,ImageColorHelpers,__awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};!function(e){e.match=function(e,t){for(var n=0,r=e;n<r.length;n++){var a=r[n];if(-1==t.indexOf(a))return!1}return!0}}(ArrayHelper||(ArrayHelper={})),function(e){e.fromJsonToDate=function(e){if(null==e)return null;var t=/-?\d+/.exec(e)[0];return new Date(parseInt(t))}}(DateHelper||(DateHelper={})),function(e){function t(e,t,n){return"#"+((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)}e.padLeft=function(e,t,n){for(var r=e.toString(),a=0;a<t-r.length;a++)r=n+r;return r},e.padRight=function(e,t,n){for(var r=e.toString(),a=0;a<t-r.length;a++)r+=n;return r},e.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(e,t,n){return e.replace("{".concat(n,"}"),t)},e)},e.rgbToHex=t,e.hex2rgb=function(e){e=e.substring(1);var t=parseInt(e,16);return[t>>16&255,t>>8&255,t>>0&255]},e.rgbToHexArray=function(e){return t(e[0],e[1],e[2])},e.rgbCssToArray=function(e){if(!e.startsWith("rgb"))return[255,255,255];if(e.startsWith("rgba")){var t=e.substring(5,e.lastIndexOf(",")).split(",");return[parseInt(t[0]),parseInt(t[1]),parseInt(t[2])]}return t=e.substring(4,e.lastIndexOf(")")).split(","),[parseInt(t[0]),parseInt(t[1]),parseInt(t[2])]},e.rgbToHexCss=function(e){if(!e.startsWith("rgb"))return"#ffffff";if(e.startsWith("rgba")){var n=e.substring(5,e.lastIndexOf(",")).split(",");return t(parseInt(n[0]),parseInt(n[1]),parseInt(n[2]))}return n=e.substring(4,e.lastIndexOf(")")).split(","),t(parseInt(n[0]),parseInt(n[1]),parseInt(n[2]))}}(StringHelper||(StringHelper={})),function(e){e.EMAIL_REGEX=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,e.NFT_WALLET_ADDRESS_REGEX=/^0x[a-fA-F0-9]{40}$/,e.checkEmail=function(t){return e.EMAIL_REGEX.test(t)},e.checkNFTWalletAddress=function(t){return e.NFT_WALLET_ADDRESS_REGEX.test(t)}}(ValidationHelper||(ValidationHelper={})),function(e){e.nextPage=function(e){var t=/.*<(.*)>; rel="next".*/.exec(e);return t?t[1]:null}}(Pagination||(Pagination={})),function(e){e.openWindow=function(e,t,n){return window.open(e,"width="+t+",height="+n+";menubar=no,location=no,status=no,toolbar=no")}}(Browser||(Browser={})),function(e){e.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof window&&(-1==window.location.href.indexOf("localhost")&&-1==window.location.href.indexOf("test-portal.zakeke.com")||console.log.apply(window,e))},e.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof window&&console.error.apply(window,e)}}(Logger||(Logger={})),function(e){e.b64toBlob=function(e,t,n){t=t||"",n=n||512;for(var r=atob(e),a=[],i=0;i<r.length;i+=n){for(var o=r.slice(i,i+n),s=new Array(o.length),l=0;l<o.length;l++)s[l]=o.charCodeAt(l);var u=new Uint8Array(s);a.push(u)}return new Blob(a,{type:t})},e.blobTob64=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,new Promise(function(t){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.readAsDataURL(e)})]})})}}(BlobHelpers||(BlobHelpers={})),function(e){function t(e,t){var r=StringHelper.rgbCssToArray(e),a=StringHelper.rgbCssToArray(t),i=n(r),o=n(a),s=i[0]-o[0],l=i[1]-o[1],u=i[2]-o[2],p=Math.sqrt(i[1]*i[1]+i[2]*i[2]),c=p-Math.sqrt(o[1]*o[1]+o[2]*o[2]),f=l*l+u*u-c*c,h=s/1,d=c/(1+.045*p),g=(f=f<0?0:Math.sqrt(f))/(1+.015*p),v=h*h+d*d+g*g;return v<0?0:Math.sqrt(v)}function n(e){var t,n,r,a=e[0]/255,i=e[1]/255,o=e[2]/255;return n=(.2126*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)+.7152*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)+.0722*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92))/1,r=(.0193*a+.1192*i+.9505*o)/1.08883,t=(t=(.4124*a+.3576*i+.1805*o)/.95047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function r(e,t,n,r){var a=this;return new Promise(function(i,o){replaceColorLib.replace_color({image:e,colors:{type:"hex",targetColor:t,replaceColor:n},deltaE:r||2.3}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.getBufferAsync(e.getMIME())];case 1:return t=n.sent(),i(t),[2]}})})}).catch(function(e){console.log(e),o(e)})})}e.GetColorsFromImageB64=function(e,n,r,a){return __awaiter(this,void 0,void 0,function(){var i,o,s,l,u,p;return __generator(this,function(c){switch(c.label){case 0:return[4,rgbAsterLib.rgbAster(e,{scale:a||1})];case 1:for(i=c.sent(),o=[],s=r||10,l=0,i.forEach(function(e,t){e.color.startsWith("rgba")||(l+=e.count)}),u=function(e){if(100*i[e].count/l<=s||i[e].color.startsWith("rgba"))return"continue";var r=!0;o.length>0&&o.forEach(function(a,o){t(a,i[e].color)<n&&(r=!1)}),r&&o.push(i[e].color)},p=0;p<i.length;p++)u(p);return[2,o.map(function(e){return StringHelper.rgbToHexCss(e)})]}})})},e.GetColorsFromImageUrl=function(e,n,r,a){return __awaiter(this,void 0,void 0,function(){var i,o,s,l,u,p;return __generator(this,function(c){switch(c.label){case 0:return[4,rgbAsterLib.rgbAster(e,{scale:a||1})];case 1:for(i=c.sent(),o=[],s=r||10,l=0,i.forEach(function(e,t){e.color.startsWith("rgba")||(l+=e.count)}),u=function(e){if(100*i[e].count/l<=s||i[e].color.startsWith("rgba"))return"continue";var r=!0;o.length>0&&o.forEach(function(a,o){t(a,i[e].color)<n&&(r=!1)}),r&&o.push(i[e].color)},p=0;p<i.length;p++)u(p);return[2,o.map(function(e){return StringHelper.rgbToHexCss(e)})]}})})},e.ReplaceColorsIntoImage=function(e,t,n,a){return __awaiter(this,void 0,void 0,function(){var i,o;return __generator(this,function(s){switch(s.label){case 0:i=e,o=0,s.label=1;case 1:return o<t.length?[4,r(i,t[o],n[o%n.length],a)]:[3,4];case 2:i=s.sent(),s.label=3;case 3:return o++,[3,1];case 4:return[2,new Blob([i])]}})})}}(ImageColorHelpers||(ImageColorHelpers={})),function e(t,n,r){function a(o,s){if(!n[o]){if(!t[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(i)return i(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var p=n[o]={exports:{}};t[o][0].call(p.exports,function(e){var n=t[o][1][e];return a(n||e)},p,p.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)a(r[o]);return a}({1:[function(e,t,n){var r,a,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{a="function"==typeof clearTimeout?clearTimeout:s}catch(e){a=s}}();var u,p=[],c=!1,f=-1;function h(){c&&u&&(c=!1,u.length?p=u.concat(p):f=-1,p.length&&d())}function d(){if(!c){var e=l(h);c=!0;for(var t=p.length;t;){for(u=p,p=[];++f<t;)u&&u[f].run();f=-1,t=p.length}u=null,c=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===s||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];p.push(new g(e,t)),1!==p.length||c||l(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],2:[function(e,t,n){"use strict";var r=e("node-gettext");window.gt=window.gt||new r,window.T2=window.T2||{_:function(e,t){return window.gt.dgettext(t,e)}}},{"node-gettext":4}],3:[function(e,t,n){(function(e){var n="Expected a function",r="__lodash_hash_undefined__",a=1/0,i="[object Function]",o="[object GeneratorFunction]",s="[object Symbol]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,p=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,d="object"==typeof e&&e&&e.Object===Object&&e,g="object"==typeof self&&self&&self.Object===Object&&self,v=d||g||Function("return this")();var m,y=Array.prototype,b=Function.prototype,x=Object.prototype,S=v["__core-js_shared__"],T=(m=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",w=b.toString,k=x.hasOwnProperty,E=x.toString,C=RegExp("^"+w.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=v.Symbol,U=y.splice,L=G(v,"Map"),D=G(Object,"create"),R=O?O.prototype:void 0,A=R?R.toString:void 0;function F(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function N(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function I(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function M(e,t){for(var n,r,a=e.length;a--;)if((n=e[a][0])===(r=t)||n!=n&&r!=r)return a;return-1}function P(e,t){for(var n,r=0,a=(t=function(e,t){if(q(e))return!1;var n=typeof e;if("number"==n||"symbol"==n||"boolean"==n||null==e||X(e))return!0;return u.test(e)||!l.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:q(n=t)?n:H(n)).length;null!=e&&r<a;)e=e[j(t[r++])];return r&&r==a?e:void 0}function B(e){return!(!W(e)||(t=e,T&&T in t))&&(function(e){var t=W(e)?E.call(e):"";return t==i||t==o}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?C:h).test(function(e){if(null!=e){try{return w.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function _(e,t){var n,r,a=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function G(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return B(n)?n:void 0}F.prototype.clear=function(){this.__data__=D?D(null):{}},F.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},F.prototype.get=function(e){var t=this.__data__;if(D){var n=t[e];return n===r?void 0:n}return k.call(t,e)?t[e]:void 0},F.prototype.has=function(e){var t=this.__data__;return D?void 0!==t[e]:k.call(t,e)},F.prototype.set=function(e,t){return this.__data__[e]=D&&void 0===t?r:t,this},N.prototype.clear=function(){this.__data__=[]},N.prototype.delete=function(e){var t=this.__data__,n=M(t,e);return!(n<0||(n==t.length-1?t.pop():U.call(t,n,1),0))},N.prototype.get=function(e){var t=this.__data__,n=M(t,e);return n<0?void 0:t[n][1]},N.prototype.has=function(e){return M(this.__data__,e)>-1},N.prototype.set=function(e,t){var n=this.__data__,r=M(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},I.prototype.clear=function(){this.__data__={hash:new F,map:new(L||N),string:new F}},I.prototype.delete=function(e){return _(this,e).delete(e)},I.prototype.get=function(e){return _(this,e).get(e)},I.prototype.has=function(e){return _(this,e).has(e)},I.prototype.set=function(e,t){return _(this,e).set(e,t),this};var H=z(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(X(e))return A?A.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}(t);var n=[];return p.test(e)&&n.push(""),e.replace(c,function(e,t,r,a){n.push(r?a.replace(f,"$1"):t||e)}),n});function j(e){if("string"==typeof e||X(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}function z(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(n);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o),o};return r.cache=new(z.Cache||I),r}z.Cache=I;var q=Array.isArray;function W(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function X(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&E.call(e)==s}t.exports=function(e,t,n){var r=null==e?void 0:P(e,t);return void 0===r?n:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,t,n){(function(n){"use strict";var r=e("lodash.get"),a=e("./plurals");function i(e){e=e||{},this.catalogs={},this.locale="",this.domain="messages",this.listeners=[],"debug"in e?this.debug=!0===e.debug:void 0!==n&&n.env&&n.env.NODE_ENV?this.debug="production"!==n.env.NODE_ENV:this.debug=!1}t.exports=i,i.prototype.on=function(e,t){this.listeners.push({eventName:e,callback:t})},i.prototype.off=function(e,t){this.listeners=this.listeners.filter(function(n){return!1==(n.eventName===e&&n.callback===t)})},i.prototype.emit=function(e,t){for(var n=0;n<this.listeners.length;n++){var r=this.listeners[n];r.eventName===e&&r.callback(t)}},i.prototype.warn=function(e){this.debug&&console.warn(e),this.emit("error",e)},i.prototype.addTranslations=function(e,t,n){this.catalogs[e]||(this.catalogs[e]={}),this.catalogs[e][t]=n},i.prototype.setLocale=function(e){"string"==typeof e?(""===e.trim()&&this.warn("You called setLocale() with an empty value, which makes little sense."),this.catalogs[e]||this.warn('You called setLocale() with "'+e+'", but no translations for that locale has been added.'),this.locale=e):this.warn("You called setLocale() with an argument of type "+typeof e+". The locale must be a string.")},i.prototype.setTextDomain=function(e){"string"==typeof e?(""===e.trim()&&this.warn("You called setTextDomain() with an empty `domain` value."),this.domain=e):this.warn("You called setTextDomain() with an argument of type "+typeof e+". The domain must be a string.")},i.prototype.gettext=function(e){return this.dnpgettext(this.domain,"",e)},i.prototype.dgettext=function(e,t){return this.dnpgettext(e,"",t)},i.prototype.ngettext=function(e,t,n){return this.dnpgettext(this.domain,"",e,t,n)},i.prototype.dngettext=function(e,t,n,r){return this.dnpgettext(e,"",t,n,r)},i.prototype.pgettext=function(e,t){return this.dnpgettext(this.domain,e,t)},i.prototype.dpgettext=function(e,t,n){return this.dnpgettext(e,t,n)},i.prototype.npgettext=function(e,t,n,r){return this.dnpgettext(this.domain,e,t,n,r)},i.prototype.dnpgettext=function(e,t,n,r,o){var s,l,u=n;if(t=t||"",isNaN(o)||1===o||(u=r||n),s=this._getTranslation(e,t,n)){if("number"==typeof o)"boolean"==typeof(l=(0,a[i.getLanguageCode(this.locale)].pluralsFunc)(o))&&(l=l?1:0);else l=0;return s.msgstr[l]||u}return this.warn('No translation was found for msgid "'+n+'" in msgctxt "'+t+'" and domain "'+e+'"'),u},i.prototype.getComment=function(e,t,n){var r;return(r=this._getTranslation(e,t,n))&&r.comments||{}},i.prototype._getTranslation=function(e,t,n){return t=t||"",r(this.catalogs,[this.locale,e,"translations",t,n])},i.getLanguageCode=function(e){return e.split(/[\-_]/)[0].toLowerCase()},i.prototype.textdomain=function(e){this.debug&&console.warn("textdomain(domain) was used to set locales in node-gettext v1. Make sure you are using it for domains, and switch to setLocale(locale) if you are not.\n\n To read more about the migration from node-gettext v1 to v2, see https://github.com/alexanderwallin/node-gettext/#migrating-from-1x-to-2x\n\nThis warning will be removed in the final 2.0.0"),this.setTextDomain(e)},i.prototype.setlocale=function(e){this.setLomain(e)},i.prototype.addTextdomain=function(){console.error("addTextdomain() is deprecated.\n\n* To add translations, use addTranslations()\n* To set the default domain, use setTextDomain() (or its alias textdomain())\n\nTo read more about the migration from node-gettext v1 to v2, see https://github.com/alexanderwallin/node-gettext/#migrating-from-1x-to-2x")}}).call(this,e("_process"))},{"./plurals":5,_process:1,"lodash.get":3}],5:[function(e,t,n){"use strict";t.exports={ach:{name:"Acholi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},af:{name:"Afrikaans",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ak:{name:"Akan",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},am:{name:"Amharic",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},an:{name:"Aragonese",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ar:{name:"Arabic",examples:[{plural:0,sample:0},{plural:1,sample:1},{plural:2,sample:2},{plural:3,sample:3},{plural:4,sample:11},{plural:5,sample:100}],nplurals:6,pluralsText:"nplurals = 6; plural = (n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5)",pluralsFunc:function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5}},arn:{name:"Mapudungun",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},ast:{name:"Asturian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ay:{name:"Aymará",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},az:{name:"Azerbaijani",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},be:{name:"Belarusian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},bg:{name:"Bulgarian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},bn:{name:"Bengali",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},bo:{name:"Tibetan",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},br:{name:"Breton",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},brx:{name:"Bodo",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},bs:{name:"Bosnian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},ca:{name:"Catalan",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},cgg:{name:"Chiga",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},cs:{name:"Czech",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 1 ? 0 : (n >= 2 && n <= 4) ? 1 : 2)",pluralsFunc:function(e){return 1===e?0:e>=2&&e<=4?1:2}},csb:{name:"Kashubian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return 1===e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},cy:{name:"Welsh",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:3},{plural:3,sample:8}],nplurals:4,pluralsText:"nplurals = 4; plural = (n === 1 ? 0 : n === 2 ? 1 : (n !== 8 && n !== 11) ? 2 : 3)",pluralsFunc:function(e){return 1===e?0:2===e?1:8!==e&&11!==e?2:3}},da:{name:"Danish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},de:{name:"German",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},doi:{name:"Dogri",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},dz:{name:"Dzongkha",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},el:{name:"Greek",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},en:{name:"English",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},eo:{name:"Esperanto",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},es:{name:"Spanish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},et:{name:"Estonian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},eu:{name:"Basque",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},fa:{name:"Persian",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},ff:{name:"Fulah",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},fi:{name:"Finnish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},fil:{name:"Filipino",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},fo:{name:"Faroese",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},fr:{name:"French",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},fur:{name:"Friulian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},fy:{name:"Frisian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ga:{name:"Irish",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:3},{plural:3,sample:7},{plural:4,sample:11}],nplurals:5,pluralsText:"nplurals = 5; plural = (n === 1 ? 0 : n === 2 ? 1 : n < 7 ? 2 : n < 11 ? 3 : 4)",pluralsFunc:function(e){return 1===e?0:2===e?1:e<7?2:e<11?3:4}},gd:{name:"Scottish Gaelic",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:3},{plural:3,sample:20}],nplurals:4,pluralsText:"nplurals = 4; plural = ((n === 1 || n === 11) ? 0 : (n === 2 || n === 12) ? 1 : (n > 2 && n < 20) ? 2 : 3)",pluralsFunc:function(e){return 1===e||11===e?0:2===e||12===e?1:e>2&&e<20?2:3}},gl:{name:"Galician",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},gu:{name:"Gujarati",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},gun:{name:"Gun",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},ha:{name:"Hausa",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},he:{name:"Hebrew",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},hi:{name:"Hindi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},hne:{name:"Chhattisgarhi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},hr:{name:"Croatian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},hu:{name:"Hungarian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},hy:{name:"Armenian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},id:{name:"Indonesian",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},is:{name:"Icelandic",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n % 10 !== 1 || n % 100 === 11)",pluralsFunc:function(e){return e%10!=1||e%100==11}},it:{name:"Italian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ja:{name:"Japanese",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},jbo:{name:"Lojban",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},jv:{name:"Javanese",examples:[{plural:0,sample:0},{plural:1,sample:1}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 0)",pluralsFunc:function(e){return 0!==e}},ka:{name:"Georgian",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},kk:{name:"Kazakh",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},km:{name:"Khmer",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},kn:{name:"Kannada",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ko:{name:"Korean",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},ku:{name:"Kurdish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},kw:{name:"Cornish",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:3},{plural:3,sample:4}],nplurals:4,pluralsText:"nplurals = 4; plural = (n === 1 ? 0 : n === 2 ? 1 : n === 3 ? 2 : 3)",pluralsFunc:function(e){return 1===e?0:2===e?1:3===e?2:3}},ky:{name:"Kyrgyz",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},lb:{name:"Letzeburgesch",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ln:{name:"Lingala",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},lo:{name:"Lao",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},lt:{name:"Lithuanian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:10}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2}},lv:{name:"Latvian",examples:[{plural:2,sample:0},{plural:0,sample:1},{plural:1,sample:2}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n !== 0 ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:0!==e?1:2}},mai:{name:"Maithili",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},mfe:{name:"Mauritian Creole",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},mg:{name:"Malagasy",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},mi:{name:"Maori",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},mk:{name:"Macedonian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n === 1 || n % 10 === 1 ? 0 : 1)",pluralsFunc:function(e){return 1===e||e%10==1?0:1}},ml:{name:"Malayalam",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},mn:{name:"Mongolian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},mni:{name:"Manipuri",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},mnk:{name:"Mandinka",examples:[{plural:0,sample:0},{plural:1,sample:1},{plural:2,sample:2}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 0 ? 0 : n === 1 ? 1 : 2)",pluralsFunc:function(e){return 0===e?0:1===e?1:2}},mr:{name:"Marathi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ms:{name:"Malay",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},mt:{name:"Maltese",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:11},{plural:3,sample:20}],nplurals:4,pluralsText:"nplurals = 4; plural = (n === 1 ? 0 : n === 0 || ( n % 100 > 1 && n % 100 < 11) ? 1 : (n % 100 > 10 && n % 100 < 20 ) ? 2 : 3)",pluralsFunc:function(e){return 1===e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3}},my:{name:"Burmese",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},nah:{name:"Nahuatl",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},nap:{name:"Neapolitan",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},nb:{name:"Norwegian Bokmal",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ne:{name:"Nepali",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},nl:{name:"Dutch",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},nn:{name:"Norwegian Nynorsk",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},no:{name:"Norwegian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},nso:{name:"Northern Sotho",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},oc:{name:"Occitan",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},or:{name:"Oriya",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},pa:{name:"Punjabi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},pap:{name:"Papiamento",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},pl:{name:"Polish",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return 1===e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},pms:{name:"Piemontese",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ps:{name:"Pashto",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},pt:{name:"Portuguese",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},rm:{name:"Romansh",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ro:{name:"Romanian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:20}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 1 ? 0 : (n === 0 || (n % 100 > 0 && n % 100 < 20)) ? 1 : 2)",pluralsFunc:function(e){return 1===e?0:0===e||e%100>0&&e%100<20?1:2}},ru:{name:"Russian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},rw:{name:"Kinyarwanda",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sah:{name:"Yakut",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},sat:{name:"Santali",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sco:{name:"Scots",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sd:{name:"Sindhi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},se:{name:"Northern Sami",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},si:{name:"Sinhala",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sk:{name:"Slovak",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 1 ? 0 : (n >= 2 && n <= 4) ? 1 : 2)",pluralsFunc:function(e){return 1===e?0:e>=2&&e<=4?1:2}},sl:{name:"Slovenian",examples:[{plural:1,sample:1},{plural:2,sample:2},{plural:3,sample:3},{plural:0,sample:5}],nplurals:4,pluralsText:"nplurals = 4; plural = (n % 100 === 1 ? 1 : n % 100 === 2 ? 2 : n % 100 === 3 || n % 100 === 4 ? 3 : 0)",pluralsFunc:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0}},so:{name:"Somali",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},son:{name:"Songhay",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sq:{name:"Albanian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sr:{name:"Serbian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},su:{name:"Sundanese",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},sv:{name:"Swedish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sw:{name:"Swahili",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ta:{name:"Tamil",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},te:{name:"Telugu",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},tg:{name:"Tajik",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},th:{name:"Thai",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},ti:{name:"Tigrinya",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},tk:{name:"Turkmen",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},tr:{name:"Turkish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},tt:{name:"Tatar",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},ug:{name:"Uyghur",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},uk:{name:"Ukrainian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},ur:{name:"Urdu",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},uz:{name:"Uzbek",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},vi:{name:"Vietnamese",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},wa:{name:"Walloon",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},wo:{name:"Wolof",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},yo:{name:"Yoruba",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},zh:{name:"Chinese",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}}}},{}]},{},[2]),function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,a=Object.getPrototypeOf,i=n.slice,o=n.concat,s=n.push,l=n.indexOf,u={},p=u.toString,c=u.hasOwnProperty,f=c.toString,h=f.call(Object),d={};function g(e,t){var n=(t=t||r).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}var v="3.1.1",m=function(e,t){return new m.fn.init(e,t)},y=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,b=/^-ms-/,x=/-([a-z])/g,S=function(e,t){return t.toUpperCase()};function T(e){var t=!!e&&"length"in e&&e.length,n=m.type(e);return"function"!==n&&!m.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}m.fn=m.prototype={jquery:v,constructor:m,length:0,toArray:function(){return i.call(this)},get:function(e){return null==e?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=m.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return m.each(this,e)},map:function(e){return this.pushStack(m.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},m.extend=m.fn.extend=function(){var e,t,n,r,a,i,o=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[s]||{},s++),"object"==typeof o||m.isFunction(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=o[t],o!==(r=e[t])&&(u&&r&&(m.isPlainObject(r)||(a=m.isArray(r)))?(a?(a=!1,i=n&&m.isArray(n)?n:[]):i=n&&m.isPlainObject(n)?n:{},o[t]=m.extend(u,i,r)):void 0!==r&&(o[t]=r));return o},m.extend({expando:"jQuery"+(v+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===m.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=m.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e)||(t=a(e))&&(n=c.call(t,"constructor")&&t.constructor,"function"!=typeof n||f.call(n)!==h))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[p.call(e)]||"object":typeof e},globalEval:function(e){g(e)},camelCase:function(e){return e.replace(b,"ms-").replace(x,S)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(T(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(y,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?m.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,a=e.length;r<n;r++)e[a++]=t[r];return e.length=a,e},grep:function(e,t,n){for(var r=[],a=0,i=e.length,o=!n;a<i;a++)!t(e[a],a)!==o&&r.push(e[a]);return r},map:function(e,t,n){var r,a,i=0,s=[];if(T(e))for(r=e.length;i<r;i++)null!=(a=t(e[i],i,n))&&s.push(a);else for(i in e)null!=(a=t(e[i],i,n))&&s.push(a);return o.apply([],s)},guid:1,proxy:function(e,t){var n,r,a;if("string"==typeof t&&(n=e[t],t=e,e=n),m.isFunction(e))return r=i.call(arguments,2),(a=function(){return e.apply(t||this,r.concat(i.call(arguments)))}).guid=e.guid=e.guid||m.guid++,a},now:Date.now,support:d}),"function"==typeof Symbol&&(m.fn[Symbol.iterator]=n[Symbol.iterator]),m.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){u["[object "+t+"]"]=t.toLowerCase()});var w=function(e){var t,n,r,a,i,o,s,l,u,p,c,f,h,d,g,v,m,y,b,x="sizzle"+1*new Date,S=e.document,T=0,w=0,k=oe(),E=oe(),C=oe(),O=function(e,t){return e===t&&(c=!0),0},U={}.hasOwnProperty,L=[],D=L.pop,R=L.push,A=L.push,F=L.slice,N=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",P="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",B="\\["+M+"*("+P+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+M+"*\\]",_=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",G=new RegExp(M+"+","g"),H=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),j=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),q=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),W=new RegExp(_),X=new RegExp("^"+P+"$"),V={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+_),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Q=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){f()},ae=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{A.apply(L=F.call(S.childNodes),S.childNodes),L[S.childNodes.length].nodeType}catch(e){A={apply:L.length?function(e,t){R.apply(e,F.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(e,t,r,a){var i,s,u,p,c,d,m,y=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!a&&((t?t.ownerDocument||t:S)!==h&&f(t),t=t||h,g)){if(11!==T&&(c=K.exec(e)))if(i=c[1]){if(9===T){if(!(u=t.getElementById(i)))return r;if(u.id===i)return r.push(u),r}else if(y&&(u=y.getElementById(i))&&b(t,u)&&u.id===i)return r.push(u),r}else{if(c[2])return A.apply(r,t.getElementsByTagName(e)),r;if((i=c[3])&&n.getElementsByClassName&&t.getElementsByClassName)return A.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!C[e+" "]&&(!v||!v.test(e))){if(1!==T)y=t,m=e;else if("object"!==t.nodeName.toLowerCase()){for((p=t.getAttribute("id"))?p=p.replace(te,ne):t.setAttribute("id",p=x),s=(d=o(e)).length;s--;)d[s]="#"+p+" "+me(d[s]);m=d.join(","),y=J.test(e)&&ge(t.parentNode)||t}if(m)try{return A.apply(r,y.querySelectorAll(m)),r}catch(e){}finally{p===x&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,r,a)}function oe(){var e=[];return function t(n,a){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=a}}function se(e){return e[x]=!0,e}function le(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),a=n.length;a--;)r.attrHandle[n[a]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function de(e){return se(function(t){return t=+t,se(function(n,r){for(var a,i=e([],n.length,t),o=i.length;o--;)n[a=i[o]]&&(n[a]=!(r[a]=n[a]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ie.support={},i=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=ie.setDocument=function(e){var t,a,o=e?e.ownerDocument||e:S;return o!==h&&9===o.nodeType&&o.documentElement?(d=(h=o).documentElement,g=!i(h),S!==h&&(a=h.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",re,!1):a.attachEvent&&a.attachEvent("onunload",re)),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(h.getElementsByClassName),n.getById=le(function(e){return d.appendChild(e).id=x,!h.getElementsByName||!h.getElementsByName(x).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(Q,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Q,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,a,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(a=t.getElementsByName(e),r=0;i=a[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],a=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[a++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},m=[],v=[],(n.qsa=Z.test(h.querySelectorAll))&&(le(function(e){d.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+I+")"),e.querySelectorAll("[id~="+x+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||v.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),d.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=Z.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&le(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),m.push("!=",_)}),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),t=Z.test(d.compareDocumentPosition),b=t||Z.test(d.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},O=t?function(e,t){if(e===t)return c=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===h||e.ownerDocument===S&&b(S,e)?-1:t===h||t.ownerDocument===S&&b(S,t)?1:p?N(p,e)-N(p,t):0:4&r?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,r=0,a=e.parentNode,i=t.parentNode,o=[e],s=[t];if(!a||!i)return e===h?-1:t===h?1:a?-1:i?1:p?N(p,e)-N(p,t):0;if(a===i)return pe(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?pe(o[r],s[r]):o[r]===S?-1:s[r]===S?1:0},h):h},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&f(e),t=t.replace(q,"='$1']"),n.matchesSelector&&g&&!C[t+" "]&&(!m||!m.test(t))&&(!v||!v.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return ie(t,h,null,[e]).length>0},ie.contains=function(e,t){return(e.ownerDocument||e)!==h&&f(e),b(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==h&&f(e);var a=r.attrHandle[t.toLowerCase()],i=a&&U.call(r.attrHandle,t.toLowerCase())?a(e,t,!g):void 0;return void 0!==i?i:n.attributes||!g?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ie.escape=function(e){return(e+"").replace(te,ne)},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,r=[],a=0,i=0;if(c=!n.detectDuplicates,p=!n.sortStable&&e.slice(0),e.sort(O),c){for(;t=e[i++];)t===e[i]&&(a=r.push(i));for(;a--;)e.splice(r[a],1)}return p=null,e},a=ie.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=a(t);return n},(r=ie.selectors={cacheLength:50,createPseudo:se,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Q,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Q,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Q,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&k(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var a=ie.attr(r,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(G," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,a){var i="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===a?function(e){return!!e.parentNode}:function(t,n,l){var u,p,c,f,h,d,g=i!==o?"nextSibling":"previousSibling",v=t.parentNode,m=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(v){if(i){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[o?v.firstChild:v.lastChild],o&&y){for(b=(h=(u=(p=(c=(f=v)[x]||(f[x]={}))[f.uniqueID]||(c[f.uniqueID]={}))[e]||[])[0]===T&&u[1])&&u[2],f=h&&v.childNodes[h];f=++h&&f&&f[g]||(b=h=0)||d.pop();)if(1===f.nodeType&&++b&&f===t){p[e]=[T,h,b];break}}else if(y&&(b=h=(u=(p=(c=(f=t)[x]||(f[x]={}))[f.uniqueID]||(c[f.uniqueID]={}))[e]||[])[0]===T&&u[1]),!1===b)for(;(f=++h&&f&&f[g]||(b=h=0)||d.pop())&&((s?f.nodeName.toLowerCase()!==m:1!==f.nodeType)||!++b||(y&&((p=(c=f[x]||(f[x]={}))[f.uniqueID]||(c[f.uniqueID]={}))[e]=[T,b]),f!==t)););return(b-=a)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,a=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return a[x]?a(t):a.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var r,i=a(e,t),o=i.length;o--;)e[r=N(e,i[o])]=!(n[r]=i[o])}):function(e){return a(e,0,n)}):a}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(H,"$1"));return r[x]?se(function(e,t,n,a){for(var i,o=r(e,null,a,[]),s=e.length;s--;)(i=o[s])&&(e[s]=!(t[s]=i))}):function(e,a,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return ie(e,t).length>0}}),contains:se(function(e){return e=e.replace(Q,ee),function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:se(function(e){return X.test(e||"")||ie.error("unsupported lang: "+e),e=e.replace(Q,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return $.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:de(function(){return[0]}),last:de(function(e,t){return[t-1]}),eq:de(function(e,t,n){return[n<0?n+t:n]}),even:de(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:de(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:de(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:de(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ce(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ve(){}function me(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ye(e,t,n){var r=t.dir,a=t.next,i=a||r,o=n&&"parentNode"===i,s=w++;return t.first?function(t,n,a){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,a);return!1}:function(t,n,l){var u,p,c,f=[T,s];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(p=(c=t[x]||(t[x]={}))[t.uniqueID]||(c[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=p[i])&&u[0]===T&&u[1]===s)return f[2]=u[2];if(p[i]=f,f[2]=e(t,n,l))return!0}return!1}}function be(e){return e.length>1?function(t,n,r){for(var a=e.length;a--;)if(!e[a](t,n,r))return!1;return!0}:e[0]}function xe(e,t,n,r,a){for(var i,o=[],s=0,l=e.length,u=null!=t;s<l;s++)(i=e[s])&&(n&&!n(i,r,a)||(o.push(i),u&&t.push(s)));return o}function Se(e,t,n,r,a,i){return r&&!r[x]&&(r=Se(r)),a&&!a[x]&&(a=Se(a,i)),se(function(i,o,s,l){var u,p,c,f=[],h=[],d=o.length,g=i||function(e,t,n){for(var r=0,a=t.length;r<a;r++)ie(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!i&&t?g:xe(g,f,e,s,l),m=n?a||(i?e:d||r)?[]:o:v;if(n&&n(v,m,s,l),r)for(u=xe(m,h),r(u,[],s,l),p=u.length;p--;)(c=u[p])&&(m[h[p]]=!(v[h[p]]=c));if(i){if(a||e){if(a){for(u=[],p=m.length;p--;)(c=m[p])&&u.push(v[p]=c);a(null,m=[],u,l)}for(p=m.length;p--;)(c=m[p])&&(u=a?N(i,c):f[p])>-1&&(i[u]=!(o[u]=c))}}else m=xe(m===o?m.splice(d,m.length):m),a?a(null,o,m,l):A.apply(o,m)})}function Te(e){for(var t,n,a,i=e.length,o=r.relative[e[0].type],s=o||r.relative[" "],l=o?1:0,p=ye(function(e){return e===t},s,!0),c=ye(function(e){return N(t,e)>-1},s,!0),f=[function(e,n,r){var a=!o&&(r||n!==u)||((t=n).nodeType?p(e,n,r):c(e,n,r));return t=null,a}];l<i;l++)if(n=r.relative[e[l].type])f=[ye(be(f),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[x]){for(a=++l;a<i&&!r.relative[e[a].type];a++);return Se(l>1&&be(f),l>1&&me(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(H,"$1"),n,l<a&&Te(e.slice(l,a)),a<i&&Te(e=e.slice(a)),a<i&&me(e))}f.push(n)}return be(f)}function we(e,t){var n=t.length>0,a=e.length>0,i=function(i,o,s,l,p){var c,d,v,m=0,y="0",b=i&&[],x=[],S=u,w=i||a&&r.find.TAG("*",p),k=T+=null==S?1:Math.random()||.1,E=w.length;for(p&&(u=o===h||o||p);y!==E&&null!=(c=w[y]);y++){if(a&&c){for(d=0,o||c.ownerDocument===h||(f(c),s=!g);v=e[d++];)if(v(c,o||h,s)){l.push(c);break}p&&(T=k)}n&&((c=!v&&c)&&m--,i&&b.push(c))}if(m+=y,n&&y!==m){for(d=0;v=t[d++];)v(b,x,o,s);if(i){if(m>0)for(;y--;)b[y]||x[y]||(x[y]=D.call(l));x=xe(x)}A.apply(l,x),p&&!i&&x.length>0&&m+t.length>1&&ie.uniqueSort(l)}return p&&(T=k,u=S),b};return n?se(i):i}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,o=ie.tokenize=function(e,t){var n,a,i,o,s,l,u,p=E[e+" "];if(p)return t?0:p.slice(0);for(s=e,l=[],u=r.preFilter;s;){for(o in n&&!(a=j.exec(s))||(a&&(s=s.slice(a[0].length)||s),l.push(i=[])),n=!1,(a=z.exec(s))&&(n=a.shift(),i.push({value:n,type:a[0].replace(H," ")}),s=s.slice(n.length)),r.filter)!(a=V[o].exec(s))||u[o]&&!(a=u[o](a))||(n=a.shift(),i.push({value:n,type:o,matches:a}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ie.error(e):E(e,l).slice(0)},s=ie.compile=function(e,t){var n,r=[],a=[],i=C[e+" "];if(!i){for(t||(t=o(e)),n=t.length;n--;)(i=Te(t[n]))[x]?r.push(i):a.push(i);(i=C(e,we(a,r))).selector=e}return i},l=ie.select=function(e,t,n,a){var i,l,u,p,c,f="function"==typeof e&&e,h=!a&&o(e=f.selector||e);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&g&&r.relative[l[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(Q,ee),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=V.needsContext.test(e)?0:l.length;i--&&(u=l[i],!r.relative[p=u.type]);)if((c=r.find[p])&&(a=c(u.matches[0].replace(Q,ee),J.test(l[0].type)&&ge(t.parentNode)||t))){if(l.splice(i,1),!(e=a.length&&me(l)))return A.apply(n,a),n;break}}return(f||s(e,h))(a,t,!g,n,!t||J.test(e)&&ge(t.parentNode)||t),n},n.sortStable=x.split("").sort(O).join("")===x,n.detectDuplicates=!!c,f(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ue(I,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ie}(e);m.find=w,m.expr=w.selectors,m.expr[":"]=m.expr.pseudos,m.uniqueSort=m.unique=w.uniqueSort,m.text=w.getText,m.isXMLDoc=w.isXML,m.contains=w.contains,m.escapeSelector=w.escape;var k=function(e,t,n){for(var r=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&m(e).is(n))break;r.push(e)}return r},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},C=m.expr.match.needsContext,O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,U=/^.[^:#\[\.,]*$/;function L(e,t,n){return m.isFunction(t)?m.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?m.grep(e,function(e){return e===t!==n}):"string"!=typeof t?m.grep(e,function(e){return l.call(t,e)>-1!==n}):U.test(t)?m.filter(t,e,n):(t=m.filter(t,e),m.grep(e,function(e){return l.call(t,e)>-1!==n&&1===e.nodeType}))}m.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?m.find.matchesSelector(r,e)?[r]:[]:m.find.matches(e,m.grep(t,function(e){return 1===e.nodeType}))},m.fn.extend({find:function(e){var t,n,r=this.length,a=this;if("string"!=typeof e)return this.pushStack(m(e).filter(function(){for(t=0;t<r;t++)if(m.contains(a[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)m.find(e,a[t],n);return r>1?m.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&C.test(e)?m(e):e||[],!1).length}});var D,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(m.fn.init=function(e,t,n){var a,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(a="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:R.exec(e))||!a[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(a[1]){if(t=t instanceof m?t[0]:t,m.merge(this,m.parseHTML(a[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),O.test(a[1])&&m.isPlainObject(t))for(a in t)m.isFunction(this[a])?this[a](t[a]):this.attr(a,t[a]);return this}return(i=r.getElementById(a[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m.isFunction(e)?void 0!==n.ready?n.ready(e):e(m):m.makeArray(e,this)}).prototype=m.fn,D=m(r);var A=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}m.fn.extend({has:function(e){var t=m(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(m.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,a=this.length,i=[],o="string"!=typeof e&&m(e);if(!C.test(e))for(;r<a;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&m.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?m.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?l.call(m(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),m.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return k(e,"parentNode")},parentsUntil:function(e,t,n){return k(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return k(e,"nextSibling")},prevAll:function(e){return k(e,"previousSibling")},nextUntil:function(e,t,n){return k(e,"nextSibling",n)},prevUntil:function(e,t,n){return k(e,"previousSibling",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return e.contentDocument||m.merge([],e.childNodes)}},function(e,t){m.fn[e]=function(n,r){var a=m.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(a=m.filter(r,a)),this.length>1&&(F[e]||m.uniqueSort(a),A.test(e)&&a.reverse()),this.pushStack(a)}});var I=/[^\x20\t\r\n\f]+/g;function M(e){return e}function P(e){throw e}function B(e,t,n){var r;try{e&&m.isFunction(r=e.promise)?r.call(e).done(t).fail(n):e&&m.isFunction(r=e.then)?r.call(e,t,n):t.call(void 0,e)}catch(e){n.call(void 0,e)}}m.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return m.each(e.match(I)||[],function(e,n){t[n]=!0}),t}(e):m.extend({},e);var t,n,r,a,i=[],o=[],s=-1,l=function(){for(a=e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,a&&(i=n?[]:"")},u={add:function(){return i&&(n&&!t&&(s=i.length-1,o.push(n)),function t(n){m.each(n,function(n,r){m.isFunction(r)?e.unique&&u.has(r)||i.push(r):r&&r.length&&"string"!==m.type(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return m.each(arguments,function(e,t){for(var n;(n=m.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?m.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return a=o=[],i=n="",this},disabled:function(){return!i},lock:function(){return a=o=[],n||t||(i=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},m.extend({Deferred:function(t){var n=[["notify","progress",m.Callbacks("memory"),m.Callbacks("memory"),2],["resolve","done",m.Callbacks("once memory"),m.Callbacks("once memory"),0,"resolved"],["reject","fail",m.Callbacks("once memory"),m.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return m.Deferred(function(t){m.each(n,function(n,r){var a=m.isFunction(e[r[4]])&&e[r[4]];i[r[1]](function(){var e=a&&a.apply(this,arguments);e&&m.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,a?[e]:arguments)})}),e=null}).promise()},then:function(t,r,a){var i=0;function o(t,n,r,a){return function(){var s=this,l=arguments,u=function(){var e,u;if(!(t<i)){if((e=r.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");u=e&&("object"==typeof e||"function"==typeof e)&&e.then,m.isFunction(u)?a?u.call(e,o(i,n,M,a),o(i,n,P,a)):(i++,u.call(e,o(i,n,M,a),o(i,n,P,a),o(i,n,M,n.notifyWith))):(r!==M&&(s=void 0,l=[e]),(a||n.resolveWith)(s,l))}},p=a?u:function(){try{u()}catch(e){m.Deferred.exceptionHook&&m.Deferred.exceptionHook(e,p.stackTrace),t+1>=i&&(r!==P&&(s=void 0,l=[e]),n.rejectWith(s,l))}};t?p():(m.Deferred.getStackHook&&(p.stackTrace=m.Deferred.getStackHook()),e.setTimeout(p))}}return m.Deferred(function(e){n[0][3].add(o(0,e,m.isFunction(a)?a:M,e.notifyWith)),n[1][3].add(o(0,e,m.isFunction(t)?t:M)),n[2][3].add(o(0,e,m.isFunction(r)?r:P))}).promise()},promise:function(e){return null!=e?m.extend(e,a):a}},i={};return m.each(n,function(e,t){var o=t[2],s=t[5];a[t[1]]=o.add,s&&o.add(function(){r=s},n[3-e][2].disable,n[0][2].lock),o.add(t[3].fire),i[t[0]]=function(){return i[t[0]+"With"](this===i?void 0:this,arguments),this},i[t[0]+"With"]=o.fireWith}),a.promise(i),t&&t.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),a=i.call(arguments),o=m.Deferred(),s=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?i.call(arguments):n,--t||o.resolveWith(r,a)}};if(t<=1&&(B(e,o.done(s(n)).resolve,o.reject),"pending"===o.state()||m.isFunction(a[n]&&a[n].then)))return o.then();for(;n--;)B(a[n],s(n),o.reject);return o.promise()}});var _=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;m.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&_.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},m.readyException=function(t){e.setTimeout(function(){throw t})};var G=m.Deferred();function H(){r.removeEventListener("DOMContentLoaded",H),e.removeEventListener("load",H),m.ready()}m.fn.ready=function(e){return G.then(e).catch(function(e){m.readyException(e)}),this},m.extend({isReady:!1,readyWait:1,holdReady:function(e){e?m.readyWait++:m.ready(!0)},ready:function(e){(!0===e?--m.readyWait:m.isReady)||(m.isReady=!0,!0!==e&&--m.readyWait>0||G.resolveWith(r,[m]))}}),m.ready.then=G.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(m.ready):(r.addEventListener("DOMContentLoaded",H),e.addEventListener("load",H));var j=function(e,t,n,r,a,i,o){var s=0,l=e.length,u=null==n;if("object"===m.type(n))for(s in a=!0,n)j(e,t,s,n[s],!0,i,o);else if(void 0!==r&&(a=!0,m.isFunction(r)||(o=!0),u&&(o?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(m(e),n)})),t))for(;s<l;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return a?e:u?t.call(e):l?t(e[0],n):i},z=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function q(){this.expando=m.expando+q.uid++}q.uid=1,q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},z(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,a=this.cache(e);if("string"==typeof t)a[m.camelCase(t)]=n;else for(r in t)a[m.camelCase(r)]=t[r];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][m.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){m.isArray(t)?t=t.map(m.camelCase):t=(t=m.camelCase(t))in r?[t]:t.match(I)||[],n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||m.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!m.isEmptyObject(t)}};var W=new q,X=new q,V=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,$=/[A-Z]/g;function Y(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace($,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:V.test(e)?JSON.parse(e):e)}(n)}catch(e){}X.set(e,t,n)}else n=void 0;return n}m.extend({hasData:function(e){return X.hasData(e)||W.hasData(e)},data:function(e,t,n){return X.access(e,t,n)},removeData:function(e,t){X.remove(e,t)},_data:function(e,t,n){return W.access(e,t,n)},_removeData:function(e,t){W.remove(e,t)}}),m.fn.extend({data:function(e,t){var n,r,a,i=this[0],o=i&&i.attributes;if(void 0===e){if(this.length&&(a=X.get(i),1===i.nodeType&&!W.get(i,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&(0===(r=o[n].name).indexOf("data-")&&(r=m.camelCase(r.slice(5)),Y(i,r,a[r])));W.set(i,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each(function(){X.set(this,e)}):j(this,function(t){var n;if(i&&void 0===t){if(void 0!==(n=X.get(i,e)))return n;if(void 0!==(n=Y(i,e)))return n}else this.each(function(){X.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){X.remove(this,e)})}}),m.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=W.get(e,t),n&&(!r||m.isArray(n)?r=W.access(e,t,m.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=m.queue(e,t),r=n.length,a=n.shift(),i=m._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),r--),a&&("fx"===t&&n.unshift("inprogress"),delete i.stop,a.call(e,function(){m.dequeue(e,t)},i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return W.get(e,n)||W.access(e,n,{empty:m.Callbacks("once memory").add(function(){W.remove(e,[t+"queue",n])})})}}),m.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?m.queue(this[0],e):void 0===t?this:this.each(function(){var n=m.queue(this,e,t);m._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&m.dequeue(this,e)})},dequeue:function(e){return this.each(function(){m.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,a=m.Deferred(),i=this,o=this.length,s=function(){--r||a.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=W.get(i[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),a.promise(t)}});var Z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,K=new RegExp("^(?:([+-])=|)("+Z+")([a-z%]*)$","i"),J=["Top","Right","Bottom","Left"],Q=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&m.contains(e.ownerDocument,e)&&"none"===m.css(e,"display")},ee=function(e,t,n,r){var a,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in a=n.apply(e,r||[]),t)e.style[i]=o[i];return a};function te(e,t,n,r){var a,i=1,o=20,s=r?function(){return r.cur()}:function(){return m.css(e,t,"")},l=s(),u=n&&n[3]||(m.cssNumber[t]?"":"px"),p=(m.cssNumber[t]||"px"!==u&&+l)&&K.exec(m.css(e,t));if(p&&p[3]!==u){u=u||p[3],n=n||[],p=+l||1;do{p/=i=i||".5",m.style(e,t,p+u)}while(i!==(i=s()/l)&&1!==i&&--o)}return n&&(p=+p||+l||0,a=n[1]?p+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=p,r.end=a)),a}var ne={};function re(e){var t,n=e.ownerDocument,r=e.nodeName,a=ne[r];return a||(t=n.body.appendChild(n.createElement(r)),a=m.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),ne[r]=a,a)}function ae(e,t){for(var n,r,a=[],i=0,o=e.length;i<o;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(a[i]=W.get(r,"display")||null,a[i]||(r.style.display="")),""===r.style.display&&Q(r)&&(a[i]=re(r))):"none"!==n&&(a[i]="none",W.set(r,"display",n)));for(i=0;i<o;i++)null!=a[i]&&(e[i].style.display=a[i]);return e}m.fn.extend({show:function(){return ae(this,!0)},hide:function(){return ae(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Q(this)?m(this).show():m(this).hide()})}});var ie=/^(?:checkbox|radio)$/i,oe=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,se=/^$|\/(?:java|ecma)script/i,le={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ue(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&m.nodeName(e,t)?m.merge([e],n):n}function pe(e,t){for(var n=0,r=e.length;n<r;n++)W.set(e[n],"globalEval",!t||W.get(t[n],"globalEval"))}le.optgroup=le.option,le.tbody=le.tfoot=le.colgroup=le.caption=le.thead,le.th=le.td;var ce=/<|&#?\w+;/;function fe(e,t,n,r,a){for(var i,o,s,l,u,p,c=t.createDocumentFragment(),f=[],h=0,d=e.length;h<d;h++)if((i=e[h])||0===i)if("object"===m.type(i))m.merge(f,i.nodeType?[i]:i);else if(ce.test(i)){for(o=o||c.appendChild(t.createElement("div")),s=(oe.exec(i)||["",""])[1].toLowerCase(),l=le[s]||le._default,o.innerHTML=l[1]+m.htmlPrefilter(i)+l[2],p=l[0];p--;)o=o.lastChild;m.merge(f,o.childNodes),(o=c.firstChild).textContent=""}else f.push(t.createTextNode(i));for(c.textContent="",h=0;i=f[h++];)if(r&&m.inArray(i,r)>-1)a&&a.push(i);else if(u=m.contains(i.ownerDocument,i),o=ue(c.appendChild(i),"script"),u&&pe(o),n)for(p=0;i=o[p++];)se.test(i.type||"")&&n.push(i);return c}!function(){var e=r.createDocumentFragment().appendChild(r.createElement("div")),t=r.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),d.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var he=r.documentElement,de=/^key/,ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ve=/^([^.]*)(?:\.(.+)|)/;function me(){return!0}function ye(){return!1}function be(){try{return r.activeElement}catch(e){}}function xe(e,t,n,r,a,i){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)xe(e,s,n,r,t[s],i);return e}if(null==r&&null==a?(a=n,r=n=void 0):null==a&&("string"==typeof n?(a=r,r=void 0):(a=r,r=n,n=void 0)),!1===a)a=ye;else if(!a)return e;return 1===i&&(o=a,(a=function(e){return m().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=m.guid++)),e.each(function(){m.event.add(this,t,a,r,n)})}m.event={global:{},add:function(e,t,n,r,a){var i,o,s,l,u,p,c,f,h,d,g,v=W.get(e);if(v)for(n.handler&&(n=(i=n).handler,a=i.selector),a&&m.find.matchesSelector(he,a),n.guid||(n.guid=m.guid++),(l=v.events)||(l=v.events={}),(o=v.handle)||(o=v.handle=function(t){return void 0!==m&&m.event.triggered!==t.type?m.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(I)||[""]).length;u--;)h=g=(s=ve.exec(t[u])||[])[1],d=(s[2]||"").split(".").sort(),h&&(c=m.event.special[h]||{},h=(a?c.delegateType:c.bindType)||h,c=m.event.special[h]||{},p=m.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:a,needsContext:a&&m.expr.match.needsContext.test(a),namespace:d.join(".")},i),(f=l[h])||((f=l[h]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,r,d,o)||e.addEventListener&&e.addEventListener(h,o)),c.add&&(c.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),a?f.splice(f.delegateCount++,0,p):f.push(p),m.event.global[h]=!0)},remove:function(e,t,n,r,a){var i,o,s,l,u,p,c,f,h,d,g,v=W.hasData(e)&&W.get(e);if(v&&(l=v.events)){for(u=(t=(t||"").match(I)||[""]).length;u--;)if(h=g=(s=ve.exec(t[u])||[])[1],d=(s[2]||"").split(".").sort(),h){for(c=m.event.special[h]||{},f=l[h=(r?c.delegateType:c.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=i=f.length;i--;)p=f[i],!a&&g!==p.origType||n&&n.guid!==p.guid||s&&!s.test(p.namespace)||r&&r!==p.selector&&("**"!==r||!p.selector)||(f.splice(i,1),p.selector&&f.delegateCount--,c.remove&&c.remove.call(e,p));o&&!f.length&&(c.teardown&&!1!==c.teardown.call(e,d,v.handle)||m.removeEvent(e,h,v.handle),delete l[h])}else for(h in l)m.event.remove(e,h+t[u],n,r,!0);m.isEmptyObject(l)&&W.remove(e,"handle events")}},dispatch:function(e){var t,n,r,a,i,o,s=m.event.fix(e),l=new Array(arguments.length),u=(W.get(this,"events")||{})[s.type]||[],p=m.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!p.preDispatch||!1!==p.preDispatch.call(this,s)){for(o=m.event.handlers.call(this,s,u),t=0;(a=o[t++])&&!s.isPropagationStopped();)for(s.currentTarget=a.elem,n=0;(i=a.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,void 0!==(r=((m.event.special[i.origType]||{}).handle||i.handler).apply(a.elem,l))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return p.postDispatch&&p.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,a,i,o,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(i=[],o={},n=0;n<l;n++)void 0===o[a=(r=t[n]).selector+" "]&&(o[a]=r.needsContext?m(a,this).index(u)>-1:m.find(a,this,null,[u]).length),o[a]&&i.push(r);i.length&&s.push({elem:u,handlers:i})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(m.Event.prototype,e,{enumerable:!0,configurable:!0,get:m.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[m.expando]?e:new m.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==be()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===be()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&m.nodeName(this,"input"))return this.click(),!1},_default:function(e){return m.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},m.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},m.Event=function(e,t){return this instanceof m.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?me:ye,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&m.extend(this,t),this.timeStamp=e&&e.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(e,t)},m.Event.prototype={constructor:m.Event,isDefaultPrevented:ye,isPropagationStopped:ye,isImmediatePropagationStopped:ye,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=me,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=me,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=me,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},m.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&de.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&ge.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},m.event.addProp),m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){m.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,a=e.handleObj;return r&&(r===this||m.contains(this,r))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}}),m.fn.extend({on:function(e,t,n,r){return xe(this,e,t,n,r)},one:function(e,t,n,r){return xe(this,e,t,n,r,1)},off:function(e,t,n){var r,a;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,m(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ye),this.each(function(){m.event.remove(this,e,n,t)})}});var Se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Te=/<script|<style|<link/i,we=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^true\/(.*)/,Ee=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ce(e,t){return m.nodeName(e,"table")&&m.nodeName(11!==t.nodeType?t:t.firstChild,"tr")&&e.getElementsByTagName("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ue(e){var t=ke.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Le(e,t){var n,r,a,i,o,s,l,u;if(1===t.nodeType){if(W.hasData(e)&&(i=W.access(e),o=W.set(t,i),u=i.events))for(a in delete o.handle,o.events={},u)for(n=0,r=u[a].length;n<r;n++)m.event.add(t,a,u[a][n]);X.hasData(e)&&(s=X.access(e),l=m.extend({},s),X.set(t,l))}}function De(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ie.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Re(e,t,n,r){t=o.apply([],t);var a,i,s,l,u,p,c=0,f=e.length,h=f-1,v=t[0],y=m.isFunction(v);if(y||f>1&&"string"==typeof v&&!d.checkClone&&we.test(v))return e.each(function(a){var i=e.eq(a);y&&(t[0]=v.call(this,a,i.html())),Re(i,t,n,r)});if(f&&(i=(a=fe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===a.childNodes.length&&(a=i),i||r)){for(l=(s=m.map(ue(a,"script"),Oe)).length;c<f;c++)u=a,c!==h&&(u=m.clone(u,!0,!0),l&&m.merge(s,ue(u,"script"))),n.call(e[c],u,c);if(l)for(p=s[s.length-1].ownerDocument,m.map(s,Ue),c=0;c<l;c++)u=s[c],se.test(u.type||"")&&!W.access(u,"globalEval")&&m.contains(p,u)&&(u.src?m._evalUrl&&m._evalUrl(u.src):g(u.textContent.replace(Ee,""),p))}return e}function Ae(e,t,n){for(var r,a=t?m.filter(t,e):e,i=0;null!=(r=a[i]);i++)n||1!==r.nodeType||m.cleanData(ue(r)),r.parentNode&&(n&&m.contains(r.ownerDocument,r)&&pe(ue(r,"script")),r.parentNode.removeChild(r));return e}m.extend({htmlPrefilter:function(e){return e.replace(Se,"<$1></$2>")},clone:function(e,t,n){var r,a,i,o,s=e.cloneNode(!0),l=m.contains(e.ownerDocument,e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||m.isXMLDoc(e)))for(o=ue(s),r=0,a=(i=ue(e)).length;r<a;r++)De(i[r],o[r]);if(t)if(n)for(i=i||ue(e),o=o||ue(s),r=0,a=i.length;r<a;r++)Le(i[r],o[r]);else Le(e,s);return(o=ue(s,"script")).length>0&&pe(o,!l&&ue(e,"script")),s},cleanData:function(e){for(var t,n,r,a=m.event.special,i=0;void 0!==(n=e[i]);i++)if(z(n)){if(t=n[W.expando]){if(t.events)for(r in t.events)a[r]?m.event.remove(n,r):m.removeEvent(n,r,t.handle);n[W.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),m.fn.extend({detach:function(e){return Ae(this,e,!0)},remove:function(e){return Ae(this,e)},text:function(e){return j(this,function(e){return void 0===e?m.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Re(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ce(this,e).appendChild(e)})},prepend:function(){return Re(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ce(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(m.cleanData(ue(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return m.clone(this,e,t)})},html:function(e){return j(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Te.test(e)&&!le[(oe.exec(e)||["",""])[1].toLowerCase()]){e=m.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(m.cleanData(ue(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Re(this,arguments,function(t){var n=this.parentNode;m.inArray(this,e)<0&&(m.cleanData(ue(this)),n&&n.replaceChild(t,this))},e)}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){m.fn[e]=function(e){for(var n,r=[],a=m(e),i=a.length-1,o=0;o<=i;o++)n=o===i?this:this.clone(!0),m(a[o])[t](n),s.apply(r,n.get());return this.pushStack(r)}});var Fe=/^margin/,Ne=new RegExp("^("+Z+")(?!px)[a-z%]+$","i"),Ie=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};function Me(e,t,n){var r,a,i,o,s=e.style;return(n=n||Ie(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||m.contains(e.ownerDocument,e)||(o=m.style(e,t)),!d.pixelMarginRight()&&Ne.test(o)&&Fe.test(t)&&(r=s.width,a=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=a,s.maxWidth=i)),void 0!==o?o+"":o}function Pe(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){function t(){if(l){l.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",l.innerHTML="",he.appendChild(s);var t=e.getComputedStyle(l);n="1%"!==t.top,o="2px"===t.marginLeft,a="4px"===t.width,l.style.marginRight="50%",i="4px"===t.marginRight,he.removeChild(s),l=null}}var n,a,i,o,s=r.createElement("div"),l=r.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===l.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(l),m.extend(d,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),a},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var Be=/^(none|table(?!-c[ea]).+)/,_e={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"},He=["Webkit","Moz","ms"],je=r.createElement("div").style;function ze(e){if(e in je)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=He.length;n--;)if((e=He[n]+t)in je)return e}function qe(e,t,n){var r=K.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function We(e,t,n,r,a){var i,o=0;for(i=n===(r?"border":"content")?4:"width"===t?1:0;i<4;i+=2)"margin"===n&&(o+=m.css(e,n+J[i],!0,a)),r?("content"===n&&(o-=m.css(e,"padding"+J[i],!0,a)),"margin"!==n&&(o-=m.css(e,"border"+J[i]+"Width",!0,a))):(o+=m.css(e,"padding"+J[i],!0,a),"padding"!==n&&(o+=m.css(e,"border"+J[i]+"Width",!0,a)));return o}function Xe(e,t,n){var r,a=!0,i=Ie(e),o="border-box"===m.css(e,"boxSizing",!1,i);if(e.getClientRects().length&&(r=e.getBoundingClientRect()[t]),r<=0||null==r){if(((r=Me(e,t,i))<0||null==r)&&(r=e.style[t]),Ne.test(r))return r;a=o&&(d.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+We(e,t,n||(o?"border":"content"),a,i)+"px"}function Ve(e,t,n,r,a){return new Ve.prototype.init(e,t,n,r,a)}m.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Me(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,i,o,s=m.camelCase(t),l=e.style;return t=m.cssProps[s]||(m.cssProps[s]=ze(s)||s),o=m.cssHooks[t]||m.cssHooks[s],void 0===n?o&&"get"in o&&void 0!==(a=o.get(e,!1,r))?a:l[t]:("string"===(i=typeof n)&&(a=K.exec(n))&&a[1]&&(n=te(e,t,a),i="number"),void(null!=n&&n==n&&("number"===i&&(n+=a&&a[3]||(m.cssNumber[s]?"":"px")),d.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l[t]=n))))}},css:function(e,t,n,r){var a,i,o,s=m.camelCase(t);return t=m.cssProps[s]||(m.cssProps[s]=ze(s)||s),(o=m.cssHooks[t]||m.cssHooks[s])&&"get"in o&&(a=o.get(e,!0,n)),void 0===a&&(a=Me(e,t,r)),"normal"===a&&t in Ge&&(a=Ge[t]),""===n||n?(i=parseFloat(a),!0===n||isFinite(i)?i||0:a):a}}),m.each(["height","width"],function(e,t){m.cssHooks[t]={get:function(e,n,r){if(n)return!Be.test(m.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Xe(e,t,r):ee(e,_e,function(){return Xe(e,t,r)})},set:function(e,n,r){var a,i=r&&Ie(e),o=r&&We(e,t,r,"border-box"===m.css(e,"boxSizing",!1,i),i);return o&&(a=K.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=m.css(e,t)),qe(0,n,o)}}}),m.cssHooks.marginLeft=Pe(d.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Me(e,"marginLeft"))||e.getBoundingClientRect().left-ee(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),m.each({margin:"",padding:"",border:"Width"},function(e,t){m.cssHooks[e+t]={expand:function(n){for(var r=0,a={},i="string"==typeof n?n.split(" "):[n];r<4;r++)a[e+J[r]+t]=i[r]||i[r-2]||i[0];return a}},Fe.test(e)||(m.cssHooks[e+t].set=qe)}),m.fn.extend({css:function(e,t){return j(this,function(e,t,n){var r,a,i={},o=0;if(m.isArray(t)){for(r=Ie(e),a=t.length;o<a;o++)i[t[o]]=m.css(e,t[o],!1,r);return i}return void 0!==n?m.style(e,t,n):m.css(e,t)},e,t,arguments.length>1)}}),m.Tween=Ve,Ve.prototype={constructor:Ve,init:function(e,t,n,r,a,i){this.elem=e,this.prop=n,this.easing=a||m.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(m.cssNumber[n]?"":"px")},cur:function(){var e=Ve.propHooks[this.prop];return e&&e.get?e.get(this):Ve.propHooks._default.get(this)},run:function(e){var t,n=Ve.propHooks[this.prop];return this.options.duration?this.pos=t=m.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ve.propHooks._default.set(this),this}},Ve.prototype.init.prototype=Ve.prototype,Ve.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=m.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){m.fx.step[e.prop]?m.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[m.cssProps[e.prop]]&&!m.cssHooks[e.prop]?e.elem[e.prop]=e.now:m.style(e.elem,e.prop,e.now+e.unit)}}},Ve.propHooks.scrollTop=Ve.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},m.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},m.fx=Ve.prototype.init,m.fx.step={};var $e,Ye,Ze=/^(?:toggle|show|hide)$/,Ke=/queueHooks$/;function Je(){Ye&&(e.requestAnimationFrame(Je),m.fx.tick())}function Qe(){return e.setTimeout(function(){$e=void 0}),$e=m.now()}function et(e,t){var n,r=0,a={height:e};for(t=t?1:0;r<4;r+=2-t)a["margin"+(n=J[r])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function tt(e,t,n){for(var r,a=(nt.tweeners[t]||[]).concat(nt.tweeners["*"]),i=0,o=a.length;i<o;i++)if(r=a[i].call(n,t,e))return r}function nt(e,t,n){var r,a,i=0,o=nt.prefilters.length,s=m.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var t=$e||Qe(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),i=0,o=u.tweens.length;i<o;i++)u.tweens[i].run(r);return s.notifyWith(e,[u,r,n]),r<1&&o?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:m.extend({},t),opts:m.extend(!0,{specialEasing:{},easing:m.easing._default},n),originalProperties:t,originalOptions:n,startTime:$e||Qe(),duration:n.duration,tweens:[],createTween:function(t,n){var r=m.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(a)return this;for(a=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),p=u.props;for(function(e,t){var n,r,a,i,o;for(n in e)if(a=t[r=m.camelCase(n)],i=e[n],m.isArray(i)&&(a=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(o=m.cssHooks[r])&&"expand"in o)for(n in i=o.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=a);else t[r]=a}(p,u.opts.specialEasing);i<o;i++)if(r=nt.prefilters[i].call(u,e,p,u.opts))return m.isFunction(r.stop)&&(m._queueHooks(u.elem,u.opts.queue).stop=m.proxy(r.stop,r)),r;return m.map(p,tt,u),m.isFunction(u.opts.start)&&u.opts.start.call(e,u),m.fx.timer(m.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}m.Animation=m.extend(nt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,K.exec(t),n),n}]},tweener:function(e,t){m.isFunction(e)?(t=e,e=["*"]):e=e.match(I);for(var n,r=0,a=e.length;r<a;r++)n=e[r],nt.tweeners[n]=nt.tweeners[n]||[],nt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,a,i,o,s,l,u,p,c="width"in t||"height"in t,f=this,h={},d=e.style,g=e.nodeType&&Q(e),v=W.get(e,"fxshow");for(r in n.queue||(null==(o=m._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,f.always(function(){f.always(function(){o.unqueued--,m.queue(e,"fx").length||o.empty.fire()})})),t)if(a=t[r],Ze.test(a)){if(delete t[r],i=i||"toggle"===a,a===(g?"hide":"show")){if("show"!==a||!v||void 0===v[r])continue;g=!0}h[r]=v&&v[r]||m.style(e,r)}if((l=!m.isEmptyObject(t))||!m.isEmptyObject(h))for(r in c&&1===e.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],null==(u=v&&v.display)&&(u=W.get(e,"display")),"none"===(p=m.css(e,"display"))&&(u?p=u:(ae([e],!0),u=e.style.display||u,p=m.css(e,"display"),ae([e]))),("inline"===p||"inline-block"===p&&null!=u)&&"none"===m.css(e,"float")&&(l||(f.done(function(){d.display=u}),null==u&&(p=d.display,u="none"===p?"":p)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),l=!1,h)l||(v?"hidden"in v&&(g=v.hidden):v=W.access(e,"fxshow",{display:u}),i&&(v.hidden=!g),g&&ae([e],!0),f.done(function(){for(r in g||ae([e]),W.remove(e,"fxshow"),h)m.style(e,r,h[r])})),l=tt(g?v[r]:0,r,f),r in v||(v[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?nt.prefilters.unshift(e):nt.prefilters.push(e)}}),m.speed=function(e,t,n){var a=e&&"object"==typeof e?m.extend({},e):{complete:n||!n&&t||m.isFunction(e)&&e,duration:e,easing:n&&t||t&&!m.isFunction(t)&&t};return m.fx.off||r.hidden?a.duration=0:"number"!=typeof a.duration&&(a.duration in m.fx.speeds?a.duration=m.fx.speeds[a.duration]:a.duration=m.fx.speeds._default),null!=a.queue&&!0!==a.queue||(a.queue="fx"),a.old=a.complete,a.complete=function(){m.isFunction(a.old)&&a.old.call(this),a.queue&&m.dequeue(this,a.queue)},a},m.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Q).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var a=m.isEmptyObject(e),i=m.speed(t,n,r),o=function(){var t=nt(this,m.extend({},e),i);(a||W.get(this,"finish"))&&t.stop(!0)};return o.finish=o,a||!1===i.queue?this.each(o):this.queue(i.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,a=null!=e&&e+"queueHooks",i=m.timers,o=W.get(this);if(a)o[a]&&o[a].stop&&r(o[a]);else for(a in o)o[a]&&o[a].stop&&Ke.test(a)&&r(o[a]);for(a=i.length;a--;)i[a].elem!==this||null!=e&&i[a].queue!==e||(i[a].anim.stop(n),t=!1,i.splice(a,1));!t&&n||m.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=W.get(this),r=n[e+"queue"],a=n[e+"queueHooks"],i=m.timers,o=r?r.length:0;for(n.finish=!0,m.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),m.each(["toggle","show","hide"],function(e,t){var n=m.fn[t];m.fn[t]=function(e,r,a){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(et(t,!0),e,r,a)}}),m.each({slideDown:et("show"),slideUp:et("hide"),slideToggle:et("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){m.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),m.timers=[],m.fx.tick=function(){var e,t=0,n=m.timers;for($e=m.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||m.fx.stop(),$e=void 0},m.fx.timer=function(e){m.timers.push(e),e()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){Ye||(Ye=e.requestAnimationFrame?e.requestAnimationFrame(Je):e.setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){e.cancelAnimationFrame?e.cancelAnimationFrame(Ye):e.clearInterval(Ye),Ye=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(t,n){return t=m.fx&&m.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var a=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(a)}})},function(){var e=r.createElement("input"),t=r.createElement("select").appendChild(r.createElement("option"));e.type="checkbox",d.checkOn=""!==e.value,d.optSelected=t.selected,(e=r.createElement("input")).value="t",e.type="radio",d.radioValue="t"===e.value}();var rt,at=m.expr.attrHandle;m.fn.extend({attr:function(e,t){return j(this,m.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){m.removeAttr(this,e)})}}),m.extend({attr:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?m.prop(e,t,n):(1===i&&m.isXMLDoc(e)||(a=m.attrHooks[t.toLowerCase()]||(m.expr.match.bool.test(t)?rt:void 0)),void 0!==n?null===n?void m.removeAttr(e,t):a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(r=a.get(e,t))?r:null==(r=m.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&m.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,a=t&&t.match(I);if(a&&1===e.nodeType)for(;n=a[r++];)e.removeAttribute(n)}}),rt={set:function(e,t,n){return!1===t?m.removeAttr(e,n):e.setAttribute(n,n),n}},m.each(m.expr.match.bool.source.match(/\w+/g),function(e,t){var n=at[t]||m.find.attr;at[t]=function(e,t,r){var a,i,o=t.toLowerCase();return r||(i=at[o],at[o]=a,a=null!=n(e,t,r)?o:null,at[o]=i),a}});var it=/^(?:input|select|textarea|button)$/i,ot=/^(?:a|area)$/i;function st(e){return(e.match(I)||[]).join(" ")}function lt(e){return e.getAttribute&&e.getAttribute("class")||""}m.fn.extend({prop:function(e,t){return j(this,m.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[m.propFix[e]||e]})}}),m.extend({prop:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&m.isXMLDoc(e)||(t=m.propFix[t]||t,a=m.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:e[t]=n:a&&"get"in a&&null!==(r=a.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=m.find.attr(e,"tabindex");return t?parseInt(t,10):it.test(e.nodeName)||ot.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(m.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),m.fn.extend({addClass:function(e){var t,n,r,a,i,o,s,l=0;if(m.isFunction(e))return this.each(function(t){m(this).addClass(e.call(this,t,lt(this)))});if("string"==typeof e&&e)for(t=e.match(I)||[];n=this[l++];)if(a=lt(n),r=1===n.nodeType&&" "+st(a)+" "){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a!==(s=st(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,a,i,o,s,l=0;if(m.isFunction(e))return this.each(function(t){m(this).removeClass(e.call(this,t,lt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(I)||[];n=this[l++];)if(a=lt(n),r=1===n.nodeType&&" "+st(a)+" "){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");a!==(s=st(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):m.isFunction(e)?this.each(function(n){m(this).toggleClass(e.call(this,n,lt(this),t),t)}):this.each(function(){var t,r,a,i;if("string"===n)for(r=0,a=m(this),i=e.match(I)||[];t=i[r++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=lt(this))&&W.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":W.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+st(lt(n))+" ").indexOf(t)>-1)return!0;return!1}});var ut=/\r/g;m.fn.extend({val:function(e){var t,n,r,a=this[0];return arguments.length?(r=m.isFunction(e),this.each(function(n){var a;1===this.nodeType&&(null==(a=r?e.call(this,n,m(this).val()):e)?a="":"number"==typeof a?a+="":m.isArray(a)&&(a=m.map(a,function(e){return null==e?"":e+""})),(t=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))})):a?(t=m.valHooks[a.type]||m.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:"string"==typeof(n=a.value)?n.replace(ut,""):null==n?"":n:void 0}}),m.extend({valHooks:{option:{get:function(e){var t=m.find.attr(e,"value");return null!=t?t:st(m.text(e))}},select:{get:function(e){var t,n,r,a=e.options,i=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?i+1:a.length;for(r=i<0?l:o?i:0;r<l;r++)if(((n=a[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!m.nodeName(n.parentNode,"optgroup"))){if(t=m(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,a=e.options,i=m.makeArray(t),o=a.length;o--;)((r=a[o]).selected=m.inArray(m.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(e,t){if(m.isArray(t))return e.checked=m.inArray(m(e).val(),t)>-1}},d.checkOn||(m.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var pt=/^(?:focusinfocus|focusoutblur)$/;m.extend(m.event,{trigger:function(t,n,a,i){var o,s,l,u,p,f,h,d=[a||r],g=c.call(t,"type")?t.type:t,v=c.call(t,"namespace")?t.namespace.split("."):[];if(s=l=a=a||r,3!==a.nodeType&&8!==a.nodeType&&!pt.test(g+m.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),p=g.indexOf(":")<0&&"on"+g,(t=t[m.expando]?t:new m.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=a),n=null==n?[t]:m.makeArray(n,[t]),h=m.event.special[g]||{},i||!h.trigger||!1!==h.trigger.apply(a,n))){if(!i&&!h.noBubble&&!m.isWindow(a)){for(u=h.delegateType||g,pt.test(u+g)||(s=s.parentNode);s;s=s.parentNode)d.push(s),l=s;l===(a.ownerDocument||r)&&d.push(l.defaultView||l.parentWindow||e)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)t.type=o>1?u:h.bindType||g,(f=(W.get(s,"events")||{})[t.type]&&W.get(s,"handle"))&&f.apply(s,n),(f=p&&s[p])&&f.apply&&z(s)&&(t.result=f.apply(s,n),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(d.pop(),n)||!z(a)||p&&m.isFunction(a[g])&&!m.isWindow(a)&&((l=a[p])&&(a[p]=null),m.event.triggered=g,a[g](),m.event.triggered=void 0,l&&(a[p]=l)),t.result}},simulate:function(e,t,n){var r=m.extend(new m.Event,n,{type:e,isSimulated:!0});m.event.trigger(r,null,t)}}),m.fn.extend({trigger:function(e,t){return this.each(function(){m.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return m.event.trigger(e,t,n,!0)}}),m.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){m.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),m.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),d.focusin="onfocusin"in e,d.focusin||m.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){m.event.simulate(t,e.target,m.event.fix(e))};m.event.special[t]={setup:function(){var r=this.ownerDocument||this,a=W.access(r,t);a||r.addEventListener(e,n,!0),W.access(r,t,(a||0)+1)},teardown:function(){var r=this.ownerDocument||this,a=W.access(r,t)-1;a?W.access(r,t,a):(r.removeEventListener(e,n,!0),W.remove(r,t))}}});var ct=e.location,ft=m.now(),ht=/\?/;m.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+t),n};var dt=/\[\]$/,gt=/\r?\n/g,vt=/^(?:submit|button|image|reset|file)$/i,mt=/^(?:input|select|textarea|keygen)/i;function yt(e,t,n,r){var a;if(m.isArray(t))m.each(t,function(t,a){n||dt.test(e)?r(e,a):yt(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,n,r)});else if(n||"object"!==m.type(t))r(e,t);else for(a in t)yt(e+"["+a+"]",t[a],n,r)}m.param=function(e,t){var n,r=[],a=function(e,t){var n=m.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(m.isArray(e)||e.jquery&&!m.isPlainObject(e))m.each(e,function(){a(this.name,this.value)});else for(n in e)yt(n,e[n],t,a);return r.join("&")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=m.prop(this,"elements");return e?m.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!m(this).is(":disabled")&&mt.test(this.nodeName)&&!vt.test(e)&&(this.checked||!ie.test(e))}).map(function(e,t){var n=m(this).val();return null==n?null:m.isArray(n)?m.map(n,function(e){return{name:t.name,value:e.replace(gt,"\r\n")}}):{name:t.name,value:n.replace(gt,"\r\n")}}).get()}});var bt=/%20/g,xt=/#.*$/,St=/([?&])_=[^&]*/,Tt=/^(.*?):[ \t]*([^\r\n]*)$/gm,wt=/^(?:GET|HEAD)$/,kt=/^\/\//,Et={},Ct={},Ot="*/".concat("*"),Ut=r.createElement("a");function Lt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,a=0,i=t.toLowerCase().match(I)||[];if(m.isFunction(n))for(;r=i[a++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Dt(e,t,n,r){var a={},i=e===Ct;function o(s){var l;return a[s]=!0,m.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||i||a[u]?i?!(l=u):void 0:(t.dataTypes.unshift(u),o(u),!1)}),l}return o(t.dataTypes[0])||!a["*"]&&o("*")}function Rt(e,t){var n,r,a=m.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:r||(r={}))[n]=t[n]);return r&&m.extend(!0,e,r),e}Ut.href=ct.href,m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ot,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Rt(Rt(e,m.ajaxSettings),t):Rt(m.ajaxSettings,e)},ajaxPrefilter:Lt(Et),ajaxTransport:Lt(Ct),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var a,i,o,s,l,u,p,c,f,h,d=m.ajaxSetup({},n),g=d.context||d,v=d.context&&(g.nodeType||g.jquery)?m(g):m.event,y=m.Deferred(),b=m.Callbacks("once memory"),x=d.statusCode||{},S={},T={},w="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(p){if(!s)for(s={};t=Tt.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return p?o:null},setRequestHeader:function(e,t){return null==p&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,S[e]=t),this},overrideMimeType:function(e){return null==p&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(p)k.always(e[k.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||w;return a&&a.abort(t),E(0,t),this}};if(y.promise(k),d.url=((t||d.url||ct.href)+"").replace(kt,ct.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(I)||[""],null==d.crossDomain){u=r.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Ut.protocol+"//"+Ut.host!=u.protocol+"//"+u.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=m.param(d.data,d.traditional)),Dt(Et,d,n,k),p)return k;for(f in(c=m.event&&d.global)&&0==m.active++&&m.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!wt.test(d.type),i=d.url.replace(xt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(bt,"+")):(h=d.url.slice(i.length),d.data&&(i+=(ht.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(St,"$1"),h=(ht.test(i)?"&":"?")+"_="+ft+++h),d.url=i+h),d.ifModified&&(m.lastModified[i]&&k.setRequestHeader("If-Modified-Since",m.lastModified[i]),m.etag[i]&&k.setRequestHeader("If-None-Match",m.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&k.setRequestHeader("Content-Type",d.contentType),k.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Ot+"; q=0.01":""):d.accepts["*"]),d.headers)k.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(g,k,d)||p))return k.abort();if(w="abort",b.add(d.complete),k.done(d.success),k.fail(d.error),a=Dt(Ct,d,n,k)){if(k.readyState=1,c&&v.trigger("ajaxSend",[k,d]),p)return k;d.async&&d.timeout>0&&(l=e.setTimeout(function(){k.abort("timeout")},d.timeout));try{p=!1,a.send(S,E)}catch(e){if(p)throw e;E(-1,e)}}else E(-1,"No Transport");function E(t,n,r,s){var u,f,h,S,T,w=n;p||(p=!0,l&&e.clearTimeout(l),a=void 0,o=s||"",k.readyState=t>0?4:0,u=t>=200&&t<300||304===t,r&&(S=function(e,t,n){for(var r,a,i,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in n)i=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){i=a;break}o||(o=a)}i=i||o}if(i)return i!==l[0]&&l.unshift(i),n[i]}(d,k,r)),S=function(e,t,n,r){var a,i,o,s,l,u={},p=e.dataTypes.slice();if(p[1])for(o in e.converters)u[o.toLowerCase()]=e.converters[o];for(i=p.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=p.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(o=u[l+" "+i]||u["* "+i]))for(a in u)if((s=a.split(" "))[1]===i&&(o=u[l+" "+s[0]]||u["* "+s[0]])){!0===o?o=u[a]:!0!==u[a]&&(i=s[0],p.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(d,S,k,u),u?(d.ifModified&&((T=k.getResponseHeader("Last-Modified"))&&(m.lastModified[i]=T),(T=k.getResponseHeader("etag"))&&(m.etag[i]=T)),204===t||"HEAD"===d.type?w="nocontent":304===t?w="notmodified":(w=S.state,f=S.data,u=!(h=S.error))):(h=w,!t&&w||(w="error",t<0&&(t=0))),k.status=t,k.statusText=(n||w)+"",u?y.resolveWith(g,[f,w,k]):y.rejectWith(g,[k,w,h]),k.statusCode(x),x=void 0,c&&v.trigger(u?"ajaxSuccess":"ajaxError",[k,d,u?f:h]),b.fireWith(g,[k,w]),c&&(v.trigger("ajaxComplete",[k,d]),--m.active||m.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return m.get(e,t,n,"json")},getScript:function(e,t){return m.get(e,void 0,t,"script")}}),m.each(["get","post"],function(e,t){m[t]=function(e,n,r,a){return m.isFunction(n)&&(a=a||r,r=n,n=void 0),m.ajax(m.extend({url:e,type:t,dataType:a,data:n,success:r},m.isPlainObject(e)&&e))}}),m._evalUrl=function(e){return m.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},m.fn.extend({wrapAll:function(e){var t;return this[0]&&(m.isFunction(e)&&(e=e.call(this[0])),t=m(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return m.isFunction(e)?this.each(function(t){m(this).wrapInner(e.call(this,t))}):this.each(function(){var t=m(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m.isFunction(e);return this.each(function(n){m(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){m(this).replaceWith(this.childNodes)}),this}}),m.expr.pseudos.hidden=function(e){return!m.expr.pseudos.visible(e)},m.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},m.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var At={0:200,1223:204},Ft=m.ajaxSettings.xhr();d.cors=!!Ft&&"withCredentials"in Ft,d.ajax=Ft=!!Ft,m.ajaxTransport(function(t){var n,r;if(d.cors||Ft&&!t.crossDomain)return{send:function(a,i){var o,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];for(o in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)s.setRequestHeader(o,a[o]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(At[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),m.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return m.globalEval(e),e}}}),m.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),m.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(a,i){t=m("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}});var Nt=[],It=/(=)\?(?=&|$)|\?\?/;function Mt(e){return m.isWindow(e)?e:9===e.nodeType&&e.defaultView}m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Nt.pop()||m.expando+"_"+ft++;return this[e]=!0,e}}),m.ajaxPrefilter("json jsonp",function(t,n,r){var a,i,o,s=!1!==t.jsonp&&(It.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&It.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return a=t.jsonpCallback=m.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(It,"$1"+a):!1!==t.jsonp&&(t.url+=(ht.test(t.url)?"&":"?")+t.jsonp+"="+a),t.converters["script json"]=function(){return o||m.error(a+" was not called"),o[0]},t.dataTypes[0]="json",i=e[a],e[a]=function(){o=arguments},r.always(function(){void 0===i?m(e).removeProp(a):e[a]=i,t[a]&&(t.jsonpCallback=n.jsonpCallback,Nt.push(a)),o&&m.isFunction(i)&&i(o[0]),o=i=void 0}),"script"}),d.createHTMLDocument=function(){var e=r.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),m.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((a=(t=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,t.head.appendChild(a)):t=r),o=!n&&[],(i=O.exec(e))?[t.createElement(i[1])]:(i=fe([e],t,o),o&&o.length&&m(o).remove(),m.merge([],i.childNodes)));var a,i,o},m.fn.load=function(e,t,n){var r,a,i,o=this,s=e.indexOf(" ");return s>-1&&(r=st(e.slice(s)),e=e.slice(0,s)),m.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),o.length>0&&m.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done(function(e){i=arguments,o.html(r?m("<div>").append(m.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){m.fn[t]=function(e){return this.on(t,e)}}),m.expr.pseudos.animated=function(e){return m.grep(m.timers,function(t){return e===t.elem}).length},m.offset={setOffset:function(e,t,n){var r,a,i,o,s,l,u=m.css(e,"position"),p=m(e),c={};"static"===u&&(e.style.position="relative"),s=p.offset(),i=m.css(e,"top"),l=m.css(e,"left"),("absolute"===u||"fixed"===u)&&(i+l).indexOf("auto")>-1?(o=(r=p.position()).top,a=r.left):(o=parseFloat(i)||0,a=parseFloat(l)||0),m.isFunction(t)&&(t=t.call(e,n,m.extend({},s))),null!=t.top&&(c.top=t.top-s.top+o),null!=t.left&&(c.left=t.left-s.left+a),"using"in t?t.using.call(e,c):p.css(c)}},m.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){m.offset.setOffset(this,e,t)});var t,n,r,a,i=this[0];return i?i.getClientRects().length?(r=i.getBoundingClientRect()).width||r.height?(n=Mt(a=i.ownerDocument),t=a.documentElement,{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===m.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),m.nodeName(e[0],"html")||(r=e.offset()),r={top:r.top+m.css(e[0],"borderTopWidth",!0),left:r.left+m.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-m.css(n,"marginTop",!0),left:t.left-r.left-m.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===m.css(e,"position");)e=e.offsetParent;return e||he})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;m.fn[e]=function(r){return j(this,function(e,r,a){var i=Mt(e);return void 0===a?i?i[t]:e[r]:void(i?i.scrollTo(n?i.pageXOffset:a,n?a:i.pageYOffset):e[r]=a)},e,r,arguments.length)}}),m.each(["top","left"],function(e,t){m.cssHooks[t]=Pe(d.pixelPosition,function(e,n){if(n)return n=Me(e,t),Ne.test(n)?m(e).position()[t]+"px":n})}),m.each({Height:"height",Width:"width"},function(e,t){m.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){m.fn[r]=function(a,i){var o=arguments.length&&(n||"boolean"!=typeof a),s=n||(!0===a||!0===i?"margin":"border");return j(this,function(t,n,a){var i;return m.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===a?m.css(t,n,s):m.style(t,n,a,s)},t,o?a:void 0,o)}})}),m.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),m.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var Pt=e.jQuery,Bt=e.$;return m.noConflict=function(t){return e.$===m&&(e.$=Bt),t&&e.jQuery===m&&(e.jQuery=Pt),m},t||(e.jQuery=e.$=m),m}),function(){var e=this,t=e._,n=Array.prototype,r=Object.prototype,a=Function.prototype,i=n.push,o=n.slice,s=r.toString,l=r.hasOwnProperty,u=Array.isArray,p=Object.keys,c=a.bind,f=Object.create,h=function(){},d=function(e){return e instanceof d?e:this instanceof d?void(this._wrapped=e):new d(e)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=d),exports._=d):e._=d,d.VERSION="1.8.3";var g=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)};case 4:return function(n,r,a,i){return e.call(t,n,r,a,i)}}return function(){return e.apply(t,arguments)}},v=function(e,t,n){return null==e?d.identity:d.isFunction(e)?g(e,t,n):d.isObject(e)?d.matcher(e):d.property(e)};d.iteratee=function(e,t){return v(e,t,1/0)};var m=function(e,t){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var a=1;a<r;a++)for(var i=arguments[a],o=e(i),s=o.length,l=0;l<s;l++){var u=o[l];t&&void 0!==n[u]||(n[u]=i[u])}return n}},y=function(e){if(!d.isObject(e))return{};if(f)return f(e);h.prototype=e;var t=new h;return h.prototype=null,t},b=function(e){return function(t){return null==t?void 0:t[e]}},x=Math.pow(2,53)-1,S=b("length"),T=function(e){var t=S(e);return"number"==typeof t&&t>=0&&t<=x};function w(e){return function(t,n,r,a){n=g(n,a,4);var i=!T(t)&&d.keys(t),o=(i||t).length,s=e>0?0:o-1;return arguments.length<3&&(r=t[i?i[s]:s],s+=e),function(t,n,r,a,i,o){for(;i>=0&&i<o;i+=e){var s=a?a[i]:i;r=n(r,t[s],s,t)}return r}(t,n,r,i,s,o)}}d.each=d.forEach=function(e,t,n){var r,a;if(t=g(t,n),T(e))for(r=0,a=e.length;r<a;r++)t(e[r],r,e);else{var i=d.keys(e);for(r=0,a=i.length;r<a;r++)t(e[i[r]],i[r],e)}return e},d.map=d.collect=function(e,t,n){t=v(t,n);for(var r=!T(e)&&d.keys(e),a=(r||e).length,i=Array(a),o=0;o<a;o++){var s=r?r[o]:o;i[o]=t(e[s],s,e)}return i},d.reduce=d.foldl=d.inject=w(1),d.reduceRight=d.foldr=w(-1),d.find=d.detect=function(e,t,n){var r;if(void 0!==(r=T(e)?d.findIndex(e,t,n):d.findKey(e,t,n))&&-1!==r)return e[r]},d.filter=d.select=function(e,t,n){var r=[];return t=v(t,n),d.each(e,function(e,n,a){t(e,n,a)&&r.push(e)}),r},d.reject=function(e,t,n){return d.filter(e,d.negate(v(t)),n)},d.every=d.all=function(e,t,n){t=v(t,n);for(var r=!T(e)&&d.keys(e),a=(r||e).length,i=0;i<a;i++){var o=r?r[i]:i;if(!t(e[o],o,e))return!1}return!0},d.some=d.any=function(e,t,n){t=v(t,n);for(var r=!T(e)&&d.keys(e),a=(r||e).length,i=0;i<a;i++){var o=r?r[i]:i;if(t(e[o],o,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,n,r){return T(e)||(e=d.values(e)),("number"!=typeof n||r)&&(n=0),d.indexOf(e,t,n)>=0},d.invoke=function(e,t){var n=o.call(arguments,2),r=d.isFunction(t);return d.map(e,function(e){var a=r?t:e[t];return null==a?a:a.apply(e,n)})},d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,t,n){var r,a,i=-1/0,o=-1/0;if(null==t&&null!=e)for(var s=0,l=(e=T(e)?e:d.values(e)).length;s<l;s++)(r=e[s])>i&&(i=r);else t=v(t,n),d.each(e,function(e,n,r){((a=t(e,n,r))>o||a===-1/0&&i===-1/0)&&(i=e,o=a)});return i},d.min=function(e,t,n){var r,a,i=1/0,o=1/0;if(null==t&&null!=e)for(var s=0,l=(e=T(e)?e:d.values(e)).length;s<l;s++)(r=e[s])<i&&(i=r);else t=v(t,n),d.each(e,function(e,n,r){((a=t(e,n,r))<o||a===1/0&&i===1/0)&&(i=e,o=a)});return i},d.shuffle=function(e){for(var t,n=T(e)?e:d.values(e),r=n.length,a=Array(r),i=0;i<r;i++)(t=d.random(0,i))!==i&&(a[i]=a[t]),a[t]=n[i];return a},d.sample=function(e,t,n){return null==t||n?(T(e)||(e=d.values(e)),e[d.random(e.length-1)]):d.shuffle(e).slice(0,Math.max(0,t))},d.sortBy=function(e,t,n){return t=v(t,n),d.pluck(d.map(e,function(e,n,r){return{value:e,index:n,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")};var k=function(e){return function(t,n,r){var a={};return n=v(n,r),d.each(t,function(r,i){var o=n(r,i,t);e(a,r,o)}),a}};d.groupBy=k(function(e,t,n){d.has(e,n)?e[n].push(t):e[n]=[t]}),d.indexBy=k(function(e,t,n){e[n]=t}),d.countBy=k(function(e,t,n){d.has(e,n)?e[n]++:e[n]=1}),d.toArray=function(e){return e?d.isArray(e)?o.call(e):T(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return null==e?0:T(e)?e.length:d.keys(e).length},d.partition=function(e,t,n){t=v(t,n);var r=[],a=[];return d.each(e,function(e,n,i){(t(e,n,i)?r:a).push(e)}),[r,a]},d.first=d.head=d.take=function(e,t,n){if(null!=e)return null==t||n?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,n){return o.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},d.last=function(e,t,n){if(null!=e)return null==t||n?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,n){return o.call(e,null==t||n?1:t)},d.compact=function(e){return d.filter(e,d.identity)};var E=function(e,t,n,r){for(var a=[],i=0,o=r||0,s=S(e);o<s;o++){var l=e[o];if(T(l)&&(d.isArray(l)||d.isArguments(l))){t||(l=E(l,t,n));var u=0,p=l.length;for(a.length+=p;u<p;)a[i++]=l[u++]}else n||(a[i++]=l)}return a};function C(e){return function(t,n,r){n=v(n,r);for(var a=S(t),i=e>0?0:a-1;i>=0&&i<a;i+=e)if(n(t[i],i,t))return i;return-1}}function O(e,t,n){return function(r,a,i){var s=0,l=S(r);if("number"==typeof i)e>0?s=i>=0?i:Math.max(i+l,s):l=i>=0?Math.min(i+1,l):i+l+1;else if(n&&i&&l)return r[i=n(r,a)]===a?i:-1;if(a!=a)return(i=t(o.call(r,s,l),d.isNaN))>=0?i+s:-1;for(i=e>0?s:l-1;i>=0&&i<l;i+=e)if(r[i]===a)return i;return-1}}d.flatten=function(e,t){return E(e,t,!1)},d.without=function(e){return d.difference(e,o.call(arguments,1))},d.uniq=d.unique=function(e,t,n,r){d.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=v(n,r));for(var a=[],i=[],o=0,s=S(e);o<s;o++){var l=e[o],u=n?n(l,o,e):l;t?(o&&i===u||a.push(l),i=u):n?d.contains(i,u)||(i.push(u),a.push(l)):d.contains(a,l)||a.push(l)}return a},d.union=function(){return d.uniq(E(arguments,!0,!0))},d.intersection=function(e){for(var t=[],n=arguments.length,r=0,a=S(e);r<a;r++){var i=e[r];if(!d.contains(t,i)){for(var o=1;o<n&&d.contains(arguments[o],i);o++);o===n&&t.push(i)}}return t},d.difference=function(e){var t=E(arguments,!0,!0,1);return d.filter(e,function(e){return!d.contains(t,e)})},d.zip=function(){return d.unzip(arguments)},d.unzip=function(e){for(var t=e&&d.max(e,S).length||0,n=Array(t),r=0;r<t;r++)n[r]=d.pluck(e,r);return n},d.object=function(e,t){for(var n={},r=0,a=S(e);r<a;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},d.findIndex=C(1),d.findLastIndex=C(-1),d.sortedIndex=function(e,t,n,r){for(var a=(n=v(n,r,1))(t),i=0,o=S(e);i<o;){var s=Math.floor((i+o)/2);n(e[s])<a?i=s+1:o=s}return i},d.indexOf=O(1,d.findIndex,d.sortedIndex),d.lastIndexOf=O(-1,d.findLastIndex),d.range=function(e,t,n){null==t&&(t=e||0,e=0),n=n||1;for(var r=Math.max(Math.ceil((t-e)/n),0),a=Array(r),i=0;i<r;i++,e+=n)a[i]=e;return a};var U=function(e,t,n,r,a){if(!(r instanceof t))return e.apply(n,a);var i=y(e.prototype),o=e.apply(i,a);return d.isObject(o)?o:i};d.bind=function(e,t){if(c&&e.bind===c)return c.apply(e,o.call(arguments,1));if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var n=o.call(arguments,2),r=function(){return U(e,r,t,this,n.concat(o.call(arguments)))};return r},d.partial=function(e){var t=o.call(arguments,1),n=function(){for(var r=0,a=t.length,i=Array(a),o=0;o<a;o++)i[o]=t[o]===d?arguments[r++]:t[o];for(;r<arguments.length;)i.push(arguments[r++]);return U(e,n,this,this,i)};return n},d.bindAll=function(e){var t,n,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(t=1;t<r;t++)e[n=arguments[t]]=d.bind(e[n],e);return e},d.memoize=function(e,t){var n=function(r){var a=n.cache,i=""+(t?t.apply(this,arguments):r);return d.has(a,i)||(a[i]=e.apply(this,arguments)),a[i]};return n.cache={},n},d.delay=function(e,t){var n=o.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},d.defer=d.partial(d.delay,d,1),d.throttle=function(e,t,n){var r,a,i,o=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:d.now(),o=null,i=e.apply(r,a),o||(r=a=null)};return function(){var u=d.now();s||!1!==n.leading||(s=u);var p=t-(u-s);return r=this,a=arguments,p<=0||p>t?(o&&(clearTimeout(o),o=null),s=u,i=e.apply(r,a),o||(r=a=null)):o||!1===n.trailing||(o=setTimeout(l,p)),i}},d.debounce=function(e,t,n){var r,a,i,o,s,l=function(){var u=d.now()-o;u<t&&u>=0?r=setTimeout(l,t-u):(r=null,n||(s=e.apply(i,a),r||(i=a=null)))};return function(){i=this,a=arguments,o=d.now();var u=n&&!r;return r||(r=setTimeout(l,t)),u&&(s=e.apply(i,a),i=a=null),s}},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},d.once=d.partial(d.before,2);var L=!{toString:null}.propertyIsEnumerable("toString"),D=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function R(e,t){var n=D.length,a=e.constructor,i=d.isFunction(a)&&a.prototype||r,o="constructor";for(d.has(e,o)&&!d.contains(t,o)&&t.push(o);n--;)(o=D[n])in e&&e[o]!==i[o]&&!d.contains(t,o)&&t.push(o)}d.keys=function(e){if(!d.isObject(e))return[];if(p)return p(e);var t=[];for(var n in e)d.has(e,n)&&t.push(n);return L&&R(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var n in e)t.push(n);return L&&R(e,t),t},d.values=function(e){for(var t=d.keys(e),n=t.length,r=Array(n),a=0;a<n;a++)r[a]=e[t[a]];return r},d.mapObject=function(e,t,n){t=v(t,n);for(var r,a=d.keys(e),i=a.length,o={},s=0;s<i;s++)o[r=a[s]]=t(e[r],r,e);return o},d.pairs=function(e){for(var t=d.keys(e),n=t.length,r=Array(n),a=0;a<n;a++)r[a]=[t[a],e[t[a]]];return r},d.invert=function(e){for(var t={},n=d.keys(e),r=0,a=n.length;r<a;r++)t[e[n[r]]]=n[r];return t},d.functions=d.methods=function(e){var t=[];for(var n in e)d.isFunction(e[n])&&t.push(n);return t.sort()},d.extend=m(d.allKeys),d.extendOwn=d.assign=m(d.keys),d.findKey=function(e,t,n){t=v(t,n);for(var r,a=d.keys(e),i=0,o=a.length;i<o;i++)if(t(e[r=a[i]],r,e))return r},d.pick=function(e,t,n){var r,a,i={},o=e;if(null==o)return i;d.isFunction(t)?(a=d.allKeys(o),r=g(t,n)):(a=E(arguments,!1,!1,1),r=function(e,t,n){return t in n},o=Object(o));for(var s=0,l=a.length;s<l;s++){var u=a[s],p=o[u];r(p,u,o)&&(i[u]=p)}return i},d.omit=function(e,t,n){if(d.isFunction(t))t=d.negate(t);else{var r=d.map(E(arguments,!1,!1,1),String);t=function(e,t){return!d.contains(r,t)}}return d.pick(e,t,n)},d.defaults=m(d.allKeys,!0),d.create=function(e,t){var n=y(e);return t&&d.extendOwn(n,t),n},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var n=d.keys(t),r=n.length;if(null==e)return!r;for(var a=Object(e),i=0;i<r;i++){var o=n[i];if(t[o]!==a[o]||!(o in a))return!1}return!0};var A=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var a=s.call(e);if(a!==s.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}var i="[object Array]"===a;if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,l=t.constructor;if(o!==l&&!(d.isFunction(o)&&o instanceof o&&d.isFunction(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var u=(n=n||[]).length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),i){if((u=e.length)!==t.length)return!1;for(;u--;)if(!A(e[u],t[u],n,r))return!1}else{var p,c=d.keys(e);if(u=c.length,d.keys(t).length!==u)return!1;for(;u--;)if(p=c[u],!d.has(t,p)||!A(e[p],t[p],n,r))return!1}return n.pop(),r.pop(),!0};d.isEqual=function(e,t){return A(e,t)},d.isEmpty=function(e){return null==e||(T(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?0===e.length:0===d.keys(e).length)},d.isElement=function(e){return!(!e||1!==e.nodeType)},d.isArray=u||function(e){return"[object Array]"===s.call(e)},d.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){d["is"+e]=function(t){return s.call(t)==="[object "+e+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return d.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(d.isFunction=function(e){return"function"==typeof e||!1}),d.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&e!==+e},d.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===s.call(e)},d.isNull=function(e){return null===e},d.isUndefined=function(e){return void 0===e},d.has=function(e,t){return null!=e&&l.call(e,t)},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=b,d.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},d.matcher=d.matches=function(e){return e=d.extendOwn({},e),function(t){return d.isMatch(t,e)}},d.times=function(e,t,n){var r=Array(Math.max(0,e));t=g(t,n,1);for(var a=0;a<e;a++)r[a]=t(a);return r},d.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};var F={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},N=d.invert(F),I=function(e){var t=function(t){return e[t]},n="(?:"+d.keys(e).join("|")+")",r=RegExp(n),a=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(a,t):e}};d.escape=I(F),d.unescape=I(N),d.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),d.isFunction(r)?r.call(e):r};var M=0;d.uniqueId=function(e){var t=++M+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var P=/(.)^/,B={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},_=/\\|'|\r|\n|\u2028|\u2029/g,G=function(e){return"\\"+B[e]};d.template=function(e,t,n){!t&&n&&(t=n),t=d.defaults({},t,d.templateSettings);var r=RegExp([(t.escape||P).source,(t.interpolate||P).source,(t.evaluate||P).source].join("|")+"|$","g"),a=0,i="__p+='";e.replace(r,function(t,n,r,o,s){return i+=e.slice(a,s).replace(_,G),a=s+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var o=new Function(t.variable||"obj","_",i)}catch(e){throw e.source=i,e}var s=function(e){return o.call(this,e,d)},l=t.variable||"obj";return s.source="function("+l+"){\n"+i+"}",s},d.chain=function(e){var t=d(e);return t._chain=!0,t};var H=function(e,t){return e._chain?d(t).chain():t};d.mixin=function(e){d.each(d.functions(e),function(t){var n=d[t]=e[t];d.prototype[t]=function(){var e=[this._wrapped];return i.apply(e,arguments),H(this,n.apply(d,e))}})},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=n[e];d.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],H(this,n)}}),d.each(["concat","join","slice"],function(e){var t=n[e];d.prototype[e]=function(){return H(this,t.apply(this._wrapped,arguments))}}),d.prototype.value=function(){return this._wrapped},d.prototype.valueOf=d.prototype.toJSON=d.prototype.value,d.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}.call(this),function(){var e,t=this,n=t.Backbone,r=[],a=r.slice;(e="undefined"!=typeof exports?exports:t.Backbone={}).VERSION="1.1.0";var i=t._;i||"undefined"==typeof require||(i=require("underscore")),e.$=t.jQuery||t.Zepto||t.ender||t.$,e.noConflict=function(){return t.Backbone=n,this},e.emulateHTTP=!1,e.emulateJSON=!1;var o=e.Events={on:function(e,t,n){return l(this,"on",e,[t,n])&&t?(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:t,context:n,ctx:n||this}),this):this},once:function(e,t,n){if(!l(this,"once",e,[t,n])||!t)return this;var r=this,a=i.once(function(){r.off(e,a),t.apply(this,arguments)});return a._callback=t,this.on(e,a,n)},off:function(e,t,n){var r,a,o,s,u,p,c,f;if(!this._events||!l(this,"off",e,[t,n]))return this;if(!e&&!t&&!n)return this._events={},this;for(u=0,p=(s=e?[e]:i.keys(this._events)).length;u<p;u++)if(e=s[u],o=this._events[e]){if(this._events[e]=r=[],t||n)for(c=0,f=o.length;c<f;c++)a=o[c],(t&&t!==a.callback&&t!==a.callback._callback||n&&n!==a.context)&&r.push(a);r.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=a.call(arguments,1);if(!l(this,"trigger",e,t))return this;var n=this._events[e],r=this._events.all;return n&&u(n,t),r&&u(r,arguments),this},stopListening:function(e,t,n){var r=this._listeningTo;if(!r)return this;var a=!t&&!n;for(var o in n||"object"!=typeof t||(n=this),e&&((r={})[e._listenId]=e),r)(e=r[o]).off(t,n,this),(a||i.isEmpty(e._events))&&delete this._listeningTo[o];return this}},s=/\s+/,l=function(e,t,n,r){if(!n)return!0;if("object"==typeof n){for(var a in n)e[t].apply(e,[a,n[a]].concat(r));return!1}if(s.test(n)){for(var i=n.split(s),o=0,l=i.length;o<l;o++)e[t].apply(e,[i[o]].concat(r));return!1}return!0},u=function(e,t){var n,r=-1,a=e.length,i=t[0],o=t[1],s=t[2];switch(t.length){case 0:for(;++r<a;)(n=e[r]).callback.call(n.ctx);return;case 1:for(;++r<a;)(n=e[r]).callback.call(n.ctx,i);return;case 2:for(;++r<a;)(n=e[r]).callback.call(n.ctx,i,o);return;case 3:for(;++r<a;)(n=e[r]).callback.call(n.ctx,i,o,s);return;default:for(;++r<a;)(n=e[r]).callback.apply(n.ctx,t)}};i.each({listenTo:"on",listenToOnce:"once"},function(e,t){o[t]=function(t,n,r){return(this._listeningTo||(this._listeningTo={}))[t._listenId||(t._listenId=i.uniqueId("l"))]=t,r||"object"!=typeof n||(r=this),t[e](n,r,this),this}}),o.bind=o.on,o.unbind=o.off,i.extend(e,o);var p=e.Model=function(e,t){var n=e||{};t||(t={}),this.cid=i.uniqueId("c"),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(n=this.parse(n,t)||{}),n=i.defaults({},n,i.result(this,"defaults")),this.set(n,t),this.changed={},this.initialize.apply(this,arguments)};i.extend(p.prototype,o,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return i.escape(this.get(e))},has:function(e){return null!=this.get(e)},set:function(e,t,n){var r,a,o,s,l,u,p,c;if(null==e)return this;if("object"==typeof e?(a=e,n=t):(a={})[e]=t,n||(n={}),!this._validate(a,n))return!1;for(r in o=n.unset,l=n.silent,s=[],u=this._changing,this._changing=!0,u||(this._previousAttributes=i.clone(this.attributes),this.changed={}),c=this.attributes,p=this._previousAttributes,this.idAttribute in a&&(this.id=a[this.idAttribute]),a)t=a[r],i.isEqual(c[r],t)||s.push(r),i.isEqual(p[r],t)?delete this.changed[r]:this.changed[r]=t,o?delete c[r]:c[r]=t;if(!l){s.length&&(this._pending=!0);for(var f=0,h=s.length;f<h;f++)this.trigger("change:"+s[f],this,c[s[f]],n)}if(u)return this;if(!l)for(;this._pending;)this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,i.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var n in this.attributes)t[n]=void 0;return this.set(t,i.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!i.isEmpty(this.changed):i.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&i.clone(this.changed);var t,n=!1,r=this._changing?this._previousAttributes:this.attributes;for(var a in e)i.isEqual(r[a],t=e[a])||((n||(n={}))[a]=t);return n},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(e){void 0===(e=e?i.clone(e):{}).parse&&(e.parse=!0);var t=this,n=e.success;return e.success=function(r){if(!t.set(t.parse(r,e),e))return!1;n&&n(t,r,e),t.trigger("sync",t,r,e)},R(this,e),this.sync("read",this,e)},save:function(e,t,n){var r,a,o,s=this.attributes;if(null==e||"object"==typeof e?(r=e,n=t):(r={})[e]=t,n=i.extend({validate:!0},n),r&&!n.wait){if(!this.set(r,n))return!1}else if(!this._validate(r,n))return!1;r&&n.wait&&(this.attributes=i.extend({},s,r)),void 0===n.parse&&(n.parse=!0);var l=this,u=n.success;return n.success=function(e){l.attributes=s;var t=l.parse(e,n);if(n.wait&&(t=i.extend(r||{},t)),i.isObject(t)&&!l.set(t,n))return!1;u&&u(l,e,n),l.trigger("sync",l,e,n)},R(this,n),"patch"===(a=this.isNew()?"create":n.patch?"patch":"update")&&(n.attrs=r),o=this.sync(a,this,n),r&&n.wait&&(this.attributes=s),o},destroy:function(e){e=e?i.clone(e):{};var t=this,n=e.success,r=function(){t.trigger("destroy",t,t.collection,e)};if(e.success=function(a){(e.wait||t.isNew())&&r(),n&&n(t,a,e),t.isNew()||t.trigger("sync",t,a,e)},this.isNew())return e.success(),!1;R(this,e);var a=this.sync("delete",this,e);return e.wait||r(),a},url:function(){var e=i.result(this,"urlRoot")||i.result(this.collection,"url")||D();return this.isNew()?e:e+("/"===e.charAt(e.length-1)?"":"/")+encodeURIComponent(this.id)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return null==this.id},isValid:function(e){return this._validate({},i.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=i.extend({},this.attributes,e);var n=this.validationError=this.validate(e,t)||null;return!n||(this.trigger("invalid",this,n,i.extend(t,{validationError:n})),!1)}});i.each(["keys","values","pairs","invert","pick","omit"],function(e){p.prototype[e]=function(){var t=a.call(arguments);return t.unshift(this.attributes),i[e].apply(i,t)}});var c=e.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,i.extend({silent:!0},t))},f={add:!0,remove:!0,merge:!0},h={add:!0,remove:!1};i.extend(c.prototype,o,{model:p,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return e.sync.apply(this,arguments)},add:function(e,t){return this.set(e,i.extend({merge:!1},t,h))},remove:function(e,t){var n,r,a,o,s=!i.isArray(e);for(t||(t={}),n=0,r=(e=s?[e]:i.clone(e)).length;n<r;n++)(o=e[n]=this.get(e[n]))&&(delete this._byId[o.id],delete this._byId[o.cid],a=this.indexOf(o),this.models.splice(a,1),this.length--,t.silent||(t.index=a,o.trigger("remove",o,this,t)),this._removeReference(o));return s?e[0]:e},set:function(e,t){(t=i.defaults({},t,f)).parse&&(e=this.parse(e,t));var n,r,a,o,s,l,u,c=!i.isArray(e);e=c?e?[e]:[]:i.clone(e);var h=t.at,d=this.model,g=this.comparator&&null==h&&!1!==t.sort,v=i.isString(this.comparator)?this.comparator:null,m=[],y=[],b={},x=t.add,S=t.merge,T=t.remove,w=!(g||!x||!T)&&[];for(n=0,r=e.length;n<r;n++){if(a=(s=e[n])instanceof p?o=s:s[d.prototype.idAttribute],l=this.get(a))T&&(b[l.cid]=!0),S&&(s=s===o?o.attributes:s,t.parse&&(s=l.parse(s,t)),l.set(s,t),g&&!u&&l.hasChanged(v)&&(u=!0)),e[n]=l;else if(x){if(!(o=e[n]=this._prepareModel(s,t)))continue;m.push(o),o.on("all",this._onModelEvent,this),this._byId[o.cid]=o,null!=o.id&&(this._byId[o.id]=o)}w&&w.push(l||o)}if(T){for(n=0,r=this.length;n<r;++n)b[(o=this.models[n]).cid]||y.push(o);y.length&&this.remove(y,t)}if(m.length||w&&w.length)if(g&&(u=!0),this.length+=m.length,null!=h)for(n=0,r=m.length;n<r;n++)this.models.splice(h+n,0,m[n]);else{w&&(this.models.length=0);var k=w||m;for(n=0,r=k.length;n<r;n++)this.models.push(k[n])}if(u&&this.sort({silent:!0}),!t.silent){for(n=0,r=m.length;n<r;n++)(o=m[n]).trigger("add",o,this,t);(u||w&&w.length)&&this.trigger("sort",this,t)}return c?e[0]:e},reset:function(e,t){t||(t={});for(var n=0,r=this.models.length;n<r;n++)this._removeReference(this.models[n]);return t.previousModels=this.models,this._reset(),e=this.add(e,i.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,i.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e),t},unshift:function(e,t){return this.add(e,i.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(){return a.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e.id]||this._byId[e.cid]||this._byId[e]},at:function(e){return this.models[e]},where:function(e,t){return i.isEmpty(e)?t?void 0:[]:this[t?"find":"filter"](function(t){for(var n in e)if(e[n]!==t.get(n))return!1;return!0})},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e||(e={}),i.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(i.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return i.invoke(this.models,"get",e)},fetch:function(e){void 0===(e=e?i.clone(e):{}).parse&&(e.parse=!0);var t=e.success,n=this;return e.success=function(r){var a=e.reset?"reset":"set";n[a](r,e),t&&t(n,r,e),n.trigger("sync",n,r,e)},R(this,e),this.sync("read",this,e)},create:function(e,t){if(t=t?i.clone(t):{},!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var n=this,r=t.success;return t.success=function(e,t,a){a.wait&&n.add(e,a),r&&r(e,t,a)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(e instanceof p)return e.collection||(e.collection=this),e;(t=t?i.clone(t):{}).collection=this;var n=new this.model(e,t);return n.validationError?(this.trigger("invalid",this,n.validationError,t),!1):n},_removeReference:function(e){this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){("add"!==e&&"remove"!==e||n===this)&&("destroy"===e&&this.remove(t,r),t&&e==="change:"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],null!=t.id&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments))}});i.each(["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain"],function(e){c.prototype[e]=function(){var t=a.call(arguments);return t.unshift(this.models),i[e].apply(i,t)}});i.each(["groupBy","countBy","sortBy"],function(e){c.prototype[e]=function(t,n){var r=i.isFunction(t)?t:function(e){return e.get(t)};return i[e](this.models,r,n)}});var d=e.View=function(e){this.cid=i.uniqueId("view"),e||(e={}),i.extend(this,i.pick(e,v)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},g=/^(\S+)\s*(.*)$/,v=["model","collection","el","id","attributes","className","tagName","events"];i.extend(d.prototype,o,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,n){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],!1!==n&&this.delegateEvents(),this},delegateEvents:function(e){if(!e&&!(e=i.result(this,"events")))return this;for(var t in this.undelegateEvents(),e){var n=e[t];if(i.isFunction(n)||(n=this[e[t]]),n){var r=t.match(g),a=r[1],o=r[2];n=i.bind(n,this),a+=".delegateEvents"+this.cid,""===o?this.$el.on(a,n):this.$el.on(a,o,n)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"),!1);else{var t=i.extend({},i.result(this,"attributes"));this.id&&(t.id=i.result(this,"id")),this.className&&(t.class=i.result(this,"className"));var n=e.$("<"+i.result(this,"tagName")+">").attr(t);this.setElement(n,!1)}}}),e.sync=function(t,n,r){var a=y[t];i.defaults(r||(r={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var o={type:a,dataType:"json"};if(r.url||(o.url=i.result(n,"url")||D()),null!=r.data||!n||"create"!==t&&"update"!==t&&"patch"!==t||(o.contentType="application/json",o.data=JSON.stringify(r.attrs||n.toJSON(r))),r.emulateJSON&&(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{}),r.emulateHTTP&&("PUT"===a||"DELETE"===a||"PATCH"===a)){o.type="POST",r.emulateJSON&&(o.data._method=a);var s=r.beforeSend;r.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",a),s)return s.apply(this,arguments)}}"GET"===o.type||r.emulateJSON||(o.processData=!1),"PATCH"===o.type&&m&&(o.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=r.xhr=e.ajax(i.extend(o,r));return n.trigger("request",n,l,r),l};var m=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),y={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var b=e.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},x=/\((.*?)\)/g,S=/(\(\?)?:\w+/g,T=/\*\w+/g,w=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(b.prototype,o,{initialize:function(){},route:function(t,n,r){i.isRegExp(t)||(t=this._routeToRegExp(t)),i.isFunction(n)&&(r=n,n=""),r||(r=this[n]);var a=this;return e.history.route(t,function(i){var o=a._extractParameters(t,i);r&&r.apply(a,o),a.trigger.apply(a,["route:"+n].concat(o)),a.trigger("route",n,o),e.history.trigger("route",a,n,o)}),this},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var e,t=i.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(w,"\\$&").replace(x,"(?:$1)?").replace(S,function(e,t){return t?e:"([^/]+)"}).replace(T,"(.*?)"),new RegExp("^"+e+"$")},_extractParameters:function(e,t){var n=e.exec(t).slice(1);return i.map(n,function(e){return e?decodeURIComponent(e):null})}});var k=e.History=function(){this.handlers=[],i.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},E=/^[#\/]|\s+$/g,C=/^\/+|\/+$/g,O=/msie [\w.]+/,U=/\/$/,L=/[?#].*$/;k.started=!1,i.extend(k.prototype,o,{interval:50,getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getFragment:function(e,t){if(null==e)if(this._hasPushState||!this._wantsHashChange||t){e=this.location.pathname;var n=this.root.replace(U,"");e.indexOf(n)||(e=e.slice(n.length))}else e=this.getHash();return e.replace(E,"")},start:function(t){if(k.started)throw new Error("Backbone.history has already been started");k.started=!0,this.options=i.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var n=this.getFragment(),r=document.documentMode,a=O.exec(navigator.userAgent.toLowerCase())&&(!r||r<=7);this.root=("/"+this.root+"/").replace(C,"/"),a&&this._wantsHashChange&&(this.iframe=e.$('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(n)),this._hasPushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!a?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=n;var o=this.location,s=o.pathname.replace(/[^\/]$/,"$&/")===this.root;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!s)return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+"#"+this.fragment),!0;this._hasPushState&&s&&o.hash&&(this.fragment=this.getHash().replace(E,""),this.history.replaceState({},document.title,this.root+this.fragment+o.search))}if(!this.options.silent)return this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),clearInterval(this._checkUrlInterval),k.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return e=this.fragment=this.getFragment(e),i.any(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0})},navigate:function(e,t){if(!k.started)return!1;t&&!0!==t||(t={trigger:!!t});var n=this.root+(e=this.getFragment(e||""));if(e=e.replace(L,""),this.fragment!==e){if(this.fragment=e,""===e&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),e.history=new k;p.extend=c.extend=b.extend=d.extend=k.extend=function(e,t){var n,r=this;n=e&&i.has(e,"constructor")?e.constructor:function(){return r.apply(this,arguments)},i.extend(n,r,t);var a=function(){this.constructor=n};return a.prototype=r.prototype,n.prototype=new a,e&&i.extend(n.prototype,e),n.__super__=r.prototype,n};var D=function(){throw new Error('A "url" property or function must be specified')},R=function(e,t){var n=t.error;t.error=function(r){n&&n(e,r,t),e.trigger("error",e,r,t)}}}.call(this),function(e,t){if("function"==typeof define&&define.amd)define(["underscore","backbone"],function(n,r){return t(e,r,n)});else if("undefined"!=typeof exports){var n=require("underscore"),r=require("backbone");t(e,r,n),"undefined"!=typeof module&&module.exports&&(module.exports=r),exports=r}else t(e,e.Backbone,e._)}(this,function(e,t,n){"use strict";var r,a,i,o,s,l,u,p,c,f,h,d={};r=t.Model,a=t.Collection,i=r.prototype,s=a.prototype,o=t.Events,t.Associations={VERSION:"0.6.1"},t.Associations.scopes=[];var g=function(){return c},v=function(e){if(e){var t=n.isString(e);(!t||t&&e.length<1)&&(e=".")}else e=".";c=e,u=new RegExp("[\\"+c+"\\[\\]]+","g"),p=new RegExp("[^\\"+c+"\\[\\]]+","g")};try{Object.defineProperty(t.Associations,"SEPARATOR",{enumerable:!0,get:g,set:v})}catch(e){}t.Associations.Many=t.Many="Many",t.Associations.One=t.One="One",t.Associations.Self=t.Self="Self",t.Associations.SEPARATOR=".",t.Associations.getSeparator=g,t.Associations.setSeparator=v,t.Associations.EVENTS_BUBBLE=!0,t.Associations.EVENTS_WILDCARD=!0,t.Associations.EVENTS_NC=!1,v(),l=t.AssociatedModel=t.Associations.AssociatedModel=r.extend({relations:void 0,_proxyCalls:void 0,on:function(e,r,a){var i=o.on.apply(this,arguments);if(t.Associations.EVENTS_NC)return i;if(n.isString(e)&&e&&!/\s+/.test(e)&&r){var s=y(e);s&&(d[s]=void 0===d[s]?1:d[s]+1)}return i},off:function(e,r,a){if(t.Associations.EVENTS_NC)return o.off.apply(this,arguments);var i=this._events,s={},l=i?n.keys(i):[],u=!e&&!r&&!a,p=n.isString(e)&&!/\s+/.test(e);if(u||p)for(var c=0,f=l.length;c<f;c++)s[l[c]]=i[l[c]]?i[l[c]].length:0;var h=o.off.apply(this,arguments);if(u||p)for(c=0,f=l.length;c<f;c++){var g=y(l[c]);g&&(i[l[c]]?d[g]-=s[l[c]]-i[l[c]].length:d[g]-=s[l[c]])}return h},get:function(e){var t=i.get.call(this,e);return t||this._getAttr.apply(this,arguments)},set:function(e,t,r){var a,i;return n.isObject(e)||null==e?(a=e,r=t):(a={})[e]=t,i=this._set(a,r),this._processPendingEvents(),i},_set:function(e,t){var r,a,i,o,s=this;if(!e)return this;for(r in e)if(a||(a={}),r.match(u)){var p=m(r),c=n.initial(p),f=p[p.length-1],h=this.get(c);h instanceof l&&((o=a[h.cid]||(a[h.cid]={model:h,data:{}})).data[f]=e[r])}else(o=a[this.cid]||(a[this.cid]={model:this,data:{}})).data[r]=e[r];if(a)for(i in a)o=a[i],this._setAttr.call(o.model,o.data,t)||(s=!1);else s=this._setAttr.call(this,e,t);return s},_setAttr:function(o,s){var u;if(s||(s={}),s.unset)for(u in o)o[u]=void 0;return this.parents=this.parents||[],this.relations&&n.each(this.relations,function(i){var u,p,c,f,h=i.key,d=i.relatedModel,g=i.collectionType,v=i.scope||e,m=i.map,y=this.attributes[h],x=y&&y.idAttribute,S=!1;if(!d||d.prototype instanceof r||(d=n.isFunction(d)?d.call(this,i,o):d),d&&n.isString(d)&&(d=d===t.Self?this.constructor:b(d,v)),m&&n.isString(m)&&(m=b(m,v)),p=i.options?n.extend({},i.options,s):s,o[h]){if(u=n.result(o,h),u=m?m.call(this,u,g||d):u,i.type===t.Many){if(g&&n.isFunction(g)&&g.prototype instanceof r)throw new Error("type is of Backbone.Model. Specify derivatives of Backbone.Collection");if(!g||g.prototype instanceof a||(g=n.isFunction(g)?g.call(this,i,o):g),g&&n.isString(g)&&(g=b(g,v)),!d&&!g)throw new Error("specify either a relatedModel or collectionType");if(g&&!g.prototype instanceof a)throw new Error("collectionType must inherit from Backbone.Collection");y?(y._deferEvents=!0,y[p.reset?"reset":"set"](u instanceof a?u.models:u,p),c=y):(S=!0,u instanceof a?c=u:(c=g?new g:this._createCollection(d,v))[p.reset?"reset":"set"](u,p))}else{if(i.type!==t.One)throw new Error("type attribute must be specified and have the values Backbone.One or Backbone.Many");if(!d)throw new Error("specify a relatedModel for Backbone.One type");if(!(d.prototype instanceof t.AssociatedModel))throw new Error("specify an AssociatedModel for Backbone.One type");c=u instanceof l?u:new d(u,p),y&&c.attributes[x]&&y.attributes[x]===c.attributes[x]?(y._deferEvents=!0,y._set(u instanceof l?u.attributes:u,p),c=y):S=!0}o[h]=c,f=c,(S||f&&!f._proxyCallback)&&(f._proxyCallback=function(){return t.Associations.EVENTS_BUBBLE&&this._bubbleEvent.call(this,h,f,arguments)},f.on("all",f._proxyCallback,this))}if(o.hasOwnProperty(h)){var T=o[h],w=this.attributes[h];T?(T.parents=T.parents||[],-1==n.indexOf(T.parents,this)&&T.parents.push(this)):w&&w.parents.length>0&&(w.parents=n.difference(w.parents,[this]),w._proxyCallback&&w.off("all",w._proxyCallback,this))}},this),i.set.call(this,o,s)},_bubbleEvent:function(e,n,i){var o,s,l=i,u=l[0].split(":"),p=u[0],g="nested-change"==l[0],v="change"===p,m=l[1],b=-1,x=n._proxyCalls,S=u[1],T=!S||-1==S.indexOf(c);if(!g&&(T&&(h=y(l[0])||e),t.Associations.EVENTS_NC||d[h])){if(t.Associations.EVENTS_WILDCARD&&/\[\*\]/g.test(S))return this;if(n instanceof a&&(v||S)&&(b=n.indexOf(f||m)),this instanceof r&&(f=this),S=e+(-1!==b&&(v||S)?"["+b+"]":"")+(S?c+S:""),t.Associations.EVENTS_WILDCARD&&(s=S.replace(/\[\d+\]/g,"[*]")),(o=[]).push.apply(o,l),o[0]=p+":"+S,t.Associations.EVENTS_WILDCARD&&S!==s&&(o[0]=o[0]+" "+p+":"+s),x=n._proxyCalls=x||{},this._isEventAvailable.call(this,x,S))return this;if(x[S]=!0,v&&(this._previousAttributes[e]=n._previousAttributes,this.changed[e]=n),this.trigger.apply(this,o),t.Associations.EVENTS_NC&&v&&this.get(S)!=l[2]){var w=["nested-change",S,l[1]];l[2]&&w.push(l[2]),this.trigger.apply(this,w)}return x&&S&&delete x[S],f=void 0,this}},_isEventAvailable:function(e,t){return n.find(e,function(e,n){return-1!==t.indexOf(n,t.length-n.length)})},_createCollection:function(e,t){var r,i=e;if(n.isString(i)&&(i=b(i,t)),!(i&&i.prototype instanceof l||n.isFunction(i)))throw new Error("type must inherit from Backbone.AssociatedModel");return(r=new a).model=i,r},_processPendingEvents:function(){this._processedEvents||(this._processedEvents=!0,this._deferEvents=!1,n.each(this._pendingEvents,function(e){e.c.trigger.apply(e.c,e.a)}),this._pendingEvents=[],n.each(this.relations,function(e){var t=this.attributes[e.key];t&&t._processPendingEvents()},this),delete this._processedEvents)},trigger:function(e){this._deferEvents?(this._pendingEvents=this._pendingEvents||[],this._pendingEvents.push({c:this,a:arguments})):i.trigger.apply(this,arguments)},toJSON:function(e){var t,r={};return r[this.idAttribute]=this.id,this.visited||(this.visited=!0,r=i.toJSON.apply(this,arguments),e&&e.serialize_keys&&(r=n.pick(r,e.serialize_keys)),this.relations&&n.each(this.relations,function(a){var i=a.key,o=a.remoteKey,s=this.attributes[i],l=!a.isTransient,u=a.serialize||[];delete r[i],l&&(u.length&&(e?e.serialize_keys=u:e={serialize_keys:u}),t=s&&s.toJSON?s.toJSON(e):s,r[o||i]=n.isArray(t)?n.compact(t):t)},this),delete this.visited),r},clone:function(e){return new this.constructor(this.toJSON(e))},cleanup:function(){n.each(this.relations,function(e){var t=this.attributes[e.key];t&&(t.parents=n.difference(t.parents,[this]))},this),this.off()},_getAttr:function(e){var t,r,i=this,o=m(e);if(!(n.size(o)<1)){for(r=0;r<o.length&&(t=o[r],i);r++)i=i instanceof a?isNaN(t)?void 0:i.at(t):i.attributes[t];return i}}});var m=function(e){return""===e?[""]:n.isString(e)?e.match(p):e||[]},y=function(e){if(!e)return e;var t=e.split(":");return t.length>1?(t=(e=t[t.length-1]).split(c)).length>1?t[t.length-1].split("[")[0]:t[0].split("[")[0]:""},b=function(e,r){var a,i=[r];i.push.apply(i,t.Associations.scopes);for(var o,s=0,l=i.length;s<l&&(!(o=i[s])||!(a=n.reduce(e.split(c),function(e,t){return e[t]},o)));++s);return a},x={};return n.each(["set","remove","reset"],function(e){x[e]=a.prototype[e],s[e]=function(t,r){return this.model.prototype instanceof l&&this.parents&&(arguments[0]=function(e,t,r){var a,i;return n.find(e,function(e){if(a=n.find(e.relations,function(n){return e.get(n.key)===t},this))return i=e,!0},this),a&&a.map?a.map.call(i,r,t):r}(this.parents,this,t)),x[e].apply(this,arguments)}}),x.trigger=s.trigger,s.trigger=function(e){this._deferEvents?(this._pendingEvents=this._pendingEvents||[],this._pendingEvents.push({c:this,a:arguments})):x.trigger.apply(this,arguments)},s._processPendingEvents=l.prototype._processPendingEvents,s.on=l.prototype.on,s.off=l.prototype.off,t}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).opentype={})}(this,function(e){"use strict";var t,n;String.prototype.codePointAt||(t=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}(),n=function(e){if(null==this)throw TypeError();var t=String(this),n=t.length,r=e?Number(e):0;if(r!=r&&(r=0),!(r<0||r>=n)){var a,i=t.charCodeAt(r);return i>=55296&&i<=56319&&n>r+1&&(a=t.charCodeAt(r+1))>=56320&&a<=57343?1024*(i-55296)+a-56320+65536:i}},t?t(String.prototype,"codePointAt",{value:n,configurable:!0,writable:!0}):String.prototype.codePointAt=n);var r=0,a=-3;function i(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function o(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new i,this.dtree=new i}var s=new i,l=new i,u=new Uint8Array(30),p=new Uint16Array(30),c=new Uint8Array(30),f=new Uint16Array(30),h=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),d=new i,g=new Uint8Array(320);function v(e,t,n,r){var a,i;for(a=0;a<n;++a)e[a]=0;for(a=0;a<30-n;++a)e[a+n]=a/n|0;for(i=r,a=0;a<30;++a)t[a]=i,i+=1<<e[a]}var m=new Uint16Array(16);function y(e,t,n,r){var a,i;for(a=0;a<16;++a)e.table[a]=0;for(a=0;a<r;++a)e.table[t[n+a]]++;for(e.table[0]=0,i=0,a=0;a<16;++a)m[a]=i,i+=e.table[a];for(a=0;a<r;++a)t[n+a]&&(e.trans[m[t[n+a]]++]=a)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function x(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,r+n}function S(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=0,r=0,a=0,i=e.tag;do{r=2*r+(1&i),i>>>=1,++a,n+=t.table[a],r-=t.table[a]}while(r>=0);return e.tag=i,e.bitcount-=a,t.trans[n+r]}function T(e,t,n){var r,a,i,o,s,l;for(r=x(e,5,257),a=x(e,5,1),i=x(e,4,4),o=0;o<19;++o)g[o]=0;for(o=0;o<i;++o){var u=x(e,3,0);g[h[o]]=u}for(y(d,g,0,19),s=0;s<r+a;){var p=S(e,d);switch(p){case 16:var c=g[s-1];for(l=x(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=x(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=x(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=p}}y(t,g,0,r),y(n,g,r,a)}function w(e,t,n){for(;;){var a,i,o,s,l=S(e,t);if(256===l)return r;if(l<256)e.dest[e.destLen++]=l;else for(a=x(e,u[l-=257],p[l]),i=S(e,n),s=o=e.destLen-x(e,c[i],f[i]);s<o+a;++s)e.dest[e.destLen++]=e.dest[s]}}function k(e){for(var t,n;e.bitcount>8;)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 a;for(e.sourceIndex+=4,n=t;n;--n)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,r}!function(e,t){var n;for(n=0;n<7;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;n<24;++n)e.trans[n]=256+n;for(n=0;n<144;++n)e.trans[24+n]=n;for(n=0;n<8;++n)e.trans[168+n]=280+n;for(n=0;n<112;++n)e.trans[176+n]=144+n;for(n=0;n<5;++n)t.table[n]=0;for(t.table[5]=32,n=0;n<32;++n)t.trans[n]=n}(s,l),v(u,p,4,3),v(c,f,2,1),u[28]=0,p[28]=258;var E=function(e,t){var n,i,u=new o(e,t);do{switch(n=b(u),x(u,2,0)){case 0:i=k(u);break;case 1:i=w(u,s,l);break;case 2:T(u,u.ltree,u.dtree),i=w(u,u.ltree,u.dtree);break;default:i=a}if(i!==r)throw new Error("Data error")}while(!n);return u.destLen<u.dest.length?"function"==typeof u.dest.slice?u.dest.slice(0,u.destLen):u.dest.subarray(0,u.destLen):u.dest};function C(e,t,n,r,a){return Math.pow(1-a,3)*e+3*Math.pow(1-a,2)*a*t+3*(1-a)*Math.pow(a,2)*n+Math.pow(a,3)*r}function O(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function U(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}function L(e){throw new Error(e)}function D(e,t){e||L(t)}O.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},O.prototype.addPoint=function(e,t){"number"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),"number"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},O.prototype.addX=function(e){this.addPoint(e,null)},O.prototype.addY=function(e){this.addPoint(null,e)},O.prototype.addBezier=function(e,t,n,r,a,i,o,s){var l=[e,t],u=[n,r],p=[a,i],c=[o,s];this.addPoint(e,t),this.addPoint(o,s);for(var f=0;f<=1;f++){var h=6*l[f]-12*u[f]+6*p[f],d=-3*l[f]+9*u[f]-9*p[f]+3*c[f],g=3*u[f]-3*l[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<m&&m<1&&(0===f&&this.addX(C(l[f],u[f],p[f],c[f],m)),1===f&&this.addY(C(l[f],u[f],p[f],c[f],m)));var y=(-h-Math.sqrt(v))/(2*d);0<y&&y<1&&(0===f&&this.addX(C(l[f],u[f],p[f],c[f],y)),1===f&&this.addY(C(l[f],u[f],p[f],c[f],y)))}}else{if(0===h)continue;var b=-g/h;0<b&&b<1&&(0===f&&this.addX(C(l[f],u[f],p[f],c[f],b)),1===f&&this.addY(C(l[f],u[f],p[f],c[f],b)))}}},O.prototype.addQuad=function(e,t,n,r,a,i){var o=e+2/3*(n-e),s=t+2/3*(r-t),l=o+1/3*(a-e),u=s+1/3*(i-t);this.addBezier(e,t,o,s,l,u,a,i)},U.prototype.moveTo=function(e,t){this.commands.push({type:"M",x:e,y:t})},U.prototype.lineTo=function(e,t){this.commands.push({type:"L",x:e,y:t})},U.prototype.curveTo=U.prototype.bezierCurveTo=function(e,t,n,r,a,i){this.commands.push({type:"C",x1:e,y1:t,x2:n,y2:r,x:a,y:i})},U.prototype.quadTo=U.prototype.quadraticCurveTo=function(e,t,n,r){this.commands.push({type:"Q",x1:e,y1:t,x:n,y:r})},U.prototype.close=U.prototype.closePath=function(){this.commands.push({type:"Z"})},U.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof O){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},U.prototype.getBoundingBox=function(){for(var e=new O,t=0,n=0,r=0,a=0,i=0;i<this.commands.length;i++){var o=this.commands[i];switch(o.type){case"M":e.addPoint(o.x,o.y),t=r=o.x,n=a=o.y;break;case"L":e.addPoint(o.x,o.y),r=o.x,a=o.y;break;case"Q":e.addQuad(r,a,o.x1,o.y1,o.x,o.y),r=o.x,a=o.y;break;case"C":e.addBezier(r,a,o.x1,o.y1,o.x2,o.y2,o.x,o.y),r=o.x,a=o.y;break;case"Z":r=t,a=n;break;default:throw new Error("Unexpected path command "+o.type)}}return e.isEmpty()&&e.addPoint(0,0),e},U.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var n=this.commands[t];"M"===n.type?e.moveTo(n.x,n.y):"L"===n.type?e.lineTo(n.x,n.y):"C"===n.type?e.bezierCurveTo(n.x1,n.y1,n.x2,n.y2,n.x,n.y):"Q"===n.type?e.quadraticCurveTo(n.x1,n.y1,n.x,n.y):"Z"===n.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},U.prototype.toPathData=function(e){function t(t){return Math.round(t)===t?""+Math.round(t):t.toFixed(e)}function n(){for(var e=arguments,n="",r=0;r<arguments.length;r+=1){var a=e[r];a>=0&&r>0&&(n+=" "),n+=t(a)}return n}e=void 0!==e?e:2;for(var r="",a=0;a<this.commands.length;a+=1){var i=this.commands[a];"M"===i.type?r+="M"+n(i.x,i.y):"L"===i.type?r+="L"+n(i.x,i.y):"C"===i.type?r+="C"+n(i.x1,i.y1,i.x2,i.y2,i.x,i.y):"Q"===i.type?r+="Q"+n(i.x1,i.y1,i.x,i.y):"Z"===i.type&&(r+="Z")}return r},U.prototype.toSVG=function(e){var t='<path d="';return t+=this.toPathData(e),t+='"',this.fill&&"black"!==this.fill&&(null===this.fill?t+=' fill="none"':t+=' fill="'+this.fill+'"'),this.stroke&&(t+=' stroke="'+this.stroke+'" stroke-width="'+this.strokeWidth+'"'),t+="/>"},U.prototype.toDOMElement=function(e){var t=this.toPathData(e),n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",t),n};var R={fail:L,argument:D,assert:D},A={},F={},N={};function I(e){return function(){return e}}F.BYTE=function(e){return R.argument(e>=0&&e<=255,"Byte value should be between 0 and 255."),[e]},N.BYTE=I(1),F.CHAR=function(e){return[e.charCodeAt(0)]},N.CHAR=I(1),F.CHARARRAY=function(e){for(var t=[],n=0;n<e.length;n+=1)t[n]=e.charCodeAt(n);return t},N.CHARARRAY=function(e){return e.length},F.USHORT=function(e){return[e>>8&255,255&e]},N.USHORT=I(2),F.SHORT=function(e){return e>=32768&&(e=-(65536-e)),[e>>8&255,255&e]},N.SHORT=I(2),F.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},N.UINT24=I(3),F.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},N.ULONG=I(4),F.LONG=function(e){return e>=2147483648&&(e=-(4294967296-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},N.LONG=I(4),F.FIXED=F.ULONG,N.FIXED=N.ULONG,F.FWORD=F.SHORT,N.FWORD=N.SHORT,F.UFWORD=F.USHORT,N.UFWORD=N.USHORT,F.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},N.LONGDATETIME=I(8),F.TAG=function(e){return R.argument(4===e.length,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},N.TAG=I(4),F.Card8=F.BYTE,N.Card8=N.BYTE,F.Card16=F.USHORT,N.Card16=N.USHORT,F.OffSize=F.BYTE,N.OffSize=N.BYTE,F.SID=F.USHORT,N.SID=N.USHORT,F.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?F.NUMBER16(e):F.NUMBER32(e)},N.NUMBER=function(e){return F.NUMBER(e).length},F.NUMBER16=function(e){return[28,e>>8&255,255&e]},N.NUMBER16=I(3),F.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},N.NUMBER32=I(5),F.REAL=function(e){var t=e.toString(),n=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(n){var r=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));t=(Math.round(e*r)/r).toString()}for(var a="",i=0,o=t.length;i<o;i+=1){var s=t[i];a+="e"===s?"-"===t[++i]?"c":"b":"."===s?"a":"-"===s?"e":s}for(var l=[30],u=0,p=(a+=1&a.length?"f":"ff").length;u<p;u+=2)l.push(parseInt(a.substr(u,2),16));return l},N.REAL=function(e){return F.REAL(e).length},F.NAME=F.CHARARRAY,N.NAME=N.CHARARRAY,F.STRING=F.CHARARRAY,N.STRING=N.CHARARRAY,A.UTF8=function(e,t,n){for(var r=[],a=n,i=0;i<a;i++,t+=1)r[i]=e.getUint8(t);return String.fromCharCode.apply(null,r)},A.UTF16=function(e,t,n){for(var r=[],a=n/2,i=0;i<a;i++,t+=2)r[i]=e.getUint16(t);return String.fromCharCode.apply(null,r)},F.UTF16=function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t[t.length]=r>>8&255,t[t.length]=255&r}return t},N.UTF16=function(e){return 2*e.length};var M={"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":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"};A.MACSTRING=function(e,t,n,r){var a=M[r];if(void 0!==a){for(var i="",o=0;o<n;o++){var s=e.getUint8(t+o);i+=s<=127?String.fromCharCode(s):a[127&s]}return i}};var P,B="function"==typeof WeakMap&&new WeakMap;function _(e){return e>=-128&&e<=127}function G(e,t,n){for(var r=0,a=e.length;t<a&&r<64&&0===e[t];)++t,++r;return n.push(128|r-1),t}function H(e,t,n){for(var r=0,a=e.length,i=t;i<a&&r<64;){var o=e[i];if(!_(o))break;if(0===o&&i+1<a&&0===e[i+1])break;++i,++r}n.push(r-1);for(var s=t;s<i;++s)n.push(e[s]+256&255);return i}function j(e,t,n){for(var r=0,a=e.length,i=t;i<a&&r<64;){var o=e[i];if(0===o)break;if(_(o)&&i+1<a&&_(e[i+1]))break;++i,++r}n.push(64|r-1);for(var s=t;s<i;++s){var l=e[s];n.push(l+65536>>8&255,l+256&255)}return i}F.MACSTRING=function(e,t){var n=function(e){if(!P)for(var t in P={},M)P[t]=new String(t);var n=P[e];if(void 0!==n){if(B){var r=B.get(n);if(void 0!==r)return r}var a=M[e];if(void 0!==a){for(var i={},o=0;o<a.length;o++)i[a.charCodeAt(o)]=o+128;return B&&B.set(n,i),i}}}(t);if(void 0!==n){for(var r=[],a=0;a<e.length;a++){var i=e.charCodeAt(a);if(i>=128&&void 0===(i=n[i]))return;r[a]=i}return r}},N.MACSTRING=function(e,t){var n=F.MACSTRING(e,t);return void 0!==n?n.length:0},F.VARDELTAS=function(e){for(var t=0,n=[];t<e.length;){var r=e[t];t=0===r?G(e,t,n):r>=-128&&r<=127?H(e,t,n):j(e,t,n)}return n},F.INDEX=function(e){for(var t=1,n=[t],r=[],a=0;a<e.length;a+=1){var i=F.OBJECT(e[a]);Array.prototype.push.apply(r,i),t+=i.length,n.push(t)}if(0===r.length)return[0,0];for(var o=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,F.BYTE,F.USHORT,F.UINT24,F.ULONG][s],u=0;u<n.length;u+=1){var p=l(n[u]);Array.prototype.push.apply(o,p)}return Array.prototype.concat(F.Card16(e.length),F.OffSize(s),o,r)},N.INDEX=function(e){return F.INDEX(e).length},F.DICT=function(e){for(var t=[],n=Object.keys(e),r=n.length,a=0;a<r;a+=1){var i=parseInt(n[a],0),o=e[i];t=(t=t.concat(F.OPERAND(o.value,o.type))).concat(F.OPERATOR(i))}return t},N.DICT=function(e){return F.DICT(e).length},F.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},F.OPERAND=function(e,t){var n=[];if(Array.isArray(t))for(var r=0;r<t.length;r+=1)R.argument(e.length===t.length,"Not enough arguments given for type"+t),n=n.concat(F.OPERAND(e[r],t[r]));else if("SID"===t)n=n.concat(F.NUMBER(e));else if("offset"===t)n=n.concat(F.NUMBER32(e));else if("number"===t)n=n.concat(F.NUMBER(e));else{if("real"!==t)throw new Error("Unknown operand type "+t);n=n.concat(F.REAL(e))}return n},F.OP=F.BYTE,N.OP=N.BYTE;var z="function"==typeof WeakMap&&new WeakMap;function q(e,t,n){for(var r=0;r<t.length;r+=1){var a=t[r];this[a.name]=a.value}if(this.tableName=e,this.fields=t,n)for(var i=Object.keys(n),o=0;o<i.length;o+=1){var s=i[o],l=n[s];void 0!==this[s]&&(this[s]=l)}}function W(e,t,n){void 0===n&&(n=t.length);var r=new Array(t.length+1);r[0]={name:e+"Count",type:"USHORT",value:n};for(var a=0;a<t.length;a++)r[a+1]={name:e+a,type:"USHORT",value:t[a]};return r}function X(e,t,n){var r=t.length,a=new Array(r+1);a[0]={name:e+"Count",type:"USHORT",value:r};for(var i=0;i<r;i++)a[i+1]={name:e+i,type:"TABLE",value:n(t[i],i)};return a}function V(e,t,n){var r=t.length,a=[];a[0]={name:e+"Count",type:"USHORT",value:r};for(var i=0;i<r;i++)a=a.concat(n(t[i],i));return a}function $(e){1===e.format?q.call(this,"coverageTable",[{name:"coverageFormat",type:"USHORT",value:1}].concat(W("glyph",e.glyphs))):R.assert(!1,"Can't create coverage table format 2 yet.")}function Y(e){q.call(this,"scriptListTable",V("scriptRecord",e,function(e,t){var n=e.script,r=n.defaultLangSys;return R.assert(!!r,"Unable to write GSUB: script "+e.tag+" has no default language system."),[{name:"scriptTag"+t,type:"TAG",value:e.tag},{name:"script"+t,type:"TABLE",value:new q("scriptTable",[{name:"defaultLangSys",type:"TABLE",value:new q("defaultLangSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:r.reqFeatureIndex}].concat(W("featureIndex",r.featureIndexes)))}].concat(V("langSys",n.langSysRecords,function(e,t){var n=e.langSys;return[{name:"langSysTag"+t,type:"TAG",value:e.tag},{name:"langSys"+t,type:"TABLE",value:new q("langSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:n.reqFeatureIndex}].concat(W("featureIndex",n.featureIndexes)))}]})))}]}))}function Z(e){q.call(this,"featureListTable",V("featureRecord",e,function(e,t){var n=e.feature;return[{name:"featureTag"+t,type:"TAG",value:e.tag},{name:"feature"+t,type:"TABLE",value:new q("featureTable",[{name:"featureParams",type:"USHORT",value:n.featureParams}].concat(W("lookupListIndex",n.lookupListIndexes)))}]}))}function K(e,t){q.call(this,"lookupListTable",X("lookup",e,function(e){var n=t[e.lookupType];return R.assert(!!n,"Unable to write GSUB lookup type "+e.lookupType+" tables."),new q("lookupTable",[{name:"lookupType",type:"USHORT",value:e.lookupType},{name:"lookupFlag",type:"USHORT",value:e.lookupFlag}].concat(X("subtable",e.subtables,n)))}))}F.CHARSTRING=function(e){if(z){var t=z.get(e);if(void 0!==t)return t}for(var n=[],r=e.length,a=0;a<r;a+=1){var i=e[a];n=n.concat(F[i.type](i.value))}return z&&z.set(e,n),n},N.CHARSTRING=function(e){return F.CHARSTRING(e).length},F.OBJECT=function(e){var t=F[e.type];return R.argument(void 0!==t,"No encoding function for type "+e.type),t(e.value)},N.OBJECT=function(e){var t=N[e.type];return R.argument(void 0!==t,"No sizeOf function for type "+e.type),t(e.value)},F.TABLE=function(e){for(var t=[],n=e.fields.length,r=[],a=[],i=0;i<n;i+=1){var o=e.fields[i],s=F[o.type];R.argument(void 0!==s,"No encoding function for field type "+o.type+" ("+o.name+")");var l=e[o.name];void 0===l&&(l=o.value);var u=s(l);"TABLE"===o.type?(a.push(t.length),t=t.concat([0,0]),r.push(u)):t=t.concat(u)}for(var p=0;p<r.length;p+=1){var c=a[p],f=t.length;R.argument(f<65536,"Table "+e.tableName+" too big."),t[c]=f>>8,t[c+1]=255&f,t=t.concat(r[p])}return t},N.TABLE=function(e){for(var t=0,n=e.fields.length,r=0;r<n;r+=1){var a=e.fields[r],i=N[a.type];R.argument(void 0!==i,"No sizeOf function for field type "+a.type+" ("+a.name+")");var o=e[a.name];void 0===o&&(o=a.value),t+=i(o),"TABLE"===a.type&&(t+=2)}return t},F.RECORD=F.TABLE,N.RECORD=N.TABLE,F.LITERAL=function(e){return e},N.LITERAL=function(e){return e.length},q.prototype.encode=function(){return F.TABLE(this)},q.prototype.sizeOf=function(){return N.TABLE(this)},$.prototype=Object.create(q.prototype),$.prototype.constructor=$,Y.prototype=Object.create(q.prototype),Y.prototype.constructor=Y,Z.prototype=Object.create(q.prototype),Z.prototype.constructor=Z,K.prototype=Object.create(q.prototype),K.prototype.constructor=K;var J={Table:q,Record:q,Coverage:$,ScriptList:Y,FeatureList:Z,LookupList:K,ushortList:W,tableList:X,recordList:V};function Q(e,t){return e.getUint8(t)}function ee(e,t){return e.getUint16(t,!1)}function te(e,t){return e.getUint32(t,!1)}function ne(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var re={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function ae(e,t){this.data=e,this.offset=t,this.relativeOffset=0}ae.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},ae.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},ae.prototype.parseCard8=ae.prototype.parseByte,ae.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},ae.prototype.parseCard16=ae.prototype.parseUShort,ae.prototype.parseSID=ae.prototype.parseUShort,ae.prototype.parseOffset16=ae.prototype.parseUShort,ae.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},ae.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},ae.prototype.parseULong=function(){var e=te(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},ae.prototype.parseOffset32=ae.prototype.parseULong,ae.prototype.parseFixed=function(){var e=ne(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},ae.prototype.parseString=function(e){var t=this.data,n=this.offset+this.relativeOffset,r="";this.relativeOffset+=e;for(var a=0;a<e;a++)r+=String.fromCharCode(t.getUint8(n+a));return r},ae.prototype.parseTag=function(){return this.parseString(4)},ae.prototype.parseLongDateTime=function(){var e=te(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},ae.prototype.parseVersion=function(e){var t=ee(this.data,this.offset+this.relativeOffset),n=ee(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+n/e/10},ae.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=re[e]*t},ae.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=n.getUint32(r),r+=4;return this.relativeOffset+=4*e,t},ae.prototype.parseOffset16List=ae.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=n.getUint16(r),r+=2;return this.relativeOffset+=2*e,t},ae.prototype.parseShortList=function(e){for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=n.getInt16(r),r+=2;return this.relativeOffset+=2*e,t},ae.prototype.parseByteList=function(e){for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=n.getUint8(r++);return this.relativeOffset+=e,t},ae.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var n=new Array(e),r=0;r<e;r++)n[r]=t.call(this);return n},ae.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var n=new Array(e),r=0;r<e;r++)n[r]=t.call(this);return n},ae.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var n=new Array(e),r=Object.keys(t),a=0;a<e;a++){for(var i={},o=0;o<r.length;o++){var s=r[o],l=t[s];i[s]=l.call(this)}n[a]=i}return n},ae.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var n=new Array(e),r=Object.keys(t),a=0;a<e;a++){for(var i={},o=0;o<r.length;o++){var s=r[o],l=t[s];i[s]=l.call(this)}n[a]=i}return n},ae.prototype.parseStruct=function(e){if("function"==typeof e)return e.call(this);for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var a=t[r],i=e[a];n[a]=i.call(this)}return n},ae.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},ae.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),n=new Array(t),r=0;r<t;r++)n[r]=this.parseValueRecord(e);return n},ae.prototype.parsePointer=function(e){var t=this.parseOffset16();if(t>0)return new ae(this.data,this.offset+t).parseStruct(e)},ae.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(t>0)return new ae(this.data,this.offset+t).parseStruct(e)},ae.prototype.parseListOfLists=function(e){for(var t=this.parseOffset16List(),n=t.length,r=this.relativeOffset,a=new Array(n),i=0;i<n;i++){var o=t[i];if(0!==o)if(this.relativeOffset=o,e){for(var s=this.parseOffset16List(),l=new Array(s.length),u=0;u<s.length;u++)this.relativeOffset=o+s[u],l[u]=e.call(this);a[i]=l}else a[i]=this.parseUShortList();else a[i]=void 0}return this.relativeOffset=r,a},ae.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),n=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(n)};if(2===t){for(var r=new Array(n),a=0;a<n;a++)r[a]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:r}}throw new Error("0x"+e.toString(16)+": Coverage format must be 1 or 2.")},ae.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:ae.uShort,end:ae.uShort,classId:ae.uShort})};throw new Error("0x"+e.toString(16)+": ClassDef format must be 1 or 2.")},ae.list=function(e,t){return function(){return this.parseList(e,t)}},ae.list32=function(e,t){return function(){return this.parseList32(e,t)}},ae.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},ae.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},ae.pointer=function(e){return function(){return this.parsePointer(e)}},ae.pointer32=function(e){return function(){return this.parsePointer32(e)}},ae.tag=ae.prototype.parseTag,ae.byte=ae.prototype.parseByte,ae.uShort=ae.offset16=ae.prototype.parseUShort,ae.uShortList=ae.prototype.parseUShortList,ae.uLong=ae.offset32=ae.prototype.parseULong,ae.uLongList=ae.prototype.parseULongList,ae.struct=ae.prototype.parseStruct,ae.coverage=ae.prototype.parseCoverage,ae.classDef=ae.prototype.parseClassDef;var ie={reserved:ae.uShort,reqFeatureIndex:ae.uShort,featureIndexes:ae.uShortList};ae.prototype.parseScriptList=function(){return this.parsePointer(ae.recordList({tag:ae.tag,script:ae.pointer({defaultLangSys:ae.pointer(ie),langSysRecords:ae.recordList({tag:ae.tag,langSys:ae.pointer(ie)})})}))||[]},ae.prototype.parseFeatureList=function(){return this.parsePointer(ae.recordList({tag:ae.tag,feature:ae.pointer({featureParams:ae.offset16,lookupListIndexes:ae.uShortList})}))||[]},ae.prototype.parseLookupList=function(e){return this.parsePointer(ae.list(ae.pointer(function(){var t=this.parseUShort();R.argument(1<=t&&t<=9,"GPOS/GSUB lookup type "+t+" unknown.");var n=this.parseUShort(),r=16&n;return{lookupType:t,lookupFlag:n,subtables:this.parseList(ae.pointer(e[t])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},ae.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return R.argument(1===e&&t<1,"GPOS/GSUB feature variations table unknown."),this.parseRecordList32({conditionSetOffset:ae.offset32,featureTableSubstitutionOffset:ae.offset32})})||[]};var oe={getByte:Q,getCard8:Q,getUShort:ee,getCard16:ee,getShort:function(e,t){return e.getInt16(t,!1)},getULong:te,getFixed:ne,getTag:function(e,t){for(var n="",r=t;r<t+4;r+=1)n+=String.fromCharCode(e.getInt8(r));return n},getOffset:function(e,t,n){for(var r=0,a=0;a<n;a+=1)r<<=8,r+=e.getUint8(t+a);return r},getBytes:function(e,t,n){for(var r=[],a=t;a<n;a+=1)r.push(e.getUint8(a));return r},bytesToString:function(e){for(var t="",n=0;n<e.length;n+=1)t+=String.fromCharCode(e[n]);return t},Parser:ae};function se(e,t,n){e.segments.push({end:t,start:t,delta:-(t-n),offset:0,glyphIndex:n})}var le={parse:function(e,t){var n={};n.version=oe.getUShort(e,t),R.argument(0===n.version,"cmap table version should be 0."),n.numTables=oe.getUShort(e,t+2);for(var r=-1,a=n.numTables-1;a>=0;a-=1){var i=oe.getUShort(e,t+4+8*a),o=oe.getUShort(e,t+4+8*a+2);if(3===i&&(0===o||1===o||10===o)||0===i&&(0===o||1===o||2===o||3===o||4===o)){r=oe.getULong(e,t+4+8*a+4);break}}if(-1===r)throw new Error("No valid cmap sub-tables found.");var s=new oe.Parser(e,t+r);if(n.format=s.parseUShort(),12===n.format)!function(e,t){var n;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=n=t.parseULong(),e.glyphIndexMap={};for(var r=0;r<n;r+=1)for(var a=t.parseULong(),i=t.parseULong(),o=t.parseULong(),s=a;s<=i;s+=1)e.glyphIndexMap[s]=o,o++}(n,s);else{if(4!==n.format)throw new Error("Only format 4 and 12 cmap tables are supported (found format "+n.format+").");!function(e,t,n,r,a){var i;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=i=t.parseUShort()>>1,t.skip("uShort",3),e.glyphIndexMap={};for(var o=new oe.Parser(n,r+a+14),s=new oe.Parser(n,r+a+16+2*i),l=new oe.Parser(n,r+a+16+4*i),u=new oe.Parser(n,r+a+16+6*i),p=r+a+16+8*i,c=0;c<i-1;c+=1)for(var f=void 0,h=o.parseUShort(),d=s.parseUShort(),g=l.parseShort(),v=u.parseUShort(),m=d;m<=h;m+=1)0!==v?(p=u.offset+u.relativeOffset-2,p+=v,p+=2*(m-d),0!==(f=oe.getUShort(n,p))&&(f=f+g&65535)):f=m+g&65535,e.glyphIndexMap[m]=f}(n,s,e,t,r)}return n},make:function(e){var t,n=!0;for(t=e.length-1;t>0;t-=1)if(e.get(t).unicode>65535){console.log("Adding CMAP format 12 (needed!)"),n=!1;break}var r=[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:n?1:2},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:n?12:20}];n||(r=r.concat([{name:"cmap12PlatformID",type:"USHORT",value:3},{name:"cmap12EncodingID",type:"USHORT",value:10},{name:"cmap12Offset",type:"ULONG",value:0}])),r=r.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 a=new J.Table("cmap",r);for(a.segments=[],t=0;t<e.length;t+=1){for(var i=e.get(t),o=0;o<i.unicodes.length;o+=1)se(a,i.unicodes[o],t);a.segments=a.segments.sort(function(e,t){return e.start-t.start})}!function(e){e.segments.push({end:65535,start:65535,delta:1,offset:0})}(a);var s=a.segments.length,l=0,u=[],p=[],c=[],f=[],h=[],d=[];for(t=0;t<s;t+=1){var g=a.segments[t];g.end<=65535&&g.start<=65535?(u=u.concat({name:"end_"+t,type:"USHORT",value:g.end}),p=p.concat({name:"start_"+t,type:"USHORT",value:g.start}),c=c.concat({name:"idDelta_"+t,type:"SHORT",value:g.delta}),f=f.concat({name:"idRangeOffset_"+t,type:"USHORT",value:g.offset}),void 0!==g.glyphId&&(h=h.concat({name:"glyph_"+t,type:"USHORT",value:g.glyphId}))):l+=1,n||void 0===g.glyphIndex||(d=(d=(d=d.concat({name:"cmap12Start_"+t,type:"ULONG",value:g.start})).concat({name:"cmap12End_"+t,type:"ULONG",value:g.end})).concat({name:"cmap12Glyph_"+t,type:"ULONG",value:g.glyphIndex}))}if(a.segCountX2=2*(s-l),a.searchRange=2*Math.pow(2,Math.floor(Math.log(s-l)/Math.log(2))),a.entrySelector=Math.log(a.searchRange/2)/Math.log(2),a.rangeShift=a.segCountX2-a.searchRange,a.fields=a.fields.concat(u),a.fields.push({name:"reservedPad",type:"USHORT",value:0}),a.fields=a.fields.concat(p),a.fields=a.fields.concat(c),a.fields=a.fields.concat(f),a.fields=a.fields.concat(h),a.cmap4Length=14+2*u.length+2+2*p.length+2*c.length+2*f.length+2*h.length,!n){var v=16+4*d.length;a.cmap12Offset=20+a.cmap4Length,a.fields=a.fields.concat([{name:"cmap12Format",type:"USHORT",value:12},{name:"cmap12Reserved",type:"USHORT",value:0},{name:"cmap12Length",type:"ULONG",value:v},{name:"cmap12Language",type:"ULONG",value:0},{name:"cmap12nGroups",type:"ULONG",value:d.length/3}]),a.fields=a.fields.concat(d)}return a}},ue=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],pe=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],ce=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],fe=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function he(e){this.font=e}function de(e){this.cmap=e}function ge(e,t){this.encoding=e,this.charset=t}function ve(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var n=0;n<e.numberOfGlyphs;n++)this.names[n]=fe[n+e.glyphNameIndex[n]];break;case 3:default:this.names=[]}}function me(e,t){t.lowMemory?function(e){e._IndexToUnicodeMap={};for(var t=e.tables.cmap.glyphIndexMap,n=Object.keys(t),r=0;r<n.length;r+=1){var a=n[r],i=t[a];void 0===e._IndexToUnicodeMap[i]?e._IndexToUnicodeMap[i]={unicodes:[parseInt(a)]}:e._IndexToUnicodeMap[i].unicodes.push(parseInt(a))}}(e):function(e){for(var t,n=e.tables.cmap.glyphIndexMap,r=Object.keys(n),a=0;a<r.length;a+=1){var i=r[a],o=n[i];(t=e.glyphs.get(o)).addUnicode(parseInt(i))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name="gid"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(e)}he.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),n=this.font.glyphs;if(n)for(var r=0;r<n.length;r+=1)for(var a=n.get(r),i=0;i<a.unicodes.length;i+=1)if(a.unicodes[i]===t)return r;return null},de.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},ge.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),n=this.encoding[t];return this.charset.indexOf(n)},ve.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ve.prototype.glyphIndexToName=function(e){return this.names[e]};var ye={line:function(e,t,n,r,a){e.beginPath(),e.moveTo(t,n),e.lineTo(r,a),e.stroke()}};function be(e){this.bindConstructorValues(e)}function xe(e,t,n){Object.defineProperty(e,t,{get:function(){return e.path,e[n]},set:function(t){e[n]=t},enumerable:!0,configurable:!0})}function Se(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];r.path.unitsPerEm=e.unitsPerEm,this.glyphs[n]=r}this.length=t&&t.length||0}be.prototype.bindConstructorValues=function(e){var t,n;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,"path",(t=e.path,n=t||new U,{configurable:!0,get:function(){return"function"==typeof n&&(n=n()),n},set:function(e){n=e}}))},be.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},be.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},be.prototype.getPath=function(e,t,n,r,a){var i,o;e=void 0!==e?e:0,t=void 0!==t?t:0,n=void 0!==n?n:72,r||(r={});var s=r.xScale,l=r.yScale;if(r.hinting&&a&&a.hinting&&(o=this.path&&a.hinting.exec(this,n)),o)i=a.hinting.getCommands(o),e=Math.round(e),t=Math.round(t),s=l=1;else{i=this.path.commands;var u=1/(this.path.unitsPerEm||1e3)*n;void 0===s&&(s=u),void 0===l&&(l=u)}for(var p=new U,c=0;c<i.length;c+=1){var f=i[c];"M"===f.type?p.moveTo(e+f.x*s,t+-f.y*l):"L"===f.type?p.lineTo(e+f.x*s,t+-f.y*l):"Q"===f.type?p.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):"C"===f.type?p.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):"Z"===f.type&&p.closePath()}return p},be.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],n=0;n<this.points.length;n+=1){var r=this.points[n];t.push(r),r.lastPointOfContour&&(e.push(t),t=[])}return R.argument(0===t.length,"There are still points left in the current contour."),e},be.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],n=[],r=0;r<e.length;r+=1){var a=e[r];"Z"!==a.type&&(t.push(a.x),n.push(a.y)),"Q"!==a.type&&"C"!==a.type||(t.push(a.x1),n.push(a.y1)),"C"===a.type&&(t.push(a.x2),n.push(a.y2))}var i={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,n),leftSideBearing:this.leftSideBearing};return isFinite(i.xMin)||(i.xMin=0),isFinite(i.xMax)||(i.xMax=this.advanceWidth),isFinite(i.yMin)||(i.yMin=0),isFinite(i.yMax)||(i.yMax=0),i.rightSideBearing=this.advanceWidth-i.leftSideBearing-(i.xMax-i.xMin),i},be.prototype.draw=function(e,t,n,r,a){this.getPath(t,n,r,a).draw(e)},be.prototype.drawPoints=function(e,t,n,r){function a(t,n,r,a){var i=2*Math.PI;e.beginPath();for(var o=0;o<t.length;o+=1)e.moveTo(n+t[o].x*a,r+t[o].y*a),e.arc(n+t[o].x*a,r+t[o].y*a,2,0,i,!1);e.closePath(),e.fill()}t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:24;for(var i=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var p=l.commands[u];void 0!==p.x&&o.push({x:p.x,y:-p.y}),void 0!==p.x1&&s.push({x:p.x1,y:-p.y1}),void 0!==p.x2&&s.push({x:p.x2,y:-p.y2})}e.fillStyle="blue",a(o,t,n,i),e.fillStyle="red",a(s,t,n,i)},be.prototype.drawMetrics=function(e,t,n,r){var a;t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:24,a=1/this.path.unitsPerEm*r,e.lineWidth=1,e.strokeStyle="black",ye.line(e,t,-1e4,t,1e4),ye.line(e,-1e4,n,1e4,n);var i=this.xMin||0,o=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle="blue",ye.line(e,t+i*a,-1e4,t+i*a,1e4),ye.line(e,t+s*a,-1e4,t+s*a,1e4),ye.line(e,-1e4,n+-o*a,1e4,n+-o*a),ye.line(e,-1e4,n+-l*a,1e4,n+-l*a),e.strokeStyle="green",ye.line(e,t+u*a,-1e4,t+u*a,1e4)},Se.prototype.get=function(e){if(void 0===this.glyphs[e]){this.font._push(e),"function"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]());var t=this.glyphs[e],n=this.font._IndexToUnicodeMap[e];if(n)for(var r=0;r<n.unicodes.length;r++)t.addUnicode(n.unicodes[r]);this.font.cffEncoding?this.font.isCIDFont?t.name="gid"+e:t.name=this.font.cffEncoding.charset[e]:this.font.glyphNames.names&&(t.name=this.font.glyphNames.glyphIndexToName(e)),this.glyphs[e].advanceWidth=this.font._hmtxTableData[e].advanceWidth,this.glyphs[e].leftSideBearing=this.font._hmtxTableData[e].leftSideBearing}else"function"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]());return this.glyphs[e]},Se.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var Te={GlyphSet:Se,glyphLoader:function(e,t){return new be({index:t,font:e})},ttfGlyphLoader:function(e,t,n,r,a,i){return function(){var o=new be({index:t,font:e});return o.path=function(){n(o,r,a);var t=i(e.glyphs,o);return t.unitsPerEm=e.unitsPerEm,t},xe(o,"xMin","_xMin"),xe(o,"xMax","_xMax"),xe(o,"yMin","_yMin"),xe(o,"yMax","_yMax"),o}},cffGlyphLoader:function(e,t,n,r){return function(){var a=new be({index:t,font:e});return a.path=function(){var t=n(e,a,r);return t.unitsPerEm=e.unitsPerEm,t},a}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n+=1)if(!we(e[n],t[n]))return!1;return!0}return!1}function ke(e){return e.length<1240?107:e.length<33900?1131:32768}function Ee(e,t,n){var r,a,i=[],o=[],s=oe.getCard16(e,t);if(0!==s){var l=oe.getByte(e,t+2);r=t+(s+1)*l+2;for(var u=t+3,p=0;p<s+1;p+=1)i.push(oe.getOffset(e,u,l)),u+=l;a=r+i[s]}else a=t+2;for(var c=0;c<i.length-1;c+=1){var f=oe.getBytes(e,r+i[c],r+i[c+1]);n&&(f=n(f)),o.push(f)}return{objects:o,startOffset:t,endOffset:a}}function Ce(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t="",n=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];;){var r=e.parseByte(),a=r>>4,i=15&r;if(15===a)break;if(t+=n[a],15===i)break;t+=n[i]}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 Oe(e,t,n){t=void 0!==t?t:0;var r=new oe.Parser(e,t),a=[],i=[];for(n=void 0!==n?n:e.length;r.relativeOffset<n;){var o=r.parseByte();o<=21?(12===o&&(o=1200+r.parseByte()),a.push([o,i]),i=[]):i.push(Ce(r,o))}return function(e){for(var t={},n=0;n<e.length;n+=1){var r=e[n][0],a=e[n][1],i=void 0;if(i=1===a.length?a[0]:a,t.hasOwnProperty(r)&&!isNaN(t[r]))throw new Error("Object "+t+" already has key "+r);t[r]=i}return t}(a)}function Ue(e,t){return t=t<=390?ue[t]:e[t-391]}function Le(e,t,n){for(var r,a={},i=0;i<t.length;i+=1){var o=t[i];if(Array.isArray(o.type)){var s=[];s.length=o.type.length;for(var l=0;l<o.type.length;l++)void 0===(r=void 0!==e[o.op]?e[o.op][l]:void 0)&&(r=void 0!==o.value&&void 0!==o.value[l]?o.value[l]:null),"SID"===o.type[l]&&(r=Ue(n,r)),s[l]=r;a[o.name]=s}else void 0===(r=e[o.op])&&(r=void 0!==o.value?o.value:null),"SID"===o.type&&(r=Ue(n,r)),a[o.name]=r}return a}var De=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[.001,0,0,.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]},{name:"ros",op:1230,type:["SID","SID","number"]},{name:"cidFontVersion",op:1231,type:"number",value:0},{name:"cidFontRevision",op:1232,type:"number",value:0},{name:"cidFontType",op:1233,type:"number",value:0},{name:"cidCount",op:1234,type:"number",value:8720},{name:"uidBase",op:1235,type:"number"},{name:"fdArray",op:1236,type:"offset"},{name:"fdSelect",op:1237,type:"offset"},{name:"fontName",op:1238,type:"SID"}],Re=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];function Ae(e,t){return Le(Oe(e,0,e.byteLength),De,t)}function Fe(e,t,n,r){return Le(Oe(e,t,n),Re,r)}function Ne(e,t,n,r){for(var a=[],i=0;i<n.length;i+=1){var o=Ae(new DataView(new Uint8Array(n[i]).buffer),r);o._subrs=[],o._subrsBias=0;var s=o.private[0],l=o.private[1];if(0!==s&&0!==l){var u=Fe(e,l+t,s,r);if(o._defaultWidthX=u.defaultWidthX,o._nominalWidthX=u.nominalWidthX,0!==u.subrs){var p=Ee(e,l+u.subrs+t);o._subrs=p.objects,o._subrsBias=ke(o._subrs)}o._privateDict=u}a.push(o)}return a}function Ie(e,t,n){var r,a,i,o,s,l,u,p,c=new U,f=[],h=0,d=!1,g=!1,v=0,m=0;if(e.isCIDFont){var y=e.tables.cff.topDict._fdSelect[t.index],b=e.tables.cff.topDict._fdArray[y];s=b._subrs,l=b._subrsBias,u=b._defaultWidthX,p=b._nominalWidthX}else s=e.tables.cff.topDict._subrs,l=e.tables.cff.topDict._subrsBias,u=e.tables.cff.topDict._defaultWidthX,p=e.tables.cff.topDict._nominalWidthX;var x=u;function S(e,t){g&&c.closePath(),c.moveTo(e,t),g=!0}function T(){f.length%2!=0&&!d&&(x=f.shift()+p),h+=f.length>>1,f.length=0,d=!0}return function n(u){for(var y,b,w,k,E,C,O,U,L,D,R,A,F=0;F<u.length;){var N=u[F];switch(F+=1,N){case 1:case 3:T();break;case 4:f.length>1&&!d&&(x=f.shift()+p,d=!0),m+=f.pop(),S(v,m);break;case 5:for(;f.length>0;)v+=f.shift(),m+=f.shift(),c.lineTo(v,m);break;case 6:for(;f.length>0&&(v+=f.shift(),c.lineTo(v,m),0!==f.length);)m+=f.shift(),c.lineTo(v,m);break;case 7:for(;f.length>0&&(m+=f.shift(),c.lineTo(v,m),0!==f.length);)v+=f.shift(),c.lineTo(v,m);break;case 8:for(;f.length>0;)r=v+f.shift(),a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),v=i+f.shift(),m=o+f.shift(),c.curveTo(r,a,i,o,v,m);break;case 10:E=f.pop()+l,(C=s[E])&&n(C);break;case 11:return;case 12:switch(N=u[F],F+=1,N){case 35:r=v+f.shift(),a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),O=i+f.shift(),U=o+f.shift(),L=O+f.shift(),D=U+f.shift(),R=L+f.shift(),A=D+f.shift(),v=R+f.shift(),m=A+f.shift(),f.shift(),c.curveTo(r,a,i,o,O,U),c.curveTo(L,D,R,A,v,m);break;case 34:r=v+f.shift(),a=m,i=r+f.shift(),o=a+f.shift(),O=i+f.shift(),U=o,L=O+f.shift(),D=o,R=L+f.shift(),A=m,v=R+f.shift(),c.curveTo(r,a,i,o,O,U),c.curveTo(L,D,R,A,v,m);break;case 36:r=v+f.shift(),a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),O=i+f.shift(),U=o,L=O+f.shift(),D=o,R=L+f.shift(),A=D+f.shift(),v=R+f.shift(),c.curveTo(r,a,i,o,O,U),c.curveTo(L,D,R,A,v,m);break;case 37:r=v+f.shift(),a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),O=i+f.shift(),U=o+f.shift(),L=O+f.shift(),D=U+f.shift(),R=L+f.shift(),A=D+f.shift(),Math.abs(R-v)>Math.abs(A-m)?v=R+f.shift():m=A+f.shift(),c.curveTo(r,a,i,o,O,U),c.curveTo(L,D,R,A,v,m);break;default:console.log("Glyph "+t.index+": unknown operator 1200"+N),f.length=0}break;case 14:f.length>0&&!d&&(x=f.shift()+p,d=!0),g&&(c.closePath(),g=!1);break;case 18:T();break;case 19:case 20:T(),F+=h+7>>3;break;case 21:f.length>2&&!d&&(x=f.shift()+p,d=!0),m+=f.pop(),S(v+=f.pop(),m);break;case 22:f.length>1&&!d&&(x=f.shift()+p,d=!0),S(v+=f.pop(),m);break;case 23:T();break;case 24:for(;f.length>2;)r=v+f.shift(),a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),v=i+f.shift(),m=o+f.shift(),c.curveTo(r,a,i,o,v,m);v+=f.shift(),m+=f.shift(),c.lineTo(v,m);break;case 25:for(;f.length>6;)v+=f.shift(),m+=f.shift(),c.lineTo(v,m);r=v+f.shift(),a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),v=i+f.shift(),m=o+f.shift(),c.curveTo(r,a,i,o,v,m);break;case 26:for(f.length%2&&(v+=f.shift());f.length>0;)r=v,a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),v=i,m=o+f.shift(),c.curveTo(r,a,i,o,v,m);break;case 27:for(f.length%2&&(m+=f.shift());f.length>0;)r=v+f.shift(),a=m,i=r+f.shift(),o=a+f.shift(),v=i+f.shift(),m=o,c.curveTo(r,a,i,o,v,m);break;case 28:y=u[F],b=u[F+1],f.push((y<<24|b<<16)>>16),F+=2;break;case 29:E=f.pop()+e.gsubrsBias,(C=e.gsubrs[E])&&n(C);break;case 30:for(;f.length>0&&(r=v,a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),v=i+f.shift(),m=o+(1===f.length?f.shift():0),c.curveTo(r,a,i,o,v,m),0!==f.length);)r=v+f.shift(),a=m,i=r+f.shift(),o=a+f.shift(),m=o+f.shift(),v=i+(1===f.length?f.shift():0),c.curveTo(r,a,i,o,v,m);break;case 31:for(;f.length>0&&(r=v+f.shift(),a=m,i=r+f.shift(),o=a+f.shift(),m=o+f.shift(),v=i+(1===f.length?f.shift():0),c.curveTo(r,a,i,o,v,m),0!==f.length);)r=v,a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),v=i+f.shift(),m=o+(1===f.length?f.shift():0),c.curveTo(r,a,i,o,v,m);break;default:N<32?console.log("Glyph "+t.index+": unknown operator "+N):N<247?f.push(N-139):N<251?(y=u[F],F+=1,f.push(256*(N-247)+y+108)):N<255?(y=u[F],F+=1,f.push(256*-(N-251)-y-108)):(y=u[F],b=u[F+1],w=u[F+2],k=u[F+3],F+=4,f.push((y<<24|b<<16|w<<8|k)/65536))}}}(n),t.advanceWidth=x,c}function Me(e,t){var n,r=ue.indexOf(e);return r>=0&&(n=r),(r=t.indexOf(e))>=0?n=r+ue.length:(n=ue.length+t.length,t.push(e)),n}function Pe(e,t,n){for(var r={},a=0;a<e.length;a+=1){var i=e[a],o=t[i.name];void 0===o||we(o,i.value)||("SID"===i.type&&(o=Me(o,n)),r[i.op]={name:i.name,type:i.type,value:o})}return r}function Be(e,t){var n=new J.Record("Top DICT",[{name:"dict",type:"DICT",value:{}}]);return n.dict=Pe(De,e,t),n}function _e(e){var t=new J.Record("Top DICT INDEX",[{name:"topDicts",type:"INDEX",value:[]}]);return t.topDicts=[{name:"topDict_0",type:"TABLE",value:e}],t}function Ge(e){var t=[],n=e.path;t.push({name:"width",type:"NUMBER",value:e.advanceWidth});for(var r=0,a=0,i=0;i<n.commands.length;i+=1){var o=void 0,s=void 0,l=n.commands[i];if("Q"===l.type){l={type:"C",x:l.x,y:l.y,x1:1/3*r+2/3*l.x1,y1:1/3*a+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if("M"===l.type)o=Math.round(l.x-r),s=Math.round(l.y-a),t.push({name:"dx",type:"NUMBER",value:o}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rmoveto",type:"OP",value:21}),r=Math.round(l.x),a=Math.round(l.y);else if("L"===l.type)o=Math.round(l.x-r),s=Math.round(l.y-a),t.push({name:"dx",type:"NUMBER",value:o}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rlineto",type:"OP",value:5}),r=Math.round(l.x),a=Math.round(l.y);else if("C"===l.type){var u=Math.round(l.x1-r),p=Math.round(l.y1-a),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);o=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:"dx1",type:"NUMBER",value:u}),t.push({name:"dy1",type:"NUMBER",value:p}),t.push({name:"dx2",type:"NUMBER",value:c}),t.push({name:"dy2",type:"NUMBER",value:f}),t.push({name:"dx",type:"NUMBER",value:o}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rrcurveto",type:"OP",value:8}),r=Math.round(l.x),a=Math.round(l.y)}}return t.push({name:"endchar",type:"OP",value:14}),t}var He={parse:function(e,t,n,r){n.tables.cff={};var a=function(e,t){var n={};return n.formatMajor=oe.getCard8(e,t),n.formatMinor=oe.getCard8(e,t+1),n.size=oe.getCard8(e,t+2),n.offsetSize=oe.getCard8(e,t+3),n.startOffset=t,n.endOffset=t+4,n}(e,t),i=Ee(e,a.endOffset,oe.bytesToString),o=Ee(e,i.endOffset),s=Ee(e,o.endOffset,oe.bytesToString),l=Ee(e,s.endOffset);n.gsubrs=l.objects,n.gsubrsBias=ke(n.gsubrs);var u=Ne(e,t,o.objects,s.objects);if(1!==u.length)throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+u.length);var p=u[0];if(n.tables.cff.topDict=p,p._privateDict&&(n.defaultWidthX=p._privateDict.defaultWidthX,n.nominalWidthX=p._privateDict.nominalWidthX),void 0!==p.ros[0]&&void 0!==p.ros[1]&&(n.isCIDFont=!0),n.isCIDFont){var c=p.fdArray,f=p.fdSelect;if(0===c||0===f)throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");var h=Ee(e,c+=t),d=Ne(e,t,h.objects,s.objects);p._fdArray=d,f+=t,p._fdSelect=function(e,t,n,r){var a,i=[],o=new oe.Parser(e,t),s=o.parseCard8();if(0===s)for(var l=0;l<n;l++){if((a=o.parseCard8())>=r)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+r+")");i.push(a)}else{if(3!==s)throw new Error("CFF Table CID Font FDSelect table has unsupported format "+s);var u,p=o.parseCard16(),c=o.parseCard16();if(0!==c)throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+c);for(var f=0;f<p;f++){if(a=o.parseCard8(),u=o.parseCard16(),a>=r)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+r+")");if(u>n)throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID "+u);for(;c<u;c++)i.push(a);c=u}if(u!==n)throw new Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+u)}return i}(e,f,n.numGlyphs,d.length)}var g,v=t+p.private[1],m=Fe(e,v,p.private[0],s.objects);if(n.defaultWidthX=m.defaultWidthX,n.nominalWidthX=m.nominalWidthX,0!==m.subrs){var y=v+m.subrs,b=Ee(e,y);n.subrs=b.objects,n.subrsBias=ke(n.subrs)}else n.subrs=[],n.subrsBias=0;r.lowMemory?(g=function(e,t){var n,r,a=[],i=oe.getCard16(e,t);if(0!==i){var o=oe.getByte(e,t+2);n=t+(i+1)*o+2;for(var s=t+3,l=0;l<i+1;l+=1)a.push(oe.getOffset(e,s,o)),s+=o;r=n+a[i]}else r=t+2;return{offsets:a,startOffset:t,endOffset:r}}(e,t+p.charStrings),n.nGlyphs=g.offsets.length):(g=Ee(e,t+p.charStrings),n.nGlyphs=g.objects.length);var x=function(e,t,n,r){var a,i,o=new oe.Parser(e,t);n-=1;var s=[".notdef"],l=o.parseCard8();if(0===l)for(var u=0;u<n;u+=1)a=o.parseSID(),s.push(Ue(r,a));else if(1===l)for(;s.length<=n;){a=o.parseSID(),i=o.parseCard8();for(var p=0;p<=i;p+=1)s.push(Ue(r,a)),a+=1}else{if(2!==l)throw new Error("Unknown charset format "+l);for(;s.length<=n;){a=o.parseSID(),i=o.parseCard16();for(var c=0;c<=i;c+=1)s.push(Ue(r,a)),a+=1}}return s}(e,t+p.charset,n.nGlyphs,s.objects);if(0===p.encoding?n.cffEncoding=new ge(pe,x):1===p.encoding?n.cffEncoding=new ge(ce,x):n.cffEncoding=function(e,t,n){var r,a={},i=new oe.Parser(e,t),o=i.parseCard8();if(0===o)for(var s=i.parseCard8(),l=0;l<s;l+=1)a[r=i.parseCard8()]=l;else{if(1!==o)throw new Error("Unknown encoding format "+o);var u=i.parseCard8();r=1;for(var p=0;p<u;p+=1)for(var c=i.parseCard8(),f=i.parseCard8(),h=c;h<=c+f;h+=1)a[h]=r,r+=1}return new ge(a,n)}(e,t+p.encoding,x),n.encoding=n.encoding||n.cffEncoding,n.glyphs=new Te.GlyphSet(n),r.lowMemory)n._push=function(r){var a=function(e,t,n,r,a){var i=oe.getCard16(n,r),o=0;0!==i&&(o=r+(i+1)*oe.getByte(n,r+2)+2);var s=oe.getBytes(n,o+t[e],o+t[e+1]);return a&&(s=a(s)),s}(r,g.offsets,e,t+p.charStrings);n.glyphs.push(r,Te.cffGlyphLoader(n,r,Ie,a))};else for(var S=0;S<n.nGlyphs;S+=1){var T=g.objects[S];n.glyphs.push(S,Te.cffGlyphLoader(n,S,Ie,T))}},make:function(e,t){for(var n,r=new J.Table("CFF ",[{name:"header",type:"RECORD"},{name:"nameIndex",type:"RECORD"},{name:"topDictIndex",type:"RECORD"},{name:"stringIndex",type:"RECORD"},{name:"globalSubrIndex",type:"RECORD"},{name:"charsets",type:"RECORD"},{name:"charStringsIndex",type:"RECORD"},{name:"privateDict",type:"RECORD"}]),a=1/t.unitsPerEm,i={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[a,0,0,a,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},o=[],s=1;s<e.length;s+=1)n=e.get(s),o.push(n.name);var l=[];r.header=new J.Record("Header",[{name:"major",type:"Card8",value:1},{name:"minor",type:"Card8",value:0},{name:"hdrSize",type:"Card8",value:4},{name:"major",type:"Card8",value:1}]),r.nameIndex=function(e){var t=new J.Record("Name INDEX",[{name:"names",type:"INDEX",value:[]}]);t.names=[];for(var n=0;n<e.length;n+=1)t.names.push({name:"name_"+n,type:"NAME",value:e[n]});return t}([t.postScriptName]);var u=Be(i,l);r.topDictIndex=_e(u),r.globalSubrIndex=new J.Record("Global Subr INDEX",[{name:"subrs",type:"INDEX",value:[]}]),r.charsets=function(e,t){for(var n=new J.Record("Charsets",[{name:"format",type:"Card8",value:0}]),r=0;r<e.length;r+=1){var a=Me(e[r],t);n.fields.push({name:"glyph_"+r,type:"SID",value:a})}return n}(o,l),r.charStringsIndex=function(e){for(var t=new J.Record("CharStrings INDEX",[{name:"charStrings",type:"INDEX",value:[]}]),n=0;n<e.length;n+=1){var r=e.get(n),a=Ge(r);t.charStrings.push({name:r.name,type:"CHARSTRING",value:a})}return t}(e),r.privateDict=function(e,t){var n=new J.Record("Private DICT",[{name:"dict",type:"DICT",value:{}}]);return n.dict=Pe(Re,e,t),n}({},l),r.stringIndex=function(e){var t=new J.Record("String INDEX",[{name:"strings",type:"INDEX",value:[]}]);t.strings=[];for(var n=0;n<e.length;n+=1)t.strings.push({name:"string_"+n,type:"STRING",value:e[n]});return t}(l);var p=r.header.sizeOf()+r.nameIndex.sizeOf()+r.topDictIndex.sizeOf()+r.stringIndex.sizeOf()+r.globalSubrIndex.sizeOf();return i.charset=p,i.encoding=0,i.charStrings=i.charset+r.charsets.sizeOf(),i.private[1]=i.charStrings+r.charStringsIndex.sizeOf(),u=Be(i,l),r.topDictIndex=_e(u),r}};var je={parse:function(e,t){var n={},r=new oe.Parser(e,t);return n.version=r.parseVersion(),n.fontRevision=Math.round(1e3*r.parseFixed())/1e3,n.checkSumAdjustment=r.parseULong(),n.magicNumber=r.parseULong(),R.argument(1594834165===n.magicNumber,"Font header has wrong magic number."),n.flags=r.parseUShort(),n.unitsPerEm=r.parseUShort(),n.created=r.parseLongDateTime(),n.modified=r.parseLongDateTime(),n.xMin=r.parseShort(),n.yMin=r.parseShort(),n.xMax=r.parseShort(),n.yMax=r.parseShort(),n.macStyle=r.parseUShort(),n.lowestRecPPEM=r.parseUShort(),n.fontDirectionHint=r.parseShort(),n.indexToLocFormat=r.parseShort(),n.glyphDataFormat=r.parseShort(),n},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,n=t;return e.createdTimestamp&&(n=e.createdTimestamp+2082844800),new J.Table("head",[{name:"version",type:"FIXED",value:65536},{name:"fontRevision",type:"FIXED",value:65536},{name:"checkSumAdjustment",type:"ULONG",value:0},{name:"magicNumber",type:"ULONG",value:1594834165},{name:"flags",type:"USHORT",value:0},{name:"unitsPerEm",type:"USHORT",value:1e3},{name:"created",type:"LONGDATETIME",value:n},{name:"modified",type:"LONGDATETIME",value:t},{name:"xMin",type:"SHORT",value:0},{name:"yMin",type:"SHORT",value:0},{name:"xMax",type:"SHORT",value:0},{name:"yMax",type:"SHORT",value:0},{name:"macStyle",type:"USHORT",value:0},{name:"lowestRecPPEM",type:"USHORT",value:0},{name:"fontDirectionHint",type:"SHORT",value:2},{name:"indexToLocFormat",type:"SHORT",value:0},{name:"glyphDataFormat",type:"SHORT",value:0}],e)}};var ze={parse:function(e,t){var n={},r=new oe.Parser(e,t);return n.version=r.parseVersion(),n.ascender=r.parseShort(),n.descender=r.parseShort(),n.lineGap=r.parseShort(),n.advanceWidthMax=r.parseUShort(),n.minLeftSideBearing=r.parseShort(),n.minRightSideBearing=r.parseShort(),n.xMaxExtent=r.parseShort(),n.caretSlopeRise=r.parseShort(),n.caretSlopeRun=r.parseShort(),n.caretOffset=r.parseShort(),r.relativeOffset+=8,n.metricDataFormat=r.parseShort(),n.numberOfHMetrics=r.parseUShort(),n},make:function(e){return new J.Table("hhea",[{name:"version",type:"FIXED",value:65536},{name:"ascender",type:"FWORD",value:0},{name:"descender",type:"FWORD",value:0},{name:"lineGap",type:"FWORD",value:0},{name:"advanceWidthMax",type:"UFWORD",value:0},{name:"minLeftSideBearing",type:"FWORD",value:0},{name:"minRightSideBearing",type:"FWORD",value:0},{name:"xMaxExtent",type:"FWORD",value:0},{name:"caretSlopeRise",type:"SHORT",value:1},{name:"caretSlopeRun",type:"SHORT",value:0},{name:"caretOffset",type:"SHORT",value:0},{name:"reserved1",type:"SHORT",value:0},{name:"reserved2",type:"SHORT",value:0},{name:"reserved3",type:"SHORT",value:0},{name:"reserved4",type:"SHORT",value:0},{name:"metricDataFormat",type:"SHORT",value:0},{name:"numberOfHMetrics",type:"USHORT",value:0}],e)}};var qe={parse:function(e,t,n,r,a,i,o){o.lowMemory?function(e,t,n,r,a){var i,o;e._hmtxTableData={};for(var s=new oe.Parser(t,n),l=0;l<a;l+=1)l<r&&(i=s.parseUShort(),o=s.parseShort()),e._hmtxTableData[l]={advanceWidth:i,leftSideBearing:o}}(e,t,n,r,a):function(e,t,n,r,a){for(var i,o,s=new oe.Parser(e,t),l=0;l<r;l+=1){l<n&&(i=s.parseUShort(),o=s.parseShort());var u=a.get(l);u.advanceWidth=i,u.leftSideBearing=o}}(t,n,r,a,i)},make:function(e){for(var t=new J.Table("hmtx",[]),n=0;n<e.length;n+=1){var r=e.get(n),a=r.advanceWidth||0,i=r.leftSideBearing||0;t.fields.push({name:"advanceWidth_"+n,type:"USHORT",value:a}),t.fields.push({name:"leftSideBearing_"+n,type:"SHORT",value:i})}return t}};var We={make:function(e){for(var t=new J.Table("ltag",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"numTags",type:"ULONG",value:e.length}]),n="",r=12+4*e.length,a=0;a<e.length;++a){var i=n.indexOf(e[a]);i<0&&(i=n.length,n+=e[a]),t.fields.push({name:"offset "+a,type:"USHORT",value:r+i}),t.fields.push({name:"length "+a,type:"USHORT",value:e[a].length})}return t.fields.push({name:"stringPool",type:"CHARARRAY",value:n}),t},parse:function(e,t){var n=new oe.Parser(e,t),r=n.parseULong();R.argument(1===r,"Unsupported ltag table version."),n.skip("uLong",1);for(var a=n.parseULong(),i=[],o=0;o<a;o++){for(var s="",l=t+n.parseUShort(),u=n.parseUShort(),p=l;p<l+u;++p)s+=String.fromCharCode(e.getInt8(p));i.push(s)}return i}};var Xe={parse:function(e,t){var n={},r=new oe.Parser(e,t);return n.version=r.parseVersion(),n.numGlyphs=r.parseUShort(),1===n.version&&(n.maxPoints=r.parseUShort(),n.maxContours=r.parseUShort(),n.maxCompositePoints=r.parseUShort(),n.maxCompositeContours=r.parseUShort(),n.maxZones=r.parseUShort(),n.maxTwilightPoints=r.parseUShort(),n.maxStorage=r.parseUShort(),n.maxFunctionDefs=r.parseUShort(),n.maxInstructionDefs=r.parseUShort(),n.maxStackElements=r.parseUShort(),n.maxSizeOfInstructions=r.parseUShort(),n.maxComponentElements=r.parseUShort(),n.maxComponentDepth=r.parseUShort()),n},make:function(e){return new J.Table("maxp",[{name:"version",type:"FIXED",value:20480},{name:"numGlyphs",type:"USHORT",value:e}])}},Ve=["copyright","fontFamily","fontSubfamily","uniqueID","fullName","version","postScriptName","trademark","manufacturer","designer","description","manufacturerURL","designerURL","license","licenseURL","reserved","preferredFamily","preferredSubfamily","compatibleFullName","sampleText","postScriptFindFontName","wwsFamily","wwsSubfamily"],$e={0:"en",1:"fr",2:"de",3:"it",4:"nl",5:"sv",6:"es",7:"da",8:"pt",9:"no",10:"he",11:"ja",12:"ar",13:"fi",14:"el",15:"is",16:"mt",17:"tr",18:"hr",19:"zh-Hant",20:"ur",21:"hi",22:"th",23:"ko",24:"lt",25:"pl",26:"hu",27:"es",28:"lv",29:"se",30:"fo",31:"fa",32:"ru",33:"zh",34:"nl-BE",35:"ga",36:"sq",37:"ro",38:"cz",39:"sk",40:"si",41:"yi",42:"sr",43:"mk",44:"bg",45:"uk",46:"be",47:"uz",48:"kk",49:"az-Cyrl",50:"az-Arab",51:"hy",52:"ka",53:"mo",54:"ky",55:"tg",56:"tk",57:"mn-CN",58:"mn",59:"ps",60:"ks",61:"ku",62:"sd",63:"bo",64:"ne",65:"sa",66:"mr",67:"bn",68:"as",69:"gu",70:"pa",71:"or",72:"ml",73:"kn",74:"ta",75:"te",76:"si",77:"my",78:"km",79:"lo",80:"vi",81:"id",82:"tl",83:"ms",84:"ms-Arab",85:"am",86:"ti",87:"om",88:"so",89:"sw",90:"rw",91:"rn",92:"ny",93:"mg",94:"eo",128:"cy",129:"eu",130:"ca",131:"la",132:"qu",133:"gn",134:"ay",135:"tt",136:"ug",137:"dz",138:"jv",139:"su",140:"gl",141:"af",142:"br",143:"iu",144:"gd",145:"gv",146:"ga",147:"to",148:"el-polyton",149:"kl",150:"az",151:"nn"},Ye={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ze={1078:"af",1052:"sq",1156:"gsw",1118:"am",5121:"ar-DZ",15361:"ar-BH",3073:"ar",2049:"ar-IQ",11265:"ar-JO",13313:"ar-KW",12289:"ar-LB",4097:"ar-LY",6145:"ary",8193:"ar-OM",16385:"ar-QA",1025:"ar-SA",10241:"ar-SY",7169:"aeb",14337:"ar-AE",9217:"ar-YE",1067:"hy",1101:"as",2092:"az-Cyrl",1068:"az",1133:"ba",1069:"eu",1059:"be",2117:"bn",1093:"bn-IN",8218:"bs-Cyrl",5146:"bs",1150:"br",1026:"bg",1027:"ca",3076:"zh-HK",5124:"zh-MO",2052:"zh",4100:"zh-SG",1028:"zh-TW",1155:"co",1050:"hr",4122:"hr-BA",1029:"cs",1030:"da",1164:"prs",1125:"dv",2067:"nl-BE",1043:"nl",3081:"en-AU",10249:"en-BZ",4105:"en-CA",9225:"en-029",16393:"en-IN",6153:"en-IE",8201:"en-JM",17417:"en-MY",5129:"en-NZ",13321:"en-PH",18441:"en-SG",7177:"en-ZA",11273:"en-TT",2057:"en-GB",1033:"en",12297:"en-ZW",1061:"et",1080:"fo",1124:"fil",1035:"fi",2060:"fr-BE",3084:"fr-CA",1036:"fr",5132:"fr-LU",6156:"fr-MC",4108:"fr-CH",1122:"fy",1110:"gl",1079:"ka",3079:"de-AT",1031:"de",5127:"de-LI",4103:"de-LU",2055:"de-CH",1032:"el",1135:"kl",1095:"gu",1128:"ha",1037:"he",1081:"hi",1038:"hu",1039:"is",1136:"ig",1057:"id",1117:"iu",2141:"iu-Latn",2108:"ga",1076:"xh",1077:"zu",1040:"it",2064:"it-CH",1041:"ja",1099:"kn",1087:"kk",1107:"km",1158:"quc",1159:"rw",1089:"sw",1111:"kok",1042:"ko",1088:"ky",1108:"lo",1062:"lv",1063:"lt",2094:"dsb",1134:"lb",1071:"mk",2110:"ms-BN",1086:"ms",1100:"ml",1082:"mt",1153:"mi",1146:"arn",1102:"mr",1148:"moh",1104:"mn",2128:"mn-CN",1121:"ne",1044:"nb",2068:"nn",1154:"oc",1096:"or",1123:"ps",1045:"pl",1046:"pt",2070:"pt-PT",1094:"pa",1131:"qu-BO",2155:"qu-EC",3179:"qu",1048:"ro",1047:"rm",1049:"ru",9275:"smn",4155:"smj-NO",5179:"smj",3131:"se-FI",1083:"se",2107:"se-SE",8251:"sms",6203:"sma-NO",7227:"sms",1103:"sa",7194:"sr-Cyrl-BA",3098:"sr",6170:"sr-Latn-BA",2074:"sr-Latn",1132:"nso",1074:"tn",1115:"si",1051:"sk",1060:"sl",11274:"es-AR",16394:"es-BO",13322:"es-CL",9226:"es-CO",5130:"es-CR",7178:"es-DO",12298:"es-EC",17418:"es-SV",4106:"es-GT",18442:"es-HN",2058:"es-MX",19466:"es-NI",6154:"es-PA",15370:"es-PY",10250:"es-PE",20490:"es-PR",3082:"es",1034:"es",21514:"es-US",14346:"es-UY",8202:"es-VE",2077:"sv-FI",1053:"sv",1114:"syr",1064:"tg",2143:"tzm",1097:"ta",1092:"tt",1098:"te",1054:"th",1105:"bo",1055:"tr",1090:"tk",1152:"ug",1058:"uk",1070:"hsb",1056:"ur",2115:"uz-Cyrl",1091:"uz",1066:"vi",1106:"cy",1160:"wo",1157:"sah",1144:"ii",1130:"yo"};function Ke(e,t,n){switch(e){case 0:if(65535===t)return"und";if(n)return n[t];break;case 1:return $e[t];case 3:return Ze[t]}}var Je="utf-16",Qe={0:"macintosh",1:"x-mac-japanese",2:"x-mac-chinesetrad",3:"x-mac-korean",6:"x-mac-greek",7:"x-mac-cyrillic",9:"x-mac-devanagai",10:"x-mac-gurmukhi",11:"x-mac-gujarati",12:"x-mac-oriya",13:"x-mac-bengali",14:"x-mac-tamil",15:"x-mac-telugu",16:"x-mac-kannada",17:"x-mac-malayalam",18:"x-mac-sinhalese",19:"x-mac-burmese",20:"x-mac-khmer",21:"x-mac-thai",22:"x-mac-lao",23:"x-mac-georgian",24:"x-mac-armenian",25:"x-mac-chinesesimp",26:"x-mac-tibetan",27:"x-mac-mongolian",28:"x-mac-ethiopic",29:"x-mac-ce",30:"x-mac-vietnamese",31:"x-mac-extarabic"},et={15:"x-mac-icelandic",17:"x-mac-turkish",18:"x-mac-croatian",24:"x-mac-ce",25:"x-mac-ce",26:"x-mac-ce",27:"x-mac-ce",28:"x-mac-ce",30:"x-mac-icelandic",37:"x-mac-romanian",38:"x-mac-ce",39:"x-mac-ce",40:"x-mac-ce",143:"x-mac-inuit",146:"x-mac-gaelic"};function tt(e,t,n){switch(e){case 0:return Je;case 1:return et[n]||Qe[t];case 3:if(1===t||10===t)return Je}}function nt(e){var t={};for(var n in e)t[e[n]]=parseInt(n);return t}function rt(e,t,n,r,a,i){return new J.Record("NameRecord",[{name:"platformID",type:"USHORT",value:e},{name:"encodingID",type:"USHORT",value:t},{name:"languageID",type:"USHORT",value:n},{name:"nameID",type:"USHORT",value:r},{name:"length",type:"USHORT",value:a},{name:"offset",type:"USHORT",value:i}])}function at(e,t){var n=function(e,t){var n=e.length,r=t.length-n+1;e:for(var a=0;a<r;a++)for(;a<r;a++){for(var i=0;i<n;i++)if(t[a+i]!==e[i])continue e;return a}return-1}(e,t);if(n<0){n=t.length;for(var r=0,a=e.length;r<a;++r)t.push(e[r])}return n}var it={parse:function(e,t,n){for(var r={},a=new oe.Parser(e,t),i=a.parseUShort(),o=a.parseUShort(),s=a.offset+a.parseUShort(),l=0;l<o;l++){var u=a.parseUShort(),p=a.parseUShort(),c=a.parseUShort(),f=a.parseUShort(),h=Ve[f]||f,d=a.parseUShort(),g=a.parseUShort(),v=Ke(u,c,n),m=tt(u,p,c);if(void 0!==m&&void 0!==v){var y=void 0;if(y=m===Je?A.UTF16(e,s+g,d):A.MACSTRING(e,s+g,d,m)){var b=r[h];void 0===b&&(b=r[h]={}),b[v]=y}}}return 1===i&&a.parseUShort(),r},make:function(e,t){var n,r=[],a={},i=nt(Ve);for(var o in e){var s=i[o];if(void 0===s&&(s=o),n=parseInt(s),isNaN(n))throw new Error('Name table entry "'+o+'" does not exist, see nameTableNames for complete list.');a[n]=e[o],r.push(n)}for(var l=nt($e),u=nt(Ze),p=[],c=[],f=0;f<r.length;f++){var h=a[n=r[f]];for(var d in h){var g=h[d],v=1,m=l[d],y=Ye[m],b=tt(v,y,m),x=F.MACSTRING(g,b);void 0===x&&(v=0,(m=t.indexOf(d))<0&&(m=t.length,t.push(d)),y=4,x=F.UTF16(g));var S=at(x,c);p.push(rt(v,y,m,n,x.length,S));var T=u[d];if(void 0!==T){var w=F.UTF16(g),k=at(w,c);p.push(rt(3,1,T,n,w.length,k))}}}p.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new J.Table("name",[{name:"format",type:"USHORT",value:0},{name:"count",type:"USHORT",value:p.length},{name:"stringOffset",type:"USHORT",value:6+12*p.length}]),C=0;C<p.length;C++)E.fields.push({name:"record_"+C,type:"RECORD",value:p[C]});return E.fields.push({name:"strings",type:"LITERAL",value:c}),E}},ot=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var st={parse:function(e,t){var n={},r=new oe.Parser(e,t);n.version=r.parseUShort(),n.xAvgCharWidth=r.parseShort(),n.usWeightClass=r.parseUShort(),n.usWidthClass=r.parseUShort(),n.fsType=r.parseUShort(),n.ySubscriptXSize=r.parseShort(),n.ySubscriptYSize=r.parseShort(),n.ySubscriptXOffset=r.parseShort(),n.ySubscriptYOffset=r.parseShort(),n.ySuperscriptXSize=r.parseShort(),n.ySuperscriptYSize=r.parseShort(),n.ySuperscriptXOffset=r.parseShort(),n.ySuperscriptYOffset=r.parseShort(),n.yStrikeoutSize=r.parseShort(),n.yStrikeoutPosition=r.parseShort(),n.sFamilyClass=r.parseShort(),n.panose=[];for(var a=0;a<10;a++)n.panose[a]=r.parseByte();return n.ulUnicodeRange1=r.parseULong(),n.ulUnicodeRange2=r.parseULong(),n.ulUnicodeRange3=r.parseULong(),n.ulUnicodeRange4=r.parseULong(),n.achVendID=String.fromCharCode(r.parseByte(),r.parseByte(),r.parseByte(),r.parseByte()),n.fsSelection=r.parseUShort(),n.usFirstCharIndex=r.parseUShort(),n.usLastCharIndex=r.parseUShort(),n.sTypoAscender=r.parseShort(),n.sTypoDescender=r.parseShort(),n.sTypoLineGap=r.parseShort(),n.usWinAscent=r.parseUShort(),n.usWinDescent=r.parseUShort(),n.version>=1&&(n.ulCodePageRange1=r.parseULong(),n.ulCodePageRange2=r.parseULong()),n.version>=2&&(n.sxHeight=r.parseShort(),n.sCapHeight=r.parseShort(),n.usDefaultChar=r.parseUShort(),n.usBreakChar=r.parseUShort(),n.usMaxContent=r.parseUShort()),n},make:function(e){return new J.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)},unicodeRanges:ot,getUnicodeRange:function(e){for(var t=0;t<ot.length;t+=1){var n=ot[t];if(e>=n.begin&&e<n.end)return t}return-1}};var lt={parse:function(e,t){var n={},r=new oe.Parser(e,t);switch(n.version=r.parseVersion(),n.italicAngle=r.parseFixed(),n.underlinePosition=r.parseShort(),n.underlineThickness=r.parseShort(),n.isFixedPitch=r.parseULong(),n.minMemType42=r.parseULong(),n.maxMemType42=r.parseULong(),n.minMemType1=r.parseULong(),n.maxMemType1=r.parseULong(),n.version){case 1:n.names=fe.slice();break;case 2:n.numberOfGlyphs=r.parseUShort(),n.glyphNameIndex=new Array(n.numberOfGlyphs);for(var a=0;a<n.numberOfGlyphs;a++)n.glyphNameIndex[a]=r.parseUShort();n.names=[];for(var i=0;i<n.numberOfGlyphs;i++)if(n.glyphNameIndex[i]>=fe.length){var o=r.parseChar();n.names.push(r.parseString(o))}break;case 2.5:n.numberOfGlyphs=r.parseUShort(),n.offset=new Array(n.numberOfGlyphs);for(var s=0;s<n.numberOfGlyphs;s++)n.offset[s]=r.parseChar()}return n},make:function(){return new J.Table("post",[{name:"version",type:"FIXED",value:196608},{name:"italicAngle",type:"FIXED",value:0},{name:"underlinePosition",type:"FWORD",value:0},{name:"underlineThickness",type:"FWORD",value:0},{name:"isFixedPitch",type:"ULONG",value:0},{name:"minMemType42",type:"ULONG",value:0},{name:"maxMemType42",type:"ULONG",value:0},{name:"minMemType1",type:"ULONG",value:0},{name:"maxMemType1",type:"ULONG",value:0}])}},ut=new Array(9);ut[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(ae.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(ae.coverage),substitute:this.parseOffset16List()}:void R.assert(!1,"0x"+e.toString(16)+": lookup type 1 format must be 1 or 2.")},ut[2]=function(){var e=this.parseUShort();return R.argument(1===e,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),sequences:this.parseListOfLists()}},ut[3]=function(){var e=this.parseUShort();return R.argument(1===e,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),alternateSets:this.parseListOfLists()}},ut[4]=function(){var e=this.parseUShort();return R.argument(1===e,"GSUB ligature table identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var pt={sequenceIndex:ae.uShort,lookupListIndex:ae.uShort};ut[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(ae.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,pt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(ae.coverage),classDef:this.parsePointer(ae.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,pt)}})};if(3===t){var n=this.parseUShort(),r=this.parseUShort();return{substFormat:t,coverages:this.parseList(n,ae.pointer(ae.coverage)),lookupRecords:this.parseRecordList(r,pt)}}R.assert(!1,"0x"+e.toString(16)+": lookup type 5 format must be 1, 2 or 3.")},ut[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(ae.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(pt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(ae.coverage),backtrackClassDef:this.parsePointer(ae.classDef),inputClassDef:this.parsePointer(ae.classDef),lookaheadClassDef:this.parsePointer(ae.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(pt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(ae.pointer(ae.coverage)),inputCoverage:this.parseList(ae.pointer(ae.coverage)),lookaheadCoverage:this.parseList(ae.pointer(ae.coverage)),lookupRecords:this.parseRecordList(pt)}:void R.assert(!1,"0x"+e.toString(16)+": lookup type 6 format must be 1, 2 or 3.")},ut[7]=function(){var e=this.parseUShort();R.argument(1===e,"GSUB Extension Substitution subtable identifier-format must be 1");var t=this.parseUShort(),n=new ae(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:ut[t].call(n)}},ut[8]=function(){var e=this.parseUShort();return R.argument(1===e,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),backtrackCoverage:this.parseList(ae.pointer(ae.coverage)),lookaheadCoverage:this.parseList(ae.pointer(ae.coverage)),substitutes:this.parseUShortList()}};var ct=new Array(9);ct[1]=function(e){return 1===e.substFormat?new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)},{name:"deltaGlyphID",type:"USHORT",value:e.deltaGlyphId}]):new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:2},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)}].concat(J.ushortList("substitute",e.substitute)))},ct[3]=function(e){return R.assert(1===e.substFormat,"Lookup type 3 substFormat must be 1."),new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)}].concat(J.tableList("altSet",e.alternateSets,function(e){return new J.Table("alternateSetTable",J.ushortList("alternate",e))})))},ct[4]=function(e){return R.assert(1===e.substFormat,"Lookup type 4 substFormat must be 1."),new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)}].concat(J.tableList("ligSet",e.ligatureSets,function(e){return new J.Table("ligatureSetTable",J.tableList("ligature",e,function(e){return new J.Table("ligatureTable",[{name:"ligGlyph",type:"USHORT",value:e.ligGlyph}].concat(J.ushortList("component",e.components,e.components.length+1)))}))})))};var ft={parse:function(e,t){var n=new ae(e,t=t||0),r=n.parseVersion(1);return R.argument(1===r||1.1===r,"Unsupported GSUB table version."),1===r?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(ut)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(ut),variations:n.parseFeatureVariationsList()}},make:function(e){return new J.Table("GSUB",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new J.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new J.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new J.LookupList(e.lookups,ct)}])}};var ht={parse:function(e,t){var n=new oe.Parser(e,t),r=n.parseULong();R.argument(1===r,"Unsupported META table version."),n.parseULong(),n.parseULong();for(var a=n.parseULong(),i={},o=0;o<a;o++){var s=n.parseTag(),l=n.parseULong(),u=n.parseULong(),p=A.UTF8(e,t+l,u);i[s]=p}return i},make:function(e){var t=Object.keys(e).length,n="",r=16+12*t,a=new J.Table("meta",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"offset",type:"ULONG",value:r},{name:"numTags",type:"ULONG",value:t}]);for(var i in e){var o=n.length;n+=e[i],a.fields.push({name:"tag "+i,type:"TAG",value:i}),a.fields.push({name:"offset "+i,type:"ULONG",value:r+o}),a.fields.push({name:"length "+i,type:"ULONG",value:e[i].length})}return a.fields.push({name:"stringPool",type:"CHARARRAY",value:n}),a}};function dt(e){return Math.log(e)/Math.log(2)|0}function gt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,n=0;n<e.length;n+=4)t+=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];return t%=Math.pow(2,32)}function vt(e,t,n,r){return new J.Record("Table Record",[{name:"tag",type:"TAG",value:void 0!==e?e:""},{name:"checkSum",type:"ULONG",value:void 0!==t?t:0},{name:"offset",type:"ULONG",value:void 0!==n?n:0},{name:"length",type:"ULONG",value:void 0!==r?r:0}])}function mt(e){var t=new J.Table("sfnt",[{name:"version",type:"TAG",value:"OTTO"},{name:"numTables",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);t.tables=e,t.numTables=e.length;var n=Math.pow(2,dt(t.numTables));t.searchRange=16*n,t.entrySelector=dt(n),t.rangeShift=16*t.numTables-t.searchRange;for(var r=[],a=[],i=t.sizeOf()+vt().sizeOf()*t.numTables;i%4!=0;)i+=1,a.push({name:"padding",type:"BYTE",value:0});for(var o=0;o<e.length;o+=1){var s=e[o];R.argument(4===s.tableName.length,"Table name"+s.tableName+" is invalid.");var l=s.sizeOf(),u=vt(s.tableName,gt(s.encode()),i,l);for(r.push({name:u.tag+" Table Record",type:"RECORD",value:u}),a.push({name:s.tableName+" table",type:"RECORD",value:s}),i+=l,R.argument(!isNaN(i),"Something went wrong calculating the offset.");i%4!=0;)i+=1,a.push({name:"padding",type:"BYTE",value:0})}return r.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(r),t.fields=t.fields.concat(a),t}function yt(e,t,n){for(var r=0;r<t.length;r+=1){var a=e.charToGlyphIndex(t[r]);if(a>0)return e.glyphs.get(a).getMetrics()}return n}function bt(e){for(var t=0,n=0;n<e.length;n+=1)t+=e[n];return t/e.length}var xt={make:mt,fontToTable:function(e){for(var t,n=[],r=[],a=[],i=[],o=[],s=[],l=[],u=0,p=0,c=0,f=0,h=0,d=0;d<e.glyphs.length;d+=1){var g=e.glyphs.get(d),v=0|g.unicode;if(isNaN(g.advanceWidth))throw new Error("Glyph "+g.name+" ("+d+"): advanceWidth is not a number.");(t>v||void 0===t)&&v>0&&(t=v),u<v&&(u=v);var m=st.getUnicodeRange(v);if(m<32)p|=1<<m;else if(m<64)c|=1<<m-32;else if(m<96)f|=1<<m-64;else{if(!(m<123))throw new Error("Unicode ranges bits > 123 are reserved for internal usage");h|=1<<m-96}if(".notdef"!==g.name){var y=g.getMetrics();n.push(y.xMin),r.push(y.yMin),a.push(y.xMax),i.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),o.push(g.advanceWidth)}}var b={xMin:Math.min.apply(null,n),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,a),yMax:Math.max.apply(null,i),advanceWidthMax:Math.max.apply(null,o),advanceWidthAvg:bt(o),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var x=je.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),S=ze.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),T=Xe.make(e.glyphs.length),w=st.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:p,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:h,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:yt(e,"xyvw",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:yt(e,"HIKLEFJMNTZBDPRAGOQSUVWXY",b).yMax,usDefaultChar:e.hasChar(" ")?32:0,usBreakChar:e.hasChar(" ")?32:0}),k=qe.make(e.glyphs),E=le.make(e.glyphs),C=e.getEnglishName("fontFamily"),O=e.getEnglishName("fontSubfamily"),U=C+" "+O,L=e.getEnglishName("postScriptName");L||(L=C.replace(/\s/g,"")+"-"+O);var D={};for(var R in e.names)D[R]=e.names[R];D.uniqueID||(D.uniqueID={en:e.getEnglishName("manufacturer")+":"+U}),D.postScriptName||(D.postScriptName={en:L}),D.preferredFamily||(D.preferredFamily=e.names.fontFamily),D.preferredSubfamily||(D.preferredSubfamily=e.names.fontSubfamily);var A=[],F=it.make(D,A),N=A.length>0?We.make(A):void 0,I=lt.make(),M=He.make(e.glyphs,{version:e.getEnglishName("version"),fullName:U,familyName:C,weightName:O,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),P=e.metas&&Object.keys(e.metas).length>0?ht.make(e.metas):void 0,B=[x,S,T,w,F,E,I,M,k];N&&B.push(N),e.tables.gsub&&B.push(ft.make(e.tables.gsub)),P&&B.push(P);for(var _=mt(B),G=gt(_.encode()),H=_.fields,j=!1,z=0;z<H.length;z+=1)if("head table"===H[z].name){H[z].value.checkSumAdjustment=2981146554-G,j=!0;break}if(!j)throw new Error("Could not find head table with checkSum to adjust.");return _},computeCheckSum:gt};function St(e,t){for(var n=0,r=e.length-1;n<=r;){var a=n+r>>>1,i=e[a].tag;if(i===t)return a;i<t?n=a+1:r=a-1}return-n-1}function Tt(e,t){for(var n=0,r=e.length-1;n<=r;){var a=n+r>>>1,i=e[a];if(i===t)return a;i<t?n=a+1:r=a-1}return-n-1}function wt(e,t){for(var n,r=0,a=e.length-1;r<=a;){var i=r+a>>>1,o=(n=e[i]).start;if(o===t)return n;o<t?r=i+1:a=i-1}if(r>0)return t>(n=e[r-1]).end?0:n}function kt(e,t){this.font=e,this.tableName=t}function Et(e){kt.call(this,e,"gpos")}function Ct(e){kt.call(this,e,"gsub")}function Ot(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Ut(e,t,n){for(var r=e.subtables,a=0;a<r.length;a++){var i=r[a];if(i.substFormat===t)return i}if(n)return r.push(n),n}function Lt(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;++r)n[r]=e[r];return t}function Dt(e,t){if(!e)throw t}function Rt(e,t,n,r,a){var i;return(t&r)>0?(i=e.parseByte(),0==(t&a)&&(i=-i),i=n+i):i=(t&a)>0?n:n+e.parseShort(),i}function At(e,t,n){var r,a,i=new oe.Parser(t,n);if(e.numberOfContours=i.parseShort(),e._xMin=i.parseShort(),e._yMin=i.parseShort(),e._xMax=i.parseShort(),e._yMax=i.parseShort(),e.numberOfContours>0){for(var o=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)o.push(i.parseUShort());e.instructionLength=i.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(i.parseByte());var u=o[o.length-1]+1;r=[];for(var p=0;p<u;p+=1)if(a=i.parseByte(),r.push(a),(8&a)>0)for(var c=i.parseByte(),f=0;f<c;f+=1)r.push(a),p+=1;if(R.argument(r.length===u,"Bad flags."),o.length>0){var h,d=[];if(u>0){for(var g=0;g<u;g+=1)a=r[g],(h={}).onCurve=!!(1&a),h.lastPointOfContour=o.indexOf(g)>=0,d.push(h);for(var v=0,m=0;m<u;m+=1)a=r[m],(h=d[m]).x=Rt(i,a,v,2,16),v=h.x;for(var y=0,b=0;b<u;b+=1)a=r[b],(h=d[b]).y=Rt(i,a,y,4,32),y=h.y}e.points=d}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var x=!0;x;){r=i.parseUShort();var S={glyphIndex:i.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(1&r)>0?(2&r)>0?(S.dx=i.parseShort(),S.dy=i.parseShort()):S.matchedPoints=[i.parseUShort(),i.parseUShort()]:(2&r)>0?(S.dx=i.parseChar(),S.dy=i.parseChar()):S.matchedPoints=[i.parseByte(),i.parseByte()],(8&r)>0?S.xScale=S.yScale=i.parseF2Dot14():(64&r)>0?(S.xScale=i.parseF2Dot14(),S.yScale=i.parseF2Dot14()):(128&r)>0&&(S.xScale=i.parseF2Dot14(),S.scale01=i.parseF2Dot14(),S.scale10=i.parseF2Dot14(),S.yScale=i.parseF2Dot14()),e.components.push(S),x=!!(32&r)}if(256&r){e.instructionLength=i.parseUShort(),e.instructions=[];for(var T=0;T<e.instructionLength;T+=1)e.instructions.push(i.parseByte())}}}function Ft(e,t){for(var n=[],r=0;r<e.length;r+=1){var a=e[r],i={x:t.xScale*a.x+t.scale01*a.y+t.dx,y:t.scale10*a.x+t.yScale*a.y+t.dy,onCurve:a.onCurve,lastPointOfContour:a.lastPointOfContour};n.push(i)}return n}function Nt(e){var t=new U;if(!e)return t;for(var n=function(e){for(var t=[],n=[],r=0;r<e.length;r+=1){var a=e[r];n.push(a),a.lastPointOfContour&&(t.push(n),n=[])}return R.argument(0===n.length,"There are still points left in the current contour."),t}(e),r=0;r<n.length;++r){var a=n[r],i=null,o=a[a.length-1],s=a[0];if(o.onCurve)t.moveTo(o.x,o.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(o.x+s.x),y:.5*(o.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<a.length;++u)if(i=o,o=s,s=a[(u+1)%a.length],o.onCurve)t.lineTo(o.x,o.y);else{var p=s;i.onCurve||{x:.5*(o.x+i.x),y:.5*(o.y+i.y)},s.onCurve||(p={x:.5*(o.x+s.x),y:.5*(o.y+s.y)}),t.quadraticCurveTo(o.x,o.y,p.x,p.y)}t.closePath()}return t}function It(e,t){if(t.isComposite)for(var n=0;n<t.components.length;n+=1){var r=t.components[n],a=e.get(r.glyphIndex);if(a.getPath(),a.points){var i=void 0;if(void 0===r.matchedPoints)i=Ft(a.points,r);else{if(r.matchedPoints[0]>t.points.length-1||r.matchedPoints[1]>a.points.length-1)throw Error("Matched points out of range in "+t.name);var o=t.points[r.matchedPoints[0]],s=a.points[r.matchedPoints[1]],l={xScale:r.xScale,scale01:r.scale01,scale10:r.scale10,yScale:r.yScale,dx:0,dy:0};s=Ft([s],l)[0],l.dx=o.x-s.x,l.dy=o.y-s.y,i=Ft(a.points,l)}t.points=t.points.concat(i)}}return Nt(t.points)}kt.prototype={searchTag:St,binSearch:Tt,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,n=0;n<e.scripts.length;n++){var r=e.scripts[n].tag;if("DFLT"===r)return r;"latn"===r&&(t=!0)}return t?"latn":void 0}},getScriptTable:function(e,t){var n=this.getTable(t);if(n){e=e||"DFLT";var r=n.scripts,a=St(n.scripts,e);if(a>=0)return r[a].script;if(t){var i={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return r.splice(-1-a,0,i),i.script}}},getLangSysTable:function(e,t,n){var r=this.getScriptTable(e,n);if(r){if(!t||"dflt"===t||"DFLT"===t)return r.defaultLangSys;var a=St(r.langSysRecords,t);if(a>=0)return r.langSysRecords[a].langSys;if(n){var i={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return r.langSysRecords.splice(-1-a,0,i),i.langSys}}},getFeatureTable:function(e,t,n,r){var a=this.getLangSysTable(e,t,r);if(a){for(var i,o=a.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<o.length;l++)if((i=s[o[l]]).tag===n)return i.feature;if(r){var u=s.length;return R.assert(0===u||n>=s[u-1].tag,"Features must be added in alphabetical order."),i={tag:n,feature:{params:0,lookupListIndexes:[]}},s.push(i),o.push(u),i.feature}}},getLookupTables:function(e,t,n,r,a){var i=this.getFeatureTable(e,t,n,a),o=[];if(i){for(var s,l=i.lookupListIndexes,u=this.font.tables[this.tableName].lookups,p=0;p<l.length;p++)(s=u[l[p]]).lookupType===r&&o.push(s);if(0===o.length&&a){s={lookupType:r,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return o},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var n=wt(e.ranges,t);return n?n.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var n=Tt(e.glyphs,t);return n>=0?n:-1;case 2:var r=wt(e.ranges,t);return r?r.index+t-r.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],n=e.ranges,r=0;r<n.length;r++)for(var a=n[r],i=a.start,o=a.end,s=i;s<=o;s++)t.push(s);return t}},Et.prototype=kt.prototype,Et.prototype.init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},Et.prototype.getKerningValue=function(e,t,n){for(var r=0;r<e.length;r++)for(var a=e[r].subtables,i=0;i<a.length;i++){var o=a[i],s=this.getCoverageIndex(o.coverage,t);if(!(s<0))switch(o.posFormat){case 1:for(var l=o.pairSets[s],u=0;u<l.length;u++){var p=l[u];if(p.secondGlyph===n)return p.value1&&p.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(o.classDef1,t),f=this.getGlyphClass(o.classDef2,n),h=o.classRecords[c][f];return h.value1&&h.value1.xAdvance||0}}return 0},Et.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,"kern",2)},Ct.prototype=kt.prototype,Ct.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},Ct.prototype.getSingle=function(e,t,n){for(var r=[],a=this.getLookupTables(t,n,e,1),i=0;i<a.length;i++)for(var o=a[i].subtables,s=0;s<o.length;s++){var l=o[s],u=this.expandCoverage(l.coverage),p=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(p=0;p<u.length;p++){var f=u[p];r.push({sub:f,by:f+c})}}else{var h=l.substitute;for(p=0;p<u.length;p++)r.push({sub:u[p],by:h[p]})}}return r},Ct.prototype.getAlternates=function(e,t,n){for(var r=[],a=this.getLookupTables(t,n,e,3),i=0;i<a.length;i++)for(var o=a[i].subtables,s=0;s<o.length;s++)for(var l=o[s],u=this.expandCoverage(l.coverage),p=l.alternateSets,c=0;c<u.length;c++)r.push({sub:u[c],by:p[c]});return r},Ct.prototype.getLigatures=function(e,t,n){for(var r=[],a=this.getLookupTables(t,n,e,4),i=0;i<a.length;i++)for(var o=a[i].subtables,s=0;s<o.length;s++)for(var l=o[s],u=this.expandCoverage(l.coverage),p=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],h=p[c],d=0;d<h.length;d++){var g=h[d];r.push({sub:[f].concat(g.components),by:g.ligGlyph})}return r},Ct.prototype.addSingle=function(e,t,n,r){var a=Ut(this.getLookupTables(n,r,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});R.assert(1===a.coverage.format,"Ligature: unable to modify coverage table format "+a.coverage.format);var i=t.sub,o=this.binSearch(a.coverage.glyphs,i);o<0&&(o=-1-o,a.coverage.glyphs.splice(o,0,i),a.substitute.splice(o,0,0)),a.substitute[o]=t.by},Ct.prototype.addAlternate=function(e,t,n,r){var a=Ut(this.getLookupTables(n,r,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});R.assert(1===a.coverage.format,"Ligature: unable to modify coverage table format "+a.coverage.format);var i=t.sub,o=this.binSearch(a.coverage.glyphs,i);o<0&&(o=-1-o,a.coverage.glyphs.splice(o,0,i),a.alternateSets.splice(o,0,0)),a.alternateSets[o]=t.by},Ct.prototype.addLigature=function(e,t,n,r){var a=this.getLookupTables(n,r,e,4,!0)[0],i=a.subtables[0];i||(i={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},a.subtables[0]=i),R.assert(1===i.coverage.format,"Ligature: unable to modify coverage table format "+i.coverage.format);var o=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(i.coverage.glyphs,o);if(u>=0){for(var p=i.ligatureSets[u],c=0;c<p.length;c++)if(Ot(p[c].components,s))return;p.push(l)}else u=-1-u,i.coverage.glyphs.splice(u,0,o),i.ligatureSets.splice(u,0,[l])},Ct.prototype.getFeature=function(e,t,n){if(/ss\d\d/.test(e))return this.getSingle(e,t,n);switch(e){case"aalt":case"salt":return this.getSingle(e,t,n).concat(this.getAlternates(e,t,n));case"dlig":case"liga":case"rlig":return this.getLigatures(e,t,n)}},Ct.prototype.add=function(e,t,n,r){if(/ss\d\d/.test(e))return this.addSingle(e,t,n,r);switch(e){case"aalt":case"salt":return"number"==typeof t.by?this.addSingle(e,t,n,r):this.addAlternate(e,t,n,r);case"dlig":case"liga":case"rlig":return this.addLigature(e,t,n,r)}};var Mt,Pt,Bt,_t,Gt={getPath:Nt,parse:function(e,t,n,r,a){return a.lowMemory?function(e,t,n,r){var a=new Te.GlyphSet(r);return r._push=function(i){var o=n[i];o!==n[i+1]?a.push(i,Te.ttfGlyphLoader(r,i,At,e,t+o,It)):a.push(i,Te.glyphLoader(r,i))},a}(e,t,n,r):function(e,t,n,r){for(var a=new Te.GlyphSet(r),i=0;i<n.length-1;i+=1){var o=n[i];o!==n[i+1]?a.push(i,Te.ttfGlyphLoader(r,i,At,e,t+o,It)):a.push(i,Te.glyphLoader(r,i))}return a}(e,t,n,r)}};function Ht(e){this.font=e,this.getCommands=function(e){return Gt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function jt(e){return e}function zt(e){return Math.sign(e)*Math.round(Math.abs(e))}function qt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Wt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function Xt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Vt(e){return Math.sign(e)*Math.floor(Math.abs(e))}var $t=function(e){var t=this.srPeriod,n=this.srPhase,r=1;return e<0&&(e=-e,r=-1),e+=this.srThreshold-n,e=Math.trunc(e/t)*t,(e+=n)<0?n*r:e*r},Yt={x:1,y:0,axis:"x",distance:function(e,t,n,r){return(n?e.xo:e.x)-(r?t.xo:t.x)},interpolate:function(e,t,n,r){var a,i,o,s,l,u,p;if(!r||r===this)return a=e.xo-t.xo,i=e.xo-n.xo,l=t.x-t.xo,u=n.x-n.xo,0===(p=(o=Math.abs(a))+(s=Math.abs(i)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*o)/p);a=r.distance(e,t,!0,!0),i=r.distance(e,n,!0,!0),l=r.distance(t,t,!1,!0),u=r.distance(n,n,!1,!0),0!==(p=(o=Math.abs(a))+(s=Math.abs(i)))?Yt.setRelative(e,e,(l*s+u*o)/p,r,!0):Yt.setRelative(e,e,(l+u)/2,r,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,n,r,a){if(r&&r!==this){var i=a?t.xo:t.x,o=a?t.yo:t.y,s=i+n*r.x,l=o+n*r.y;e.x=s+(e.y-l)/r.normalSlope}else e.x=(a?t.xo:t.x)+n},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},Zt={x:0,y:1,axis:"y",distance:function(e,t,n,r){return(n?e.yo:e.y)-(r?t.yo:t.y)},interpolate:function(e,t,n,r){var a,i,o,s,l,u,p;if(!r||r===this)return a=e.yo-t.yo,i=e.yo-n.yo,l=t.y-t.yo,u=n.y-n.yo,0===(p=(o=Math.abs(a))+(s=Math.abs(i)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*o)/p);a=r.distance(e,t,!0,!0),i=r.distance(e,n,!0,!0),l=r.distance(t,t,!1,!0),u=r.distance(n,n,!1,!0),0!==(p=(o=Math.abs(a))+(s=Math.abs(i)))?Zt.setRelative(e,e,(l*s+u*o)/p,r,!0):Zt.setRelative(e,e,(l+u)/2,r,!0)},normalSlope:0,setRelative:function(e,t,n,r,a){if(r&&r!==this){var i=a?t.xo:t.x,o=a?t.yo:t.y,s=i+n*r.x,l=o+n*r.y;e.y=l+r.normalSlope*(e.x-s)}else e.y=(a?t.yo:t.y)+n},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Kt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Jt(e,t){var n=Math.sqrt(e*e+t*t);return t/=n,1===(e/=n)&&0===t?Yt:0===e&&1===t?Zt:new Kt(e,t)}function Qt(e,t,n,r){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=n,this.onCurve=r,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Yt),Object.freeze(Zt),Kt.prototype.distance=function(e,t,n,r){return this.x*Yt.distance(e,t,n,r)+this.y*Zt.distance(e,t,n,r)},Kt.prototype.interpolate=function(e,t,n,r){var a,i,o,s,l,u,p;o=r.distance(e,t,!0,!0),s=r.distance(e,n,!0,!0),a=r.distance(t,t,!1,!0),i=r.distance(n,n,!1,!0),0!==(p=(l=Math.abs(o))+(u=Math.abs(s)))?this.setRelative(e,e,(a*u+i*l)/p,r,!0):this.setRelative(e,e,(a+i)/2,r,!0)},Kt.prototype.setRelative=function(e,t,n,r,a){r=r||this;var i=a?t.xo:t.x,o=a?t.yo:t.y,s=i+n*r.x,l=o+n*r.y,u=r.normalSlope,p=this.slope,c=e.x,f=e.y;e.x=(p*c-u*s+l-f)/(p-u),e.y=p*(e.x-c)+f},Kt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var en=Object.freeze(new Qt(0,0)),tn={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function nn(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=Yt,this.round=zt}}function rn(e){for(var t=e.tZone=new Array(e.gZone.length),n=0;n<t.length;n++)t[n]=new Qt(0,0)}function an(e,t){var n,r=e.prog,a=e.ip,i=1;do{if(88===(n=r[++a]))i++;else if(89===n)i--;else if(64===n)a+=r[a+1]+1;else if(65===n)a+=2*r[a+1]+1;else if(n>=176&&n<=183)a+=n-176+1;else if(n>=184&&n<=191)a+=2*(n-184+1);else if(t&&1===i&&27===n)break}while(i>0);e.ip=a}function on(t,n){e.DEBUG&&console.log(n.step,"SVTCA["+t.axis+"]"),n.fv=n.pv=n.dpv=t}function sn(t,n){e.DEBUG&&console.log(n.step,"SPVTCA["+t.axis+"]"),n.pv=n.dpv=t}function ln(t,n){e.DEBUG&&console.log(n.step,"SFVTCA["+t.axis+"]"),n.fv=t}function un(t,n){var r,a,i=n.stack,o=i.pop(),s=i.pop(),l=n.z2[o],u=n.z1[s];e.DEBUG&&console.log("SPVTL["+t+"]",o,s),t?(r=l.y-u.y,a=u.x-l.x):(r=u.x-l.x,a=u.y-l.y),n.pv=n.dpv=Jt(r,a)}function pn(t,n){var r,a,i=n.stack,o=i.pop(),s=i.pop(),l=n.z2[o],u=n.z1[s];e.DEBUG&&console.log("SFVTL["+t+"]",o,s),t?(r=l.y-u.y,a=u.x-l.x):(r=u.x-l.x,a=u.y-l.y),n.fv=Jt(r,a)}function cn(t){e.DEBUG&&console.log(t.step,"POP[]"),t.stack.pop()}function fn(t,n){var r=n.stack.pop(),a=n.z0[r],i=n.fv,o=n.pv;e.DEBUG&&console.log(n.step,"MDAP["+t+"]",r);var s=o.distance(a,en);t&&(s=n.round(s)),i.setRelative(a,en,s,o),i.touch(a),n.rp0=n.rp1=r}function hn(t,n){var r,a,i,o=n.z2,s=o.length-2;e.DEBUG&&console.log(n.step,"IUP["+t.axis+"]");for(var l=0;l<s;l++)r=o[l],t.touched(r)||(a=r.prevTouched(t))!==r&&(a===(i=r.nextTouched(t))&&t.setRelative(r,r,t.distance(a,a,!1,!0),t,!0),t.interpolate(r,a,i,t))}function dn(t,n){for(var r=n.stack,a=t?n.rp1:n.rp2,i=(t?n.z0:n.z1)[a],o=n.fv,s=n.pv,l=n.loop,u=n.z2;l--;){var p=r.pop(),c=u[p],f=s.distance(i,i,!1,!0);o.setRelative(c,c,f,s),o.touch(c),e.DEBUG&&console.log(n.step,(n.loop>1?"loop "+(n.loop-l)+": ":"")+"SHP["+(t?"rp1":"rp2")+"]",p)}n.loop=1}function gn(t,n){var r=n.stack,a=t?n.rp1:n.rp2,i=(t?n.z0:n.z1)[a],o=n.fv,s=n.pv,l=r.pop(),u=n.z2[n.contours[l]],p=u;e.DEBUG&&console.log(n.step,"SHC["+t+"]",l);var c=s.distance(i,i,!1,!0);do{p!==i&&o.setRelative(p,p,c,s),p=p.nextPointOnContour}while(p!==u)}function vn(t,n){var r,a,i=n.stack,o=t?n.rp1:n.rp2,s=(t?n.z0:n.z1)[o],l=n.fv,u=n.pv,p=i.pop();switch(e.DEBUG&&console.log(n.step,"SHZ["+t+"]",p),p){case 0:r=n.tZone;break;case 1:r=n.gZone;break;default:throw new Error("Invalid zone")}for(var c=u.distance(s,s,!1,!0),f=r.length-2,h=0;h<f;h++)a=r[h],l.setRelative(a,a,c,u)}function mn(t,n){var r=n.stack,a=r.pop()/64,i=r.pop(),o=n.z1[i],s=n.z0[n.rp0],l=n.fv,u=n.pv;l.setRelative(o,s,a,u),l.touch(o),e.DEBUG&&console.log(n.step,"MSIRP["+t+"]",a,i),n.rp1=n.rp0,n.rp2=i,t&&(n.rp0=i)}function yn(t,n){var r=n.stack,a=r.pop(),i=r.pop(),o=n.z0[i],s=n.fv,l=n.pv,u=n.cvt[a];e.DEBUG&&console.log(n.step,"MIAP["+t+"]",a,"(",u,")",i);var p=l.distance(o,en);t&&(Math.abs(p-u)<n.cvCutIn&&(p=u),p=n.round(p)),s.setRelative(o,en,p,l),0===n.zp0&&(o.xo=o.x,o.yo=o.y),s.touch(o),n.rp0=n.rp1=i}function bn(t,n){var r=n.stack,a=r.pop(),i=n.z2[a];e.DEBUG&&console.log(n.step,"GC["+t+"]",a),r.push(64*n.dpv.distance(i,en,t,!1))}function xn(t,n){var r=n.stack,a=r.pop(),i=r.pop(),o=n.z1[a],s=n.z0[i],l=n.dpv.distance(s,o,t,t);e.DEBUG&&console.log(n.step,"MD["+t+"]",a,i,"->",l),n.stack.push(Math.round(64*l))}function Sn(t,n){var r=n.stack,a=r.pop(),i=n.fv,o=n.pv,s=n.ppem,l=n.deltaBase+16*(t-1),u=n.deltaShift,p=n.z0;e.DEBUG&&console.log(n.step,"DELTAP["+t+"]",a,r);for(var c=0;c<a;c++){var f=r.pop(),h=r.pop();if(l+((240&h)>>4)===s){var d=(15&h)-8;d>=0&&d++,e.DEBUG&&console.log(n.step,"DELTAPFIX",f,"by",d*u);var g=p[f];i.setRelative(g,g,d*u,o)}}}function Tn(t,n){var r=n.stack,a=r.pop();e.DEBUG&&console.log(n.step,"ROUND[]"),r.push(64*n.round(a/64))}function wn(t,n){var r=n.stack,a=r.pop(),i=n.ppem,o=n.deltaBase+16*(t-1),s=n.deltaShift;e.DEBUG&&console.log(n.step,"DELTAC["+t+"]",a,r);for(var l=0;l<a;l++){var u=r.pop(),p=r.pop();if(o+((240&p)>>4)===i){var c=(15&p)-8;c>=0&&c++;var f=c*s;e.DEBUG&&console.log(n.step,"DELTACFIX",u,"by",f),n.cvt[u]+=f}}}function kn(t,n){var r,a,i=n.stack,o=i.pop(),s=i.pop(),l=n.z2[o],u=n.z1[s];e.DEBUG&&console.log(n.step,"SDPVTL["+t+"]",o,s),t?(r=l.y-u.y,a=u.x-l.x):(r=u.x-l.x,a=u.y-l.y),n.dpv=Jt(r,a)}function En(t,n){var r=n.stack,a=n.prog,i=n.ip;e.DEBUG&&console.log(n.step,"PUSHB["+t+"]");for(var o=0;o<t;o++)r.push(a[++i]);n.ip=i}function Cn(t,n){var r=n.ip,a=n.prog,i=n.stack;e.DEBUG&&console.log(n.ip,"PUSHW["+t+"]");for(var o=0;o<t;o++){var s=a[++r]<<8|a[++r];32768&s&&(s=-(1+(65535^s))),i.push(s)}n.ip=r}function On(t,n,r,a,i,o){var s,l,u,p,c=o.stack,f=t&&c.pop(),h=c.pop(),d=o.rp0,g=o.z0[d],v=o.z1[h],m=o.minDis,y=o.fv,b=o.dpv;u=(l=s=b.distance(v,g,!0,!0))>=0?1:-1,l=Math.abs(l),t&&(p=o.cvt[f],a&&Math.abs(l-p)<o.cvCutIn&&(l=p)),r&&l<m&&(l=m),a&&(l=o.round(l)),y.setRelative(v,g,u*l,b),y.touch(v),e.DEBUG&&console.log(o.step,(t?"MIRP[":"MDRP[")+(n?"M":"m")+(r?">":"_")+(a?"R":"_")+(0===i?"Gr":1===i?"Bl":2===i?"Wh":"")+"]",t?f+"("+o.cvt[f]+","+p+")":"",h,"(d =",s,"->",u*l,")"),o.rp1=o.rp0,o.rp2=h,n&&(o.rp0=h)}function Un(e){this.char=e,this.state={},this.activeState=null}function Ln(e,t,n){this.contextName=n,this.startIndex=e,this.endOffset=t}function Dn(e,t,n){this.contextName=e,this.openRange=null,this.ranges=[],this.checkStart=t,this.checkEnd=n}function Rn(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 An(e){this.eventId=e,this.subscribers=[]}function Fn(e){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],function(e){var t=this,n=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];n.forEach(function(e){Object.defineProperty(t.events,e,{value:new An(e)})}),e&&n.forEach(function(n){var r=e[n];"function"==typeof r&&t.events[n].subscribe(r)}),["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"].forEach(function(e){t.events[e].subscribe(t.updateContextsRanges)})}.call(this,e)}function Nn(e){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(e)}function In(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 Mn(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 Bn(e){this.font=e,this.features={}}function _n(e){this.id=e.id,this.tag=e.tag,this.substitution=e.substitution}function Gn(e,t){if(!e)return-1;switch(t.format){case 1:return t.glyphs.indexOf(e);case 2:for(var n=t.ranges,r=0;r<n.length;r++){var a=n[r];if(e>=a.start&&e<=a.end){var i=e-a.start;return a.index+i}}break;default:return-1}return-1}function Hn(e,t){for(var n=[],r=0;r<e.length;r++){var a=e[r],i=t.current,o=Gn(i=Array.isArray(i)?i[0]:i,a);-1!==o&&n.push(o)}return n.length!==e.length?-1:n}Ht.prototype.exec=function(t,n){if("number"!=typeof n)throw new Error("Point size is not a number!");if(!(this._errorState>2)){var r=this.font,a=this._prepState;if(!a||a.ppem!==n){var i=this._fpgmState;if(!i){nn.prototype=tn,(i=this._fpgmState=new nn("fpgm",r.tables.fpgm)).funcs=[],i.font=r,e.DEBUG&&(console.log("---EXEC FPGM---"),i.step=-1);try{Pt(i)}catch(e){return console.log("Hinting error in FPGM:"+e),void(this._errorState=3)}}nn.prototype=i,(a=this._prepState=new nn("prep",r.tables.prep)).ppem=n;var o=r.tables.cvt;if(o)for(var s=a.cvt=new Array(o.length),l=n/r.unitsPerEm,u=0;u<o.length;u++)s[u]=o[u]*l;else a.cvt=[];e.DEBUG&&(console.log("---EXEC PREP---"),a.step=-1);try{Pt(a)}catch(e){this._errorState<2&&console.log("Hinting error in PREP:"+e),this._errorState=2}}if(!(this._errorState>1))try{return Bt(t,a)}catch(e){return this._errorState<1&&(console.log("Hinting error:"+e),console.log("Note: further hinting errors are silenced")),void(this._errorState=1)}}},Bt=function(t,n){var r,a,i,o=n.ppem/n.font.unitsPerEm,s=o,l=t.components;if(nn.prototype=n,l){var u=n.font;a=[],r=[];for(var p=0;p<l.length;p++){var c=l[p],f=u.glyphs.get(c.glyphIndex);i=new nn("glyf",f.instructions),e.DEBUG&&(console.log("---EXEC COMP "+p+"---"),i.step=-1),_t(f,i,o,s);for(var h=Math.round(c.dx*o),d=Math.round(c.dy*s),g=i.gZone,v=i.contours,m=0;m<g.length;m++){var y=g[m];y.xTouched=y.yTouched=!1,y.xo=y.x=y.x+h,y.yo=y.y=y.y+d}var b=a.length;a.push.apply(a,g);for(var x=0;x<v.length;x++)r.push(v[x]+b)}t.instructions&&!i.inhibitGridFit&&((i=new nn("glyf",t.instructions)).gZone=i.z0=i.z1=i.z2=a,i.contours=r,a.push(new Qt(0,0),new Qt(Math.round(t.advanceWidth*o),0)),e.DEBUG&&(console.log("---EXEC COMPOSITE---"),i.step=-1),Pt(i),a.length-=2)}else i=new nn("glyf",t.instructions),e.DEBUG&&(console.log("---EXEC GLYPH---"),i.step=-1),_t(t,i,o,s),a=i.gZone;return a},_t=function(t,n,r,a){for(var i,o,s,l=t.points||[],u=l.length,p=n.gZone=n.z0=n.z1=n.z2=[],c=n.contours=[],f=0;f<u;f++)i=l[f],p[f]=new Qt(i.x*r,i.y*a,i.lastPointOfContour,i.onCurve);for(var h=0;h<u;h++)i=p[h],o||(o=i,c.push(h)),i.lastPointOfContour?(i.nextPointOnContour=o,o.prevPointOnContour=i,o=void 0):(s=p[h+1],i.nextPointOnContour=s,s.prevPointOnContour=i);if(!n.inhibitGridFit){if(e.DEBUG){console.log("PROCESSING GLYPH",n.stack);for(var d=0;d<u;d++)console.log(d,p[d].x,p[d].y)}if(p.push(new Qt(0,0),new Qt(Math.round(t.advanceWidth*r),0)),Pt(n),p.length-=2,e.DEBUG){console.log("FINISHED GLYPH",n.stack);for(var g=0;g<u;g++)console.log(g,p[g].x,p[g].y)}}},Pt=function(t){var n=t.prog;if(n){var r,a=n.length;for(t.ip=0;t.ip<a;t.ip++){if(e.DEBUG&&t.step++,!(r=Mt[n[t.ip]]))throw new Error("unknown instruction: 0x"+Number(n[t.ip]).toString(16));r(t)}}},Mt=[on.bind(void 0,Zt),on.bind(void 0,Yt),sn.bind(void 0,Zt),sn.bind(void 0,Yt),ln.bind(void 0,Zt),ln.bind(void 0,Yt),un.bind(void 0,0),un.bind(void 0,1),pn.bind(void 0,0),pn.bind(void 0,1),function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"SPVFS[]",r,a),t.pv=t.dpv=Jt(a,r)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"SPVFS[]",r,a),t.fv=Jt(a,r)},function(t){var n=t.stack,r=t.pv;e.DEBUG&&console.log(t.step,"GPV[]"),n.push(16384*r.x),n.push(16384*r.y)},function(t){var n=t.stack,r=t.fv;e.DEBUG&&console.log(t.step,"GFV[]"),n.push(16384*r.x),n.push(16384*r.y)},function(t){t.fv=t.pv,e.DEBUG&&console.log(t.step,"SFVTPV[]")},function(t){var n=t.stack,r=n.pop(),a=n.pop(),i=n.pop(),o=n.pop(),s=n.pop(),l=t.z0,u=t.z1,p=l[r],c=l[a],f=u[i],h=u[o],d=t.z2[s];e.DEBUG&&console.log("ISECT[], ",r,a,i,o,s);var g=p.x,v=p.y,m=c.x,y=c.y,b=f.x,x=f.y,S=h.x,T=h.y,w=(g-m)*(x-T)-(v-y)*(b-S),k=g*y-v*m,E=b*T-x*S;d.x=(k*(b-S)-E*(g-m))/w,d.y=(k*(x-T)-E*(v-y))/w},function(t){t.rp0=t.stack.pop(),e.DEBUG&&console.log(t.step,"SRP0[]",t.rp0)},function(t){t.rp1=t.stack.pop(),e.DEBUG&&console.log(t.step,"SRP1[]",t.rp1)},function(t){t.rp2=t.stack.pop(),e.DEBUG&&console.log(t.step,"SRP2[]",t.rp2)},function(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZP0[]",n),t.zp0=n,n){case 0:t.tZone||rn(t),t.z0=t.tZone;break;case 1:t.z0=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZP1[]",n),t.zp1=n,n){case 0:t.tZone||rn(t),t.z1=t.tZone;break;case 1:t.z1=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZP2[]",n),t.zp2=n,n){case 0:t.tZone||rn(t),t.z2=t.tZone;break;case 1:t.z2=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZPS[]",n),t.zp0=t.zp1=t.zp2=n,n){case 0:t.tZone||rn(t),t.z0=t.z1=t.z2=t.tZone;break;case 1:t.z0=t.z1=t.z2=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){t.loop=t.stack.pop(),e.DEBUG&&console.log(t.step,"SLOOP[]",t.loop)},function(t){e.DEBUG&&console.log(t.step,"RTG[]"),t.round=zt},function(t){e.DEBUG&&console.log(t.step,"RTHG[]"),t.round=Wt},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SMD[]",n),t.minDis=n/64},function(t){e.DEBUG&&console.log(t.step,"ELSE[]"),an(t,!1)},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"JMPR[]",n),t.ip+=n-1},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SCVTCI[]",n),t.cvCutIn=n/64},void 0,void 0,function(t){var n=t.stack;e.DEBUG&&console.log(t.step,"DUP[]"),n.push(n[n.length-1])},cn,function(t){e.DEBUG&&console.log(t.step,"CLEAR[]"),t.stack.length=0},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"SWAP[]"),n.push(r),n.push(a)},function(t){var n=t.stack;e.DEBUG&&console.log(t.step,"DEPTH[]"),n.push(n.length)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"CINDEX[]",r),n.push(n[n.length-r])},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"MINDEX[]",r),n.push(n.splice(n.length-r,1)[0])},void 0,void 0,void 0,function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"LOOPCALL[]",r,a);var i=t.ip,o=t.prog;t.prog=t.funcs[r];for(var s=0;s<a;s++)Pt(t),e.DEBUG&&console.log(++t.step,s+1<a?"next loopcall":"done loopcall",s);t.ip=i,t.prog=o},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"CALL[]",n);var r=t.ip,a=t.prog;t.prog=t.funcs[n],Pt(t),t.ip=r,t.prog=a,e.DEBUG&&console.log(++t.step,"returning from",n)},function(t){if("fpgm"!==t.env)throw new Error("FDEF not allowed here");var n=t.stack,r=t.prog,a=t.ip,i=n.pop(),o=a;for(e.DEBUG&&console.log(t.step,"FDEF[]",i);45!==r[++a];);t.ip=a,t.funcs[i]=r.slice(o+1,a)},void 0,fn.bind(void 0,0),fn.bind(void 0,1),hn.bind(void 0,Zt),hn.bind(void 0,Yt),dn.bind(void 0,0),dn.bind(void 0,1),gn.bind(void 0,0),gn.bind(void 0,1),vn.bind(void 0,0),vn.bind(void 0,1),function(t){for(var n=t.stack,r=t.loop,a=t.fv,i=n.pop()/64,o=t.z2;r--;){var s=n.pop(),l=o[s];e.DEBUG&&console.log(t.step,(t.loop>1?"loop "+(t.loop-r)+": ":"")+"SHPIX[]",s,i),a.setRelative(l,l,i),a.touch(l)}t.loop=1},function(t){for(var n=t.stack,r=t.rp1,a=t.rp2,i=t.loop,o=t.z0[r],s=t.z1[a],l=t.fv,u=t.dpv,p=t.z2;i--;){var c=n.pop(),f=p[c];e.DEBUG&&console.log(t.step,(t.loop>1?"loop "+(t.loop-i)+": ":"")+"IP[]",c,r,"<->",a),l.interpolate(f,o,s,u),l.touch(f)}t.loop=1},mn.bind(void 0,0),mn.bind(void 0,1),function(t){for(var n=t.stack,r=t.rp0,a=t.z0[r],i=t.loop,o=t.fv,s=t.pv,l=t.z1;i--;){var u=n.pop(),p=l[u];e.DEBUG&&console.log(t.step,(t.loop>1?"loop "+(t.loop-i)+": ":"")+"ALIGNRP[]",u),o.setRelative(p,a,0,s),o.touch(p)}t.loop=1},function(t){e.DEBUG&&console.log(t.step,"RTDG[]"),t.round=qt},yn.bind(void 0,0),yn.bind(void 0,1),function(t){var n=t.prog,r=t.ip,a=t.stack,i=n[++r];e.DEBUG&&console.log(t.step,"NPUSHB[]",i);for(var o=0;o<i;o++)a.push(n[++r]);t.ip=r},function(t){var n=t.ip,r=t.prog,a=t.stack,i=r[++n];e.DEBUG&&console.log(t.step,"NPUSHW[]",i);for(var o=0;o<i;o++){var s=r[++n]<<8|r[++n];32768&s&&(s=-(1+(65535^s))),a.push(s)}t.ip=n},function(t){var n=t.stack,r=t.store;r||(r=t.store=[]);var a=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"WS",a,i),r[i]=a},function(t){var n=t.stack,r=t.store,a=n.pop();e.DEBUG&&console.log(t.step,"RS",a);var i=r&&r[a]||0;n.push(i)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"WCVTP",r,a),t.cvt[a]=r/64},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"RCVT",r),n.push(64*t.cvt[r])},bn.bind(void 0,0),bn.bind(void 0,1),void 0,xn.bind(void 0,0),xn.bind(void 0,1),function(t){e.DEBUG&&console.log(t.step,"MPPEM[]"),t.stack.push(t.ppem)},void 0,function(t){e.DEBUG&&console.log(t.step,"FLIPON[]"),t.autoFlip=!0},void 0,void 0,function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"LT[]",r,a),n.push(a<r?1:0)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"LTEQ[]",r,a),n.push(a<=r?1:0)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"GT[]",r,a),n.push(a>r?1:0)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"GTEQ[]",r,a),n.push(a>=r?1:0)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"EQ[]",r,a),n.push(r===a?1:0)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"NEQ[]",r,a),n.push(r!==a?1:0)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"ODD[]",r),n.push(Math.trunc(r)%2?1:0)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"EVEN[]",r),n.push(Math.trunc(r)%2?0:1)},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"IF[]",n),n||(an(t,!0),e.DEBUG&&console.log(t.step,"EIF[]"))},function(t){e.DEBUG&&console.log(t.step,"EIF[]")},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"AND[]",r,a),n.push(r&&a?1:0)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"OR[]",r,a),n.push(r||a?1:0)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"NOT[]",r),n.push(r?0:1)},Sn.bind(void 0,1),function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SDB[]",n),t.deltaBase=n},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SDS[]",n),t.deltaShift=Math.pow(.5,n)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"ADD[]",r,a),n.push(a+r)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"SUB[]",r,a),n.push(a-r)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"DIV[]",r,a),n.push(64*a/r)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"MUL[]",r,a),n.push(a*r/64)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"ABS[]",r),n.push(Math.abs(r))},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"NEG[]",r),n.push(-r)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"FLOOR[]",r),n.push(64*Math.floor(r/64))},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"CEILING[]",r),n.push(64*Math.ceil(r/64))},Tn.bind(void 0,0),Tn.bind(void 0,1),Tn.bind(void 0,2),Tn.bind(void 0,3),void 0,void 0,void 0,void 0,function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"WCVTF[]",r,a),t.cvt[a]=r*t.ppem/t.font.unitsPerEm},Sn.bind(void 0,2),Sn.bind(void 0,3),wn.bind(void 0,1),wn.bind(void 0,2),wn.bind(void 0,3),function(t){var n,r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SROUND[]",r),t.round=$t,192&r){case 0:n=.5;break;case 64:n=1;break;case 128:n=2;break;default:throw new Error("invalid SROUND value")}switch(t.srPeriod=n,48&r){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*n;break;case 32:t.srPhase=.5*n;break;case 48:t.srPhase=.75*n;break;default:throw new Error("invalid SROUND value")}r&=15,t.srThreshold=0===r?0:(r/8-.5)*n},function(t){var n,r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"S45ROUND[]",r),t.round=$t,192&r){case 0:n=Math.sqrt(2)/2;break;case 64:n=Math.sqrt(2);break;case 128:n=2*Math.sqrt(2);break;default:throw new Error("invalid S45ROUND value")}switch(t.srPeriod=n,48&r){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*n;break;case 32:t.srPhase=.5*n;break;case 48:t.srPhase=.75*n;break;default:throw new Error("invalid S45ROUND value")}r&=15,t.srThreshold=0===r?0:(r/8-.5)*n},void 0,void 0,function(t){e.DEBUG&&console.log(t.step,"ROFF[]"),t.round=jt},void 0,function(t){e.DEBUG&&console.log(t.step,"RUTG[]"),t.round=Xt},function(t){e.DEBUG&&console.log(t.step,"RDTG[]"),t.round=Vt},cn,cn,void 0,void 0,void 0,void 0,void 0,function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SCANCTRL[]",n)},kn.bind(void 0,0),kn.bind(void 0,1),function(t){var n=t.stack,r=n.pop(),a=0;e.DEBUG&&console.log(t.step,"GETINFO[]",r),1&r&&(a=35),32&r&&(a|=4096),n.push(a)},void 0,function(t){var n=t.stack,r=n.pop(),a=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"ROLL[]"),n.push(a),n.push(r),n.push(i)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"MAX[]",r,a),n.push(Math.max(a,r))},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"MIN[]",r,a),n.push(Math.min(a,r))},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SCANTYPE[]",n)},function(t){var n=t.stack.pop(),r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"INSTCTRL[]",n,r),n){case 1:return void(t.inhibitGridFit=!!r);case 2:return void(t.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,En.bind(void 0,1),En.bind(void 0,2),En.bind(void 0,3),En.bind(void 0,4),En.bind(void 0,5),En.bind(void 0,6),En.bind(void 0,7),En.bind(void 0,8),Cn.bind(void 0,1),Cn.bind(void 0,2),Cn.bind(void 0,3),Cn.bind(void 0,4),Cn.bind(void 0,5),Cn.bind(void 0,6),Cn.bind(void 0,7),Cn.bind(void 0,8),On.bind(void 0,0,0,0,0,0),On.bind(void 0,0,0,0,0,1),On.bind(void 0,0,0,0,0,2),On.bind(void 0,0,0,0,0,3),On.bind(void 0,0,0,0,1,0),On.bind(void 0,0,0,0,1,1),On.bind(void 0,0,0,0,1,2),On.bind(void 0,0,0,0,1,3),On.bind(void 0,0,0,1,0,0),On.bind(void 0,0,0,1,0,1),On.bind(void 0,0,0,1,0,2),On.bind(void 0,0,0,1,0,3),On.bind(void 0,0,0,1,1,0),On.bind(void 0,0,0,1,1,1),On.bind(void 0,0,0,1,1,2),On.bind(void 0,0,0,1,1,3),On.bind(void 0,0,1,0,0,0),On.bind(void 0,0,1,0,0,1),On.bind(void 0,0,1,0,0,2),On.bind(void 0,0,1,0,0,3),On.bind(void 0,0,1,0,1,0),On.bind(void 0,0,1,0,1,1),On.bind(void 0,0,1,0,1,2),On.bind(void 0,0,1,0,1,3),On.bind(void 0,0,1,1,0,0),On.bind(void 0,0,1,1,0,1),On.bind(void 0,0,1,1,0,2),On.bind(void 0,0,1,1,0,3),On.bind(void 0,0,1,1,1,0),On.bind(void 0,0,1,1,1,1),On.bind(void 0,0,1,1,1,2),On.bind(void 0,0,1,1,1,3),On.bind(void 0,1,0,0,0,0),On.bind(void 0,1,0,0,0,1),On.bind(void 0,1,0,0,0,2),On.bind(void 0,1,0,0,0,3),On.bind(void 0,1,0,0,1,0),On.bind(void 0,1,0,0,1,1),On.bind(void 0,1,0,0,1,2),On.bind(void 0,1,0,0,1,3),On.bind(void 0,1,0,1,0,0),On.bind(void 0,1,0,1,0,1),On.bind(void 0,1,0,1,0,2),On.bind(void 0,1,0,1,0,3),On.bind(void 0,1,0,1,1,0),On.bind(void 0,1,0,1,1,1),On.bind(void 0,1,0,1,1,2),On.bind(void 0,1,0,1,1,3),On.bind(void 0,1,1,0,0,0),On.bind(void 0,1,1,0,0,1),On.bind(void 0,1,1,0,0,2),On.bind(void 0,1,1,0,0,3),On.bind(void 0,1,1,0,1,0),On.bind(void 0,1,1,0,1,1),On.bind(void 0,1,1,0,1,2),On.bind(void 0,1,1,0,1,3),On.bind(void 0,1,1,1,0,0),On.bind(void 0,1,1,1,0,1),On.bind(void 0,1,1,1,0,2),On.bind(void 0,1,1,1,0,3),On.bind(void 0,1,1,1,1,0),On.bind(void 0,1,1,1,1,1),On.bind(void 0,1,1,1,1,2),On.bind(void 0,1,1,1,1,3)],Un.prototype.setState=function(e,t){return this.state[e]=t,this.activeState={key:e,value:this.state[e]},this.activeState},Un.prototype.getState=function(e){return this.state[e]||null},Fn.prototype.inboundIndex=function(e){return e>=0&&e<this.tokens.length},Fn.prototype.composeRUD=function(e){var t=this,n=e.map(function(e){return t[e[0]].apply(t,e.slice(1).concat(!0))}),r=function(e){return"object"==typeof e&&e.hasOwnProperty("FAIL")};if(n.every(r))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:n.filter(r)};this.dispatch("composeRUD",[n.filter(function(e){return!r(e)})])},Fn.prototype.replaceRange=function(e,t,n,r){t=null!==t?t:this.tokens.length;var a=n.every(function(e){return e instanceof Un});if(!isNaN(e)&&this.inboundIndex(e)&&a){var i=this.tokens.splice.apply(this.tokens,[e,t].concat(n));return r||this.dispatch("replaceToken",[e,t,n]),[i,n]}return{FAIL:"replaceRange: invalid tokens or startIndex."}},Fn.prototype.replaceToken=function(e,t,n){if(!isNaN(e)&&this.inboundIndex(e)&&t instanceof Un){var r=this.tokens.splice(e,1,t);return n||this.dispatch("replaceToken",[e,t]),[r[0],t]}return{FAIL:"replaceToken: invalid token or index."}},Fn.prototype.removeRange=function(e,t,n){t=isNaN(t)?this.tokens.length:t;var r=this.tokens.splice(e,t);return n||this.dispatch("removeRange",[r,e,t]),r},Fn.prototype.removeToken=function(e,t){if(!isNaN(e)&&this.inboundIndex(e)){var n=this.tokens.splice(e,1);return t||this.dispatch("removeToken",[n,e]),n}return{FAIL:"removeToken: invalid token index."}},Fn.prototype.insertToken=function(e,t,n){return e.every(function(e){return e instanceof Un})?(this.tokens.splice.apply(this.tokens,[t,0].concat(e)),n||this.dispatch("insertToken",[e,t]),e):{FAIL:"insertToken: invalid token(s)."}},Fn.prototype.registerModifier=function(e,t,n){this.events.newToken.subscribe(function(r,a){var i=[r,a],o=[r,a];if(null===t||!0===t.apply(this,i)){var s=n.apply(this,o);r.setState(e,s)}}),this.registeredModifiers.push(e)},An.prototype.subscribe=function(e){return"function"==typeof e?this.subscribers.push(e)-1:{FAIL:"invalid '"+this.eventId+"' event handler"}},An.prototype.unsubscribe=function(e){this.subscribers.splice(e,1)},Rn.prototype.setCurrentIndex=function(e){this.index=e,this.current=this.context[e],this.backtrack=this.context.slice(0,e),this.lookahead=this.context.slice(e+1)},Rn.prototype.get=function(e){switch(!0){case 0===e:return this.current;case e<0&&Math.abs(e)<=this.backtrack.length:return this.backtrack.slice(e)[0];case e>0&&e<=this.lookahead.length:return this.lookahead[e-1];default:return null}},Fn.prototype.rangeToText=function(e){if(e instanceof Ln)return this.getRangeTokens(e).map(function(e){return e.char}).join("")},Fn.prototype.getText=function(){return this.tokens.map(function(e){return e.char}).join("")},Fn.prototype.getContext=function(e){var t=this.registeredContexts[e];return t||null},Fn.prototype.on=function(e,t){var n=this.events[e];return n?n.subscribe(t):null},Fn.prototype.dispatch=function(e,t){var n=this,r=this.events[e];r instanceof An&&r.subscribers.forEach(function(e){e.apply(n,t||[])})},Fn.prototype.registerContextChecker=function(e,t,n){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 n)return{FAIL:"missing context end check."};var r=new Dn(e,t,n);return this.registeredContexts[e]=r,this.contextCheckers.push(r),r},Fn.prototype.getRangeTokens=function(e){var t=e.startIndex+e.endOffset;return[].concat(this.tokens.slice(e.startIndex,t))},Fn.prototype.getContextRanges=function(e){var t=this.getContext(e);return t?t.ranges:{FAIL:"context checker '"+e+"' is not registered."}},Fn.prototype.resetContextsRanges=function(){var e=this.registeredContexts;for(var t in e){if(e.hasOwnProperty(t))e[t].ranges=[]}},Fn.prototype.updateContextsRanges=function(){this.resetContextsRanges();for(var e=this.tokens.map(function(e){return e.char}),t=0;t<e.length;t++){var n=new Rn(e,t);this.runContextCheck(n)}this.dispatch("updateContextsRanges",[this.registeredContexts])},Fn.prototype.setEndOffset=function(e,t){var n=new Ln(this.getContext(t).openRange.startIndex,e,t),r=this.getContext(t).ranges;return n.rangeId=t+"."+r.length,r.push(n),this.getContext(t).openRange=null,n},Fn.prototype.runContextCheck=function(e){var t=this,n=e.index;this.contextCheckers.forEach(function(r){var a=r.contextName,i=t.getContext(a).openRange;if(!i&&r.checkStart(e)&&(i=new Ln(n,null,a),t.getContext(a).openRange=i,t.dispatch("contextStart",[a,n])),i&&r.checkEnd(e)){var o=n-i.startIndex+1,s=t.setEndOffset(o,a);t.dispatch("contextEnd",[a,s])}})},Fn.prototype.tokenize=function(e){this.tokens=[],this.resetContextsRanges();var t=Array.from(e);this.dispatch("start");for(var n=0;n<t.length;n++){var r=t[n],a=new Rn(t,n);this.dispatch("next",[a]),this.runContextCheck(a);var i=new Un(r);this.tokens.push(i),this.dispatch("newToken",[i,a])}return this.dispatch("end",[this.tokens]),this.tokens},Bn.prototype.getDefaultScriptFeaturesIndexes=function(){for(var e=this.font.tables.gsub.scripts,t=0;t<e.length;t++){var n=e[t];if("DFLT"===n.tag)return n.script.defaultLangSys.featureIndexes}return[]},Bn.prototype.getScriptFeaturesIndexes=function(e){if(!this.font.tables.gsub)return[];if(!e)return this.getDefaultScriptFeaturesIndexes();for(var t=this.font.tables.gsub.scripts,n=0;n<t.length;n++){var r=t[n];if(r.tag===e&&r.script.defaultLangSys)return r.script.defaultLangSys.featureIndexes;var a=r.langSysRecords;if(a)for(var i=0;i<a.length;i++){var o=a[i];if(o.tag===e)return o.langSys.featureIndexes}}return this.getDefaultScriptFeaturesIndexes()},Bn.prototype.mapTagsToFeatures=function(e,t){for(var n={},r=0;r<e.length;r++){var a=e[r].tag,i=e[r].feature;n[a]=i}this.features[t].tags=n},Bn.prototype.getScriptFeatures=function(e){var t=this.features[e];if(this.features.hasOwnProperty(e))return t;var n=this.getScriptFeaturesIndexes(e);if(!n)return null;var r=this.font.tables.gsub;return t=n.map(function(e){return r.features[e]}),this.features[e]=t,this.mapTagsToFeatures(t,e),t},Bn.prototype.getSubstitutionType=function(e,t){return e.lookupType.toString()+t.substFormat.toString()},Bn.prototype.getLookupMethod=function(e,t){var n=this;switch(this.getSubstitutionType(e,t)){case"11":return function(e){return function(e,t){return-1===Gn(e,t.coverage)?null:e+t.deltaGlyphId}.apply(n,[e,t])};case"12":return function(e){return function(e,t){var n=Gn(e,t.coverage);return-1===n?null:t.substitute[n]}.apply(n,[e,t])};case"63":return function(e){return function(e,t){var n=t.inputCoverage.length+t.lookaheadCoverage.length+t.backtrackCoverage.length;if(e.context.length<n)return[];var r=Hn(t.inputCoverage,e);if(-1===r)return[];var a=t.inputCoverage.length-1;if(e.lookahead.length<t.lookaheadCoverage.length)return[];for(var i=e.lookahead.slice(a);i.length&&Mn(i[0].char);)i.shift();var o=new Rn(i,0),s=Hn(t.lookaheadCoverage,o),l=[].concat(e.backtrack);for(l.reverse();l.length&&Mn(l[0].char);)l.shift();if(l.length<t.backtrackCoverage.length)return[];var u=new Rn(l,0),p=Hn(t.backtrackCoverage,u),c=[];if(r.length===t.inputCoverage.length&&s.length===t.lookaheadCoverage.length&&p.length===t.backtrackCoverage.length)for(var f=0;f<t.lookupRecords.length;f++)for(var h=t.lookupRecords[f].lookupListIndex,d=this.getLookupByIndex(h),g=0;g<d.subtables.length;g++){var v=d.subtables[g],m=this.getLookupMethod(d,v);if("12"===this.getSubstitutionType(d,v))for(var y=0;y<r.length;y++){var b=m(e.get(y));b&&c.push(b)}}return c}.apply(n,[e,t])};case"41":return function(e){return function(e,t){var n,r=Gn(e.current,t.coverage);if(-1===r)return null;for(var a=t.ligatureSets[r],i=0;i<a.length;i++){n=a[i];for(var o=0;o<n.components.length&&e.lookahead[o]===n.components[o];o++)if(o===n.components.length-1)return n}return null}.apply(n,[e,t])};case"21":return function(e){return function(e,t){var n=Gn(e,t.coverage);return-1===n?null:t.sequences[n]}.apply(n,[e,t])};default:throw new Error("lookupType: "+e.lookupType+" - substFormat: "+t.substFormat+" is not yet supported")}},Bn.prototype.lookupFeature=function(e){var t=e.contextParams,n=t.index,r=this.getFeature({tag:e.tag,script:e.script});if(!r)return new Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+e.tag+"' for script '"+e.script+"'.");for(var a=this.getFeatureLookups(r),i=[].concat(t.context),o=0;o<a.length;o++)for(var s=a[o],l=this.getLookupSubtables(s),u=0;u<l.length;u++){var p=l[u],c=this.getSubstitutionType(s,p),f=this.getLookupMethod(s,p),h=void 0;switch(c){case"11":(h=f(t.current))&&i.splice(n,1,new _n({id:11,tag:e.tag,substitution:h}));break;case"12":(h=f(t.current))&&i.splice(n,1,new _n({id:12,tag:e.tag,substitution:h}));break;case"63":h=f(t),Array.isArray(h)&&h.length&&i.splice(n,1,new _n({id:63,tag:e.tag,substitution:h}));break;case"41":(h=f(t))&&i.splice(n,1,new _n({id:41,tag:e.tag,substitution:h}));break;case"21":(h=f(t.current))&&i.splice(n,1,new _n({id:21,tag:e.tag,substitution:h}))}t=new Rn(i,n),Array.isArray(h)&&!h.length||(h=null)}return i.length?i:null},Bn.prototype.supports=function(e){if(!e.script)return!1;this.getScriptFeatures(e.script);var t=this.features.hasOwnProperty(e.script);if(!e.tag)return t;var n=this.features[e.script].some(function(t){return t.tag===e.tag});return t&&n},Bn.prototype.getLookupSubtables=function(e){return e.subtables||null},Bn.prototype.getLookupByIndex=function(e){return this.font.tables.gsub.lookups[e]||null},Bn.prototype.getFeatureLookups=function(e){return e.lookupListIndexes.map(this.getLookupByIndex.bind(this))},Bn.prototype.getFeature=function(e){if(!this.font)return{FAIL:"No font was found"};this.features.hasOwnProperty(e.script)||this.getScriptFeatures(e.script);var t=this.features[e.script];return t?t.tags[e.tag]?this.features[e.script].tags[e.tag]:null:{FAIL:"No feature for script "+e.script}};var jn={startCheck:function(e){var t=e.current,n=e.get(-1);return null===n&&Nn(t)||!Nn(n)&&Nn(t)},endCheck:function(e){var t=e.get(1);return null===t||!Nn(t)}};var zn={startCheck:function(e){var t=e.current,n=e.get(-1);return(Nn(t)||Mn(t))&&!Nn(n)},endCheck:function(e){var t=e.get(1);switch(!0){case null===t:return!0;case!Nn(t)&&!Mn(t):var n=/\s/.test(t);if(!n)return!0;if(n&&!e.lookahead.some(function(e){return Nn(e)||Mn(e)}))return!0;break;default:return!1}}};var qn={11:function(e,t,n){t[n].setState(e.tag,e.substitution)},12:function(e,t,n){t[n].setState(e.tag,e.substitution)},63:function(e,t,n){e.substitution.forEach(function(r,a){t[n+a].setState(e.tag,r)})},41:function(e,t,n){var r=t[n];r.setState(e.tag,e.substitution.ligGlyph);for(var a=e.substitution.components.length,i=0;i<a;i++)(r=t[n+i+1]).setState("deleted",!0)}};function Wn(e,t,n){e instanceof _n&&qn[e.id](e,t,n)}function Xn(e){var t=this,n=this.featuresTags.arab,r=this.tokenizer.getRangeTokens(e);if(1!==r.length){var a=new Rn(r.map(function(e){return e.getState("glyphIndex")}),0),i=new Rn(r.map(function(e){return e.char}),0);r.forEach(function(e,o){if(!Mn(e.char)){a.setCurrentIndex(o),i.setCurrentIndex(o);var s,l=0;switch(function(e){for(var t=[].concat(e.backtrack),n=t.length-1;n>=0;n--){var r=t[n],a=In(r),i=Mn(r);if(!a&&!i)return!0;if(a)return!1}return!1}(i)&&(l|=1),function(e){if(In(e.current))return!1;for(var t=0;t<e.lookahead.length;t++)if(!Mn(e.lookahead[t]))return!0;return!1}(i)&&(l|=2),l){case 1:s="fina";break;case 2:s="init";break;case 3:s="medi"}if(-1!==n.indexOf(s)){var u=t.query.lookupFeature({tag:s,script:"arab",contextParams:a});if(u instanceof Error)return console.info(u.message);u.forEach(function(e,t){e instanceof _n&&(Wn(e,r,t),a.context[t]=e.substitution)})}}})}}function Vn(e,t){return new Rn(e.map(function(e){return e.activeState.value}),t||0)}var $n={startCheck:function(e){var t=e.current,n=e.get(-1);return null===n&&Pn(t)||!Pn(n)&&Pn(t)},endCheck:function(e){var t=e.get(1);return null===t||!Pn(t)}};function Yn(e,t){return new Rn(e.map(function(e){return e.activeState.value}),t||0)}function Zn(e){this.baseDir=e||"ltr",this.tokenizer=new Fn,this.featuresTags={}}function Kn(e){var t=this.contextChecks[e+"Check"];return this.tokenizer.registerContextChecker(e,t.startCheck,t.endCheck)}function Jn(){if(-1===this.tokenizer.registeredModifiers.indexOf("glyphIndex"))throw new Error("glyphIndex modifier is required to apply arabic presentation features.")}function Qn(){var e=this;this.featuresTags.hasOwnProperty("arab")&&(-1!==this.featuresTags.arab.indexOf("rlig")&&(Jn.call(this),this.tokenizer.getContextRanges("arabicWord").forEach(function(t){(function(e){var t=this,n=this.tokenizer.getRangeTokens(e),r=Vn(n);r.context.forEach(function(e,a){r.setCurrentIndex(a);var i=t.query.lookupFeature({tag:"rlig",script:"arab",contextParams:r});i.length&&(i.forEach(function(e){return Wn(e,n,a)}),r=Vn(n))})}).call(e,t)})))}function er(){var e=this;this.featuresTags.hasOwnProperty("latn")&&(-1!==this.featuresTags.latn.indexOf("liga")&&(Jn.call(this),this.tokenizer.getContextRanges("latinWord").forEach(function(t){(function(e){var t=this,n=this.tokenizer.getRangeTokens(e),r=Yn(n);r.context.forEach(function(e,a){r.setCurrentIndex(a);var i=t.query.lookupFeature({tag:"liga",script:"latn",contextParams:r});i.length&&(i.forEach(function(e){return Wn(e,n,a)}),r=Yn(n))})}).call(e,t)})))}function tr(e){(e=e||{}).empty||(Dt(e.familyName,"When creating a new Font object, familyName is required."),Dt(e.styleName,"When creating a new Font object, styleName is required."),Dt(e.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),Dt(e.ascender,"When creating a new Font object, ascender is required."),Dt(e.descender,"When creating a new Font object, descender is required."),Dt(e.descender<0,"Descender should be negative (e.g. -512)."),this.names={fontFamily:{en:e.familyName||" "},fontSubfamily:{en:e.styleName||" "},fullName:{en:e.fullName||e.familyName+" "+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\s/g,"")},designer:{en:e.designer||" "},designerURL:{en:e.designerURL||" "},manufacturer:{en:e.manufacturer||" "},manufacturerURL:{en:e.manufacturerURL||" "},license:{en:e.license||" "},licenseURL:{en:e.licenseURL||" "},version:{en:e.version||"Version 0.1"},description:{en:e.description||" "},copyright:{en:e.copyright||" "},trademark:{en:e.trademark||" "}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new Te.GlyphSet(this,e.glyphs||[]),this.encoding=new he(this),this.position=new Et(this),this.substitution=new Ct(this),this.tables=this.tables||{},this._push=null,this._hmtxTableData={},Object.defineProperty(this,"hinting",{get:function(){return this._hinting?this._hinting:"truetype"===this.outlinesFormat?this._hinting=new Ht(this):void 0}})}function nr(e,t){var n=JSON.stringify(e),r=256;for(var a in t){var i=parseInt(a);if(i&&!(i<256)){if(JSON.stringify(t[a])===n)return i;r<=i&&(r=i+1)}}return t[r]=e,r}function rr(e,t,n){var r=nr(t.name,n);return[{name:"tag_"+e,type:"TAG",value:t.tag},{name:"minValue_"+e,type:"FIXED",value:t.minValue<<16},{name:"defaultValue_"+e,type:"FIXED",value:t.defaultValue<<16},{name:"maxValue_"+e,type:"FIXED",value:t.maxValue<<16},{name:"flags_"+e,type:"USHORT",value:0},{name:"nameID_"+e,type:"USHORT",value:r}]}function ar(e,t,n){var r={},a=new oe.Parser(e,t);return r.tag=a.parseTag(),r.minValue=a.parseFixed(),r.defaultValue=a.parseFixed(),r.maxValue=a.parseFixed(),a.skip("uShort",1),r.name=n[a.parseUShort()]||{},r}function ir(e,t,n,r){for(var a=[{name:"nameID_"+e,type:"USHORT",value:nr(t.name,r)},{name:"flags_"+e,type:"USHORT",value:0}],i=0;i<n.length;++i){var o=n[i].tag;a.push({name:"axis_"+e+" "+o,type:"FIXED",value:t.coordinates[o]<<16})}return a}function or(e,t,n,r){var a={},i=new oe.Parser(e,t);a.name=r[i.parseUShort()]||{},i.skip("uShort",1),a.coordinates={};for(var o=0;o<n.length;++o)a.coordinates[n[o].tag]=i.parseFixed();return a}Zn.prototype.setText=function(e){this.text=e},Zn.prototype.contextChecks={latinWordCheck:$n,arabicWordCheck:jn,arabicSentenceCheck:zn},Zn.prototype.registerFeatures=function(e,t){var n=this,r=t.filter(function(t){return n.query.supports({script:e,tag:t})});this.featuresTags.hasOwnProperty(e)?this.featuresTags[e]=this.featuresTags[e].concat(r):this.featuresTags[e]=r},Zn.prototype.applyFeatures=function(e,t){if(!e)throw new Error("No valid font was provided to apply features");this.query||(this.query=new Bn(e));for(var n=0;n<t.length;n++){var r=t[n];this.query.supports({script:r.script})&&this.registerFeatures(r.script,r.tags)}},Zn.prototype.registerModifier=function(e,t,n){this.tokenizer.registerModifier(e,t,n)},Zn.prototype.checkContextReady=function(e){return!!this.tokenizer.getContext(e)},Zn.prototype.applyFeaturesToContexts=function(){this.checkContextReady("arabicWord")&&(function(){var e=this;this.featuresTags.hasOwnProperty("arab")&&(Jn.call(this),this.tokenizer.getContextRanges("arabicWord").forEach(function(t){Xn.call(e,t)}))}.call(this),Qn.call(this)),this.checkContextReady("latinWord")&&er.call(this),this.checkContextReady("arabicSentence")&&function(){var e=this;this.tokenizer.getContextRanges("arabicSentence").forEach(function(t){var n=e.tokenizer.getRangeTokens(t);e.tokenizer.replaceRange(t.startIndex,t.endOffset,n.reverse())})}.call(this)},Zn.prototype.processText=function(e){this.text&&this.text===e||(this.setText(e),function(){return Kn.call(this,"latinWord"),Kn.call(this,"arabicWord"),Kn.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}.call(this),this.applyFeaturesToContexts())},Zn.prototype.getBidiText=function(e){return this.processText(e),this.tokenizer.getText()},Zn.prototype.getTextGlyphs=function(e){this.processText(e);for(var t=[],n=0;n<this.tokenizer.tokens.length;n++){var r=this.tokenizer.tokens[n];if(!r.state.deleted){var a=r.activeState.value;t.push(Array.isArray(a)?a[0]:a)}}return t},tr.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},tr.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},tr.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),n=this.glyphs.get(t);return n||(n=this.glyphs.get(0)),n},tr.prototype.updateFeatures=function(e){return this.defaultRenderOptions.features.map(function(t){return"latn"===t.script?{script:"latn",tags:t.tags.filter(function(t){return e[t]})}:t})},tr.prototype.stringToGlyphs=function(e,t){var n=this,r=new Zn;r.registerModifier("glyphIndex",null,function(e){return n.charToGlyphIndex(e.char)});var a=t?this.updateFeatures(t.features):this.defaultRenderOptions.features;r.applyFeatures(this,a);for(var i=r.getTextGlyphs(e),o=i.length,s=new Array(o),l=this.glyphs.get(0),u=0;u<o;u+=1)s[u]=n.glyphs.get(i[u])||l;return s},tr.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},tr.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),n=this.glyphs.get(t);return n||(n=this.glyphs.get(0)),n},tr.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):""},tr.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var n=this.position.defaultKerningTables;return n?this.position.getKerningValue(n,e,t):this.kerningPairs[e+","+t]||0},tr.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]},tr.prototype.forEachGlyph=function(e,t,n,r,a,i){t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:72,a=Object.assign({},this.defaultRenderOptions,a);var o,s=1/this.unitsPerEm*r,l=this.stringToGlyphs(e,a);if(a.kerning){var u=a.script||this.position.getDefaultScriptName();o=this.position.getKerningTables(u,a.language)}for(var p=0;p<l.length;p+=1){var c=l[p];const e=c.advanceWidth;if(i.call(this,c,t,n,r,a),e&&(c.advanceWidth=e,t+=c.advanceWidth*s),a.kerning&&p<l.length-1)t+=(o?this.position.getKerningValue(o,c.index,l[p+1].index):this.getKerningValue(c,l[p+1]))*s;a.letterSpacing?t+=a.letterSpacing*r:a.tracking&&(t+=a.tracking/1e3*r)}return t},tr.prototype.getPath=function(e,t,n,r,a){var i=new U;return this.forEachGlyph(e,t,n,r,a,function(e,t,n,r){var o=e.getPath(t,n,r,a,this);i.extend(o)}),i},tr.prototype.getPaths=function(e,t,n,r,a){var i=[];return this.forEachGlyph(e,t,n,r,a,function(e,t,n,r){var o=e.getPath(t,n,r,a,this);i.push(o)}),i},tr.prototype.getAdvanceWidth=function(e,t,n){return this.forEachGlyph(e,0,0,t,n,function(){})},tr.prototype.draw=function(e,t,n,r,a,i){this.getPath(t,n,r,a,i).draw(e)},tr.prototype.drawPoints=function(e,t,n,r,a,i){this.forEachGlyph(t,n,r,a,i,function(t,n,r,a){t.drawPoints(e,n,r,a)})},tr.prototype.drawMetrics=function(e,t,n,r,a,i){this.forEachGlyph(t,n,r,a,i,function(t,n,r,a){t.drawMetrics(e,n,r,a)})},tr.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},tr.prototype.validate=function(){var e=this;function t(t){var n=e.getEnglishName(t);n&&n.trim().length}t("fontFamily"),t("weightName"),t("manufacturer"),t("copyright"),t("version"),this.unitsPerEm},tr.prototype.toTables=function(){return xt.fontToTable(this)},tr.prototype.toBuffer=function(){return console.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."),this.toArrayBuffer()},tr.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e[r];return t},tr.prototype.download=function(e){var t=this.getEnglishName("fontFamily"),n=this.getEnglishName("fontSubfamily");e=e||t.replace(/\s/g,"")+"-"+n+".otf";var r=this.toArrayBuffer();if("undefined"!=typeof window)if(window.URL=window.URL||window.webkitURL,window.URL){var a=new DataView(r),i=new Blob([a],{type:"font/opentype"}),o=document.createElement("a");o.href=window.URL.createObjectURL(i),o.download=e;var s=document.createEvent("MouseEvents");s.initEvent("click",!0,!1),o.dispatchEvent(s)}else console.warn("Font file could not be downloaded. Try using a different browser.");else{var l=require("fs"),u=function(e){for(var t=new Buffer(e.byteLength),n=new Uint8Array(e),r=0;r<t.length;++r)t[r]=n[r];return t}(r);l.writeFileSync(e,u)}},tr.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},tr.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},tr.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var sr={make:function(e,t){var n=new J.Table("fvar",[{name:"version",type:"ULONG",value:65536},{name:"offsetToData",type:"USHORT",value:0},{name:"countSizePairs",type:"USHORT",value:2},{name:"axisCount",type:"USHORT",value:e.axes.length},{name:"axisSize",type:"USHORT",value:20},{name:"instanceCount",type:"USHORT",value:e.instances.length},{name:"instanceSize",type:"USHORT",value:4+4*e.axes.length}]);n.offsetToData=n.sizeOf();for(var r=0;r<e.axes.length;r++)n.fields=n.fields.concat(rr(r,e.axes[r],t));for(var a=0;a<e.instances.length;a++)n.fields=n.fields.concat(ir(a,e.instances[a],e.axes,t));return n},parse:function(e,t,n){var r=new oe.Parser(e,t),a=r.parseULong();R.argument(65536===a,"Unsupported fvar table version.");var i=r.parseOffset16();r.skip("uShort",1);for(var o=r.parseUShort(),s=r.parseUShort(),l=r.parseUShort(),u=r.parseUShort(),p=[],c=0;c<o;c++)p.push(ar(e,t+i+c*s,n));for(var f=[],h=t+i+o*s,d=0;d<l;d++)f.push(or(e,h+d*u,p,n));return{axes:p,instances:f}}},lr=new Array(10);lr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(ae.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(ae.coverage),values:this.parseValueRecordList()}:void R.assert(!1,"0x"+e.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")},lr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();R.assert(1===t||2===t,"0x"+e.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var n=this.parsePointer(ae.coverage),r=this.parseUShort(),a=this.parseUShort();if(1===t)return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:a,pairSets:this.parseList(ae.pointer(ae.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(r),value2:this.parseValueRecord(a)}})))};if(2===t){var i=this.parsePointer(ae.classDef),o=this.parsePointer(ae.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:a,classDef1:i,classDef2:o,class1Count:s,class2Count:l,classRecords:this.parseList(s,ae.list(l,function(){return{value1:this.parseValueRecord(r),value2:this.parseValueRecord(a)}}))}}},lr[3]=function(){return{error:"GPOS Lookup 3 not supported"}},lr[4]=function(){return{error:"GPOS Lookup 4 not supported"}},lr[5]=function(){return{error:"GPOS Lookup 5 not supported"}},lr[6]=function(){return{error:"GPOS Lookup 6 not supported"}},lr[7]=function(){return{error:"GPOS Lookup 7 not supported"}},lr[8]=function(){return{error:"GPOS Lookup 8 not supported"}},lr[9]=function(){return{error:"GPOS Lookup 9 not supported"}};var ur=new Array(10);var pr={parse:function(e,t){var n=new ae(e,t=t||0),r=n.parseVersion(1);return R.argument(1===r||1.1===r,"Unsupported GPOS table version "+r),1===r?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(lr)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(lr),variations:n.parseFeatureVariationsList()}},make:function(e){return new J.Table("GPOS",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new J.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new J.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new J.LookupList(e.lookups,ur)}])}};var cr={parse:function(e,t){var n=new oe.Parser(e,t),r=n.parseUShort();if(0===r)return function(e){var t={};e.skip("uShort");var n=e.parseUShort();R.argument(0===n,"Unsupported kern sub-table version."),e.skip("uShort",2);var r=e.parseUShort();e.skip("uShort",3);for(var a=0;a<r;a+=1){var i=e.parseUShort(),o=e.parseUShort(),s=e.parseShort();t[i+","+o]=s}return t}(n);if(1===r)return function(e){var t={};e.skip("uShort"),e.parseULong()>1&&console.warn("Only the first kern subtable is supported."),e.skip("uLong");var n=255&e.parseUShort();if(e.skip("uShort"),0===n){var r=e.parseUShort();e.skip("uShort",3);for(var a=0;a<r;a+=1){var i=e.parseUShort(),o=e.parseUShort(),s=e.parseShort();t[i+","+o]=s}}return t}(n);throw new Error("Unsupported kern table version ("+r+").")}};var fr={parse:function(e,t,n,r){for(var a=new oe.Parser(e,t),i=r?a.parseUShort:a.parseULong,o=[],s=0;s<n+1;s+=1){var l=i.call(a);r&&(l*=2),o.push(l)}return o}};function hr(e,t){require("fs").readFile(e,function(e,n){if(e)return t(e.message);t(null,Lt(n))})}function dr(e,t){var n=new XMLHttpRequest;n.open("get",e,!0),n.responseType="arraybuffer",n.onload=function(){return n.response?t(null,n.response):t("Font could not be loaded: "+n.statusText)},n.onerror=function(){t("Font could not be loaded")},n.send()}function gr(e,t){for(var n=[],r=12,a=0;a<t;a+=1){var i=oe.getTag(e,r),o=oe.getULong(e,r+4),s=oe.getULong(e,r+8),l=oe.getULong(e,r+12);n.push({tag:i,checksum:o,offset:s,length:l,compression:!1}),r+=16}return n}function vr(e,t){if("WOFF"===t.compression){var n=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),r=new Uint8Array(t.length);if(E(n,r),r.byteLength!==t.length)throw new Error("Decompression error: "+t.tag+" decompressed length doesn't match recorded length");return{data:new DataView(r.buffer,0),offset:0}}return{data:e,offset:t.offset}}function mr(e,t){var n,r;t=null==t?{}:t;var a,i,o,s,l,u,p,c,f,h,d,g,v=new tr({empty:!0}),m=new DataView(e,0),y=[],b=oe.getTag(m,0);if(b===String.fromCharCode(0,1,0,0)||"true"===b||"typ1"===b)v.outlinesFormat="truetype",y=gr(m,a=oe.getUShort(m,4));else if("OTTO"===b)v.outlinesFormat="cff",y=gr(m,a=oe.getUShort(m,4));else{if("wOFF"!==b)throw new Error("Unsupported OpenType signature "+b);var x=oe.getTag(m,4);if(x===String.fromCharCode(0,1,0,0))v.outlinesFormat="truetype";else{if("OTTO"!==x)throw new Error("Unsupported OpenType flavor "+b);v.outlinesFormat="cff"}y=function(e,t){for(var n=[],r=44,a=0;a<t;a+=1){var i=oe.getTag(e,r),o=oe.getULong(e,r+4),s=oe.getULong(e,r+8),l=oe.getULong(e,r+12),u=void 0;u=s<l&&"WOFF",n.push({tag:i,offset:o,compression:u,compressedLength:s,length:l}),r+=20}return n}(m,a=oe.getUShort(m,12))}for(var S=0;S<a;S+=1){var T=y[S],w=void 0;switch(T.tag){case"cmap":w=vr(m,T),v.tables.cmap=le.parse(w.data,w.offset),v.encoding=new de(v.tables.cmap);break;case"cvt ":w=vr(m,T),g=new oe.Parser(w.data,w.offset),v.tables.cvt=g.parseShortList(T.length/2);break;case"fvar":o=T;break;case"fpgm":w=vr(m,T),g=new oe.Parser(w.data,w.offset),v.tables.fpgm=g.parseByteList(T.length);break;case"head":w=vr(m,T),v.tables.head=je.parse(w.data,w.offset),v.unitsPerEm=v.tables.head.unitsPerEm,n=v.tables.head.indexToLocFormat;break;case"hhea":w=vr(m,T),v.tables.hhea=ze.parse(w.data,w.offset),v.ascender=v.tables.hhea.ascender,v.descender=v.tables.hhea.descender,v.numberOfHMetrics=v.tables.hhea.numberOfHMetrics;break;case"hmtx":p=T;break;case"ltag":w=vr(m,T),r=We.parse(w.data,w.offset);break;case"maxp":w=vr(m,T),v.tables.maxp=Xe.parse(w.data,w.offset),v.numGlyphs=v.tables.maxp.numGlyphs;break;case"name":h=T;break;case"OS/2":w=vr(m,T),v.tables.os2=st.parse(w.data,w.offset);break;case"post":w=vr(m,T),v.tables.post=lt.parse(w.data,w.offset),v.glyphNames=new ve(v.tables.post);break;case"prep":w=vr(m,T),g=new oe.Parser(w.data,w.offset),v.tables.prep=g.parseByteList(T.length);break;case"glyf":s=T;break;case"loca":f=T;break;case"CFF ":i=T;break;case"kern":c=T;break;case"GPOS":l=T;break;case"GSUB":u=T;break;case"meta":d=T}}var k=vr(m,h);if(v.tables.name=it.parse(k.data,k.offset,r),v.names=v.tables.name,s&&f){var E=0===n,C=vr(m,f),O=fr.parse(C.data,C.offset,v.numGlyphs,E),U=vr(m,s);v.glyphs=Gt.parse(U.data,U.offset,O,v,t)}else{if(!i)throw new Error("Font doesn't contain TrueType or CFF outlines.");var L=vr(m,i);He.parse(L.data,L.offset,v,t)}var D=vr(m,p);if(qe.parse(v,D.data,D.offset,v.numberOfHMetrics,v.numGlyphs,v.glyphs,t),me(v,t),c){var R=vr(m,c);v.kerningPairs=cr.parse(R.data,R.offset)}else v.kerningPairs={};if(l){var A=vr(m,l);v.tables.gpos=pr.parse(A.data,A.offset),v.position.init()}if(u){var F=vr(m,u);v.tables.gsub=ft.parse(F.data,F.offset)}if(o){var N=vr(m,o);v.tables.fvar=sr.parse(N.data,N.offset,v.names)}if(d){var I=vr(m,d);v.tables.meta=ht.parse(I.data,I.offset),v.metas=v.tables.meta}return v}e.BoundingBox=O,e.Font=tr,e.Glyph=be,e.Path=U,e._parse=oe,e.load=function(e,t,n){var r="undefined"==typeof window?hr:dr;return new Promise(function(a){r(e,function(e,r){if(e)return t(e);var i;try{i=mr(r,n)}catch(e){return t(e,null)}if(t)return t(null,i);a(i)})})},e.loadSync=function(e,t){return mr(Lt(require("fs").readFileSync(e)),t)},e.parse=mr,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
1
|
+
var Zakeke,T;window.Logger={info:function(...e){void 0!==window&&-1!=window.location.href.indexOf("localhost")&&console.log.apply(window,e)},error:function(...e){console.error.apply(window,e)}},function(e){e.config={baseUrl:"https://portal.zakeke.com/",cloudFlareApiUrl:"https://zakeke-worker-prod.zakeke.workers.dev/api/",baseApiUrl:"https://api.zakeke.com/api/",tryOnApiUrl:"https://api.zakeke.com/api/",baseImagesUploadApiUrl:"https://api.zakeke.com/api/",baseImageTasksApiUrl:"https://api.zakeke.com/api/",baseImageGeneratePreviewApiUrl:"https://api.zakeke.com/api/",baseAdminUrl:"https://admin.zakeke.com/",apiHost:"https://api.zakeke.com/api/",graphqlUrl:"https://apollo.zakeke.com/graphql",baseScenesApiUrl:"https://api.zakeke.com/api/",imagesUploadApiHost:"api.zakeke.com",maxUploadSize:10485760,facebookAppID:"1157894994331979",instagramClientID:"1066407470424468",mazingSettings:{url:"https://glass.mazing.link/?customStyle=true"},banubaSettings:{url:"https://zakeke-demo.sites.banuba.net/test-frame/index.html",token:"jLr5ekMAhNnfID7hTIS92zRKfl6KoEI4M7W1GH3HmBnIrkvZ5UFkfyXBArfdDPJ+ruILLhDjOrIbQji4RQLoFqZ6zIvTZOOVAcdrM/qGgzdNiv1jLHq12mexlUOOm7mxDBeuccYFsN5AggiYDzhEQAD42AxMTvFOvMP+3tmO8h9yOzUbFjK4AlOFL0jWE703NrxoOfEsu93UfNvhgHjOZwMreVD8EO+/WUOGxi3S/RG6H6xvg9v7OZUCtoxZp2Pp2Hs/r+Id2/7WwqUx4N3+g75l5B1UwBsQv73urcNXlx4AeW+3p5opSq9L4TGg0+ZrRBvzffK5uUkZyaDTNmyca7Bxn4Xq9RAcNUtdijPckDB9Z1kGxCTsnEtYif1xElYpFcNf9gO6hX/24puAdiIFLPF9v/vwR469ACF9seIDMYd4kw=="},deepARSettings:{url:"https://vto.zakeke.com/",token:"d7c878a74e21f5a1d62644f8f70d451ce4e2656ea8088aaa225720c43f5f0dc956facb3fd4702c17"},damSettings:{analyticsUrl:"https://api.3dsuite.io/api/v1/rpc/3d-models/analytics-event"},avaibleLanguages:["it","en","es","fr","de","af","fa","sq","am","ar","hy","az","eu","bn","my","bs","bg","ca","cs","ny","zh","zh-TW","ko","co","hr","ku","da","he","et","fil","fi","gl","cy","ka","ja","jv","el","gu","ha","haw","hi","hmn","id","is","kn","kk","km","ky","lo","lv","lt","lb","mk","ml","ms","mg","mt","mi","mr","mn","ne","no","nb","nl","ps","pl","pt","pa","ro","ru","sm","sr","st","sn","sd","si","sk","sl","so","su","sv","sw","tg","tai","ta","tr","uk","hu","ur","uz","vi","xh","yi","yo","zu","nb"]}}(Zakeke||(Zakeke={})),function(e){e._=function(e,t){var n,r=null===(n=window.ZakekeTranslation)||void 0===n?void 0:n.statics.find(function(t){return t.original.toLowerCase()===e.toLowerCase()});return(null==r?void 0:r.localization)?null==r?void 0:r.localization:window.T2._(e,t)},e._d=function(e){var t,n,r;return null!==(r=null===(n=null===(t=window.ZakekeTranslation)||void 0===t?void 0:t.dynamics.find(function(t){return t.original.toLowerCase()===e.toLowerCase()}))||void 0===n?void 0:n.localization)&&void 0!==r?r:e}}(T||(T={}));var ArrayHelper,DateHelper,StringHelper,ValidationHelper,Pagination,Browser,Logger,BlobHelpers,ImageColorHelpers,__awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};!function(e){e.match=function(e,t){for(var n=0,r=e;n<r.length;n++){var a=r[n];if(-1==t.indexOf(a))return!1}return!0}}(ArrayHelper||(ArrayHelper={})),function(e){e.fromJsonToDate=function(e){if(null==e)return null;var t=/-?\d+/.exec(e)[0];return new Date(parseInt(t))}}(DateHelper||(DateHelper={})),function(e){function t(e,t,n){return"#"+((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)}e.padLeft=function(e,t,n){for(var r=e.toString(),a=0;a<t-r.length;a++)r=n+r;return r},e.padRight=function(e,t,n){for(var r=e.toString(),a=0;a<t-r.length;a++)r+=n;return r},e.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(e,t,n){return e.replace("{".concat(n,"}"),t)},e)},e.rgbToHex=t,e.hex2rgb=function(e){e=e.substring(1);var t=parseInt(e,16);return[t>>16&255,t>>8&255,t>>0&255]},e.rgbToHexArray=function(e){return t(e[0],e[1],e[2])},e.rgbCssToArray=function(e){if(!e.startsWith("rgb"))return[255,255,255];if(e.startsWith("rgba")){var t=e.substring(5,e.lastIndexOf(",")).split(",");return[parseInt(t[0]),parseInt(t[1]),parseInt(t[2])]}return t=e.substring(4,e.lastIndexOf(")")).split(","),[parseInt(t[0]),parseInt(t[1]),parseInt(t[2])]},e.rgbToHexCss=function(e){if(!e.startsWith("rgb"))return"#ffffff";if(e.startsWith("rgba")){var n=e.substring(5,e.lastIndexOf(",")).split(",");return t(parseInt(n[0]),parseInt(n[1]),parseInt(n[2]))}return n=e.substring(4,e.lastIndexOf(")")).split(","),t(parseInt(n[0]),parseInt(n[1]),parseInt(n[2]))}}(StringHelper||(StringHelper={})),function(e){e.EMAIL_REGEX=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,e.NFT_WALLET_ADDRESS_REGEX=/^0x[a-fA-F0-9]{40}$/,e.checkEmail=function(t){return e.EMAIL_REGEX.test(t)},e.checkNFTWalletAddress=function(t){return e.NFT_WALLET_ADDRESS_REGEX.test(t)}}(ValidationHelper||(ValidationHelper={})),function(e){e.nextPage=function(e){var t=/.*<(.*)>; rel="next".*/.exec(e);return t?t[1]:null}}(Pagination||(Pagination={})),function(e){e.openWindow=function(e,t,n){return window.open(e,"width="+t+",height="+n+";menubar=no,location=no,status=no,toolbar=no")}}(Browser||(Browser={})),function(e){e.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof window&&(-1==window.location.href.indexOf("localhost")&&-1==window.location.href.indexOf("test-portal.zakeke.com")||console.log.apply(window,e))},e.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof window&&console.error.apply(window,e)}}(Logger||(Logger={})),function(e){e.b64toBlob=function(e,t,n){t=t||"",n=n||512;for(var r=atob(e),a=[],i=0;i<r.length;i+=n){for(var o=r.slice(i,i+n),s=new Array(o.length),l=0;l<o.length;l++)s[l]=o.charCodeAt(l);var u=new Uint8Array(s);a.push(u)}return new Blob(a,{type:t})},e.blobTob64=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,new Promise(function(t){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.readAsDataURL(e)})]})})}}(BlobHelpers||(BlobHelpers={})),function(e){function t(e,t){var r=StringHelper.rgbCssToArray(e),a=StringHelper.rgbCssToArray(t),i=n(r),o=n(a),s=i[0]-o[0],l=i[1]-o[1],u=i[2]-o[2],p=Math.sqrt(i[1]*i[1]+i[2]*i[2]),c=p-Math.sqrt(o[1]*o[1]+o[2]*o[2]),f=l*l+u*u-c*c,h=s/1,d=c/(1+.045*p),g=(f=f<0?0:Math.sqrt(f))/(1+.015*p),v=h*h+d*d+g*g;return v<0?0:Math.sqrt(v)}function n(e){var t,n,r,a=e[0]/255,i=e[1]/255,o=e[2]/255;return n=(.2126*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)+.7152*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)+.0722*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92))/1,r=(.0193*a+.1192*i+.9505*o)/1.08883,t=(t=(.4124*a+.3576*i+.1805*o)/.95047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function r(e,t,n,r){var a=this;return new Promise(function(i,o){replaceColorLib.replace_color({image:e,colors:{type:"hex",targetColor:t,replaceColor:n},deltaE:r||2.3}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.getBufferAsync(e.getMIME())];case 1:return t=n.sent(),i(t),[2]}})})}).catch(function(e){console.log(e),o(e)})})}e.GetColorsFromImageB64=function(e,n,r,a){return __awaiter(this,void 0,void 0,function(){var i,o,s,l,u,p;return __generator(this,function(c){switch(c.label){case 0:return[4,rgbAsterLib.rgbAster(e,{scale:a||1})];case 1:for(i=c.sent(),o=[],s=r||10,l=0,i.forEach(function(e,t){e.color.startsWith("rgba")||(l+=e.count)}),u=function(e){if(100*i[e].count/l<=s||i[e].color.startsWith("rgba"))return"continue";var r=!0;o.length>0&&o.forEach(function(a,o){t(a,i[e].color)<n&&(r=!1)}),r&&o.push(i[e].color)},p=0;p<i.length;p++)u(p);return[2,o.map(function(e){return StringHelper.rgbToHexCss(e)})]}})})},e.GetColorsFromImageUrl=function(e,n,r,a){return __awaiter(this,void 0,void 0,function(){var i,o,s,l,u,p;return __generator(this,function(c){switch(c.label){case 0:return[4,rgbAsterLib.rgbAster(e,{scale:a||1})];case 1:for(i=c.sent(),o=[],s=r||10,l=0,i.forEach(function(e,t){e.color.startsWith("rgba")||(l+=e.count)}),u=function(e){if(100*i[e].count/l<=s||i[e].color.startsWith("rgba"))return"continue";var r=!0;o.length>0&&o.forEach(function(a,o){t(a,i[e].color)<n&&(r=!1)}),r&&o.push(i[e].color)},p=0;p<i.length;p++)u(p);return[2,o.map(function(e){return StringHelper.rgbToHexCss(e)})]}})})},e.ReplaceColorsIntoImage=function(e,t,n,a){return __awaiter(this,void 0,void 0,function(){var i,o;return __generator(this,function(s){switch(s.label){case 0:i=e,o=0,s.label=1;case 1:return o<t.length?[4,r(i,t[o],n[o%n.length],a)]:[3,4];case 2:i=s.sent(),s.label=3;case 3:return o++,[3,1];case 4:return[2,new Blob([i])]}})})}}(ImageColorHelpers||(ImageColorHelpers={})),function e(t,n,r){function a(o,s){if(!n[o]){if(!t[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(i)return i(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var p=n[o]={exports:{}};t[o][0].call(p.exports,function(e){var n=t[o][1][e];return a(n||e)},p,p.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)a(r[o]);return a}({1:[function(e,t,n){var r,a,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{a="function"==typeof clearTimeout?clearTimeout:s}catch(e){a=s}}();var u,p=[],c=!1,f=-1;function h(){c&&u&&(c=!1,u.length?p=u.concat(p):f=-1,p.length&&d())}function d(){if(!c){var e=l(h);c=!0;for(var t=p.length;t;){for(u=p,p=[];++f<t;)u&&u[f].run();f=-1,t=p.length}u=null,c=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===s||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];p.push(new g(e,t)),1!==p.length||c||l(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],2:[function(e,t,n){"use strict";var r=e("node-gettext");window.gt=window.gt||new r,window.T2=window.T2||{_:function(e,t){return window.gt.dgettext(t,e)}}},{"node-gettext":4}],3:[function(e,t,n){(function(e){var n="Expected a function",r="__lodash_hash_undefined__",a=1/0,i="[object Function]",o="[object GeneratorFunction]",s="[object Symbol]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,p=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,d="object"==typeof e&&e&&e.Object===Object&&e,g="object"==typeof self&&self&&self.Object===Object&&self,v=d||g||Function("return this")();var m,y=Array.prototype,b=Function.prototype,x=Object.prototype,S=v["__core-js_shared__"],T=(m=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",w=b.toString,k=x.hasOwnProperty,E=x.toString,C=RegExp("^"+w.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=v.Symbol,U=y.splice,L=G(v,"Map"),D=G(Object,"create"),R=O?O.prototype:void 0,A=R?R.toString:void 0;function F(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function N(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function I(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function M(e,t){for(var n,r,a=e.length;a--;)if((n=e[a][0])===(r=t)||n!=n&&r!=r)return a;return-1}function B(e,t){for(var n,r=0,a=(t=function(e,t){if(z(e))return!1;var n=typeof e;if("number"==n||"symbol"==n||"boolean"==n||null==e||X(e))return!0;return u.test(e)||!l.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:z(n=t)?n:H(n)).length;null!=e&&r<a;)e=e[j(t[r++])];return r&&r==a?e:void 0}function P(e){return!(!W(e)||(t=e,T&&T in t))&&(function(e){var t=W(e)?E.call(e):"";return t==i||t==o}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?C:h).test(function(e){if(null!=e){try{return w.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function _(e,t){var n,r,a=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function G(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return P(n)?n:void 0}F.prototype.clear=function(){this.__data__=D?D(null):{}},F.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},F.prototype.get=function(e){var t=this.__data__;if(D){var n=t[e];return n===r?void 0:n}return k.call(t,e)?t[e]:void 0},F.prototype.has=function(e){var t=this.__data__;return D?void 0!==t[e]:k.call(t,e)},F.prototype.set=function(e,t){return this.__data__[e]=D&&void 0===t?r:t,this},N.prototype.clear=function(){this.__data__=[]},N.prototype.delete=function(e){var t=this.__data__,n=M(t,e);return!(n<0||(n==t.length-1?t.pop():U.call(t,n,1),0))},N.prototype.get=function(e){var t=this.__data__,n=M(t,e);return n<0?void 0:t[n][1]},N.prototype.has=function(e){return M(this.__data__,e)>-1},N.prototype.set=function(e,t){var n=this.__data__,r=M(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},I.prototype.clear=function(){this.__data__={hash:new F,map:new(L||N),string:new F}},I.prototype.delete=function(e){return _(this,e).delete(e)},I.prototype.get=function(e){return _(this,e).get(e)},I.prototype.has=function(e){return _(this,e).has(e)},I.prototype.set=function(e,t){return _(this,e).set(e,t),this};var H=q(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(X(e))return A?A.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}(t);var n=[];return p.test(e)&&n.push(""),e.replace(c,function(e,t,r,a){n.push(r?a.replace(f,"$1"):t||e)}),n});function j(e){if("string"==typeof e||X(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}function q(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(n);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o),o};return r.cache=new(q.Cache||I),r}q.Cache=I;var z=Array.isArray;function W(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function X(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&E.call(e)==s}t.exports=function(e,t,n){var r=null==e?void 0:B(e,t);return void 0===r?n:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,t,n){(function(n){"use strict";var r=e("lodash.get"),a=e("./plurals");function i(e){e=e||{},this.catalogs={},this.locale="",this.domain="messages",this.listeners=[],"debug"in e?this.debug=!0===e.debug:void 0!==n&&n.env&&n.env.NODE_ENV?this.debug="production"!==n.env.NODE_ENV:this.debug=!1}t.exports=i,i.prototype.on=function(e,t){this.listeners.push({eventName:e,callback:t})},i.prototype.off=function(e,t){this.listeners=this.listeners.filter(function(n){return!1==(n.eventName===e&&n.callback===t)})},i.prototype.emit=function(e,t){for(var n=0;n<this.listeners.length;n++){var r=this.listeners[n];r.eventName===e&&r.callback(t)}},i.prototype.warn=function(e){this.debug&&console.warn(e),this.emit("error",e)},i.prototype.addTranslations=function(e,t,n){this.catalogs[e]||(this.catalogs[e]={}),this.catalogs[e][t]=n},i.prototype.setLocale=function(e){"string"==typeof e?(""===e.trim()&&this.warn("You called setLocale() with an empty value, which makes little sense."),this.catalogs[e]||this.warn('You called setLocale() with "'+e+'", but no translations for that locale has been added.'),this.locale=e):this.warn("You called setLocale() with an argument of type "+typeof e+". The locale must be a string.")},i.prototype.setTextDomain=function(e){"string"==typeof e?(""===e.trim()&&this.warn("You called setTextDomain() with an empty `domain` value."),this.domain=e):this.warn("You called setTextDomain() with an argument of type "+typeof e+". The domain must be a string.")},i.prototype.gettext=function(e){return this.dnpgettext(this.domain,"",e)},i.prototype.dgettext=function(e,t){return this.dnpgettext(e,"",t)},i.prototype.ngettext=function(e,t,n){return this.dnpgettext(this.domain,"",e,t,n)},i.prototype.dngettext=function(e,t,n,r){return this.dnpgettext(e,"",t,n,r)},i.prototype.pgettext=function(e,t){return this.dnpgettext(this.domain,e,t)},i.prototype.dpgettext=function(e,t,n){return this.dnpgettext(e,t,n)},i.prototype.npgettext=function(e,t,n,r){return this.dnpgettext(this.domain,e,t,n,r)},i.prototype.dnpgettext=function(e,t,n,r,o){var s,l,u=n;if(t=t||"",isNaN(o)||1===o||(u=r||n),s=this._getTranslation(e,t,n)){if("number"==typeof o)"boolean"==typeof(l=(0,a[i.getLanguageCode(this.locale)].pluralsFunc)(o))&&(l=l?1:0);else l=0;return s.msgstr[l]||u}return this.warn('No translation was found for msgid "'+n+'" in msgctxt "'+t+'" and domain "'+e+'"'),u},i.prototype.getComment=function(e,t,n){var r;return(r=this._getTranslation(e,t,n))&&r.comments||{}},i.prototype._getTranslation=function(e,t,n){return t=t||"",r(this.catalogs,[this.locale,e,"translations",t,n])},i.getLanguageCode=function(e){return e.split(/[\-_]/)[0].toLowerCase()},i.prototype.textdomain=function(e){this.debug&&console.warn("textdomain(domain) was used to set locales in node-gettext v1. Make sure you are using it for domains, and switch to setLocale(locale) if you are not.\n\n To read more about the migration from node-gettext v1 to v2, see https://github.com/alexanderwallin/node-gettext/#migrating-from-1x-to-2x\n\nThis warning will be removed in the final 2.0.0"),this.setTextDomain(e)},i.prototype.setlocale=function(e){this.setLomain(e)},i.prototype.addTextdomain=function(){console.error("addTextdomain() is deprecated.\n\n* To add translations, use addTranslations()\n* To set the default domain, use setTextDomain() (or its alias textdomain())\n\nTo read more about the migration from node-gettext v1 to v2, see https://github.com/alexanderwallin/node-gettext/#migrating-from-1x-to-2x")}}).call(this,e("_process"))},{"./plurals":5,_process:1,"lodash.get":3}],5:[function(e,t,n){"use strict";t.exports={ach:{name:"Acholi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},af:{name:"Afrikaans",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ak:{name:"Akan",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},am:{name:"Amharic",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},an:{name:"Aragonese",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ar:{name:"Arabic",examples:[{plural:0,sample:0},{plural:1,sample:1},{plural:2,sample:2},{plural:3,sample:3},{plural:4,sample:11},{plural:5,sample:100}],nplurals:6,pluralsText:"nplurals = 6; plural = (n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5)",pluralsFunc:function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5}},arn:{name:"Mapudungun",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},ast:{name:"Asturian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ay:{name:"Aymará",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},az:{name:"Azerbaijani",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},be:{name:"Belarusian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},bg:{name:"Bulgarian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},bn:{name:"Bengali",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},bo:{name:"Tibetan",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},br:{name:"Breton",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},brx:{name:"Bodo",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},bs:{name:"Bosnian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},ca:{name:"Catalan",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},cgg:{name:"Chiga",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},cs:{name:"Czech",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 1 ? 0 : (n >= 2 && n <= 4) ? 1 : 2)",pluralsFunc:function(e){return 1===e?0:e>=2&&e<=4?1:2}},csb:{name:"Kashubian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return 1===e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},cy:{name:"Welsh",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:3},{plural:3,sample:8}],nplurals:4,pluralsText:"nplurals = 4; plural = (n === 1 ? 0 : n === 2 ? 1 : (n !== 8 && n !== 11) ? 2 : 3)",pluralsFunc:function(e){return 1===e?0:2===e?1:8!==e&&11!==e?2:3}},da:{name:"Danish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},de:{name:"German",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},doi:{name:"Dogri",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},dz:{name:"Dzongkha",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},el:{name:"Greek",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},en:{name:"English",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},eo:{name:"Esperanto",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},es:{name:"Spanish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},et:{name:"Estonian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},eu:{name:"Basque",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},fa:{name:"Persian",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},ff:{name:"Fulah",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},fi:{name:"Finnish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},fil:{name:"Filipino",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},fo:{name:"Faroese",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},fr:{name:"French",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},fur:{name:"Friulian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},fy:{name:"Frisian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ga:{name:"Irish",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:3},{plural:3,sample:7},{plural:4,sample:11}],nplurals:5,pluralsText:"nplurals = 5; plural = (n === 1 ? 0 : n === 2 ? 1 : n < 7 ? 2 : n < 11 ? 3 : 4)",pluralsFunc:function(e){return 1===e?0:2===e?1:e<7?2:e<11?3:4}},gd:{name:"Scottish Gaelic",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:3},{plural:3,sample:20}],nplurals:4,pluralsText:"nplurals = 4; plural = ((n === 1 || n === 11) ? 0 : (n === 2 || n === 12) ? 1 : (n > 2 && n < 20) ? 2 : 3)",pluralsFunc:function(e){return 1===e||11===e?0:2===e||12===e?1:e>2&&e<20?2:3}},gl:{name:"Galician",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},gu:{name:"Gujarati",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},gun:{name:"Gun",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},ha:{name:"Hausa",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},he:{name:"Hebrew",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},hi:{name:"Hindi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},hne:{name:"Chhattisgarhi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},hr:{name:"Croatian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},hu:{name:"Hungarian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},hy:{name:"Armenian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},id:{name:"Indonesian",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},is:{name:"Icelandic",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n % 10 !== 1 || n % 100 === 11)",pluralsFunc:function(e){return e%10!=1||e%100==11}},it:{name:"Italian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ja:{name:"Japanese",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},jbo:{name:"Lojban",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},jv:{name:"Javanese",examples:[{plural:0,sample:0},{plural:1,sample:1}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 0)",pluralsFunc:function(e){return 0!==e}},ka:{name:"Georgian",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},kk:{name:"Kazakh",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},km:{name:"Khmer",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},kn:{name:"Kannada",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ko:{name:"Korean",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},ku:{name:"Kurdish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},kw:{name:"Cornish",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:3},{plural:3,sample:4}],nplurals:4,pluralsText:"nplurals = 4; plural = (n === 1 ? 0 : n === 2 ? 1 : n === 3 ? 2 : 3)",pluralsFunc:function(e){return 1===e?0:2===e?1:3===e?2:3}},ky:{name:"Kyrgyz",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},lb:{name:"Letzeburgesch",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ln:{name:"Lingala",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},lo:{name:"Lao",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},lt:{name:"Lithuanian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:10}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2}},lv:{name:"Latvian",examples:[{plural:2,sample:0},{plural:0,sample:1},{plural:1,sample:2}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n !== 0 ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:0!==e?1:2}},mai:{name:"Maithili",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},mfe:{name:"Mauritian Creole",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},mg:{name:"Malagasy",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},mi:{name:"Maori",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},mk:{name:"Macedonian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n === 1 || n % 10 === 1 ? 0 : 1)",pluralsFunc:function(e){return 1===e||e%10==1?0:1}},ml:{name:"Malayalam",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},mn:{name:"Mongolian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},mni:{name:"Manipuri",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},mnk:{name:"Mandinka",examples:[{plural:0,sample:0},{plural:1,sample:1},{plural:2,sample:2}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 0 ? 0 : n === 1 ? 1 : 2)",pluralsFunc:function(e){return 0===e?0:1===e?1:2}},mr:{name:"Marathi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ms:{name:"Malay",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},mt:{name:"Maltese",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:11},{plural:3,sample:20}],nplurals:4,pluralsText:"nplurals = 4; plural = (n === 1 ? 0 : n === 0 || ( n % 100 > 1 && n % 100 < 11) ? 1 : (n % 100 > 10 && n % 100 < 20 ) ? 2 : 3)",pluralsFunc:function(e){return 1===e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3}},my:{name:"Burmese",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},nah:{name:"Nahuatl",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},nap:{name:"Neapolitan",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},nb:{name:"Norwegian Bokmal",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ne:{name:"Nepali",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},nl:{name:"Dutch",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},nn:{name:"Norwegian Nynorsk",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},no:{name:"Norwegian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},nso:{name:"Northern Sotho",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},oc:{name:"Occitan",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},or:{name:"Oriya",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},pa:{name:"Punjabi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},pap:{name:"Papiamento",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},pl:{name:"Polish",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return 1===e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},pms:{name:"Piemontese",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ps:{name:"Pashto",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},pt:{name:"Portuguese",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},rm:{name:"Romansh",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ro:{name:"Romanian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:20}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 1 ? 0 : (n === 0 || (n % 100 > 0 && n % 100 < 20)) ? 1 : 2)",pluralsFunc:function(e){return 1===e?0:0===e||e%100>0&&e%100<20?1:2}},ru:{name:"Russian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},rw:{name:"Kinyarwanda",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sah:{name:"Yakut",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},sat:{name:"Santali",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sco:{name:"Scots",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sd:{name:"Sindhi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},se:{name:"Northern Sami",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},si:{name:"Sinhala",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sk:{name:"Slovak",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 1 ? 0 : (n >= 2 && n <= 4) ? 1 : 2)",pluralsFunc:function(e){return 1===e?0:e>=2&&e<=4?1:2}},sl:{name:"Slovenian",examples:[{plural:1,sample:1},{plural:2,sample:2},{plural:3,sample:3},{plural:0,sample:5}],nplurals:4,pluralsText:"nplurals = 4; plural = (n % 100 === 1 ? 1 : n % 100 === 2 ? 2 : n % 100 === 3 || n % 100 === 4 ? 3 : 0)",pluralsFunc:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0}},so:{name:"Somali",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},son:{name:"Songhay",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sq:{name:"Albanian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sr:{name:"Serbian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},su:{name:"Sundanese",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},sv:{name:"Swedish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sw:{name:"Swahili",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ta:{name:"Tamil",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},te:{name:"Telugu",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},tg:{name:"Tajik",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},th:{name:"Thai",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},ti:{name:"Tigrinya",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},tk:{name:"Turkmen",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},tr:{name:"Turkish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},tt:{name:"Tatar",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},ug:{name:"Uyghur",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},uk:{name:"Ukrainian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},ur:{name:"Urdu",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},uz:{name:"Uzbek",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},vi:{name:"Vietnamese",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},wa:{name:"Walloon",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},wo:{name:"Wolof",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},yo:{name:"Yoruba",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},zh:{name:"Chinese",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}}}},{}]},{},[2]),function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,a=Object.getPrototypeOf,i=n.slice,o=n.concat,s=n.push,l=n.indexOf,u={},p=u.toString,c=u.hasOwnProperty,f=c.toString,h=f.call(Object),d={};function g(e,t){var n=(t=t||r).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}var v="3.1.1",m=function(e,t){return new m.fn.init(e,t)},y=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,b=/^-ms-/,x=/-([a-z])/g,S=function(e,t){return t.toUpperCase()};function T(e){var t=!!e&&"length"in e&&e.length,n=m.type(e);return"function"!==n&&!m.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}m.fn=m.prototype={jquery:v,constructor:m,length:0,toArray:function(){return i.call(this)},get:function(e){return null==e?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=m.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return m.each(this,e)},map:function(e){return this.pushStack(m.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},m.extend=m.fn.extend=function(){var e,t,n,r,a,i,o=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[s]||{},s++),"object"==typeof o||m.isFunction(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=o[t],o!==(r=e[t])&&(u&&r&&(m.isPlainObject(r)||(a=m.isArray(r)))?(a?(a=!1,i=n&&m.isArray(n)?n:[]):i=n&&m.isPlainObject(n)?n:{},o[t]=m.extend(u,i,r)):void 0!==r&&(o[t]=r));return o},m.extend({expando:"jQuery"+(v+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===m.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=m.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e)||(t=a(e))&&(n=c.call(t,"constructor")&&t.constructor,"function"!=typeof n||f.call(n)!==h))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[p.call(e)]||"object":typeof e},globalEval:function(e){g(e)},camelCase:function(e){return e.replace(b,"ms-").replace(x,S)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(T(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(y,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?m.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,a=e.length;r<n;r++)e[a++]=t[r];return e.length=a,e},grep:function(e,t,n){for(var r=[],a=0,i=e.length,o=!n;a<i;a++)!t(e[a],a)!==o&&r.push(e[a]);return r},map:function(e,t,n){var r,a,i=0,s=[];if(T(e))for(r=e.length;i<r;i++)null!=(a=t(e[i],i,n))&&s.push(a);else for(i in e)null!=(a=t(e[i],i,n))&&s.push(a);return o.apply([],s)},guid:1,proxy:function(e,t){var n,r,a;if("string"==typeof t&&(n=e[t],t=e,e=n),m.isFunction(e))return r=i.call(arguments,2),(a=function(){return e.apply(t||this,r.concat(i.call(arguments)))}).guid=e.guid=e.guid||m.guid++,a},now:Date.now,support:d}),"function"==typeof Symbol&&(m.fn[Symbol.iterator]=n[Symbol.iterator]),m.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){u["[object "+t+"]"]=t.toLowerCase()});var w=function(e){var t,n,r,a,i,o,s,l,u,p,c,f,h,d,g,v,m,y,b,x="sizzle"+1*new Date,S=e.document,T=0,w=0,k=oe(),E=oe(),C=oe(),O=function(e,t){return e===t&&(c=!0),0},U={}.hasOwnProperty,L=[],D=L.pop,R=L.push,A=L.push,F=L.slice,N=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",B="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",P="\\["+M+"*("+B+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+M+"*\\]",_=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",G=new RegExp(M+"+","g"),H=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),j=new RegExp("^"+M+"*,"+M+"*"),q=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),z=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),W=new RegExp(_),X=new RegExp("^"+B+"$"),V={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+_),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Q=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){f()},ae=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{A.apply(L=F.call(S.childNodes),S.childNodes),L[S.childNodes.length].nodeType}catch(e){A={apply:L.length?function(e,t){R.apply(e,F.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(e,t,r,a){var i,s,u,p,c,d,m,y=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!a&&((t?t.ownerDocument||t:S)!==h&&f(t),t=t||h,g)){if(11!==T&&(c=K.exec(e)))if(i=c[1]){if(9===T){if(!(u=t.getElementById(i)))return r;if(u.id===i)return r.push(u),r}else if(y&&(u=y.getElementById(i))&&b(t,u)&&u.id===i)return r.push(u),r}else{if(c[2])return A.apply(r,t.getElementsByTagName(e)),r;if((i=c[3])&&n.getElementsByClassName&&t.getElementsByClassName)return A.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!C[e+" "]&&(!v||!v.test(e))){if(1!==T)y=t,m=e;else if("object"!==t.nodeName.toLowerCase()){for((p=t.getAttribute("id"))?p=p.replace(te,ne):t.setAttribute("id",p=x),s=(d=o(e)).length;s--;)d[s]="#"+p+" "+me(d[s]);m=d.join(","),y=J.test(e)&&ge(t.parentNode)||t}if(m)try{return A.apply(r,y.querySelectorAll(m)),r}catch(e){}finally{p===x&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,r,a)}function oe(){var e=[];return function t(n,a){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=a}}function se(e){return e[x]=!0,e}function le(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),a=n.length;a--;)r.attrHandle[n[a]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function de(e){return se(function(t){return t=+t,se(function(n,r){for(var a,i=e([],n.length,t),o=i.length;o--;)n[a=i[o]]&&(n[a]=!(r[a]=n[a]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ie.support={},i=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=ie.setDocument=function(e){var t,a,o=e?e.ownerDocument||e:S;return o!==h&&9===o.nodeType&&o.documentElement?(d=(h=o).documentElement,g=!i(h),S!==h&&(a=h.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",re,!1):a.attachEvent&&a.attachEvent("onunload",re)),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(h.getElementsByClassName),n.getById=le(function(e){return d.appendChild(e).id=x,!h.getElementsByName||!h.getElementsByName(x).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(Q,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Q,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,a,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(a=t.getElementsByName(e),r=0;i=a[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],a=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[a++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},m=[],v=[],(n.qsa=Z.test(h.querySelectorAll))&&(le(function(e){d.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+I+")"),e.querySelectorAll("[id~="+x+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||v.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),d.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=Z.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&le(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),m.push("!=",_)}),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),t=Z.test(d.compareDocumentPosition),b=t||Z.test(d.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},O=t?function(e,t){if(e===t)return c=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===h||e.ownerDocument===S&&b(S,e)?-1:t===h||t.ownerDocument===S&&b(S,t)?1:p?N(p,e)-N(p,t):0:4&r?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,r=0,a=e.parentNode,i=t.parentNode,o=[e],s=[t];if(!a||!i)return e===h?-1:t===h?1:a?-1:i?1:p?N(p,e)-N(p,t):0;if(a===i)return pe(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?pe(o[r],s[r]):o[r]===S?-1:s[r]===S?1:0},h):h},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&f(e),t=t.replace(z,"='$1']"),n.matchesSelector&&g&&!C[t+" "]&&(!m||!m.test(t))&&(!v||!v.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return ie(t,h,null,[e]).length>0},ie.contains=function(e,t){return(e.ownerDocument||e)!==h&&f(e),b(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==h&&f(e);var a=r.attrHandle[t.toLowerCase()],i=a&&U.call(r.attrHandle,t.toLowerCase())?a(e,t,!g):void 0;return void 0!==i?i:n.attributes||!g?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ie.escape=function(e){return(e+"").replace(te,ne)},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,r=[],a=0,i=0;if(c=!n.detectDuplicates,p=!n.sortStable&&e.slice(0),e.sort(O),c){for(;t=e[i++];)t===e[i]&&(a=r.push(i));for(;a--;)e.splice(r[a],1)}return p=null,e},a=ie.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=a(t);return n},(r=ie.selectors={cacheLength:50,createPseudo:se,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Q,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Q,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Q,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&k(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var a=ie.attr(r,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(G," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,a){var i="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===a?function(e){return!!e.parentNode}:function(t,n,l){var u,p,c,f,h,d,g=i!==o?"nextSibling":"previousSibling",v=t.parentNode,m=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(v){if(i){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[o?v.firstChild:v.lastChild],o&&y){for(b=(h=(u=(p=(c=(f=v)[x]||(f[x]={}))[f.uniqueID]||(c[f.uniqueID]={}))[e]||[])[0]===T&&u[1])&&u[2],f=h&&v.childNodes[h];f=++h&&f&&f[g]||(b=h=0)||d.pop();)if(1===f.nodeType&&++b&&f===t){p[e]=[T,h,b];break}}else if(y&&(b=h=(u=(p=(c=(f=t)[x]||(f[x]={}))[f.uniqueID]||(c[f.uniqueID]={}))[e]||[])[0]===T&&u[1]),!1===b)for(;(f=++h&&f&&f[g]||(b=h=0)||d.pop())&&((s?f.nodeName.toLowerCase()!==m:1!==f.nodeType)||!++b||(y&&((p=(c=f[x]||(f[x]={}))[f.uniqueID]||(c[f.uniqueID]={}))[e]=[T,b]),f!==t)););return(b-=a)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,a=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return a[x]?a(t):a.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var r,i=a(e,t),o=i.length;o--;)e[r=N(e,i[o])]=!(n[r]=i[o])}):function(e){return a(e,0,n)}):a}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(H,"$1"));return r[x]?se(function(e,t,n,a){for(var i,o=r(e,null,a,[]),s=e.length;s--;)(i=o[s])&&(e[s]=!(t[s]=i))}):function(e,a,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return ie(e,t).length>0}}),contains:se(function(e){return e=e.replace(Q,ee),function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:se(function(e){return X.test(e||"")||ie.error("unsupported lang: "+e),e=e.replace(Q,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return $.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:de(function(){return[0]}),last:de(function(e,t){return[t-1]}),eq:de(function(e,t,n){return[n<0?n+t:n]}),even:de(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:de(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:de(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:de(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ce(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ve(){}function me(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ye(e,t,n){var r=t.dir,a=t.next,i=a||r,o=n&&"parentNode"===i,s=w++;return t.first?function(t,n,a){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,a);return!1}:function(t,n,l){var u,p,c,f=[T,s];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(p=(c=t[x]||(t[x]={}))[t.uniqueID]||(c[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=p[i])&&u[0]===T&&u[1]===s)return f[2]=u[2];if(p[i]=f,f[2]=e(t,n,l))return!0}return!1}}function be(e){return e.length>1?function(t,n,r){for(var a=e.length;a--;)if(!e[a](t,n,r))return!1;return!0}:e[0]}function xe(e,t,n,r,a){for(var i,o=[],s=0,l=e.length,u=null!=t;s<l;s++)(i=e[s])&&(n&&!n(i,r,a)||(o.push(i),u&&t.push(s)));return o}function Se(e,t,n,r,a,i){return r&&!r[x]&&(r=Se(r)),a&&!a[x]&&(a=Se(a,i)),se(function(i,o,s,l){var u,p,c,f=[],h=[],d=o.length,g=i||function(e,t,n){for(var r=0,a=t.length;r<a;r++)ie(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!i&&t?g:xe(g,f,e,s,l),m=n?a||(i?e:d||r)?[]:o:v;if(n&&n(v,m,s,l),r)for(u=xe(m,h),r(u,[],s,l),p=u.length;p--;)(c=u[p])&&(m[h[p]]=!(v[h[p]]=c));if(i){if(a||e){if(a){for(u=[],p=m.length;p--;)(c=m[p])&&u.push(v[p]=c);a(null,m=[],u,l)}for(p=m.length;p--;)(c=m[p])&&(u=a?N(i,c):f[p])>-1&&(i[u]=!(o[u]=c))}}else m=xe(m===o?m.splice(d,m.length):m),a?a(null,o,m,l):A.apply(o,m)})}function Te(e){for(var t,n,a,i=e.length,o=r.relative[e[0].type],s=o||r.relative[" "],l=o?1:0,p=ye(function(e){return e===t},s,!0),c=ye(function(e){return N(t,e)>-1},s,!0),f=[function(e,n,r){var a=!o&&(r||n!==u)||((t=n).nodeType?p(e,n,r):c(e,n,r));return t=null,a}];l<i;l++)if(n=r.relative[e[l].type])f=[ye(be(f),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[x]){for(a=++l;a<i&&!r.relative[e[a].type];a++);return Se(l>1&&be(f),l>1&&me(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(H,"$1"),n,l<a&&Te(e.slice(l,a)),a<i&&Te(e=e.slice(a)),a<i&&me(e))}f.push(n)}return be(f)}function we(e,t){var n=t.length>0,a=e.length>0,i=function(i,o,s,l,p){var c,d,v,m=0,y="0",b=i&&[],x=[],S=u,w=i||a&&r.find.TAG("*",p),k=T+=null==S?1:Math.random()||.1,E=w.length;for(p&&(u=o===h||o||p);y!==E&&null!=(c=w[y]);y++){if(a&&c){for(d=0,o||c.ownerDocument===h||(f(c),s=!g);v=e[d++];)if(v(c,o||h,s)){l.push(c);break}p&&(T=k)}n&&((c=!v&&c)&&m--,i&&b.push(c))}if(m+=y,n&&y!==m){for(d=0;v=t[d++];)v(b,x,o,s);if(i){if(m>0)for(;y--;)b[y]||x[y]||(x[y]=D.call(l));x=xe(x)}A.apply(l,x),p&&!i&&x.length>0&&m+t.length>1&&ie.uniqueSort(l)}return p&&(T=k,u=S),b};return n?se(i):i}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,o=ie.tokenize=function(e,t){var n,a,i,o,s,l,u,p=E[e+" "];if(p)return t?0:p.slice(0);for(s=e,l=[],u=r.preFilter;s;){for(o in n&&!(a=j.exec(s))||(a&&(s=s.slice(a[0].length)||s),l.push(i=[])),n=!1,(a=q.exec(s))&&(n=a.shift(),i.push({value:n,type:a[0].replace(H," ")}),s=s.slice(n.length)),r.filter)!(a=V[o].exec(s))||u[o]&&!(a=u[o](a))||(n=a.shift(),i.push({value:n,type:o,matches:a}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ie.error(e):E(e,l).slice(0)},s=ie.compile=function(e,t){var n,r=[],a=[],i=C[e+" "];if(!i){for(t||(t=o(e)),n=t.length;n--;)(i=Te(t[n]))[x]?r.push(i):a.push(i);(i=C(e,we(a,r))).selector=e}return i},l=ie.select=function(e,t,n,a){var i,l,u,p,c,f="function"==typeof e&&e,h=!a&&o(e=f.selector||e);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&g&&r.relative[l[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(Q,ee),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=V.needsContext.test(e)?0:l.length;i--&&(u=l[i],!r.relative[p=u.type]);)if((c=r.find[p])&&(a=c(u.matches[0].replace(Q,ee),J.test(l[0].type)&&ge(t.parentNode)||t))){if(l.splice(i,1),!(e=a.length&&me(l)))return A.apply(n,a),n;break}}return(f||s(e,h))(a,t,!g,n,!t||J.test(e)&&ge(t.parentNode)||t),n},n.sortStable=x.split("").sort(O).join("")===x,n.detectDuplicates=!!c,f(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ue(I,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ie}(e);m.find=w,m.expr=w.selectors,m.expr[":"]=m.expr.pseudos,m.uniqueSort=m.unique=w.uniqueSort,m.text=w.getText,m.isXMLDoc=w.isXML,m.contains=w.contains,m.escapeSelector=w.escape;var k=function(e,t,n){for(var r=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&m(e).is(n))break;r.push(e)}return r},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},C=m.expr.match.needsContext,O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,U=/^.[^:#\[\.,]*$/;function L(e,t,n){return m.isFunction(t)?m.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?m.grep(e,function(e){return e===t!==n}):"string"!=typeof t?m.grep(e,function(e){return l.call(t,e)>-1!==n}):U.test(t)?m.filter(t,e,n):(t=m.filter(t,e),m.grep(e,function(e){return l.call(t,e)>-1!==n&&1===e.nodeType}))}m.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?m.find.matchesSelector(r,e)?[r]:[]:m.find.matches(e,m.grep(t,function(e){return 1===e.nodeType}))},m.fn.extend({find:function(e){var t,n,r=this.length,a=this;if("string"!=typeof e)return this.pushStack(m(e).filter(function(){for(t=0;t<r;t++)if(m.contains(a[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)m.find(e,a[t],n);return r>1?m.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&C.test(e)?m(e):e||[],!1).length}});var D,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(m.fn.init=function(e,t,n){var a,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(a="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:R.exec(e))||!a[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(a[1]){if(t=t instanceof m?t[0]:t,m.merge(this,m.parseHTML(a[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),O.test(a[1])&&m.isPlainObject(t))for(a in t)m.isFunction(this[a])?this[a](t[a]):this.attr(a,t[a]);return this}return(i=r.getElementById(a[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m.isFunction(e)?void 0!==n.ready?n.ready(e):e(m):m.makeArray(e,this)}).prototype=m.fn,D=m(r);var A=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}m.fn.extend({has:function(e){var t=m(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(m.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,a=this.length,i=[],o="string"!=typeof e&&m(e);if(!C.test(e))for(;r<a;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&m.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?m.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?l.call(m(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),m.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return k(e,"parentNode")},parentsUntil:function(e,t,n){return k(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return k(e,"nextSibling")},prevAll:function(e){return k(e,"previousSibling")},nextUntil:function(e,t,n){return k(e,"nextSibling",n)},prevUntil:function(e,t,n){return k(e,"previousSibling",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return e.contentDocument||m.merge([],e.childNodes)}},function(e,t){m.fn[e]=function(n,r){var a=m.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(a=m.filter(r,a)),this.length>1&&(F[e]||m.uniqueSort(a),A.test(e)&&a.reverse()),this.pushStack(a)}});var I=/[^\x20\t\r\n\f]+/g;function M(e){return e}function B(e){throw e}function P(e,t,n){var r;try{e&&m.isFunction(r=e.promise)?r.call(e).done(t).fail(n):e&&m.isFunction(r=e.then)?r.call(e,t,n):t.call(void 0,e)}catch(e){n.call(void 0,e)}}m.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return m.each(e.match(I)||[],function(e,n){t[n]=!0}),t}(e):m.extend({},e);var t,n,r,a,i=[],o=[],s=-1,l=function(){for(a=e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,a&&(i=n?[]:"")},u={add:function(){return i&&(n&&!t&&(s=i.length-1,o.push(n)),function t(n){m.each(n,function(n,r){m.isFunction(r)?e.unique&&u.has(r)||i.push(r):r&&r.length&&"string"!==m.type(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return m.each(arguments,function(e,t){for(var n;(n=m.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?m.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return a=o=[],i=n="",this},disabled:function(){return!i},lock:function(){return a=o=[],n||t||(i=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},m.extend({Deferred:function(t){var n=[["notify","progress",m.Callbacks("memory"),m.Callbacks("memory"),2],["resolve","done",m.Callbacks("once memory"),m.Callbacks("once memory"),0,"resolved"],["reject","fail",m.Callbacks("once memory"),m.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return m.Deferred(function(t){m.each(n,function(n,r){var a=m.isFunction(e[r[4]])&&e[r[4]];i[r[1]](function(){var e=a&&a.apply(this,arguments);e&&m.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,a?[e]:arguments)})}),e=null}).promise()},then:function(t,r,a){var i=0;function o(t,n,r,a){return function(){var s=this,l=arguments,u=function(){var e,u;if(!(t<i)){if((e=r.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");u=e&&("object"==typeof e||"function"==typeof e)&&e.then,m.isFunction(u)?a?u.call(e,o(i,n,M,a),o(i,n,B,a)):(i++,u.call(e,o(i,n,M,a),o(i,n,B,a),o(i,n,M,n.notifyWith))):(r!==M&&(s=void 0,l=[e]),(a||n.resolveWith)(s,l))}},p=a?u:function(){try{u()}catch(e){m.Deferred.exceptionHook&&m.Deferred.exceptionHook(e,p.stackTrace),t+1>=i&&(r!==B&&(s=void 0,l=[e]),n.rejectWith(s,l))}};t?p():(m.Deferred.getStackHook&&(p.stackTrace=m.Deferred.getStackHook()),e.setTimeout(p))}}return m.Deferred(function(e){n[0][3].add(o(0,e,m.isFunction(a)?a:M,e.notifyWith)),n[1][3].add(o(0,e,m.isFunction(t)?t:M)),n[2][3].add(o(0,e,m.isFunction(r)?r:B))}).promise()},promise:function(e){return null!=e?m.extend(e,a):a}},i={};return m.each(n,function(e,t){var o=t[2],s=t[5];a[t[1]]=o.add,s&&o.add(function(){r=s},n[3-e][2].disable,n[0][2].lock),o.add(t[3].fire),i[t[0]]=function(){return i[t[0]+"With"](this===i?void 0:this,arguments),this},i[t[0]+"With"]=o.fireWith}),a.promise(i),t&&t.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),a=i.call(arguments),o=m.Deferred(),s=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?i.call(arguments):n,--t||o.resolveWith(r,a)}};if(t<=1&&(P(e,o.done(s(n)).resolve,o.reject),"pending"===o.state()||m.isFunction(a[n]&&a[n].then)))return o.then();for(;n--;)P(a[n],s(n),o.reject);return o.promise()}});var _=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;m.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&_.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},m.readyException=function(t){e.setTimeout(function(){throw t})};var G=m.Deferred();function H(){r.removeEventListener("DOMContentLoaded",H),e.removeEventListener("load",H),m.ready()}m.fn.ready=function(e){return G.then(e).catch(function(e){m.readyException(e)}),this},m.extend({isReady:!1,readyWait:1,holdReady:function(e){e?m.readyWait++:m.ready(!0)},ready:function(e){(!0===e?--m.readyWait:m.isReady)||(m.isReady=!0,!0!==e&&--m.readyWait>0||G.resolveWith(r,[m]))}}),m.ready.then=G.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(m.ready):(r.addEventListener("DOMContentLoaded",H),e.addEventListener("load",H));var j=function(e,t,n,r,a,i,o){var s=0,l=e.length,u=null==n;if("object"===m.type(n))for(s in a=!0,n)j(e,t,s,n[s],!0,i,o);else if(void 0!==r&&(a=!0,m.isFunction(r)||(o=!0),u&&(o?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(m(e),n)})),t))for(;s<l;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return a?e:u?t.call(e):l?t(e[0],n):i},q=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function z(){this.expando=m.expando+z.uid++}z.uid=1,z.prototype={cache:function(e){var t=e[this.expando];return t||(t={},q(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,a=this.cache(e);if("string"==typeof t)a[m.camelCase(t)]=n;else for(r in t)a[m.camelCase(r)]=t[r];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][m.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){m.isArray(t)?t=t.map(m.camelCase):t=(t=m.camelCase(t))in r?[t]:t.match(I)||[],n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||m.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!m.isEmptyObject(t)}};var W=new z,X=new z,V=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,$=/[A-Z]/g;function Y(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace($,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:V.test(e)?JSON.parse(e):e)}(n)}catch(e){}X.set(e,t,n)}else n=void 0;return n}m.extend({hasData:function(e){return X.hasData(e)||W.hasData(e)},data:function(e,t,n){return X.access(e,t,n)},removeData:function(e,t){X.remove(e,t)},_data:function(e,t,n){return W.access(e,t,n)},_removeData:function(e,t){W.remove(e,t)}}),m.fn.extend({data:function(e,t){var n,r,a,i=this[0],o=i&&i.attributes;if(void 0===e){if(this.length&&(a=X.get(i),1===i.nodeType&&!W.get(i,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&(0===(r=o[n].name).indexOf("data-")&&(r=m.camelCase(r.slice(5)),Y(i,r,a[r])));W.set(i,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each(function(){X.set(this,e)}):j(this,function(t){var n;if(i&&void 0===t){if(void 0!==(n=X.get(i,e)))return n;if(void 0!==(n=Y(i,e)))return n}else this.each(function(){X.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){X.remove(this,e)})}}),m.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=W.get(e,t),n&&(!r||m.isArray(n)?r=W.access(e,t,m.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=m.queue(e,t),r=n.length,a=n.shift(),i=m._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),r--),a&&("fx"===t&&n.unshift("inprogress"),delete i.stop,a.call(e,function(){m.dequeue(e,t)},i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return W.get(e,n)||W.access(e,n,{empty:m.Callbacks("once memory").add(function(){W.remove(e,[t+"queue",n])})})}}),m.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?m.queue(this[0],e):void 0===t?this:this.each(function(){var n=m.queue(this,e,t);m._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&m.dequeue(this,e)})},dequeue:function(e){return this.each(function(){m.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,a=m.Deferred(),i=this,o=this.length,s=function(){--r||a.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=W.get(i[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),a.promise(t)}});var Z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,K=new RegExp("^(?:([+-])=|)("+Z+")([a-z%]*)$","i"),J=["Top","Right","Bottom","Left"],Q=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&m.contains(e.ownerDocument,e)&&"none"===m.css(e,"display")},ee=function(e,t,n,r){var a,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in a=n.apply(e,r||[]),t)e.style[i]=o[i];return a};function te(e,t,n,r){var a,i=1,o=20,s=r?function(){return r.cur()}:function(){return m.css(e,t,"")},l=s(),u=n&&n[3]||(m.cssNumber[t]?"":"px"),p=(m.cssNumber[t]||"px"!==u&&+l)&&K.exec(m.css(e,t));if(p&&p[3]!==u){u=u||p[3],n=n||[],p=+l||1;do{p/=i=i||".5",m.style(e,t,p+u)}while(i!==(i=s()/l)&&1!==i&&--o)}return n&&(p=+p||+l||0,a=n[1]?p+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=p,r.end=a)),a}var ne={};function re(e){var t,n=e.ownerDocument,r=e.nodeName,a=ne[r];return a||(t=n.body.appendChild(n.createElement(r)),a=m.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),ne[r]=a,a)}function ae(e,t){for(var n,r,a=[],i=0,o=e.length;i<o;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(a[i]=W.get(r,"display")||null,a[i]||(r.style.display="")),""===r.style.display&&Q(r)&&(a[i]=re(r))):"none"!==n&&(a[i]="none",W.set(r,"display",n)));for(i=0;i<o;i++)null!=a[i]&&(e[i].style.display=a[i]);return e}m.fn.extend({show:function(){return ae(this,!0)},hide:function(){return ae(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Q(this)?m(this).show():m(this).hide()})}});var ie=/^(?:checkbox|radio)$/i,oe=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,se=/^$|\/(?:java|ecma)script/i,le={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ue(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&m.nodeName(e,t)?m.merge([e],n):n}function pe(e,t){for(var n=0,r=e.length;n<r;n++)W.set(e[n],"globalEval",!t||W.get(t[n],"globalEval"))}le.optgroup=le.option,le.tbody=le.tfoot=le.colgroup=le.caption=le.thead,le.th=le.td;var ce=/<|&#?\w+;/;function fe(e,t,n,r,a){for(var i,o,s,l,u,p,c=t.createDocumentFragment(),f=[],h=0,d=e.length;h<d;h++)if((i=e[h])||0===i)if("object"===m.type(i))m.merge(f,i.nodeType?[i]:i);else if(ce.test(i)){for(o=o||c.appendChild(t.createElement("div")),s=(oe.exec(i)||["",""])[1].toLowerCase(),l=le[s]||le._default,o.innerHTML=l[1]+m.htmlPrefilter(i)+l[2],p=l[0];p--;)o=o.lastChild;m.merge(f,o.childNodes),(o=c.firstChild).textContent=""}else f.push(t.createTextNode(i));for(c.textContent="",h=0;i=f[h++];)if(r&&m.inArray(i,r)>-1)a&&a.push(i);else if(u=m.contains(i.ownerDocument,i),o=ue(c.appendChild(i),"script"),u&&pe(o),n)for(p=0;i=o[p++];)se.test(i.type||"")&&n.push(i);return c}!function(){var e=r.createDocumentFragment().appendChild(r.createElement("div")),t=r.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),d.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var he=r.documentElement,de=/^key/,ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ve=/^([^.]*)(?:\.(.+)|)/;function me(){return!0}function ye(){return!1}function be(){try{return r.activeElement}catch(e){}}function xe(e,t,n,r,a,i){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)xe(e,s,n,r,t[s],i);return e}if(null==r&&null==a?(a=n,r=n=void 0):null==a&&("string"==typeof n?(a=r,r=void 0):(a=r,r=n,n=void 0)),!1===a)a=ye;else if(!a)return e;return 1===i&&(o=a,(a=function(e){return m().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=m.guid++)),e.each(function(){m.event.add(this,t,a,r,n)})}m.event={global:{},add:function(e,t,n,r,a){var i,o,s,l,u,p,c,f,h,d,g,v=W.get(e);if(v)for(n.handler&&(n=(i=n).handler,a=i.selector),a&&m.find.matchesSelector(he,a),n.guid||(n.guid=m.guid++),(l=v.events)||(l=v.events={}),(o=v.handle)||(o=v.handle=function(t){return void 0!==m&&m.event.triggered!==t.type?m.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(I)||[""]).length;u--;)h=g=(s=ve.exec(t[u])||[])[1],d=(s[2]||"").split(".").sort(),h&&(c=m.event.special[h]||{},h=(a?c.delegateType:c.bindType)||h,c=m.event.special[h]||{},p=m.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:a,needsContext:a&&m.expr.match.needsContext.test(a),namespace:d.join(".")},i),(f=l[h])||((f=l[h]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,r,d,o)||e.addEventListener&&e.addEventListener(h,o)),c.add&&(c.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),a?f.splice(f.delegateCount++,0,p):f.push(p),m.event.global[h]=!0)},remove:function(e,t,n,r,a){var i,o,s,l,u,p,c,f,h,d,g,v=W.hasData(e)&&W.get(e);if(v&&(l=v.events)){for(u=(t=(t||"").match(I)||[""]).length;u--;)if(h=g=(s=ve.exec(t[u])||[])[1],d=(s[2]||"").split(".").sort(),h){for(c=m.event.special[h]||{},f=l[h=(r?c.delegateType:c.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=i=f.length;i--;)p=f[i],!a&&g!==p.origType||n&&n.guid!==p.guid||s&&!s.test(p.namespace)||r&&r!==p.selector&&("**"!==r||!p.selector)||(f.splice(i,1),p.selector&&f.delegateCount--,c.remove&&c.remove.call(e,p));o&&!f.length&&(c.teardown&&!1!==c.teardown.call(e,d,v.handle)||m.removeEvent(e,h,v.handle),delete l[h])}else for(h in l)m.event.remove(e,h+t[u],n,r,!0);m.isEmptyObject(l)&&W.remove(e,"handle events")}},dispatch:function(e){var t,n,r,a,i,o,s=m.event.fix(e),l=new Array(arguments.length),u=(W.get(this,"events")||{})[s.type]||[],p=m.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!p.preDispatch||!1!==p.preDispatch.call(this,s)){for(o=m.event.handlers.call(this,s,u),t=0;(a=o[t++])&&!s.isPropagationStopped();)for(s.currentTarget=a.elem,n=0;(i=a.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,void 0!==(r=((m.event.special[i.origType]||{}).handle||i.handler).apply(a.elem,l))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return p.postDispatch&&p.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,a,i,o,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(i=[],o={},n=0;n<l;n++)void 0===o[a=(r=t[n]).selector+" "]&&(o[a]=r.needsContext?m(a,this).index(u)>-1:m.find(a,this,null,[u]).length),o[a]&&i.push(r);i.length&&s.push({elem:u,handlers:i})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(m.Event.prototype,e,{enumerable:!0,configurable:!0,get:m.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[m.expando]?e:new m.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==be()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===be()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&m.nodeName(this,"input"))return this.click(),!1},_default:function(e){return m.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},m.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},m.Event=function(e,t){return this instanceof m.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?me:ye,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&m.extend(this,t),this.timeStamp=e&&e.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(e,t)},m.Event.prototype={constructor:m.Event,isDefaultPrevented:ye,isPropagationStopped:ye,isImmediatePropagationStopped:ye,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=me,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=me,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=me,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},m.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&de.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&ge.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},m.event.addProp),m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){m.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,a=e.handleObj;return r&&(r===this||m.contains(this,r))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}}),m.fn.extend({on:function(e,t,n,r){return xe(this,e,t,n,r)},one:function(e,t,n,r){return xe(this,e,t,n,r,1)},off:function(e,t,n){var r,a;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,m(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ye),this.each(function(){m.event.remove(this,e,n,t)})}});var Se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Te=/<script|<style|<link/i,we=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^true\/(.*)/,Ee=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ce(e,t){return m.nodeName(e,"table")&&m.nodeName(11!==t.nodeType?t:t.firstChild,"tr")&&e.getElementsByTagName("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ue(e){var t=ke.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Le(e,t){var n,r,a,i,o,s,l,u;if(1===t.nodeType){if(W.hasData(e)&&(i=W.access(e),o=W.set(t,i),u=i.events))for(a in delete o.handle,o.events={},u)for(n=0,r=u[a].length;n<r;n++)m.event.add(t,a,u[a][n]);X.hasData(e)&&(s=X.access(e),l=m.extend({},s),X.set(t,l))}}function De(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ie.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Re(e,t,n,r){t=o.apply([],t);var a,i,s,l,u,p,c=0,f=e.length,h=f-1,v=t[0],y=m.isFunction(v);if(y||f>1&&"string"==typeof v&&!d.checkClone&&we.test(v))return e.each(function(a){var i=e.eq(a);y&&(t[0]=v.call(this,a,i.html())),Re(i,t,n,r)});if(f&&(i=(a=fe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===a.childNodes.length&&(a=i),i||r)){for(l=(s=m.map(ue(a,"script"),Oe)).length;c<f;c++)u=a,c!==h&&(u=m.clone(u,!0,!0),l&&m.merge(s,ue(u,"script"))),n.call(e[c],u,c);if(l)for(p=s[s.length-1].ownerDocument,m.map(s,Ue),c=0;c<l;c++)u=s[c],se.test(u.type||"")&&!W.access(u,"globalEval")&&m.contains(p,u)&&(u.src?m._evalUrl&&m._evalUrl(u.src):g(u.textContent.replace(Ee,""),p))}return e}function Ae(e,t,n){for(var r,a=t?m.filter(t,e):e,i=0;null!=(r=a[i]);i++)n||1!==r.nodeType||m.cleanData(ue(r)),r.parentNode&&(n&&m.contains(r.ownerDocument,r)&&pe(ue(r,"script")),r.parentNode.removeChild(r));return e}m.extend({htmlPrefilter:function(e){return e.replace(Se,"<$1></$2>")},clone:function(e,t,n){var r,a,i,o,s=e.cloneNode(!0),l=m.contains(e.ownerDocument,e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||m.isXMLDoc(e)))for(o=ue(s),r=0,a=(i=ue(e)).length;r<a;r++)De(i[r],o[r]);if(t)if(n)for(i=i||ue(e),o=o||ue(s),r=0,a=i.length;r<a;r++)Le(i[r],o[r]);else Le(e,s);return(o=ue(s,"script")).length>0&&pe(o,!l&&ue(e,"script")),s},cleanData:function(e){for(var t,n,r,a=m.event.special,i=0;void 0!==(n=e[i]);i++)if(q(n)){if(t=n[W.expando]){if(t.events)for(r in t.events)a[r]?m.event.remove(n,r):m.removeEvent(n,r,t.handle);n[W.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),m.fn.extend({detach:function(e){return Ae(this,e,!0)},remove:function(e){return Ae(this,e)},text:function(e){return j(this,function(e){return void 0===e?m.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Re(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ce(this,e).appendChild(e)})},prepend:function(){return Re(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ce(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(m.cleanData(ue(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return m.clone(this,e,t)})},html:function(e){return j(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Te.test(e)&&!le[(oe.exec(e)||["",""])[1].toLowerCase()]){e=m.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(m.cleanData(ue(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Re(this,arguments,function(t){var n=this.parentNode;m.inArray(this,e)<0&&(m.cleanData(ue(this)),n&&n.replaceChild(t,this))},e)}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){m.fn[e]=function(e){for(var n,r=[],a=m(e),i=a.length-1,o=0;o<=i;o++)n=o===i?this:this.clone(!0),m(a[o])[t](n),s.apply(r,n.get());return this.pushStack(r)}});var Fe=/^margin/,Ne=new RegExp("^("+Z+")(?!px)[a-z%]+$","i"),Ie=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};function Me(e,t,n){var r,a,i,o,s=e.style;return(n=n||Ie(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||m.contains(e.ownerDocument,e)||(o=m.style(e,t)),!d.pixelMarginRight()&&Ne.test(o)&&Fe.test(t)&&(r=s.width,a=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=a,s.maxWidth=i)),void 0!==o?o+"":o}function Be(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){function t(){if(l){l.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",l.innerHTML="",he.appendChild(s);var t=e.getComputedStyle(l);n="1%"!==t.top,o="2px"===t.marginLeft,a="4px"===t.width,l.style.marginRight="50%",i="4px"===t.marginRight,he.removeChild(s),l=null}}var n,a,i,o,s=r.createElement("div"),l=r.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===l.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(l),m.extend(d,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),a},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var Pe=/^(none|table(?!-c[ea]).+)/,_e={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"},He=["Webkit","Moz","ms"],je=r.createElement("div").style;function qe(e){if(e in je)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=He.length;n--;)if((e=He[n]+t)in je)return e}function ze(e,t,n){var r=K.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function We(e,t,n,r,a){var i,o=0;for(i=n===(r?"border":"content")?4:"width"===t?1:0;i<4;i+=2)"margin"===n&&(o+=m.css(e,n+J[i],!0,a)),r?("content"===n&&(o-=m.css(e,"padding"+J[i],!0,a)),"margin"!==n&&(o-=m.css(e,"border"+J[i]+"Width",!0,a))):(o+=m.css(e,"padding"+J[i],!0,a),"padding"!==n&&(o+=m.css(e,"border"+J[i]+"Width",!0,a)));return o}function Xe(e,t,n){var r,a=!0,i=Ie(e),o="border-box"===m.css(e,"boxSizing",!1,i);if(e.getClientRects().length&&(r=e.getBoundingClientRect()[t]),r<=0||null==r){if(((r=Me(e,t,i))<0||null==r)&&(r=e.style[t]),Ne.test(r))return r;a=o&&(d.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+We(e,t,n||(o?"border":"content"),a,i)+"px"}function Ve(e,t,n,r,a){return new Ve.prototype.init(e,t,n,r,a)}m.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Me(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,i,o,s=m.camelCase(t),l=e.style;return t=m.cssProps[s]||(m.cssProps[s]=qe(s)||s),o=m.cssHooks[t]||m.cssHooks[s],void 0===n?o&&"get"in o&&void 0!==(a=o.get(e,!1,r))?a:l[t]:("string"===(i=typeof n)&&(a=K.exec(n))&&a[1]&&(n=te(e,t,a),i="number"),void(null!=n&&n==n&&("number"===i&&(n+=a&&a[3]||(m.cssNumber[s]?"":"px")),d.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l[t]=n))))}},css:function(e,t,n,r){var a,i,o,s=m.camelCase(t);return t=m.cssProps[s]||(m.cssProps[s]=qe(s)||s),(o=m.cssHooks[t]||m.cssHooks[s])&&"get"in o&&(a=o.get(e,!0,n)),void 0===a&&(a=Me(e,t,r)),"normal"===a&&t in Ge&&(a=Ge[t]),""===n||n?(i=parseFloat(a),!0===n||isFinite(i)?i||0:a):a}}),m.each(["height","width"],function(e,t){m.cssHooks[t]={get:function(e,n,r){if(n)return!Pe.test(m.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Xe(e,t,r):ee(e,_e,function(){return Xe(e,t,r)})},set:function(e,n,r){var a,i=r&&Ie(e),o=r&&We(e,t,r,"border-box"===m.css(e,"boxSizing",!1,i),i);return o&&(a=K.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=m.css(e,t)),ze(0,n,o)}}}),m.cssHooks.marginLeft=Be(d.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Me(e,"marginLeft"))||e.getBoundingClientRect().left-ee(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),m.each({margin:"",padding:"",border:"Width"},function(e,t){m.cssHooks[e+t]={expand:function(n){for(var r=0,a={},i="string"==typeof n?n.split(" "):[n];r<4;r++)a[e+J[r]+t]=i[r]||i[r-2]||i[0];return a}},Fe.test(e)||(m.cssHooks[e+t].set=ze)}),m.fn.extend({css:function(e,t){return j(this,function(e,t,n){var r,a,i={},o=0;if(m.isArray(t)){for(r=Ie(e),a=t.length;o<a;o++)i[t[o]]=m.css(e,t[o],!1,r);return i}return void 0!==n?m.style(e,t,n):m.css(e,t)},e,t,arguments.length>1)}}),m.Tween=Ve,Ve.prototype={constructor:Ve,init:function(e,t,n,r,a,i){this.elem=e,this.prop=n,this.easing=a||m.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(m.cssNumber[n]?"":"px")},cur:function(){var e=Ve.propHooks[this.prop];return e&&e.get?e.get(this):Ve.propHooks._default.get(this)},run:function(e){var t,n=Ve.propHooks[this.prop];return this.options.duration?this.pos=t=m.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ve.propHooks._default.set(this),this}},Ve.prototype.init.prototype=Ve.prototype,Ve.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=m.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){m.fx.step[e.prop]?m.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[m.cssProps[e.prop]]&&!m.cssHooks[e.prop]?e.elem[e.prop]=e.now:m.style(e.elem,e.prop,e.now+e.unit)}}},Ve.propHooks.scrollTop=Ve.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},m.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},m.fx=Ve.prototype.init,m.fx.step={};var $e,Ye,Ze=/^(?:toggle|show|hide)$/,Ke=/queueHooks$/;function Je(){Ye&&(e.requestAnimationFrame(Je),m.fx.tick())}function Qe(){return e.setTimeout(function(){$e=void 0}),$e=m.now()}function et(e,t){var n,r=0,a={height:e};for(t=t?1:0;r<4;r+=2-t)a["margin"+(n=J[r])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function tt(e,t,n){for(var r,a=(nt.tweeners[t]||[]).concat(nt.tweeners["*"]),i=0,o=a.length;i<o;i++)if(r=a[i].call(n,t,e))return r}function nt(e,t,n){var r,a,i=0,o=nt.prefilters.length,s=m.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var t=$e||Qe(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),i=0,o=u.tweens.length;i<o;i++)u.tweens[i].run(r);return s.notifyWith(e,[u,r,n]),r<1&&o?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:m.extend({},t),opts:m.extend(!0,{specialEasing:{},easing:m.easing._default},n),originalProperties:t,originalOptions:n,startTime:$e||Qe(),duration:n.duration,tweens:[],createTween:function(t,n){var r=m.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(a)return this;for(a=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),p=u.props;for(function(e,t){var n,r,a,i,o;for(n in e)if(a=t[r=m.camelCase(n)],i=e[n],m.isArray(i)&&(a=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(o=m.cssHooks[r])&&"expand"in o)for(n in i=o.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=a);else t[r]=a}(p,u.opts.specialEasing);i<o;i++)if(r=nt.prefilters[i].call(u,e,p,u.opts))return m.isFunction(r.stop)&&(m._queueHooks(u.elem,u.opts.queue).stop=m.proxy(r.stop,r)),r;return m.map(p,tt,u),m.isFunction(u.opts.start)&&u.opts.start.call(e,u),m.fx.timer(m.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}m.Animation=m.extend(nt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,K.exec(t),n),n}]},tweener:function(e,t){m.isFunction(e)?(t=e,e=["*"]):e=e.match(I);for(var n,r=0,a=e.length;r<a;r++)n=e[r],nt.tweeners[n]=nt.tweeners[n]||[],nt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,a,i,o,s,l,u,p,c="width"in t||"height"in t,f=this,h={},d=e.style,g=e.nodeType&&Q(e),v=W.get(e,"fxshow");for(r in n.queue||(null==(o=m._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,f.always(function(){f.always(function(){o.unqueued--,m.queue(e,"fx").length||o.empty.fire()})})),t)if(a=t[r],Ze.test(a)){if(delete t[r],i=i||"toggle"===a,a===(g?"hide":"show")){if("show"!==a||!v||void 0===v[r])continue;g=!0}h[r]=v&&v[r]||m.style(e,r)}if((l=!m.isEmptyObject(t))||!m.isEmptyObject(h))for(r in c&&1===e.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],null==(u=v&&v.display)&&(u=W.get(e,"display")),"none"===(p=m.css(e,"display"))&&(u?p=u:(ae([e],!0),u=e.style.display||u,p=m.css(e,"display"),ae([e]))),("inline"===p||"inline-block"===p&&null!=u)&&"none"===m.css(e,"float")&&(l||(f.done(function(){d.display=u}),null==u&&(p=d.display,u="none"===p?"":p)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),l=!1,h)l||(v?"hidden"in v&&(g=v.hidden):v=W.access(e,"fxshow",{display:u}),i&&(v.hidden=!g),g&&ae([e],!0),f.done(function(){for(r in g||ae([e]),W.remove(e,"fxshow"),h)m.style(e,r,h[r])})),l=tt(g?v[r]:0,r,f),r in v||(v[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?nt.prefilters.unshift(e):nt.prefilters.push(e)}}),m.speed=function(e,t,n){var a=e&&"object"==typeof e?m.extend({},e):{complete:n||!n&&t||m.isFunction(e)&&e,duration:e,easing:n&&t||t&&!m.isFunction(t)&&t};return m.fx.off||r.hidden?a.duration=0:"number"!=typeof a.duration&&(a.duration in m.fx.speeds?a.duration=m.fx.speeds[a.duration]:a.duration=m.fx.speeds._default),null!=a.queue&&!0!==a.queue||(a.queue="fx"),a.old=a.complete,a.complete=function(){m.isFunction(a.old)&&a.old.call(this),a.queue&&m.dequeue(this,a.queue)},a},m.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Q).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var a=m.isEmptyObject(e),i=m.speed(t,n,r),o=function(){var t=nt(this,m.extend({},e),i);(a||W.get(this,"finish"))&&t.stop(!0)};return o.finish=o,a||!1===i.queue?this.each(o):this.queue(i.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,a=null!=e&&e+"queueHooks",i=m.timers,o=W.get(this);if(a)o[a]&&o[a].stop&&r(o[a]);else for(a in o)o[a]&&o[a].stop&&Ke.test(a)&&r(o[a]);for(a=i.length;a--;)i[a].elem!==this||null!=e&&i[a].queue!==e||(i[a].anim.stop(n),t=!1,i.splice(a,1));!t&&n||m.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=W.get(this),r=n[e+"queue"],a=n[e+"queueHooks"],i=m.timers,o=r?r.length:0;for(n.finish=!0,m.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),m.each(["toggle","show","hide"],function(e,t){var n=m.fn[t];m.fn[t]=function(e,r,a){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(et(t,!0),e,r,a)}}),m.each({slideDown:et("show"),slideUp:et("hide"),slideToggle:et("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){m.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),m.timers=[],m.fx.tick=function(){var e,t=0,n=m.timers;for($e=m.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||m.fx.stop(),$e=void 0},m.fx.timer=function(e){m.timers.push(e),e()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){Ye||(Ye=e.requestAnimationFrame?e.requestAnimationFrame(Je):e.setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){e.cancelAnimationFrame?e.cancelAnimationFrame(Ye):e.clearInterval(Ye),Ye=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(t,n){return t=m.fx&&m.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var a=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(a)}})},function(){var e=r.createElement("input"),t=r.createElement("select").appendChild(r.createElement("option"));e.type="checkbox",d.checkOn=""!==e.value,d.optSelected=t.selected,(e=r.createElement("input")).value="t",e.type="radio",d.radioValue="t"===e.value}();var rt,at=m.expr.attrHandle;m.fn.extend({attr:function(e,t){return j(this,m.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){m.removeAttr(this,e)})}}),m.extend({attr:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?m.prop(e,t,n):(1===i&&m.isXMLDoc(e)||(a=m.attrHooks[t.toLowerCase()]||(m.expr.match.bool.test(t)?rt:void 0)),void 0!==n?null===n?void m.removeAttr(e,t):a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(r=a.get(e,t))?r:null==(r=m.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&m.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,a=t&&t.match(I);if(a&&1===e.nodeType)for(;n=a[r++];)e.removeAttribute(n)}}),rt={set:function(e,t,n){return!1===t?m.removeAttr(e,n):e.setAttribute(n,n),n}},m.each(m.expr.match.bool.source.match(/\w+/g),function(e,t){var n=at[t]||m.find.attr;at[t]=function(e,t,r){var a,i,o=t.toLowerCase();return r||(i=at[o],at[o]=a,a=null!=n(e,t,r)?o:null,at[o]=i),a}});var it=/^(?:input|select|textarea|button)$/i,ot=/^(?:a|area)$/i;function st(e){return(e.match(I)||[]).join(" ")}function lt(e){return e.getAttribute&&e.getAttribute("class")||""}m.fn.extend({prop:function(e,t){return j(this,m.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[m.propFix[e]||e]})}}),m.extend({prop:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&m.isXMLDoc(e)||(t=m.propFix[t]||t,a=m.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:e[t]=n:a&&"get"in a&&null!==(r=a.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=m.find.attr(e,"tabindex");return t?parseInt(t,10):it.test(e.nodeName)||ot.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(m.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),m.fn.extend({addClass:function(e){var t,n,r,a,i,o,s,l=0;if(m.isFunction(e))return this.each(function(t){m(this).addClass(e.call(this,t,lt(this)))});if("string"==typeof e&&e)for(t=e.match(I)||[];n=this[l++];)if(a=lt(n),r=1===n.nodeType&&" "+st(a)+" "){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a!==(s=st(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,a,i,o,s,l=0;if(m.isFunction(e))return this.each(function(t){m(this).removeClass(e.call(this,t,lt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(I)||[];n=this[l++];)if(a=lt(n),r=1===n.nodeType&&" "+st(a)+" "){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");a!==(s=st(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):m.isFunction(e)?this.each(function(n){m(this).toggleClass(e.call(this,n,lt(this),t),t)}):this.each(function(){var t,r,a,i;if("string"===n)for(r=0,a=m(this),i=e.match(I)||[];t=i[r++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=lt(this))&&W.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":W.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+st(lt(n))+" ").indexOf(t)>-1)return!0;return!1}});var ut=/\r/g;m.fn.extend({val:function(e){var t,n,r,a=this[0];return arguments.length?(r=m.isFunction(e),this.each(function(n){var a;1===this.nodeType&&(null==(a=r?e.call(this,n,m(this).val()):e)?a="":"number"==typeof a?a+="":m.isArray(a)&&(a=m.map(a,function(e){return null==e?"":e+""})),(t=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))})):a?(t=m.valHooks[a.type]||m.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:"string"==typeof(n=a.value)?n.replace(ut,""):null==n?"":n:void 0}}),m.extend({valHooks:{option:{get:function(e){var t=m.find.attr(e,"value");return null!=t?t:st(m.text(e))}},select:{get:function(e){var t,n,r,a=e.options,i=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?i+1:a.length;for(r=i<0?l:o?i:0;r<l;r++)if(((n=a[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!m.nodeName(n.parentNode,"optgroup"))){if(t=m(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,a=e.options,i=m.makeArray(t),o=a.length;o--;)((r=a[o]).selected=m.inArray(m.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(e,t){if(m.isArray(t))return e.checked=m.inArray(m(e).val(),t)>-1}},d.checkOn||(m.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var pt=/^(?:focusinfocus|focusoutblur)$/;m.extend(m.event,{trigger:function(t,n,a,i){var o,s,l,u,p,f,h,d=[a||r],g=c.call(t,"type")?t.type:t,v=c.call(t,"namespace")?t.namespace.split("."):[];if(s=l=a=a||r,3!==a.nodeType&&8!==a.nodeType&&!pt.test(g+m.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),p=g.indexOf(":")<0&&"on"+g,(t=t[m.expando]?t:new m.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=a),n=null==n?[t]:m.makeArray(n,[t]),h=m.event.special[g]||{},i||!h.trigger||!1!==h.trigger.apply(a,n))){if(!i&&!h.noBubble&&!m.isWindow(a)){for(u=h.delegateType||g,pt.test(u+g)||(s=s.parentNode);s;s=s.parentNode)d.push(s),l=s;l===(a.ownerDocument||r)&&d.push(l.defaultView||l.parentWindow||e)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)t.type=o>1?u:h.bindType||g,(f=(W.get(s,"events")||{})[t.type]&&W.get(s,"handle"))&&f.apply(s,n),(f=p&&s[p])&&f.apply&&q(s)&&(t.result=f.apply(s,n),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(d.pop(),n)||!q(a)||p&&m.isFunction(a[g])&&!m.isWindow(a)&&((l=a[p])&&(a[p]=null),m.event.triggered=g,a[g](),m.event.triggered=void 0,l&&(a[p]=l)),t.result}},simulate:function(e,t,n){var r=m.extend(new m.Event,n,{type:e,isSimulated:!0});m.event.trigger(r,null,t)}}),m.fn.extend({trigger:function(e,t){return this.each(function(){m.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return m.event.trigger(e,t,n,!0)}}),m.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){m.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),m.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),d.focusin="onfocusin"in e,d.focusin||m.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){m.event.simulate(t,e.target,m.event.fix(e))};m.event.special[t]={setup:function(){var r=this.ownerDocument||this,a=W.access(r,t);a||r.addEventListener(e,n,!0),W.access(r,t,(a||0)+1)},teardown:function(){var r=this.ownerDocument||this,a=W.access(r,t)-1;a?W.access(r,t,a):(r.removeEventListener(e,n,!0),W.remove(r,t))}}});var ct=e.location,ft=m.now(),ht=/\?/;m.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+t),n};var dt=/\[\]$/,gt=/\r?\n/g,vt=/^(?:submit|button|image|reset|file)$/i,mt=/^(?:input|select|textarea|keygen)/i;function yt(e,t,n,r){var a;if(m.isArray(t))m.each(t,function(t,a){n||dt.test(e)?r(e,a):yt(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,n,r)});else if(n||"object"!==m.type(t))r(e,t);else for(a in t)yt(e+"["+a+"]",t[a],n,r)}m.param=function(e,t){var n,r=[],a=function(e,t){var n=m.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(m.isArray(e)||e.jquery&&!m.isPlainObject(e))m.each(e,function(){a(this.name,this.value)});else for(n in e)yt(n,e[n],t,a);return r.join("&")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=m.prop(this,"elements");return e?m.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!m(this).is(":disabled")&&mt.test(this.nodeName)&&!vt.test(e)&&(this.checked||!ie.test(e))}).map(function(e,t){var n=m(this).val();return null==n?null:m.isArray(n)?m.map(n,function(e){return{name:t.name,value:e.replace(gt,"\r\n")}}):{name:t.name,value:n.replace(gt,"\r\n")}}).get()}});var bt=/%20/g,xt=/#.*$/,St=/([?&])_=[^&]*/,Tt=/^(.*?):[ \t]*([^\r\n]*)$/gm,wt=/^(?:GET|HEAD)$/,kt=/^\/\//,Et={},Ct={},Ot="*/".concat("*"),Ut=r.createElement("a");function Lt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,a=0,i=t.toLowerCase().match(I)||[];if(m.isFunction(n))for(;r=i[a++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Dt(e,t,n,r){var a={},i=e===Ct;function o(s){var l;return a[s]=!0,m.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||i||a[u]?i?!(l=u):void 0:(t.dataTypes.unshift(u),o(u),!1)}),l}return o(t.dataTypes[0])||!a["*"]&&o("*")}function Rt(e,t){var n,r,a=m.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:r||(r={}))[n]=t[n]);return r&&m.extend(!0,e,r),e}Ut.href=ct.href,m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ot,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Rt(Rt(e,m.ajaxSettings),t):Rt(m.ajaxSettings,e)},ajaxPrefilter:Lt(Et),ajaxTransport:Lt(Ct),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var a,i,o,s,l,u,p,c,f,h,d=m.ajaxSetup({},n),g=d.context||d,v=d.context&&(g.nodeType||g.jquery)?m(g):m.event,y=m.Deferred(),b=m.Callbacks("once memory"),x=d.statusCode||{},S={},T={},w="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(p){if(!s)for(s={};t=Tt.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return p?o:null},setRequestHeader:function(e,t){return null==p&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,S[e]=t),this},overrideMimeType:function(e){return null==p&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(p)k.always(e[k.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||w;return a&&a.abort(t),E(0,t),this}};if(y.promise(k),d.url=((t||d.url||ct.href)+"").replace(kt,ct.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(I)||[""],null==d.crossDomain){u=r.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Ut.protocol+"//"+Ut.host!=u.protocol+"//"+u.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=m.param(d.data,d.traditional)),Dt(Et,d,n,k),p)return k;for(f in(c=m.event&&d.global)&&0==m.active++&&m.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!wt.test(d.type),i=d.url.replace(xt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(bt,"+")):(h=d.url.slice(i.length),d.data&&(i+=(ht.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(St,"$1"),h=(ht.test(i)?"&":"?")+"_="+ft+++h),d.url=i+h),d.ifModified&&(m.lastModified[i]&&k.setRequestHeader("If-Modified-Since",m.lastModified[i]),m.etag[i]&&k.setRequestHeader("If-None-Match",m.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&k.setRequestHeader("Content-Type",d.contentType),k.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Ot+"; q=0.01":""):d.accepts["*"]),d.headers)k.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(g,k,d)||p))return k.abort();if(w="abort",b.add(d.complete),k.done(d.success),k.fail(d.error),a=Dt(Ct,d,n,k)){if(k.readyState=1,c&&v.trigger("ajaxSend",[k,d]),p)return k;d.async&&d.timeout>0&&(l=e.setTimeout(function(){k.abort("timeout")},d.timeout));try{p=!1,a.send(S,E)}catch(e){if(p)throw e;E(-1,e)}}else E(-1,"No Transport");function E(t,n,r,s){var u,f,h,S,T,w=n;p||(p=!0,l&&e.clearTimeout(l),a=void 0,o=s||"",k.readyState=t>0?4:0,u=t>=200&&t<300||304===t,r&&(S=function(e,t,n){for(var r,a,i,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in n)i=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){i=a;break}o||(o=a)}i=i||o}if(i)return i!==l[0]&&l.unshift(i),n[i]}(d,k,r)),S=function(e,t,n,r){var a,i,o,s,l,u={},p=e.dataTypes.slice();if(p[1])for(o in e.converters)u[o.toLowerCase()]=e.converters[o];for(i=p.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=p.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(o=u[l+" "+i]||u["* "+i]))for(a in u)if((s=a.split(" "))[1]===i&&(o=u[l+" "+s[0]]||u["* "+s[0]])){!0===o?o=u[a]:!0!==u[a]&&(i=s[0],p.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(d,S,k,u),u?(d.ifModified&&((T=k.getResponseHeader("Last-Modified"))&&(m.lastModified[i]=T),(T=k.getResponseHeader("etag"))&&(m.etag[i]=T)),204===t||"HEAD"===d.type?w="nocontent":304===t?w="notmodified":(w=S.state,f=S.data,u=!(h=S.error))):(h=w,!t&&w||(w="error",t<0&&(t=0))),k.status=t,k.statusText=(n||w)+"",u?y.resolveWith(g,[f,w,k]):y.rejectWith(g,[k,w,h]),k.statusCode(x),x=void 0,c&&v.trigger(u?"ajaxSuccess":"ajaxError",[k,d,u?f:h]),b.fireWith(g,[k,w]),c&&(v.trigger("ajaxComplete",[k,d]),--m.active||m.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return m.get(e,t,n,"json")},getScript:function(e,t){return m.get(e,void 0,t,"script")}}),m.each(["get","post"],function(e,t){m[t]=function(e,n,r,a){return m.isFunction(n)&&(a=a||r,r=n,n=void 0),m.ajax(m.extend({url:e,type:t,dataType:a,data:n,success:r},m.isPlainObject(e)&&e))}}),m._evalUrl=function(e){return m.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},m.fn.extend({wrapAll:function(e){var t;return this[0]&&(m.isFunction(e)&&(e=e.call(this[0])),t=m(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return m.isFunction(e)?this.each(function(t){m(this).wrapInner(e.call(this,t))}):this.each(function(){var t=m(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m.isFunction(e);return this.each(function(n){m(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){m(this).replaceWith(this.childNodes)}),this}}),m.expr.pseudos.hidden=function(e){return!m.expr.pseudos.visible(e)},m.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},m.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var At={0:200,1223:204},Ft=m.ajaxSettings.xhr();d.cors=!!Ft&&"withCredentials"in Ft,d.ajax=Ft=!!Ft,m.ajaxTransport(function(t){var n,r;if(d.cors||Ft&&!t.crossDomain)return{send:function(a,i){var o,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];for(o in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)s.setRequestHeader(o,a[o]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(At[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),m.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return m.globalEval(e),e}}}),m.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),m.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(a,i){t=m("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}});var Nt=[],It=/(=)\?(?=&|$)|\?\?/;function Mt(e){return m.isWindow(e)?e:9===e.nodeType&&e.defaultView}m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Nt.pop()||m.expando+"_"+ft++;return this[e]=!0,e}}),m.ajaxPrefilter("json jsonp",function(t,n,r){var a,i,o,s=!1!==t.jsonp&&(It.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&It.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return a=t.jsonpCallback=m.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(It,"$1"+a):!1!==t.jsonp&&(t.url+=(ht.test(t.url)?"&":"?")+t.jsonp+"="+a),t.converters["script json"]=function(){return o||m.error(a+" was not called"),o[0]},t.dataTypes[0]="json",i=e[a],e[a]=function(){o=arguments},r.always(function(){void 0===i?m(e).removeProp(a):e[a]=i,t[a]&&(t.jsonpCallback=n.jsonpCallback,Nt.push(a)),o&&m.isFunction(i)&&i(o[0]),o=i=void 0}),"script"}),d.createHTMLDocument=function(){var e=r.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),m.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((a=(t=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,t.head.appendChild(a)):t=r),o=!n&&[],(i=O.exec(e))?[t.createElement(i[1])]:(i=fe([e],t,o),o&&o.length&&m(o).remove(),m.merge([],i.childNodes)));var a,i,o},m.fn.load=function(e,t,n){var r,a,i,o=this,s=e.indexOf(" ");return s>-1&&(r=st(e.slice(s)),e=e.slice(0,s)),m.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),o.length>0&&m.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done(function(e){i=arguments,o.html(r?m("<div>").append(m.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){m.fn[t]=function(e){return this.on(t,e)}}),m.expr.pseudos.animated=function(e){return m.grep(m.timers,function(t){return e===t.elem}).length},m.offset={setOffset:function(e,t,n){var r,a,i,o,s,l,u=m.css(e,"position"),p=m(e),c={};"static"===u&&(e.style.position="relative"),s=p.offset(),i=m.css(e,"top"),l=m.css(e,"left"),("absolute"===u||"fixed"===u)&&(i+l).indexOf("auto")>-1?(o=(r=p.position()).top,a=r.left):(o=parseFloat(i)||0,a=parseFloat(l)||0),m.isFunction(t)&&(t=t.call(e,n,m.extend({},s))),null!=t.top&&(c.top=t.top-s.top+o),null!=t.left&&(c.left=t.left-s.left+a),"using"in t?t.using.call(e,c):p.css(c)}},m.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){m.offset.setOffset(this,e,t)});var t,n,r,a,i=this[0];return i?i.getClientRects().length?(r=i.getBoundingClientRect()).width||r.height?(n=Mt(a=i.ownerDocument),t=a.documentElement,{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===m.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),m.nodeName(e[0],"html")||(r=e.offset()),r={top:r.top+m.css(e[0],"borderTopWidth",!0),left:r.left+m.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-m.css(n,"marginTop",!0),left:t.left-r.left-m.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===m.css(e,"position");)e=e.offsetParent;return e||he})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;m.fn[e]=function(r){return j(this,function(e,r,a){var i=Mt(e);return void 0===a?i?i[t]:e[r]:void(i?i.scrollTo(n?i.pageXOffset:a,n?a:i.pageYOffset):e[r]=a)},e,r,arguments.length)}}),m.each(["top","left"],function(e,t){m.cssHooks[t]=Be(d.pixelPosition,function(e,n){if(n)return n=Me(e,t),Ne.test(n)?m(e).position()[t]+"px":n})}),m.each({Height:"height",Width:"width"},function(e,t){m.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){m.fn[r]=function(a,i){var o=arguments.length&&(n||"boolean"!=typeof a),s=n||(!0===a||!0===i?"margin":"border");return j(this,function(t,n,a){var i;return m.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===a?m.css(t,n,s):m.style(t,n,a,s)},t,o?a:void 0,o)}})}),m.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),m.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var Bt=e.jQuery,Pt=e.$;return m.noConflict=function(t){return e.$===m&&(e.$=Pt),t&&e.jQuery===m&&(e.jQuery=Bt),m},t||(e.jQuery=e.$=m),m}),function(){var e=this,t=e._,n=Array.prototype,r=Object.prototype,a=Function.prototype,i=n.push,o=n.slice,s=r.toString,l=r.hasOwnProperty,u=Array.isArray,p=Object.keys,c=a.bind,f=Object.create,h=function(){},d=function(e){return e instanceof d?e:this instanceof d?void(this._wrapped=e):new d(e)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=d),exports._=d):e._=d,d.VERSION="1.8.3";var g=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)};case 4:return function(n,r,a,i){return e.call(t,n,r,a,i)}}return function(){return e.apply(t,arguments)}},v=function(e,t,n){return null==e?d.identity:d.isFunction(e)?g(e,t,n):d.isObject(e)?d.matcher(e):d.property(e)};d.iteratee=function(e,t){return v(e,t,1/0)};var m=function(e,t){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var a=1;a<r;a++)for(var i=arguments[a],o=e(i),s=o.length,l=0;l<s;l++){var u=o[l];t&&void 0!==n[u]||(n[u]=i[u])}return n}},y=function(e){if(!d.isObject(e))return{};if(f)return f(e);h.prototype=e;var t=new h;return h.prototype=null,t},b=function(e){return function(t){return null==t?void 0:t[e]}},x=Math.pow(2,53)-1,S=b("length"),T=function(e){var t=S(e);return"number"==typeof t&&t>=0&&t<=x};function w(e){return function(t,n,r,a){n=g(n,a,4);var i=!T(t)&&d.keys(t),o=(i||t).length,s=e>0?0:o-1;return arguments.length<3&&(r=t[i?i[s]:s],s+=e),function(t,n,r,a,i,o){for(;i>=0&&i<o;i+=e){var s=a?a[i]:i;r=n(r,t[s],s,t)}return r}(t,n,r,i,s,o)}}d.each=d.forEach=function(e,t,n){var r,a;if(t=g(t,n),T(e))for(r=0,a=e.length;r<a;r++)t(e[r],r,e);else{var i=d.keys(e);for(r=0,a=i.length;r<a;r++)t(e[i[r]],i[r],e)}return e},d.map=d.collect=function(e,t,n){t=v(t,n);for(var r=!T(e)&&d.keys(e),a=(r||e).length,i=Array(a),o=0;o<a;o++){var s=r?r[o]:o;i[o]=t(e[s],s,e)}return i},d.reduce=d.foldl=d.inject=w(1),d.reduceRight=d.foldr=w(-1),d.find=d.detect=function(e,t,n){var r;if(void 0!==(r=T(e)?d.findIndex(e,t,n):d.findKey(e,t,n))&&-1!==r)return e[r]},d.filter=d.select=function(e,t,n){var r=[];return t=v(t,n),d.each(e,function(e,n,a){t(e,n,a)&&r.push(e)}),r},d.reject=function(e,t,n){return d.filter(e,d.negate(v(t)),n)},d.every=d.all=function(e,t,n){t=v(t,n);for(var r=!T(e)&&d.keys(e),a=(r||e).length,i=0;i<a;i++){var o=r?r[i]:i;if(!t(e[o],o,e))return!1}return!0},d.some=d.any=function(e,t,n){t=v(t,n);for(var r=!T(e)&&d.keys(e),a=(r||e).length,i=0;i<a;i++){var o=r?r[i]:i;if(t(e[o],o,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,n,r){return T(e)||(e=d.values(e)),("number"!=typeof n||r)&&(n=0),d.indexOf(e,t,n)>=0},d.invoke=function(e,t){var n=o.call(arguments,2),r=d.isFunction(t);return d.map(e,function(e){var a=r?t:e[t];return null==a?a:a.apply(e,n)})},d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,t,n){var r,a,i=-1/0,o=-1/0;if(null==t&&null!=e)for(var s=0,l=(e=T(e)?e:d.values(e)).length;s<l;s++)(r=e[s])>i&&(i=r);else t=v(t,n),d.each(e,function(e,n,r){((a=t(e,n,r))>o||a===-1/0&&i===-1/0)&&(i=e,o=a)});return i},d.min=function(e,t,n){var r,a,i=1/0,o=1/0;if(null==t&&null!=e)for(var s=0,l=(e=T(e)?e:d.values(e)).length;s<l;s++)(r=e[s])<i&&(i=r);else t=v(t,n),d.each(e,function(e,n,r){((a=t(e,n,r))<o||a===1/0&&i===1/0)&&(i=e,o=a)});return i},d.shuffle=function(e){for(var t,n=T(e)?e:d.values(e),r=n.length,a=Array(r),i=0;i<r;i++)(t=d.random(0,i))!==i&&(a[i]=a[t]),a[t]=n[i];return a},d.sample=function(e,t,n){return null==t||n?(T(e)||(e=d.values(e)),e[d.random(e.length-1)]):d.shuffle(e).slice(0,Math.max(0,t))},d.sortBy=function(e,t,n){return t=v(t,n),d.pluck(d.map(e,function(e,n,r){return{value:e,index:n,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")};var k=function(e){return function(t,n,r){var a={};return n=v(n,r),d.each(t,function(r,i){var o=n(r,i,t);e(a,r,o)}),a}};d.groupBy=k(function(e,t,n){d.has(e,n)?e[n].push(t):e[n]=[t]}),d.indexBy=k(function(e,t,n){e[n]=t}),d.countBy=k(function(e,t,n){d.has(e,n)?e[n]++:e[n]=1}),d.toArray=function(e){return e?d.isArray(e)?o.call(e):T(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return null==e?0:T(e)?e.length:d.keys(e).length},d.partition=function(e,t,n){t=v(t,n);var r=[],a=[];return d.each(e,function(e,n,i){(t(e,n,i)?r:a).push(e)}),[r,a]},d.first=d.head=d.take=function(e,t,n){if(null!=e)return null==t||n?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,n){return o.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},d.last=function(e,t,n){if(null!=e)return null==t||n?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,n){return o.call(e,null==t||n?1:t)},d.compact=function(e){return d.filter(e,d.identity)};var E=function(e,t,n,r){for(var a=[],i=0,o=r||0,s=S(e);o<s;o++){var l=e[o];if(T(l)&&(d.isArray(l)||d.isArguments(l))){t||(l=E(l,t,n));var u=0,p=l.length;for(a.length+=p;u<p;)a[i++]=l[u++]}else n||(a[i++]=l)}return a};function C(e){return function(t,n,r){n=v(n,r);for(var a=S(t),i=e>0?0:a-1;i>=0&&i<a;i+=e)if(n(t[i],i,t))return i;return-1}}function O(e,t,n){return function(r,a,i){var s=0,l=S(r);if("number"==typeof i)e>0?s=i>=0?i:Math.max(i+l,s):l=i>=0?Math.min(i+1,l):i+l+1;else if(n&&i&&l)return r[i=n(r,a)]===a?i:-1;if(a!=a)return(i=t(o.call(r,s,l),d.isNaN))>=0?i+s:-1;for(i=e>0?s:l-1;i>=0&&i<l;i+=e)if(r[i]===a)return i;return-1}}d.flatten=function(e,t){return E(e,t,!1)},d.without=function(e){return d.difference(e,o.call(arguments,1))},d.uniq=d.unique=function(e,t,n,r){d.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=v(n,r));for(var a=[],i=[],o=0,s=S(e);o<s;o++){var l=e[o],u=n?n(l,o,e):l;t?(o&&i===u||a.push(l),i=u):n?d.contains(i,u)||(i.push(u),a.push(l)):d.contains(a,l)||a.push(l)}return a},d.union=function(){return d.uniq(E(arguments,!0,!0))},d.intersection=function(e){for(var t=[],n=arguments.length,r=0,a=S(e);r<a;r++){var i=e[r];if(!d.contains(t,i)){for(var o=1;o<n&&d.contains(arguments[o],i);o++);o===n&&t.push(i)}}return t},d.difference=function(e){var t=E(arguments,!0,!0,1);return d.filter(e,function(e){return!d.contains(t,e)})},d.zip=function(){return d.unzip(arguments)},d.unzip=function(e){for(var t=e&&d.max(e,S).length||0,n=Array(t),r=0;r<t;r++)n[r]=d.pluck(e,r);return n},d.object=function(e,t){for(var n={},r=0,a=S(e);r<a;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},d.findIndex=C(1),d.findLastIndex=C(-1),d.sortedIndex=function(e,t,n,r){for(var a=(n=v(n,r,1))(t),i=0,o=S(e);i<o;){var s=Math.floor((i+o)/2);n(e[s])<a?i=s+1:o=s}return i},d.indexOf=O(1,d.findIndex,d.sortedIndex),d.lastIndexOf=O(-1,d.findLastIndex),d.range=function(e,t,n){null==t&&(t=e||0,e=0),n=n||1;for(var r=Math.max(Math.ceil((t-e)/n),0),a=Array(r),i=0;i<r;i++,e+=n)a[i]=e;return a};var U=function(e,t,n,r,a){if(!(r instanceof t))return e.apply(n,a);var i=y(e.prototype),o=e.apply(i,a);return d.isObject(o)?o:i};d.bind=function(e,t){if(c&&e.bind===c)return c.apply(e,o.call(arguments,1));if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var n=o.call(arguments,2),r=function(){return U(e,r,t,this,n.concat(o.call(arguments)))};return r},d.partial=function(e){var t=o.call(arguments,1),n=function(){for(var r=0,a=t.length,i=Array(a),o=0;o<a;o++)i[o]=t[o]===d?arguments[r++]:t[o];for(;r<arguments.length;)i.push(arguments[r++]);return U(e,n,this,this,i)};return n},d.bindAll=function(e){var t,n,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(t=1;t<r;t++)e[n=arguments[t]]=d.bind(e[n],e);return e},d.memoize=function(e,t){var n=function(r){var a=n.cache,i=""+(t?t.apply(this,arguments):r);return d.has(a,i)||(a[i]=e.apply(this,arguments)),a[i]};return n.cache={},n},d.delay=function(e,t){var n=o.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},d.defer=d.partial(d.delay,d,1),d.throttle=function(e,t,n){var r,a,i,o=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:d.now(),o=null,i=e.apply(r,a),o||(r=a=null)};return function(){var u=d.now();s||!1!==n.leading||(s=u);var p=t-(u-s);return r=this,a=arguments,p<=0||p>t?(o&&(clearTimeout(o),o=null),s=u,i=e.apply(r,a),o||(r=a=null)):o||!1===n.trailing||(o=setTimeout(l,p)),i}},d.debounce=function(e,t,n){var r,a,i,o,s,l=function(){var u=d.now()-o;u<t&&u>=0?r=setTimeout(l,t-u):(r=null,n||(s=e.apply(i,a),r||(i=a=null)))};return function(){i=this,a=arguments,o=d.now();var u=n&&!r;return r||(r=setTimeout(l,t)),u&&(s=e.apply(i,a),i=a=null),s}},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},d.once=d.partial(d.before,2);var L=!{toString:null}.propertyIsEnumerable("toString"),D=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function R(e,t){var n=D.length,a=e.constructor,i=d.isFunction(a)&&a.prototype||r,o="constructor";for(d.has(e,o)&&!d.contains(t,o)&&t.push(o);n--;)(o=D[n])in e&&e[o]!==i[o]&&!d.contains(t,o)&&t.push(o)}d.keys=function(e){if(!d.isObject(e))return[];if(p)return p(e);var t=[];for(var n in e)d.has(e,n)&&t.push(n);return L&&R(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var n in e)t.push(n);return L&&R(e,t),t},d.values=function(e){for(var t=d.keys(e),n=t.length,r=Array(n),a=0;a<n;a++)r[a]=e[t[a]];return r},d.mapObject=function(e,t,n){t=v(t,n);for(var r,a=d.keys(e),i=a.length,o={},s=0;s<i;s++)o[r=a[s]]=t(e[r],r,e);return o},d.pairs=function(e){for(var t=d.keys(e),n=t.length,r=Array(n),a=0;a<n;a++)r[a]=[t[a],e[t[a]]];return r},d.invert=function(e){for(var t={},n=d.keys(e),r=0,a=n.length;r<a;r++)t[e[n[r]]]=n[r];return t},d.functions=d.methods=function(e){var t=[];for(var n in e)d.isFunction(e[n])&&t.push(n);return t.sort()},d.extend=m(d.allKeys),d.extendOwn=d.assign=m(d.keys),d.findKey=function(e,t,n){t=v(t,n);for(var r,a=d.keys(e),i=0,o=a.length;i<o;i++)if(t(e[r=a[i]],r,e))return r},d.pick=function(e,t,n){var r,a,i={},o=e;if(null==o)return i;d.isFunction(t)?(a=d.allKeys(o),r=g(t,n)):(a=E(arguments,!1,!1,1),r=function(e,t,n){return t in n},o=Object(o));for(var s=0,l=a.length;s<l;s++){var u=a[s],p=o[u];r(p,u,o)&&(i[u]=p)}return i},d.omit=function(e,t,n){if(d.isFunction(t))t=d.negate(t);else{var r=d.map(E(arguments,!1,!1,1),String);t=function(e,t){return!d.contains(r,t)}}return d.pick(e,t,n)},d.defaults=m(d.allKeys,!0),d.create=function(e,t){var n=y(e);return t&&d.extendOwn(n,t),n},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var n=d.keys(t),r=n.length;if(null==e)return!r;for(var a=Object(e),i=0;i<r;i++){var o=n[i];if(t[o]!==a[o]||!(o in a))return!1}return!0};var A=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var a=s.call(e);if(a!==s.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}var i="[object Array]"===a;if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,l=t.constructor;if(o!==l&&!(d.isFunction(o)&&o instanceof o&&d.isFunction(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var u=(n=n||[]).length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),i){if((u=e.length)!==t.length)return!1;for(;u--;)if(!A(e[u],t[u],n,r))return!1}else{var p,c=d.keys(e);if(u=c.length,d.keys(t).length!==u)return!1;for(;u--;)if(p=c[u],!d.has(t,p)||!A(e[p],t[p],n,r))return!1}return n.pop(),r.pop(),!0};d.isEqual=function(e,t){return A(e,t)},d.isEmpty=function(e){return null==e||(T(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?0===e.length:0===d.keys(e).length)},d.isElement=function(e){return!(!e||1!==e.nodeType)},d.isArray=u||function(e){return"[object Array]"===s.call(e)},d.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){d["is"+e]=function(t){return s.call(t)==="[object "+e+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return d.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(d.isFunction=function(e){return"function"==typeof e||!1}),d.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&e!==+e},d.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===s.call(e)},d.isNull=function(e){return null===e},d.isUndefined=function(e){return void 0===e},d.has=function(e,t){return null!=e&&l.call(e,t)},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=b,d.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},d.matcher=d.matches=function(e){return e=d.extendOwn({},e),function(t){return d.isMatch(t,e)}},d.times=function(e,t,n){var r=Array(Math.max(0,e));t=g(t,n,1);for(var a=0;a<e;a++)r[a]=t(a);return r},d.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};var F={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},N=d.invert(F),I=function(e){var t=function(t){return e[t]},n="(?:"+d.keys(e).join("|")+")",r=RegExp(n),a=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(a,t):e}};d.escape=I(F),d.unescape=I(N),d.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),d.isFunction(r)?r.call(e):r};var M=0;d.uniqueId=function(e){var t=++M+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var B=/(.)^/,P={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},_=/\\|'|\r|\n|\u2028|\u2029/g,G=function(e){return"\\"+P[e]};d.template=function(e,t,n){!t&&n&&(t=n),t=d.defaults({},t,d.templateSettings);var r=RegExp([(t.escape||B).source,(t.interpolate||B).source,(t.evaluate||B).source].join("|")+"|$","g"),a=0,i="__p+='";e.replace(r,function(t,n,r,o,s){return i+=e.slice(a,s).replace(_,G),a=s+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var o=new Function(t.variable||"obj","_",i)}catch(e){throw e.source=i,e}var s=function(e){return o.call(this,e,d)},l=t.variable||"obj";return s.source="function("+l+"){\n"+i+"}",s},d.chain=function(e){var t=d(e);return t._chain=!0,t};var H=function(e,t){return e._chain?d(t).chain():t};d.mixin=function(e){d.each(d.functions(e),function(t){var n=d[t]=e[t];d.prototype[t]=function(){var e=[this._wrapped];return i.apply(e,arguments),H(this,n.apply(d,e))}})},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=n[e];d.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],H(this,n)}}),d.each(["concat","join","slice"],function(e){var t=n[e];d.prototype[e]=function(){return H(this,t.apply(this._wrapped,arguments))}}),d.prototype.value=function(){return this._wrapped},d.prototype.valueOf=d.prototype.toJSON=d.prototype.value,d.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}.call(this),function(){var e,t=this,n=t.Backbone,r=[],a=r.slice;(e="undefined"!=typeof exports?exports:t.Backbone={}).VERSION="1.1.0";var i=t._;i||"undefined"==typeof require||(i=require("underscore")),e.$=t.jQuery||t.Zepto||t.ender||t.$,e.noConflict=function(){return t.Backbone=n,this},e.emulateHTTP=!1,e.emulateJSON=!1;var o=e.Events={on:function(e,t,n){return l(this,"on",e,[t,n])&&t?(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:t,context:n,ctx:n||this}),this):this},once:function(e,t,n){if(!l(this,"once",e,[t,n])||!t)return this;var r=this,a=i.once(function(){r.off(e,a),t.apply(this,arguments)});return a._callback=t,this.on(e,a,n)},off:function(e,t,n){var r,a,o,s,u,p,c,f;if(!this._events||!l(this,"off",e,[t,n]))return this;if(!e&&!t&&!n)return this._events={},this;for(u=0,p=(s=e?[e]:i.keys(this._events)).length;u<p;u++)if(e=s[u],o=this._events[e]){if(this._events[e]=r=[],t||n)for(c=0,f=o.length;c<f;c++)a=o[c],(t&&t!==a.callback&&t!==a.callback._callback||n&&n!==a.context)&&r.push(a);r.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=a.call(arguments,1);if(!l(this,"trigger",e,t))return this;var n=this._events[e],r=this._events.all;return n&&u(n,t),r&&u(r,arguments),this},stopListening:function(e,t,n){var r=this._listeningTo;if(!r)return this;var a=!t&&!n;for(var o in n||"object"!=typeof t||(n=this),e&&((r={})[e._listenId]=e),r)(e=r[o]).off(t,n,this),(a||i.isEmpty(e._events))&&delete this._listeningTo[o];return this}},s=/\s+/,l=function(e,t,n,r){if(!n)return!0;if("object"==typeof n){for(var a in n)e[t].apply(e,[a,n[a]].concat(r));return!1}if(s.test(n)){for(var i=n.split(s),o=0,l=i.length;o<l;o++)e[t].apply(e,[i[o]].concat(r));return!1}return!0},u=function(e,t){var n,r=-1,a=e.length,i=t[0],o=t[1],s=t[2];switch(t.length){case 0:for(;++r<a;)(n=e[r]).callback.call(n.ctx);return;case 1:for(;++r<a;)(n=e[r]).callback.call(n.ctx,i);return;case 2:for(;++r<a;)(n=e[r]).callback.call(n.ctx,i,o);return;case 3:for(;++r<a;)(n=e[r]).callback.call(n.ctx,i,o,s);return;default:for(;++r<a;)(n=e[r]).callback.apply(n.ctx,t)}};i.each({listenTo:"on",listenToOnce:"once"},function(e,t){o[t]=function(t,n,r){return(this._listeningTo||(this._listeningTo={}))[t._listenId||(t._listenId=i.uniqueId("l"))]=t,r||"object"!=typeof n||(r=this),t[e](n,r,this),this}}),o.bind=o.on,o.unbind=o.off,i.extend(e,o);var p=e.Model=function(e,t){var n=e||{};t||(t={}),this.cid=i.uniqueId("c"),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(n=this.parse(n,t)||{}),n=i.defaults({},n,i.result(this,"defaults")),this.set(n,t),this.changed={},this.initialize.apply(this,arguments)};i.extend(p.prototype,o,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return i.escape(this.get(e))},has:function(e){return null!=this.get(e)},set:function(e,t,n){var r,a,o,s,l,u,p,c;if(null==e)return this;if("object"==typeof e?(a=e,n=t):(a={})[e]=t,n||(n={}),!this._validate(a,n))return!1;for(r in o=n.unset,l=n.silent,s=[],u=this._changing,this._changing=!0,u||(this._previousAttributes=i.clone(this.attributes),this.changed={}),c=this.attributes,p=this._previousAttributes,this.idAttribute in a&&(this.id=a[this.idAttribute]),a)t=a[r],i.isEqual(c[r],t)||s.push(r),i.isEqual(p[r],t)?delete this.changed[r]:this.changed[r]=t,o?delete c[r]:c[r]=t;if(!l){s.length&&(this._pending=!0);for(var f=0,h=s.length;f<h;f++)this.trigger("change:"+s[f],this,c[s[f]],n)}if(u)return this;if(!l)for(;this._pending;)this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,i.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var n in this.attributes)t[n]=void 0;return this.set(t,i.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!i.isEmpty(this.changed):i.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&i.clone(this.changed);var t,n=!1,r=this._changing?this._previousAttributes:this.attributes;for(var a in e)i.isEqual(r[a],t=e[a])||((n||(n={}))[a]=t);return n},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(e){void 0===(e=e?i.clone(e):{}).parse&&(e.parse=!0);var t=this,n=e.success;return e.success=function(r){if(!t.set(t.parse(r,e),e))return!1;n&&n(t,r,e),t.trigger("sync",t,r,e)},R(this,e),this.sync("read",this,e)},save:function(e,t,n){var r,a,o,s=this.attributes;if(null==e||"object"==typeof e?(r=e,n=t):(r={})[e]=t,n=i.extend({validate:!0},n),r&&!n.wait){if(!this.set(r,n))return!1}else if(!this._validate(r,n))return!1;r&&n.wait&&(this.attributes=i.extend({},s,r)),void 0===n.parse&&(n.parse=!0);var l=this,u=n.success;return n.success=function(e){l.attributes=s;var t=l.parse(e,n);if(n.wait&&(t=i.extend(r||{},t)),i.isObject(t)&&!l.set(t,n))return!1;u&&u(l,e,n),l.trigger("sync",l,e,n)},R(this,n),"patch"===(a=this.isNew()?"create":n.patch?"patch":"update")&&(n.attrs=r),o=this.sync(a,this,n),r&&n.wait&&(this.attributes=s),o},destroy:function(e){e=e?i.clone(e):{};var t=this,n=e.success,r=function(){t.trigger("destroy",t,t.collection,e)};if(e.success=function(a){(e.wait||t.isNew())&&r(),n&&n(t,a,e),t.isNew()||t.trigger("sync",t,a,e)},this.isNew())return e.success(),!1;R(this,e);var a=this.sync("delete",this,e);return e.wait||r(),a},url:function(){var e=i.result(this,"urlRoot")||i.result(this.collection,"url")||D();return this.isNew()?e:e+("/"===e.charAt(e.length-1)?"":"/")+encodeURIComponent(this.id)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return null==this.id},isValid:function(e){return this._validate({},i.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=i.extend({},this.attributes,e);var n=this.validationError=this.validate(e,t)||null;return!n||(this.trigger("invalid",this,n,i.extend(t,{validationError:n})),!1)}});i.each(["keys","values","pairs","invert","pick","omit"],function(e){p.prototype[e]=function(){var t=a.call(arguments);return t.unshift(this.attributes),i[e].apply(i,t)}});var c=e.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,i.extend({silent:!0},t))},f={add:!0,remove:!0,merge:!0},h={add:!0,remove:!1};i.extend(c.prototype,o,{model:p,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return e.sync.apply(this,arguments)},add:function(e,t){return this.set(e,i.extend({merge:!1},t,h))},remove:function(e,t){var n,r,a,o,s=!i.isArray(e);for(t||(t={}),n=0,r=(e=s?[e]:i.clone(e)).length;n<r;n++)(o=e[n]=this.get(e[n]))&&(delete this._byId[o.id],delete this._byId[o.cid],a=this.indexOf(o),this.models.splice(a,1),this.length--,t.silent||(t.index=a,o.trigger("remove",o,this,t)),this._removeReference(o));return s?e[0]:e},set:function(e,t){(t=i.defaults({},t,f)).parse&&(e=this.parse(e,t));var n,r,a,o,s,l,u,c=!i.isArray(e);e=c?e?[e]:[]:i.clone(e);var h=t.at,d=this.model,g=this.comparator&&null==h&&!1!==t.sort,v=i.isString(this.comparator)?this.comparator:null,m=[],y=[],b={},x=t.add,S=t.merge,T=t.remove,w=!(g||!x||!T)&&[];for(n=0,r=e.length;n<r;n++){if(a=(s=e[n])instanceof p?o=s:s[d.prototype.idAttribute],l=this.get(a))T&&(b[l.cid]=!0),S&&(s=s===o?o.attributes:s,t.parse&&(s=l.parse(s,t)),l.set(s,t),g&&!u&&l.hasChanged(v)&&(u=!0)),e[n]=l;else if(x){if(!(o=e[n]=this._prepareModel(s,t)))continue;m.push(o),o.on("all",this._onModelEvent,this),this._byId[o.cid]=o,null!=o.id&&(this._byId[o.id]=o)}w&&w.push(l||o)}if(T){for(n=0,r=this.length;n<r;++n)b[(o=this.models[n]).cid]||y.push(o);y.length&&this.remove(y,t)}if(m.length||w&&w.length)if(g&&(u=!0),this.length+=m.length,null!=h)for(n=0,r=m.length;n<r;n++)this.models.splice(h+n,0,m[n]);else{w&&(this.models.length=0);var k=w||m;for(n=0,r=k.length;n<r;n++)this.models.push(k[n])}if(u&&this.sort({silent:!0}),!t.silent){for(n=0,r=m.length;n<r;n++)(o=m[n]).trigger("add",o,this,t);(u||w&&w.length)&&this.trigger("sort",this,t)}return c?e[0]:e},reset:function(e,t){t||(t={});for(var n=0,r=this.models.length;n<r;n++)this._removeReference(this.models[n]);return t.previousModels=this.models,this._reset(),e=this.add(e,i.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,i.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e),t},unshift:function(e,t){return this.add(e,i.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(){return a.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e.id]||this._byId[e.cid]||this._byId[e]},at:function(e){return this.models[e]},where:function(e,t){return i.isEmpty(e)?t?void 0:[]:this[t?"find":"filter"](function(t){for(var n in e)if(e[n]!==t.get(n))return!1;return!0})},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e||(e={}),i.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(i.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return i.invoke(this.models,"get",e)},fetch:function(e){void 0===(e=e?i.clone(e):{}).parse&&(e.parse=!0);var t=e.success,n=this;return e.success=function(r){var a=e.reset?"reset":"set";n[a](r,e),t&&t(n,r,e),n.trigger("sync",n,r,e)},R(this,e),this.sync("read",this,e)},create:function(e,t){if(t=t?i.clone(t):{},!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var n=this,r=t.success;return t.success=function(e,t,a){a.wait&&n.add(e,a),r&&r(e,t,a)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(e instanceof p)return e.collection||(e.collection=this),e;(t=t?i.clone(t):{}).collection=this;var n=new this.model(e,t);return n.validationError?(this.trigger("invalid",this,n.validationError,t),!1):n},_removeReference:function(e){this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){("add"!==e&&"remove"!==e||n===this)&&("destroy"===e&&this.remove(t,r),t&&e==="change:"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],null!=t.id&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments))}});i.each(["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain"],function(e){c.prototype[e]=function(){var t=a.call(arguments);return t.unshift(this.models),i[e].apply(i,t)}});i.each(["groupBy","countBy","sortBy"],function(e){c.prototype[e]=function(t,n){var r=i.isFunction(t)?t:function(e){return e.get(t)};return i[e](this.models,r,n)}});var d=e.View=function(e){this.cid=i.uniqueId("view"),e||(e={}),i.extend(this,i.pick(e,v)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},g=/^(\S+)\s*(.*)$/,v=["model","collection","el","id","attributes","className","tagName","events"];i.extend(d.prototype,o,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,n){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],!1!==n&&this.delegateEvents(),this},delegateEvents:function(e){if(!e&&!(e=i.result(this,"events")))return this;for(var t in this.undelegateEvents(),e){var n=e[t];if(i.isFunction(n)||(n=this[e[t]]),n){var r=t.match(g),a=r[1],o=r[2];n=i.bind(n,this),a+=".delegateEvents"+this.cid,""===o?this.$el.on(a,n):this.$el.on(a,o,n)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"),!1);else{var t=i.extend({},i.result(this,"attributes"));this.id&&(t.id=i.result(this,"id")),this.className&&(t.class=i.result(this,"className"));var n=e.$("<"+i.result(this,"tagName")+">").attr(t);this.setElement(n,!1)}}}),e.sync=function(t,n,r){var a=y[t];i.defaults(r||(r={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var o={type:a,dataType:"json"};if(r.url||(o.url=i.result(n,"url")||D()),null!=r.data||!n||"create"!==t&&"update"!==t&&"patch"!==t||(o.contentType="application/json",o.data=JSON.stringify(r.attrs||n.toJSON(r))),r.emulateJSON&&(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{}),r.emulateHTTP&&("PUT"===a||"DELETE"===a||"PATCH"===a)){o.type="POST",r.emulateJSON&&(o.data._method=a);var s=r.beforeSend;r.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",a),s)return s.apply(this,arguments)}}"GET"===o.type||r.emulateJSON||(o.processData=!1),"PATCH"===o.type&&m&&(o.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=r.xhr=e.ajax(i.extend(o,r));return n.trigger("request",n,l,r),l};var m=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),y={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var b=e.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},x=/\((.*?)\)/g,S=/(\(\?)?:\w+/g,T=/\*\w+/g,w=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(b.prototype,o,{initialize:function(){},route:function(t,n,r){i.isRegExp(t)||(t=this._routeToRegExp(t)),i.isFunction(n)&&(r=n,n=""),r||(r=this[n]);var a=this;return e.history.route(t,function(i){var o=a._extractParameters(t,i);r&&r.apply(a,o),a.trigger.apply(a,["route:"+n].concat(o)),a.trigger("route",n,o),e.history.trigger("route",a,n,o)}),this},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var e,t=i.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(w,"\\$&").replace(x,"(?:$1)?").replace(S,function(e,t){return t?e:"([^/]+)"}).replace(T,"(.*?)"),new RegExp("^"+e+"$")},_extractParameters:function(e,t){var n=e.exec(t).slice(1);return i.map(n,function(e){return e?decodeURIComponent(e):null})}});var k=e.History=function(){this.handlers=[],i.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},E=/^[#\/]|\s+$/g,C=/^\/+|\/+$/g,O=/msie [\w.]+/,U=/\/$/,L=/[?#].*$/;k.started=!1,i.extend(k.prototype,o,{interval:50,getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getFragment:function(e,t){if(null==e)if(this._hasPushState||!this._wantsHashChange||t){e=this.location.pathname;var n=this.root.replace(U,"");e.indexOf(n)||(e=e.slice(n.length))}else e=this.getHash();return e.replace(E,"")},start:function(t){if(k.started)throw new Error("Backbone.history has already been started");k.started=!0,this.options=i.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var n=this.getFragment(),r=document.documentMode,a=O.exec(navigator.userAgent.toLowerCase())&&(!r||r<=7);this.root=("/"+this.root+"/").replace(C,"/"),a&&this._wantsHashChange&&(this.iframe=e.$('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(n)),this._hasPushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!a?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=n;var o=this.location,s=o.pathname.replace(/[^\/]$/,"$&/")===this.root;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!s)return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+"#"+this.fragment),!0;this._hasPushState&&s&&o.hash&&(this.fragment=this.getHash().replace(E,""),this.history.replaceState({},document.title,this.root+this.fragment+o.search))}if(!this.options.silent)return this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),clearInterval(this._checkUrlInterval),k.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return e=this.fragment=this.getFragment(e),i.any(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0})},navigate:function(e,t){if(!k.started)return!1;t&&!0!==t||(t={trigger:!!t});var n=this.root+(e=this.getFragment(e||""));if(e=e.replace(L,""),this.fragment!==e){if(this.fragment=e,""===e&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),e.history=new k;p.extend=c.extend=b.extend=d.extend=k.extend=function(e,t){var n,r=this;n=e&&i.has(e,"constructor")?e.constructor:function(){return r.apply(this,arguments)},i.extend(n,r,t);var a=function(){this.constructor=n};return a.prototype=r.prototype,n.prototype=new a,e&&i.extend(n.prototype,e),n.__super__=r.prototype,n};var D=function(){throw new Error('A "url" property or function must be specified')},R=function(e,t){var n=t.error;t.error=function(r){n&&n(e,r,t),e.trigger("error",e,r,t)}}}.call(this),function(e,t){if("function"==typeof define&&define.amd)define(["underscore","backbone"],function(n,r){return t(e,r,n)});else if("undefined"!=typeof exports){var n=require("underscore"),r=require("backbone");t(e,r,n),"undefined"!=typeof module&&module.exports&&(module.exports=r),exports=r}else t(e,e.Backbone,e._)}(this,function(e,t,n){"use strict";var r,a,i,o,s,l,u,p,c,f,h,d={};r=t.Model,a=t.Collection,i=r.prototype,s=a.prototype,o=t.Events,t.Associations={VERSION:"0.6.1"},t.Associations.scopes=[];var g=function(){return c},v=function(e){if(e){var t=n.isString(e);(!t||t&&e.length<1)&&(e=".")}else e=".";c=e,u=new RegExp("[\\"+c+"\\[\\]]+","g"),p=new RegExp("[^\\"+c+"\\[\\]]+","g")};try{Object.defineProperty(t.Associations,"SEPARATOR",{enumerable:!0,get:g,set:v})}catch(e){}t.Associations.Many=t.Many="Many",t.Associations.One=t.One="One",t.Associations.Self=t.Self="Self",t.Associations.SEPARATOR=".",t.Associations.getSeparator=g,t.Associations.setSeparator=v,t.Associations.EVENTS_BUBBLE=!0,t.Associations.EVENTS_WILDCARD=!0,t.Associations.EVENTS_NC=!1,v(),l=t.AssociatedModel=t.Associations.AssociatedModel=r.extend({relations:void 0,_proxyCalls:void 0,on:function(e,r,a){var i=o.on.apply(this,arguments);if(t.Associations.EVENTS_NC)return i;if(n.isString(e)&&e&&!/\s+/.test(e)&&r){var s=y(e);s&&(d[s]=void 0===d[s]?1:d[s]+1)}return i},off:function(e,r,a){if(t.Associations.EVENTS_NC)return o.off.apply(this,arguments);var i=this._events,s={},l=i?n.keys(i):[],u=!e&&!r&&!a,p=n.isString(e)&&!/\s+/.test(e);if(u||p)for(var c=0,f=l.length;c<f;c++)s[l[c]]=i[l[c]]?i[l[c]].length:0;var h=o.off.apply(this,arguments);if(u||p)for(c=0,f=l.length;c<f;c++){var g=y(l[c]);g&&(i[l[c]]?d[g]-=s[l[c]]-i[l[c]].length:d[g]-=s[l[c]])}return h},get:function(e){var t=i.get.call(this,e);return t||this._getAttr.apply(this,arguments)},set:function(e,t,r){var a,i;return n.isObject(e)||null==e?(a=e,r=t):(a={})[e]=t,i=this._set(a,r),this._processPendingEvents(),i},_set:function(e,t){var r,a,i,o,s=this;if(!e)return this;for(r in e)if(a||(a={}),r.match(u)){var p=m(r),c=n.initial(p),f=p[p.length-1],h=this.get(c);h instanceof l&&((o=a[h.cid]||(a[h.cid]={model:h,data:{}})).data[f]=e[r])}else(o=a[this.cid]||(a[this.cid]={model:this,data:{}})).data[r]=e[r];if(a)for(i in a)o=a[i],this._setAttr.call(o.model,o.data,t)||(s=!1);else s=this._setAttr.call(this,e,t);return s},_setAttr:function(o,s){var u;if(s||(s={}),s.unset)for(u in o)o[u]=void 0;return this.parents=this.parents||[],this.relations&&n.each(this.relations,function(i){var u,p,c,f,h=i.key,d=i.relatedModel,g=i.collectionType,v=i.scope||e,m=i.map,y=this.attributes[h],x=y&&y.idAttribute,S=!1;if(!d||d.prototype instanceof r||(d=n.isFunction(d)?d.call(this,i,o):d),d&&n.isString(d)&&(d=d===t.Self?this.constructor:b(d,v)),m&&n.isString(m)&&(m=b(m,v)),p=i.options?n.extend({},i.options,s):s,o[h]){if(u=n.result(o,h),u=m?m.call(this,u,g||d):u,i.type===t.Many){if(g&&n.isFunction(g)&&g.prototype instanceof r)throw new Error("type is of Backbone.Model. Specify derivatives of Backbone.Collection");if(!g||g.prototype instanceof a||(g=n.isFunction(g)?g.call(this,i,o):g),g&&n.isString(g)&&(g=b(g,v)),!d&&!g)throw new Error("specify either a relatedModel or collectionType");if(g&&!g.prototype instanceof a)throw new Error("collectionType must inherit from Backbone.Collection");y?(y._deferEvents=!0,y[p.reset?"reset":"set"](u instanceof a?u.models:u,p),c=y):(S=!0,u instanceof a?c=u:(c=g?new g:this._createCollection(d,v))[p.reset?"reset":"set"](u,p))}else{if(i.type!==t.One)throw new Error("type attribute must be specified and have the values Backbone.One or Backbone.Many");if(!d)throw new Error("specify a relatedModel for Backbone.One type");if(!(d.prototype instanceof t.AssociatedModel))throw new Error("specify an AssociatedModel for Backbone.One type");c=u instanceof l?u:new d(u,p),y&&c.attributes[x]&&y.attributes[x]===c.attributes[x]?(y._deferEvents=!0,y._set(u instanceof l?u.attributes:u,p),c=y):S=!0}o[h]=c,f=c,(S||f&&!f._proxyCallback)&&(f._proxyCallback=function(){return t.Associations.EVENTS_BUBBLE&&this._bubbleEvent.call(this,h,f,arguments)},f.on("all",f._proxyCallback,this))}if(o.hasOwnProperty(h)){var T=o[h],w=this.attributes[h];T?(T.parents=T.parents||[],-1==n.indexOf(T.parents,this)&&T.parents.push(this)):w&&w.parents.length>0&&(w.parents=n.difference(w.parents,[this]),w._proxyCallback&&w.off("all",w._proxyCallback,this))}},this),i.set.call(this,o,s)},_bubbleEvent:function(e,n,i){var o,s,l=i,u=l[0].split(":"),p=u[0],g="nested-change"==l[0],v="change"===p,m=l[1],b=-1,x=n._proxyCalls,S=u[1],T=!S||-1==S.indexOf(c);if(!g&&(T&&(h=y(l[0])||e),t.Associations.EVENTS_NC||d[h])){if(t.Associations.EVENTS_WILDCARD&&/\[\*\]/g.test(S))return this;if(n instanceof a&&(v||S)&&(b=n.indexOf(f||m)),this instanceof r&&(f=this),S=e+(-1!==b&&(v||S)?"["+b+"]":"")+(S?c+S:""),t.Associations.EVENTS_WILDCARD&&(s=S.replace(/\[\d+\]/g,"[*]")),(o=[]).push.apply(o,l),o[0]=p+":"+S,t.Associations.EVENTS_WILDCARD&&S!==s&&(o[0]=o[0]+" "+p+":"+s),x=n._proxyCalls=x||{},this._isEventAvailable.call(this,x,S))return this;if(x[S]=!0,v&&(this._previousAttributes[e]=n._previousAttributes,this.changed[e]=n),this.trigger.apply(this,o),t.Associations.EVENTS_NC&&v&&this.get(S)!=l[2]){var w=["nested-change",S,l[1]];l[2]&&w.push(l[2]),this.trigger.apply(this,w)}return x&&S&&delete x[S],f=void 0,this}},_isEventAvailable:function(e,t){return n.find(e,function(e,n){return-1!==t.indexOf(n,t.length-n.length)})},_createCollection:function(e,t){var r,i=e;if(n.isString(i)&&(i=b(i,t)),!(i&&i.prototype instanceof l||n.isFunction(i)))throw new Error("type must inherit from Backbone.AssociatedModel");return(r=new a).model=i,r},_processPendingEvents:function(){this._processedEvents||(this._processedEvents=!0,this._deferEvents=!1,n.each(this._pendingEvents,function(e){e.c.trigger.apply(e.c,e.a)}),this._pendingEvents=[],n.each(this.relations,function(e){var t=this.attributes[e.key];t&&t._processPendingEvents()},this),delete this._processedEvents)},trigger:function(e){this._deferEvents?(this._pendingEvents=this._pendingEvents||[],this._pendingEvents.push({c:this,a:arguments})):i.trigger.apply(this,arguments)},toJSON:function(e){var t,r={};return r[this.idAttribute]=this.id,this.visited||(this.visited=!0,r=i.toJSON.apply(this,arguments),e&&e.serialize_keys&&(r=n.pick(r,e.serialize_keys)),this.relations&&n.each(this.relations,function(a){var i=a.key,o=a.remoteKey,s=this.attributes[i],l=!a.isTransient,u=a.serialize||[];delete r[i],l&&(u.length&&(e?e.serialize_keys=u:e={serialize_keys:u}),t=s&&s.toJSON?s.toJSON(e):s,r[o||i]=n.isArray(t)?n.compact(t):t)},this),delete this.visited),r},clone:function(e){return new this.constructor(this.toJSON(e))},cleanup:function(){n.each(this.relations,function(e){var t=this.attributes[e.key];t&&(t.parents=n.difference(t.parents,[this]))},this),this.off()},_getAttr:function(e){var t,r,i=this,o=m(e);if(!(n.size(o)<1)){for(r=0;r<o.length&&(t=o[r],i);r++)i=i instanceof a?isNaN(t)?void 0:i.at(t):i.attributes[t];return i}}});var m=function(e){return""===e?[""]:n.isString(e)?e.match(p):e||[]},y=function(e){if(!e)return e;var t=e.split(":");return t.length>1?(t=(e=t[t.length-1]).split(c)).length>1?t[t.length-1].split("[")[0]:t[0].split("[")[0]:""},b=function(e,r){var a,i=[r];i.push.apply(i,t.Associations.scopes);for(var o,s=0,l=i.length;s<l&&(!(o=i[s])||!(a=n.reduce(e.split(c),function(e,t){return e[t]},o)));++s);return a},x={};return n.each(["set","remove","reset"],function(e){x[e]=a.prototype[e],s[e]=function(t,r){return this.model.prototype instanceof l&&this.parents&&(arguments[0]=function(e,t,r){var a,i;return n.find(e,function(e){if(a=n.find(e.relations,function(n){return e.get(n.key)===t},this))return i=e,!0},this),a&&a.map?a.map.call(i,r,t):r}(this.parents,this,t)),x[e].apply(this,arguments)}}),x.trigger=s.trigger,s.trigger=function(e){this._deferEvents?(this._pendingEvents=this._pendingEvents||[],this._pendingEvents.push({c:this,a:arguments})):x.trigger.apply(this,arguments)},s._processPendingEvents=l.prototype._processPendingEvents,s.on=l.prototype.on,s.off=l.prototype.off,t}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).opentype={})}(this,function(e){"use strict";var t,n;String.prototype.codePointAt||(t=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}(),n=function(e){if(null==this)throw TypeError();var t=String(this),n=t.length,r=e?Number(e):0;if(r!=r&&(r=0),!(r<0||r>=n)){var a,i=t.charCodeAt(r);return i>=55296&&i<=56319&&n>r+1&&(a=t.charCodeAt(r+1))>=56320&&a<=57343?1024*(i-55296)+a-56320+65536:i}},t?t(String.prototype,"codePointAt",{value:n,configurable:!0,writable:!0}):String.prototype.codePointAt=n);var r=0,a=-3;function i(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function o(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new i,this.dtree=new i}var s=new i,l=new i,u=new Uint8Array(30),p=new Uint16Array(30),c=new Uint8Array(30),f=new Uint16Array(30),h=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),d=new i,g=new Uint8Array(320);function v(e,t,n,r){var a,i;for(a=0;a<n;++a)e[a]=0;for(a=0;a<30-n;++a)e[a+n]=a/n|0;for(i=r,a=0;a<30;++a)t[a]=i,i+=1<<e[a]}var m=new Uint16Array(16);function y(e,t,n,r){var a,i;for(a=0;a<16;++a)e.table[a]=0;for(a=0;a<r;++a)e.table[t[n+a]]++;for(e.table[0]=0,i=0,a=0;a<16;++a)m[a]=i,i+=e.table[a];for(a=0;a<r;++a)t[n+a]&&(e.trans[m[t[n+a]]++]=a)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function x(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,r+n}function S(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=0,r=0,a=0,i=e.tag;do{r=2*r+(1&i),i>>>=1,++a,n+=t.table[a],r-=t.table[a]}while(r>=0);return e.tag=i,e.bitcount-=a,t.trans[n+r]}function T(e,t,n){var r,a,i,o,s,l;for(r=x(e,5,257),a=x(e,5,1),i=x(e,4,4),o=0;o<19;++o)g[o]=0;for(o=0;o<i;++o){var u=x(e,3,0);g[h[o]]=u}for(y(d,g,0,19),s=0;s<r+a;){var p=S(e,d);switch(p){case 16:var c=g[s-1];for(l=x(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=x(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=x(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=p}}y(t,g,0,r),y(n,g,r,a)}function w(e,t,n){for(;;){var a,i,o,s,l=S(e,t);if(256===l)return r;if(l<256)e.dest[e.destLen++]=l;else for(a=x(e,u[l-=257],p[l]),i=S(e,n),s=o=e.destLen-x(e,c[i],f[i]);s<o+a;++s)e.dest[e.destLen++]=e.dest[s]}}function k(e){for(var t,n;e.bitcount>8;)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 a;for(e.sourceIndex+=4,n=t;n;--n)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,r}!function(e,t){var n;for(n=0;n<7;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;n<24;++n)e.trans[n]=256+n;for(n=0;n<144;++n)e.trans[24+n]=n;for(n=0;n<8;++n)e.trans[168+n]=280+n;for(n=0;n<112;++n)e.trans[176+n]=144+n;for(n=0;n<5;++n)t.table[n]=0;for(t.table[5]=32,n=0;n<32;++n)t.trans[n]=n}(s,l),v(u,p,4,3),v(c,f,2,1),u[28]=0,p[28]=258;var E=function(e,t){var n,i,u=new o(e,t);do{switch(n=b(u),x(u,2,0)){case 0:i=k(u);break;case 1:i=w(u,s,l);break;case 2:T(u,u.ltree,u.dtree),i=w(u,u.ltree,u.dtree);break;default:i=a}if(i!==r)throw new Error("Data error")}while(!n);return u.destLen<u.dest.length?"function"==typeof u.dest.slice?u.dest.slice(0,u.destLen):u.dest.subarray(0,u.destLen):u.dest};function C(e,t,n,r,a){return Math.pow(1-a,3)*e+3*Math.pow(1-a,2)*a*t+3*(1-a)*Math.pow(a,2)*n+Math.pow(a,3)*r}function O(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function U(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}function L(e){throw new Error(e)}function D(e,t){e||L(t)}O.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},O.prototype.addPoint=function(e,t){"number"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),"number"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},O.prototype.addX=function(e){this.addPoint(e,null)},O.prototype.addY=function(e){this.addPoint(null,e)},O.prototype.addBezier=function(e,t,n,r,a,i,o,s){var l=[e,t],u=[n,r],p=[a,i],c=[o,s];this.addPoint(e,t),this.addPoint(o,s);for(var f=0;f<=1;f++){var h=6*l[f]-12*u[f]+6*p[f],d=-3*l[f]+9*u[f]-9*p[f]+3*c[f],g=3*u[f]-3*l[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<m&&m<1&&(0===f&&this.addX(C(l[f],u[f],p[f],c[f],m)),1===f&&this.addY(C(l[f],u[f],p[f],c[f],m)));var y=(-h-Math.sqrt(v))/(2*d);0<y&&y<1&&(0===f&&this.addX(C(l[f],u[f],p[f],c[f],y)),1===f&&this.addY(C(l[f],u[f],p[f],c[f],y)))}}else{if(0===h)continue;var b=-g/h;0<b&&b<1&&(0===f&&this.addX(C(l[f],u[f],p[f],c[f],b)),1===f&&this.addY(C(l[f],u[f],p[f],c[f],b)))}}},O.prototype.addQuad=function(e,t,n,r,a,i){var o=e+2/3*(n-e),s=t+2/3*(r-t),l=o+1/3*(a-e),u=s+1/3*(i-t);this.addBezier(e,t,o,s,l,u,a,i)},U.prototype.moveTo=function(e,t){this.commands.push({type:"M",x:e,y:t})},U.prototype.lineTo=function(e,t){this.commands.push({type:"L",x:e,y:t})},U.prototype.curveTo=U.prototype.bezierCurveTo=function(e,t,n,r,a,i){this.commands.push({type:"C",x1:e,y1:t,x2:n,y2:r,x:a,y:i})},U.prototype.quadTo=U.prototype.quadraticCurveTo=function(e,t,n,r){this.commands.push({type:"Q",x1:e,y1:t,x:n,y:r})},U.prototype.close=U.prototype.closePath=function(){this.commands.push({type:"Z"})},U.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof O){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},U.prototype.getBoundingBox=function(){for(var e=new O,t=0,n=0,r=0,a=0,i=0;i<this.commands.length;i++){var o=this.commands[i];switch(o.type){case"M":e.addPoint(o.x,o.y),t=r=o.x,n=a=o.y;break;case"L":e.addPoint(o.x,o.y),r=o.x,a=o.y;break;case"Q":e.addQuad(r,a,o.x1,o.y1,o.x,o.y),r=o.x,a=o.y;break;case"C":e.addBezier(r,a,o.x1,o.y1,o.x2,o.y2,o.x,o.y),r=o.x,a=o.y;break;case"Z":r=t,a=n;break;default:throw new Error("Unexpected path command "+o.type)}}return e.isEmpty()&&e.addPoint(0,0),e},U.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var n=this.commands[t];"M"===n.type?e.moveTo(n.x,n.y):"L"===n.type?e.lineTo(n.x,n.y):"C"===n.type?e.bezierCurveTo(n.x1,n.y1,n.x2,n.y2,n.x,n.y):"Q"===n.type?e.quadraticCurveTo(n.x1,n.y1,n.x,n.y):"Z"===n.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},U.prototype.toPathData=function(e){function t(t){return Math.round(t)===t?""+Math.round(t):t.toFixed(e)}function n(){for(var e=arguments,n="",r=0;r<arguments.length;r+=1){var a=e[r];a>=0&&r>0&&(n+=" "),n+=t(a)}return n}e=void 0!==e?e:2;for(var r="",a=0;a<this.commands.length;a+=1){var i=this.commands[a];"M"===i.type?r+="M"+n(i.x,i.y):"L"===i.type?r+="L"+n(i.x,i.y):"C"===i.type?r+="C"+n(i.x1,i.y1,i.x2,i.y2,i.x,i.y):"Q"===i.type?r+="Q"+n(i.x1,i.y1,i.x,i.y):"Z"===i.type&&(r+="Z")}return r},U.prototype.toSVG=function(e){var t='<path d="';return t+=this.toPathData(e),t+='"',this.fill&&"black"!==this.fill&&(null===this.fill?t+=' fill="none"':t+=' fill="'+this.fill+'"'),this.stroke&&(t+=' stroke="'+this.stroke+'" stroke-width="'+this.strokeWidth+'"'),t+="/>"},U.prototype.toDOMElement=function(e){var t=this.toPathData(e),n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",t),n};var R={fail:L,argument:D,assert:D},A={},F={},N={};function I(e){return function(){return e}}F.BYTE=function(e){return R.argument(e>=0&&e<=255,"Byte value should be between 0 and 255."),[e]},N.BYTE=I(1),F.CHAR=function(e){return[e.charCodeAt(0)]},N.CHAR=I(1),F.CHARARRAY=function(e){for(var t=[],n=0;n<e.length;n+=1)t[n]=e.charCodeAt(n);return t},N.CHARARRAY=function(e){return e.length},F.USHORT=function(e){return[e>>8&255,255&e]},N.USHORT=I(2),F.SHORT=function(e){return e>=32768&&(e=-(65536-e)),[e>>8&255,255&e]},N.SHORT=I(2),F.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},N.UINT24=I(3),F.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},N.ULONG=I(4),F.LONG=function(e){return e>=2147483648&&(e=-(4294967296-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},N.LONG=I(4),F.FIXED=F.ULONG,N.FIXED=N.ULONG,F.FWORD=F.SHORT,N.FWORD=N.SHORT,F.UFWORD=F.USHORT,N.UFWORD=N.USHORT,F.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},N.LONGDATETIME=I(8),F.TAG=function(e){return R.argument(4===e.length,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},N.TAG=I(4),F.Card8=F.BYTE,N.Card8=N.BYTE,F.Card16=F.USHORT,N.Card16=N.USHORT,F.OffSize=F.BYTE,N.OffSize=N.BYTE,F.SID=F.USHORT,N.SID=N.USHORT,F.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?F.NUMBER16(e):F.NUMBER32(e)},N.NUMBER=function(e){return F.NUMBER(e).length},F.NUMBER16=function(e){return[28,e>>8&255,255&e]},N.NUMBER16=I(3),F.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},N.NUMBER32=I(5),F.REAL=function(e){var t=e.toString(),n=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(n){var r=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));t=(Math.round(e*r)/r).toString()}for(var a="",i=0,o=t.length;i<o;i+=1){var s=t[i];a+="e"===s?"-"===t[++i]?"c":"b":"."===s?"a":"-"===s?"e":s}for(var l=[30],u=0,p=(a+=1&a.length?"f":"ff").length;u<p;u+=2)l.push(parseInt(a.substr(u,2),16));return l},N.REAL=function(e){return F.REAL(e).length},F.NAME=F.CHARARRAY,N.NAME=N.CHARARRAY,F.STRING=F.CHARARRAY,N.STRING=N.CHARARRAY,A.UTF8=function(e,t,n){for(var r=[],a=n,i=0;i<a;i++,t+=1)r[i]=e.getUint8(t);return String.fromCharCode.apply(null,r)},A.UTF16=function(e,t,n){for(var r=[],a=n/2,i=0;i<a;i++,t+=2)r[i]=e.getUint16(t);return String.fromCharCode.apply(null,r)},F.UTF16=function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t[t.length]=r>>8&255,t[t.length]=255&r}return t},N.UTF16=function(e){return 2*e.length};var M={"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":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"};A.MACSTRING=function(e,t,n,r){var a=M[r];if(void 0!==a){for(var i="",o=0;o<n;o++){var s=e.getUint8(t+o);i+=s<=127?String.fromCharCode(s):a[127&s]}return i}};var B,P="function"==typeof WeakMap&&new WeakMap;function _(e){return e>=-128&&e<=127}function G(e,t,n){for(var r=0,a=e.length;t<a&&r<64&&0===e[t];)++t,++r;return n.push(128|r-1),t}function H(e,t,n){for(var r=0,a=e.length,i=t;i<a&&r<64;){var o=e[i];if(!_(o))break;if(0===o&&i+1<a&&0===e[i+1])break;++i,++r}n.push(r-1);for(var s=t;s<i;++s)n.push(e[s]+256&255);return i}function j(e,t,n){for(var r=0,a=e.length,i=t;i<a&&r<64;){var o=e[i];if(0===o)break;if(_(o)&&i+1<a&&_(e[i+1]))break;++i,++r}n.push(64|r-1);for(var s=t;s<i;++s){var l=e[s];n.push(l+65536>>8&255,l+256&255)}return i}F.MACSTRING=function(e,t){var n=function(e){if(!B)for(var t in B={},M)B[t]=new String(t);var n=B[e];if(void 0!==n){if(P){var r=P.get(n);if(void 0!==r)return r}var a=M[e];if(void 0!==a){for(var i={},o=0;o<a.length;o++)i[a.charCodeAt(o)]=o+128;return P&&P.set(n,i),i}}}(t);if(void 0!==n){for(var r=[],a=0;a<e.length;a++){var i=e.charCodeAt(a);if(i>=128&&void 0===(i=n[i]))return;r[a]=i}return r}},N.MACSTRING=function(e,t){var n=F.MACSTRING(e,t);return void 0!==n?n.length:0},F.VARDELTAS=function(e){for(var t=0,n=[];t<e.length;){var r=e[t];t=0===r?G(e,t,n):r>=-128&&r<=127?H(e,t,n):j(e,t,n)}return n},F.INDEX=function(e){for(var t=1,n=[t],r=[],a=0;a<e.length;a+=1){var i=F.OBJECT(e[a]);Array.prototype.push.apply(r,i),t+=i.length,n.push(t)}if(0===r.length)return[0,0];for(var o=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,F.BYTE,F.USHORT,F.UINT24,F.ULONG][s],u=0;u<n.length;u+=1){var p=l(n[u]);Array.prototype.push.apply(o,p)}return Array.prototype.concat(F.Card16(e.length),F.OffSize(s),o,r)},N.INDEX=function(e){return F.INDEX(e).length},F.DICT=function(e){for(var t=[],n=Object.keys(e),r=n.length,a=0;a<r;a+=1){var i=parseInt(n[a],0),o=e[i];t=(t=t.concat(F.OPERAND(o.value,o.type))).concat(F.OPERATOR(i))}return t},N.DICT=function(e){return F.DICT(e).length},F.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},F.OPERAND=function(e,t){var n=[];if(Array.isArray(t))for(var r=0;r<t.length;r+=1)R.argument(e.length===t.length,"Not enough arguments given for type"+t),n=n.concat(F.OPERAND(e[r],t[r]));else if("SID"===t)n=n.concat(F.NUMBER(e));else if("offset"===t)n=n.concat(F.NUMBER32(e));else if("number"===t)n=n.concat(F.NUMBER(e));else{if("real"!==t)throw new Error("Unknown operand type "+t);n=n.concat(F.REAL(e))}return n},F.OP=F.BYTE,N.OP=N.BYTE;var q="function"==typeof WeakMap&&new WeakMap;function z(e,t,n){for(var r=0;r<t.length;r+=1){var a=t[r];this[a.name]=a.value}if(this.tableName=e,this.fields=t,n)for(var i=Object.keys(n),o=0;o<i.length;o+=1){var s=i[o],l=n[s];void 0!==this[s]&&(this[s]=l)}}function W(e,t,n){void 0===n&&(n=t.length);var r=new Array(t.length+1);r[0]={name:e+"Count",type:"USHORT",value:n};for(var a=0;a<t.length;a++)r[a+1]={name:e+a,type:"USHORT",value:t[a]};return r}function X(e,t,n){var r=t.length,a=new Array(r+1);a[0]={name:e+"Count",type:"USHORT",value:r};for(var i=0;i<r;i++)a[i+1]={name:e+i,type:"TABLE",value:n(t[i],i)};return a}function V(e,t,n){var r=t.length,a=[];a[0]={name:e+"Count",type:"USHORT",value:r};for(var i=0;i<r;i++)a=a.concat(n(t[i],i));return a}function $(e){1===e.format?z.call(this,"coverageTable",[{name:"coverageFormat",type:"USHORT",value:1}].concat(W("glyph",e.glyphs))):R.assert(!1,"Can't create coverage table format 2 yet.")}function Y(e){z.call(this,"scriptListTable",V("scriptRecord",e,function(e,t){var n=e.script,r=n.defaultLangSys;return R.assert(!!r,"Unable to write GSUB: script "+e.tag+" has no default language system."),[{name:"scriptTag"+t,type:"TAG",value:e.tag},{name:"script"+t,type:"TABLE",value:new z("scriptTable",[{name:"defaultLangSys",type:"TABLE",value:new z("defaultLangSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:r.reqFeatureIndex}].concat(W("featureIndex",r.featureIndexes)))}].concat(V("langSys",n.langSysRecords,function(e,t){var n=e.langSys;return[{name:"langSysTag"+t,type:"TAG",value:e.tag},{name:"langSys"+t,type:"TABLE",value:new z("langSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:n.reqFeatureIndex}].concat(W("featureIndex",n.featureIndexes)))}]})))}]}))}function Z(e){z.call(this,"featureListTable",V("featureRecord",e,function(e,t){var n=e.feature;return[{name:"featureTag"+t,type:"TAG",value:e.tag},{name:"feature"+t,type:"TABLE",value:new z("featureTable",[{name:"featureParams",type:"USHORT",value:n.featureParams}].concat(W("lookupListIndex",n.lookupListIndexes)))}]}))}function K(e,t){z.call(this,"lookupListTable",X("lookup",e,function(e){var n=t[e.lookupType];return R.assert(!!n,"Unable to write GSUB lookup type "+e.lookupType+" tables."),new z("lookupTable",[{name:"lookupType",type:"USHORT",value:e.lookupType},{name:"lookupFlag",type:"USHORT",value:e.lookupFlag}].concat(X("subtable",e.subtables,n)))}))}F.CHARSTRING=function(e){if(q){var t=q.get(e);if(void 0!==t)return t}for(var n=[],r=e.length,a=0;a<r;a+=1){var i=e[a];n=n.concat(F[i.type](i.value))}return q&&q.set(e,n),n},N.CHARSTRING=function(e){return F.CHARSTRING(e).length},F.OBJECT=function(e){var t=F[e.type];return R.argument(void 0!==t,"No encoding function for type "+e.type),t(e.value)},N.OBJECT=function(e){var t=N[e.type];return R.argument(void 0!==t,"No sizeOf function for type "+e.type),t(e.value)},F.TABLE=function(e){for(var t=[],n=e.fields.length,r=[],a=[],i=0;i<n;i+=1){var o=e.fields[i],s=F[o.type];R.argument(void 0!==s,"No encoding function for field type "+o.type+" ("+o.name+")");var l=e[o.name];void 0===l&&(l=o.value);var u=s(l);"TABLE"===o.type?(a.push(t.length),t=t.concat([0,0]),r.push(u)):t=t.concat(u)}for(var p=0;p<r.length;p+=1){var c=a[p],f=t.length;R.argument(f<65536,"Table "+e.tableName+" too big."),t[c]=f>>8,t[c+1]=255&f,t=t.concat(r[p])}return t},N.TABLE=function(e){for(var t=0,n=e.fields.length,r=0;r<n;r+=1){var a=e.fields[r],i=N[a.type];R.argument(void 0!==i,"No sizeOf function for field type "+a.type+" ("+a.name+")");var o=e[a.name];void 0===o&&(o=a.value),t+=i(o),"TABLE"===a.type&&(t+=2)}return t},F.RECORD=F.TABLE,N.RECORD=N.TABLE,F.LITERAL=function(e){return e},N.LITERAL=function(e){return e.length},z.prototype.encode=function(){return F.TABLE(this)},z.prototype.sizeOf=function(){return N.TABLE(this)},$.prototype=Object.create(z.prototype),$.prototype.constructor=$,Y.prototype=Object.create(z.prototype),Y.prototype.constructor=Y,Z.prototype=Object.create(z.prototype),Z.prototype.constructor=Z,K.prototype=Object.create(z.prototype),K.prototype.constructor=K;var J={Table:z,Record:z,Coverage:$,ScriptList:Y,FeatureList:Z,LookupList:K,ushortList:W,tableList:X,recordList:V};function Q(e,t){return e.getUint8(t)}function ee(e,t){return e.getUint16(t,!1)}function te(e,t){return e.getUint32(t,!1)}function ne(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var re={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function ae(e,t){this.data=e,this.offset=t,this.relativeOffset=0}ae.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},ae.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},ae.prototype.parseCard8=ae.prototype.parseByte,ae.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},ae.prototype.parseCard16=ae.prototype.parseUShort,ae.prototype.parseSID=ae.prototype.parseUShort,ae.prototype.parseOffset16=ae.prototype.parseUShort,ae.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},ae.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},ae.prototype.parseULong=function(){var e=te(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},ae.prototype.parseOffset32=ae.prototype.parseULong,ae.prototype.parseFixed=function(){var e=ne(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},ae.prototype.parseString=function(e){var t=this.data,n=this.offset+this.relativeOffset,r="";this.relativeOffset+=e;for(var a=0;a<e;a++)r+=String.fromCharCode(t.getUint8(n+a));return r},ae.prototype.parseTag=function(){return this.parseString(4)},ae.prototype.parseLongDateTime=function(){var e=te(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},ae.prototype.parseVersion=function(e){var t=ee(this.data,this.offset+this.relativeOffset),n=ee(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+n/e/10},ae.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=re[e]*t},ae.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=n.getUint32(r),r+=4;return this.relativeOffset+=4*e,t},ae.prototype.parseOffset16List=ae.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=n.getUint16(r),r+=2;return this.relativeOffset+=2*e,t},ae.prototype.parseShortList=function(e){for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=n.getInt16(r),r+=2;return this.relativeOffset+=2*e,t},ae.prototype.parseByteList=function(e){for(var t=new Array(e),n=this.data,r=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=n.getUint8(r++);return this.relativeOffset+=e,t},ae.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var n=new Array(e),r=0;r<e;r++)n[r]=t.call(this);return n},ae.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var n=new Array(e),r=0;r<e;r++)n[r]=t.call(this);return n},ae.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var n=new Array(e),r=Object.keys(t),a=0;a<e;a++){for(var i={},o=0;o<r.length;o++){var s=r[o],l=t[s];i[s]=l.call(this)}n[a]=i}return n},ae.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var n=new Array(e),r=Object.keys(t),a=0;a<e;a++){for(var i={},o=0;o<r.length;o++){var s=r[o],l=t[s];i[s]=l.call(this)}n[a]=i}return n},ae.prototype.parseStruct=function(e){if("function"==typeof e)return e.call(this);for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var a=t[r],i=e[a];n[a]=i.call(this)}return n},ae.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},ae.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),n=new Array(t),r=0;r<t;r++)n[r]=this.parseValueRecord(e);return n},ae.prototype.parsePointer=function(e){var t=this.parseOffset16();if(t>0)return new ae(this.data,this.offset+t).parseStruct(e)},ae.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(t>0)return new ae(this.data,this.offset+t).parseStruct(e)},ae.prototype.parseListOfLists=function(e){for(var t=this.parseOffset16List(),n=t.length,r=this.relativeOffset,a=new Array(n),i=0;i<n;i++){var o=t[i];if(0!==o)if(this.relativeOffset=o,e){for(var s=this.parseOffset16List(),l=new Array(s.length),u=0;u<s.length;u++)this.relativeOffset=o+s[u],l[u]=e.call(this);a[i]=l}else a[i]=this.parseUShortList();else a[i]=void 0}return this.relativeOffset=r,a},ae.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),n=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(n)};if(2===t){for(var r=new Array(n),a=0;a<n;a++)r[a]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:r}}throw new Error("0x"+e.toString(16)+": Coverage format must be 1 or 2.")},ae.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:ae.uShort,end:ae.uShort,classId:ae.uShort})};throw new Error("0x"+e.toString(16)+": ClassDef format must be 1 or 2.")},ae.list=function(e,t){return function(){return this.parseList(e,t)}},ae.list32=function(e,t){return function(){return this.parseList32(e,t)}},ae.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},ae.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},ae.pointer=function(e){return function(){return this.parsePointer(e)}},ae.pointer32=function(e){return function(){return this.parsePointer32(e)}},ae.tag=ae.prototype.parseTag,ae.byte=ae.prototype.parseByte,ae.uShort=ae.offset16=ae.prototype.parseUShort,ae.uShortList=ae.prototype.parseUShortList,ae.uLong=ae.offset32=ae.prototype.parseULong,ae.uLongList=ae.prototype.parseULongList,ae.struct=ae.prototype.parseStruct,ae.coverage=ae.prototype.parseCoverage,ae.classDef=ae.prototype.parseClassDef;var ie={reserved:ae.uShort,reqFeatureIndex:ae.uShort,featureIndexes:ae.uShortList};ae.prototype.parseScriptList=function(){return this.parsePointer(ae.recordList({tag:ae.tag,script:ae.pointer({defaultLangSys:ae.pointer(ie),langSysRecords:ae.recordList({tag:ae.tag,langSys:ae.pointer(ie)})})}))||[]},ae.prototype.parseFeatureList=function(){return this.parsePointer(ae.recordList({tag:ae.tag,feature:ae.pointer({featureParams:ae.offset16,lookupListIndexes:ae.uShortList})}))||[]},ae.prototype.parseLookupList=function(e){return this.parsePointer(ae.list(ae.pointer(function(){var t=this.parseUShort();R.argument(1<=t&&t<=9,"GPOS/GSUB lookup type "+t+" unknown.");var n=this.parseUShort(),r=16&n;return{lookupType:t,lookupFlag:n,subtables:this.parseList(ae.pointer(e[t])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},ae.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return R.argument(1===e&&t<1,"GPOS/GSUB feature variations table unknown."),this.parseRecordList32({conditionSetOffset:ae.offset32,featureTableSubstitutionOffset:ae.offset32})})||[]};var oe={getByte:Q,getCard8:Q,getUShort:ee,getCard16:ee,getShort:function(e,t){return e.getInt16(t,!1)},getULong:te,getFixed:ne,getTag:function(e,t){for(var n="",r=t;r<t+4;r+=1)n+=String.fromCharCode(e.getInt8(r));return n},getOffset:function(e,t,n){for(var r=0,a=0;a<n;a+=1)r<<=8,r+=e.getUint8(t+a);return r},getBytes:function(e,t,n){for(var r=[],a=t;a<n;a+=1)r.push(e.getUint8(a));return r},bytesToString:function(e){for(var t="",n=0;n<e.length;n+=1)t+=String.fromCharCode(e[n]);return t},Parser:ae};function se(e,t,n){e.segments.push({end:t,start:t,delta:-(t-n),offset:0,glyphIndex:n})}var le={parse:function(e,t){var n={};n.version=oe.getUShort(e,t),R.argument(0===n.version,"cmap table version should be 0."),n.numTables=oe.getUShort(e,t+2);for(var r=-1,a=n.numTables-1;a>=0;a-=1){var i=oe.getUShort(e,t+4+8*a),o=oe.getUShort(e,t+4+8*a+2);if(3===i&&(0===o||1===o||10===o)||0===i&&(0===o||1===o||2===o||3===o||4===o)){r=oe.getULong(e,t+4+8*a+4);break}}if(-1===r)throw new Error("No valid cmap sub-tables found.");var s=new oe.Parser(e,t+r);if(n.format=s.parseUShort(),12===n.format)!function(e,t){var n;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=n=t.parseULong(),e.glyphIndexMap={};for(var r=0;r<n;r+=1)for(var a=t.parseULong(),i=t.parseULong(),o=t.parseULong(),s=a;s<=i;s+=1)e.glyphIndexMap[s]=o,o++}(n,s);else{if(4!==n.format)throw new Error("Only format 4 and 12 cmap tables are supported (found format "+n.format+").");!function(e,t,n,r,a){var i;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=i=t.parseUShort()>>1,t.skip("uShort",3),e.glyphIndexMap={};for(var o=new oe.Parser(n,r+a+14),s=new oe.Parser(n,r+a+16+2*i),l=new oe.Parser(n,r+a+16+4*i),u=new oe.Parser(n,r+a+16+6*i),p=r+a+16+8*i,c=0;c<i-1;c+=1)for(var f=void 0,h=o.parseUShort(),d=s.parseUShort(),g=l.parseShort(),v=u.parseUShort(),m=d;m<=h;m+=1)0!==v?(p=u.offset+u.relativeOffset-2,p+=v,p+=2*(m-d),0!==(f=oe.getUShort(n,p))&&(f=f+g&65535)):f=m+g&65535,e.glyphIndexMap[m]=f}(n,s,e,t,r)}return n},make:function(e){var t,n=!0;for(t=e.length-1;t>0;t-=1)if(e.get(t).unicode>65535){console.log("Adding CMAP format 12 (needed!)"),n=!1;break}var r=[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:n?1:2},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:n?12:20}];n||(r=r.concat([{name:"cmap12PlatformID",type:"USHORT",value:3},{name:"cmap12EncodingID",type:"USHORT",value:10},{name:"cmap12Offset",type:"ULONG",value:0}])),r=r.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 a=new J.Table("cmap",r);for(a.segments=[],t=0;t<e.length;t+=1){for(var i=e.get(t),o=0;o<i.unicodes.length;o+=1)se(a,i.unicodes[o],t);a.segments=a.segments.sort(function(e,t){return e.start-t.start})}!function(e){e.segments.push({end:65535,start:65535,delta:1,offset:0})}(a);var s=a.segments.length,l=0,u=[],p=[],c=[],f=[],h=[],d=[];for(t=0;t<s;t+=1){var g=a.segments[t];g.end<=65535&&g.start<=65535?(u=u.concat({name:"end_"+t,type:"USHORT",value:g.end}),p=p.concat({name:"start_"+t,type:"USHORT",value:g.start}),c=c.concat({name:"idDelta_"+t,type:"SHORT",value:g.delta}),f=f.concat({name:"idRangeOffset_"+t,type:"USHORT",value:g.offset}),void 0!==g.glyphId&&(h=h.concat({name:"glyph_"+t,type:"USHORT",value:g.glyphId}))):l+=1,n||void 0===g.glyphIndex||(d=(d=(d=d.concat({name:"cmap12Start_"+t,type:"ULONG",value:g.start})).concat({name:"cmap12End_"+t,type:"ULONG",value:g.end})).concat({name:"cmap12Glyph_"+t,type:"ULONG",value:g.glyphIndex}))}if(a.segCountX2=2*(s-l),a.searchRange=2*Math.pow(2,Math.floor(Math.log(s-l)/Math.log(2))),a.entrySelector=Math.log(a.searchRange/2)/Math.log(2),a.rangeShift=a.segCountX2-a.searchRange,a.fields=a.fields.concat(u),a.fields.push({name:"reservedPad",type:"USHORT",value:0}),a.fields=a.fields.concat(p),a.fields=a.fields.concat(c),a.fields=a.fields.concat(f),a.fields=a.fields.concat(h),a.cmap4Length=14+2*u.length+2+2*p.length+2*c.length+2*f.length+2*h.length,!n){var v=16+4*d.length;a.cmap12Offset=20+a.cmap4Length,a.fields=a.fields.concat([{name:"cmap12Format",type:"USHORT",value:12},{name:"cmap12Reserved",type:"USHORT",value:0},{name:"cmap12Length",type:"ULONG",value:v},{name:"cmap12Language",type:"ULONG",value:0},{name:"cmap12nGroups",type:"ULONG",value:d.length/3}]),a.fields=a.fields.concat(d)}return a}},ue=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],pe=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],ce=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],fe=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function he(e){this.font=e}function de(e){this.cmap=e}function ge(e,t){this.encoding=e,this.charset=t}function ve(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var n=0;n<e.numberOfGlyphs;n++)this.names[n]=fe[n+e.glyphNameIndex[n]];break;case 3:default:this.names=[]}}function me(e,t){t.lowMemory?function(e){e._IndexToUnicodeMap={};for(var t=e.tables.cmap.glyphIndexMap,n=Object.keys(t),r=0;r<n.length;r+=1){var a=n[r],i=t[a];void 0===e._IndexToUnicodeMap[i]?e._IndexToUnicodeMap[i]={unicodes:[parseInt(a)]}:e._IndexToUnicodeMap[i].unicodes.push(parseInt(a))}}(e):function(e){for(var t,n=e.tables.cmap.glyphIndexMap,r=Object.keys(n),a=0;a<r.length;a+=1){var i=r[a],o=n[i];(t=e.glyphs.get(o)).addUnicode(parseInt(i))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name="gid"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(e)}he.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),n=this.font.glyphs;if(n)for(var r=0;r<n.length;r+=1)for(var a=n.get(r),i=0;i<a.unicodes.length;i+=1)if(a.unicodes[i]===t)return r;return null},de.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},ge.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),n=this.encoding[t];return this.charset.indexOf(n)},ve.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ve.prototype.glyphIndexToName=function(e){return this.names[e]};var ye={line:function(e,t,n,r,a){e.beginPath(),e.moveTo(t,n),e.lineTo(r,a),e.stroke()}};function be(e){this.bindConstructorValues(e)}function xe(e,t,n){Object.defineProperty(e,t,{get:function(){return e.path,e[n]},set:function(t){e[n]=t},enumerable:!0,configurable:!0})}function Se(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];r.path.unitsPerEm=e.unitsPerEm,this.glyphs[n]=r}this.length=t&&t.length||0}be.prototype.bindConstructorValues=function(e){var t,n;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,"path",(t=e.path,n=t||new U,{configurable:!0,get:function(){return"function"==typeof n&&(n=n()),n},set:function(e){n=e}}))},be.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},be.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},be.prototype.getPath=function(e,t,n,r,a){var i,o;e=void 0!==e?e:0,t=void 0!==t?t:0,n=void 0!==n?n:72,r||(r={});var s=r.xScale,l=r.yScale;if(r.hinting&&a&&a.hinting&&(o=this.path&&a.hinting.exec(this,n)),o)i=a.hinting.getCommands(o),e=Math.round(e),t=Math.round(t),s=l=1;else{i=this.path.commands;var u=1/(this.path.unitsPerEm||1e3)*n;void 0===s&&(s=u),void 0===l&&(l=u)}for(var p=new U,c=0;c<i.length;c+=1){var f=i[c];"M"===f.type?p.moveTo(e+f.x*s,t+-f.y*l):"L"===f.type?p.lineTo(e+f.x*s,t+-f.y*l):"Q"===f.type?p.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):"C"===f.type?p.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):"Z"===f.type&&p.closePath()}return p},be.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],n=0;n<this.points.length;n+=1){var r=this.points[n];t.push(r),r.lastPointOfContour&&(e.push(t),t=[])}return R.argument(0===t.length,"There are still points left in the current contour."),e},be.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],n=[],r=0;r<e.length;r+=1){var a=e[r];"Z"!==a.type&&(t.push(a.x),n.push(a.y)),"Q"!==a.type&&"C"!==a.type||(t.push(a.x1),n.push(a.y1)),"C"===a.type&&(t.push(a.x2),n.push(a.y2))}var i={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,n),leftSideBearing:this.leftSideBearing};return isFinite(i.xMin)||(i.xMin=0),isFinite(i.xMax)||(i.xMax=this.advanceWidth),isFinite(i.yMin)||(i.yMin=0),isFinite(i.yMax)||(i.yMax=0),i.rightSideBearing=this.advanceWidth-i.leftSideBearing-(i.xMax-i.xMin),i},be.prototype.draw=function(e,t,n,r,a){this.getPath(t,n,r,a).draw(e)},be.prototype.drawPoints=function(e,t,n,r){function a(t,n,r,a){var i=2*Math.PI;e.beginPath();for(var o=0;o<t.length;o+=1)e.moveTo(n+t[o].x*a,r+t[o].y*a),e.arc(n+t[o].x*a,r+t[o].y*a,2,0,i,!1);e.closePath(),e.fill()}t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:24;for(var i=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var p=l.commands[u];void 0!==p.x&&o.push({x:p.x,y:-p.y}),void 0!==p.x1&&s.push({x:p.x1,y:-p.y1}),void 0!==p.x2&&s.push({x:p.x2,y:-p.y2})}e.fillStyle="blue",a(o,t,n,i),e.fillStyle="red",a(s,t,n,i)},be.prototype.drawMetrics=function(e,t,n,r){var a;t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:24,a=1/this.path.unitsPerEm*r,e.lineWidth=1,e.strokeStyle="black",ye.line(e,t,-1e4,t,1e4),ye.line(e,-1e4,n,1e4,n);var i=this.xMin||0,o=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle="blue",ye.line(e,t+i*a,-1e4,t+i*a,1e4),ye.line(e,t+s*a,-1e4,t+s*a,1e4),ye.line(e,-1e4,n+-o*a,1e4,n+-o*a),ye.line(e,-1e4,n+-l*a,1e4,n+-l*a),e.strokeStyle="green",ye.line(e,t+u*a,-1e4,t+u*a,1e4)},Se.prototype.get=function(e){if(void 0===this.glyphs[e]){this.font._push(e),"function"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]());var t=this.glyphs[e],n=this.font._IndexToUnicodeMap[e];if(n)for(var r=0;r<n.unicodes.length;r++)t.addUnicode(n.unicodes[r]);this.font.cffEncoding?this.font.isCIDFont?t.name="gid"+e:t.name=this.font.cffEncoding.charset[e]:this.font.glyphNames.names&&(t.name=this.font.glyphNames.glyphIndexToName(e)),this.glyphs[e].advanceWidth=this.font._hmtxTableData[e].advanceWidth,this.glyphs[e].leftSideBearing=this.font._hmtxTableData[e].leftSideBearing}else"function"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]());return this.glyphs[e]},Se.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var Te={GlyphSet:Se,glyphLoader:function(e,t){return new be({index:t,font:e})},ttfGlyphLoader:function(e,t,n,r,a,i){return function(){var o=new be({index:t,font:e});return o.path=function(){n(o,r,a);var t=i(e.glyphs,o);return t.unitsPerEm=e.unitsPerEm,t},xe(o,"xMin","_xMin"),xe(o,"xMax","_xMax"),xe(o,"yMin","_yMin"),xe(o,"yMax","_yMax"),o}},cffGlyphLoader:function(e,t,n,r){return function(){var a=new be({index:t,font:e});return a.path=function(){var t=n(e,a,r);return t.unitsPerEm=e.unitsPerEm,t},a}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n+=1)if(!we(e[n],t[n]))return!1;return!0}return!1}function ke(e){return e.length<1240?107:e.length<33900?1131:32768}function Ee(e,t,n){var r,a,i=[],o=[],s=oe.getCard16(e,t);if(0!==s){var l=oe.getByte(e,t+2);r=t+(s+1)*l+2;for(var u=t+3,p=0;p<s+1;p+=1)i.push(oe.getOffset(e,u,l)),u+=l;a=r+i[s]}else a=t+2;for(var c=0;c<i.length-1;c+=1){var f=oe.getBytes(e,r+i[c],r+i[c+1]);n&&(f=n(f)),o.push(f)}return{objects:o,startOffset:t,endOffset:a}}function Ce(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t="",n=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];;){var r=e.parseByte(),a=r>>4,i=15&r;if(15===a)break;if(t+=n[a],15===i)break;t+=n[i]}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 Oe(e,t,n){t=void 0!==t?t:0;var r=new oe.Parser(e,t),a=[],i=[];for(n=void 0!==n?n:e.length;r.relativeOffset<n;){var o=r.parseByte();o<=21?(12===o&&(o=1200+r.parseByte()),a.push([o,i]),i=[]):i.push(Ce(r,o))}return function(e){for(var t={},n=0;n<e.length;n+=1){var r=e[n][0],a=e[n][1],i=void 0;if(i=1===a.length?a[0]:a,t.hasOwnProperty(r)&&!isNaN(t[r]))throw new Error("Object "+t+" already has key "+r);t[r]=i}return t}(a)}function Ue(e,t){return t=t<=390?ue[t]:e[t-391]}function Le(e,t,n){for(var r,a={},i=0;i<t.length;i+=1){var o=t[i];if(Array.isArray(o.type)){var s=[];s.length=o.type.length;for(var l=0;l<o.type.length;l++)void 0===(r=void 0!==e[o.op]?e[o.op][l]:void 0)&&(r=void 0!==o.value&&void 0!==o.value[l]?o.value[l]:null),"SID"===o.type[l]&&(r=Ue(n,r)),s[l]=r;a[o.name]=s}else void 0===(r=e[o.op])&&(r=void 0!==o.value?o.value:null),"SID"===o.type&&(r=Ue(n,r)),a[o.name]=r}return a}var De=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[.001,0,0,.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]},{name:"ros",op:1230,type:["SID","SID","number"]},{name:"cidFontVersion",op:1231,type:"number",value:0},{name:"cidFontRevision",op:1232,type:"number",value:0},{name:"cidFontType",op:1233,type:"number",value:0},{name:"cidCount",op:1234,type:"number",value:8720},{name:"uidBase",op:1235,type:"number"},{name:"fdArray",op:1236,type:"offset"},{name:"fdSelect",op:1237,type:"offset"},{name:"fontName",op:1238,type:"SID"}],Re=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];function Ae(e,t){return Le(Oe(e,0,e.byteLength),De,t)}function Fe(e,t,n,r){return Le(Oe(e,t,n),Re,r)}function Ne(e,t,n,r){for(var a=[],i=0;i<n.length;i+=1){var o=Ae(new DataView(new Uint8Array(n[i]).buffer),r);o._subrs=[],o._subrsBias=0;var s=o.private[0],l=o.private[1];if(0!==s&&0!==l){var u=Fe(e,l+t,s,r);if(o._defaultWidthX=u.defaultWidthX,o._nominalWidthX=u.nominalWidthX,0!==u.subrs){var p=Ee(e,l+u.subrs+t);o._subrs=p.objects,o._subrsBias=ke(o._subrs)}o._privateDict=u}a.push(o)}return a}function Ie(e,t,n){var r,a,i,o,s,l,u,p,c=new U,f=[],h=0,d=!1,g=!1,v=0,m=0;if(e.isCIDFont){var y=e.tables.cff.topDict._fdSelect[t.index],b=e.tables.cff.topDict._fdArray[y];s=b._subrs,l=b._subrsBias,u=b._defaultWidthX,p=b._nominalWidthX}else s=e.tables.cff.topDict._subrs,l=e.tables.cff.topDict._subrsBias,u=e.tables.cff.topDict._defaultWidthX,p=e.tables.cff.topDict._nominalWidthX;var x=u;function S(e,t){g&&c.closePath(),c.moveTo(e,t),g=!0}function T(){f.length%2!=0&&!d&&(x=f.shift()+p),h+=f.length>>1,f.length=0,d=!0}return function n(u){for(var y,b,w,k,E,C,O,U,L,D,R,A,F=0;F<u.length;){var N=u[F];switch(F+=1,N){case 1:case 3:T();break;case 4:f.length>1&&!d&&(x=f.shift()+p,d=!0),m+=f.pop(),S(v,m);break;case 5:for(;f.length>0;)v+=f.shift(),m+=f.shift(),c.lineTo(v,m);break;case 6:for(;f.length>0&&(v+=f.shift(),c.lineTo(v,m),0!==f.length);)m+=f.shift(),c.lineTo(v,m);break;case 7:for(;f.length>0&&(m+=f.shift(),c.lineTo(v,m),0!==f.length);)v+=f.shift(),c.lineTo(v,m);break;case 8:for(;f.length>0;)r=v+f.shift(),a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),v=i+f.shift(),m=o+f.shift(),c.curveTo(r,a,i,o,v,m);break;case 10:E=f.pop()+l,(C=s[E])&&n(C);break;case 11:return;case 12:switch(N=u[F],F+=1,N){case 35:r=v+f.shift(),a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),O=i+f.shift(),U=o+f.shift(),L=O+f.shift(),D=U+f.shift(),R=L+f.shift(),A=D+f.shift(),v=R+f.shift(),m=A+f.shift(),f.shift(),c.curveTo(r,a,i,o,O,U),c.curveTo(L,D,R,A,v,m);break;case 34:r=v+f.shift(),a=m,i=r+f.shift(),o=a+f.shift(),O=i+f.shift(),U=o,L=O+f.shift(),D=o,R=L+f.shift(),A=m,v=R+f.shift(),c.curveTo(r,a,i,o,O,U),c.curveTo(L,D,R,A,v,m);break;case 36:r=v+f.shift(),a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),O=i+f.shift(),U=o,L=O+f.shift(),D=o,R=L+f.shift(),A=D+f.shift(),v=R+f.shift(),c.curveTo(r,a,i,o,O,U),c.curveTo(L,D,R,A,v,m);break;case 37:r=v+f.shift(),a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),O=i+f.shift(),U=o+f.shift(),L=O+f.shift(),D=U+f.shift(),R=L+f.shift(),A=D+f.shift(),Math.abs(R-v)>Math.abs(A-m)?v=R+f.shift():m=A+f.shift(),c.curveTo(r,a,i,o,O,U),c.curveTo(L,D,R,A,v,m);break;default:console.log("Glyph "+t.index+": unknown operator 1200"+N),f.length=0}break;case 14:f.length>0&&!d&&(x=f.shift()+p,d=!0),g&&(c.closePath(),g=!1);break;case 18:T();break;case 19:case 20:T(),F+=h+7>>3;break;case 21:f.length>2&&!d&&(x=f.shift()+p,d=!0),m+=f.pop(),S(v+=f.pop(),m);break;case 22:f.length>1&&!d&&(x=f.shift()+p,d=!0),S(v+=f.pop(),m);break;case 23:T();break;case 24:for(;f.length>2;)r=v+f.shift(),a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),v=i+f.shift(),m=o+f.shift(),c.curveTo(r,a,i,o,v,m);v+=f.shift(),m+=f.shift(),c.lineTo(v,m);break;case 25:for(;f.length>6;)v+=f.shift(),m+=f.shift(),c.lineTo(v,m);r=v+f.shift(),a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),v=i+f.shift(),m=o+f.shift(),c.curveTo(r,a,i,o,v,m);break;case 26:for(f.length%2&&(v+=f.shift());f.length>0;)r=v,a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),v=i,m=o+f.shift(),c.curveTo(r,a,i,o,v,m);break;case 27:for(f.length%2&&(m+=f.shift());f.length>0;)r=v+f.shift(),a=m,i=r+f.shift(),o=a+f.shift(),v=i+f.shift(),m=o,c.curveTo(r,a,i,o,v,m);break;case 28:y=u[F],b=u[F+1],f.push((y<<24|b<<16)>>16),F+=2;break;case 29:E=f.pop()+e.gsubrsBias,(C=e.gsubrs[E])&&n(C);break;case 30:for(;f.length>0&&(r=v,a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),v=i+f.shift(),m=o+(1===f.length?f.shift():0),c.curveTo(r,a,i,o,v,m),0!==f.length);)r=v+f.shift(),a=m,i=r+f.shift(),o=a+f.shift(),m=o+f.shift(),v=i+(1===f.length?f.shift():0),c.curveTo(r,a,i,o,v,m);break;case 31:for(;f.length>0&&(r=v+f.shift(),a=m,i=r+f.shift(),o=a+f.shift(),m=o+f.shift(),v=i+(1===f.length?f.shift():0),c.curveTo(r,a,i,o,v,m),0!==f.length);)r=v,a=m+f.shift(),i=r+f.shift(),o=a+f.shift(),v=i+f.shift(),m=o+(1===f.length?f.shift():0),c.curveTo(r,a,i,o,v,m);break;default:N<32?console.log("Glyph "+t.index+": unknown operator "+N):N<247?f.push(N-139):N<251?(y=u[F],F+=1,f.push(256*(N-247)+y+108)):N<255?(y=u[F],F+=1,f.push(256*-(N-251)-y-108)):(y=u[F],b=u[F+1],w=u[F+2],k=u[F+3],F+=4,f.push((y<<24|b<<16|w<<8|k)/65536))}}}(n),t.advanceWidth=x,c}function Me(e,t){var n,r=ue.indexOf(e);return r>=0&&(n=r),(r=t.indexOf(e))>=0?n=r+ue.length:(n=ue.length+t.length,t.push(e)),n}function Be(e,t,n){for(var r={},a=0;a<e.length;a+=1){var i=e[a],o=t[i.name];void 0===o||we(o,i.value)||("SID"===i.type&&(o=Me(o,n)),r[i.op]={name:i.name,type:i.type,value:o})}return r}function Pe(e,t){var n=new J.Record("Top DICT",[{name:"dict",type:"DICT",value:{}}]);return n.dict=Be(De,e,t),n}function _e(e){var t=new J.Record("Top DICT INDEX",[{name:"topDicts",type:"INDEX",value:[]}]);return t.topDicts=[{name:"topDict_0",type:"TABLE",value:e}],t}function Ge(e){var t=[],n=e.path;t.push({name:"width",type:"NUMBER",value:e.advanceWidth});for(var r=0,a=0,i=0;i<n.commands.length;i+=1){var o=void 0,s=void 0,l=n.commands[i];if("Q"===l.type){l={type:"C",x:l.x,y:l.y,x1:1/3*r+2/3*l.x1,y1:1/3*a+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if("M"===l.type)o=Math.round(l.x-r),s=Math.round(l.y-a),t.push({name:"dx",type:"NUMBER",value:o}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rmoveto",type:"OP",value:21}),r=Math.round(l.x),a=Math.round(l.y);else if("L"===l.type)o=Math.round(l.x-r),s=Math.round(l.y-a),t.push({name:"dx",type:"NUMBER",value:o}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rlineto",type:"OP",value:5}),r=Math.round(l.x),a=Math.round(l.y);else if("C"===l.type){var u=Math.round(l.x1-r),p=Math.round(l.y1-a),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);o=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:"dx1",type:"NUMBER",value:u}),t.push({name:"dy1",type:"NUMBER",value:p}),t.push({name:"dx2",type:"NUMBER",value:c}),t.push({name:"dy2",type:"NUMBER",value:f}),t.push({name:"dx",type:"NUMBER",value:o}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rrcurveto",type:"OP",value:8}),r=Math.round(l.x),a=Math.round(l.y)}}return t.push({name:"endchar",type:"OP",value:14}),t}var He={parse:function(e,t,n,r){n.tables.cff={};var a=function(e,t){var n={};return n.formatMajor=oe.getCard8(e,t),n.formatMinor=oe.getCard8(e,t+1),n.size=oe.getCard8(e,t+2),n.offsetSize=oe.getCard8(e,t+3),n.startOffset=t,n.endOffset=t+4,n}(e,t),i=Ee(e,a.endOffset,oe.bytesToString),o=Ee(e,i.endOffset),s=Ee(e,o.endOffset,oe.bytesToString),l=Ee(e,s.endOffset);n.gsubrs=l.objects,n.gsubrsBias=ke(n.gsubrs);var u=Ne(e,t,o.objects,s.objects);if(1!==u.length)throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+u.length);var p=u[0];if(n.tables.cff.topDict=p,p._privateDict&&(n.defaultWidthX=p._privateDict.defaultWidthX,n.nominalWidthX=p._privateDict.nominalWidthX),void 0!==p.ros[0]&&void 0!==p.ros[1]&&(n.isCIDFont=!0),n.isCIDFont){var c=p.fdArray,f=p.fdSelect;if(0===c||0===f)throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");var h=Ee(e,c+=t),d=Ne(e,t,h.objects,s.objects);p._fdArray=d,f+=t,p._fdSelect=function(e,t,n,r){var a,i=[],o=new oe.Parser(e,t),s=o.parseCard8();if(0===s)for(var l=0;l<n;l++){if((a=o.parseCard8())>=r)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+r+")");i.push(a)}else{if(3!==s)throw new Error("CFF Table CID Font FDSelect table has unsupported format "+s);var u,p=o.parseCard16(),c=o.parseCard16();if(0!==c)throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+c);for(var f=0;f<p;f++){if(a=o.parseCard8(),u=o.parseCard16(),a>=r)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+r+")");if(u>n)throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID "+u);for(;c<u;c++)i.push(a);c=u}if(u!==n)throw new Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+u)}return i}(e,f,n.numGlyphs,d.length)}var g,v=t+p.private[1],m=Fe(e,v,p.private[0],s.objects);if(n.defaultWidthX=m.defaultWidthX,n.nominalWidthX=m.nominalWidthX,0!==m.subrs){var y=v+m.subrs,b=Ee(e,y);n.subrs=b.objects,n.subrsBias=ke(n.subrs)}else n.subrs=[],n.subrsBias=0;r.lowMemory?(g=function(e,t){var n,r,a=[],i=oe.getCard16(e,t);if(0!==i){var o=oe.getByte(e,t+2);n=t+(i+1)*o+2;for(var s=t+3,l=0;l<i+1;l+=1)a.push(oe.getOffset(e,s,o)),s+=o;r=n+a[i]}else r=t+2;return{offsets:a,startOffset:t,endOffset:r}}(e,t+p.charStrings),n.nGlyphs=g.offsets.length):(g=Ee(e,t+p.charStrings),n.nGlyphs=g.objects.length);var x=function(e,t,n,r){var a,i,o=new oe.Parser(e,t);n-=1;var s=[".notdef"],l=o.parseCard8();if(0===l)for(var u=0;u<n;u+=1)a=o.parseSID(),s.push(Ue(r,a));else if(1===l)for(;s.length<=n;){a=o.parseSID(),i=o.parseCard8();for(var p=0;p<=i;p+=1)s.push(Ue(r,a)),a+=1}else{if(2!==l)throw new Error("Unknown charset format "+l);for(;s.length<=n;){a=o.parseSID(),i=o.parseCard16();for(var c=0;c<=i;c+=1)s.push(Ue(r,a)),a+=1}}return s}(e,t+p.charset,n.nGlyphs,s.objects);if(0===p.encoding?n.cffEncoding=new ge(pe,x):1===p.encoding?n.cffEncoding=new ge(ce,x):n.cffEncoding=function(e,t,n){var r,a={},i=new oe.Parser(e,t),o=i.parseCard8();if(0===o)for(var s=i.parseCard8(),l=0;l<s;l+=1)a[r=i.parseCard8()]=l;else{if(1!==o)throw new Error("Unknown encoding format "+o);var u=i.parseCard8();r=1;for(var p=0;p<u;p+=1)for(var c=i.parseCard8(),f=i.parseCard8(),h=c;h<=c+f;h+=1)a[h]=r,r+=1}return new ge(a,n)}(e,t+p.encoding,x),n.encoding=n.encoding||n.cffEncoding,n.glyphs=new Te.GlyphSet(n),r.lowMemory)n._push=function(r){var a=function(e,t,n,r,a){var i=oe.getCard16(n,r),o=0;0!==i&&(o=r+(i+1)*oe.getByte(n,r+2)+2);var s=oe.getBytes(n,o+t[e],o+t[e+1]);return a&&(s=a(s)),s}(r,g.offsets,e,t+p.charStrings);n.glyphs.push(r,Te.cffGlyphLoader(n,r,Ie,a))};else for(var S=0;S<n.nGlyphs;S+=1){var T=g.objects[S];n.glyphs.push(S,Te.cffGlyphLoader(n,S,Ie,T))}},make:function(e,t){for(var n,r=new J.Table("CFF ",[{name:"header",type:"RECORD"},{name:"nameIndex",type:"RECORD"},{name:"topDictIndex",type:"RECORD"},{name:"stringIndex",type:"RECORD"},{name:"globalSubrIndex",type:"RECORD"},{name:"charsets",type:"RECORD"},{name:"charStringsIndex",type:"RECORD"},{name:"privateDict",type:"RECORD"}]),a=1/t.unitsPerEm,i={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[a,0,0,a,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},o=[],s=1;s<e.length;s+=1)n=e.get(s),o.push(n.name);var l=[];r.header=new J.Record("Header",[{name:"major",type:"Card8",value:1},{name:"minor",type:"Card8",value:0},{name:"hdrSize",type:"Card8",value:4},{name:"major",type:"Card8",value:1}]),r.nameIndex=function(e){var t=new J.Record("Name INDEX",[{name:"names",type:"INDEX",value:[]}]);t.names=[];for(var n=0;n<e.length;n+=1)t.names.push({name:"name_"+n,type:"NAME",value:e[n]});return t}([t.postScriptName]);var u=Pe(i,l);r.topDictIndex=_e(u),r.globalSubrIndex=new J.Record("Global Subr INDEX",[{name:"subrs",type:"INDEX",value:[]}]),r.charsets=function(e,t){for(var n=new J.Record("Charsets",[{name:"format",type:"Card8",value:0}]),r=0;r<e.length;r+=1){var a=Me(e[r],t);n.fields.push({name:"glyph_"+r,type:"SID",value:a})}return n}(o,l),r.charStringsIndex=function(e){for(var t=new J.Record("CharStrings INDEX",[{name:"charStrings",type:"INDEX",value:[]}]),n=0;n<e.length;n+=1){var r=e.get(n),a=Ge(r);t.charStrings.push({name:r.name,type:"CHARSTRING",value:a})}return t}(e),r.privateDict=function(e,t){var n=new J.Record("Private DICT",[{name:"dict",type:"DICT",value:{}}]);return n.dict=Be(Re,e,t),n}({},l),r.stringIndex=function(e){var t=new J.Record("String INDEX",[{name:"strings",type:"INDEX",value:[]}]);t.strings=[];for(var n=0;n<e.length;n+=1)t.strings.push({name:"string_"+n,type:"STRING",value:e[n]});return t}(l);var p=r.header.sizeOf()+r.nameIndex.sizeOf()+r.topDictIndex.sizeOf()+r.stringIndex.sizeOf()+r.globalSubrIndex.sizeOf();return i.charset=p,i.encoding=0,i.charStrings=i.charset+r.charsets.sizeOf(),i.private[1]=i.charStrings+r.charStringsIndex.sizeOf(),u=Pe(i,l),r.topDictIndex=_e(u),r}};var je={parse:function(e,t){var n={},r=new oe.Parser(e,t);return n.version=r.parseVersion(),n.fontRevision=Math.round(1e3*r.parseFixed())/1e3,n.checkSumAdjustment=r.parseULong(),n.magicNumber=r.parseULong(),R.argument(1594834165===n.magicNumber,"Font header has wrong magic number."),n.flags=r.parseUShort(),n.unitsPerEm=r.parseUShort(),n.created=r.parseLongDateTime(),n.modified=r.parseLongDateTime(),n.xMin=r.parseShort(),n.yMin=r.parseShort(),n.xMax=r.parseShort(),n.yMax=r.parseShort(),n.macStyle=r.parseUShort(),n.lowestRecPPEM=r.parseUShort(),n.fontDirectionHint=r.parseShort(),n.indexToLocFormat=r.parseShort(),n.glyphDataFormat=r.parseShort(),n},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,n=t;return e.createdTimestamp&&(n=e.createdTimestamp+2082844800),new J.Table("head",[{name:"version",type:"FIXED",value:65536},{name:"fontRevision",type:"FIXED",value:65536},{name:"checkSumAdjustment",type:"ULONG",value:0},{name:"magicNumber",type:"ULONG",value:1594834165},{name:"flags",type:"USHORT",value:0},{name:"unitsPerEm",type:"USHORT",value:1e3},{name:"created",type:"LONGDATETIME",value:n},{name:"modified",type:"LONGDATETIME",value:t},{name:"xMin",type:"SHORT",value:0},{name:"yMin",type:"SHORT",value:0},{name:"xMax",type:"SHORT",value:0},{name:"yMax",type:"SHORT",value:0},{name:"macStyle",type:"USHORT",value:0},{name:"lowestRecPPEM",type:"USHORT",value:0},{name:"fontDirectionHint",type:"SHORT",value:2},{name:"indexToLocFormat",type:"SHORT",value:0},{name:"glyphDataFormat",type:"SHORT",value:0}],e)}};var qe={parse:function(e,t){var n={},r=new oe.Parser(e,t);return n.version=r.parseVersion(),n.ascender=r.parseShort(),n.descender=r.parseShort(),n.lineGap=r.parseShort(),n.advanceWidthMax=r.parseUShort(),n.minLeftSideBearing=r.parseShort(),n.minRightSideBearing=r.parseShort(),n.xMaxExtent=r.parseShort(),n.caretSlopeRise=r.parseShort(),n.caretSlopeRun=r.parseShort(),n.caretOffset=r.parseShort(),r.relativeOffset+=8,n.metricDataFormat=r.parseShort(),n.numberOfHMetrics=r.parseUShort(),n},make:function(e){return new J.Table("hhea",[{name:"version",type:"FIXED",value:65536},{name:"ascender",type:"FWORD",value:0},{name:"descender",type:"FWORD",value:0},{name:"lineGap",type:"FWORD",value:0},{name:"advanceWidthMax",type:"UFWORD",value:0},{name:"minLeftSideBearing",type:"FWORD",value:0},{name:"minRightSideBearing",type:"FWORD",value:0},{name:"xMaxExtent",type:"FWORD",value:0},{name:"caretSlopeRise",type:"SHORT",value:1},{name:"caretSlopeRun",type:"SHORT",value:0},{name:"caretOffset",type:"SHORT",value:0},{name:"reserved1",type:"SHORT",value:0},{name:"reserved2",type:"SHORT",value:0},{name:"reserved3",type:"SHORT",value:0},{name:"reserved4",type:"SHORT",value:0},{name:"metricDataFormat",type:"SHORT",value:0},{name:"numberOfHMetrics",type:"USHORT",value:0}],e)}};var ze={parse:function(e,t,n,r,a,i,o){o.lowMemory?function(e,t,n,r,a){var i,o;e._hmtxTableData={};for(var s=new oe.Parser(t,n),l=0;l<a;l+=1)l<r&&(i=s.parseUShort(),o=s.parseShort()),e._hmtxTableData[l]={advanceWidth:i,leftSideBearing:o}}(e,t,n,r,a):function(e,t,n,r,a){for(var i,o,s=new oe.Parser(e,t),l=0;l<r;l+=1){l<n&&(i=s.parseUShort(),o=s.parseShort());var u=a.get(l);u.advanceWidth=i,u.leftSideBearing=o}}(t,n,r,a,i)},make:function(e){for(var t=new J.Table("hmtx",[]),n=0;n<e.length;n+=1){var r=e.get(n),a=r.advanceWidth||0,i=r.leftSideBearing||0;t.fields.push({name:"advanceWidth_"+n,type:"USHORT",value:a}),t.fields.push({name:"leftSideBearing_"+n,type:"SHORT",value:i})}return t}};var We={make:function(e){for(var t=new J.Table("ltag",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"numTags",type:"ULONG",value:e.length}]),n="",r=12+4*e.length,a=0;a<e.length;++a){var i=n.indexOf(e[a]);i<0&&(i=n.length,n+=e[a]),t.fields.push({name:"offset "+a,type:"USHORT",value:r+i}),t.fields.push({name:"length "+a,type:"USHORT",value:e[a].length})}return t.fields.push({name:"stringPool",type:"CHARARRAY",value:n}),t},parse:function(e,t){var n=new oe.Parser(e,t),r=n.parseULong();R.argument(1===r,"Unsupported ltag table version."),n.skip("uLong",1);for(var a=n.parseULong(),i=[],o=0;o<a;o++){for(var s="",l=t+n.parseUShort(),u=n.parseUShort(),p=l;p<l+u;++p)s+=String.fromCharCode(e.getInt8(p));i.push(s)}return i}};var Xe={parse:function(e,t){var n={},r=new oe.Parser(e,t);return n.version=r.parseVersion(),n.numGlyphs=r.parseUShort(),1===n.version&&(n.maxPoints=r.parseUShort(),n.maxContours=r.parseUShort(),n.maxCompositePoints=r.parseUShort(),n.maxCompositeContours=r.parseUShort(),n.maxZones=r.parseUShort(),n.maxTwilightPoints=r.parseUShort(),n.maxStorage=r.parseUShort(),n.maxFunctionDefs=r.parseUShort(),n.maxInstructionDefs=r.parseUShort(),n.maxStackElements=r.parseUShort(),n.maxSizeOfInstructions=r.parseUShort(),n.maxComponentElements=r.parseUShort(),n.maxComponentDepth=r.parseUShort()),n},make:function(e){return new J.Table("maxp",[{name:"version",type:"FIXED",value:20480},{name:"numGlyphs",type:"USHORT",value:e}])}},Ve=["copyright","fontFamily","fontSubfamily","uniqueID","fullName","version","postScriptName","trademark","manufacturer","designer","description","manufacturerURL","designerURL","license","licenseURL","reserved","preferredFamily","preferredSubfamily","compatibleFullName","sampleText","postScriptFindFontName","wwsFamily","wwsSubfamily"],$e={0:"en",1:"fr",2:"de",3:"it",4:"nl",5:"sv",6:"es",7:"da",8:"pt",9:"no",10:"he",11:"ja",12:"ar",13:"fi",14:"el",15:"is",16:"mt",17:"tr",18:"hr",19:"zh-Hant",20:"ur",21:"hi",22:"th",23:"ko",24:"lt",25:"pl",26:"hu",27:"es",28:"lv",29:"se",30:"fo",31:"fa",32:"ru",33:"zh",34:"nl-BE",35:"ga",36:"sq",37:"ro",38:"cz",39:"sk",40:"si",41:"yi",42:"sr",43:"mk",44:"bg",45:"uk",46:"be",47:"uz",48:"kk",49:"az-Cyrl",50:"az-Arab",51:"hy",52:"ka",53:"mo",54:"ky",55:"tg",56:"tk",57:"mn-CN",58:"mn",59:"ps",60:"ks",61:"ku",62:"sd",63:"bo",64:"ne",65:"sa",66:"mr",67:"bn",68:"as",69:"gu",70:"pa",71:"or",72:"ml",73:"kn",74:"ta",75:"te",76:"si",77:"my",78:"km",79:"lo",80:"vi",81:"id",82:"tl",83:"ms",84:"ms-Arab",85:"am",86:"ti",87:"om",88:"so",89:"sw",90:"rw",91:"rn",92:"ny",93:"mg",94:"eo",128:"cy",129:"eu",130:"ca",131:"la",132:"qu",133:"gn",134:"ay",135:"tt",136:"ug",137:"dz",138:"jv",139:"su",140:"gl",141:"af",142:"br",143:"iu",144:"gd",145:"gv",146:"ga",147:"to",148:"el-polyton",149:"kl",150:"az",151:"nn"},Ye={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ze={1078:"af",1052:"sq",1156:"gsw",1118:"am",5121:"ar-DZ",15361:"ar-BH",3073:"ar",2049:"ar-IQ",11265:"ar-JO",13313:"ar-KW",12289:"ar-LB",4097:"ar-LY",6145:"ary",8193:"ar-OM",16385:"ar-QA",1025:"ar-SA",10241:"ar-SY",7169:"aeb",14337:"ar-AE",9217:"ar-YE",1067:"hy",1101:"as",2092:"az-Cyrl",1068:"az",1133:"ba",1069:"eu",1059:"be",2117:"bn",1093:"bn-IN",8218:"bs-Cyrl",5146:"bs",1150:"br",1026:"bg",1027:"ca",3076:"zh-HK",5124:"zh-MO",2052:"zh",4100:"zh-SG",1028:"zh-TW",1155:"co",1050:"hr",4122:"hr-BA",1029:"cs",1030:"da",1164:"prs",1125:"dv",2067:"nl-BE",1043:"nl",3081:"en-AU",10249:"en-BZ",4105:"en-CA",9225:"en-029",16393:"en-IN",6153:"en-IE",8201:"en-JM",17417:"en-MY",5129:"en-NZ",13321:"en-PH",18441:"en-SG",7177:"en-ZA",11273:"en-TT",2057:"en-GB",1033:"en",12297:"en-ZW",1061:"et",1080:"fo",1124:"fil",1035:"fi",2060:"fr-BE",3084:"fr-CA",1036:"fr",5132:"fr-LU",6156:"fr-MC",4108:"fr-CH",1122:"fy",1110:"gl",1079:"ka",3079:"de-AT",1031:"de",5127:"de-LI",4103:"de-LU",2055:"de-CH",1032:"el",1135:"kl",1095:"gu",1128:"ha",1037:"he",1081:"hi",1038:"hu",1039:"is",1136:"ig",1057:"id",1117:"iu",2141:"iu-Latn",2108:"ga",1076:"xh",1077:"zu",1040:"it",2064:"it-CH",1041:"ja",1099:"kn",1087:"kk",1107:"km",1158:"quc",1159:"rw",1089:"sw",1111:"kok",1042:"ko",1088:"ky",1108:"lo",1062:"lv",1063:"lt",2094:"dsb",1134:"lb",1071:"mk",2110:"ms-BN",1086:"ms",1100:"ml",1082:"mt",1153:"mi",1146:"arn",1102:"mr",1148:"moh",1104:"mn",2128:"mn-CN",1121:"ne",1044:"nb",2068:"nn",1154:"oc",1096:"or",1123:"ps",1045:"pl",1046:"pt",2070:"pt-PT",1094:"pa",1131:"qu-BO",2155:"qu-EC",3179:"qu",1048:"ro",1047:"rm",1049:"ru",9275:"smn",4155:"smj-NO",5179:"smj",3131:"se-FI",1083:"se",2107:"se-SE",8251:"sms",6203:"sma-NO",7227:"sms",1103:"sa",7194:"sr-Cyrl-BA",3098:"sr",6170:"sr-Latn-BA",2074:"sr-Latn",1132:"nso",1074:"tn",1115:"si",1051:"sk",1060:"sl",11274:"es-AR",16394:"es-BO",13322:"es-CL",9226:"es-CO",5130:"es-CR",7178:"es-DO",12298:"es-EC",17418:"es-SV",4106:"es-GT",18442:"es-HN",2058:"es-MX",19466:"es-NI",6154:"es-PA",15370:"es-PY",10250:"es-PE",20490:"es-PR",3082:"es",1034:"es",21514:"es-US",14346:"es-UY",8202:"es-VE",2077:"sv-FI",1053:"sv",1114:"syr",1064:"tg",2143:"tzm",1097:"ta",1092:"tt",1098:"te",1054:"th",1105:"bo",1055:"tr",1090:"tk",1152:"ug",1058:"uk",1070:"hsb",1056:"ur",2115:"uz-Cyrl",1091:"uz",1066:"vi",1106:"cy",1160:"wo",1157:"sah",1144:"ii",1130:"yo"};function Ke(e,t,n){switch(e){case 0:if(65535===t)return"und";if(n)return n[t];break;case 1:return $e[t];case 3:return Ze[t]}}var Je="utf-16",Qe={0:"macintosh",1:"x-mac-japanese",2:"x-mac-chinesetrad",3:"x-mac-korean",6:"x-mac-greek",7:"x-mac-cyrillic",9:"x-mac-devanagai",10:"x-mac-gurmukhi",11:"x-mac-gujarati",12:"x-mac-oriya",13:"x-mac-bengali",14:"x-mac-tamil",15:"x-mac-telugu",16:"x-mac-kannada",17:"x-mac-malayalam",18:"x-mac-sinhalese",19:"x-mac-burmese",20:"x-mac-khmer",21:"x-mac-thai",22:"x-mac-lao",23:"x-mac-georgian",24:"x-mac-armenian",25:"x-mac-chinesesimp",26:"x-mac-tibetan",27:"x-mac-mongolian",28:"x-mac-ethiopic",29:"x-mac-ce",30:"x-mac-vietnamese",31:"x-mac-extarabic"},et={15:"x-mac-icelandic",17:"x-mac-turkish",18:"x-mac-croatian",24:"x-mac-ce",25:"x-mac-ce",26:"x-mac-ce",27:"x-mac-ce",28:"x-mac-ce",30:"x-mac-icelandic",37:"x-mac-romanian",38:"x-mac-ce",39:"x-mac-ce",40:"x-mac-ce",143:"x-mac-inuit",146:"x-mac-gaelic"};function tt(e,t,n){switch(e){case 0:return Je;case 1:return et[n]||Qe[t];case 3:if(1===t||10===t)return Je}}function nt(e){var t={};for(var n in e)t[e[n]]=parseInt(n);return t}function rt(e,t,n,r,a,i){return new J.Record("NameRecord",[{name:"platformID",type:"USHORT",value:e},{name:"encodingID",type:"USHORT",value:t},{name:"languageID",type:"USHORT",value:n},{name:"nameID",type:"USHORT",value:r},{name:"length",type:"USHORT",value:a},{name:"offset",type:"USHORT",value:i}])}function at(e,t){var n=function(e,t){var n=e.length,r=t.length-n+1;e:for(var a=0;a<r;a++)for(;a<r;a++){for(var i=0;i<n;i++)if(t[a+i]!==e[i])continue e;return a}return-1}(e,t);if(n<0){n=t.length;for(var r=0,a=e.length;r<a;++r)t.push(e[r])}return n}var it={parse:function(e,t,n){for(var r={},a=new oe.Parser(e,t),i=a.parseUShort(),o=a.parseUShort(),s=a.offset+a.parseUShort(),l=0;l<o;l++){var u=a.parseUShort(),p=a.parseUShort(),c=a.parseUShort(),f=a.parseUShort(),h=Ve[f]||f,d=a.parseUShort(),g=a.parseUShort(),v=Ke(u,c,n),m=tt(u,p,c);if(void 0!==m&&void 0!==v){var y=void 0;if(y=m===Je?A.UTF16(e,s+g,d):A.MACSTRING(e,s+g,d,m)){var b=r[h];void 0===b&&(b=r[h]={}),b[v]=y}}}return 1===i&&a.parseUShort(),r},make:function(e,t){var n,r=[],a={},i=nt(Ve);for(var o in e){var s=i[o];if(void 0===s&&(s=o),n=parseInt(s),isNaN(n))throw new Error('Name table entry "'+o+'" does not exist, see nameTableNames for complete list.');a[n]=e[o],r.push(n)}for(var l=nt($e),u=nt(Ze),p=[],c=[],f=0;f<r.length;f++){var h=a[n=r[f]];for(var d in h){var g=h[d],v=1,m=l[d],y=Ye[m],b=tt(v,y,m),x=F.MACSTRING(g,b);void 0===x&&(v=0,(m=t.indexOf(d))<0&&(m=t.length,t.push(d)),y=4,x=F.UTF16(g));var S=at(x,c);p.push(rt(v,y,m,n,x.length,S));var T=u[d];if(void 0!==T){var w=F.UTF16(g),k=at(w,c);p.push(rt(3,1,T,n,w.length,k))}}}p.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new J.Table("name",[{name:"format",type:"USHORT",value:0},{name:"count",type:"USHORT",value:p.length},{name:"stringOffset",type:"USHORT",value:6+12*p.length}]),C=0;C<p.length;C++)E.fields.push({name:"record_"+C,type:"RECORD",value:p[C]});return E.fields.push({name:"strings",type:"LITERAL",value:c}),E}},ot=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var st={parse:function(e,t){var n={},r=new oe.Parser(e,t);n.version=r.parseUShort(),n.xAvgCharWidth=r.parseShort(),n.usWeightClass=r.parseUShort(),n.usWidthClass=r.parseUShort(),n.fsType=r.parseUShort(),n.ySubscriptXSize=r.parseShort(),n.ySubscriptYSize=r.parseShort(),n.ySubscriptXOffset=r.parseShort(),n.ySubscriptYOffset=r.parseShort(),n.ySuperscriptXSize=r.parseShort(),n.ySuperscriptYSize=r.parseShort(),n.ySuperscriptXOffset=r.parseShort(),n.ySuperscriptYOffset=r.parseShort(),n.yStrikeoutSize=r.parseShort(),n.yStrikeoutPosition=r.parseShort(),n.sFamilyClass=r.parseShort(),n.panose=[];for(var a=0;a<10;a++)n.panose[a]=r.parseByte();return n.ulUnicodeRange1=r.parseULong(),n.ulUnicodeRange2=r.parseULong(),n.ulUnicodeRange3=r.parseULong(),n.ulUnicodeRange4=r.parseULong(),n.achVendID=String.fromCharCode(r.parseByte(),r.parseByte(),r.parseByte(),r.parseByte()),n.fsSelection=r.parseUShort(),n.usFirstCharIndex=r.parseUShort(),n.usLastCharIndex=r.parseUShort(),n.sTypoAscender=r.parseShort(),n.sTypoDescender=r.parseShort(),n.sTypoLineGap=r.parseShort(),n.usWinAscent=r.parseUShort(),n.usWinDescent=r.parseUShort(),n.version>=1&&(n.ulCodePageRange1=r.parseULong(),n.ulCodePageRange2=r.parseULong()),n.version>=2&&(n.sxHeight=r.parseShort(),n.sCapHeight=r.parseShort(),n.usDefaultChar=r.parseUShort(),n.usBreakChar=r.parseUShort(),n.usMaxContent=r.parseUShort()),n},make:function(e){return new J.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)},unicodeRanges:ot,getUnicodeRange:function(e){for(var t=0;t<ot.length;t+=1){var n=ot[t];if(e>=n.begin&&e<n.end)return t}return-1}};var lt={parse:function(e,t){var n={},r=new oe.Parser(e,t);switch(n.version=r.parseVersion(),n.italicAngle=r.parseFixed(),n.underlinePosition=r.parseShort(),n.underlineThickness=r.parseShort(),n.isFixedPitch=r.parseULong(),n.minMemType42=r.parseULong(),n.maxMemType42=r.parseULong(),n.minMemType1=r.parseULong(),n.maxMemType1=r.parseULong(),n.version){case 1:n.names=fe.slice();break;case 2:n.numberOfGlyphs=r.parseUShort(),n.glyphNameIndex=new Array(n.numberOfGlyphs);for(var a=0;a<n.numberOfGlyphs;a++)n.glyphNameIndex[a]=r.parseUShort();n.names=[];for(var i=0;i<n.numberOfGlyphs;i++)if(n.glyphNameIndex[i]>=fe.length){var o=r.parseChar();n.names.push(r.parseString(o))}break;case 2.5:n.numberOfGlyphs=r.parseUShort(),n.offset=new Array(n.numberOfGlyphs);for(var s=0;s<n.numberOfGlyphs;s++)n.offset[s]=r.parseChar()}return n},make:function(){return new J.Table("post",[{name:"version",type:"FIXED",value:196608},{name:"italicAngle",type:"FIXED",value:0},{name:"underlinePosition",type:"FWORD",value:0},{name:"underlineThickness",type:"FWORD",value:0},{name:"isFixedPitch",type:"ULONG",value:0},{name:"minMemType42",type:"ULONG",value:0},{name:"maxMemType42",type:"ULONG",value:0},{name:"minMemType1",type:"ULONG",value:0},{name:"maxMemType1",type:"ULONG",value:0}])}},ut=new Array(9);ut[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(ae.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(ae.coverage),substitute:this.parseOffset16List()}:void R.assert(!1,"0x"+e.toString(16)+": lookup type 1 format must be 1 or 2.")},ut[2]=function(){var e=this.parseUShort();return R.argument(1===e,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),sequences:this.parseListOfLists()}},ut[3]=function(){var e=this.parseUShort();return R.argument(1===e,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),alternateSets:this.parseListOfLists()}},ut[4]=function(){var e=this.parseUShort();return R.argument(1===e,"GSUB ligature table identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var pt={sequenceIndex:ae.uShort,lookupListIndex:ae.uShort};ut[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(ae.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,pt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(ae.coverage),classDef:this.parsePointer(ae.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,pt)}})};if(3===t){var n=this.parseUShort(),r=this.parseUShort();return{substFormat:t,coverages:this.parseList(n,ae.pointer(ae.coverage)),lookupRecords:this.parseRecordList(r,pt)}}R.assert(!1,"0x"+e.toString(16)+": lookup type 5 format must be 1, 2 or 3.")},ut[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(ae.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(pt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(ae.coverage),backtrackClassDef:this.parsePointer(ae.classDef),inputClassDef:this.parsePointer(ae.classDef),lookaheadClassDef:this.parsePointer(ae.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(pt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(ae.pointer(ae.coverage)),inputCoverage:this.parseList(ae.pointer(ae.coverage)),lookaheadCoverage:this.parseList(ae.pointer(ae.coverage)),lookupRecords:this.parseRecordList(pt)}:void R.assert(!1,"0x"+e.toString(16)+": lookup type 6 format must be 1, 2 or 3.")},ut[7]=function(){var e=this.parseUShort();R.argument(1===e,"GSUB Extension Substitution subtable identifier-format must be 1");var t=this.parseUShort(),n=new ae(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:ut[t].call(n)}},ut[8]=function(){var e=this.parseUShort();return R.argument(1===e,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),backtrackCoverage:this.parseList(ae.pointer(ae.coverage)),lookaheadCoverage:this.parseList(ae.pointer(ae.coverage)),substitutes:this.parseUShortList()}};var ct=new Array(9);ct[1]=function(e){return 1===e.substFormat?new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)},{name:"deltaGlyphID",type:"USHORT",value:e.deltaGlyphId}]):new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:2},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)}].concat(J.ushortList("substitute",e.substitute)))},ct[3]=function(e){return R.assert(1===e.substFormat,"Lookup type 3 substFormat must be 1."),new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)}].concat(J.tableList("altSet",e.alternateSets,function(e){return new J.Table("alternateSetTable",J.ushortList("alternate",e))})))},ct[4]=function(e){return R.assert(1===e.substFormat,"Lookup type 4 substFormat must be 1."),new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)}].concat(J.tableList("ligSet",e.ligatureSets,function(e){return new J.Table("ligatureSetTable",J.tableList("ligature",e,function(e){return new J.Table("ligatureTable",[{name:"ligGlyph",type:"USHORT",value:e.ligGlyph}].concat(J.ushortList("component",e.components,e.components.length+1)))}))})))};var ft={parse:function(e,t){var n=new ae(e,t=t||0),r=n.parseVersion(1);return R.argument(1===r||1.1===r,"Unsupported GSUB table version."),1===r?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(ut)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(ut),variations:n.parseFeatureVariationsList()}},make:function(e){return new J.Table("GSUB",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new J.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new J.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new J.LookupList(e.lookups,ct)}])}};var ht={parse:function(e,t){var n=new oe.Parser(e,t),r=n.parseULong();R.argument(1===r,"Unsupported META table version."),n.parseULong(),n.parseULong();for(var a=n.parseULong(),i={},o=0;o<a;o++){var s=n.parseTag(),l=n.parseULong(),u=n.parseULong(),p=A.UTF8(e,t+l,u);i[s]=p}return i},make:function(e){var t=Object.keys(e).length,n="",r=16+12*t,a=new J.Table("meta",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"offset",type:"ULONG",value:r},{name:"numTags",type:"ULONG",value:t}]);for(var i in e){var o=n.length;n+=e[i],a.fields.push({name:"tag "+i,type:"TAG",value:i}),a.fields.push({name:"offset "+i,type:"ULONG",value:r+o}),a.fields.push({name:"length "+i,type:"ULONG",value:e[i].length})}return a.fields.push({name:"stringPool",type:"CHARARRAY",value:n}),a}};function dt(e){return Math.log(e)/Math.log(2)|0}function gt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,n=0;n<e.length;n+=4)t+=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];return t%=Math.pow(2,32)}function vt(e,t,n,r){return new J.Record("Table Record",[{name:"tag",type:"TAG",value:void 0!==e?e:""},{name:"checkSum",type:"ULONG",value:void 0!==t?t:0},{name:"offset",type:"ULONG",value:void 0!==n?n:0},{name:"length",type:"ULONG",value:void 0!==r?r:0}])}function mt(e){var t=new J.Table("sfnt",[{name:"version",type:"TAG",value:"OTTO"},{name:"numTables",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);t.tables=e,t.numTables=e.length;var n=Math.pow(2,dt(t.numTables));t.searchRange=16*n,t.entrySelector=dt(n),t.rangeShift=16*t.numTables-t.searchRange;for(var r=[],a=[],i=t.sizeOf()+vt().sizeOf()*t.numTables;i%4!=0;)i+=1,a.push({name:"padding",type:"BYTE",value:0});for(var o=0;o<e.length;o+=1){var s=e[o];R.argument(4===s.tableName.length,"Table name"+s.tableName+" is invalid.");var l=s.sizeOf(),u=vt(s.tableName,gt(s.encode()),i,l);for(r.push({name:u.tag+" Table Record",type:"RECORD",value:u}),a.push({name:s.tableName+" table",type:"RECORD",value:s}),i+=l,R.argument(!isNaN(i),"Something went wrong calculating the offset.");i%4!=0;)i+=1,a.push({name:"padding",type:"BYTE",value:0})}return r.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(r),t.fields=t.fields.concat(a),t}function yt(e,t,n){for(var r=0;r<t.length;r+=1){var a=e.charToGlyphIndex(t[r]);if(a>0)return e.glyphs.get(a).getMetrics()}return n}function bt(e){for(var t=0,n=0;n<e.length;n+=1)t+=e[n];return t/e.length}var xt={make:mt,fontToTable:function(e){for(var t,n=[],r=[],a=[],i=[],o=[],s=[],l=[],u=0,p=0,c=0,f=0,h=0,d=0;d<e.glyphs.length;d+=1){var g=e.glyphs.get(d),v=0|g.unicode;if(isNaN(g.advanceWidth))throw new Error("Glyph "+g.name+" ("+d+"): advanceWidth is not a number.");(t>v||void 0===t)&&v>0&&(t=v),u<v&&(u=v);var m=st.getUnicodeRange(v);if(m<32)p|=1<<m;else if(m<64)c|=1<<m-32;else if(m<96)f|=1<<m-64;else{if(!(m<123))throw new Error("Unicode ranges bits > 123 are reserved for internal usage");h|=1<<m-96}if(".notdef"!==g.name){var y=g.getMetrics();n.push(y.xMin),r.push(y.yMin),a.push(y.xMax),i.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),o.push(g.advanceWidth)}}var b={xMin:Math.min.apply(null,n),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,a),yMax:Math.max.apply(null,i),advanceWidthMax:Math.max.apply(null,o),advanceWidthAvg:bt(o),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var x=je.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),S=qe.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),T=Xe.make(e.glyphs.length),w=st.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:p,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:h,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:yt(e,"xyvw",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:yt(e,"HIKLEFJMNTZBDPRAGOQSUVWXY",b).yMax,usDefaultChar:e.hasChar(" ")?32:0,usBreakChar:e.hasChar(" ")?32:0}),k=ze.make(e.glyphs),E=le.make(e.glyphs),C=e.getEnglishName("fontFamily"),O=e.getEnglishName("fontSubfamily"),U=C+" "+O,L=e.getEnglishName("postScriptName");L||(L=C.replace(/\s/g,"")+"-"+O);var D={};for(var R in e.names)D[R]=e.names[R];D.uniqueID||(D.uniqueID={en:e.getEnglishName("manufacturer")+":"+U}),D.postScriptName||(D.postScriptName={en:L}),D.preferredFamily||(D.preferredFamily=e.names.fontFamily),D.preferredSubfamily||(D.preferredSubfamily=e.names.fontSubfamily);var A=[],F=it.make(D,A),N=A.length>0?We.make(A):void 0,I=lt.make(),M=He.make(e.glyphs,{version:e.getEnglishName("version"),fullName:U,familyName:C,weightName:O,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),B=e.metas&&Object.keys(e.metas).length>0?ht.make(e.metas):void 0,P=[x,S,T,w,F,E,I,M,k];N&&P.push(N),e.tables.gsub&&P.push(ft.make(e.tables.gsub)),B&&P.push(B);for(var _=mt(P),G=gt(_.encode()),H=_.fields,j=!1,q=0;q<H.length;q+=1)if("head table"===H[q].name){H[q].value.checkSumAdjustment=2981146554-G,j=!0;break}if(!j)throw new Error("Could not find head table with checkSum to adjust.");return _},computeCheckSum:gt};function St(e,t){for(var n=0,r=e.length-1;n<=r;){var a=n+r>>>1,i=e[a].tag;if(i===t)return a;i<t?n=a+1:r=a-1}return-n-1}function Tt(e,t){for(var n=0,r=e.length-1;n<=r;){var a=n+r>>>1,i=e[a];if(i===t)return a;i<t?n=a+1:r=a-1}return-n-1}function wt(e,t){for(var n,r=0,a=e.length-1;r<=a;){var i=r+a>>>1,o=(n=e[i]).start;if(o===t)return n;o<t?r=i+1:a=i-1}if(r>0)return t>(n=e[r-1]).end?0:n}function kt(e,t){this.font=e,this.tableName=t}function Et(e){kt.call(this,e,"gpos")}function Ct(e){kt.call(this,e,"gsub")}function Ot(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Ut(e,t,n){for(var r=e.subtables,a=0;a<r.length;a++){var i=r[a];if(i.substFormat===t)return i}if(n)return r.push(n),n}function Lt(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;++r)n[r]=e[r];return t}function Dt(e,t){if(!e)throw t}function Rt(e,t,n,r,a){var i;return(t&r)>0?(i=e.parseByte(),0==(t&a)&&(i=-i),i=n+i):i=(t&a)>0?n:n+e.parseShort(),i}function At(e,t,n){var r,a,i=new oe.Parser(t,n);if(e.numberOfContours=i.parseShort(),e._xMin=i.parseShort(),e._yMin=i.parseShort(),e._xMax=i.parseShort(),e._yMax=i.parseShort(),e.numberOfContours>0){for(var o=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)o.push(i.parseUShort());e.instructionLength=i.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(i.parseByte());var u=o[o.length-1]+1;r=[];for(var p=0;p<u;p+=1)if(a=i.parseByte(),r.push(a),(8&a)>0)for(var c=i.parseByte(),f=0;f<c;f+=1)r.push(a),p+=1;if(R.argument(r.length===u,"Bad flags."),o.length>0){var h,d=[];if(u>0){for(var g=0;g<u;g+=1)a=r[g],(h={}).onCurve=!!(1&a),h.lastPointOfContour=o.indexOf(g)>=0,d.push(h);for(var v=0,m=0;m<u;m+=1)a=r[m],(h=d[m]).x=Rt(i,a,v,2,16),v=h.x;for(var y=0,b=0;b<u;b+=1)a=r[b],(h=d[b]).y=Rt(i,a,y,4,32),y=h.y}e.points=d}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var x=!0;x;){r=i.parseUShort();var S={glyphIndex:i.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(1&r)>0?(2&r)>0?(S.dx=i.parseShort(),S.dy=i.parseShort()):S.matchedPoints=[i.parseUShort(),i.parseUShort()]:(2&r)>0?(S.dx=i.parseChar(),S.dy=i.parseChar()):S.matchedPoints=[i.parseByte(),i.parseByte()],(8&r)>0?S.xScale=S.yScale=i.parseF2Dot14():(64&r)>0?(S.xScale=i.parseF2Dot14(),S.yScale=i.parseF2Dot14()):(128&r)>0&&(S.xScale=i.parseF2Dot14(),S.scale01=i.parseF2Dot14(),S.scale10=i.parseF2Dot14(),S.yScale=i.parseF2Dot14()),e.components.push(S),x=!!(32&r)}if(256&r){e.instructionLength=i.parseUShort(),e.instructions=[];for(var T=0;T<e.instructionLength;T+=1)e.instructions.push(i.parseByte())}}}function Ft(e,t){for(var n=[],r=0;r<e.length;r+=1){var a=e[r],i={x:t.xScale*a.x+t.scale01*a.y+t.dx,y:t.scale10*a.x+t.yScale*a.y+t.dy,onCurve:a.onCurve,lastPointOfContour:a.lastPointOfContour};n.push(i)}return n}function Nt(e){var t=new U;if(!e)return t;for(var n=function(e){for(var t=[],n=[],r=0;r<e.length;r+=1){var a=e[r];n.push(a),a.lastPointOfContour&&(t.push(n),n=[])}return R.argument(0===n.length,"There are still points left in the current contour."),t}(e),r=0;r<n.length;++r){var a=n[r],i=null,o=a[a.length-1],s=a[0];if(o.onCurve)t.moveTo(o.x,o.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(o.x+s.x),y:.5*(o.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<a.length;++u)if(i=o,o=s,s=a[(u+1)%a.length],o.onCurve)t.lineTo(o.x,o.y);else{var p=s;i.onCurve||{x:.5*(o.x+i.x),y:.5*(o.y+i.y)},s.onCurve||(p={x:.5*(o.x+s.x),y:.5*(o.y+s.y)}),t.quadraticCurveTo(o.x,o.y,p.x,p.y)}t.closePath()}return t}function It(e,t){if(t.isComposite)for(var n=0;n<t.components.length;n+=1){var r=t.components[n],a=e.get(r.glyphIndex);if(a.getPath(),a.points){var i=void 0;if(void 0===r.matchedPoints)i=Ft(a.points,r);else{if(r.matchedPoints[0]>t.points.length-1||r.matchedPoints[1]>a.points.length-1)throw Error("Matched points out of range in "+t.name);var o=t.points[r.matchedPoints[0]],s=a.points[r.matchedPoints[1]],l={xScale:r.xScale,scale01:r.scale01,scale10:r.scale10,yScale:r.yScale,dx:0,dy:0};s=Ft([s],l)[0],l.dx=o.x-s.x,l.dy=o.y-s.y,i=Ft(a.points,l)}t.points=t.points.concat(i)}}return Nt(t.points)}kt.prototype={searchTag:St,binSearch:Tt,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,n=0;n<e.scripts.length;n++){var r=e.scripts[n].tag;if("DFLT"===r)return r;"latn"===r&&(t=!0)}return t?"latn":void 0}},getScriptTable:function(e,t){var n=this.getTable(t);if(n){e=e||"DFLT";var r=n.scripts,a=St(n.scripts,e);if(a>=0)return r[a].script;if(t){var i={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return r.splice(-1-a,0,i),i.script}}},getLangSysTable:function(e,t,n){var r=this.getScriptTable(e,n);if(r){if(!t||"dflt"===t||"DFLT"===t)return r.defaultLangSys;var a=St(r.langSysRecords,t);if(a>=0)return r.langSysRecords[a].langSys;if(n){var i={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return r.langSysRecords.splice(-1-a,0,i),i.langSys}}},getFeatureTable:function(e,t,n,r){var a=this.getLangSysTable(e,t,r);if(a){for(var i,o=a.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<o.length;l++)if((i=s[o[l]]).tag===n)return i.feature;if(r){var u=s.length;return R.assert(0===u||n>=s[u-1].tag,"Features must be added in alphabetical order."),i={tag:n,feature:{params:0,lookupListIndexes:[]}},s.push(i),o.push(u),i.feature}}},getLookupTables:function(e,t,n,r,a){var i=this.getFeatureTable(e,t,n,a),o=[];if(i){for(var s,l=i.lookupListIndexes,u=this.font.tables[this.tableName].lookups,p=0;p<l.length;p++)(s=u[l[p]]).lookupType===r&&o.push(s);if(0===o.length&&a){s={lookupType:r,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return o},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var n=wt(e.ranges,t);return n?n.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var n=Tt(e.glyphs,t);return n>=0?n:-1;case 2:var r=wt(e.ranges,t);return r?r.index+t-r.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],n=e.ranges,r=0;r<n.length;r++)for(var a=n[r],i=a.start,o=a.end,s=i;s<=o;s++)t.push(s);return t}},Et.prototype=kt.prototype,Et.prototype.init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},Et.prototype.getKerningValue=function(e,t,n){for(var r=0;r<e.length;r++)for(var a=e[r].subtables,i=0;i<a.length;i++){var o=a[i],s=this.getCoverageIndex(o.coverage,t);if(!(s<0))switch(o.posFormat){case 1:for(var l=o.pairSets[s],u=0;u<l.length;u++){var p=l[u];if(p.secondGlyph===n)return p.value1&&p.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(o.classDef1,t),f=this.getGlyphClass(o.classDef2,n),h=o.classRecords[c][f];return h.value1&&h.value1.xAdvance||0}}return 0},Et.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,"kern",2)},Ct.prototype=kt.prototype,Ct.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},Ct.prototype.getSingle=function(e,t,n){for(var r=[],a=this.getLookupTables(t,n,e,1),i=0;i<a.length;i++)for(var o=a[i].subtables,s=0;s<o.length;s++){var l=o[s],u=this.expandCoverage(l.coverage),p=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(p=0;p<u.length;p++){var f=u[p];r.push({sub:f,by:f+c})}}else{var h=l.substitute;for(p=0;p<u.length;p++)r.push({sub:u[p],by:h[p]})}}return r},Ct.prototype.getAlternates=function(e,t,n){for(var r=[],a=this.getLookupTables(t,n,e,3),i=0;i<a.length;i++)for(var o=a[i].subtables,s=0;s<o.length;s++)for(var l=o[s],u=this.expandCoverage(l.coverage),p=l.alternateSets,c=0;c<u.length;c++)r.push({sub:u[c],by:p[c]});return r},Ct.prototype.getLigatures=function(e,t,n){for(var r=[],a=this.getLookupTables(t,n,e,4),i=0;i<a.length;i++)for(var o=a[i].subtables,s=0;s<o.length;s++)for(var l=o[s],u=this.expandCoverage(l.coverage),p=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],h=p[c],d=0;d<h.length;d++){var g=h[d];r.push({sub:[f].concat(g.components),by:g.ligGlyph})}return r},Ct.prototype.addSingle=function(e,t,n,r){var a=Ut(this.getLookupTables(n,r,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});R.assert(1===a.coverage.format,"Ligature: unable to modify coverage table format "+a.coverage.format);var i=t.sub,o=this.binSearch(a.coverage.glyphs,i);o<0&&(o=-1-o,a.coverage.glyphs.splice(o,0,i),a.substitute.splice(o,0,0)),a.substitute[o]=t.by},Ct.prototype.addAlternate=function(e,t,n,r){var a=Ut(this.getLookupTables(n,r,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});R.assert(1===a.coverage.format,"Ligature: unable to modify coverage table format "+a.coverage.format);var i=t.sub,o=this.binSearch(a.coverage.glyphs,i);o<0&&(o=-1-o,a.coverage.glyphs.splice(o,0,i),a.alternateSets.splice(o,0,0)),a.alternateSets[o]=t.by},Ct.prototype.addLigature=function(e,t,n,r){var a=this.getLookupTables(n,r,e,4,!0)[0],i=a.subtables[0];i||(i={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},a.subtables[0]=i),R.assert(1===i.coverage.format,"Ligature: unable to modify coverage table format "+i.coverage.format);var o=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(i.coverage.glyphs,o);if(u>=0){for(var p=i.ligatureSets[u],c=0;c<p.length;c++)if(Ot(p[c].components,s))return;p.push(l)}else u=-1-u,i.coverage.glyphs.splice(u,0,o),i.ligatureSets.splice(u,0,[l])},Ct.prototype.getFeature=function(e,t,n){if(/ss\d\d/.test(e))return this.getSingle(e,t,n);switch(e){case"aalt":case"salt":return this.getSingle(e,t,n).concat(this.getAlternates(e,t,n));case"dlig":case"liga":case"rlig":return this.getLigatures(e,t,n)}},Ct.prototype.add=function(e,t,n,r){if(/ss\d\d/.test(e))return this.addSingle(e,t,n,r);switch(e){case"aalt":case"salt":return"number"==typeof t.by?this.addSingle(e,t,n,r):this.addAlternate(e,t,n,r);case"dlig":case"liga":case"rlig":return this.addLigature(e,t,n,r)}};var Mt,Bt,Pt,_t,Gt={getPath:Nt,parse:function(e,t,n,r,a){return a.lowMemory?function(e,t,n,r){var a=new Te.GlyphSet(r);return r._push=function(i){var o=n[i];o!==n[i+1]?a.push(i,Te.ttfGlyphLoader(r,i,At,e,t+o,It)):a.push(i,Te.glyphLoader(r,i))},a}(e,t,n,r):function(e,t,n,r){for(var a=new Te.GlyphSet(r),i=0;i<n.length-1;i+=1){var o=n[i];o!==n[i+1]?a.push(i,Te.ttfGlyphLoader(r,i,At,e,t+o,It)):a.push(i,Te.glyphLoader(r,i))}return a}(e,t,n,r)}};function Ht(e){this.font=e,this.getCommands=function(e){return Gt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function jt(e){return e}function qt(e){return Math.sign(e)*Math.round(Math.abs(e))}function zt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Wt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function Xt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Vt(e){return Math.sign(e)*Math.floor(Math.abs(e))}var $t=function(e){var t=this.srPeriod,n=this.srPhase,r=1;return e<0&&(e=-e,r=-1),e+=this.srThreshold-n,e=Math.trunc(e/t)*t,(e+=n)<0?n*r:e*r},Yt={x:1,y:0,axis:"x",distance:function(e,t,n,r){return(n?e.xo:e.x)-(r?t.xo:t.x)},interpolate:function(e,t,n,r){var a,i,o,s,l,u,p;if(!r||r===this)return a=e.xo-t.xo,i=e.xo-n.xo,l=t.x-t.xo,u=n.x-n.xo,0===(p=(o=Math.abs(a))+(s=Math.abs(i)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*o)/p);a=r.distance(e,t,!0,!0),i=r.distance(e,n,!0,!0),l=r.distance(t,t,!1,!0),u=r.distance(n,n,!1,!0),0!==(p=(o=Math.abs(a))+(s=Math.abs(i)))?Yt.setRelative(e,e,(l*s+u*o)/p,r,!0):Yt.setRelative(e,e,(l+u)/2,r,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,n,r,a){if(r&&r!==this){var i=a?t.xo:t.x,o=a?t.yo:t.y,s=i+n*r.x,l=o+n*r.y;e.x=s+(e.y-l)/r.normalSlope}else e.x=(a?t.xo:t.x)+n},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},Zt={x:0,y:1,axis:"y",distance:function(e,t,n,r){return(n?e.yo:e.y)-(r?t.yo:t.y)},interpolate:function(e,t,n,r){var a,i,o,s,l,u,p;if(!r||r===this)return a=e.yo-t.yo,i=e.yo-n.yo,l=t.y-t.yo,u=n.y-n.yo,0===(p=(o=Math.abs(a))+(s=Math.abs(i)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*o)/p);a=r.distance(e,t,!0,!0),i=r.distance(e,n,!0,!0),l=r.distance(t,t,!1,!0),u=r.distance(n,n,!1,!0),0!==(p=(o=Math.abs(a))+(s=Math.abs(i)))?Zt.setRelative(e,e,(l*s+u*o)/p,r,!0):Zt.setRelative(e,e,(l+u)/2,r,!0)},normalSlope:0,setRelative:function(e,t,n,r,a){if(r&&r!==this){var i=a?t.xo:t.x,o=a?t.yo:t.y,s=i+n*r.x,l=o+n*r.y;e.y=l+r.normalSlope*(e.x-s)}else e.y=(a?t.yo:t.y)+n},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Kt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Jt(e,t){var n=Math.sqrt(e*e+t*t);return t/=n,1===(e/=n)&&0===t?Yt:0===e&&1===t?Zt:new Kt(e,t)}function Qt(e,t,n,r){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=n,this.onCurve=r,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Yt),Object.freeze(Zt),Kt.prototype.distance=function(e,t,n,r){return this.x*Yt.distance(e,t,n,r)+this.y*Zt.distance(e,t,n,r)},Kt.prototype.interpolate=function(e,t,n,r){var a,i,o,s,l,u,p;o=r.distance(e,t,!0,!0),s=r.distance(e,n,!0,!0),a=r.distance(t,t,!1,!0),i=r.distance(n,n,!1,!0),0!==(p=(l=Math.abs(o))+(u=Math.abs(s)))?this.setRelative(e,e,(a*u+i*l)/p,r,!0):this.setRelative(e,e,(a+i)/2,r,!0)},Kt.prototype.setRelative=function(e,t,n,r,a){r=r||this;var i=a?t.xo:t.x,o=a?t.yo:t.y,s=i+n*r.x,l=o+n*r.y,u=r.normalSlope,p=this.slope,c=e.x,f=e.y;e.x=(p*c-u*s+l-f)/(p-u),e.y=p*(e.x-c)+f},Kt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var en=Object.freeze(new Qt(0,0)),tn={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function nn(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=Yt,this.round=qt}}function rn(e){for(var t=e.tZone=new Array(e.gZone.length),n=0;n<t.length;n++)t[n]=new Qt(0,0)}function an(e,t){var n,r=e.prog,a=e.ip,i=1;do{if(88===(n=r[++a]))i++;else if(89===n)i--;else if(64===n)a+=r[a+1]+1;else if(65===n)a+=2*r[a+1]+1;else if(n>=176&&n<=183)a+=n-176+1;else if(n>=184&&n<=191)a+=2*(n-184+1);else if(t&&1===i&&27===n)break}while(i>0);e.ip=a}function on(t,n){e.DEBUG&&console.log(n.step,"SVTCA["+t.axis+"]"),n.fv=n.pv=n.dpv=t}function sn(t,n){e.DEBUG&&console.log(n.step,"SPVTCA["+t.axis+"]"),n.pv=n.dpv=t}function ln(t,n){e.DEBUG&&console.log(n.step,"SFVTCA["+t.axis+"]"),n.fv=t}function un(t,n){var r,a,i=n.stack,o=i.pop(),s=i.pop(),l=n.z2[o],u=n.z1[s];e.DEBUG&&console.log("SPVTL["+t+"]",o,s),t?(r=l.y-u.y,a=u.x-l.x):(r=u.x-l.x,a=u.y-l.y),n.pv=n.dpv=Jt(r,a)}function pn(t,n){var r,a,i=n.stack,o=i.pop(),s=i.pop(),l=n.z2[o],u=n.z1[s];e.DEBUG&&console.log("SFVTL["+t+"]",o,s),t?(r=l.y-u.y,a=u.x-l.x):(r=u.x-l.x,a=u.y-l.y),n.fv=Jt(r,a)}function cn(t){e.DEBUG&&console.log(t.step,"POP[]"),t.stack.pop()}function fn(t,n){var r=n.stack.pop(),a=n.z0[r],i=n.fv,o=n.pv;e.DEBUG&&console.log(n.step,"MDAP["+t+"]",r);var s=o.distance(a,en);t&&(s=n.round(s)),i.setRelative(a,en,s,o),i.touch(a),n.rp0=n.rp1=r}function hn(t,n){var r,a,i,o=n.z2,s=o.length-2;e.DEBUG&&console.log(n.step,"IUP["+t.axis+"]");for(var l=0;l<s;l++)r=o[l],t.touched(r)||(a=r.prevTouched(t))!==r&&(a===(i=r.nextTouched(t))&&t.setRelative(r,r,t.distance(a,a,!1,!0),t,!0),t.interpolate(r,a,i,t))}function dn(t,n){for(var r=n.stack,a=t?n.rp1:n.rp2,i=(t?n.z0:n.z1)[a],o=n.fv,s=n.pv,l=n.loop,u=n.z2;l--;){var p=r.pop(),c=u[p],f=s.distance(i,i,!1,!0);o.setRelative(c,c,f,s),o.touch(c),e.DEBUG&&console.log(n.step,(n.loop>1?"loop "+(n.loop-l)+": ":"")+"SHP["+(t?"rp1":"rp2")+"]",p)}n.loop=1}function gn(t,n){var r=n.stack,a=t?n.rp1:n.rp2,i=(t?n.z0:n.z1)[a],o=n.fv,s=n.pv,l=r.pop(),u=n.z2[n.contours[l]],p=u;e.DEBUG&&console.log(n.step,"SHC["+t+"]",l);var c=s.distance(i,i,!1,!0);do{p!==i&&o.setRelative(p,p,c,s),p=p.nextPointOnContour}while(p!==u)}function vn(t,n){var r,a,i=n.stack,o=t?n.rp1:n.rp2,s=(t?n.z0:n.z1)[o],l=n.fv,u=n.pv,p=i.pop();switch(e.DEBUG&&console.log(n.step,"SHZ["+t+"]",p),p){case 0:r=n.tZone;break;case 1:r=n.gZone;break;default:throw new Error("Invalid zone")}for(var c=u.distance(s,s,!1,!0),f=r.length-2,h=0;h<f;h++)a=r[h],l.setRelative(a,a,c,u)}function mn(t,n){var r=n.stack,a=r.pop()/64,i=r.pop(),o=n.z1[i],s=n.z0[n.rp0],l=n.fv,u=n.pv;l.setRelative(o,s,a,u),l.touch(o),e.DEBUG&&console.log(n.step,"MSIRP["+t+"]",a,i),n.rp1=n.rp0,n.rp2=i,t&&(n.rp0=i)}function yn(t,n){var r=n.stack,a=r.pop(),i=r.pop(),o=n.z0[i],s=n.fv,l=n.pv,u=n.cvt[a];e.DEBUG&&console.log(n.step,"MIAP["+t+"]",a,"(",u,")",i);var p=l.distance(o,en);t&&(Math.abs(p-u)<n.cvCutIn&&(p=u),p=n.round(p)),s.setRelative(o,en,p,l),0===n.zp0&&(o.xo=o.x,o.yo=o.y),s.touch(o),n.rp0=n.rp1=i}function bn(t,n){var r=n.stack,a=r.pop(),i=n.z2[a];e.DEBUG&&console.log(n.step,"GC["+t+"]",a),r.push(64*n.dpv.distance(i,en,t,!1))}function xn(t,n){var r=n.stack,a=r.pop(),i=r.pop(),o=n.z1[a],s=n.z0[i],l=n.dpv.distance(s,o,t,t);e.DEBUG&&console.log(n.step,"MD["+t+"]",a,i,"->",l),n.stack.push(Math.round(64*l))}function Sn(t,n){var r=n.stack,a=r.pop(),i=n.fv,o=n.pv,s=n.ppem,l=n.deltaBase+16*(t-1),u=n.deltaShift,p=n.z0;e.DEBUG&&console.log(n.step,"DELTAP["+t+"]",a,r);for(var c=0;c<a;c++){var f=r.pop(),h=r.pop();if(l+((240&h)>>4)===s){var d=(15&h)-8;d>=0&&d++,e.DEBUG&&console.log(n.step,"DELTAPFIX",f,"by",d*u);var g=p[f];i.setRelative(g,g,d*u,o)}}}function Tn(t,n){var r=n.stack,a=r.pop();e.DEBUG&&console.log(n.step,"ROUND[]"),r.push(64*n.round(a/64))}function wn(t,n){var r=n.stack,a=r.pop(),i=n.ppem,o=n.deltaBase+16*(t-1),s=n.deltaShift;e.DEBUG&&console.log(n.step,"DELTAC["+t+"]",a,r);for(var l=0;l<a;l++){var u=r.pop(),p=r.pop();if(o+((240&p)>>4)===i){var c=(15&p)-8;c>=0&&c++;var f=c*s;e.DEBUG&&console.log(n.step,"DELTACFIX",u,"by",f),n.cvt[u]+=f}}}function kn(t,n){var r,a,i=n.stack,o=i.pop(),s=i.pop(),l=n.z2[o],u=n.z1[s];e.DEBUG&&console.log(n.step,"SDPVTL["+t+"]",o,s),t?(r=l.y-u.y,a=u.x-l.x):(r=u.x-l.x,a=u.y-l.y),n.dpv=Jt(r,a)}function En(t,n){var r=n.stack,a=n.prog,i=n.ip;e.DEBUG&&console.log(n.step,"PUSHB["+t+"]");for(var o=0;o<t;o++)r.push(a[++i]);n.ip=i}function Cn(t,n){var r=n.ip,a=n.prog,i=n.stack;e.DEBUG&&console.log(n.ip,"PUSHW["+t+"]");for(var o=0;o<t;o++){var s=a[++r]<<8|a[++r];32768&s&&(s=-(1+(65535^s))),i.push(s)}n.ip=r}function On(t,n,r,a,i,o){var s,l,u,p,c=o.stack,f=t&&c.pop(),h=c.pop(),d=o.rp0,g=o.z0[d],v=o.z1[h],m=o.minDis,y=o.fv,b=o.dpv;u=(l=s=b.distance(v,g,!0,!0))>=0?1:-1,l=Math.abs(l),t&&(p=o.cvt[f],a&&Math.abs(l-p)<o.cvCutIn&&(l=p)),r&&l<m&&(l=m),a&&(l=o.round(l)),y.setRelative(v,g,u*l,b),y.touch(v),e.DEBUG&&console.log(o.step,(t?"MIRP[":"MDRP[")+(n?"M":"m")+(r?">":"_")+(a?"R":"_")+(0===i?"Gr":1===i?"Bl":2===i?"Wh":"")+"]",t?f+"("+o.cvt[f]+","+p+")":"",h,"(d =",s,"->",u*l,")"),o.rp1=o.rp0,o.rp2=h,n&&(o.rp0=h)}function Un(e){this.char=e,this.state={},this.activeState=null}function Ln(e,t,n){this.contextName=n,this.startIndex=e,this.endOffset=t}function Dn(e,t,n){this.contextName=e,this.openRange=null,this.ranges=[],this.checkStart=t,this.checkEnd=n}function Rn(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 An(e){this.eventId=e,this.subscribers=[]}function Fn(e){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],function(e){var t=this,n=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];n.forEach(function(e){Object.defineProperty(t.events,e,{value:new An(e)})}),e&&n.forEach(function(n){var r=e[n];"function"==typeof r&&t.events[n].subscribe(r)}),["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"].forEach(function(e){t.events[e].subscribe(t.updateContextsRanges)})}.call(this,e)}function Nn(e){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(e)}function In(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 Mn(e){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(e)}function Bn(e){return/[A-z]/.test(e)}function Pn(e){this.font=e,this.features={}}function _n(e){this.id=e.id,this.tag=e.tag,this.substitution=e.substitution}function Gn(e,t){if(!e)return-1;switch(t.format){case 1:return t.glyphs.indexOf(e);case 2:for(var n=t.ranges,r=0;r<n.length;r++){var a=n[r];if(e>=a.start&&e<=a.end){var i=e-a.start;return a.index+i}}break;default:return-1}return-1}function Hn(e,t){for(var n=[],r=0;r<e.length;r++){var a=e[r],i=t.current,o=Gn(i=Array.isArray(i)?i[0]:i,a);-1!==o&&n.push(o)}return n.length!==e.length?-1:n}Ht.prototype.exec=function(t,n){if("number"!=typeof n)throw new Error("Point size is not a number!");if(!(this._errorState>2)){var r=this.font,a=this._prepState;if(!a||a.ppem!==n){var i=this._fpgmState;if(!i){nn.prototype=tn,(i=this._fpgmState=new nn("fpgm",r.tables.fpgm)).funcs=[],i.font=r,e.DEBUG&&(console.log("---EXEC FPGM---"),i.step=-1);try{Bt(i)}catch(e){return console.log("Hinting error in FPGM:"+e),void(this._errorState=3)}}nn.prototype=i,(a=this._prepState=new nn("prep",r.tables.prep)).ppem=n;var o=r.tables.cvt;if(o)for(var s=a.cvt=new Array(o.length),l=n/r.unitsPerEm,u=0;u<o.length;u++)s[u]=o[u]*l;else a.cvt=[];e.DEBUG&&(console.log("---EXEC PREP---"),a.step=-1);try{Bt(a)}catch(e){this._errorState<2&&console.log("Hinting error in PREP:"+e),this._errorState=2}}if(!(this._errorState>1))try{return Pt(t,a)}catch(e){return this._errorState<1&&(console.log("Hinting error:"+e),console.log("Note: further hinting errors are silenced")),void(this._errorState=1)}}},Pt=function(t,n){var r,a,i,o=n.ppem/n.font.unitsPerEm,s=o,l=t.components;if(nn.prototype=n,l){var u=n.font;a=[],r=[];for(var p=0;p<l.length;p++){var c=l[p],f=u.glyphs.get(c.glyphIndex);i=new nn("glyf",f.instructions),e.DEBUG&&(console.log("---EXEC COMP "+p+"---"),i.step=-1),_t(f,i,o,s);for(var h=Math.round(c.dx*o),d=Math.round(c.dy*s),g=i.gZone,v=i.contours,m=0;m<g.length;m++){var y=g[m];y.xTouched=y.yTouched=!1,y.xo=y.x=y.x+h,y.yo=y.y=y.y+d}var b=a.length;a.push.apply(a,g);for(var x=0;x<v.length;x++)r.push(v[x]+b)}t.instructions&&!i.inhibitGridFit&&((i=new nn("glyf",t.instructions)).gZone=i.z0=i.z1=i.z2=a,i.contours=r,a.push(new Qt(0,0),new Qt(Math.round(t.advanceWidth*o),0)),e.DEBUG&&(console.log("---EXEC COMPOSITE---"),i.step=-1),Bt(i),a.length-=2)}else i=new nn("glyf",t.instructions),e.DEBUG&&(console.log("---EXEC GLYPH---"),i.step=-1),_t(t,i,o,s),a=i.gZone;return a},_t=function(t,n,r,a){for(var i,o,s,l=t.points||[],u=l.length,p=n.gZone=n.z0=n.z1=n.z2=[],c=n.contours=[],f=0;f<u;f++)i=l[f],p[f]=new Qt(i.x*r,i.y*a,i.lastPointOfContour,i.onCurve);for(var h=0;h<u;h++)i=p[h],o||(o=i,c.push(h)),i.lastPointOfContour?(i.nextPointOnContour=o,o.prevPointOnContour=i,o=void 0):(s=p[h+1],i.nextPointOnContour=s,s.prevPointOnContour=i);if(!n.inhibitGridFit){if(e.DEBUG){console.log("PROCESSING GLYPH",n.stack);for(var d=0;d<u;d++)console.log(d,p[d].x,p[d].y)}if(p.push(new Qt(0,0),new Qt(Math.round(t.advanceWidth*r),0)),Bt(n),p.length-=2,e.DEBUG){console.log("FINISHED GLYPH",n.stack);for(var g=0;g<u;g++)console.log(g,p[g].x,p[g].y)}}},Bt=function(t){var n=t.prog;if(n){var r,a=n.length;for(t.ip=0;t.ip<a;t.ip++){if(e.DEBUG&&t.step++,!(r=Mt[n[t.ip]]))throw new Error("unknown instruction: 0x"+Number(n[t.ip]).toString(16));r(t)}}},Mt=[on.bind(void 0,Zt),on.bind(void 0,Yt),sn.bind(void 0,Zt),sn.bind(void 0,Yt),ln.bind(void 0,Zt),ln.bind(void 0,Yt),un.bind(void 0,0),un.bind(void 0,1),pn.bind(void 0,0),pn.bind(void 0,1),function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"SPVFS[]",r,a),t.pv=t.dpv=Jt(a,r)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"SPVFS[]",r,a),t.fv=Jt(a,r)},function(t){var n=t.stack,r=t.pv;e.DEBUG&&console.log(t.step,"GPV[]"),n.push(16384*r.x),n.push(16384*r.y)},function(t){var n=t.stack,r=t.fv;e.DEBUG&&console.log(t.step,"GFV[]"),n.push(16384*r.x),n.push(16384*r.y)},function(t){t.fv=t.pv,e.DEBUG&&console.log(t.step,"SFVTPV[]")},function(t){var n=t.stack,r=n.pop(),a=n.pop(),i=n.pop(),o=n.pop(),s=n.pop(),l=t.z0,u=t.z1,p=l[r],c=l[a],f=u[i],h=u[o],d=t.z2[s];e.DEBUG&&console.log("ISECT[], ",r,a,i,o,s);var g=p.x,v=p.y,m=c.x,y=c.y,b=f.x,x=f.y,S=h.x,T=h.y,w=(g-m)*(x-T)-(v-y)*(b-S),k=g*y-v*m,E=b*T-x*S;d.x=(k*(b-S)-E*(g-m))/w,d.y=(k*(x-T)-E*(v-y))/w},function(t){t.rp0=t.stack.pop(),e.DEBUG&&console.log(t.step,"SRP0[]",t.rp0)},function(t){t.rp1=t.stack.pop(),e.DEBUG&&console.log(t.step,"SRP1[]",t.rp1)},function(t){t.rp2=t.stack.pop(),e.DEBUG&&console.log(t.step,"SRP2[]",t.rp2)},function(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZP0[]",n),t.zp0=n,n){case 0:t.tZone||rn(t),t.z0=t.tZone;break;case 1:t.z0=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZP1[]",n),t.zp1=n,n){case 0:t.tZone||rn(t),t.z1=t.tZone;break;case 1:t.z1=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZP2[]",n),t.zp2=n,n){case 0:t.tZone||rn(t),t.z2=t.tZone;break;case 1:t.z2=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZPS[]",n),t.zp0=t.zp1=t.zp2=n,n){case 0:t.tZone||rn(t),t.z0=t.z1=t.z2=t.tZone;break;case 1:t.z0=t.z1=t.z2=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){t.loop=t.stack.pop(),e.DEBUG&&console.log(t.step,"SLOOP[]",t.loop)},function(t){e.DEBUG&&console.log(t.step,"RTG[]"),t.round=qt},function(t){e.DEBUG&&console.log(t.step,"RTHG[]"),t.round=Wt},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SMD[]",n),t.minDis=n/64},function(t){e.DEBUG&&console.log(t.step,"ELSE[]"),an(t,!1)},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"JMPR[]",n),t.ip+=n-1},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SCVTCI[]",n),t.cvCutIn=n/64},void 0,void 0,function(t){var n=t.stack;e.DEBUG&&console.log(t.step,"DUP[]"),n.push(n[n.length-1])},cn,function(t){e.DEBUG&&console.log(t.step,"CLEAR[]"),t.stack.length=0},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"SWAP[]"),n.push(r),n.push(a)},function(t){var n=t.stack;e.DEBUG&&console.log(t.step,"DEPTH[]"),n.push(n.length)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"CINDEX[]",r),n.push(n[n.length-r])},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"MINDEX[]",r),n.push(n.splice(n.length-r,1)[0])},void 0,void 0,void 0,function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"LOOPCALL[]",r,a);var i=t.ip,o=t.prog;t.prog=t.funcs[r];for(var s=0;s<a;s++)Bt(t),e.DEBUG&&console.log(++t.step,s+1<a?"next loopcall":"done loopcall",s);t.ip=i,t.prog=o},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"CALL[]",n);var r=t.ip,a=t.prog;t.prog=t.funcs[n],Bt(t),t.ip=r,t.prog=a,e.DEBUG&&console.log(++t.step,"returning from",n)},function(t){if("fpgm"!==t.env)throw new Error("FDEF not allowed here");var n=t.stack,r=t.prog,a=t.ip,i=n.pop(),o=a;for(e.DEBUG&&console.log(t.step,"FDEF[]",i);45!==r[++a];);t.ip=a,t.funcs[i]=r.slice(o+1,a)},void 0,fn.bind(void 0,0),fn.bind(void 0,1),hn.bind(void 0,Zt),hn.bind(void 0,Yt),dn.bind(void 0,0),dn.bind(void 0,1),gn.bind(void 0,0),gn.bind(void 0,1),vn.bind(void 0,0),vn.bind(void 0,1),function(t){for(var n=t.stack,r=t.loop,a=t.fv,i=n.pop()/64,o=t.z2;r--;){var s=n.pop(),l=o[s];e.DEBUG&&console.log(t.step,(t.loop>1?"loop "+(t.loop-r)+": ":"")+"SHPIX[]",s,i),a.setRelative(l,l,i),a.touch(l)}t.loop=1},function(t){for(var n=t.stack,r=t.rp1,a=t.rp2,i=t.loop,o=t.z0[r],s=t.z1[a],l=t.fv,u=t.dpv,p=t.z2;i--;){var c=n.pop(),f=p[c];e.DEBUG&&console.log(t.step,(t.loop>1?"loop "+(t.loop-i)+": ":"")+"IP[]",c,r,"<->",a),l.interpolate(f,o,s,u),l.touch(f)}t.loop=1},mn.bind(void 0,0),mn.bind(void 0,1),function(t){for(var n=t.stack,r=t.rp0,a=t.z0[r],i=t.loop,o=t.fv,s=t.pv,l=t.z1;i--;){var u=n.pop(),p=l[u];e.DEBUG&&console.log(t.step,(t.loop>1?"loop "+(t.loop-i)+": ":"")+"ALIGNRP[]",u),o.setRelative(p,a,0,s),o.touch(p)}t.loop=1},function(t){e.DEBUG&&console.log(t.step,"RTDG[]"),t.round=zt},yn.bind(void 0,0),yn.bind(void 0,1),function(t){var n=t.prog,r=t.ip,a=t.stack,i=n[++r];e.DEBUG&&console.log(t.step,"NPUSHB[]",i);for(var o=0;o<i;o++)a.push(n[++r]);t.ip=r},function(t){var n=t.ip,r=t.prog,a=t.stack,i=r[++n];e.DEBUG&&console.log(t.step,"NPUSHW[]",i);for(var o=0;o<i;o++){var s=r[++n]<<8|r[++n];32768&s&&(s=-(1+(65535^s))),a.push(s)}t.ip=n},function(t){var n=t.stack,r=t.store;r||(r=t.store=[]);var a=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"WS",a,i),r[i]=a},function(t){var n=t.stack,r=t.store,a=n.pop();e.DEBUG&&console.log(t.step,"RS",a);var i=r&&r[a]||0;n.push(i)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"WCVTP",r,a),t.cvt[a]=r/64},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"RCVT",r),n.push(64*t.cvt[r])},bn.bind(void 0,0),bn.bind(void 0,1),void 0,xn.bind(void 0,0),xn.bind(void 0,1),function(t){e.DEBUG&&console.log(t.step,"MPPEM[]"),t.stack.push(t.ppem)},void 0,function(t){e.DEBUG&&console.log(t.step,"FLIPON[]"),t.autoFlip=!0},void 0,void 0,function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"LT[]",r,a),n.push(a<r?1:0)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"LTEQ[]",r,a),n.push(a<=r?1:0)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"GT[]",r,a),n.push(a>r?1:0)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"GTEQ[]",r,a),n.push(a>=r?1:0)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"EQ[]",r,a),n.push(r===a?1:0)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"NEQ[]",r,a),n.push(r!==a?1:0)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"ODD[]",r),n.push(Math.trunc(r)%2?1:0)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"EVEN[]",r),n.push(Math.trunc(r)%2?0:1)},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"IF[]",n),n||(an(t,!0),e.DEBUG&&console.log(t.step,"EIF[]"))},function(t){e.DEBUG&&console.log(t.step,"EIF[]")},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"AND[]",r,a),n.push(r&&a?1:0)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"OR[]",r,a),n.push(r||a?1:0)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"NOT[]",r),n.push(r?0:1)},Sn.bind(void 0,1),function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SDB[]",n),t.deltaBase=n},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SDS[]",n),t.deltaShift=Math.pow(.5,n)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"ADD[]",r,a),n.push(a+r)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"SUB[]",r,a),n.push(a-r)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"DIV[]",r,a),n.push(64*a/r)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"MUL[]",r,a),n.push(a*r/64)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"ABS[]",r),n.push(Math.abs(r))},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"NEG[]",r),n.push(-r)},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"FLOOR[]",r),n.push(64*Math.floor(r/64))},function(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,"CEILING[]",r),n.push(64*Math.ceil(r/64))},Tn.bind(void 0,0),Tn.bind(void 0,1),Tn.bind(void 0,2),Tn.bind(void 0,3),void 0,void 0,void 0,void 0,function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"WCVTF[]",r,a),t.cvt[a]=r*t.ppem/t.font.unitsPerEm},Sn.bind(void 0,2),Sn.bind(void 0,3),wn.bind(void 0,1),wn.bind(void 0,2),wn.bind(void 0,3),function(t){var n,r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SROUND[]",r),t.round=$t,192&r){case 0:n=.5;break;case 64:n=1;break;case 128:n=2;break;default:throw new Error("invalid SROUND value")}switch(t.srPeriod=n,48&r){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*n;break;case 32:t.srPhase=.5*n;break;case 48:t.srPhase=.75*n;break;default:throw new Error("invalid SROUND value")}r&=15,t.srThreshold=0===r?0:(r/8-.5)*n},function(t){var n,r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"S45ROUND[]",r),t.round=$t,192&r){case 0:n=Math.sqrt(2)/2;break;case 64:n=Math.sqrt(2);break;case 128:n=2*Math.sqrt(2);break;default:throw new Error("invalid S45ROUND value")}switch(t.srPeriod=n,48&r){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*n;break;case 32:t.srPhase=.5*n;break;case 48:t.srPhase=.75*n;break;default:throw new Error("invalid S45ROUND value")}r&=15,t.srThreshold=0===r?0:(r/8-.5)*n},void 0,void 0,function(t){e.DEBUG&&console.log(t.step,"ROFF[]"),t.round=jt},void 0,function(t){e.DEBUG&&console.log(t.step,"RUTG[]"),t.round=Xt},function(t){e.DEBUG&&console.log(t.step,"RDTG[]"),t.round=Vt},cn,cn,void 0,void 0,void 0,void 0,void 0,function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SCANCTRL[]",n)},kn.bind(void 0,0),kn.bind(void 0,1),function(t){var n=t.stack,r=n.pop(),a=0;e.DEBUG&&console.log(t.step,"GETINFO[]",r),1&r&&(a=35),32&r&&(a|=4096),n.push(a)},void 0,function(t){var n=t.stack,r=n.pop(),a=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,"ROLL[]"),n.push(a),n.push(r),n.push(i)},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"MAX[]",r,a),n.push(Math.max(a,r))},function(t){var n=t.stack,r=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,"MIN[]",r,a),n.push(Math.min(a,r))},function(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,"SCANTYPE[]",n)},function(t){var n=t.stack.pop(),r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"INSTCTRL[]",n,r),n){case 1:return void(t.inhibitGridFit=!!r);case 2:return void(t.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,En.bind(void 0,1),En.bind(void 0,2),En.bind(void 0,3),En.bind(void 0,4),En.bind(void 0,5),En.bind(void 0,6),En.bind(void 0,7),En.bind(void 0,8),Cn.bind(void 0,1),Cn.bind(void 0,2),Cn.bind(void 0,3),Cn.bind(void 0,4),Cn.bind(void 0,5),Cn.bind(void 0,6),Cn.bind(void 0,7),Cn.bind(void 0,8),On.bind(void 0,0,0,0,0,0),On.bind(void 0,0,0,0,0,1),On.bind(void 0,0,0,0,0,2),On.bind(void 0,0,0,0,0,3),On.bind(void 0,0,0,0,1,0),On.bind(void 0,0,0,0,1,1),On.bind(void 0,0,0,0,1,2),On.bind(void 0,0,0,0,1,3),On.bind(void 0,0,0,1,0,0),On.bind(void 0,0,0,1,0,1),On.bind(void 0,0,0,1,0,2),On.bind(void 0,0,0,1,0,3),On.bind(void 0,0,0,1,1,0),On.bind(void 0,0,0,1,1,1),On.bind(void 0,0,0,1,1,2),On.bind(void 0,0,0,1,1,3),On.bind(void 0,0,1,0,0,0),On.bind(void 0,0,1,0,0,1),On.bind(void 0,0,1,0,0,2),On.bind(void 0,0,1,0,0,3),On.bind(void 0,0,1,0,1,0),On.bind(void 0,0,1,0,1,1),On.bind(void 0,0,1,0,1,2),On.bind(void 0,0,1,0,1,3),On.bind(void 0,0,1,1,0,0),On.bind(void 0,0,1,1,0,1),On.bind(void 0,0,1,1,0,2),On.bind(void 0,0,1,1,0,3),On.bind(void 0,0,1,1,1,0),On.bind(void 0,0,1,1,1,1),On.bind(void 0,0,1,1,1,2),On.bind(void 0,0,1,1,1,3),On.bind(void 0,1,0,0,0,0),On.bind(void 0,1,0,0,0,1),On.bind(void 0,1,0,0,0,2),On.bind(void 0,1,0,0,0,3),On.bind(void 0,1,0,0,1,0),On.bind(void 0,1,0,0,1,1),On.bind(void 0,1,0,0,1,2),On.bind(void 0,1,0,0,1,3),On.bind(void 0,1,0,1,0,0),On.bind(void 0,1,0,1,0,1),On.bind(void 0,1,0,1,0,2),On.bind(void 0,1,0,1,0,3),On.bind(void 0,1,0,1,1,0),On.bind(void 0,1,0,1,1,1),On.bind(void 0,1,0,1,1,2),On.bind(void 0,1,0,1,1,3),On.bind(void 0,1,1,0,0,0),On.bind(void 0,1,1,0,0,1),On.bind(void 0,1,1,0,0,2),On.bind(void 0,1,1,0,0,3),On.bind(void 0,1,1,0,1,0),On.bind(void 0,1,1,0,1,1),On.bind(void 0,1,1,0,1,2),On.bind(void 0,1,1,0,1,3),On.bind(void 0,1,1,1,0,0),On.bind(void 0,1,1,1,0,1),On.bind(void 0,1,1,1,0,2),On.bind(void 0,1,1,1,0,3),On.bind(void 0,1,1,1,1,0),On.bind(void 0,1,1,1,1,1),On.bind(void 0,1,1,1,1,2),On.bind(void 0,1,1,1,1,3)],Un.prototype.setState=function(e,t){return this.state[e]=t,this.activeState={key:e,value:this.state[e]},this.activeState},Un.prototype.getState=function(e){return this.state[e]||null},Fn.prototype.inboundIndex=function(e){return e>=0&&e<this.tokens.length},Fn.prototype.composeRUD=function(e){var t=this,n=e.map(function(e){return t[e[0]].apply(t,e.slice(1).concat(!0))}),r=function(e){return"object"==typeof e&&e.hasOwnProperty("FAIL")};if(n.every(r))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:n.filter(r)};this.dispatch("composeRUD",[n.filter(function(e){return!r(e)})])},Fn.prototype.replaceRange=function(e,t,n,r){t=null!==t?t:this.tokens.length;var a=n.every(function(e){return e instanceof Un});if(!isNaN(e)&&this.inboundIndex(e)&&a){var i=this.tokens.splice.apply(this.tokens,[e,t].concat(n));return r||this.dispatch("replaceToken",[e,t,n]),[i,n]}return{FAIL:"replaceRange: invalid tokens or startIndex."}},Fn.prototype.replaceToken=function(e,t,n){if(!isNaN(e)&&this.inboundIndex(e)&&t instanceof Un){var r=this.tokens.splice(e,1,t);return n||this.dispatch("replaceToken",[e,t]),[r[0],t]}return{FAIL:"replaceToken: invalid token or index."}},Fn.prototype.removeRange=function(e,t,n){t=isNaN(t)?this.tokens.length:t;var r=this.tokens.splice(e,t);return n||this.dispatch("removeRange",[r,e,t]),r},Fn.prototype.removeToken=function(e,t){if(!isNaN(e)&&this.inboundIndex(e)){var n=this.tokens.splice(e,1);return t||this.dispatch("removeToken",[n,e]),n}return{FAIL:"removeToken: invalid token index."}},Fn.prototype.insertToken=function(e,t,n){return e.every(function(e){return e instanceof Un})?(this.tokens.splice.apply(this.tokens,[t,0].concat(e)),n||this.dispatch("insertToken",[e,t]),e):{FAIL:"insertToken: invalid token(s)."}},Fn.prototype.registerModifier=function(e,t,n){this.events.newToken.subscribe(function(r,a){var i=[r,a],o=[r,a];if(null===t||!0===t.apply(this,i)){var s=n.apply(this,o);r.setState(e,s)}}),this.registeredModifiers.push(e)},An.prototype.subscribe=function(e){return"function"==typeof e?this.subscribers.push(e)-1:{FAIL:"invalid '"+this.eventId+"' event handler"}},An.prototype.unsubscribe=function(e){this.subscribers.splice(e,1)},Rn.prototype.setCurrentIndex=function(e){this.index=e,this.current=this.context[e],this.backtrack=this.context.slice(0,e),this.lookahead=this.context.slice(e+1)},Rn.prototype.get=function(e){switch(!0){case 0===e:return this.current;case e<0&&Math.abs(e)<=this.backtrack.length:return this.backtrack.slice(e)[0];case e>0&&e<=this.lookahead.length:return this.lookahead[e-1];default:return null}},Fn.prototype.rangeToText=function(e){if(e instanceof Ln)return this.getRangeTokens(e).map(function(e){return e.char}).join("")},Fn.prototype.getText=function(){return this.tokens.map(function(e){return e.char}).join("")},Fn.prototype.getContext=function(e){var t=this.registeredContexts[e];return t||null},Fn.prototype.on=function(e,t){var n=this.events[e];return n?n.subscribe(t):null},Fn.prototype.dispatch=function(e,t){var n=this,r=this.events[e];r instanceof An&&r.subscribers.forEach(function(e){e.apply(n,t||[])})},Fn.prototype.registerContextChecker=function(e,t,n){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 n)return{FAIL:"missing context end check."};var r=new Dn(e,t,n);return this.registeredContexts[e]=r,this.contextCheckers.push(r),r},Fn.prototype.getRangeTokens=function(e){var t=e.startIndex+e.endOffset;return[].concat(this.tokens.slice(e.startIndex,t))},Fn.prototype.getContextRanges=function(e){var t=this.getContext(e);return t?t.ranges:{FAIL:"context checker '"+e+"' is not registered."}},Fn.prototype.resetContextsRanges=function(){var e=this.registeredContexts;for(var t in e){if(e.hasOwnProperty(t))e[t].ranges=[]}},Fn.prototype.updateContextsRanges=function(){this.resetContextsRanges();for(var e=this.tokens.map(function(e){return e.char}),t=0;t<e.length;t++){var n=new Rn(e,t);this.runContextCheck(n)}this.dispatch("updateContextsRanges",[this.registeredContexts])},Fn.prototype.setEndOffset=function(e,t){var n=new Ln(this.getContext(t).openRange.startIndex,e,t),r=this.getContext(t).ranges;return n.rangeId=t+"."+r.length,r.push(n),this.getContext(t).openRange=null,n},Fn.prototype.runContextCheck=function(e){var t=this,n=e.index;this.contextCheckers.forEach(function(r){var a=r.contextName,i=t.getContext(a).openRange;if(!i&&r.checkStart(e)&&(i=new Ln(n,null,a),t.getContext(a).openRange=i,t.dispatch("contextStart",[a,n])),i&&r.checkEnd(e)){var o=n-i.startIndex+1,s=t.setEndOffset(o,a);t.dispatch("contextEnd",[a,s])}})},Fn.prototype.tokenize=function(e){this.tokens=[],this.resetContextsRanges();var t=Array.from(e);this.dispatch("start");for(var n=0;n<t.length;n++){var r=t[n],a=new Rn(t,n);this.dispatch("next",[a]),this.runContextCheck(a);var i=new Un(r);this.tokens.push(i),this.dispatch("newToken",[i,a])}return this.dispatch("end",[this.tokens]),this.tokens},Pn.prototype.getDefaultScriptFeaturesIndexes=function(){for(var e=this.font.tables.gsub.scripts,t=0;t<e.length;t++){var n=e[t];if("DFLT"===n.tag)return n.script.defaultLangSys.featureIndexes}return[]},Pn.prototype.getScriptFeaturesIndexes=function(e){if(!this.font.tables.gsub)return[];if(!e)return this.getDefaultScriptFeaturesIndexes();for(var t=this.font.tables.gsub.scripts,n=0;n<t.length;n++){var r=t[n];if(r.tag===e&&r.script.defaultLangSys)return r.script.defaultLangSys.featureIndexes;var a=r.langSysRecords;if(a)for(var i=0;i<a.length;i++){var o=a[i];if(o.tag===e)return o.langSys.featureIndexes}}return this.getDefaultScriptFeaturesIndexes()},Pn.prototype.mapTagsToFeatures=function(e,t){for(var n={},r=0;r<e.length;r++){var a=e[r].tag,i=e[r].feature;n[a]=i}this.features[t].tags=n},Pn.prototype.getScriptFeatures=function(e){var t=this.features[e];if(this.features.hasOwnProperty(e))return t;var n=this.getScriptFeaturesIndexes(e);if(!n)return null;var r=this.font.tables.gsub;return t=n.map(function(e){return r.features[e]}),this.features[e]=t,this.mapTagsToFeatures(t,e),t},Pn.prototype.getSubstitutionType=function(e,t){return e.lookupType.toString()+t.substFormat.toString()},Pn.prototype.getLookupMethod=function(e,t){var n=this;switch(this.getSubstitutionType(e,t)){case"11":return function(e){return function(e,t){return-1===Gn(e,t.coverage)?null:e+t.deltaGlyphId}.apply(n,[e,t])};case"12":return function(e){return function(e,t){var n=Gn(e,t.coverage);return-1===n?null:t.substitute[n]}.apply(n,[e,t])};case"63":return function(e){return function(e,t){var n=t.inputCoverage.length+t.lookaheadCoverage.length+t.backtrackCoverage.length;if(e.context.length<n)return[];var r=Hn(t.inputCoverage,e);if(-1===r)return[];var a=t.inputCoverage.length-1;if(e.lookahead.length<t.lookaheadCoverage.length)return[];for(var i=e.lookahead.slice(a);i.length&&Mn(i[0].char);)i.shift();var o=new Rn(i,0),s=Hn(t.lookaheadCoverage,o),l=[].concat(e.backtrack);for(l.reverse();l.length&&Mn(l[0].char);)l.shift();if(l.length<t.backtrackCoverage.length)return[];var u=new Rn(l,0),p=Hn(t.backtrackCoverage,u),c=[];if(r.length===t.inputCoverage.length&&s.length===t.lookaheadCoverage.length&&p.length===t.backtrackCoverage.length)for(var f=0;f<t.lookupRecords.length;f++)for(var h=t.lookupRecords[f].lookupListIndex,d=this.getLookupByIndex(h),g=0;g<d.subtables.length;g++){var v=d.subtables[g],m=this.getLookupMethod(d,v);if("12"===this.getSubstitutionType(d,v))for(var y=0;y<r.length;y++){var b=m(e.get(y));b&&c.push(b)}}return c}.apply(n,[e,t])};case"41":return function(e){return function(e,t){var n,r=Gn(e.current,t.coverage);if(-1===r)return null;for(var a=t.ligatureSets[r],i=0;i<a.length;i++){n=a[i];for(var o=0;o<n.components.length&&e.lookahead[o]===n.components[o];o++)if(o===n.components.length-1)return n}return null}.apply(n,[e,t])};case"21":return function(e){return function(e,t){var n=Gn(e,t.coverage);return-1===n?null:t.sequences[n]}.apply(n,[e,t])};default:throw new Error("lookupType: "+e.lookupType+" - substFormat: "+t.substFormat+" is not yet supported")}},Pn.prototype.lookupFeature=function(e){var t=e.contextParams,n=t.index,r=this.getFeature({tag:e.tag,script:e.script});if(!r)return new Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+e.tag+"' for script '"+e.script+"'.");for(var a=this.getFeatureLookups(r),i=[].concat(t.context),o=0;o<a.length;o++)for(var s=a[o],l=this.getLookupSubtables(s),u=0;u<l.length;u++){var p=l[u],c=this.getSubstitutionType(s,p),f=this.getLookupMethod(s,p),h=void 0;switch(c){case"11":(h=f(t.current))&&i.splice(n,1,new _n({id:11,tag:e.tag,substitution:h}));break;case"12":(h=f(t.current))&&i.splice(n,1,new _n({id:12,tag:e.tag,substitution:h}));break;case"63":h=f(t),Array.isArray(h)&&h.length&&i.splice(n,1,new _n({id:63,tag:e.tag,substitution:h}));break;case"41":(h=f(t))&&i.splice(n,1,new _n({id:41,tag:e.tag,substitution:h}));break;case"21":(h=f(t.current))&&i.splice(n,1,new _n({id:21,tag:e.tag,substitution:h}))}t=new Rn(i,n),Array.isArray(h)&&!h.length||(h=null)}return i.length?i:null},Pn.prototype.supports=function(e){if(!e.script)return!1;this.getScriptFeatures(e.script);var t=this.features.hasOwnProperty(e.script);if(!e.tag)return t;var n=this.features[e.script].some(function(t){return t.tag===e.tag});return t&&n},Pn.prototype.getLookupSubtables=function(e){return e.subtables||null},Pn.prototype.getLookupByIndex=function(e){return this.font.tables.gsub.lookups[e]||null},Pn.prototype.getFeatureLookups=function(e){return e.lookupListIndexes.map(this.getLookupByIndex.bind(this))},Pn.prototype.getFeature=function(e){if(!this.font)return{FAIL:"No font was found"};this.features.hasOwnProperty(e.script)||this.getScriptFeatures(e.script);var t=this.features[e.script];return t?t.tags[e.tag]?this.features[e.script].tags[e.tag]:null:{FAIL:"No feature for script "+e.script}};var jn={startCheck:function(e){var t=e.current,n=e.get(-1);return null===n&&Nn(t)||!Nn(n)&&Nn(t)},endCheck:function(e){var t=e.get(1);return null===t||!Nn(t)}};var qn={startCheck:function(e){var t=e.current,n=e.get(-1);return(Nn(t)||Mn(t))&&!Nn(n)},endCheck:function(e){var t=e.get(1);switch(!0){case null===t:return!0;case!Nn(t)&&!Mn(t):var n=/\s/.test(t);if(!n)return!0;if(n&&!e.lookahead.some(function(e){return Nn(e)||Mn(e)}))return!0;break;default:return!1}}};var zn={11:function(e,t,n){t[n].setState(e.tag,e.substitution)},12:function(e,t,n){t[n].setState(e.tag,e.substitution)},63:function(e,t,n){e.substitution.forEach(function(r,a){t[n+a].setState(e.tag,r)})},41:function(e,t,n){var r=t[n];r.setState(e.tag,e.substitution.ligGlyph);for(var a=e.substitution.components.length,i=0;i<a;i++)(r=t[n+i+1]).setState("deleted",!0)}};function Wn(e,t,n){e instanceof _n&&zn[e.id](e,t,n)}function Xn(e){var t=this,n=this.featuresTags.arab,r=this.tokenizer.getRangeTokens(e);if(1!==r.length){var a=new Rn(r.map(function(e){return e.getState("glyphIndex")}),0),i=new Rn(r.map(function(e){return e.char}),0);r.forEach(function(e,o){if(!Mn(e.char)){a.setCurrentIndex(o),i.setCurrentIndex(o);var s,l=0;switch(function(e){for(var t=[].concat(e.backtrack),n=t.length-1;n>=0;n--){var r=t[n],a=In(r),i=Mn(r);if(!a&&!i)return!0;if(a)return!1}return!1}(i)&&(l|=1),function(e){if(In(e.current))return!1;for(var t=0;t<e.lookahead.length;t++)if(!Mn(e.lookahead[t]))return!0;return!1}(i)&&(l|=2),l){case 1:s="fina";break;case 2:s="init";break;case 3:s="medi"}if(-1!==n.indexOf(s)){var u=t.query.lookupFeature({tag:s,script:"arab",contextParams:a});if(u instanceof Error)return console.info(u.message);u.forEach(function(e,t){e instanceof _n&&(Wn(e,r,t),a.context[t]=e.substitution)})}}})}}function Vn(e,t){return new Rn(e.map(function(e){return e.activeState.value}),t||0)}var $n={startCheck:function(e){var t=e.current,n=e.get(-1);return null===n&&Bn(t)||!Bn(n)&&Bn(t)},endCheck:function(e){var t=e.get(1);return null===t||!Bn(t)}};function Yn(e,t){return new Rn(e.map(function(e){return e.activeState.value}),t||0)}function Zn(e){this.baseDir=e||"ltr",this.tokenizer=new Fn,this.featuresTags={}}function Kn(e){var t=this.contextChecks[e+"Check"];return this.tokenizer.registerContextChecker(e,t.startCheck,t.endCheck)}function Jn(){if(-1===this.tokenizer.registeredModifiers.indexOf("glyphIndex"))throw new Error("glyphIndex modifier is required to apply arabic presentation features.")}function Qn(){var e=this;this.featuresTags.hasOwnProperty("arab")&&(-1!==this.featuresTags.arab.indexOf("rlig")&&(Jn.call(this),this.tokenizer.getContextRanges("arabicWord").forEach(function(t){(function(e){var t=this,n=this.tokenizer.getRangeTokens(e),r=Vn(n);r.context.forEach(function(e,a){r.setCurrentIndex(a);var i=t.query.lookupFeature({tag:"rlig",script:"arab",contextParams:r});i.length&&(i.forEach(function(e){return Wn(e,n,a)}),r=Vn(n))})}).call(e,t)})))}function er(){var e=this;this.featuresTags.hasOwnProperty("latn")&&(-1!==this.featuresTags.latn.indexOf("liga")&&(Jn.call(this),this.tokenizer.getContextRanges("latinWord").forEach(function(t){(function(e){var t=this,n=this.tokenizer.getRangeTokens(e),r=Yn(n);r.context.forEach(function(e,a){r.setCurrentIndex(a);var i=t.query.lookupFeature({tag:"liga",script:"latn",contextParams:r});i.length&&(i.forEach(function(e){return Wn(e,n,a)}),r=Yn(n))})}).call(e,t)})))}function tr(e){(e=e||{}).empty||(Dt(e.familyName,"When creating a new Font object, familyName is required."),Dt(e.styleName,"When creating a new Font object, styleName is required."),Dt(e.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),Dt(e.ascender,"When creating a new Font object, ascender is required."),Dt(e.descender,"When creating a new Font object, descender is required."),Dt(e.descender<0,"Descender should be negative (e.g. -512)."),this.names={fontFamily:{en:e.familyName||" "},fontSubfamily:{en:e.styleName||" "},fullName:{en:e.fullName||e.familyName+" "+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\s/g,"")},designer:{en:e.designer||" "},designerURL:{en:e.designerURL||" "},manufacturer:{en:e.manufacturer||" "},manufacturerURL:{en:e.manufacturerURL||" "},license:{en:e.license||" "},licenseURL:{en:e.licenseURL||" "},version:{en:e.version||"Version 0.1"},description:{en:e.description||" "},copyright:{en:e.copyright||" "},trademark:{en:e.trademark||" "}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new Te.GlyphSet(this,e.glyphs||[]),this.encoding=new he(this),this.position=new Et(this),this.substitution=new Ct(this),this.tables=this.tables||{},this._push=null,this._hmtxTableData={},Object.defineProperty(this,"hinting",{get:function(){return this._hinting?this._hinting:"truetype"===this.outlinesFormat?this._hinting=new Ht(this):void 0}})}function nr(e,t){var n=JSON.stringify(e),r=256;for(var a in t){var i=parseInt(a);if(i&&!(i<256)){if(JSON.stringify(t[a])===n)return i;r<=i&&(r=i+1)}}return t[r]=e,r}function rr(e,t,n){var r=nr(t.name,n);return[{name:"tag_"+e,type:"TAG",value:t.tag},{name:"minValue_"+e,type:"FIXED",value:t.minValue<<16},{name:"defaultValue_"+e,type:"FIXED",value:t.defaultValue<<16},{name:"maxValue_"+e,type:"FIXED",value:t.maxValue<<16},{name:"flags_"+e,type:"USHORT",value:0},{name:"nameID_"+e,type:"USHORT",value:r}]}function ar(e,t,n){var r={},a=new oe.Parser(e,t);return r.tag=a.parseTag(),r.minValue=a.parseFixed(),r.defaultValue=a.parseFixed(),r.maxValue=a.parseFixed(),a.skip("uShort",1),r.name=n[a.parseUShort()]||{},r}function ir(e,t,n,r){for(var a=[{name:"nameID_"+e,type:"USHORT",value:nr(t.name,r)},{name:"flags_"+e,type:"USHORT",value:0}],i=0;i<n.length;++i){var o=n[i].tag;a.push({name:"axis_"+e+" "+o,type:"FIXED",value:t.coordinates[o]<<16})}return a}function or(e,t,n,r){var a={},i=new oe.Parser(e,t);a.name=r[i.parseUShort()]||{},i.skip("uShort",1),a.coordinates={};for(var o=0;o<n.length;++o)a.coordinates[n[o].tag]=i.parseFixed();return a}Zn.prototype.setText=function(e){this.text=e},Zn.prototype.contextChecks={latinWordCheck:$n,arabicWordCheck:jn,arabicSentenceCheck:qn},Zn.prototype.registerFeatures=function(e,t){var n=this,r=t.filter(function(t){return n.query.supports({script:e,tag:t})});this.featuresTags.hasOwnProperty(e)?this.featuresTags[e]=this.featuresTags[e].concat(r):this.featuresTags[e]=r},Zn.prototype.applyFeatures=function(e,t){if(!e)throw new Error("No valid font was provided to apply features");this.query||(this.query=new Pn(e));for(var n=0;n<t.length;n++){var r=t[n];this.query.supports({script:r.script})&&this.registerFeatures(r.script,r.tags)}},Zn.prototype.registerModifier=function(e,t,n){this.tokenizer.registerModifier(e,t,n)},Zn.prototype.checkContextReady=function(e){return!!this.tokenizer.getContext(e)},Zn.prototype.applyFeaturesToContexts=function(){this.checkContextReady("arabicWord")&&(function(){var e=this;this.featuresTags.hasOwnProperty("arab")&&(Jn.call(this),this.tokenizer.getContextRanges("arabicWord").forEach(function(t){Xn.call(e,t)}))}.call(this),Qn.call(this)),this.checkContextReady("latinWord")&&er.call(this),this.checkContextReady("arabicSentence")&&function(){var e=this;this.tokenizer.getContextRanges("arabicSentence").forEach(function(t){var n=e.tokenizer.getRangeTokens(t);e.tokenizer.replaceRange(t.startIndex,t.endOffset,n.reverse())})}.call(this)},Zn.prototype.processText=function(e){this.text&&this.text===e||(this.setText(e),function(){return Kn.call(this,"latinWord"),Kn.call(this,"arabicWord"),Kn.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}.call(this),this.applyFeaturesToContexts())},Zn.prototype.getBidiText=function(e){return this.processText(e),this.tokenizer.getText()},Zn.prototype.getTextGlyphs=function(e){this.processText(e);for(var t=[],n=0;n<this.tokenizer.tokens.length;n++){var r=this.tokenizer.tokens[n];if(!r.state.deleted){var a=r.activeState.value;t.push(Array.isArray(a)?a[0]:a)}}return t},tr.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},tr.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},tr.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),n=this.glyphs.get(t);return n||(n=this.glyphs.get(0)),n},tr.prototype.updateFeatures=function(e){return this.defaultRenderOptions.features.map(function(t){return"latn"===t.script?{script:"latn",tags:t.tags.filter(function(t){return e[t]})}:t})},tr.prototype.stringToGlyphs=function(e,t){var n=this,r=new Zn;r.registerModifier("glyphIndex",null,function(e){return n.charToGlyphIndex(e.char)});var a=t?this.updateFeatures(t.features):this.defaultRenderOptions.features;r.applyFeatures(this,a);for(var i=r.getTextGlyphs(e),o=i.length,s=new Array(o),l=this.glyphs.get(0),u=0;u<o;u+=1)s[u]=n.glyphs.get(i[u])||l;return s},tr.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},tr.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),n=this.glyphs.get(t);return n||(n=this.glyphs.get(0)),n},tr.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):""},tr.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var n=this.position.defaultKerningTables;return n?this.position.getKerningValue(n,e,t):this.kerningPairs[e+","+t]||0},tr.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]},tr.prototype.forEachGlyph=function(e,t,n,r,a,i){t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:72,a=Object.assign({},this.defaultRenderOptions,a);var o,s=1/this.unitsPerEm*r,l=this.stringToGlyphs(e,a);if(a.kerning){var u=a.script||this.position.getDefaultScriptName();o=this.position.getKerningTables(u,a.language)}for(var p=0;p<l.length;p+=1){var c=l[p];const e=c.advanceWidth;if(i.call(this,c,t,n,r,a),e&&(c.advanceWidth=e,t+=c.advanceWidth*s),a.kerning&&p<l.length-1)t+=(o?this.position.getKerningValue(o,c.index,l[p+1].index):this.getKerningValue(c,l[p+1]))*s;a.letterSpacing?t+=a.letterSpacing*r:a.tracking&&(t+=a.tracking/1e3*r)}return t},tr.prototype.getPath=function(e,t,n,r,a){var i=new U;return this.forEachGlyph(e,t,n,r,a,function(e,t,n,r){var o=e.getPath(t,n,r,a,this);i.extend(o)}),i},tr.prototype.getPaths=function(e,t,n,r,a){var i=[];return this.forEachGlyph(e,t,n,r,a,function(e,t,n,r){var o=e.getPath(t,n,r,a,this);i.push(o)}),i},tr.prototype.getAdvanceWidth=function(e,t,n){return this.forEachGlyph(e,0,0,t,n,function(){})},tr.prototype.draw=function(e,t,n,r,a,i){this.getPath(t,n,r,a,i).draw(e)},tr.prototype.drawPoints=function(e,t,n,r,a,i){this.forEachGlyph(t,n,r,a,i,function(t,n,r,a){t.drawPoints(e,n,r,a)})},tr.prototype.drawMetrics=function(e,t,n,r,a,i){this.forEachGlyph(t,n,r,a,i,function(t,n,r,a){t.drawMetrics(e,n,r,a)})},tr.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},tr.prototype.validate=function(){var e=this;function t(t){var n=e.getEnglishName(t);n&&n.trim().length}t("fontFamily"),t("weightName"),t("manufacturer"),t("copyright"),t("version"),this.unitsPerEm},tr.prototype.toTables=function(){return xt.fontToTable(this)},tr.prototype.toBuffer=function(){return console.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."),this.toArrayBuffer()},tr.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e[r];return t},tr.prototype.download=function(e){var t=this.getEnglishName("fontFamily"),n=this.getEnglishName("fontSubfamily");e=e||t.replace(/\s/g,"")+"-"+n+".otf";var r=this.toArrayBuffer();if("undefined"!=typeof window)if(window.URL=window.URL||window.webkitURL,window.URL){var a=new DataView(r),i=new Blob([a],{type:"font/opentype"}),o=document.createElement("a");o.href=window.URL.createObjectURL(i),o.download=e;var s=document.createEvent("MouseEvents");s.initEvent("click",!0,!1),o.dispatchEvent(s)}else console.warn("Font file could not be downloaded. Try using a different browser.");else{var l=require("fs"),u=function(e){for(var t=new Buffer(e.byteLength),n=new Uint8Array(e),r=0;r<t.length;++r)t[r]=n[r];return t}(r);l.writeFileSync(e,u)}},tr.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},tr.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},tr.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var sr={make:function(e,t){var n=new J.Table("fvar",[{name:"version",type:"ULONG",value:65536},{name:"offsetToData",type:"USHORT",value:0},{name:"countSizePairs",type:"USHORT",value:2},{name:"axisCount",type:"USHORT",value:e.axes.length},{name:"axisSize",type:"USHORT",value:20},{name:"instanceCount",type:"USHORT",value:e.instances.length},{name:"instanceSize",type:"USHORT",value:4+4*e.axes.length}]);n.offsetToData=n.sizeOf();for(var r=0;r<e.axes.length;r++)n.fields=n.fields.concat(rr(r,e.axes[r],t));for(var a=0;a<e.instances.length;a++)n.fields=n.fields.concat(ir(a,e.instances[a],e.axes,t));return n},parse:function(e,t,n){var r=new oe.Parser(e,t),a=r.parseULong();R.argument(65536===a,"Unsupported fvar table version.");var i=r.parseOffset16();r.skip("uShort",1);for(var o=r.parseUShort(),s=r.parseUShort(),l=r.parseUShort(),u=r.parseUShort(),p=[],c=0;c<o;c++)p.push(ar(e,t+i+c*s,n));for(var f=[],h=t+i+o*s,d=0;d<l;d++)f.push(or(e,h+d*u,p,n));return{axes:p,instances:f}}},lr=new Array(10);lr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(ae.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(ae.coverage),values:this.parseValueRecordList()}:void R.assert(!1,"0x"+e.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")},lr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();R.assert(1===t||2===t,"0x"+e.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var n=this.parsePointer(ae.coverage),r=this.parseUShort(),a=this.parseUShort();if(1===t)return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:a,pairSets:this.parseList(ae.pointer(ae.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(r),value2:this.parseValueRecord(a)}})))};if(2===t){var i=this.parsePointer(ae.classDef),o=this.parsePointer(ae.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:a,classDef1:i,classDef2:o,class1Count:s,class2Count:l,classRecords:this.parseList(s,ae.list(l,function(){return{value1:this.parseValueRecord(r),value2:this.parseValueRecord(a)}}))}}},lr[3]=function(){return{error:"GPOS Lookup 3 not supported"}},lr[4]=function(){return{error:"GPOS Lookup 4 not supported"}},lr[5]=function(){return{error:"GPOS Lookup 5 not supported"}},lr[6]=function(){return{error:"GPOS Lookup 6 not supported"}},lr[7]=function(){return{error:"GPOS Lookup 7 not supported"}},lr[8]=function(){return{error:"GPOS Lookup 8 not supported"}},lr[9]=function(){return{error:"GPOS Lookup 9 not supported"}};var ur=new Array(10);var pr={parse:function(e,t){var n=new ae(e,t=t||0),r=n.parseVersion(1);return R.argument(1===r||1.1===r,"Unsupported GPOS table version "+r),1===r?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(lr)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(lr),variations:n.parseFeatureVariationsList()}},make:function(e){return new J.Table("GPOS",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new J.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new J.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new J.LookupList(e.lookups,ur)}])}};var cr={parse:function(e,t){var n=new oe.Parser(e,t),r=n.parseUShort();if(0===r)return function(e){var t={};e.skip("uShort");var n=e.parseUShort();R.argument(0===n,"Unsupported kern sub-table version."),e.skip("uShort",2);var r=e.parseUShort();e.skip("uShort",3);for(var a=0;a<r;a+=1){var i=e.parseUShort(),o=e.parseUShort(),s=e.parseShort();t[i+","+o]=s}return t}(n);if(1===r)return function(e){var t={};e.skip("uShort"),e.parseULong()>1&&console.warn("Only the first kern subtable is supported."),e.skip("uLong");var n=255&e.parseUShort();if(e.skip("uShort"),0===n){var r=e.parseUShort();e.skip("uShort",3);for(var a=0;a<r;a+=1){var i=e.parseUShort(),o=e.parseUShort(),s=e.parseShort();t[i+","+o]=s}}return t}(n);throw new Error("Unsupported kern table version ("+r+").")}};var fr={parse:function(e,t,n,r){for(var a=new oe.Parser(e,t),i=r?a.parseUShort:a.parseULong,o=[],s=0;s<n+1;s+=1){var l=i.call(a);r&&(l*=2),o.push(l)}return o}};function hr(e,t){require("fs").readFile(e,function(e,n){if(e)return t(e.message);t(null,Lt(n))})}function dr(e,t){var n=new XMLHttpRequest;n.open("get",e,!0),n.responseType="arraybuffer",n.onload=function(){return n.response?t(null,n.response):t("Font could not be loaded: "+n.statusText)},n.onerror=function(){t("Font could not be loaded")},n.send()}function gr(e,t){for(var n=[],r=12,a=0;a<t;a+=1){var i=oe.getTag(e,r),o=oe.getULong(e,r+4),s=oe.getULong(e,r+8),l=oe.getULong(e,r+12);n.push({tag:i,checksum:o,offset:s,length:l,compression:!1}),r+=16}return n}function vr(e,t){if("WOFF"===t.compression){var n=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),r=new Uint8Array(t.length);if(E(n,r),r.byteLength!==t.length)throw new Error("Decompression error: "+t.tag+" decompressed length doesn't match recorded length");return{data:new DataView(r.buffer,0),offset:0}}return{data:e,offset:t.offset}}function mr(e,t){var n,r;t=null==t?{}:t;var a,i,o,s,l,u,p,c,f,h,d,g,v=new tr({empty:!0}),m=new DataView(e,0),y=[],b=oe.getTag(m,0);if(b===String.fromCharCode(0,1,0,0)||"true"===b||"typ1"===b)v.outlinesFormat="truetype",y=gr(m,a=oe.getUShort(m,4));else if("OTTO"===b)v.outlinesFormat="cff",y=gr(m,a=oe.getUShort(m,4));else{if("wOFF"!==b)throw new Error("Unsupported OpenType signature "+b);var x=oe.getTag(m,4);if(x===String.fromCharCode(0,1,0,0))v.outlinesFormat="truetype";else{if("OTTO"!==x)throw new Error("Unsupported OpenType flavor "+b);v.outlinesFormat="cff"}y=function(e,t){for(var n=[],r=44,a=0;a<t;a+=1){var i=oe.getTag(e,r),o=oe.getULong(e,r+4),s=oe.getULong(e,r+8),l=oe.getULong(e,r+12),u=void 0;u=s<l&&"WOFF",n.push({tag:i,offset:o,compression:u,compressedLength:s,length:l}),r+=20}return n}(m,a=oe.getUShort(m,12))}for(var S=0;S<a;S+=1){var T=y[S],w=void 0;switch(T.tag){case"cmap":w=vr(m,T),v.tables.cmap=le.parse(w.data,w.offset),v.encoding=new de(v.tables.cmap);break;case"cvt ":w=vr(m,T),g=new oe.Parser(w.data,w.offset),v.tables.cvt=g.parseShortList(T.length/2);break;case"fvar":o=T;break;case"fpgm":w=vr(m,T),g=new oe.Parser(w.data,w.offset),v.tables.fpgm=g.parseByteList(T.length);break;case"head":w=vr(m,T),v.tables.head=je.parse(w.data,w.offset),v.unitsPerEm=v.tables.head.unitsPerEm,n=v.tables.head.indexToLocFormat;break;case"hhea":w=vr(m,T),v.tables.hhea=qe.parse(w.data,w.offset),v.ascender=v.tables.hhea.ascender,v.descender=v.tables.hhea.descender,v.numberOfHMetrics=v.tables.hhea.numberOfHMetrics;break;case"hmtx":p=T;break;case"ltag":w=vr(m,T),r=We.parse(w.data,w.offset);break;case"maxp":w=vr(m,T),v.tables.maxp=Xe.parse(w.data,w.offset),v.numGlyphs=v.tables.maxp.numGlyphs;break;case"name":h=T;break;case"OS/2":w=vr(m,T),v.tables.os2=st.parse(w.data,w.offset);break;case"post":w=vr(m,T),v.tables.post=lt.parse(w.data,w.offset),v.glyphNames=new ve(v.tables.post);break;case"prep":w=vr(m,T),g=new oe.Parser(w.data,w.offset),v.tables.prep=g.parseByteList(T.length);break;case"glyf":s=T;break;case"loca":f=T;break;case"CFF ":i=T;break;case"kern":c=T;break;case"GPOS":l=T;break;case"GSUB":u=T;break;case"meta":d=T}}var k=vr(m,h);if(v.tables.name=it.parse(k.data,k.offset,r),v.names=v.tables.name,s&&f){var E=0===n,C=vr(m,f),O=fr.parse(C.data,C.offset,v.numGlyphs,E),U=vr(m,s);v.glyphs=Gt.parse(U.data,U.offset,O,v,t)}else{if(!i)throw new Error("Font doesn't contain TrueType or CFF outlines.");var L=vr(m,i);He.parse(L.data,L.offset,v,t)}var D=vr(m,p);if(ze.parse(v,D.data,D.offset,v.numberOfHMetrics,v.numGlyphs,v.glyphs,t),me(v,t),c){var R=vr(m,c);v.kerningPairs=cr.parse(R.data,R.offset)}else v.kerningPairs={};if(l){var A=vr(m,l);v.tables.gpos=pr.parse(A.data,A.offset),v.position.init()}if(u){var F=vr(m,u);v.tables.gsub=ft.parse(F.data,F.offset)}if(o){var N=vr(m,o);v.tables.fvar=sr.parse(N.data,N.offset,v.names)}if(d){var I=vr(m,d);v.tables.meta=ht.parse(I.data,I.offset),v.metas=v.tables.meta}return v}e.BoundingBox=O,e.Font=tr,e.Glyph=be,e.Path=U,e._parse=oe,e.load=function(e,t,n){var r="undefined"==typeof window?hr:dr;return new Promise(function(a){r(e,function(e,r){if(e)return t(e);var i;try{i=mr(r,n)}catch(e){return t(e,null)}if(t)return t(null,i);a(i)})})},e.loadSync=function(e,t){return mr(Lt(require("fs").readFileSync(e)),t)},e.parse=mr,Object.defineProperty(e,"__esModule",{value:!0})});
|