!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){!function(a,c){"object"==typeof b&&"object"==typeof b.exports?b.exports=a.document?c(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return c(a)}:c(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b=!!a&&"length"in a&&a.length,c=fa.type(a);return"function"===c||fa.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(fa.isFunction(b))return fa.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return fa.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(pa.test(b))return fa.filter(b,a,c);b=fa.filter(b,a)}return fa.grep(a,function(a){return _.call(b,a)>-1!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b={};return fa.each(a.match(va)||[],function(a,c){b[c]=!0}),b}function g(){X.removeEventListener("DOMContentLoaded",g),a.removeEventListener("load",g),fa.ready()}function h(){this.expando=fa.expando+h.uid++}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Ca,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:Ba.test(c)?fa.parseJSON(c):c}catch(e){}Aa.set(a,b,c)}else c=void 0;return c}function j(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return fa.css(a,b,"")},i=h(),j=c&&c[3]||(fa.cssNumber[b]?"":"px"),k=(fa.cssNumber[b]||"px"!==j&&+i)&&Ea.exec(fa.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,fa.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}function k(a,b){var c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&fa.nodeName(a,b)?fa.merge([a],c):c}function l(a,b){for(var c=0,d=a.length;d>c;c++)za.set(a[c],"globalEval",!b||za.get(b[c],"globalEval"))}function m(a,b,c,d,e){for(var f,g,h,i,j,m,n=b.createDocumentFragment(),o=[],p=0,q=a.length;q>p;p++)if(f=a[p],f||0===f)if("object"===fa.type(f))fa.merge(o,f.nodeType?[f]:f);else if(La.test(f)){for(g=g||n.appendChild(b.createElement("div")),h=(Ia.exec(f)||["",""])[1].toLowerCase(),i=Ka[h]||Ka._default,g.innerHTML=i[1]+fa.htmlPrefilter(f)+i[2],m=i[0];m--;)g=g.lastChild;fa.merge(o,g.childNodes),g=n.firstChild,g.textContent=""}else o.push(b.createTextNode(f));for(n.textContent="",p=0;f=o[p++];)if(d&&fa.inArray(f,d)>-1)e&&e.push(f);else if(j=fa.contains(f.ownerDocument,f),g=k(n.appendChild(f),"script"),j&&l(g),c)for(m=0;f=g[m++];)Ja.test(f.type||"")&&c.push(f);return n}function n(){return!0}function o(){return!1}function p(){try{return X.activeElement}catch(a){}}function q(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)q(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=o;else if(!e)return a;return 1===f&&(g=e,e=function(a){return fa().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=fa.guid++)),a.each(function(){fa.event.add(this,b,e,d,c)})}function r(a,b){return fa.nodeName(a,"table")&&fa.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function s(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function t(a){var b=Sa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function u(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(za.hasData(a)&&(f=za.access(a),g=za.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)fa.event.add(b,e,j[e][c])}Aa.hasData(a)&&(h=Aa.access(a),i=fa.extend({},h),Aa.set(b,i))}}function v(a,b){var c=b.nodeName.toLowerCase();"input"===c&&Ha.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function w(a,b,c,d){b=Z.apply([],b);var e,f,g,h,i,j,l=0,n=a.length,o=n-1,p=b[0],q=fa.isFunction(p);if(q||n>1&&"string"==typeof p&&!da.checkClone&&Ra.test(p))return a.each(function(e){var f=a.eq(e);q&&(b[0]=p.call(this,e,f.html())),w(f,b,c,d)});if(n&&(e=m(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(g=fa.map(k(e,"script"),s),h=g.length;n>l;l++)i=e,l!==o&&(i=fa.clone(i,!0,!0),h&&fa.merge(g,k(i,"script"))),c.call(a[l],i,l);if(h)for(j=g[g.length-1].ownerDocument,fa.map(g,t),l=0;h>l;l++)i=g[l],Ja.test(i.type||"")&&!za.access(i,"globalEval")&&fa.contains(j,i)&&(i.src?fa._evalUrl&&fa._evalUrl(i.src):fa.globalEval(i.textContent.replace(Ta,"")))}return a}function x(a,b,c){for(var d,e=b?fa.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||fa.cleanData(k(d)),d.parentNode&&(c&&fa.contains(d.ownerDocument,d)&&l(k(d,"script")),d.parentNode.removeChild(d));return a}function y(a,b){var c=fa(b.createElement(a)).appendTo(b.body),d=fa.css(c[0],"display");return c.detach(),d}function z(a){var b=X,c=Va[a];return c||(c=y(a,b),"none"!==c&&c||(Ua=(Ua||fa("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=Ua[0].contentDocument,b.write(),b.close(),c=y(a,b),Ua.detach()),Va[a]=c),c}function A(a,b,c){var d,e,f,g,h=a.style;return c=c||Ya(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||fa.contains(a.ownerDocument,a)||(g=fa.style(a,b)),c&&!da.pixelMarginRight()&&Xa.test(g)&&Wa.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0!==g?g+"":g}function B(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}function C(a){if(a in db)return a;for(var b=a[0].toUpperCase()+a.slice(1),c=cb.length;c--;)if(a=cb[c]+b,a in db)return a}function D(a,b,c){var d=Ea.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function E(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=fa.css(a,c+Fa[f],!0,e)),d?("content"===c&&(g-=fa.css(a,"padding"+Fa[f],!0,e)),"margin"!==c&&(g-=fa.css(a,"border"+Fa[f]+"Width",!0,e))):(g+=fa.css(a,"padding"+Fa[f],!0,e),"padding"!==c&&(g+=fa.css(a,"border"+Fa[f]+"Width",!0,e)));return g}function F(b,c,d){var e=!0,f="width"===c?b.offsetWidth:b.offsetHeight,g=Ya(b),h="border-box"===fa.css(b,"boxSizing",!1,g);if(X.msFullscreenElement&&a.top!==a&&b.getClientRects().length&&(f=Math.round(100*b.getBoundingClientRect()[c])),0>=f||null==f){if(f=A(b,c,g),(0>f||null==f)&&(f=b.style[c]),Xa.test(f))return f;e=h&&(da.boxSizingReliable()||f===b.style[c]),f=parseFloat(f)||0}return f+E(b,c,d||(h?"border":"content"),e,g)+"px"}function G(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=za.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&Ga(d)&&(f[g]=za.access(d,"olddisplay",z(d.nodeName)))):(e=Ga(d),"none"===c&&e||za.set(d,"olddisplay",e?c:fa.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function H(a,b,c,d,e){return new H.prototype.init(a,b,c,d,e)}function I(){return a.setTimeout(function(){eb=void 0}),eb=fa.now()}function J(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=Fa[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function K(a,b,c){for(var d,e=(N.tweeners[b]||[]).concat(N.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function L(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},n=a.style,o=a.nodeType&&Ga(a),p=za.get(a,"fxshow");c.queue||(h=fa._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,fa.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[n.overflow,n.overflowX,n.overflowY],j=fa.css(a,"display"),k="none"===j?za.get(a,"olddisplay")||z(a.nodeName):j,"inline"===k&&"none"===fa.css(a,"float")&&(n.display="inline-block")),c.overflow&&(n.overflow="hidden",l.always(function(){n.overflow=c.overflow[0],n.overflowX=c.overflow[1],n.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],gb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(o?"hide":"show")){if("show"!==e||!p||void 0===p[d])continue;o=!0}m[d]=p&&p[d]||fa.style(a,d)}else j=void 0;if(fa.isEmptyObject(m))"inline"===("none"===j?z(a.nodeName):j)&&(n.display=j);else{p?"hidden"in p&&(o=p.hidden):p=za.access(a,"fxshow",{}),f&&(p.hidden=!o),o?fa(a).show():l.done(function(){fa(a).hide()}),l.done(function(){var b;za.remove(a,"fxshow");for(b in m)fa.style(a,b,m[b])});for(d in m)g=K(o?p[d]:0,d,l),d in p||(p[d]=g.start,o&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function M(a,b){var c,d,e,f,g;for(c in a)if(d=fa.camelCase(c),e=b[d],f=a[c],fa.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=fa.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function N(a,b,c){var d,e,f=0,g=N.prefilters.length,h=fa.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=eb||I(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:fa.extend({},b),opts:fa.extend(!0,{specialEasing:{},easing:fa.easing._default},c),originalProperties:b,originalOptions:c,startTime:eb||I(),duration:c.duration,tweens:[],createTween:function(b,c){var d=fa.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(M(k,j.opts.specialEasing);g>f;f++)if(d=N.prefilters[f].call(j,a,k,j.opts))return fa.isFunction(d.stop)&&(fa._queueHooks(j.elem,j.opts.queue).stop=fa.proxy(d.stop,d)),d;return fa.map(k,K,j),fa.isFunction(j.opts.start)&&j.opts.start.call(a,j),fa.fx.timer(fa.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function O(a){return a.getAttribute&&a.getAttribute("class")||""}function P(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(va)||[];if(fa.isFunction(c))for(;d=f[e++];)"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Q(a,b,c,d){function e(h){var i;return f[h]=!0,fa.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||g||f[j]?g?!(i=j):void 0:(b.dataTypes.unshift(j),e(j),!1)}),i}var f={},g=a===Ab;return e(b.dataTypes[0])||!f["*"]&&e("*")}function R(a,b){var c,d,e=fa.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&fa.extend(!0,a,d),a}function S(a,b,c){for(var d,e,f,g,h=a.contents,i=a.dataTypes;"*"===i[0];)i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function T(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];for(f=k.shift();f;)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}function U(a,b,c,d){var e;if(fa.isArray(b))fa.each(b,function(b,e){c||Eb.test(a)?d(a,e):U(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==fa.type(b))d(a,b);else for(e in b)U(a+"["+e+"]",b[e],c,d)}function V(a){return fa.isWindow(a)?a:9===a.nodeType&&a.defaultView}var W=[],X=a.document,Y=W.slice,Z=W.concat,$=W.push,_=W.indexOf,aa={},ba=aa.toString,ca=aa.hasOwnProperty,da={},ea="2.2.3",fa=function(a,b){return new fa.fn.init(a,b)},ga=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ha=/^-ms-/,ia=/-([\da-z])/gi,ja=function(a,b){return b.toUpperCase()};fa.fn=fa.prototype={jquery:ea,constructor:fa,selector:"",length:0,toArray:function(){return Y.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:Y.call(this)},pushStack:function(a){var b=fa.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return fa.each(this,a)},map:function(a){return this.pushStack(fa.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(Y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:$,sort:W.sort,splice:W.splice},fa.extend=fa.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||fa.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(fa.isPlainObject(d)||(e=fa.isArray(d)))?(e?(e=!1,f=c&&fa.isArray(c)?c:[]):f=c&&fa.isPlainObject(c)?c:{},g[b]=fa.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},fa.extend({expando:"jQuery"+(ea+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===fa.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=a&&a.toString();return!fa.isArray(a)&&b-parseFloat(b)+1>=0},isPlainObject:function(a){var b;if("object"!==fa.type(a)||a.nodeType||fa.isWindow(a))return!1;if(a.constructor&&!ca.call(a,"constructor")&&!ca.call(a.constructor.prototype||{},"isPrototypeOf"))return!1;for(b in a);return void 0===b||ca.call(a,b)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?aa[ba.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=fa.trim(a),a&&(1===a.indexOf("use strict")?(b=X.createElement("script"),b.text=a,X.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(ha,"ms-").replace(ia,ja)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var d,e=0;if(c(a))for(d=a.length;d>e&&b.call(a[e],e,a[e])!==!1;e++);else for(e in a)if(b.call(a[e],e,a[e])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(ga,"")},makeArray:function(a,b){var d=b||[];return null!=a&&(c(Object(a))?fa.merge(d,"string"==typeof a?[a]:a):$.call(d,a)),d},inArray:function(a,b,c){return null==b?-1:_.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,d){var e,f,g=0,h=[];if(c(a))for(e=a.length;e>g;g++)f=b(a[g],g,d),null!=f&&h.push(f);else for(g in a)f=b(a[g],g,d),null!=f&&h.push(f);return Z.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;return"string"==typeof b&&(c=a[b],b=a,a=c),fa.isFunction(a)?(d=Y.call(arguments,2),e=function(){return a.apply(b||this,d.concat(Y.call(arguments)))},e.guid=a.guid=a.guid||fa.guid++,e):void 0},now:Date.now,support:da}),"function"==typeof Symbol&&(fa.fn[Symbol.iterator]=W[Symbol.iterator]),fa.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){aa["[object "+b+"]"]=b.toLowerCase()});var ka=function(a){function b(a,b,c,d){var e,f,g,h,i,j,l,n,o=b&&b.ownerDocument,p=b?b.nodeType:9;if(c=c||[],"string"!=typeof a||!a||1!==p&&9!==p&&11!==p)return c;if(!d&&((b?b.ownerDocument||b:O)!==G&&F(b),b=b||G,I)){if(11!==p&&(j=ra.exec(a)))if(e=j[1]){if(9===p){if(!(g=b.getElementById(e)))return c;if(g.id===e)return c.push(g),c}else if(o&&(g=o.getElementById(e))&&M(b,g)&&g.id===e)return c.push(g),c}else{if(j[2])return $.apply(c,b.getElementsByTagName(a)),c;if((e=j[3])&&v.getElementsByClassName&&b.getElementsByClassName)return $.apply(c,b.getElementsByClassName(e)),c}if(v.qsa&&!T[a+" "]&&(!J||!J.test(a))){if(1!==p)o=b,n=a;else if("object"!==b.nodeName.toLowerCase()){for((h=b.getAttribute("id"))?h=h.replace(ta,"\\$&"):b.setAttribute("id",h=N),l=z(a),f=l.length,i=ma.test(h)?"#"+h:"[id='"+h+"']";f--;)l[f]=i+" "+m(l[f]);n=l.join(","),o=sa.test(a)&&k(b.parentNode)||b}if(n)try{return $.apply(c,o.querySelectorAll(n)),c}catch(q){}finally{h===N&&b.removeAttribute("id")}}}return B(a.replace(ha,"$1"),b,c,d)}function c(){function a(c,d){return b.push(c+" ")>w.cacheLength&&delete a[b.shift()],a[c+" "]=d}var b=[];return a}function d(a){return a[N]=!0,a}function e(a){var b=G.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function f(a,b){for(var c=a.split("|"),d=c.length;d--;)w.attrHandle[c[d]]=b}function g(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||V)-(~a.sourceIndex||V);if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function h(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function i(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function j(a){return d(function(b){return b=+b,d(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function k(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}function l(){}function m(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function n(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=Q++;return b.first?function(b,c,f){for(;b=b[d];)if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[P,f];if(g){for(;b=b[d];)if((1===b.nodeType||e)&&a(b,c,g))return!0}else for(;b=b[d];)if(1===b.nodeType||e){if(j=b[N]||(b[N]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===P&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function o(a){return a.length>1?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function p(a,c,d){for(var e=0,f=c.length;f>e;e++)b(a,c[e],d);return d}function q(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function r(a,b,c,e,f,g){return e&&!e[N]&&(e=r(e)),f&&!f[N]&&(f=r(f,g)),d(function(d,g,h,i){var j,k,l,m=[],n=[],o=g.length,r=d||p(b||"*",h.nodeType?[h]:h,[]),s=!a||!d&&b?r:q(r,m,a,h,i),t=c?f||(d?a:o||e)?[]:g:s;if(c&&c(s,t,h,i),e)for(j=q(t,n),e(j,[],h,i),k=j.length;k--;)(l=j[k])&&(t[n[k]]=!(s[n[k]]=l));if(d){if(f||a){if(f){for(j=[],k=t.length;k--;)(l=t[k])&&j.push(s[k]=l);f(null,t=[],j,i)}for(k=t.length;k--;)(l=t[k])&&(j=f?aa(d,l):m[k])>-1&&(d[j]=!(g[j]=l))}}else t=q(t===g?t.splice(o,t.length):t),f?f(null,g,t,i):$.apply(g,t)})}function s(a){for(var b,c,d,e=a.length,f=w.relative[a[0].type],g=f||w.relative[" "],h=f?1:0,i=n(function(a){return a===b},g,!0),j=n(function(a){return aa(b,a)>-1},g,!0),k=[function(a,c,d){var e=!f&&(d||c!==C)||((b=c).nodeType?i(a,c,d):j(a,c,d));return b=null,e}];e>h;h++)if(c=w.relative[a[h].type])k=[n(o(k),c)];else{if(c=w.filter[a[h].type].apply(null,a[h].matches),c[N]){for(d=++h;e>d&&!w.relative[a[d].type];d++);return r(h>1&&o(k),h>1&&m(a.slice(0,h-1).concat({value:" "===a[h-2].type?"*":""})).replace(ha,"$1"),c,d>h&&s(a.slice(h,d)),e>d&&s(a=a.slice(d)),e>d&&m(a))}k.push(c)}return o(k)}function t(a,c){var e=c.length>0,f=a.length>0,g=function(d,g,h,i,j){var k,l,m,n=0,o="0",p=d&&[],r=[],s=C,t=d||f&&w.find.TAG("*",j),u=P+=null==s?1:Math.random()||.1,v=t.length;for(j&&(C=g===G||g||j);o!==v&&null!=(k=t[o]);o++){if(f&&k){for(l=0,g||k.ownerDocument===G||(F(k),h=!I);m=a[l++];)if(m(k,g||G,h)){i.push(k);break}j&&(P=u)}e&&((k=!m&&k)&&n--,d&&p.push(k))}if(n+=o,e&&o!==n){for(l=0;m=c[l++];)m(p,r,g,h);if(d){if(n>0)for(;o--;)p[o]||r[o]||(r[o]=Y.call(i));r=q(r)}$.apply(i,r),j&&!d&&r.length>0&&n+c.length>1&&b.uniqueSort(i)}return j&&(P=u,C=s),p};return e?d(g):g}var u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N="sizzle"+1*new Date,O=a.document,P=0,Q=0,R=c(),S=c(),T=c(),U=function(a,b){return a===b&&(E=!0),0},V=1<<31,W={}.hasOwnProperty,X=[],Y=X.pop,Z=X.push,$=X.push,_=X.slice,aa=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},ba="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ca="[\\x20\\t\\r\\n\\f]",da="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ea="\\["+ca+"*("+da+")(?:"+ca+"*([*^$|!~]?=)"+ca+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+da+"))|)"+ca+"*\\]",fa=":("+da+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ea+")*)|.*)\\)|)",ga=new RegExp(ca+"+","g"),ha=new RegExp("^"+ca+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ca+"+$","g"),ia=new RegExp("^"+ca+"*,"+ca+"*"),ja=new RegExp("^"+ca+"*([>+~]|"+ca+")"+ca+"*"),ka=new RegExp("="+ca+"*([^\\]'\"]*?)"+ca+"*\\]","g"),la=new RegExp(fa),ma=new RegExp("^"+da+"$"),na={ID:new RegExp("^#("+da+")"),CLASS:new RegExp("^\\.("+da+")"),TAG:new RegExp("^("+da+"|[*])"),ATTR:new RegExp("^"+ea),PSEUDO:new RegExp("^"+fa),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ca+"*(even|odd|(([+-]|)(\\d*)n|)"+ca+"*(?:([+-]|)"+ca+"*(\\d+)|))"+ca+"*\\)|)","i"),bool:new RegExp("^(?:"+ba+")$","i"),needsContext:new RegExp("^"+ca+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ca+"*((?:-\\d)?\\d*)"+ca+"*\\)|)(?=[^-]|$)","i")},oa=/^(?:input|select|textarea|button)$/i,pa=/^h\d$/i,qa=/^[^{]+\{\s*\[native \w/,ra=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sa=/[+~]/,ta=/'|\\/g,ua=new RegExp("\\\\([\\da-f]{1,6}"+ca+"?|("+ca+")|.)","ig"),va=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},wa=function(){F()};try{$.apply(X=_.call(O.childNodes),O.childNodes),X[O.childNodes.length].nodeType}catch(xa){$={apply:X.length?function(a,b){Z.apply(a,_.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}v=b.support={},y=b.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},F=b.setDocument=function(a){var b,c,d=a?a.ownerDocument||a:O;return d!==G&&9===d.nodeType&&d.documentElement?(G=d,H=G.documentElement,I=!y(G),(c=G.defaultView)&&c.top!==c&&(c.addEventListener?c.addEventListener("unload",wa,!1):c.attachEvent&&c.attachEvent("onunload",wa)),v.attributes=e(function(a){return a.className="i",!a.getAttribute("className")}),v.getElementsByTagName=e(function(a){return a.appendChild(G.createComment("")),!a.getElementsByTagName("*").length}),v.getElementsByClassName=qa.test(G.getElementsByClassName),v.getById=e(function(a){return H.appendChild(a).id=N,!G.getElementsByName||!G.getElementsByName(N).length}),v.getById?(w.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&I){var c=b.getElementById(a);return c?[c]:[]}},w.filter.ID=function(a){var b=a.replace(ua,va);return function(a){return a.getAttribute("id")===b}}):(delete w.find.ID,w.filter.ID=function(a){var b=a.replace(ua,va);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),w.find.TAG=v.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):v.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f},w.find.CLASS=v.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&I?b.getElementsByClassName(a):void 0},K=[],J=[],(v.qsa=qa.test(G.querySelectorAll))&&(e(function(a){H.appendChild(a).innerHTML="<a id='"+N+"'></a><select id='"+N+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&J.push("[*^$]="+ca+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||J.push("\\["+ca+"*(?:value|"+ba+")"),a.querySelectorAll("[id~="+N+"-]").length||J.push("~="),a.querySelectorAll(":checked").length||J.push(":checked"),a.querySelectorAll("a#"+N+"+*").length||J.push(".#.+[+~]")}),e(function(a){var b=G.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&J.push("name"+ca+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||J.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),J.push(",.*:")})),(v.matchesSelector=qa.test(L=H.matches||H.webkitMatchesSelector||H.mozMatchesSelector||H.oMatchesSelector||H.msMatchesSelector))&&e(function(a){v.disconnectedMatch=L.call(a,"div"),L.call(a,"[s!='']:x"),K.push("!=",fa)}),J=J.length&&new RegExp(J.join("|")),K=K.length&&new RegExp(K.join("|")),b=qa.test(H.compareDocumentPosition),M=b||qa.test(H.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},U=b?function(a,b){if(a===b)return E=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition;return c?c:(c=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&c||!v.sortDetached&&b.compareDocumentPosition(a)===c?a===G||a.ownerDocument===O&&M(O,a)?-1:b===G||b.ownerDocument===O&&M(O,b)?1:D?aa(D,a)-aa(D,b):0:4&c?-1:1)}:function(a,b){if(a===b)return E=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===G?-1:b===G?1:e?-1:f?1:D?aa(D,a)-aa(D,b):0;if(e===f)return g(a,b);for(c=a;c=c.parentNode;)h.unshift(c);for(c=b;c=c.parentNode;)i.unshift(c);for(;h[d]===i[d];)d++;return d?g(h[d],i[d]):h[d]===O?-1:i[d]===O?1:0},G):G},b.matches=function(a,c){return b(a,null,null,c)},b.matchesSelector=function(a,c){if((a.ownerDocument||a)!==G&&F(a),c=c.replace(ka,"='$1']"),v.matchesSelector&&I&&!T[c+" "]&&(!K||!K.test(c))&&(!J||!J.test(c)))try{var d=L.call(a,c);if(d||v.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return b(c,G,null,[a]).length>0},b.contains=function(a,b){return(a.ownerDocument||a)!==G&&F(a),M(a,b)},b.attr=function(a,b){(a.ownerDocument||a)!==G&&F(a);var c=w.attrHandle[b.toLowerCase()],d=c&&W.call(w.attrHandle,b.toLowerCase())?c(a,b,!I):void 0;return void 0!==d?d:v.attributes||!I?a.getAttribute(b):(d=a.getAttributeNode(b))&&d.specified?d.value:null},b.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},b.uniqueSort=function(a){var b,c=[],d=0,e=0;if(E=!v.detectDuplicates,D=!v.sortStable&&a.slice(0),a.sort(U),E){for(;b=a[e++];)b===a[e]&&(d=c.push(e));for(;d--;)a.splice(c[d],1)}return D=null,a},x=b.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(1===e||9===e||11===e){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=x(a)}else if(3===e||4===e)return a.nodeValue}else for(;b=a[d++];)c+=x(b);return c},w=b.selectors={cacheLength:50,createPseudo:d,match:na,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ua,va),a[3]=(a[3]||a[4]||a[5]||"").replace(ua,va),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&b.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return na.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&la.test(c)&&(b=z(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ua,va).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=R[a+" "];return b||(b=new RegExp("(^|"+ca+")"+a+"("+ca+"|$)"))&&R(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,c,d){return function(e){var f=b.attr(e,a);return null==f?"!="===c:c?(f+="","="===c?f===d:"!="===c?f!==d:"^="===c?d&&0===f.indexOf(d):"*="===c?d&&f.indexOf(d)>-1:"$="===c?d&&f.slice(-d.length)===d:"~="===c?(" "+f.replace(ga," ")+" ").indexOf(d)>-1:"|="===c?f===d||f.slice(0,d.length+1)===d+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){for(;p;){for(m=b;m=m[p];)if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){for(m=q,l=m[N]||(m[N]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===P&&j[1],t=n&&j[2],m=n&&q.childNodes[n];m=++n&&m&&m[p]||(t=n=0)||o.pop();)if(1===m.nodeType&&++t&&m===b){k[a]=[P,n,t];break}}else if(s&&(m=b,l=m[N]||(m[N]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===P&&j[1],t=n),t===!1)for(;(m=++n&&m&&m[p]||(t=n=0)||o.pop())&&((h?m.nodeName.toLowerCase()!==r:1!==m.nodeType)||!++t||(s&&(l=m[N]||(m[N]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[P,t]),m!==b)););return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,c){var e,f=w.pseudos[a]||w.setFilters[a.toLowerCase()]||b.error("unsupported pseudo: "+a);return f[N]?f(c):f.length>1?(e=[a,a,"",c],w.setFilters.hasOwnProperty(a.toLowerCase())?d(function(a,b){for(var d,e=f(a,c),g=e.length;g--;)d=aa(a,e[g]),a[d]=!(b[d]=e[g])}):function(a){return f(a,0,e)}):f}},pseudos:{not:d(function(a){var b=[],c=[],e=A(a.replace(ha,"$1"));return e[N]?d(function(a,b,c,d){for(var f,g=e(a,null,d,[]),h=a.length;h--;)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,d,f){return b[0]=a,e(b,null,f,c),b[0]=null,!c.pop()}}),has:d(function(a){return function(c){return b(a,c).length>0}}),contains:d(function(a){return a=a.replace(ua,va),function(b){return(b.textContent||b.innerText||x(b)).indexOf(a)>-1}}),lang:d(function(a){return ma.test(a||"")||b.error("unsupported lang: "+a),a=a.replace(ua,va).toLowerCase(),function(b){var c;do if(c=I?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===H},focus:function(a){return a===G.activeElement&&(!G.hasFocus||G.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){
return!w.pseudos.empty(a)},header:function(a){return pa.test(a.nodeName)},input:function(a){return oa.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:j(function(){return[0]}),last:j(function(a,b){return[b-1]}),eq:j(function(a,b,c){return[0>c?c+b:c]}),even:j(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:j(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:j(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:j(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},w.pseudos.nth=w.pseudos.eq;for(u in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[u]=h(u);for(u in{submit:!0,reset:!0})w.pseudos[u]=i(u);return l.prototype=w.filters=w.pseudos,w.setFilters=new l,z=b.tokenize=function(a,c){var d,e,f,g,h,i,j,k=S[a+" "];if(k)return c?0:k.slice(0);for(h=a,i=[],j=w.preFilter;h;){d&&!(e=ia.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),d=!1,(e=ja.exec(h))&&(d=e.shift(),f.push({value:d,type:e[0].replace(ha," ")}),h=h.slice(d.length));for(g in w.filter)!(e=na[g].exec(h))||j[g]&&!(e=j[g](e))||(d=e.shift(),f.push({value:d,type:g,matches:e}),h=h.slice(d.length));if(!d)break}return c?h.length:h?b.error(a):S(a,i).slice(0)},A=b.compile=function(a,b){var c,d=[],e=[],f=T[a+" "];if(!f){for(b||(b=z(a)),c=b.length;c--;)f=s(b[c]),f[N]?d.push(f):e.push(f);f=T(a,t(e,d)),f.selector=a}return f},B=b.select=function(a,b,c,d){var e,f,g,h,i,j="function"==typeof a&&a,l=!d&&z(a=j.selector||a);if(c=c||[],1===l.length){if(f=l[0]=l[0].slice(0),f.length>2&&"ID"===(g=f[0]).type&&v.getById&&9===b.nodeType&&I&&w.relative[f[1].type]){if(b=(w.find.ID(g.matches[0].replace(ua,va),b)||[])[0],!b)return c;j&&(b=b.parentNode),a=a.slice(f.shift().value.length)}for(e=na.needsContext.test(a)?0:f.length;e--&&(g=f[e],!w.relative[h=g.type]);)if((i=w.find[h])&&(d=i(g.matches[0].replace(ua,va),sa.test(f[0].type)&&k(b.parentNode)||b))){if(f.splice(e,1),a=d.length&&m(f),!a)return $.apply(c,d),c;break}}return(j||A(a,l))(d,b,!I,c,!b||sa.test(a)&&k(b.parentNode)||b),c},v.sortStable=N.split("").sort(U).join("")===N,v.detectDuplicates=!!E,F(),v.sortDetached=e(function(a){return 1&a.compareDocumentPosition(G.createElement("div"))}),e(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||f("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),v.attributes&&e(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||f("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),e(function(a){return null==a.getAttribute("disabled")})||f(ba,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),b}(a);fa.find=ka,fa.expr=ka.selectors,fa.expr[":"]=fa.expr.pseudos,fa.uniqueSort=fa.unique=ka.uniqueSort,fa.text=ka.getText,fa.isXMLDoc=ka.isXML,fa.contains=ka.contains;var la=function(a,b,c){for(var d=[],e=void 0!==c;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(e&&fa(a).is(c))break;d.push(a)}return d},ma=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},na=fa.expr.match.needsContext,oa=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,pa=/^.[^:#\[\.,]*$/;fa.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?fa.find.matchesSelector(d,a)?[d]:[]:fa.find.matches(a,fa.grep(b,function(a){return 1===a.nodeType}))},fa.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(fa(a).filter(function(){for(b=0;c>b;b++)if(fa.contains(e[b],this))return!0}));for(b=0;c>b;b++)fa.find(a,e[b],d);return d=this.pushStack(c>1?fa.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(d(this,a||[],!1))},not:function(a){return this.pushStack(d(this,a||[],!0))},is:function(a){return!!d(this,"string"==typeof a&&na.test(a)?fa(a):a||[],!1).length}});var qa,ra=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,sa=fa.fn.init=function(a,b,c){var d,e;if(!a)return this;if(c=c||qa,"string"==typeof a){if(d="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:ra.exec(a),!d||!d[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(d[1]){if(b=b instanceof fa?b[0]:b,fa.merge(this,fa.parseHTML(d[1],b&&b.nodeType?b.ownerDocument||b:X,!0)),oa.test(d[1])&&fa.isPlainObject(b))for(d in b)fa.isFunction(this[d])?this[d](b[d]):this.attr(d,b[d]);return this}return e=X.getElementById(d[2]),e&&e.parentNode&&(this.length=1,this[0]=e),this.context=X,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):fa.isFunction(a)?void 0!==c.ready?c.ready(a):a(fa):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),fa.makeArray(a,this))};sa.prototype=fa.fn,qa=fa(X);var ta=/^(?:parents|prev(?:Until|All))/,ua={children:!0,contents:!0,next:!0,prev:!0};fa.fn.extend({has:function(a){var b=fa(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(fa.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=na.test(a)||"string"!=typeof a?fa(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&fa.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?fa.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?_.call(fa(a),this[0]):_.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(fa.uniqueSort(fa.merge(this.get(),fa(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),fa.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return la(a,"parentNode")},parentsUntil:function(a,b,c){return la(a,"parentNode",c)},next:function(a){return e(a,"nextSibling")},prev:function(a){return e(a,"previousSibling")},nextAll:function(a){return la(a,"nextSibling")},prevAll:function(a){return la(a,"previousSibling")},nextUntil:function(a,b,c){return la(a,"nextSibling",c)},prevUntil:function(a,b,c){return la(a,"previousSibling",c)},siblings:function(a){return ma((a.parentNode||{}).firstChild,a)},children:function(a){return ma(a.firstChild)},contents:function(a){return a.contentDocument||fa.merge([],a.childNodes)}},function(a,b){fa.fn[a]=function(c,d){var e=fa.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=fa.filter(d,e)),this.length>1&&(ua[a]||fa.uniqueSort(e),ta.test(a)&&e.reverse()),this.pushStack(e)}});var va=/\S+/g;fa.Callbacks=function(a){a="string"==typeof a?f(a):fa.extend({},a);var b,c,d,e,g=[],h=[],i=-1,j=function(){for(e=a.once,d=b=!0;h.length;i=-1)for(c=h.shift();++i<g.length;)g[i].apply(c[0],c[1])===!1&&a.stopOnFalse&&(i=g.length,c=!1);a.memory||(c=!1),b=!1,e&&(g=c?[]:"")},k={add:function(){return g&&(c&&!b&&(i=g.length-1,h.push(c)),function d(b){fa.each(b,function(b,c){fa.isFunction(c)?a.unique&&k.has(c)||g.push(c):c&&c.length&&"string"!==fa.type(c)&&d(c)})}(arguments),c&&!b&&j()),this},remove:function(){return fa.each(arguments,function(a,b){for(var c;(c=fa.inArray(b,g,c))>-1;)g.splice(c,1),i>=c&&i--}),this},has:function(a){return a?fa.inArray(a,g)>-1:g.length>0},empty:function(){return g&&(g=[]),this},disable:function(){return e=h=[],g=c="",this},disabled:function(){return!g},lock:function(){return e=h=[],c||(g=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],h.push(c),b||j()),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},fa.extend({Deferred:function(a){var b=[["resolve","done",fa.Callbacks("once memory"),"resolved"],["reject","fail",fa.Callbacks("once memory"),"rejected"],["notify","progress",fa.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return fa.Deferred(function(c){fa.each(b,function(b,f){var g=fa.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&fa.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?fa.extend(a,d):d}},e={};return d.pipe=d.then,fa.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b,c,d,e=0,f=Y.call(arguments),g=f.length,h=1!==g||a&&fa.isFunction(a.promise)?g:0,i=1===h?a:fa.Deferred(),j=function(a,c,d){return function(e){c[a]=this,d[a]=arguments.length>1?Y.call(arguments):e,d===b?i.notifyWith(c,d):--h||i.resolveWith(c,d)}};if(g>1)for(b=new Array(g),c=new Array(g),d=new Array(g);g>e;e++)f[e]&&fa.isFunction(f[e].promise)?f[e].promise().progress(j(e,c,b)).done(j(e,d,f)).fail(i.reject):--h;return h||i.resolveWith(d,f),i.promise()}});var wa;fa.fn.ready=function(a){return fa.ready.promise().done(a),this},fa.extend({isReady:!1,readyWait:1,holdReady:function(a){a?fa.readyWait++:fa.ready(!0)},ready:function(a){(a===!0?--fa.readyWait:fa.isReady)||(fa.isReady=!0,a!==!0&&--fa.readyWait>0||(wa.resolveWith(X,[fa]),fa.fn.triggerHandler&&(fa(X).triggerHandler("ready"),fa(X).off("ready"))))}}),fa.ready.promise=function(b){return wa||(wa=fa.Deferred(),"complete"===X.readyState||"loading"!==X.readyState&&!X.documentElement.doScroll?a.setTimeout(fa.ready):(X.addEventListener("DOMContentLoaded",g),a.addEventListener("load",g))),wa.promise(b)},fa.ready.promise();var xa=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===fa.type(c)){e=!0;for(h in c)xa(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,fa.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(fa(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},ya=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};h.uid=1,h.prototype={register:function(a,b){var c=b||{};return a.nodeType?a[this.expando]=c:Object.defineProperty(a,this.expando,{value:c,writable:!0,configurable:!0}),a[this.expando]},cache:function(a){if(!ya(a))return{};var b=a[this.expando];return b||(b={},ya(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[b]=c;else for(d in b)e[d]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,fa.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=a[this.expando];if(void 0!==f){if(void 0===b)this.register(a);else{fa.isArray(b)?d=b.concat(b.map(fa.camelCase)):(e=fa.camelCase(b),b in f?d=[b,e]:(d=e,d=d in f?[d]:d.match(va)||[])),c=d.length;for(;c--;)delete f[d[c]]}(void 0===b||fa.isEmptyObject(f))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!fa.isEmptyObject(b)}};var za=new h,Aa=new h,Ba=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ca=/[A-Z]/g;fa.extend({hasData:function(a){return Aa.hasData(a)||za.hasData(a)},data:function(a,b,c){return Aa.access(a,b,c)},removeData:function(a,b){Aa.remove(a,b)},_data:function(a,b,c){return za.access(a,b,c)},_removeData:function(a,b){za.remove(a,b)}}),fa.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=Aa.get(f),1===f.nodeType&&!za.get(f,"hasDataAttrs"))){for(c=g.length;c--;)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=fa.camelCase(d.slice(5)),i(f,d,e[d])));za.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){Aa.set(this,a)}):xa(this,function(b){var c,d;if(f&&void 0===b){if(c=Aa.get(f,a)||Aa.get(f,a.replace(Ca,"-$&").toLowerCase()),void 0!==c)return c;if(d=fa.camelCase(a),c=Aa.get(f,d),void 0!==c)return c;if(c=i(f,d,void 0),void 0!==c)return c}else d=fa.camelCase(a),this.each(function(){var c=Aa.get(this,d);Aa.set(this,d,b),a.indexOf("-")>-1&&void 0!==c&&Aa.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){Aa.remove(this,a)})}}),fa.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=za.get(a,b),c&&(!d||fa.isArray(c)?d=za.access(a,b,fa.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=fa.queue(a,b),d=c.length,e=c.shift(),f=fa._queueHooks(a,b),g=function(){fa.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return za.get(a,c)||za.access(a,c,{empty:fa.Callbacks("once memory").add(function(){za.remove(a,[b+"queue",c])})})}}),fa.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?fa.queue(this[0],a):void 0===b?this:this.each(function(){var c=fa.queue(this,a,b);fa._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&fa.dequeue(this,a)})},dequeue:function(a){return this.each(function(){fa.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=fa.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};for("string"!=typeof a&&(b=a,a=void 0),a=a||"fx";g--;)c=za.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Da=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ea=new RegExp("^(?:([+-])=|)("+Da+")([a-z%]*)$","i"),Fa=["Top","Right","Bottom","Left"],Ga=function(a,b){return a=b||a,"none"===fa.css(a,"display")||!fa.contains(a.ownerDocument,a)},Ha=/^(?:checkbox|radio)$/i,Ia=/<([\w:-]+)/,Ja=/^$|\/(?:java|ecma)script/i,Ka={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,"",""]};Ka.optgroup=Ka.option,Ka.tbody=Ka.tfoot=Ka.colgroup=Ka.caption=Ka.thead,Ka.th=Ka.td;var La=/<|&#?\w+;/;!function(){var a=X.createDocumentFragment(),b=a.appendChild(X.createElement("div")),c=X.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),da.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",da.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var Ma=/^key/,Na=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Oa=/^([^.]*)(?:\.(.+)|)/;fa.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=za.get(a);if(q)for(c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=fa.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof fa&&fa.event.triggered!==b.type?fa.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(va)||[""],j=b.length;j--;)h=Oa.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=fa.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=fa.event.special[n]||{},k=fa.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&fa.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),fa.event.global[n]=!0)},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=za.hasData(a)&&za.get(a);if(q&&(i=q.events)){for(b=(b||"").match(va)||[""],j=b.length;j--;)if(h=Oa.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){for(l=fa.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;f--;)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||fa.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)fa.event.remove(a,n+b[j],c,d,!0);fa.isEmptyObject(i)&&za.remove(a,"handle events")}},dispatch:function(a){a=fa.event.fix(a);var b,c,d,e,f,g=[],h=Y.call(arguments),i=(za.get(this,"events")||{})[a.type]||[],j=fa.event.special[a.type]||{};if(h[0]=a,a.delegateTarget=this,!j.preDispatch||j.preDispatch.call(this,a)!==!1){for(g=fa.event.handlers.call(this,a,i),b=0;(e=g[b++])&&!a.isPropagationStopped();)for(a.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(f.namespace)||(a.handleObj=f,a.data=f.data,d=((fa.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()));return j.postDispatch&&j.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!==this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?fa(e,this).index(i)>-1:fa.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||X,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[fa.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];for(g||(this.fixHooks[e]=g=Na.test(e)?this.mouseHooks:Ma.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new fa.Event(f),b=d.length;b--;)c=d[b],a[c]=f[c];return a.target||(a.target=X),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==p()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===p()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&fa.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return fa.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},fa.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},fa.Event=function(a,b){return this instanceof fa.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?n:o):this.type=a,b&&fa.extend(this,b),this.timeStamp=a&&a.timeStamp||fa.now(),void(this[fa.expando]=!0)):new fa.Event(a,b)},fa.Event.prototype={constructor:fa.Event,isDefaultPrevented:o,isPropagationStopped:o,isImmediatePropagationStopped:o,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=n,a&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=n,a&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=n,a&&a.stopImmediatePropagation(),this.stopPropagation()}},fa.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){fa.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||fa.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),fa.fn.extend({on:function(a,b,c,d){return q(this,a,b,c,d)},one:function(a,b,c,d){return q(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,fa(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=o),this.each(function(){fa.event.remove(this,a,c,b)})}});var Pa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Qa=/<script|<style|<link/i,Ra=/checked\s*(?:[^=]|=\s*.checked.)/i,Sa=/^true\/(.*)/,Ta=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;fa.extend({htmlPrefilter:function(a){return a.replace(Pa,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=fa.contains(a.ownerDocument,a);if(!(da.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||fa.isXMLDoc(a)))for(g=k(h),f=k(a),d=0,e=f.length;e>d;d++)v(f[d],g[d]);if(b)if(c)for(f=f||k(a),g=g||k(h),d=0,e=f.length;e>d;d++)u(f[d],g[d]);else u(a,h);return g=k(h,"script"),g.length>0&&l(g,!i&&k(a,"script")),h},cleanData:function(a){for(var b,c,d,e=fa.event.special,f=0;void 0!==(c=a[f]);f++)if(ya(c)){if(b=c[za.expando]){if(b.events)for(d in b.events)e[d]?fa.event.remove(c,d):fa.removeEvent(c,d,b.handle);c[za.expando]=void 0}c[Aa.expando]&&(c[Aa.expando]=void 0)}}}),fa.fn.extend({domManip:w,detach:function(a){return x(this,a,!0)},remove:function(a){return x(this,a)},text:function(a){return xa(this,function(a){return void 0===a?fa.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return w(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=r(this,a);b.appendChild(a)}})},prepend:function(){return w(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=r(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return w(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return w(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(fa.cleanData(k(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return fa.clone(this,a,b)})},html:function(a){return xa(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!Qa.test(a)&&!Ka[(Ia.exec(a)||["",""])[1].toLowerCase()]){a=fa.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(fa.cleanData(k(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return w(this,arguments,function(b){var c=this.parentNode;fa.inArray(this,a)<0&&(fa.cleanData(k(this)),c&&c.replaceChild(b,this))},a)}}),fa.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){fa.fn[a]=function(a){for(var c,d=[],e=fa(a),f=e.length-1,g=0;f>=g;g++)c=g===f?this:this.clone(!0),fa(e[g])[b](c),$.apply(d,c.get());return this.pushStack(d)}});var Ua,Va={HTML:"block",BODY:"block"},Wa=/^margin/,Xa=new RegExp("^("+Da+")(?!px)[a-z%]+$","i"),Ya=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Za=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},$a=X.documentElement;!function(){function b(){h.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",h.innerHTML="",$a.appendChild(g);var b=a.getComputedStyle(h);c="1%"!==b.top,f="2px"===b.marginLeft,d="4px"===b.width,h.style.marginRight="50%",e="4px"===b.marginRight,$a.removeChild(g)}var c,d,e,f,g=X.createElement("div"),h=X.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",da.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",g.appendChild(h),fa.extend(da,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return null==d&&b(),d},pixelMarginRight:function(){return null==d&&b(),e},reliableMarginLeft:function(){return null==d&&b(),f},reliableMarginRight:function(){var b,c=h.appendChild(X.createElement("div"));return c.style.cssText=h.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",h.style.width="1px",$a.appendChild(g),b=!parseFloat(a.getComputedStyle(c).marginRight),$a.removeChild(g),h.removeChild(c),b}}))}();var _a=/^(none|table(?!-c[ea]).+)/,ab={position:"absolute",visibility:"hidden",display:"block"},bb={letterSpacing:"0",fontWeight:"400"},cb=["Webkit","O","Moz","ms"],db=X.createElement("div").style;fa.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=A(a,"opacity");return""===c?"1":c}}}},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(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=fa.camelCase(b),i=a.style;return b=fa.cssProps[h]||(fa.cssProps[h]=C(h)||h),g=fa.cssHooks[b]||fa.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Ea.exec(c))&&e[1]&&(c=j(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(fa.cssNumber[h]?"":"px")),da.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=fa.camelCase(b);return b=fa.cssProps[h]||(fa.cssProps[h]=C(h)||h),g=fa.cssHooks[b]||fa.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=A(a,b,d)),"normal"===e&&b in bb&&(e=bb[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),fa.each(["height","width"],function(a,b){fa.cssHooks[b]={get:function(a,c,d){return c?_a.test(fa.css(a,"display"))&&0===a.offsetWidth?Za(a,ab,function(){return F(a,b,d)}):F(a,b,d):void 0},set:function(a,c,d){var e,f=d&&Ya(a),g=d&&E(a,b,d,"border-box"===fa.css(a,"boxSizing",!1,f),f);return g&&(e=Ea.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=fa.css(a,b)),D(a,c,g)}}}),fa.cssHooks.marginLeft=B(da.reliableMarginLeft,function(a,b){return b?(parseFloat(A(a,"marginLeft"))||a.getBoundingClientRect().left-Za(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px":void 0}),fa.cssHooks.marginRight=B(da.reliableMarginRight,function(a,b){return b?Za(a,{display:"inline-block"},A,[a,"marginRight"]):void 0}),fa.each({margin:"",padding:"",border:"Width"},function(a,b){fa.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+Fa[d]+b]=f[d]||f[d-2]||f[0];return e}},Wa.test(a)||(fa.cssHooks[a+b].set=D)}),fa.fn.extend({css:function(a,b){return xa(this,function(a,b,c){var d,e,f={},g=0;if(fa.isArray(b)){for(d=Ya(a),e=b.length;e>g;g++)f[b[g]]=fa.css(a,b[g],!1,d);return f}return void 0!==c?fa.style(a,b,c):fa.css(a,b)},a,b,arguments.length>1)},show:function(){return G(this,!0)},hide:function(){return G(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){Ga(this)?fa(this).show():fa(this).hide()})}}),fa.Tween=H,H.prototype={constructor:H,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||fa.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(fa.cssNumber[c]?"":"px")},cur:function(){var a=H.propHooks[this.prop];return a&&a.get?a.get(this):H.propHooks._default.get(this)},run:function(a){var b,c=H.propHooks[this.prop];return this.options.duration?this.pos=b=fa.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=fa.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){fa.fx.step[a.prop]?fa.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[fa.cssProps[a.prop]]&&!fa.cssHooks[a.prop]?a.elem[a.prop]=a.now:fa.style(a.elem,a.prop,a.now+a.unit)}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},fa.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},fa.fx=H.prototype.init,fa.fx.step={};var eb,fb,gb=/^(?:toggle|show|hide)$/,hb=/queueHooks$/;fa.Animation=fa.extend(N,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return j(c.elem,a,Ea.exec(b),c),c}]},tweener:function(a,b){fa.isFunction(a)?(b=a,a=["*"]):a=a.match(va);for(var c,d=0,e=a.length;e>d;d++)c=a[d],N.tweeners[c]=N.tweeners[c]||[],N.tweeners[c].unshift(b)},prefilters:[L],prefilter:function(a,b){b?N.prefilters.unshift(a):N.prefilters.push(a)}}),fa.speed=function(a,b,c){var d=a&&"object"==typeof a?fa.extend({},a):{complete:c||!c&&b||fa.isFunction(a)&&a,duration:a,easing:c&&b||b&&!fa.isFunction(b)&&b};return d.duration=fa.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in fa.fx.speeds?fa.fx.speeds[d.duration]:fa.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){fa.isFunction(d.old)&&d.old.call(this),d.queue&&fa.dequeue(this,d.queue)},d},fa.fn.extend({fadeTo:function(a,b,c,d){return this.filter(Ga).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=fa.isEmptyObject(a),f=fa.speed(b,c,d),g=function(){var b=N(this,fa.extend({},a),f);(e||za.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=fa.timers,g=za.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&hb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||fa.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=za.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=fa.timers,g=d?d.length:0;for(c.finish=!0,fa.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),fa.each(["toggle","show","hide"],function(a,b){
var c=fa.fn[b];fa.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(J(b,!0),a,d,e)}}),fa.each({slideDown:J("show"),slideUp:J("hide"),slideToggle:J("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){fa.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),fa.timers=[],fa.fx.tick=function(){var a,b=0,c=fa.timers;for(eb=fa.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||fa.fx.stop(),eb=void 0},fa.fx.timer=function(a){fa.timers.push(a),a()?fa.fx.start():fa.timers.pop()},fa.fx.interval=13,fa.fx.start=function(){fb||(fb=a.setInterval(fa.fx.tick,fa.fx.interval))},fa.fx.stop=function(){a.clearInterval(fb),fb=null},fa.fx.speeds={slow:600,fast:200,_default:400},fa.fn.delay=function(b,c){return b=fa.fx?fa.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=X.createElement("input"),b=X.createElement("select"),c=b.appendChild(X.createElement("option"));a.type="checkbox",da.checkOn=""!==a.value,da.optSelected=c.selected,b.disabled=!0,da.optDisabled=!c.disabled,a=X.createElement("input"),a.value="t",a.type="radio",da.radioValue="t"===a.value}();var ib,jb=fa.expr.attrHandle;fa.fn.extend({attr:function(a,b){return xa(this,fa.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){fa.removeAttr(this,a)})}}),fa.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?fa.prop(a,b,c):(1===f&&fa.isXMLDoc(a)||(b=b.toLowerCase(),e=fa.attrHooks[b]||(fa.expr.match.bool.test(b)?ib:void 0)),void 0!==c?null===c?void fa.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=fa.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!da.radioValue&&"radio"===b&&fa.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(va);if(f&&1===a.nodeType)for(;c=f[e++];)d=fa.propFix[c]||c,fa.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)}}),ib={set:function(a,b,c){return b===!1?fa.removeAttr(a,c):a.setAttribute(c,c),c}},fa.each(fa.expr.match.bool.source.match(/\w+/g),function(a,b){var c=jb[b]||fa.find.attr;jb[b]=function(a,b,d){var e,f;return d||(f=jb[b],jb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,jb[b]=f),e}});var kb=/^(?:input|select|textarea|button)$/i,lb=/^(?:a|area)$/i;fa.fn.extend({prop:function(a,b){return xa(this,fa.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[fa.propFix[a]||a]})}}),fa.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&fa.isXMLDoc(a)||(b=fa.propFix[b]||b,e=fa.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=fa.find.attr(a,"tabindex");return b?parseInt(b,10):kb.test(a.nodeName)||lb.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),da.optSelected||(fa.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),fa.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){fa.propFix[this.toLowerCase()]=this});var mb=/[\t\r\n\f]/g;fa.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(fa.isFunction(a))return this.each(function(b){fa(this).addClass(a.call(this,b,O(this)))});if("string"==typeof a&&a)for(b=a.match(va)||[];c=this[i++];)if(e=O(c),d=1===c.nodeType&&(" "+e+" ").replace(mb," ")){for(g=0;f=b[g++];)d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=fa.trim(d),e!==h&&c.setAttribute("class",h)}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(fa.isFunction(a))return this.each(function(b){fa(this).removeClass(a.call(this,b,O(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a)for(b=a.match(va)||[];c=this[i++];)if(e=O(c),d=1===c.nodeType&&(" "+e+" ").replace(mb," ")){for(g=0;f=b[g++];)for(;d.indexOf(" "+f+" ")>-1;)d=d.replace(" "+f+" "," ");h=fa.trim(d),e!==h&&c.setAttribute("class",h)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):fa.isFunction(a)?this.each(function(c){fa(this).toggleClass(a.call(this,c,O(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c)for(d=0,e=fa(this),f=a.match(va)||[];b=f[d++];)e.hasClass(b)?e.removeClass(b):e.addClass(b);else void 0!==a&&"boolean"!==c||(b=O(this),b&&za.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":za.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;for(b=" "+a+" ";c=this[d++];)if(1===c.nodeType&&(" "+O(c)+" ").replace(mb," ").indexOf(b)>-1)return!0;return!1}});var nb=/\r/g,ob=/[\x20\t\r\n\f]+/g;fa.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=fa.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,fa(this).val()):a,null==e?e="":"number"==typeof e?e+="":fa.isArray(e)&&(e=fa.map(e,function(a){return null==a?"":a+""})),b=fa.valHooks[this.type]||fa.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=fa.valHooks[e.type]||fa.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(nb,""):null==c?"":c)}}}),fa.extend({valHooks:{option:{get:function(a){var b=fa.find.attr(a,"value");return null!=b?b:fa.trim(fa.text(a)).replace(ob," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(da.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!fa.nodeName(c.parentNode,"optgroup"))){if(b=fa(c).val(),f)return b;g.push(b)}return g},set:function(a,b){for(var c,d,e=a.options,f=fa.makeArray(b),g=e.length;g--;)d=e[g],(d.selected=fa.inArray(fa.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),fa.each(["radio","checkbox"],function(){fa.valHooks[this]={set:function(a,b){return fa.isArray(b)?a.checked=fa.inArray(fa(a).val(),b)>-1:void 0}},da.checkOn||(fa.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var pb=/^(?:focusinfocus|focusoutblur)$/;fa.extend(fa.event,{trigger:function(b,c,d,e){var f,g,h,i,j,k,l,m=[d||X],n=ca.call(b,"type")?b.type:b,o=ca.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||X,3!==d.nodeType&&8!==d.nodeType&&!pb.test(n+fa.event.triggered)&&(n.indexOf(".")>-1&&(o=n.split("."),n=o.shift(),o.sort()),j=n.indexOf(":")<0&&"on"+n,b=b[fa.expando]?b:new fa.Event(n,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=o.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:fa.makeArray(c,[b]),l=fa.event.special[n]||{},e||!l.trigger||l.trigger.apply(d,c)!==!1)){if(!e&&!l.noBubble&&!fa.isWindow(d)){for(i=l.delegateType||n,pb.test(i+n)||(g=g.parentNode);g;g=g.parentNode)m.push(g),h=g;h===(d.ownerDocument||X)&&m.push(h.defaultView||h.parentWindow||a)}for(f=0;(g=m[f++])&&!b.isPropagationStopped();)b.type=f>1?i:l.bindType||n,k=(za.get(g,"events")||{})[b.type]&&za.get(g,"handle"),k&&k.apply(g,c),k=j&&g[j],k&&k.apply&&ya(g)&&(b.result=k.apply(g,c),b.result===!1&&b.preventDefault());return b.type=n,e||b.isDefaultPrevented()||l._default&&l._default.apply(m.pop(),c)!==!1||!ya(d)||j&&fa.isFunction(d[n])&&!fa.isWindow(d)&&(h=d[j],h&&(d[j]=null),fa.event.triggered=n,d[n](),fa.event.triggered=void 0,h&&(d[j]=h)),b.result}},simulate:function(a,b,c){var d=fa.extend(new fa.Event,c,{type:a,isSimulated:!0});fa.event.trigger(d,null,b),d.isDefaultPrevented()&&c.preventDefault()}}),fa.fn.extend({trigger:function(a,b){return this.each(function(){fa.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?fa.event.trigger(a,b,c,!0):void 0}}),fa.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){fa.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),fa.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),da.focusin="onfocusin"in a,da.focusin||fa.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){fa.event.simulate(b,a.target,fa.event.fix(a))};fa.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=za.access(d,b);e||d.addEventListener(a,c,!0),za.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=za.access(d,b)-1;e?za.access(d,b,e):(d.removeEventListener(a,c,!0),za.remove(d,b))}}});var qb=a.location,rb=fa.now(),sb=/\?/;fa.parseJSON=function(a){return JSON.parse(a+"")},fa.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||fa.error("Invalid XML: "+b),c};var tb=/#.*$/,ub=/([?&])_=[^&]*/,vb=/^(.*?):[ \t]*([^\r\n]*)$/gm,wb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,xb=/^(?:GET|HEAD)$/,yb=/^\/\//,zb={},Ab={},Bb="*/".concat("*"),Cb=X.createElement("a");Cb.href=qb.href,fa.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:qb.href,type:"GET",isLocal:wb.test(qb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bb,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":fa.parseJSON,"text xml":fa.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?R(R(a,fa.ajaxSettings),b):R(fa.ajaxSettings,a)},ajaxPrefilter:P(zb),ajaxTransport:P(Ab),ajax:function(b,c){function d(b,c,d,h){var j,l,s,t,v,x=c;2!==u&&(u=2,i&&a.clearTimeout(i),e=void 0,g=h||"",w.readyState=b>0?4:0,j=b>=200&&300>b||304===b,d&&(t=S(m,w,d)),t=T(m,t,w,j),j?(m.ifModified&&(v=w.getResponseHeader("Last-Modified"),v&&(fa.lastModified[f]=v),v=w.getResponseHeader("etag"),v&&(fa.etag[f]=v)),204===b||"HEAD"===m.type?x="nocontent":304===b?x="notmodified":(x=t.state,l=t.data,s=t.error,j=!s)):(s=x,!b&&x||(x="error",0>b&&(b=0))),w.status=b,w.statusText=(c||x)+"",j?p.resolveWith(n,[l,x,w]):p.rejectWith(n,[w,x,s]),w.statusCode(r),r=void 0,k&&o.trigger(j?"ajaxSuccess":"ajaxError",[w,m,j?l:s]),q.fireWith(n,[w,x]),k&&(o.trigger("ajaxComplete",[w,m]),--fa.active||fa.event.trigger("ajaxStop")))}"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m=fa.ajaxSetup({},c),n=m.context||m,o=m.context&&(n.nodeType||n.jquery)?fa(n):fa.event,p=fa.Deferred(),q=fa.Callbacks("once memory"),r=m.statusCode||{},s={},t={},u=0,v="canceled",w={readyState:0,getResponseHeader:function(a){var b;if(2===u){if(!h)for(h={};b=vb.exec(g);)h[b[1].toLowerCase()]=b[2];b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===u?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return u||(a=t[c]=t[c]||a,s[a]=b),this},overrideMimeType:function(a){return u||(m.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>u)for(b in a)r[b]=[r[b],a[b]];else w.always(a[w.status]);return this},abort:function(a){var b=a||v;return e&&e.abort(b),d(0,b),this}};if(p.promise(w).complete=q.add,w.success=w.done,w.error=w.fail,m.url=((b||m.url||qb.href)+"").replace(tb,"").replace(yb,qb.protocol+"//"),m.type=c.method||c.type||m.method||m.type,m.dataTypes=fa.trim(m.dataType||"*").toLowerCase().match(va)||[""],null==m.crossDomain){j=X.createElement("a");try{j.href=m.url,j.href=j.href,m.crossDomain=Cb.protocol+"//"+Cb.host!=j.protocol+"//"+j.host}catch(x){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=fa.param(m.data,m.traditional)),Q(zb,m,c,w),2===u)return w;k=fa.event&&m.global,k&&0===fa.active++&&fa.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!xb.test(m.type),f=m.url,m.hasContent||(m.data&&(f=m.url+=(sb.test(f)?"&":"?")+m.data,delete m.data),m.cache===!1&&(m.url=ub.test(f)?f.replace(ub,"$1_="+rb++):f+(sb.test(f)?"&":"?")+"_="+rb++)),m.ifModified&&(fa.lastModified[f]&&w.setRequestHeader("If-Modified-Since",fa.lastModified[f]),fa.etag[f]&&w.setRequestHeader("If-None-Match",fa.etag[f])),(m.data&&m.hasContent&&m.contentType!==!1||c.contentType)&&w.setRequestHeader("Content-Type",m.contentType),w.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Bb+"; q=0.01":""):m.accepts["*"]);for(l in m.headers)w.setRequestHeader(l,m.headers[l]);if(m.beforeSend&&(m.beforeSend.call(n,w,m)===!1||2===u))return w.abort();v="abort";for(l in{success:1,error:1,complete:1})w[l](m[l]);if(e=Q(Ab,m,c,w)){if(w.readyState=1,k&&o.trigger("ajaxSend",[w,m]),2===u)return w;m.async&&m.timeout>0&&(i=a.setTimeout(function(){w.abort("timeout")},m.timeout));try{u=1,e.send(s,d)}catch(x){if(!(2>u))throw x;d(-1,x)}}else d(-1,"No Transport");return w},getJSON:function(a,b,c){return fa.get(a,b,c,"json")},getScript:function(a,b){return fa.get(a,void 0,b,"script")}}),fa.each(["get","post"],function(a,b){fa[b]=function(a,c,d,e){return fa.isFunction(c)&&(e=e||d,d=c,c=void 0),fa.ajax(fa.extend({url:a,type:b,dataType:e,data:c,success:d},fa.isPlainObject(a)&&a))}}),fa._evalUrl=function(a){return fa.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},fa.fn.extend({wrapAll:function(a){var b;return fa.isFunction(a)?this.each(function(b){fa(this).wrapAll(a.call(this,b))}):(this[0]&&(b=fa(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstElementChild;)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return fa.isFunction(a)?this.each(function(b){fa(this).wrapInner(a.call(this,b))}):this.each(function(){var b=fa(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=fa.isFunction(a);return this.each(function(c){fa(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){fa.nodeName(this,"body")||fa(this).replaceWith(this.childNodes)}).end()}}),fa.expr.filters.hidden=function(a){return!fa.expr.filters.visible(a)},fa.expr.filters.visible=function(a){return a.offsetWidth>0||a.offsetHeight>0||a.getClientRects().length>0};var Db=/%20/g,Eb=/\[\]$/,Fb=/\r?\n/g,Gb=/^(?:submit|button|image|reset|file)$/i,Hb=/^(?:input|select|textarea|keygen)/i;fa.param=function(a,b){var c,d=[],e=function(a,b){b=fa.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=fa.ajaxSettings&&fa.ajaxSettings.traditional),fa.isArray(a)||a.jquery&&!fa.isPlainObject(a))fa.each(a,function(){e(this.name,this.value)});else for(c in a)U(c,a[c],b,e);return d.join("&").replace(Db,"+")},fa.fn.extend({serialize:function(){return fa.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=fa.prop(this,"elements");return a?fa.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!fa(this).is(":disabled")&&Hb.test(this.nodeName)&&!Gb.test(a)&&(this.checked||!Ha.test(a))}).map(function(a,b){var c=fa(this).val();return null==c?null:fa.isArray(c)?fa.map(c,function(a){return{name:b.name,value:a.replace(Fb,"\r\n")}}):{name:b.name,value:c.replace(Fb,"\r\n")}}).get()}}),fa.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Ib={0:200,1223:204},Jb=fa.ajaxSettings.xhr();da.cors=!!Jb&&"withCredentials"in Jb,da.ajax=Jb=!!Jb,fa.ajaxTransport(function(b){var c,d;return da.cors||Jb&&!b.crossDomain?{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Ib[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}:void 0}),fa.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return fa.globalEval(a),a}}}),fa.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),fa.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=fa("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),X.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Kb=[],Lb=/(=)\?(?=&|$)|\?\?/;fa.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Kb.pop()||fa.expando+"_"+rb++;return this[a]=!0,a}}),fa.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Lb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Lb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=fa.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Lb,"$1"+e):b.jsonp!==!1&&(b.url+=(sb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||fa.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?fa(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Kb.push(e)),g&&fa.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),fa.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||X;var d=oa.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=m([a],b,e),e&&e.length&&fa(e).remove(),fa.merge([],d.childNodes))};var Mb=fa.fn.load;fa.fn.load=function(a,b,c){if("string"!=typeof a&&Mb)return Mb.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=fa.trim(a.slice(h)),a=a.slice(0,h)),fa.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&fa.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?fa("<div>").append(fa.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},fa.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){fa.fn[b]=function(a){return this.on(b,a)}}),fa.expr.filters.animated=function(a){return fa.grep(fa.timers,function(b){return a===b.elem}).length},fa.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=fa.css(a,"position"),l=fa(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=fa.css(a,"top"),i=fa.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),fa.isFunction(b)&&(b=b.call(a,c,fa.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},fa.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){fa.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,fa.contains(b,d)?(e=d.getBoundingClientRect(),c=V(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===fa.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),fa.nodeName(a[0],"html")||(d=a.offset()),d.top+=fa.css(a[0],"borderTopWidth",!0),d.left+=fa.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-fa.css(c,"marginTop",!0),left:b.left-d.left-fa.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&"static"===fa.css(a,"position");)a=a.offsetParent;return a||$a})}}),fa.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;fa.fn[a]=function(d){return xa(this,function(a,d,e){var f=V(a);return void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),fa.each(["top","left"],function(a,b){fa.cssHooks[b]=B(da.pixelPosition,function(a,c){return c?(c=A(a,b),Xa.test(c)?fa(a).position()[b]+"px":c):void 0})}),fa.each({Height:"height",Width:"width"},function(a,b){fa.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){fa.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return xa(this,function(b,c,d){var e;return fa.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?fa.css(b,c,g):fa.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),fa.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)},size:function(){return this.length}}),fa.fn.andSelf=fa.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return fa});var Nb=a.jQuery,Ob=a.$;return fa.noConflict=function(b){return a.$===fa&&(a.$=Ob),b&&a.jQuery===fa&&(a.jQuery=Nb),fa},b||(a.jQuery=a.$=fa),fa})},{}],2:[function(a,b,c){function d(a){var b=[],c=[];for(var d in a)b.push(d),c.push(a[d]);return{keys:b,values:c}}function e(a){var b,c,d={},e=[];for(b=0;b<a.length;b=b+1|0)c=a[b],c in d||(d[c]=!0,e.push(c));return e}function f(a){var b,c,d={},e={};for(b=0;b<a.length;b=b+1|0)c=a[b],c in d?delete e[c]:(d[c]=!0,e[c]=c);var f=[];for(b in e)f.push(e[b]);return f}function g(a){var b,c,d={},f=[],g=[];for(b=0;b<a.length;b=b+1|0)c=a[b],c in d?g.push(c):(d[c]=!0,f.push(c));return e(g)}function h(a,b){var c=e(a),d=e(b),f=c.concat(d);return g(f)}function j(a,b){return f(e(b).concat(h(b,a)))}function k(){String.prototype.codePointAt||!function(){"use strict";var a=function(a){if(null==this)throw TypeError();var b=String(this),c=b.length,d=a?Number(a):0;if(d!=d&&(d=0),!(0>d||d>=c)){var e,f=b.charCodeAt(d);return f>=55296&&56319>=f&&c>d+1&&(e=b.charCodeAt(d+1),e>=56320&&57343>=e)?1024*(f-55296)+e-56320+65536:f}};Object.defineProperty?Object.defineProperty(String.prototype,"codePointAt",{value:a,configurable:!0,writable:!0}):String.prototype.codePointAt=a}()}function l(a){var b=a.match(/([\uD800-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]([\u180B-\u180D]|[\uFE00-\uFE0F]|(\uDB40[\uD000-\uDFFF]))?)|([^\uD800-\uDBFF\uDC00-\uDFFF]([\u180B-\u180D]|[\uFE00-\uFE0F]|(\uDB40[\uD000-\uDFFF]))?)/g);return null===b?[]:b}function m(a){var b=/([\uD800-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]([\u180B-\u180D]|[\uFE00-\uFE0F]|(\uDB40[\uD000-\uDFFF])))|([^\uD800-\uDBFF\uDC00-\uDFFF]([\u180B-\u180D]|[\uFE00-\uFE0F]|(\uDB40[\uD000-\uDFFF])))/.exec(a);return null===b||0===b.length?[]:"undefined"!=typeof b[1]&&"undefined"!=typeof b[2]?{base:b[1].codePointAt(0),vs:b[2].codePointAt(0)}:{base:b[4].codePointAt(0),vs:b[5].codePointAt(0)}}function n(a,b,c,d){switch(b=b.replace(/["']/g,"\\$&"),c){case"base64":var e="@font-face {font-family:'"+b+"';src: url(data:application/octet-stream;base64,"+a+");}";break;case"URL":default:var e="@font-face {font-family:'"+b+"';src: url("+a+");}"}var f=null;return-1!=window.navigator.userAgent.toLowerCase().indexOf("chrome")?(f=q("<style>")[0],q(document.head).append(f),f.textContent=e,null!==d&&void 0!==d&&setTimeout(function(){document.head.removeChild(d)},400)):(null!==d&&void 0!==d?f=d:(f=q("<style>")[0],q(document.head).append(f)),f.textContent=e),f}function o(a,b){function c(){}c.prototype=b.prototype,a.superClass_=b.prototype,a.prototype=new c,a.prototype.constructor=a}function p(a){D(this)}var q=a("jquery"),r="https://font.realtype.jp",s="https://font.realtype.jp",t={src:"",user:"",manual:!1,emulation:!1,layout:!1,input:!1,vertical:!1,nofliker:!1,overlightCSS:{}};if("undefined"!=typeof window.MutationObserver){"undefined"==typeof window.RT&&(window.RT={}),window.RT.start=function(a,b){},window.RT.observe=function(){},window.RT.release=function(){},window.RT.list=function(){},window.RT.version="1.0.46",window.RT.support="support@realtype.co.jp",window.RT.options={},dummyNum=0,k(),function(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);base64_encode=function(b){var c,d,e,f,g,h;for(e=b.length,d=0,c="";e>d;){if(f=255&b[d],d=d+1|0,d==e){c+=a.charAt(f>>2),c+=a.charAt((3&f)<<4),c+="==";break}if(g=b[d],d=d+1|0,d==e){c+=a.charAt(f>>2),c+=a.charAt((3&f)<<4|(240&g)>>4),c+=a.charAt((15&g)<<2),c+="=";break}h=b[d],d=d+1|0,c+=a.charAt(f>>2),c+=a.charAt((3&f)<<4|(240&g)>>4),c+=a.charAt((15&g)<<2|(192&h)>>6),c+=a.charAt(63&h)}return c},base64_decode=function(a){var c,d,e,f,g,h,i;for(h=a.length,g=0,i=[];h>g;){do c=b[255&a.charCodeAt(g)],g=g+1|0;while(h>g&&-1==c);if(-1==c)break;do d=b[255&a.charCodeAt(g)],g=g+1|0;while(h>g&&-1==d);if(-1==d)break;i.push(c<<2|(48&d)>>4);do{if(e=255&a.charCodeAt(g),g=g+1|0,61==e)return i;e=b[e]}while(h>g&&-1==e);if(-1==e)break;i.push((15&d)<<4|(60&e)>>2);do{if(f=255&a.charCodeAt(g),g=g+1|0,61==f)return i;f=b[f]}while(h>g&&-1==f);if(-1==f)break;i.push((3&e)<<6|f)}return i}}();var u=(function(){var a=null,b=window.indexedDB||window.mozIndexedDB||window.msIndexedDB;return function(c){if(null!=a){var d=a.transaction(["mystore"],"readwrite"),e=d.objectStore("mystore");c(e)}else if(null!=b){var f=b.open("mydb",1);f.onerror=function(a){},f.onupgradeneeded=function(b){a=b.target.result;var c=a.createObjectStore("mystore",{keyPath:"mykey"});c.createIndex("myIndex","mykey")},f.onsuccess=function(b){a=b.target.result;var d=a.transaction(["mystore"],"readwrite"),e=d.objectStore("mystore");c(e)}}}}(),function(){function a(){return{top:d.pageYOffset||e.scrollTop||c.body.scrollTop,left:d.pageXOffset||e.scrollLeft||c.body.scrollLeft}}function b(){var a,b,f={height:d.innerHeight,width:d.innerWidth};return f.height||(a=c.compatMode,!a&&q.support.boxModel||(b="CSS1Compat"===a?e:c.body,f={height:b.clientHeight,width:b.clientWidth})),f}var c=document,d=window,e=c.documentElement;return function(c){if(viewportSize=b(),viewportOffset=a(),!q.contains(e,c))return!1;var d,f,g,h=q(c),i={height:h.height(),width:h.width()},j=h.offset();return viewportOffset&&viewportSize&&j.top+i.height>viewportOffset.top&&j.top<viewportOffset.top+viewportSize.height&&j.left+i.width>viewportOffset.left&&j.left<viewportOffset.left+viewportSize.width?(d=viewportOffset.left>j.left?"right":viewportOffset.left+viewportSize.width<j.left+i.width?"left":"both",f=viewportOffset.top>j.top?"bottom":viewportOffset.top+viewportSize.height<j.top+i.height?"top":"both",g=d+"-"+f,!0):!1}}(),function(){function a(a){for(var c,d=b.VARIATION,e="",f={"font-family":[]},g=0;c=a.charAt(g);g+=1)if(d!==b.FONT_FAMILY||'"'!==c&&"'"!==c)d===b.FONT_FAMILY&&","===c?/^\s*$/.test(e)||(f["font-family"].push(e.replace(/^\s+|\s+$/,"").replace(/\s+/g," ")),e=""):d!==b.VARIATION||" "!==c&&"/"!==c?d===b.LINE_HEIGHT&&" "===c?(/^(\+|-)?([0-9]*\.)?[0-9]+(em|ex|ch|rem|vh|vw|vmin|vmax|px|mm|cm|in|pt|pc|%)?$/.test(e)&&(f["line-height"]=e),d=b.FONT_FAMILY,e=""):e+=c:(/^((xx|x)-large|(xx|s)-small|small|large|medium)$/.test(e)||/^(larg|small)er$/.test(e)||/^(\+|-)?([0-9]*\.)?[0-9]+(em|ex|ch|rem|vh|vw|vmin|vmax|px|mm|cm|in|pt|pc|%)$/.test(e)?(d="/"===c?b.LINE_HEIGHT:b.FONT_FAMILY,f["font-size"]=e):/^(italic|oblique)$/.test(e)?f["font-style"]=e:/^small-caps$/.test(e)?f["font-variant"]=e:/^(bold(er)?|lighter|[1-9]00)$/.test(e)?f["font-weight"]=e:/^((ultra|extra|semi)-)?(condensed|expanded)$/.test(e)&&(f["font-stretch"]=e),e="");else{var h=g+1;do if(h=a.indexOf(c,h)+1,!h)return null;while("\\"===a.charAt(h-2));f["font-family"].push(a.slice(g+1,h-1).replace(/\\('|")/g,"$1")),g=h-1,e=""}return d!==b.FONT_FAMILY||/^\s*$/.test(e)||f["font-family"].push(e.replace(/^\s+|\s+$/,"").replace(/\s+/g," ")),f["font-size"]&&f["font-family"].length?f:null}var b={VARIATION:1,LINE_HEIGHT:2,FONT_FAMILY:3};return a}()),v={Type:{},Table:{},DEF:{}},w={Type:{},Table:{},DEF:{}};v.DEF.GLYF={},v.DEF.GLYF.ARG_1_AND_2_ARE_WORDS=1,v.DEF.GLYF.ARGS_ARE_XY_VALUES=2,v.DEF.GLYF.ROUND_XY_TO_GRID=4,v.DEF.GLYF.WE_HAVE_A_SCALE=8,v.DEF.GLYF.RESERVED=16,v.DEF.GLYF.MORE_COMPONENTS=32,v.DEF.GLYF.WE_HAVE_AN_X_AND_Y_SCALE=64,v.DEF.GLYF.WE_HAVE_A_TWO_BY_TWO=128,v.DEF.GLYF.WE_HAVE_INSTRUCTIONS=256,v.DEF.GLYF.USE_MY_METRICS=512,v.DEF.GLYF.OVERLAP_COMPOUND=1024,v.DEF.GLYF.SCALED_COMPONENT_OFFSET=2048,v.DEF.GLYF.UNSCALED_COMPONENT_OFFSET=4096,v.Type.factoryNativeType=function(a,b,c){var d=function(){this._number=0,this._bytecount=b,this._endian=c,this._flag=a};return d.prototype.decompile=function(a){for(var b=0,c=0,d=0;d<this._bytecount;d=d+1|0)c=a.data[a.offset+this._bytecount-d-1],this._flag&&d==this._bytecount-1&&!this._endian&&(c=c>127?c-256:c),this._flag&&0==d&&this._endian&&(c=c>127?c-256:c),b+=this._endian?c<<8*(this._bytecount-1-d):c<<8*d;a.offset+=this._bytecount,this._flag||(b>>>=0),this._number=b},d.prototype.compile=function(a){if(this._endian)for(var b=0;b<this._bytecount;b=b+1|0)a.data[a.offset+this._bytecount-b-1]=this._number>>>8*(this._bytecount-1-b)&255;else for(var b=0;b<this._bytecount;b=b+1|0)a.data[a.offset+this._bytecount-b-1]=this._number>>>8*b&255;a.offset+=this._bytecount},d.prototype.get=function(){return this._number},d.prototype.set=function(a){this._number=a},d.prototype.size=function(a){return this._bytecount},d},v.Type.mapping={},v.Type.factoryOffsetType=function(a,b,c){var d=function(d){this.offset=new(v.Type.factoryNativeType(a,b,c)),null!=d?this._ref=new d(arguments):this._ref=null,this._offset=null};return d.prototype.decompile=function(a,b,c){this.offset.decompile(a),c&&this.decompileRef(a,b)},d.prototype.decompileRef=function(a,b){if(0==this.offset.get())this._ref=null;else{var c=v.Type.mapping[b+this.offset.get()];if(null==c){var d=a.offset;a.offset=b+this.offset.get(),this._ref.decompile(a),a.offset=d,v.Type.mapping[b+this.offset]=this._ref}else this._ref=c}},d.prototype.compile=function(a){this._offset=a.offset,this.offset.set(0),this.offset.compile(a)},d.prototype.finalize=function(a,b){if(null!=this._ref){if(null==b&&(b=0),null==this._offset)throw"!offsetOffset";var c=a.offset;a.offset=this._offset,this.offset.set(c-b),this.offset.compile(a),a.offset=c,this._ref.compile(a),this._offset=null}},d.prototype.get=function(){return this.offset.get()},d.prototype.set=function(a){
this.offset=a},d.prototype.getRef=function(){return this._ref},d.prototype.setRef=function(a){this._ref=a},d},v.Type.factoryCheckSumType=function(a,b,c){var d=function(){this.checksum=new(v.Type.factoryNativeType(a,b,c)),this._offset=null};return d.prototype.decompile=function(a){this.checksum.decompile(a)},d.prototype.compile=function(a){this._offset=a.offset,this.checksum.set(0),this.checksum.compile(a)},d.prototype.finalize=function(a,b,c,d){if(null==this._offset)throw"!offsetOffset";var e=a.offset;a.offset=this._offset;for(var f=0,g=c-b,h=0;g>h;h+=4){var i=a.data[b+h+0]<<24,j=a.data[b+h+1]<<16,k=a.data[b+h+2]<<8,l=a.data[b+h+3]<<0;f+=i|j|k|l,f=(4294967295&f)>>>0}d&&(f=2981146554-f),this.checksum.set(f),this.checksum.compile(a),a.offset=e,this._offset=null},d.prototype.get=function(){return this.checksum.get()},d.prototype.set=function(a){this.checksum=a},d},v.Type.factoryLengthType=function(a,b,c){var d=function(){this.length=new(v.Type.factoryNativeType(a,b,c)),this._offset=null};return d.prototype.decompile=function(a){this.length.decompile(a)},d.prototype.compile=function(a){this._offset=a.offset,this.length.set(0),this.length.compile(a)},d.prototype.finalize=function(a,b,c){if(null==this._offset)throw"!offsetOffset";var d=a.offset;a.offset=this._offset,this.length.set(c-b),this.length.compile(a),a.offset=d,this._offset=null},d.prototype.get=function(){return this.length.get()},d.prototype.set=function(a){this.length=a},d},v.Type.BYTE=v.Type.factoryNativeType(!1,1,!1),v.Type.CHAR=v.Type.factoryNativeType(!0,1,!1),v.Type.USHORT=v.Type.factoryNativeType(!1,2,!1),v.Type.SHORT=v.Type.factoryNativeType(!0,2,!1),v.Type.UFWORD=v.Type.factoryNativeType(!1,2,!1),v.Type.FWORD=v.Type.factoryNativeType(!0,2,!1),v.Type.ULONG=v.Type.factoryNativeType(!1,4,!1),v.Type.LONG=v.Type.factoryNativeType(!0,4,!1),v.Type.uint16=v.Type.factoryNativeType(!1,2,!1),v.Type.int16=v.Type.factoryNativeType(!0,2,!1),v.Type.UINT24=v.Type.factoryNativeType(!1,3,!1),v.Type.GlyphID=v.Type.factoryNativeType(!1,2,!1),v.Type.OFFSET=v.Type.factoryOffsetType(!1,2,!1),v.Type.LONGOFFSET=v.Type.factoryOffsetType(!1,4,!1),v.Type.CHECKSUM=v.Type.factoryCheckSumType(!1,4,!1),v.Type.LENGTH=v.Type.factoryLengthType(!1,4,!1),v.Type.Fixed=function(){this.major=new v.Type.SHORT,this.minor=new v.Type.USHORT},v.Type.Fixed.prototype.decompile=function(a){this.major.decompile(a),this.minor.decompile(a)},v.Type.Fixed.prototype.compile=function(a){this.major.compile(a),this.minor.compile(a)},v.Type.F2Dot14=v.Type.factoryNativeType(!1,2,!1),v.Type.F2Dot14.prototype.get=function(){for(var a=(49152&this._number)>>14,b=16383&this._number,c=a,d=8192,e=.5,f=2;16>f;f=f+1|0)b&d&&(c+=e),d>>=1,e/=2;return c},v.Type.F2Dot14.prototype.set=function(a){this._num=Math.round(16384*a)},v.Type.Tag=function(){this._tag="",this._bytecount=4},v.Type.Tag.prototype.decompile=function(a){for(var b="",c=0;c<this._bytecount;c=c+1|0)b+=String.fromCharCode(a.data[a.offset+c]);a.offset+=this._bytecount,this._tag=b},v.Type.Tag.prototype.compile=function(a){for(var b=0;b<this._bytecount;b=b+1|0)a.data[a.offset+b]=this._tag.charCodeAt(b);a.offset+=this._bytecount},v.Type.Tag.prototype.get=function(){return this._tag},v.Type.Tag.prototype.set=function(a){this._tag=a},v.Type.LONGDATETIME=function(){this.major=new v.Type.LONG,this.minor=new v.Type.ULONG},v.Type.LONGDATETIME.prototype.decompile=function(a){this.major.decompile(a),this.minor.decompile(a)},v.Type.LONGDATETIME.prototype.compile=function(a){this.major.compile(a),this.minor.compile(a)},v.Type.PascalString=function(){this._string=""},v.Type.PascalString.prototype.decompile=function(a){var b="",c=new v.Type.BYTE;c.decompile(a);for(var d=0;d<c.get();d=d+1|0)b+=String.fromCharCode(a.data[a.offset+d]);a.offset+=c.get(),this._string=b},v.Type.PascalString.prototype.compile=function(a){a.data[a.offset]=this._string.length,a.offset+=1;for(var b=0;b<this._string.length;b=b+1|0)a.data[a.offset]=this._string.charCodeAt(b),a.offset+=1},v.Type.PascalString.prototype.get=function(){return this._string},v.Type.PascalString.prototype.set=function(a){this._string=a},v.Table.SFNTHeader=function(a){this.sfntVersion=new v.Type.Fixed,this.numTables=new v.Type.USHORT,this.searchRange=new v.Type.USHORT,this.entrySelector=new v.Type.USHORT,this.rangeShift=new v.Type.USHORT,this.tableRecords=[],this._TTF=a},v.Table.SFNTHeader.prototype.decompile=function(a){this.sfntVersion.decompile(a),this.numTables.decompile(a),this.searchRange.decompile(a),this.entrySelector.decompile(a),this.rangeShift.decompile(a),this.tableRecords=new Array(this.numTables.get());for(var b=0;b<this.numTables.get();b=b+1|0)this.tableRecords[b]=new v.Table.TableRecord,this.tableRecords[b].decompile(a)},v.Table.SFNTHeader.prototype.compile=function(a){this.tableRecords.sort(function(a,b){return a=a.tag.get(),b=b.tag.get(),a>b?1:b>a?-1:0});for(var b=!1,c=0;c<this.tableRecords.length;c=c+1|0)if("CFF "==this.tableRecords[c].tag.get()){b=!0;break}b?(this.sfntVersion.major.set(20308),this.sfntVersion.minor.set(21583)):(this.sfntVersion.major.set(1),this.sfntVersion.minor.set(0)),this.sfntVersion.compile(a);var d=1,e=0,f=this.tableRecords.length;for(this.numTables.set(f),this.numTables.compile(a);f>=2*d;)d=2*d,e++;this.searchRange.set(16*d),this.entrySelector.set(e),this.rangeShift.set(16*f-this.searchRange.get()),this.searchRange.compile(a),this.entrySelector.compile(a),this.rangeShift.compile(a);for(var c=0;c<this.tableRecords.length;c=c+1|0)this.tableRecords[c].compile(a);for(var c=0;c<this.tableRecords.length;c=c+1|0){var g=a.offset;this.tableRecords[c].offset.finalize(a);var h=a.offset;this.tableRecords[c].length.finalize(a,g,h),v.TTF.prototype.padding(a,4),this.tableRecords[c].checkSum.finalize(a,g,h)}},v.Table.TableRecord=function(){this.tag=new v.Type.Tag,this.checkSum=new v.Type.CHECKSUM,this.offset=new v.Type.LONGOFFSET,this.length=new v.Type.LENGTH},v.Table.TableRecord.prototype.decompile=function(a){this.tag.decompile(a),this.checkSum.decompile(a),this.offset.decompile(a),this.length.decompile(a)},v.Table.TableRecord.prototype.compile=function(a){this.tag.compile(a),this.checkSum.compile(a),this.offset.compile(a),this.length.compile(a)},v.Table.Head=function(){this.tag="head",this.tableVersionNumber=new v.Type.Fixed,this.fontRevision=new v.Type.Fixed,this.checkSumAdjustment=new v.Type.CHECKSUM,this.magicNumber=new v.Type.ULONG,this.flags=new v.Type.USHORT,this.unitsPerEm=new v.Type.USHORT,this.created=new v.Type.LONGDATETIME,this.modified=new v.Type.LONGDATETIME,this.xMin=new v.Type.SHORT,this.yMin=new v.Type.SHORT,this.xMax=new v.Type.SHORT,this.yMax=new v.Type.SHORT,this.macStyle=new v.Type.USHORT,this.lowestRecPPEM=new v.Type.USHORT,this.fontDirectionHint=new v.Type.SHORT,this.indexToLocFormat=new v.Type.SHORT,this.glyphDataFormat=new v.Type.SHORT},v.Table.Head.prototype.decompile=function(a){this.tableVersionNumber.decompile(a),this.fontRevision.decompile(a),this.checkSumAdjustment.decompile(a),this.magicNumber.decompile(a),this.flags.decompile(a),this.unitsPerEm.decompile(a),this.created.decompile(a),this.modified.decompile(a),this.xMin.decompile(a),this.yMin.decompile(a),this.xMax.decompile(a),this.yMax.decompile(a),this.macStyle.decompile(a),this.lowestRecPPEM.decompile(a),this.fontDirectionHint.decompile(a),this.indexToLocFormat.decompile(a),this.glyphDataFormat.decompile(a)},v.Table.Head.prototype.compile=function(a){this.tableVersionNumber.compile(a),this.fontRevision.compile(a),this.checkSumAdjustment.compile(a),this.magicNumber.compile(a),this.flags.compile(a),this.unitsPerEm.compile(a),this.created.compile(a),this.modified.compile(a),this.xMin.compile(a),this.yMin.compile(a),this.xMax.compile(a),this.yMax.compile(a),this.macStyle.compile(a),this.lowestRecPPEM.compile(a),this.fontDirectionHint.compile(a),this.indexToLocFormat.compile(a),this.glyphDataFormat.compile(a)},v.Table.Hhea=function(){this.tag="hhea",this.tableVersionNumber=new v.Type.Fixed,this.Ascender=new v.Type.FWORD,this.Descender=new v.Type.FWORD,this.LineGap=new v.Type.FWORD,this.advanceWidthMax=new v.Type.UFWORD,this.minLeftSideBearing=new v.Type.FWORD,this.minRightSideBearing=new v.Type.FWORD,this.xMaxExtent=new v.Type.FWORD,this.caretSlopeRise=new v.Type.SHORT,this.caretSlopeRun=new v.Type.SHORT,this.caretOffset=new v.Type.SHORT,this.reserved1=new v.Type.SHORT,this.reserved2=new v.Type.SHORT,this.reserved3=new v.Type.SHORT,this.reserved4=new v.Type.SHORT,this.metricDataFormat=new v.Type.SHORT,this.numberOfHMetrics=new v.Type.USHORT},v.Table.Hhea.prototype.decompile=function(a){this.tableVersionNumber.decompile(a),this.Ascender.decompile(a),this.Descender.decompile(a),this.LineGap.decompile(a),this.advanceWidthMax.decompile(a),this.minLeftSideBearing.decompile(a),this.minRightSideBearing.decompile(a),this.xMaxExtent.decompile(a),this.caretSlopeRise.decompile(a),this.caretSlopeRun.decompile(a),this.caretOffset.decompile(a),this.reserved1.decompile(a),this.reserved2.decompile(a),this.reserved3.decompile(a),this.reserved4.decompile(a),this.metricDataFormat.decompile(a),this.numberOfHMetrics.decompile(a)},v.Table.Hhea.prototype.compile=function(a){this.tableVersionNumber.compile(a),this.Ascender.compile(a),this.Descender.compile(a),this.LineGap.compile(a),this.advanceWidthMax.compile(a),this.minLeftSideBearing.compile(a),this.minRightSideBearing.compile(a),this.xMaxExtent.compile(a),this.caretSlopeRise.compile(a),this.caretSlopeRun.compile(a),this.caretOffset.compile(a),this.reserved1.compile(a),this.reserved2.compile(a),this.reserved3.compile(a),this.reserved4.compile(a),this.metricDataFormat.compile(a),this.numberOfHMetrics.compile(a)},v.Table.Vhea=function(){this.tag="vhea",this.Version=new v.Type.Fixed,this.ascent=new v.Type.SHORT,this.descent=new v.Type.SHORT,this.lineGap=new v.Type.SHORT,this.advanceHeightMax=new v.Type.SHORT,this.minTopSideBearing=new v.Type.SHORT,this.minBottomSideBearing=new v.Type.SHORT,this.yMaxExtent=new v.Type.SHORT,this.caretSlopeRise=new v.Type.SHORT,this.caretSlopeRun=new v.Type.SHORT,this.caretOffset=new v.Type.SHORT,this.reserved1=new v.Type.SHORT,this.reserved2=new v.Type.SHORT,this.reserved3=new v.Type.SHORT,this.reserved4=new v.Type.SHORT,this.metricDataFormat=new v.Type.SHORT,this.numOfLongVerMetrics=new v.Type.USHORT},v.Table.Vhea.prototype.decompile=function(a){this.Version.decompile(a),this.ascent.decompile(a),this.descent.decompile(a),this.lineGap.decompile(a),this.advanceHeightMax.decompile(a),this.minTopSideBearing.decompile(a),this.minBottomSideBearing.decompile(a),this.yMaxExtent.decompile(a),this.caretSlopeRise.decompile(a),this.caretSlopeRun.decompile(a),this.caretOffset.decompile(a),this.reserved1.decompile(a),this.reserved2.decompile(a),this.reserved3.decompile(a),this.reserved4.decompile(a),this.metricDataFormat.decompile(a),this.numOfLongVerMetrics.decompile(a)},v.Table.Vhea.prototype.compile=function(a){this.Version.compile(a),this.ascent.compile(a),this.descent.compile(a),this.lineGap.compile(a),this.advanceHeightMax.compile(a),this.minTopSideBearing.compile(a),this.minBottomSideBearing.compile(a),this.yMaxExtent.compile(a),this.caretSlopeRise.compile(a),this.caretSlopeRun.compile(a),this.caretOffset.compile(a),this.reserved1.compile(a),this.reserved2.compile(a),this.reserved3.compile(a),this.reserved4.compile(a),this.metricDataFormat.compile(a),this.numOfLongVerMetrics.compile(a)},v.Table.OS_2=function(){this.tag="OS/2",this.version=new v.Type.USHORT,this.xAvgCharWidth=new v.Type.SHORT,this.usWeightClass=new v.Type.USHORT,this.usWidthClass=new v.Type.USHORT,this.fsType=new v.Type.USHORT,this.ySubscriptXSize=new v.Type.SHORT,this.ySubscriptYSize=new v.Type.SHORT,this.ySubscriptXOffset=new v.Type.SHORT,this.ySubscriptYOffset=new v.Type.SHORT,this.ySuperscriptXSize=new v.Type.SHORT,this.ySuperscriptYSize=new v.Type.SHORT,this.ySuperscriptXOffset=new v.Type.SHORT,this.ySuperscriptYOffset=new v.Type.SHORT,this.yStrikeoutSize=new v.Type.SHORT,this.yStrikeoutPosition=new v.Type.SHORT,this.sFamilyClass=new v.Type.SHORT,this.panose=new Array(10);for(var a=0;10>a;a=a+1|0)this.panose[a]=new v.Type.BYTE;this.ulUnicodeRange1=new v.Type.ULONG,this.ulUnicodeRange2=new v.Type.ULONG,this.ulUnicodeRange3=new v.Type.ULONG,this.ulUnicodeRange4=new v.Type.ULONG,this.ulCharRange=new Array(4);for(var a=0;4>a;a=a+1|0)this.ulCharRange[a]=new v.Type.ULONG;this.achVendID=new v.Type.Tag,this.fsSelection=new v.Type.USHORT,this.usFirstCharIndex=new v.Type.USHORT,this.usLastCharIndex=new v.Type.USHORT,this.sTypoAscender=new v.Type.SHORT,this.sTypoDescender=new v.Type.SHORT,this.sTypoLineGap=new v.Type.SHORT,this.usWinAscent=new v.Type.USHORT,this.usWinDescent=new v.Type.USHORT,this.ulCodePageRange1=new v.Type.ULONG,this.ulCodePageRange2=new v.Type.ULONG,this.sxHeight=new v.Type.SHORT,this.sCapHeight=new v.Type.SHORT,this.usDefaultChar=new v.Type.USHORT,this.usBreakChar=new v.Type.USHORT,this.usMaxContext=new v.Type.USHORT,this.usLowerOpticalPointSize=new v.Type.USHORT,this.usUpperOpticalPointSize=new v.Type.USHORT},v.Table.OS_2.prototype.decompile=function(a){this.version.decompile(a),this.xAvgCharWidth.decompile(a),this.usWeightClass.decompile(a),this.usWidthClass.decompile(a),this.fsType.decompile(a),this.ySubscriptXSize.decompile(a),this.ySubscriptYSize.decompile(a),this.ySubscriptXOffset.decompile(a),this.ySubscriptYOffset.decompile(a),this.ySuperscriptXSize.decompile(a),this.ySuperscriptYSize.decompile(a),this.ySuperscriptXOffset.decompile(a),this.ySuperscriptYOffset.decompile(a),this.yStrikeoutSize.decompile(a),this.yStrikeoutPosition.decompile(a),this.sFamilyClass.decompile(a);for(var b=0;10>b;b=b+1|0)this.panose[b].decompile(a);if(0==this.version.get())for(var b=0;4>b;b=b+1|0)this.ulCharRange[b].decompile(a);else this.version.get()>=1&&(this.ulUnicodeRange1.decompile(a),this.ulUnicodeRange2.decompile(a),this.ulUnicodeRange3.decompile(a),this.ulUnicodeRange4.decompile(a));this.achVendID.decompile(a),this.fsSelection.decompile(a),this.usFirstCharIndex.decompile(a),this.usLastCharIndex.decompile(a),this.sTypoAscender.decompile(a),this.sTypoDescender.decompile(a),this.sTypoLineGap.decompile(a),this.usWinAscent.decompile(a),this.usWinDescent.decompile(a),this.version.get()>=1&&(this.ulCodePageRange1.decompile(a),this.ulCodePageRange2.decompile(a)),this.version.get()>=2&&(this.sxHeight.decompile(a),this.sCapHeight.decompile(a),this.usDefaultChar.decompile(a),this.usBreakChar.decompile(a),this.usMaxContext.decompile(a)),this.version.get()>=5&&(this.usLowerOpticalPointSize.decompile(a),this.usUpperOpticalPointSize.decompile(a))},v.Table.OS_2.prototype.compile=function(a){this.version.compile(a),this.xAvgCharWidth.compile(a),this.usWeightClass.compile(a),this.usWidthClass.compile(a),this.fsType.compile(a),this.ySubscriptXSize.compile(a),this.ySubscriptYSize.compile(a),this.ySubscriptXOffset.compile(a),this.ySubscriptYOffset.compile(a),this.ySuperscriptXSize.compile(a),this.ySuperscriptYSize.compile(a),this.ySuperscriptXOffset.compile(a),this.ySuperscriptYOffset.compile(a),this.yStrikeoutSize.compile(a),this.yStrikeoutPosition.compile(a),this.sFamilyClass.compile(a);for(var b=0;10>b;b=b+1|0)this.panose[b].compile(a);if(0==this.version.get())for(var b=0;4>b;b=b+1|0)this.ulCharRange[b].compile(a);else this.version.get()>=1&&(this.ulUnicodeRange1.compile(a),this.ulUnicodeRange2.compile(a),this.ulUnicodeRange3.compile(a),this.ulUnicodeRange4.compile(a));this.achVendID.compile(a),this.fsSelection.compile(a),this.usFirstCharIndex.compile(a),this.usLastCharIndex.compile(a),this.sTypoAscender.compile(a),this.sTypoDescender.compile(a),this.sTypoLineGap.compile(a),this.usWinAscent.compile(a),this.usWinDescent.compile(a),this.version.get()>=1&&(this.ulCodePageRange1.compile(a),this.ulCodePageRange2.compile(a)),this.version.get()>=2&&(this.sxHeight.compile(a),this.sCapHeight.compile(a),this.usDefaultChar.compile(a),this.usBreakChar.compile(a),this.usMaxContext.compile(a))},v.Table.Post=function(){this.tag="post",this.version=new v.Type.Fixed,this.italicAngle=new v.Type.Fixed,this.underlinePosition=new v.Type.FWORD,this.underlineThickness=new v.Type.FWORD,this.isFixedPitch=new v.Type.ULONG,this.minMemType42=new v.Type.ULONG,this.maxMemType42=new v.Type.ULONG,this.minMemType1=new v.Type.ULONG,this.maxMemType1=new v.Type.ULONG,this.structs=null},v.Table.Post.prototype.decompile=function(a){this.version.decompile(a),this.italicAngle.decompile(a),this.underlinePosition.decompile(a),this.underlineThickness.decompile(a),this.isFixedPitch.decompile(a),this.minMemType42.decompile(a),this.maxMemType42.decompile(a),this.minMemType1.decompile(a),this.maxMemType1.decompile(a),2==this.version.major.get()&&(this.structs=new v.Table.PostNameStructVer2_0,this.structs.decompile(a))},v.Table.Post.prototype.compile=function(a){this.version.compile(a),this.italicAngle.compile(a),this.underlinePosition.compile(a),this.underlineThickness.compile(a),this.isFixedPitch.compile(a),this.minMemType42.compile(a),this.maxMemType42.compile(a),this.minMemType1.compile(a),this.maxMemType1.compile(a),2==this.version.major.get()&&this.structs.compile(a)},v.Table.PostNameStructVer2_0=function(){this.numberOfGlyphs=new v.Type.USHORT,this.glyphNameIndex=null,this.names=null},v.Table.PostNameStructVer2_0.prototype.decompile=function(a){this.numberOfGlyphs.decompile(a),this.glyphNameIndex=new Array(this.numberOfGlyphs.get());for(var b=0,c=0;c<this.numberOfGlyphs.get();c=c+1|0)this.glyphNameIndex[c]=new v.Type.USHORT,this.glyphNameIndex[c].decompile(a),this.glyphNameIndex[c].get()>257&&b++;this.names=new Array(b);for(var c=0;b>c;c=c+1|0)this.names[c]=new v.Type.PascalString,this.names[c].decompile(a)},v.Table.PostNameStructVer2_0.prototype.compile=function(a){this.numberOfGlyphs.compile(a);var b=this.numberOfGlyphs.get(),c=0;for(c=0;b>c;c=c+1|0)this.glyphNameIndex[c].compile(a);for(b=this.names.length,c=0;b>c;c=c+1|0)this.names[c].compile(a)},v.Table.Maxp=function(){this.tag="maxp",this.tableVersionNumber=new v.Type.Fixed,this.numGlyphs=new v.Type.USHORT,this.maxPoints=new v.Type.USHORT,this.maxContours=new v.Type.USHORT,this.maxCompositePoints=new v.Type.USHORT,this.maxCompositeContours=new v.Type.USHORT,this.maxZones=new v.Type.USHORT,this.maxTwilightPoints=new v.Type.USHORT,this.maxStorage=new v.Type.USHORT,this.maxFunctionDefs=new v.Type.USHORT,this.maxInstructionDefs=new v.Type.USHORT,this.maxStackElements=new v.Type.USHORT,this.maxSizeOfInstructions=new v.Type.USHORT,this.maxComponentElements=new v.Type.USHORT,this.maxComponentDepth=new v.Type.USHORT},v.Table.Maxp.prototype.decompile=function(a){this.tableVersionNumber.decompile(a),this.numGlyphs.decompile(a),1==this.tableVersionNumber.major.get()&&0==this.tableVersionNumber.minor.get()&&(this.maxPoints.decompile(a),this.maxContours.decompile(a),this.maxCompositePoints.decompile(a),this.maxCompositeContours.decompile(a),this.maxZones.decompile(a),this.maxTwilightPoints.decompile(a),this.maxStorage.decompile(a),this.maxFunctionDefs.decompile(a),this.maxInstructionDefs.decompile(a),this.maxStackElements.decompile(a),this.maxSizeOfInstructions.decompile(a),this.maxComponentElements.decompile(a),this.maxComponentDepth.decompile(a))},v.Table.Maxp.prototype.compile=function(a){this.tableVersionNumber.compile(a),this.numGlyphs.compile(a),1==this.tableVersionNumber.major.get()&&0==this.tableVersionNumber.minor.get()&&(this.maxPoints.compile(a),this.maxContours.compile(a),this.maxCompositePoints.compile(a),this.maxCompositeContours.compile(a),this.maxZones.compile(a),this.maxTwilightPoints.compile(a),this.maxStorage.compile(a),this.maxFunctionDefs.compile(a),this.maxInstructionDefs.compile(a),this.maxStackElements.compile(a),this.maxSizeOfInstructions.compile(a),this.maxComponentElements.compile(a),this.maxComponentDepth.compile(a))},v.Table.Cvt=function(a){this.tag="cvt ",this.instructions=[],this._TTF=a},v.Table.Cvt.prototype.decompile=function(a){this.instructions=new Array(this._TTF.getTableData("cvt ").info.length.get()/2);for(var b=0;b<this._TTF.getTableData("cvt ").info.length.get()/2;b=b+1|0)this.instructions[b]=new v.Type.FWORD,this.instructions[b].decompile(a)},v.Table.Cvt.prototype.compile=function(a){for(var b=0;b<this.instructions.length;b=b+1|0)this.instructions[b].compile(a)},v.Table.Prep=function(a){this.tag="prep",this.instructions=[],this._val=[],this._TTF=a},v.Table.Prep.prototype.decompile=function(a){this.instructions=new Array(this._TTF.getTableData("prep").info.length.get());for(var b=0;b<this._TTF.getTableData("prep").info.length.get();b=b+1|0)this.instructions[b]=new v.Type.BYTE,this.instructions[b].decompile(a)},v.Table.Prep.prototype.compile=function(a){for(var b=0;b<this.instructions.length;b=b+1|0)this.instructions[b].compile(a)},v.Table.Fpgm=function(a){this.tag="fpgm",this.instructions=[],this._val=[],this._TTF=a},v.Table.Fpgm.prototype.decompile=function(a){this.instructions=new Array(this._TTF.getTableData("fpgm").info.length.get());for(var b=0;b<this._TTF.getTableData("fpgm").info.length.get();b=b+1|0)this.instructions[b]=new v.Type.BYTE,this.instructions[b].decompile(a)},v.Table.Fpgm.prototype.compile=function(a){for(var b=0;b<this.instructions.length;b=b+1|0)this.instructions[b].compile(a)},v.Table.Cmap=function(){this.tag="cmap",this.version=new v.Type.SHORT,this.numTables=new v.Type.SHORT,this.encodingRecords=[]},v.Table.Cmap.prototype.decompile=function(a){var b=a.offset;this.version.decompile(a),this.numTables.decompile(a);for(var c=0;c<this.numTables.get();c=c+1|0)this.encodingRecords[c]=new v.Table.EncodingRecord,this.encodingRecords[c].decompile(a,b)},v.Table.Cmap.prototype.compile=function(a){var b=a.offset;this.version.compile(a),this.numTables.set(this.encodingRecords.length),this.numTables.compile(a);for(var c=0;c<this.encodingRecords.length;c=c+1|0)this.encodingRecords[c].compile(a);for(var c=0;c<this.encodingRecords.length;c=c+1|0)this.encodingRecords[c].offset.finalize(a,b)},v.Table.EncodingRecord=function(){this.platformID=new v.Type.USHORT,this.encodingID=new v.Type.USHORT,this.offset=new v.Type.LONGOFFSET(v.Table.CmapEncodingTable)},v.Table.EncodingRecord.prototype.decompile=function(a,b){this.platformID.decompile(a),this.encodingID.decompile(a),this.offset.decompile(a,b,!0)},v.Table.EncodingRecord.prototype.compile=function(a){this.platformID.compile(a),this.encodingID.compile(a),this.offset.compile(a)},v.Table.CmapEncodingTable=function(){this.format=new v.Type.USHORT,this.data=null},v.Table.CmapEncodingTable.prototype.decompile=function(a){switch(this.format.decompile(a),this.format.get()){case 0:this.data=new v.Table.CmapEncodingTableFormat0;break;case 2:this.data=new v.Table.CmapEncodingTableFormat2;break;case 4:this.data=new v.Table.CmapEncodingTableFormat4;break;case 6:this.data=new v.Table.CmapEncodingTableFormat6;break;case 12:this.data=new v.Table.CmapEncodingTableFormat12;break;case 13:this.data=new v.Table.CmapEncodingTableFormat13;break;case 14:this.data=new v.Table.CmapEncodingTableFormat14;break;default:throw"this subtable fotmat number is not supported."}a.offset-=this.format._bytecount,this.data.decompile(a)},v.Table.CmapEncodingTable.prototype.compile=function(a){if(null==this.data)throw"ERR";this.data.compile(a)},v.Table.CmapEncodingTableFormat0=function(){this.format=new v.Type.USHORT,this.length=new v.Type.USHORT,this.language=new v.Type.USHORT,this.glyphIdArray=new Array(256);for(var a=0;256>a;a=a+1|0)this.glyphIdArray[a]=new v.Type.BYTE},v.Table.CmapEncodingTableFormat0.prototype.decompile=function(a){this.format.decompile(a),this.length.decompile(a),this.language.decompile(a);for(var b=0;256>b;b=b+1|0)this.glyphIdArray[b].decompile(a)},v.Table.CmapEncodingTableFormat0.prototype.compile=function(a){this.format.compile(a),this.length.compile(a),this.language.compile(a);for(var b=0;256>b;b=b+1|0)this.glyphIdArray[b].compile(a)},v.Table.CmapEncodingTableFormat0.prototype.GID2CharCode=function(a){return null==this._GID2CharCode&&(this._GID2CharCode=reverse_hash(this.CharCode2GID())),this._GID2CharCode[a]},v.Table.CmapEncodingTableFormat0.prototype.CharCode2GID=function(a){if(null==this._CharCode2GID){this._CharCode2GID={};for(var b=0;b<this.glyphIdArray.length;b=b+1|0)this._CharCode2GID[b]=this.glyphIdArray[b].get()}return null!=a?this._CharCode2GID[a]:this._CharCode2GID},v.Table.CmapEncodingTableFormat2=function(){this.format=new v.Type.USHORT,this.length=new v.Type.USHORT,this.language=new v.Type.USHORT,this.subHeaderKeys=new Array(256);for(var a=0;256>a;a=a+1|0)this.subHeaderKeys[a]=new v.Type.USHORT;this.subHeaders=[],this.glyphIndexArray=[]},v.Table.CmapEncodingTableFormat2.prototype.decompile=function(a){var b=a.offset;this.format.decompile(a),this.length.decompile(a),this.language.decompile(a);for(var c=-100,d=0;256>d;d=d+1|0)this.subHeaderKeys[d].decompile(a),this.subHeaderKeys[d].get()>c&&(c=this.subHeaderKeys[d].get());for(var d=0;c/8+1>d;d=d+1|0)this.subHeaders[d]=new v.Table.CmapEncodingTableFormat2FourWordsStruct(c/8,d),this.subHeaders[d].decompile(a);for(var e=this.length.get()-(a.offset-b),d=0;e/2>d;d=d+1|0)this.glyphIndexArray[d]=new v.Type.USHORT,this.glyphIndexArray[d].decompile(a)},v.Table.CmapEncodingTableFormat2.prototype.compile=function(a){this.format.compile(a),this.length.compile(a),this.language.compile(a);for(var b=0;256>b;b=b+1|0)this.subHeaderKeys[b].compile(a);for(var b=0;b<this.subHeaders.length;b=b+1|0)this.subHeaders[b].compile(a);for(var b=0;b<this.glyphIndexArray.length;b=b+1|0)this.glyphIndexArray[b].compile(a)},v.Table.CmapEncodingTableFormat2.prototype.GID2CharCode=function(a){return null==this._GID2CharCodeTable&&(this._GID2CharCodeTable=reverse_hash(this.CharCode2GID())),this._GID2CharCodeTable[a]},v.Table.CmapEncodingTableFormat2.prototype.CharCode2GID=function(a){if(null==this._CharCode2GID){this._CharCode2GID={};for(var b=0;b<this.subHeaderKeys.length;b++)for(var c=this.subHeaderKeys[i].get(),d=this.subHeaders[c/8],e=0;e<d.entryCount.get();e++)this._CharCode2GID[(b<<8)+d.firstCode.get()+e]=d.idDelta.get()+this.glyphIndexArray[d._id+e].get()}return null!=a?this._CharCode2GID[a]:this._CharCode2GID},v.Table.CmapEncodingTableFormat2FourWordsStruct=function(){this.firstCode=new v.Type.USHORT,this.entryCount=new v.Type.USHORT,this.idDelta=new v.Type.SHORT,this.idRangeOffset=new v.Type.USHORT,this._id=0},v.Table.CmapEncodingTableFormat2FourWordsStruct.prototype.decompile=function(a,b,c){this.firstCode.decompile(a),this.entryCount.decompile(a),this.idDelta.decompile(a),this.idRangeOffset.decompile(a),this._id=(this.idRangeOffset.get()-8*(b-c)-2)/2},v.Table.CmapEncodingTableFormat2FourWordsStruct.prototype.compile=function(a){this.firstCode.compile(a),this.entryCount.compile(a),this.idDelta.compile(a),this.idRangeOffset.compile(a)},v.Table.CmapEncodingTableFormat4=function(){this.format=new v.Type.USHORT,this.length=new v.Type.USHORT,this.language=new v.Type.USHORT,this.segCountX2=new v.Type.USHORT,this.searchRange=new v.Type.USHORT,this.entrySelector=new v.Type.USHORT,this.rangeShift=new v.Type.USHORT,this.endCount=[],this.reservedPad=new v.Type.USHORT,this.startCount=[],this.idDelta=[],this.idRangeOffset=[],this.glyphIdArray=[],this._endPadding=[]},v.Table.CmapEncodingTableFormat4.prototype.decompile=function(a){var b=a.offset;this.format.decompile(a),this.length.decompile(a),this.language.decompile(a),this.segCountX2.decompile(a);var c=this.segCountX2.get()/2;this.searchRange.decompile(a),this.entrySelector.decompile(a),this.rangeShift.decompile(a),this.endCount=new Array(c);for(var d=0;c>d;d=d+1|0)this.endCount[d]=new v.Type.USHORT,this.endCount[d].decompile(a);this.reservedPad.decompile(a),this.startCount=new Array(c);for(var d=0;c>d;d=d+1|0)this.startCount[d]=new v.Type.USHORT,this.startCount[d].decompile(a);this.idDelta=new Array(c);for(var d=0;c>d;d=d+1|0)this.idDelta[d]=new v.Type.SHORT,this.idDelta[d].decompile(a);this.idRangeOffset=new Array(c);for(var d=0;c>d;d=d+1|0)this.idRangeOffset[d]=new v.Type.USHORT,this.idRangeOffset[d].decompile(a);for(var e=-100,d=0;c>d&&65535!=this.endCount[d].get();d=d+1|0)if(0!=this.idRangeOffset[d].get()){var f=this.idRangeOffset[d].get()-2*(c-d),g=this.endCount[d].get()-this.startCount[d].get()+1;f+2*g>e&&(e=f+2*g)}if(e>=0){this.glyphIdArray=new Array(e/2);for(var d=0;e/2>d;d=d+1|0)this.glyphIdArray[d]=new v.Type.USHORT,this.glyphIdArray[d].decompile(a)}var h=this.length.get()-(a.offset-b);if(h>0)for(var d=0;h>d;d=d+1|0)this._endPadding[d]=new v.Type.BYTE,this._endPadding[d].decompile(a)},v.Table.CmapEncodingTableFormat4.prototype.compile=function(a){this.format.compile(a),this.length.compile(a),this.language.compile(a),this.segCountX2.compile(a);var b=this.segCountX2.get()/2;this.searchRange.compile(a),this.entrySelector.compile(a),this.rangeShift.compile(a);for(var c=0;b>c;c=c+1|0)this.endCount[c].compile(a);this.reservedPad.compile(a);for(var c=0;b>c;c=c+1|0)this.startCount[c].compile(a);for(var c=0;b>c;c=c+1|0)this.idDelta[c].compile(a);for(var c=0;b>c;c=c+1|0)this.idRangeOffset[c].compile(a);for(var c=0;c<this.glyphIdArray.length;c=c+1|0)this.glyphIdArray[c].compile(a);for(var c=0;c<this._endPadding.length;c=c+1|0)this._endPadding[c].compile(a)},v.Table.CmapEncodingTableFormat4.prototype.GID2CharCode=function(a){return null==this._GID2CharCodeTable&&(this._GID2CharCodeTable=reverse_hash(this.CharCode2GID())),this._GID2CharCodeTable[a]},v.Table.CmapEncodingTableFormat4.prototype.CharCode2GID=function(a){if(null==this._CharCode2GID){this._CharCode2GID={};for(var b=0;b<this.segCountX2.get()/2;b=b+1|0)for(var c=this.startCount[b].get();c<this.endCount[b].get()+1&&65535!=this.endCount[b].get();c=c+1|0){var d=0;if(0==this.idRangeOffset[b].get())d=(this.idDelta[b].get()+c)%65536;else{var e=this.idRangeOffset[b].get()/2+b+(c-this.startCount[b].get())-this.segCountX2.get()/2;d=this.glyphIdArray[e].get()%65536}this._CharCode2GID[c]=d}}return null!=a?this._CharCode2GID[a]:this._CharCode2GID},v.Table.CmapEncodingTableFormat6=function(){this.format=new v.Type.USHORT,this.length=new v.Type.USHORT,this.language=new v.Type.USHORT,this.firstCode=new v.Type.USHORT,this.entryCount=new v.Type.USHORT,this.glyphIdArray=[]},v.Table.CmapEncodingTableFormat6.prototype.decompile=function(a){this.format.decompile(a),this.length.decompile(a),this.language.decompile(a),this.firstCode.decompile(a),this.entryCount.decompile(a);for(var b=0;b<this.entryCount.get();b=b+1|0)this.glyphIdArray[b]=new v.Type.USHORT,this.glyphIdArray[b].decompile(a)},v.Table.CmapEncodingTableFormat6.prototype.compile=function(a){this.format.compile(a),this.length.compile(a),this.language.compile(a),this.firstCode.compile(a),this.entryCount.compile(a);for(var b=0;b<this.glyphIdArray.length;b=b+1|0)this.glyphIdArray[b].compile(a)},v.Table.CmapEncodingTableFormat6.prototype.GID2CharCode=function(a){return null==this._GID2CharCodeTable&&(this._GID2CharCodeTable=reverse_hash(this.CharCode2GID())),this._GID2CharCodeTable[a]},v.Table.CmapEncodingTableFormat6.prototype.CharCode2GID=function(a){if(null==this._CharCode2GID){this._CharCode2GID={};for(var b=0;b<this.glyphIdArray.length;b=b+1|0)this._CharCode2GID[this.firstCode.get()+b+""]=this.glyphIdArray[b].get()}return null!=a?this._CharCode2GID[a]:this._CharCode2GID},v.Table.CmapEncodingTableFormat12=function(){this.format=new v.Type.USHORT,this.reserved=new v.Type.USHORT,this.length=new v.Type.ULONG,this.language=new v.Type.ULONG,this.nGroups=new v.Type.ULONG,this.groups=[]},v.Table.CmapEncodingTableFormat12.prototype.decompile=function(a){this.format.decompile(a),this.reserved.decompile(a),this.length.decompile(a),this.language.decompile(a),this.nGroups.decompile(a);for(var b=0;b<this.nGroups.get();b=b+1|0)this.groups[b]=new v.Table.CmapEncodingTableFormat12nGroup,this.groups[b].decompile(a)},v.Table.CmapEncodingTableFormat12.prototype.compile=function(a){this.format.compile(a),this.reserved.compile(a),this.length.compile(a),this.language.compile(a),this.nGroups.compile(a);for(var b=0;b<this.groups.length;b=b+1|0)this.groups[b].compile(a)},v.Table.CmapEncodingTableFormat12.prototype.GID2CharCode=function(a){return null==this._GID2CharCodeTable&&(this._GID2CharCodeTable=reverse_hash(this.CharCode2GID())),
this._GID2CharCodeTable[a]},v.Table.CmapEncodingTableFormat12.prototype.CharCode2GID=function(a){if(null==this._CharCode2GID){this._CharCode2GID={};for(var b=0;b<this.groups.length;b=b+1|0)for(var c=this.groups[b].startCharCode.get();c<=this.groups[b].endCharCode.get();c=c+1|0)this._CharCode2GID[c]=this.groups[b].startGlyphID.get()+(c-this.groups[b].startCharCode.get())}return null!=a?this._CharCode2GID[a]:this._CharCode2GID},v.Table.CmapEncodingTableFormat12nGroup=function(){this.startCharCode=new v.Type.ULONG,this.endCharCode=new v.Type.ULONG,this.startGlyphID=new v.Type.ULONG},v.Table.CmapEncodingTableFormat12nGroup.prototype.decompile=function(a){this.startCharCode.decompile(a),this.endCharCode.decompile(a),this.startGlyphID.decompile(a)},v.Table.CmapEncodingTableFormat12nGroup.prototype.compile=function(a){this.startCharCode.compile(a),this.endCharCode.compile(a),this.startGlyphID.compile(a)},v.Table.CmapEncodingTableFormat13=function(){this.format=new v.Type.USHORT,this.reserved=new v.Type.USHORT,this.length=new v.Type.ULONG,this.language=new v.Type.ULONG,this.nGroups=new v.Type.ULONG,this.groups=[]},v.Table.CmapEncodingTableFormat13.prototype.decompile=function(a){this.format.decompile(a),this.reserved.decompile(a),this.length.decompile(a),this.language.decompile(a),this.nGroups.decompile(a);for(var b=0;b<this.nGroups.get();b=b+1|0)this.groups[b]=new v.Table.CmapEncodingTableFormat13nGroup,this.groups[b].decompile(a)},v.Table.CmapEncodingTableFormat13.prototype.compile=function(a){this.format.compile(a),this.reserved.compile(a),this.length.compile(a),this.language.compile(a),this.nGroups.compile(a);for(var b=0;b<this.groups.length;b=b+1|0)this.groups[b].compile(a)},v.Table.CmapEncodingTableFormat13nGroup=function(){this.startCharCode=new v.Type.ULONG,this.endCharCode=new v.Type.ULONG,this.glyphID=new v.Type.ULONG},v.Table.CmapEncodingTableFormat13nGroup.prototype.decompile=function(a){this.startCharCode.decompile(a),this.endCharCode.decompile(a),this.glyphID.decompile(a)},v.Table.CmapEncodingTableFormat13nGroup.prototype.compile=function(a){this.startCharCode.compile(a),this.endCharCode.compile(a),this.glyphID.compile(a)},v.Table.CmapEncodingTableFormat14=function(){this.format=new v.Type.USHORT,this.length=new v.Type.ULONG,this.numVarSelectorRecords=new v.Type.ULONG,this.VSRecords=[]},v.Table.CmapEncodingTableFormat14.prototype.decompile=function(a){var b=a.offset;this.format.decompile(a),this.length.decompile(a),this.numVarSelectorRecords.decompile(a);for(var c=0;c<this.numVarSelectorRecords.get();c=c+1|0)this.VSRecords[c]=new v.Table.VariationSelectorRecord,this.VSRecords[c].decompile(a,b)},v.Table.CmapEncodingTableFormat14.prototype.compile=function(a){var b=a.offset;this.format.compile(a),this.length.compile(a),this.numVarSelectorRecords.set(this.VSRecords.length),this.numVarSelectorRecords.compile(a);for(var c=0;c<this.VSRecords.length;c=c+1|0)this.VSRecords[c].compile(a);for(var c=0;c<this.VSRecords.length;c=c+1|0)this.VSRecords[c].finalize(a,b)},v.Table.CmapEncodingTableFormat14.prototype.GID2CharCode=function(){throw"not impremented"},v.Table.CmapEncodingTableFormat14.prototype.CharCode2GID=function(){throw"not impremented"},v.Table.VariationSelectorRecord=function(){this.varSelector=new v.Type.UINT24,this.defaultUVSOffset=new v.Type.LONGOFFSET(v.Table.DefaultUVSTable),this.nonDefaultUVSOffset=new v.Type.LONGOFFSET(v.Table.NonDefaultUVSTable)},v.Table.VariationSelectorRecord.prototype.decompile=function(a,b){this.varSelector.decompile(a),this.defaultUVSOffset.decompile(a,b,!0),this.nonDefaultUVSOffset.decompile(a,b,!0)},v.Table.VariationSelectorRecord.prototype.compile=function(a){this.varSelector.compile(a),this.defaultUVSOffset.compile(a),this.nonDefaultUVSOffset.compile(a)},v.Table.VariationSelectorRecord.prototype.finalize=function(a,b){this.defaultUVSOffset.finalize(a,b),this.nonDefaultUVSOffset.finalize(a,b)},v.Table.DefaultUVSTable=function(){this.numUnicodeValueRanges=new v.Type.ULONG,this.UnicodeValueRanges=[]},v.Table.DefaultUVSTable.prototype.compile=function(a){this.numUnicodeValueRanges.set(this.UnicodeValueRanges.length),this.numUnicodeValueRanges.compile(a);for(var b=0;b<this.UnicodeValueRanges.length;b=b+1|0)this.UnicodeValueRanges[b].startUnicodeValue.compile(a),this.UnicodeValueRanges[b].additionalCount.compile(a)},v.Table.DefaultUVSTable.prototype.decompile=function(a){this.numUnicodeValueRanges.decompile(a);for(var b=0;b<this.numUnicodeValueRanges.get();b=b+1|0){var c=new v.Type.UINT24;c.decompile(a);var d=new v.Type.BYTE;d.decompile(a),this.UnicodeValueRanges[b]={startUnicodeValue:c,additionalCount:d}}},v.Table.NonDefaultUVSTable=function(){this.numUVSMappings=new v.Type.ULONG,this.UVSMappings=[]},v.Table.NonDefaultUVSTable.prototype.compile=function(a){this.numUVSMappings.set(this.UVSMappings.length),this.numUVSMappings.compile(a);for(var b=0;b<this.UVSMappings.length;b=b+1|0)this.UVSMappings[b].unicodeValue.compile(a),this.UVSMappings[b].glyphID.compile(a)},v.Table.NonDefaultUVSTable.prototype.decompile=function(a){this.numUVSMappings.decompile(a);for(var b=0;b<this.numUVSMappings.get();b=b+1|0){var c=new v.Type.UINT24;c.decompile(a);var d=new v.Type.USHORT;d.decompile(a),this.UVSMappings[b]={unicodeValue:c,glyphID:d}}},v.Table.Loca=function(a){this.tag="loca",this.offsets=[],this._TTF=a},v.Table.Loca.prototype.decompile=function(a){var b=this._TTF.getTableData("maxp").table.numGlyphs.get()+1,c=this._TTF.getTableData("head").table.indexToLocFormat.get();this.offsets=new Array(b);for(var d=0;b>d;d=d+1|0)0==c?this.offsets[d]=new v.Type.USHORT:1==c&&(this.offsets[d]=new v.Type.ULONG),this.offsets[d].decompile(a)},v.Table.Loca.prototype.compile=function(a){for(var b=0;b<this.offsets.length;b=b+1|0)this.offsets[b].compile(a)},v.Table.LTSH=function(a){this.tag="LTSH",this.version=new v.Type.USHORT,this.numGlyphs=new v.Type.USHORT,this.yPels=[],this._TTF=a},v.Table.LTSH.prototype.decompile=function(a){this.version.decompile(a),this.numGlyphs.decompile(a);for(var b=0;b<this.numGlyphs.get();b=b+1|0)this.yPels[b]=new v.Type.BYTE,this.yPels[b].decompile(a)},v.Table.LTSH.prototype.compile=function(a){this.version.compile(a),this.numGlyphs.compile(a);for(var b=0;b<this.numGlyphs.length;b=b+1|0)this.yPels[b].compile(a)},v.Table.VORG=function(a){this.tag="VORG",this.majorVersion=new v.Type.USHORT,this.minorVersion=new v.Type.USHORT,this.defaultVertOriginY=new v.Type.SHORT,this.numVertOriginYMetrics=new v.Type.USHORT,this.vertOriginYMetricsArray=[],this._TTF=a},v.Table.VORG.prototype.decompile=function(a){this.majorVersion.decompile(a),this.minorVersion.decompile(a),this.defaultVertOriginY.decompile(a),this.numVertOriginYMetrics.decompile(a);for(var b=0;b<this.numVertOriginYMetrics.get();b=b+1|0)this.vertOriginYMetricsArray[b]=new v.Table.vertOriginYMetrics,this.vertOriginYMetricsArray[b].decompile(a)},v.Table.VORG.prototype.compile=function(a){this.majorVersion.compile(a),this.minorVersion.compile(a),this.defaultVertOriginY.compile(a),this.numVertOriginYMetrics.compile(a);for(var b=0;b<this.vertOriginYMetricsArray.length;b=b+1|0)this.vertOriginYMetricsArray[b].compile(a)},v.Table.vertOriginYMetrics=function(a){this.tag="vertOriginYMetrics",this.glyphIndex=new v.Type.USHORT,this.vertOriginY=new v.Type.SHORT},v.Table.vertOriginYMetrics.prototype.decompile=function(a){this.tag="vertOriginYMetrics",this.glyphIndex.decompile(a),this.vertOriginY.decompile(a)},v.Table.vertOriginYMetrics.prototype.copmpile=function(a){this.tag="vertOriginYMetrics",this.glyphIndex.compile(a),this.vertOriginY.compile(a)},v.Table.Name=function(){this.tag="name",this.format=new v.Type.USHORT,this.count=new v.Type.USHORT,this.stringOffset=new v.Type.USHORT,this.nameRecords=null,this.langTagCount=new v.Type.USHORT,this.langTagRecord=null,this.stringData=null},v.Table.Name.prototype.decompile=function(a){var b=a.offset;this.format.decompile(a),this.count.decompile(a),this.stringOffset.decompile(a),this.nameRecords=new Array;for(var c=-1e3,d=-1e3,e=0;e<this.count.get();e=e+1|0)this.nameRecords[e]=new v.Table.NameRecord,this.nameRecords[e].decompile(a),c<this.nameRecords[e].offset.get()&&(c=this.nameRecords[e].offset.get(),d=this.nameRecords[e].length.get());if(this.format>0){this.langTagCount.decompile(a),this.langTagRecords=new Array;for(var e=0;e<this.langTagCount.get();e=e+1|0)this.langTagRecords[e]=new v.Table.LangTagRecord,this.langTagRecords[e].decompile(a),c<this.langTagRecords[e].offset.get()&&(c=this.langTagRecords[e].offset.get(),d=this.langTagRecords[e].length.get())}var f=b+this.stringOffset.get();this.stringData=new Array(d+c);for(var e=0;d+c>e;e=e+1|0)this.stringData[e]=a.data[e+f];for(var e=0;e<this.nameRecords.length;e=e+1|0){var g=this.nameRecords[e];g._string=this.stringData.slice(g.offset.get(),g.offset.get()+g.length.get())}},v.Table.Name.prototype.compile=function(a){this.format.compile(a),this.count.compile(a),this.stringOffset.compile(a);for(var b=0;b<this.nameRecords.length;b=b+1|0)this.nameRecords[b].compile(a);if(this.format>0){this.langTagCount.compile(a);for(var b=0;b<this.langTagCount.get();b=b+1|0)this.langTagRecords[b].compile()}for(var b=0;b<this.stringData.length;b=b+1|0)a.data[a.offset]=this.stringData[b],a.offset+=1},v.Table.LangTagRecord=function(){this.length=new v.Type.USHORT,this.offset=new v.Type.USHORT},v.Table.LangTagRecord.prototype.decompile=function(a){this.length.decompile(a),this.offset.decompile(a)},v.Table.LangTagRecord.prototype.compile=function(a){this.length.compile(a),this.offset.compile(a)},v.Table.NameRecord=function(){this.platformID=new v.Type.USHORT,this.encodingID=new v.Type.USHORT,this.languageID=new v.Type.USHORT,this.nameID=new v.Type.USHORT,this.length=new v.Type.USHORT,this.offset=new v.Type.USHORT,this._string=[]},v.Table.NameRecord.prototype.decompile=function(a){this.platformID.decompile(a),this.encodingID.decompile(a),this.languageID.decompile(a),this.nameID.decompile(a),this.length.decompile(a),this.offset.decompile(a)},v.Table.NameRecord.prototype.compile=function(a){this.platformID.compile(a),this.encodingID.compile(a),this.languageID.compile(a),this.nameID.compile(a),this.length.compile(a),this.offset.compile(a)},v.Table.Hdmx=function(a){this.tag="hdmx",this.version=new v.Type.USHORT,this.numRecords=new v.Type.SHORT,this.sizeDeviceRecord=new v.Type.LONG,this.records=null,this._TTF=a},v.Table.Hdmx.prototype.decompile=function(a){this.version.decompile(a),this.numRecords.decompile(a),this.sizeDeviceRecord.decompile(a),this.records=new Array(this.numRecords.get());for(var b=this.sizeDeviceRecord.get()-(2+this._TTF.getTableData("maxp").table.numGlyphs.get()),c=0;c<this.numRecords.get();c=c+1|0)this.records[c]=new v.Table.DeviceRecord(this._TTF),this.records[c].decompile(a),a.offset+=b},v.Table.Hdmx.prototype.compile=function(a){this.version.compile(a),this.numRecords.compile(a),this.sizeDeviceRecord.compile(a);for(var b=this.sizeDeviceRecord.get()-(2+this._TTF.getTableData("maxp").table.numGlyphs.get()),c=0;c<this.numRecords.get();c=c+1|0){this.records[c].compile(a);for(var d=0;b>d;d=d+1|0)a.data[a.offset]=0,a.offset+=1}},v.Table.DeviceRecord=function(a){this.pixelSize=new v.Type.BYTE,this.maxWidth=new v.Type.BYTE,this.widths=null,this._TTF=a},v.Table.DeviceRecord.prototype.decompile=function(a){this.pixelSize.decompile(a),this.maxWidth.decompile(a),this.widths=new Array(this._TTF.getTableData("maxp").table.numGlyphs.get());for(var b=0;b<this.widths.length;b=b+1|0)this.widths[b]=new v.Type.BYTE,this.widths[b].decompile(a)},v.Table.DeviceRecord.prototype.compile=function(a){this.pixelSize.compile(a),this.maxWidth.compile(a);for(var b=0;b<this.widths.length;b=b+1|0)this.widths[b].compile(a)},v.Table.PCLT=function(){this.tag="PCLT",this.version=new v.Type.Fixed,this.fontNumber=new v.Type.ULONG,this.pitch=new v.Type.USHORT,this.xHeight=new v.Type.USHORT,this.style=new v.Type.USHORT,this.typeFamily=new v.Type.USHORT,this.capHeight=new v.Type.USHORT,this.symbolSet=new v.Type.USHORT,this.typeface=new Array(16);for(var a=0;16>a;a=a+1|0)this.typeface[a]=new v.Type.CHAR;this.characterComplement=new Array(8);for(var a=0;8>a;a=a+1|0)this.characterComplement[a]=new v.Type.CHAR;this.fileName=new Array(6);for(var a=0;6>a;a=a+1|0)this.fileName[a]=new v.Type.CHAR;this.strokeWeight=new v.Type.CHAR,this.widthType=new v.Type.CHAR,this.serifStyle=new v.Type.BYTE,this.reserved=new v.Type.BYTE},v.Table.PCLT.prototype.decompile=function(a){this.version.decompile(a),this.fontNumber.decompile(a),this.pitch.decompile(a),this.xHeight.decompile(a),this.style.decompile(a),this.typeFamily.decompile(a),this.capHeight.decompile(a),this.symbolSet.decompile(a);for(var b=0;16>b;b=b+1|0)this.typeface[b].decompile(a);for(var b=0;8>b;b=b+1|0)this.characterComplement[b].decompile(a);for(var b=0;6>b;b=b+1|0)this.fileName[b].decompile(a);this.strokeWeight.decompile(a),this.widthType.decompile(a),this.serifStyle.decompile(a),this.reserved.decompile(a)},v.Table.PCLT.prototype.compile=function(a){this.version.compile(a),this.fontNumber.compile(a),this.pitch.compile(a),this.xHeight.compile(a),this.style.compile(a),this.typeFamily.compile(a),this.capHeight.compile(a),this.symbolSet.compile(a);for(var b=0;16>b;b=b+1|0)this.typeface[b].compile(a);for(var b=0;8>b;b=b+1|0)this.characterComplement[b].compile(a);for(var b=0;6>b;b=b+1|0)this.fileName[b].compile(a);this.strokeWeight.compile(a),this.widthType.compile(a),this.serifStyle.compile(a),this.reserved.compile(a)},v.Table.Vmtx=function(a){this.tag="vmtx",this.vMetrics=[],this.topSideBearing=[],this._TTF=a},v.Table.Vmtx.prototype.decompile=function(a){var b=this._TTF.getTableData("vhea").table.numOfLongVerMetrics.get();this.vMetrics=new Array(b);for(var c=0;b>c;c=c+1|0)this.vMetrics[c]=new v.Table.LongVerMetric,this.vMetrics[c].decompile(a);var d=this._TTF.getTableData("maxp").table.numGlyphs.get()-b;this.topSideBearing=new Array(d);for(var c=0;d>c;c=c+1|0)this.topSideBearing[c]=new v.Type.SHORT,this.topSideBearing[c].decompile(a)},v.Table.Vmtx.prototype.compile=function(a){for(var b=0;b<this.vMetrics.length;b=b+1|0)this.vMetrics[b].compile(a);for(var b=0;b<this.topSideBearing.length;b=b+1|0)this.topSideBearing[b].compile(a)},v.Table.LongVerMetric=function(){this.advanceHeight=new v.Type.USHORT,this.topSideBearing=new v.Type.SHORT},v.Table.LongVerMetric.prototype.decompile=function(a){this.advanceHeight.decompile(a),this.topSideBearing.decompile(a)},v.Table.LongVerMetric.prototype.compile=function(a){this.advanceHeight.compile(a),this.topSideBearing.compile(a)},v.Table.Hmtx=function(a){this.tag="hmtx",this.hMetrics=[],this.leftSideBearings=[],this._TTF=a},v.Table.Hmtx.prototype.decompile=function(a){var b=this._TTF.getTableData("hhea").table.numberOfHMetrics.get();this.hMetrics=new Array(b);for(var c=0;b>c;c=c+1|0)this.hMetrics[c]=new v.Table.LongHorMetric,this.hMetrics[c].decompile(a);var d=this._TTF.getTableData("maxp").table.numGlyphs.get()-b;this.leftSideBearings=new Array(d);for(var c=0;d>c;c=c+1|0)this.leftSideBearings[c]=new v.Type.SHORT,this.leftSideBearings[c].decompile(a)},v.Table.Hmtx.prototype.compile=function(a){for(var b=0;b<this.hMetrics.length;b=b+1|0)this.hMetrics[b].compile(a);for(var b=0;b<this.leftSideBearings.length;b=b+1|0)this.leftSideBearings[b].compile(a)},v.Table.LongHorMetric=function(){this.advanceWidth=new v.Type.USHORT,this.lsb=new v.Type.SHORT},v.Table.LongHorMetric.prototype.decompile=function(a){this.advanceWidth.decompile(a),this.lsb.decompile(a)},v.Table.LongHorMetric.prototype.compile=function(a){this.advanceWidth.compile(a),this.lsb.compile(a)},v.Table.Glyf=function(a){this.tag="glyf",this.elements=[],this._TTF=a},v.Table.Glyf.prototype.decompile=function(a){var b=a.offset,c=this._TTF.getTableData("loca").table,d=this._TTF.getTableData("head").table.indexToLocFormat.get();this.elements=new Array(c.offsets.length-1);for(var e=0;e<c.offsets.length-1;e=e+1|0){this.elements[e]=new v.Table.GlyfElement(this.elements);try{if(0==d)this.elements[e].data=a.data.subarray(b+2*c.offsets[e].get(),b+2*c.offsets[e+1].get());else{if(1!=d)throw"ERR";this.elements[e].data=a.data.subarray(b+c.offsets[e].get(),b+c.offsets[e+1].get())}}catch(f){}}},v.Table.Glyf.prototype.compile=function(a){for(var b=(a.offset,0);b<this.elements.length;b=b+1|0)a.data.set(this.elements[b].data,a.offset),a.offset+=this.elements[b].data.length},v.Table.GlyfElement=function(a){this.data=[],this._elements=a,this.numberOfContours=new v.Type.SHORT,this.xMin=new v.Type.SHORT,this.yMin=new v.Type.SHORT,this.xMax=new v.Type.SHORT,this.yMax=new v.Type.SHORT,this.glyph=null},v.Table.GlyfElement.prototype.decompile=function(a){null==a&&(a={data:this.data,offset:0}),this.numberOfContours.decompile(a),this.xMin.decompile(a),this.yMin.decompile(a),this.xMax.decompile(a),this.yMax.decompile(a),0==this.numberOfContours.get()||(this.numberOfContours.get()>0?(this.glyph=new v.Table.SimpleGlyph(this),this.glyph.decompile(a)):(this.glyph=new v.Table.CompositeGlyph(this),this.glyph.decompile(a)))},v.Table.GlyfElement.prototype.compile=function(){var a=new ArrayBuffer(1e3),b=new Uint8Array(a),c={data:b,offset:0,memory:!0};this.numberOfContours.get()>0&&(this.numberOfContours.compile(c),this.xMin.compile(c),this.yMin.compile(c),this.xMax.compile(c),this.yMax.compile(c),this.glyph.compile(c),v.TTF.prototype.padding(c,4)),this.data=c.data.subarray(0,c.offset)},v.Table.GlyfElement.prototype.getPath=function(){return 0==this.numberOfContours.get()?" ":this.glyph.getPath(this._elements)},v.Table.GlyfElement.prototype.setPath=function(a){this.glyph=new v.Table.SimpleGlyph,this.glyph.setPath(a,this)},v.Table.SimpleGlyph=function(a){this.endPtsOfContours=[],this.instructionLength=new v.Type.USHORT,this.instructions=[],this.flags=[],this.xCoordinates=[],this.yCoordinates=[],this._glyf=a},v.Table.SimpleGlyph.prototype.decompile=function(a){var b=this._glyf.numberOfContours.get();this.endPtsOfContours=new Array(b);for(var c=0;b>c;c=c+1|0)this.endPtsOfContours[c]=new v.Type.USHORT,this.endPtsOfContours[c].decompile(a);this.instructionLength.decompile(a),this.instructions=new Array(this.instructionLength.get());for(var c=0;c<this.instructionLength.get();c=c+1|0)this.instructions[c]=new v.Type.BYTE,this.instructions[c].decompile(a);this.flags=[];for(var c=0;c<this.endPtsOfContours[b-1].get()+1;c=c+1|0){var d=new v.Type.BYTE;if(d.decompile(a),this.flags.push(d),8&d.get()){var e=new v.Type.BYTE;e.decompile(a),this.flags.push(e),c+=e.get()}}this.xCoordinates=[];for(var c=0;c<this.flags.length;c=c+1|0){for(var e=8&this.flags[c].get()?this.flags[c+1].get()+1:1,f=0;e>f;f=f+1|0){var g=2&this.flags[c].get()?new v.Type.BYTE:new v.Type.SHORT;!(2&this.flags[c].get())&&16&this.flags[c].get()||(g.decompile(a),this.xCoordinates.push(g))}c=e>1?c+1:c}this.yCoordinates=[];for(var c=0;c<this.flags.length;c=c+1|0){for(var e=8&this.flags[c].get()?this.flags[c+1].get()+1:1,f=0;e>f;f=f+1|0){var h=4&this.flags[c].get()?new v.Type.BYTE:new v.Type.SHORT;!(4&this.flags[c].get())&&32&this.flags[c].get()||(h.decompile(a),this.yCoordinates.push(h))}c=e>1?c+1:c}},v.Table.SimpleGlyph.prototype.compile=function(a){for(var b=0;b<this.endPtsOfContours.length;b=b+1|0)this.endPtsOfContours[b].compile(a);this.instructionLength.compile(a);for(var b=0;b<this.instructions.length;b=b+1|0)this.instructions[b].compile(a);for(var b=0;b<this.flags.length;b=b+1|0)this.flags[b].compile(a);for(var b=0;b<this.xCoordinates.length;b=b+1|0)this.xCoordinates[b].compile(a);for(var b=0;b<this.yCoordinates.length;b=b+1|0)this.yCoordinates[b].compile(a)},v.Table.SimpleGlyph.prototype.getPath=function(){for(var a=this,b=0,c=0,d=[],e=[],f=0,g=[],h=[],i="",j=[],k=[],l=[],m=[],n=0,o=0,p=0;p<a.flags.length;p=p+1|0){for(var q=8&a.flags[p].get()?a.flags[p+1].get()+1:1,r=0;q>r;r=r+1|0)e.push(a.flags[p].get());p=q>1?p+1:p}for(var p=0;p<e.length;p=p+1|0){var s=0;s=2&e[p]?(16&e[p]?1:-1)*a.xCoordinates[b++].get():16&e[p]?0:a.xCoordinates[b++].get(),c+=s,d.push(c)}b=0;for(var p=0;p<e.length;p=p+1|0){var t=0;t=4&e[p]?(32&e[p]?1:-1)*a.yCoordinates[b++].get():32&e[p]?0:a.yCoordinates[b++].get(),f+=t,g.push(f)}for(var p=0;p<a.endPtsOfContours.length;p=p+1|0)h.push(a.endPtsOfContours[p].get());for(var p=0;p<h.length;p=p+1|0){for(var u=h[p],v=n;u+1>v;v++)if(k.push(e[v]),m.push(g[v]),l.push(d[v]),u!=v){if(!(1&e[v]||1&e[v+1])){k.push(1);var w=g[v+1]-g[v],x=d[v+1]-d[v];m.push(g[v]+w/2),l.push(d[v]+x/2),o+=1}}else{if(!(1&e[n]||1&e[u])){k.push(1);var w=g[n]-g[v],x=d[n]-d[v];m.push(g[v]+w/2),l.push(d[v]+x/2),o+=1}j.push(u+o)}n=u+1}n=0;for(var p=0;p<j.length;p=p+1|0){for(var u=j[p],v=n;u+1>v;v++){var s=l[v],t=m[v];if(n!=v){var y=l[v-1],z=m[v-1];if(1&k[v])if(1&k[v-1])i+="l "+s+" "+t+" ";else{if(v-1==n){i+="m "+s+" "+t+" ";continue}i+="q "+s+" "+t+" ",i+=y+" "+z+" "}if(u==v){var A=l[n],B=m[n];1&k[v]?1&k[n]?i+="l "+A+" "+B+" ":(i+="q "+l[n+1]+" "+m[n+1]+" ",i+=A+" "+B+" "):(i+="q "+A+" "+B+" ",i+=s+" "+t+" ")}}else 1&k[n]&&(i+="m "+s+" "+t+" ")}n=u+1}return i},v.Table.SimpleGlyph.prototype.setPath=function(a,b){for(var c=a.split(" "),d=[],e=[],f=0,g=0,h=[],i=0,j=[],k=0,l=1e4,m=-1e4,n=1e4,o=-1e4;c[k];){switch(c[k]){case"m":case"M":if(0!=i){var p=new v.Type.USHORT;p.set(i-1),h.push(p)}break;case"l":case"L":var q=1,r=c[k];k=k+1|0;var s=new v.Type.SHORT;if(s.set(r-f),0==s.get())q+=16;else if(Math.abs(s.get())<=255){q+=2,s.get()>0&&(q+=16);var t=new v.Type.BYTE;t.set(Math.abs(s.get())),d.push(t)}else d.push(s);f=r,l=Math.min(r,l),m=Math.max(r,m);var u=c[k];k=k+1|0;var w=new v.Type.SHORT;if(w.set(u-g),0==w.get())q+=32;else if(Math.abs(w.get())<=255){q+=4,w.get()>0&&(q+=32);var t=new v.Type.BYTE;t.set(Math.abs(w.get())),e.push(t)}else e.push(w);g=u,n=Math.min(u,n),o=Math.max(u,o),i++;var x=new v.Type.BYTE;x.set(q),j.push(x);break;case"q":case"Q":var q=0,y=c[k];k=k+1|0;var z=c[k];k=k+1|0;var r=c[k];k=k+1|0;var u=c[k];k=k+1|0;var s=new v.Type.SHORT;if(s.set(y-f),0==s.get())q+=16;else if(Math.abs(s.get())<=255){q+=2,s.get()>0&&(q+=16);var t=new v.Type.BYTE;t.set(Math.abs(s.get())),d.push(t)}else d.push(s);f=y,l=Math.min(y,l),m=Math.max(y,m);var w=new v.Type.SHORT;if(w.set(z-g),0==w.get())q+=32;else if(Math.abs(w.get())<=255){q+=4,w.get()>0&&(q+=32);var t=new v.Type.BYTE;t.set(Math.abs(w.get())),e.push(t)}else e.push(w);g=z,n=Math.min(z,n),o=Math.max(z,o);var x=new v.Type.BYTE;if(x.set(q),j.push(x),i++,q=1,s=new v.Type.SHORT,s.set(r-f),0==s.get())q+=16;else if(Math.abs(s.get())<=255){q+=2,s.get()>0&&(q+=16);var t=new v.Type.BYTE;t.set(Math.abs(s.get())),d.push(t)}else d.push(s);f=r,l=Math.min(r,l),m=Math.max(r,m);var w=new v.Type.SHORT;if(w.set(u-g),0==w.get())q+=32;else if(Math.abs(w.get())<=255){q+=4,w.get()>0&&(q+=32);var t=new v.Type.BYTE;t.set(Math.abs(w.get())),e.push(t)}else e.push(w);g=u,n=Math.min(u,n),o=Math.max(u,o),x=new v.Type.BYTE,x.set(q),j.push(x),i++;break;case"z":case"Z":}k=k+1|0}if(0!=i){var p=new v.Type.USHORT;p.set(i-1),h.push(p)}b.numberOfContours.set(h.length),b.xMin.set(l),b.xMax.set(m),b.yMin.set(n),b.yMax.set(o),this.xCoordinates=d,this.yCoordinates=e,this.flags=j,this.endPtsOfContours=h},v.Table.CompositeGlyph=function(){this.components=[],this.numInstr=null,this.instr=[]},v.Table.CompositeGlyph.prototype.decompile=function(a){var b=null,c=0;do if(b=new v.Table.CompositeGlyphComponent(a),b.decompile(a),this.components.push(b),c=c+1|0,c>10)break;while(b.flags.get()&v.DEF.GLYF.MORE_COMPONENTS);if(b.flags.get()&v.DEF.GLYF.WE_HAVE_INSTRUCTIONS){this.numInstr=new v.Type.USHORT,this.numInstr.decompile(a);for(var c=0;c<this.numInstr.get();c=c+1|0)this.instr[c]=new v.Type.BYTE,this.instr[c].decompile(a)}},v.Table.CompositeGlyph.prototype.compile=function(a){for(var b=null,c=0;c<this.components.length;c=c+1|0)b=this.components[c],b.compile(a);if(b.flags.get()&v.DEF.GLYF.WE_HAVE_INSTRUCTIONS){this.numInstr.compile(a);for(var c=0;c<this.instr.length;c=c+1|0)this.instr[c].compile(a)}},v.Table.CompositeGlyph.prototype.getPath=function(a){for(var b="",c=0;c<this.components.length;c=c+1|0){var d=this.components[c];b+="m "+d.argument1.get()+" "+d.argument2.get()+" ",b+=a[d.glyphIndex.get()].getPath(),b+="m "+-1*d.argument1.get()+" "+-1*d.argument2.get()+" "}return b},v.Table.CompositeGlyph.prototype.setPath=function(){throw"not impremented"},v.Table.CompositeGlyphComponent=function(){this.flags=new v.Type.USHORT,this.glyphIndex=new v.Type.USHORT,this.argument1=null,this.argument2=null,this.arg1and2=null,this.scale=null,this.xscale=null,this.yscale=null,this.scale01=null,this.scale10=null,this.yscale=null,this.scale01=null,this.scale10=null},v.Table.CompositeGlyphComponent.prototype.decompile=function(a){this.flags.decompile(a),this.glyphIndex.decompile(a),this.flags.get()&v.DEF.GLYF.ARG_1_AND_2_ARE_WORDS?(this.argument1=new v.Type.SHORT,this.argument2=new v.Type.SHORT,this.argument1.decompile(a),this.argument2.decompile(a)):(this.argument1=new v.Type.BYTE,this.argument2=new v.Type.BYTE,this.argument1.decompile(a),this.argument2.decompile(a),this.arg1and2=this.argument1.get()<<8|this.argument2.get()),this.flags.get()&v.DEF.GLYF.WE_HAVE_A_SCALE?(this.scale=new v.Type.F2Dot14,this.scale.decompile(a)):this.flags.get()&v.DEF.GLYF.WE_HAVE_AN_X_AND_Y_SCALE?(this.xscale=new v.Type.F2Dot14,this.yscale=new v.Type.F2Dot14,this.xscale.decompile(a),this.yscale.decompile(a)):this.flags.get()&v.DEF.GLYF.WE_HAVE_A_TWO_BY_TWO&&(this.xscale=new v.Type.F2Dot14,this.scale01=new v.Type.F2Dot14,this.scale10=new v.Type.F2Dot14,this.yscale=new v.Type.F2Dot14,this.xscale.decompile(a),this.scale01.decompile(a),this.scale10.decompile(a),this.yscale.decompile(a))},v.Table.CompositeGlyphComponent.prototype.compile=function(a){this.flags.compile(a),this.glyphIndex.compile(a),this.argument1.decompile(a),this.argument2.decompile(a),this.flags.get()&v.DEF.GLYF.WE_HAVE_A_SCALE?this.scale.compile(a):this.flgas.get()&v.DEF.GLYF.WE_HAVE_AN_X_AND_Y_SCALE?(this.xscale.compile(a),this.yscale.compile(a),this.xscale.compile(a),this.yscale.compile(a)):this.flags.get()&v.DEF.GLYF.WE_HAVE_A_TWO_BY_TWO&&(this.xscale.compile(a),this.scale01.compile(a),this.scale10.compile(a),this.yscale.compile(a))},v.Table.VDMX=function(a){throw this.tag="VDMX",this.version=new v.Type.USHORT,this.numRecs=new v.Type.USHORT,this.numRatios=new v.Type.USHORT,this.ratRanges=null,this.offsets=null,this.groups=null,this._TTF=a,"is not impremented"},v.Table.VDMX.prototype.decompile=function(a){var b=a.offset;this.version.decompile(a),this.numRecs.decompile(a),this.numRatios.decompile(a),this.ratRanges=new Array(this.numRatios.get());for(var c=0;c<this.numRatios.get();c=c+1|0)this.ratRanges[c]=new v.Table.RatioRecord,this.ratRanges[c].decompile(a);this.offsets=new Array(this.numRatios.get());for(var c=0;c<this.numRatios.get();c=c+1|0)this.offsets[c]=new v.Type.USHORT,this.offsets[c].decompile(a);this.groups=new Array(this.numRatios.get());for(var c=0;c<this.numRecs.get();c=c+1|0)a.offset=b+this.offsets[c],this.groups[c]=new v.Table.VDMXGroup,this.groups[c].decompile(a)},v.Table.VDMX.prototype.compile=function(){var a=[];a=a.concat(this.version.compile()),a=a.concat(this.numRecs.compile()),a=a.concat(this.numRatios.compile());for(var b=0;b<this.numRatios.get();b=b+1|0)a=a.concat(this.ratRanges[b].compile());for(var b=0;b<this.numRatios.get();b=b+1|0)a=a.concat(this.offsets[b].compile());for(var c=a.length,b=0;b<this.groups.length;b=b+1|0){var d=this.groups[b].compile();if(c<this.offsets[b].get()){for(var e=c;e<this.offsets[b].get();e=e+1|0)a[e]=0;c=this.offsets[b].get()+d.length}for(var e=0;e<d.length;e=e+1|0)a[this.offsets[b].get()+e]=d[e];c<this.offsets[b].get()+d.length&&(c=this.offsets[b].get()+d.length)}return a},v.Table.RatioRecord=function(){this.bCharSet=new v.Type.BYTE,this.xRatio=new v.Type.BYTE,this.yStartRatio=new v.Type.BYTE,this.yEndRatio=new v.Type.BYTE},v.Table.RatioRecord.prototype.decompile=function(a){this.bCharSet.decompile(a),this.xRatio.decompile(a),this.yStartRatio.decompile(a),this.yEndRatio.decompile(a)},v.Table.RatioRecord.prototype.compile=function(){var a=[];return a=a.concat(this.bCharSet.compile()),a=a.concat(this.xRatio.compile()),a=a.concat(this.yStartRatio.compile()),a=a.concat(this.yEndRatio.compile())},v.Table.VDMXGroup=function(){this.recs=new v.Type.USHORT,this.startsz=new v.Type.BYTE,this.endsz=new v.Type.BYTE,this.entry=null},v.Table.VDMXGroup.prototype.decompile=function(a){this.recs.decompile(a),this.startsz.decompile(a),this.endsz.decompile(a),this.entry=new Array(this.recs.get());for(var b=0;b<this.recs.length;b=b+1|0)this.entry[b]=new v.Table.VTableRecord,this.entry[b].decompile(a)},v.Table.VDMXGroup.prototype.compile=function(){var a=[];a=a.concat(this.recs.compile()),a=a.concat(this.startsz.compile()),a=a.concat(this.endsz.compile());for(var b=0;b<this.recs.length;b=b+1|0)a=a.concat(this.entry[b].compile());return a},v.Table.VTableRecord=function(){yPelHeight=new v.Type.USHORT,yMax=new v.Type.USHORT,yMin=new v.Type.USHORT},v.Table.VTableRecord.prototype.decompile=function(a){yPelHeight.decompile(a),yMax.decompile(a),yMin.decompile(a)},v.Table.VTableRecord.prototype.compile=function(){var a=[];return a=a.concat(yPelHeight.compile()),a=a.concat(yMax.compile()),a=a.concat(yMin.compile())},v.Table.Gasp=function(){this.tag="gasp",this.version=new v.Type.USHORT,this.numRanges=new v.Type.USHORT,this.gaspRange=null},v.Table.Gasp.prototype.decompile=function(a){this.version.decompile(a),this.numRanges.decompile(a),this.gaspRange=new Array(this.numRanges.get());for(var b=0;b<this.numRanges.get();b=b+1|0)this.gaspRange[b]=new v.Table.GaspTable,this.gaspRange[b].decompile(a)},v.Table.Gasp.prototype.compile=function(a){this.version.compile(a),this.numRanges.compile(a);for(var b=0;b<this.numRanges.get();b=b+1|0)this.gaspRange[b].compile(a)},v.Table.GaspTable=function(){this.rangeMaxPPEM=new v.Type.USHORT,this.rangeGaspBehavior=new v.Type.USHORT},v.Table.GaspTable.prototype.decompile=function(a){this.rangeMaxPPEM.decompile(a),this.rangeGaspBehavior.decompile(a)},v.Table.GaspTable.prototype.compile=function(a){this.rangeMaxPPEM.compile(a),this.rangeGaspBehavior.compile(a)},v.Table.Kern=function(){this.tag="kern",this.version=new v.Type.USHORT,this.nTables=new v.Type.USHORT,this.KerningSubtableHeaders=null,this.subtables=null},v.Table.Kern.prototype.decompile=function(a){this.version.decompile(a),this.nTables.decompile(a),this.kerningSubtableHeaders=new Array(this.nTables.get());for(var b=0;b<this.nTables.get();b=b+1|0)this.kerningSubtableHeaders[b]=new v.Table.KerningSubtablesHeader,this.kerningSubtableHeaders[b].decompile(a);this.subtables=new Array(this.nTables.get());for(var b=0;b<this.nTables.get();b=b+1|0){var c=this.kerningSubtableHeaders[b].coverage.get()>>8&15;if(0==c)this.subtables[b]=new v.Table.KernSubTableFormat0;else{if(2!=c)throw"unknown format";this.subtables[b]=new v.Table.KernSubTableFormat2}this.subtables[b].decompile(a)}},v.Table.Kern.prototype.compile=function(){var a=[];a=a.concat(this.version.compile()),a=a.concat(this.nTables.compile());for(var b=0;b<this.kerningSubtableHeaders.length;b=b+1|0)a=a.concat(this.kerningSubtableHeaders[b].compile());for(var b=0;b<this.subtables.length;b=b+1|0)a=a.concat(this.subtables[b].compile());return a},v.Table.KerningSubtablesHeader=function(){this.version=new v.Type.USHORT,this.length=new v.Type.USHORT,this.coverage=new v.Type.USHORT},v.Table.KerningSubtablesHeader.prototype.decompile=function(a){this.version.decompile(a),this.length.decompile(a),this.coverage.decompile(a)},v.Table.KerningSubtablesHeader.prototype.decompile=function(a){this.version.decompile(a),this.length.decompile(a),this.coverage.decompile(a)},v.Table.KerningSubtablesHeader.prototype.compile=function(){var a=[];return a=a.concat(this.version.compile()),a=a.concat(this.length.compile()),a=a.concat(this.coverage.compile())},v.Table.KernSubTableFormat0=function(){this.nPairs=new v.Type.USHORT,this.searchRange=new v.Type.USHORT,this.entrySelector=new v.Type.USHORT,this.rangeShift=new v.Type.USHORT,this.kerningPairs=null},v.Table.KernSubTableFormat0.prototype.decompile=function(a){this.nPairs.decompile(a),this.searchRange.decompile(a),this.entrySelector.decompile(a),
this.rangeShift.decompile(a),this.kerningPairs=new Array(this.nPairs.get());for(var b=0;b<this.nPairs.get();b=b+1|0)this.kerningPairs[b]=new v.Table.KernSubTableFormat0KerningPair,this.kerningPairs[b].decompile(a)},v.Table.KernSubTableFormat0.prototype.compile=function(){var a=[];a=a.concat(this.nPairs.compile()),a=a.concat(this.searchRange.compile()),a=a.concat(this.entrySelector.compile()),a=a.concat(this.rangeShift.compile());for(var b=0;b<this.kerningPairs.length;b=b+1|0)a=a.concat(this.kerningPairs[b].compile());return a},v.Table.KernSubTableFormat0KerningPair=function(){this.left=new v.Type.USHORT,this.right=new v.Type.USHORT,this.value=new v.Type.FWORD},v.Table.KernSubTableFormat0KerningPair.prototype.decompile=function(a){this.left.decompile(a),this.right.decompile(a),this.value.decompile(a)},v.Table.KernSubTableFormat0KerningPair.prototype.compile=function(){var a=[];return a=a.concat(this.left.compile()),a=a.concat(this.right.compile()),a=a.concat(this.value.compile())},v.Table.KernSubTableFormat2=function(){throw this.rowWidth=new v.Type.USHORT,this.leftClassTable=new v.Type.USHORT,this.rightClassTable=new v.Type.USHORT,this.array=new v.Type.USHORT,"is not impremented"},v.Table.DSIG=function(){this.tag="DSIG",this.ulVersion=new v.Type.ULONG,this.usNumSigs=new v.Type.USHORT,this.usFlag=new v.Type.USHORT,this.OffsetTables=[]},v.Table.DSIG.prototype.decompile=function(a){var b=a.offset;this.ulVersion.decompile(a),this.usNumSigs.decompile(a),this.usFlag.decompile(a);for(var c=0;c<this.usNumSigs.get();c=c+1|0)this.OffsetTables[c]=new v.Table.DSIGOffsetTable,this.OffsetTables[c].decompile(a,b)},v.Table.DSIG.prototype.compile=function(a){var b=a.offset;this.ulVersion.compile(a),this.usNumSigs.set(this.OffsetTables.length),this.usNumSigs.compile(a),this.usFlag.compile(a);for(var c=0;c<this.OffsetTables.length;c=c+1|0)this.OffsetTables[c].compile(a,b)},v.Table.DSIGOffsetTable=function(){this.tag="DSIGOffsetTable",this.ulFormat=new v.Type.ULONG,this.ulLength=new v.Type.ULONG,this.ulOffset=new v.Type.LONGOFFSET(v.Table.DSIGSignatureBlock)},v.Table.DSIGOffsetTable.prototype.decompile=function(a,b){this.ulFormat.decompile(a),this.ulLength.decompile(a),this.ulOffset.decompile(a,b,!0)},v.Table.DSIGOffsetTable.prototype.compile=function(a,b){this.ulFormat.compile(a),this.ulLength.compile(a),this.ulOffset.compile(a),this.ulOffset.finalize(a,b)},v.Table.DSIGSignatureBlock=function(){this.tag="DSIGSignatureBlock",this.usReserved1=new v.Type.SHORT,this.usReserved2=new v.Type.SHORT,this.cbSignature=new v.Type.ULONG,this.signature=null},v.Table.DSIGSignatureBlock.prototype.decompile=function(a){this.usReserved1.decompile(a),this.usReserved2.decompile(a),this.cbSignature.decompile(a),this.signature=a.data.subarray(a.offset,a.offset+this.cbSignature.get()),a.offset+=this.cbSignature.get()},v.Table.DSIGSignatureBlock.prototype.compile=function(a){this.usReserved1.compile(a),this.usReserved2.compile(a),this.cbSignature.compile(a),a.data.set(this.signature,a.offset),a.offset+=this.signature.length},v.Table.Unknown=function(a,b){this._TTF=a,this._data=null,this.tag=b},v.Table.Unknown.prototype.decompile=function(a){var b=this._TTF.getTableData(this.tag).info.length.get();this._data=a.data.subarray(a.offset,a.offset+b),a.offset+=b},v.Table.Unknown.prototype.compile=function(a){a.data.set(this._data,a.offset),a.offset+=this._data.length},v.Table.FFTM=function(){this.tag="FFTM",this.version=new v.Type.ULONG,this.timestamp=new v.Type.LONGDATETIME,this.creation=new v.Type.LONGDATETIME,this.modification=new v.Type.LONGDATETIME},v.Table.FFTM.prototype.decompile=function(a){this.version.decompile(a),this.timestamp.decompile(a),this.creation.decompile(a),this.modification.decompile(a)},v.Table.FFTM.prototype.compile=function(a){this.version.compile(a),this.timestamp.compile(a),this.creation.compile(a),this.modification.compile(a)},v.TTF=function(){this.tag="TTF",this.sfntHeader=new v.Table.SFNTHeader(this),this._TableHash={head:v.Table.Head,hhea:v.Table.Hhea,"OS/2":v.Table.OS_2,post:v.Table.Post,maxp:v.Table.Maxp,cmap:v.Table.Cmap,"cvt ":v.Table.Cvt,loca:v.Table.Loca,prep:v.Table.Prep,fpgm:v.Table.Fpgm,name:v.Table.Name,hdmx:v.Table.Hdmx,PCLT:v.Table.PCLT,DSIG:v.Table.DSIG,hmtx:v.Table.Hmtx,glyf:v.Table.Glyf,VDMX:v.Table.Unknown,"CFF ":w.Table.CFF,gasp:v.Table.Gasp,kern:v.Table.Unknown,FFTM:v.Table.FFTM,GSUB:x.Table.GSUB,LTSH:v.Table.LTSH,VORG:v.Table.VORG,vmtx:v.Table.Vmtx,vhea:v.Table.Vhea},this._readingPhaseTableClassNameList=["head","hhea","PCLT","OS/2","post","maxp","cmap","cvt ","prep","fpgm","loca","name","hdmx","hmtx","glyf","VDMX","gasp","kern","CFF ","DSIG","FFTM","GSUB","LTSH","VORG","vhea","vmtx"]},v.TTF.prototype.decompile=function(a){this.sfntHeader.decompile(a);for(var b=0;b<this._readingPhaseTableClassNameList.length;b=b+1|0)for(var c=0;c<this.sfntHeader.numTables.get();c=c+1|0)if(this.sfntHeader.tableRecords[c].tag.get()==this._readingPhaseTableClassNameList[b]){this.sfntHeader.tableRecords[c].offset._ref=new(this._TableHash[this.sfntHeader.tableRecords[c].tag.get()])(this,this.sfntHeader.tableRecords[c].tag.get()),this.sfntHeader.tableRecords[c].offset.decompileRef(a,0);break}for(var b=0;b<this.sfntHeader.tableRecords.length;b=b+1|0)null==this.sfntHeader.tableRecords[b].offset._ref&&(this.sfntHeader.tableRecords[b].offset._ref=new v.Table.Unknown(this,this.sfntHeader.tableRecords[b].tag.get()),this.sfntHeader.tableRecords[b].offset.decompileRef(a,0))},v.TTF.prototype.compile=function(a){this.sfntHeader.compile(a),v.TTF.prototype.padding(a,4);var b=this.getTableData("head");b&&b.table.checkSumAdjustment.finalize(a,0,a.offset,!0)},v.TTF.prototype.getTableData=function(a){for(var b=0;b<this.sfntHeader.tableRecords.length;b=b+1|0)if(this.sfntHeader.tableRecords[b].tag.get()==a)return{info:this.sfntHeader.tableRecords[b],table:this.sfntHeader.tableRecords[b].offset._ref};return!1},v.TTF.prototype.setTableData=function(a){this.deleteTableData(a.tag);var b=new v.Table.TableRecord;return b.tag.set(a.tag),b.offset.setRef(a),this.sfntHeader.tableRecords.push(b),!0},v.TTF.prototype.deleteTableData=function(a){for(var b=0;b<this.sfntHeader.tableRecords.length;b=b+1|0)if(this.sfntHeader.tableRecords[b].tag.get()==a)return this.sfntHeader.tableRecords.splice(b,1),!0;return!1},v.TTF.prototype.padding=function(a,b){for(var c=(b-a.offset%b)%b,d=0;c>d;d=d+1|0)a.data[a.offset]=0,a.offset+=1},v.TTC=function(){this.tag="TTC",this.TTCHeader=new v.Table.TTCHeader},v.TTC.prototype.decompile=function(a){this.TTCHeader.decompile(a)},v.TTC.prototype.compile=function(){throw"not impremented"},v.Table.TTCHeader=function(){this.TTCTag=new v.Type.Tag,this.Version=new v.Type.Fixed,this.numFonts=new v.Type.ULONG,this.OffsetTable=[],this.ulDsigTag=null,this.ulDsigLength=null,this.ulDsigOffset=null},v.Table.TTCHeader.prototype.decompile=function(a){this.TTCTag.decompile(a),this.Version.decompile(a),this.numFonts.decompile(a);for(var b=0;b<this.numFonts.get();b=b+1|0)this.OffsetTable[b]=new v.Type.LONGOFFSET(v.TTF),this.OffsetTable[b].decompile(a,0);2==this.Version.major.get()&&(ulDsigTag.decompile(a),ulDsigLength.decompile(a),ulDsigOffset.decompile(a))},v.Table.TTCHeader.prototype.compile=function(){throw"not implementation"},v.FromFIle=function(a){var b=null,c=new DataView(a),d=c.getUint32(0,!1),e=new Uint8Array(a);if(1953784678==d)b=new v.TTC;else if(1330926671==d)b=new v.TTF;else{if(65536!=d)throw"Unknown";b=new v.TTF}return b.decompile({data:e,offset:0,memory:!0}),b},v.ToFile=function(a){var b=new ArrayBuffer(5242880),c=new Uint8Array(b),d={data:c,offset:0,memory:!0};a.compile(d);var e=b.slice(0,d.offset),f=new Uint8Array(e),g=new Blob([f],{type:"application/octet-stream"}),h=window.URL.createObjectURL(g);return h},v.FromBase64=function(a){var b=null,c=base64_decode(a),d=new Uint8Array(c);if(116===c[0]&&116===c[1]&&99===c[2]&&102===c[3])b=new v.TTC;else if(79===c[0]&&84===c[1]&&84===c[2]&&79===c[3])b=new v.TTF;else{if(0!==c[0]||1!==c[1]||0!==c[2]||0!==c[3])throw"Unknown";b=new v.TTF}return b.decompile({data:d,offset:0,memory:!0}),b},v.ToBase64=function(a){var b=new ArrayBuffer(1048576),c=new Uint8Array(b),d={data:c,offset:0,memory:!0};a.compile(d);var e=b.slice(0,d.offset),f=new Uint8Array(e);return base64_encode(f)},w.DEF.CharCodeList1={0:"reserved",1:"hstem",2:"reserved",3:"vstem",4:"vmoveto",5:"rlineto",6:"hlineto",7:"vlineto",8:"rrcurveto",9:"reserved",10:"callsubr",11:"return",13:"reserved",14:"endchar",15:"reserved",16:"reserved",17:"reserved",18:"hstemhm",19:"hintmask",20:"cntrmask",21:"rmoveto",22:"hmoveto",23:"vstemhm",24:"rcurveline",25:"rlinecurve",26:"vvcurveto",27:"hhcurveto",29:"callgsubr",30:"vhcurveto",31:"hvcurveto"},w.DEF.CharCodeList1KV=d(w.DEF.CharCodeList1),w.DEF.CharCodeList2={0:"reserved",1:"reserved",2:"reserved",3:"and",4:"or",5:"not",6:"reserved",7:"reserved",8:"reserved",9:"abs",10:"add",11:"sub",12:"div",13:"reserved",14:"neg",15:"eq",16:"reserved",17:"reserved",18:"drop",19:"reserved",20:"put",21:"get",22:"ifelse",23:"random",24:"mul",25:"reserved",26:"sqrt",27:"dup",28:"exch",29:"index",30:"roll",31:"reserved",32:"reserved",33:"reserved",34:"hflex",35:"flex",36:"hflex1",37:"flex1"},w.DEF.CharCodeList2KV=d(w.DEF.CharCodeList2),w.DEF.AdobeStandardStrings={0:".notdef",1:"space",2:"exclam",3:"quotedbl",4:"numbersign",5:"dollar",6:"percent",7:"ampersand",8:"quoteright",9:"parenleft",10:"parenright",11:"asterisk",12:"plus",13:"comma",14:"hyphen",15:"period",16:"slash",17:"zero",18:"one",19:"two",20:"three",21:"four",22:"five",23:"six",24:"seven",25:"eight",26:"nine",27:"colon",28:"semicolon",29:"less",30:"equal",31:"greater",32:"question",33:"at",34:"A",35:"B",36:"C",37:"D",38:"E",39:"F",40:"G",41:"H",42:"I",43:"J",44:"K",45:"L",46:"M",47:"N",48:"O",49:"P",50:"Q",51:"R",52:"S",53:"T",54:"U",55:"V",56:"W",57:"X",58:"Y",59:"Z",60:"bracketleft",61:"backslash",62:"bracketright",63:"asciicircum",64:"underscore",65:"quoteleft",66:"a",67:"b",68:"c",69:"d",70:"e",71:"f",72:"g",73:"h",74:"i",75:"j",76:"k",77:"l",78:"m",79:"n",80:"o",81:"p",82:"q",83:"r",84:"s",85:"t",86:"u",87:"v",88:"w",89:"x",90:"y",91:"z",92:"braceleft",93:"bar",94:"braceright",95:"asciitilde",96:"exclamdown",97:"cent",98:"sterling",99:"fraction",100:"yen",101:"florin",102:"section",103:"currency",104:"quotesingle",105:"quotedblleft",106:"guillemotleft",107:"guilsinglleft",108:"guilsinglright",109:"fi",110:"fl",111:"endash",112:"dagger",113:"daggerdbl",114:"periodcentered",115:"paragraph",116:"bullet",117:"quotesinglbase",118:"quotedblbase",119:"quotedblright",120:"guillemotright",121:"ellipsis",122:"perthousand",123:"questiondown",124:"grave",125:"acute",126:"circumflex",127:"tilde",128:"macron",129:"breve",130:"dotaccent",131:"dieresis",132:"ring",133:"cedilla",134:"hungarumlaut",135:"ogonek",136:"caron",137:"emdash",138:"AE",139:"ordfeminine",140:"Lslash",141:"Oslash",142:"OE",143:"ordmasculine",144:"ae",145:"dotlessi",146:"lslash",147:"oslash",148:"oe",149:"germandbls",150:"onesuperior",151:"logicalnot",152:"mu",153:"trademark",154:"Eth",155:"onehalf",156:"plusminus",157:"Thorn",158:"onequarter",159:"divide",160:"brokenbar",161:"degree",162:"thorn",163:"threequarters",164:"twosuperior",165:"registered",166:"minus",167:"eth",168:"multiply",169:"threesuperior",170:"copyright",171:"Aacute",172:"Acircumflex",173:"Adieresis",174:"Agrave",175:"Aring",176:"Atilde",177:"Ccedilla",178:"Eacute",179:"Ecircumflex",180:"Edieresis",181:"Egrave",182:"Iacute",183:"Icircumflex",184:"Idieresis",185:"Igrave",186:"Ntilde",187:"Oacute",188:"Ocircumflex",189:"Odieresis",190:"Ograve",191:"Otilde",192:"Scaron",193:"Uacute",194:"Ucircumflex",195:"Udieresis",196:"Ugrave",197:"Yacute",198:"Ydieresis",199:"Zcaron",200:"aacute",201:"acircumflex",202:"adieresis",203:"agrave",204:"aring",205:"atilde",206:"ccedilla",207:"eacute",208:"ecircumflex",209:"edieresis",210:"egrave",211:"iacute",212:"icircumflex",213:"idieresis",214:"igrave",215:"ntilde",216:"oacute",217:"ocircumflex",218:"odieresis",219:"ograve",220:"otilde",221:"scaron",222:"uacute",223:"ucircumflex",224:"udieresis",225:"ugrave",226:"yacute",227:"ydieresis",228:"zcaron",229:"exclamsmall",230:"Hungarumlautsmall",231:"dollaroldstyle",232:"dollarsuperior",233:"ampersandsmall",234:"Acutesmall",235:"parenleftsuperior",236:"parenrightsuperior",237:"twodotenleader",238:"onedotenleader",239:"zerooldstyle",240:"oneoldstyle",241:"twooldstyle",242:"threeoldstyle",243:"fouroldstyle",244:"fiveoldstyle",245:"sixoldstyle",246:"sevenoldstyle",247:"eightoldstyle",248:"nineoldstyle",249:"commasuperior",250:"threequartersemdash",251:"periodsuperior",252:"questionsmall",253:"asuperior",254:"bsuperior",255:"centsuperior",256:"dsuperior",257:"esuperior",258:"isuperior",259:"lsuperior",260:"msuperior",261:"nsuperior",262:"osuperior",263:"rsuperior",264:"ssuperior",265:"tsuperior",266:"ff",267:"ffi",268:"ffl",269:"parenleftinferior",270:"parenrightinferior",271:"Circumflexsmall",272:"hyphensuperior",273:"Gravesmall",274:"Asmall",275:"Bsmall",276:"Csmall",277:"Dsmall",278:"Esmall",279:"Fsmall",280:"Gsmall",281:"Hsmall",282:"Ismall",283:"Jsmall",284:"Ksmall",285:"Lsmall",286:"Msmall",287:"Nsmall",288:"Osmall",289:"Psmall",290:"Qsmall",291:"Rsmall",292:"Ssmall",293:"Tsmall",294:"Usmall",295:"Vsmall",296:"Wsmall",297:"Xsmall",298:"Ysmall",299:"Zsmall",300:"colonmonetary",301:"onefitted",302:"rupiah",303:"Tildesmall",304:"exclamdownsmall",305:"centoldstyle",306:"Lslashsmall",307:"Scaronsmall",308:"Zcaronsmall",309:"Dieresissmall",310:"Brevesmall",311:"Caronsmall",312:"Dotaccentsmall",313:"Macronsmall",314:"figuredash",315:"hypheninferior",316:"Ogoneksmall",317:"Ringsmall",318:"Cedillasmall",319:"questiondownsmall",320:"oneeighth",321:"threeeighths",322:"fiveeighths",323:"seveneighths",324:"onethird",325:"twothirds",326:"zerosuperior",327:"foursuperior",328:"fivesuperior",329:"sixsuperior",330:"sevensuperior",331:"eightsuperior",332:"ninesuperior",333:"zeroinferior",334:"oneinferior",335:"twoinferior",336:"threeinferior",337:"fourinferior",338:"fiveinferior",339:"sixinferior",340:"seveninferior",341:"eightinferior",342:"nineinferior",343:"centinferior",344:"dollarinferior",345:"periodinferior",346:"commainferior",347:"Agravesmall",348:"Aacutesmall",349:"Acircumflexsmall",350:"Atildesmall",351:"Adieresissmall",352:"Aringsmall",353:"AEsmall",354:"Ccedillasmall",355:"Egravesmall",356:"Eacutesmall",357:"Ecircumflexsmall",358:"Edieresissmall",359:"Igravesmall",360:"Iacutesmall",361:"Icircumflexsmall",362:"Idieresissmall",363:"Ethsmall",364:"Ntildesmall",365:"Ogravesmall",366:"Oacutesmall",367:"Ocircumflexsmall",368:"Otildesmall",369:"Odieresissmall",370:"OEsmall",371:"Oslashsmall",372:"Ugravesmall",373:"Uacutesmall",374:"Ucircumflexsmall",375:"Udieresissmall",376:"Yacutesmall",377:"Thornsmall",378:"Ydieresissmall",379:"001.000",380:"001.001",381:"001.002",382:"001.003",383:"Black",384:"Bold",385:"Book",386:"Light",387:"Medium",388:"Regular",389:"Roman",390:"Semibold"},w.Type.Card8=v.Type.factoryNativeType(!1,1),w.Type.Card16=v.Type.factoryNativeType(!1,2),w.Type.OffSize=v.Type.factoryNativeType(!1,1),w.Type.Offset1=v.Type.factoryNativeType(!1,1),w.Type.Offset2=v.Type.factoryNativeType(!1,2),w.Type.Offset3=v.Type.factoryNativeType(!1,3),w.Type.Offset4=v.Type.factoryNativeType(!1,4),w.Type.SID=v.Type.factoryNativeType(!1,2),w.Type.AsciiString=function(a){a?this._string=a:this._string=""},w.Type.AsciiString.prototype.decompile=function(a,b){for(var c="",d=0;b>d;d=d+1|0)c+=String.fromCharCode(a.data[a.offset+d]);a.offset+=b,this._string=c},w.Type.AsciiString.prototype.compile=function(a){for(var b=0;b<this._string.length;b=b+1|0)a.data[a.offset]=this._string.charCodeAt(b),a.offset+=1},w.Type.AsciiString.prototype.get=function(){return this._string},w.Type.AsciiString.prototype.set=function(a){this._string=a},w.Table.CFF=function(){this.tag="CFF ",this.major=new w.Type.Card8,this.minor=new w.Type.Card8,this.hdrSize=new w.Type.Card8,this.offSize=new w.Type.OffSize,this.NameINDEX=new w.Table.NameINDEX,this.TopDictINDEX=new w.Table.TopDictINDEX,this.StringINDEX=new w.Table.StringINDEX,this.GlobalSubrINDEX=new w.Table.GlobalSubrINDEX,this.Charsets=null,this.CharStringsINDEX=null,this.PrivateDICT=null,this.LocalSubrINDEX=null,this.LocalSubrINDEX=null,this.FDSelect=null,this.FDArray=null,this.FDPrivates=[]},w.Table.CFF.prototype.decompile=function(a){var b=a.offset;this.major.decompile(a),this.minor.decompile(a),this.hdrSize.decompile(a),this.offSize.decompile(a),this.NameINDEX.decompile(a),this.TopDictINDEX.decompile(a),this.StringINDEX.decompile(a),this.GlobalSubrINDEX.decompile(a);var c=this.TopDictINDEX.data[0];if(null==c)return!1;var d=c.getValueFromKey(17),e=c.getValueFromKey(15),f=c.getValueFromKey(18),g=c.getValueFromKey(3108),h=c.getValueFromKey(3109);if(null!=d&&(this.CharStringsINDEX=new w.Table.CharStringsINDEX,a.offset=b+d[0],this.CharStringsINDEX.decompile(a),null!=e&&(this.Charsets=new w.Table.Charsets,a.offset=b+e[0],this.Charsets.decompile(a,this.CharStringsINDEX.count.get()))),null!=f){this.PrivateDICT=new w.Table.DICT;var i=a.offset=b+f[1];this.PrivateDICT.decompile(a,f[0]);var j=this.PrivateDICT.getValueFromKey(19);null!=j&&(this.LocalSubrINDEX=new w.Table.LocalSubrINDEX,a.offset=i+j[0],this.LocalSubrINDEX.decompile(a))}if(null!=h){this.FDSelect=new w.Table.FDSelect,a.offset=b+h[0];var k=c.getValueFromKey(3106);this.FDSelect.decompile(a,k)}if(null!=g){this.FDArray=new w.Table.FDArray,a.offset=b+g[0],this.fdArray.decompile(a);for(var l=0;l<this.FDArray.data.length;l=l+1|0){var m=g.getValueFromKey(18),n=new w.Table.DICT;a.offset=b+m[1],n.decompile(a,m[0]),this.FDPrivates.push(n)}}},w.Table.CFF.prototype.compile=function(a){var b=a.offset;if(null!=a.__offset__charset__global__||null!=a.__offset__charstring__global__||null!=a.__offset__privateDict__global__||null!=a.__length__privateDict__global__||null!=a.__offset__localSubr__global__||null!=a.__offset__fdArray__global__||null!=a.__offset__fdSelect__global__)throw"ERR";if(a.__offset__privateDict__global__=[],a.__length__privateDict__global__=[],this.major.compile(a),this.minor.compile(a),this.hdrSize.compile(a),this.offSize.compile(a),this.NameINDEX.compile(a),this.TopDictINDEX.compile(a),this.StringINDEX.compile(a),this.GlobalSubrINDEX.compile(a),null!=this.Charsets&&(a.__offset__charset__global__._ref=this.Charsets,a.__offset__charset__global__.finalize(a,b)),null!=this.PrivateDICT){var c=a.offset;a.__offset__privateDict__global__[0]._ref=this.PrivateDICT,a.__offset__privateDict__global__[0].finalize(a,b),a.__length__privateDict__global__[0].finalize(a,c,a.offset)}if(null!=this.FDArray){a.__offset__fdArray__global__._ref=this.FDArray,a.__offset__fdArray__global__.finalize(a,b);for(var d=0;d<a.__offset__privateDict__global__.length;d=d+1|0){var c=a.offset;a.__offset__privateDict__global__[d]._ref=this.FDPrivates[d],a.__offset__privateDict__global__[d].finalize(a,b),a.__length__privateDict__global__[d].finalize(a,c,a.offset)}}null!=this.FDSelect&&(a.__offset__fdSelect__global__._ref=this.FDSelect,a.__offset__fdSelect__global__.finalize(a,b)),null!=this.CharStringsINDEX&&(a.__offset__charstring__global__._ref=this.CharStringsINDEX,a.__offset__charstring__global__.finalize(a,b))},w.Table.INDEX=function(){this.count=new w.Type.Card16,this.offSize=new w.Type.OffSize,this.offset=[],this.data=[]},w.Table.INDEX.prototype._decompile=function(a){if(this.count.decompile(a),0==this.count.get())return null;this.offSize.decompile(a);for(var b=0;b<this.count.get()+1;b=b+1|0)this.offset.push(this._getOffset(a,this.offSize.get()))},w.Table.INDEX.prototype._compile=function(a){var b=[];if(0!=this.data.length){this.count.set(this.data.length),this.count.compile(a),this.offSize.set(4),this.offSize.compile(a);var c=a.offset;a.offset+=this.offSize.get()*this.count.get()+this.offSize.get();for(var d=a.offset-1,e=0;e<this.data.length;e=e+1|0)b[e]=a.offset,this.data[e].compile(a);var f=a.offset;a.offset=c;for(var e=0;e<b.length;e=e+1|0)this.offset[e]=new w.Type.Offset4,this.offset[e].set(b[e]-d),this.offset[e].compile(a);this.offset[e]=new w.Type.Offset4,this.offset[e].set(f-d),this.offset[e].compile(a),a.offset=f}else this.count.set(0),this.count.compile(a)},w.Table.INDEX.prototype._getOffset=function(a,b){var c;switch(b){case 1:c=new w.Type.Offset1;break;case 2:c=new w.Type.Offset2;break;case 3:c=new w.Type.Offset3;break;case 4:c=new w.Type.Offset4;break;default:throw"err"}return c.decompile(a),c},w.Table.DICT=function(){this.keyValues=[]},w.Table.DICT.prototype.decompile=function(a,b){for(var c=a.offset;a.offset<c+b;)this.keyValues.push(this._readKeyValue(a))},w.Table.DICT.prototype.compile=function(a){for(var b=0;b<this.keyValues.length;b=b+1|0)this._writeKeyValue(this.keyValues[b],a)},w.Table.DICT.prototype.getValueFromKey=function(a){for(var b=0;b<this.keyValues.length;b=b+1|0)if(this.keyValues[b].key==a)return this.keyValues[b].value;return null},w.Table.DICT.prototype.setValueFromKey=function(a,b){for(var c=0;c<this.keyValues.length;c=c+1|0)if(this.keyValues[c].key==a)return this.keyValues[c].value=b,!0;this.keyValues.push({key:a,value:b})},w.Table.DICT.prototype._writeKeyValue=function(a,b){for(var c=a.key,d=a.value,e=new w.Type.Card8,f=new w.Type.Card8,g=0;g<d.length;g=g+1|0){var h=new w.Type.Card8,i=new w.Type.Card8;if(d[g]==parseInt(d[g])){if(15===c||16===c||17===c||18===c||19===c||3108===c||3109===c)if(h.set(29),i=new v.Type.LONGOFFSET,19===c)b.__offset__localSubr__global__=i;else if(15===c)b.__offset__charset__global__=i;else if(16===c)b.__offset__encoding__global__=i;else if(17===c)b.__offset__charstring__global__=i;else if(18===c)if(0===g)i=new v.Type.LENGTH,b.__length__privateDict__global__.push(i);else{if(1!==g)throw"ERR";b.__offset__privateDict__global__.push(i)}else 3108===c?b.__offset__fdArray__global__=i:3109===c&&(b.__offset__fdSelect__global__=i);else if(-107<=d[g]&&d[g]<=107)h.set(d[g]+139),i=null;else if(108<=d[g]&&d[g]<=1131)h.set((d[g]-108&65280)/256+247),i.set(d[g]-108&255);else if(-1131<=d[g]&&d[g]<=-108)h.set((-d[g]-108&65280)/256+251),i.set(256- -1*(-d[g]-108&255));else if(-32767<=d[g]&&d[g]<=32768)h.set(28),i=new v.Type.SHORT,i.set(d[g]);else{if(!(-2147483648<=d[g]&&d[g]<=2147483647))throw"err";h.set(29),i=new v.Type.LONG,i.set(d[g])}h.compile(b),null!=i&&i.compile(b)}else{if(d[g]!==parseFloat(d[g]))throw"err";h.set(30),h.compile(b);var j=d[g].toString();j=j.split("");for(var k=0;k<j.length;k=k+1|0)j[k].match(/[0-9]/)&&(j[k]=parseInt(j[k])),"."===j[k]&&(j[k]=10),"-"===j[k]&&(j[k]=14);j.push(15);for(var k=0;k<j.length;k+=2){var l=j[k],m=null!=j[k+1]?j[k+1]:15;i.set(l<<4|m),i.compile(b)}}}c>=3072?(e.set(12),f.set(c-3072),e.compile(b),f.compile(b)):(e.set(c),e.compile(b))},w.Table.DICT.prototype._readKeyValue=function(a,b){for(var c=[],d=0,e=new w.Type.Card8,f=new w.Type.Card8,g=new w.Type.Card8,h=new w.Type.Card8,i=new w.Type.Card8,j=0;100>j&&(j+=1,e.decompile(a),!(0<=e.get()&&21>=e.get()));){if(22<=e.get()&&27>=e.get())throw"reserved";if(28==e.get())f.decompile(a),g.decompile(a),c.push(f.get()<<8|g.get());else if(29==e.get())f.decompile(a),g.decompile(a),h.decompile(a),i.decompile(a),c.push(f.get()<<24|g.get()<<16|h.get()<<8|i.get());else if(30==e.get()){for(var k="";;){var l=!1;f.decompile(a);for(var m=[f.get()>>4,15&f.get()],n=0;n<m.length;n++)if(m[n]>=0&&m[n]<=9)k+=m[n];else if(10==m[n])k+=".";else if(11==m[n])k+="E";else if(12==m[n])k+="E-";else{if(13==m[n])throw"reserved";if(14==m[n])k+="-";else if(15==m[n]){l=!0;break}}if(l)break}c.push(parseFloat(k))}else{if(31==e.get())throw"err";if(e.get()>=32&&e.get()<=246)c.push(e.get()-139);else if(e.get()>=247&&e.get()<=250)f.decompile(a),c.push(256*(e.get()-247)+f.get()+108);else if(e.get()>=251&&e.get()<=254)f.decompile(a),c.push(256*-(e.get()-251)-f.get()-108);else if(255==e.get())throw"err"}}return 12==e.get()?(f.decompile(a),d=e.get()<<8|f.get()):d=e.get(),{key:d,value:c}},w.Table.Type2Charstring=function(){this.data=null},w.Table.Type2Charstring.prototype.decompile=function(a,b){this.data=a.data.subarray(a.offset,a.offset+b),a.offset+=b},w.Table.Type2Charstring.prototype.compile=function(a){a.data.set(this.data,a.offset),a.offset+=this.data.length},w.Table.Type2Charstring.prototype.getPath=function(){throw"未実装"},w.Table.Type2Charstring.prototype.setPath=function(a){throw"未実装"},w.Table.Type2Charstring.prototype.getType2Charstring=function(){var a={data:this.data,offset:0,memory:!0},b=[],c=[],d=[],e=new w.Type.Card8,f=new w.Type.Card8,g=new w.Type.Card8,h=new w.Type.Card8,i=new w.Type.Card8,j=new w.Type.Card8,k=w.DEF.CharCodeList1;for(e.decompile(a);a.offset<=a.data.length;)0<=e.get()&&11>=e.get()?(10==e.get()&&c.push(b.pop()),b.push(k[e.get()]),k=w.DEF.CharCodeList1):12==e.get()?k=w.DEF.CharCodeList2:13<=e.get()&&27>=e.get()?(b.push(k[e.get()]),k=w.DEF.CharCodeList1):28==e.get()?(f.decompile(a),g.decompile(a),b.push(f.get()<<8|g.get())):29<=e.get()&&31>=e.get()?(29==e.get()&&d.push(b.pop()),b.push(k[e.get()]),k=w.DEF.CharCodeList1):32<=e.get()&&246>=e.get()?b.push(e.get()-139):247<=e.get()&&250>=e.get()?(j.decompile(a),b.push(256*(e.get()-247)+j.get()+108)):251<=e.get()&&254>=e.get()?(j.decompile(a),b.push(-(256*(e.get()-251))-j.get()-108)):255==e.get()?(f.decompile(a),g.decompile(a),h.decompile(a),i.decompile(a),b.push(f.get()<<24|g.get()<<16|h.get()<<8|i.get())):b.push(e.get()),e.decompile(a);return{charString:b,callsubr:c,callgsubr:d}},w.Table.Type2Charstring.prototype.setType2Charstring=function(a,b){if("string"!=typeof a)throw"文字列ではありません";var c=null,d=new ArrayBuffer(1e4),e=new Uint8Array(d),f={data:e,offset:0,memory:!0},g=a.split(" ");null!=g[0].match(/width:([\-\+0-9\.]*)/)?1e3!=b?g[0]=b-500:g.shift():1e3!=b&&g.unshift(b-500);for(var h=0;h<g.length;h=h+1|0)if(g[h]==parseInt(g[h])){var i=new w.Type.Card8,j=new w.Type.Card8,k=parseInt(g[h]);if(k>=-107&&107>=k)i.set(k+139),j=null;else if(k>=108&&1131>=k)i.set((k-108&65280)/256+247),j.set(k-108&255);else if(k>=-1131&&-108>=k){var l=(-k-108&65280)/256+251;i.set(l),j.set(-(k+108+256*(l-251)))}else{if(!(k>=-32767&&32768>=k))throw["数値が符号あり2バイトの範囲を超えています",k,g];i.set(28),j=new v.Type.SHORT,j.set(k)}i.compile(f),null!=j&&j.compile(f)}else if(g[h]==parseFloat(g[h])){var k=parseFloat(g[h]);if(-32767>=k||k>=32768)throw["数値が符号あり2バイトの範囲を超えています",k,g];var i=new w.Type.Card8,j=new v.Type.LONG;i.set(255),j.set(Math.round(65536*k)),i.compile(f),j.compile(f)}else if(-1!=(c=w.DEF.CharCodeList1KV.values.indexOf(g[h]))){var i=new w.Type.Card8;i.set(parseInt(w.DEF.CharCodeList1KV.keys[c])),i.compile(f)}else if(-1!=(c=w.DEF.CharCodeList2KV.values.indexOf(g[h]))){var i=new w.Type.Card8,j=new w.Type.Card8;i.set(12),j.set(parseInt(w.DEF.CharCodeList2KV.keys[c])),i.compile(f),j.compile(f)}else{if(null==g[h].match(/0b([0-9]*)/))throw["不明なオペコードです",g[h]];var i=new v.Type.BYTE;i.set(parseInt(RegExp.$1,2)),i.compile(f)}return this.data=f.data.subarray(0,f.offset),this.data},w.Table.NameINDEX=function(a){w.Table.INDEX.call(this,a)},o(w.Table.NameINDEX,w.Table.INDEX),w.Table.NameINDEX.prototype.decompile=function(a){this._decompile(a);for(var b=0;b<this.count.get();b=b+1|0){var c=this.offset[b+1].get()-this.offset[b].get(),d=new w.Type.AsciiString;d.decompile(a,c),this.data.push(d)}},w.Table.NameINDEX.prototype.compile=function(a){this._compile(a)},w.Table.TopDictINDEX=function(a){w.Table.INDEX.call(this,a)},o(w.Table.TopDictINDEX,w.Table.INDEX),w.Table.TopDictINDEX.prototype.decompile=function(a){this._decompile(a);for(var b=0;b<this.count.get();b=b+1|0){var c=this.offset[b+1].get()-this.offset[b].get(),d=new w.Table.DICT;d.decompile(a,c),this.data.push(d)}},w.Table.TopDictINDEX.prototype.compile=function(a){this._compile(a)},w.Table.StringINDEX=function(a){w.Table.INDEX.call(this,a)},o(w.Table.StringINDEX,w.Table.INDEX),w.Table.StringINDEX.prototype.decompile=function(a){this._decompile(a);for(var b=0;b<this.count.get();b=b+1|0){var c=this.offset[b+1].get()-this.offset[b].get(),d=new w.Type.AsciiString;d.decompile(a,c),this.data.push(d)}},w.Table.StringINDEX.prototype.compile=function(a){this._compile(a)},w.Table.GlobalSubrINDEX=function(a){w.Table.INDEX.call(this,a)},o(w.Table.GlobalSubrINDEX,w.Table.INDEX),w.Table.GlobalSubrINDEX.prototype.decompile=function(a){this._decompile(a);for(var b=0;b<this.count.get();b=b+1|0){var c=this.offset[b+1].get()-this.offset[b].get(),d=new w.Table.Type2Charstring;d.decompile(a,c),this.data.push(d)}},w.Table.GlobalSubrINDEX.prototype.compile=function(a){this._compile(a)},w.Table.CharStringsINDEX=function(a){w.Table.INDEX.call(this,a)},o(w.Table.CharStringsINDEX,w.Table.INDEX),w.Table.CharStringsINDEX.prototype.decompile=function(a){this._decompile(a);for(var b=0;b<this.count.get();b=b+1|0){var c=this.offset[b+1].get()-this.offset[b].get(),d=new w.Table.Type2Charstring;d.decompile(a,c),this.data.push(d)}},w.Table.CharStringsINDEX.prototype.compile=function(a){this._compile(a)},w.Table.LocalSubrINDEX=function(a){w.Table.INDEX.call(this,a)},o(w.Table.LocalSubrINDEX,w.Table.INDEX),w.Table.LocalSubrINDEX.prototype.decompile=function(a){this._decompile(a);for(var b=0;b<this.count.get();b=b+1|0){var c=this.offset[b+1].get()-this.offset[b].get(),d=new w.Table.Type2Charstring;d.decompile(a,c),this.data.push(d)}},w.Table.LocalSubrINDEX.prototype.compile=function(a){this._compile(a)},w.Table.CharsetsFormat0=function(){this.glyphs=[],this.gindex2SID=[]},w.Table.CharsetsFormat0.prototype.decompile=function(a,b){this.gindex2SID=[0];for(var c=0;b-1>c;c=c+1|0)this.glyphs[c]=new w.Type.Card16,this.glyphs[c].decompile(a),this.gindex2SID.push(this.glyphs[c].get())},w.Table.CharsetsFormat0.prototype.compile=function(a){for(var b=0;b<this.glyphs.length;b=b+1|0)this.glyphs[b].compile(a)},w.Table.CharsetsFormat1=function(){this.Range1=[],this.gindex2SID=[]},w.Table.CharsetsFormat1.prototype.decompile=function(a,b){for(var c=1,d=b-1;d>=c;){var e=new w.Type.Card16,f=new w.Type.Card8;e.decompile(a),f.decompile(a),this.Range1.push({first:e,nLeft:f}),c+=f.get()+1}},w.Table.CharsetsFormat1.prototype.compile=function(a){for(var b=0;b<this.Range1.length;b=b+1|0)this.Range1[b].first.compile(a),this.Range1[b].nLeft.compile(a)},w.Table.CharsetsFormat2=function(){this.Range2=[],this.gindex2SID=[]},w.Table.CharsetsFormat2.prototype.decompile=function(a,b){for(var c=1,d=b-1;d>=c;){var e=new w.Type.Card16,f=new w.Type.Card16;e.decompile(a),f.decompile(a),this.Range2.push({first:e,nLeft:f}),c+=f.get()+1}},w.Table.CharsetsFormat2.prototype.compile=function(a){for(var b=0;b<this.Range2.length;b=b+1|0)this.Range2[b].first.compile(a),this.Range2[b].nLeft.compile(a)},w.Table.CharsetsFormat2.prototype.set=function(a,b){var c=new w.Type.Card16,d=new w.Type.Card16;c.set(a),d.set(b),this.Range2.push({first:c,nLeft:d})},w.Table.Charsets=function(){this.format=new w.Type.Card8,this.subtable=null},w.Table.Charsets.prototype.decompile=function(a,b){if(this.format.decompile(a),0==this.format.get())this.subtable=new w.Table.CharsetsFormat0;else if(1==this.format.get())this.subtable=new w.Table.CharsetsFormat1;else{if(2!=this.format.get())throw this.format.get();this.subtable=new w.Table.CharsetsFormat2}this.subtable.decompile(a,b)},w.Table.Charsets.prototype.compile=function(a){this.format.compile(a),this.subtable.compile(a)},w.Table.FDSelect=function(){this.format=new w.Type.Card8,this.subtable=null},w.Table.FDSelect.prototype.decompile=function(a,b){if(this.format.decompile(a),0===this.format.get())this.subtable=new w.Table.FDSelectFormat0;else{if(3!==this.format.get())throw this.format.get();this.subtable=new w.Table.FDSelectFormat3}this.subtable.decompile(a,b)},w.Table.FDSelect.prototype.compile=function(a){this.format.compile(a),this.subtable.compile(a)},w.Table.FDSelectFormat0=function(){this.fds=[],this.gindex2FD=[]},w.Table.FDSelectFormat0.prototype.decompile=function(a,b){for(var c=0;b>c;c=c+1|0)this.fds[c]=new w.Type.Card8,this.fds[c].decompile(a),this.gindex2FD[c]=this.fds[c].get()},w.Table.FDSelectFormat0.prototype.compile=function(a){for(var b=0;b<this.fds.length;b=b+1|0)this.fds[b].compile(a)},w.Table.FDSelectFormat3=function(){this.nRanges=new w.Type.Card16,this.Range3=[],this.sentinel=new w.Type.Card16,
this.gindex2FD=[]},w.Table.FDSelectFormat3.prototype.decompile=function(a,b){this.nRanges.decompile(a);for(var c=0;c<this.nRanges.get();c=c+1|0){var d=new w.Table.FDSelectFormat3Range3;d.decompile(a),this.Range3.push(d)}this.sentinel.decompile(a);for(var c=0;c<this.Range3.length;c=c+1|0)for(var e=c+1==this.Range3.length?this.sentinel.get():this.Range3[c+1].first.get(),f=this.Range3[c].first.get();e>f;f=f+1|0)this.gindex2FD[f]=this.Range3[c].fd.get()},w.Table.FDSelectFormat3.prototype.compile=function(a){this.nRanges.compile(a);for(var b=0;b<this.Range3.length;b=b+1|0)this.Range3[b].compile(a);this.sentinel.compile(a)},w.Table.FDSelectFormat3Range3=function(){this.first=new w.Type.Card16,this.fd=new w.Type.Card8},w.Table.FDSelectFormat3Range3.prototype.decompile=function(a){this.first.decompile(a),this.fd.decompile(a)},w.Table.FDSelectFormat3Range3.prototype.compile=function(a){this.first.compile(a),this.fd.compile(a)},w.Table.FDArray=function(a){w.Table.INDEX.call(this,a)},o(w.Table.FDArray,w.Table.INDEX),w.Table.FDArray.prototype.decompile=function(a){this._decompile(a);for(var b=0;b<this.count.get();b=b+1|0){var c=this.offset[b+1].get()-this.offset[b].get(),d=new w.Table.DICT;d.decompile(a,c),this.data.push(d)}},w.Table.FDArray.prototype.compile=function(a){this._compile(a)};var x={Type:{},Table:{},SubTable:{GSUB:{},GPOS:{}},DEF:{}};x.Table.GSUB=function(){this.tag="GSUB",this.Version=new v.Type.Fixed,this.ScriptList=new v.Type.OFFSET(x.Table.ScriptList,this.tag),this.FeatureList=new v.Type.OFFSET(x.Table.FeatureList,this.tag),this.LookupList=new v.Type.OFFSET(x.Table.LookupList,this.tag)},x.Table.GSUB.prototype.decompile=function(a){var b=a.offset;this.Version.decompile(a),this.ScriptList.decompile(a,b,!0),this.FeatureList.decompile(a,b,!0),this.LookupList.decompile(a,b,!0)},x.Table.GSUB.prototype.compile=function(a){var b=a.offset;this.Version.compile(a),this.ScriptList.compile(a),this.FeatureList.compile(a),this.LookupList.compile(a),this.ScriptList.finalize(a,b),this.FeatureList.finalize(a,b),this.LookupList.finalize(a,b)},x.Table.GSUB.prototype.substitute=function(a,b,c,d,e){throw"NOT_IMPREMENT"},x.Table.GSUB.prototype.subGID=function(a,b,c,d,f){var g=this,h=g.ScriptList._ref.ScriptRecord.filter(function(b){return null===a||-1!==a.indexOf(b.ScriptTag.get())}),i=[];h.map(function(a){null!==a.Script._ref.DefaultLangSys._ref&&(i=i.concat(a.Script._ref.DefaultLangSys._ref.FeatureIndex.map(function(a){return a.get()}))),a.Script._ref.LangSysRecord.map(function(a){null!==b&&-1===b.indexOf(a.LangSysTag.get())||(i=i.concat(a.LangSys._ref.FeatureIndex.map(function(a){return a.get()})))})}),i=e(i);var j=[],k={};i.map(function(a){var b=g.FeatureList._ref.FeatureRecord[a].FeatureTag.get();j.push(b),k[b]=g.FeatureList._ref.FeatureRecord[a].Feature._ref.LookupListIndex});var l=[];return e(j).map(function(a){if(null===c||-1!==c.indexOf(a)){var b=[].concat(f),d=[];k[a].map(function(a){g.LookupList._ref.Lookup[a.get()]._ref.substitute(b).map(function(a,c,e){var f=[];a.map(function(a,b,c){f=f.concat(a.sub)}),b=b.concat(f),d=d.concat(f)})}),l=l.concat(d)}}),l},x.SubTable.GSUB.LookUp1=function(){this.tag="LookUp1",this.LookupType=1,this.SubstFormat=new v.Type.uint16,this.Subst=null,this.sOffset=null,this.stream=null,this.pack=!0},x.SubTable.GSUB.LookUp1.prototype.decompile=function(a){this.sOffset=a.offset,this.stream=a},x.SubTable.GSUB.LookUp1.prototype._decompile=function(){var a=this.stream.offset;if(this.stream.offset=this.sOffset,this.SubstFormat.decompile(this.stream),1===this.SubstFormat.get())this.Subst=new x.SubTable.GSUB.SubstFormat1;else{if(2!==this.SubstFormat.get())throw"unknown type";this.Subst=new x.SubTable.GSUB.SubstFormat2}this.Subst.decompile(this.stream,this.sOffset,!0),this.pack=!1,this.stream.offset=a},x.SubTable.GSUB.LookUp1.prototype.compile=function(a){var b=a.offset;this.SubstFormat.compile(a),this.Subst.compile(a),this.Subst.finalize(a,b)},x.SubTable.GSUB.LookUp1.prototype.substitute=function(a){return this.pack&&this._decompile(),this.Subst.substitute(a)},x.SubTable.GSUB.SubstFormat1=function(){this.tag="SubstFormat1",this.Coverage=new v.Type.OFFSET(x.Table.Coverage,this.tag),this.DeltaGlyphID=new v.Type.int16},x.SubTable.GSUB.SubstFormat1.prototype.decompile=function(a,b){this.Coverage.decompile(a,b,!0),this.DeltaGlyphID.decompile(a)},x.SubTable.GSUB.SubstFormat1.prototype.compile=function(a){this.Coverage.compile(a),this.DeltaGlyphID.compile(a)},x.SubTable.GSUB.SubstFormat1.prototype.finalize=function(a,b){this.Coverage.finalize(a,b)},x.SubTable.GSUB.SubstFormat1.prototype.substitute=function(a){var b=[],c=this.Coverage._ref.getRanges(),e=d(c).keys.map(function(a){return parseInt(a)});e=h(a,e);for(var f=0;f<e.length;f=f+1|0)b.push({org:[e[f]],sub:[parseInt(e[f])+this.DeltaGlyphID.get()]});return b},x.SubTable.GSUB.SubstFormat2=function(){this.tag="SubstFormat2",this.Coverage=new v.Type.OFFSET(x.Table.Coverage,this.tag),this.GlyphCount=new v.Type.uint16,this.Substitute=[]},x.SubTable.GSUB.SubstFormat2.prototype.decompile=function(a,b){this.Coverage.decompile(a,b,!0),this.GlyphCount.decompile(a);for(var c=0;c<this.GlyphCount.get();c=c+1|0)this.Substitute[c]=new v.Type.GlyphID,this.Substitute[c].decompile(a,b,!0)},x.SubTable.GSUB.SubstFormat2.prototype.compile=function(a){this.Coverage.compile(a),this.GlyphCount.set(this.Substitute.length),this.GlyphCount.compile(a);for(var b=0;b<this.Substitute.length;b=b+1|0)this.Substitute[b].compile(a)},x.SubTable.GSUB.SubstFormat2.prototype.finalize=function(a,b){this.Coverage.finalize(a,b)},x.SubTable.GSUB.SubstFormat2.prototype.substitute=function(a){var b=[],c=this.Coverage._ref.getRanges(),e=d(c).keys.map(function(a){return parseInt(a)});e=h(e,a);for(var f=0;f<e.length;f=f+1|0)b.push({org:[e[f]],sub:[this.Substitute[parseInt(c[parseInt(e[f])])].get()]});return b},x.SubTable.GSUB.LookUp2=function(){this.tag="LookUp2",this.LookupType=2,this.SubstFormat=new v.Type.uint16,this.Coverage=new v.Type.OFFSET(x.Table.Coverage,this.tag),this.SequenceCount=new v.Type.uint16,this.Sequence=[],this.sOffset=null,this.stream=null,this.pack=!0},x.SubTable.GSUB.LookUp2.prototype.decompile=function(a){this.sOffset=a.offset,this.stream=a},x.SubTable.GSUB.LookUp2.prototype._decompile=function(){var a=this.stream.offset;this.stream.offset=this.sOffset,this.SubstFormat.decompile(this.stream,this.sOffset),this.Coverage.decompile(this.stream,this.sOffset,!0),this.SequenceCount.decompile(this.stream,this.sOffset);for(var b=0;b<this.SequenceCount.get();b=b+1|0)this.Sequence[b]=new v.Type.OFFSET(x.SubTable.GSUB.Sequence),this.Sequence[b].decompile(this.stream,this.sOffset,!0);this.pack=!1,this.stream.offset=a},x.SubTable.GSUB.LookUp2.prototype.compile=function(){},x.SubTable.GSUB.LookUp2.prototype.substitute=function(a){this.pack&&this._decompile();var b=[],c=this.Coverage._ref.getRanges(),e=d(c).keys.map(function(a){return parseInt(a)});e=h(e,a);for(var f=0;f<e.length;f=f+1|0)b.push({org:[e[f]],sub:this.Sequence[c[e[f]]]._ref.Substitute.map(function(a){return a.get()})});return b},x.SubTable.GSUB.Sequence=function(){this.tag="Sequence",this.GlyphCount=new v.Type.uint16,this.Substitute=[]},x.SubTable.GSUB.Sequence.prototype.decompile=function(a){var b=a.offset;this.GlyphCount.decompile(a,b);for(var c=0;c<this.GlyphCount.get();c=c+1|0)this.Substitute[c]=new v.Type.GlyphID,this.Substitute[c].decompile(a)},x.SubTable.GSUB.Sequence.prototype.compile=function(){},x.SubTable.GSUB.LookUp3=function(){this.tag="LookUp3",this.LookupType=3,this.SubstFormat=new v.Type.uint16,this.Coverage=new v.Type.OFFSET(x.Table.Coverage,this.tag),this.AlternateSetCount=new v.Type.uint16,this.AlternateSet=[],this.sOffset=null,this.stream=null,this.pack=!0},x.SubTable.GSUB.LookUp3.prototype.decompile=function(a){this.sOffset=a.offset,this.stream=a},x.SubTable.GSUB.LookUp3.prototype._decompile=function(){var a=this.stream.offset;this.stream.offset=this.sOffset,this.SubstFormat.decompile(this.stream),this.Coverage.decompile(this.stream,this.sOffset,!0),this.AlternateSetCount.decompile(this.stream);for(var b=0;b<this.AlternateSetCount.get();b=b+1|0)this.AlternateSet[b]=new v.Type.OFFSET(x.SubTable.GSUB.AlternateSet),this.AlternateSet[b].decompile(this.stream,this.sOffset,!0);this.pack=!1,this.stream.offset=a},x.SubTable.GSUB.LookUp3.prototype.compile=function(){},x.SubTable.GSUB.LookUp3.prototype.substitute=function(a){this.pack&&this._decompile();var b=[],c=this.Coverage._ref.getRanges(),e=d(c).keys.map(function(a){return parseInt(a)});e=h(e,a);for(var f=0;f<e.length;f=f+1|0)b.push({org:[e[f]],sub:this.AlternateSet[c[e[f]]]._ref.Alternate.map(function(a){return a.get()})});return b},x.SubTable.GSUB.AlternateSet=function(){this.tag="AlternateSet",this.GlyphCount=new v.Type.uint16,this.Alternate=[]},x.SubTable.GSUB.AlternateSet.prototype.decompile=function(a){var b=a.offset;this.GlyphCount.decompile(a,b);for(var c=0;c<this.GlyphCount.get();c=c+1|0)this.Alternate[c]=new v.Type.GlyphID,this.Alternate[c].decompile(a)},x.SubTable.GSUB.AlternateSet.prototype.compile=function(){},x.SubTable.GSUB.LookUp4=function(){this.tag="LookUp4",this.LookupType=4,this.SubstFormat=new v.Type.uint16,this.Coverage=new v.Type.OFFSET(x.Table.Coverage,this.tag),this.LigSetCount=new v.Type.uint16,this.LigatureSet=[],this.sOffset=null,this.stream=null,this.pack=!0},x.SubTable.GSUB.LookUp4.prototype.decompile=function(a){this.sOffset=a.offset,this.stream=a},x.SubTable.GSUB.LookUp4.prototype._decompile=function(){var a=this.stream.offset;this.stream.offset=this.sOffset,this.SubstFormat.decompile(this.stream),this.Coverage.decompile(this.stream,this.sOffset,!0),this.LigSetCount.decompile(this.stream);for(var b=0;b<this.LigSetCount.get();b=b+1|0)this.LigatureSet[b]=new v.Type.OFFSET(x.SubTable.GSUB.LigatureSet),this.LigatureSet[b].decompile(this.stream,this.sOffset,!0);this.pack=!1,this.stream.offset=a},x.SubTable.GSUB.LookUp4.prototype.compile=function(a){var b=a.offset;this.SubstFormat.compile(a),this.Coverage.compile(a),this.LigSetCount.compile(a);for(var c=0;c<this.LigatureSet.length;c=c+1|0)this.LigatureSet[c].compile(a);this.Coverage.finalize(a,b);for(var c=0;c<this.LigatureSet.length;c=c+1|0)this.LigatureSet[c].finalize(a,b)},x.SubTable.GSUB.LookUp4.prototype.substitute=function(a){this.pack&&this._decompile();for(var b=[],c=this.Coverage._ref.getRanges(),f=d(c).keys.map(function(a){return parseInt(a)}),g=0;g<f.length;g++)if(-1!==a.indexOf(f[g]))for(var i=this.LigatureSet[c[f[g]]]._ref,j=0;j<i.Ligature.length;j=j+1|0){var k=i.Ligature[j]._ref,l=k.Component.map(function(a){return a.get()});if(h(a,l).length===e(l).length){var m=[f[g]];m=m.concat(l),b.push({org:m,sub:[k.LigGlyph.get()]})}}return b},x.SubTable.GSUB.LigatureSet=function(){this.tag="LigatureSet",this.LigatureCount=new v.Type.uint16,this.Ligature=[]},x.SubTable.GSUB.LigatureSet.prototype.decompile=function(a){var b=a.offset;this.LigatureCount.decompile(a,b);for(var c=0;c<this.LigatureCount.get();c=c+1|0)this.Ligature[c]=new v.Type.OFFSET(x.SubTable.GSUB.Ligature),this.Ligature[c].decompile(a,b,!0)},x.SubTable.GSUB.LigatureSet.prototype.compile=function(a){var b=a.offset;this.LigatureCount.compile(a);for(var c=0;c<this.Ligature.length;c=c+1|0)this.Ligature[c].compile(a);for(var c=0;c<this.Ligature.length;c=c+1|0)this.Ligature[c].finalize(a,b)},x.SubTable.GSUB.Ligature=function(){this.tag="Ligature",this.LigGlyph=new v.Type.GlyphID,this.CompCount=new v.Type.uint16,this.Component=[]},x.SubTable.GSUB.Ligature.prototype.decompile=function(a,b){a.offset;this.LigGlyph.decompile(a),this.CompCount.decompile(a);for(var c=0;c<this.CompCount.get()-1;c=c+1|0)this.Component[c]=new v.Type.GlyphID,this.Component[c].decompile(a)},x.SubTable.GSUB.Ligature.prototype.compile=function(a){this.LigGlyph.compile(a),this.CompCount.compile(a);for(var b=0;b<this.Component.length;b=b+1|0)this.Component[b].compile(a)},x.SubTable.GSUB.LookUp5=function(a){this.LookupType=5,this.LookUpList=a[1],this.SubstFormat=new v.Type.uint16,this.Subst=null,this.sOffset=null,this.stream=null,this.pack=!0},x.SubTable.GSUB.LookUp5.prototype.decompile=function(a){this.sOffset=a.offset,this.stream=a},x.SubTable.GSUB.LookUp5.prototype._decompile=function(){var a=this.stream.offset;if(this.stream.offset=this.sOffset,this.SubstFormat.decompile(this.stream),1===this.SubstFormat.get())this.Subst=new x.SubTable.GSUB.LookUp5Format1;else if(2===this.SubstFormat.get())this.Subst=new x.SubTable.GSUB.LookUp5Format2;else{if(3!==this.SubstFormat.get())throw"不明なフォーマットです";this.Subst=new x.SubTable.GSUB.LookUp5Format3}this.Subst.decompile(this.stream,this.sOffset),this.pack=!1,this.stream.offset=a},x.SubTable.GSUB.LookUp5.prototype.compile=function(){var a=stream.offset;this.SubstFormat.compile(stream),this.Subst.compile(stream,a)},x.SubTable.GSUB.LookUp5.prototype.substitute=function(a){return this.pack&&this._decompile(),this.Subst.substitute(a,this.LookUpList)},x.SubTable.GSUB.LookUp5Format1=function(){this.Coverage=new v.Type.OFFSET(x.Table.Coverage,this.tag),this.SubRuleSetCount=new v.Type.uint16,this.SubRuleSet=[]},x.SubTable.GSUB.LookUp5Format1.prototype.decompile=function(a,b){this.Coverage.decompile(a,b,!0),this.SubRuleSetCount.decompile(a);for(var c=0;c<this.SubRuleSetCount.get();c=c+1|0)this.SubRuleSet[c]=new v.Type.OFFSET(x.SubTable.GSUB.LookUp5Format1SubRuleSet),this.SubRuleSet[c].decompile(a,b,!0)},x.SubTable.GSUB.LookUp5Format1.prototype.compile=function(a,b){this.SubRuleSetCount.compile(a);for(var c=0;c<this.SubRuleSet.length;c=c+1|0)this.SubRuleSet[c].compile(a);for(var c=0;c<this.SubRuleSet.length;c=c+1|0)this.SubRuleSet[c].finalize(a,b)},x.SubTable.GSUB.LookUp5Format1.prototype.substitute=function(a,b){throw"NOT IMP SUB 5-1"},x.SubTable.GSUB.LookUp5Format1SubRuleSet=function(){this.SubRuleCount=new v.Type.uint16,this.SubRule=[]},x.SubTable.GSUB.LookUp5Format1SubRuleSet.prototype.decompile=function(a,b){this.SubRuleCount.decompile(a,b);for(var c=0;c<this.SubRuleCount.get();c=c+1|0)this.SubRule[c]=new v.Type.OFFSET(x.SubTable.GSUB.LookUp5Format1SubRule),this.SubRule[c].decompile(a,b,!0)},x.SubTable.GSUB.LookUp5Format1SubRuleSet.prototype.compile=function(a,b){this.SubRuleCount.compile(a);for(var c=0;c<this.SubRule.length;c=c+1|0)this.SubRule[c].compile(a);for(var c=0;c<this.SubRule.length;c=c+1|0)this.SubRule[c].finalize(a,b)},x.SubTable.GSUB.LookUp5Format1SubRule=function(){this.GlyphCount=new v.Type.uint16,this.SubstCount=new v.Type.uint16,this.Input=[],this.SubstLookupRecord=[]},x.SubTable.GSUB.LookUp5Format1SubRule.prototype.decompile=function(a,b){this.GlyphCount.decompile(a),this.SubstCount.decompile(a);for(var c=0;c<this.GlyphCount.get()-1;c=c+1|0)this.Input[c]=new v.Type.GlyphID,this.Input[c].decompile(a);for(var c=0;c<this.SubstCount.get();c=c+1|0)this.SubstLookupRecord[c]=new x.SubTable.GSUB.SubstLookupRecord,this.SubstLookupRecord[c].decompile(a)},x.SubTable.GSUB.LookUp5Format1SubRule.prototype.compile=function(a,b){this.GlyphCount.compile(a),this.SubstCount.compile(a);for(var c=0;c<this.Input.length;c=c+1|0)this.Input[c].compile(a);for(var c=0;c<this.SubstLookupRecord.length;c=c+1|0)this.SubstLookupRecord[c].compile(a);for(var c=0;c<this.Input.length;c=c+1|0)this.Input[c].finalize(a,b);for(var c=0;c<this.SubstLookupRecord.length;c=c+1|0)this.SubstLookupRecord[c].finalize(a,b)},x.SubTable.GSUB.LookUp5Format2=function(){this.Coverage=new v.Type.OFFSET(x.Table.Coverage,this.tag),this.ClassDef=new v.Type.OFFSET(x.Table.ClassDef,this.tag),this.SubClassSetCnt=new v.Type.uint16,this.SubClassSet=[]},x.SubTable.GSUB.LookUp5Format2.prototype.decompile=function(a,b){this.Coverage.decompile(a,b,!0),this.ClassDef.decompile(a,b,!0),this.SubClassSetCnt.decompile(a);for(var c=0;c<this.SubClassSetCnt.get();c=c+1|0)this.SubClassSet[c]=new v.Type.OFFSET(x.SubTable.GSUB.LookUp5Format2SubClassSet),this.SubClassSet[c].decompile(a,b,!0)},x.SubTable.GSUB.LookUp5Format2.prototype.compile=function(a,b){this.Coverage.compile(a),this.ClassDef.compile(a),this.SubClassSetCnt.compile(a);for(var c=0;c<this.SubClassSet.length;c=c+1|0)this.SubClassSet[c].compile(a);this.Coverage.finalize(a,b),this.ClassDef.finalize(a,b);for(var c=0;c<this.SubClassSet.length;c=c+1|0)this.SubClassSet[c].finalize(a,b)},x.SubTable.GSUB.LookUp5Format2.prototype.substitute=function(a,b){var c=this.Coverage._ref.getRanges(),e=d(c).keys.map(function(a){return parseInt(a)});if(0===h(a,e).length)return[];for(var f=this.ClassDef._ref.getCluster(),g=[],i=0;i<this.SubClassSet.length;i=i+1|0){var j=this.SubClassSet[i];if(null!==j._ref)for(var k=0;k<j._ref.SubClassRule.length;k=k+1|0){var l=j._ref.SubClassRule[k]._ref;if(0!==h(a,f[i]).length){for(var m=!1,n=0;n<l.Class.length;n=n+1|0)if(0===h(a,f[l.Class[n].get()]).length){m=!0;break}if(!m)for(var n=0;n<l.SubstLookupRecord.length;n=n+1|0){var o=l.SubstLookupRecord[n];b.Lookup[o.LookupListIndex.get()]._ref.substitute(a).map(function(a){g=g.concat(a)})}}}}return g},x.SubTable.GSUB.LookUp5Format2SubClassSet=function(){this.SubClassRuleCnt=new v.Type.uint16,this.SubClassRule=[]},x.SubTable.GSUB.LookUp5Format2SubClassSet.prototype.decompile=function(a){var b=a.offset;this.SubClassRuleCnt.decompile(a,b);for(var c=0;c<this.SubClassRuleCnt.get();c=c+1|0)this.SubClassRule[c]=new v.Type.OFFSET(x.SubTable.GSUB.LookUp5Format2SubClassRule),this.SubClassRule[c].decompile(a,b,!0)},x.SubTable.GSUB.LookUp5Format2SubClassSet.prototype.compile=function(a){var b=a.offset;this.SubClassRuleCnt.compile(a);for(var c=0;c<this.SubClassRule.length;c=c+1|0)this.SubClassRule[c].compile(a);for(var c=0;c<this.SubClassRule.length;c=c+1|0)this.SubClassRule[c].finalize(a,b)},x.SubTable.GSUB.LookUp5Format2SubClassRule=function(){this.GlyphCount=new v.Type.uint16,this.SubstCount=new v.Type.uint16,this.Class=[],this.SubstLookupRecord=[]},x.SubTable.GSUB.LookUp5Format2SubClassRule.prototype.decompile=function(a,b){this.GlyphCount.decompile(a),this.SubstCount.decompile(a);for(var c=0;c<this.GlyphCount.get()-1;c=c+1|0)this.Class[c]=new v.Type.uint16,this.Class[c].decompile(a);for(var c=0;c<this.SubstCount.get();c=c+1|0)this.SubstLookupRecord[c]=new x.SubTable.GSUB.SubstLookupRecord,this.SubstLookupRecord[c].decompile(a)},x.SubTable.GSUB.LookUp5Format2SubClassRule.prototype.compile=function(a,b){this.GlyphCount.compile(a),this.SubstCount.compile(a);for(var c=0;c<this.Class.length;c=c+1|0)this.Class[c].compile(a);for(var c=0;c<this.SubstLookupRecord.length;c=c+1|0)this.SubstLookupRecord[c].compile(a);for(var c=0;c<this.Input.length;c=c+1|0)this.Class[c].finalize(a,b);for(var c=0;c<this.SubstLookupRecord.length;c=c+1|0)this.SubstLookupRecord[c].finalize(a,b)},x.SubTable.GSUB.LookUp5Format3=function(){this.GlyphCount=new v.Type.uint16,this.SubstCount=new v.Type.uint16,this.Coverage=[],this.SubstLookupRecord=[]},x.SubTable.GSUB.LookUp5Format3.prototype.decompile=function(a,b){this.GlyphCount.decompile(a,b,!0),this.SubstCount.decompile(a,b,!0);for(var c=0;c<this.GlyphCount.get();c=c+1|0)this.Coverage[c]=new v.Type.OFFSET(x.Table.Coverage,this.tag),this.Coverage[c].decompile(a,b,!0);for(var c=0;c<this.SubstCount.get();c=c+1|0)this.SubstLookupRecord[c]=new x.SubTable.GSUB.SubstLookupRecord,this.SubstLookupRecord[c].decompile(a)},x.SubTable.GSUB.LookUp5Format3.prototype.compile=function(a,b){this.GlyphCount.compile(a),this.SubstCount.compile(a);for(var c=0;c<this.Coverage.length;c=c+1|0)this.Coverage[c].compile(a);for(var c=0;c<this.SubstLookupRecord.length;c=c+1|0)this.SubstLookupRecord[c].compile(a);for(var c=0;c<this.Coverage.length;c=c+1|0)this.Coverage[c].finalize(a,b)},x.SubTable.GSUB.LookUp5Format3.prototype.substitute=function(a,b){throw"NOT IMP SUB 5-3"},x.SubTable.GSUB.LookUp6=function(a){this.LookupType=6,this.LookUpList=a[1],this.SubstFormat=new v.Type.uint16,this.Subst=null,this.sOffset=null,this.stream=null,this.pack=!0},x.SubTable.GSUB.LookUp6.prototype.decompile=function(a){this.stream=a,this.sOffset=a.offset},x.SubTable.GSUB.LookUp6.prototype._decompile=function(){var a=this.stream.offset;if(this.stream.offset=this.sOffset,this.SubstFormat.decompile(this.stream),1===this.SubstFormat.get())this.Subst=new x.SubTable.GSUB.LookUp6Format1;else if(2===this.SubstFormat.get())this.Subst=new x.SubTable.GSUB.LookUp6Format2;else{if(3!==this.SubstFormat.get())throw"不明なフォーマットです";this.Subst=new x.SubTable.GSUB.LookUp6Format3}this.Subst.decompile(this.stream,this.sOffset),this.stream.offset=a,this.pack=!1},x.SubTable.GSUB.LookUp6.prototype.compile=function(a){var b=a.offset;this.SubstFormat.compile(a),this.Subst.compile(a,b)},x.SubTable.GSUB.LookUp6.prototype.substitute=function(a,b){return this.pack&&this._decompile(),this.Subst.substitute(a,b)},x.SubTable.GSUB.LookUp6Format1=function(){this.Coverage=new v.Type.OFFSET(x.Table.Coverage,this.tag),this.ChainSubRuleSetCount=new v.Type.uint16,this.ChainSubRuleSet=[]},x.SubTable.GSUB.LookUp6Format1.prototype.decompile=function(a,b){this.Coverage.decompile(a,b,!0),this.ChainSubRuleSetCount.decompile(a,b,!0);for(var c=0;c<this.ChainSubRuleSetCount.get();c=c+1|0)this.ChainSubRuleSet[c]=new v.Type.OFFSET(x.SubTable.GSUB.LookUp6Format1Sub),this.ChainSubRuleSet[c].decompile(a,b,!0)},x.SubTable.GSUB.LookUp6Format1.prototype.compile=function(a,b){this.Coverage.compile(a),this.ChainSubRuleSetCount.compile(a);for(var c=0;c<this.ChainSubRuleSet.get();c=c+1|0)this.ChainSubRuleSet[c].compile(a);this.Coverage.compile(a,b);for(var c=0;c<this.ChainSubRuleSet.get();c=c+1|0)this.ChainSubRuleSet[c].finalize(a,b)},x.SubTable.GSUB.LookUp6Format1.prototype.substitute=function(a){throw"NOT IMP SUB 6-1"},x.SubTable.GSUB.LookUp6Format1Sub=function(){this.ChainSubRuleCount=new v.Type.uint16,this.ChainSubRule=[]},x.SubTable.GSUB.LookUp6Format1Sub.prototype.decompile=function(a,b){this.ChainSubRuleCount.decompile(a,b,!0);for(var c=0;c<this.ChainSubRuleCount.get();c=c+1|0)this.ChainSubRule[c]=new v.Type.OFFSET(x.SubTable.GSUB.LookUp6Format1SubChain),this.ChainSubRule[c].decompile(a,b,!0)},x.SubTable.GSUB.LookUp6Format1Sub.prototype.compile=function(a){var b=a.offset;this.ChainSubRuleCount.compile(sream);for(var c=0;c<this.ChainSubRule.get();c=c+1|0)this.ChainSubRule[c].compile(a);for(var c=0;c<this.ChainSubRule.get();c=c+1|0)this.ChainSubRule[c].finalize(a,b)},x.SubTable.GSUB.LookUp6Format1SubChain=function(){this.BacktrackGlyphCount=new v.Type.uint16,this.Backtrack=[],this.InputGlyphCount=new v.Type.uint16,this.Input=[],this.LookaheadGlyphCount=new v.Type.uint16,this.LookAhead=[],this.SubstCount=new v.Type.uint16,this.SubstLookupRecord=[]},x.SubTable.GSUB.LookUp6Format1SubChain.prototype.decompile=function(a,b){this.BacktrackGlyphCount.decompile(a);for(var c=0;c<this.BacktrackGlyphCount.get();c=c+1|0)this.Backtrack[c]=new v.Type.GlyphID,this.Backtrack[c].decompile(a);this.InputGlyphCount.decompile(a);for(var c=0;c<this.InputGlyphCount.get()-1;c=c+1|0)this.Input[c]=new v.Type.GlyphID,this.Input[c].decompile(a);this.LookaheadGlyphCount.decompile(a);for(var c=0;c<this.LookaheadGlyphCount.get();c=c+1|0)this.LookAhead[c]=new v.Type.GlyphID,this.LookAhead[c].decompile(a);this.SubstCount.decompile(a);for(var c=0;c<this.SubstCount.get();c=c+1|0)this.SubstLookupRecord[c]=new x.SubTable.GSUB.SubstLookupRecord,this.SubstLookupRecord[c].decompile(a)},x.SubTable.GSUB.LookUp6Format1SubChain.prototype.compile=function(a){this.BacktrackGlyphCount.compile(a);for(var b=0;b<this.BacktrackGlyphCount.length;b=b+1|0)this.Backtrack[b].compile(a);this.InputGlyphCount.compile(a);for(var b=0;b<this.InputGlyphCount.length-1;b=b+1|0)this.Input[b].compile(a);this.LookaheadGlyphCount.compile(a);for(var b=0;b<this.LookaheadGlyphCount.length;b=b+1|0)this.LookAhead[b].compile(a);this.SubstCount.compile(a);for(var b=0;b<this.SubstCount.length;b=b+1|0)this.SubstLookupRecord[b].compile(a)},x.SubTable.GSUB.LookUp6Format2=function(){this.Coverage=new v.Type.OFFSET(x.Table.Coverage,this.tag),this.BacktrackClassDef=new v.Type.OFFSET(x.Table.ClassDef,this.tag),this.InputClassDef=new v.Type.OFFSET(x.Table.ClassDef,this.tag),this.LookaheadClassDef=new v.Type.OFFSET(x.Table.ClassDef,this.tag),this.ChainSubClassSetCnt=new v.Type.uint16,this.ChainSubClassSet=[]},x.SubTable.GSUB.LookUp6Format2.prototype.decompile=function(a,b){this.Coverage.decompile(a,b,!0),this.BacktrackClassDef.decompile(a,b,!0),this.InputClassDef.decompile(a,b,!0),this.LookaheadClassDef.decompile(a,b,!0),this.ChainSubClassSetCnt.decompile(a);for(var c=0;c<this.ChainSubClassSetCnt.get();c=c+1|0)this.ChainSubClassSet[c]=new v.Type.OFFSET(x.SubTable.GSUB.LookUp6Format2ChainSubClassSet),this.ChainSubClassSet[c].decompile(a,b,!0)},x.SubTable.GSUB.LookUp6Format2.prototype.compile=function(a,b){this.Coverage.compile(a),this.BacktrackClassDef.compile(a),this.InputClassDef.compile(a),this.LookaheadClassDef.compile(a),this.ChainSubClassSetCnt.compile(a);for(var c=0;c<this.ChainSubClassSet.length;c=c+1|0)this.ChainSubClassSet[c].compile(a);this.Coverage.finalize(a,b),this.BacktrackClassDef.finalize(a,b),this.InputClassDef.finalize(a,b),this.LookaheadClassDef.finalize(a,b),this.ChainSubClassSetCnt.finalize(a,b);for(var c=0;c<this.ChainSubClassSet.length;c=c+1|0)this.ChainSubClassSet[c].finalize(a,b)},x.SubTable.GSUB.LookUp6Format2.prototype.substitute=function(a,b){var c=this.Coverage._ref.getRanges(),e=d(c).keys.map(function(a){return parseInt(a)});if(0===h(a,e).length)return[];for(var f=this.BacktrackClassDef._ref.getCluster(),g=this.InputClassDef._ref.getCluster(),i=this.LookaheadClassDef._ref.getCluster(),j=[],k=0;k<this.ChainSubClassSet.length;k=k+1|0){var l=this.ChainSubClassSet[k];if(null!==l._ref)for(var m=0;m<l._ref.ChainSubClassRule.length;m=m+1|0){var n=l._ref.ChainSubClassRule[m]._ref;if(0!==h(a,g[k]).length){for(var o=!1,p=0;p<n.Input.length;p=p+1|0)if(0===h(a,g[n.Input[p].get()]).length){o=!0;break}if(!o){o=!1;for(var p=0;p<n.Backtrack.length;p=p+1|0)if(0===h(a,f[n.Backtrack[p].get()]).length){o=!0;break}if(!o){o=!1;for(var p=0;p<n.LookAhead.length;p=p+1|0)if(0===h(a,i[n.LookAhead[p].get()]).length){o=!0;break}if(!o)for(var p=0;p<n.SubstLookupRecord.length;p=p+1|0){var q=n.SubstLookupRecord[p];b.Lookup[q.LookupListIndex.get()]._ref.substitute(a).map(function(a){j=j.concat(a)})}}}}}}return j},x.SubTable.GSUB.LookUp6Format2ChainSubClassSet=function(){this.ChainSubClassRuleCnt=new v.Type.uint16,this.ChainSubClassRule=[]},x.SubTable.GSUB.LookUp6Format2ChainSubClassSet.prototype.decompile=function(a){var b=a.offset;this.ChainSubClassRuleCnt.decompile(a);for(var c=0;c<this.ChainSubClassRuleCnt.get();c=c+1|0)this.ChainSubClassRule[c]=new v.Type.OFFSET(x.SubTable.GSUB.LookUp6Format2ChainSubClassRule),this.ChainSubClassRule[c].decompile(a,b,!0)},x.SubTable.GSUB.LookUp6Format2ChainSubClassSet.prototype.compile=function(a){var b=a.offset;this.ChainSubClassRule.compile(a);for(var c=0;c<this.ChainSubClassRule.length;c=c+1|0)this.ChainSubClassRule[c].compile(a);for(var c=0;c<this.ChainSubClassRule.length;c=c+1|0)this.ChainSubClassRule[c].finalize(a,b)},x.SubTable.GSUB.LookUp6Format2ChainSubClassRule=function(){this.BacktrackGlyphCount=new v.Type.uint16,this.Backtrack=[],this.InputGlyphCount=new v.Type.uint16,this.Input=[],this.LookaheadGlyphCount=new v.Type.uint16,this.LookAhead=[],this.SubstCount=new v.Type.uint16,this.SubstLookupRecord=[]},x.SubTable.GSUB.LookUp6Format2ChainSubClassRule.prototype.decompile=function(a,b){this.BacktrackGlyphCount.decompile(a);for(var c=0;c<this.BacktrackGlyphCount.get();c=c+1|0)this.Backtrack[c]=new v.Type.uint16,this.Backtrack[c].decompile(a);this.InputGlyphCount.decompile(a);for(var c=0;c<this.InputGlyphCount.get()-1;c=c+1|0)this.Input[c]=new v.Type.uint16,this.Input[c].decompile(a);this.LookaheadGlyphCount.decompile(a);for(var c=0;c<this.LookaheadGlyphCount.get();c=c+1|0)this.LookAhead[c]=new v.Type.uint16,this.LookAhead[c].decompile(a);this.SubstCount.decompile(a);for(var c=0;c<this.SubstCount.get();c=c+1|0)this.SubstLookupRecord[c]=new x.SubTable.GSUB.SubstLookupRecord,this.SubstLookupRecord[c].decompile(a)},x.SubTable.GSUB.LookUp6Format2ChainSubClassRule.prototype.compile=function(a){this.BacktrackGlyphCount.compile(a);for(var b=0;b<this.BacktrackGlyphCount.length;b=b+1|0)this.Backtrack[b].compile(a);this.InputGlyphCount.compile(a);for(var b=0;b<this.InputGlyphCount.length-1;b=b+1|0)this.Input[b].compile(a);this.LookaheadGlyphCount.compile(a);for(var b=0;b<this.LookaheadGlyphCount.length;b=b+1|0)this.LookAhead[b].compile(a);this.SubstCount.compile(a);for(var b=0;b<this.SubstCount.length;b=b+1|0)this.SubstLookupRecord[b].compile(a)},x.SubTable.GSUB.LookUp6Format3=function(){this.BacktrackGlyphCount=new v.Type.uint16,this.BacktrackGlyphCoverage=[],this.InputGlyphCount=new v.Type.uint16,this.InputGlyphCoverage=[],this.LookaheadGlyphCount=new v.Type.uint16,this.LookaheadCoverage=[],this.SubstCount=new v.Type.uint16,this.SubstLookupRecord=[]},x.SubTable.GSUB.LookUp6Format3.prototype.decompile=function(a,b){this.BacktrackGlyphCount.decompile(a);for(var c=0;c<this.BacktrackGlyphCount.get();c=c+1|0)this.BacktrackGlyphCoverage[c]=new v.Type.OFFSET(x.Table.Coverage,this.tag),this.BacktrackGlyphCoverage[c].decompile(a,b,!0);this.InputGlyphCount.decompile(a);for(var c=0;c<this.InputGlyphCount.get();c=c+1|0)this.InputGlyphCoverage[c]=new v.Type.OFFSET(x.Table.Coverage,this.tag),this.InputGlyphCoverage[c].decompile(a,b,!0);this.LookaheadGlyphCount.decompile(a);for(var c=0;c<this.LookaheadGlyphCount.get();c=c+1|0)this.LookaheadCoverage[c]=new v.Type.OFFSET(x.Table.Coverage,this.tag),this.LookaheadCoverage[c].decompile(a,b,!0);this.SubstCount.decompile(a);for(var c=0;c<this.SubstCount.get();c=c+1|0)this.SubstLookupRecord[c]=new x.SubTable.GSUB.SubstLookupRecord,this.SubstLookupRecord[c].decompile(a)},x.SubTable.GSUB.LookUp6Format3.prototype.compile=function(a,b){this.BacktrackGlyphCount.compile(a);for(var c=0;c<this.BacktrackGlyphCoverage.length;c=c+1|0)this.BacktrackGlyphCoverage[c].compile(a);this.InputGlyphCount.compile(a);for(var c=0;c<this.InputGlyphCoverage.length;c=c+1|0)this.InputGlyphCoverage[c].compile(a);this.LookaheadGlyphCount.compile(a);for(var c=0;c<this.LookaheadCoverage.length;c=c+1|0)this.LookaheadCoverage[c].compile(a);this.SubstCount.compile(a);for(var c=0;c<this.SubstLookupRecord.length;c=c+1|0)this.SubstLookupRecord[c].compile(a);for(var c=0;c<this.BacktrackGlyphCoverage.length;c=c+1|0)this.BacktrackGlyphCoverage[c].finalize(a,b);for(var c=0;c<this.InputGlyphCoverage.length;c=c+1|0)this.InputGlyphCoverage[c].finalize(a,b);for(var c=0;c<this.LookaheadCoverage.length;c=c+1|0)this.LookaheadCoverage[c].finalize(a,b)},x.SubTable.GSUB.LookUp6Format3.prototype.substitute=function(a,b){for(var c=[],f=0;f<this.BacktrackGlyphCoverage.length;f=f+1|0){var g=this.BacktrackGlyphCoverage[f]._ref.getRanges(),i=d(g).keys.map(function(a){return parseInt(a)});if(0===h(i,a).length)return c}for(var f=0;f<this.LookaheadCoverage.length;f=f+1|0){var g=this.LookaheadCoverage[f]._ref.getRanges(),i=d(g).keys.map(function(a){return parseInt(a)});if(0===h(i,a).length)return c}for(var j=[],f=0;f<this.InputGlyphCoverage.length;f=f+1|0){var g=this.InputGlyphCoverage[f]._ref.getRanges(),i=d(g).keys.map(function(a){return parseInt(a)});if(0===h(i,a).length)return c;j=j.concat(i)}j=e(j);for(var f=0;f<this.SubstLookupRecord.length;f=f+1|0){var k=this.SubstLookupRecord[f];b.Lookup[k.LookupListIndex.get()]._ref.substitute(a).map(function(a){c=c.concat(a)})}return c},x.SubTable.GSUB.SubstLookupRecord=function(){this.SequenceIndex=new v.Type.uint16,this.LookupListIndex=new v.Type.uint16},x.SubTable.GSUB.SubstLookupRecord.prototype.decompile=function(a){this.SequenceIndex.decompile(a),this.LookupListIndex.decompile(a)},x.SubTable.GSUB.SubstLookupRecord.prototype.compile=function(a){this.SequenceIndex.compile(a),this.LookupListIndex.compile(a)},x.SubTable.GSUB.LookUp7=function(a){this.LookUpList=a[1],this.LookupType=7,this.SubstFormat=new v.Type.uint16,this.ExtensionLookupType=new v.Type.uint16,this.ExtensionOffset=null,this.sOffset=null,this.stream=null,this.pack=!0},x.SubTable.GSUB.LookUp7.prototype.decompile=function(a){this.stream=a,this.sOffset=a.offset},x.SubTable.GSUB.LookUp7.prototype._decompile=function(){
var a=this.stream.offset;this.stream.offset=this.sOffset,this.SubstFormat.decompile(this.stream),this.ExtensionLookupType.decompile(this.stream);var b=x.SubTable.GSUB["LookUp"+this.ExtensionLookupType.get()];if("undefined"==typeof b)throw"FORMAT7からインスタンスが生成できませんでした。";this.ExtensionOffset=new v.Type.LONGOFFSET(b),this.ExtensionOffset.decompile(this.stream,this.sOffset,!0),this.stream.offset=a,this.pack=!1},x.SubTable.GSUB.LookUp7.prototype.compile=function(a){this.SubstFormat.compile(a),this.ExtensionLookupType.compile(a),this.ExtensionOffset.compile(a)},x.SubTable.GSUB.LookUp7.prototype.substitute=function(a){return this.pack&&this._decompile(),this.ExtensionOffset._ref.substitute(a,this.LookUpList)},x.SubTable.GSUB.LookUp8=function(){this.LookupType=8},x.SubTable.GSUB.LookUp8.prototype.decompile=function(a){},x.SubTable.GSUB.LookUp8.prototype.compile=function(){},x.Table.ScriptList=function(){this.tag="ScriptList",this.ScriptCount=new v.Type.uint16,this.ScriptRecord=[]},x.Table.ScriptList.prototype.decompile=function(a){var b=a.offset;this.ScriptCount.decompile(a);for(var c=0;c<this.ScriptCount.get();c=c+1|0)this.ScriptRecord[c]=new x.Table.ScriptRecord,this.ScriptRecord[c].decompile(a,b)},x.Table.ScriptList.prototype.compile=function(a){var b=a.offset;this.ScriptCount.set(this.ScriptRecord.length),this.ScriptCount.compile(a);for(var c=0;c<this.ScriptRecord.length;c=c+1|0)this.ScriptRecord[c].compile(a);for(var c=0;c<this.ScriptRecord.length;c=c+1|0)this.ScriptRecord[c].finalize(a,b)},x.Table.ScriptRecord=function(){this.tag="ScriptRecord",this.ScriptTag=new v.Type.Tag,this.Script=new v.Type.OFFSET(x.Table.Script)},x.Table.ScriptRecord.prototype.decompile=function(a,b){this.ScriptTag.decompile(a),this.Script.decompile(a,b,!0)},x.Table.ScriptRecord.prototype.compile=function(a){this.ScriptTag.compile(a),this.Script.compile(a)},x.Table.ScriptRecord.prototype.finalize=function(a,b){this.Script.finalize(a,b)},x.Table.Script=function(){this.tag="Script",this.DefaultLangSys=new v.Type.OFFSET(x.Table.LangSys),this.LangSysCount=new v.Type.uint16,this.LangSysRecord=[]},x.Table.Script.prototype.decompile=function(a){var b=a.offset;this.DefaultLangSys.decompile(a,b,!0),this.LangSysCount.decompile(a);for(var c=0;c<this.LangSysCount.get();c=c+1|0)this.LangSysRecord[c]=new x.Table.LangSysRecord,this.LangSysRecord[c].decompile(a,b)},x.Table.Script.prototype.compile=function(a){var b=a.offset;this.DefaultLangSys.compile(a),this.LangSysCount.set(this.LangSysRecord.length),this.LangSysCount.compile(a);for(var c=0;c<this.LangSysRecord.length;c=c+1|0)this.LangSysRecord[c].compile(a);this.DefaultLangSys.finalize(a,b);for(var c=0;c<this.LangSysRecord.length;c=c+1|0)this.LangSysRecord[c].finalize(a,b)},x.Table.LangSysRecord=function(){this.tag="LangSysRecord",this.LangSysTag=new v.Type.Tag,this.LangSys=new v.Type.OFFSET(x.Table.LangSys)},x.Table.LangSysRecord.prototype.decompile=function(a,b){this.LangSysTag.decompile(a),this.LangSys.decompile(a,b,!0)},x.Table.LangSysRecord.prototype.compile=function(a){this.LangSysTag.compile(a),this.LangSys.compile(a)},x.Table.LangSysRecord.prototype.finalize=function(a,b){this.LangSys.finalize(a,b)},x.Table.LangSys=function(){this.tag="LangSys",this.LookupOrder=new v.Type.uint16,this.ReqFeatureIndex=new v.Type.uint16,this.FeatureCount=new v.Type.uint16,this.FeatureIndex=[]},x.Table.LangSys.prototype.decompile=function(a){this.LookupOrder.decompile(a),this.ReqFeatureIndex.decompile(a),this.FeatureCount.decompile(a);for(var b=0;b<this.FeatureCount.get();b=b+1|0)this.FeatureIndex[b]=new v.Type.uint16,this.FeatureIndex[b].decompile(a)},x.Table.LangSys.prototype.compile=function(a){this.LookupOrder.compile(a),this.ReqFeatureIndex.compile(a),this.FeatureCount.set(this.FeatureIndex.length),this.FeatureCount.compile(a);for(var b=0;b<this.FeatureIndex.length;b=b+1|0)this.FeatureIndex[b].compile(a)},x.Table.FeatureList=function(){this.tag="FeatureList",this.FeatureCount=new v.Type.uint16,this.FeatureRecord=[]},x.Table.FeatureList.prototype.decompile=function(a){var b=a.offset;this.FeatureCount.decompile(a);for(var c=0;c<this.FeatureCount.get();c=c+1|0)this.FeatureRecord[c]=new x.Table.FeatureRecord,this.FeatureRecord[c].decompile(a,b)},x.Table.FeatureList.prototype.compile=function(a){var b=a.offset;this.FeatureCount.set(this.FeatureRecord.length),this.FeatureCount.compile(a);for(var c=0;c<this.FeatureRecord.length;c=c+1|0)this.FeatureRecord[c].compile(a);for(var c=0;c<this.FeatureRecord.length;c=c+1|0)this.FeatureRecord[c].finalize(a,b)},x.Table.FeatureRecord=function(){this.tag="FeatureRecord",this.FeatureTag=new v.Type.Tag,this.Feature=new v.Type.OFFSET(x.Table.Feature)},x.Table.FeatureRecord.prototype.decompile=function(a,b){this.FeatureTag.decompile(a),this.Feature.decompile(a,b,!0)},x.Table.FeatureRecord.prototype.compile=function(a,b){this.FeatureTag.compile(a),this.Feature.compile(a)},x.Table.FeatureRecord.prototype.finalize=function(a,b){this.Feature.finalize(a,b)},x.Table.Feature=function(){this.tag="Feature",this.FeatureParams=new v.Type.uint16,this.LookupCount=new v.Type.uint16,this.LookupListIndex=[]},x.Table.Feature.prototype.decompile=function(a){a.offset;this.FeatureParams.decompile(a),this.LookupCount.decompile(a);for(var b=0;b<this.LookupCount.get();b=b+1|0)this.LookupListIndex[b]=new v.Type.uint16,this.LookupListIndex[b].decompile(a)},x.Table.Feature.prototype.compile=function(a){this.FeatureParams.compile(a),this.LookupCount.set(this.LookupListIndex.length),this.LookupCount.compile(a);for(var b=0;b<this.LookupListIndex.length;b=b+1|0)this.LookupListIndex[b].compile(a)},x.Table.LookupList=function(a){this.tag="LookupList",this._tableType=a[1],this.LookupCount=new v.Type.uint16,this.Lookup=[]},x.Table.LookupList.prototype.decompile=function(a){var b=a.offset;this.LookupCount.decompile(a);for(var c=0;c<this.LookupCount.get();c=c+1|0)this.Lookup[c]=new v.Type.OFFSET(x.Table.Lookup,this),this.Lookup[c].decompile(a,b,!0)},x.Table.LookupList.prototype.compile=function(a){var b=a.offset;this.LookupCount.set(this.Lookup.length),this.LookupCount.compile(a);for(var c=0;c<this.Lookup.length;c=c+1|0)this.Lookup[c].compile(a);for(var c=0;c<this.Lookup.length;c=c+1|0)this.Lookup[c].finalize(a,b)},x.Table.Lookup=function(a){this.tag="Lookup",this.parent=a[1],this.LookupType=new v.Type.uint16,this.LookupFlag=new v.Type.uint16,this.SubTableCount=new v.Type.uint16,this.SubTable=[],this.MarkFilteringSet=new v.Type.uint16},x.Table.Lookup.prototype.decompile=function(a){var b=a.offset;this.LookupType.decompile(a),this.LookupFlag.decompile(a),this.SubTableCount.decompile(a);var c=x.SubTable[this.parent._tableType]["LookUp"+this.LookupType.get()];if(null==c)throw["unknown format",this.parent._tableType,this.LookupType.get()];for(var d=0;d<this.SubTableCount.get();d=d+1|0)this.SubTable[d]=new v.Type.OFFSET(c,this.parent),this.SubTable[d].decompile(a,b,!0);this.MarkFilteringSet.decompile(a)},x.Table.Lookup.prototype.compile=function(a){var b=a.offset;this.LookupType.compile(a),this.LookupFlag.compile(a),this.SubTableCount.set(this.SubTable.length),this.SubTableCount.compile(a);for(var c=0;c<this.SubTable.length;c=c+1|0)this.SubTable[c].compile(a);this.MarkFilteringSet.compile(a);for(var c=0;c<this.SubTable.length;c=c+1|0)this.SubTable[c].finalize(a,b)},x.Table.Lookup.prototype.substitute=function(a){for(var b=[],c=0;c<this.SubTable.length;c=c+1|0)b.push(this.SubTable[c]._ref.substitute(a,this.parent));return b.filter(function(a){return a.length>0})},x.Table.Coverage=function(){this.tag="Coverage",this.CoverageFormat=new v.Type.uint16,this.Coverage=null},x.Table.Coverage.prototype.decompile=function(a){if(this.CoverageFormat.decompile(a),1===this.CoverageFormat.get())this.Coverage=new x.Table.CoverageFormat1;else{if(2!==this.CoverageFormat.get())throw["unknown type",this.CoverageFormat.get()];this.Coverage=new x.Table.CoverageFormat2}this.Coverage.decompile(a)},x.Table.Coverage.prototype.compile=function(a){this.CoverageFormat.compile(a),this.Coverage.compile(a)},x.Table.Coverage.prototype.getRanges=function(){return this.Coverage.getRanges()},x.Table.CoverageFormat1=function(){this.tag="CoverageFormat1",this.GlyphCount=new v.Type.uint16,this.GlyphID=[]},x.Table.CoverageFormat1.prototype.decompile=function(a){this.GlyphCount.decompile(a);for(var b=0;b<this.GlyphCount.get();b=b+1|0)this.GlyphID[b]=new v.Type.GlyphID,this.GlyphID[b].decompile(a)},x.Table.CoverageFormat1.prototype.compile=function(a){this.GlyphCount.set(this.GlyphID.length),this.GlyphCount.compile(a);for(var b=0;b<this.GlyphID.length;b=b+1|0)this.GlyphID[b].compile(a)},x.Table.CoverageFormat1.prototype.getRanges=function(){for(var a={},b=0;b<this.GlyphID.length;b++)a[this.GlyphID[b].get()]=b;return a},x.Table.CoverageFormat2=function(){this.tag="CoverageFormat2",this.RangeCount=new v.Type.uint16,this.RangeRecord=[]},x.Table.CoverageFormat2.prototype.decompile=function(a){this.RangeCount.decompile(a);for(var b=0;b<this.RangeCount.get();b=b+1|0)this.RangeRecord[b]=new x.Table.CoverageFormat2Range,this.RangeRecord[b].decompile(a)},x.Table.CoverageFormat2.prototype.compile=function(a){this.RangeCount.set(this.RangeRecord.length),this.RangeCount.compile(a);for(var b=0;b<this.RangeRecord.length;b=b+1|0)this.RangeRecord[b].compile(a)},x.Table.CoverageFormat2.prototype.getRanges=function(){for(var a={},b=0;b<this.RangeRecord.length;b=b+1|0)for(var c=this.RangeRecord[b],d=0,e=c.Start.get();e<=c.End.get();e++)a[e]=c.StartCoverageIndex.get()+d++;return a},x.Table.CoverageFormat2Range=function(){this.tag="CoverageFormat2Range",this.Start=new v.Type.GlyphID,this.End=new v.Type.GlyphID,this.StartCoverageIndex=new v.Type.uint16},x.Table.CoverageFormat2Range.prototype.decompile=function(a){this.Start.decompile(a),this.End.decompile(a),this.StartCoverageIndex.decompile(a)},x.Table.CoverageFormat2Range.prototype.compile=function(a){this.Start.compile(a),this.End.compile(a),this.StartCoverageIndex.compile(a)},x.Table.ClassDef=function(){this.tag="ClassDef",this.ClassFormat=new v.Type.uint16,this.ClassDef=null},x.Table.ClassDef.prototype.decompile=function(a){if(this.ClassFormat.decompile(a),1==this.ClassFormat.get())this.ClassDef=new x.Table.ClassDefFormat1;else{if(2!=this.ClassFormat.get())throw"unknown type";this.ClassDef=new x.Table.ClassDefFormat2}this.ClassDef.decompile(a)},x.Table.ClassDef.prototype.compile=function(a){this.ClassFormat.compile(a),this.ClassDef.compile(a)},x.Table.ClassDef.prototype.getCluster=function(){return this.ClassDef.getCluster()},x.Table.ClassDefFormat1=function(){this.tag="ClassDefFormat1",this.StartGlyph=new v.Type.GlyphID,this.GlyphCount=new v.Type.uint16,this.ClassValueArray=[]},x.Table.ClassDefFormat1.prototype.decompile=function(a){this.StartGlyph.decompile(a),this.GlyphCount.decompile(a);for(var b=0;b<this.GlyphCount.get();b=b+1|0)this.ClassValueArray[b]=new v.Type.uint16,this.ClassValueArray[b].decompile(a)},x.Table.ClassDefFormat1.prototype.compile=function(a){this.StartGlyph.compile(a),this.GlyphCount.compile(a);for(var b=0;b<this.ClassValueArray.length;b=b+1|0)this.ClassValueArray[b].compile(a)},x.Table.ClassDefFormat1.prototype.getCluster=function(){for(var a={},b=this.StartGlyph.get(),c=0;c<this.GlyphCount.get();c=c+1|0){var d=this.ClassValueArray[c].get();"undefined"==typeof a[d]&&(a[d]=[]),a[d].push(b+c)}return a},x.Table.ClassDefFormat2=function(){this.tag="ClassDefFormat2",this.ClassRangeCount=new v.Type.uint16,this.ClassRangeRecord=[]},x.Table.ClassDefFormat2.prototype.decompile=function(a){this.ClassRangeCount.decompile(a);for(var b=0;b<this.ClassRangeCount.get();b=b+1|0)this.ClassRangeRecord[b]=new x.Table.ClassRangeRecord,this.ClassRangeRecord[b].decompile(a)},x.Table.ClassDefFormat2.prototype.compile=function(a){this.ClassRangeCount.compile(a);for(var b=0;b<this.ClassRangeRecord.length;b=b+1|0)this.ClassRangeRecord[b].compile(a)},x.Table.ClassDefFormat2.prototype.getCluster=function(){for(var a={},b=0;b<this.ClassRangeRecord.length;b=b+1|0){var c=this.ClassRangeRecord[b],d=c.Class.get();"undefined"==typeof a[d]&&(a[d]=[]);for(var e=c.Start.get();e<=c.End.get();e=e+1|0)a[d].push(e)}return a},x.Table.ClassRangeRecord=function(){this.tag="ClassRangeRecord",this.Start=new v.Type.GlyphID,this.End=new v.Type.GlyphID,this.Class=new v.Type.uint16},x.Table.ClassRangeRecord.prototype.decompile=function(a){this.Start.decompile(a),this.End.decompile(a),this.Class.decompile(a)},x.Table.ClassRangeRecord.prototype.compile=function(a){this.Start.compile(a),this.End.compile(a),this.Class.compile(a)},x.Table.DeviceTable=function(){this.tag="DeviceTable",this.StartSize=new v.Type.uint16,this.EndSize=new v.Type.uint16,this.DeltaFormat=new v.Type.uint16,this.DeltaValue={}},x.Table.DeviceTable.prototype.decompile=function(a){this.StartSize.decompile(a),this.EndSize.decompile(a),this.DeltaFormat.decompile(a);for(var b=this.StartSize.get();b<=this.EndSize.get();b=b+1|0)this.DeltaValue[b]=new v.Type.uint16,this.DeltaValue[b].decompile()},x.Table.DeviceTable.prototype.compile=function(a){this.StartSize.compile(a),this.EndSize.compile(a),this.DeltaFormat.compile(a);for(var b in this.DeltaValue)this.DeltaValue[b].compile(a)};var y=function(a,b){this.familyName=a,this.key=b,this.fontCache=null,this.clusterCache=null,this.gsubCache=null,this.request=null,this.styleNode=null,this.dummyStyleNode=null};y.prototype.loader=function(a){var b=this,c=q.Deferred();return q.when(b.getFontData(),b.getCode()).then(function(){return b.getGlyf()}).done(function(){b.construct()}).done(function(){b.request.finalize()}).done(function(){c.resolve()}).fail(function(a){c.reject(a)}),c.promise()},y.prototype.getFontData=function(){var a=this;if(null!==a.fontCache&&null!==a.clusterCache){var b=q.Deferred();return b.resolve(),b.promise()}return q.ajax({type:"GET",url:s+"/api/"+a.key+"/data/v3",dataType:"json",async:!0,timeout:6e4}).done(function(b){if(a.fontCache=b.tag,a.clusterCache=b.cluster,"GSUB_BIN"in a.fontCache&&window.RT.options.layout){var b=new Uint8Array(base64_decode(a.fontCache.GSUB_BIN)),c={data:b,offset:0,memory:!0},d=new x.Table.GSUB;d.decompile(c),a.gsubCache=d}})},y.prototype.getCode=function(){var a=this;a.request.setDefault();var b=a.request.getCode(this.codeCache);if(b.entropy){var c=q.Deferred();return c.resolve(),c.promise()}return q.ajax({type:"POST",url:A("/api/"+a.key+"/code/v1"),data:"payload="+encodeURIComponent(JSON.stringify(b)),dataType:"json",async:!0,timeout:6e4}).done(function(b){a.request.setCode(b)})},y.prototype.getGlyf=function(){var a=this,b=a.request.getGlyf();if(null!==this.gsubCache){for(var c=Object.keys(a.request.glyphCache),d=[],f=0;f<a.request.unicode.length;f++){var g=a.request.unicodeMapping[a.request.unicode[f]];"undefined"!=typeof g&&d.push(g)}d=e(d);var h=this.gsubCache.subGID(null,null,["locl","calt","liga","ccmp"],null,d.concat(b.GID));for(var i in a.request.feature){for(var k=[],l=a.request.feature[i],f=0;f<l.length;f++){var g=a.request.unicodeMapping[l[f]];"undefined"!=typeof g&&k.push(g)}for(var m=i.split(","),n=0;n<m.length;n++){var o=m[n].match(/['"]([a-zA-Z0-9\-]{4,})['"]\s?([0-9]*)?/);if(null!==o&&null!==o[1]){var p=o[1],r=void 0===o[2]?null:[parseInt(o[2])];k=k.concat(this.gsubCache.subGID(null,null,p.split("-"),r,k))}}h=h.concat(k)}b.GID=j(c,b.GID.concat(h))}if(0===b.GID.length){var s=q.Deferred();return s.resolve(),s.promise()}return q.ajax({type:"POST",url:A("/api/"+a.key+"/glyf/v1"),data:"payload="+JSON.stringify(b),dataType:"json",async:!0,timeout:6e4}).done(function(b){a.request.setGlyf(b)})},y.prototype.construct=function(){var a=this,b=a.request,c=new v.TTF,d=null;if(!window.RT.options.layout){var e=0;d={O:{},T:{}},d.O[e]=e,d.T[e]=e;for(var f in b.glyphCache)0!==f&&(d.T[e]=parseInt(f),d.O[f]=e++)}a._toCmap(c,b,d);var g;if("OT"===a.fontCache.FONT_TYPE)g=a._toCFFfromData(c,b,d);else if("CID"===a.fontCache.FONT_TYPE)g=a._toCFF_CIDfromData(c,b,d);else{if("TT"!==a.fontCache.FONT_TYPE)throw"format("+a.fontCache.FONT_TYPE+")は不明です。";g=a._toGlyfFromDataSimple(c,b,d)}a._toHmtx(c,b,g,d),"undefined"!=typeof a.fontCache.VERTICAL&&"Yes"===a.fontCache.VERTICAL&&a._toVmtx(c,b,g,d),a._toHead(c,b,g),a._toMaxp(c,b,g,d),a._toName(c,b,g),a._toPost(c,b,g),a._toOS_2(c,b,g),a._toGasp(c,b,g),a._toOtherTable(c,b,g);var h=v.ToFile(c);if(window.RT.options.nofliker){var i="D"+a.familyName.substr(1),j=q("<span/>").html(".").css({fontFamily:"'"+i+"'",position:"absolute",top:"0px",left:"0px",opacity:"0"});q(document.body).append(j),a.dummyStyleNode=n(h,i,"URL",a.dummyStyleNode),setTimeout(function(){a.styleNode=n(h,a.familyName,"URL",a.styleNode),j.remove()},80)}else a.styleNode=n(h,a.familyName,"URL",a.styleNode)},y.prototype._toOtherTable=function(a,b,c){var d=this;if(window.RT.options.layout){if("undefined"!=typeof d.fontCache.GDEF_BIN){var e=new v.Table.Unknown(a,"GDEF");e._data=base64_decode(d.fontCache.GDEF_BIN),a.setTableData(e)}if("undefined"!=typeof d.fontCache.GPOS_BIN){var e=new v.Table.Unknown(a,"GPOS");e._data=base64_decode(d.fontCache.GPOS_BIN),a.setTableData(e)}if("undefined"!=typeof d.fontCache.GSUB_BIN){var e=new v.Table.Unknown(a,"GSUB");e._data=base64_decode(d.fontCache.GSUB_BIN),a.setTableData(e)}if("undefined"!=typeof d.fontCache.BASE_BIN){var e=new v.Table.Unknown(a,"BASE");e._data=base64_decode(d.fontCache.BASE_BIN),a.setTableData(e)}}if("TT"===d.fontCache.FONT_TYPE){if("undefined"!=typeof d.fontCache.R_TT_HINT_FPGM){var e=new v.Table.Unknown(a,"fpgm");e._data=base64_decode(d.fontCache.R_TT_HINT_FPGM),a.setTableData(e)}if("undefined"!=typeof d.fontCache.R_TT_HINT_CVT){var e=new v.Table.Unknown(a,"cvt ");e._data=base64_decode(d.fontCache.R_TT_HINT_CVT),a.setTableData(e)}if("undefined"!=typeof d.fontCache.R_TT_HINT_PREP){var e=new v.Table.Unknown(a,"prep");e._data=base64_decode(d.fontCache.R_TT_HINT_PREP),a.setTableData(e)}}},y.prototype._toCmap=function(a,b,c){var d=this,e=new v.Table.Cmap;e.version.set(0),e.encodingRecords=[];var f=d.toCmap_format4(b,c),g=new v.Table.CmapEncodingTable;g.data=f;var h=new v.Table.EncodingRecord;h.platformID.set(3),h.encodingID.set(1),h.offset.setRef(g),e.encodingRecords.push(h);var i=d.toCmap_format12(b,c);if(null!==i){var j=new v.Table.CmapEncodingTable;j.data=i;var k=new v.Table.EncodingRecord;k.platformID.set(3),k.encodingID.set(10),k.offset.setRef(j),e.encodingRecords.push(k)}var l=this.toCmap_format14(b,c);if(null!==l){var m=new v.Table.CmapEncodingTable;m.data=l;var n=new v.Table.EncodingRecord;n.platformID.set(0),n.encodingID.set(5),n.offset.setRef(m),e.encodingRecords.unshift(n)}a.setTableData(e)},y.prototype.toCmap_format4=function(a,b){var c=new v.Table.CmapEncodingTableFormat4;c.format.set(4),c.language.set(0);for(var d=0,f=[],g=[],h=[],i=[],j=[],k={},l=[],m=0;m<a.unicode.length;m=m+1|0){var n=a.unicode[m],o=n.codePointAt();65535>=o&&n in a.unicodeMapping&&(k[o]=n,l.push(o))}l=e(l),l.sort(function(a,b){return a-b});for(var p=null,m=0;m<l.length;m=m+1|0){var q=l[m],r=a.unicodeMapping[k[q]];null!==b&&(r=b.O[r]);var s=null;if(m!==l.length-1&&(q=l[m+1],s=a.unicodeMapping[k[q]]),null===p){p=l[m],f.push(p);var t=r-p;-32768>t?h.push(65536%p+r):32768>t?h.push(t):h.push(65536%r+p)}else p=l[m];if((m==l.length-1||p+1!=l[m+1]||-1!=s||-1!=s&&r+1!=s)&&(g.push(p),i.push(0),p=null),r>65536)throw"GID is over 0xFFFF."}if(f.push(65535),g.push(65535),h.push(1),i.push(0),Math.max(f.length,g.length,h.length,i.length)!=Math.min(f.length,g.length,h.length,i.length))throw"All Array Length is not equal";d=f.length,c.length.set(14+2*g.length+2+2*f.length+2*h.length+2*i.length+2*j.length),c.segCountX2.set(2*d),c.searchRange.set(2*Math.pow(2,Math.floor(Math.log(d)/Math.log(2)))),c.entrySelector.set(Math.log(c.searchRange.get()/2)/Math.log(2)),c.rangeShift.set(2*d-c.searchRange.get());for(var m=0;d>m;m=m+1|0)c.endCount[m]=new v.Type.USHORT,c.startCount[m]=new v.Type.USHORT,c.idDelta[m]=new v.Type.SHORT,c.idRangeOffset[m]=new v.Type.USHORT,c.endCount[m].set(g[m]),c.startCount[m].set(f[m]),c.idDelta[m].set(h[m]),c.idRangeOffset[m].set(i[m]);for(var m=0;m<j.length;m=m+1|0)c.glyphIdArray[m]=new v.Type.USHORT,c.glyphIdArray[m].set(j[m]);return c},y.prototype.toCmap_format12=function(a,b){var c=new v.Table.CmapEncodingTableFormat12;c.format.set(12),c.language.set(0);for(var d=0,f=[],g=[],h=[],i=[],j=!1,k={},l=0;l<a.unicode.length;l=l+1|0){var m=a.unicode[l],n=m.codePointAt();16777215>=n&&m in a.unicodeMapping&&(k[n]=m,i.push(n),n>65535&&(j=!0))}if(!j)return null;i=e(i),i.sort(function(a,b){return a-b});for(var o=null,l=0;l<i.length;l=l+1|0){var p=i[l],q=a.unicodeMapping[k[p]];null!==b&&(q=b.O[q]);var r=null;l!==i.length-1&&(p=i[l+1],r=a.unicodeMapping[k[p]]),null==o?(o=i[l],f.push(o),h.push(q)):o=i[l],(l==i.length-1||o+1!==i[l+1]||-1!==r||-1!=r&&q+1!==r)&&(g.push(o),o=null)}if(Math.max(f.length,g.length,h.length)!=Math.min(f.length,g.length,h.length))throw"All Array Length is not equal";d=f.length,c.length.set(16+12*d),c.nGroups.set(d);for(var l=0;d>l;l=l+1|0){var s=new v.Table.CmapEncodingTableFormat12nGroup;s.startCharCode.set(f[l]),s.endCharCode.set(g[l]),s.startGlyphID.set(h[l]),c.groups.push(s)}return c},y.prototype.toCmap_format14=function(a,b){var c=new v.Table.CmapEncodingTableFormat14;c.format.set(14);for(var d={},e=0;e<a.unicode.length;e++){var f=a.unicode[e],g=m(f);if(0!==g.length){var h=a.unicodeMapping[f];"undefined"!=typeof h&&(null!==b&&(h=b.O[h]),g.vs in d||(d[g.vs]=[]),d[g.vs].push({uni:g.base,i:h}))}}if(0===Object.keys(d).length)return null;var i=0;for(var j in d){var k=new v.Table.VariationSelectorRecord;k.varSelector.set(j);for(var l=0;l<d[j].length;l=l+1|0)if(a.unicode[d[j][l].uni]===d[j][l].i){var n=new v.Type.UINT24,o=new v.Type.BYTE;n.set(d[j][l].uni),o.set(1),k.defaultUVSOffset.getRef().UnicodeValueRanges.push({startUnicodeValue:n,additionalCount:o}),i+=4}else{var p=new v.Type.UINT24,q=new v.Type.USHORT;p.set(d[j][l].uni),q.set(d[j][l].i),k.nonDefaultUVSOffset.getRef().UVSMappings.push({unicodeValue:p,glyphID:q}),i+=5}0===k.nonDefaultUVSOffset.getRef().UVSMappings.length?k.nonDefaultUVSOffset.setRef(null):i+=4,0===k.defaultUVSOffset.getRef().UnicodeValueRanges.length?k.defaultUVSOffset.setRef(null):i+=4,c.VSRecords.push(k)}return c.length.set(10+11*c.VSRecords.length+i),c},y.prototype._toGlyfFromDataSimple=function(a,b,c){var d=this,e=new v.Table.Glyf,f=new v.Table.Loca,g=0,h=1e4,i=1e4,j=-1e4,k=-1e4,l=10,m=1e4,n=1e4,o=0,p=0,q=-1e4,r=-1e4;if(null!==c)var s=Object.keys(c.T).length;else var s=parseInt(d.fontCache.R_NUM_GLYPHS);for(var t=0;s>t;t++){var u=new v.Table.GlyfElement;if(null!==c)var w=b.glyphCache[c.T[t]];else var w=b.glyphCache[t];if("undefined"!=typeof w){var x=w;u.data=base64_decode(x.pack),""!=x.pack&&(h=Math.min(x.XMin,h),i=Math.min(x.YMin,i),j=Math.max(x.XMax,j),k=Math.max(x.YMax,k),m=Math.min(x.LSB,m),n=Math.min(x.AW-x.LSB-(x.XMax-x.XMin),n),l=Math.max(x.cnts,l),r=Math.max(x.LSB+(x.XMax-x.XMin),r)),0!=x.aW&&(q=Math.max(x.AW,q),p+=x.aW,o+=1)}else u.data=[];f.offsets[t]=new v.Type.ULONG,f.offsets[t].set(g),g+=u.data.length,e.elements[t]=u}var y=new v.Type.ULONG;y.set(g),f.offsets.push(y);var z={};return z._xMin=h,z._yMin=i,z._xMax=j,z._yMax=k,z._maxContours=30,z._maxPoints=1500,z._minRightSideBearing=n,z._minLeftSideBearing=m,z._xAvgCharWidth=Math.floor(p/o),z._advanceWidthMax=q,z._xMaxExtent=r,a.setTableData(e),a.setTableData(f),z},y.prototype._toVmtx=function(a,b,c,d){var e=this,f=0,g=[],h=new v.Table.Vmtx,i=new v.Table.Vhea;if(null!==d)var j=Object.keys(d.T).length;else var j=parseInt(e.fontCache.R_NUM_GLYPHS);for(var k=0;j>k;k++){if(null!==d)var l=b.glyphCache[d.T[k]];else var l=b.glyphCache[k];"undefined"==typeof l?g.push([0,0]):g.push([l.AH,l.TSB])}for(var m=g[g.length-1][0],n=g.length;g[n-2][0]===m;)if(n-=1,1>=n){n=1;break}f=n;for(var o=0;n>o;o=o+1|0)h.vMetrics[o]=new v.Table.LongVerMetric,"undefined"==typeof g[o]||null===g[o]?(h.vMetrics[o].advanceHeight.set(0),h.vMetrics[o].topSideBearing.set(0)):(h.vMetrics[o].advanceHeight.set(g[o][0]),h.vMetrics[o].topSideBearing.set(g[o][1]));for(var o=n;o<g.length;o=o+1|0){var p=h.topSideBearing[o-n]=new v.Type.SHORT;p.set(g[o][1])}i.Version.major.set(1),i.Version.minor.set(4096),i.ascent.set(parseInt(e.fontCache.V_TYPOGRAPHIC_ASCENDER)),i.descent.set(parseInt(e.fontCache.V_TYPOGRAPHIC_DESCENDER)),i.lineGap.set(0),i.advanceHeightMax.set(c._advanceWidthMax),i.minTopSideBearing.set(c._minTopSideBearing),i.minBottomSideBearing.set(c._minBottomSideBearing),i.yMaxExtent.set(c._yMaxExtent),i.numOfLongVerMetrics.set(f),a.setTableData(i),a.setTableData(h)},y.prototype._toHmtx=function(a,b,c,d){var e=this,f=0,g=[],h=new v.Table.Hmtx,i=new v.Table.Hhea;if(null!==d)var j=Object.keys(d.T).length;else var j=parseInt(e.fontCache.R_NUM_GLYPHS);for(var k=0;j>k;k++){if(null!==d)var l=b.glyphCache[d.T[k]];else var l=b.glyphCache[k];"undefined"==typeof l?g.push([0,0]):g.push([l.AW,l.LSB])}for(var m=g[g.length-1][0],n=g.length;g[n-2][0]===m;)if(n-=1,1>=n){n=1;break}f=n;for(var o=0;n>o;o=o+1|0)h.hMetrics[o]=new v.Table.LongHorMetric,"undefined"==typeof g[o]||null===g[o]?(h.hMetrics[o].advanceWidth.set(0),h.hMetrics[o].lsb.set(0)):(h.hMetrics[o].advanceWidth.set(g[o][0]),h.hMetrics[o].lsb.set(g[o][1]));for(var o=n;o<g.length;o=o+1|0){var p=h.leftSideBearings[o-n]=new v.Type.SHORT;p.set(g[o][1])}i.tableVersionNumber.major.set(1),i.tableVersionNumber.minor.set(0),i.Ascender.set(parseInt(e.fontCache.ALPHABETIC_ASCENDER)),i.Descender.set(parseInt(e.fontCache.ALPHABETIC_DESCENDER)),i.LineGap.set(0),i.caretSlopeRise.set(1),i.caretSlopeRun.set(0),i.caretOffset.set(0),i.advanceWidthMax.set(c._advanceWidthMax),i.minLeftSideBearing.set(c._minLeftSideBearing),i.minRightSideBearing.set(c._minRightSideBearing),i.xMaxExtent.set(c._xMaxExtent),i.metricDataFormat.set(0),i.numberOfHMetrics.set(f),a.setTableData(i),a.setTableData(h)},y.prototype._toHead=function(a,b,c){var d=this,e=new v.Table.Head;e.tableVersionNumber.major.set(1),e.tableVersionNumber.minor.set(0),e.fontRevision.major.set(1),e.fontRevision.minor.set(0),e.unitsPerEm.set(parseInt(d.fontCache.EM_SIZE)),e.magicNumber.set(1594834165),e.flags.set(3),e.lowestRecPPEM.set(parseInt(d.fontCache.LOWEST_REC_SIZE)),e.xMin.set(c._xMin),e.yMin.set(c._yMin),e.xMax.set(c._xMax),e.yMax.set(c._yMax),e.indexToLocFormat.set(1);var f=-parseInt(new Date("January 1, 1904 0:00:00")/1e3)+parseInt(new Date/1e3);e.created.major.set(0),e.created.minor.set(f),e.modified.major.set(0),e.modified.minor.set(f),e.glyphDataFormat.set(0),a.setTableData(e)},y.prototype._toMaxp=function(a,b,c,d){var e=this,f=new v.Table.Maxp;null===d?f.numGlyphs.set(parseInt(e.fontCache.R_NUM_GLYPHS)):f.numGlyphs.set(Object.keys(d.T).length),"TT"===e.fontCache.FONT_TYPE?(f.tableVersionNumber.major.set(1),f.tableVersionNumber.minor.set(0),f.maxPoints.set(parseInt(e.fontCache.R_TT_MAX_POINTS)),f.maxContours.set(parseInt(e.fontCache.R_TT_MAX_CONTOURS)),f.maxCompositePoints.set(parseInt(e.fontCache.R_TT_MAX_COMPOSITE_POINTS)),f.maxCompositeContours.set(parseInt(e.fontCache.R_TT_MAX_COMPOSITE_CONTOURS)),f.maxZones.set(parseInt(e.fontCache.R_TT_MAX_ZONES)),f.maxTwilightPoints.set(parseInt(e.fontCache.R_TT_MAX_TWILIGHT_POINTS)),f.maxStorage.set(parseInt(e.fontCache.R_TT_MAX_STORAGE)),f.maxFunctionDefs.set(parseInt(e.fontCache.R_TT_MAX_FUNCTION_DEFS)),f.maxInstructionDefs.set(parseInt(e.fontCache.R_TT_MAX_INSTRUCTION_DEFS)),f.maxStackElements.set(parseInt(e.fontCache.R_TT_MAX_STACK_ELEMENTS)),f.maxSizeOfInstructions.set(parseInt(e.fontCache.R_TT_MAX_SIZE_OF_INSTRUCTIONS)),f.maxComponentElements.set(parseInt(e.fontCache.R_TT_MAX_COMPONENT_ELEMENTS)),f.maxComponentDepth.set(parseInt(e.fontCache.R_TT_MAX_COMPONENT_DEPTH))):(f.tableVersionNumber.major.set(0),f.tableVersionNumber.minor.set(20480)),a.setTableData(f)},y.prototype._toName=function(a,b,c){var d=new v.Table.Name,e={1:"WebFont",2:"Regular",3:"1",4:"WebFont",5:"Version 1.0",6:"WebFont"},f=2,g=Object.keys(e).length;d.format.set(0),d.count.set(g*f),d.nameRecords=[],d.stringOffset.set(6+12*g*f);var h=[],i=0;for(var j in e){for(var k=0;k<e[j].length;k=k+1|0)h.push(255&e[j].charCodeAt(k));var l=new v.Table.NameRecord;l.platformID.set(1),l.encodingID.set(0),l.languageID.set(0),l.nameID.set(parseInt(j)),l.length.set(e[j].length),l.offset.set(i),d.nameRecords.push(l),i+=e[j].length}i=h.length;for(var j in e){for(var k=0;k<e[j].length;k=k+1|0)h.push(e[j].charCodeAt(k)>>8&255),h.push(255&e[j].charCodeAt(k));var l=new v.Table.NameRecord;l.platformID.set(3),l.encodingID.set(1),l.languageID.set(1033),l.nameID.set(parseInt(j)),l.length.set(2*e[j].length),l.offset.set(i),d.nameRecords.push(l),i+=2*e[j].length}d.stringData=h,a.setTableData(d)},y.prototype._toPost=function(a,b,c){var d=new v.Table.Post;d.version.major.set(3),d.version.minor.set(0),a.setTableData(d)},y.prototype._toOS_2=function(a,b,c){var d=this,e=new v.Table.OS_2;e.version.set(3),e.usWeightClass.set(400),e.usWidthClass.set(400),e.fsType.set(0),e.achVendID.set(d.fontCache.VENDOR_ID),e.sTypoAscender.set(parseInt(d.fontCache.TYPOGRAPHIC_ASCENDER)),e.sTypoDescender.set(parseInt(d.fontCache.TYPOGRAPHIC_DESCENDER)),e.sTypoLineGap.set(0),e.xAvgCharWidth.set(parseInt(c._xAvgCharWidth));var f=d.fontCache.FONT_WIDTH,g=5;switch(f){case"ULTRA_CONDENSED":g=1;break;case"EXTRA_CONDENSED":g=2;break;case"CONDENSED":g=3;break;case"SEMI_CONDENSED":g=4;break;case"MEDIUM":g=5;break;case"SEMI_EXPANDED":g=6;break;case"EXPANDED":g=7;break;case"EXTRA_EXPANDED":g=8;break;case"ULTRA_EXPANDED":g=9}e.usWidthClass.set(g);var h=d.fontCache.FONT_WEIGHT,i=500;switch(h){case"THIN":i=100;break;case"EXTRA_LIGHT":i=200;break;case"LIGHT":i=300;break;case"NORMAL":i=400;break;case"MEDIUM":i=500;break;case"SEMI_BOLD":i=600;break;case"BOLD":i=700;break;case"EXTRA_BOLD":i=800;break;case"BLACK":i=900}e.usWeightClass.set(i),e.sTypoLineGap.set(0),e.usWinAscent.set(c._yMax),e.usWinDescent.set(Math.abs(c._yMin)),a.setTableData(e)},y.prototype._toGasp=function(a,b,c){var d=new v.Table.Gasp;d.version.set(0),d.numRanges.set(1);var e=new v.Table.GaspTable;e.rangeMaxPPEM.set(65535),e.rangeGaspBehavior.set(1),d.gaspRange=[],d.gaspRange.push(e),a.setTableData(d)},y.prototype._toGSUB=function(a,b,c){var d=new x.Table.GSUB;d.Version.major.set(1),d.Version.minor.set(0);var e=new x.Table.ScriptList;d.ScriptList.setRef(e);var f=new x.Table.ScriptRecord;e.ScriptRecord.push(f),f.ScriptTag.set("DELT");var g=new x.Table.Script;f.Script.setRef(g);var h=new x.Table.LangSys;g.DefaultLangSys.setRef(h),h.LookupOrder.set(0),h.ReqFeatureIndex.set(65535);var i=new v.Type.uint16;h.FeatureIndex.push(i),i.set(0);var j=new x.Table.FeatureList;d.FeatureList.setRef(j);var k=new x.Table.FeatureRecord;j.FeatureRecord.push(k),k.FeatureTag.set("jp78");var l=new x.Table.Feature;k.Feature.setRef(l),l.FeatureParams.set(0);var m=new v.Type.uint16;l.LookupListIndex.push(m),m.set(0);var n=new x.Table.LookupList([null,"GSUB"]);d.LookupList.setRef(n);var o=new x.Table.Lookup([null,"GSUB"]),p=new v.Type.OFFSET;p.setRef(o),n.Lookup.push(p),o.LookupType.set(1),o.LookupFlag.set(0);var q=new x.SubTable.GSUB.LookUp1,r=new v.Type.OFFSET;r.setRef(q),o.SubTable.push(r),o.MarkFilteringSet.set(0),q.SubstFormat.set(2),q.Subst=new x.SubTable.GSUB.SubstFormat2;var s=q.Subst.Coverage._ref;s.CoverageFormat.set(1),s.Coverage=new x.Table.CoverageFormat1;var t=new v.Type.GlyphID;t.set(3),s.Coverage.GlyphID.push(t);var u=new v.Type.GlyphID;u.set(10),q.Subst.Substitute.push(u),a.setTableData(d)},y.prototype._toCFFfromData=function(a,b,c){var d=this,e=1e4,f=1e4,g=-1e4,h=-1e4,i=1e4,j=1e4,k=1e4,l=1e4,m=0,n=0,o=0,p=0,q=-1e4,r=-1e4,s=-1e4,t=-1e4,u=new w.Table.CFF;u.CharStringsINDEX=new w.Table.CharStringsINDEX,u.Charsets=new w.Table.Charsets;var v=new w.Table.CharsetsFormat2;u.LocalSubrINDEX=new w.Table.LocalSubrINDEX;var x=new w.Type.AsciiString,y=new w.Type.AsciiString,z=new w.Type.AsciiString,A=new w.Type.AsciiString;if(x.set("use dynamic webfont only"),y.set("Copyright (c) 2015 Realtype All Rights Reserved."),z.set("WebFont Regular"),A.set("WebFont"),u.StringINDEX.data.push(x),u.StringINDEX.data.push(y),u.StringINDEX.data.push(z),u.StringINDEX.data.push(A),null!==c)var B=Object.keys(c.T).length;else var B=parseInt(d.fontCache.R_NUM_GLYPHS);
for(var C=0;B>C;C++){var D=new w.Table.Type2Charstring;if(null!==c)var E=b.glyphCache[c.T[C]];else var E=b.glyphCache[C];if("undefined"!=typeof E?D.data=base64_decode(E.pack):D.data=base64_decode("Dg=="),u.CharStringsINDEX.data.push(D),C>0){var F=new w.Type.AsciiString;F.set("GID"+C),u.StringINDEX.data.push(F)}"undefined"!=typeof E&&(e=Math.min(E.XMin,e),f=Math.min(E.YMin,f),g=Math.max(E.XMax,g),h=Math.max(E.YMax,h),i=Math.min(E.LSB,i),j=Math.min(E.AW-E.LSB-(E.XMax-E.XMin),j),s=Math.max(E.LSB+(E.XMax-E.XMin),s),0!==E.AW&&(q=Math.max(E.AW,q),o+=E.AW,m+=1),k=Math.min(E.TSB,k),l=Math.min(E.AH-E.TSB-(E.YMax-E.YMin),l),t=Math.max(E.TSB+(E.YMax-E.YMin),t),0!==E.AH&&(r=Math.max(E.AH,r),p+=E.aH,n+=1))}var G={};G._xMin=e,G._yMin=f,G._xMax=g,G._yMax=h,G._minRightSideBearing=j,G._minLeftSideBearing=i,G._xAvgCharWidth=Math.floor(o/m),G._advanceWidthMax=q,G._xMaxExtent=s,G._minTopSideBearing=k,G._minBottomSideBearing=l,G._yAvgCharWidth=Math.floor(p/n),G._advanceHeightMax=r,G._yMaxExtent=t,u.major.set(1),u.minor.set(0),u.hdrSize.set(4),u.offSize.set(4);var H=new w.Type.AsciiString;H.set("WebFont"),u.NameINDEX.data.push(H);var I=new w.Table.DICT,J=Math.floor(1e4*Math.random()),K=[Math.floor(10*Math.random()),Math.floor(100*Math.random()),Math.floor(1e3*Math.random()),Math.floor(1e4*Math.random())],L=[.001,0,0,.001,0,0];if("string"==typeof d.fontCache.CFF_FONT_MATRIX){var M=d.fontCache.CFF_FONT_MATRIX.slice(1,-1).split(",");L[0]=parseFloat(M[0]),L[1]=parseFloat(M[1]),L[2]=parseFloat(M[2]),L[3]=parseFloat(M[3]),L[4]=parseFloat(M[4]),L[5]=parseFloat(M[5])}var N=-100,O=50,P=[e,f,g,h];return I.setValueFromKey(0,[379]),I.setValueFromKey(1,[391]),I.setValueFromKey(3072,[392]),I.setValueFromKey(2,[393]),I.setValueFromKey(3,[394]),I.setValueFromKey(4,[388]),I.setValueFromKey(5,P),I.setValueFromKey(3073,[0]),I.setValueFromKey(3074,[1]),I.setValueFromKey(3075,[N]),I.setValueFromKey(3076,[O]),I.setValueFromKey(3077,[0]),I.setValueFromKey(3078,[2]),I.setValueFromKey(3079,L),I.setValueFromKey(13,[J]),I.setValueFromKey(3080,[0]),I.setValueFromKey(14,K),I.setValueFromKey(15,[0]),I.setValueFromKey(16,[0]),I.setValueFromKey(17,[0]),I.setValueFromKey(18,[0,0]),u.TopDictINDEX.data.push(I),u.Charsets.format.set(2),v.set(395,B-2),u.Charsets.subtable=v,u.PrivateDICT=new w.Table.DICT,"string"==typeof d.fontCache.OT_BLUE_VALUES&&u.PrivateDICT.setValueFromKey(6,d.fontCache.OT_BLUE_VALUES.split(",").map(parseFloat)),"string"==typeof d.fontCache.OT_OTHER_BLUES&&u.PrivateDICT.setValueFromKey(7,d.fontCache.OT_OTHER_BLUES.split(",").map(parseFloat)),"string"==typeof d.fontCache.OT_FAMILY_BLUES&&u.PrivateDICT.setValueFromKey(8,d.fontCache.OT_FAMILY_BLUES.split(",").map(parseFloat)),"string"==typeof d.fontCache.OT_FAMILY_OTHER_BLUES&&u.PrivateDICT.setValueFromKey(9,d.fontCache.OT_FAMILY_OTHER_BLUES.split(",").map(parseFloat)),"string"==typeof d.fontCache.OT_FAMILY_OTHER_BLUES&&u.PrivateDICT.setValueFromKey(9,d.fontCache.OT_FAMILY_OTHER_BLUES.split(",").map(parseFloat)),"string"==typeof d.fontCache.OT_STD_HW&&u.PrivateDICT.setValueFromKey(10,[parseFloat(d.fontCache.OT_STD_HW)]),"string"==typeof d.fontCache.OT_STD_VW&&u.PrivateDICT.setValueFromKey(11,[parseFloat(d.fontCache.OT_STD_VW)]),"string"==typeof d.fontCache.OT_STEM_SNAP_H&&u.PrivateDICT.setValueFromKey(3084,[parseFloat(d.fontCache.OT_STEM_SNAP_H)]),"string"==typeof d.fontCache.OT_STEM_SNAP_V&&u.PrivateDICT.setValueFromKey(3085,[parseFloat(d.fontCache.OT_STEM_SNAP_V)]),"string"==typeof d.fontCache.OT_STEM_SNAP_V&&u.PrivateDICT.setValueFromKey(3085,[parseFloat(d.fontCache.OT_STEM_SNAP_V)]),"string"==typeof d.fontCache.OT_DEFAULT_WIDTH_X&&u.PrivateDICT.setValueFromKey(20,[parseFloat(d.fontCache.OT_DEFAULT_WIDTH_X)]),"string"==typeof d.fontCache.OT_NOMINAL_WIDTH_X&&u.PrivateDICT.setValueFromKey(21,[parseFloat(d.fontCache.OT_NOMINAL_WIDTH_X)]),u.PrivateDICT.setValueFromKey(3086,[0]),u.PrivateDICT.setValueFromKey(3089,[1]),u.PrivateDICT.setValueFromKey(3090,[.06]),u.PrivateDICT.setValueFromKey(3091,[0]),a.setTableData(u),G},y.prototype._toCFF_CIDfromData=function(a,b,c){var d={},e=this,f=1e4,g=1e4,h=-1e4,i=-1e4,j=1e4,k=1e4,l=1e4,m=1e4,n=0,o=0,p=0,q=0,r=-1e4,s=-1e4,t=-1e4,u=-1e4,v=new w.Table.CFF,x=v.NameINDEX,y=v.TopDictINDEX,z=new w.Table.DICT,A=v.StringINDEX,B=new w.Table.Charsets,C=new w.Table.CharsetsFormat2,D=new w.Table.CharStringsINDEX,E=new w.Table.FDArray,F=new w.Table.FDSelect,G=new w.Type.AsciiString("WebFont"),H="string"==typeof e.fontCache.CFF_NOTICE?new w.Type.AsciiString(e.fontCache.CFF_NOTICE):new w.Type.AsciiString("use dynamic webfont only"),I="string"==typeof e.fontCache.CFF_COPYRIGHT?new w.Type.AsciiString(e.fontCache.CFF_COPYRIGHT):new w.Type.AsciiString("Copyright (c) 2015 Realtype"),J="string"==typeof e.fontCache.CFF_FULL_NAME?new w.Type.AsciiString(e.fontCache.CFF_FULL_NAME):new w.Type.AsciiString("WebFont Regular"),K="string"==typeof e.fontCache.CFF_FAMILY_NAME?new w.Type.AsciiString(e.fontCache.CFF_FAMILY_NAME):new w.Type.AsciiString("WebFont"),L=0,M=-100,N=50;if("string"==typeof e.fontCache.H_UNDERLINE){var O=e.fontCache.H_UNDERLINE.split(",");M=parseInt(O[0])/2+parseInt(O[1]),N=parseInt(O[0])}var P=[.001,0,0,.001,0,0];if("string"==typeof e.fontCache.CFF_FONT_MATRIX){var Q=e.fontCache.CFF_FONT_MATRIX.split(",");P[0]=parseFloat(Q[0]),P[1]=parseFloat(Q[1]),P[2]=parseFloat(Q[2]),P[3]=parseFloat(Q[3]),P[4]=parseFloat(Q[4]),P[5]=parseFloat(Q[5])}var R=Math.floor(1e4*Math.random()),S=[0,0,0,0],T=[Math.floor(10*Math.random()),Math.floor(100*Math.random()),Math.floor(1e3*Math.random()),Math.floor(1e4*Math.random())];if(ROS1="Adobe",ROS2="Identity",ROS3=0,"string"==typeof e.fontCache.CID_ROS){var Q=e.fontCache.CID_ROS.split(" ");ROS1=Q[0],ROS2=Q[1],ROS3=parseInt(Q[2])}ROS1=new w.Type.AsciiString(ROS1),ROS2=new w.Type.AsciiString(ROS2);var U="string"==typeof e.fontCache.CID_FONT_VERSION?parseFloat(e.fontCache.CID_FONT_VERSION):1,V="string"==typeof e.fontCache.CID_FONT_REVISION?parseFloat(e.fontCache.CID_FONT_REVISION):0;if(null!==c)var W=Object.keys(c.T).length;else var W=parseInt(e.fontCache.R_NUM_GLYPHS);F.format.set(3);var X={},Y=0;for(var Z in e.clusterCache)X[Z]=Y++;for(var $=new w.Table.FDSelectFormat3,_=-1,aa=W,ba=0;aa>ba;ba++){var ca,da=new w.Table.Type2Charstring;if(null!==c)var ea=b.glyphCache[c.T[ba]];else var ea=b.glyphCache[ba];if("undefined"!=typeof ea?(da.data=base64_decode(ea.pack),ca=X[ea.cluster]):(da.data=base64_decode("Dg=="),ca=0),D.data.push(da),"undefined"!=typeof ea&&(f=Math.min(ea.XMin,f),g=Math.min(ea.YMin,g),h=Math.max(ea.XMax,h),i=Math.max(ea.YMax,i),j=Math.min(ea.LSB,j),k=Math.min(ea.AW-ea.LSB-(ea.XMax-ea.XMin),k),t=Math.max(ea.LSB+(ea.XMax-ea.XMin),t),0!==ea.AW&&(r=Math.max(ea.AW,r),p+=ea.AW,n+=1),l=Math.min(ea.TSB,l),m=Math.min(ea.AH-ea.TSB-(ea.YMax-ea.YMin),m),u=Math.max(ea.TSB+(ea.YMax-ea.YMin),u),0!==ea.AH&&(s=Math.max(ea.AH,s),q+=ea.AH,o+=1)),_!==ca){var fa=new w.Table.FDSelectFormat3Range3;fa.first.set(ba),fa.fd.set(ca),$.Range3.push(fa),_=ca}}d._xMin=f,d._yMin=g,d._xMax=h,d._yMax=i,d._minRightSideBearing=k,d._minLeftSideBearing=j,d._xAvgCharWidth=Math.floor(p/n),d._advanceWidthMax=r,d._xMaxExtent=t,d._minTopSideBearing=l,d._minBottomSideBearing=m,d._yAvgCharWidth=Math.floor(q/o),d._advanceHeightMax=s,d._yMaxExtent=u,S=[f,g,h,i],$.nRanges.set($.Range3.length),$.sentinel.set(W),F.subtable=$,v.FDSelect=F,v.major.set(1),v.minor.set(0),v.hdrSize.set(4),v.offSize.set(4),x.data.push(G),z.setValueFromKey(3102,[391,392,ROS3]),z.setValueFromKey(0,[379]),z.setValueFromKey(1,[393]),z.setValueFromKey(3072,[394]),z.setValueFromKey(2,[395]),z.setValueFromKey(3,[396]),z.setValueFromKey(4,[388]),z.setValueFromKey(3073,[L]),z.setValueFromKey(3075,[M]),z.setValueFromKey(3076,[N]),z.setValueFromKey(13,[R]),z.setValueFromKey(5,S),z.setValueFromKey(14,T),z.setValueFromKey(15,[0]),z.setValueFromKey(17,[0]),z.setValueFromKey(3103,[U]),z.setValueFromKey(3104,[V]),z.setValueFromKey(3106,[W]),z.setValueFromKey(3108,[0]),z.setValueFromKey(3109,[0]),y.data.push(z),A.data.push(ROS1),A.data.push(ROS2),A.data.push(H),A.data.push(I),A.data.push(J),A.data.push(K),B.format.set(2),C.set(1,W-2),B.subtable=C,v.Charsets=B,v.CharStringsINDEX=D;for(var Z in X){var ga=new w.Type.AsciiString(Z);A.data.push(ga);var ha=new w.Table.DICT;ha.setValueFromKey(3110,[397+X[Z]]),ha.setValueFromKey(18,[0,0]),E.data.push(ha);var ia=new w.Table.DICT;"string"==typeof e.clusterCache[Z].OT_BLUE_VALUES&&ia.setValueFromKey(6,e.clusterCache[Z].OT_BLUE_VALUES.split(",").map(parseFloat)),"string"==typeof e.clusterCache[Z].OT_OTHER_BLUES&&ia.setValueFromKey(7,e.clusterCache[Z].OT_OTHER_BLUES.split(",").map(parseFloat)),"string"==typeof e.clusterCache[Z].OT_FAMILY_BLUES&&ia.setValueFromKey(8,e.clusterCache[Z].OT_FAMILY_BLUES.split(",").map(parseFloat)),"string"==typeof e.clusterCache[Z].OT_FAMILY_OTHER_BLUES&&ia.setValueFromKey(9,e.clusterCache[Z].OT_FAMILY_OTHER_BLUES.split(",").map(parseFloat)),"string"==typeof e.clusterCache[Z].OT_STD_HW&&ia.setValueFromKey(10,[parseInt(e.clusterCache[Z].OT_STD_HW)]),"string"==typeof e.clusterCache[Z].OT_STD_VW&&ia.setValueFromKey(11,[parseInt(e.clusterCache[Z].OT_STD_VW)]),"string"==typeof e.clusterCache[Z].OT_STEM_SNAP_H&&ia.setValueFromKey(3084,e.clusterCache[Z].OT_STEM_SNAP_H.split(",").map(parseFloat)),"string"==typeof e.clusterCache[Z].OT_STEM_SNAP_V&&ia.setValueFromKey(3085,e.clusterCache[Z].OT_STEM_SNAP_V.split(",").map(parseFloat)),"string"==typeof e.clusterCache[Z].OT_LANGUAGE_GROUP&&ia.setValueFromKey(3089,[parseInt(e.clusterCache[Z].OT_LANGUAGE_GROUP)]),"string"==typeof e.clusterCache[Z].OT_DEFAULT_WIDTH_X&&ia.setValueFromKey(20,[parseInt(e.clusterCache[Z].OT_DEFAULT_WIDTH_X)]),"string"==typeof e.clusterCache[Z].OT_NOMINAL_WIDTH_X&&ia.setValueFromKey(21,[parseInt(e.clusterCache[Z].OT_NOMINAL_WIDTH_X)]),v.FDPrivates.push(ia)}return v.FDArray=E,a.setTableData(v),d};var z=function(a){return function(b){var c=a("script[data-rt-user]"),d=c.data("rt-user");d&&(b.user=d),d=c.data("rt-manual"),d&&(b.manual=d),d=c.data("rt-emulation"),d&&(b.emulation=d),d=c.data("rt-layout"),d&&(b.layout=d),d=c.data("rt-input"),d&&(b.input=d),d=c.data("rt-vertical"),d&&(b.vertical=d),d=c.data("rt-nofliker"),d&&(b.nofliker=d),d=c.data("rt-overlight-css"),d&&(b.overlightCSS=d),window.RT.options=b}}(q),A=function(a,b){return function(c){return c+="?",c+="user_key="+b.user,c+="&",c+="url="+encodeURIComponent(window.location.href),a+c}}(r,t),B=function(a){var b=function(a,b){var c=q(a).css("fontFamily"),d=u("15px "+c);if(null===d)return[];for(var e=d["font-family"],f=e.length,g=[],h=0;f>h;h=h+1|0){var i=e[h];-1!==b.indexOf(i)&&g.push(i)}return g},c=function(a,b){return"undefined"==typeof a[b]&&(a[b]=new H),a[b]};return function(d,e,f){for(var g=0,h=[],i=d.childNodes.length,j="";i>g;g=g+1|0){var k=d.childNodes[g];3===k.nodeType?j+=k.nodeValue:1===k.nodeType&&"SCRIPT"!==k.tagName&&h.push(k)}if("INPUT"===d.tagName&&"text"===d.type&&h.push(d),"TEXTAREA"===d.tagName&&h.push(d),""!==j){var l=d.currentStyle||document.defaultView.getComputedStyle(d,""),m=l.textCombineUpright||l.webkitTextCombine||l.msTextCombineHorizontal,n=l.fontFeatureSettings;void 0===n&&(n=l.webkitFontFeatureSettings);var o="vertical-rl"===l.writingMode||"tb-rl"===l.writingMode,p=l.textTransform;"uppercase"===p?j=j.toLocaleUpperCase():"lowercase"===p&&(j=j.toLocaleLowerCase()),"undefined"!=typeof n&&"normal"!==n||o||m?b(d,f).map(function(a){var b=[];b.push("'ccmp'"),b.push("'liga'"),o&&b.push("'vert'"),m&&b.push("'hwid-fwid-twid-qwid'"),"normal"!==n&&b.push(n);var d=c(e,a),f=b.join(",");f in d.featureText||(d.featureText[f]=""),d.featureText[f]+=j}):b(d,f).map(function(a){c(e,a).unicodeText+=j})}for(i=h.length,g=0;i>g;g=g+1|0){var k=h[g];"TEXTAREA"===k.tagName?b(k,f).map(function(a){c(e,a).unicodeText+=k.value,k.placeholder&&(c(e,a).unicodeText+=k.placeholder)}):"INPUT"===k.tagName&&"text"===k.type?b(k,f).map(function(a){c(e,a).unicodeText+=k.value,k.placeholder&&(c(e,a).unicodeText+=k.placeholder)}):a.emulation&&1===k.nodeType&&void 0!==q(k).data("rt-gid")?b(k,f).map(function(a){c(e,a).GIDCtx.push(k)}):a.emulation&&1===k.nodeType&&void 0!==q(k).data("rt-cid")?b(k,f).map(function(a){c(e,a).CIDCtx.push(k)}):a.emulation&&1===k.nodeType&&void 0!==q(k).data("rt-name")?b(k,f).map(function(a){c(e,a).PsNameCtx.push(k)}):B(h[g],e,f)}}}(t),C={timer:null,listStack:[],fonts:{},useMap:null,eventStart:!1,finish:function(){},catcher:function(a){},mutationHandle:new MutationObserver(function(a){a.forEach(function(a){if("characterData"===a.type){var b=a.target.parentNode,c=q(b).attr("ignore");"undefined"!=typeof c&&c!==!1||D(b)}else"childList"===a.type?D(a.target):"attributes"===a.type&&D(a.target)})})},D=function(a,b){return function(c){a.listStack.push(c),null!==a.timer&&clearTimeout(a.timer),a.timer=setTimeout(E,b)}}(C,50),E=function(a){return function(){var b=d(a.useMap).keys.map(function(a,b,c){return a}),c={};a.listStack.filter(function(a){return null!==a}).map(function(a){B(a,c,b)});var e=[];for(var f in c){if(c[f].finish(),"undefined"==typeof a.fonts[f])a.fonts[f]=new y(f,a.useMap[f]),a.fonts[f].request=c[f];else if(a.fonts[f].request.merge(c[f]))continue;e.push(a.fonts[f].loader(a.catcher))}a.timer=null,a.listStack=[],0!==e.length?q.when.apply(q,e).fail(function(b){a.catcher(b),a.finish()}).done(function(){a.finish()}):a.finish()}}(C),F=window.RT.observe=function(a,b,c,d){return function(){return null===c.useMap&&(c.useMap={}),c.eventStart?!1:(D(b.body),d.input&&(a("textarea").keyup(p),a("input[type='text']").keyup(p),c.mutationHandle.observe(b.body,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),c.eventStart=!0,!0)}}(q,document,C,t);window.RT.list=function(a,b,c){return function(){return null!==b.useMap?b.useMap:a.ajax({url:c("/api/list/v2"),dataType:"json",type:"GET",timeout:500,async:!1}).responseJSON}}(q,C,A);window.RT.release=function(a,b,c){return function(){c.input&&(a("textarea").unbind("keyup",p),a("input[type='text']").unbind("keyup",p),b.mutationHandle.disconnect()),b.listStack=[],b.eventStart=!1}}(q,C,t);z(t);var G=window.RT.start=function(a,b,c,d,e){return function(f,g){"function"==typeof f&&(a.catcher=f),"function"==typeof g&&(a.finish=g),b.when(function(a){var c=b.Deferred();return b(a).ready(c.resolve),c}(c),b.ajax({url:A("/api/list/v2"),dataType:"json",type:"GET",timeout:6e4})).done(function(b,c){for(var f in e.overlightCSS)b("."+f).css("font-family","'"+e.overlightCSS[f]+"'");a.useMap=c[0],d()}).fail(function(b){a.catcher(b),a.finish()})}}(C,q,document,F,t);t.manual||G();var H=function(){this.unicode=[],this.unicodeMapping={},this.unicodeText="",this.featureText={},this.feature={},this.featureMapping={},this.unicodeCtx=[],this.CID=[],this.CIDCtx=[],this.CIDMapping={},this.PsName=[],this.PsNameCtx=[],this.PsNameMapping={},this.GID=[],this.GIDMapping={},this.GIDCtx=[],this.glyphCache={},this.mappingNumber=57344};H.prototype.finalize=function(){var a=this;this.GIDCtx.filter(function(b){return q(b).data("rt-gid")in a.GIDMapping?"undefined"==typeof q(b).attr("rt-ignore"):!1}).map(function(b,c,d){q(b).html(a.GIDMapping[q(b).data("rt-gid")]),q(b).attr("rt-ignore","true")}),this.CIDCtx.filter(function(b){return q(b).data("rt-cid")in a.CIDMapping?"undefined"==typeof q(b).attr("rt-ignore"):!1}).map(function(b,c,d){q(b).html(a.CIDMapping[q(b).data("rt-cid")]),q(b).attr("rt-ignore","true")}),this.PsNameCtx.filter(function(b){return q(b).data("rt-name")in a.PsNameMapping?"undefined"==typeof q(b).attr("rt-ignore"):!1}).map(function(b,c,d){q(b).html(a.PsNameMapping[q(b).data("rt-name")]),q(b).attr("rt-ignore","true")})},H.prototype.finish=function(){var a=this;for(var b in a.featureText)a.feature[b]=e(l(a.featureText[b])),a.unicodeText+=a.featureText[b],a.featureText[b]="";a.unicode=e(l(a.unicodeText)),a.unicodeText="",a.CIDCtx.map(function(b){a.CID.push(parseInt(q(b).data("rt-cid")))}),a.GIDCtx.map(function(b){a.GID.push(parseInt(q(b).data("rt-gid")))}),a.PsNameCtx.map(function(b){a.PsName.push(q(b).data("rt-name"))})},H.prototype.merge=function(a){var b=0;for(var c in a.feature){var d=j(this.feature[c],a.feature[c]);0!==d.length&&(this.feature[c]=this.feature[c].concat(d),this.feature[c].sort(function(a,b){return a-b}),b+=d.length)}var d=j(this.unicode,a.unicode);return 0!==d.length&&(this.unicode=this.unicode.concat(d),this.unicode.sort(function(a,b){return a-b}),b+=d.length),d=j(this.CID,a.CID),0!==d.length&&(this.CID=this.CID.concat(d),this.CID.sort(function(a,b){return a-b}),b+=d.length),d=j(this.GID,a.GID),0!==d.length&&(this.GID=this.GID.concat(d),this.GID.sort(function(a,b){return a-b}),b+=d.length),d=j(this.PsName,a.PsName),0!==d.length&&(this.PsName=this.PsName.concat(d),this.PsName.sort(function(a,b){return a-b}),b+=d.length),0===b},H.prototype.setDefault=function(){var a=[" ","€","1","2","3","4","5","6","7","8","9","0"];Array.prototype.push.apply(this.unicode,j(this.unicode,a))},H.prototype.getCode=function(){var a={},b=!0;return[{tag:"unicode",src:this.unicode,map:this.unicodeMapping},{tag:"CID",src:this.CID,map:this.CIDMapping},{tag:"names",src:this.PsName,map:this.PsNameMapping},{tag:"GID",src:this.GID,map:this.GIDMapping}].map(function(c,d,e){a[c.tag]=[];for(var d=0;d<c.src.length;d++)c.src[d]in c.map||(a[c.tag].push(c.src[d]),b=!1)}),a.entropy=b,a},H.prototype.getGlyf=function(){var a=this,b=[0,1,2];return b=b.concat(d(a.unicodeMapping).values),b=e(b),{GID:b.filter(function(b){return!(b in a.glyphCache)})}},H.prototype.setGlyf=function(a){q.extend(this.glyphCache,a.GID)},H.prototype.setCode=function(a){var b=this,c={};for(var f in a.GID){var g=b.mappingNumber++,h=String.fromCharCode(g);b.GIDMapping[parseInt(f)]=h,c[h]=parseInt(f)}for(var f in a.CID){var g=b.mappingNumber++,h=String.fromCharCode(g);b.CIDMapping[f]=h,c[h]=a.CID[f]}for(var f in a.names){var g=b.mappingNumber++,h=String.fromCharCode(g);b.PsNameMapping[f]=h,c[h]=a.names[f]}this.unicode=e(this.unicode.concat(d(c).keys)),q.extend(this.unicodeMapping,a.unicode,c)}}},{jquery:1}]},{},[2]);