svgedit/dist/editor/index.js

582 lines
1.9 MiB
JavaScript
Raw Normal View History

2020-10-25 20:30:20 +00:00
var er="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(er,tr,rr){return er(rr={path:tr,exports:{},require:function(er,tr){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==tr&&rr.path)}},rr.exports),rr.exports}var check=function(er){return er&&er.Math==Math&&er},tr=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof er&&er)||Function("return this")(),fails=function(er){try{return!!er()}catch(er){return!0}},rr=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),nr={}.propertyIsEnumerable,ir=Object.getOwnPropertyDescriptor,or={f:ir&&!nr.call({1:2},1)?function propertyIsEnumerable(er){var tr=ir(this,er);return!!tr&&tr.enumerable}:nr},createPropertyDescriptor=function(er,tr){return{enumerable:!(1&er),configurable:!(2&er),writable:!(4&er),value:tr}},ar={}.toString,classofRaw=function(er){return ar.call(er).slice(8,-1)},sr="".split,lr=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(er){return"String"==classofRaw(er)?sr.call(er,""):Object(er)}:Object,requireObjectCoercible=function(er){if(null==er)throw TypeError("Can't call method on "+er);return er},toIndexedObject=function(er){return lr(requireObjectCoercible(er))},isObject=function(er){return"object"==typeof er?null!==er:"function"==typeof er},toPrimitive=function(er,tr){if(!isObject(er))return er;var rr,nr;if(tr&&"function"==typeof(rr=er.toString)&&!isObject(nr=rr.call(er)))return nr;if("function"==typeof(rr=er.valueOf)&&!isObject(nr=rr.call(er)))return nr;if(!tr&&"function"==typeof(rr=er.toString)&&!isObject(nr=rr.call(er)))return nr;throw TypeError("Can't convert object to primitive value")},cr={}.hasOwnProperty,has=function(er,tr){return cr.call(er,tr)},ur=tr.document,dr=isObject(ur)&&isObject(ur.createElement),documentCreateElement=function(er){return dr?ur.createElement(er):{}},hr=!rr&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),pr=Object.getOwnPropertyDescriptor,Ar={f:rr?pr:function getOwnPropertyDescriptor(er,tr){if(er=toIndexedObject(er),tr=toPrimitive(tr,!0),hr)try{return pr(er,tr)}catch(er){}if(has(er,tr))return createPropertyDescriptor(!or.f.call(er,tr),er[tr])}},anObject=function(er){if(!isObject(er))throw TypeError(String(er)+" is not an object");return er},fr=Object.defineProperty,gr={f:rr?fr:function defineProperty(er,tr,rr){if(anObject(er),tr=toPrimitive(tr,!0),anObject(rr),hr)try{return fr(er,tr,rr)}catch(er){}if("get"in rr||"set"in rr)throw TypeError("Accessors not supported");return"value"in rr&&(er[tr]=rr.value),er}},mr=rr?function(er,tr,rr){return gr.f(er,tr,createPropertyDescriptor(1,rr))}:function(er,tr,rr){return er[tr]=rr,er},setGlobal=function(er,rr){try{mr(tr,er,rr)}catch(nr){tr[er]=rr}return rr},_r=tr["__core-js_shared__"]||setGlobal("__core-js_shared__",{}),vr=Function.toString;"function"!=typeof _r.inspectSource&&(_r.inspectSource=function(er){return vr.call(er)});var yr,br,wr,Sr=_r.inspectSource,xr=tr.WeakMap,kr="function"==typeof xr&&/native code/.test(Sr(xr)),Cr=createCommonjsModule((function(er){(er.exports=function(er,tr){return _r[er]||(_r[er]=void 0!==tr?tr:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Br=0,Er=Math.random(),uid=function(er){return"Symbol("+String(void 0===er?"":er)+")_"+(++Br+Er).toString(36)},Nr=Cr("keys"),sharedKey=function(er){return Nr[er]||(Nr[er]=uid(er))},Lr={},Tr=tr.WeakMap;if(kr){var Pr=new Tr,Fr=Pr.get,Ur=Pr.has,Ir=Pr.set;yr=function(er,tr){return Ir.call(Pr,er,tr),tr},br=function(er){return Fr.call(Pr,er)||{}},wr=function(er){return Ur.call(Pr,er)}}else{var Rr=sharedKey("state");Lr[Rr]=!0,yr=function(er,tr){return mr(er,Rr,tr),tr},br=function(er){return has(er,Rr)?er[Rr]:{}},wr=function(er){return has(er,Rr)}}var
/*! jQuery v1.7.1 jquery.com | jquery.org/license */_export({target:"String",proto:!0,forced:stringHtmlForced("sub")},{sub:function sub(){return createHtml(this,"sub","","")}}),_export({target:"URL",proto:!0,enumerable:!0},{toJSON:function toJSON(){return URL.prototype.toString.call(this)}}),function(er,tr){function cy(er){return or.isWindow(er)?er:9===er.nodeType&&(er.defaultView||er.parentWindow)}function cv(er){if(!Bi[er]){var tr=rr.body,nr=or("<"+er+">").appendTo(tr),ir=nr.css("display");nr.remove(),"none"!==ir&&""!==ir||(Si||((Si=rr.createElement("iframe")).frameBorder=Si.width=Si.height=0),tr.appendChild(Si),xi&&Si.createElement||((xi=(Si.contentWindow||Si.contentDocument).document).write(("CSS1Compat"===rr.compatMode?"<!doctype html>":"")+"<html><body>"),xi.close()),nr=xi.createElement(er),xi.body.appendChild(nr),ir=or.css(nr,"display"),tr.removeChild(Si)),Bi[er]=ir}return Bi[er]}function cu(er,tr){var rr={};return or.each(Li.concat.apply([],Li.slice(0,tr)),(function(){rr[this]=er})),rr}function ct(){Ci=tr}function cs(){return setTimeout(ct,0),Ci=or.now()}function ci(){try{return new er.XMLHttpRequest}catch(er){}}function ca(er,tr,rr,nr){if(or.isArray(tr))or.each(tr,(function(tr,ir){rr||Zn.test(er)?nr(er,ir):ca(er+"["+("object"==_typeof(ir)||or.isArray(ir)?tr:"")+"]",ir,rr,nr)}));else if(rr||null==tr||"object"!=_typeof(tr))nr(er,tr);else for(var ir in tr)ca(er+"["+ir+"]",tr[ir],rr,nr)}function b_(er,rr){var nr,ir,ar=or.ajaxSettings.flatOptions||{};for(nr in rr)rr[nr]!==tr&&((ar[nr]?er:ir||(ir={}))[nr]=rr[nr]);ir&&or.extend(!0,er,ir)}function b$(er,rr,nr,ir,or,ar){(ar=ar||{})[or=or||rr.dataTypes[0]]=!0;for(var sr,lr=er[or],cr=0,ur=lr?lr.length:0,dr=er===Ai;cr<ur&&(dr||!sr);cr++)"string"==typeof(sr=lr[cr](rr,nr,ir))&&(!dr||ar[sr]?sr=tr:(rr.dataTypes.unshift(sr),sr=b$(er,rr,nr,ir,sr,ar)));return(dr||!sr)&&!ar["*"]&&(sr=b$(er,rr,nr,ir,"*",ar)),sr}function bZ(er){return function(tr,rr){if("string"!=typeof tr&&(rr=tr,tr="*"),or.isFunction(rr))for(var nr,ir,ar=tr.toLowerCase().split(ui),sr=0,lr=ar.length;sr<lr;sr++)nr=ar[sr],(ir=/^\+/.test(nr))&&(nr=nr.substr(1)||"*"),(er[nr]=er[nr]||[])[ir?"unshift":"push"](rr)}}function bC(er,tr,rr){var nr="width"===tr?er.offsetWidth:er.offsetHeight,ir="width"===tr?Wn:Xn,ar=0,sr=ir.length;if(nr>0){if("border"!==rr)for(;ar<sr;ar++)rr||(nr-=parseFloat(or.css(er,"padding"+ir[ar]))||0),"margin"===rr?nr+=parseFloat(or.css(er,rr+ir[ar]))||0:nr-=parseFloat(or.css(er,"border"+ir[ar]+"Width"))||0;return nr+"px"}if(((nr=Zr(er,tr,tr))<0||null==nr)&&(nr=er.style[tr]||0),nr=parseFloat(nr)||0,rr)for(;ar<sr;ar++)nr+=parseFloat(or.css(er,"padding"+ir[ar]))||0,"padding"!==rr&&(nr+=parseFloat(or.css(er,"border"+ir[ar]+"Width"))||0),"margin"===rr&&(nr+=parseFloat(or.css(er,rr+ir[ar]))||0);return nr+"px"}function bp(er,tr){tr.src?or.ajax({url:tr.src,async:!1,dataType:"script"}):or.globalEval((tr.text||tr.textContent||tr.innerHTML||"").replace(Yr,"/*$0*/")),tr.parentNode&&tr.parentNode.removeChild(tr)}function bo(er){var tr=rr.createElement("div");return $r.appendChild(tr),tr.innerHTML=er.outerHTML,tr.firstChild}function bn(er){var tr=(er.nodeName||"").toLowerCase();"input"===tr?bm(er):"script"!==tr&&void 0!==er.getElementsByTagName&&or.grep(er.getElementsByTagName("input"),bm)}function bm(er){"checkbox"!==er.type&&"radio"!==er.type||(er.defaultChecked=er.checked)}function bl(er){return void 0!==er.getElementsByTagName?er.getElementsByTagName("*"):void 0!==er.querySelectorAll?er.querySelectorAll("*"):[]}function bk(er,tr){var rr;1===tr.nodeType&&(tr.clearAttributes&&tr.clearAttributes(),tr.mergeAttributes&&tr.mergeAttributes(er),"object"===(rr=tr.nodeName.toLowerCase())?tr.outerHTML=er.outerHTML:"input"!==rr||"checkbox"!==er.type&&"radio"!==er.type?"option"===rr?tr.selected=er.defaultSelected:"input"!==rr&&"textarea"!==rr||(tr.defaultValue=er.defaultValue):(er.checked&&(tr.defaultChecked=tr.checked=er.checked),tr.value!==er.value&&(tr.value=er.value)),tr.removeAttribute(or.expando))}function bj(er,tr){if(1===tr.nodeType&&or.hasData(er)){var rr,nr,ir,ar=or._data(er),sr=or._data(tr,ar),lr=ar.events;if(lr)fo
2020-09-18 20:43:34 +00:00
/*!
* jQuery UI 1.8.17
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI
2020-10-25 20:30:20 +00:00
*/!function(er,tr){function d(tr){return!er(tr).parents().andSelf().filter((function(){return"hidden"===er.curCSS(this,"visibility")||er.expr.filters.hidden(this)})).length}function c(tr,rr){var nr=tr.nodeName.toLowerCase();if("area"===nr){var ir,or=tr.parentNode,ar=or.name;return!(!tr.href||!ar||"map"!==or.nodeName.toLowerCase())&&(!!(ir=er("img[usemap=#"+ar+"]")[0])&&d(ir))}return(/input|select|textarea|button|object/.test(nr)?!tr.disabled:"a"==nr&&tr.href||rr)&&d(tr)}er.ui=er.ui||{},er.ui.version||(er.extend(er.ui,{version:"1.8.17",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),er.fn.extend({propAttr:er.fn.prop||er.fn.attr,_focus:er.fn.focus,focus:function focus(tr,rr){return"number"==typeof tr?this.each((function(){var nr=this;setTimeout((function(){er(nr).focus(),rr&&rr.call(nr)}),tr)})):this._focus.apply(this,arguments)},scrollParent:function scrollParent(){var tr;return tr=er.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter((function(){return/(relative|absolute|fixed)/.test(er.curCSS(this,"position",1))&&/(auto|scroll)/.test(er.curCSS(this,"overflow",1)+er.curCSS(this,"overflow-y",1)+er.curCSS(this,"overflow-x",1))})).eq(0):this.parents().filter((function(){return/(auto|scroll)/.test(er.curCSS(this,"overflow",1)+er.curCSS(this,"overflow-y",1)+er.curCSS(this,"overflow-x",1))})).eq(0),/fixed/.test(this.css("position"))||!tr.length?er(document):tr},zIndex:function zIndex(rr){if(rr!==tr)return this.css("zIndex",rr);if(this.length)for(var nr,ir,or=er(this[0]);or.length&&or[0]!==document;){if(("absolute"===(nr=or.css("position"))||"relative"===nr||"fixed"===nr)&&(ir=parseInt(or.css("zIndex"),10),!isNaN(ir)&&0!==ir))return ir;or=or.parent()}return 0},disableSelection:function disableSelection(){return this.bind((er.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",(function(er){er.preventDefault()}))},enableSelection:function enableSelection(){return this.unbind(".ui-disableSelection")}}),er.each(["Width","Height"],(function(rr,nr){function h(tr,rr,nr,or){return er.each(ir,(function(){rr-=parseFloat(er.curCSS(tr,"padding"+this,!0))||0,nr&&(rr-=parseFloat(er.curCSS(tr,"border"+this+"Width",!0))||0),or&&(rr-=parseFloat(er.curCSS(tr,"margin"+this,!0))||0)})),rr}var ir="Width"===nr?["Left","Right"]:["Top","Bottom"],or=nr.toLowerCase(),ar={innerWidth:er.fn.innerWidth,innerHeight:er.fn.innerHeight,outerWidth:er.fn.outerWidth,outerHeight:er.fn.outerHeight};er.fn["inner"+nr]=function(rr){return rr===tr?ar["inner"+nr].call(this):this.each((function(){er(this).css(or,h(this,rr)+"px")}))},er.fn["outer"+nr]=function(tr,rr){return"number"!=typeof tr?ar["outer"+nr].call(this,tr):this.each((function(){er(this).css(or,h(this,tr,!0,rr)+"px")}))}})),er.extend(er.expr[":"],{data:function data(tr,rr,nr){return!!er.data(tr,nr[3])},focusable:function focusable(tr){return c(tr,!isNaN(er.attr(tr,"tabindex")))},tabbable:function tabbable(tr){var rr=er.attr(tr,"tabindex"),nr=isNaN(rr);return(nr||rr>=0)&&c(tr,!nr)}}),er((function(){var tr=document.body,rr=tr.appendChild(rr=document.createElement("div"));er.extend(rr.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),er.support.minHeight=100===rr.offsetHeight,er.support.selectstart="onselectstart"in rr,tr.removeChild(rr).style.display="none"})),er.extend(er.ui,{plugin:{add:function add(tr,rr,nr){var ir=er.ui[tr].prototype;for(var or in nr)ir.plugins[or]=ir.plugins[or]||[],ir.plugins[or].push([rr,nr[or]])},call:function call(er,tr,rr){var nr=er.plugins[tr];if(nr&&er.element[0].parentNode)for(var ir=0;ir<nr.length;ir++)er.options[nr[ir][0]]&&nr[ir][1].apply(er.element,rr)}},contains:function contains(er,tr){return document.compareDocumentPosition?16&er.compareDocume
2020-09-18 20:43:34 +00:00
/*!
* jQuery UI Widget 1.8.17
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Widget
*/
2020-10-25 20:30:20 +00:00
function(er,tr){if(er.cleanData){var rr=er.cleanData;er.cleanData=function(tr){for(var nr,ir=0;null!=(nr=tr[ir]);ir++)try{er(nr).triggerHandler("remove")}catch(er){}rr(tr)}}else{var nr=er.fn.remove;er.fn.remove=function(tr,rr){return this.each((function(){return rr||(!tr||er.filter(tr,[this]).length)&&er("*",this).add([this]).each((function(){try{er(this).triggerHandler("remove")}catch(er){}})),nr.call(er(this),tr,rr)}))}}er.widget=function(tr,rr,nr){var ir,or=tr.split(".")[0];ir=or+"-"+(tr=tr.split(".")[1]),nr||(nr=rr,rr=er.Widget),er.expr[":"][ir]=function(rr){return!!er.data(rr,tr)},er[or]=er[or]||{},er[or][tr]=function(er,tr){arguments.length&&this._createWidget(er,tr)};var ar=new rr;ar.options=er.extend(!0,{},ar.options),er[or][tr].prototype=er.extend(!0,ar,{namespace:or,widgetName:tr,widgetEventPrefix:er[or][tr].prototype.widgetEventPrefix||tr,widgetBaseClass:ir},nr),er.widget.bridge(tr,er[or][tr])},er.widget.bridge=function(rr,nr){er.fn[rr]=function(ir){var or="string"==typeof ir,ar=Array.prototype.slice.call(arguments,1),sr=this;return ir=!or&&ar.length?er.extend.apply(null,[!0,ir].concat(ar)):ir,or&&"_"===ir.charAt(0)||(or?this.each((function(){var nr=er.data(this,rr),or=nr&&er.isFunction(nr[ir])?nr[ir].apply(nr,ar):nr;if(or!==nr&&or!==tr)return sr=or,!1})):this.each((function(){var tr=er.data(this,rr);tr?tr.option(ir||{})._init():er.data(this,rr,new nr(ir,this))}))),sr}},er.Widget=function(er,tr){arguments.length&&this._createWidget(er,tr)},er.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function _createWidget(tr,rr){er.data(rr,this.widgetName,this),this.element=er(rr),this.options=er.extend(!0,{},this.options,this._getCreateOptions(),tr);var nr=this;this.element.bind("remove."+this.widgetName,(function(){nr.destroy()})),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function _getCreateOptions(){return er.metadata&&er.metadata.get(this.element[0])[this.widgetName]},_create:function _create(){},_init:function _init(){},destroy:function destroy(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function widget(){return this.element},option:function option(rr,nr){var ir=rr;if(0===arguments.length)return er.extend({},this.options);if("string"==typeof rr){if(nr===tr)return this.options[rr];(ir={})[rr]=nr}return this._setOptions(ir),this},_setOptions:function _setOptions(tr){var rr=this;return er.each(tr,(function(er,tr){rr._setOption(er,tr)})),this},_setOption:function _setOption(er,tr){return this.options[er]=tr,"disabled"===er&&this.widget()[tr?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",tr),this},enable:function enable(){return this._setOption("disabled",!1)},disable:function disable(){return this._setOption("disabled",!0)},_trigger:function _trigger(tr,rr,nr){var ir,or,ar=this.options[tr];if(nr=nr||{},(rr=er.Event(rr)).type=(tr===this.widgetEventPrefix?tr:this.widgetEventPrefix+tr).toLowerCase(),rr.target=this.element[0],or=rr.originalEvent)for(ir in or)ir in rr||(rr[ir]=or[ir]);return this.element.trigger(rr,nr),!(er.isFunction(ar)&&!1===ar.call(this.element[0],rr,nr)||rr.isDefaultPrevented())}}}(jQuery),
2020-09-18 20:43:34 +00:00
/*!
* jQuery UI Mouse 1.8.17
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Mouse
*
* Depends:
* jquery.ui.widget.js
*/
2020-10-25 20:30:20 +00:00
function(er,tr){var rr=!1;er(document).mouseup((function(er){rr=!1})),er.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function _mouseInit(){var tr=this;this.element.bind("mousedown."+this.widgetName,(function(er){return tr._mouseDown(er)})).bind("click."+this.widgetName,(function(rr){if(!0===er.data(rr.target,tr.widgetName+".preventClickEvent"))return er.removeData(rr.target,tr.widgetName+".preventClickEvent"),rr.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function _mouseDestroy(){this.element.unbind("."+this.widgetName)},_mouseDown:function _mouseDown(tr){if(!rr){this._mouseStarted&&this._mouseUp(tr),this._mouseDownEvent=tr;var nr=this,ir=1==tr.which,or=!("string"!=typeof this.options.cancel||!tr.target.nodeName)&&er(tr.target).closest(this.options.cancel).length;return!(ir&&!or&&this._mouseCapture(tr))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){nr.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(tr)&&this._mouseDelayMet(tr)&&(this._mouseStarted=!1!==this._mouseStart(tr),!this._mouseStarted)?(tr.preventDefault(),!0):(!0===er.data(tr.target,this.widgetName+".preventClickEvent")&&er.removeData(tr.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(er){return nr._mouseMove(er)},this._mouseUpDelegate=function(er){return nr._mouseUp(er)},er(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),tr.preventDefault(),rr=!0,!0))}},_mouseMove:function _mouseMove(tr){return!er.browser.msie||document.documentMode>=9||tr.button?this._mouseStarted?(this._mouseDrag(tr),tr.preventDefault()):(this._mouseDistanceMet(tr)&&this._mouseDelayMet(tr)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,tr),this._mouseStarted?this._mouseDrag(tr):this._mouseUp(tr)),!this._mouseStarted):this._mouseUp(tr)},_mouseUp:function _mouseUp(tr){return er(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,tr.target==this._mouseDownEvent.target&&er.data(tr.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(tr)),!1},_mouseDistanceMet:function _mouseDistanceMet(er){return Math.max(Math.abs(this._mouseDownEvent.pageX-er.pageX),Math.abs(this._mouseDownEvent.pageY-er.pageY))>=this.options.distance},_mouseDelayMet:function _mouseDelayMet(er){return this.mouseDelayMet},_mouseStart:function _mouseStart(er){},_mouseDrag:function _mouseDrag(er){},_mouseStop:function _mouseStop(er){},_mouseCapture:function _mouseCapture(er){return!0}})}(jQuery),function(er,tr){er.widget("ui.draggable",er.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function _create(){"original"==this.options.helper&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function destroy(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function _mouseCapture(tr){var rr=this.options;return!(this.helper||rr.disabled||er(tr.target).is(".ui-resizable-handle"))&&(this.handle=this._getHandle(tr),!!this.handle&&(rr.iframeFix&&er(!0===rr.iframeFix?"iframe":rr.iframeFix).each((function(){er('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"
2020-09-04 20:34:30 +00:00
/**
* Namespaces or tools therefor.
* @module namespaces
* @license MIT
*/
2020-10-25 20:30:20 +00:00
var wd={HTML:"http://www.w3.org/1999/xhtml",MATH:"http://www.w3.org/1998/Math/MathML",SE:"http://svg-edit.googlecode.com",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"},Sd=function getReverseNS(){var er={};return Object.entries(wd).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ir=rr[1];er[ir]=nr.toLowerCase()})),er};"SVGPathSeg"in window||(window.SVGPathSeg=function(er,tr,rr){this.pathSegType=er,this.pathSegTypeAsLetter=tr,this._owningPathSegList=rr},window.SVGPathSeg.prototype.classname="SVGPathSeg",window.SVGPathSeg.PATHSEG_UNKNOWN=0,window.SVGPathSeg.PATHSEG_CLOSEPATH=1,window.SVGPathSeg.PATHSEG_MOVETO_ABS=2,window.SVGPathSeg.PATHSEG_MOVETO_REL=3,window.SVGPathSeg.PATHSEG_LINETO_ABS=4,window.SVGPathSeg.PATHSEG_LINETO_REL=5,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,window.SVGPathSeg.PATHSEG_ARC_ABS=10,window.SVGPathSeg.PATHSEG_ARC_REL=11,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,window.SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},window.SVGPathSegClosePath=function(er){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",er)},window.SVGPathSegClosePath.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},window.SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},window.SVGPathSegClosePath.prototype.clone=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathSegMovetoAbs=function(er,tr,rr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",er),this._x=tr,this._y=rr},window.SVGPathSegMovetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},window.SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoAbs.prototype.clone=function(){return new window.SVGPathSegMovetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(er,tr,rr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",er),this._x=tr,this._y=rr},window.SVGPathSegMovetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},window.SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoRel.prototype.clone=function(){return new window.SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(er,tr,rr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",er),this._x=tr,this._y=rr},window.SV
2020-09-04 20:34:30 +00:00
/**
* A jQuery module to work with SVG attributes.
* @module jQueryAttr
* @license MIT
*/
2020-10-25 20:30:20 +00:00
function jQueryPluginSVG(er){var tr=er.fn.attr;return er.fn.attr=function(er,rr){var nr=this.length;if(!nr)return tr.call(this,er,rr);for(var ir=0;ir<nr;++ir){var or=this[ir];if("http://www.w3.org/2000/svg"!==or.namespaceURI)return tr.call(this,er,rr);if(void 0!==rr)or.setAttribute(er,rr);else if(Array.isArray(er)){for(var ar={},sr=er.length;sr--;){var lr=er[sr],cr=or.getAttribute(lr);(cr||"0"===cr)&&(cr=isNaN(cr)?cr:cr-0),ar[lr]=cr}return ar}if("object"!==_typeof(er)){var ur=or.getAttribute(er);return(ur||"0"===ur)&&(ur=isNaN(ur)?ur:ur-0),ur}for(var dr=0,hr=Object.entries(er);dr<hr.length;dr++){var pr=_slicedToArray(hr[dr],2),Ar=pr[0],fr=pr[1];or.setAttribute(Ar,fr)}}return this},er}aA("toString",cA,dA);var hA=document.createElementNS(wd.SVG,"svg");function transformToString(er){var tr=er.matrix,rr="";switch(er.type){case 1:rr="matrix("+[tr.a,tr.b,tr.c,tr.d,tr.e,tr.f].join(",")+")";break;case 2:rr="translate("+tr.e+","+tr.f+")";break;case 3:rr=tr.a===tr.d?"scale(".concat(tr.a,")"):"scale(".concat(tr.a,",").concat(tr.d,")");break;case 4:var nr=0,ir=0;if(0!==er.angle){var or=1-tr.a;ir=(or*tr.f+tr.b*tr.e)/(or*or+tr.b*tr.b),nr=(tr.e-tr.b*ir)/or}rr="rotate("+er.angle+" "+nr+","+ir+")"}return rr}var pA,AA={},fA=function(){function SVGTransformList(er){_classCallCheck(this,SVGTransformList),this._elem=er||null,this._xforms=[],this._update=function(){for(var er="",tr=0;tr<this.numberOfItems;++tr){er+=transformToString(this._list.getItem(tr))+" "}this._elem.setAttribute("transform",er)},this._list=this,this._init=function(){var er=this,tr=this._elem.getAttribute("transform");if(tr)for(var rr=/\s*((scale|matrix|rotate|translate)\s*\(.*?\))\s*,?\s*/,nr=!0;nr;)nr=tr.match(rr),tr=tr.replace(rr,""),nr&&nr[1]&&function(){var tr=nr[1].split(/\s*\(/),rr=tr[0],ir=tr[1].match(/\s*(.*?)\s*\)/);ir[1]=ir[1].replace(/(\d)-/g,"$1 -");var or=ir[1].split(/[, ]+/),ar="abcdef".split(""),sr=hA.createSVGMatrix();Object.values(or).forEach((function(er,tr){or[tr]=Number.parseFloat(er),"matrix"===rr&&(sr[ar[tr]]=or[tr])}));var lr=hA.createSVGTransform(),cr="set"+rr.charAt(0).toUpperCase()+rr.slice(1),ur="matrix"===rr?[sr]:or;"scale"===rr&&1===ur.length?ur.push(ur[0]):"translate"===rr&&1===ur.length?ur.push(0):"rotate"===rr&&1===ur.length&&ur.push(0,0),lr[cr].apply(lr,_toConsumableArray(ur)),er._list.appendItem(lr)}()},this._removeFromOtherLists=function(er){er&&Object.values(AA).some((function(tr){for(var rr=0,nr=tr._xforms.length;rr<nr;++rr)if(tr._xforms[rr]===er)return tr.removeItem(rr),!0;return!1}))},this.numberOfItems=0}return _createClass(SVGTransformList,[{key:"clear",value:function clear(){this.numberOfItems=0,this._xforms=[]}},{key:"initialize",value:function initialize(er){this.numberOfItems=1,this._removeFromOtherLists(er),this._xforms=[er]}},{key:"getItem",value:function getItem(er){if(er<this.numberOfItems&&er>=0)return this._xforms[er];var tr=new Error("DOMException with code=INDEX_SIZE_ERR");throw tr.code=1,tr}},{key:"insertItemBefore",value:function insertItemBefore(er,tr){var rr=null;if(tr>=0)if(tr<this.numberOfItems){this._removeFromOtherLists(er);var nr,ir=new Array(this.numberOfItems+1);for(nr=0;nr<tr;++nr)ir[nr]=this._xforms[nr];ir[nr]=er;for(var or=nr+1;nr<this.numberOfItems;++or,++nr)ir[or]=this._xforms[nr];this.numberOfItems++,this._xforms=ir,rr=er,this._list._update()}else rr=this._list.appendItem(er);return rr}},{key:"replaceItem",value:function replaceItem(er,tr){var rr=null;return tr<this.numberOfItems&&tr>=0&&(this._removeFromOtherLists(er),this._xforms[tr]=er,rr=er,this._list._update()),rr}},{key:"removeItem",value:function removeItem(er){if(er<this.numberOfItems&&er>=0){var tr,rr=this._xforms[er],nr=new Array(this.numberOfItems-1);for(tr=0;tr<er;++tr)nr[tr]=this._xforms[tr];for(var ir=tr;ir<this.numberOfItems-1;++ir,++tr)nr[ir]=this._xforms[tr+1];return this.numberOfItems--,this._xforms=nr,this._list._update(),rr}var or=new Error("DOMException with code=INDEX_SIZE_ERR");throw or.code=1,or}},{key:"appendItem",value:function appendItem(er){return this._removeFromOtherLists(er),this._xforms.push(er),this.numberOfItems++,thi
2020-09-04 20:34:30 +00:00
/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.1.1 Built on 2020-09-07T12:58:19.950Z
2020-09-04 20:34:30 +00:00
* CommitID 00000000
*
* Copyright (c) 2010-2020 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
* 2015-2020 yWorks GmbH, http://www.yworks.com
* 2015-2020 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
* 2010 Aaron Spike, https://github.com/acspike
* 2012 Willow Systems Corporation, willow-systems.com
* 2012 Pablo Hess, https://github.com/pablohess
* 2012 Florian Jenett, https://github.com/fjenett
* 2013 Warren Weckesser, https://github.com/warrenweckesser
* 2013 Youssef Beddad, https://github.com/lifof
* 2013 Lee Driscoll, https://github.com/lsdriscoll
* 2013 Stefan Slonevskiy, https://github.com/stefslon
* 2013 Jeremy Morel, https://github.com/jmorel
* 2013 Christoph Hartmann, https://github.com/chris-rock
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
* 2014 James Makes, https://github.com/dollaruw
* 2014 Diego Casorran, https://github.com/diegocr
* 2014 Steven Spungin, https://github.com/Flamenco
* 2014 Kenneth Glassey, https://github.com/Gavvers
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Contributor(s):
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
* kim3er, mfo, alnorth, Flamenco
2020-09-08 23:35:47 +00:00
*/
2020-10-25 20:30:20 +00:00
var Mf=function(){return"undefined"!=typeof window?window:void 0!==Nf?Nf:"undefined"!=typeof self?self:this}();function e(){Mf.console&&"function"==typeof Mf.console.log&&Mf.console.log.apply(Mf.console,arguments)}var Of={log:e,warn:function warn(er){Mf.console&&("function"==typeof Mf.console.warn?Mf.console.warn.apply(Mf.console,arguments):e.call(null,arguments))},error:function error(er){Mf.console&&("function"==typeof Mf.console.error?Mf.console.error.apply(Mf.console,arguments):e(er))}};
2020-09-04 20:34:30 +00:00
/**
* @license
* FileSaver.js
* A saveAs() FileSaver implementation.
*
* By Eli Grey, http://eligrey.com
*
* License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
* source : http://purl.eligrey.com/github/FileSaver.js
2020-10-25 20:30:20 +00:00
*/function r(er,tr,rr){var nr=new XMLHttpRequest;nr.open("GET",er),nr.responseType="blob",nr.onload=function(){jf(nr.response,tr,rr)},nr.onerror=function(){Of.error("could not download file")},nr.send()}function i(er){var tr=new XMLHttpRequest;tr.open("HEAD",er,!1);try{tr.send()}catch(er){}return tr.status>=200&&tr.status<=299}function a(er){try{er.dispatchEvent(new MouseEvent("click"))}catch(rr){var tr=document.createEvent("MouseEvents");tr.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),er.dispatchEvent(tr)}}var Qf,Df,jf=Mf.saveAs||("object"!=("undefined"==typeof window?"undefined":_typeof(window))||window!==Mf?function(){}:"download"in HTMLAnchorElement.prototype?function(er,tr,rr){var nr=Mf.URL||Mf.webkitURL,ir=document.createElement("a");tr=tr||er.name||"download",ir.download=tr,ir.rel="noopener","string"==typeof er?(ir.href=er,ir.origin!==location.origin?i(ir.href)?r(er,tr,rr):a(ir,ir.target="_blank"):a(ir)):(ir.href=nr.createObjectURL(er),setTimeout((function(){nr.revokeObjectURL(ir.href)}),4e4),setTimeout((function(){a(ir)}),0))}:"msSaveOrOpenBlob"in navigator?function(er,tr,rr){if(tr=tr||er.name||"download","string"==typeof er)if(i(er))r(er,tr,rr);else{var nr=document.createElement("a");nr.href=er,nr.target="_blank",setTimeout((function(){a(nr)}))}else navigator.msSaveOrOpenBlob(function(er,tr){return void 0===tr?tr={autoBom:!1}:"object"!=_typeof(tr)&&(Of.warn("Deprecated: Expected third argument to be a object"),tr={autoBom:!tr}),tr.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(er.type)?new Blob([String.fromCharCode(65279),er],{type:er.type}):er}(er,rr),tr)}:function(er,tr,rr,nr){if((nr=nr||open("","_blank"))&&(nr.document.title=nr.document.body.innerText="downloading..."),"string"==typeof er)return r(er,tr,rr);var ir="application/octet-stream"===er.type,or=/constructor/i.test(Mf.HTMLElement)||Mf.safari,ar=/CriOS\/[\d]+/.test(navigator.userAgent);if((ar||ir&&or)&&"object"==("undefined"==typeof FileReader?"undefined":_typeof(FileReader))){var sr=new FileReader;sr.onloadend=function(){var er=sr.result;er=ar?er:er.replace(/^data:[^;]*;/,"data:attachment/file;"),nr?nr.location.href=er:location=er,nr=null},sr.readAsDataURL(er)}else{var lr=Mf.URL||Mf.webkitURL,cr=lr.createObjectURL(er);nr?nr.location=cr:location.href=cr,nr=null,setTimeout((function(){lr.revokeObjectURL(cr)}),4e4)}});
2020-09-04 20:34:30 +00:00
/**
* A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
* @license Use it if you like it
2020-10-25 20:30:20 +00:00
*/function c(er){var tr;er=er||"",this.ok=!1,"#"==er.charAt(0)&&(er=er.substr(1,6)),er={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[er=(er=er.replace(/ /g,"")).toLowerCase()]||er;for(var rr=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function process(er){return[parseInt(er[1]),parseInt(er[2]),parseInt(er[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(er){return[parseInt(er[1],16),parseInt(er[2],16),parseInt(er[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function process(er){return[parseInt(er[1]+er[1],16),parseInt(er[2]+er[2],16),parseInt(er[3]+er[3],16)]}}],nr=0;nr<rr.length;nr++){var ir=rr[nr].re,or=rr[nr].process,ar=ir.exec(er);ar&&(tr=or(ar),this.r=tr[0],this.g=tr[1],this.b=tr[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var er=this.r.toString(16),tr=this.g.toString(16),rr=this.b.toString(16);return 1==er.length&&(er="0"+er),1==tr.length&&(tr="0"+tr),1==rr.length&&(rr="0"+rr),"#"+er+tr+rr}}function h(er){if("object"!=_typeof(er))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var tr={};this.subscribe=function(er,rr,nr
2020-09-04 20:34:30 +00:00
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
2020-10-25 20:30:20 +00:00
function(er){var tr=function e(er){if(void 0!==er&&""!=er)return!0};g.API.events.push(["addPage",function(er){this.internal.getPageInfo(er.pageNumber).pageContext.annotations=[]}]),er.events.push(["putPage",function(er){for(var rr,nr,ir,or=this.internal.getCoordinateString,ar=this.internal.getVerticalCoordinateString,sr=this.internal.getPageInfoByObjId(er.objId),lr=er.pageContext.annotations,cr=!1,ur=0;ur<lr.length&&!cr;ur++)switch((rr=lr[ur]).type){case"link":(tr(rr.options.url)||tr(rr.options.pageNumber))&&(cr=!0);break;case"reference":case"text":case"freetext":cr=!0}if(0!=cr){this.internal.write("/Annots [");for(var dr=0;dr<lr.length;dr++)switch((rr=lr[dr]).type){case"reference":this.internal.write(" "+rr.object.objId+" 0 R ");break;case"text":var hr=this.internal.newAdditionalObject(),pr=this.internal.newAdditionalObject(),Ar=rr.title||"Note";ir="<</Type /Annot /Subtype /Text "+(nr="/Rect ["+or(rr.bounds.x)+" "+ar(rr.bounds.y+rr.bounds.h)+" "+or(rr.bounds.x+rr.bounds.w)+" "+ar(rr.bounds.y)+"] ")+"/Contents ("+rr.contents+")",ir+=" /Popup "+pr.objId+" 0 R",ir+=" /P "+sr.objId+" 0 R",ir+=" /T ("+Ar+") >>",hr.content=ir;var fr=hr.objId+" 0 R";ir="<</Type /Annot /Subtype /Popup "+(nr="/Rect ["+or(rr.bounds.x+30)+" "+ar(rr.bounds.y+rr.bounds.h)+" "+or(rr.bounds.x+rr.bounds.w+30)+" "+ar(rr.bounds.y)+"] ")+" /Parent "+fr,rr.open&&(ir+=" /Open true"),ir+=" >>",pr.content=ir,this.internal.write(hr.objId,"0 R",pr.objId,"0 R");break;case"freetext":nr="/Rect ["+or(rr.bounds.x)+" "+ar(rr.bounds.y)+" "+or(rr.bounds.x+rr.bounds.w)+" "+ar(rr.bounds.y+rr.bounds.h)+"] ";var gr=rr.color||"#000000";ir="<</Type /Annot /Subtype /FreeText "+nr+"/Contents ("+rr.contents+")",ir+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+gr+")",ir+=" /Border [0 0 0]",ir+=" >>",this.internal.write(ir);break;case"link":if(rr.options.name){var mr=this.annotations._nameMap[rr.options.name];rr.options.pageNumber=mr.page,rr.options.top=mr.y}else rr.options.top||(rr.options.top=0);if(nr="/Rect ["+or(rr.x)+" "+ar(rr.y)+" "+or(rr.x+rr.w)+" "+ar(rr.y+rr.h)+"] ",ir="",rr.options.url)ir="<</Type /Annot /Subtype /Link "+nr+"/Border [0 0 0] /A <</S /URI /URI ("+rr.options.url+") >>";else if(rr.options.pageNumber)switch(ir="<</Type /Annot /Subtype /Link "+nr+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(rr.options.pageNumber).objId+" 0 R",rr.options.magFactor=rr.options.magFactor||"XYZ",rr.options.magFactor){case"Fit":ir+=" /Fit]";break;case"FitH":ir+=" /FitH "+rr.options.top+"]";break;case"FitV":rr.options.left=rr.options.left||0,ir+=" /FitV "+rr.options.left+"]";break;case"XYZ":default:var _r=ar(rr.options.top);rr.options.left=rr.options.left||0,void 0===rr.options.zoom&&(rr.options.zoom=0),ir+=" /XYZ "+rr.options.left+" "+_r+" "+rr.options.zoom+"]"}""!=ir&&(ir+=" >>",this.internal.write(ir))}this.internal.write("]")}}]),er.createAnnotation=function(er){var tr=this.internal.getCurrentPageInfo();switch(er.type){case"link":this.link(er.bounds.x,er.bounds.y,er.bounds.w,er.bounds.h,er);break;case"text":case"freetext":tr.pageContext.annotations.push(er)}},er.link=function(er,tr,rr,nr,ir){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:er,y:tr,w:rr,h:nr,options:ir,type:"link"})},er.textWithLink=function(er,tr,rr,nr){var ir=this.getTextWidth(er),or=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(er,tr,rr,nr),rr+=.2*or,this.link(tr,rr-or,ir,or,nr),ir},er.getTextWidth=function(er){var tr=this.internal.getFontSize();return this.getStringUnitWidth(er)*tr/this.internal.scaleFactor}}(g.API),
2020-09-04 20:34:30 +00:00
/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
2020-10-25 20:30:20 +00:00
function(er){var tr={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},rr={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},nr={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},ir=[1570,1571,1573,1575];er.__arabicParser__={};var or=er.__arabicParser__.isInArabicSubstitutionA=function(er){return void 0!==tr[er.charCodeAt(0)]},ar=er.__arabicParser__.isArabicLetter=function(er){return"string"==typeof er&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(er)},sr=er.__arabicParser__.isArabicEndLetter=function(er){return ar(er)&&or(er)&&tr[er.charCodeAt(0)].length<=2},lr=er.__arabicParser__.isArabicAlfLetter=function(er){return ar(er)&&ir.indexOf(er.charCodeAt(0))>=0};er.__arabicParser__.arabicLetterHasIsolatedForm=function(er){return ar(er)&&or(er)&&tr[er.charCodeAt(0)].length>=1};var cr=er.__arabicParser__.arabicLetterHasFinalForm=function(er){return ar(er)&&or(er)&&tr[er.charCodeAt(0)].length>=2};er.__arabicParser__.arabicLetterHasInitialForm=function(er){return ar(er)&&or(er)&&tr[er.charCodeAt(0)].length>=3};var ur=er.__arabicParser__.arabicLetterHasMedialForm=function(er){return ar(er)&&or(er)&&4==tr[er.charCodeAt(0)].length},dr=er.__arabicParser__.resolveLigatures=function(er){var tr=0,nr=rr,ir="",or=0;for(tr=0;tr<er.length;tr+=1)void 0!==nr[er.charCodeAt(tr)]?(or++,"number"==typeof(nr=nr[er.charCodeAt(tr)])&&(ir+=String.fromCharCode(nr),nr=rr,or=0),tr===er.length-1&&(nr=rr,ir+=er.charAt(tr-(or-1)),tr-=or-1,or=0)):(nr=rr,ir+=er.charAt(tr-or),tr-=or,or=0);return ir};er.__arabicParser__.isArabicDiacritic=function(er){return void 0!==er&&void 0!==nr[er.charCodeAt(0)]};var hr=er.__arabicParser__.getCorrectForm=function(er,tr,rr){return ar(er)?!1===or(er)?-1:!cr(er)||!ar(tr)&&!ar(rr)||!ar(rr)&&sr(tr)||sr(er)&&!ar(tr)||sr(er)&&lr(tr)||sr(er)&&sr(tr)?0:ur(er)&&ar(tr)&&!sr(tr)&&ar(rr)&&cr(rr)?3:sr(er)||!ar(rr)?1:2:-1},pr=function d(er){var rr=0,nr=0,ir=0,or="",sr="",lr="",cr=(er=er||"").split("\\s+"),ur=[];for(rr=0;rr<cr.length;rr+=1){fo
2020-09-04 20:34:30 +00:00
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
2020-10-25 20:30:20 +00:00
function(er){var tr=function e(){var er=void 0;Object.defineProperty(this,"pdf",{get:function get(){return er},set:function set(tr){er=tr}});var e=150;Object.defineProperty(this,"width",{get:function get(){return e},set:function set(er){e=isNaN(er)||!1===Number.isInteger(er)||er<0?150:er,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var tr=300;Object.defineProperty(this,"height",{get:function get(){return tr},set:function set(er){tr=isNaN(er)||!1===Number.isInteger(er)||er<0?300:er,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=tr+1)}});var rr=[];Object.defineProperty(this,"childNodes",{get:function get(){return rr},set:function set(er){rr=er}});var nr={};Object.defineProperty(this,"style",{get:function get(){return nr},set:function set(er){nr=er}}),Object.defineProperty(this,"parentNode",{})};tr.prototype.getContext=function(er,tr){var rr;if("2d"!==(er=er||"2d"))return null;for(rr in tr)this.pdf.context2d.hasOwnProperty(rr)&&(this.pdf.context2d[rr]=tr[rr]);return this.pdf.context2d._canvas=this,this.pdf.context2d},tr.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},er.events.push(["initialized",function(){this.canvas=new tr,this.canvas.pdf=this}])}(g.API),
2020-09-04 20:34:30 +00:00
/**
* @license
* ====================================================================
* Copyright (c) 2013 Youssef Beddad, youssef.beddad@gmail.com
* 2013 Eduardo Menezes de Morais, eduardo.morais@usp.br
* 2013 Lee Driscoll, https://github.com/lsdriscoll
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
* 2014 James Hall, james@parall.ax
* 2014 Diego Casorran, https://github.com/diegocr
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/
2020-10-25 20:30:20 +00:00
function(er){var tr={left:0,top:0,bottom:0,right:0},rr=!1,nr=function r(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},tr),this.internal.__cell__.margins.width=this.getPageWidth(),ir.call(this))},ir=function i(){this.internal.__cell__.lastCell=new or,this.internal.__cell__.pages=1},or=function a(){var er=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function get(){return er},set:function set(tr){er=tr}});var tr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function get(){return tr},set:function set(er){tr=er}});var rr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function get(){return rr},set:function set(er){rr=er}});var nr=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function get(){return nr},set:function set(er){nr=er}});var ir=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function get(){return ir},set:function set(er){ir=er}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function get(){return a},set:function set(er){a=er}});var or=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function get(){return or},set:function set(er){or=er}}),this};or.prototype.clone=function(){return new or(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},or.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},er.setHeaderFunction=function(er){return nr.call(this),this.internal.__cell__.headerFunction="function"==typeof er?er:void 0,this},er.getTextDimensions=function(er,tr){nr.call(this);var rr=(tr=tr||{}).fontSize||this.getFontSize(),ir=tr.font||this.getFont(),or=tr.scaleFactor||this.internal.scaleFactor,ar=0,sr=0,lr=0;if(!Array.isArray(er)&&"string"!=typeof er){if("number"!=typeof er)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");er=String(er)}var cr=tr.maxWidth;cr>0?"string"==typeof er?er=this.splitTextToSize(er,cr):"[object Array]"===Object.prototype.toString.call(er)&&(er=this.splitTextToSize(er.join(" "),cr)):er=Array.isArray(er)?er:[er];for(var ur=0;ur<er.length;ur++)ar<(lr=this.getStringUnitWidth(er[ur],{font:ir})*rr)&&(ar=lr);return 0!==ar&&(sr=er.length),{w:ar/=or,h:Math.max((sr*rr*this.getLineHeightFactor()-rr*(this.getLineHeightFactor()-1))/or,0)}},er.cellAddPage=function(){nr.call(this),this.addPage();var er=this.internal.__cell__.margins||tr;return this.internal.__cell__.lastCell=new or(er.left,er.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var ar=er.cell=function(){var er;er=arguments[0]instanceof or?arguments[0]:new or(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),nr.call(this);var ir=this.internal.__cell__.lastCell,ar=this.internal.__cell__.padding,sr=this.internal.__cell__.margins||tr,lr=this.internal.__cell__.tableHeaderRow,cr=this.internal.__cell__.printHeaders;return void 0!==ir.lineNumber&&(ir.lineNumber===er.lineNumber?(er.x=(ir.x||0)+(ir.width||0),er.y=ir.y||0):ir.y+ir.height+er.height+sr.bottom>this.getPageHeight()?(this.cellAddPage(),er.y=sr.top,cr&&lr&&(this.printHeaderRow(er.lineNumber,!0),er.y+=lr[0].height)):er.y=ir.y+ir.height||er.y),void 0!==er.text[0]&&(this.rect(er.x,er.y,er.width,er.height,!0===rr?"FD":void 0),"right"===er.align?this.text(er.text,er.x+er.width-ar,er.y+ar,{align:"right",baseline:"top"}):"center"===er.align?this.text(er.text,er.x+er.width/2,er.y+ar,{align:"center",baseline:"top",maxWidth:er.width-ar-ar}):this.text(er.text,er.x+ar,er.y+ar,{align:"left",baseline:"top",maxWidth:er.width-ar-ar})),this.internal.__cell__.lastCell=er,this};er.table=function(er,rr,lr,cr,ur){if(nr.call(this),!lr)throw new Error("No data for PDF table.");var dr,hr,pr,Ar,fr=[],gr=[],mr=[],_r={},vr={},yr=[],br=[],wr=(ur=ur||{}).autoSize||!1,Sr=!1!==ur.printHeaders,xr=ur.css&&void 0!==ur.css["font-size"]?16*ur.css["font-size"]:
2020-09-04 20:34:30 +00:00
/**
* @license
Copyright (c) 2013 Gildas Lormeau. All rights reserved.
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the distribution.
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
3. The names of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JCRAFT,
INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
2020-10-25 20:30:20 +00:00
var Rg=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function ft(){var er=this;function e(er,tr){var rr=0;do{rr|=1&er,er>>>=1,rr<<=1}while(--tr>0);return rr>>>1}er.build_tree=function(tr){var rr,nr,ir,or=er.dyn_tree,ar=er.stat_desc.static_tree,sr=er.stat_desc.elems,lr=-1;for(tr.heap_len=0,tr.heap_max=573,rr=0;rr<sr;rr++)0!==or[2*rr]?(tr.heap[++tr.heap_len]=lr=rr,tr.depth[rr]=0):or[2*rr+1]=0;for(;tr.heap_len<2;)or[2*(ir=tr.heap[++tr.heap_len]=lr<2?++lr:0)]=1,tr.depth[ir]=0,tr.opt_len--,ar&&(tr.static_len-=ar[2*ir+1]);for(er.max_code=lr,rr=Math.floor(tr.heap_len/2);rr>=1;rr--)tr.pqdownheap(or,rr);ir=sr;do{rr=tr.heap[1],tr.heap[1]=tr.heap[tr.heap_len--],tr.pqdownheap(or,1),nr=tr.heap[1],tr.heap[--tr.heap_max]=rr,tr.heap[--tr.heap_max]=nr,or[2*ir]=or[2*rr]+or[2*nr],tr.depth[ir]=Math.max(tr.depth[rr],tr.depth[nr])+1,or[2*rr+1]=or[2*nr+1]=ir,tr.heap[1]=ir++,tr.pqdownheap(or,1)}while(tr.heap_len>=2);tr.heap[--tr.heap_max]=tr.heap[1],function(tr){var rr,nr,ir,or,ar,sr,lr=er.dyn_tree,cr=er.stat_desc.static_tree,ur=er.stat_desc.extra_bits,dr=er.stat_desc.extra_base,hr=er.stat_desc.max_length,pr=0;for(or=0;or<=15;or++)tr.bl_count[or]=0;for(lr[2*tr.heap[tr.heap_max]+1]=0,rr=tr.heap_max+1;rr<573;rr++)(or=lr[2*lr[2*(nr=tr.heap[rr])+1]+1]+1)>hr&&(or=hr,pr++),lr[2*nr+1]=or,nr>er.max_code||(tr.bl_count[or]++,ar=0,nr>=dr&&(ar=ur[nr-dr]),sr=lr[2*nr],tr.opt_len+=sr*(or+ar),cr&&(tr.static_len+=sr*(cr[2*nr+1]+ar)));if(0!==pr){do{for(or=hr-1;0===tr.bl_count[or];)or--;tr.bl_count[or]--,tr.bl_count[or+1]+=2,tr.bl_count[hr]--,pr-=2}while(pr>0);for(or=hr;0!==or;or--)for(nr=tr.bl_count[or];0!==nr;)(ir=tr.heap[--rr])>er.max_code||(lr[2*ir+1]!==or&&(tr.opt_len+=(or-lr[2*ir+1])*lr[2*ir],lr[2*ir+1]=or),nr--)}}(tr),function(er,tr,rr){var nr,ir,or,ar=[],sr=0;for(nr=1;nr<=15;nr++)ar[nr]=sr=sr+rr[nr-1]<<1;for(ir=0;ir<=tr;ir++)0!==(or=er[2*ir+1])&&(er[2*ir]=e(ar[or]++,or))}(or,er.max_code,tr.bl_count)}}function dt(er,tr,rr,nr,ir){this.static_tree=er,this.extra_bits=tr,this.extra_base=rr,this.elems=nr,this.max_length=ir}function pt(er,tr,rr,nr,ir){this.good_length=er,this.max_lazy=tr,this.nice_length=rr,this.max_chain=nr,this.func=ir}ft._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,
2020-09-04 20:34:30 +00:00
/**
* @license
* jsPDF filters PlugIn
* Copyright (c) 2014 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
2020-10-25 20:30:20 +00:00
*/Lt.prototype={deflateInit:function deflateInit(er,tr){return this.dstate=new Nt,tr||(tr=15),this.dstate.deflateInit(this,er,tr)},deflate:function deflate(er){return this.dstate?this.dstate.deflate(this,er):-2},deflateEnd:function deflateEnd(){if(!this.dstate)return-2;var er=this.dstate.deflateEnd();return this.dstate=null,er},deflateParams:function deflateParams(er,tr){return this.dstate?this.dstate.deflateParams(this,er,tr):-2},deflateSetDictionary:function deflateSetDictionary(er,tr){return this.dstate?this.dstate.deflateSetDictionary(this,er,tr):-2},read_buf:function read_buf(er,tr,rr){var nr=this.avail_in;return nr>rr&&(nr=rr),0===nr?0:(this.avail_in-=nr,er.set(this.next_in.subarray(this.next_in_index,this.next_in_index+nr),tr),this.next_in_index+=nr,this.total_in+=nr,nr)},flush_pending:function flush_pending(){var er=this.dstate.pending;er>this.avail_out&&(er=this.avail_out),0!==er&&(this.next_out.set(this.dstate.pending_buf.subarray(this.dstate.pending_out,this.dstate.pending_out+er),this.next_out_index),this.next_out_index+=er,this.dstate.pending_out+=er,this.total_out+=er,this.avail_out-=er,this.dstate.pending-=er,0===this.dstate.pending&&(this.dstate.pending_out=0))}},function(er){var tr=function e(er){var e,tr,rr,nr,ir,or,ar,sr,lr,cr;for(/[^\x00-\xFF]/.test(er),tr=[],rr=0,nr=(er+=e="\0\0\0\0".slice(er.length%4||4)).length;nr>rr;rr+=4)0!==(ir=(er.charCodeAt(rr)<<24)+(er.charCodeAt(rr+1)<<16)+(er.charCodeAt(rr+2)<<8)+er.charCodeAt(rr+3))?(or=(ir=((ir=((ir=((ir=(ir-(cr=ir%85))/85)-(lr=ir%85))/85)-(sr=ir%85))/85)-(ar=ir%85))/85)%85,tr.push(or+33,ar+33,sr+33,lr+33,cr+33)):tr.push(122);return function(er,tr){for(var rr=tr;rr>0;rr--)er.pop()}(tr,e.length),String.fromCharCode.apply(String,tr)+"~>"},rr=function n(er){var tr,n,rr,nr,ir,or=String,ar="length",sr=255,lr="charCodeAt",cr="slice",ur="replace";for(er[cr](-2),er=er[cr](0,-2)[ur](/\s/g,"")[ur]("z","!!!!!"),rr=[],nr=0,ir=(er+=tr="uuuuu"[cr](er[ar]%5||5))[ar];ir>nr;nr+=5)n=52200625*(er[lr](nr)-33)+614125*(er[lr](nr+1)-33)+7225*(er[lr](nr+2)-33)+85*(er[lr](nr+3)-33)+(er[lr](nr+4)-33),rr.push(sr&n>>24,sr&n>>16,sr&n>>8,sr&n);return function(er,tr){for(var rr=tr;rr>0;rr--)er.pop()}(rr,tr[ar]),or.fromCharCode.apply(or,rr)},nr=function r(er){var tr=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(er=er.replace(/\s/g,"")).indexOf(">")&&(er=er.substr(0,er.indexOf(">"))),er.length%2&&(er+="0"),!1===tr.test(er))return"";for(var rr="",r=0;r<er.length;r+=2)rr+=String.fromCharCode("0x"+(er[r]+er[r+1]));return rr},ir=function i(tr){for(var rr,nr,i,ir,or,ar=[],sr=tr.length;sr--;)ar[sr]=tr.charCodeAt(sr);return rr=er.adler32cs.from(tr),i=tr=(nr=new xt(6)).append(new Uint8Array(ar)),ir=nr.flush(),(or=new Uint8Array(i.byteLength+ir.byteLength)).set(new Uint8Array(i),0),or.set(new Uint8Array(ir),i.byteLength),tr=or,(ar=new Uint8Array(tr.byteLength+6)).set(new Uint8Array([120,156])),ar.set(tr,2),ar.set(new Uint8Array([255&rr,rr>>8&255,rr>>16&255,rr>>24&255]),tr.byteLength+2),ar.reduce((function(er,tr){return er+String.fromCharCode(tr)}),"")};er.processDataByFilters=function(er,or){var ar=0,sr=er||"",lr=[];for("string"==typeof(or=or||[])&&(or=[or]),ar=0;ar<or.length;ar+=1)switch(or[ar]){case"ASCII85Decode":case"/ASCII85Decode":sr=rr(sr),lr.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":sr=tr(sr),lr.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":sr=nr(sr),lr.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":sr=sr.split("").map((function(er){return("0"+er.charCodeAt().toString(16)).slice(-2)})).join("")+">",lr.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":sr=ir(sr),lr.push("/FlateDecode");break;default:throw new Error('The filter: "'+or[ar]+'" is not implemented')}return{data:sr,reverseChain:lr.reverse().join(" ")}}}(g.API),
2020-09-04 20:34:30 +00:00
/**
* @license
* jsPDF fileloading PlugIn
* Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
2020-10-25 20:30:20 +00:00
function(er){er.loadFile=function(er,tr,rr){return function(er,tr,rr){tr=!1!==tr,rr="function"==typeof rr?rr:function(){};var nr=void 0;try{nr=function(er,tr,rr){var nr=new XMLHttpRequest,ir=0,or=function a(er){var tr=er.length,rr=[],nr=String.fromCharCode;for(ir=0;ir<tr;ir+=1)rr.push(nr(255&er.charCodeAt(ir)));return rr.join("")};if(nr.open("GET",er,!tr),nr.overrideMimeType("text/plain; charset=x-user-defined"),!1===tr&&(nr.onload=function(){200===nr.status?rr(or(this.responseText)):rr(void 0)}),nr.send(null),tr&&200===nr.status)return or(nr.responseText)}(er,tr,rr)}catch(er){}return nr}(er,tr,rr)},er.loadImageFile=er.loadFile}(g.API),
2020-09-04 20:34:30 +00:00
/**
* @license
* Copyright (c) 2018 Erik Koopmans
* Released under the MIT License.
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
2020-10-25 20:30:20 +00:00
function(er){function n(){return(Mf.html2canvas?Promise.resolve(Mf.html2canvas):Promise.resolve().then((function(){return sF}))).catch((function(er){return Promise.reject(new Error("Could not load dompurify: "+er))})).then((function(er){return er.default?er.default:er}))}function r(){return(Mf.DOMPurify?Promise.resolve(Mf.DOMPurify):Promise.resolve().then((function(){return bF}))).catch((function(er){return Promise.reject(new Error("Could not load dompurify: "+er))})).then((function(er){return er.default?er.default:er}))}var tr=function i(er){var tr=_typeof(er);return"undefined"===tr?"undefined":"string"===tr||er instanceof String?"string":"number"===tr||er instanceof Number?"number":"function"===tr||er instanceof Function?"function":er&&er.constructor===Array?"array":er&&1===er.nodeType?"element":"object"===tr?"object":"unknown"},rr=function a(er,tr){var rr=document.createElement(er);for(var nr in tr.className&&(rr.className=tr.className),tr.innerHTML&&tr.dompurify&&(rr.innerHTML=tr.dompurify.sanitize(tr.innerHTML)),tr.style)rr.style[nr]=tr.style[nr];return rr},nr=function t(er){var tr=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),rr=t.convert(Promise.resolve(),tr);return(rr=rr.setProgress(1,t,1,[t])).set(er)};(nr.prototype=Object.create(Promise.prototype)).constructor=nr,nr.convert=function(er,tr){return er.__proto__=tr||nr.prototype,er},nr.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function callback(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},nr.prototype.from=function(er,nr){return this.then((function(){switch(nr=nr||function(er){switch(tr(er)){case"string":return"string";case"element":return"canvas"===er.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(er)){case"string":return this.then(r).then((function(tr){return this.set({src:rr("div",{innerHTML:er,dompurify:tr})})}));case"element":return this.set({src:er});case"canvas":return this.set({canvas:er});case"img":return this.set({img:er});default:return this.error("Unknown source type.")}}))},nr.prototype.to=function(er){switch(er){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},nr.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var er={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},tr=function o(er,tr){for(var rr=3===er.nodeType?document.createTextNode(er.nodeValue):er.cloneNode(!1),nr=er.firstChild;nr;nr=nr.nextSibling)!0!==tr&&1===nr.nodeType&&"SCRIPT"===nr.nodeName||rr.appendChild(o(nr,tr));return 1===er.nodeType&&("CANVAS"===er.nodeName?(rr.width=er.width,rr.height=er.height,rr.getContext("2d").drawImage(er,0,0)):"TEXTAREA"!==er.nodeName&&"SELECT"!==er.nodeName||(rr.value=er.value),rr.addEventListener("load",(function(){rr.scrollTop=er.scrollTop,rr.scrollLeft=er.scrollLeft}),!0)),rr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===tr.tagName&&(er.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=rr("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=rr("div",{className:"html2pdf__container",style:er}),this.prop.container.appendChild(tr),this.prop.container.firstChild.appendChild(rr("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.sty
2020-09-04 20:34:30 +00:00
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
2020-10-25 20:30:20 +00:00
function(er){var tr;er.events.push(["postPutResources",function(){var er=this,rr=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var nr=er.outline.render().split(/\r\n/),ir=0;ir<nr.length;ir++){var or=nr[ir],ar=rr.exec(or);if(null!=ar){var sr=ar[1];er.internal.newObjectDeferredBegin(sr,!1)}er.internal.write(or)}if(this.outline.createNamedDestinations){var lr=this.internal.pages.length,cr=[];for(ir=0;ir<lr;ir++){var ur=er.internal.newObject();cr.push(ur);var dr=er.internal.getPageInfo(ir+1);er.internal.write("<< /D["+dr.objId+" 0 R /XYZ null null null]>> endobj")}var hr=er.internal.newObject();for(er.internal.write("<< /Names [ "),ir=0;ir<cr.length;ir++)er.internal.write("(page_"+(ir+1)+")"+cr[ir]+" 0 R");er.internal.write(" ] >>","endobj"),tr=er.internal.newObject(),er.internal.write("<< /Dests "+hr+" 0 R"),er.internal.write(">>","endobj")}}]),er.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+tr+" 0 R"))}]),er.events.push(["initialized",function(){var er=this;er.outline={createNamedDestinations:!1,root:{children:[]}},er.outline.add=function(er,tr,rr){var nr={title:tr,options:rr,children:[]};return null==er&&(er=this.root),er.children.push(nr),nr},er.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=er,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},er.outline.genIds_r=function(tr){tr.id=er.internal.newObjectDeferred();for(var rr=0;rr<tr.children.length;rr++)this.genIds_r(tr.children[rr])},er.outline.renderRoot=function(er){this.objStart(er),this.line("/Type /Outlines"),er.children.length>0&&(this.line("/First "+this.makeRef(er.children[0])),this.line("/Last "+this.makeRef(er.children[er.children.length-1]))),this.line("/Count "+this.count_r({count:0},er)),this.objEnd()},er.outline.renderItems=function(tr){for(var rr=this.ctx.pdf.internal.getVerticalCoordinateString,nr=0;nr<tr.children.length;nr++){var ir=tr.children[nr];this.objStart(ir),this.line("/Title "+this.makeString(ir.title)),this.line("/Parent "+this.makeRef(tr)),nr>0&&this.line("/Prev "+this.makeRef(tr.children[nr-1])),nr<tr.children.length-1&&this.line("/Next "+this.makeRef(tr.children[nr+1])),ir.children.length>0&&(this.line("/First "+this.makeRef(ir.children[0])),this.line("/Last "+this.makeRef(ir.children[ir.children.length-1])));var or=this.count=this.count_r({count:0},ir);if(or>0&&this.line("/Count "+or),ir.options&&ir.options.pageNumber){var ar=er.internal.getPageInfo(ir.options.pageNumber);this.line("/Dest ["+ar.objId+" 0 R /XYZ 0 "+rr(0)+" 0]")}this.objEnd()}for(var sr=0;sr<tr.children.length;sr++)this.renderItems(tr.children[sr])},er.outline.line=function(er){this.ctx.val+=er+"\r\n"},er.outline.makeRef=function(er){return er.id+" 0 R"},er.outline.makeString=function(tr){return"("+er.internal.pdfEscape(tr)+")"},er.outline.objStart=function(er){this.ctx.val+="\r\n"+er.id+" 0 obj\r\n<<\r\n"},er.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},er.outline.count_r=function(er,tr){for(var rr=0;rr<tr.children.length;rr++)er.count++,this.count_r(er,tr.children[rr]);return er.count}}])}(g.API),
2020-09-04 20:34:30 +00:00
/**
* @license
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
2020-10-25 20:30:20 +00:00
function(er){var tr=[192,193,194,195,196,197,198,199];er.processJPEG=function(er,rr,nr,ir,or,ar){var sr,lr=this.decode.DCT_DECODE,cr=null;if("string"==typeof er||this.__addimage__.isArrayBuffer(er)||this.__addimage__.isArrayBufferView(er)){switch(er=or||er,er=this.__addimage__.isArrayBuffer(er)?new Uint8Array(er):er,(sr=function(er){for(var rr,nr=256*er.charCodeAt(4)+er.charCodeAt(5),ir=er.length,or={width:0,height:0,numcomponents:1},ar=4;ar<ir;ar+=2){if(ar+=nr,-1!==tr.indexOf(er.charCodeAt(ar+1))){rr=256*er.charCodeAt(ar+5)+er.charCodeAt(ar+6),or={width:256*er.charCodeAt(ar+7)+er.charCodeAt(ar+8),height:rr,numcomponents:er.charCodeAt(ar+9)};break}nr=256*er.charCodeAt(ar+2)+er.charCodeAt(ar+3)}return or}(er=this.__addimage__.isArrayBufferView(er)?this.__addimage__.arrayBufferToBinaryString(er):er)).numcomponents){case 1:ar=this.color_spaces.DEVICE_GRAY;break;case 4:ar=this.color_spaces.DEVICE_CMYK;break;case 3:ar=this.color_spaces.DEVICE_RGB}cr={data:er,width:sr.width,height:sr.height,colorSpace:ar,bitsPerComponent:8,filter:lr,index:rr,alias:nr}}return cr}}(g.API);
2020-09-04 20:34:30 +00:00
/**
* @license
* Extracted from pdf.js
* https://github.com/andreasgal/pdf.js
*
* Copyright (c) 2011 Mozilla Foundation
*
* Contributors: Andreas Gal <gal@mozilla.com>
* Chris G Jones <cjones@mozilla.com>
* Shaon Barman <shaon.barman@gmail.com>
* Vivien Nicolas <21@vingtetun.org>
* Justin D'Arcangelo <justindarc@gmail.com>
* Yury Delendik
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
2020-10-25 20:30:20 +00:00
var Hg,Gg,Vg,zg,Kg,qg=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function ensureBuffer(er){var tr=this.buffer,rr=tr?tr.byteLength:0;if(er<rr)return tr;for(var nr=512;nr<er;)nr<<=1;for(var ir=new Uint8Array(nr),or=0;or<rr;++or)ir[or]=tr[or];return this.buffer=ir},getByte:function getByte(){for(var er=this.pos;this.bufferLength<=er;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function getBytes(er){var tr=this.pos;if(er){this.ensureBuffer(tr+er);for(var rr=tr+er;!this.eof&&this.bufferLength<rr;)this.readBlock();var nr=this.bufferLength;rr>nr&&(rr=nr)}else{for(;!this.eof;)this.readBlock();rr=this.bufferLength}return this.pos=rr,this.buffer.subarray(tr,rr)},lookChar:function lookChar(){for(var er=this.pos;this.bufferLength<=er;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function getChar(){for(var er=this.pos;this.bufferLength<=er;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function makeSubStream(er,tr,rr){for(var nr=er+tr;this.bufferLength<=nr&&!this.eof;)this.readBlock();return new Stream(this.buffer,er,tr,rr)},skip:function skip(er){er||(er=1),this.pos+=er},reset:function reset(){this.pos=0}},t}(),Wg=("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==Nf&&Nf||Function('return typeof this === "object" && this.content')()||Function("return this")()).FlateStream=function(){if("undefined"!=typeof Uint32Array){var er=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),tr=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),rr=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),nr=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459
2020-09-04 20:34:30 +00:00
/**
* @license
* (c) Dean McNamee <dean@gmail.com>, 2013.
*
* https://github.com/deanm/omggif
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
* including animation and compression. It does not rely on any specific
* underlying system, so should run in the browser, Node, or Plask.
2020-10-25 20:30:20 +00:00
*/function jt(er){var tr=0;if(71!==er[tr++]||73!==er[tr++]||70!==er[tr++]||56!==er[tr++]||56!=(er[tr++]+1&253)||97!==er[tr++])throw new Error("Invalid GIF 87a/89a header.");var rr=er[tr++]|er[tr++]<<8,nr=er[tr++]|er[tr++]<<8,ir=er[tr++],or=ir>>7,ar=1<<1+(7&ir);er[tr++],er[tr++];var sr=null,lr=null;or&&(sr=tr,lr=ar,tr+=3*ar);var cr=!0,ur=[],dr=0,hr=null,pr=0,Ar=null;for(this.width=rr,this.height=nr;cr&&tr<er.length;)switch(er[tr++]){case 33:switch(er[tr++]){case 255:if(11!==er[tr]||78==er[tr+1]&&69==er[tr+2]&&84==er[tr+3]&&83==er[tr+4]&&67==er[tr+5]&&65==er[tr+6]&&80==er[tr+7]&&69==er[tr+8]&&50==er[tr+9]&&46==er[tr+10]&&48==er[tr+11]&&3==er[tr+12]&&1==er[tr+13]&&0==er[tr+16])tr+=14,Ar=er[tr++]|er[tr++]<<8,tr++;else for(tr+=12;;){if(!((Br=er[tr++])>=0))throw Error("Invalid block size");if(0===Br)break;tr+=Br}break;case 249:if(4!==er[tr++]||0!==er[tr+4])throw new Error("Invalid graphics extension block.");var fr=er[tr++];dr=er[tr++]|er[tr++]<<8,hr=er[tr++],0==(1&fr)&&(hr=null),pr=fr>>2&7,tr++;break;case 254:for(;;){if(!((Br=er[tr++])>=0))throw Error("Invalid block size");if(0===Br)break;tr+=Br}break;default:throw new Error("Unknown graphic control label: 0x"+er[tr-1].toString(16))}break;case 44:var gr=er[tr++]|er[tr++]<<8,mr=er[tr++]|er[tr++]<<8,_r=er[tr++]|er[tr++]<<8,vr=er[tr++]|er[tr++]<<8,yr=er[tr++],br=yr>>6&1,wr=1<<1+(7&yr),Sr=sr,xr=lr,kr=!1;yr>>7&&(kr=!0,Sr=tr,xr=wr,tr+=3*wr);var Cr=tr;for(tr++;;){var Br;if(!((Br=er[tr++])>=0))throw Error("Invalid block size");if(0===Br)break;tr+=Br}ur.push({x:gr,y:mr,width:_r,height:vr,has_local_palette:kr,palette_offset:Sr,palette_size:xr,data_offset:Cr,data_length:tr-Cr,transparent_index:hr,interlaced:!!br,delay:dr,disposal:pr});break;case 59:cr=!1;break;default:throw new Error("Unknown gif block: 0x"+er[tr-1].toString(16))}this.numFrames=function(){return ur.length},this.loopCount=function(){return Ar},this.frameInfo=function(er){if(er<0||er>=ur.length)throw new Error("Frame index out of range.");return ur[er]},this.decodeAndBlitFrameBGRA=function(tr,nr){var ir=this.frameInfo(tr),or=ir.width*ir.height,ar=new Uint8Array(or);Bt(er,ir.data_offset,ar,or);var sr=ir.palette_offset,lr=ir.transparent_index;null===lr&&(lr=256);var cr=ir.width,ur=rr-cr,dr=cr,hr=4*(ir.y*rr+ir.x),pr=4*((ir.y+ir.height)*rr+ir.x),Ar=hr,fr=4*ur;!0===ir.interlaced&&(fr+=4*rr*7);for(var gr=8,mr=0,_r=ar.length;mr<_r;++mr){var vr=ar[mr];if(0===dr&&(dr=cr,(Ar+=fr)>=pr&&(fr=4*ur+4*rr*(gr-1),Ar=hr+(cr+ur)*(gr<<1),gr>>=1)),vr===lr)Ar+=4;else{var yr=er[sr+3*vr],br=er[sr+3*vr+1],wr=er[sr+3*vr+2];nr[Ar++]=wr,nr[Ar++]=br,nr[Ar++]=yr,nr[Ar++]=255}--dr}},this.decodeAndBlitFrameRGBA=function(tr,nr){var ir=this.frameInfo(tr),or=ir.width*ir.height,ar=new Uint8Array(or);Bt(er,ir.data_offset,ar,or);var sr=ir.palette_offset,lr=ir.transparent_index;null===lr&&(lr=256);var cr=ir.width,ur=rr-cr,dr=cr,hr=4*(ir.y*rr+ir.x),pr=4*((ir.y+ir.height)*rr+ir.x),Ar=hr,fr=4*ur;!0===ir.interlaced&&(fr+=4*rr*7);for(var gr=8,mr=0,_r=ar.length;mr<_r;++mr){var vr=ar[mr];if(0===dr&&(dr=cr,(Ar+=fr)>=pr&&(fr=4*ur+4*rr*(gr-1),Ar=hr+(cr+ur)*(gr<<1),gr>>=1)),vr===lr)Ar+=4;else{var yr=er[sr+3*vr],br=er[sr+3*vr+1],wr=er[sr+3*vr+2];nr[Ar++]=yr,nr[Ar++]=br,nr[Ar++]=wr,nr[Ar++]=255}--dr}}}function Bt(er,tr,rr,nr){for(var ir=er[tr++],or=1<<ir,ar=or+1,sr=ar+1,lr=ir+1,cr=(1<<lr)-1,ur=0,dr=0,hr=0,pr=er[tr++],Ar=new Int32Array(4096),fr=null;;){for(;ur<16&&0!==pr;)dr|=er[tr++]<<ur,ur+=8,1===pr?pr=er[tr++]:--pr;if(ur<lr)break;var gr=dr&cr;if(dr>>=lr,ur-=lr,gr!==or){if(gr===ar)break;for(var mr=gr<sr?gr:fr,_r=0,vr=mr;vr>or;)vr=Ar[vr]>>8,++_r;var yr=vr;if(hr+_r+(mr!==gr?1:0)>nr)return void Of.log("Warning, gif stream longer than expected.");rr[hr++]=yr;var br=hr+=_r;for(mr!==gr&&(rr[hr++]=yr),vr=mr;_r--;)vr=Ar[vr],rr[--br]=255&vr,vr>>=8;null!==fr&&sr<4096&&(Ar[sr++]=fr<<8|yr,sr>=cr+1&&lr<12&&(++lr,cr=cr<<1|1)),fr=gr}else sr=ar+1,cr=(1<<(lr=ir+1))-1,fr=null}return hr!==nr&&Of.log("Warning, gif stream shorter than expected."),rr
2020-09-04 20:34:30 +00:00
/**
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2020-10-25 20:30:20 +00:00
*/}function Ot(er){var tr,rr,nr,ir,or,ar=Math.floor,sr=new Array(64),lr=new Array(64),cr=new Array(64),ur=new Array(64),dr=new Array(65535),hr=new Array(65535),pr=new Array(64),Ar=new Array(64),fr=[],gr=0,mr=7,_r=new Array(64),vr=new Array(64),yr=new Array(64),br=new Array(256),wr=new Array(2048),Sr=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],xr=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],kr=[0,1,2,3,4,5,6,7,8,9,10,11],Cr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Br=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Er=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Nr=[0,1,2,3,4,5,6,7,8,9,10,11],Lr=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Tr=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function j(er,tr){for(var rr=0,nr=0,ir=new Array,or=1;or<=16;or++){for(var ar=1;ar<=er[or];ar++)ir[tr[nr]]=[],ir[tr[nr]][0]=rr,ir[tr[nr]][1]=or,nr++,rr++;rr*=2}return ir}function B(er){for(var tr=er[0],rr=er[1]-1;rr>=0;)tr&1<<rr&&(gr|=1<<mr),rr--,--mr<0&&(255==gr?(O(255),O(0)):O(gr),mr=7,gr=0)}function O(er){fr.push(er)}function M(er){O(er>>8&255),O(255&er)}function E(er,tr,rr,nr,ir){for(var or,ar=ir[0],sr=ir[240],lr=function(er,tr){var rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr=0;for(ur=0;ur<8;++ur){rr=er[hr],nr=er[hr+1],ir=er[hr+2],or=er[hr+3],ar=er[hr+4],sr=er[hr+5],lr=er[hr+6];var Ar=rr+(cr=er[hr+7]),fr=rr-cr,gr=nr+lr,mr=nr-lr,_r=ir+sr,vr=ir-sr,yr=or+ar,br=or-ar,wr=Ar+yr,Sr=Ar-yr,xr=gr+_r,kr=gr-_r;er[hr]=wr+xr,er[hr+4]=wr-xr;var Cr=.707106781*(kr+Sr);er[hr+2]=Sr+Cr,er[hr+6]=Sr-Cr;var Br=.382683433*((wr=br+vr)-(kr=mr+fr)),Er=.5411961*wr+Br,Nr=1.306562965*kr+Br,Lr=.707106781*(xr=vr+mr),Tr=fr+Lr,Pr=fr-Lr;er[hr+5]=Pr+Er,er[hr+3]=Pr-Er,er[hr+1]=Tr+Nr,er[hr+7]=Tr-Nr,hr+=8}for(hr=0,ur=0;ur<8;++ur){rr=er[hr],nr=er[hr+8],ir=er[hr+16],or=er[hr+24],ar=er[hr+32],sr=er[hr+40],lr=er[hr+48];var Fr=rr+(cr=er[hr+56]),Ur=rr-cr,Ir=nr+lr,Rr=nr-lr,Mr=ir+sr,Or=ir-sr,Qr=or+ar,Dr=or-ar,jr=Fr+Qr,Hr=Fr-Qr,Gr=Ir+Mr,Vr=Ir-Mr;er[hr]=jr+Gr,er[hr+32]=jr-Gr;var zr=.707106781*(Vr+Hr);er[hr+16]=Hr+zr,er[hr+48]=Hr-zr;var Kr=.382683433*((jr=Dr+Or)-(Vr=Rr+Ur)),qr=.5411961*jr+Kr,Wr=1.306562965*Vr+Kr,Xr=.707106781*(Gr=Or+Rr),Yr=Ur+Xr,Jr=Ur-Xr;er[hr+40]=Jr+qr,er[hr+24]=Jr-qr,er[hr+8]=Yr+Wr,er[hr+56]=Yr-Wr,hr++}for(ur=0;ur<64;++ur)dr=er[ur]*tr[ur],pr[ur]=dr>0?dr+.5|0:dr-.5|0;return pr}(er,tr),cr=0;cr<64;++cr)Ar[Sr[cr]]=lr[cr];var ur=Ar[0]-rr;rr=Ar[0],0==ur?B(nr[0]):(B(nr[hr[or=32767+ur]]),B(dr[or]));for(var fr=63;fr>0&&0==Ar[fr];)fr--;if(0==fr)return B(ar),rr;for(var gr,mr=1;mr<=fr;){for(var _r=mr;0==Ar[mr]&&mr<=fr;)++mr;var vr=mr-_r;if(vr>=16){gr=vr>>4;for(var yr=1;yr<=gr;++yr)B(sr);vr&=15}or=32767+Ar[mr],B(ir[(vr<<4)+hr[or]]),B(dr[or]),mr++}return 63!=fr&&B(ar),rr}function q(er){er=Math.min(Math.max(er,1),100),or!=er&&(function(er){for(var tr=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100
2020-09-04 20:34:30 +00:00
/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
2020-10-25 20:30:20 +00:00
*/function Mt(er,tr){if(this.pos=0,this.buffer=er,this.datav=new DataView(er.buffer),this.is_with_alpha=!!tr,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Et(er){function e(er){if(!er)throw Error("assert :P")}function n(er,tr,rr){for(var nr=0;4>nr;nr++)if(er[tr+nr]!=rr.charCodeAt(nr))return!0;return!1}function r(er,tr,rr,nr,ir){for(var or=0;or<ir;or++)er[tr+or]=rr[nr+or]}function i(er,tr,rr,nr){for(var ir=0;ir<nr;ir++)er[tr+ir]=rr}function a(er){return new Int32Array(er)}function o(er,tr){for(var rr=[],nr=0;nr<er;nr++)rr.push(new tr);return rr}function s(er,tr){var rr=[];return function t(er,rr,nr){for(var ir=nr[rr],or=0;or<ir&&(er.push(nr.length>rr+1?[]:new tr),!(nr.length<rr+1));or++)t(er[or],rr+1,nr)}(rr,0,er),rr}function u(er,tr){for(var rr="",nr=0;nr<4;nr++)rr+=String.fromCharCode(er[tr++]);return rr}function c(er,tr){return(er[tr+0]<<0|er[tr+1]<<8|er[tr+2]<<16)>>>0}function h(er,tr){return(er[tr+0]<<0|er[tr+1]<<8|er[tr+2]<<16|er[tr+3]<<24)>>>0}new(Et=function Et(){var er=this;function u(er,tr){for(var rr=1<<tr-1>>>0;er&rr;)rr>>>=1;return rr?(er&rr-1)+rr:er}function c(er,tr,rr,nr,ir){e(!(nr%rr));do{er[tr+(nr-=rr)]=ir}while(0<nr)}function h(er,tr,rr,nr,ir){if(e(2328>=ir),512>=ir)var or=a(512);else if(null==(or=a(ir)))return 0;return function(er,tr,rr,nr,ir,or){var ar,sr,lr=tr,cr=1<<rr,ur=a(16),dr=a(16);for(e(0!=ir),e(null!=nr),e(null!=er),e(0<rr),sr=0;sr<ir;++sr){if(15<nr[sr])return 0;++ur[nr[sr]]}if(ur[0]==ir)return 0;for(dr[1]=0,ar=1;15>ar;++ar){if(ur[ar]>1<<ar)return 0;dr[ar+1]=dr[ar]+ur[ar]}for(sr=0;sr<ir;++sr)ar=nr[sr],0<nr[sr]&&(or[dr[ar]++]=sr);if(1==dr[15])return(nr=new l).g=0,nr.value=or[0],c(er,lr,1,cr,nr),cr;var hr,pr=-1,Ar=cr-1,fr=0,gr=1,mr=1,_r=1<<rr;for(sr=0,ar=1,ir=2;ar<=rr;++ar,ir<<=1){if(gr+=mr<<=1,0>(mr-=ur[ar]))return 0;for(;0<ur[ar];--ur[ar])(nr=new l).g=ar,nr.value=or[sr++],c(er,lr+fr,ir,_r,nr),fr=u(fr,ar)}for(ar=rr+1,ir=2;15>=ar;++ar,ir<<=1){if(gr+=mr<<=1,0>(mr-=ur[ar]))return 0;for(;0<ur[ar];--ur[ar]){if(nr=new l,(fr&Ar)!=pr){for(lr+=_r,hr=1<<(pr=ar)-rr;15>pr&&!(0>=(hr-=ur[pr]));)++pr,hr<<=1;cr+=_r=1<<(hr=pr-rr),er[tr+(pr=fr&Ar)].g=hr+rr,er[tr+pr].value=lr-tr-pr}nr.g=ar-rr,nr.value=or[sr++],c(er,lr+(fr>>rr),ir,_r,nr),fr=u(fr,ar)}}return gr!=2*dr[15]-1?0:cr}(er,tr,rr,nr,ir,or)}function l(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=o(5,l),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(tr,f)}function p(er,tr,rr,nr){e(null!=er),e(null!=tr),e(2147483648>nr),er.Ca=254,er.I=0,er.b=-8,er.Ka=0,er.oa=tr,er.pa=rr,er.Jd=tr,er.Yc=rr+nr,er.Zc=4<=nr?rr+nr-4+1:rr,S(er)}function g(er,tr){for(var rr=0;0<tr--;)rr|=k(er,128)<<tr;return rr}function m(er,tr){var rr=g(er,tr);return P(er)?-rr:rr}function v(er,tr,rr,nr){var ir,or=0;for(e(null!=er),e(null!=tr),e(4294967288>nr),er.Sb=nr,er.Ra=0,er.u=0,er.h=0,4<nr&&(nr=4),ir=0;ir<nr;++ir)or+=tr[rr+ir]<<8*ir;er.Ra=or,er.bb=nr,er.oa=tr,er.pa=rr}function b(er){for(;8<=er.u&&er.bb<er.Sb;)er.Ra>>>=8,er.Ra+=er.oa[er.pa+er.bb]<<ir-8>>>0,++er.bb,er.u-=8;x(er)&&(er.h=1,er.u=0)}function y(er,tr){if(e(0<=tr),!er.h&&tr<=nr){var ir=L(er)&rr[tr];return er.u+=tr,b(er),ir}return er.h=1,er.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function L(er){return er.Ra>>>(er.u&ir-1)>>>0}function x(er){return e(er.bb<=er.Sb),er.h||er.bb==er.Sb&&er.u>ir}function A(er,tr){er.u=tr,er.h=x(er)}function _(er){er.u>=or&&(e(er.u>=or),b(er))}function S(er){e(null!=er&&null!=er.oa),er.pa<er.Zc?(er.I=(er.oa[er.pa++]|er.I<<8)>>>0,er.b+=8):(e(null!=er&&null!=er.oa),er.pa<er.Yc?(er.b+=8,er.I=er.oa[er.pa++]|er.I<<8):er.Ka?er.b=0:(er.I<<=8,er.b+=8,er.Ka=1))}function P(er){return g(er,1)}function k(er,tr){var rr=er.Ca;0>er.b&&S(er);var nr=er.b,ir=rr*tr>>>8,or=(er.I>>>nr>ir)+0;for(or?(rr-=ir,er.I-=ir+1<<nr>>>0):rr=ir+1,nr=rr,ir=0;256<=nr;)ir+=8,
2020-09-04 20:34:30 +00:00
/** @license
* Copyright (c) 2017 Dominik Homberger
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
https://webpjs.appspot.com
WebPRiffParser dominikhlbg@gmail.com
*/
2020-10-25 20:30:20 +00:00
function(er,tr,rr,nr){for(var ir=0;ir<4;ir++)if(er[tr+ir]!="RIFF".charCodeAt(ir))return!0;return!1}(er,tr)){var sr,lr;for(h(er,tr+=4),tr+=8;tr<er.length;){var cr=u(er,tr),ur=h(er,tr+=4);tr+=4;var dr=ur+(1&ur);switch(cr){case"VP8 ":case"VP8L":void 0===rr.frames[nr]&&(rr.frames[nr]={}),(Ar=rr.frames[nr]).src_off=ir?ar:tr-8,Ar.src_size=or+ur+8,nr++,ir&&(ir=!1,or=0,ar=0);break;case"VP8X":(Ar=rr.header={}).feature_flags=er[tr];var hr=tr+4;Ar.canvas_width=1+c(er,hr),hr+=3,Ar.canvas_height=1+c(er,hr),hr+=3;break;case"ALPH":ir=!0,or=dr+8,ar=tr-8;break;case"ANIM":(Ar=rr.header).bgcolor=h(er,tr),hr=tr+4,Ar.loop_count=(sr=er)[(lr=hr)+0]<<0|sr[lr+1]<<8,hr+=2;break;case"ANMF":var pr,Ar;(Ar=rr.frames[nr]={}).offset_x=2*c(er,tr),tr+=3,Ar.offset_y=2*c(er,tr),tr+=3,Ar.width=1+c(er,tr),tr+=3,Ar.height=1+c(er,tr),tr+=3,Ar.duration=c(er,tr),tr+=3,pr=er[tr++],Ar.dispose=1&pr,Ar.blend=pr>>1&1}"ANMF"!=cr&&(tr+=dr)}return rr}}(or,0);ar.response=or,ar.rgbaoutput=!0,ar.dataurl=!1;var sr=ar.header?ar.header:null,lr=ar.frames?ar.frames:null;if(sr){sr.loop_counter=sr.loop_count,tr=[sr.canvas_height],rr=[sr.canvas_width];for(var cr=0;cr<lr.length&&0!=lr[cr].blend;cr++);}var ur=lr[0],dr=ir.WebPDecodeRGBA(or,ur.src_off,ur.src_size,rr,tr);ur.rgba=dr,ur.imgwidth=rr[0],ur.imgheight=tr[0];for(var hr=0;hr<rr[0]*tr[0]*4;hr++)nr[hr]=dr[hr];return this.width=rr,this.height=tr,this.data=nr,this
2020-09-04 20:34:30 +00:00
/**
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
2020-10-25 20:30:20 +00:00
*/}!function(er){var tr=function n(tr,ir,cr,ur){var dr=5,hr=ar;switch(ur){case er.image_compression.FAST:dr=3,hr=or;break;case er.image_compression.MEDIUM:dr=6,hr=sr;break;case er.image_compression.SLOW:dr=9,hr=lr}tr=nr(tr,ir,cr,hr);var pr=new Uint8Array(rr(dr)),Ar=g.API.adler32cs.fromBuffer(tr.buffer),fr=new xt(dr),gr=fr.append(tr),mr=fr.flush(),_r=pr.length+gr.length+mr.length,vr=new Uint8Array(_r+4);return vr.set(pr),vr.set(gr,pr.length),vr.set(mr,pr.length+gr.length),vr[_r++]=Ar>>>24&255,vr[_r++]=Ar>>>16&255,vr[_r++]=Ar>>>8&255,vr[_r++]=255&Ar,er.__addimage__.arrayBufferToBinaryString(vr)},rr=function r(er){var tr=30720;return tr|=Math.min(3,(er-1&255)>>1)<<6,tr|=0,[120,255&(tr+=31-tr%31)]},nr=function i(er,tr,rr,nr){for(var i,ir,or,ar=er.length/tr,sr=new Uint8Array(er.length+ar),lr=ur(),cr=0;cr<ar;cr+=1){if(or=cr*tr,i=er.subarray(or,or+tr),nr)sr.set(nr(i,rr,ir),or+cr);else{for(var hr,pr=lr.length,Ar=[];hr<pr;hr+=1)Ar[hr]=lr[hr](i,rr,ir);var fr=dr(Ar.concat());sr.set(Ar[fr],or+cr)}ir=i}return sr},ir=function a(er){var tr=Array.apply([],er);return tr.unshift(0),tr},or=function o(er,tr){var rr,nr=[],ir=er.length;nr[0]=1;for(var or=0;or<ir;or+=1)rr=er[or-tr]||0,nr[or+1]=er[or]-rr+256&255;return nr},ar=function s(er,tr,rr){var nr,ir=[],or=er.length;ir[0]=2;for(var ar=0;ar<or;ar+=1)nr=rr&&rr[ar]||0,ir[ar+1]=er[ar]-nr+256&255;return ir},sr=function u(er,tr,rr){var nr,ir,or=[],ar=er.length;or[0]=3;for(var sr=0;sr<ar;sr+=1)nr=er[sr-tr]||0,ir=rr&&rr[sr]||0,or[sr+1]=er[sr]+256-(nr+ir>>>1)&255;return or},lr=function c(er,tr,rr){var nr,ir,or,ar,sr=[],lr=er.length;sr[0]=4;for(var c=0;c<lr;c+=1)nr=er[c-tr]||0,ir=rr&&rr[c]||0,or=rr&&rr[c-tr]||0,ar=cr(nr,ir,or),sr[c+1]=er[c]-ar+256&255;return sr},cr=function h(er,tr,rr){if(er===tr&&tr===rr)return er;var nr=Math.abs(tr-rr),ir=Math.abs(er-rr),or=Math.abs(er+tr-rr-rr);return nr<=ir&&nr<=or?er:ir<=or?tr:rr},ur=function l(){return[ir,or,ar,sr,lr]},dr=function f(er){var tr=er.map((function(er){return er.reduce((function(er,tr){return er+Math.abs(tr)}),0)}));return tr.indexOf(Math.min.apply(null,tr))};er.processPNG=function(rr,nr,ir,or){var ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br=this.decode.FLATE_DECODE,wr="";if(this.__addimage__.isArrayBuffer(rr)&&(rr=new Uint8Array(rr)),this.__addimage__.isArrayBufferView(rr)){if(rr=(lr=new Xg(rr)).imgData,sr=lr.bits,ar=lr.colorSpace,ur=lr.colors,-1!==[4,6].indexOf(lr.colorType)){if(8===lr.bits){Ar=(pr=32==lr.pixelBitlength?new Uint32Array(lr.decodePixels().buffer):16==lr.pixelBitlength?new Uint16Array(lr.decodePixels().buffer):new Uint8Array(lr.decodePixels().buffer)).length,gr=new Uint8Array(Ar*lr.colors),fr=new Uint8Array(Ar);var Sr,xr=lr.pixelBitlength-lr.bits;for(vr=0,yr=0;vr<Ar;vr++){for(_r=pr[vr],Sr=0;Sr<xr;)gr[yr++]=_r>>>Sr&255,Sr+=lr.bits;fr[vr]=_r>>>Sr&255}}if(16===lr.bits){Ar=(pr=new Uint32Array(lr.decodePixels().buffer)).length,gr=new Uint8Array(Ar*(32/lr.pixelBitlength)*lr.colors),fr=new Uint8Array(Ar*(32/lr.pixelBitlength)),mr=lr.colors>1,vr=0,yr=0;for(var kr=0;vr<Ar;)_r=pr[vr++],gr[yr++]=_r>>>0&255,mr&&(gr[yr++]=_r>>>16&255,_r=pr[vr++],gr[yr++]=_r>>>0&255),fr[kr++]=_r>>>16&255;sr=8}or!==er.image_compression.NONE?(rr=tr(gr,lr.width*lr.colors,lr.colors,or),hr=tr(fr,lr.width,1,or)):(rr=gr,hr=fr,br=void 0)}if(3===lr.colorType&&(ar=this.color_spaces.INDEXED,dr=lr.palette,lr.transparency.indexed)){var Cr=lr.transparency.indexed,Br=0;for(vr=0,Ar=Cr.length;vr<Ar;++vr)Br+=Cr[vr];if((Br/=255)==Ar-1&&-1!==Cr.indexOf(0))cr=[Cr.indexOf(0)];else if(Br!==Ar){for(pr=lr.decodePixels(),fr=new Uint8Array(pr.length),vr=0,Ar=pr.length;vr<Ar;vr++)fr[vr]=Cr[pr[vr]];hr=tr(fr,lr.width,1)}}var Er=function(tr){var rr;switch(tr){case er.image_compression.FAST:rr=11;break;case er.image_compression.MEDIUM:rr=13;break;case er.image_compression.SLOW:rr=14;break;default:rr=12}return rr}(or);return br===this.decode.FLATE_DECODE&&(wr="/Predictor "+Er+" "),wr+="/Colors "+ur+" /BitsPerComponent "+sr+" /Columns "+lr.width,(this.__addimage__.isArrayBuffer(rr)||this.__addimage__.isArrayBufferView(rr))&&(rr=this.__addimage__.arrayBufferToBinaryString(rr)),(hr&&this.__a
2020-09-04 20:34:30 +00:00
/**
* @license
* Copyright (c) 2018 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
2020-08-28 22:07:07 +00:00
*/
2020-10-25 20:30:20 +00:00
function(er){er.processBMP=function(tr,rr,nr,ir){var or=new Mt(tr,!1),ar=or.width,sr=or.height,lr={data:or.getData(),width:ar,height:sr},cr=new Ot(100).encode(lr,100);return er.processJPEG.call(this,cr,rr,nr,ir)}}(g.API),Et.prototype.getData=function(){return this.data},
2020-09-04 20:34:30 +00:00
/**
* @license
* Copyright (c) 2019 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
2020-10-25 20:30:20 +00:00
function(er){er.processWEBP=function(tr,rr,nr,ir){var or=new Et(tr,!1),ar=or.width,sr=or.height,lr={data:or.getData(),width:ar,height:sr},cr=new Ot(100).encode(lr,100);return er.processJPEG.call(this,cr,rr,nr,ir)}}(g.API),g.API.setLanguage=function(er){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian"
2020-09-04 20:34:30 +00:00
/** @license
* MIT license.
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
* 2014 Diego Casorran, https://github.com/diegocr
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/
2020-10-25 20:30:20 +00:00
Hg=g.API,Gg=Hg.getCharWidthsArray=function(er,tr){var rr,nr,ir=(tr=tr||{}).font||this.internal.getFont(),or=tr.fontSize||this.internal.getFontSize(),ar=tr.charSpace||this.internal.getCharSpace(),sr=tr.widths?tr.widths:ir.metadata.Unicode.widths,lr=sr.fof?sr.fof:1,cr=tr.kerning?tr.kerning:ir.metadata.Unicode.kerning,ur=cr.fof?cr.fof:1,dr=!1!==tr.doKerning,hr=0,pr=er.length,Ar=0,fr=sr[0]||lr,gr=[];for(rr=0;rr<pr;rr++)nr=er.charCodeAt(rr),"function"==typeof ir.metadata.widthOfString?gr.push((ir.metadata.widthOfGlyph(ir.metadata.characterToGlyph(nr))+ar*(1e3/or)||0)/1e3):(hr=dr&&"object"==_typeof(cr[nr])&&!isNaN(parseInt(cr[nr][Ar],10))?cr[nr][Ar]/ur:0,gr.push((sr[nr]||fr)/lr+hr)),Ar=nr;return gr},Vg=Hg.getStringUnitWidth=function(er,tr){var rr=(tr=tr||{}).fontSize||this.internal.getFontSize(),nr=tr.font||this.internal.getFont(),ir=tr.charSpace||this.internal.getCharSpace();return Hg.processArabic&&(er=Hg.processArabic(er)),"function"==typeof nr.metadata.widthOfString?nr.metadata.widthOfString(er,rr,ir)/rr:Gg.apply(this,arguments).reduce((function(er,tr){return er+tr}),0)},zg=function Pt(er,tr,rr,nr){for(var ir=[],or=0,ar=er.length,sr=0;or!==ar&&sr+tr[or]<rr;)sr+=tr[or],or++;ir.push(er.slice(0,or));var lr=or;for(sr=0;or!==ar;)sr+tr[or]>nr&&(ir.push(er.slice(lr,or)),sr=0,lr=or),sr+=tr[or],or++;return lr!==or&&ir.push(er.slice(lr,or)),ir},Kg=function kt(er,tr,rr){rr||(rr={});var nr,ir,or,ar,sr,lr,cr,ur=[],dr=[ur],hr=rr.textIndent||0,pr=0,Ar=0,fr=er.split(" "),gr=Gg.apply(this,[" ",rr])[0];if(lr=-1===rr.lineIndent?fr[0].length+2:rr.lineIndent||0){var mr=Array(lr).join(" "),_r=[];fr.map((function(er){(er=er.split(/\s*\n/)).length>1?_r=_r.concat(er.map((function(er,tr){return(tr&&er.length?"\n":"")+er}))):_r.push(er[0])})),fr=_r,lr=Vg.apply(this,[mr,rr])}for(or=0,ar=fr.length;or<ar;or++){var vr=0;if(nr=fr[or],lr&&"\n"==nr[0]&&(nr=nr.substr(1),vr=1),hr+pr+(Ar=(ir=Gg.apply(this,[nr,rr])).reduce((function(er,tr){return er+tr}),0))>tr||vr){if(Ar>tr){for(sr=zg.apply(this,[nr,ir,tr-(hr+pr),tr]),ur.push(sr.shift()),ur=[sr.pop()];sr.length;)dr.push([sr.shift()]);Ar=ir.slice(nr.length-(ur[0]?ur[0].length:0)).reduce((function(er,tr){return er+tr}),0)}else ur=[nr];dr.push(ur),hr=Ar+lr,pr=gr}else ur.push(nr),hr+=pr+Ar,pr=gr}return cr=lr?function(er,tr){return(tr?mr:"")+er.join(" ")}:function(er){return er.join(" ")},dr.map(cr)},Hg.splitTextToSize=function(er,tr,rr){var nr,ir=(rr=rr||{}).fontSize||this.internal.getFontSize(),or=function(er){if(er.widths&&er.kerning)return{widths:er.widths,kerning:er.kerning};var tr=this.internal.getFont(er.fontName,er.fontStyle);return tr.metadata.Unicode?{widths:tr.metadata.Unicode.widths||{0:1},kerning:tr.metadata.Unicode.kerning||{}}:{font:tr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,rr);nr=Array.isArray(er)?er:String(er).split(/\r?\n/);var ar=1*this.internal.scaleFactor*tr/ir;or.textIndent=rr.textIndent?1*rr.textIndent*this.internal.scaleFactor/ir:0,or.lineIndent=rr.lineIndent;var sr,lr,cr=[];for(sr=0,lr=nr.length;sr<lr;sr++)cr=cr.concat(Kg.apply(this,[nr[sr],ar,or]));return cr},
2020-09-04 20:34:30 +00:00
/** @license
jsPDF standard_fonts_metrics plugin
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
* MIT license.
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/
2020-10-25 20:30:20 +00:00
function(er){er.__fontmetrics__=er.__fontmetrics__||{};for(var tr="klmnopqrstuvwxyz",rr={},nr={},ir=0;ir<tr.length;ir++)rr[tr[ir]]="0123456789abcdef"[ir],nr["0123456789abcdef"[ir]]=tr[ir];var or=function a(er){return"0x"+parseInt(er,10).toString(16)},ar=er.__fontmetrics__.compress=function(er){var tr,rr,ir,sr,lr=["{"];for(var cr in er){if(tr=er[cr],isNaN(parseInt(cr,10))?rr="'"+cr+"'":(cr=parseInt(cr,10),rr=(rr=or(cr).slice(2)).slice(0,-1)+nr[rr.slice(-1)]),"number"==typeof tr)tr<0?(ir=or(tr).slice(3),sr="-"):(ir=or(tr).slice(2),sr=""),ir=sr+ir.slice(0,-1)+nr[ir.slice(-1)];else{if("object"!=_typeof(tr))throw new Error("Don't know what to do with value type "+_typeof(tr)+".");ir=ar(tr)}lr.push(rr+ir)}return lr.push("}"),lr.join("")},sr=er.__fontmetrics__.uncompress=function(er){if("string"!=typeof er)throw new Error("Invalid argument passed to uncompress.");for(var tr,nr,ir,or,ar={},sr=1,lr=ar,cr=[],ur="",dr="",hr=er.length-1,pr=1;pr<hr;pr+=1)"'"==(or=er[pr])?tr?(ir=tr.join(""),tr=void 0):tr=[]:tr?tr.push(or):"{"==or?(cr.push([lr,ir]),lr={},ir=void 0):"}"==or?((nr=cr.pop())[0][nr[1]]=lr,ir=void 0,lr=nr[0]):"-"==or?sr=-1:void 0===ir?rr.hasOwnProperty(or)?(ur+=rr[or],ir=parseInt(ur,16)*sr,sr=1,ur=""):ur+=or:rr.hasOwnProperty(or)?(dr+=rr[or],lr[ir]=parseInt(dr,16)*sr,sr=1,ir=void 0,dr=""):dr+=or;return ar},lr={codePages:["WinAnsiEncoding"],WinAnsiEncoding:sr("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},cr={Unicode:{Courier:lr,"Courier-Bold":lr,"Courier-BoldOblique":lr,"Courier-Oblique":lr,Helvetica:lr,"Helvetica-Bold":lr,"Helvetica-BoldOblique":lr,"Helvetica-Oblique":lr,"Times-Roman":lr,"Times-Bold":lr,"Times-BoldItalic":lr,"Times-Italic":lr}},ur={Unicode:{"Courier-Oblique":sr("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":sr("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":sr("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r
2020-09-04 20:34:30 +00:00
/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
2020-10-25 20:30:20 +00:00
function(er){var tr=function e(er){for(var e=er.length,tr=new Uint8Array(e),rr=0;rr<e;rr++)tr[rr]=er.charCodeAt(rr);return tr};er.API.events.push(["addFont",function(rr){var nr=void 0,ir=rr.font,or=rr.instance;if(!ir.isStandardFont){if(void 0===or)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ir.postScriptName+"').");if("string"!=typeof(nr=!1===or.existsFileInVFS(ir.postScriptName)?or.loadFile(ir.postScriptName):or.getFileFromVFS(ir.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+ir.postScriptName+"').");!function(rr,nr){nr=/^\x00\x01\x00\x00/.test(nr)?tr(nr):tr(Qf(nr)),rr.metadata=er.API.TTFFont.open(nr),rr.metadata.Unicode=rr.metadata.Unicode||{encoding:{},kerning:{},widths:[]},rr.metadata.glyIdsUsed=[0]}(ir,nr)}}])}(g),
2020-09-04 20:34:30 +00:00
/** @license
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/
2020-10-25 20:30:20 +00:00
function(er){function r(){return(Mf.canvg?Promise.resolve(Mf.canvg):Promise.resolve().then((function(){return TL}))).catch((function(er){return Promise.reject(new Error("Could not load dompurify: "+er))})).then((function(er){return er.default?er.default:er}))}g.API.addSvgAsImage=function(er,tr,rr,nr,ir,or,ar,sr){if(isNaN(tr)||isNaN(rr))throw Of.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(nr)||isNaN(ir))throw Of.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var lr=document.createElement("canvas");lr.width=nr,lr.height=ir;var cr=lr.getContext("2d");cr.fillStyle="#fff",cr.fillRect(0,0,lr.width,lr.height);var ur={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},dr=this;return r().then((function(tr){return tr.Canvg.fromString(cr,er,ur)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(er){return er.render(ur)})).then((function(){dr.addImage(lr.toDataURL("image/jpeg",1),tr,rr,nr,ir,ar,sr)}))}}(),g.API.putTotalPages=function(er){var tr,rr=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(tr=new RegExp(er,"g"),rr=this.internal.getNumberOfPages()):(tr=new RegExp(this.pdfEscape16(er,this.internal.getFont()),"g"),rr=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var nr=1;nr<=this.internal.getNumberOfPages();nr++)for(var ir=0;ir<this.internal.pages[nr].length;ir++)this.internal.pages[nr][ir]=this.internal.pages[nr][ir].replace(tr,rr);return this},g.API.viewerPreferences=function(er,tr){var rr;er=er||{},tr=tr||!1;var nr,ir,or,ar={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},sr=Object.keys(ar),lr=[],cr=0,ur=0,dr=0;function f(er,tr){var rr,nr=!1;for(rr=0;rr<er.length;rr+=1)er[rr]===tr&&(nr=!0);return nr}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(ar)),this.int
2020-09-04 20:34:30 +00:00
/** ====================================================================
* @license
* jsPDF XMP metadata plugin
* Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/
2020-10-25 20:30:20 +00:00
function(er){var tr=function e(){var er='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),tr=unescape(encodeURIComponent(er)),rr=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),nr=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),ir=unescape(encodeURIComponent("</x:xmpmeta>")),or=tr.length+rr.length+nr.length+e.length+ir.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+or+" >>"),this.internal.write("stream"),this.internal.write(e+tr+rr+nr+ir),this.internal.write("endstream"),this.internal.write("endobj")},rr=function n(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};er.addMetadata=function(er,nr){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:er,namespaceuri:nr||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",rr),this.internal.events.subscribe("postPutResources",tr)),this}}(g.API),function(er){var tr=er.API,rr=tr.pdfEscape16=function(er,tr){for(var rr,nr=tr.metadata.Unicode.widths,ir=["","0","00","000","0000"],or=[""],ar=0,sr=er.length;ar<sr;++ar){if(rr=tr.metadata.characterToGlyph(er.charCodeAt(ar)),tr.metadata.glyIdsUsed.push(rr),tr.metadata.toUnicode[rr]=er.charCodeAt(ar),-1==nr.indexOf(rr)&&(nr.push(rr),nr.push([parseInt(tr.metadata.widthOfGlyph(rr),10)])),"0"==rr)return or.join("");rr=rr.toString(16),or.push(ir[4-rr.length],rr)}return or.join("")},nr=function r(er){var tr,rr,r,nr,ir,or,ar;for(ir="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],or=0,ar=(rr=Object.keys(er).sort((function(er,tr){return er-tr}))).length;or<ar;or++)tr=rr[or],r.length>=100&&(ir+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==er[tr]&&null!==er[tr]&&"function"==typeof er[tr].toString&&(nr=("0000"+er[tr].toString(16)).slice(-4),tr=("0000"+(+tr).toString(16)).slice(-4),r.push("<"+tr+"><"+nr+">"));return r.length&&(ir+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),ir+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};tr.events.push(["putFont",function(tr){!function(tr){var rr=tr.font,ir=tr.out,or=tr.newObject,ar=tr.putStream,sr=tr.pdfEscapeWithNeededParanthesis;if(rr.metadata instanceof er.API.TTFFont&&"Identity-H"===rr.encoding){for(var lr=rr.metadata.Unicode.widths,cr=rr.metadata.subset.encode(rr.metadata.glyIdsUsed,1),ur="",dr=0;dr<cr.length;dr++)ur+=String.fromCharCode(cr[dr]);var hr=or();ar({data:ur,addLength1:!0}),ir("endobj");var pr=or();ar({data:nr(rr.metadata.toUnicode),addLength1:!0}),ir("endobj");var Ar=or();ir("<<"),ir("/Type /FontDescriptor"),ir("/FontName /"+sr(rr.fontName)),ir("/FontFile2 "+hr+" 0 R"),ir("/FontBBox "+er.API.PDFObject.convert(rr.metadata.bbox)),ir("/Flags "+rr.metadata.flags),ir("/StemV "+rr.metadata.stemV),ir("/ItalicAngle "+rr.metadata.italicAngle),ir("/Ascent "+rr.metadata.ascender),ir("/Descent "+rr.metadata.decender),ir("/CapHeight "+rr.metadata.capHeight),ir(">>"),ir("endobj");var fr=or();ir("<<"),ir("/Type /Font"),ir("/BaseFont /"+sr(rr.fontName)),ir("/FontDescriptor "+Ar+" 0 R"),ir("/W "+er.API.PDFObject.convert(lr)),ir("/CIDToGIDMap /Identity"),ir("/DW 1000"),ir("/Subtype /CIDFontType2"),ir("/CIDSystemInfo"),ir("<<"),ir("/Supplement 0"),ir("/Registry (Adobe)"),ir("/Ordering ("+rr.encoding+")"),ir(">>"),ir(">>"),ir("endobj"),rr.objectNumber=or(),ir("<<"),ir("/Type /Font"),ir("/Subtype /Type0"),ir("/ToUnicode "+pr+" 0 R"),ir("/BaseFont /"+sr(rr.fontName)),ir("/Encoding /"+rr.encoding),ir("/DescendantFonts ["+fr+" 0 R]"),ir(">>"),ir("endobj"),rr.i
2020-09-04 20:34:30 +00:00
/**
* @license
* jsPDF virtual FileSystem functionality
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
2020-08-28 22:07:07 +00:00
*/
2020-10-25 20:30:20 +00:00
function(er){var tr=function e(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};er.existsFileInVFS=function(er){return tr.call(this),void 0!==this.internal.vFS[er]},er.addFileToVFS=function(er,rr){return tr.call(this),this.internal.vFS[er]=rr,this},er.getFileFromVFS=function(er){return tr.call(this),void 0!==this.internal.vFS[er]?this.internal.vFS[er]:null}}(g.API),
2020-09-04 20:34:30 +00:00
/**
* @license
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
* MIT License
2020-08-28 22:07:07 +00:00
*/
2020-10-25 20:30:20 +00:00
function(er){er.__bidiEngine__=er.prototype.__bidiEngine__=function(er){var rr,nr,ir,or,ar,sr,lr,cr=tr,ur=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],dr=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],hr={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},pr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Ar=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","","","","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],fr=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),gr=!1,mr=0;this.__bidiEngine__={};var _r=function b(er){var tr=er.charCodeAt(),rr=tr>>8,nr=pr[rr];return void 0!==nr?cr[256*nr+(255&tr)]:252===rr||253===rr?"AL":fr.test(rr)?"L":8===rr?"R":"N"},vr=function y(er){for(var tr,rr=0;rr<er.length;rr++){if("L"===(tr=_r(er.charAt(rr))))return!1;if("R"===tr)return!0}return!1},yr=function w(er,tr,ar,sr){var lr,cr,ur,dr,hr=tr[sr];switch(hr){case"L":case"R":gr=!1;break;case"N":case"AN":break;case"EN":gr&&(hr="AN");break;case"AL":gr=!0,hr="R";break;case"WS":hr="N";break;case"CS":sr<1||sr+1>=tr.length||"EN"!==(lr=ar[sr-1])&&"AN"!==lr||"EN"!==(cr=tr[sr+1])&&"AN"!==cr?hr="N":gr&&(cr="AN"),hr=cr===lr?cr:"N";break;case"ES":hr="EN"===(lr=sr>0?ar[sr-1]:"B")&&sr+1<tr.length&&"EN"===tr[sr+1]?"EN":"N";break;case"ET":if(sr>0&&"EN"===ar[sr-1]){hr="EN";break}if(gr){hr="N";break}for(ur=sr+1,dr=tr.length;ur<dr&&"ET"===tr[ur];)ur++;hr=ur<dr&&"EN"===tr[ur]?"EN":"N";break;case"NSM":if(ir&&!or){for(dr=tr.length,ur=sr+1;ur<dr&&"NSM"===tr[ur];)ur++;if(ur<dr){var pr=er[sr],Ar=pr>=1425&&pr<=2303||64286===pr;if(lr=tr[ur],Ar&&("R"===lr||"AL"===lr)){hr="R";break}}}hr=sr<1||"B"===(lr=tr[sr-1])?"N":ar[sr-1];break;case"B":gr=!1,rr=!0,hr=mr;break;case"S":nr=!0,hr="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":gr=!1;break;case"BN":hr="N"}return hr},br=function N(er,tr,rr){var nr=er.split("");return rr&&wr(nr,rr,{hiLevel:mr}),nr.reverse(),tr&&tr.reverse(),nr.join("")},wr=function L(er,tr,ir){var or,ar,sr,lr,cr,pr=-1,Ar=er.length,fr=0,vr=[],br=mr?dr:ur,L=[];for(gr=!1,rr=!1,nr=!1,ar=0;ar<Ar;ar++)L[ar]=_r(er[ar]);for(sr=0;sr<Ar;sr++){if(cr=fr,vr[sr]=yr(er,L,vr,sr),or=240&(fr=br[cr][hr[vr[sr]]]),fr&=15,tr[sr]=lr=br[fr][5],or>0)if(16===or){for(ar=pr;ar<sr;ar++)tr[ar]=1;pr=-1}else pr=-1;if(br[fr][6])-1===pr&&(pr=sr);else if(pr>-1){for(ar=pr;ar<sr;ar++)tr[ar]=lr;pr=-1}"B"===L[sr]&&(tr[sr]=0),ir.hiLevel|=lr}nr&&function(er,tr,rr){for(var nr=0;nr<rr;nr++)if("S"===er[nr]){tr[nr]=mr;for(var ir=nr-1;ir>=0&&"WS"===er[ir];ir--)tr[ir]=mr}}(L,tr,Ar)},Sr=function x(er,tr,nr,ir,or){if(!(or.hiLevel<er)){if(1===er&&1===mr&&!rr)return tr.reverse(),void(nr&&nr.reverse());for(var ar,sr,lr,cr,ur=tr.length,dr=0;dr<ur;){if(ir[dr]>=er){for(lr=dr+1;lr<ur&&ir[lr]>=er;)lr++;for(cr=dr,sr=lr-1;cr<sr;cr++,sr--)ar=tr[cr],tr[cr]=tr[sr],tr[sr]=ar,nr&&(ar=nr[cr],nr[cr]=nr[sr],nr[sr]=ar);dr=lr}dr++}}},xr=function A(er,tr,rr){var nr=er.split(""),ir={hiLevel:mr};return rr||(rr=[]),wr(nr,rr,ir),function(er,tr,rr){if(0!==rr.hiLevel&&lr)for(var nr,ir=0;ir<er.length;ir++)1===tr[ir]&&(nr=Ar.indexOf(er[ir]))>=0&&(er[ir]=Ar[nr+1])}(nr,rr,ir),Sr(2,nr,tr,rr,ir),Sr(1,nr,tr,rr,ir),nr.join("")};return this.__bidiEngine__.doBidiReorder=function(er,tr,rr){if(function(er,tr){if(tr)for(var rr=0;rr<er.length;rr++)tr[rr]=rr;void 0===or&&(or=vr(er)),void 0===sr&&(sr=vr(er))}(er,tr),ir||!ar||sr)if(ir&&ar&&or^sr)mr=or?1:0,er=br(er,tr,rr);else if(!ir&&ar&&sr)mr=or?1:0,er=xr(er,tr,rr),er=br(er,tr);else if(!ir||or||ar||sr){if(ir&&!ar&&or^sr)er=br(er,tr),or?(mr=0,er=xr(er,tr,rr)):(mr=1,er=xr(er,tr,rr),er=br(er,tr));else if(ir&&or&&!ar&&sr)mr=1,er=xr(er,tr,rr),er=br(er,tr);else if(!ir&&!ar&&or^sr){var nr=lr;or?(mr=1,er=xr(er,tr,rr),mr=0,lr=!1,er=xr(er,tr,rr),lr=nr):(mr=0,er=xr(er,tr,rr),er=br(er,tr),mr=1,lr=!1,er=xr(er,tr,rr),lr=nr,er=br(er,tr))}}else mr=0,er=xr(er,tr,rr);else mr=or?1:0,er=xr(er,tr,rr);return er},this.__bidiEngine__.setOptions=function(er){er&&(
2020-09-04 20:34:30 +00:00
/*! https://mths.be/cssesc v3.0.0 by @mathias */
2020-10-25 20:30:20 +00:00
var mm={}.hasOwnProperty,vm=/[ -,\.\/:-@\[-\^`\{-~]/,ym=/[ -,\.\/:-@\[\]\^`\{-~]/,wm=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Sm=function cssesc(er,tr){"single"!=(tr=function merge(er,tr){if(!er)return tr;var rr={};for(var nr in tr)rr[nr]=mm.call(er,nr)?er[nr]:tr[nr];return rr}(tr,cssesc.options)).quotes&&"double"!=tr.quotes&&(tr.quotes="single");for(var rr="double"==tr.quotes?'"':"'",nr=tr.isIdentifier,ir=er.charAt(0),or="",ar=0,sr=er.length;ar<sr;){var lr=er.charAt(ar++),cr=lr.charCodeAt(),ur=void 0;if(cr<32||cr>126){if(cr>=55296&&cr<=56319&&ar<sr){var dr=er.charCodeAt(ar++);56320==(64512&dr)?cr=((1023&cr)<<10)+(1023&dr)+65536:ar--}ur="\\"+cr.toString(16).toUpperCase()+" "}else ur=tr.escapeEverything?vm.test(lr)?"\\"+lr:"\\"+cr.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(lr)?"\\"+cr.toString(16).toUpperCase()+" ":"\\"==lr||!nr&&('"'==lr&&rr==lr||"'"==lr&&rr==lr)||nr&&ym.test(lr)?"\\"+lr:lr;or+=ur}return nr&&(/^-[-\d]/.test(or)?or="\\-"+or.slice(1):/\d/.test(ir)&&(or="\\3"+ir+" "+or.slice(1))),or=or.replace(wm,(function(er,tr,rr){return tr&&tr.length%2?er:(tr||"")+rr})),!nr&&tr.wrap?rr+or+rr:or};Sm.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},Sm.version="3.0.0";var xm=Sm,km=/[a-z0-9_-]/i,Cm=/[\s\t]/,Bm=function parse(er){for(var tr,rr,nr=!0,ir=0,or="",ar=0,sr=[];;){if(rr=er[ar],0===ir){if(!rr&&nr)break;if(!rr&&!nr)throw new Error("Parse error");if('"'===rr||"'"===rr)tr=rr,ir=1,nr=!1;else if(Cm.test(rr));else{if(!km.test(rr))throw new Error("Parse error");ir=3,nr=!1,ar--}}else if(1===ir){if(!rr)throw new Error("Parse Error");"\\"===rr?ir=2:rr===tr?(sr.push(or),or="",ir=4):or+=rr}else if(2===ir){if(rr!==tr&&"\\"!==rr)throw new Error("Parse error");or+=rr,ir=1}else if(3===ir){if(!rr){sr.push(or);break}if(km.test(rr))or+=rr;else if(","===rr)sr.push(or),or="",ir=0;else{if(!Cm.test(rr))throw new Error("Parse error");ir=5}}else if(5===ir){if(!rr){sr.push(or);break}if(km.test(rr))or+=" "+rr,ir=3;else if(","===rr)sr.push(or),or="",ir=0;else if(!Cm.test(rr))throw new Error("Parse error")}else if(4===ir){if(!rr)break;if(","===rr)ir=0;else if(!Cm.test(rr))throw new Error("Parse error")}ar++}return sr},Em={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},Nm=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isDigit(er){return er>=48&&er<=57}function State(er){this.index=0,this.path=er,this.max=er.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function skipSpaces(er){for(;er.index<er.max&&(10===(tr=er.path.charCodeAt(er.index))||13===tr||8232===tr||8233===tr||32===tr||9===tr||11===tr||12===tr||160===tr||tr>=5760&&Nm.indexOf(tr)>=0);)er.index++;var tr}function scanFlag(er){var tr=er.path.charCodeAt(er.index);return 48===tr?(er.param=0,void er.index++):49===tr?(er.param=1,void er.index++):void(er.err="SvgPath: arc flag can be 0 or 1 only (at pos "+er.index+")")}function scanParam(er){var tr,rr=er.index,nr=rr,ir=er.max,or=!1,ar=!1,sr=!1,lr=!1;if(nr>=ir)er.err="SvgPath: missed param (at pos "+nr+")";else if(43!==(tr=er.path.charCodeAt(nr))&&45!==tr||(tr=++nr<ir?er.path.charCodeAt(nr):0),isDigit(tr)||46===tr){if(46!==tr){if(or=48===tr,tr=++nr<ir?er.path.charCodeAt(nr):0,or&&nr<ir&&tr&&isDigit(tr))return void(er.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+rr+")");for(;nr<ir&&isDigit(er.path.charCodeAt(nr));)nr++,ar=!0;tr=nr<ir?er.path.charCodeAt(nr):0}if(46===tr){for(lr=!0,nr++;isDigit(er.path.charCodeAt(nr));)nr++,sr=!0;tr=nr<ir?er.path.charCodeAt(nr):0}if(101===tr||69===tr){if(lr&&!ar&&!sr)return void(er.err="SvgPath: invalid float exponent (at pos "+nr+")");if(43!==(tr=++nr<ir?er.path.charCodeAt(nr):0)&&45!==tr||nr++,!(nr<ir&&isDigit(er.path.charCodeAt(nr))))return void(er.err="SvgPath: invalid float exponent (at pos "+nr+")");for(;nr<ir&&isDigit(er.path.charCodeAt(nr));)nr++}er.index=nr,er.param=parseFloat(er.path.slice(rr,nr))+0}else er.err="SvgPath: param should start with 0..9 or `.` (at pos "+nr+")"}function finalizeSegment(er){var tr,rr;rr=(tr=er.path[er.segmentStart]).toLowerCase(
2020-09-04 20:34:30 +00:00
/**
* @file jGraduate 0.4
*
* jQuery Plugin for a gradient picker
*
* @module jGraduate
* @copyright 2010 Jeff Schiller {@link http://blog.codedread.com/}, 2010 Alexis Deveria {@link http://a.deveria.com/}
*
* @license Apache-2.0
* @example
* // The Paint object is described below.
* $.jGraduate.Paint(); // constructs a 'none' color
* @example $.jGraduate.Paint({copy: o}); // creates a copy of the paint o
* @example $.jGraduate.Paint({hex: '#rrggbb'}); // creates a solid color paint with hex = "#rrggbb"
* @example $.jGraduate.Paint({linearGradient: o, a: 50}); // creates a linear gradient paint with opacity=0.5
* @example $.jGraduate.Paint({radialGradient: o, a: 7}); // creates a radial gradient paint with opacity=0.07
* @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}); // throws an exception?
*/
2020-10-25 20:30:20 +00:00
var LP="http://www.w3.org/2000/svg",TP="http://www.w3.org/1999/xlink";
2020-09-04 20:34:30 +00:00
/**
* @file jPicker (Adapted from version 1.1.6)
*
* jQuery Plugin for Photoshop style color picker
*
* @module jPicker
* @copyright (c) 2010 Christopher T. Tillman
* Digital Magic Productions, Inc. ({@link http://www.digitalmagicpro.com/})
* FREE to use, alter, copy, sell, and especially ENHANCE
* @license MIT
*
* Painstakingly ported from John Dyers' excellent work on his own color picker based on the Prototype framework.
*
* John Dyers' website: {@link http://johndyer.name}
* Color Picker page: {@link http://johndyer.name/photoshop-like-javascript-color-picker/}
*/
2020-10-25 20:30:20 +00:00
function toFixedNumeric(er,tr){return void 0===tr&&(tr=0),Math.round(er*Math.pow(10,tr))/Math.pow(10,tr)}window.console||(window.console={log:function log(er){},dir:function dir(er){}});var PP,FP=function isNullish(er){return null==er};function __variableDynamicImportRuntime0__(er){switch(er){case"./locale/lang.af.js":return Promise.resolve().then((function(){return wF}));case"./locale/lang.ar.js":return Promise.resolve().then((function(){return SF}));case"./locale/lang.az.js":return Promise.resolve().then((function(){return xF}));case"./locale/lang.be.js":return Promise.resolve().then((function(){return kF}));case"./locale/lang.bg.js":return Promise.resolve().then((function(){return CF}));case"./locale/lang.ca.js":return Promise.resolve().then((function(){return BF}));case"./locale/lang.cs.js":return Promise.resolve().then((function(){return EF}));case"./locale/lang.cy.js":return Promise.resolve().then((function(){return NF}));case"./locale/lang.da.js":return Promise.resolve().then((function(){return LF}));case"./locale/lang.de.js":return Promise.resolve().then((function(){return TF}));case"./locale/lang.el.js":return Promise.resolve().then((function(){return PF}));case"./locale/lang.en.js":return Promise.resolve().then((function(){return FF}));case"./locale/lang.es.js":return Promise.resolve().then((function(){return UF}));case"./locale/lang.et.js":return Promise.resolve().then((function(){return IF}));case"./locale/lang.fa.js":return Promise.resolve().then((function(){return RF}));case"./locale/lang.fi.js":return Promise.resolve().then((function(){return MF}));case"./locale/lang.fr.js":return Promise.resolve().then((function(){return OF}));case"./locale/lang.fy.js":return Promise.resolve().then((function(){return QF}));case"./locale/lang.ga.js":return Promise.resolve().then((function(){return DF}));case"./locale/lang.gl.js":return Promise.resolve().then((function(){return jF}));case"./locale/lang.he.js":return Promise.resolve().then((function(){return HF}));case"./locale/lang.hi.js":return Promise.resolve().then((function(){return GF}));case"./locale/lang.hr.js":return Promise.resolve().then((function(){return VF}));case"./locale/lang.hu.js":return Promise.resolve().then((function(){return zF}));case"./locale/lang.hy.js":return Promise.resolve().then((function(){return KF}));case"./locale/lang.id.js":return Promise.resolve().then((function(){return qF}));case"./locale/lang.is.js":return Promise.resolve().then((function(){return WF}));case"./locale/lang.it.js":return Promise.resolve().then((function(){return XF}));case"./locale/lang.ja.js":return Promise.resolve().then((function(){return YF}));case"./locale/lang.ko.js":return Promise.resolve().then((function(){return JF}));case"./locale/lang.lt.js":return Promise.resolve().then((function(){return $F}));case"./locale/lang.lv.js":return Promise.resolve().then((function(){return ZF}));case"./locale/lang.mk.js":return Promise.resolve().then((function(){return eU}));case"./locale/lang.ms.js":return Promise.resolve().then((function(){return tU}));case"./locale/lang.mt.js":return Promise.resolve().then((function(){return rU}));case"./locale/lang.nl.js":return Promise.resolve().then((function(){return nU}));case"./locale/lang.no.js":return Promise.resolve().then((function(){return iU}));case"./locale/lang.pl.js":return Promise.resolve().then((function(){return oU}));case"./locale/lang.pt-BR.js":return Promise.resolve().then((function(){return aU}));case"./locale/lang.pt-PT.js":return Promise.resolve().then((function(){return sU}));case"./locale/lang.ro.js":return Promise.resolve().then((function(){return lU}));case"./locale/lang.ru.js":return Promise.resolve().then((function(){return cU}));case"./locale/lang.sk.js":return Promise.resolve().then((function(){return uU}));case"./locale/lang.sl.js":return Promise.resolve().then((function(){return dU}));case"./locale/lang.sq.js":return Promise.resolve().then((function(){return hU}));case"./locale/lang.sr.js":return Promise.resolve().then((function(){return pU}));case"./locale/lang.sv.js":return Promise.resolve().then((function(){r
2020-09-04 20:34:30 +00:00
/**
* Localizing script for SVG-edit UI.
* @module locale
* @license MIT
*
* @copyright 2010 Narendra Sisodya
* @copyright 2010 Alexis Deveria
*
2020-10-25 20:30:20 +00:00
*/_export({target:"String",proto:!0,forced:stringHtmlForced("bold")},{bold:function bold(){return createHtml(this,"b","","")}});var UP=function setStrings(er,tr,rr){var nr=document.getElementById("svg_editor").parentNode;Object.entries(tr).forEach((function(tr){var ir=_slicedToArray(tr,2),or=ir[0],ar=ir[1];if(ar){rr&&(or="#"+or);var sr=nr.querySelectorAll(or);if(sr.length){var lr=sr[0];switch(er){case"aria-label":lr.setAttribute("aria-label",ar);break;case"content":_toConsumableArray(sr).some((function(er){return!(3!==er.nodeType||!er.textContent.trim())&&(er.textContent=ar,!0)}));break;case"title":lr.setAttribute("title",ar)}}else console.log("Missing element for localization: "+or)}else console.log(or)}))},IP=function readLang(er){var tr=er.tools,rr=er.properties,nr=er.config,ir=er.layers,or=er.common,ar=er.ui;UP("content",{curve_segments:rr.curve_segments,fitToContent:tr.fitToContent,fit_to_all:tr.fit_to_all,fit_to_canvas:tr.fit_to_canvas,fit_to_layer_content:tr.fit_to_layer_content,fit_to_sel:tr.fit_to_sel,icon_large:nr.icon_large,icon_medium:nr.icon_medium,icon_small:nr.icon_small,icon_xlarge:nr.icon_xlarge,image_opt_embed:nr.image_opt_embed,image_opt_ref:nr.image_opt_ref,includedImages:nr.included_images,largest_object:tr.largest_object,layersLabel:ir.layers,page:tr.page,relativeToLabel:tr.relativeTo,selLayerLabel:ir.move_elems_to,selectedPredefined:nr.select_predefined,selected_objects:tr.selected_objects,smallest_object:tr.smallest_object,straight_segments:rr.straight_segments,svginfo_bg_url:nr.editor_img_url+":",svginfo_bg_note:nr.editor_bg_note,svginfo_change_background:nr.background,svginfo_dim:nr.doc_dims,svginfo_editor_prefs:nr.editor_prefs,svginfo_height:or.height,svginfo_icons:nr.icon_size,svginfo_image_props:nr.image_props,svginfo_lang:nr.language,svginfo_title:nr.doc_title,svginfo_width:or.width,tool_docprops_cancel:or.cancel,tool_docprops_save:or.ok,tool_source_cancel:or.cancel,tool_source_save:or.ok,tool_prefs_cancel:or.cancel,tool_prefs_save:or.ok,sidepanel_handle:ir.layers.split("").join(" "),tool_clear:tr.new_doc,tool_docprops:tr.docprops,tool_export:tr.export_img,tool_import:tr.import_doc,tool_open:tr.open_doc,tool_save:tr.save_doc,tool_editor_prefs:nr.editor_prefs,tool_editor_homepage:tr.editor_homepage,svginfo_units_rulers:nr.units_and_rulers,svginfo_rulers_onoff:nr.show_rulers,svginfo_unit:nr.base_unit,svginfo_grid_settings:nr.grid,svginfo_snap_onoff:nr.snapping_onoff,svginfo_snap_step:nr.snapping_stepsize,svginfo_grid_color:nr.grid_color},!0);var sr={};["cut","copy","paste","paste_in_place","delete","group","ungroup","move_front","move_up","move_down","move_back"].forEach((function(er){sr['#cmenu_canvas a[href="#'+er+'"]']=tr[er]})),["dupe","merge_down","merge_all"].forEach((function(er){sr['#cmenu_layers a[href="#'+er+'"]']=ir[er]})),sr['#cmenu_layers a[href="#delete"]']=ir.del,UP("content",sr);var lr={};return Object.entries({tool_blur:rr.blur,tool_position:tr.align_to_page,tool_font_family:rr.font_family,zoom_panel:ar.zoom_level,stroke_linejoin:rr.linejoin_miter,stroke_linecap:rr.linecap_butt,tool_opacity:rr.opacity}).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],nr=tr[1];lr["#"+rr+" button"]=nr})),Object.entries({group_opacity:rr.opacity,zoom:ar.zoom_level}).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],nr=tr[1];lr["#"+rr]=nr})),UP("aria-label",lr),UP("title",{align_relative_to:tr.align_relative_to,circle_cx:rr.circle_cx,circle_cy:rr.circle_cy,circle_r:rr.circle_r,cornerRadiusLabel:rr.corner_radius,ellipse_cx:rr.ellipse_cx,ellipse_cy:rr.ellipse_cy,ellipse_rx:rr.ellipse_rx,ellipse_ry:rr.ellipse_ry,fill_color:rr.fill_color,font_family:rr.font_family,idLabel:rr.id,image_height:rr.image_height,image_url:rr.image_url,image_width:rr.image_width,layer_delete:ir.del,layer_down:ir.move_down,layer_new:ir.new,layer_rename:ir.rename,layer_moreopts:or.more_opts,layer_up:ir.move_up,line_x1:rr.line_x1,line_x2:rr.line_x2,line_y1:rr.line_y1,line_y2:rr.line_y2,linecap_butt:rr.linecap_butt,linecap_round:rr.linecap_round,linecap_square:rr.linecap_square,linejoin_bevel:rr.linejoin_be
2020-09-04 20:34:30 +00:00
/*!
* html2canvas 1.0.0-rc.7 <https://html2canvas.hertzen.com>
* Copyright (c) 2020 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/
2020-10-25 20:30:20 +00:00
er.exports=function(){
2020-09-04 20:34:30 +00:00
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
2020-10-25 20:30:20 +00:00
var er=function extendStatics(tr,rr){return(er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(er,tr){er.__proto__=tr}||function(er,tr){for(var rr in tr)tr.hasOwnProperty(rr)&&(er[rr]=tr[rr])})(tr,rr)};function __extends(tr,rr){function __(){this.constructor=tr}er(tr,rr),tr.prototype=null===rr?Object.create(rr):(__.prototype=rr.prototype,new __)}var tr=function __assign(){return(tr=Object.assign||function __assign(er){for(var tr,rr=1,nr=arguments.length;rr<nr;rr++)for(var ir in tr=arguments[rr])Object.prototype.hasOwnProperty.call(tr,ir)&&(er[ir]=tr[ir]);return er}).apply(this,arguments)};function __awaiter(er,tr,rr,nr){return new(rr||(rr=Promise))((function(ir,or){function fulfilled(er){try{step(nr.next(er))}catch(er){or(er)}}function rejected(er){try{step(nr.throw(er))}catch(er){or(er)}}function step(er){er.done?ir(er.value):new rr((function(tr){tr(er.value)})).then(fulfilled,rejected)}step((nr=nr.apply(er,tr||[])).next())}))}function __generator(er,tr){var rr,nr,ir,or,ar={label:0,sent:function sent(){if(1&ir[0])throw ir[1];return ir[1]},trys:[],ops:[]};return or={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(or[Symbol.iterator]=function(){return this}),or;function verb(er){return function(tr){return step([er,tr])}}function step(or){if(rr)throw new TypeError("Generator is already executing.");for(;ar;)try{if(rr=1,nr&&(ir=2&or[0]?nr.return:or[0]?nr.throw||((ir=nr.return)&&ir.call(nr),0):nr.next)&&!(ir=ir.call(nr,or[1])).done)return ir;switch(nr=0,ir&&(or=[2&or[0],ir.value]),or[0]){case 0:case 1:ir=or;break;case 4:return ar.label++,{value:or[1],done:!1};case 5:ar.label++,nr=or[1],or=[0];continue;case 7:or=ar.ops.pop(),ar.trys.pop();continue;default:if(!((ir=(ir=ar.trys).length>0&&ir[ir.length-1])||6!==or[0]&&2!==or[0])){ar=0;continue}if(3===or[0]&&(!ir||or[1]>ir[0]&&or[1]<ir[3])){ar.label=or[1];break}if(6===or[0]&&ar.label<ir[1]){ar.label=ir[1],ir=or;break}if(ir&&ar.label<ir[2]){ar.label=ir[2],ar.ops.push(or);break}ir[2]&&ar.ops.pop(),ar.trys.pop();continue}or=tr.call(er,ar)}catch(er){or=[6,er],nr=0}finally{rr=ir=0}if(5&or[0])throw or[1];return{value:or[0]?or[1]:void 0,done:!0}}}for(var rr=function(){function Bounds(er,tr,rr,nr){this.left=er,this.top=tr,this.width=rr,this.height=nr}return Bounds.prototype.add=function(er,tr,rr,nr){return new Bounds(this.left+er,this.top+tr,this.width+rr,this.height+nr)},Bounds.fromClientRect=function(er){return new Bounds(er.left,er.top,er.width,er.height)},Bounds}(),nr=function parseBounds(er){return rr.fromClientRect(er.getBoundingClientRect())},ir=function parseDocumentSize(er){var tr=er.body,nr=er.documentElement;if(!tr||!nr)throw new Error("Unable to get document size");var ir=Math.max(Math.max(tr.scrollWidth,nr.scrollWidth),Math.max(tr.offsetWidth,nr.offsetWidth),Math.max(tr.clientWidth,nr.clientWidth)),or=Math.max(Math.max(tr.scrollHeight,nr.scrollHeight),Math.max(tr.offsetHeight,nr.offsetHeight),Math.max(tr.clientHeight,nr.clientHeight));return new rr(0,0,ir,or)},or=function toCodePoints(er){for(var tr=[],rr=0,nr=er.length;rr<nr;){var ir=er.charCodeAt(rr++);if(ir>=55296&&ir<=56319&&rr<nr){var or=er.charCodeAt(rr++);56320==(64512&or)?tr.push(((1023&ir)<<10)+(1023&or)+65536):(tr.push(ir),rr--)}else tr.push(ir)}return tr},ar=function fromCodePoint(){for(var er=[],tr=0;tr<arguments.length;tr++)er[tr]=arguments[tr];if(String.fromCodePoint)return String.fromCodePoint.apply(String,er);var rr=er.length;if(!rr)return"";for(var nr=[],ir=-1,or="";++ir<rr;){var ar=er[ir];ar<=65535?nr.push(ar):(ar-=65536,nr.push(55296+(ar>>10),ar%1024+56320)),(ir+1===rr||nr.length>16384)&&(or+=String.fromCharCode.apply(String,nr),nr.length=0)}return or},sr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),cr=0;cr<sr.length;cr++)lr[sr.charCodeAt(cr)]=cr;var ur,dr=function decode(er){var tr,rr,nr,ir,or,ar=.75*er.length,sr=er.length,cr=0;"="===er[er.length-1]&&(ar--,"="===er[er.length-2]&&ar--);var ur="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.sli
2020-09-04 20:34:30 +00:00
/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */
2020-10-25 20:30:20 +00:00
er.exports=function(){function _toConsumableArray(er){if(Array.isArray(er)){for(var tr=0,rr=Array(er.length);tr<er.length;tr++)rr[tr]=er[tr];return rr}return Array.from(er)}var er=Object.hasOwnProperty,tr=Object.setPrototypeOf,rr=Object.isFrozen,nr=Object.keys,ir=Object.freeze,or=Object.seal,ar="undefined"!=typeof Reflect&&Reflect,sr=ar.apply,lr=ar.construct;sr||(sr=function apply(er,tr,rr){return er.apply(tr,rr)}),ir||(ir=function freeze(er){return er}),or||(or=function seal(er){return er}),lr||(lr=function construct(er,tr){return new(Function.prototype.bind.apply(er,[null].concat(_toConsumableArray(tr))))});var cr=unapply(Array.prototype.forEach),ur=unapply(Array.prototype.indexOf),dr=unapply(Array.prototype.join),hr=unapply(Array.prototype.pop),pr=unapply(Array.prototype.push),Ar=unapply(Array.prototype.slice),fr=unapply(String.prototype.toLowerCase),gr=unapply(String.prototype.match),mr=unapply(String.prototype.replace),_r=unapply(String.prototype.indexOf),vr=unapply(String.prototype.trim),yr=unapply(RegExp.prototype.test),br=unconstruct(RegExp),wr=unconstruct(TypeError);function unapply(er){return function(tr){for(var rr=arguments.length,nr=Array(rr>1?rr-1:0),ir=1;ir<rr;ir++)nr[ir-1]=arguments[ir];return sr(er,tr,nr)}}function unconstruct(er){return function(){for(var tr=arguments.length,rr=Array(tr),nr=0;nr<tr;nr++)rr[nr]=arguments[nr];return lr(er,rr)}}function addToSet(er,nr){tr&&tr(er,null);for(var ir=nr.length;ir--;){var or=nr[ir];if("string"==typeof or){var ar=fr(or);ar!==or&&(rr(nr)||(nr[ir]=ar),or=ar)}er[or]=!0}return er}function clone(tr){var rr={},nr=void 0;for(nr in tr)sr(er,tr,[nr])&&(rr[nr]=tr[nr]);return rr}var Sr=ir(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),xr=ir(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),kr=ir(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Cr=ir(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Br=ir(["#text"]),Er=ir(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","i
2020-08-28 22:07:07 +00:00
//# sourceMappingURL=index.js.map