/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
/******/ (() => { // webpackBootstrap
/******/ 	var __webpack_modules__ = ({

/***/ "./assets/dist/js/reducedjs/combined.js":
/*!**********************************************!*\
  !*** ./assets/dist/js/reducedjs/combined.js ***!
  \**********************************************/
/***/ (function(module, exports, __webpack_require__) {

eval("/* module decorator */ module = __webpack_require__.nmd(module);\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// ----------- chartist.js START -------------\n(function(root,factory){if(true){// AMD. Register as an anonymous module unless amdModuleId is set\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function(){return root['Chartist']=factory();}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(this,function(){/* Chartist.js 0.11.4\r\n   * Copyright © 2019 Gion Kunz\r\n   * Free to use under either the WTFPL license or the MIT license.\r\n   * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-WTFPL\r\n   * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-MIT\r\n   */ /**\r\n   * The core module of Chartist that is mainly providing static functions and higher level functions for chart modules.\r\n   *\r\n   * @module Chartist.Core\r\n   */var Chartist={version:'0.11.4'};(function(globalRoot,Chartist){'use strict';var window=globalRoot.window;var document=globalRoot.document;/**\r\n     * This object contains all namespaces used within Chartist.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @type {{svg: string, xmlns: string, xhtml: string, xlink: string, ct: string}}\r\n     */Chartist.namespaces={svg:'http://www.w3.org/2000/svg',xmlns:'http://www.w3.org/2000/xmlns/',xhtml:'http://www.w3.org/1999/xhtml',xlink:'http://www.w3.org/1999/xlink',ct:'http://gionkunz.github.com/chartist-js/ct'};/**\r\n     * Helps to simplify functional style code\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {*} n This exact value will be returned by the noop function\r\n     * @return {*} The same value that was provided to the n parameter\r\n     */Chartist.noop=function(n){return n;};/**\r\n     * Generates a-z from a number 0 to 26\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Number} n A number from 0 to 26 that will result in a letter a-z\r\n     * @return {String} A character from a-z based on the input number n\r\n     */Chartist.alphaNumerate=function(n){// Limit to a-z\nreturn String.fromCharCode(97+n%26);};/**\r\n     * Simple recursive object extend\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Object} target Target object where the source will be merged into\r\n     * @param {Object...} sources This object (objects) will be merged into target and then target is returned\r\n     * @return {Object} An object that has the same reference as target but is extended and merged with the properties of source\r\n     */Chartist.extend=function(target){var i,source,sourceProp;target=target||{};for(i=1;i<arguments.length;i++){source=arguments[i];for(var prop in source){sourceProp=source[prop];if(typeof sourceProp==='object'&&sourceProp!==null&&!(sourceProp instanceof Array)){target[prop]=Chartist.extend(target[prop],sourceProp);}else{target[prop]=sourceProp;}}}return target;};/**\r\n     * Replaces all occurrences of subStr in str with newSubStr and returns a new string.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {String} str\r\n     * @param {String} subStr\r\n     * @param {String} newSubStr\r\n     * @return {String}\r\n     */Chartist.replaceAll=function(str,subStr,newSubStr){return str.replace(new RegExp(subStr,'g'),newSubStr);};/**\r\n     * Converts a number to a string with a unit. If a string is passed then this will be returned unmodified.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Number} value\r\n     * @param {String} unit\r\n     * @return {String} Returns the passed number value with unit.\r\n     */Chartist.ensureUnit=function(value,unit){if(typeof value==='number'){value=value+unit;}return value;};/**\r\n     * Converts a number or string to a quantity object.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {String|Number} input\r\n     * @return {Object} Returns an object containing the value as number and the unit as string.\r\n     */Chartist.quantity=function(input){if(typeof input==='string'){var match=/^(\\d+)\\s*(.*)$/g.exec(input);return{value:+match[1],unit:match[2]||undefined};}return{value:input};};/**\r\n     * This is a wrapper around document.querySelector that will return the query if it's already of type Node\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {String|Node} query The query to use for selecting a Node or a DOM node that will be returned directly\r\n     * @return {Node}\r\n     */Chartist.querySelector=function(query){return query instanceof Node?query:document.querySelector(query);};/**\r\n     * Functional style helper to produce array with given length initialized with undefined values\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param length\r\n     * @return {Array}\r\n     */Chartist.times=function(length){return Array.apply(null,new Array(length));};/**\r\n     * Sum helper to be used in reduce functions\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param previous\r\n     * @param current\r\n     * @return {*}\r\n     */Chartist.sum=function(previous,current){return previous+(current?current:0);};/**\r\n     * Multiply helper to be used in `Array.map` for multiplying each value of an array with a factor.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Number} factor\r\n     * @returns {Function} Function that can be used in `Array.map` to multiply each value in an array\r\n     */Chartist.mapMultiply=function(factor){return function(num){return num*factor;};};/**\r\n     * Add helper to be used in `Array.map` for adding a addend to each value of an array.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Number} addend\r\n     * @returns {Function} Function that can be used in `Array.map` to add a addend to each value in an array\r\n     */Chartist.mapAdd=function(addend){return function(num){return num+addend;};};/**\r\n     * Map for multi dimensional arrays where their nested arrays will be mapped in serial. The output array will have the length of the largest nested array. The callback function is called with variable arguments where each argument is the nested array value (or undefined if there are no more values).\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param arr\r\n     * @param cb\r\n     * @return {Array}\r\n     */Chartist.serialMap=function(arr,cb){var result=[],length=Math.max.apply(null,arr.map(function(e){return e.length;}));Chartist.times(length).forEach(function(e,index){var args=arr.map(function(e){return e[index];});result[index]=cb.apply(null,args);});return result;};/**\r\n     * This helper function can be used to round values with certain precision level after decimal. This is used to prevent rounding errors near float point precision limit.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Number} value The value that should be rounded with precision\r\n     * @param {Number} [digits] The number of digits after decimal used to do the rounding\r\n     * @returns {number} Rounded value\r\n     */Chartist.roundWithPrecision=function(value,digits){var precision=Math.pow(10,digits||Chartist.precision);return Math.round(value*precision)/precision;};/**\r\n     * Precision level used internally in Chartist for rounding. If you require more decimal places you can increase this number.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @type {number}\r\n     */Chartist.precision=8;/**\r\n     * A map with characters to escape for strings to be safely used as attribute values.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @type {Object}\r\n     */Chartist.escapingMap={'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;','\\'':'&#039;'};/**\r\n     * This function serializes arbitrary data to a string. In case of data that can't be easily converted to a string, this function will create a wrapper object and serialize the data using JSON.stringify. The outcoming string will always be escaped using Chartist.escapingMap.\r\n     * If called with null or undefined the function will return immediately with null or undefined.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Number|String|Object} data\r\n     * @return {String}\r\n     */Chartist.serialize=function(data){if(data===null||data===undefined){return data;}else if(typeof data==='number'){data=''+data;}else if(typeof data==='object'){data=JSON.stringify({data:data});}return Object.keys(Chartist.escapingMap).reduce(function(result,key){return Chartist.replaceAll(result,key,Chartist.escapingMap[key]);},data);};/**\r\n     * This function de-serializes a string previously serialized with Chartist.serialize. The string will always be unescaped using Chartist.escapingMap before it's returned. Based on the input value the return type can be Number, String or Object. JSON.parse is used with try / catch to see if the unescaped string can be parsed into an Object and this Object will be returned on success.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {String} data\r\n     * @return {String|Number|Object}\r\n     */Chartist.deserialize=function(data){if(typeof data!=='string'){return data;}data=Object.keys(Chartist.escapingMap).reduce(function(result,key){return Chartist.replaceAll(result,Chartist.escapingMap[key],key);},data);try{data=JSON.parse(data);data=data.data!==undefined?data.data:data;}catch(e){}return data;};/**\r\n     * Create or reinitialize the SVG element for the chart\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Node} container The containing DOM Node object that will be used to plant the SVG element\r\n     * @param {String} width Set the width of the SVG element. Default is 100%\r\n     * @param {String} height Set the height of the SVG element. Default is 100%\r\n     * @param {String} className Specify a class to be added to the SVG element\r\n     * @return {Object} The created/reinitialized SVG element\r\n     */Chartist.createSvg=function(container,width,height,className){var svg;width=width||'100%';height=height||'100%';// Check if there is a previous SVG element in the container that contains the Chartist XML namespace and remove it\n// Since the DOM API does not support namespaces we need to manually search the returned list http://www.w3.org/TR/selectors-api/\nArray.prototype.slice.call(container.querySelectorAll('svg')).filter(function filterChartistSvgObjects(svg){return svg.getAttributeNS(Chartist.namespaces.xmlns,'ct');}).forEach(function removePreviousElement(svg){container.removeChild(svg);});// Create svg object with width and height or use 100% as default\nsvg=new Chartist.Svg('svg').attr({width:width,height:height}).addClass(className);svg._node.style.width=width;svg._node.style.height=height;// Add the DOM node to our container\ncontainer.appendChild(svg._node);return svg;};/**\r\n     * Ensures that the data object passed as second argument to the charts is present and correctly initialized.\r\n     *\r\n     * @param  {Object} data The data object that is passed as second argument to the charts\r\n     * @return {Object} The normalized data object\r\n     */Chartist.normalizeData=function(data,reverse,multi){var labelCount;var output={raw:data,normalized:{}};// Check if we should generate some labels based on existing series data\noutput.normalized.series=Chartist.getDataArray({series:data.series||[]},reverse,multi);// If all elements of the normalized data array are arrays we're dealing with\n// multi series data and we need to find the largest series if they are un-even\nif(output.normalized.series.every(function(value){return value instanceof Array;})){// Getting the series with the the most elements\nlabelCount=Math.max.apply(null,output.normalized.series.map(function(series){return series.length;}));}else{// We're dealing with Pie data so we just take the normalized array length\nlabelCount=output.normalized.series.length;}output.normalized.labels=(data.labels||[]).slice();// Padding the labels to labelCount with empty strings\nArray.prototype.push.apply(output.normalized.labels,Chartist.times(Math.max(0,labelCount-output.normalized.labels.length)).map(function(){return'';}));if(reverse){Chartist.reverseData(output.normalized);}return output;};/**\r\n     * This function safely checks if an objects has an owned property.\r\n     *\r\n     * @param {Object} object The object where to check for a property\r\n     * @param {string} property The property name\r\n     * @returns {boolean} Returns true if the object owns the specified property\r\n     */Chartist.safeHasProperty=function(object,property){return object!==null&&typeof object==='object'&&object.hasOwnProperty(property);};/**\r\n     * Checks if a value is considered a hole in the data series.\r\n     *\r\n     * @param {*} value\r\n     * @returns {boolean} True if the value is considered a data hole\r\n     */Chartist.isDataHoleValue=function(value){return value===null||value===undefined||typeof value==='number'&&isNaN(value);};/**\r\n     * Reverses the series, labels and series data arrays.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param data\r\n     */Chartist.reverseData=function(data){data.labels.reverse();data.series.reverse();for(var i=0;i<data.series.length;i++){if(typeof data.series[i]==='object'&&data.series[i].data!==undefined){data.series[i].data.reverse();}else if(data.series[i]instanceof Array){data.series[i].reverse();}}};/**\r\n     * Convert data series into plain array\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Object} data The series object that contains the data to be visualized in the chart\r\n     * @param {Boolean} [reverse] If true the whole data is reversed by the getDataArray call. This will modify the data object passed as first parameter. The labels as well as the series order is reversed. The whole series data arrays are reversed too.\r\n     * @param {Boolean} [multi] Create a multi dimensional array from a series data array where a value object with `x` and `y` values will be created.\r\n     * @return {Array} A plain array that contains the data to be visualized in the chart\r\n     */Chartist.getDataArray=function(data,reverse,multi){// Recursively walks through nested arrays and convert string values to numbers and objects with value properties\n// to values. Check the tests in data core -> data normalization for a detailed specification of expected values\nfunction recursiveConvert(value){if(Chartist.safeHasProperty(value,'value')){// We are dealing with value object notation so we need to recurse on value property\nreturn recursiveConvert(value.value);}else if(Chartist.safeHasProperty(value,'data')){// We are dealing with series object notation so we need to recurse on data property\nreturn recursiveConvert(value.data);}else if(value instanceof Array){// Data is of type array so we need to recurse on the series\nreturn value.map(recursiveConvert);}else if(Chartist.isDataHoleValue(value)){// We're dealing with a hole in the data and therefore need to return undefined\n// We're also returning undefined for multi value output\nreturn undefined;}else{// We need to prepare multi value output (x and y data)\nif(multi){var multiValue={};// Single series value arrays are assumed to specify the Y-Axis value\n// For example: [1, 2] => [{x: undefined, y: 1}, {x: undefined, y: 2}]\n// If multi is a string then it's assumed that it specified which dimension should be filled as default\nif(typeof multi==='string'){multiValue[multi]=Chartist.getNumberOrUndefined(value);}else{multiValue.y=Chartist.getNumberOrUndefined(value);}multiValue.x=value.hasOwnProperty('x')?Chartist.getNumberOrUndefined(value.x):multiValue.x;multiValue.y=value.hasOwnProperty('y')?Chartist.getNumberOrUndefined(value.y):multiValue.y;return multiValue;}else{// We can return simple data\nreturn Chartist.getNumberOrUndefined(value);}}}return data.series.map(recursiveConvert);};/**\r\n     * Converts a number into a padding object.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Object|Number} padding\r\n     * @param {Number} [fallback] This value is used to fill missing values if a incomplete padding object was passed\r\n     * @returns {Object} Returns a padding object containing top, right, bottom, left properties filled with the padding number passed in as argument. If the argument is something else than a number (presumably already a correct padding object) then this argument is directly returned.\r\n     */Chartist.normalizePadding=function(padding,fallback){fallback=fallback||0;return typeof padding==='number'?{top:padding,right:padding,bottom:padding,left:padding}:{top:typeof padding.top==='number'?padding.top:fallback,right:typeof padding.right==='number'?padding.right:fallback,bottom:typeof padding.bottom==='number'?padding.bottom:fallback,left:typeof padding.left==='number'?padding.left:fallback};};Chartist.getMetaData=function(series,index){var value=series.data?series.data[index]:series[index];return value?value.meta:undefined;};/**\r\n     * Calculate the order of magnitude for the chart scale\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Number} value The value Range of the chart\r\n     * @return {Number} The order of magnitude\r\n     */Chartist.orderOfMagnitude=function(value){return Math.floor(Math.log(Math.abs(value))/Math.LN10);};/**\r\n     * Project a data length into screen coordinates (pixels)\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Object} axisLength The svg element for the chart\r\n     * @param {Number} length Single data value from a series array\r\n     * @param {Object} bounds All the values to set the bounds of the chart\r\n     * @return {Number} The projected data length in pixels\r\n     */Chartist.projectLength=function(axisLength,length,bounds){return length/bounds.range*axisLength;};/**\r\n     * Get the height of the area in the chart for the data series\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Object} svg The svg element for the chart\r\n     * @param {Object} options The Object that contains all the optional values for the chart\r\n     * @return {Number} The height of the area in the chart for the data series\r\n     */Chartist.getAvailableHeight=function(svg,options){return Math.max((Chartist.quantity(options.height).value||svg.height())-(options.chartPadding.top+options.chartPadding.bottom)-options.axisX.offset,0);};/**\r\n     * Get highest and lowest value of data array. This Array contains the data that will be visualized in the chart.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Array} data The array that contains the data to be visualized in the chart\r\n     * @param {Object} options The Object that contains the chart options\r\n     * @param {String} dimension Axis dimension 'x' or 'y' used to access the correct value and high / low configuration\r\n     * @return {Object} An object that contains the highest and lowest value that will be visualized on the chart.\r\n     */Chartist.getHighLow=function(data,options,dimension){// TODO: Remove workaround for deprecated global high / low config. Axis high / low configuration is preferred\noptions=Chartist.extend({},options,dimension?options['axis'+dimension.toUpperCase()]:{});var highLow={high:options.high===undefined?-Number.MAX_VALUE:+options.high,low:options.low===undefined?Number.MAX_VALUE:+options.low};var findHigh=options.high===undefined;var findLow=options.low===undefined;// Function to recursively walk through arrays and find highest and lowest number\nfunction recursiveHighLow(data){if(data===undefined){return undefined;}else if(data instanceof Array){for(var i=0;i<data.length;i++){recursiveHighLow(data[i]);}}else{var value=dimension?+data[dimension]:+data;if(findHigh&&value>highLow.high){highLow.high=value;}if(findLow&&value<highLow.low){highLow.low=value;}}}// Start to find highest and lowest number recursively\nif(findHigh||findLow){recursiveHighLow(data);}// Overrides of high / low based on reference value, it will make sure that the invisible reference value is\n// used to generate the chart. This is useful when the chart always needs to contain the position of the\n// invisible reference value in the view i.e. for bipolar scales.\nif(options.referenceValue||options.referenceValue===0){highLow.high=Math.max(options.referenceValue,highLow.high);highLow.low=Math.min(options.referenceValue,highLow.low);}// If high and low are the same because of misconfiguration or flat data (only the same value) we need\n// to set the high or low to 0 depending on the polarity\nif(highLow.high<=highLow.low){// If both values are 0 we set high to 1\nif(highLow.low===0){highLow.high=1;}else if(highLow.low<0){// If we have the same negative value for the bounds we set bounds.high to 0\nhighLow.high=0;}else if(highLow.high>0){// If we have the same positive value for the bounds we set bounds.low to 0\nhighLow.low=0;}else{// If data array was empty, values are Number.MAX_VALUE and -Number.MAX_VALUE. Set bounds to prevent errors\nhighLow.high=1;highLow.low=0;}}return highLow;};/**\r\n     * Checks if a value can be safely coerced to a number. This includes all values except null which result in finite numbers when coerced. This excludes NaN, since it's not finite.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param value\r\n     * @returns {Boolean}\r\n     */Chartist.isNumeric=function(value){return value===null?false:isFinite(value);};/**\r\n     * Returns true on all falsey values except the numeric value 0.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param value\r\n     * @returns {boolean}\r\n     */Chartist.isFalseyButZero=function(value){return!value&&value!==0;};/**\r\n     * Returns a number if the passed parameter is a valid number or the function will return undefined. On all other values than a valid number, this function will return undefined.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param value\r\n     * @returns {*}\r\n     */Chartist.getNumberOrUndefined=function(value){return Chartist.isNumeric(value)?+value:undefined;};/**\r\n     * Checks if provided value object is multi value (contains x or y properties)\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param value\r\n     */Chartist.isMultiValue=function(value){return typeof value==='object'&&('x'in value||'y'in value);};/**\r\n     * Gets a value from a dimension `value.x` or `value.y` while returning value directly if it's a valid numeric value. If the value is not numeric and it's falsey this function will return `defaultValue`.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param value\r\n     * @param dimension\r\n     * @param defaultValue\r\n     * @returns {*}\r\n     */Chartist.getMultiValue=function(value,dimension){if(Chartist.isMultiValue(value)){return Chartist.getNumberOrUndefined(value[dimension||'y']);}else{return Chartist.getNumberOrUndefined(value);}};/**\r\n     * Pollard Rho Algorithm to find smallest factor of an integer value. There are more efficient algorithms for factorization, but this one is quite efficient and not so complex.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Number} num An integer number where the smallest factor should be searched for\r\n     * @returns {Number} The smallest integer factor of the parameter num.\r\n     */Chartist.rho=function(num){if(num===1){return num;}function gcd(p,q){if(p%q===0){return q;}else{return gcd(q,p%q);}}function f(x){return x*x+1;}var x1=2,x2=2,divisor;if(num%2===0){return 2;}do{x1=f(x1)%num;x2=f(f(x2))%num;divisor=gcd(Math.abs(x1-x2),num);}while(divisor===1);return divisor;};/**\r\n     * Calculate and retrieve all the bounds for the chart and return them in one array\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Number} axisLength The length of the Axis used for\r\n     * @param {Object} highLow An object containing a high and low property indicating the value range of the chart.\r\n     * @param {Number} scaleMinSpace The minimum projected length a step should result in\r\n     * @param {Boolean} onlyInteger\r\n     * @return {Object} All the values to set the bounds of the chart\r\n     */Chartist.getBounds=function(axisLength,highLow,scaleMinSpace,onlyInteger){var i,optimizationCounter=0,newMin,newMax,bounds={high:highLow.high,low:highLow.low};bounds.valueRange=bounds.high-bounds.low;bounds.oom=Chartist.orderOfMagnitude(bounds.valueRange);bounds.step=Math.pow(10,bounds.oom);bounds.min=Math.floor(bounds.low/bounds.step)*bounds.step;bounds.max=Math.ceil(bounds.high/bounds.step)*bounds.step;bounds.range=bounds.max-bounds.min;bounds.numberOfSteps=Math.round(bounds.range/bounds.step);// Optimize scale step by checking if subdivision is possible based on horizontalGridMinSpace\n// If we are already below the scaleMinSpace value we will scale up\nvar length=Chartist.projectLength(axisLength,bounds.step,bounds);var scaleUp=length<scaleMinSpace;var smallestFactor=onlyInteger?Chartist.rho(bounds.range):0;// First check if we should only use integer steps and if step 1 is still larger than scaleMinSpace so we can use 1\nif(onlyInteger&&Chartist.projectLength(axisLength,1,bounds)>=scaleMinSpace){bounds.step=1;}else if(onlyInteger&&smallestFactor<bounds.step&&Chartist.projectLength(axisLength,smallestFactor,bounds)>=scaleMinSpace){// If step 1 was too small, we can try the smallest factor of range\n// If the smallest factor is smaller than the current bounds.step and the projected length of smallest factor\n// is larger than the scaleMinSpace we should go for it.\nbounds.step=smallestFactor;}else{// Trying to divide or multiply by 2 and find the best step value\nwhile(true){if(scaleUp&&Chartist.projectLength(axisLength,bounds.step,bounds)<=scaleMinSpace){bounds.step*=2;}else if(!scaleUp&&Chartist.projectLength(axisLength,bounds.step/2,bounds)>=scaleMinSpace){bounds.step/=2;if(onlyInteger&&bounds.step%1!==0){bounds.step*=2;break;}}else{break;}if(optimizationCounter++>1000){throw new Error('Exceeded maximum number of iterations while optimizing scale step!');}}}var EPSILON=2.221E-16;bounds.step=Math.max(bounds.step,EPSILON);function safeIncrement(value,increment){// If increment is too small use *= (1+EPSILON) as a simple nextafter\nif(value===(value+=increment)){value*=1+(increment>0?EPSILON:-EPSILON);}return value;}// Narrow min and max based on new step\nnewMin=bounds.min;newMax=bounds.max;while(newMin+bounds.step<=bounds.low){newMin=safeIncrement(newMin,bounds.step);}while(newMax-bounds.step>=bounds.high){newMax=safeIncrement(newMax,-bounds.step);}bounds.min=newMin;bounds.max=newMax;bounds.range=bounds.max-bounds.min;var values=[];for(i=bounds.min;i<=bounds.max;i=safeIncrement(i,bounds.step)){var value=Chartist.roundWithPrecision(i);if(value!==values[values.length-1]){values.push(value);}}bounds.values=values;return bounds;};/**\r\n     * Calculate cartesian coordinates of polar coordinates\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Number} centerX X-axis coordinates of center point of circle segment\r\n     * @param {Number} centerY X-axis coordinates of center point of circle segment\r\n     * @param {Number} radius Radius of circle segment\r\n     * @param {Number} angleInDegrees Angle of circle segment in degrees\r\n     * @return {{x:Number, y:Number}} Coordinates of point on circumference\r\n     */Chartist.polarToCartesian=function(centerX,centerY,radius,angleInDegrees){var angleInRadians=(angleInDegrees-90)*Math.PI/180.0;return{x:centerX+radius*Math.cos(angleInRadians),y:centerY+radius*Math.sin(angleInRadians)};};/**\r\n     * Initialize chart drawing rectangle (area where chart is drawn) x1,y1 = bottom left / x2,y2 = top right\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Object} svg The svg element for the chart\r\n     * @param {Object} options The Object that contains all the optional values for the chart\r\n     * @param {Number} [fallbackPadding] The fallback padding if partial padding objects are used\r\n     * @return {Object} The chart rectangles coordinates inside the svg element plus the rectangles measurements\r\n     */Chartist.createChartRect=function(svg,options,fallbackPadding){var hasAxis=!!(options.axisX||options.axisY);var yAxisOffset=hasAxis?options.axisY.offset:0;var xAxisOffset=hasAxis?options.axisX.offset:0;// If width or height results in invalid value (including 0) we fallback to the unitless settings or even 0\nvar width=svg.width()||Chartist.quantity(options.width).value||0;var height=svg.height()||Chartist.quantity(options.height).value||0;var normalizedPadding=Chartist.normalizePadding(options.chartPadding,fallbackPadding);// If settings were to small to cope with offset (legacy) and padding, we'll adjust\nwidth=Math.max(width,yAxisOffset+normalizedPadding.left+normalizedPadding.right);height=Math.max(height,xAxisOffset+normalizedPadding.top+normalizedPadding.bottom);var chartRect={padding:normalizedPadding,width:function(){return this.x2-this.x1;},height:function(){return this.y1-this.y2;}};if(hasAxis){if(options.axisX.position==='start'){chartRect.y2=normalizedPadding.top+xAxisOffset;chartRect.y1=Math.max(height-normalizedPadding.bottom,chartRect.y2+1);}else{chartRect.y2=normalizedPadding.top;chartRect.y1=Math.max(height-normalizedPadding.bottom-xAxisOffset,chartRect.y2+1);}if(options.axisY.position==='start'){chartRect.x1=normalizedPadding.left+yAxisOffset;chartRect.x2=Math.max(width-normalizedPadding.right,chartRect.x1+1);}else{chartRect.x1=normalizedPadding.left;chartRect.x2=Math.max(width-normalizedPadding.right-yAxisOffset,chartRect.x1+1);}}else{chartRect.x1=normalizedPadding.left;chartRect.x2=Math.max(width-normalizedPadding.right,chartRect.x1+1);chartRect.y2=normalizedPadding.top;chartRect.y1=Math.max(height-normalizedPadding.bottom,chartRect.y2+1);}return chartRect;};/**\r\n     * Creates a grid line based on a projected value.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param position\r\n     * @param index\r\n     * @param axis\r\n     * @param offset\r\n     * @param length\r\n     * @param group\r\n     * @param classes\r\n     * @param eventEmitter\r\n     */Chartist.createGrid=function(position,index,axis,offset,length,group,classes,eventEmitter){var positionalData={};positionalData[axis.units.pos+'1']=position;positionalData[axis.units.pos+'2']=position;positionalData[axis.counterUnits.pos+'1']=offset;positionalData[axis.counterUnits.pos+'2']=offset+length;var gridElement=group.elem('line',positionalData,classes.join(' '));// Event for grid draw\neventEmitter.emit('draw',Chartist.extend({type:'grid',axis:axis,index:index,group:group,element:gridElement},positionalData));};/**\r\n     * Creates a grid background rect and emits the draw event.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param gridGroup\r\n     * @param chartRect\r\n     * @param className\r\n     * @param eventEmitter\r\n     */Chartist.createGridBackground=function(gridGroup,chartRect,className,eventEmitter){var gridBackground=gridGroup.elem('rect',{x:chartRect.x1,y:chartRect.y2,width:chartRect.width(),height:chartRect.height()},className,true);// Event for grid background draw\neventEmitter.emit('draw',{type:'gridBackground',group:gridGroup,element:gridBackground});};/**\r\n     * Creates a label based on a projected value and an axis.\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param position\r\n     * @param length\r\n     * @param index\r\n     * @param labels\r\n     * @param axis\r\n     * @param axisOffset\r\n     * @param labelOffset\r\n     * @param group\r\n     * @param classes\r\n     * @param useForeignObject\r\n     * @param eventEmitter\r\n     */Chartist.createLabel=function(position,length,index,labels,axis,axisOffset,labelOffset,group,classes,useForeignObject,eventEmitter){var labelElement;var positionalData={};positionalData[axis.units.pos]=position+labelOffset[axis.units.pos];positionalData[axis.counterUnits.pos]=labelOffset[axis.counterUnits.pos];positionalData[axis.units.len]=length;positionalData[axis.counterUnits.len]=Math.max(0,axisOffset-10);if(useForeignObject){// We need to set width and height explicitly to px as span will not expand with width and height being\n// 100% in all browsers\nvar content=document.createElement('span');content.className=classes.join(' ');content.setAttribute('xmlns',Chartist.namespaces.xhtml);content.innerText=labels[index];content.style[axis.units.len]=Math.round(positionalData[axis.units.len])+'px';content.style[axis.counterUnits.len]=Math.round(positionalData[axis.counterUnits.len])+'px';labelElement=group.foreignObject(content,Chartist.extend({style:'overflow: visible;'},positionalData));}else{labelElement=group.elem('text',positionalData,classes.join(' ')).text(labels[index]);}eventEmitter.emit('draw',Chartist.extend({type:'label',axis:axis,index:index,group:group,element:labelElement,text:labels[index]},positionalData));};/**\r\n     * Helper to read series specific options from options object. It automatically falls back to the global option if\r\n     * there is no option in the series options.\r\n     *\r\n     * @param {Object} series Series object\r\n     * @param {Object} options Chartist options object\r\n     * @param {string} key The options key that should be used to obtain the options\r\n     * @returns {*}\r\n     */Chartist.getSeriesOption=function(series,options,key){if(series.name&&options.series&&options.series[series.name]){var seriesOptions=options.series[series.name];return seriesOptions.hasOwnProperty(key)?seriesOptions[key]:options[key];}else{return options[key];}};/**\r\n     * Provides options handling functionality with callback for options changes triggered by responsive options and media query matches\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Object} options Options set by user\r\n     * @param {Array} responsiveOptions Optional functions to add responsive behavior to chart\r\n     * @param {Object} eventEmitter The event emitter that will be used to emit the options changed events\r\n     * @return {Object} The consolidated options object from the defaults, base and matching responsive options\r\n     */Chartist.optionsProvider=function(options,responsiveOptions,eventEmitter){var baseOptions=Chartist.extend({},options),currentOptions,mediaQueryListeners=[],i;function updateCurrentOptions(mediaEvent){var previousOptions=currentOptions;currentOptions=Chartist.extend({},baseOptions);if(responsiveOptions){for(i=0;i<responsiveOptions.length;i++){var mql=window.matchMedia(responsiveOptions[i][0]);if(mql.matches){currentOptions=Chartist.extend(currentOptions,responsiveOptions[i][1]);}}}if(eventEmitter&&mediaEvent){eventEmitter.emit('optionsChanged',{previousOptions:previousOptions,currentOptions:currentOptions});}}function removeMediaQueryListeners(){mediaQueryListeners.forEach(function(mql){mql.removeListener(updateCurrentOptions);});}if(!window.matchMedia){throw'window.matchMedia not found! Make sure you\\'re using a polyfill.';}else if(responsiveOptions){for(i=0;i<responsiveOptions.length;i++){var mql=window.matchMedia(responsiveOptions[i][0]);mql.addListener(updateCurrentOptions);mediaQueryListeners.push(mql);}}// Execute initially without an event argument so we get the correct options\nupdateCurrentOptions();return{removeMediaQueryListeners:removeMediaQueryListeners,getCurrentOptions:function getCurrentOptions(){return Chartist.extend({},currentOptions);}};};/**\r\n     * Splits a list of coordinates and associated values into segments. Each returned segment contains a pathCoordinates\r\n     * valueData property describing the segment.\r\n     *\r\n     * With the default options, segments consist of contiguous sets of points that do not have an undefined value. Any\r\n     * points with undefined values are discarded.\r\n     *\r\n     * **Options**\r\n     * The following options are used to determine how segments are formed\r\n     * ```javascript\r\n     * var options = {\r\n     *   // If fillHoles is true, undefined values are simply discarded without creating a new segment. Assuming other options are default, this returns single segment.\r\n     *   fillHoles: false,\r\n     *   // If increasingX is true, the coordinates in all segments have strictly increasing x-values.\r\n     *   increasingX: false\r\n     * };\r\n     * ```\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @param {Array} pathCoordinates List of point coordinates to be split in the form [x1, y1, x2, y2 ... xn, yn]\r\n     * @param {Array} values List of associated point values in the form [v1, v2 .. vn]\r\n     * @param {Object} options Options set by user\r\n     * @return {Array} List of segments, each containing a pathCoordinates and valueData property.\r\n     */Chartist.splitIntoSegments=function(pathCoordinates,valueData,options){var defaultOptions={increasingX:false,fillHoles:false};options=Chartist.extend({},defaultOptions,options);var segments=[];var hole=true;for(var i=0;i<pathCoordinates.length;i+=2){// If this value is a \"hole\" we set the hole flag\nif(Chartist.getMultiValue(valueData[i/2].value)===undefined){// if(valueData[i / 2].value === undefined) {\nif(!options.fillHoles){hole=true;}}else{if(options.increasingX&&i>=2&&pathCoordinates[i]<=pathCoordinates[i-2]){// X is not increasing, so we need to make sure we start a new segment\nhole=true;}// If it's a valid value we need to check if we're coming out of a hole and create a new empty segment\nif(hole){segments.push({pathCoordinates:[],valueData:[]});// As we have a valid value now, we are not in a \"hole\" anymore\nhole=false;}// Add to the segment pathCoordinates and valueData\nsegments[segments.length-1].pathCoordinates.push(pathCoordinates[i],pathCoordinates[i+1]);segments[segments.length-1].valueData.push(valueData[i/2]);}}return segments;};})(this||__webpack_require__.g,Chartist);;/**\r\n   * Chartist path interpolation functions.\r\n   *\r\n   * @module Chartist.Interpolation\r\n   */ /* global Chartist */(function(globalRoot,Chartist){'use strict';Chartist.Interpolation={};/**\r\n     * This interpolation function does not smooth the path and the result is only containing lines and no curves.\r\n     *\r\n     * @example\r\n     * var chart = new Chartist.Line('.ct-chart', {\r\n     *   labels: [1, 2, 3, 4, 5],\r\n     *   series: [[1, 2, 8, 1, 7]]\r\n     * }, {\r\n     *   lineSmooth: Chartist.Interpolation.none({\r\n     *     fillHoles: false\r\n     *   })\r\n     * });\r\n     *\r\n     *\r\n     * @memberof Chartist.Interpolation\r\n     * @return {Function}\r\n     */Chartist.Interpolation.none=function(options){var defaultOptions={fillHoles:false};options=Chartist.extend({},defaultOptions,options);return function none(pathCoordinates,valueData){var path=new Chartist.Svg.Path();var hole=true;for(var i=0;i<pathCoordinates.length;i+=2){var currX=pathCoordinates[i];var currY=pathCoordinates[i+1];var currData=valueData[i/2];if(Chartist.getMultiValue(currData.value)!==undefined){if(hole){path.move(currX,currY,false,currData);}else{path.line(currX,currY,false,currData);}hole=false;}else if(!options.fillHoles){hole=true;}}return path;};};/**\r\n     * Simple smoothing creates horizontal handles that are positioned with a fraction of the length between two data points. You can use the divisor option to specify the amount of smoothing.\r\n     *\r\n     * Simple smoothing can be used instead of `Chartist.Smoothing.cardinal` if you'd like to get rid of the artifacts it produces sometimes. Simple smoothing produces less flowing lines but is accurate by hitting the points and it also doesn't swing below or above the given data point.\r\n     *\r\n     * All smoothing functions within Chartist are factory functions that accept an options parameter. The simple interpolation function accepts one configuration parameter `divisor`, between 1 and ∞, which controls the smoothing characteristics.\r\n     *\r\n     * @example\r\n     * var chart = new Chartist.Line('.ct-chart', {\r\n     *   labels: [1, 2, 3, 4, 5],\r\n     *   series: [[1, 2, 8, 1, 7]]\r\n     * }, {\r\n     *   lineSmooth: Chartist.Interpolation.simple({\r\n     *     divisor: 2,\r\n     *     fillHoles: false\r\n     *   })\r\n     * });\r\n     *\r\n     *\r\n     * @memberof Chartist.Interpolation\r\n     * @param {Object} options The options of the simple interpolation factory function.\r\n     * @return {Function}\r\n     */Chartist.Interpolation.simple=function(options){var defaultOptions={divisor:2,fillHoles:false};options=Chartist.extend({},defaultOptions,options);var d=1/Math.max(1,options.divisor);return function simple(pathCoordinates,valueData){var path=new Chartist.Svg.Path();var prevX,prevY,prevData;for(var i=0;i<pathCoordinates.length;i+=2){var currX=pathCoordinates[i];var currY=pathCoordinates[i+1];var length=(currX-prevX)*d;var currData=valueData[i/2];if(currData.value!==undefined){if(prevData===undefined){path.move(currX,currY,false,currData);}else{path.curve(prevX+length,prevY,currX-length,currY,currX,currY,false,currData);}prevX=currX;prevY=currY;prevData=currData;}else if(!options.fillHoles){prevX=currX=prevData=undefined;}}return path;};};/**\r\n     * Cardinal / Catmull-Rome spline interpolation is the default smoothing function in Chartist. It produces nice results where the splines will always meet the points. It produces some artifacts though when data values are increased or decreased rapidly. The line may not follow a very accurate path and if the line should be accurate this smoothing function does not produce the best results.\r\n     *\r\n     * Cardinal splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`.\r\n     *\r\n     * All smoothing functions within Chartist are factory functions that accept an options parameter. The cardinal interpolation function accepts one configuration parameter `tension`, between 0 and 1, which controls the smoothing intensity.\r\n     *\r\n     * @example\r\n     * var chart = new Chartist.Line('.ct-chart', {\r\n     *   labels: [1, 2, 3, 4, 5],\r\n     *   series: [[1, 2, 8, 1, 7]]\r\n     * }, {\r\n     *   lineSmooth: Chartist.Interpolation.cardinal({\r\n     *     tension: 1,\r\n     *     fillHoles: false\r\n     *   })\r\n     * });\r\n     *\r\n     * @memberof Chartist.Interpolation\r\n     * @param {Object} options The options of the cardinal factory function.\r\n     * @return {Function}\r\n     */Chartist.Interpolation.cardinal=function(options){var defaultOptions={tension:1,fillHoles:false};options=Chartist.extend({},defaultOptions,options);var t=Math.min(1,Math.max(0,options.tension)),c=1-t;return function cardinal(pathCoordinates,valueData){// First we try to split the coordinates into segments\n// This is necessary to treat \"holes\" in line charts\nvar segments=Chartist.splitIntoSegments(pathCoordinates,valueData,{fillHoles:options.fillHoles});if(!segments.length){// If there were no segments return 'Chartist.Interpolation.none'\nreturn Chartist.Interpolation.none()([]);}else if(segments.length>1){// If the split resulted in more that one segment we need to interpolate each segment individually and join them\n// afterwards together into a single path.\nvar paths=[];// For each segment we will recurse the cardinal function\nsegments.forEach(function(segment){paths.push(cardinal(segment.pathCoordinates,segment.valueData));});// Join the segment path data into a single path and return\nreturn Chartist.Svg.Path.join(paths);}else{// If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first\n// segment\npathCoordinates=segments[0].pathCoordinates;valueData=segments[0].valueData;// If less than two points we need to fallback to no smoothing\nif(pathCoordinates.length<=4){return Chartist.Interpolation.none()(pathCoordinates,valueData);}var path=new Chartist.Svg.Path().move(pathCoordinates[0],pathCoordinates[1],false,valueData[0]),z;for(var i=0,iLen=pathCoordinates.length;iLen-2*!z>i;i+=2){var p=[{x:+pathCoordinates[i-2],y:+pathCoordinates[i-1]},{x:+pathCoordinates[i],y:+pathCoordinates[i+1]},{x:+pathCoordinates[i+2],y:+pathCoordinates[i+3]},{x:+pathCoordinates[i+4],y:+pathCoordinates[i+5]}];if(z){if(!i){p[0]={x:+pathCoordinates[iLen-2],y:+pathCoordinates[iLen-1]};}else if(iLen-4===i){p[3]={x:+pathCoordinates[0],y:+pathCoordinates[1]};}else if(iLen-2===i){p[2]={x:+pathCoordinates[0],y:+pathCoordinates[1]};p[3]={x:+pathCoordinates[2],y:+pathCoordinates[3]};}}else{if(iLen-4===i){p[3]=p[2];}else if(!i){p[0]={x:+pathCoordinates[i],y:+pathCoordinates[i+1]};}}path.curve(t*(-p[0].x+6*p[1].x+p[2].x)/6+c*p[2].x,t*(-p[0].y+6*p[1].y+p[2].y)/6+c*p[2].y,t*(p[1].x+6*p[2].x-p[3].x)/6+c*p[2].x,t*(p[1].y+6*p[2].y-p[3].y)/6+c*p[2].y,p[2].x,p[2].y,false,valueData[(i+2)/2]);}return path;}};};/**\r\n     * Monotone Cubic spline interpolation produces a smooth curve which preserves monotonicity. Unlike cardinal splines, the curve will not extend beyond the range of y-values of the original data points.\r\n     *\r\n     * Monotone Cubic splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`.\r\n     *\r\n     * The x-values of subsequent points must be increasing to fit a Monotone Cubic spline. If this condition is not met for a pair of adjacent points, then there will be a break in the curve between those data points.\r\n     *\r\n     * All smoothing functions within Chartist are factory functions that accept an options parameter.\r\n     *\r\n     * @example\r\n     * var chart = new Chartist.Line('.ct-chart', {\r\n     *   labels: [1, 2, 3, 4, 5],\r\n     *   series: [[1, 2, 8, 1, 7]]\r\n     * }, {\r\n     *   lineSmooth: Chartist.Interpolation.monotoneCubic({\r\n     *     fillHoles: false\r\n     *   })\r\n     * });\r\n     *\r\n     * @memberof Chartist.Interpolation\r\n     * @param {Object} options The options of the monotoneCubic factory function.\r\n     * @return {Function}\r\n     */Chartist.Interpolation.monotoneCubic=function(options){var defaultOptions={fillHoles:false};options=Chartist.extend({},defaultOptions,options);return function monotoneCubic(pathCoordinates,valueData){// First we try to split the coordinates into segments\n// This is necessary to treat \"holes\" in line charts\nvar segments=Chartist.splitIntoSegments(pathCoordinates,valueData,{fillHoles:options.fillHoles,increasingX:true});if(!segments.length){// If there were no segments return 'Chartist.Interpolation.none'\nreturn Chartist.Interpolation.none()([]);}else if(segments.length>1){// If the split resulted in more that one segment we need to interpolate each segment individually and join them\n// afterwards together into a single path.\nvar paths=[];// For each segment we will recurse the monotoneCubic fn function\nsegments.forEach(function(segment){paths.push(monotoneCubic(segment.pathCoordinates,segment.valueData));});// Join the segment path data into a single path and return\nreturn Chartist.Svg.Path.join(paths);}else{// If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first\n// segment\npathCoordinates=segments[0].pathCoordinates;valueData=segments[0].valueData;// If less than three points we need to fallback to no smoothing\nif(pathCoordinates.length<=4){return Chartist.Interpolation.none()(pathCoordinates,valueData);}var xs=[],ys=[],i,n=pathCoordinates.length/2,ms=[],ds=[],dys=[],dxs=[],path;// Populate x and y coordinates into separate arrays, for readability\nfor(i=0;i<n;i++){xs[i]=pathCoordinates[i*2];ys[i]=pathCoordinates[i*2+1];}// Calculate deltas and derivative\nfor(i=0;i<n-1;i++){dys[i]=ys[i+1]-ys[i];dxs[i]=xs[i+1]-xs[i];ds[i]=dys[i]/dxs[i];}// Determine desired slope (m) at each point using Fritsch-Carlson method\n// See: http://math.stackexchange.com/questions/45218/implementation-of-monotone-cubic-interpolation\nms[0]=ds[0];ms[n-1]=ds[n-2];for(i=1;i<n-1;i++){if(ds[i]===0||ds[i-1]===0||ds[i-1]>0!==ds[i]>0){ms[i]=0;}else{ms[i]=3*(dxs[i-1]+dxs[i])/((2*dxs[i]+dxs[i-1])/ds[i-1]+(dxs[i]+2*dxs[i-1])/ds[i]);if(!isFinite(ms[i])){ms[i]=0;}}}// Now build a path from the slopes\npath=new Chartist.Svg.Path().move(xs[0],ys[0],false,valueData[0]);for(i=0;i<n-1;i++){path.curve(// First control point\nxs[i]+dxs[i]/3,ys[i]+ms[i]*dxs[i]/3,// Second control point\nxs[i+1]-dxs[i]/3,ys[i+1]-ms[i+1]*dxs[i]/3,// End point\nxs[i+1],ys[i+1],false,valueData[i+1]);}return path;}};};/**\r\n     * Step interpolation will cause the line chart to move in steps rather than diagonal or smoothed lines. This interpolation will create additional points that will also be drawn when the `showPoint` option is enabled.\r\n     *\r\n     * All smoothing functions within Chartist are factory functions that accept an options parameter. The step interpolation function accepts one configuration parameter `postpone`, that can be `true` or `false`. The default value is `true` and will cause the step to occur where the value actually changes. If a different behaviour is needed where the step is shifted to the left and happens before the actual value, this option can be set to `false`.\r\n     *\r\n     * @example\r\n     * var chart = new Chartist.Line('.ct-chart', {\r\n     *   labels: [1, 2, 3, 4, 5],\r\n     *   series: [[1, 2, 8, 1, 7]]\r\n     * }, {\r\n     *   lineSmooth: Chartist.Interpolation.step({\r\n     *     postpone: true,\r\n     *     fillHoles: false\r\n     *   })\r\n     * });\r\n     *\r\n     * @memberof Chartist.Interpolation\r\n     * @param options\r\n     * @returns {Function}\r\n     */Chartist.Interpolation.step=function(options){var defaultOptions={postpone:true,fillHoles:false};options=Chartist.extend({},defaultOptions,options);return function step(pathCoordinates,valueData){var path=new Chartist.Svg.Path();var prevX,prevY,prevData;for(var i=0;i<pathCoordinates.length;i+=2){var currX=pathCoordinates[i];var currY=pathCoordinates[i+1];var currData=valueData[i/2];// If the current point is also not a hole we can draw the step lines\nif(currData.value!==undefined){if(prevData===undefined){path.move(currX,currY,false,currData);}else{if(options.postpone){// If postponed we should draw the step line with the value of the previous value\npath.line(currX,prevY,false,prevData);}else{// If not postponed we should draw the step line with the value of the current value\npath.line(prevX,currY,false,currData);}// Line to the actual point (this should only be a Y-Axis movement\npath.line(currX,currY,false,currData);}prevX=currX;prevY=currY;prevData=currData;}else if(!options.fillHoles){prevX=prevY=prevData=undefined;}}return path;};};})(this||__webpack_require__.g,Chartist);;/**\r\n   * A very basic event module that helps to generate and catch events.\r\n   *\r\n   * @module Chartist.Event\r\n   */ /* global Chartist */(function(globalRoot,Chartist){'use strict';Chartist.EventEmitter=function(){var handlers=[];/**\r\n       * Add an event handler for a specific event\r\n       *\r\n       * @memberof Chartist.Event\r\n       * @param {String} event The event name\r\n       * @param {Function} handler A event handler function\r\n       */function addEventHandler(event,handler){handlers[event]=handlers[event]||[];handlers[event].push(handler);}/**\r\n       * Remove an event handler of a specific event name or remove all event handlers for a specific event.\r\n       *\r\n       * @memberof Chartist.Event\r\n       * @param {String} event The event name where a specific or all handlers should be removed\r\n       * @param {Function} [handler] An optional event handler function. If specified only this specific handler will be removed and otherwise all handlers are removed.\r\n       */function removeEventHandler(event,handler){// Only do something if there are event handlers with this name existing\nif(handlers[event]){// If handler is set we will look for a specific handler and only remove this\nif(handler){handlers[event].splice(handlers[event].indexOf(handler),1);if(handlers[event].length===0){delete handlers[event];}}else{// If no handler is specified we remove all handlers for this event\ndelete handlers[event];}}}/**\r\n       * Use this function to emit an event. All handlers that are listening for this event will be triggered with the data parameter.\r\n       *\r\n       * @memberof Chartist.Event\r\n       * @param {String} event The event name that should be triggered\r\n       * @param {*} data Arbitrary data that will be passed to the event handler callback functions\r\n       */function emit(event,data){// Only do something if there are event handlers with this name existing\nif(handlers[event]){handlers[event].forEach(function(handler){handler(data);});}// Emit event to star event handlers\nif(handlers['*']){handlers['*'].forEach(function(starHandler){starHandler(event,data);});}}return{addEventHandler:addEventHandler,removeEventHandler:removeEventHandler,emit:emit};};})(this||__webpack_require__.g,Chartist);;/**\r\n   * This module provides some basic prototype inheritance utilities.\r\n   *\r\n   * @module Chartist.Class\r\n   */ /* global Chartist */(function(globalRoot,Chartist){'use strict';function listToArray(list){var arr=[];if(list.length){for(var i=0;i<list.length;i++){arr.push(list[i]);}}return arr;}/**\r\n     * Method to extend from current prototype.\r\n     *\r\n     * @memberof Chartist.Class\r\n     * @param {Object} properties The object that serves as definition for the prototype that gets created for the new class. This object should always contain a constructor property that is the desired constructor for the newly created class.\r\n     * @param {Object} [superProtoOverride] By default extens will use the current class prototype or Chartist.class. With this parameter you can specify any super prototype that will be used.\r\n     * @return {Function} Constructor function of the new class\r\n     *\r\n     * @example\r\n     * var Fruit = Class.extend({\r\n       * color: undefined,\r\n       *   sugar: undefined,\r\n       *\r\n       *   constructor: function(color, sugar) {\r\n       *     this.color = color;\r\n       *     this.sugar = sugar;\r\n       *   },\r\n       *\r\n       *   eat: function() {\r\n       *     this.sugar = 0;\r\n       *     return this;\r\n       *   }\r\n       * });\r\n     *\r\n     * var Banana = Fruit.extend({\r\n       *   length: undefined,\r\n       *\r\n       *   constructor: function(length, sugar) {\r\n       *     Banana.super.constructor.call(this, 'Yellow', sugar);\r\n       *     this.length = length;\r\n       *   }\r\n       * });\r\n     *\r\n     * var banana = new Banana(20, 40);\r\n     * console.log('banana instanceof Fruit', banana instanceof Fruit);\r\n     * console.log('Fruit is prototype of banana', Fruit.prototype.isPrototypeOf(banana));\r\n     * console.log('bananas prototype is Fruit', Object.getPrototypeOf(banana) === Fruit.prototype);\r\n     * console.log(banana.sugar);\r\n     * console.log(banana.eat().sugar);\r\n     * console.log(banana.color);\r\n     */function extend(properties,superProtoOverride){var superProto=superProtoOverride||this.prototype||Chartist.Class;var proto=Object.create(superProto);Chartist.Class.cloneDefinitions(proto,properties);var constr=function(){var fn=proto.constructor||function(){},instance;// If this is linked to the Chartist namespace the constructor was not called with new\n// To provide a fallback we will instantiate here and return the instance\ninstance=this===Chartist?Object.create(proto):this;fn.apply(instance,Array.prototype.slice.call(arguments,0));// If this constructor was not called with new we need to return the instance\n// This will not harm when the constructor has been called with new as the returned value is ignored\nreturn instance;};constr.prototype=proto;constr.super=superProto;constr.extend=this.extend;return constr;}// Variable argument list clones args > 0 into args[0] and retruns modified args[0]\nfunction cloneDefinitions(){var args=listToArray(arguments);var target=args[0];args.splice(1,args.length-1).forEach(function(source){Object.getOwnPropertyNames(source).forEach(function(propName){// If this property already exist in target we delete it first\ndelete target[propName];// Define the property with the descriptor from source\nObject.defineProperty(target,propName,Object.getOwnPropertyDescriptor(source,propName));});});return target;}Chartist.Class={extend:extend,cloneDefinitions:cloneDefinitions};})(this||__webpack_require__.g,Chartist);;/**\r\n   * Base for all chart types. The methods in Chartist.Base are inherited to all chart types.\r\n   *\r\n   * @module Chartist.Base\r\n   */ /* global Chartist */(function(globalRoot,Chartist){'use strict';var window=globalRoot.window;// TODO: Currently we need to re-draw the chart on window resize. This is usually very bad and will affect performance.\n// This is done because we can't work with relative coordinates when drawing the chart because SVG Path does not\n// work with relative positions yet. We need to check if we can do a viewBox hack to switch to percentage.\n// See http://mozilla.6506.n7.nabble.com/Specyfing-paths-with-percentages-unit-td247474.html\n// Update: can be done using the above method tested here: http://codepen.io/gionkunz/pen/KDvLj\n// The problem is with the label offsets that can't be converted into percentage and affecting the chart container\n/**\r\n     * Updates the chart which currently does a full reconstruction of the SVG DOM\r\n     *\r\n     * @param {Object} [data] Optional data you'd like to set for the chart before it will update. If not specified the update method will use the data that is already configured with the chart.\r\n     * @param {Object} [options] Optional options you'd like to add to the previous options for the chart before it will update. If not specified the update method will use the options that have been already configured with the chart.\r\n     * @param {Boolean} [override] If set to true, the passed options will be used to extend the options that have been configured already. Otherwise the chart default options will be used as the base\r\n     * @memberof Chartist.Base\r\n     */function update(data,options,override){if(data){this.data=data||{};this.data.labels=this.data.labels||[];this.data.series=this.data.series||[];// Event for data transformation that allows to manipulate the data before it gets rendered in the charts\nthis.eventEmitter.emit('data',{type:'update',data:this.data});}if(options){this.options=Chartist.extend({},override?this.options:this.defaultOptions,options);// If chartist was not initialized yet, we just set the options and leave the rest to the initialization\n// Otherwise we re-create the optionsProvider at this point\nif(!this.initializeTimeoutId){this.optionsProvider.removeMediaQueryListeners();this.optionsProvider=Chartist.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter);}}// Only re-created the chart if it has been initialized yet\nif(!this.initializeTimeoutId){this.createChart(this.optionsProvider.getCurrentOptions());}// Return a reference to the chart object to chain up calls\nreturn this;}/**\r\n     * This method can be called on the API object of each chart and will un-register all event listeners that were added to other components. This currently includes a window.resize listener as well as media query listeners if any responsive options have been provided. Use this function if you need to destroy and recreate Chartist charts dynamically.\r\n     *\r\n     * @memberof Chartist.Base\r\n     */function detach(){// Only detach if initialization already occurred on this chart. If this chart still hasn't initialized (therefore\n// the initializationTimeoutId is still a valid timeout reference, we will clear the timeout\nif(!this.initializeTimeoutId){window.removeEventListener('resize',this.resizeListener);this.optionsProvider.removeMediaQueryListeners();}else{window.clearTimeout(this.initializeTimeoutId);}return this;}/**\r\n     * Use this function to register event handlers. The handler callbacks are synchronous and will run in the main thread rather than the event loop.\r\n     *\r\n     * @memberof Chartist.Base\r\n     * @param {String} event Name of the event. Check the examples for supported events.\r\n     * @param {Function} handler The handler function that will be called when an event with the given name was emitted. This function will receive a data argument which contains event data. See the example for more details.\r\n     */function on(event,handler){this.eventEmitter.addEventHandler(event,handler);return this;}/**\r\n     * Use this function to un-register event handlers. If the handler function parameter is omitted all handlers for the given event will be un-registered.\r\n     *\r\n     * @memberof Chartist.Base\r\n     * @param {String} event Name of the event for which a handler should be removed\r\n     * @param {Function} [handler] The handler function that that was previously used to register a new event handler. This handler will be removed from the event handler list. If this parameter is omitted then all event handlers for the given event are removed from the list.\r\n     */function off(event,handler){this.eventEmitter.removeEventHandler(event,handler);return this;}function initialize(){// Add window resize listener that re-creates the chart\nwindow.addEventListener('resize',this.resizeListener);// Obtain current options based on matching media queries (if responsive options are given)\n// This will also register a listener that is re-creating the chart based on media changes\nthis.optionsProvider=Chartist.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter);// Register options change listener that will trigger a chart update\nthis.eventEmitter.addEventHandler('optionsChanged',function(){this.update();}.bind(this));// Before the first chart creation we need to register us with all plugins that are configured\n// Initialize all relevant plugins with our chart object and the plugin options specified in the config\nif(this.options.plugins){this.options.plugins.forEach(function(plugin){if(plugin instanceof Array){plugin[0](this,plugin[1]);}else{plugin(this);}}.bind(this));}// Event for data transformation that allows to manipulate the data before it gets rendered in the charts\nthis.eventEmitter.emit('data',{type:'initial',data:this.data});// Create the first chart\nthis.createChart(this.optionsProvider.getCurrentOptions());// As chart is initialized from the event loop now we can reset our timeout reference\n// This is important if the chart gets initialized on the same element twice\nthis.initializeTimeoutId=undefined;}/**\r\n     * Constructor of chart base class.\r\n     *\r\n     * @param query\r\n     * @param data\r\n     * @param defaultOptions\r\n     * @param options\r\n     * @param responsiveOptions\r\n     * @constructor\r\n     */function Base(query,data,defaultOptions,options,responsiveOptions){this.container=Chartist.querySelector(query);this.data=data||{};this.data.labels=this.data.labels||[];this.data.series=this.data.series||[];this.defaultOptions=defaultOptions;this.options=options;this.responsiveOptions=responsiveOptions;this.eventEmitter=Chartist.EventEmitter();this.supportsForeignObject=Chartist.Svg.isSupported('Extensibility');this.supportsAnimations=Chartist.Svg.isSupported('AnimationEventsAttribute');this.resizeListener=function resizeListener(){this.update();}.bind(this);if(this.container){// If chartist was already initialized in this container we are detaching all event listeners first\nif(this.container.__chartist__){this.container.__chartist__.detach();}this.container.__chartist__=this;}// Using event loop for first draw to make it possible to register event listeners in the same call stack where\n// the chart was created.\nthis.initializeTimeoutId=setTimeout(initialize.bind(this),0);}// Creating the chart base class\nChartist.Base=Chartist.Class.extend({constructor:Base,optionsProvider:undefined,container:undefined,svg:undefined,eventEmitter:undefined,createChart:function(){throw new Error('Base chart type can\\'t be instantiated!');},update:update,detach:detach,on:on,off:off,version:Chartist.version,supportsForeignObject:false});})(this||__webpack_require__.g,Chartist);;/**\r\n   * Chartist SVG module for simple SVG DOM abstraction\r\n   *\r\n   * @module Chartist.Svg\r\n   */ /* global Chartist */(function(globalRoot,Chartist){'use strict';var document=globalRoot.document;/**\r\n     * Chartist.Svg creates a new SVG object wrapper with a starting element. You can use the wrapper to fluently create sub-elements and modify them.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @constructor\r\n     * @param {String|Element} name The name of the SVG element to create or an SVG dom element which should be wrapped into Chartist.Svg\r\n     * @param {Object} attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added.\r\n     * @param {String} className This class or class list will be added to the SVG element\r\n     * @param {Object} parent The parent SVG wrapper object where this newly created wrapper and it's element will be attached to as child\r\n     * @param {Boolean} insertFirst If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element\r\n     */function Svg(name,attributes,className,parent,insertFirst){// If Svg is getting called with an SVG element we just return the wrapper\nif(name instanceof Element){this._node=name;}else{this._node=document.createElementNS(Chartist.namespaces.svg,name);// If this is an SVG element created then custom namespace\nif(name==='svg'){this.attr({'xmlns:ct':Chartist.namespaces.ct});}}if(attributes){this.attr(attributes);}if(className){this.addClass(className);}if(parent){if(insertFirst&&parent._node.firstChild){parent._node.insertBefore(this._node,parent._node.firstChild);}else{parent._node.appendChild(this._node);}}}/**\r\n     * Set attributes on the current SVG element of the wrapper you're currently working on.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @param {Object|String} attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added. If this parameter is a String then the function is used as a getter and will return the attribute value.\r\n     * @param {String} [ns] If specified, the attribute will be obtained using getAttributeNs. In order to write namepsaced attributes you can use the namespace:attribute notation within the attributes object.\r\n     * @return {Object|String} The current wrapper object will be returned so it can be used for chaining or the attribute value if used as getter function.\r\n     */function attr(attributes,ns){if(typeof attributes==='string'){if(ns){return this._node.getAttributeNS(ns,attributes);}else{return this._node.getAttribute(attributes);}}Object.keys(attributes).forEach(function(key){// If the attribute value is undefined we can skip this one\nif(attributes[key]===undefined){return;}if(key.indexOf(':')!==-1){var namespacedAttribute=key.split(':');this._node.setAttributeNS(Chartist.namespaces[namespacedAttribute[0]],key,attributes[key]);}else{this._node.setAttribute(key,attributes[key]);}}.bind(this));return this;}/**\r\n     * Create a new SVG element whose wrapper object will be selected for further operations. This way you can also create nested groups easily.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @param {String} name The name of the SVG element that should be created as child element of the currently selected element wrapper\r\n     * @param {Object} [attributes] An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added.\r\n     * @param {String} [className] This class or class list will be added to the SVG element\r\n     * @param {Boolean} [insertFirst] If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element\r\n     * @return {Chartist.Svg} Returns a Chartist.Svg wrapper object that can be used to modify the containing SVG data\r\n     */function elem(name,attributes,className,insertFirst){return new Chartist.Svg(name,attributes,className,this,insertFirst);}/**\r\n     * Returns the parent Chartist.SVG wrapper object\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @return {Chartist.Svg} Returns a Chartist.Svg wrapper around the parent node of the current node. If the parent node is not existing or it's not an SVG node then this function will return null.\r\n     */function parent(){return this._node.parentNode instanceof SVGElement?new Chartist.Svg(this._node.parentNode):null;}/**\r\n     * This method returns a Chartist.Svg wrapper around the root SVG element of the current tree.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @return {Chartist.Svg} The root SVG element wrapped in a Chartist.Svg element\r\n     */function root(){var node=this._node;while(node.nodeName!=='svg'){node=node.parentNode;}return new Chartist.Svg(node);}/**\r\n     * Find the first child SVG element of the current element that matches a CSS selector. The returned object is a Chartist.Svg wrapper.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @param {String} selector A CSS selector that is used to query for child SVG elements\r\n     * @return {Chartist.Svg} The SVG wrapper for the element found or null if no element was found\r\n     */function querySelector(selector){var foundNode=this._node.querySelector(selector);return foundNode?new Chartist.Svg(foundNode):null;}/**\r\n     * Find the all child SVG elements of the current element that match a CSS selector. The returned object is a Chartist.Svg.List wrapper.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @param {String} selector A CSS selector that is used to query for child SVG elements\r\n     * @return {Chartist.Svg.List} The SVG wrapper list for the element found or null if no element was found\r\n     */function querySelectorAll(selector){var foundNodes=this._node.querySelectorAll(selector);return foundNodes.length?new Chartist.Svg.List(foundNodes):null;}/**\r\n     * Returns the underlying SVG node for the current element.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @returns {Node}\r\n     */function getNode(){return this._node;}/**\r\n     * This method creates a foreignObject (see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject) that allows to embed HTML content into a SVG graphic. With the help of foreignObjects you can enable the usage of regular HTML elements inside of SVG where they are subject for SVG positioning and transformation but the Browser will use the HTML rendering capabilities for the containing DOM.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @param {Node|String} content The DOM Node, or HTML string that will be converted to a DOM Node, that is then placed into and wrapped by the foreignObject\r\n     * @param {String} [attributes] An object with properties that will be added as attributes to the foreignObject element that is created. Attributes with undefined values will not be added.\r\n     * @param {String} [className] This class or class list will be added to the SVG element\r\n     * @param {Boolean} [insertFirst] Specifies if the foreignObject should be inserted as first child\r\n     * @return {Chartist.Svg} New wrapper object that wraps the foreignObject element\r\n     */function foreignObject(content,attributes,className,insertFirst){// If content is string then we convert it to DOM\n// TODO: Handle case where content is not a string nor a DOM Node\nif(typeof content==='string'){var container=document.createElement('div');container.innerHTML=content;content=container.firstChild;}// Adding namespace to content element\ncontent.setAttribute('xmlns',Chartist.namespaces.xmlns);// Creating the foreignObject without required extension attribute (as described here\n// http://www.w3.org/TR/SVG/extend.html#ForeignObjectElement)\nvar fnObj=this.elem('foreignObject',attributes,className,insertFirst);// Add content to foreignObjectElement\nfnObj._node.appendChild(content);return fnObj;}/**\r\n     * This method adds a new text element to the current Chartist.Svg wrapper.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @param {String} t The text that should be added to the text element that is created\r\n     * @return {Chartist.Svg} The same wrapper object that was used to add the newly created element\r\n     */function text(t){this._node.appendChild(document.createTextNode(t));return this;}/**\r\n     * This method will clear all child nodes of the current wrapper object.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @return {Chartist.Svg} The same wrapper object that got emptied\r\n     */function empty(){while(this._node.firstChild){this._node.removeChild(this._node.firstChild);}return this;}/**\r\n     * This method will cause the current wrapper to remove itself from its parent wrapper. Use this method if you'd like to get rid of an element in a given DOM structure.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @return {Chartist.Svg} The parent wrapper object of the element that got removed\r\n     */function remove(){this._node.parentNode.removeChild(this._node);return this.parent();}/**\r\n     * This method will replace the element with a new element that can be created outside of the current DOM.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @param {Chartist.Svg} newElement The new Chartist.Svg object that will be used to replace the current wrapper object\r\n     * @return {Chartist.Svg} The wrapper of the new element\r\n     */function replace(newElement){this._node.parentNode.replaceChild(newElement._node,this._node);return newElement;}/**\r\n     * This method will append an element to the current element as a child.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @param {Chartist.Svg} element The Chartist.Svg element that should be added as a child\r\n     * @param {Boolean} [insertFirst] Specifies if the element should be inserted as first child\r\n     * @return {Chartist.Svg} The wrapper of the appended object\r\n     */function append(element,insertFirst){if(insertFirst&&this._node.firstChild){this._node.insertBefore(element._node,this._node.firstChild);}else{this._node.appendChild(element._node);}return this;}/**\r\n     * Returns an array of class names that are attached to the current wrapper element. This method can not be chained further.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @return {Array} A list of classes or an empty array if there are no classes on the current element\r\n     */function classes(){return this._node.getAttribute('class')?this._node.getAttribute('class').trim().split(/\\s+/):[];}/**\r\n     * Adds one or a space separated list of classes to the current element and ensures the classes are only existing once.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @param {String} names A white space separated list of class names\r\n     * @return {Chartist.Svg} The wrapper of the current element\r\n     */function addClass(names){this._node.setAttribute('class',this.classes(this._node).concat(names.trim().split(/\\s+/)).filter(function(elem,pos,self){return self.indexOf(elem)===pos;}).join(' '));return this;}/**\r\n     * Removes one or a space separated list of classes from the current element.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @param {String} names A white space separated list of class names\r\n     * @return {Chartist.Svg} The wrapper of the current element\r\n     */function removeClass(names){var removedClasses=names.trim().split(/\\s+/);this._node.setAttribute('class',this.classes(this._node).filter(function(name){return removedClasses.indexOf(name)===-1;}).join(' '));return this;}/**\r\n     * Removes all classes from the current element.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @return {Chartist.Svg} The wrapper of the current element\r\n     */function removeAllClasses(){this._node.setAttribute('class','');return this;}/**\r\n     * Get element height using `getBoundingClientRect`\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @return {Number} The elements height in pixels\r\n     */function height(){return this._node.getBoundingClientRect().height;}/**\r\n     * Get element width using `getBoundingClientRect`\r\n     *\r\n     * @memberof Chartist.Core\r\n     * @return {Number} The elements width in pixels\r\n     */function width(){return this._node.getBoundingClientRect().width;}/**\r\n     * The animate function lets you animate the current element with SMIL animations. You can add animations for multiple attributes at the same time by using an animation definition object. This object should contain SMIL animation attributes. Please refer to http://www.w3.org/TR/SVG/animate.html for a detailed specification about the available animation attributes. Additionally an easing property can be passed in the animation definition object. This can be a string with a name of an easing function in `Chartist.Svg.Easing` or an array with four numbers specifying a cubic Bézier curve.\r\n     * **An animations object could look like this:**\r\n     * ```javascript\r\n     * element.animate({\r\n     *   opacity: {\r\n     *     dur: 1000,\r\n     *     from: 0,\r\n     *     to: 1\r\n     *   },\r\n     *   x1: {\r\n     *     dur: '1000ms',\r\n     *     from: 100,\r\n     *     to: 200,\r\n     *     easing: 'easeOutQuart'\r\n     *   },\r\n     *   y1: {\r\n     *     dur: '2s',\r\n     *     from: 0,\r\n     *     to: 100\r\n     *   }\r\n     * });\r\n     * ```\r\n     * **Automatic unit conversion**\r\n     * For the `dur` and the `begin` animate attribute you can also omit a unit by passing a number. The number will automatically be converted to milli seconds.\r\n     * **Guided mode**\r\n     * The default behavior of SMIL animations with offset using the `begin` attribute is that the attribute will keep it's original value until the animation starts. Mostly this behavior is not desired as you'd like to have your element attributes already initialized with the animation `from` value even before the animation starts. Also if you don't specify `fill=\"freeze\"` on an animate element or if you delete the animation after it's done (which is done in guided mode) the attribute will switch back to the initial value. This behavior is also not desired when performing simple one-time animations. For one-time animations you'd want to trigger animations immediately instead of relative to the document begin time. That's why in guided mode Chartist.Svg will also use the `begin` property to schedule a timeout and manually start the animation after the timeout. If you're using multiple SMIL definition objects for an attribute (in an array), guided mode will be disabled for this attribute, even if you explicitly enabled it.\r\n     * If guided mode is enabled the following behavior is added:\r\n     * - Before the animation starts (even when delayed with `begin`) the animated attribute will be set already to the `from` value of the animation\r\n     * - `begin` is explicitly set to `indefinite` so it can be started manually without relying on document begin time (creation)\r\n     * - The animate element will be forced to use `fill=\"freeze\"`\r\n     * - The animation will be triggered with `beginElement()` in a timeout where `begin` of the definition object is interpreted in milli seconds. If no `begin` was specified the timeout is triggered immediately.\r\n     * - After the animation the element attribute value will be set to the `to` value of the animation\r\n     * - The animate element is deleted from the DOM\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @param {Object} animations An animations object where the property keys are the attributes you'd like to animate. The properties should be objects again that contain the SMIL animation attributes (usually begin, dur, from, and to). The property begin and dur is auto converted (see Automatic unit conversion). You can also schedule multiple animations for the same attribute by passing an Array of SMIL definition objects. Attributes that contain an array of SMIL definition objects will not be executed in guided mode.\r\n     * @param {Boolean} guided Specify if guided mode should be activated for this animation (see Guided mode). If not otherwise specified, guided mode will be activated.\r\n     * @param {Object} eventEmitter If specified, this event emitter will be notified when an animation starts or ends.\r\n     * @return {Chartist.Svg} The current element where the animation was added\r\n     */function animate(animations,guided,eventEmitter){if(guided===undefined){guided=true;}Object.keys(animations).forEach(function createAnimateForAttributes(attribute){function createAnimate(animationDefinition,guided){var attributeProperties={},animate,timeout,easing;// Check if an easing is specified in the definition object and delete it from the object as it will not\n// be part of the animate element attributes.\nif(animationDefinition.easing){// If already an easing Bézier curve array we take it or we lookup a easing array in the Easing object\neasing=animationDefinition.easing instanceof Array?animationDefinition.easing:Chartist.Svg.Easing[animationDefinition.easing];delete animationDefinition.easing;}// If numeric dur or begin was provided we assume milli seconds\nanimationDefinition.begin=Chartist.ensureUnit(animationDefinition.begin,'ms');animationDefinition.dur=Chartist.ensureUnit(animationDefinition.dur,'ms');if(easing){animationDefinition.calcMode='spline';animationDefinition.keySplines=easing.join(' ');animationDefinition.keyTimes='0;1';}// Adding \"fill: freeze\" if we are in guided mode and set initial attribute values\nif(guided){animationDefinition.fill='freeze';// Animated property on our element should already be set to the animation from value in guided mode\nattributeProperties[attribute]=animationDefinition.from;this.attr(attributeProperties);// In guided mode we also set begin to indefinite so we can trigger the start manually and put the begin\n// which needs to be in ms aside\ntimeout=Chartist.quantity(animationDefinition.begin||0).value;animationDefinition.begin='indefinite';}animate=this.elem('animate',Chartist.extend({attributeName:attribute},animationDefinition));if(guided){// If guided we take the value that was put aside in timeout and trigger the animation manually with a timeout\nsetTimeout(function(){// If beginElement fails we set the animated attribute to the end position and remove the animate element\n// This happens if the SMIL ElementTimeControl interface is not supported or any other problems occured in\n// the browser. (Currently FF 34 does not support animate elements in foreignObjects)\ntry{animate._node.beginElement();}catch(err){// Set animated attribute to current animated value\nattributeProperties[attribute]=animationDefinition.to;this.attr(attributeProperties);// Remove the animate element as it's no longer required\nanimate.remove();}}.bind(this),timeout);}if(eventEmitter){animate._node.addEventListener('beginEvent',function handleBeginEvent(){eventEmitter.emit('animationBegin',{element:this,animate:animate._node,params:animationDefinition});}.bind(this));}animate._node.addEventListener('endEvent',function handleEndEvent(){if(eventEmitter){eventEmitter.emit('animationEnd',{element:this,animate:animate._node,params:animationDefinition});}if(guided){// Set animated attribute to current animated value\nattributeProperties[attribute]=animationDefinition.to;this.attr(attributeProperties);// Remove the animate element as it's no longer required\nanimate.remove();}}.bind(this));}// If current attribute is an array of definition objects we create an animate for each and disable guided mode\nif(animations[attribute]instanceof Array){animations[attribute].forEach(function(animationDefinition){createAnimate.bind(this)(animationDefinition,false);}.bind(this));}else{createAnimate.bind(this)(animations[attribute],guided);}}.bind(this));return this;}Chartist.Svg=Chartist.Class.extend({constructor:Svg,attr:attr,elem:elem,parent:parent,root:root,querySelector:querySelector,querySelectorAll:querySelectorAll,getNode:getNode,foreignObject:foreignObject,text:text,empty:empty,remove:remove,replace:replace,append:append,classes:classes,addClass:addClass,removeClass:removeClass,removeAllClasses:removeAllClasses,height:height,width:width,animate:animate});/**\r\n     * This method checks for support of a given SVG feature like Extensibility, SVG-animation or the like. Check http://www.w3.org/TR/SVG11/feature for a detailed list.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @param {String} feature The SVG 1.1 feature that should be checked for support.\r\n     * @return {Boolean} True of false if the feature is supported or not\r\n     */Chartist.Svg.isSupported=function(feature){return document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#'+feature,'1.1');};/**\r\n     * This Object contains some standard easing cubic bezier curves. Then can be used with their name in the `Chartist.Svg.animate`. You can also extend the list and use your own name in the `animate` function. Click the show code button to see the available bezier functions.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     */var easingCubicBeziers={easeInSine:[0.47,0,0.745,0.715],easeOutSine:[0.39,0.575,0.565,1],easeInOutSine:[0.445,0.05,0.55,0.95],easeInQuad:[0.55,0.085,0.68,0.53],easeOutQuad:[0.25,0.46,0.45,0.94],easeInOutQuad:[0.455,0.03,0.515,0.955],easeInCubic:[0.55,0.055,0.675,0.19],easeOutCubic:[0.215,0.61,0.355,1],easeInOutCubic:[0.645,0.045,0.355,1],easeInQuart:[0.895,0.03,0.685,0.22],easeOutQuart:[0.165,0.84,0.44,1],easeInOutQuart:[0.77,0,0.175,1],easeInQuint:[0.755,0.05,0.855,0.06],easeOutQuint:[0.23,1,0.32,1],easeInOutQuint:[0.86,0,0.07,1],easeInExpo:[0.95,0.05,0.795,0.035],easeOutExpo:[0.19,1,0.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[0.6,0.04,0.98,0.335],easeOutCirc:[0.075,0.82,0.165,1],easeInOutCirc:[0.785,0.135,0.15,0.86],easeInBack:[0.6,-0.28,0.735,0.045],easeOutBack:[0.175,0.885,0.32,1.275],easeInOutBack:[0.68,-0.55,0.265,1.55]};Chartist.Svg.Easing=easingCubicBeziers;/**\r\n     * This helper class is to wrap multiple `Chartist.Svg` elements into a list where you can call the `Chartist.Svg` functions on all elements in the list with one call. This is helpful when you'd like to perform calls with `Chartist.Svg` on multiple elements.\r\n     * An instance of this class is also returned by `Chartist.Svg.querySelectorAll`.\r\n     *\r\n     * @memberof Chartist.Svg\r\n     * @param {Array<Node>|NodeList} nodeList An Array of SVG DOM nodes or a SVG DOM NodeList (as returned by document.querySelectorAll)\r\n     * @constructor\r\n     */function SvgList(nodeList){var list=this;this.svgElements=[];for(var i=0;i<nodeList.length;i++){this.svgElements.push(new Chartist.Svg(nodeList[i]));}// Add delegation methods for Chartist.Svg\nObject.keys(Chartist.Svg.prototype).filter(function(prototypeProperty){return['constructor','parent','querySelector','querySelectorAll','replace','append','classes','height','width'].indexOf(prototypeProperty)===-1;}).forEach(function(prototypeProperty){list[prototypeProperty]=function(){var args=Array.prototype.slice.call(arguments,0);list.svgElements.forEach(function(element){Chartist.Svg.prototype[prototypeProperty].apply(element,args);});return list;};});}Chartist.Svg.List=Chartist.Class.extend({constructor:SvgList});})(this||__webpack_require__.g,Chartist);;/**\r\n   * Chartist SVG path module for SVG path description creation and modification.\r\n   *\r\n   * @module Chartist.Svg.Path\r\n   */ /* global Chartist */(function(globalRoot,Chartist){'use strict';/**\r\n     * Contains the descriptors of supported element types in a SVG path. Currently only move, line and curve are supported.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @type {Object}\r\n     */var elementDescriptions={m:['x','y'],l:['x','y'],c:['x1','y1','x2','y2','x','y'],a:['rx','ry','xAr','lAf','sf','x','y']};/**\r\n     * Default options for newly created SVG path objects.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @type {Object}\r\n     */var defaultOptions={// The accuracy in digit count after the decimal point. This will be used to round numbers in the SVG path. If this option is set to false then no rounding will be performed.\naccuracy:3};function element(command,params,pathElements,pos,relative,data){var pathElement=Chartist.extend({command:relative?command.toLowerCase():command.toUpperCase()},params,data?{data:data}:{});pathElements.splice(pos,0,pathElement);}function forEachParam(pathElements,cb){pathElements.forEach(function(pathElement,pathElementIndex){elementDescriptions[pathElement.command.toLowerCase()].forEach(function(paramName,paramIndex){cb(pathElement,paramName,pathElementIndex,paramIndex,pathElements);});});}/**\r\n     * Used to construct a new path object.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @param {Boolean} close If set to true then this path will be closed when stringified (with a Z at the end)\r\n     * @param {Object} options Options object that overrides the default objects. See default options for more details.\r\n     * @constructor\r\n     */function SvgPath(close,options){this.pathElements=[];this.pos=0;this.close=close;this.options=Chartist.extend({},defaultOptions,options);}/**\r\n     * Gets or sets the current position (cursor) inside of the path. You can move around the cursor freely but limited to 0 or the count of existing elements. All modifications with element functions will insert new elements at the position of this cursor.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @param {Number} [pos] If a number is passed then the cursor is set to this position in the path element array.\r\n     * @return {Chartist.Svg.Path|Number} If the position parameter was passed then the return value will be the path object for easy call chaining. If no position parameter was passed then the current position is returned.\r\n     */function position(pos){if(pos!==undefined){this.pos=Math.max(0,Math.min(this.pathElements.length,pos));return this;}else{return this.pos;}}/**\r\n     * Removes elements from the path starting at the current position.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @param {Number} count Number of path elements that should be removed from the current position.\r\n     * @return {Chartist.Svg.Path} The current path object for easy call chaining.\r\n     */function remove(count){this.pathElements.splice(this.pos,count);return this;}/**\r\n     * Use this function to add a new move SVG path element.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @param {Number} x The x coordinate for the move element.\r\n     * @param {Number} y The y coordinate for the move element.\r\n     * @param {Boolean} [relative] If set to true the move element will be created with relative coordinates (lowercase letter)\r\n     * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\r\n     * @return {Chartist.Svg.Path} The current path object for easy call chaining.\r\n     */function move(x,y,relative,data){element('M',{x:+x,y:+y},this.pathElements,this.pos++,relative,data);return this;}/**\r\n     * Use this function to add a new line SVG path element.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @param {Number} x The x coordinate for the line element.\r\n     * @param {Number} y The y coordinate for the line element.\r\n     * @param {Boolean} [relative] If set to true the line element will be created with relative coordinates (lowercase letter)\r\n     * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\r\n     * @return {Chartist.Svg.Path} The current path object for easy call chaining.\r\n     */function line(x,y,relative,data){element('L',{x:+x,y:+y},this.pathElements,this.pos++,relative,data);return this;}/**\r\n     * Use this function to add a new curve SVG path element.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @param {Number} x1 The x coordinate for the first control point of the bezier curve.\r\n     * @param {Number} y1 The y coordinate for the first control point of the bezier curve.\r\n     * @param {Number} x2 The x coordinate for the second control point of the bezier curve.\r\n     * @param {Number} y2 The y coordinate for the second control point of the bezier curve.\r\n     * @param {Number} x The x coordinate for the target point of the curve element.\r\n     * @param {Number} y The y coordinate for the target point of the curve element.\r\n     * @param {Boolean} [relative] If set to true the curve element will be created with relative coordinates (lowercase letter)\r\n     * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\r\n     * @return {Chartist.Svg.Path} The current path object for easy call chaining.\r\n     */function curve(x1,y1,x2,y2,x,y,relative,data){element('C',{x1:+x1,y1:+y1,x2:+x2,y2:+y2,x:+x,y:+y},this.pathElements,this.pos++,relative,data);return this;}/**\r\n     * Use this function to add a new non-bezier curve SVG path element.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @param {Number} rx The radius to be used for the x-axis of the arc.\r\n     * @param {Number} ry The radius to be used for the y-axis of the arc.\r\n     * @param {Number} xAr Defines the orientation of the arc\r\n     * @param {Number} lAf Large arc flag\r\n     * @param {Number} sf Sweep flag\r\n     * @param {Number} x The x coordinate for the target point of the curve element.\r\n     * @param {Number} y The y coordinate for the target point of the curve element.\r\n     * @param {Boolean} [relative] If set to true the curve element will be created with relative coordinates (lowercase letter)\r\n     * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\r\n     * @return {Chartist.Svg.Path} The current path object for easy call chaining.\r\n     */function arc(rx,ry,xAr,lAf,sf,x,y,relative,data){element('A',{rx:+rx,ry:+ry,xAr:+xAr,lAf:+lAf,sf:+sf,x:+x,y:+y},this.pathElements,this.pos++,relative,data);return this;}/**\r\n     * Parses an SVG path seen in the d attribute of path elements, and inserts the parsed elements into the existing path object at the current cursor position. Any closing path indicators (Z at the end of the path) will be ignored by the parser as this is provided by the close option in the options of the path object.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @param {String} path Any SVG path that contains move (m), line (l) or curve (c) components.\r\n     * @return {Chartist.Svg.Path} The current path object for easy call chaining.\r\n     */function parse(path){// Parsing the SVG path string into an array of arrays [['M', '10', '10'], ['L', '100', '100']]\nvar chunks=path.replace(/([A-Za-z])([0-9])/g,'$1 $2').replace(/([0-9])([A-Za-z])/g,'$1 $2').split(/[\\s,]+/).reduce(function(result,element){if(element.match(/[A-Za-z]/)){result.push([]);}result[result.length-1].push(element);return result;},[]);// If this is a closed path we remove the Z at the end because this is determined by the close option\nif(chunks[chunks.length-1][0].toUpperCase()==='Z'){chunks.pop();}// Using svgPathElementDescriptions to map raw path arrays into objects that contain the command and the parameters\n// For example {command: 'M', x: '10', y: '10'}\nvar elements=chunks.map(function(chunk){var command=chunk.shift(),description=elementDescriptions[command.toLowerCase()];return Chartist.extend({command:command},description.reduce(function(result,paramName,index){result[paramName]=+chunk[index];return result;},{}));});// Preparing a splice call with the elements array as var arg params and insert the parsed elements at the current position\nvar spliceArgs=[this.pos,0];Array.prototype.push.apply(spliceArgs,elements);Array.prototype.splice.apply(this.pathElements,spliceArgs);// Increase the internal position by the element count\nthis.pos+=elements.length;return this;}/**\r\n     * This function renders to current SVG path object into a final SVG string that can be used in the d attribute of SVG path elements. It uses the accuracy option to round big decimals. If the close parameter was set in the constructor of this path object then a path closing Z will be appended to the output string.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @return {String}\r\n     */function stringify(){var accuracyMultiplier=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(function(path,pathElement){var params=elementDescriptions[pathElement.command.toLowerCase()].map(function(paramName){return this.options.accuracy?Math.round(pathElement[paramName]*accuracyMultiplier)/accuracyMultiplier:pathElement[paramName];}.bind(this));return path+pathElement.command+params.join(',');}.bind(this),'')+(this.close?'Z':'');}/**\r\n     * Scales all elements in the current SVG path object. There is an individual parameter for each coordinate. Scaling will also be done for control points of curves, affecting the given coordinate.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @param {Number} x The number which will be used to scale the x, x1 and x2 of all path elements.\r\n     * @param {Number} y The number which will be used to scale the y, y1 and y2 of all path elements.\r\n     * @return {Chartist.Svg.Path} The current path object for easy call chaining.\r\n     */function scale(x,y){forEachParam(this.pathElements,function(pathElement,paramName){pathElement[paramName]*=paramName[0]==='x'?x:y;});return this;}/**\r\n     * Translates all elements in the current SVG path object. The translation is relative and there is an individual parameter for each coordinate. Translation will also be done for control points of curves, affecting the given coordinate.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @param {Number} x The number which will be used to translate the x, x1 and x2 of all path elements.\r\n     * @param {Number} y The number which will be used to translate the y, y1 and y2 of all path elements.\r\n     * @return {Chartist.Svg.Path} The current path object for easy call chaining.\r\n     */function translate(x,y){forEachParam(this.pathElements,function(pathElement,paramName){pathElement[paramName]+=paramName[0]==='x'?x:y;});return this;}/**\r\n     * This function will run over all existing path elements and then loop over their attributes. The callback function will be called for every path element attribute that exists in the current path.\r\n     * The method signature of the callback function looks like this:\r\n     * ```javascript\r\n     * function(pathElement, paramName, pathElementIndex, paramIndex, pathElements)\r\n     * ```\r\n     * If something else than undefined is returned by the callback function, this value will be used to replace the old value. This allows you to build custom transformations of path objects that can't be achieved using the basic transformation functions scale and translate.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @param {Function} transformFnc The callback function for the transformation. Check the signature in the function description.\r\n     * @return {Chartist.Svg.Path} The current path object for easy call chaining.\r\n     */function transform(transformFnc){forEachParam(this.pathElements,function(pathElement,paramName,pathElementIndex,paramIndex,pathElements){var transformed=transformFnc(pathElement,paramName,pathElementIndex,paramIndex,pathElements);if(transformed||transformed===0){pathElement[paramName]=transformed;}});return this;}/**\r\n     * This function clones a whole path object with all its properties. This is a deep clone and path element objects will also be cloned.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @param {Boolean} [close] Optional option to set the new cloned path to closed. If not specified or false, the original path close option will be used.\r\n     * @return {Chartist.Svg.Path}\r\n     */function clone(close){var c=new Chartist.Svg.Path(close||this.close);c.pos=this.pos;c.pathElements=this.pathElements.slice().map(function cloneElements(pathElement){return Chartist.extend({},pathElement);});c.options=Chartist.extend({},this.options);return c;}/**\r\n     * Split a Svg.Path object by a specific command in the path chain. The path chain will be split and an array of newly created paths objects will be returned. This is useful if you'd like to split an SVG path by it's move commands, for example, in order to isolate chunks of drawings.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @param {String} command The command you'd like to use to split the path\r\n     * @return {Array<Chartist.Svg.Path>}\r\n     */function splitByCommand(command){var split=[new Chartist.Svg.Path()];this.pathElements.forEach(function(pathElement){if(pathElement.command===command.toUpperCase()&&split[split.length-1].pathElements.length!==0){split.push(new Chartist.Svg.Path());}split[split.length-1].pathElements.push(pathElement);});return split;}/**\r\n     * This static function on `Chartist.Svg.Path` is joining multiple paths together into one paths.\r\n     *\r\n     * @memberof Chartist.Svg.Path\r\n     * @param {Array<Chartist.Svg.Path>} paths A list of paths to be joined together. The order is important.\r\n     * @param {boolean} close If the newly created path should be a closed path\r\n     * @param {Object} options Path options for the newly created path.\r\n     * @return {Chartist.Svg.Path}\r\n     */function join(paths,close,options){var joinedPath=new Chartist.Svg.Path(close,options);for(var i=0;i<paths.length;i++){var path=paths[i];for(var j=0;j<path.pathElements.length;j++){joinedPath.pathElements.push(path.pathElements[j]);}}return joinedPath;}Chartist.Svg.Path=Chartist.Class.extend({constructor:SvgPath,position:position,remove:remove,move:move,line:line,curve:curve,arc:arc,scale:scale,translate:translate,transform:transform,parse:parse,stringify:stringify,clone:clone,splitByCommand:splitByCommand});Chartist.Svg.Path.elementDescriptions=elementDescriptions;Chartist.Svg.Path.join=join;})(this||__webpack_require__.g,Chartist);;/* global Chartist */(function(globalRoot,Chartist){'use strict';var window=globalRoot.window;var document=globalRoot.document;var axisUnits={x:{pos:'x',len:'width',dir:'horizontal',rectStart:'x1',rectEnd:'x2',rectOffset:'y2'},y:{pos:'y',len:'height',dir:'vertical',rectStart:'y2',rectEnd:'y1',rectOffset:'x1'}};function Axis(units,chartRect,ticks,options){this.units=units;this.counterUnits=units===axisUnits.x?axisUnits.y:axisUnits.x;this.chartRect=chartRect;this.axisLength=chartRect[units.rectEnd]-chartRect[units.rectStart];this.gridOffset=chartRect[units.rectOffset];this.ticks=ticks;this.options=options;}function createGridAndLabels(gridGroup,labelGroup,useForeignObject,chartOptions,eventEmitter){var axisOptions=chartOptions['axis'+this.units.pos.toUpperCase()];var projectedValues=this.ticks.map(this.projectValue.bind(this));var labelValues=this.ticks.map(axisOptions.labelInterpolationFnc);projectedValues.forEach(function(projectedValue,index){var labelOffset={x:0,y:0};// TODO: Find better solution for solving this problem\n// Calculate how much space we have available for the label\nvar labelLength;if(projectedValues[index+1]){// If we still have one label ahead, we can calculate the distance to the next tick / label\nlabelLength=projectedValues[index+1]-projectedValue;}else{// If we don't have a label ahead and we have only two labels in total, we just take the remaining distance to\n// on the whole axis length. We limit that to a minimum of 30 pixel, so that labels close to the border will\n// still be visible inside of the chart padding.\nlabelLength=Math.max(this.axisLength-projectedValue,30);}// Skip grid lines and labels where interpolated label values are falsey (execpt for 0)\nif(Chartist.isFalseyButZero(labelValues[index])&&labelValues[index]!==''){return;}// Transform to global coordinates using the chartRect\n// We also need to set the label offset for the createLabel function\nif(this.units.pos==='x'){projectedValue=this.chartRect.x1+projectedValue;labelOffset.x=chartOptions.axisX.labelOffset.x;// If the labels should be positioned in start position (top side for vertical axis) we need to set a\n// different offset as for positioned with end (bottom)\nif(chartOptions.axisX.position==='start'){labelOffset.y=this.chartRect.padding.top+chartOptions.axisX.labelOffset.y+(useForeignObject?5:20);}else{labelOffset.y=this.chartRect.y1+chartOptions.axisX.labelOffset.y+(useForeignObject?5:20);}}else{projectedValue=this.chartRect.y1-projectedValue;labelOffset.y=chartOptions.axisY.labelOffset.y-(useForeignObject?labelLength:0);// If the labels should be positioned in start position (left side for horizontal axis) we need to set a\n// different offset as for positioned with end (right side)\nif(chartOptions.axisY.position==='start'){labelOffset.x=useForeignObject?this.chartRect.padding.left+chartOptions.axisY.labelOffset.x:this.chartRect.x1-10;}else{labelOffset.x=this.chartRect.x2+chartOptions.axisY.labelOffset.x+10;}}if(axisOptions.showGrid){Chartist.createGrid(projectedValue,index,this,this.gridOffset,this.chartRect[this.counterUnits.len](),gridGroup,[chartOptions.classNames.grid,chartOptions.classNames[this.units.dir]],eventEmitter);}if(axisOptions.showLabel){Chartist.createLabel(projectedValue,labelLength,index,labelValues,this,axisOptions.offset,labelOffset,labelGroup,[chartOptions.classNames.label,chartOptions.classNames[this.units.dir],axisOptions.position==='start'?chartOptions.classNames[axisOptions.position]:chartOptions.classNames['end']],useForeignObject,eventEmitter);}}.bind(this));}Chartist.Axis=Chartist.Class.extend({constructor:Axis,createGridAndLabels:createGridAndLabels,projectValue:function(value,index,data){throw new Error('Base axis can\\'t be instantiated!');}});Chartist.Axis.units=axisUnits;})(this||__webpack_require__.g,Chartist);;/**\r\n   * The auto scale axis uses standard linear scale projection of values along an axis. It uses order of magnitude to find a scale automatically and evaluates the available space in order to find the perfect amount of ticks for your chart.\r\n   * **Options**\r\n   * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings.\r\n   * ```javascript\r\n   * var options = {\r\n   *   // If high is specified then the axis will display values explicitly up to this value and the computed maximum from the data is ignored\r\n   *   high: 100,\r\n   *   // If low is specified then the axis will display values explicitly down to this value and the computed minimum from the data is ignored\r\n   *   low: 0,\r\n   *   // This option will be used when finding the right scale division settings. The amount of ticks on the scale will be determined so that as many ticks as possible will be displayed, while not violating this minimum required space (in pixel).\r\n   *   scaleMinSpace: 20,\r\n   *   // Can be set to true or false. If set to true, the scale will be generated with whole numbers only.\r\n   *   onlyInteger: true,\r\n   *   // The reference value can be used to make sure that this value will always be on the chart. This is especially useful on bipolar charts where the bipolar center always needs to be part of the chart.\r\n   *   referenceValue: 5\r\n   * };\r\n   * ```\r\n   *\r\n   * @module Chartist.AutoScaleAxis\r\n   */ /* global Chartist */(function(globalRoot,Chartist){'use strict';var window=globalRoot.window;var document=globalRoot.document;function AutoScaleAxis(axisUnit,data,chartRect,options){// Usually we calculate highLow based on the data but this can be overriden by a highLow object in the options\nvar highLow=options.highLow||Chartist.getHighLow(data,options,axisUnit.pos);this.bounds=Chartist.getBounds(chartRect[axisUnit.rectEnd]-chartRect[axisUnit.rectStart],highLow,options.scaleMinSpace||20,options.onlyInteger);this.range={min:this.bounds.min,max:this.bounds.max};Chartist.AutoScaleAxis.super.constructor.call(this,axisUnit,chartRect,this.bounds.values,options);}function projectValue(value){return this.axisLength*(+Chartist.getMultiValue(value,this.units.pos)-this.bounds.min)/this.bounds.range;}Chartist.AutoScaleAxis=Chartist.Axis.extend({constructor:AutoScaleAxis,projectValue:projectValue});})(this||__webpack_require__.g,Chartist);;/**\r\n   * The fixed scale axis uses standard linear projection of values along an axis. It makes use of a divisor option to divide the range provided from the minimum and maximum value or the options high and low that will override the computed minimum and maximum.\r\n   * **Options**\r\n   * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings.\r\n   * ```javascript\r\n   * var options = {\r\n   *   // If high is specified then the axis will display values explicitly up to this value and the computed maximum from the data is ignored\r\n   *   high: 100,\r\n   *   // If low is specified then the axis will display values explicitly down to this value and the computed minimum from the data is ignored\r\n   *   low: 0,\r\n   *   // If specified then the value range determined from minimum to maximum (or low and high) will be divided by this number and ticks will be generated at those division points. The default divisor is 1.\r\n   *   divisor: 4,\r\n   *   // If ticks is explicitly set, then the axis will not compute the ticks with the divisor, but directly use the data in ticks to determine at what points on the axis a tick need to be generated.\r\n   *   ticks: [1, 10, 20, 30]\r\n   * };\r\n   * ```\r\n   *\r\n   * @module Chartist.FixedScaleAxis\r\n   */ /* global Chartist */(function(globalRoot,Chartist){'use strict';var window=globalRoot.window;var document=globalRoot.document;function FixedScaleAxis(axisUnit,data,chartRect,options){var highLow=options.highLow||Chartist.getHighLow(data,options,axisUnit.pos);this.divisor=options.divisor||1;this.ticks=options.ticks||Chartist.times(this.divisor).map(function(value,index){return highLow.low+(highLow.high-highLow.low)/this.divisor*index;}.bind(this));this.ticks.sort(function(a,b){return a-b;});this.range={min:highLow.low,max:highLow.high};Chartist.FixedScaleAxis.super.constructor.call(this,axisUnit,chartRect,this.ticks,options);this.stepLength=this.axisLength/this.divisor;}function projectValue(value){return this.axisLength*(+Chartist.getMultiValue(value,this.units.pos)-this.range.min)/(this.range.max-this.range.min);}Chartist.FixedScaleAxis=Chartist.Axis.extend({constructor:FixedScaleAxis,projectValue:projectValue});})(this||__webpack_require__.g,Chartist);;/**\r\n   * The step axis for step based charts like bar chart or step based line charts. It uses a fixed amount of ticks that will be equally distributed across the whole axis length. The projection is done using the index of the data value rather than the value itself and therefore it's only useful for distribution purpose.\r\n   * **Options**\r\n   * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings.\r\n   * ```javascript\r\n   * var options = {\r\n   *   // Ticks to be used to distribute across the axis length. As this axis type relies on the index of the value rather than the value, arbitrary data that can be converted to a string can be used as ticks.\r\n   *   ticks: ['One', 'Two', 'Three'],\r\n   *   // If set to true the full width will be used to distribute the values where the last value will be at the maximum of the axis length. If false the spaces between the ticks will be evenly distributed instead.\r\n   *   stretch: true\r\n   * };\r\n   * ```\r\n   *\r\n   * @module Chartist.StepAxis\r\n   */ /* global Chartist */(function(globalRoot,Chartist){'use strict';var window=globalRoot.window;var document=globalRoot.document;function StepAxis(axisUnit,data,chartRect,options){Chartist.StepAxis.super.constructor.call(this,axisUnit,chartRect,options.ticks,options);var calc=Math.max(1,options.ticks.length-(options.stretch?1:0));this.stepLength=this.axisLength/calc;}function projectValue(value,index){return this.stepLength*index;}Chartist.StepAxis=Chartist.Axis.extend({constructor:StepAxis,projectValue:projectValue});})(this||__webpack_require__.g,Chartist);;/**\r\n   * The Chartist line chart can be used to draw Line or Scatter charts. If used in the browser you can access the global `Chartist` namespace where you find the `Line` function as a main entry point.\r\n   *\r\n   * For examples on how to use the line chart please check the examples of the `Chartist.Line` method.\r\n   *\r\n   * @module Chartist.Line\r\n   */ /* global Chartist */(function(globalRoot,Chartist){'use strict';var window=globalRoot.window;var document=globalRoot.document;/**\r\n     * Default options in line charts. Expand the code view to see a detailed list of options with comments.\r\n     *\r\n     * @memberof Chartist.Line\r\n     */var defaultOptions={// Options for X-Axis\naxisX:{// The offset of the labels to the chart area\noffset:30,// Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\nposition:'end',// Allows you to correct label positioning on this axis by positive or negative x and y offset.\nlabelOffset:{x:0,y:0},// If labels should be shown or not\nshowLabel:true,// If the axis grid should be drawn or not\nshowGrid:true,// Interpolation function that allows you to intercept the value from the axis label\nlabelInterpolationFnc:Chartist.noop,// Set the axis type to be used to project values on this axis. If not defined, Chartist.StepAxis will be used for the X-Axis, where the ticks option will be set to the labels in the data and the stretch option will be set to the global fullWidth option. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here.\ntype:undefined},// Options for Y-Axis\naxisY:{// The offset of the labels to the chart area\noffset:40,// Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\nposition:'start',// Allows you to correct label positioning on this axis by positive or negative x and y offset.\nlabelOffset:{x:0,y:0},// If labels should be shown or not\nshowLabel:true,// If the axis grid should be drawn or not\nshowGrid:true,// Interpolation function that allows you to intercept the value from the axis label\nlabelInterpolationFnc:Chartist.noop,// Set the axis type to be used to project values on this axis. If not defined, Chartist.AutoScaleAxis will be used for the Y-Axis, where the high and low options will be set to the global high and low options. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here.\ntype:undefined,// This value specifies the minimum height in pixel of the scale steps\nscaleMinSpace:20,// Use only integer values (whole numbers) for the scale steps\nonlyInteger:false},// Specify a fixed width for the chart as a string (i.e. '100px' or '50%')\nwidth:undefined,// Specify a fixed height for the chart as a string (i.e. '100px' or '50%')\nheight:undefined,// If the line should be drawn or not\nshowLine:true,// If dots should be drawn or not\nshowPoint:true,// If the line chart should draw an area\nshowArea:false,// The base for the area chart that will be used to close the area shape (is normally 0)\nareaBase:0,// Specify if the lines should be smoothed. This value can be true or false where true will result in smoothing using the default smoothing interpolation function Chartist.Interpolation.cardinal and false results in Chartist.Interpolation.none. You can also choose other smoothing / interpolation functions available in the Chartist.Interpolation module, or write your own interpolation function. Check the examples for a brief description.\nlineSmooth:true,// If the line chart should add a background fill to the .ct-grids group.\nshowGridBackground:false,// Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value\nlow:undefined,// Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value\nhigh:undefined,// Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5}\nchartPadding:{top:15,right:15,bottom:5,left:10},// When set to true, the last grid line on the x-axis is not drawn and the chart elements will expand to the full available width of the chart. For the last label to be drawn correctly you might need to add chart padding or offset the last label with a draw event handler.\nfullWidth:false,// If true the whole data is reversed including labels, the series order as well as the whole series data arrays.\nreverseData:false,// Override the class names that get used to generate the SVG structure of the chart\nclassNames:{chart:'ct-chart-line',label:'ct-label',labelGroup:'ct-labels',series:'ct-series',line:'ct-line',point:'ct-point',area:'ct-area',grid:'ct-grid',gridGroup:'ct-grids',gridBackground:'ct-grid-background',vertical:'ct-vertical',horizontal:'ct-horizontal',start:'ct-start',end:'ct-end'}};/**\r\n     * Creates a new chart\r\n     *\r\n     */function createChart(options){var data=Chartist.normalizeData(this.data,options.reverseData,true);// Create new svg object\nthis.svg=Chartist.createSvg(this.container,options.width,options.height,options.classNames.chart);// Create groups for labels, grid and series\nvar gridGroup=this.svg.elem('g').addClass(options.classNames.gridGroup);var seriesGroup=this.svg.elem('g');var labelGroup=this.svg.elem('g').addClass(options.classNames.labelGroup);var chartRect=Chartist.createChartRect(this.svg,options,defaultOptions.padding);var axisX,axisY;if(options.axisX.type===undefined){axisX=new Chartist.StepAxis(Chartist.Axis.units.x,data.normalized.series,chartRect,Chartist.extend({},options.axisX,{ticks:data.normalized.labels,stretch:options.fullWidth}));}else{axisX=options.axisX.type.call(Chartist,Chartist.Axis.units.x,data.normalized.series,chartRect,options.axisX);}if(options.axisY.type===undefined){axisY=new Chartist.AutoScaleAxis(Chartist.Axis.units.y,data.normalized.series,chartRect,Chartist.extend({},options.axisY,{high:Chartist.isNumeric(options.high)?options.high:options.axisY.high,low:Chartist.isNumeric(options.low)?options.low:options.axisY.low}));}else{axisY=options.axisY.type.call(Chartist,Chartist.Axis.units.y,data.normalized.series,chartRect,options.axisY);}axisX.createGridAndLabels(gridGroup,labelGroup,this.supportsForeignObject,options,this.eventEmitter);axisY.createGridAndLabels(gridGroup,labelGroup,this.supportsForeignObject,options,this.eventEmitter);if(options.showGridBackground){Chartist.createGridBackground(gridGroup,chartRect,options.classNames.gridBackground,this.eventEmitter);}// Draw the series\ndata.raw.series.forEach(function(series,seriesIndex){var seriesElement=seriesGroup.elem('g');// Write attributes to series group element. If series name or meta is undefined the attributes will not be written\nseriesElement.attr({'ct:series-name':series.name,'ct:meta':Chartist.serialize(series.meta)});// Use series class from series data or if not set generate one\nseriesElement.addClass([options.classNames.series,series.className||options.classNames.series+'-'+Chartist.alphaNumerate(seriesIndex)].join(' '));var pathCoordinates=[],pathData=[];data.normalized.series[seriesIndex].forEach(function(value,valueIndex){var p={x:chartRect.x1+axisX.projectValue(value,valueIndex,data.normalized.series[seriesIndex]),y:chartRect.y1-axisY.projectValue(value,valueIndex,data.normalized.series[seriesIndex])};pathCoordinates.push(p.x,p.y);pathData.push({value:value,valueIndex:valueIndex,meta:Chartist.getMetaData(series,valueIndex)});}.bind(this));var seriesOptions={lineSmooth:Chartist.getSeriesOption(series,options,'lineSmooth'),showPoint:Chartist.getSeriesOption(series,options,'showPoint'),showLine:Chartist.getSeriesOption(series,options,'showLine'),showArea:Chartist.getSeriesOption(series,options,'showArea'),areaBase:Chartist.getSeriesOption(series,options,'areaBase')};var smoothing=typeof seriesOptions.lineSmooth==='function'?seriesOptions.lineSmooth:seriesOptions.lineSmooth?Chartist.Interpolation.monotoneCubic():Chartist.Interpolation.none();// Interpolating path where pathData will be used to annotate each path element so we can trace back the original\n// index, value and meta data\nvar path=smoothing(pathCoordinates,pathData);// If we should show points we need to create them now to avoid secondary loop\n// Points are drawn from the pathElements returned by the interpolation function\n// Small offset for Firefox to render squares correctly\nif(seriesOptions.showPoint){path.pathElements.forEach(function(pathElement){var point=seriesElement.elem('line',{x1:pathElement.x,y1:pathElement.y,x2:pathElement.x+0.01,y2:pathElement.y},options.classNames.point).attr({'ct:value':[pathElement.data.value.x,pathElement.data.value.y].filter(Chartist.isNumeric).join(','),'ct:meta':Chartist.serialize(pathElement.data.meta)});this.eventEmitter.emit('draw',{type:'point',value:pathElement.data.value,index:pathElement.data.valueIndex,meta:pathElement.data.meta,series:series,seriesIndex:seriesIndex,axisX:axisX,axisY:axisY,group:seriesElement,element:point,x:pathElement.x,y:pathElement.y});}.bind(this));}if(seriesOptions.showLine){var line=seriesElement.elem('path',{d:path.stringify()},options.classNames.line,true);this.eventEmitter.emit('draw',{type:'line',values:data.normalized.series[seriesIndex],path:path.clone(),chartRect:chartRect,index:seriesIndex,series:series,seriesIndex:seriesIndex,seriesMeta:series.meta,axisX:axisX,axisY:axisY,group:seriesElement,element:line});}// Area currently only works with axes that support a range!\nif(seriesOptions.showArea&&axisY.range){// If areaBase is outside the chart area (< min or > max) we need to set it respectively so that\n// the area is not drawn outside the chart area.\nvar areaBase=Math.max(Math.min(seriesOptions.areaBase,axisY.range.max),axisY.range.min);// We project the areaBase value into screen coordinates\nvar areaBaseProjected=chartRect.y1-axisY.projectValue(areaBase);// In order to form the area we'll first split the path by move commands so we can chunk it up into segments\npath.splitByCommand('M').filter(function onlySolidSegments(pathSegment){// We filter only \"solid\" segments that contain more than one point. Otherwise there's no need for an area\nreturn pathSegment.pathElements.length>1;}).map(function convertToArea(solidPathSegments){// Receiving the filtered solid path segments we can now convert those segments into fill areas\nvar firstElement=solidPathSegments.pathElements[0];var lastElement=solidPathSegments.pathElements[solidPathSegments.pathElements.length-1];// Cloning the solid path segment with closing option and removing the first move command from the clone\n// We then insert a new move that should start at the area base and draw a straight line up or down\n// at the end of the path we add an additional straight line to the projected area base value\n// As the closing option is set our path will be automatically closed\nreturn solidPathSegments.clone(true).position(0).remove(1).move(firstElement.x,areaBaseProjected).line(firstElement.x,firstElement.y).position(solidPathSegments.pathElements.length+1).line(lastElement.x,areaBaseProjected);}).forEach(function createArea(areaPath){// For each of our newly created area paths, we'll now create path elements by stringifying our path objects\n// and adding the created DOM elements to the correct series group\nvar area=seriesElement.elem('path',{d:areaPath.stringify()},options.classNames.area,true);// Emit an event for each area that was drawn\nthis.eventEmitter.emit('draw',{type:'area',values:data.normalized.series[seriesIndex],path:areaPath.clone(),series:series,seriesIndex:seriesIndex,axisX:axisX,axisY:axisY,chartRect:chartRect,index:seriesIndex,group:seriesElement,element:area});}.bind(this));}}.bind(this));this.eventEmitter.emit('created',{bounds:axisY.bounds,chartRect:chartRect,axisX:axisX,axisY:axisY,svg:this.svg,options:options});}/**\r\n     * This method creates a new line chart.\r\n     *\r\n     * @memberof Chartist.Line\r\n     * @param {String|Node} query A selector query string or directly a DOM element\r\n     * @param {Object} data The data object that needs to consist of a labels and a series array\r\n     * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list.\r\n     * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]\r\n     * @return {Object} An object which exposes the API for the created chart\r\n     *\r\n     * @example\r\n     * // Create a simple line chart\r\n     * var data = {\r\n     *   // A labels array that can contain any sort of values\r\n     *   labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],\r\n     *   // Our series array that contains series objects or in this case series data arrays\r\n     *   series: [\r\n     *     [5, 2, 4, 2, 0]\r\n     *   ]\r\n     * };\r\n     *\r\n     * // As options we currently only set a static size of 300x200 px\r\n     * var options = {\r\n     *   width: '300px',\r\n     *   height: '200px'\r\n     * };\r\n     *\r\n     * // In the global name space Chartist we call the Line function to initialize a line chart. As a first parameter we pass in a selector where we would like to get our chart created. Second parameter is the actual data object and as a third parameter we pass in our options\r\n     * new Chartist.Line('.ct-chart', data, options);\r\n     *\r\n     * @example\r\n     * // Use specific interpolation function with configuration from the Chartist.Interpolation module\r\n     *\r\n     * var chart = new Chartist.Line('.ct-chart', {\r\n     *   labels: [1, 2, 3, 4, 5],\r\n     *   series: [\r\n     *     [1, 1, 8, 1, 7]\r\n     *   ]\r\n     * }, {\r\n     *   lineSmooth: Chartist.Interpolation.cardinal({\r\n     *     tension: 0.2\r\n     *   })\r\n     * });\r\n     *\r\n     * @example\r\n     * // Create a line chart with responsive options\r\n     *\r\n     * var data = {\r\n     *   // A labels array that can contain any sort of values\r\n     *   labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],\r\n     *   // Our series array that contains series objects or in this case series data arrays\r\n     *   series: [\r\n     *     [5, 2, 4, 2, 0]\r\n     *   ]\r\n     * };\r\n     *\r\n     * // In addition to the regular options we specify responsive option overrides that will override the default configutation based on the matching media queries.\r\n     * var responsiveOptions = [\r\n     *   ['screen and (min-width: 641px) and (max-width: 1024px)', {\r\n     *     showPoint: false,\r\n     *     axisX: {\r\n     *       labelInterpolationFnc: function(value) {\r\n     *         // Will return Mon, Tue, Wed etc. on medium screens\r\n     *         return value.slice(0, 3);\r\n     *       }\r\n     *     }\r\n     *   }],\r\n     *   ['screen and (max-width: 640px)', {\r\n     *     showLine: false,\r\n     *     axisX: {\r\n     *       labelInterpolationFnc: function(value) {\r\n     *         // Will return M, T, W etc. on small screens\r\n     *         return value[0];\r\n     *       }\r\n     *     }\r\n     *   }]\r\n     * ];\r\n     *\r\n     * new Chartist.Line('.ct-chart', data, null, responsiveOptions);\r\n     *\r\n     */function Line(query,data,options,responsiveOptions){Chartist.Line.super.constructor.call(this,query,data,defaultOptions,Chartist.extend({},defaultOptions,options),responsiveOptions);}// Creating line chart type in Chartist namespace\nChartist.Line=Chartist.Base.extend({constructor:Line,createChart:createChart});})(this||__webpack_require__.g,Chartist);;/**\r\n   * The bar chart module of Chartist that can be used to draw unipolar or bipolar bar and grouped bar charts.\r\n   *\r\n   * @module Chartist.Bar\r\n   */ /* global Chartist */(function(globalRoot,Chartist){'use strict';var window=globalRoot.window;var document=globalRoot.document;/**\r\n     * Default options in bar charts. Expand the code view to see a detailed list of options with comments.\r\n     *\r\n     * @memberof Chartist.Bar\r\n     */var defaultOptions={// Options for X-Axis\naxisX:{// The offset of the chart drawing area to the border of the container\noffset:30,// Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\nposition:'end',// Allows you to correct label positioning on this axis by positive or negative x and y offset.\nlabelOffset:{x:0,y:0},// If labels should be shown or not\nshowLabel:true,// If the axis grid should be drawn or not\nshowGrid:true,// Interpolation function that allows you to intercept the value from the axis label\nlabelInterpolationFnc:Chartist.noop,// This value specifies the minimum width in pixel of the scale steps\nscaleMinSpace:30,// Use only integer values (whole numbers) for the scale steps\nonlyInteger:false},// Options for Y-Axis\naxisY:{// The offset of the chart drawing area to the border of the container\noffset:40,// Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\nposition:'start',// Allows you to correct label positioning on this axis by positive or negative x and y offset.\nlabelOffset:{x:0,y:0},// If labels should be shown or not\nshowLabel:true,// If the axis grid should be drawn or not\nshowGrid:true,// Interpolation function that allows you to intercept the value from the axis label\nlabelInterpolationFnc:Chartist.noop,// This value specifies the minimum height in pixel of the scale steps\nscaleMinSpace:20,// Use only integer values (whole numbers) for the scale steps\nonlyInteger:false},// Specify a fixed width for the chart as a string (i.e. '100px' or '50%')\nwidth:undefined,// Specify a fixed height for the chart as a string (i.e. '100px' or '50%')\nheight:undefined,// Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value\nhigh:undefined,// Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value\nlow:undefined,// Unless low/high are explicitly set, bar chart will be centered at zero by default. Set referenceValue to null to auto scale.\nreferenceValue:0,// Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5}\nchartPadding:{top:15,right:15,bottom:5,left:10},// Specify the distance in pixel of bars in a group\nseriesBarDistance:15,// If set to true this property will cause the series bars to be stacked. Check the `stackMode` option for further stacking options.\nstackBars:false,// If set to 'overlap' this property will force the stacked bars to draw from the zero line.\n// If set to 'accumulate' this property will form a total for each series point. This will also influence the y-axis and the overall bounds of the chart. In stacked mode the seriesBarDistance property will have no effect.\nstackMode:'accumulate',// Inverts the axes of the bar chart in order to draw a horizontal bar chart. Be aware that you also need to invert your axis settings as the Y Axis will now display the labels and the X Axis the values.\nhorizontalBars:false,// If set to true then each bar will represent a series and the data array is expected to be a one dimensional array of data values rather than a series array of series. This is useful if the bar chart should represent a profile rather than some data over time.\ndistributeSeries:false,// If true the whole data is reversed including labels, the series order as well as the whole series data arrays.\nreverseData:false,// If the bar chart should add a background fill to the .ct-grids group.\nshowGridBackground:false,// Override the class names that get used to generate the SVG structure of the chart\nclassNames:{chart:'ct-chart-bar',horizontalBars:'ct-horizontal-bars',label:'ct-label',labelGroup:'ct-labels',series:'ct-series',bar:'ct-bar',grid:'ct-grid',gridGroup:'ct-grids',gridBackground:'ct-grid-background',vertical:'ct-vertical',horizontal:'ct-horizontal',start:'ct-start',end:'ct-end'}};/**\r\n     * Creates a new chart\r\n     *\r\n     */function createChart(options){var data;var highLow;if(options.distributeSeries){data=Chartist.normalizeData(this.data,options.reverseData,options.horizontalBars?'x':'y');data.normalized.series=data.normalized.series.map(function(value){return[value];});}else{data=Chartist.normalizeData(this.data,options.reverseData,options.horizontalBars?'x':'y');}// Create new svg element\nthis.svg=Chartist.createSvg(this.container,options.width,options.height,options.classNames.chart+(options.horizontalBars?' '+options.classNames.horizontalBars:''));// Drawing groups in correct order\nvar gridGroup=this.svg.elem('g').addClass(options.classNames.gridGroup);var seriesGroup=this.svg.elem('g');var labelGroup=this.svg.elem('g').addClass(options.classNames.labelGroup);if(options.stackBars&&data.normalized.series.length!==0){// If stacked bars we need to calculate the high low from stacked values from each series\nvar serialSums=Chartist.serialMap(data.normalized.series,function serialSums(){return Array.prototype.slice.call(arguments).map(function(value){return value;}).reduce(function(prev,curr){return{x:prev.x+(curr&&curr.x)||0,y:prev.y+(curr&&curr.y)||0};},{x:0,y:0});});highLow=Chartist.getHighLow([serialSums],options,options.horizontalBars?'x':'y');}else{highLow=Chartist.getHighLow(data.normalized.series,options,options.horizontalBars?'x':'y');}// Overrides of high / low from settings\nhighLow.high=+options.high||(options.high===0?0:highLow.high);highLow.low=+options.low||(options.low===0?0:highLow.low);var chartRect=Chartist.createChartRect(this.svg,options,defaultOptions.padding);var valueAxis,labelAxisTicks,labelAxis,axisX,axisY;// We need to set step count based on some options combinations\nif(options.distributeSeries&&options.stackBars){// If distributed series are enabled and bars need to be stacked, we'll only have one bar and therefore should\n// use only the first label for the step axis\nlabelAxisTicks=data.normalized.labels.slice(0,1);}else{// If distributed series are enabled but stacked bars aren't, we should use the series labels\n// If we are drawing a regular bar chart with two dimensional series data, we just use the labels array\n// as the bars are normalized\nlabelAxisTicks=data.normalized.labels;}// Set labelAxis and valueAxis based on the horizontalBars setting. This setting will flip the axes if necessary.\nif(options.horizontalBars){if(options.axisX.type===undefined){valueAxis=axisX=new Chartist.AutoScaleAxis(Chartist.Axis.units.x,data.normalized.series,chartRect,Chartist.extend({},options.axisX,{highLow:highLow,referenceValue:0}));}else{valueAxis=axisX=options.axisX.type.call(Chartist,Chartist.Axis.units.x,data.normalized.series,chartRect,Chartist.extend({},options.axisX,{highLow:highLow,referenceValue:0}));}if(options.axisY.type===undefined){labelAxis=axisY=new Chartist.StepAxis(Chartist.Axis.units.y,data.normalized.series,chartRect,{ticks:labelAxisTicks});}else{labelAxis=axisY=options.axisY.type.call(Chartist,Chartist.Axis.units.y,data.normalized.series,chartRect,options.axisY);}}else{if(options.axisX.type===undefined){labelAxis=axisX=new Chartist.StepAxis(Chartist.Axis.units.x,data.normalized.series,chartRect,{ticks:labelAxisTicks});}else{labelAxis=axisX=options.axisX.type.call(Chartist,Chartist.Axis.units.x,data.normalized.series,chartRect,options.axisX);}if(options.axisY.type===undefined){valueAxis=axisY=new Chartist.AutoScaleAxis(Chartist.Axis.units.y,data.normalized.series,chartRect,Chartist.extend({},options.axisY,{highLow:highLow,referenceValue:0}));}else{valueAxis=axisY=options.axisY.type.call(Chartist,Chartist.Axis.units.y,data.normalized.series,chartRect,Chartist.extend({},options.axisY,{highLow:highLow,referenceValue:0}));}}// Projected 0 point\nvar zeroPoint=options.horizontalBars?chartRect.x1+valueAxis.projectValue(0):chartRect.y1-valueAxis.projectValue(0);// Used to track the screen coordinates of stacked bars\nvar stackedBarValues=[];labelAxis.createGridAndLabels(gridGroup,labelGroup,this.supportsForeignObject,options,this.eventEmitter);valueAxis.createGridAndLabels(gridGroup,labelGroup,this.supportsForeignObject,options,this.eventEmitter);if(options.showGridBackground){Chartist.createGridBackground(gridGroup,chartRect,options.classNames.gridBackground,this.eventEmitter);}// Draw the series\ndata.raw.series.forEach(function(series,seriesIndex){// Calculating bi-polar value of index for seriesOffset. For i = 0..4 biPol will be -1.5, -0.5, 0.5, 1.5 etc.\nvar biPol=seriesIndex-(data.raw.series.length-1)/2;// Half of the period width between vertical grid lines used to position bars\nvar periodHalfLength;// Current series SVG element\nvar seriesElement;// We need to set periodHalfLength based on some options combinations\nif(options.distributeSeries&&!options.stackBars){// If distributed series are enabled but stacked bars aren't, we need to use the length of the normaizedData array\n// which is the series count and divide by 2\nperiodHalfLength=labelAxis.axisLength/data.normalized.series.length/2;}else if(options.distributeSeries&&options.stackBars){// If distributed series and stacked bars are enabled we'll only get one bar so we should just divide the axis\n// length by 2\nperiodHalfLength=labelAxis.axisLength/2;}else{// On regular bar charts we should just use the series length\nperiodHalfLength=labelAxis.axisLength/data.normalized.series[seriesIndex].length/2;}// Adding the series group to the series element\nseriesElement=seriesGroup.elem('g');// Write attributes to series group element. If series name or meta is undefined the attributes will not be written\nseriesElement.attr({'ct:series-name':series.name,'ct:meta':Chartist.serialize(series.meta)});// Use series class from series data or if not set generate one\nseriesElement.addClass([options.classNames.series,series.className||options.classNames.series+'-'+Chartist.alphaNumerate(seriesIndex)].join(' '));data.normalized.series[seriesIndex].forEach(function(value,valueIndex){var projected,bar,previousStack,labelAxisValueIndex;// We need to set labelAxisValueIndex based on some options combinations\nif(options.distributeSeries&&!options.stackBars){// If distributed series are enabled but stacked bars aren't, we can use the seriesIndex for later projection\n// on the step axis for label positioning\nlabelAxisValueIndex=seriesIndex;}else if(options.distributeSeries&&options.stackBars){// If distributed series and stacked bars are enabled, we will only get one bar and therefore always use\n// 0 for projection on the label step axis\nlabelAxisValueIndex=0;}else{// On regular bar charts we just use the value index to project on the label step axis\nlabelAxisValueIndex=valueIndex;}// We need to transform coordinates differently based on the chart layout\nif(options.horizontalBars){projected={x:chartRect.x1+valueAxis.projectValue(value&&value.x?value.x:0,valueIndex,data.normalized.series[seriesIndex]),y:chartRect.y1-labelAxis.projectValue(value&&value.y?value.y:0,labelAxisValueIndex,data.normalized.series[seriesIndex])};}else{projected={x:chartRect.x1+labelAxis.projectValue(value&&value.x?value.x:0,labelAxisValueIndex,data.normalized.series[seriesIndex]),y:chartRect.y1-valueAxis.projectValue(value&&value.y?value.y:0,valueIndex,data.normalized.series[seriesIndex])};}// If the label axis is a step based axis we will offset the bar into the middle of between two steps using\n// the periodHalfLength value. Also we do arrange the different series so that they align up to each other using\n// the seriesBarDistance. If we don't have a step axis, the bar positions can be chosen freely so we should not\n// add any automated positioning.\nif(labelAxis instanceof Chartist.StepAxis){// Offset to center bar between grid lines, but only if the step axis is not stretched\nif(!labelAxis.options.stretch){projected[labelAxis.units.pos]+=periodHalfLength*(options.horizontalBars?-1:1);}// Using bi-polar offset for multiple series if no stacked bars or series distribution is used\nprojected[labelAxis.units.pos]+=options.stackBars||options.distributeSeries?0:biPol*options.seriesBarDistance*(options.horizontalBars?-1:1);}// Enter value in stacked bar values used to remember previous screen value for stacking up bars\npreviousStack=stackedBarValues[valueIndex]||zeroPoint;stackedBarValues[valueIndex]=previousStack-(zeroPoint-projected[labelAxis.counterUnits.pos]);// Skip if value is undefined\nif(value===undefined){return;}var positions={};positions[labelAxis.units.pos+'1']=projected[labelAxis.units.pos];positions[labelAxis.units.pos+'2']=projected[labelAxis.units.pos];if(options.stackBars&&(options.stackMode==='accumulate'||!options.stackMode)){// Stack mode: accumulate (default)\n// If bars are stacked we use the stackedBarValues reference and otherwise base all bars off the zero line\n// We want backwards compatibility, so the expected fallback without the 'stackMode' option\n// to be the original behaviour (accumulate)\npositions[labelAxis.counterUnits.pos+'1']=previousStack;positions[labelAxis.counterUnits.pos+'2']=stackedBarValues[valueIndex];}else{// Draw from the zero line normally\n// This is also the same code for Stack mode: overlap\npositions[labelAxis.counterUnits.pos+'1']=zeroPoint;positions[labelAxis.counterUnits.pos+'2']=projected[labelAxis.counterUnits.pos];}// Limit x and y so that they are within the chart rect\npositions.x1=Math.min(Math.max(positions.x1,chartRect.x1),chartRect.x2);positions.x2=Math.min(Math.max(positions.x2,chartRect.x1),chartRect.x2);positions.y1=Math.min(Math.max(positions.y1,chartRect.y2),chartRect.y1);positions.y2=Math.min(Math.max(positions.y2,chartRect.y2),chartRect.y1);var metaData=Chartist.getMetaData(series,valueIndex);// Create bar element\nbar=seriesElement.elem('line',positions,options.classNames.bar).attr({'ct:value':[value.x,value.y].filter(Chartist.isNumeric).join(','),'ct:meta':Chartist.serialize(metaData)});this.eventEmitter.emit('draw',Chartist.extend({type:'bar',value:value,index:valueIndex,meta:metaData,series:series,seriesIndex:seriesIndex,axisX:axisX,axisY:axisY,chartRect:chartRect,group:seriesElement,element:bar},positions));}.bind(this));}.bind(this));this.eventEmitter.emit('created',{bounds:valueAxis.bounds,chartRect:chartRect,axisX:axisX,axisY:axisY,svg:this.svg,options:options});}/**\r\n     * This method creates a new bar chart and returns API object that you can use for later changes.\r\n     *\r\n     * @memberof Chartist.Bar\r\n     * @param {String|Node} query A selector query string or directly a DOM element\r\n     * @param {Object} data The data object that needs to consist of a labels and a series array\r\n     * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list.\r\n     * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]\r\n     * @return {Object} An object which exposes the API for the created chart\r\n     *\r\n     * @example\r\n     * // Create a simple bar chart\r\n     * var data = {\r\n     *   labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],\r\n     *   series: [\r\n     *     [5, 2, 4, 2, 0]\r\n     *   ]\r\n     * };\r\n     *\r\n     * // In the global name space Chartist we call the Bar function to initialize a bar chart. As a first parameter we pass in a selector where we would like to get our chart created and as a second parameter we pass our data object.\r\n     * new Chartist.Bar('.ct-chart', data);\r\n     *\r\n     * @example\r\n     * // This example creates a bipolar grouped bar chart where the boundaries are limitted to -10 and 10\r\n     * new Chartist.Bar('.ct-chart', {\r\n     *   labels: [1, 2, 3, 4, 5, 6, 7],\r\n     *   series: [\r\n     *     [1, 3, 2, -5, -3, 1, -6],\r\n     *     [-5, -2, -4, -1, 2, -3, 1]\r\n     *   ]\r\n     * }, {\r\n     *   seriesBarDistance: 12,\r\n     *   low: -10,\r\n     *   high: 10\r\n     * });\r\n     *\r\n     */function Bar(query,data,options,responsiveOptions){Chartist.Bar.super.constructor.call(this,query,data,defaultOptions,Chartist.extend({},defaultOptions,options),responsiveOptions);}// Creating bar chart type in Chartist namespace\nChartist.Bar=Chartist.Base.extend({constructor:Bar,createChart:createChart});})(this||__webpack_require__.g,Chartist);;/**\r\n   * The pie chart module of Chartist that can be used to draw pie, donut or gauge charts\r\n   *\r\n   * @module Chartist.Pie\r\n   */ /* global Chartist */(function(globalRoot,Chartist){'use strict';var window=globalRoot.window;var document=globalRoot.document;/**\r\n     * Default options in line charts. Expand the code view to see a detailed list of options with comments.\r\n     *\r\n     * @memberof Chartist.Pie\r\n     */var defaultOptions={// Specify a fixed width for the chart as a string (i.e. '100px' or '50%')\nwidth:undefined,// Specify a fixed height for the chart as a string (i.e. '100px' or '50%')\nheight:undefined,// Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5}\nchartPadding:5,// Override the class names that are used to generate the SVG structure of the chart\nclassNames:{chartPie:'ct-chart-pie',chartDonut:'ct-chart-donut',series:'ct-series',slicePie:'ct-slice-pie',sliceDonut:'ct-slice-donut',sliceDonutSolid:'ct-slice-donut-solid',label:'ct-label'},// The start angle of the pie chart in degrees where 0 points north. A higher value offsets the start angle clockwise.\nstartAngle:0,// An optional total you can specify. By specifying a total value, the sum of the values in the series must be this total in order to draw a full pie. You can use this parameter to draw only parts of a pie or gauge charts.\ntotal:undefined,// If specified the donut CSS classes will be used and strokes will be drawn instead of pie slices.\ndonut:false,// If specified the donut segments will be drawn as shapes instead of strokes.\ndonutSolid:false,// Specify the donut stroke width, currently done in javascript for convenience. May move to CSS styles in the future.\n// This option can be set as number or string to specify a relative width (i.e. 100 or '30%').\ndonutWidth:60,// If a label should be shown or not\nshowLabel:true,// Label position offset from the standard position which is half distance of the radius. This value can be either positive or negative. Positive values will position the label away from the center.\nlabelOffset:0,// This option can be set to 'inside', 'outside' or 'center'. Positioned with 'inside' the labels will be placed on half the distance of the radius to the border of the Pie by respecting the 'labelOffset'. The 'outside' option will place the labels at the border of the pie and 'center' will place the labels in the absolute center point of the chart. The 'center' option only makes sense in conjunction with the 'labelOffset' option.\nlabelPosition:'inside',// An interpolation function for the label value\nlabelInterpolationFnc:Chartist.noop,// Label direction can be 'neutral', 'explode' or 'implode'. The labels anchor will be positioned based on those settings as well as the fact if the labels are on the right or left side of the center of the chart. Usually explode is useful when labels are positioned far away from the center.\nlabelDirection:'neutral',// If true the whole data is reversed including labels, the series order as well as the whole series data arrays.\nreverseData:false,// If true empty values will be ignored to avoid drawing unncessary slices and labels\nignoreEmptyValues:false};/**\r\n     * Determines SVG anchor position based on direction and center parameter\r\n     *\r\n     * @param center\r\n     * @param label\r\n     * @param direction\r\n     * @return {string}\r\n     */function determineAnchorPosition(center,label,direction){var toTheRight=label.x>center.x;if(toTheRight&&direction==='explode'||!toTheRight&&direction==='implode'){return'start';}else if(toTheRight&&direction==='implode'||!toTheRight&&direction==='explode'){return'end';}else{return'middle';}}/**\r\n     * Creates the pie chart\r\n     *\r\n     * @param options\r\n     */function createChart(options){var data=Chartist.normalizeData(this.data);var seriesGroups=[],labelsGroup,chartRect,radius,labelRadius,totalDataSum,startAngle=options.startAngle;// Create SVG.js draw\nthis.svg=Chartist.createSvg(this.container,options.width,options.height,options.donut?options.classNames.chartDonut:options.classNames.chartPie);// Calculate charting rect\nchartRect=Chartist.createChartRect(this.svg,options,defaultOptions.padding);// Get biggest circle radius possible within chartRect\nradius=Math.min(chartRect.width()/2,chartRect.height()/2);// Calculate total of all series to get reference value or use total reference from optional options\ntotalDataSum=options.total||data.normalized.series.reduce(function(previousValue,currentValue){return previousValue+currentValue;},0);var donutWidth=Chartist.quantity(options.donutWidth);if(donutWidth.unit==='%'){donutWidth.value*=radius/100;}// If this is a donut chart we need to adjust our radius to enable strokes to be drawn inside\n// Unfortunately this is not possible with the current SVG Spec\n// See this proposal for more details: http://lists.w3.org/Archives/Public/www-svg/2003Oct/0000.html\nradius-=options.donut&&!options.donutSolid?donutWidth.value/2:0;// If labelPosition is set to `outside` or a donut chart is drawn then the label position is at the radius,\n// if regular pie chart it's half of the radius\nif(options.labelPosition==='outside'||options.donut&&!options.donutSolid){labelRadius=radius;}else if(options.labelPosition==='center'){// If labelPosition is center we start with 0 and will later wait for the labelOffset\nlabelRadius=0;}else if(options.donutSolid){labelRadius=radius-donutWidth.value/2;}else{// Default option is 'inside' where we use half the radius so the label will be placed in the center of the pie\n// slice\nlabelRadius=radius/2;}// Add the offset to the labelRadius where a negative offset means closed to the center of the chart\nlabelRadius+=options.labelOffset;// Calculate end angle based on total sum and current data value and offset with padding\nvar center={x:chartRect.x1+chartRect.width()/2,y:chartRect.y2+chartRect.height()/2};// Check if there is only one non-zero value in the series array.\nvar hasSingleValInSeries=data.raw.series.filter(function(val){return val.hasOwnProperty('value')?val.value!==0:val!==0;}).length===1;// Creating the series groups\ndata.raw.series.forEach(function(series,index){seriesGroups[index]=this.svg.elem('g',null,null);}.bind(this));//if we need to show labels we create the label group now\nif(options.showLabel){labelsGroup=this.svg.elem('g',null,null);}// Draw the series\n// initialize series groups\ndata.raw.series.forEach(function(series,index){// If current value is zero and we are ignoring empty values then skip to next value\nif(data.normalized.series[index]===0&&options.ignoreEmptyValues)return;// If the series is an object and contains a name or meta data we add a custom attribute\nseriesGroups[index].attr({'ct:series-name':series.name});// Use series class from series data or if not set generate one\nseriesGroups[index].addClass([options.classNames.series,series.className||options.classNames.series+'-'+Chartist.alphaNumerate(index)].join(' '));// If the whole dataset is 0 endAngle should be zero. Can't divide by 0.\nvar endAngle=totalDataSum>0?startAngle+data.normalized.series[index]/totalDataSum*360:0;// Use slight offset so there are no transparent hairline issues\nvar overlappigStartAngle=Math.max(0,startAngle-(index===0||hasSingleValInSeries?0:0.2));// If we need to draw the arc for all 360 degrees we need to add a hack where we close the circle\n// with Z and use 359.99 degrees\nif(endAngle-overlappigStartAngle>=359.99){endAngle=overlappigStartAngle+359.99;}var start=Chartist.polarToCartesian(center.x,center.y,radius,overlappigStartAngle),end=Chartist.polarToCartesian(center.x,center.y,radius,endAngle);var innerStart,innerEnd,donutSolidRadius;// Create a new path element for the pie chart. If this isn't a donut chart we should close the path for a correct stroke\nvar path=new Chartist.Svg.Path(!options.donut||options.donutSolid).move(end.x,end.y).arc(radius,radius,0,endAngle-startAngle>180,0,start.x,start.y);// If regular pie chart (no donut) we add a line to the center of the circle for completing the pie\nif(!options.donut){path.line(center.x,center.y);}else if(options.donutSolid){donutSolidRadius=radius-donutWidth.value;innerStart=Chartist.polarToCartesian(center.x,center.y,donutSolidRadius,startAngle-(index===0||hasSingleValInSeries?0:0.2));innerEnd=Chartist.polarToCartesian(center.x,center.y,donutSolidRadius,endAngle);path.line(innerStart.x,innerStart.y);path.arc(donutSolidRadius,donutSolidRadius,0,endAngle-startAngle>180,1,innerEnd.x,innerEnd.y);}// Create the SVG path\n// If this is a donut chart we add the donut class, otherwise just a regular slice\nvar pathClassName=options.classNames.slicePie;if(options.donut){pathClassName=options.classNames.sliceDonut;if(options.donutSolid){pathClassName=options.classNames.sliceDonutSolid;}}var pathElement=seriesGroups[index].elem('path',{d:path.stringify()},pathClassName);// Adding the pie series value to the path\npathElement.attr({'ct:value':data.normalized.series[index],'ct:meta':Chartist.serialize(series.meta)});// If this is a donut, we add the stroke-width as style attribute\nif(options.donut&&!options.donutSolid){pathElement._node.style.strokeWidth=donutWidth.value+'px';}// Fire off draw event\nthis.eventEmitter.emit('draw',{type:'slice',value:data.normalized.series[index],totalDataSum:totalDataSum,index:index,meta:series.meta,series:series,group:seriesGroups[index],element:pathElement,path:path.clone(),center:center,radius:radius,startAngle:startAngle,endAngle:endAngle});// If we need to show labels we need to add the label for this slice now\nif(options.showLabel){var labelPosition;if(data.raw.series.length===1){// If we have only 1 series, we can position the label in the center of the pie\nlabelPosition={x:center.x,y:center.y};}else{// Position at the labelRadius distance from center and between start and end angle\nlabelPosition=Chartist.polarToCartesian(center.x,center.y,labelRadius,startAngle+(endAngle-startAngle)/2);}var rawValue;if(data.normalized.labels&&!Chartist.isFalseyButZero(data.normalized.labels[index])){rawValue=data.normalized.labels[index];}else{rawValue=data.normalized.series[index];}var interpolatedValue=options.labelInterpolationFnc(rawValue,index);if(interpolatedValue||interpolatedValue===0){var labelElement=labelsGroup.elem('text',{dx:labelPosition.x,dy:labelPosition.y,'text-anchor':determineAnchorPosition(center,labelPosition,options.labelDirection)},options.classNames.label).text(''+interpolatedValue);// Fire off draw event\nthis.eventEmitter.emit('draw',{type:'label',index:index,group:labelsGroup,element:labelElement,text:''+interpolatedValue,x:labelPosition.x,y:labelPosition.y});}}// Set next startAngle to current endAngle.\n// (except for last slice)\nstartAngle=endAngle;}.bind(this));this.eventEmitter.emit('created',{chartRect:chartRect,svg:this.svg,options:options});}/**\r\n     * This method creates a new pie chart and returns an object that can be used to redraw the chart.\r\n     *\r\n     * @memberof Chartist.Pie\r\n     * @param {String|Node} query A selector query string or directly a DOM element\r\n     * @param {Object} data The data object in the pie chart needs to have a series property with a one dimensional data array. The values will be normalized against each other and don't necessarily need to be in percentage. The series property can also be an array of value objects that contain a value property and a className property to override the CSS class name for the series group.\r\n     * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list.\r\n     * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]\r\n     * @return {Object} An object with a version and an update method to manually redraw the chart\r\n     *\r\n     * @example\r\n     * // Simple pie chart example with four series\r\n     * new Chartist.Pie('.ct-chart', {\r\n     *   series: [10, 2, 4, 3]\r\n     * });\r\n     *\r\n     * @example\r\n     * // Drawing a donut chart\r\n     * new Chartist.Pie('.ct-chart', {\r\n     *   series: [10, 2, 4, 3]\r\n     * }, {\r\n     *   donut: true\r\n     * });\r\n     *\r\n     * @example\r\n     * // Using donut, startAngle and total to draw a gauge chart\r\n     * new Chartist.Pie('.ct-chart', {\r\n     *   series: [20, 10, 30, 40]\r\n     * }, {\r\n     *   donut: true,\r\n     *   donutWidth: 20,\r\n     *   startAngle: 270,\r\n     *   total: 200\r\n     * });\r\n     *\r\n     * @example\r\n     * // Drawing a pie chart with padding and labels that are outside the pie\r\n     * new Chartist.Pie('.ct-chart', {\r\n     *   series: [20, 10, 30, 40]\r\n     * }, {\r\n     *   chartPadding: 30,\r\n     *   labelOffset: 50,\r\n     *   labelDirection: 'explode'\r\n     * });\r\n     *\r\n     * @example\r\n     * // Overriding the class names for individual series as well as a name and meta data.\r\n     * // The name will be written as ct:series-name attribute and the meta data will be serialized and written\r\n     * // to a ct:meta attribute.\r\n     * new Chartist.Pie('.ct-chart', {\r\n     *   series: [{\r\n     *     value: 20,\r\n     *     name: 'Series 1',\r\n     *     className: 'my-custom-class-one',\r\n     *     meta: 'Meta One'\r\n     *   }, {\r\n     *     value: 10,\r\n     *     name: 'Series 2',\r\n     *     className: 'my-custom-class-two',\r\n     *     meta: 'Meta Two'\r\n     *   }, {\r\n     *     value: 70,\r\n     *     name: 'Series 3',\r\n     *     className: 'my-custom-class-three',\r\n     *     meta: 'Meta Three'\r\n     *   }]\r\n     * });\r\n     */function Pie(query,data,options,responsiveOptions){Chartist.Pie.super.constructor.call(this,query,data,defaultOptions,Chartist.extend({},defaultOptions,options),responsiveOptions);}// Creating pie chart type in Chartist namespace\nChartist.Pie=Chartist.Base.extend({constructor:Pie,createChart:createChart,determineAnchorPosition:determineAnchorPosition});})(this||__webpack_require__.g,Chartist);return Chartist;});// ----------- chartist.js END -------------\n// ----------- chartjs.bundle.js START -------------\n/*!\r\n * Chart.js v2.9.3\r\n * https://www.chartjs.org\r\n * (c) 2019 Chart.js Contributors\r\n * Released under the MIT License\r\n */(function(global,factory){ true?module.exports=factory():0;})(this,function(){'use strict';var commonjsGlobal=typeof globalThis!=='undefined'?globalThis:typeof window!=='undefined'?window:typeof __webpack_require__.g!=='undefined'?__webpack_require__.g:typeof self!=='undefined'?self:{};function commonjsRequire(){throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');}function createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports;}function getCjsExportFromNamespace(n){return n&&n['default']||n;}var colorName={\"aliceblue\":[240,248,255],\"antiquewhite\":[250,235,215],\"aqua\":[0,255,255],\"aquamarine\":[127,255,212],\"azure\":[240,255,255],\"beige\":[245,245,220],\"bisque\":[255,228,196],\"black\":[0,0,0],\"blanchedalmond\":[255,235,205],\"blue\":[0,0,255],\"blueviolet\":[138,43,226],\"brown\":[165,42,42],\"burlywood\":[222,184,135],\"cadetblue\":[95,158,160],\"chartreuse\":[127,255,0],\"chocolate\":[210,105,30],\"coral\":[255,127,80],\"cornflowerblue\":[100,149,237],\"cornsilk\":[255,248,220],\"crimson\":[220,20,60],\"cyan\":[0,255,255],\"darkblue\":[0,0,139],\"darkcyan\":[0,139,139],\"darkgoldenrod\":[184,134,11],\"darkgray\":[169,169,169],\"darkgreen\":[0,100,0],\"darkgrey\":[169,169,169],\"darkkhaki\":[189,183,107],\"darkmagenta\":[139,0,139],\"darkolivegreen\":[85,107,47],\"darkorange\":[255,140,0],\"darkorchid\":[153,50,204],\"darkred\":[139,0,0],\"darksalmon\":[233,150,122],\"darkseagreen\":[143,188,143],\"darkslateblue\":[72,61,139],\"darkslategray\":[47,79,79],\"darkslategrey\":[47,79,79],\"darkturquoise\":[0,206,209],\"darkviolet\":[148,0,211],\"deeppink\":[255,20,147],\"deepskyblue\":[0,191,255],\"dimgray\":[105,105,105],\"dimgrey\":[105,105,105],\"dodgerblue\":[30,144,255],\"firebrick\":[178,34,34],\"floralwhite\":[255,250,240],\"forestgreen\":[34,139,34],\"fuchsia\":[255,0,255],\"gainsboro\":[220,220,220],\"ghostwhite\":[248,248,255],\"gold\":[255,215,0],\"goldenrod\":[218,165,32],\"gray\":[128,128,128],\"green\":[0,128,0],\"greenyellow\":[173,255,47],\"grey\":[128,128,128],\"honeydew\":[240,255,240],\"hotpink\":[255,105,180],\"indianred\":[205,92,92],\"indigo\":[75,0,130],\"ivory\":[255,255,240],\"khaki\":[240,230,140],\"lavender\":[230,230,250],\"lavenderblush\":[255,240,245],\"lawngreen\":[124,252,0],\"lemonchiffon\":[255,250,205],\"lightblue\":[173,216,230],\"lightcoral\":[240,128,128],\"lightcyan\":[224,255,255],\"lightgoldenrodyellow\":[250,250,210],\"lightgray\":[211,211,211],\"lightgreen\":[144,238,144],\"lightgrey\":[211,211,211],\"lightpink\":[255,182,193],\"lightsalmon\":[255,160,122],\"lightseagreen\":[32,178,170],\"lightskyblue\":[135,206,250],\"lightslategray\":[119,136,153],\"lightslategrey\":[119,136,153],\"lightsteelblue\":[176,196,222],\"lightyellow\":[255,255,224],\"lime\":[0,255,0],\"limegreen\":[50,205,50],\"linen\":[250,240,230],\"magenta\":[255,0,255],\"maroon\":[128,0,0],\"mediumaquamarine\":[102,205,170],\"mediumblue\":[0,0,205],\"mediumorchid\":[186,85,211],\"mediumpurple\":[147,112,219],\"mediumseagreen\":[60,179,113],\"mediumslateblue\":[123,104,238],\"mediumspringgreen\":[0,250,154],\"mediumturquoise\":[72,209,204],\"mediumvioletred\":[199,21,133],\"midnightblue\":[25,25,112],\"mintcream\":[245,255,250],\"mistyrose\":[255,228,225],\"moccasin\":[255,228,181],\"navajowhite\":[255,222,173],\"navy\":[0,0,128],\"oldlace\":[253,245,230],\"olive\":[128,128,0],\"olivedrab\":[107,142,35],\"orange\":[255,165,0],\"orangered\":[255,69,0],\"orchid\":[218,112,214],\"palegoldenrod\":[238,232,170],\"palegreen\":[152,251,152],\"paleturquoise\":[175,238,238],\"palevioletred\":[219,112,147],\"papayawhip\":[255,239,213],\"peachpuff\":[255,218,185],\"peru\":[205,133,63],\"pink\":[255,192,203],\"plum\":[221,160,221],\"powderblue\":[176,224,230],\"purple\":[128,0,128],\"rebeccapurple\":[102,51,153],\"red\":[255,0,0],\"rosybrown\":[188,143,143],\"royalblue\":[65,105,225],\"saddlebrown\":[139,69,19],\"salmon\":[250,128,114],\"sandybrown\":[244,164,96],\"seagreen\":[46,139,87],\"seashell\":[255,245,238],\"sienna\":[160,82,45],\"silver\":[192,192,192],\"skyblue\":[135,206,235],\"slateblue\":[106,90,205],\"slategray\":[112,128,144],\"slategrey\":[112,128,144],\"snow\":[255,250,250],\"springgreen\":[0,255,127],\"steelblue\":[70,130,180],\"tan\":[210,180,140],\"teal\":[0,128,128],\"thistle\":[216,191,216],\"tomato\":[255,99,71],\"turquoise\":[64,224,208],\"violet\":[238,130,238],\"wheat\":[245,222,179],\"white\":[255,255,255],\"whitesmoke\":[245,245,245],\"yellow\":[255,255,0],\"yellowgreen\":[154,205,50]};var conversions=createCommonjsModule(function(module){/* MIT license */ // NOTE: conversions should only return primitive values (i.e. arrays, or\n//       values that give correct `typeof` results).\n//       do not use box values types (i.e. Number(), String(), etc.)\nvar reverseKeywords={};for(var key in colorName){if(colorName.hasOwnProperty(key)){reverseKeywords[colorName[key]]=key;}}var convert=module.exports={rgb:{channels:3,labels:'rgb'},hsl:{channels:3,labels:'hsl'},hsv:{channels:3,labels:'hsv'},hwb:{channels:3,labels:'hwb'},cmyk:{channels:4,labels:'cmyk'},xyz:{channels:3,labels:'xyz'},lab:{channels:3,labels:'lab'},lch:{channels:3,labels:'lch'},hex:{channels:1,labels:['hex']},keyword:{channels:1,labels:['keyword']},ansi16:{channels:1,labels:['ansi16']},ansi256:{channels:1,labels:['ansi256']},hcg:{channels:3,labels:['h','c','g']},apple:{channels:3,labels:['r16','g16','b16']},gray:{channels:1,labels:['gray']}};// hide .channels and .labels properties\nfor(var model in convert){if(convert.hasOwnProperty(model)){if(!('channels'in convert[model])){throw new Error('missing channels property: '+model);}if(!('labels'in convert[model])){throw new Error('missing channel labels property: '+model);}if(convert[model].labels.length!==convert[model].channels){throw new Error('channel and label counts mismatch: '+model);}var channels=convert[model].channels;var labels=convert[model].labels;delete convert[model].channels;delete convert[model].labels;Object.defineProperty(convert[model],'channels',{value:channels});Object.defineProperty(convert[model],'labels',{value:labels});}}convert.rgb.hsl=function(rgb){var r=rgb[0]/255;var g=rgb[1]/255;var b=rgb[2]/255;var min=Math.min(r,g,b);var max=Math.max(r,g,b);var delta=max-min;var h;var s;var l;if(max===min){h=0;}else if(r===max){h=(g-b)/delta;}else if(g===max){h=2+(b-r)/delta;}else if(b===max){h=4+(r-g)/delta;}h=Math.min(h*60,360);if(h<0){h+=360;}l=(min+max)/2;if(max===min){s=0;}else if(l<=0.5){s=delta/(max+min);}else{s=delta/(2-max-min);}return[h,s*100,l*100];};convert.rgb.hsv=function(rgb){var rdif;var gdif;var bdif;var h;var s;var r=rgb[0]/255;var g=rgb[1]/255;var b=rgb[2]/255;var v=Math.max(r,g,b);var diff=v-Math.min(r,g,b);var diffc=function(c){return(v-c)/6/diff+1/2;};if(diff===0){h=s=0;}else{s=diff/v;rdif=diffc(r);gdif=diffc(g);bdif=diffc(b);if(r===v){h=bdif-gdif;}else if(g===v){h=1/3+rdif-bdif;}else if(b===v){h=2/3+gdif-rdif;}if(h<0){h+=1;}else if(h>1){h-=1;}}return[h*360,s*100,v*100];};convert.rgb.hwb=function(rgb){var r=rgb[0];var g=rgb[1];var b=rgb[2];var h=convert.rgb.hsl(rgb)[0];var w=1/255*Math.min(r,Math.min(g,b));b=1-1/255*Math.max(r,Math.max(g,b));return[h,w*100,b*100];};convert.rgb.cmyk=function(rgb){var r=rgb[0]/255;var g=rgb[1]/255;var b=rgb[2]/255;var c;var m;var y;var k;k=Math.min(1-r,1-g,1-b);c=(1-r-k)/(1-k)||0;m=(1-g-k)/(1-k)||0;y=(1-b-k)/(1-k)||0;return[c*100,m*100,y*100,k*100];};/**\r\n     * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\r\n     * */function comparativeDistance(x,y){return Math.pow(x[0]-y[0],2)+Math.pow(x[1]-y[1],2)+Math.pow(x[2]-y[2],2);}convert.rgb.keyword=function(rgb){var reversed=reverseKeywords[rgb];if(reversed){return reversed;}var currentClosestDistance=Infinity;var currentClosestKeyword;for(var keyword in colorName){if(colorName.hasOwnProperty(keyword)){var value=colorName[keyword];// Compute comparative distance\nvar distance=comparativeDistance(rgb,value);// Check if its less, if so set as closest\nif(distance<currentClosestDistance){currentClosestDistance=distance;currentClosestKeyword=keyword;}}}return currentClosestKeyword;};convert.keyword.rgb=function(keyword){return colorName[keyword];};convert.rgb.xyz=function(rgb){var r=rgb[0]/255;var g=rgb[1]/255;var b=rgb[2]/255;// assume sRGB\nr=r>0.04045?Math.pow((r+0.055)/1.055,2.4):r/12.92;g=g>0.04045?Math.pow((g+0.055)/1.055,2.4):g/12.92;b=b>0.04045?Math.pow((b+0.055)/1.055,2.4):b/12.92;var x=r*0.4124+g*0.3576+b*0.1805;var y=r*0.2126+g*0.7152+b*0.0722;var z=r*0.0193+g*0.1192+b*0.9505;return[x*100,y*100,z*100];};convert.rgb.lab=function(rgb){var xyz=convert.rgb.xyz(rgb);var x=xyz[0];var y=xyz[1];var z=xyz[2];var l;var a;var b;x/=95.047;y/=100;z/=108.883;x=x>0.008856?Math.pow(x,1/3):7.787*x+16/116;y=y>0.008856?Math.pow(y,1/3):7.787*y+16/116;z=z>0.008856?Math.pow(z,1/3):7.787*z+16/116;l=116*y-16;a=500*(x-y);b=200*(y-z);return[l,a,b];};convert.hsl.rgb=function(hsl){var h=hsl[0]/360;var s=hsl[1]/100;var l=hsl[2]/100;var t1;var t2;var t3;var rgb;var val;if(s===0){val=l*255;return[val,val,val];}if(l<0.5){t2=l*(1+s);}else{t2=l+s-l*s;}t1=2*l-t2;rgb=[0,0,0];for(var i=0;i<3;i++){t3=h+1/3*-(i-1);if(t3<0){t3++;}if(t3>1){t3--;}if(6*t3<1){val=t1+(t2-t1)*6*t3;}else if(2*t3<1){val=t2;}else if(3*t3<2){val=t1+(t2-t1)*(2/3-t3)*6;}else{val=t1;}rgb[i]=val*255;}return rgb;};convert.hsl.hsv=function(hsl){var h=hsl[0];var s=hsl[1]/100;var l=hsl[2]/100;var smin=s;var lmin=Math.max(l,0.01);var sv;var v;l*=2;s*=l<=1?l:2-l;smin*=lmin<=1?lmin:2-lmin;v=(l+s)/2;sv=l===0?2*smin/(lmin+smin):2*s/(l+s);return[h,sv*100,v*100];};convert.hsv.rgb=function(hsv){var h=hsv[0]/60;var s=hsv[1]/100;var v=hsv[2]/100;var hi=Math.floor(h)%6;var f=h-Math.floor(h);var p=255*v*(1-s);var q=255*v*(1-s*f);var t=255*v*(1-s*(1-f));v*=255;switch(hi){case 0:return[v,t,p];case 1:return[q,v,p];case 2:return[p,v,t];case 3:return[p,q,v];case 4:return[t,p,v];case 5:return[v,p,q];}};convert.hsv.hsl=function(hsv){var h=hsv[0];var s=hsv[1]/100;var v=hsv[2]/100;var vmin=Math.max(v,0.01);var lmin;var sl;var l;l=(2-s)*v;lmin=(2-s)*vmin;sl=s*vmin;sl/=lmin<=1?lmin:2-lmin;sl=sl||0;l/=2;return[h,sl*100,l*100];};// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb=function(hwb){var h=hwb[0]/360;var wh=hwb[1]/100;var bl=hwb[2]/100;var ratio=wh+bl;var i;var v;var f;var n;// wh + bl cant be > 1\nif(ratio>1){wh/=ratio;bl/=ratio;}i=Math.floor(6*h);v=1-bl;f=6*h-i;if((i&0x01)!==0){f=1-f;}n=wh+f*(v-wh);// linear interpolation\nvar r;var g;var b;switch(i){default:case 6:case 0:r=v;g=n;b=wh;break;case 1:r=n;g=v;b=wh;break;case 2:r=wh;g=v;b=n;break;case 3:r=wh;g=n;b=v;break;case 4:r=n;g=wh;b=v;break;case 5:r=v;g=wh;b=n;break;}return[r*255,g*255,b*255];};convert.cmyk.rgb=function(cmyk){var c=cmyk[0]/100;var m=cmyk[1]/100;var y=cmyk[2]/100;var k=cmyk[3]/100;var r;var g;var b;r=1-Math.min(1,c*(1-k)+k);g=1-Math.min(1,m*(1-k)+k);b=1-Math.min(1,y*(1-k)+k);return[r*255,g*255,b*255];};convert.xyz.rgb=function(xyz){var x=xyz[0]/100;var y=xyz[1]/100;var z=xyz[2]/100;var r;var g;var b;r=x*3.2406+y*-1.5372+z*-0.4986;g=x*-0.9689+y*1.8758+z*0.0415;b=x*0.0557+y*-0.2040+z*1.0570;// assume sRGB\nr=r>0.0031308?1.055*Math.pow(r,1.0/2.4)-0.055:r*12.92;g=g>0.0031308?1.055*Math.pow(g,1.0/2.4)-0.055:g*12.92;b=b>0.0031308?1.055*Math.pow(b,1.0/2.4)-0.055:b*12.92;r=Math.min(Math.max(0,r),1);g=Math.min(Math.max(0,g),1);b=Math.min(Math.max(0,b),1);return[r*255,g*255,b*255];};convert.xyz.lab=function(xyz){var x=xyz[0];var y=xyz[1];var z=xyz[2];var l;var a;var b;x/=95.047;y/=100;z/=108.883;x=x>0.008856?Math.pow(x,1/3):7.787*x+16/116;y=y>0.008856?Math.pow(y,1/3):7.787*y+16/116;z=z>0.008856?Math.pow(z,1/3):7.787*z+16/116;l=116*y-16;a=500*(x-y);b=200*(y-z);return[l,a,b];};convert.lab.xyz=function(lab){var l=lab[0];var a=lab[1];var b=lab[2];var x;var y;var z;y=(l+16)/116;x=a/500+y;z=y-b/200;var y2=Math.pow(y,3);var x2=Math.pow(x,3);var z2=Math.pow(z,3);y=y2>0.008856?y2:(y-16/116)/7.787;x=x2>0.008856?x2:(x-16/116)/7.787;z=z2>0.008856?z2:(z-16/116)/7.787;x*=95.047;y*=100;z*=108.883;return[x,y,z];};convert.lab.lch=function(lab){var l=lab[0];var a=lab[1];var b=lab[2];var hr;var h;var c;hr=Math.atan2(b,a);h=hr*360/2/Math.PI;if(h<0){h+=360;}c=Math.sqrt(a*a+b*b);return[l,c,h];};convert.lch.lab=function(lch){var l=lch[0];var c=lch[1];var h=lch[2];var a;var b;var hr;hr=h/360*2*Math.PI;a=c*Math.cos(hr);b=c*Math.sin(hr);return[l,a,b];};convert.rgb.ansi16=function(args){var r=args[0];var g=args[1];var b=args[2];var value=1 in arguments?arguments[1]:convert.rgb.hsv(args)[2];// hsv -> ansi16 optimization\nvalue=Math.round(value/50);if(value===0){return 30;}var ansi=30+(Math.round(b/255)<<2|Math.round(g/255)<<1|Math.round(r/255));if(value===2){ansi+=60;}return ansi;};convert.hsv.ansi16=function(args){// optimization here; we already know the value and don't need to get\n// it converted for us.\nreturn convert.rgb.ansi16(convert.hsv.rgb(args),args[2]);};convert.rgb.ansi256=function(args){var r=args[0];var g=args[1];var b=args[2];// we use the extended greyscale palette here, with the exception of\n// black and white. normal palette only has 4 greyscale shades.\nif(r===g&&g===b){if(r<8){return 16;}if(r>248){return 231;}return Math.round((r-8)/247*24)+232;}var ansi=16+36*Math.round(r/255*5)+6*Math.round(g/255*5)+Math.round(b/255*5);return ansi;};convert.ansi16.rgb=function(args){var color=args%10;// handle greyscale\nif(color===0||color===7){if(args>50){color+=3.5;}color=color/10.5*255;return[color,color,color];}var mult=(~~(args>50)+1)*0.5;var r=(color&1)*mult*255;var g=(color>>1&1)*mult*255;var b=(color>>2&1)*mult*255;return[r,g,b];};convert.ansi256.rgb=function(args){// handle greyscale\nif(args>=232){var c=(args-232)*10+8;return[c,c,c];}args-=16;var rem;var r=Math.floor(args/36)/5*255;var g=Math.floor((rem=args%36)/6)/5*255;var b=rem%6/5*255;return[r,g,b];};convert.rgb.hex=function(args){var integer=((Math.round(args[0])&0xFF)<<16)+((Math.round(args[1])&0xFF)<<8)+(Math.round(args[2])&0xFF);var string=integer.toString(16).toUpperCase();return'000000'.substring(string.length)+string;};convert.hex.rgb=function(args){var match=args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match){return[0,0,0];}var colorString=match[0];if(match[0].length===3){colorString=colorString.split('').map(function(char){return char+char;}).join('');}var integer=parseInt(colorString,16);var r=integer>>16&0xFF;var g=integer>>8&0xFF;var b=integer&0xFF;return[r,g,b];};convert.rgb.hcg=function(rgb){var r=rgb[0]/255;var g=rgb[1]/255;var b=rgb[2]/255;var max=Math.max(Math.max(r,g),b);var min=Math.min(Math.min(r,g),b);var chroma=max-min;var grayscale;var hue;if(chroma<1){grayscale=min/(1-chroma);}else{grayscale=0;}if(chroma<=0){hue=0;}else if(max===r){hue=(g-b)/chroma%6;}else if(max===g){hue=2+(b-r)/chroma;}else{hue=4+(r-g)/chroma+4;}hue/=6;hue%=1;return[hue*360,chroma*100,grayscale*100];};convert.hsl.hcg=function(hsl){var s=hsl[1]/100;var l=hsl[2]/100;var c=1;var f=0;if(l<0.5){c=2.0*s*l;}else{c=2.0*s*(1.0-l);}if(c<1.0){f=(l-0.5*c)/(1.0-c);}return[hsl[0],c*100,f*100];};convert.hsv.hcg=function(hsv){var s=hsv[1]/100;var v=hsv[2]/100;var c=s*v;var f=0;if(c<1.0){f=(v-c)/(1-c);}return[hsv[0],c*100,f*100];};convert.hcg.rgb=function(hcg){var h=hcg[0]/360;var c=hcg[1]/100;var g=hcg[2]/100;if(c===0.0){return[g*255,g*255,g*255];}var pure=[0,0,0];var hi=h%1*6;var v=hi%1;var w=1-v;var mg=0;switch(Math.floor(hi)){case 0:pure[0]=1;pure[1]=v;pure[2]=0;break;case 1:pure[0]=w;pure[1]=1;pure[2]=0;break;case 2:pure[0]=0;pure[1]=1;pure[2]=v;break;case 3:pure[0]=0;pure[1]=w;pure[2]=1;break;case 4:pure[0]=v;pure[1]=0;pure[2]=1;break;default:pure[0]=1;pure[1]=0;pure[2]=w;}mg=(1.0-c)*g;return[(c*pure[0]+mg)*255,(c*pure[1]+mg)*255,(c*pure[2]+mg)*255];};convert.hcg.hsv=function(hcg){var c=hcg[1]/100;var g=hcg[2]/100;var v=c+g*(1.0-c);var f=0;if(v>0.0){f=c/v;}return[hcg[0],f*100,v*100];};convert.hcg.hsl=function(hcg){var c=hcg[1]/100;var g=hcg[2]/100;var l=g*(1.0-c)+0.5*c;var s=0;if(l>0.0&&l<0.5){s=c/(2*l);}else if(l>=0.5&&l<1.0){s=c/(2*(1-l));}return[hcg[0],s*100,l*100];};convert.hcg.hwb=function(hcg){var c=hcg[1]/100;var g=hcg[2]/100;var v=c+g*(1.0-c);return[hcg[0],(v-c)*100,(1-v)*100];};convert.hwb.hcg=function(hwb){var w=hwb[1]/100;var b=hwb[2]/100;var v=1-b;var c=v-w;var g=0;if(c<1){g=(v-c)/(1-c);}return[hwb[0],c*100,g*100];};convert.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255];};convert.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535];};convert.gray.rgb=function(args){return[args[0]/100*255,args[0]/100*255,args[0]/100*255];};convert.gray.hsl=convert.gray.hsv=function(args){return[0,0,args[0]];};convert.gray.hwb=function(gray){return[0,100,gray[0]];};convert.gray.cmyk=function(gray){return[0,0,0,gray[0]];};convert.gray.lab=function(gray){return[gray[0],0,0];};convert.gray.hex=function(gray){var val=Math.round(gray[0]/100*255)&0xFF;var integer=(val<<16)+(val<<8)+val;var string=integer.toString(16).toUpperCase();return'000000'.substring(string.length)+string;};convert.rgb.gray=function(rgb){var val=(rgb[0]+rgb[1]+rgb[2])/3;return[val/255*100];};});var conversions_1=conversions.rgb;var conversions_2=conversions.hsl;var conversions_3=conversions.hsv;var conversions_4=conversions.hwb;var conversions_5=conversions.cmyk;var conversions_6=conversions.xyz;var conversions_7=conversions.lab;var conversions_8=conversions.lch;var conversions_9=conversions.hex;var conversions_10=conversions.keyword;var conversions_11=conversions.ansi16;var conversions_12=conversions.ansi256;var conversions_13=conversions.hcg;var conversions_14=conversions.apple;var conversions_15=conversions.gray;/*\r\n        this function routes a model to all other models.\r\n    \r\n        all functions that are routed have a property `.conversion` attached\r\n        to the returned synthetic function. This property is an array\r\n        of strings, each with the steps in between the 'from' and 'to'\r\n        color models (inclusive).\r\n    \r\n        conversions that are not possible simply are not included.\r\n    */function buildGraph(){var graph={};// https://jsperf.com/object-keys-vs-for-in-with-closure/3\nvar models=Object.keys(conversions);for(var len=models.length,i=0;i<len;i++){graph[models[i]]={// http://jsperf.com/1-vs-infinity\n// micro-opt, but this is simple.\ndistance:-1,parent:null};}return graph;}// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel){var graph=buildGraph();var queue=[fromModel];// unshift -> queue -> pop\ngraph[fromModel].distance=0;while(queue.length){var current=queue.pop();var adjacents=Object.keys(conversions[current]);for(var len=adjacents.length,i=0;i<len;i++){var adjacent=adjacents[i];var node=graph[adjacent];if(node.distance===-1){node.distance=graph[current].distance+1;node.parent=current;queue.unshift(adjacent);}}}return graph;}function link(from,to){return function(args){return to(from(args));};}function wrapConversion(toModel,graph){var path=[graph[toModel].parent,toModel];var fn=conversions[graph[toModel].parent][toModel];var cur=graph[toModel].parent;while(graph[cur].parent){path.unshift(graph[cur].parent);fn=link(conversions[graph[cur].parent][cur],fn);cur=graph[cur].parent;}fn.conversion=path;return fn;}var route=function(fromModel){var graph=deriveBFS(fromModel);var conversion={};var models=Object.keys(graph);for(var len=models.length,i=0;i<len;i++){var toModel=models[i];var node=graph[toModel];if(node.parent===null){// no possible conversion, or this node is the source model.\ncontinue;}conversion[toModel]=wrapConversion(toModel,graph);}return conversion;};var convert={};var models=Object.keys(conversions);function wrapRaw(fn){var wrappedFn=function(args){if(args===undefined||args===null){return args;}if(arguments.length>1){args=Array.prototype.slice.call(arguments);}return fn(args);};// preserve .conversion property if there is one\nif('conversion'in fn){wrappedFn.conversion=fn.conversion;}return wrappedFn;}function wrapRounded(fn){var wrappedFn=function(args){if(args===undefined||args===null){return args;}if(arguments.length>1){args=Array.prototype.slice.call(arguments);}var result=fn(args);// we're assuming the result is an array here.\n// see notice in conversions.js; don't use box types\n// in conversion functions.\nif(typeof result==='object'){for(var len=result.length,i=0;i<len;i++){result[i]=Math.round(result[i]);}}return result;};// preserve .conversion property if there is one\nif('conversion'in fn){wrappedFn.conversion=fn.conversion;}return wrappedFn;}models.forEach(function(fromModel){convert[fromModel]={};Object.defineProperty(convert[fromModel],'channels',{value:conversions[fromModel].channels});Object.defineProperty(convert[fromModel],'labels',{value:conversions[fromModel].labels});var routes=route(fromModel);var routeModels=Object.keys(routes);routeModels.forEach(function(toModel){var fn=routes[toModel];convert[fromModel][toModel]=wrapRounded(fn);convert[fromModel][toModel].raw=wrapRaw(fn);});});var colorConvert=convert;var colorName$1={\"aliceblue\":[240,248,255],\"antiquewhite\":[250,235,215],\"aqua\":[0,255,255],\"aquamarine\":[127,255,212],\"azure\":[240,255,255],\"beige\":[245,245,220],\"bisque\":[255,228,196],\"black\":[0,0,0],\"blanchedalmond\":[255,235,205],\"blue\":[0,0,255],\"blueviolet\":[138,43,226],\"brown\":[165,42,42],\"burlywood\":[222,184,135],\"cadetblue\":[95,158,160],\"chartreuse\":[127,255,0],\"chocolate\":[210,105,30],\"coral\":[255,127,80],\"cornflowerblue\":[100,149,237],\"cornsilk\":[255,248,220],\"crimson\":[220,20,60],\"cyan\":[0,255,255],\"darkblue\":[0,0,139],\"darkcyan\":[0,139,139],\"darkgoldenrod\":[184,134,11],\"darkgray\":[169,169,169],\"darkgreen\":[0,100,0],\"darkgrey\":[169,169,169],\"darkkhaki\":[189,183,107],\"darkmagenta\":[139,0,139],\"darkolivegreen\":[85,107,47],\"darkorange\":[255,140,0],\"darkorchid\":[153,50,204],\"darkred\":[139,0,0],\"darksalmon\":[233,150,122],\"darkseagreen\":[143,188,143],\"darkslateblue\":[72,61,139],\"darkslategray\":[47,79,79],\"darkslategrey\":[47,79,79],\"darkturquoise\":[0,206,209],\"darkviolet\":[148,0,211],\"deeppink\":[255,20,147],\"deepskyblue\":[0,191,255],\"dimgray\":[105,105,105],\"dimgrey\":[105,105,105],\"dodgerblue\":[30,144,255],\"firebrick\":[178,34,34],\"floralwhite\":[255,250,240],\"forestgreen\":[34,139,34],\"fuchsia\":[255,0,255],\"gainsboro\":[220,220,220],\"ghostwhite\":[248,248,255],\"gold\":[255,215,0],\"goldenrod\":[218,165,32],\"gray\":[128,128,128],\"green\":[0,128,0],\"greenyellow\":[173,255,47],\"grey\":[128,128,128],\"honeydew\":[240,255,240],\"hotpink\":[255,105,180],\"indianred\":[205,92,92],\"indigo\":[75,0,130],\"ivory\":[255,255,240],\"khaki\":[240,230,140],\"lavender\":[230,230,250],\"lavenderblush\":[255,240,245],\"lawngreen\":[124,252,0],\"lemonchiffon\":[255,250,205],\"lightblue\":[173,216,230],\"lightcoral\":[240,128,128],\"lightcyan\":[224,255,255],\"lightgoldenrodyellow\":[250,250,210],\"lightgray\":[211,211,211],\"lightgreen\":[144,238,144],\"lightgrey\":[211,211,211],\"lightpink\":[255,182,193],\"lightsalmon\":[255,160,122],\"lightseagreen\":[32,178,170],\"lightskyblue\":[135,206,250],\"lightslategray\":[119,136,153],\"lightslategrey\":[119,136,153],\"lightsteelblue\":[176,196,222],\"lightyellow\":[255,255,224],\"lime\":[0,255,0],\"limegreen\":[50,205,50],\"linen\":[250,240,230],\"magenta\":[255,0,255],\"maroon\":[128,0,0],\"mediumaquamarine\":[102,205,170],\"mediumblue\":[0,0,205],\"mediumorchid\":[186,85,211],\"mediumpurple\":[147,112,219],\"mediumseagreen\":[60,179,113],\"mediumslateblue\":[123,104,238],\"mediumspringgreen\":[0,250,154],\"mediumturquoise\":[72,209,204],\"mediumvioletred\":[199,21,133],\"midnightblue\":[25,25,112],\"mintcream\":[245,255,250],\"mistyrose\":[255,228,225],\"moccasin\":[255,228,181],\"navajowhite\":[255,222,173],\"navy\":[0,0,128],\"oldlace\":[253,245,230],\"olive\":[128,128,0],\"olivedrab\":[107,142,35],\"orange\":[255,165,0],\"orangered\":[255,69,0],\"orchid\":[218,112,214],\"palegoldenrod\":[238,232,170],\"palegreen\":[152,251,152],\"paleturquoise\":[175,238,238],\"palevioletred\":[219,112,147],\"papayawhip\":[255,239,213],\"peachpuff\":[255,218,185],\"peru\":[205,133,63],\"pink\":[255,192,203],\"plum\":[221,160,221],\"powderblue\":[176,224,230],\"purple\":[128,0,128],\"rebeccapurple\":[102,51,153],\"red\":[255,0,0],\"rosybrown\":[188,143,143],\"royalblue\":[65,105,225],\"saddlebrown\":[139,69,19],\"salmon\":[250,128,114],\"sandybrown\":[244,164,96],\"seagreen\":[46,139,87],\"seashell\":[255,245,238],\"sienna\":[160,82,45],\"silver\":[192,192,192],\"skyblue\":[135,206,235],\"slateblue\":[106,90,205],\"slategray\":[112,128,144],\"slategrey\":[112,128,144],\"snow\":[255,250,250],\"springgreen\":[0,255,127],\"steelblue\":[70,130,180],\"tan\":[210,180,140],\"teal\":[0,128,128],\"thistle\":[216,191,216],\"tomato\":[255,99,71],\"turquoise\":[64,224,208],\"violet\":[238,130,238],\"wheat\":[245,222,179],\"white\":[255,255,255],\"whitesmoke\":[245,245,245],\"yellow\":[255,255,0],\"yellowgreen\":[154,205,50]};/* MIT license */var colorString={getRgba:getRgba,getHsla:getHsla,getRgb:getRgb,getHsl:getHsl,getHwb:getHwb,getAlpha:getAlpha,hexString:hexString,rgbString:rgbString,rgbaString:rgbaString,percentString:percentString,percentaString:percentaString,hslString:hslString,hslaString:hslaString,hwbString:hwbString,keyword:keyword};function getRgba(string){if(!string){return;}var abbr=/^#([a-fA-F0-9]{3,4})$/i,hex=/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,rgba=/^rgba?\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,per=/^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,keyword=/(\\w+)/;var rgb=[0,0,0],a=1,match=string.match(abbr),hexAlpha=\"\";if(match){match=match[1];hexAlpha=match[3];for(var i=0;i<rgb.length;i++){rgb[i]=parseInt(match[i]+match[i],16);}if(hexAlpha){a=Math.round(parseInt(hexAlpha+hexAlpha,16)/255*100)/100;}}else if(match=string.match(hex)){hexAlpha=match[2];match=match[1];for(var i=0;i<rgb.length;i++){rgb[i]=parseInt(match.slice(i*2,i*2+2),16);}if(hexAlpha){a=Math.round(parseInt(hexAlpha,16)/255*100)/100;}}else if(match=string.match(rgba)){for(var i=0;i<rgb.length;i++){rgb[i]=parseInt(match[i+1]);}a=parseFloat(match[4]);}else if(match=string.match(per)){for(var i=0;i<rgb.length;i++){rgb[i]=Math.round(parseFloat(match[i+1])*2.55);}a=parseFloat(match[4]);}else if(match=string.match(keyword)){if(match[1]==\"transparent\"){return[0,0,0,0];}rgb=colorName$1[match[1]];if(!rgb){return;}}for(var i=0;i<rgb.length;i++){rgb[i]=scale(rgb[i],0,255);}if(!a&&a!=0){a=1;}else{a=scale(a,0,1);}rgb[3]=a;return rgb;}function getHsla(string){if(!string){return;}var hsl=/^hsla?\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/;var match=string.match(hsl);if(match){var alpha=parseFloat(match[4]);var h=scale(parseInt(match[1]),0,360),s=scale(parseFloat(match[2]),0,100),l=scale(parseFloat(match[3]),0,100),a=scale(isNaN(alpha)?1:alpha,0,1);return[h,s,l,a];}}function getHwb(string){if(!string){return;}var hwb=/^hwb\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/;var match=string.match(hwb);if(match){var alpha=parseFloat(match[4]);var h=scale(parseInt(match[1]),0,360),w=scale(parseFloat(match[2]),0,100),b=scale(parseFloat(match[3]),0,100),a=scale(isNaN(alpha)?1:alpha,0,1);return[h,w,b,a];}}function getRgb(string){var rgba=getRgba(string);return rgba&&rgba.slice(0,3);}function getHsl(string){var hsla=getHsla(string);return hsla&&hsla.slice(0,3);}function getAlpha(string){var vals=getRgba(string);if(vals){return vals[3];}else if(vals=getHsla(string)){return vals[3];}else if(vals=getHwb(string)){return vals[3];}}// generators\nfunction hexString(rgba,a){var a=a!==undefined&&rgba.length===3?a:rgba[3];return\"#\"+hexDouble(rgba[0])+hexDouble(rgba[1])+hexDouble(rgba[2])+(a>=0&&a<1?hexDouble(Math.round(a*255)):\"\");}function rgbString(rgba,alpha){if(alpha<1||rgba[3]&&rgba[3]<1){return rgbaString(rgba,alpha);}return\"rgb(\"+rgba[0]+\", \"+rgba[1]+\", \"+rgba[2]+\")\";}function rgbaString(rgba,alpha){if(alpha===undefined){alpha=rgba[3]!==undefined?rgba[3]:1;}return\"rgba(\"+rgba[0]+\", \"+rgba[1]+\", \"+rgba[2]+\", \"+alpha+\")\";}function percentString(rgba,alpha){if(alpha<1||rgba[3]&&rgba[3]<1){return percentaString(rgba,alpha);}var r=Math.round(rgba[0]/255*100),g=Math.round(rgba[1]/255*100),b=Math.round(rgba[2]/255*100);return\"rgb(\"+r+\"%, \"+g+\"%, \"+b+\"%)\";}function percentaString(rgba,alpha){var r=Math.round(rgba[0]/255*100),g=Math.round(rgba[1]/255*100),b=Math.round(rgba[2]/255*100);return\"rgba(\"+r+\"%, \"+g+\"%, \"+b+\"%, \"+(alpha||rgba[3]||1)+\")\";}function hslString(hsla,alpha){if(alpha<1||hsla[3]&&hsla[3]<1){return hslaString(hsla,alpha);}return\"hsl(\"+hsla[0]+\", \"+hsla[1]+\"%, \"+hsla[2]+\"%)\";}function hslaString(hsla,alpha){if(alpha===undefined){alpha=hsla[3]!==undefined?hsla[3]:1;}return\"hsla(\"+hsla[0]+\", \"+hsla[1]+\"%, \"+hsla[2]+\"%, \"+alpha+\")\";}// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax\n// (hwb have alpha optional & 1 is default value)\nfunction hwbString(hwb,alpha){if(alpha===undefined){alpha=hwb[3]!==undefined?hwb[3]:1;}return\"hwb(\"+hwb[0]+\", \"+hwb[1]+\"%, \"+hwb[2]+\"%\"+(alpha!==undefined&&alpha!==1?\", \"+alpha:\"\")+\")\";}function keyword(rgb){return reverseNames[rgb.slice(0,3)];}// helpers\nfunction scale(num,min,max){return Math.min(Math.max(min,num),max);}function hexDouble(num){var str=num.toString(16).toUpperCase();return str.length<2?\"0\"+str:str;}//create a list of reverse color names\nvar reverseNames={};for(var name in colorName$1){reverseNames[colorName$1[name]]=name;}/* MIT license */var Color=function(obj){if(obj instanceof Color){return obj;}if(!(this instanceof Color)){return new Color(obj);}this.valid=false;this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};// parse Color() argument\nvar vals;if(typeof obj==='string'){vals=colorString.getRgba(obj);if(vals){this.setValues('rgb',vals);}else if(vals=colorString.getHsla(obj)){this.setValues('hsl',vals);}else if(vals=colorString.getHwb(obj)){this.setValues('hwb',vals);}}else if(typeof obj==='object'){vals=obj;if(vals.r!==undefined||vals.red!==undefined){this.setValues('rgb',vals);}else if(vals.l!==undefined||vals.lightness!==undefined){this.setValues('hsl',vals);}else if(vals.v!==undefined||vals.value!==undefined){this.setValues('hsv',vals);}else if(vals.w!==undefined||vals.whiteness!==undefined){this.setValues('hwb',vals);}else if(vals.c!==undefined||vals.cyan!==undefined){this.setValues('cmyk',vals);}}};Color.prototype={isValid:function(){return this.valid;},rgb:function(){return this.setSpace('rgb',arguments);},hsl:function(){return this.setSpace('hsl',arguments);},hsv:function(){return this.setSpace('hsv',arguments);},hwb:function(){return this.setSpace('hwb',arguments);},cmyk:function(){return this.setSpace('cmyk',arguments);},rgbArray:function(){return this.values.rgb;},hslArray:function(){return this.values.hsl;},hsvArray:function(){return this.values.hsv;},hwbArray:function(){var values=this.values;if(values.alpha!==1){return values.hwb.concat([values.alpha]);}return values.hwb;},cmykArray:function(){return this.values.cmyk;},rgbaArray:function(){var values=this.values;return values.rgb.concat([values.alpha]);},hslaArray:function(){var values=this.values;return values.hsl.concat([values.alpha]);},alpha:function(val){if(val===undefined){return this.values.alpha;}this.setValues('alpha',val);return this;},red:function(val){return this.setChannel('rgb',0,val);},green:function(val){return this.setChannel('rgb',1,val);},blue:function(val){return this.setChannel('rgb',2,val);},hue:function(val){if(val){val%=360;val=val<0?360+val:val;}return this.setChannel('hsl',0,val);},saturation:function(val){return this.setChannel('hsl',1,val);},lightness:function(val){return this.setChannel('hsl',2,val);},saturationv:function(val){return this.setChannel('hsv',1,val);},whiteness:function(val){return this.setChannel('hwb',1,val);},blackness:function(val){return this.setChannel('hwb',2,val);},value:function(val){return this.setChannel('hsv',2,val);},cyan:function(val){return this.setChannel('cmyk',0,val);},magenta:function(val){return this.setChannel('cmyk',1,val);},yellow:function(val){return this.setChannel('cmyk',2,val);},black:function(val){return this.setChannel('cmyk',3,val);},hexString:function(){return colorString.hexString(this.values.rgb);},rgbString:function(){return colorString.rgbString(this.values.rgb,this.values.alpha);},rgbaString:function(){return colorString.rgbaString(this.values.rgb,this.values.alpha);},percentString:function(){return colorString.percentString(this.values.rgb,this.values.alpha);},hslString:function(){return colorString.hslString(this.values.hsl,this.values.alpha);},hslaString:function(){return colorString.hslaString(this.values.hsl,this.values.alpha);},hwbString:function(){return colorString.hwbString(this.values.hwb,this.values.alpha);},keyword:function(){return colorString.keyword(this.values.rgb,this.values.alpha);},rgbNumber:function(){var rgb=this.values.rgb;return rgb[0]<<16|rgb[1]<<8|rgb[2];},luminosity:function(){// http://www.w3.org/TR/WCAG20/#relativeluminancedef\nvar rgb=this.values.rgb;var lum=[];for(var i=0;i<rgb.length;i++){var chan=rgb[i]/255;lum[i]=chan<=0.03928?chan/12.92:Math.pow((chan+0.055)/1.055,2.4);}return 0.2126*lum[0]+0.7152*lum[1]+0.0722*lum[2];},contrast:function(color2){// http://www.w3.org/TR/WCAG20/#contrast-ratiodef\nvar lum1=this.luminosity();var lum2=color2.luminosity();if(lum1>lum2){return(lum1+0.05)/(lum2+0.05);}return(lum2+0.05)/(lum1+0.05);},level:function(color2){var contrastRatio=this.contrast(color2);if(contrastRatio>=7.1){return'AAA';}return contrastRatio>=4.5?'AA':'';},dark:function(){// YIQ equation from http://24ways.org/2010/calculating-color-contrast\nvar rgb=this.values.rgb;var yiq=(rgb[0]*299+rgb[1]*587+rgb[2]*114)/1000;return yiq<128;},light:function(){return!this.dark();},negate:function(){var rgb=[];for(var i=0;i<3;i++){rgb[i]=255-this.values.rgb[i];}this.setValues('rgb',rgb);return this;},lighten:function(ratio){var hsl=this.values.hsl;hsl[2]+=hsl[2]*ratio;this.setValues('hsl',hsl);return this;},darken:function(ratio){var hsl=this.values.hsl;hsl[2]-=hsl[2]*ratio;this.setValues('hsl',hsl);return this;},saturate:function(ratio){var hsl=this.values.hsl;hsl[1]+=hsl[1]*ratio;this.setValues('hsl',hsl);return this;},desaturate:function(ratio){var hsl=this.values.hsl;hsl[1]-=hsl[1]*ratio;this.setValues('hsl',hsl);return this;},whiten:function(ratio){var hwb=this.values.hwb;hwb[1]+=hwb[1]*ratio;this.setValues('hwb',hwb);return this;},blacken:function(ratio){var hwb=this.values.hwb;hwb[2]+=hwb[2]*ratio;this.setValues('hwb',hwb);return this;},greyscale:function(){var rgb=this.values.rgb;// http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale\nvar val=rgb[0]*0.3+rgb[1]*0.59+rgb[2]*0.11;this.setValues('rgb',[val,val,val]);return this;},clearer:function(ratio){var alpha=this.values.alpha;this.setValues('alpha',alpha-alpha*ratio);return this;},opaquer:function(ratio){var alpha=this.values.alpha;this.setValues('alpha',alpha+alpha*ratio);return this;},rotate:function(degrees){var hsl=this.values.hsl;var hue=(hsl[0]+degrees)%360;hsl[0]=hue<0?360+hue:hue;this.setValues('hsl',hsl);return this;},/**\r\n         * Ported from sass implementation in C\r\n         * https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209\r\n         */mix:function(mixinColor,weight){var color1=this;var color2=mixinColor;var p=weight===undefined?0.5:weight;var w=2*p-1;var a=color1.alpha()-color2.alpha();var w1=((w*a===-1?w:(w+a)/(1+w*a))+1)/2.0;var w2=1-w1;return this.rgb(w1*color1.red()+w2*color2.red(),w1*color1.green()+w2*color2.green(),w1*color1.blue()+w2*color2.blue()).alpha(color1.alpha()*p+color2.alpha()*(1-p));},toJSON:function(){return this.rgb();},clone:function(){// NOTE(SB): using node-clone creates a dependency to Buffer when using browserify,\n// making the final build way to big to embed in Chart.js. So let's do it manually,\n// assuming that values to clone are 1 dimension arrays containing only numbers,\n// except 'alpha' which is a number.\nvar result=new Color();var source=this.values;var target=result.values;var value,type;for(var prop in source){if(source.hasOwnProperty(prop)){value=source[prop];type={}.toString.call(value);if(type==='[object Array]'){target[prop]=value.slice(0);}else if(type==='[object Number]'){target[prop]=value;}else{console.error('unexpected color value:',value);}}}return result;}};Color.prototype.spaces={rgb:['red','green','blue'],hsl:['hue','saturation','lightness'],hsv:['hue','saturation','value'],hwb:['hue','whiteness','blackness'],cmyk:['cyan','magenta','yellow','black']};Color.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]};Color.prototype.getValues=function(space){var values=this.values;var vals={};for(var i=0;i<space.length;i++){vals[space.charAt(i)]=values[space][i];}if(values.alpha!==1){vals.a=values.alpha;}// {r: 255, g: 255, b: 255, a: 0.4}\nreturn vals;};Color.prototype.setValues=function(space,vals){var values=this.values;var spaces=this.spaces;var maxes=this.maxes;var alpha=1;var i;this.valid=true;if(space==='alpha'){alpha=vals;}else if(vals.length){// [10, 10, 10]\nvalues[space]=vals.slice(0,space.length);alpha=vals[space.length];}else if(vals[space.charAt(0)]!==undefined){// {r: 10, g: 10, b: 10}\nfor(i=0;i<space.length;i++){values[space][i]=vals[space.charAt(i)];}alpha=vals.a;}else if(vals[spaces[space][0]]!==undefined){// {red: 10, green: 10, blue: 10}\nvar chans=spaces[space];for(i=0;i<space.length;i++){values[space][i]=vals[chans[i]];}alpha=vals.alpha;}values.alpha=Math.max(0,Math.min(1,alpha===undefined?values.alpha:alpha));if(space==='alpha'){return false;}var capped;// cap values of the space prior converting all values\nfor(i=0;i<space.length;i++){capped=Math.max(0,Math.min(maxes[space][i],values[space][i]));values[space][i]=Math.round(capped);}// convert to all the other color spaces\nfor(var sname in spaces){if(sname!==space){values[sname]=colorConvert[space][sname](values[space]);}}return true;};Color.prototype.setSpace=function(space,args){var vals=args[0];if(vals===undefined){// color.rgb()\nreturn this.getValues(space);}// color.rgb(10, 10, 10)\nif(typeof vals==='number'){vals=Array.prototype.slice.call(args);}this.setValues(space,vals);return this;};Color.prototype.setChannel=function(space,index,val){var svalues=this.values[space];if(val===undefined){// color.red()\nreturn svalues[index];}else if(val===svalues[index]){// color.red(color.red())\nreturn this;}// color.red(100)\nsvalues[index]=val;this.setValues(space,svalues);return this;};if(typeof window!=='undefined'){window.Color=Color;}var chartjsColor=Color;/**\r\n     * @namespace Chart.helpers\r\n     */var helpers={/**\r\n         * An empty function that can be used, for example, for optional callback.\r\n         */noop:function(){},/**\r\n         * Returns a unique id, sequentially generated from a global variable.\r\n         * @returns {number}\r\n         * @function\r\n         */uid:function(){var id=0;return function(){return id++;};}(),/**\r\n         * Returns true if `value` is neither null nor undefined, else returns false.\r\n         * @param {*} value - The value to test.\r\n         * @returns {boolean}\r\n         * @since 2.7.0\r\n         */isNullOrUndef:function(value){return value===null||typeof value==='undefined';},/**\r\n         * Returns true if `value` is an array (including typed arrays), else returns false.\r\n         * @param {*} value - The value to test.\r\n         * @returns {boolean}\r\n         * @function\r\n         */isArray:function(value){if(Array.isArray&&Array.isArray(value)){return true;}var type=Object.prototype.toString.call(value);if(type.substr(0,7)==='[object'&&type.substr(-6)==='Array]'){return true;}return false;},/**\r\n         * Returns true if `value` is an object (excluding null), else returns false.\r\n         * @param {*} value - The value to test.\r\n         * @returns {boolean}\r\n         * @since 2.7.0\r\n         */isObject:function(value){return value!==null&&Object.prototype.toString.call(value)==='[object Object]';},/**\r\n         * Returns true if `value` is a finite number, else returns false\r\n         * @param {*} value  - The value to test.\r\n         * @returns {boolean}\r\n         */isFinite:function(value){return(typeof value==='number'||value instanceof Number)&&isFinite(value);},/**\r\n         * Returns `value` if defined, else returns `defaultValue`.\r\n         * @param {*} value - The value to return if defined.\r\n         * @param {*} defaultValue - The value to return if `value` is undefined.\r\n         * @returns {*}\r\n         */valueOrDefault:function(value,defaultValue){return typeof value==='undefined'?defaultValue:value;},/**\r\n         * Returns value at the given `index` in array if defined, else returns `defaultValue`.\r\n         * @param {Array} value - The array to lookup for value at `index`.\r\n         * @param {number} index - The index in `value` to lookup for value.\r\n         * @param {*} defaultValue - The value to return if `value[index]` is undefined.\r\n         * @returns {*}\r\n         */valueAtIndexOrDefault:function(value,index,defaultValue){return helpers.valueOrDefault(helpers.isArray(value)?value[index]:value,defaultValue);},/**\r\n         * Calls `fn` with the given `args` in the scope defined by `thisArg` and returns the\r\n         * value returned by `fn`. If `fn` is not a function, this method returns undefined.\r\n         * @param {function} fn - The function to call.\r\n         * @param {Array|undefined|null} args - The arguments with which `fn` should be called.\r\n         * @param {object} [thisArg] - The value of `this` provided for the call to `fn`.\r\n         * @returns {*}\r\n         */callback:function(fn,args,thisArg){if(fn&&typeof fn.call==='function'){return fn.apply(thisArg,args);}},/**\r\n         * Note(SB) for performance sake, this method should only be used when loopable type\r\n         * is unknown or in none intensive code (not called often and small loopable). Else\r\n         * it's preferable to use a regular for() loop and save extra function calls.\r\n         * @param {object|Array} loopable - The object or array to be iterated.\r\n         * @param {function} fn - The function to call for each item.\r\n         * @param {object} [thisArg] - The value of `this` provided for the call to `fn`.\r\n         * @param {boolean} [reverse] - If true, iterates backward on the loopable.\r\n         */each:function(loopable,fn,thisArg,reverse){var i,len,keys;if(helpers.isArray(loopable)){len=loopable.length;if(reverse){for(i=len-1;i>=0;i--){fn.call(thisArg,loopable[i],i);}}else{for(i=0;i<len;i++){fn.call(thisArg,loopable[i],i);}}}else if(helpers.isObject(loopable)){keys=Object.keys(loopable);len=keys.length;for(i=0;i<len;i++){fn.call(thisArg,loopable[keys[i]],keys[i]);}}},/**\r\n         * Returns true if the `a0` and `a1` arrays have the same content, else returns false.\r\n         * @see https://stackoverflow.com/a/14853974\r\n         * @param {Array} a0 - The array to compare\r\n         * @param {Array} a1 - The array to compare\r\n         * @returns {boolean}\r\n         */arrayEquals:function(a0,a1){var i,ilen,v0,v1;if(!a0||!a1||a0.length!==a1.length){return false;}for(i=0,ilen=a0.length;i<ilen;++i){v0=a0[i];v1=a1[i];if(v0 instanceof Array&&v1 instanceof Array){if(!helpers.arrayEquals(v0,v1)){return false;}}else if(v0!==v1){// NOTE: two different object instances will never be equal: {x:20} != {x:20}\nreturn false;}}return true;},/**\r\n         * Returns a deep copy of `source` without keeping references on objects and arrays.\r\n         * @param {*} source - The value to clone.\r\n         * @returns {*}\r\n         */clone:function(source){if(helpers.isArray(source)){return source.map(helpers.clone);}if(helpers.isObject(source)){var target={};var keys=Object.keys(source);var klen=keys.length;var k=0;for(;k<klen;++k){target[keys[k]]=helpers.clone(source[keys[k]]);}return target;}return source;},/**\r\n         * The default merger when Chart.helpers.merge is called without merger option.\r\n         * Note(SB): also used by mergeConfig and mergeScaleConfig as fallback.\r\n         * @private\r\n         */_merger:function(key,target,source,options){var tval=target[key];var sval=source[key];if(helpers.isObject(tval)&&helpers.isObject(sval)){helpers.merge(tval,sval,options);}else{target[key]=helpers.clone(sval);}},/**\r\n         * Merges source[key] in target[key] only if target[key] is undefined.\r\n         * @private\r\n         */_mergerIf:function(key,target,source){var tval=target[key];var sval=source[key];if(helpers.isObject(tval)&&helpers.isObject(sval)){helpers.mergeIf(tval,sval);}else if(!target.hasOwnProperty(key)){target[key]=helpers.clone(sval);}},/**\r\n         * Recursively deep copies `source` properties into `target` with the given `options`.\r\n         * IMPORTANT: `target` is not cloned and will be updated with `source` properties.\r\n         * @param {object} target - The target object in which all sources are merged into.\r\n         * @param {object|object[]} source - Object(s) to merge into `target`.\r\n         * @param {object} [options] - Merging options:\r\n         * @param {function} [options.merger] - The merge method (key, target, source, options)\r\n         * @returns {object} The `target` object.\r\n         */merge:function(target,source,options){var sources=helpers.isArray(source)?source:[source];var ilen=sources.length;var merge,i,keys,klen,k;if(!helpers.isObject(target)){return target;}options=options||{};merge=options.merger||helpers._merger;for(i=0;i<ilen;++i){source=sources[i];if(!helpers.isObject(source)){continue;}keys=Object.keys(source);for(k=0,klen=keys.length;k<klen;++k){merge(keys[k],target,source,options);}}return target;},/**\r\n         * Recursively deep copies `source` properties into `target` *only* if not defined in target.\r\n         * IMPORTANT: `target` is not cloned and will be updated with `source` properties.\r\n         * @param {object} target - The target object in which all sources are merged into.\r\n         * @param {object|object[]} source - Object(s) to merge into `target`.\r\n         * @returns {object} The `target` object.\r\n         */mergeIf:function(target,source){return helpers.merge(target,source,{merger:helpers._mergerIf});},/**\r\n         * Applies the contents of two or more objects together into the first object.\r\n         * @param {object} target - The target object in which all objects are merged into.\r\n         * @param {object} arg1 - Object containing additional properties to merge in target.\r\n         * @param {object} argN - Additional objects containing properties to merge in target.\r\n         * @returns {object} The `target` object.\r\n         */extend:Object.assign||function(target){return helpers.merge(target,[].slice.call(arguments,1),{merger:function(key,dst,src){dst[key]=src[key];}});},/**\r\n         * Basic javascript inheritance based on the model created in Backbone.js\r\n         */inherits:function(extensions){var me=this;var ChartElement=extensions&&extensions.hasOwnProperty('constructor')?extensions.constructor:function(){return me.apply(this,arguments);};var Surrogate=function(){this.constructor=ChartElement;};Surrogate.prototype=me.prototype;ChartElement.prototype=new Surrogate();ChartElement.extend=helpers.inherits;if(extensions){helpers.extend(ChartElement.prototype,extensions);}ChartElement.__super__=me.prototype;return ChartElement;},_deprecated:function(scope,value,previous,current){if(value!==undefined){console.warn(scope+': \"'+previous+'\" is deprecated. Please use \"'+current+'\" instead');}}};var helpers_core=helpers;// DEPRECATIONS\n/**\r\n     * Provided for backward compatibility, use Chart.helpers.callback instead.\r\n     * @function Chart.helpers.callCallback\r\n     * @deprecated since version 2.6.0\r\n     * @todo remove at version 3\r\n     * @private\r\n     */helpers.callCallback=helpers.callback;/**\r\n     * Provided for backward compatibility, use Array.prototype.indexOf instead.\r\n     * Array.prototype.indexOf compatibility: Chrome, Opera, Safari, FF1.5+, IE9+\r\n     * @function Chart.helpers.indexOf\r\n     * @deprecated since version 2.7.0\r\n     * @todo remove at version 3\r\n     * @private\r\n     */helpers.indexOf=function(array,item,fromIndex){return Array.prototype.indexOf.call(array,item,fromIndex);};/**\r\n     * Provided for backward compatibility, use Chart.helpers.valueOrDefault instead.\r\n     * @function Chart.helpers.getValueOrDefault\r\n     * @deprecated since version 2.7.0\r\n     * @todo remove at version 3\r\n     * @private\r\n     */helpers.getValueOrDefault=helpers.valueOrDefault;/**\r\n     * Provided for backward compatibility, use Chart.helpers.valueAtIndexOrDefault instead.\r\n     * @function Chart.helpers.getValueAtIndexOrDefault\r\n     * @deprecated since version 2.7.0\r\n     * @todo remove at version 3\r\n     * @private\r\n     */helpers.getValueAtIndexOrDefault=helpers.valueAtIndexOrDefault;/**\r\n     * Easing functions adapted from Robert Penner's easing equations.\r\n     * @namespace Chart.helpers.easingEffects\r\n     * @see http://www.robertpenner.com/easing/\r\n     */var effects={linear:function(t){return t;},easeInQuad:function(t){return t*t;},easeOutQuad:function(t){return-t*(t-2);},easeInOutQuad:function(t){if((t/=0.5)<1){return 0.5*t*t;}return-0.5*(--t*(t-2)-1);},easeInCubic:function(t){return t*t*t;},easeOutCubic:function(t){return(t=t-1)*t*t+1;},easeInOutCubic:function(t){if((t/=0.5)<1){return 0.5*t*t*t;}return 0.5*((t-=2)*t*t+2);},easeInQuart:function(t){return t*t*t*t;},easeOutQuart:function(t){return-((t=t-1)*t*t*t-1);},easeInOutQuart:function(t){if((t/=0.5)<1){return 0.5*t*t*t*t;}return-0.5*((t-=2)*t*t*t-2);},easeInQuint:function(t){return t*t*t*t*t;},easeOutQuint:function(t){return(t=t-1)*t*t*t*t+1;},easeInOutQuint:function(t){if((t/=0.5)<1){return 0.5*t*t*t*t*t;}return 0.5*((t-=2)*t*t*t*t+2);},easeInSine:function(t){return-Math.cos(t*(Math.PI/2))+1;},easeOutSine:function(t){return Math.sin(t*(Math.PI/2));},easeInOutSine:function(t){return-0.5*(Math.cos(Math.PI*t)-1);},easeInExpo:function(t){return t===0?0:Math.pow(2,10*(t-1));},easeOutExpo:function(t){return t===1?1:-Math.pow(2,-10*t)+1;},easeInOutExpo:function(t){if(t===0){return 0;}if(t===1){return 1;}if((t/=0.5)<1){return 0.5*Math.pow(2,10*(t-1));}return 0.5*(-Math.pow(2,-10*--t)+2);},easeInCirc:function(t){if(t>=1){return t;}return-(Math.sqrt(1-t*t)-1);},easeOutCirc:function(t){return Math.sqrt(1-(t=t-1)*t);},easeInOutCirc:function(t){if((t/=0.5)<1){return-0.5*(Math.sqrt(1-t*t)-1);}return 0.5*(Math.sqrt(1-(t-=2)*t)+1);},easeInElastic:function(t){var s=1.70158;var p=0;var a=1;if(t===0){return 0;}if(t===1){return 1;}if(!p){p=0.3;}if(a<1){a=1;s=p/4;}else{s=p/(2*Math.PI)*Math.asin(1/a);}return-(a*Math.pow(2,10*(t-=1))*Math.sin((t-s)*(2*Math.PI)/p));},easeOutElastic:function(t){var s=1.70158;var p=0;var a=1;if(t===0){return 0;}if(t===1){return 1;}if(!p){p=0.3;}if(a<1){a=1;s=p/4;}else{s=p/(2*Math.PI)*Math.asin(1/a);}return a*Math.pow(2,-10*t)*Math.sin((t-s)*(2*Math.PI)/p)+1;},easeInOutElastic:function(t){var s=1.70158;var p=0;var a=1;if(t===0){return 0;}if((t/=0.5)===2){return 1;}if(!p){p=0.45;}if(a<1){a=1;s=p/4;}else{s=p/(2*Math.PI)*Math.asin(1/a);}if(t<1){return-0.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t-s)*(2*Math.PI)/p));}return a*Math.pow(2,-10*(t-=1))*Math.sin((t-s)*(2*Math.PI)/p)*0.5+1;},easeInBack:function(t){var s=1.70158;return t*t*((s+1)*t-s);},easeOutBack:function(t){var s=1.70158;return(t=t-1)*t*((s+1)*t+s)+1;},easeInOutBack:function(t){var s=1.70158;if((t/=0.5)<1){return 0.5*(t*t*(((s*=1.525)+1)*t-s));}return 0.5*((t-=2)*t*(((s*=1.525)+1)*t+s)+2);},easeInBounce:function(t){return 1-effects.easeOutBounce(1-t);},easeOutBounce:function(t){if(t<1/2.75){return 7.5625*t*t;}if(t<2/2.75){return 7.5625*(t-=1.5/2.75)*t+0.75;}if(t<2.5/2.75){return 7.5625*(t-=2.25/2.75)*t+0.9375;}return 7.5625*(t-=2.625/2.75)*t+0.984375;},easeInOutBounce:function(t){if(t<0.5){return effects.easeInBounce(t*2)*0.5;}return effects.easeOutBounce(t*2-1)*0.5+0.5;}};var helpers_easing={effects:effects};// DEPRECATIONS\n/**\r\n     * Provided for backward compatibility, use Chart.helpers.easing.effects instead.\r\n     * @function Chart.helpers.easingEffects\r\n     * @deprecated since version 2.7.0\r\n     * @todo remove at version 3\r\n     * @private\r\n     */helpers_core.easingEffects=effects;var PI=Math.PI;var RAD_PER_DEG=PI/180;var DOUBLE_PI=PI*2;var HALF_PI=PI/2;var QUARTER_PI=PI/4;var TWO_THIRDS_PI=PI*2/3;/**\r\n     * @namespace Chart.helpers.canvas\r\n     */var exports$1={/**\r\n         * Clears the entire canvas associated to the given `chart`.\r\n         * @param {Chart} chart - The chart for which to clear the canvas.\r\n         */clear:function(chart){chart.ctx.clearRect(0,0,chart.width,chart.height);},/**\r\n         * Creates a \"path\" for a rectangle with rounded corners at position (x, y) with a\r\n         * given size (width, height) and the same `radius` for all corners.\r\n         * @param {CanvasRenderingContext2D} ctx - The canvas 2D Context.\r\n         * @param {number} x - The x axis of the coordinate for the rectangle starting point.\r\n         * @param {number} y - The y axis of the coordinate for the rectangle starting point.\r\n         * @param {number} width - The rectangle's width.\r\n         * @param {number} height - The rectangle's height.\r\n         * @param {number} radius - The rounded amount (in pixels) for the four corners.\r\n         * @todo handle `radius` as top-left, top-right, bottom-right, bottom-left array/object?\r\n         */roundedRect:function(ctx,x,y,width,height,radius){if(radius){var r=Math.min(radius,height/2,width/2);var left=x+r;var top=y+r;var right=x+width-r;var bottom=y+height-r;ctx.moveTo(x,top);if(left<right&&top<bottom){ctx.arc(left,top,r,-PI,-HALF_PI);ctx.arc(right,top,r,-HALF_PI,0);ctx.arc(right,bottom,r,0,HALF_PI);ctx.arc(left,bottom,r,HALF_PI,PI);}else if(left<right){ctx.moveTo(left,y);ctx.arc(right,top,r,-HALF_PI,HALF_PI);ctx.arc(left,top,r,HALF_PI,PI+HALF_PI);}else if(top<bottom){ctx.arc(left,top,r,-PI,0);ctx.arc(left,bottom,r,0,PI);}else{ctx.arc(left,top,r,-PI,PI);}ctx.closePath();ctx.moveTo(x,y);}else{ctx.rect(x,y,width,height);}},drawPoint:function(ctx,style,radius,x,y,rotation){var type,xOffset,yOffset,size,cornerRadius;var rad=(rotation||0)*RAD_PER_DEG;if(style&&typeof style==='object'){type=style.toString();if(type==='[object HTMLImageElement]'||type==='[object HTMLCanvasElement]'){ctx.save();ctx.translate(x,y);ctx.rotate(rad);ctx.drawImage(style,-style.width/2,-style.height/2,style.width,style.height);ctx.restore();return;}}if(isNaN(radius)||radius<=0){return;}ctx.beginPath();switch(style){// Default includes circle\ndefault:ctx.arc(x,y,radius,0,DOUBLE_PI);ctx.closePath();break;case'triangle':ctx.moveTo(x+Math.sin(rad)*radius,y-Math.cos(rad)*radius);rad+=TWO_THIRDS_PI;ctx.lineTo(x+Math.sin(rad)*radius,y-Math.cos(rad)*radius);rad+=TWO_THIRDS_PI;ctx.lineTo(x+Math.sin(rad)*radius,y-Math.cos(rad)*radius);ctx.closePath();break;case'rectRounded':// NOTE: the rounded rect implementation changed to use `arc` instead of\n// `quadraticCurveTo` since it generates better results when rect is\n// almost a circle. 0.516 (instead of 0.5) produces results with visually\n// closer proportion to the previous impl and it is inscribed in the\n// circle with `radius`. For more details, see the following PRs:\n// https://github.com/chartjs/Chart.js/issues/5597\n// https://github.com/chartjs/Chart.js/issues/5858\ncornerRadius=radius*0.516;size=radius-cornerRadius;xOffset=Math.cos(rad+QUARTER_PI)*size;yOffset=Math.sin(rad+QUARTER_PI)*size;ctx.arc(x-xOffset,y-yOffset,cornerRadius,rad-PI,rad-HALF_PI);ctx.arc(x+yOffset,y-xOffset,cornerRadius,rad-HALF_PI,rad);ctx.arc(x+xOffset,y+yOffset,cornerRadius,rad,rad+HALF_PI);ctx.arc(x-yOffset,y+xOffset,cornerRadius,rad+HALF_PI,rad+PI);ctx.closePath();break;case'rect':if(!rotation){size=Math.SQRT1_2*radius;ctx.rect(x-size,y-size,2*size,2*size);break;}rad+=QUARTER_PI;/* falls through */case'rectRot':xOffset=Math.cos(rad)*radius;yOffset=Math.sin(rad)*radius;ctx.moveTo(x-xOffset,y-yOffset);ctx.lineTo(x+yOffset,y-xOffset);ctx.lineTo(x+xOffset,y+yOffset);ctx.lineTo(x-yOffset,y+xOffset);ctx.closePath();break;case'crossRot':rad+=QUARTER_PI;/* falls through */case'cross':xOffset=Math.cos(rad)*radius;yOffset=Math.sin(rad)*radius;ctx.moveTo(x-xOffset,y-yOffset);ctx.lineTo(x+xOffset,y+yOffset);ctx.moveTo(x+yOffset,y-xOffset);ctx.lineTo(x-yOffset,y+xOffset);break;case'star':xOffset=Math.cos(rad)*radius;yOffset=Math.sin(rad)*radius;ctx.moveTo(x-xOffset,y-yOffset);ctx.lineTo(x+xOffset,y+yOffset);ctx.moveTo(x+yOffset,y-xOffset);ctx.lineTo(x-yOffset,y+xOffset);rad+=QUARTER_PI;xOffset=Math.cos(rad)*radius;yOffset=Math.sin(rad)*radius;ctx.moveTo(x-xOffset,y-yOffset);ctx.lineTo(x+xOffset,y+yOffset);ctx.moveTo(x+yOffset,y-xOffset);ctx.lineTo(x-yOffset,y+xOffset);break;case'line':xOffset=Math.cos(rad)*radius;yOffset=Math.sin(rad)*radius;ctx.moveTo(x-xOffset,y-yOffset);ctx.lineTo(x+xOffset,y+yOffset);break;case'dash':ctx.moveTo(x,y);ctx.lineTo(x+Math.cos(rad)*radius,y+Math.sin(rad)*radius);break;}ctx.fill();ctx.stroke();},/**\r\n         * Returns true if the point is inside the rectangle\r\n         * @param {object} point - The point to test\r\n         * @param {object} area - The rectangle\r\n         * @returns {boolean}\r\n         * @private\r\n         */_isPointInArea:function(point,area){var epsilon=1e-6;// 1e-6 is margin in pixels for accumulated error.\nreturn point.x>area.left-epsilon&&point.x<area.right+epsilon&&point.y>area.top-epsilon&&point.y<area.bottom+epsilon;},clipArea:function(ctx,area){ctx.save();ctx.beginPath();ctx.rect(area.left,area.top,area.right-area.left,area.bottom-area.top);ctx.clip();},unclipArea:function(ctx){ctx.restore();},lineTo:function(ctx,previous,target,flip){var stepped=target.steppedLine;if(stepped){if(stepped==='middle'){var midpoint=(previous.x+target.x)/2.0;ctx.lineTo(midpoint,flip?target.y:previous.y);ctx.lineTo(midpoint,flip?previous.y:target.y);}else if(stepped==='after'&&!flip||stepped!=='after'&&flip){ctx.lineTo(previous.x,target.y);}else{ctx.lineTo(target.x,previous.y);}ctx.lineTo(target.x,target.y);return;}if(!target.tension){ctx.lineTo(target.x,target.y);return;}ctx.bezierCurveTo(flip?previous.controlPointPreviousX:previous.controlPointNextX,flip?previous.controlPointPreviousY:previous.controlPointNextY,flip?target.controlPointNextX:target.controlPointPreviousX,flip?target.controlPointNextY:target.controlPointPreviousY,target.x,target.y);}};var helpers_canvas=exports$1;// DEPRECATIONS\n/**\r\n     * Provided for backward compatibility, use Chart.helpers.canvas.clear instead.\r\n     * @namespace Chart.helpers.clear\r\n     * @deprecated since version 2.7.0\r\n     * @todo remove at version 3\r\n     * @private\r\n     */helpers_core.clear=exports$1.clear;/**\r\n     * Provided for backward compatibility, use Chart.helpers.canvas.roundedRect instead.\r\n     * @namespace Chart.helpers.drawRoundedRectangle\r\n     * @deprecated since version 2.7.0\r\n     * @todo remove at version 3\r\n     * @private\r\n     */helpers_core.drawRoundedRectangle=function(ctx){ctx.beginPath();exports$1.roundedRect.apply(exports$1,arguments);};var defaults={/**\r\n         * @private\r\n         */_set:function(scope,values){return helpers_core.merge(this[scope]||(this[scope]={}),values);}};// TODO(v3): remove 'global' from namespace.  all default are global and\n// there's inconsistency around which options are under 'global'\ndefaults._set('global',{defaultColor:'rgba(0,0,0,0.1)',defaultFontColor:'#666',defaultFontFamily:\"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",defaultFontSize:12,defaultFontStyle:'normal',defaultLineHeight:1.2,showLines:true});var core_defaults=defaults;var valueOrDefault=helpers_core.valueOrDefault;/**\r\n     * Converts the given font object into a CSS font string.\r\n     * @param {object} font - A font object.\r\n     * @return {string} The CSS font string. See https://developer.mozilla.org/en-US/docs/Web/CSS/font\r\n     * @private\r\n     */function toFontString(font){if(!font||helpers_core.isNullOrUndef(font.size)||helpers_core.isNullOrUndef(font.family)){return null;}return(font.style?font.style+' ':'')+(font.weight?font.weight+' ':'')+font.size+'px '+font.family;}/**\r\n     * @alias Chart.helpers.options\r\n     * @namespace\r\n     */var helpers_options={/**\r\n         * Converts the given line height `value` in pixels for a specific font `size`.\r\n         * @param {number|string} value - The lineHeight to parse (eg. 1.6, '14px', '75%', '1.6em').\r\n         * @param {number} size - The font size (in pixels) used to resolve relative `value`.\r\n         * @returns {number} The effective line height in pixels (size * 1.2 if value is invalid).\r\n         * @see https://developer.mozilla.org/en-US/docs/Web/CSS/line-height\r\n         * @since 2.7.0\r\n         */toLineHeight:function(value,size){var matches=(''+value).match(/^(normal|(\\d+(?:\\.\\d+)?)(px|em|%)?)$/);if(!matches||matches[1]==='normal'){return size*1.2;}value=+matches[2];switch(matches[3]){case'px':return value;case'%':value/=100;break;}return size*value;},/**\r\n         * Converts the given value into a padding object with pre-computed width/height.\r\n         * @param {number|object} value - If a number, set the value to all TRBL component,\r\n         *  else, if and object, use defined properties and sets undefined ones to 0.\r\n         * @returns {object} The padding values (top, right, bottom, left, width, height)\r\n         * @since 2.7.0\r\n         */toPadding:function(value){var t,r,b,l;if(helpers_core.isObject(value)){t=+value.top||0;r=+value.right||0;b=+value.bottom||0;l=+value.left||0;}else{t=r=b=l=+value||0;}return{top:t,right:r,bottom:b,left:l,height:t+b,width:l+r};},/**\r\n         * Parses font options and returns the font object.\r\n         * @param {object} options - A object that contains font options to be parsed.\r\n         * @return {object} The font object.\r\n         * @todo Support font.* options and renamed to toFont().\r\n         * @private\r\n         */_parseFont:function(options){var globalDefaults=core_defaults.global;var size=valueOrDefault(options.fontSize,globalDefaults.defaultFontSize);var font={family:valueOrDefault(options.fontFamily,globalDefaults.defaultFontFamily),lineHeight:helpers_core.options.toLineHeight(valueOrDefault(options.lineHeight,globalDefaults.defaultLineHeight),size),size:size,style:valueOrDefault(options.fontStyle,globalDefaults.defaultFontStyle),weight:null,string:''};font.string=toFontString(font);return font;},/**\r\n         * Evaluates the given `inputs` sequentially and returns the first defined value.\r\n         * @param {Array} inputs - An array of values, falling back to the last value.\r\n         * @param {object} [context] - If defined and the current value is a function, the value\r\n         * is called with `context` as first argument and the result becomes the new input.\r\n         * @param {number} [index] - If defined and the current value is an array, the value\r\n         * at `index` become the new input.\r\n         * @param {object} [info] - object to return information about resolution in\r\n         * @param {boolean} [info.cacheable] - Will be set to `false` if option is not cacheable.\r\n         * @since 2.7.0\r\n         */resolve:function(inputs,context,index,info){var cacheable=true;var i,ilen,value;for(i=0,ilen=inputs.length;i<ilen;++i){value=inputs[i];if(value===undefined){continue;}if(context!==undefined&&typeof value==='function'){value=value(context);cacheable=false;}if(index!==undefined&&helpers_core.isArray(value)){value=value[index];cacheable=false;}if(value!==undefined){if(info&&!cacheable){info.cacheable=false;}return value;}}}};/**\r\n     * @alias Chart.helpers.math\r\n     * @namespace\r\n     */var exports$2={/**\r\n         * Returns an array of factors sorted from 1 to sqrt(value)\r\n         * @private\r\n         */_factorize:function(value){var result=[];var sqrt=Math.sqrt(value);var i;for(i=1;i<sqrt;i++){if(value%i===0){result.push(i);result.push(value/i);}}if(sqrt===(sqrt|0)){// if value is a square number\nresult.push(sqrt);}result.sort(function(a,b){return a-b;}).pop();return result;},log10:Math.log10||function(x){var exponent=Math.log(x)*Math.LOG10E;// Math.LOG10E = 1 / Math.LN10.\n// Check for whole powers of 10,\n// which due to floating point rounding error should be corrected.\nvar powerOf10=Math.round(exponent);var isPowerOf10=x===Math.pow(10,powerOf10);return isPowerOf10?powerOf10:exponent;}};var helpers_math=exports$2;// DEPRECATIONS\n/**\r\n     * Provided for backward compatibility, use Chart.helpers.math.log10 instead.\r\n     * @namespace Chart.helpers.log10\r\n     * @deprecated since version 2.9.0\r\n     * @todo remove at version 3\r\n     * @private\r\n     */helpers_core.log10=exports$2.log10;var getRtlAdapter=function(rectX,width){return{x:function(x){return rectX+rectX+width-x;},setWidth:function(w){width=w;},textAlign:function(align){if(align==='center'){return align;}return align==='right'?'left':'right';},xPlus:function(x,value){return x-value;},leftForLtr:function(x,itemWidth){return x-itemWidth;}};};var getLtrAdapter=function(){return{x:function(x){return x;},setWidth:function(w){// eslint-disable-line no-unused-vars\n},textAlign:function(align){return align;},xPlus:function(x,value){return x+value;},leftForLtr:function(x,_itemWidth){// eslint-disable-line no-unused-vars\nreturn x;}};};var getAdapter=function(rtl,rectX,width){return rtl?getRtlAdapter(rectX,width):getLtrAdapter();};var overrideTextDirection=function(ctx,direction){var style,original;if(direction==='ltr'||direction==='rtl'){style=ctx.canvas.style;original=[style.getPropertyValue('direction'),style.getPropertyPriority('direction')];style.setProperty('direction',direction,'important');ctx.prevTextDirection=original;}};var restoreTextDirection=function(ctx){var original=ctx.prevTextDirection;if(original!==undefined){delete ctx.prevTextDirection;ctx.canvas.style.setProperty('direction',original[0],original[1]);}};var helpers_rtl={getRtlAdapter:getAdapter,overrideTextDirection:overrideTextDirection,restoreTextDirection:restoreTextDirection};var helpers$1=helpers_core;var easing=helpers_easing;var canvas=helpers_canvas;var options=helpers_options;var math=helpers_math;var rtl=helpers_rtl;helpers$1.easing=easing;helpers$1.canvas=canvas;helpers$1.options=options;helpers$1.math=math;helpers$1.rtl=rtl;function interpolate(start,view,model,ease){var keys=Object.keys(model);var i,ilen,key,actual,origin,target,type,c0,c1;for(i=0,ilen=keys.length;i<ilen;++i){key=keys[i];target=model[key];// if a value is added to the model after pivot() has been called, the view\n// doesn't contain it, so let's initialize the view to the target value.\nif(!view.hasOwnProperty(key)){view[key]=target;}actual=view[key];if(actual===target||key[0]==='_'){continue;}if(!start.hasOwnProperty(key)){start[key]=actual;}origin=start[key];type=typeof target;if(type===typeof origin){if(type==='string'){c0=chartjsColor(origin);if(c0.valid){c1=chartjsColor(target);if(c1.valid){view[key]=c1.mix(c0,ease).rgbString();continue;}}}else if(helpers$1.isFinite(origin)&&helpers$1.isFinite(target)){view[key]=origin+(target-origin)*ease;continue;}}view[key]=target;}}var Element=function(configuration){helpers$1.extend(this,configuration);this.initialize.apply(this,arguments);};helpers$1.extend(Element.prototype,{_type:undefined,initialize:function(){this.hidden=false;},pivot:function(){var me=this;if(!me._view){me._view=helpers$1.extend({},me._model);}me._start={};return me;},transition:function(ease){var me=this;var model=me._model;var start=me._start;var view=me._view;// No animation -> No Transition\nif(!model||ease===1){me._view=helpers$1.extend({},model);me._start=null;return me;}if(!view){view=me._view={};}if(!start){start=me._start={};}interpolate(start,view,model,ease);return me;},tooltipPosition:function(){return{x:this._model.x,y:this._model.y};},hasValue:function(){return helpers$1.isNumber(this._model.x)&&helpers$1.isNumber(this._model.y);}});Element.extend=helpers$1.inherits;var core_element=Element;var exports$3=core_element.extend({chart:null,// the animation associated chart instance\ncurrentStep:0,// the current animation step\nnumSteps:60,// default number of steps\neasing:'',// the easing to use for this animation\nrender:null,// render function used by the animation service\nonAnimationProgress:null,// user specified callback to fire on each step of the animation\nonAnimationComplete:null// user specified callback to fire when the animation finishes\n});var core_animation=exports$3;// DEPRECATIONS\n/**\r\n     * Provided for backward compatibility, use Chart.Animation instead\r\n     * @prop Chart.Animation#animationObject\r\n     * @deprecated since version 2.6.0\r\n     * @todo remove at version 3\r\n     */Object.defineProperty(exports$3.prototype,'animationObject',{get:function(){return this;}});/**\r\n     * Provided for backward compatibility, use Chart.Animation#chart instead\r\n     * @prop Chart.Animation#chartInstance\r\n     * @deprecated since version 2.6.0\r\n     * @todo remove at version 3\r\n     */Object.defineProperty(exports$3.prototype,'chartInstance',{get:function(){return this.chart;},set:function(value){this.chart=value;}});core_defaults._set('global',{animation:{duration:1000,easing:'easeOutQuart',onProgress:helpers$1.noop,onComplete:helpers$1.noop}});var core_animations={animations:[],request:null,/**\r\n         * @param {Chart} chart - The chart to animate.\r\n         * @param {Chart.Animation} animation - The animation that we will animate.\r\n         * @param {number} duration - The animation duration in ms.\r\n         * @param {boolean} lazy - if true, the chart is not marked as animating to enable more responsive interactions\r\n         */addAnimation:function(chart,animation,duration,lazy){var animations=this.animations;var i,ilen;animation.chart=chart;animation.startTime=Date.now();animation.duration=duration;if(!lazy){chart.animating=true;}for(i=0,ilen=animations.length;i<ilen;++i){if(animations[i].chart===chart){animations[i]=animation;return;}}animations.push(animation);// If there are no animations queued, manually kickstart a digest, for lack of a better word\nif(animations.length===1){this.requestAnimationFrame();}},cancelAnimation:function(chart){var index=helpers$1.findIndex(this.animations,function(animation){return animation.chart===chart;});if(index!==-1){this.animations.splice(index,1);chart.animating=false;}},requestAnimationFrame:function(){var me=this;if(me.request===null){// Skip animation frame requests until the active one is executed.\n// This can happen when processing mouse events, e.g. 'mousemove'\n// and 'mouseout' events will trigger multiple renders.\nme.request=helpers$1.requestAnimFrame.call(window,function(){me.request=null;me.startDigest();});}},/**\r\n         * @private\r\n         */startDigest:function(){var me=this;me.advance();// Do we have more stuff to animate?\nif(me.animations.length>0){me.requestAnimationFrame();}},/**\r\n         * @private\r\n         */advance:function(){var animations=this.animations;var animation,chart,numSteps,nextStep;var i=0;// 1 animation per chart, so we are looping charts here\nwhile(i<animations.length){animation=animations[i];chart=animation.chart;numSteps=animation.numSteps;// Make sure that currentStep starts at 1\n// https://github.com/chartjs/Chart.js/issues/6104\nnextStep=Math.floor((Date.now()-animation.startTime)/animation.duration*numSteps)+1;animation.currentStep=Math.min(nextStep,numSteps);helpers$1.callback(animation.render,[chart,animation],chart);helpers$1.callback(animation.onAnimationProgress,[animation],chart);if(animation.currentStep>=numSteps){helpers$1.callback(animation.onAnimationComplete,[animation],chart);chart.animating=false;animations.splice(i,1);}else{++i;}}}};var resolve=helpers$1.options.resolve;var arrayEvents=['push','pop','shift','splice','unshift'];/**\r\n     * Hooks the array methods that add or remove values ('push', pop', 'shift', 'splice',\r\n     * 'unshift') and notify the listener AFTER the array has been altered. Listeners are\r\n     * called on the 'onData*' callbacks (e.g. onDataPush, etc.) with same arguments.\r\n     */function listenArrayEvents(array,listener){if(array._chartjs){array._chartjs.listeners.push(listener);return;}Object.defineProperty(array,'_chartjs',{configurable:true,enumerable:false,value:{listeners:[listener]}});arrayEvents.forEach(function(key){var method='onData'+key.charAt(0).toUpperCase()+key.slice(1);var base=array[key];Object.defineProperty(array,key,{configurable:true,enumerable:false,value:function(){var args=Array.prototype.slice.call(arguments);var res=base.apply(this,args);helpers$1.each(array._chartjs.listeners,function(object){if(typeof object[method]==='function'){object[method].apply(object,args);}});return res;}});});}/**\r\n     * Removes the given array event listener and cleanup extra attached properties (such as\r\n     * the _chartjs stub and overridden methods) if array doesn't have any more listeners.\r\n     */function unlistenArrayEvents(array,listener){var stub=array._chartjs;if(!stub){return;}var listeners=stub.listeners;var index=listeners.indexOf(listener);if(index!==-1){listeners.splice(index,1);}if(listeners.length>0){return;}arrayEvents.forEach(function(key){delete array[key];});delete array._chartjs;}// Base class for all dataset controllers (line, bar, etc)\nvar DatasetController=function(chart,datasetIndex){this.initialize(chart,datasetIndex);};helpers$1.extend(DatasetController.prototype,{/**\r\n         * Element type used to generate a meta dataset (e.g. Chart.element.Line).\r\n         * @type {Chart.core.element}\r\n         */datasetElementType:null,/**\r\n         * Element type used to generate a meta data (e.g. Chart.element.Point).\r\n         * @type {Chart.core.element}\r\n         */dataElementType:null,/**\r\n         * Dataset element option keys to be resolved in _resolveDatasetElementOptions.\r\n         * A derived controller may override this to resolve controller-specific options.\r\n         * The keys defined here are for backward compatibility for legend styles.\r\n         * @private\r\n         */_datasetElementOptions:['backgroundColor','borderCapStyle','borderColor','borderDash','borderDashOffset','borderJoinStyle','borderWidth'],/**\r\n         * Data element option keys to be resolved in _resolveDataElementOptions.\r\n         * A derived controller may override this to resolve controller-specific options.\r\n         * The keys defined here are for backward compatibility for legend styles.\r\n         * @private\r\n         */_dataElementOptions:['backgroundColor','borderColor','borderWidth','pointStyle'],initialize:function(chart,datasetIndex){var me=this;me.chart=chart;me.index=datasetIndex;me.linkScales();me.addElements();me._type=me.getMeta().type;},updateIndex:function(datasetIndex){this.index=datasetIndex;},linkScales:function(){var me=this;var meta=me.getMeta();var chart=me.chart;var scales=chart.scales;var dataset=me.getDataset();var scalesOpts=chart.options.scales;if(meta.xAxisID===null||!(meta.xAxisID in scales)||dataset.xAxisID){meta.xAxisID=dataset.xAxisID||scalesOpts.xAxes[0].id;}if(meta.yAxisID===null||!(meta.yAxisID in scales)||dataset.yAxisID){meta.yAxisID=dataset.yAxisID||scalesOpts.yAxes[0].id;}},getDataset:function(){return this.chart.data.datasets[this.index];},getMeta:function(){return this.chart.getDatasetMeta(this.index);},getScaleForId:function(scaleID){return this.chart.scales[scaleID];},/**\r\n         * @private\r\n         */_getValueScaleId:function(){return this.getMeta().yAxisID;},/**\r\n         * @private\r\n         */_getIndexScaleId:function(){return this.getMeta().xAxisID;},/**\r\n         * @private\r\n         */_getValueScale:function(){return this.getScaleForId(this._getValueScaleId());},/**\r\n         * @private\r\n         */_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId());},reset:function(){this._update(true);},/**\r\n         * @private\r\n         */destroy:function(){if(this._data){unlistenArrayEvents(this._data,this);}},createMetaDataset:function(){var me=this;var type=me.datasetElementType;return type&&new type({_chart:me.chart,_datasetIndex:me.index});},createMetaData:function(index){var me=this;var type=me.dataElementType;return type&&new type({_chart:me.chart,_datasetIndex:me.index,_index:index});},addElements:function(){var me=this;var meta=me.getMeta();var data=me.getDataset().data||[];var metaData=meta.data;var i,ilen;for(i=0,ilen=data.length;i<ilen;++i){metaData[i]=metaData[i]||me.createMetaData(i);}meta.dataset=meta.dataset||me.createMetaDataset();},addElementAndReset:function(index){var element=this.createMetaData(index);this.getMeta().data.splice(index,0,element);this.updateElement(element,index,true);},buildOrUpdateElements:function(){var me=this;var dataset=me.getDataset();var data=dataset.data||(dataset.data=[]);// In order to correctly handle data addition/deletion animation (an thus simulate\n// real-time charts), we need to monitor these data modifications and synchronize\n// the internal meta data accordingly.\nif(me._data!==data){if(me._data){// This case happens when the user replaced the data array instance.\nunlistenArrayEvents(me._data,me);}if(data&&Object.isExtensible(data)){listenArrayEvents(data,me);}me._data=data;}// Re-sync meta data in case the user replaced the data array or if we missed\n// any updates and so make sure that we handle number of datapoints changing.\nme.resyncElements();},/**\r\n         * Returns the merged user-supplied and default dataset-level options\r\n         * @private\r\n         */_configure:function(){var me=this;me._config=helpers$1.merge({},[me.chart.options.datasets[me._type],me.getDataset()],{merger:function(key,target,source){if(key!=='_meta'&&key!=='data'){helpers$1._merger(key,target,source);}}});},_update:function(reset){var me=this;me._configure();me._cachedDataOpts=null;me.update(reset);},update:helpers$1.noop,transition:function(easingValue){var meta=this.getMeta();var elements=meta.data||[];var ilen=elements.length;var i=0;for(;i<ilen;++i){elements[i].transition(easingValue);}if(meta.dataset){meta.dataset.transition(easingValue);}},draw:function(){var meta=this.getMeta();var elements=meta.data||[];var ilen=elements.length;var i=0;if(meta.dataset){meta.dataset.draw();}for(;i<ilen;++i){elements[i].draw();}},/**\r\n         * Returns a set of predefined style properties that should be used to represent the dataset\r\n         * or the data if the index is specified\r\n         * @param {number} index - data index\r\n         * @return {IStyleInterface} style object\r\n         */getStyle:function(index){var me=this;var meta=me.getMeta();var dataset=meta.dataset;var style;me._configure();if(dataset&&index===undefined){style=me._resolveDatasetElementOptions(dataset||{});}else{index=index||0;style=me._resolveDataElementOptions(meta.data[index]||{},index);}if(style.fill===false||style.fill===null){style.backgroundColor=style.borderColor;}return style;},/**\r\n         * @private\r\n         */_resolveDatasetElementOptions:function(element,hover){var me=this;var chart=me.chart;var datasetOpts=me._config;var custom=element.custom||{};var options=chart.options.elements[me.datasetElementType.prototype._type]||{};var elementOptions=me._datasetElementOptions;var values={};var i,ilen,key,readKey;// Scriptable options\nvar context={chart:chart,dataset:me.getDataset(),datasetIndex:me.index,hover:hover};for(i=0,ilen=elementOptions.length;i<ilen;++i){key=elementOptions[i];readKey=hover?'hover'+key.charAt(0).toUpperCase()+key.slice(1):key;values[key]=resolve([custom[readKey],datasetOpts[readKey],options[readKey]],context);}return values;},/**\r\n         * @private\r\n         */_resolveDataElementOptions:function(element,index){var me=this;var custom=element&&element.custom;var cached=me._cachedDataOpts;if(cached&&!custom){return cached;}var chart=me.chart;var datasetOpts=me._config;var options=chart.options.elements[me.dataElementType.prototype._type]||{};var elementOptions=me._dataElementOptions;var values={};// Scriptable options\nvar context={chart:chart,dataIndex:index,dataset:me.getDataset(),datasetIndex:me.index};// `resolve` sets cacheable to `false` if any option is indexed or scripted\nvar info={cacheable:!custom};var keys,i,ilen,key;custom=custom||{};if(helpers$1.isArray(elementOptions)){for(i=0,ilen=elementOptions.length;i<ilen;++i){key=elementOptions[i];values[key]=resolve([custom[key],datasetOpts[key],options[key]],context,index,info);}}else{keys=Object.keys(elementOptions);for(i=0,ilen=keys.length;i<ilen;++i){key=keys[i];values[key]=resolve([custom[key],datasetOpts[elementOptions[key]],datasetOpts[key],options[key]],context,index,info);}}if(info.cacheable){me._cachedDataOpts=Object.freeze(values);}return values;},removeHoverStyle:function(element){helpers$1.merge(element._model,element.$previousStyle||{});delete element.$previousStyle;},setHoverStyle:function(element){var dataset=this.chart.data.datasets[element._datasetIndex];var index=element._index;var custom=element.custom||{};var model=element._model;var getHoverColor=helpers$1.getHoverColor;element.$previousStyle={backgroundColor:model.backgroundColor,borderColor:model.borderColor,borderWidth:model.borderWidth};model.backgroundColor=resolve([custom.hoverBackgroundColor,dataset.hoverBackgroundColor,getHoverColor(model.backgroundColor)],undefined,index);model.borderColor=resolve([custom.hoverBorderColor,dataset.hoverBorderColor,getHoverColor(model.borderColor)],undefined,index);model.borderWidth=resolve([custom.hoverBorderWidth,dataset.hoverBorderWidth,model.borderWidth],undefined,index);},/**\r\n         * @private\r\n         */_removeDatasetHoverStyle:function(){var element=this.getMeta().dataset;if(element){this.removeHoverStyle(element);}},/**\r\n         * @private\r\n         */_setDatasetHoverStyle:function(){var element=this.getMeta().dataset;var prev={};var i,ilen,key,keys,hoverOptions,model;if(!element){return;}model=element._model;hoverOptions=this._resolveDatasetElementOptions(element,true);keys=Object.keys(hoverOptions);for(i=0,ilen=keys.length;i<ilen;++i){key=keys[i];prev[key]=model[key];model[key]=hoverOptions[key];}element.$previousStyle=prev;},/**\r\n         * @private\r\n         */resyncElements:function(){var me=this;var meta=me.getMeta();var data=me.getDataset().data;var numMeta=meta.data.length;var numData=data.length;if(numData<numMeta){meta.data.splice(numData,numMeta-numData);}else if(numData>numMeta){me.insertElements(numMeta,numData-numMeta);}},/**\r\n         * @private\r\n         */insertElements:function(start,count){for(var i=0;i<count;++i){this.addElementAndReset(start+i);}},/**\r\n         * @private\r\n         */onDataPush:function(){var count=arguments.length;this.insertElements(this.getDataset().data.length-count,count);},/**\r\n         * @private\r\n         */onDataPop:function(){this.getMeta().data.pop();},/**\r\n         * @private\r\n         */onDataShift:function(){this.getMeta().data.shift();},/**\r\n         * @private\r\n         */onDataSplice:function(start,count){this.getMeta().data.splice(start,count);this.insertElements(start,arguments.length-2);},/**\r\n         * @private\r\n         */onDataUnshift:function(){this.insertElements(0,arguments.length);}});DatasetController.extend=helpers$1.inherits;var core_datasetController=DatasetController;var TAU=Math.PI*2;core_defaults._set('global',{elements:{arc:{backgroundColor:core_defaults.global.defaultColor,borderColor:'#fff',borderWidth:2,borderAlign:'center'}}});function clipArc(ctx,arc){var startAngle=arc.startAngle;var endAngle=arc.endAngle;var pixelMargin=arc.pixelMargin;var angleMargin=pixelMargin/arc.outerRadius;var x=arc.x;var y=arc.y;// Draw an inner border by cliping the arc and drawing a double-width border\n// Enlarge the clipping arc by 0.33 pixels to eliminate glitches between borders\nctx.beginPath();ctx.arc(x,y,arc.outerRadius,startAngle-angleMargin,endAngle+angleMargin);if(arc.innerRadius>pixelMargin){angleMargin=pixelMargin/arc.innerRadius;ctx.arc(x,y,arc.innerRadius-pixelMargin,endAngle+angleMargin,startAngle-angleMargin,true);}else{ctx.arc(x,y,pixelMargin,endAngle+Math.PI/2,startAngle-Math.PI/2);}ctx.closePath();ctx.clip();}function drawFullCircleBorders(ctx,vm,arc,inner){var endAngle=arc.endAngle;var i;if(inner){arc.endAngle=arc.startAngle+TAU;clipArc(ctx,arc);arc.endAngle=endAngle;if(arc.endAngle===arc.startAngle&&arc.fullCircles){arc.endAngle+=TAU;arc.fullCircles--;}}ctx.beginPath();ctx.arc(arc.x,arc.y,arc.innerRadius,arc.startAngle+TAU,arc.startAngle,true);for(i=0;i<arc.fullCircles;++i){ctx.stroke();}ctx.beginPath();ctx.arc(arc.x,arc.y,vm.outerRadius,arc.startAngle,arc.startAngle+TAU);for(i=0;i<arc.fullCircles;++i){ctx.stroke();}}function drawBorder(ctx,vm,arc){var inner=vm.borderAlign==='inner';if(inner){ctx.lineWidth=vm.borderWidth*2;ctx.lineJoin='round';}else{ctx.lineWidth=vm.borderWidth;ctx.lineJoin='bevel';}if(arc.fullCircles){drawFullCircleBorders(ctx,vm,arc,inner);}if(inner){clipArc(ctx,arc);}ctx.beginPath();ctx.arc(arc.x,arc.y,vm.outerRadius,arc.startAngle,arc.endAngle);ctx.arc(arc.x,arc.y,arc.innerRadius,arc.endAngle,arc.startAngle,true);ctx.closePath();ctx.stroke();}var element_arc=core_element.extend({_type:'arc',inLabelRange:function(mouseX){var vm=this._view;if(vm){return Math.pow(mouseX-vm.x,2)<Math.pow(vm.radius+vm.hoverRadius,2);}return false;},inRange:function(chartX,chartY){var vm=this._view;if(vm){var pointRelativePosition=helpers$1.getAngleFromPoint(vm,{x:chartX,y:chartY});var angle=pointRelativePosition.angle;var distance=pointRelativePosition.distance;// Sanitise angle range\nvar startAngle=vm.startAngle;var endAngle=vm.endAngle;while(endAngle<startAngle){endAngle+=TAU;}while(angle>endAngle){angle-=TAU;}while(angle<startAngle){angle+=TAU;}// Check if within the range of the open/close angle\nvar betweenAngles=angle>=startAngle&&angle<=endAngle;var withinRadius=distance>=vm.innerRadius&&distance<=vm.outerRadius;return betweenAngles&&withinRadius;}return false;},getCenterPoint:function(){var vm=this._view;var halfAngle=(vm.startAngle+vm.endAngle)/2;var halfRadius=(vm.innerRadius+vm.outerRadius)/2;return{x:vm.x+Math.cos(halfAngle)*halfRadius,y:vm.y+Math.sin(halfAngle)*halfRadius};},getArea:function(){var vm=this._view;return Math.PI*((vm.endAngle-vm.startAngle)/(2*Math.PI))*(Math.pow(vm.outerRadius,2)-Math.pow(vm.innerRadius,2));},tooltipPosition:function(){var vm=this._view;var centreAngle=vm.startAngle+(vm.endAngle-vm.startAngle)/2;var rangeFromCentre=(vm.outerRadius-vm.innerRadius)/2+vm.innerRadius;return{x:vm.x+Math.cos(centreAngle)*rangeFromCentre,y:vm.y+Math.sin(centreAngle)*rangeFromCentre};},draw:function(){var ctx=this._chart.ctx;var vm=this._view;var pixelMargin=vm.borderAlign==='inner'?0.33:0;var arc={x:vm.x,y:vm.y,innerRadius:vm.innerRadius,outerRadius:Math.max(vm.outerRadius-pixelMargin,0),pixelMargin:pixelMargin,startAngle:vm.startAngle,endAngle:vm.endAngle,fullCircles:Math.floor(vm.circumference/TAU)};var i;ctx.save();ctx.fillStyle=vm.backgroundColor;ctx.strokeStyle=vm.borderColor;if(arc.fullCircles){arc.endAngle=arc.startAngle+TAU;ctx.beginPath();ctx.arc(arc.x,arc.y,arc.outerRadius,arc.startAngle,arc.endAngle);ctx.arc(arc.x,arc.y,arc.innerRadius,arc.endAngle,arc.startAngle,true);ctx.closePath();for(i=0;i<arc.fullCircles;++i){ctx.fill();}arc.endAngle=arc.startAngle+vm.circumference%TAU;}ctx.beginPath();ctx.arc(arc.x,arc.y,arc.outerRadius,arc.startAngle,arc.endAngle);ctx.arc(arc.x,arc.y,arc.innerRadius,arc.endAngle,arc.startAngle,true);ctx.closePath();ctx.fill();if(vm.borderWidth){drawBorder(ctx,vm,arc);}ctx.restore();}});var valueOrDefault$1=helpers$1.valueOrDefault;var defaultColor=core_defaults.global.defaultColor;core_defaults._set('global',{elements:{line:{tension:0.4,backgroundColor:defaultColor,borderWidth:3,borderColor:defaultColor,borderCapStyle:'butt',borderDash:[],borderDashOffset:0.0,borderJoinStyle:'miter',capBezierPoints:true,fill:true// do we fill in the area between the line and its base axis\n}}});var element_line=core_element.extend({_type:'line',draw:function(){var me=this;var vm=me._view;var ctx=me._chart.ctx;var spanGaps=vm.spanGaps;var points=me._children.slice();// clone array\nvar globalDefaults=core_defaults.global;var globalOptionLineElements=globalDefaults.elements.line;var lastDrawnIndex=-1;var closePath=me._loop;var index,previous,currentVM;if(!points.length){return;}if(me._loop){for(index=0;index<points.length;++index){previous=helpers$1.previousItem(points,index);// If the line has an open path, shift the point array\nif(!points[index]._view.skip&&previous._view.skip){points=points.slice(index).concat(points.slice(0,index));closePath=spanGaps;break;}}// If the line has a close path, add the first point again\nif(closePath){points.push(points[0]);}}ctx.save();// Stroke Line Options\nctx.lineCap=vm.borderCapStyle||globalOptionLineElements.borderCapStyle;// IE 9 and 10 do not support line dash\nif(ctx.setLineDash){ctx.setLineDash(vm.borderDash||globalOptionLineElements.borderDash);}ctx.lineDashOffset=valueOrDefault$1(vm.borderDashOffset,globalOptionLineElements.borderDashOffset);ctx.lineJoin=vm.borderJoinStyle||globalOptionLineElements.borderJoinStyle;ctx.lineWidth=valueOrDefault$1(vm.borderWidth,globalOptionLineElements.borderWidth);ctx.strokeStyle=vm.borderColor||globalDefaults.defaultColor;// Stroke Line\nctx.beginPath();// First point moves to it's starting position no matter what\ncurrentVM=points[0]._view;if(!currentVM.skip){ctx.moveTo(currentVM.x,currentVM.y);lastDrawnIndex=0;}for(index=1;index<points.length;++index){currentVM=points[index]._view;previous=lastDrawnIndex===-1?helpers$1.previousItem(points,index):points[lastDrawnIndex];if(!currentVM.skip){if(lastDrawnIndex!==index-1&&!spanGaps||lastDrawnIndex===-1){// There was a gap and this is the first point after the gap\nctx.moveTo(currentVM.x,currentVM.y);}else{// Line to next point\nhelpers$1.canvas.lineTo(ctx,previous._view,currentVM);}lastDrawnIndex=index;}}if(closePath){ctx.closePath();}ctx.stroke();ctx.restore();}});var valueOrDefault$2=helpers$1.valueOrDefault;var defaultColor$1=core_defaults.global.defaultColor;core_defaults._set('global',{elements:{point:{radius:3,pointStyle:'circle',backgroundColor:defaultColor$1,borderColor:defaultColor$1,borderWidth:1,// Hover\nhitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});function xRange(mouseX){var vm=this._view;return vm?Math.abs(mouseX-vm.x)<vm.radius+vm.hitRadius:false;}function yRange(mouseY){var vm=this._view;return vm?Math.abs(mouseY-vm.y)<vm.radius+vm.hitRadius:false;}var element_point=core_element.extend({_type:'point',inRange:function(mouseX,mouseY){var vm=this._view;return vm?Math.pow(mouseX-vm.x,2)+Math.pow(mouseY-vm.y,2)<Math.pow(vm.hitRadius+vm.radius,2):false;},inLabelRange:xRange,inXRange:xRange,inYRange:yRange,getCenterPoint:function(){var vm=this._view;return{x:vm.x,y:vm.y};},getArea:function(){return Math.PI*Math.pow(this._view.radius,2);},tooltipPosition:function(){var vm=this._view;return{x:vm.x,y:vm.y,padding:vm.radius+vm.borderWidth};},draw:function(chartArea){var vm=this._view;var ctx=this._chart.ctx;var pointStyle=vm.pointStyle;var rotation=vm.rotation;var radius=vm.radius;var x=vm.x;var y=vm.y;var globalDefaults=core_defaults.global;var defaultColor=globalDefaults.defaultColor;// eslint-disable-line no-shadow\nif(vm.skip){return;}// Clipping for Points.\nif(chartArea===undefined||helpers$1.canvas._isPointInArea(vm,chartArea)){ctx.strokeStyle=vm.borderColor||defaultColor;ctx.lineWidth=valueOrDefault$2(vm.borderWidth,globalDefaults.elements.point.borderWidth);ctx.fillStyle=vm.backgroundColor||defaultColor;helpers$1.canvas.drawPoint(ctx,pointStyle,radius,x,y,rotation);}}});var defaultColor$2=core_defaults.global.defaultColor;core_defaults._set('global',{elements:{rectangle:{backgroundColor:defaultColor$2,borderColor:defaultColor$2,borderSkipped:'bottom',borderWidth:0}}});function isVertical(vm){return vm&&vm.width!==undefined;}/**\r\n     * Helper function to get the bounds of the bar regardless of the orientation\r\n     * @param bar {Chart.Element.Rectangle} the bar\r\n     * @return {Bounds} bounds of the bar\r\n     * @private\r\n     */function getBarBounds(vm){var x1,x2,y1,y2,half;if(isVertical(vm)){half=vm.width/2;x1=vm.x-half;x2=vm.x+half;y1=Math.min(vm.y,vm.base);y2=Math.max(vm.y,vm.base);}else{half=vm.height/2;x1=Math.min(vm.x,vm.base);x2=Math.max(vm.x,vm.base);y1=vm.y-half;y2=vm.y+half;}return{left:x1,top:y1,right:x2,bottom:y2};}function swap(orig,v1,v2){return orig===v1?v2:orig===v2?v1:orig;}function parseBorderSkipped(vm){var edge=vm.borderSkipped;var res={};if(!edge){return res;}if(vm.horizontal){if(vm.base>vm.x){edge=swap(edge,'left','right');}}else if(vm.base<vm.y){edge=swap(edge,'bottom','top');}res[edge]=true;return res;}function parseBorderWidth(vm,maxW,maxH){var value=vm.borderWidth;var skip=parseBorderSkipped(vm);var t,r,b,l;if(helpers$1.isObject(value)){t=+value.top||0;r=+value.right||0;b=+value.bottom||0;l=+value.left||0;}else{t=r=b=l=+value||0;}return{t:skip.top||t<0?0:t>maxH?maxH:t,r:skip.right||r<0?0:r>maxW?maxW:r,b:skip.bottom||b<0?0:b>maxH?maxH:b,l:skip.left||l<0?0:l>maxW?maxW:l};}function boundingRects(vm){var bounds=getBarBounds(vm);var width=bounds.right-bounds.left;var height=bounds.bottom-bounds.top;var border=parseBorderWidth(vm,width/2,height/2);return{outer:{x:bounds.left,y:bounds.top,w:width,h:height},inner:{x:bounds.left+border.l,y:bounds.top+border.t,w:width-border.l-border.r,h:height-border.t-border.b}};}function inRange(vm,x,y){var skipX=x===null;var skipY=y===null;var bounds=!vm||skipX&&skipY?false:getBarBounds(vm);return bounds&&(skipX||x>=bounds.left&&x<=bounds.right)&&(skipY||y>=bounds.top&&y<=bounds.bottom);}var element_rectangle=core_element.extend({_type:'rectangle',draw:function(){var ctx=this._chart.ctx;var vm=this._view;var rects=boundingRects(vm);var outer=rects.outer;var inner=rects.inner;ctx.fillStyle=vm.backgroundColor;ctx.fillRect(outer.x,outer.y,outer.w,outer.h);if(outer.w===inner.w&&outer.h===inner.h){return;}ctx.save();ctx.beginPath();ctx.rect(outer.x,outer.y,outer.w,outer.h);ctx.clip();ctx.fillStyle=vm.borderColor;ctx.rect(inner.x,inner.y,inner.w,inner.h);ctx.fill('evenodd');ctx.restore();},height:function(){var vm=this._view;return vm.base-vm.y;},inRange:function(mouseX,mouseY){return inRange(this._view,mouseX,mouseY);},inLabelRange:function(mouseX,mouseY){var vm=this._view;return isVertical(vm)?inRange(vm,mouseX,null):inRange(vm,null,mouseY);},inXRange:function(mouseX){return inRange(this._view,mouseX,null);},inYRange:function(mouseY){return inRange(this._view,null,mouseY);},getCenterPoint:function(){var vm=this._view;var x,y;if(isVertical(vm)){x=vm.x;y=(vm.y+vm.base)/2;}else{x=(vm.x+vm.base)/2;y=vm.y;}return{x:x,y:y};},getArea:function(){var vm=this._view;return isVertical(vm)?vm.width*Math.abs(vm.y-vm.base):vm.height*Math.abs(vm.x-vm.base);},tooltipPosition:function(){var vm=this._view;return{x:vm.x,y:vm.y};}});var elements={};var Arc=element_arc;var Line=element_line;var Point=element_point;var Rectangle=element_rectangle;elements.Arc=Arc;elements.Line=Line;elements.Point=Point;elements.Rectangle=Rectangle;var deprecated=helpers$1._deprecated;var valueOrDefault$3=helpers$1.valueOrDefault;core_defaults._set('bar',{hover:{mode:'label'},scales:{xAxes:[{type:'category',offset:true,gridLines:{offsetGridLines:true}}],yAxes:[{type:'linear'}]}});core_defaults._set('global',{datasets:{bar:{categoryPercentage:0.8,barPercentage:0.9}}});/**\r\n     * Computes the \"optimal\" sample size to maintain bars equally sized while preventing overlap.\r\n     * @private\r\n     */function computeMinSampleSize(scale,pixels){var min=scale._length;var prev,curr,i,ilen;for(i=1,ilen=pixels.length;i<ilen;++i){min=Math.min(min,Math.abs(pixels[i]-pixels[i-1]));}for(i=0,ilen=scale.getTicks().length;i<ilen;++i){curr=scale.getPixelForTick(i);min=i>0?Math.min(min,Math.abs(curr-prev)):min;prev=curr;}return min;}/**\r\n     * Computes an \"ideal\" category based on the absolute bar thickness or, if undefined or null,\r\n     * uses the smallest interval (see computeMinSampleSize) that prevents bar overlapping. This\r\n     * mode currently always generates bars equally sized (until we introduce scriptable options?).\r\n     * @private\r\n     */function computeFitCategoryTraits(index,ruler,options){var thickness=options.barThickness;var count=ruler.stackCount;var curr=ruler.pixels[index];var min=helpers$1.isNullOrUndef(thickness)?computeMinSampleSize(ruler.scale,ruler.pixels):-1;var size,ratio;if(helpers$1.isNullOrUndef(thickness)){size=min*options.categoryPercentage;ratio=options.barPercentage;}else{// When bar thickness is enforced, category and bar percentages are ignored.\n// Note(SB): we could add support for relative bar thickness (e.g. barThickness: '50%')\n// and deprecate barPercentage since this value is ignored when thickness is absolute.\nsize=thickness*count;ratio=1;}return{chunk:size/count,ratio:ratio,start:curr-size/2};}/**\r\n     * Computes an \"optimal\" category that globally arranges bars side by side (no gap when\r\n     * percentage options are 1), based on the previous and following categories. This mode\r\n     * generates bars with different widths when data are not evenly spaced.\r\n     * @private\r\n     */function computeFlexCategoryTraits(index,ruler,options){var pixels=ruler.pixels;var curr=pixels[index];var prev=index>0?pixels[index-1]:null;var next=index<pixels.length-1?pixels[index+1]:null;var percent=options.categoryPercentage;var start,size;if(prev===null){// first data: its size is double based on the next point or,\n// if it's also the last data, we use the scale size.\nprev=curr-(next===null?ruler.end-ruler.start:next-curr);}if(next===null){// last data: its size is also double based on the previous point.\nnext=curr+curr-prev;}start=curr-(curr-Math.min(prev,next))/2*percent;size=Math.abs(next-prev)/2*percent;return{chunk:size/ruler.stackCount,ratio:options.barPercentage,start:start};}var controller_bar=core_datasetController.extend({dataElementType:elements.Rectangle,/**\r\n         * @private\r\n         */_dataElementOptions:['backgroundColor','borderColor','borderSkipped','borderWidth','barPercentage','barThickness','categoryPercentage','maxBarThickness','minBarLength'],initialize:function(){var me=this;var meta,scaleOpts;core_datasetController.prototype.initialize.apply(me,arguments);meta=me.getMeta();meta.stack=me.getDataset().stack;meta.bar=true;scaleOpts=me._getIndexScale().options;deprecated('bar chart',scaleOpts.barPercentage,'scales.[x/y]Axes.barPercentage','dataset.barPercentage');deprecated('bar chart',scaleOpts.barThickness,'scales.[x/y]Axes.barThickness','dataset.barThickness');deprecated('bar chart',scaleOpts.categoryPercentage,'scales.[x/y]Axes.categoryPercentage','dataset.categoryPercentage');deprecated('bar chart',me._getValueScale().options.minBarLength,'scales.[x/y]Axes.minBarLength','dataset.minBarLength');deprecated('bar chart',scaleOpts.maxBarThickness,'scales.[x/y]Axes.maxBarThickness','dataset.maxBarThickness');},update:function(reset){var me=this;var rects=me.getMeta().data;var i,ilen;me._ruler=me.getRuler();for(i=0,ilen=rects.length;i<ilen;++i){me.updateElement(rects[i],i,reset);}},updateElement:function(rectangle,index,reset){var me=this;var meta=me.getMeta();var dataset=me.getDataset();var options=me._resolveDataElementOptions(rectangle,index);rectangle._xScale=me.getScaleForId(meta.xAxisID);rectangle._yScale=me.getScaleForId(meta.yAxisID);rectangle._datasetIndex=me.index;rectangle._index=index;rectangle._model={backgroundColor:options.backgroundColor,borderColor:options.borderColor,borderSkipped:options.borderSkipped,borderWidth:options.borderWidth,datasetLabel:dataset.label,label:me.chart.data.labels[index]};if(helpers$1.isArray(dataset.data[index])){rectangle._model.borderSkipped=null;}me._updateElementGeometry(rectangle,index,reset,options);rectangle.pivot();},/**\r\n         * @private\r\n         */_updateElementGeometry:function(rectangle,index,reset,options){var me=this;var model=rectangle._model;var vscale=me._getValueScale();var base=vscale.getBasePixel();var horizontal=vscale.isHorizontal();var ruler=me._ruler||me.getRuler();var vpixels=me.calculateBarValuePixels(me.index,index,options);var ipixels=me.calculateBarIndexPixels(me.index,index,ruler,options);model.horizontal=horizontal;model.base=reset?base:vpixels.base;model.x=horizontal?reset?base:vpixels.head:ipixels.center;model.y=horizontal?ipixels.center:reset?base:vpixels.head;model.height=horizontal?ipixels.size:undefined;model.width=horizontal?undefined:ipixels.size;},/**\r\n         * Returns the stacks based on groups and bar visibility.\r\n         * @param {number} [last] - The dataset index\r\n         * @returns {string[]} The list of stack IDs\r\n         * @private\r\n         */_getStacks:function(last){var me=this;var scale=me._getIndexScale();var metasets=scale._getMatchingVisibleMetas(me._type);var stacked=scale.options.stacked;var ilen=metasets.length;var stacks=[];var i,meta;for(i=0;i<ilen;++i){meta=metasets[i];// stacked   | meta.stack\n//           | found | not found | undefined\n// false     |   x   |     x     |     x\n// true      |       |     x     |\n// undefined |       |     x     |     x\nif(stacked===false||stacks.indexOf(meta.stack)===-1||stacked===undefined&&meta.stack===undefined){stacks.push(meta.stack);}if(meta.index===last){break;}}return stacks;},/**\r\n         * Returns the effective number of stacks based on groups and bar visibility.\r\n         * @private\r\n         */getStackCount:function(){return this._getStacks().length;},/**\r\n         * Returns the stack index for the given dataset based on groups and bar visibility.\r\n         * @param {number} [datasetIndex] - The dataset index\r\n         * @param {string} [name] - The stack name to find\r\n         * @returns {number} The stack index\r\n         * @private\r\n         */getStackIndex:function(datasetIndex,name){var stacks=this._getStacks(datasetIndex);var index=name!==undefined?stacks.indexOf(name):-1;// indexOf returns -1 if element is not present\nreturn index===-1?stacks.length-1:index;},/**\r\n         * @private\r\n         */getRuler:function(){var me=this;var scale=me._getIndexScale();var pixels=[];var i,ilen;for(i=0,ilen=me.getMeta().data.length;i<ilen;++i){pixels.push(scale.getPixelForValue(null,i,me.index));}return{pixels:pixels,start:scale._startPixel,end:scale._endPixel,stackCount:me.getStackCount(),scale:scale};},/**\r\n         * Note: pixel values are not clamped to the scale area.\r\n         * @private\r\n         */calculateBarValuePixels:function(datasetIndex,index,options){var me=this;var chart=me.chart;var scale=me._getValueScale();var isHorizontal=scale.isHorizontal();var datasets=chart.data.datasets;var metasets=scale._getMatchingVisibleMetas(me._type);var value=scale._parseValue(datasets[datasetIndex].data[index]);var minBarLength=options.minBarLength;var stacked=scale.options.stacked;var stack=me.getMeta().stack;var start=value.start===undefined?0:value.max>=0&&value.min>=0?value.min:value.max;var length=value.start===undefined?value.end:value.max>=0&&value.min>=0?value.max-value.min:value.min-value.max;var ilen=metasets.length;var i,imeta,ivalue,base,head,size,stackLength;if(stacked||stacked===undefined&&stack!==undefined){for(i=0;i<ilen;++i){imeta=metasets[i];if(imeta.index===datasetIndex){break;}if(imeta.stack===stack){stackLength=scale._parseValue(datasets[imeta.index].data[index]);ivalue=stackLength.start===undefined?stackLength.end:stackLength.min>=0&&stackLength.max>=0?stackLength.max:stackLength.min;if(value.min<0&&ivalue<0||value.max>=0&&ivalue>0){start+=ivalue;}}}}base=scale.getPixelForValue(start);head=scale.getPixelForValue(start+length);size=head-base;if(minBarLength!==undefined&&Math.abs(size)<minBarLength){size=minBarLength;if(length>=0&&!isHorizontal||length<0&&isHorizontal){head=base-minBarLength;}else{head=base+minBarLength;}}return{size:size,base:base,head:head,center:head+size/2};},/**\r\n         * @private\r\n         */calculateBarIndexPixels:function(datasetIndex,index,ruler,options){var me=this;var range=options.barThickness==='flex'?computeFlexCategoryTraits(index,ruler,options):computeFitCategoryTraits(index,ruler,options);var stackIndex=me.getStackIndex(datasetIndex,me.getMeta().stack);var center=range.start+range.chunk*stackIndex+range.chunk/2;var size=Math.min(valueOrDefault$3(options.maxBarThickness,Infinity),range.chunk*range.ratio);return{base:center-size/2,head:center+size/2,center:center,size:size};},draw:function(){var me=this;var chart=me.chart;var scale=me._getValueScale();var rects=me.getMeta().data;var dataset=me.getDataset();var ilen=rects.length;var i=0;helpers$1.canvas.clipArea(chart.ctx,chart.chartArea);for(;i<ilen;++i){var val=scale._parseValue(dataset.data[i]);if(!isNaN(val.min)&&!isNaN(val.max)){rects[i].draw();}}helpers$1.canvas.unclipArea(chart.ctx);},/**\r\n         * @private\r\n         */_resolveDataElementOptions:function(){var me=this;var values=helpers$1.extend({},core_datasetController.prototype._resolveDataElementOptions.apply(me,arguments));var indexOpts=me._getIndexScale().options;var valueOpts=me._getValueScale().options;values.barPercentage=valueOrDefault$3(indexOpts.barPercentage,values.barPercentage);values.barThickness=valueOrDefault$3(indexOpts.barThickness,values.barThickness);values.categoryPercentage=valueOrDefault$3(indexOpts.categoryPercentage,values.categoryPercentage);values.maxBarThickness=valueOrDefault$3(indexOpts.maxBarThickness,values.maxBarThickness);values.minBarLength=valueOrDefault$3(valueOpts.minBarLength,values.minBarLength);return values;}});var valueOrDefault$4=helpers$1.valueOrDefault;var resolve$1=helpers$1.options.resolve;core_defaults._set('bubble',{hover:{mode:'single'},scales:{xAxes:[{type:'linear',// bubble should probably use a linear scale by default\nposition:'bottom',id:'x-axis-0'// need an ID so datasets can reference the scale\n}],yAxes:[{type:'linear',position:'left',id:'y-axis-0'}]},tooltips:{callbacks:{title:function(){// Title doesn't make sense for scatter since we format the data as a point\nreturn'';},label:function(item,data){var datasetLabel=data.datasets[item.datasetIndex].label||'';var dataPoint=data.datasets[item.datasetIndex].data[item.index];return datasetLabel+': ('+item.xLabel+', '+item.yLabel+', '+dataPoint.r+')';}}}});var controller_bubble=core_datasetController.extend({/**\r\n         * @protected\r\n         */dataElementType:elements.Point,/**\r\n         * @private\r\n         */_dataElementOptions:['backgroundColor','borderColor','borderWidth','hoverBackgroundColor','hoverBorderColor','hoverBorderWidth','hoverRadius','hitRadius','pointStyle','rotation'],/**\r\n         * @protected\r\n         */update:function(reset){var me=this;var meta=me.getMeta();var points=meta.data;// Update Points\nhelpers$1.each(points,function(point,index){me.updateElement(point,index,reset);});},/**\r\n         * @protected\r\n         */updateElement:function(point,index,reset){var me=this;var meta=me.getMeta();var custom=point.custom||{};var xScale=me.getScaleForId(meta.xAxisID);var yScale=me.getScaleForId(meta.yAxisID);var options=me._resolveDataElementOptions(point,index);var data=me.getDataset().data[index];var dsIndex=me.index;var x=reset?xScale.getPixelForDecimal(0.5):xScale.getPixelForValue(typeof data==='object'?data:NaN,index,dsIndex);var y=reset?yScale.getBasePixel():yScale.getPixelForValue(data,index,dsIndex);point._xScale=xScale;point._yScale=yScale;point._options=options;point._datasetIndex=dsIndex;point._index=index;point._model={backgroundColor:options.backgroundColor,borderColor:options.borderColor,borderWidth:options.borderWidth,hitRadius:options.hitRadius,pointStyle:options.pointStyle,rotation:options.rotation,radius:reset?0:options.radius,skip:custom.skip||isNaN(x)||isNaN(y),x:x,y:y};point.pivot();},/**\r\n         * @protected\r\n         */setHoverStyle:function(point){var model=point._model;var options=point._options;var getHoverColor=helpers$1.getHoverColor;point.$previousStyle={backgroundColor:model.backgroundColor,borderColor:model.borderColor,borderWidth:model.borderWidth,radius:model.radius};model.backgroundColor=valueOrDefault$4(options.hoverBackgroundColor,getHoverColor(options.backgroundColor));model.borderColor=valueOrDefault$4(options.hoverBorderColor,getHoverColor(options.borderColor));model.borderWidth=valueOrDefault$4(options.hoverBorderWidth,options.borderWidth);model.radius=options.radius+options.hoverRadius;},/**\r\n         * @private\r\n         */_resolveDataElementOptions:function(point,index){var me=this;var chart=me.chart;var dataset=me.getDataset();var custom=point.custom||{};var data=dataset.data[index]||{};var values=core_datasetController.prototype._resolveDataElementOptions.apply(me,arguments);// Scriptable options\nvar context={chart:chart,dataIndex:index,dataset:dataset,datasetIndex:me.index};// In case values were cached (and thus frozen), we need to clone the values\nif(me._cachedDataOpts===values){values=helpers$1.extend({},values);}// Custom radius resolution\nvalues.radius=resolve$1([custom.radius,data.r,me._config.radius,chart.options.elements.point.radius],context,index);return values;}});var valueOrDefault$5=helpers$1.valueOrDefault;var PI$1=Math.PI;var DOUBLE_PI$1=PI$1*2;var HALF_PI$1=PI$1/2;core_defaults._set('doughnut',{animation:{// Boolean - Whether we animate the rotation of the Doughnut\nanimateRotate:true,// Boolean - Whether we animate scaling the Doughnut from the centre\nanimateScale:false},hover:{mode:'single'},legendCallback:function(chart){var list=document.createElement('ul');var data=chart.data;var datasets=data.datasets;var labels=data.labels;var i,ilen,listItem,listItemSpan;list.setAttribute('class',chart.id+'-legend');if(datasets.length){for(i=0,ilen=datasets[0].data.length;i<ilen;++i){listItem=list.appendChild(document.createElement('li'));listItemSpan=listItem.appendChild(document.createElement('span'));listItemSpan.style.backgroundColor=datasets[0].backgroundColor[i];if(labels[i]){listItem.appendChild(document.createTextNode(labels[i]));}}}return list.outerHTML;},legend:{labels:{generateLabels:function(chart){var data=chart.data;if(data.labels.length&&data.datasets.length){return data.labels.map(function(label,i){var meta=chart.getDatasetMeta(0);var style=meta.controller.getStyle(i);return{text:label,fillStyle:style.backgroundColor,strokeStyle:style.borderColor,lineWidth:style.borderWidth,hidden:isNaN(data.datasets[0].data[i])||meta.data[i].hidden,// Extra data used for toggling the correct item\nindex:i};});}return[];}},onClick:function(e,legendItem){var index=legendItem.index;var chart=this.chart;var i,ilen,meta;for(i=0,ilen=(chart.data.datasets||[]).length;i<ilen;++i){meta=chart.getDatasetMeta(i);// toggle visibility of index if exists\nif(meta.data[index]){meta.data[index].hidden=!meta.data[index].hidden;}}chart.update();}},// The percentage of the chart that we cut out of the middle.\ncutoutPercentage:50,// The rotation of the chart, where the first data arc begins.\nrotation:-HALF_PI$1,// The total circumference of the chart.\ncircumference:DOUBLE_PI$1,// Need to override these to give a nice default\ntooltips:{callbacks:{title:function(){return'';},label:function(tooltipItem,data){var dataLabel=data.labels[tooltipItem.index];var value=': '+data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index];if(helpers$1.isArray(dataLabel)){// show value on first line of multiline label\n// need to clone because we are changing the value\ndataLabel=dataLabel.slice();dataLabel[0]+=value;}else{dataLabel+=value;}return dataLabel;}}}});var controller_doughnut=core_datasetController.extend({dataElementType:elements.Arc,linkScales:helpers$1.noop,/**\r\n         * @private\r\n         */_dataElementOptions:['backgroundColor','borderColor','borderWidth','borderAlign','hoverBackgroundColor','hoverBorderColor','hoverBorderWidth'],// Get index of the dataset in relation to the visible datasets. This allows determining the inner and outer radius correctly\ngetRingIndex:function(datasetIndex){var ringIndex=0;for(var j=0;j<datasetIndex;++j){if(this.chart.isDatasetVisible(j)){++ringIndex;}}return ringIndex;},update:function(reset){var me=this;var chart=me.chart;var chartArea=chart.chartArea;var opts=chart.options;var ratioX=1;var ratioY=1;var offsetX=0;var offsetY=0;var meta=me.getMeta();var arcs=meta.data;var cutout=opts.cutoutPercentage/100||0;var circumference=opts.circumference;var chartWeight=me._getRingWeight(me.index);var maxWidth,maxHeight,i,ilen;// If the chart's circumference isn't a full circle, calculate size as a ratio of the width/height of the arc\nif(circumference<DOUBLE_PI$1){var startAngle=opts.rotation%DOUBLE_PI$1;startAngle+=startAngle>=PI$1?-DOUBLE_PI$1:startAngle<-PI$1?DOUBLE_PI$1:0;var endAngle=startAngle+circumference;var startX=Math.cos(startAngle);var startY=Math.sin(startAngle);var endX=Math.cos(endAngle);var endY=Math.sin(endAngle);var contains0=startAngle<=0&&endAngle>=0||endAngle>=DOUBLE_PI$1;var contains90=startAngle<=HALF_PI$1&&endAngle>=HALF_PI$1||endAngle>=DOUBLE_PI$1+HALF_PI$1;var contains180=startAngle===-PI$1||endAngle>=PI$1;var contains270=startAngle<=-HALF_PI$1&&endAngle>=-HALF_PI$1||endAngle>=PI$1+HALF_PI$1;var minX=contains180?-1:Math.min(startX,startX*cutout,endX,endX*cutout);var minY=contains270?-1:Math.min(startY,startY*cutout,endY,endY*cutout);var maxX=contains0?1:Math.max(startX,startX*cutout,endX,endX*cutout);var maxY=contains90?1:Math.max(startY,startY*cutout,endY,endY*cutout);ratioX=(maxX-minX)/2;ratioY=(maxY-minY)/2;offsetX=-(maxX+minX)/2;offsetY=-(maxY+minY)/2;}for(i=0,ilen=arcs.length;i<ilen;++i){arcs[i]._options=me._resolveDataElementOptions(arcs[i],i);}chart.borderWidth=me.getMaxBorderWidth();maxWidth=(chartArea.right-chartArea.left-chart.borderWidth)/ratioX;maxHeight=(chartArea.bottom-chartArea.top-chart.borderWidth)/ratioY;chart.outerRadius=Math.max(Math.min(maxWidth,maxHeight)/2,0);chart.innerRadius=Math.max(chart.outerRadius*cutout,0);chart.radiusLength=(chart.outerRadius-chart.innerRadius)/(me._getVisibleDatasetWeightTotal()||1);chart.offsetX=offsetX*chart.outerRadius;chart.offsetY=offsetY*chart.outerRadius;meta.total=me.calculateTotal();me.outerRadius=chart.outerRadius-chart.radiusLength*me._getRingWeightOffset(me.index);me.innerRadius=Math.max(me.outerRadius-chart.radiusLength*chartWeight,0);for(i=0,ilen=arcs.length;i<ilen;++i){me.updateElement(arcs[i],i,reset);}},updateElement:function(arc,index,reset){var me=this;var chart=me.chart;var chartArea=chart.chartArea;var opts=chart.options;var animationOpts=opts.animation;var centerX=(chartArea.left+chartArea.right)/2;var centerY=(chartArea.top+chartArea.bottom)/2;var startAngle=opts.rotation;// non reset case handled later\nvar endAngle=opts.rotation;// non reset case handled later\nvar dataset=me.getDataset();var circumference=reset&&animationOpts.animateRotate?0:arc.hidden?0:me.calculateCircumference(dataset.data[index])*(opts.circumference/DOUBLE_PI$1);var innerRadius=reset&&animationOpts.animateScale?0:me.innerRadius;var outerRadius=reset&&animationOpts.animateScale?0:me.outerRadius;var options=arc._options||{};helpers$1.extend(arc,{// Utility\n_datasetIndex:me.index,_index:index,// Desired view properties\n_model:{backgroundColor:options.backgroundColor,borderColor:options.borderColor,borderWidth:options.borderWidth,borderAlign:options.borderAlign,x:centerX+chart.offsetX,y:centerY+chart.offsetY,startAngle:startAngle,endAngle:endAngle,circumference:circumference,outerRadius:outerRadius,innerRadius:innerRadius,label:helpers$1.valueAtIndexOrDefault(dataset.label,index,chart.data.labels[index])}});var model=arc._model;// Set correct angles if not resetting\nif(!reset||!animationOpts.animateRotate){if(index===0){model.startAngle=opts.rotation;}else{model.startAngle=me.getMeta().data[index-1]._model.endAngle;}model.endAngle=model.startAngle+model.circumference;}arc.pivot();},calculateTotal:function(){var dataset=this.getDataset();var meta=this.getMeta();var total=0;var value;helpers$1.each(meta.data,function(element,index){value=dataset.data[index];if(!isNaN(value)&&!element.hidden){total+=Math.abs(value);}});/* if (total === 0) {\r\n                total = NaN;\r\n            }*/return total;},calculateCircumference:function(value){var total=this.getMeta().total;if(total>0&&!isNaN(value)){return DOUBLE_PI$1*(Math.abs(value)/total);}return 0;},// gets the max border or hover width to properly scale pie charts\ngetMaxBorderWidth:function(arcs){var me=this;var max=0;var chart=me.chart;var i,ilen,meta,arc,controller,options,borderWidth,hoverWidth;if(!arcs){// Find the outmost visible dataset\nfor(i=0,ilen=chart.data.datasets.length;i<ilen;++i){if(chart.isDatasetVisible(i)){meta=chart.getDatasetMeta(i);arcs=meta.data;if(i!==me.index){controller=meta.controller;}break;}}}if(!arcs){return 0;}for(i=0,ilen=arcs.length;i<ilen;++i){arc=arcs[i];if(controller){controller._configure();options=controller._resolveDataElementOptions(arc,i);}else{options=arc._options;}if(options.borderAlign!=='inner'){borderWidth=options.borderWidth;hoverWidth=options.hoverBorderWidth;max=borderWidth>max?borderWidth:max;max=hoverWidth>max?hoverWidth:max;}}return max;},/**\r\n         * @protected\r\n         */setHoverStyle:function(arc){var model=arc._model;var options=arc._options;var getHoverColor=helpers$1.getHoverColor;arc.$previousStyle={backgroundColor:model.backgroundColor,borderColor:model.borderColor,borderWidth:model.borderWidth};model.backgroundColor=valueOrDefault$5(options.hoverBackgroundColor,getHoverColor(options.backgroundColor));model.borderColor=valueOrDefault$5(options.hoverBorderColor,getHoverColor(options.borderColor));model.borderWidth=valueOrDefault$5(options.hoverBorderWidth,options.borderWidth);},/**\r\n         * Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly\r\n         * @private\r\n         */_getRingWeightOffset:function(datasetIndex){var ringWeightOffset=0;for(var i=0;i<datasetIndex;++i){if(this.chart.isDatasetVisible(i)){ringWeightOffset+=this._getRingWeight(i);}}return ringWeightOffset;},/**\r\n         * @private\r\n         */_getRingWeight:function(dataSetIndex){return Math.max(valueOrDefault$5(this.chart.data.datasets[dataSetIndex].weight,1),0);},/**\r\n         * Returns the sum of all visibile data set weights.  This value can be 0.\r\n         * @private\r\n         */_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length);}});core_defaults._set('horizontalBar',{hover:{mode:'index',axis:'y'},scales:{xAxes:[{type:'linear',position:'bottom'}],yAxes:[{type:'category',position:'left',offset:true,gridLines:{offsetGridLines:true}}]},elements:{rectangle:{borderSkipped:'left'}},tooltips:{mode:'index',axis:'y'}});core_defaults._set('global',{datasets:{horizontalBar:{categoryPercentage:0.8,barPercentage:0.9}}});var controller_horizontalBar=controller_bar.extend({/**\r\n         * @private\r\n         */_getValueScaleId:function(){return this.getMeta().xAxisID;},/**\r\n         * @private\r\n         */_getIndexScaleId:function(){return this.getMeta().yAxisID;}});var valueOrDefault$6=helpers$1.valueOrDefault;var resolve$2=helpers$1.options.resolve;var isPointInArea=helpers$1.canvas._isPointInArea;core_defaults._set('line',{showLines:true,spanGaps:false,hover:{mode:'label'},scales:{xAxes:[{type:'category',id:'x-axis-0'}],yAxes:[{type:'linear',id:'y-axis-0'}]}});function scaleClip(scale,halfBorderWidth){var tickOpts=scale&&scale.options.ticks||{};var reverse=tickOpts.reverse;var min=tickOpts.min===undefined?halfBorderWidth:0;var max=tickOpts.max===undefined?halfBorderWidth:0;return{start:reverse?max:min,end:reverse?min:max};}function defaultClip(xScale,yScale,borderWidth){var halfBorderWidth=borderWidth/2;var x=scaleClip(xScale,halfBorderWidth);var y=scaleClip(yScale,halfBorderWidth);return{top:y.end,right:x.end,bottom:y.start,left:x.start};}function toClip(value){var t,r,b,l;if(helpers$1.isObject(value)){t=value.top;r=value.right;b=value.bottom;l=value.left;}else{t=r=b=l=value;}return{top:t,right:r,bottom:b,left:l};}var controller_line=core_datasetController.extend({datasetElementType:elements.Line,dataElementType:elements.Point,/**\r\n         * @private\r\n         */_datasetElementOptions:['backgroundColor','borderCapStyle','borderColor','borderDash','borderDashOffset','borderJoinStyle','borderWidth','cubicInterpolationMode','fill'],/**\r\n         * @private\r\n         */_dataElementOptions:{backgroundColor:'pointBackgroundColor',borderColor:'pointBorderColor',borderWidth:'pointBorderWidth',hitRadius:'pointHitRadius',hoverBackgroundColor:'pointHoverBackgroundColor',hoverBorderColor:'pointHoverBorderColor',hoverBorderWidth:'pointHoverBorderWidth',hoverRadius:'pointHoverRadius',pointStyle:'pointStyle',radius:'pointRadius',rotation:'pointRotation'},update:function(reset){var me=this;var meta=me.getMeta();var line=meta.dataset;var points=meta.data||[];var options=me.chart.options;var config=me._config;var showLine=me._showLine=valueOrDefault$6(config.showLine,options.showLines);var i,ilen;me._xScale=me.getScaleForId(meta.xAxisID);me._yScale=me.getScaleForId(meta.yAxisID);// Update Line\nif(showLine){// Compatibility: If the properties are defined with only the old name, use those values\nif(config.tension!==undefined&&config.lineTension===undefined){config.lineTension=config.tension;}// Utility\nline._scale=me._yScale;line._datasetIndex=me.index;// Data\nline._children=points;// Model\nline._model=me._resolveDatasetElementOptions(line);line.pivot();}// Update Points\nfor(i=0,ilen=points.length;i<ilen;++i){me.updateElement(points[i],i,reset);}if(showLine&&line._model.tension!==0){me.updateBezierControlPoints();}// Now pivot the point for animation\nfor(i=0,ilen=points.length;i<ilen;++i){points[i].pivot();}},updateElement:function(point,index,reset){var me=this;var meta=me.getMeta();var custom=point.custom||{};var dataset=me.getDataset();var datasetIndex=me.index;var value=dataset.data[index];var xScale=me._xScale;var yScale=me._yScale;var lineModel=meta.dataset._model;var x,y;var options=me._resolveDataElementOptions(point,index);x=xScale.getPixelForValue(typeof value==='object'?value:NaN,index,datasetIndex);y=reset?yScale.getBasePixel():me.calculatePointY(value,index,datasetIndex);// Utility\npoint._xScale=xScale;point._yScale=yScale;point._options=options;point._datasetIndex=datasetIndex;point._index=index;// Desired view properties\npoint._model={x:x,y:y,skip:custom.skip||isNaN(x)||isNaN(y),// Appearance\nradius:options.radius,pointStyle:options.pointStyle,rotation:options.rotation,backgroundColor:options.backgroundColor,borderColor:options.borderColor,borderWidth:options.borderWidth,tension:valueOrDefault$6(custom.tension,lineModel?lineModel.tension:0),steppedLine:lineModel?lineModel.steppedLine:false,// Tooltip\nhitRadius:options.hitRadius};},/**\r\n         * @private\r\n         */_resolveDatasetElementOptions:function(element){var me=this;var config=me._config;var custom=element.custom||{};var options=me.chart.options;var lineOptions=options.elements.line;var values=core_datasetController.prototype._resolveDatasetElementOptions.apply(me,arguments);// The default behavior of lines is to break at null values, according\n// to https://github.com/chartjs/Chart.js/issues/2435#issuecomment-216718158\n// This option gives lines the ability to span gaps\nvalues.spanGaps=valueOrDefault$6(config.spanGaps,options.spanGaps);values.tension=valueOrDefault$6(config.lineTension,lineOptions.tension);values.steppedLine=resolve$2([custom.steppedLine,config.steppedLine,lineOptions.stepped]);values.clip=toClip(valueOrDefault$6(config.clip,defaultClip(me._xScale,me._yScale,values.borderWidth)));return values;},calculatePointY:function(value,index,datasetIndex){var me=this;var chart=me.chart;var yScale=me._yScale;var sumPos=0;var sumNeg=0;var i,ds,dsMeta,stackedRightValue,rightValue,metasets,ilen;if(yScale.options.stacked){rightValue=+yScale.getRightValue(value);metasets=chart._getSortedVisibleDatasetMetas();ilen=metasets.length;for(i=0;i<ilen;++i){dsMeta=metasets[i];if(dsMeta.index===datasetIndex){break;}ds=chart.data.datasets[dsMeta.index];if(dsMeta.type==='line'&&dsMeta.yAxisID===yScale.id){stackedRightValue=+yScale.getRightValue(ds.data[index]);if(stackedRightValue<0){sumNeg+=stackedRightValue||0;}else{sumPos+=stackedRightValue||0;}}}if(rightValue<0){return yScale.getPixelForValue(sumNeg+rightValue);}return yScale.getPixelForValue(sumPos+rightValue);}return yScale.getPixelForValue(value);},updateBezierControlPoints:function(){var me=this;var chart=me.chart;var meta=me.getMeta();var lineModel=meta.dataset._model;var area=chart.chartArea;var points=meta.data||[];var i,ilen,model,controlPoints;// Only consider points that are drawn in case the spanGaps option is used\nif(lineModel.spanGaps){points=points.filter(function(pt){return!pt._model.skip;});}function capControlPoint(pt,min,max){return Math.max(Math.min(pt,max),min);}if(lineModel.cubicInterpolationMode==='monotone'){helpers$1.splineCurveMonotone(points);}else{for(i=0,ilen=points.length;i<ilen;++i){model=points[i]._model;controlPoints=helpers$1.splineCurve(helpers$1.previousItem(points,i)._model,model,helpers$1.nextItem(points,i)._model,lineModel.tension);model.controlPointPreviousX=controlPoints.previous.x;model.controlPointPreviousY=controlPoints.previous.y;model.controlPointNextX=controlPoints.next.x;model.controlPointNextY=controlPoints.next.y;}}if(chart.options.elements.line.capBezierPoints){for(i=0,ilen=points.length;i<ilen;++i){model=points[i]._model;if(isPointInArea(model,area)){if(i>0&&isPointInArea(points[i-1]._model,area)){model.controlPointPreviousX=capControlPoint(model.controlPointPreviousX,area.left,area.right);model.controlPointPreviousY=capControlPoint(model.controlPointPreviousY,area.top,area.bottom);}if(i<points.length-1&&isPointInArea(points[i+1]._model,area)){model.controlPointNextX=capControlPoint(model.controlPointNextX,area.left,area.right);model.controlPointNextY=capControlPoint(model.controlPointNextY,area.top,area.bottom);}}}}},draw:function(){var me=this;var chart=me.chart;var meta=me.getMeta();var points=meta.data||[];var area=chart.chartArea;var canvas=chart.canvas;var i=0;var ilen=points.length;var clip;if(me._showLine){clip=meta.dataset._model.clip;helpers$1.canvas.clipArea(chart.ctx,{left:clip.left===false?0:area.left-clip.left,right:clip.right===false?canvas.width:area.right+clip.right,top:clip.top===false?0:area.top-clip.top,bottom:clip.bottom===false?canvas.height:area.bottom+clip.bottom});meta.dataset.draw();helpers$1.canvas.unclipArea(chart.ctx);}// Draw the points\nfor(;i<ilen;++i){points[i].draw(area);}},/**\r\n         * @protected\r\n         */setHoverStyle:function(point){var model=point._model;var options=point._options;var getHoverColor=helpers$1.getHoverColor;point.$previousStyle={backgroundColor:model.backgroundColor,borderColor:model.borderColor,borderWidth:model.borderWidth,radius:model.radius};model.backgroundColor=valueOrDefault$6(options.hoverBackgroundColor,getHoverColor(options.backgroundColor));model.borderColor=valueOrDefault$6(options.hoverBorderColor,getHoverColor(options.borderColor));model.borderWidth=valueOrDefault$6(options.hoverBorderWidth,options.borderWidth);model.radius=valueOrDefault$6(options.hoverRadius,options.radius);}});var resolve$3=helpers$1.options.resolve;core_defaults._set('polarArea',{scale:{type:'radialLinear',angleLines:{display:false},gridLines:{circular:true},pointLabels:{display:false},ticks:{beginAtZero:true}},// Boolean - Whether to animate the rotation of the chart\nanimation:{animateRotate:true,animateScale:true},startAngle:-0.5*Math.PI,legendCallback:function(chart){var list=document.createElement('ul');var data=chart.data;var datasets=data.datasets;var labels=data.labels;var i,ilen,listItem,listItemSpan;list.setAttribute('class',chart.id+'-legend');if(datasets.length){for(i=0,ilen=datasets[0].data.length;i<ilen;++i){listItem=list.appendChild(document.createElement('li'));listItemSpan=listItem.appendChild(document.createElement('span'));listItemSpan.style.backgroundColor=datasets[0].backgroundColor[i];if(labels[i]){listItem.appendChild(document.createTextNode(labels[i]));}}}return list.outerHTML;},legend:{labels:{generateLabels:function(chart){var data=chart.data;if(data.labels.length&&data.datasets.length){return data.labels.map(function(label,i){var meta=chart.getDatasetMeta(0);var style=meta.controller.getStyle(i);return{text:label,fillStyle:style.backgroundColor,strokeStyle:style.borderColor,lineWidth:style.borderWidth,hidden:isNaN(data.datasets[0].data[i])||meta.data[i].hidden,// Extra data used for toggling the correct item\nindex:i};});}return[];}},onClick:function(e,legendItem){var index=legendItem.index;var chart=this.chart;var i,ilen,meta;for(i=0,ilen=(chart.data.datasets||[]).length;i<ilen;++i){meta=chart.getDatasetMeta(i);meta.data[index].hidden=!meta.data[index].hidden;}chart.update();}},// Need to override these to give a nice default\ntooltips:{callbacks:{title:function(){return'';},label:function(item,data){return data.labels[item.index]+': '+item.yLabel;}}}});var controller_polarArea=core_datasetController.extend({dataElementType:elements.Arc,linkScales:helpers$1.noop,/**\r\n         * @private\r\n         */_dataElementOptions:['backgroundColor','borderColor','borderWidth','borderAlign','hoverBackgroundColor','hoverBorderColor','hoverBorderWidth'],/**\r\n         * @private\r\n         */_getIndexScaleId:function(){return this.chart.scale.id;},/**\r\n         * @private\r\n         */_getValueScaleId:function(){return this.chart.scale.id;},update:function(reset){var me=this;var dataset=me.getDataset();var meta=me.getMeta();var start=me.chart.options.startAngle||0;var starts=me._starts=[];var angles=me._angles=[];var arcs=meta.data;var i,ilen,angle;me._updateRadius();meta.count=me.countVisibleElements();for(i=0,ilen=dataset.data.length;i<ilen;i++){starts[i]=start;angle=me._computeAngle(i);angles[i]=angle;start+=angle;}for(i=0,ilen=arcs.length;i<ilen;++i){arcs[i]._options=me._resolveDataElementOptions(arcs[i],i);me.updateElement(arcs[i],i,reset);}},/**\r\n         * @private\r\n         */_updateRadius:function(){var me=this;var chart=me.chart;var chartArea=chart.chartArea;var opts=chart.options;var minSize=Math.min(chartArea.right-chartArea.left,chartArea.bottom-chartArea.top);chart.outerRadius=Math.max(minSize/2,0);chart.innerRadius=Math.max(opts.cutoutPercentage?chart.outerRadius/100*opts.cutoutPercentage:1,0);chart.radiusLength=(chart.outerRadius-chart.innerRadius)/chart.getVisibleDatasetCount();me.outerRadius=chart.outerRadius-chart.radiusLength*me.index;me.innerRadius=me.outerRadius-chart.radiusLength;},updateElement:function(arc,index,reset){var me=this;var chart=me.chart;var dataset=me.getDataset();var opts=chart.options;var animationOpts=opts.animation;var scale=chart.scale;var labels=chart.data.labels;var centerX=scale.xCenter;var centerY=scale.yCenter;// var negHalfPI = -0.5 * Math.PI;\nvar datasetStartAngle=opts.startAngle;var distance=arc.hidden?0:scale.getDistanceFromCenterForValue(dataset.data[index]);var startAngle=me._starts[index];var endAngle=startAngle+(arc.hidden?0:me._angles[index]);var resetRadius=animationOpts.animateScale?0:scale.getDistanceFromCenterForValue(dataset.data[index]);var options=arc._options||{};helpers$1.extend(arc,{// Utility\n_datasetIndex:me.index,_index:index,_scale:scale,// Desired view properties\n_model:{backgroundColor:options.backgroundColor,borderColor:options.borderColor,borderWidth:options.borderWidth,borderAlign:options.borderAlign,x:centerX,y:centerY,innerRadius:0,outerRadius:reset?resetRadius:distance,startAngle:reset&&animationOpts.animateRotate?datasetStartAngle:startAngle,endAngle:reset&&animationOpts.animateRotate?datasetStartAngle:endAngle,label:helpers$1.valueAtIndexOrDefault(labels,index,labels[index])}});arc.pivot();},countVisibleElements:function(){var dataset=this.getDataset();var meta=this.getMeta();var count=0;helpers$1.each(meta.data,function(element,index){if(!isNaN(dataset.data[index])&&!element.hidden){count++;}});return count;},/**\r\n         * @protected\r\n         */setHoverStyle:function(arc){var model=arc._model;var options=arc._options;var getHoverColor=helpers$1.getHoverColor;var valueOrDefault=helpers$1.valueOrDefault;arc.$previousStyle={backgroundColor:model.backgroundColor,borderColor:model.borderColor,borderWidth:model.borderWidth};model.backgroundColor=valueOrDefault(options.hoverBackgroundColor,getHoverColor(options.backgroundColor));model.borderColor=valueOrDefault(options.hoverBorderColor,getHoverColor(options.borderColor));model.borderWidth=valueOrDefault(options.hoverBorderWidth,options.borderWidth);},/**\r\n         * @private\r\n         */_computeAngle:function(index){var me=this;var count=this.getMeta().count;var dataset=me.getDataset();var meta=me.getMeta();if(isNaN(dataset.data[index])||meta.data[index].hidden){return 0;}// Scriptable options\nvar context={chart:me.chart,dataIndex:index,dataset:dataset,datasetIndex:me.index};return resolve$3([me.chart.options.elements.arc.angle,2*Math.PI/count],context,index);}});core_defaults._set('pie',helpers$1.clone(core_defaults.doughnut));core_defaults._set('pie',{cutoutPercentage:0});// Pie charts are Doughnut chart with different defaults\nvar controller_pie=controller_doughnut;var valueOrDefault$7=helpers$1.valueOrDefault;core_defaults._set('radar',{spanGaps:false,scale:{type:'radialLinear'},elements:{line:{fill:'start',tension:0// no bezier in radar\n}}});var controller_radar=core_datasetController.extend({datasetElementType:elements.Line,dataElementType:elements.Point,linkScales:helpers$1.noop,/**\r\n         * @private\r\n         */_datasetElementOptions:['backgroundColor','borderWidth','borderColor','borderCapStyle','borderDash','borderDashOffset','borderJoinStyle','fill'],/**\r\n         * @private\r\n         */_dataElementOptions:{backgroundColor:'pointBackgroundColor',borderColor:'pointBorderColor',borderWidth:'pointBorderWidth',hitRadius:'pointHitRadius',hoverBackgroundColor:'pointHoverBackgroundColor',hoverBorderColor:'pointHoverBorderColor',hoverBorderWidth:'pointHoverBorderWidth',hoverRadius:'pointHoverRadius',pointStyle:'pointStyle',radius:'pointRadius',rotation:'pointRotation'},/**\r\n         * @private\r\n         */_getIndexScaleId:function(){return this.chart.scale.id;},/**\r\n         * @private\r\n         */_getValueScaleId:function(){return this.chart.scale.id;},update:function(reset){var me=this;var meta=me.getMeta();var line=meta.dataset;var points=meta.data||[];var scale=me.chart.scale;var config=me._config;var i,ilen;// Compatibility: If the properties are defined with only the old name, use those values\nif(config.tension!==undefined&&config.lineTension===undefined){config.lineTension=config.tension;}// Utility\nline._scale=scale;line._datasetIndex=me.index;// Data\nline._children=points;line._loop=true;// Model\nline._model=me._resolveDatasetElementOptions(line);line.pivot();// Update Points\nfor(i=0,ilen=points.length;i<ilen;++i){me.updateElement(points[i],i,reset);}// Update bezier control points\nme.updateBezierControlPoints();// Now pivot the point for animation\nfor(i=0,ilen=points.length;i<ilen;++i){points[i].pivot();}},updateElement:function(point,index,reset){var me=this;var custom=point.custom||{};var dataset=me.getDataset();var scale=me.chart.scale;var pointPosition=scale.getPointPositionForValue(index,dataset.data[index]);var options=me._resolveDataElementOptions(point,index);var lineModel=me.getMeta().dataset._model;var x=reset?scale.xCenter:pointPosition.x;var y=reset?scale.yCenter:pointPosition.y;// Utility\npoint._scale=scale;point._options=options;point._datasetIndex=me.index;point._index=index;// Desired view properties\npoint._model={x:x,// value not used in dataset scale, but we want a consistent API between scales\ny:y,skip:custom.skip||isNaN(x)||isNaN(y),// Appearance\nradius:options.radius,pointStyle:options.pointStyle,rotation:options.rotation,backgroundColor:options.backgroundColor,borderColor:options.borderColor,borderWidth:options.borderWidth,tension:valueOrDefault$7(custom.tension,lineModel?lineModel.tension:0),// Tooltip\nhitRadius:options.hitRadius};},/**\r\n         * @private\r\n         */_resolveDatasetElementOptions:function(){var me=this;var config=me._config;var options=me.chart.options;var values=core_datasetController.prototype._resolveDatasetElementOptions.apply(me,arguments);values.spanGaps=valueOrDefault$7(config.spanGaps,options.spanGaps);values.tension=valueOrDefault$7(config.lineTension,options.elements.line.tension);return values;},updateBezierControlPoints:function(){var me=this;var meta=me.getMeta();var area=me.chart.chartArea;var points=meta.data||[];var i,ilen,model,controlPoints;// Only consider points that are drawn in case the spanGaps option is used\nif(meta.dataset._model.spanGaps){points=points.filter(function(pt){return!pt._model.skip;});}function capControlPoint(pt,min,max){return Math.max(Math.min(pt,max),min);}for(i=0,ilen=points.length;i<ilen;++i){model=points[i]._model;controlPoints=helpers$1.splineCurve(helpers$1.previousItem(points,i,true)._model,model,helpers$1.nextItem(points,i,true)._model,model.tension);// Prevent the bezier going outside of the bounds of the graph\nmodel.controlPointPreviousX=capControlPoint(controlPoints.previous.x,area.left,area.right);model.controlPointPreviousY=capControlPoint(controlPoints.previous.y,area.top,area.bottom);model.controlPointNextX=capControlPoint(controlPoints.next.x,area.left,area.right);model.controlPointNextY=capControlPoint(controlPoints.next.y,area.top,area.bottom);}},setHoverStyle:function(point){var model=point._model;var options=point._options;var getHoverColor=helpers$1.getHoverColor;point.$previousStyle={backgroundColor:model.backgroundColor,borderColor:model.borderColor,borderWidth:model.borderWidth,radius:model.radius};model.backgroundColor=valueOrDefault$7(options.hoverBackgroundColor,getHoverColor(options.backgroundColor));model.borderColor=valueOrDefault$7(options.hoverBorderColor,getHoverColor(options.borderColor));model.borderWidth=valueOrDefault$7(options.hoverBorderWidth,options.borderWidth);model.radius=valueOrDefault$7(options.hoverRadius,options.radius);}});core_defaults._set('scatter',{hover:{mode:'single'},scales:{xAxes:[{id:'x-axis-1',// need an ID so datasets can reference the scale\ntype:'linear',// scatter should not use a category axis\nposition:'bottom'}],yAxes:[{id:'y-axis-1',type:'linear',position:'left'}]},tooltips:{callbacks:{title:function(){return'';// doesn't make sense for scatter since data are formatted as a point\n},label:function(item){return'('+item.xLabel+', '+item.yLabel+')';}}}});core_defaults._set('global',{datasets:{scatter:{showLine:false}}});// Scatter charts use line controllers\nvar controller_scatter=controller_line;// NOTE export a map in which the key represents the controller type, not\n// the class, and so must be CamelCase in order to be correctly retrieved\n// by the controller in core.controller.js (`controllers[meta.type]`).\nvar controllers={bar:controller_bar,bubble:controller_bubble,doughnut:controller_doughnut,horizontalBar:controller_horizontalBar,line:controller_line,polarArea:controller_polarArea,pie:controller_pie,radar:controller_radar,scatter:controller_scatter};/**\r\n     * Helper function to get relative position for an event\r\n     * @param {Event|IEvent} event - The event to get the position for\r\n     * @param {Chart} chart - The chart\r\n     * @returns {object} the event position\r\n     */function getRelativePosition(e,chart){if(e.native){return{x:e.x,y:e.y};}return helpers$1.getRelativePosition(e,chart);}/**\r\n     * Helper function to traverse all of the visible elements in the chart\r\n     * @param {Chart} chart - the chart\r\n     * @param {function} handler - the callback to execute for each visible item\r\n     */function parseVisibleItems(chart,handler){var metasets=chart._getSortedVisibleDatasetMetas();var metadata,i,j,ilen,jlen,element;for(i=0,ilen=metasets.length;i<ilen;++i){metadata=metasets[i].data;for(j=0,jlen=metadata.length;j<jlen;++j){element=metadata[j];if(!element._view.skip){handler(element);}}}}/**\r\n     * Helper function to get the items that intersect the event position\r\n     * @param {ChartElement[]} items - elements to filter\r\n     * @param {object} position - the point to be nearest to\r\n     * @return {ChartElement[]} the nearest items\r\n     */function getIntersectItems(chart,position){var elements=[];parseVisibleItems(chart,function(element){if(element.inRange(position.x,position.y)){elements.push(element);}});return elements;}/**\r\n     * Helper function to get the items nearest to the event position considering all visible items in teh chart\r\n     * @param {Chart} chart - the chart to look at elements from\r\n     * @param {object} position - the point to be nearest to\r\n     * @param {boolean} intersect - if true, only consider items that intersect the position\r\n     * @param {function} distanceMetric - function to provide the distance between points\r\n     * @return {ChartElement[]} the nearest items\r\n     */function getNearestItems(chart,position,intersect,distanceMetric){var minDistance=Number.POSITIVE_INFINITY;var nearestItems=[];parseVisibleItems(chart,function(element){if(intersect&&!element.inRange(position.x,position.y)){return;}var center=element.getCenterPoint();var distance=distanceMetric(position,center);if(distance<minDistance){nearestItems=[element];minDistance=distance;}else if(distance===minDistance){// Can have multiple items at the same distance in which case we sort by size\nnearestItems.push(element);}});return nearestItems;}/**\r\n     * Get a distance metric function for two points based on the\r\n     * axis mode setting\r\n     * @param {string} axis - the axis mode. x|y|xy\r\n     */function getDistanceMetricForAxis(axis){var useX=axis.indexOf('x')!==-1;var useY=axis.indexOf('y')!==-1;return function(pt1,pt2){var deltaX=useX?Math.abs(pt1.x-pt2.x):0;var deltaY=useY?Math.abs(pt1.y-pt2.y):0;return Math.sqrt(Math.pow(deltaX,2)+Math.pow(deltaY,2));};}function indexMode(chart,e,options){var position=getRelativePosition(e,chart);// Default axis for index mode is 'x' to match old behaviour\noptions.axis=options.axis||'x';var distanceMetric=getDistanceMetricForAxis(options.axis);var items=options.intersect?getIntersectItems(chart,position):getNearestItems(chart,position,false,distanceMetric);var elements=[];if(!items.length){return[];}chart._getSortedVisibleDatasetMetas().forEach(function(meta){var element=meta.data[items[0]._index];// don't count items that are skipped (null data)\nif(element&&!element._view.skip){elements.push(element);}});return elements;}/**\r\n     * @interface IInteractionOptions\r\n     */ /**\r\n     * If true, only consider items that intersect the point\r\n     * @name IInterfaceOptions#boolean\r\n     * @type Boolean\r\n     */ /**\r\n     * Contains interaction related functions\r\n     * @namespace Chart.Interaction\r\n     */var core_interaction={// Helper function for different modes\nmodes:{single:function(chart,e){var position=getRelativePosition(e,chart);var elements=[];parseVisibleItems(chart,function(element){if(element.inRange(position.x,position.y)){elements.push(element);return elements;}});return elements.slice(0,1);},/**\r\n             * @function Chart.Interaction.modes.label\r\n             * @deprecated since version 2.4.0\r\n             * @todo remove at version 3\r\n             * @private\r\n             */label:indexMode,/**\r\n             * Returns items at the same index. If the options.intersect parameter is true, we only return items if we intersect something\r\n             * If the options.intersect mode is false, we find the nearest item and return the items at the same index as that item\r\n             * @function Chart.Interaction.modes.index\r\n             * @since v2.4.0\r\n             * @param {Chart} chart - the chart we are returning items from\r\n             * @param {Event} e - the event we are find things at\r\n             * @param {IInteractionOptions} options - options to use during interaction\r\n             * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n             */index:indexMode,/**\r\n             * Returns items in the same dataset. If the options.intersect parameter is true, we only return items if we intersect something\r\n             * If the options.intersect is false, we find the nearest item and return the items in that dataset\r\n             * @function Chart.Interaction.modes.dataset\r\n             * @param {Chart} chart - the chart we are returning items from\r\n             * @param {Event} e - the event we are find things at\r\n             * @param {IInteractionOptions} options - options to use during interaction\r\n             * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n             */dataset:function(chart,e,options){var position=getRelativePosition(e,chart);options.axis=options.axis||'xy';var distanceMetric=getDistanceMetricForAxis(options.axis);var items=options.intersect?getIntersectItems(chart,position):getNearestItems(chart,position,false,distanceMetric);if(items.length>0){items=chart.getDatasetMeta(items[0]._datasetIndex).data;}return items;},/**\r\n             * @function Chart.Interaction.modes.x-axis\r\n             * @deprecated since version 2.4.0. Use index mode and intersect == true\r\n             * @todo remove at version 3\r\n             * @private\r\n             */'x-axis':function(chart,e){return indexMode(chart,e,{intersect:false});},/**\r\n             * Point mode returns all elements that hit test based on the event position\r\n             * of the event\r\n             * @function Chart.Interaction.modes.intersect\r\n             * @param {Chart} chart - the chart we are returning items from\r\n             * @param {Event} e - the event we are find things at\r\n             * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n             */point:function(chart,e){var position=getRelativePosition(e,chart);return getIntersectItems(chart,position);},/**\r\n             * nearest mode returns the element closest to the point\r\n             * @function Chart.Interaction.modes.intersect\r\n             * @param {Chart} chart - the chart we are returning items from\r\n             * @param {Event} e - the event we are find things at\r\n             * @param {IInteractionOptions} options - options to use\r\n             * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n             */nearest:function(chart,e,options){var position=getRelativePosition(e,chart);options.axis=options.axis||'xy';var distanceMetric=getDistanceMetricForAxis(options.axis);return getNearestItems(chart,position,options.intersect,distanceMetric);},/**\r\n             * x mode returns the elements that hit-test at the current x coordinate\r\n             * @function Chart.Interaction.modes.x\r\n             * @param {Chart} chart - the chart we are returning items from\r\n             * @param {Event} e - the event we are find things at\r\n             * @param {IInteractionOptions} options - options to use\r\n             * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n             */x:function(chart,e,options){var position=getRelativePosition(e,chart);var items=[];var intersectsItem=false;parseVisibleItems(chart,function(element){if(element.inXRange(position.x)){items.push(element);}if(element.inRange(position.x,position.y)){intersectsItem=true;}});// If we want to trigger on an intersect and we don't have any items\n// that intersect the position, return nothing\nif(options.intersect&&!intersectsItem){items=[];}return items;},/**\r\n             * y mode returns the elements that hit-test at the current y coordinate\r\n             * @function Chart.Interaction.modes.y\r\n             * @param {Chart} chart - the chart we are returning items from\r\n             * @param {Event} e - the event we are find things at\r\n             * @param {IInteractionOptions} options - options to use\r\n             * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n             */y:function(chart,e,options){var position=getRelativePosition(e,chart);var items=[];var intersectsItem=false;parseVisibleItems(chart,function(element){if(element.inYRange(position.y)){items.push(element);}if(element.inRange(position.x,position.y)){intersectsItem=true;}});// If we want to trigger on an intersect and we don't have any items\n// that intersect the position, return nothing\nif(options.intersect&&!intersectsItem){items=[];}return items;}}};var extend=helpers$1.extend;function filterByPosition(array,position){return helpers$1.where(array,function(v){return v.pos===position;});}function sortByWeight(array,reverse){return array.sort(function(a,b){var v0=reverse?b:a;var v1=reverse?a:b;return v0.weight===v1.weight?v0.index-v1.index:v0.weight-v1.weight;});}function wrapBoxes(boxes){var layoutBoxes=[];var i,ilen,box;for(i=0,ilen=(boxes||[]).length;i<ilen;++i){box=boxes[i];layoutBoxes.push({index:i,box:box,pos:box.position,horizontal:box.isHorizontal(),weight:box.weight});}return layoutBoxes;}function setLayoutDims(layouts,params){var i,ilen,layout;for(i=0,ilen=layouts.length;i<ilen;++i){layout=layouts[i];// store width used instead of chartArea.w in fitBoxes\nlayout.width=layout.horizontal?layout.box.fullWidth&&params.availableWidth:params.vBoxMaxWidth;// store height used instead of chartArea.h in fitBoxes\nlayout.height=layout.horizontal&&params.hBoxMaxHeight;}}function buildLayoutBoxes(boxes){var layoutBoxes=wrapBoxes(boxes);var left=sortByWeight(filterByPosition(layoutBoxes,'left'),true);var right=sortByWeight(filterByPosition(layoutBoxes,'right'));var top=sortByWeight(filterByPosition(layoutBoxes,'top'),true);var bottom=sortByWeight(filterByPosition(layoutBoxes,'bottom'));return{leftAndTop:left.concat(top),rightAndBottom:right.concat(bottom),chartArea:filterByPosition(layoutBoxes,'chartArea'),vertical:left.concat(right),horizontal:top.concat(bottom)};}function getCombinedMax(maxPadding,chartArea,a,b){return Math.max(maxPadding[a],chartArea[a])+Math.max(maxPadding[b],chartArea[b]);}function updateDims(chartArea,params,layout){var box=layout.box;var maxPadding=chartArea.maxPadding;var newWidth,newHeight;if(layout.size){// this layout was already counted for, lets first reduce old size\nchartArea[layout.pos]-=layout.size;}layout.size=layout.horizontal?box.height:box.width;chartArea[layout.pos]+=layout.size;if(box.getPadding){var boxPadding=box.getPadding();maxPadding.top=Math.max(maxPadding.top,boxPadding.top);maxPadding.left=Math.max(maxPadding.left,boxPadding.left);maxPadding.bottom=Math.max(maxPadding.bottom,boxPadding.bottom);maxPadding.right=Math.max(maxPadding.right,boxPadding.right);}newWidth=params.outerWidth-getCombinedMax(maxPadding,chartArea,'left','right');newHeight=params.outerHeight-getCombinedMax(maxPadding,chartArea,'top','bottom');if(newWidth!==chartArea.w||newHeight!==chartArea.h){chartArea.w=newWidth;chartArea.h=newHeight;// return true if chart area changed in layout's direction\nreturn layout.horizontal?newWidth!==chartArea.w:newHeight!==chartArea.h;}}function handleMaxPadding(chartArea){var maxPadding=chartArea.maxPadding;function updatePos(pos){var change=Math.max(maxPadding[pos]-chartArea[pos],0);chartArea[pos]+=change;return change;}chartArea.y+=updatePos('top');chartArea.x+=updatePos('left');updatePos('right');updatePos('bottom');}function getMargins(horizontal,chartArea){var maxPadding=chartArea.maxPadding;function marginForPositions(positions){var margin={left:0,top:0,right:0,bottom:0};positions.forEach(function(pos){margin[pos]=Math.max(chartArea[pos],maxPadding[pos]);});return margin;}return horizontal?marginForPositions(['left','right']):marginForPositions(['top','bottom']);}function fitBoxes(boxes,chartArea,params){var refitBoxes=[];var i,ilen,layout,box,refit,changed;for(i=0,ilen=boxes.length;i<ilen;++i){layout=boxes[i];box=layout.box;box.update(layout.width||chartArea.w,layout.height||chartArea.h,getMargins(layout.horizontal,chartArea));if(updateDims(chartArea,params,layout)){changed=true;if(refitBoxes.length){// Dimensions changed and there were non full width boxes before this\n// -> we have to refit those\nrefit=true;}}if(!box.fullWidth){// fullWidth boxes don't need to be re-fitted in any case\nrefitBoxes.push(layout);}}return refit?fitBoxes(refitBoxes,chartArea,params)||changed:changed;}function placeBoxes(boxes,chartArea,params){var userPadding=params.padding;var x=chartArea.x;var y=chartArea.y;var i,ilen,layout,box;for(i=0,ilen=boxes.length;i<ilen;++i){layout=boxes[i];box=layout.box;if(layout.horizontal){box.left=box.fullWidth?userPadding.left:chartArea.left;box.right=box.fullWidth?params.outerWidth-userPadding.right:chartArea.left+chartArea.w;box.top=y;box.bottom=y+box.height;box.width=box.right-box.left;y=box.bottom;}else{box.left=x;box.right=x+box.width;box.top=chartArea.top;box.bottom=chartArea.top+chartArea.h;box.height=box.bottom-box.top;x=box.right;}}chartArea.x=x;chartArea.y=y;}core_defaults._set('global',{layout:{padding:{top:0,right:0,bottom:0,left:0}}});/**\r\n     * @interface ILayoutItem\r\n     * @prop {string} position - The position of the item in the chart layout. Possible values are\r\n     * 'left', 'top', 'right', 'bottom', and 'chartArea'\r\n     * @prop {number} weight - The weight used to sort the item. Higher weights are further away from the chart area\r\n     * @prop {boolean} fullWidth - if true, and the item is horizontal, then push vertical boxes down\r\n     * @prop {function} isHorizontal - returns true if the layout item is horizontal (ie. top or bottom)\r\n     * @prop {function} update - Takes two parameters: width and height. Returns size of item\r\n     * @prop {function} getPadding -  Returns an object with padding on the edges\r\n     * @prop {number} width - Width of item. Must be valid after update()\r\n     * @prop {number} height - Height of item. Must be valid after update()\r\n     * @prop {number} left - Left edge of the item. Set by layout system and cannot be used in update\r\n     * @prop {number} top - Top edge of the item. Set by layout system and cannot be used in update\r\n     * @prop {number} right - Right edge of the item. Set by layout system and cannot be used in update\r\n     * @prop {number} bottom - Bottom edge of the item. Set by layout system and cannot be used in update\r\n     */ // The layout service is very self explanatory.  It's responsible for the layout within a chart.\n// Scales, Legends and Plugins all rely on the layout service and can easily register to be placed anywhere they need\n// It is this service's responsibility of carrying out that layout.\nvar core_layouts={defaults:{},/**\r\n         * Register a box to a chart.\r\n         * A box is simply a reference to an object that requires layout. eg. Scales, Legend, Title.\r\n         * @param {Chart} chart - the chart to use\r\n         * @param {ILayoutItem} item - the item to add to be layed out\r\n         */addBox:function(chart,item){if(!chart.boxes){chart.boxes=[];}// initialize item with default values\nitem.fullWidth=item.fullWidth||false;item.position=item.position||'top';item.weight=item.weight||0;item._layers=item._layers||function(){return[{z:0,draw:function(){item.draw.apply(item,arguments);}}];};chart.boxes.push(item);},/**\r\n         * Remove a layoutItem from a chart\r\n         * @param {Chart} chart - the chart to remove the box from\r\n         * @param {ILayoutItem} layoutItem - the item to remove from the layout\r\n         */removeBox:function(chart,layoutItem){var index=chart.boxes?chart.boxes.indexOf(layoutItem):-1;if(index!==-1){chart.boxes.splice(index,1);}},/**\r\n         * Sets (or updates) options on the given `item`.\r\n         * @param {Chart} chart - the chart in which the item lives (or will be added to)\r\n         * @param {ILayoutItem} item - the item to configure with the given options\r\n         * @param {object} options - the new item options.\r\n         */configure:function(chart,item,options){var props=['fullWidth','position','weight'];var ilen=props.length;var i=0;var prop;for(;i<ilen;++i){prop=props[i];if(options.hasOwnProperty(prop)){item[prop]=options[prop];}}},/**\r\n         * Fits boxes of the given chart into the given size by having each box measure itself\r\n         * then running a fitting algorithm\r\n         * @param {Chart} chart - the chart\r\n         * @param {number} width - the width to fit into\r\n         * @param {number} height - the height to fit into\r\n         */update:function(chart,width,height){if(!chart){return;}var layoutOptions=chart.options.layout||{};var padding=helpers$1.options.toPadding(layoutOptions.padding);var availableWidth=width-padding.width;var availableHeight=height-padding.height;var boxes=buildLayoutBoxes(chart.boxes);var verticalBoxes=boxes.vertical;var horizontalBoxes=boxes.horizontal;// Essentially we now have any number of boxes on each of the 4 sides.\n// Our canvas looks like the following.\n// The areas L1 and L2 are the left axes. R1 is the right axis, T1 is the top axis and\n// B1 is the bottom axis\n// There are also 4 quadrant-like locations (left to right instead of clockwise) reserved for chart overlays\n// These locations are single-box locations only, when trying to register a chartArea location that is already taken,\n// an error will be thrown.\n//\n// |----------------------------------------------------|\n// |                  T1 (Full Width)                   |\n// |----------------------------------------------------|\n// |    |    |                 T2                  |    |\n// |    |----|-------------------------------------|----|\n// |    |    | C1 |                           | C2 |    |\n// |    |    |----|                           |----|    |\n// |    |    |                                     |    |\n// | L1 | L2 |           ChartArea (C0)            | R1 |\n// |    |    |                                     |    |\n// |    |    |----|                           |----|    |\n// |    |    | C3 |                           | C4 |    |\n// |    |----|-------------------------------------|----|\n// |    |    |                 B1                  |    |\n// |----------------------------------------------------|\n// |                  B2 (Full Width)                   |\n// |----------------------------------------------------|\n//\nvar params=Object.freeze({outerWidth:width,outerHeight:height,padding:padding,availableWidth:availableWidth,vBoxMaxWidth:availableWidth/2/verticalBoxes.length,hBoxMaxHeight:availableHeight/2});var chartArea=extend({maxPadding:extend({},padding),w:availableWidth,h:availableHeight,x:padding.left,y:padding.top},padding);setLayoutDims(verticalBoxes.concat(horizontalBoxes),params);// First fit vertical boxes\nfitBoxes(verticalBoxes,chartArea,params);// Then fit horizontal boxes\nif(fitBoxes(horizontalBoxes,chartArea,params)){// if the area changed, re-fit vertical boxes\nfitBoxes(verticalBoxes,chartArea,params);}handleMaxPadding(chartArea);// Finally place the boxes to correct coordinates\nplaceBoxes(boxes.leftAndTop,chartArea,params);// Move to opposite side of chart\nchartArea.x+=chartArea.w;chartArea.y+=chartArea.h;placeBoxes(boxes.rightAndBottom,chartArea,params);chart.chartArea={left:chartArea.left,top:chartArea.top,right:chartArea.left+chartArea.w,bottom:chartArea.top+chartArea.h};// Finally update boxes in chartArea (radial scale for example)\nhelpers$1.each(boxes.chartArea,function(layout){var box=layout.box;extend(box,chart.chartArea);box.update(chartArea.w,chartArea.h);});}};/**\r\n     * Platform fallback implementation (minimal).\r\n     * @see https://github.com/chartjs/Chart.js/pull/4591#issuecomment-319575939\r\n     */var platform_basic={acquireContext:function(item){if(item&&item.canvas){// Support for any object associated to a canvas (including a context2d)\nitem=item.canvas;}return item&&item.getContext('2d')||null;}};var platform_dom=\"/*\\n * DOM element rendering detection\\n * https://davidwalsh.name/detect-node-insertion\\n */\\n@keyframes chartjs-render-animation {\\n\\tfrom { opacity: 0.99; }\\n\\tto { opacity: 1; }\\n}\\n\\n.chartjs-render-monitor {\\n\\tanimation: chartjs-render-animation 0.001s;\\n}\\n\\n/*\\n * DOM element resizing detection\\n * https://github.com/marcj/css-element-queries\\n */\\n.chartjs-size-monitor,\\n.chartjs-size-monitor-expand,\\n.chartjs-size-monitor-shrink {\\n\\tposition: absolute;\\n\\tdirection: ltr;\\n\\tleft: 0;\\n\\ttop: 0;\\n\\tright: 0;\\n\\tbottom: 0;\\n\\toverflow: hidden;\\n\\tpointer-events: none;\\n\\tvisibility: hidden;\\n\\tz-index: -1;\\n}\\n\\n.chartjs-size-monitor-expand > div {\\n\\tposition: absolute;\\n\\twidth: 1000000px;\\n\\theight: 1000000px;\\n\\tleft: 0;\\n\\ttop: 0;\\n}\\n\\n.chartjs-size-monitor-shrink > div {\\n\\tposition: absolute;\\n\\twidth: 200%;\\n\\theight: 200%;\\n\\tleft: 0;\\n\\ttop: 0;\\n}\\n\";var platform_dom$1=/*#__PURE__*/Object.freeze({__proto__:null,'default':platform_dom});var stylesheet=getCjsExportFromNamespace(platform_dom$1);var EXPANDO_KEY='$chartjs';var CSS_PREFIX='chartjs-';var CSS_SIZE_MONITOR=CSS_PREFIX+'size-monitor';var CSS_RENDER_MONITOR=CSS_PREFIX+'render-monitor';var CSS_RENDER_ANIMATION=CSS_PREFIX+'render-animation';var ANIMATION_START_EVENTS=['animationstart','webkitAnimationStart'];/**\r\n     * DOM event types -> Chart.js event types.\r\n     * Note: only events with different types are mapped.\r\n     * @see https://developer.mozilla.org/en-US/docs/Web/Events\r\n     */var EVENT_TYPES={touchstart:'mousedown',touchmove:'mousemove',touchend:'mouseup',pointerenter:'mouseenter',pointerdown:'mousedown',pointermove:'mousemove',pointerup:'mouseup',pointerleave:'mouseout',pointerout:'mouseout'};/**\r\n     * The \"used\" size is the final value of a dimension property after all calculations have\r\n     * been performed. This method uses the computed style of `element` but returns undefined\r\n     * if the computed style is not expressed in pixels. That can happen in some cases where\r\n     * `element` has a size relative to its parent and this last one is not yet displayed,\r\n     * for example because of `display: none` on a parent node.\r\n     * @see https://developer.mozilla.org/en-US/docs/Web/CSS/used_value\r\n     * @returns {number} Size in pixels or undefined if unknown.\r\n     */function readUsedSize(element,property){var value=helpers$1.getStyle(element,property);var matches=value&&value.match(/^(\\d+)(\\.\\d+)?px$/);return matches?Number(matches[1]):undefined;}/**\r\n     * Initializes the canvas style and render size without modifying the canvas display size,\r\n     * since responsiveness is handled by the controller.resize() method. The config is used\r\n     * to determine the aspect ratio to apply in case no explicit height has been specified.\r\n     */function initCanvas(canvas,config){var style=canvas.style;// NOTE(SB) canvas.getAttribute('width') !== canvas.width: in the first case it\n// returns null or '' if no explicit value has been set to the canvas attribute.\nvar renderHeight=canvas.getAttribute('height');var renderWidth=canvas.getAttribute('width');// Chart.js modifies some canvas values that we want to restore on destroy\ncanvas[EXPANDO_KEY]={initial:{height:renderHeight,width:renderWidth,style:{display:style.display,height:style.height,width:style.width}}};// Force canvas to display as block to avoid extra space caused by inline\n// elements, which would interfere with the responsive resize process.\n// https://github.com/chartjs/Chart.js/issues/2538\nstyle.display=style.display||'block';if(renderWidth===null||renderWidth===''){var displayWidth=readUsedSize(canvas,'width');if(displayWidth!==undefined){canvas.width=displayWidth;}}if(renderHeight===null||renderHeight===''){if(canvas.style.height===''){// If no explicit render height and style height, let's apply the aspect ratio,\n// which one can be specified by the user but also by charts as default option\n// (i.e. options.aspectRatio). If not specified, use canvas aspect ratio of 2.\ncanvas.height=canvas.width/(config.options.aspectRatio||2);}else{var displayHeight=readUsedSize(canvas,'height');if(displayWidth!==undefined){canvas.height=displayHeight;}}}return canvas;}/**\r\n     * Detects support for options object argument in addEventListener.\r\n     * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support\r\n     * @private\r\n     */var supportsEventListenerOptions=function(){var supports=false;try{var options=Object.defineProperty({},'passive',{// eslint-disable-next-line getter-return\nget:function(){supports=true;}});window.addEventListener('e',null,options);}catch(e){// continue regardless of error\n}return supports;}();// Default passive to true as expected by Chrome for 'touchstart' and 'touchend' events.\n// https://github.com/chartjs/Chart.js/issues/4287\nvar eventListenerOptions=supportsEventListenerOptions?{passive:true}:false;function addListener(node,type,listener){node.addEventListener(type,listener,eventListenerOptions);}function removeListener(node,type,listener){node.removeEventListener(type,listener,eventListenerOptions);}function createEvent(type,chart,x,y,nativeEvent){return{type:type,chart:chart,native:nativeEvent||null,x:x!==undefined?x:null,y:y!==undefined?y:null};}function fromNativeEvent(event,chart){var type=EVENT_TYPES[event.type]||event.type;var pos=helpers$1.getRelativePosition(event,chart);return createEvent(type,chart,pos.x,pos.y,event);}function throttled(fn,thisArg){var ticking=false;var args=[];return function(){args=Array.prototype.slice.call(arguments);thisArg=thisArg||this;if(!ticking){ticking=true;helpers$1.requestAnimFrame.call(window,function(){ticking=false;fn.apply(thisArg,args);});}};}function createDiv(cls){var el=document.createElement('div');el.className=cls||'';return el;}// Implementation based on https://github.com/marcj/css-element-queries\nfunction createResizer(handler){var maxSize=1000000;// NOTE(SB) Don't use innerHTML because it could be considered unsafe.\n// https://github.com/chartjs/Chart.js/issues/5902\nvar resizer=createDiv(CSS_SIZE_MONITOR);var expand=createDiv(CSS_SIZE_MONITOR+'-expand');var shrink=createDiv(CSS_SIZE_MONITOR+'-shrink');expand.appendChild(createDiv());shrink.appendChild(createDiv());resizer.appendChild(expand);resizer.appendChild(shrink);resizer._reset=function(){expand.scrollLeft=maxSize;expand.scrollTop=maxSize;shrink.scrollLeft=maxSize;shrink.scrollTop=maxSize;};var onScroll=function(){resizer._reset();handler();};addListener(expand,'scroll',onScroll.bind(expand,'expand'));addListener(shrink,'scroll',onScroll.bind(shrink,'shrink'));return resizer;}// https://davidwalsh.name/detect-node-insertion\nfunction watchForRender(node,handler){var expando=node[EXPANDO_KEY]||(node[EXPANDO_KEY]={});var proxy=expando.renderProxy=function(e){if(e.animationName===CSS_RENDER_ANIMATION){handler();}};helpers$1.each(ANIMATION_START_EVENTS,function(type){addListener(node,type,proxy);});// #4737: Chrome might skip the CSS animation when the CSS_RENDER_MONITOR class\n// is removed then added back immediately (same animation frame?). Accessing the\n// `offsetParent` property will force a reflow and re-evaluate the CSS animation.\n// https://gist.github.com/paulirish/5d52fb081b3570c81e3a#box-metrics\n// https://github.com/chartjs/Chart.js/issues/4737\nexpando.reflow=!!node.offsetParent;node.classList.add(CSS_RENDER_MONITOR);}function unwatchForRender(node){var expando=node[EXPANDO_KEY]||{};var proxy=expando.renderProxy;if(proxy){helpers$1.each(ANIMATION_START_EVENTS,function(type){removeListener(node,type,proxy);});delete expando.renderProxy;}node.classList.remove(CSS_RENDER_MONITOR);}function addResizeListener(node,listener,chart){var expando=node[EXPANDO_KEY]||(node[EXPANDO_KEY]={});// Let's keep track of this added resizer and thus avoid DOM query when removing it.\nvar resizer=expando.resizer=createResizer(throttled(function(){if(expando.resizer){var container=chart.options.maintainAspectRatio&&node.parentNode;var w=container?container.clientWidth:0;listener(createEvent('resize',chart));if(container&&container.clientWidth<w&&chart.canvas){// If the container size shrank during chart resize, let's assume\n// scrollbar appeared. So we resize again with the scrollbar visible -\n// effectively making chart smaller and the scrollbar hidden again.\n// Because we are inside `throttled`, and currently `ticking`, scroll\n// events are ignored during this whole 2 resize process.\n// If we assumed wrong and something else happened, we are resizing\n// twice in a frame (potential performance issue)\nlistener(createEvent('resize',chart));}}}));// The resizer needs to be attached to the node parent, so we first need to be\n// sure that `node` is attached to the DOM before injecting the resizer element.\nwatchForRender(node,function(){if(expando.resizer){var container=node.parentNode;if(container&&container!==resizer.parentNode){container.insertBefore(resizer,container.firstChild);}// The container size might have changed, let's reset the resizer state.\nresizer._reset();}});}function removeResizeListener(node){var expando=node[EXPANDO_KEY]||{};var resizer=expando.resizer;delete expando.resizer;unwatchForRender(node);if(resizer&&resizer.parentNode){resizer.parentNode.removeChild(resizer);}}/**\r\n     * Injects CSS styles inline if the styles are not already present.\r\n     * @param {HTMLDocument|ShadowRoot} rootNode - the node to contain the <style>.\r\n     * @param {string} css - the CSS to be injected.\r\n     */function injectCSS(rootNode,css){// https://stackoverflow.com/q/3922139\nvar expando=rootNode[EXPANDO_KEY]||(rootNode[EXPANDO_KEY]={});if(!expando.containsStyles){expando.containsStyles=true;css='/* Chart.js */\\n'+css;var style=document.createElement('style');style.setAttribute('type','text/css');style.appendChild(document.createTextNode(css));rootNode.appendChild(style);}}var platform_dom$2={/**\r\n         * When `true`, prevents the automatic injection of the stylesheet required to\r\n         * correctly detect when the chart is added to the DOM and then resized. This\r\n         * switch has been added to allow external stylesheet (`dist/Chart(.min)?.js`)\r\n         * to be manually imported to make this library compatible with any CSP.\r\n         * See https://github.com/chartjs/Chart.js/issues/5208\r\n         */disableCSSInjection:false,/**\r\n         * This property holds whether this platform is enabled for the current environment.\r\n         * Currently used by platform.js to select the proper implementation.\r\n         * @private\r\n         */_enabled:typeof window!=='undefined'&&typeof document!=='undefined',/**\r\n         * Initializes resources that depend on platform options.\r\n         * @param {HTMLCanvasElement} canvas - The Canvas element.\r\n         * @private\r\n         */_ensureLoaded:function(canvas){if(!this.disableCSSInjection){// If the canvas is in a shadow DOM, then the styles must also be inserted\n// into the same shadow DOM.\n// https://github.com/chartjs/Chart.js/issues/5763\nvar root=canvas.getRootNode?canvas.getRootNode():document;var targetNode=root.host?root:document.head;injectCSS(targetNode,stylesheet);}},acquireContext:function(item,config){if(typeof item==='string'){item=document.getElementById(item);}else if(item.length){// Support for array based queries (such as jQuery)\nitem=item[0];}if(item&&item.canvas){// Support for any object associated to a canvas (including a context2d)\nitem=item.canvas;}// To prevent canvas fingerprinting, some add-ons undefine the getContext\n// method, for example: https://github.com/kkapsner/CanvasBlocker\n// https://github.com/chartjs/Chart.js/issues/2807\nvar context=item&&item.getContext&&item.getContext('2d');// `instanceof HTMLCanvasElement/CanvasRenderingContext2D` fails when the item is\n// inside an iframe or when running in a protected environment. We could guess the\n// types from their toString() value but let's keep things flexible and assume it's\n// a sufficient condition if the item has a context2D which has item as `canvas`.\n// https://github.com/chartjs/Chart.js/issues/3887\n// https://github.com/chartjs/Chart.js/issues/4102\n// https://github.com/chartjs/Chart.js/issues/4152\nif(context&&context.canvas===item){// Load platform resources on first chart creation, to make it possible to\n// import the library before setting platform options.\nthis._ensureLoaded(item);initCanvas(item,config);return context;}return null;},releaseContext:function(context){var canvas=context.canvas;if(!canvas[EXPANDO_KEY]){return;}var initial=canvas[EXPANDO_KEY].initial;['height','width'].forEach(function(prop){var value=initial[prop];if(helpers$1.isNullOrUndef(value)){canvas.removeAttribute(prop);}else{canvas.setAttribute(prop,value);}});helpers$1.each(initial.style||{},function(value,key){canvas.style[key]=value;});// The canvas render size might have been changed (and thus the state stack discarded),\n// we can't use save() and restore() to restore the initial state. So make sure that at\n// least the canvas context is reset to the default state by setting the canvas width.\n// https://www.w3.org/TR/2011/WD-html5-20110525/the-canvas-element.html\n// eslint-disable-next-line no-self-assign\ncanvas.width=canvas.width;delete canvas[EXPANDO_KEY];},addEventListener:function(chart,type,listener){var canvas=chart.canvas;if(type==='resize'){// Note: the resize event is not supported on all browsers.\naddResizeListener(canvas,listener,chart);return;}var expando=listener[EXPANDO_KEY]||(listener[EXPANDO_KEY]={});var proxies=expando.proxies||(expando.proxies={});var proxy=proxies[chart.id+'_'+type]=function(event){listener(fromNativeEvent(event,chart));};addListener(canvas,type,proxy);},removeEventListener:function(chart,type,listener){var canvas=chart.canvas;if(type==='resize'){// Note: the resize event is not supported on all browsers.\nremoveResizeListener(canvas);return;}var expando=listener[EXPANDO_KEY]||{};var proxies=expando.proxies||{};var proxy=proxies[chart.id+'_'+type];if(!proxy){return;}removeListener(canvas,type,proxy);}};// DEPRECATIONS\n/**\r\n     * Provided for backward compatibility, use EventTarget.addEventListener instead.\r\n     * EventTarget.addEventListener compatibility: Chrome, Opera 7, Safari, FF1.5+, IE9+\r\n     * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener\r\n     * @function Chart.helpers.addEvent\r\n     * @deprecated since version 2.7.0\r\n     * @todo remove at version 3\r\n     * @private\r\n     */helpers$1.addEvent=addListener;/**\r\n     * Provided for backward compatibility, use EventTarget.removeEventListener instead.\r\n     * EventTarget.removeEventListener compatibility: Chrome, Opera 7, Safari, FF1.5+, IE9+\r\n     * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener\r\n     * @function Chart.helpers.removeEvent\r\n     * @deprecated since version 2.7.0\r\n     * @todo remove at version 3\r\n     * @private\r\n     */helpers$1.removeEvent=removeListener;// @TODO Make possible to select another platform at build time.\nvar implementation=platform_dom$2._enabled?platform_dom$2:platform_basic;/**\r\n     * @namespace Chart.platform\r\n     * @see https://chartjs.gitbooks.io/proposals/content/Platform.html\r\n     * @since 2.4.0\r\n     */var platform=helpers$1.extend({/**\r\n         * @since 2.7.0\r\n         */initialize:function(){},/**\r\n         * Called at chart construction time, returns a context2d instance implementing\r\n         * the [W3C Canvas 2D Context API standard]{@link https://www.w3.org/TR/2dcontext/}.\r\n         * @param {*} item - The native item from which to acquire context (platform specific)\r\n         * @param {object} options - The chart options\r\n         * @returns {CanvasRenderingContext2D} context2d instance\r\n         */acquireContext:function(){},/**\r\n         * Called at chart destruction time, releases any resources associated to the context\r\n         * previously returned by the acquireContext() method.\r\n         * @param {CanvasRenderingContext2D} context - The context2d instance\r\n         * @returns {boolean} true if the method succeeded, else false\r\n         */releaseContext:function(){},/**\r\n         * Registers the specified listener on the given chart.\r\n         * @param {Chart} chart - Chart from which to listen for event\r\n         * @param {string} type - The ({@link IEvent}) type to listen for\r\n         * @param {function} listener - Receives a notification (an object that implements\r\n         * the {@link IEvent} interface) when an event of the specified type occurs.\r\n         */addEventListener:function(){},/**\r\n         * Removes the specified listener previously registered with addEventListener.\r\n         * @param {Chart} chart - Chart from which to remove the listener\r\n         * @param {string} type - The ({@link IEvent}) type to remove\r\n         * @param {function} listener - The listener function to remove from the event target.\r\n         */removeEventListener:function(){}},implementation);core_defaults._set('global',{plugins:{}});/**\r\n     * The plugin service singleton\r\n     * @namespace Chart.plugins\r\n     * @since 2.1.0\r\n     */var core_plugins={/**\r\n         * Globally registered plugins.\r\n         * @private\r\n         */_plugins:[],/**\r\n         * This identifier is used to invalidate the descriptors cache attached to each chart\r\n         * when a global plugin is registered or unregistered. In this case, the cache ID is\r\n         * incremented and descriptors are regenerated during following API calls.\r\n         * @private\r\n         */_cacheId:0,/**\r\n         * Registers the given plugin(s) if not already registered.\r\n         * @param {IPlugin[]|IPlugin} plugins plugin instance(s).\r\n         */register:function(plugins){var p=this._plugins;[].concat(plugins).forEach(function(plugin){if(p.indexOf(plugin)===-1){p.push(plugin);}});this._cacheId++;},/**\r\n         * Unregisters the given plugin(s) only if registered.\r\n         * @param {IPlugin[]|IPlugin} plugins plugin instance(s).\r\n         */unregister:function(plugins){var p=this._plugins;[].concat(plugins).forEach(function(plugin){var idx=p.indexOf(plugin);if(idx!==-1){p.splice(idx,1);}});this._cacheId++;},/**\r\n         * Remove all registered plugins.\r\n         * @since 2.1.5\r\n         */clear:function(){this._plugins=[];this._cacheId++;},/**\r\n         * Returns the number of registered plugins?\r\n         * @returns {number}\r\n         * @since 2.1.5\r\n         */count:function(){return this._plugins.length;},/**\r\n         * Returns all registered plugin instances.\r\n         * @returns {IPlugin[]} array of plugin objects.\r\n         * @since 2.1.5\r\n         */getAll:function(){return this._plugins;},/**\r\n         * Calls enabled plugins for `chart` on the specified hook and with the given args.\r\n         * This method immediately returns as soon as a plugin explicitly returns false. The\r\n         * returned value can be used, for instance, to interrupt the current action.\r\n         * @param {Chart} chart - The chart instance for which plugins should be called.\r\n         * @param {string} hook - The name of the plugin method to call (e.g. 'beforeUpdate').\r\n         * @param {Array} [args] - Extra arguments to apply to the hook call.\r\n         * @returns {boolean} false if any of the plugins return false, else returns true.\r\n         */notify:function(chart,hook,args){var descriptors=this.descriptors(chart);var ilen=descriptors.length;var i,descriptor,plugin,params,method;for(i=0;i<ilen;++i){descriptor=descriptors[i];plugin=descriptor.plugin;method=plugin[hook];if(typeof method==='function'){params=[chart].concat(args||[]);params.push(descriptor.options);if(method.apply(plugin,params)===false){return false;}}}return true;},/**\r\n         * Returns descriptors of enabled plugins for the given chart.\r\n         * @returns {object[]} [{ plugin, options }]\r\n         * @private\r\n         */descriptors:function(chart){var cache=chart.$plugins||(chart.$plugins={});if(cache.id===this._cacheId){return cache.descriptors;}var plugins=[];var descriptors=[];var config=chart&&chart.config||{};var options=config.options&&config.options.plugins||{};this._plugins.concat(config.plugins||[]).forEach(function(plugin){var idx=plugins.indexOf(plugin);if(idx!==-1){return;}var id=plugin.id;var opts=options[id];if(opts===false){return;}if(opts===true){opts=helpers$1.clone(core_defaults.global.plugins[id]);}plugins.push(plugin);descriptors.push({plugin:plugin,options:opts||{}});});cache.descriptors=descriptors;cache.id=this._cacheId;return descriptors;},/**\r\n         * Invalidates cache for the given chart: descriptors hold a reference on plugin option,\r\n         * but in some cases, this reference can be changed by the user when updating options.\r\n         * https://github.com/chartjs/Chart.js/issues/5111#issuecomment-355934167\r\n         * @private\r\n         */_invalidate:function(chart){delete chart.$plugins;}};var core_scaleService={// Scale registration object. Extensions can register new scale types (such as log or DB scales) and then\n// use the new chart options to grab the correct scale\nconstructors:{},// Use a registration function so that we can move to an ES6 map when we no longer need to support\n// old browsers\n// Scale config defaults\ndefaults:{},registerScaleType:function(type,scaleConstructor,scaleDefaults){this.constructors[type]=scaleConstructor;this.defaults[type]=helpers$1.clone(scaleDefaults);},getScaleConstructor:function(type){return this.constructors.hasOwnProperty(type)?this.constructors[type]:undefined;},getScaleDefaults:function(type){// Return the scale defaults merged with the global settings so that we always use the latest ones\nreturn this.defaults.hasOwnProperty(type)?helpers$1.merge({},[core_defaults.scale,this.defaults[type]]):{};},updateScaleDefaults:function(type,additions){var me=this;if(me.defaults.hasOwnProperty(type)){me.defaults[type]=helpers$1.extend(me.defaults[type],additions);}},addScalesToLayout:function(chart){// Adds each scale to the chart.boxes array to be sized accordingly\nhelpers$1.each(chart.scales,function(scale){// Set ILayoutItem parameters for backwards compatibility\nscale.fullWidth=scale.options.fullWidth;scale.position=scale.options.position;scale.weight=scale.options.weight;core_layouts.addBox(chart,scale);});}};var valueOrDefault$8=helpers$1.valueOrDefault;var getRtlHelper=helpers$1.rtl.getRtlAdapter;core_defaults._set('global',{tooltips:{enabled:true,custom:null,mode:'nearest',position:'average',intersect:true,backgroundColor:'rgba(0,0,0,0.8)',titleFontStyle:'bold',titleSpacing:2,titleMarginBottom:6,titleFontColor:'#fff',titleAlign:'left',bodySpacing:2,bodyFontColor:'#fff',bodyAlign:'left',footerFontStyle:'bold',footerSpacing:2,footerMarginTop:6,footerFontColor:'#fff',footerAlign:'left',yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:'#fff',displayColors:true,borderColor:'rgba(0,0,0,0)',borderWidth:0,callbacks:{// Args are: (tooltipItems, data)\nbeforeTitle:helpers$1.noop,title:function(tooltipItems,data){var title='';var labels=data.labels;var labelCount=labels?labels.length:0;if(tooltipItems.length>0){var item=tooltipItems[0];if(item.label){title=item.label;}else if(item.xLabel){title=item.xLabel;}else if(labelCount>0&&item.index<labelCount){title=labels[item.index];}}return title;},afterTitle:helpers$1.noop,// Args are: (tooltipItems, data)\nbeforeBody:helpers$1.noop,// Args are: (tooltipItem, data)\nbeforeLabel:helpers$1.noop,label:function(tooltipItem,data){var label=data.datasets[tooltipItem.datasetIndex].label||'';if(label){label+=': ';}if(!helpers$1.isNullOrUndef(tooltipItem.value)){label+=tooltipItem.value;}else{label+=tooltipItem.yLabel;}return label;},labelColor:function(tooltipItem,chart){var meta=chart.getDatasetMeta(tooltipItem.datasetIndex);var activeElement=meta.data[tooltipItem.index];var view=activeElement._view;return{borderColor:view.borderColor,backgroundColor:view.backgroundColor};},labelTextColor:function(){return this._options.bodyFontColor;},afterLabel:helpers$1.noop,// Args are: (tooltipItems, data)\nafterBody:helpers$1.noop,// Args are: (tooltipItems, data)\nbeforeFooter:helpers$1.noop,footer:helpers$1.noop,afterFooter:helpers$1.noop}}});var positioners={/**\r\n         * Average mode places the tooltip at the average position of the elements shown\r\n         * @function Chart.Tooltip.positioners.average\r\n         * @param elements {ChartElement[]} the elements being displayed in the tooltip\r\n         * @returns {object} tooltip position\r\n         */average:function(elements){if(!elements.length){return false;}var i,len;var x=0;var y=0;var count=0;for(i=0,len=elements.length;i<len;++i){var el=elements[i];if(el&&el.hasValue()){var pos=el.tooltipPosition();x+=pos.x;y+=pos.y;++count;}}return{x:x/count,y:y/count};},/**\r\n         * Gets the tooltip position nearest of the item nearest to the event position\r\n         * @function Chart.Tooltip.positioners.nearest\r\n         * @param elements {Chart.Element[]} the tooltip elements\r\n         * @param eventPosition {object} the position of the event in canvas coordinates\r\n         * @returns {object} the tooltip position\r\n         */nearest:function(elements,eventPosition){var x=eventPosition.x;var y=eventPosition.y;var minDistance=Number.POSITIVE_INFINITY;var i,len,nearestElement;for(i=0,len=elements.length;i<len;++i){var el=elements[i];if(el&&el.hasValue()){var center=el.getCenterPoint();var d=helpers$1.distanceBetweenPoints(eventPosition,center);if(d<minDistance){minDistance=d;nearestElement=el;}}}if(nearestElement){var tp=nearestElement.tooltipPosition();x=tp.x;y=tp.y;}return{x:x,y:y};}};// Helper to push or concat based on if the 2nd parameter is an array or not\nfunction pushOrConcat(base,toPush){if(toPush){if(helpers$1.isArray(toPush)){// base = base.concat(toPush);\nArray.prototype.push.apply(base,toPush);}else{base.push(toPush);}}return base;}/**\r\n     * Returns array of strings split by newline\r\n     * @param {string} value - The value to split by newline.\r\n     * @returns {string[]} value if newline present - Returned from String split() method\r\n     * @function\r\n     */function splitNewlines(str){if((typeof str==='string'||str instanceof String)&&str.indexOf('\\n')>-1){return str.split('\\n');}return str;}/**\r\n     * Private helper to create a tooltip item model\r\n     * @param element - the chart element (point, arc, bar) to create the tooltip item for\r\n     * @return new tooltip item\r\n     */function createTooltipItem(element){var xScale=element._xScale;var yScale=element._yScale||element._scale;// handle radar || polarArea charts\nvar index=element._index;var datasetIndex=element._datasetIndex;var controller=element._chart.getDatasetMeta(datasetIndex).controller;var indexScale=controller._getIndexScale();var valueScale=controller._getValueScale();return{xLabel:xScale?xScale.getLabelForIndex(index,datasetIndex):'',yLabel:yScale?yScale.getLabelForIndex(index,datasetIndex):'',label:indexScale?''+indexScale.getLabelForIndex(index,datasetIndex):'',value:valueScale?''+valueScale.getLabelForIndex(index,datasetIndex):'',index:index,datasetIndex:datasetIndex,x:element._model.x,y:element._model.y};}/**\r\n     * Helper to get the reset model for the tooltip\r\n     * @param tooltipOpts {object} the tooltip options\r\n     */function getBaseModel(tooltipOpts){var globalDefaults=core_defaults.global;return{// Positioning\nxPadding:tooltipOpts.xPadding,yPadding:tooltipOpts.yPadding,xAlign:tooltipOpts.xAlign,yAlign:tooltipOpts.yAlign,// Drawing direction and text direction\nrtl:tooltipOpts.rtl,textDirection:tooltipOpts.textDirection,// Body\nbodyFontColor:tooltipOpts.bodyFontColor,_bodyFontFamily:valueOrDefault$8(tooltipOpts.bodyFontFamily,globalDefaults.defaultFontFamily),_bodyFontStyle:valueOrDefault$8(tooltipOpts.bodyFontStyle,globalDefaults.defaultFontStyle),_bodyAlign:tooltipOpts.bodyAlign,bodyFontSize:valueOrDefault$8(tooltipOpts.bodyFontSize,globalDefaults.defaultFontSize),bodySpacing:tooltipOpts.bodySpacing,// Title\ntitleFontColor:tooltipOpts.titleFontColor,_titleFontFamily:valueOrDefault$8(tooltipOpts.titleFontFamily,globalDefaults.defaultFontFamily),_titleFontStyle:valueOrDefault$8(tooltipOpts.titleFontStyle,globalDefaults.defaultFontStyle),titleFontSize:valueOrDefault$8(tooltipOpts.titleFontSize,globalDefaults.defaultFontSize),_titleAlign:tooltipOpts.titleAlign,titleSpacing:tooltipOpts.titleSpacing,titleMarginBottom:tooltipOpts.titleMarginBottom,// Footer\nfooterFontColor:tooltipOpts.footerFontColor,_footerFontFamily:valueOrDefault$8(tooltipOpts.footerFontFamily,globalDefaults.defaultFontFamily),_footerFontStyle:valueOrDefault$8(tooltipOpts.footerFontStyle,globalDefaults.defaultFontStyle),footerFontSize:valueOrDefault$8(tooltipOpts.footerFontSize,globalDefaults.defaultFontSize),_footerAlign:tooltipOpts.footerAlign,footerSpacing:tooltipOpts.footerSpacing,footerMarginTop:tooltipOpts.footerMarginTop,// Appearance\ncaretSize:tooltipOpts.caretSize,cornerRadius:tooltipOpts.cornerRadius,backgroundColor:tooltipOpts.backgroundColor,opacity:0,legendColorBackground:tooltipOpts.multiKeyBackground,displayColors:tooltipOpts.displayColors,borderColor:tooltipOpts.borderColor,borderWidth:tooltipOpts.borderWidth};}/**\r\n     * Get the size of the tooltip\r\n     */function getTooltipSize(tooltip,model){var ctx=tooltip._chart.ctx;var height=model.yPadding*2;// Tooltip Padding\nvar width=0;// Count of all lines in the body\nvar body=model.body;var combinedBodyLength=body.reduce(function(count,bodyItem){return count+bodyItem.before.length+bodyItem.lines.length+bodyItem.after.length;},0);combinedBodyLength+=model.beforeBody.length+model.afterBody.length;var titleLineCount=model.title.length;var footerLineCount=model.footer.length;var titleFontSize=model.titleFontSize;var bodyFontSize=model.bodyFontSize;var footerFontSize=model.footerFontSize;height+=titleLineCount*titleFontSize;// Title Lines\nheight+=titleLineCount?(titleLineCount-1)*model.titleSpacing:0;// Title Line Spacing\nheight+=titleLineCount?model.titleMarginBottom:0;// Title's bottom Margin\nheight+=combinedBodyLength*bodyFontSize;// Body Lines\nheight+=combinedBodyLength?(combinedBodyLength-1)*model.bodySpacing:0;// Body Line Spacing\nheight+=footerLineCount?model.footerMarginTop:0;// Footer Margin\nheight+=footerLineCount*footerFontSize;// Footer Lines\nheight+=footerLineCount?(footerLineCount-1)*model.footerSpacing:0;// Footer Line Spacing\n// Title width\nvar widthPadding=0;var maxLineWidth=function(line){width=Math.max(width,ctx.measureText(line).width+widthPadding);};ctx.font=helpers$1.fontString(titleFontSize,model._titleFontStyle,model._titleFontFamily);helpers$1.each(model.title,maxLineWidth);// Body width\nctx.font=helpers$1.fontString(bodyFontSize,model._bodyFontStyle,model._bodyFontFamily);helpers$1.each(model.beforeBody.concat(model.afterBody),maxLineWidth);// Body lines may include some extra width due to the color box\nwidthPadding=model.displayColors?bodyFontSize+2:0;helpers$1.each(body,function(bodyItem){helpers$1.each(bodyItem.before,maxLineWidth);helpers$1.each(bodyItem.lines,maxLineWidth);helpers$1.each(bodyItem.after,maxLineWidth);});// Reset back to 0\nwidthPadding=0;// Footer width\nctx.font=helpers$1.fontString(footerFontSize,model._footerFontStyle,model._footerFontFamily);helpers$1.each(model.footer,maxLineWidth);// Add padding\nwidth+=2*model.xPadding;return{width:width,height:height};}/**\r\n     * Helper to get the alignment of a tooltip given the size\r\n     */function determineAlignment(tooltip,size){var model=tooltip._model;var chart=tooltip._chart;var chartArea=tooltip._chart.chartArea;var xAlign='center';var yAlign='center';if(model.y<size.height){yAlign='top';}else if(model.y>chart.height-size.height){yAlign='bottom';}var lf,rf;// functions to determine left, right alignment\nvar olf,orf;// functions to determine if left/right alignment causes tooltip to go outside chart\nvar yf;// function to get the y alignment if the tooltip goes outside of the left or right edges\nvar midX=(chartArea.left+chartArea.right)/2;var midY=(chartArea.top+chartArea.bottom)/2;if(yAlign==='center'){lf=function(x){return x<=midX;};rf=function(x){return x>midX;};}else{lf=function(x){return x<=size.width/2;};rf=function(x){return x>=chart.width-size.width/2;};}olf=function(x){return x+size.width+model.caretSize+model.caretPadding>chart.width;};orf=function(x){return x-size.width-model.caretSize-model.caretPadding<0;};yf=function(y){return y<=midY?'top':'bottom';};if(lf(model.x)){xAlign='left';// Is tooltip too wide and goes over the right side of the chart.?\nif(olf(model.x)){xAlign='center';yAlign=yf(model.y);}}else if(rf(model.x)){xAlign='right';// Is tooltip too wide and goes outside left edge of canvas?\nif(orf(model.x)){xAlign='center';yAlign=yf(model.y);}}var opts=tooltip._options;return{xAlign:opts.xAlign?opts.xAlign:xAlign,yAlign:opts.yAlign?opts.yAlign:yAlign};}/**\r\n     * Helper to get the location a tooltip needs to be placed at given the initial position (via the vm) and the size and alignment\r\n     */function getBackgroundPoint(vm,size,alignment,chart){// Background Position\nvar x=vm.x;var y=vm.y;var caretSize=vm.caretSize;var caretPadding=vm.caretPadding;var cornerRadius=vm.cornerRadius;var xAlign=alignment.xAlign;var yAlign=alignment.yAlign;var paddingAndSize=caretSize+caretPadding;var radiusAndPadding=cornerRadius+caretPadding;if(xAlign==='right'){x-=size.width;}else if(xAlign==='center'){x-=size.width/2;if(x+size.width>chart.width){x=chart.width-size.width;}if(x<0){x=0;}}if(yAlign==='top'){y+=paddingAndSize;}else if(yAlign==='bottom'){y-=size.height+paddingAndSize;}else{y-=size.height/2;}if(yAlign==='center'){if(xAlign==='left'){x+=paddingAndSize;}else if(xAlign==='right'){x-=paddingAndSize;}}else if(xAlign==='left'){x-=radiusAndPadding;}else if(xAlign==='right'){x+=radiusAndPadding;}return{x:x,y:y};}function getAlignedX(vm,align){return align==='center'?vm.x+vm.width/2:align==='right'?vm.x+vm.width-vm.xPadding:vm.x+vm.xPadding;}/**\r\n     * Helper to build before and after body lines\r\n     */function getBeforeAfterBodyLines(callback){return pushOrConcat([],splitNewlines(callback));}var exports$4=core_element.extend({initialize:function(){this._model=getBaseModel(this._options);this._lastActive=[];},// Get the title\n// Args are: (tooltipItem, data)\ngetTitle:function(){var me=this;var opts=me._options;var callbacks=opts.callbacks;var beforeTitle=callbacks.beforeTitle.apply(me,arguments);var title=callbacks.title.apply(me,arguments);var afterTitle=callbacks.afterTitle.apply(me,arguments);var lines=[];lines=pushOrConcat(lines,splitNewlines(beforeTitle));lines=pushOrConcat(lines,splitNewlines(title));lines=pushOrConcat(lines,splitNewlines(afterTitle));return lines;},// Args are: (tooltipItem, data)\ngetBeforeBody:function(){return getBeforeAfterBodyLines(this._options.callbacks.beforeBody.apply(this,arguments));},// Args are: (tooltipItem, data)\ngetBody:function(tooltipItems,data){var me=this;var callbacks=me._options.callbacks;var bodyItems=[];helpers$1.each(tooltipItems,function(tooltipItem){var bodyItem={before:[],lines:[],after:[]};pushOrConcat(bodyItem.before,splitNewlines(callbacks.beforeLabel.call(me,tooltipItem,data)));pushOrConcat(bodyItem.lines,callbacks.label.call(me,tooltipItem,data));pushOrConcat(bodyItem.after,splitNewlines(callbacks.afterLabel.call(me,tooltipItem,data)));bodyItems.push(bodyItem);});return bodyItems;},// Args are: (tooltipItem, data)\ngetAfterBody:function(){return getBeforeAfterBodyLines(this._options.callbacks.afterBody.apply(this,arguments));},// Get the footer and beforeFooter and afterFooter lines\n// Args are: (tooltipItem, data)\ngetFooter:function(){var me=this;var callbacks=me._options.callbacks;var beforeFooter=callbacks.beforeFooter.apply(me,arguments);var footer=callbacks.footer.apply(me,arguments);var afterFooter=callbacks.afterFooter.apply(me,arguments);var lines=[];lines=pushOrConcat(lines,splitNewlines(beforeFooter));lines=pushOrConcat(lines,splitNewlines(footer));lines=pushOrConcat(lines,splitNewlines(afterFooter));return lines;},update:function(changed){var me=this;var opts=me._options;// Need to regenerate the model because its faster than using extend and it is necessary due to the optimization in Chart.Element.transition\n// that does _view = _model if ease === 1. This causes the 2nd tooltip update to set properties in both the view and model at the same time\n// which breaks any animations.\nvar existingModel=me._model;var model=me._model=getBaseModel(opts);var active=me._active;var data=me._data;// In the case where active.length === 0 we need to keep these at existing values for good animations\nvar alignment={xAlign:existingModel.xAlign,yAlign:existingModel.yAlign};var backgroundPoint={x:existingModel.x,y:existingModel.y};var tooltipSize={width:existingModel.width,height:existingModel.height};var tooltipPosition={x:existingModel.caretX,y:existingModel.caretY};var i,len;if(active.length){model.opacity=1;var labelColors=[];var labelTextColors=[];tooltipPosition=positioners[opts.position].call(me,active,me._eventPosition);var tooltipItems=[];for(i=0,len=active.length;i<len;++i){tooltipItems.push(createTooltipItem(active[i]));}// If the user provided a filter function, use it to modify the tooltip items\nif(opts.filter){tooltipItems=tooltipItems.filter(function(a){return opts.filter(a,data);});}// If the user provided a sorting function, use it to modify the tooltip items\nif(opts.itemSort){tooltipItems=tooltipItems.sort(function(a,b){return opts.itemSort(a,b,data);});}// Determine colors for boxes\nhelpers$1.each(tooltipItems,function(tooltipItem){labelColors.push(opts.callbacks.labelColor.call(me,tooltipItem,me._chart));labelTextColors.push(opts.callbacks.labelTextColor.call(me,tooltipItem,me._chart));});// Build the Text Lines\nmodel.title=me.getTitle(tooltipItems,data);model.beforeBody=me.getBeforeBody(tooltipItems,data);model.body=me.getBody(tooltipItems,data);model.afterBody=me.getAfterBody(tooltipItems,data);model.footer=me.getFooter(tooltipItems,data);// Initial positioning and colors\nmodel.x=tooltipPosition.x;model.y=tooltipPosition.y;model.caretPadding=opts.caretPadding;model.labelColors=labelColors;model.labelTextColors=labelTextColors;// data points\nmodel.dataPoints=tooltipItems;// We need to determine alignment of the tooltip\ntooltipSize=getTooltipSize(this,model);alignment=determineAlignment(this,tooltipSize);// Final Size and Position\nbackgroundPoint=getBackgroundPoint(model,tooltipSize,alignment,me._chart);}else{model.opacity=0;}model.xAlign=alignment.xAlign;model.yAlign=alignment.yAlign;model.x=backgroundPoint.x;model.y=backgroundPoint.y;model.width=tooltipSize.width;model.height=tooltipSize.height;// Point where the caret on the tooltip points to\nmodel.caretX=tooltipPosition.x;model.caretY=tooltipPosition.y;me._model=model;if(changed&&opts.custom){opts.custom.call(me,model);}return me;},drawCaret:function(tooltipPoint,size){var ctx=this._chart.ctx;var vm=this._view;var caretPosition=this.getCaretPosition(tooltipPoint,size,vm);ctx.lineTo(caretPosition.x1,caretPosition.y1);ctx.lineTo(caretPosition.x2,caretPosition.y2);ctx.lineTo(caretPosition.x3,caretPosition.y3);},getCaretPosition:function(tooltipPoint,size,vm){var x1,x2,x3,y1,y2,y3;var caretSize=vm.caretSize;var cornerRadius=vm.cornerRadius;var xAlign=vm.xAlign;var yAlign=vm.yAlign;var ptX=tooltipPoint.x;var ptY=tooltipPoint.y;var width=size.width;var height=size.height;if(yAlign==='center'){y2=ptY+height/2;if(xAlign==='left'){x1=ptX;x2=x1-caretSize;x3=x1;y1=y2+caretSize;y3=y2-caretSize;}else{x1=ptX+width;x2=x1+caretSize;x3=x1;y1=y2-caretSize;y3=y2+caretSize;}}else{if(xAlign==='left'){x2=ptX+cornerRadius+caretSize;x1=x2-caretSize;x3=x2+caretSize;}else if(xAlign==='right'){x2=ptX+width-cornerRadius-caretSize;x1=x2-caretSize;x3=x2+caretSize;}else{x2=vm.caretX;x1=x2-caretSize;x3=x2+caretSize;}if(yAlign==='top'){y1=ptY;y2=y1-caretSize;y3=y1;}else{y1=ptY+height;y2=y1+caretSize;y3=y1;// invert drawing order\nvar tmp=x3;x3=x1;x1=tmp;}}return{x1:x1,x2:x2,x3:x3,y1:y1,y2:y2,y3:y3};},drawTitle:function(pt,vm,ctx){var title=vm.title;var length=title.length;var titleFontSize,titleSpacing,i;if(length){var rtlHelper=getRtlHelper(vm.rtl,vm.x,vm.width);pt.x=getAlignedX(vm,vm._titleAlign);ctx.textAlign=rtlHelper.textAlign(vm._titleAlign);ctx.textBaseline='middle';titleFontSize=vm.titleFontSize;titleSpacing=vm.titleSpacing;ctx.fillStyle=vm.titleFontColor;ctx.font=helpers$1.fontString(titleFontSize,vm._titleFontStyle,vm._titleFontFamily);for(i=0;i<length;++i){ctx.fillText(title[i],rtlHelper.x(pt.x),pt.y+titleFontSize/2);pt.y+=titleFontSize+titleSpacing;// Line Height and spacing\nif(i+1===length){pt.y+=vm.titleMarginBottom-titleSpacing;// If Last, add margin, remove spacing\n}}}},drawBody:function(pt,vm,ctx){var bodyFontSize=vm.bodyFontSize;var bodySpacing=vm.bodySpacing;var bodyAlign=vm._bodyAlign;var body=vm.body;var drawColorBoxes=vm.displayColors;var xLinePadding=0;var colorX=drawColorBoxes?getAlignedX(vm,'left'):0;var rtlHelper=getRtlHelper(vm.rtl,vm.x,vm.width);var fillLineOfText=function(line){ctx.fillText(line,rtlHelper.x(pt.x+xLinePadding),pt.y+bodyFontSize/2);pt.y+=bodyFontSize+bodySpacing;};var bodyItem,textColor,labelColors,lines,i,j,ilen,jlen;var bodyAlignForCalculation=rtlHelper.textAlign(bodyAlign);ctx.textAlign=bodyAlign;ctx.textBaseline='middle';ctx.font=helpers$1.fontString(bodyFontSize,vm._bodyFontStyle,vm._bodyFontFamily);pt.x=getAlignedX(vm,bodyAlignForCalculation);// Before body lines\nctx.fillStyle=vm.bodyFontColor;helpers$1.each(vm.beforeBody,fillLineOfText);xLinePadding=drawColorBoxes&&bodyAlignForCalculation!=='right'?bodyAlign==='center'?bodyFontSize/2+1:bodyFontSize+2:0;// Draw body lines now\nfor(i=0,ilen=body.length;i<ilen;++i){bodyItem=body[i];textColor=vm.labelTextColors[i];labelColors=vm.labelColors[i];ctx.fillStyle=textColor;helpers$1.each(bodyItem.before,fillLineOfText);lines=bodyItem.lines;for(j=0,jlen=lines.length;j<jlen;++j){// Draw Legend-like boxes if needed\nif(drawColorBoxes){var rtlColorX=rtlHelper.x(colorX);// Fill a white rect so that colours merge nicely if the opacity is < 1\nctx.fillStyle=vm.legendColorBackground;ctx.fillRect(rtlHelper.leftForLtr(rtlColorX,bodyFontSize),pt.y,bodyFontSize,bodyFontSize);// Border\nctx.lineWidth=1;ctx.strokeStyle=labelColors.borderColor;ctx.strokeRect(rtlHelper.leftForLtr(rtlColorX,bodyFontSize),pt.y,bodyFontSize,bodyFontSize);// Inner square\nctx.fillStyle=labelColors.backgroundColor;ctx.fillRect(rtlHelper.leftForLtr(rtlHelper.xPlus(rtlColorX,1),bodyFontSize-2),pt.y+1,bodyFontSize-2,bodyFontSize-2);ctx.fillStyle=textColor;}fillLineOfText(lines[j]);}helpers$1.each(bodyItem.after,fillLineOfText);}// Reset back to 0 for after body\nxLinePadding=0;// After body lines\nhelpers$1.each(vm.afterBody,fillLineOfText);pt.y-=bodySpacing;// Remove last body spacing\n},drawFooter:function(pt,vm,ctx){var footer=vm.footer;var length=footer.length;var footerFontSize,i;if(length){var rtlHelper=getRtlHelper(vm.rtl,vm.x,vm.width);pt.x=getAlignedX(vm,vm._footerAlign);pt.y+=vm.footerMarginTop;ctx.textAlign=rtlHelper.textAlign(vm._footerAlign);ctx.textBaseline='middle';footerFontSize=vm.footerFontSize;ctx.fillStyle=vm.footerFontColor;ctx.font=helpers$1.fontString(footerFontSize,vm._footerFontStyle,vm._footerFontFamily);for(i=0;i<length;++i){ctx.fillText(footer[i],rtlHelper.x(pt.x),pt.y+footerFontSize/2);pt.y+=footerFontSize+vm.footerSpacing;}}},drawBackground:function(pt,vm,ctx,tooltipSize){ctx.fillStyle=vm.backgroundColor;ctx.strokeStyle=vm.borderColor;ctx.lineWidth=vm.borderWidth;var xAlign=vm.xAlign;var yAlign=vm.yAlign;var x=pt.x;var y=pt.y;var width=tooltipSize.width;var height=tooltipSize.height;var radius=vm.cornerRadius;ctx.beginPath();ctx.moveTo(x+radius,y);if(yAlign==='top'){this.drawCaret(pt,tooltipSize);}ctx.lineTo(x+width-radius,y);ctx.quadraticCurveTo(x+width,y,x+width,y+radius);if(yAlign==='center'&&xAlign==='right'){this.drawCaret(pt,tooltipSize);}ctx.lineTo(x+width,y+height-radius);ctx.quadraticCurveTo(x+width,y+height,x+width-radius,y+height);if(yAlign==='bottom'){this.drawCaret(pt,tooltipSize);}ctx.lineTo(x+radius,y+height);ctx.quadraticCurveTo(x,y+height,x,y+height-radius);if(yAlign==='center'&&xAlign==='left'){this.drawCaret(pt,tooltipSize);}ctx.lineTo(x,y+radius);ctx.quadraticCurveTo(x,y,x+radius,y);ctx.closePath();ctx.fill();if(vm.borderWidth>0){ctx.stroke();}},draw:function(){var ctx=this._chart.ctx;var vm=this._view;if(vm.opacity===0){return;}var tooltipSize={width:vm.width,height:vm.height};var pt={x:vm.x,y:vm.y};// IE11/Edge does not like very small opacities, so snap to 0\nvar opacity=Math.abs(vm.opacity<1e-3)?0:vm.opacity;// Truthy/falsey value for empty tooltip\nvar hasTooltipContent=vm.title.length||vm.beforeBody.length||vm.body.length||vm.afterBody.length||vm.footer.length;if(this._options.enabled&&hasTooltipContent){ctx.save();ctx.globalAlpha=opacity;// Draw Background\nthis.drawBackground(pt,vm,ctx,tooltipSize);// Draw Title, Body, and Footer\npt.y+=vm.yPadding;helpers$1.rtl.overrideTextDirection(ctx,vm.textDirection);// Titles\nthis.drawTitle(pt,vm,ctx);// Body\nthis.drawBody(pt,vm,ctx);// Footer\nthis.drawFooter(pt,vm,ctx);helpers$1.rtl.restoreTextDirection(ctx,vm.textDirection);ctx.restore();}},/**\r\n         * Handle an event\r\n         * @private\r\n         * @param {IEvent} event - The event to handle\r\n         * @returns {boolean} true if the tooltip changed\r\n         */handleEvent:function(e){var me=this;var options=me._options;var changed=false;me._lastActive=me._lastActive||[];// Find Active Elements for tooltips\nif(e.type==='mouseout'){me._active=[];}else{me._active=me._chart.getElementsAtEventForMode(e,options.mode,options);if(options.reverse){me._active.reverse();}}// Remember Last Actives\nchanged=!helpers$1.arrayEquals(me._active,me._lastActive);// Only handle target event on tooltip change\nif(changed){me._lastActive=me._active;if(options.enabled||options.custom){me._eventPosition={x:e.x,y:e.y};me.update(true);me.pivot();}}return changed;}});/**\r\n     * @namespace Chart.Tooltip.positioners\r\n     */var positioners_1=positioners;var core_tooltip=exports$4;core_tooltip.positioners=positioners_1;var valueOrDefault$9=helpers$1.valueOrDefault;core_defaults._set('global',{elements:{},events:['mousemove','mouseout','click','touchstart','touchmove'],hover:{onHover:null,mode:'nearest',intersect:true,animationDuration:400},onClick:null,maintainAspectRatio:true,responsive:true,responsiveAnimationDuration:0});/**\r\n     * Recursively merge the given config objects representing the `scales` option\r\n     * by incorporating scale defaults in `xAxes` and `yAxes` array items, then\r\n     * returns a deep copy of the result, thus doesn't alter inputs.\r\n     */function mergeScaleConfig(/* config objects ... */){return helpers$1.merge({},[].slice.call(arguments),{merger:function(key,target,source,options){if(key==='xAxes'||key==='yAxes'){var slen=source[key].length;var i,type,scale;if(!target[key]){target[key]=[];}for(i=0;i<slen;++i){scale=source[key][i];type=valueOrDefault$9(scale.type,key==='xAxes'?'category':'linear');if(i>=target[key].length){target[key].push({});}if(!target[key][i].type||scale.type&&scale.type!==target[key][i].type){// new/untyped scale or type changed: let's apply the new defaults\n// then merge source scale to correctly overwrite the defaults.\nhelpers$1.merge(target[key][i],[core_scaleService.getScaleDefaults(type),scale]);}else{// scales type are the same\nhelpers$1.merge(target[key][i],scale);}}}else{helpers$1._merger(key,target,source,options);}}});}/**\r\n     * Recursively merge the given config objects as the root options by handling\r\n     * default scale options for the `scales` and `scale` properties, then returns\r\n     * a deep copy of the result, thus doesn't alter inputs.\r\n     */function mergeConfig(/* config objects ... */){return helpers$1.merge({},[].slice.call(arguments),{merger:function(key,target,source,options){var tval=target[key]||{};var sval=source[key];if(key==='scales'){// scale config merging is complex. Add our own function here for that\ntarget[key]=mergeScaleConfig(tval,sval);}else if(key==='scale'){// used in polar area & radar charts since there is only one scale\ntarget[key]=helpers$1.merge(tval,[core_scaleService.getScaleDefaults(sval.type),sval]);}else{helpers$1._merger(key,target,source,options);}}});}function initConfig(config){config=config||{};// Do NOT use mergeConfig for the data object because this method merges arrays\n// and so would change references to labels and datasets, preventing data updates.\nvar data=config.data=config.data||{};data.datasets=data.datasets||[];data.labels=data.labels||[];config.options=mergeConfig(core_defaults.global,core_defaults[config.type],config.options||{});return config;}function updateConfig(chart){var newOptions=chart.options;helpers$1.each(chart.scales,function(scale){core_layouts.removeBox(chart,scale);});newOptions=mergeConfig(core_defaults.global,core_defaults[chart.config.type],newOptions);chart.options=chart.config.options=newOptions;chart.ensureScalesHaveIDs();chart.buildOrUpdateScales();// Tooltip\nchart.tooltip._options=newOptions.tooltips;chart.tooltip.initialize();}function nextAvailableScaleId(axesOpts,prefix,index){var id;var hasId=function(obj){return obj.id===id;};do{id=prefix+index++;}while(helpers$1.findIndex(axesOpts,hasId)>=0);return id;}function positionIsHorizontal(position){return position==='top'||position==='bottom';}function compare2Level(l1,l2){return function(a,b){return a[l1]===b[l1]?a[l2]-b[l2]:a[l1]-b[l1];};}var Chart=function(item,config){this.construct(item,config);return this;};helpers$1.extend(Chart.prototype,/** @lends Chart */{/**\r\n         * @private\r\n         */construct:function(item,config){var me=this;config=initConfig(config);var context=platform.acquireContext(item,config);var canvas=context&&context.canvas;var height=canvas&&canvas.height;var width=canvas&&canvas.width;me.id=helpers$1.uid();me.ctx=context;me.canvas=canvas;me.config=config;me.width=width;me.height=height;me.aspectRatio=height?width/height:null;me.options=config.options;me._bufferedRender=false;me._layers=[];/**\r\n             * Provided for backward compatibility, Chart and Chart.Controller have been merged,\r\n             * the \"instance\" still need to be defined since it might be called from plugins.\r\n             * @prop Chart#chart\r\n             * @deprecated since version 2.6.0\r\n             * @todo remove at version 3\r\n             * @private\r\n             */me.chart=me;me.controller=me;// chart.chart.controller #inception\n// Add the chart instance to the global namespace\nChart.instances[me.id]=me;// Define alias to the config data: `chart.data === chart.config.data`\nObject.defineProperty(me,'data',{get:function(){return me.config.data;},set:function(value){me.config.data=value;}});if(!context||!canvas){// The given item is not a compatible context2d element, let's return before finalizing\n// the chart initialization but after setting basic chart / controller properties that\n// can help to figure out that the chart is not valid (e.g chart.canvas !== null);\n// https://github.com/chartjs/Chart.js/issues/2807\nconsole.error(\"Failed to create chart: can't acquire context from the given item\");return;}me.initialize();me.update();},/**\r\n         * @private\r\n         */initialize:function(){var me=this;// Before init plugin notification\ncore_plugins.notify(me,'beforeInit');helpers$1.retinaScale(me,me.options.devicePixelRatio);me.bindEvents();if(me.options.responsive){// Initial resize before chart draws (must be silent to preserve initial animations).\nme.resize(true);}me.initToolTip();// After init plugin notification\ncore_plugins.notify(me,'afterInit');return me;},clear:function(){helpers$1.canvas.clear(this);return this;},stop:function(){// Stops any current animation loop occurring\ncore_animations.cancelAnimation(this);return this;},resize:function(silent){var me=this;var options=me.options;var canvas=me.canvas;var aspectRatio=options.maintainAspectRatio&&me.aspectRatio||null;// the canvas render width and height will be casted to integers so make sure that\n// the canvas display style uses the same integer values to avoid blurring effect.\n// Set to 0 instead of canvas.size because the size defaults to 300x150 if the element is collapsed\nvar newWidth=Math.max(0,Math.floor(helpers$1.getMaximumWidth(canvas)));var newHeight=Math.max(0,Math.floor(aspectRatio?newWidth/aspectRatio:helpers$1.getMaximumHeight(canvas)));if(me.width===newWidth&&me.height===newHeight){return;}canvas.width=me.width=newWidth;canvas.height=me.height=newHeight;canvas.style.width=newWidth+'px';canvas.style.height=newHeight+'px';helpers$1.retinaScale(me,options.devicePixelRatio);if(!silent){// Notify any plugins about the resize\nvar newSize={width:newWidth,height:newHeight};core_plugins.notify(me,'resize',[newSize]);// Notify of resize\nif(options.onResize){options.onResize(me,newSize);}me.stop();me.update({duration:options.responsiveAnimationDuration});}},ensureScalesHaveIDs:function(){var options=this.options;var scalesOptions=options.scales||{};var scaleOptions=options.scale;helpers$1.each(scalesOptions.xAxes,function(xAxisOptions,index){if(!xAxisOptions.id){xAxisOptions.id=nextAvailableScaleId(scalesOptions.xAxes,'x-axis-',index);}});helpers$1.each(scalesOptions.yAxes,function(yAxisOptions,index){if(!yAxisOptions.id){yAxisOptions.id=nextAvailableScaleId(scalesOptions.yAxes,'y-axis-',index);}});if(scaleOptions){scaleOptions.id=scaleOptions.id||'scale';}},/**\r\n         * Builds a map of scale ID to scale object for future lookup.\r\n         */buildOrUpdateScales:function(){var me=this;var options=me.options;var scales=me.scales||{};var items=[];var updated=Object.keys(scales).reduce(function(obj,id){obj[id]=false;return obj;},{});if(options.scales){items=items.concat((options.scales.xAxes||[]).map(function(xAxisOptions){return{options:xAxisOptions,dtype:'category',dposition:'bottom'};}),(options.scales.yAxes||[]).map(function(yAxisOptions){return{options:yAxisOptions,dtype:'linear',dposition:'left'};}));}if(options.scale){items.push({options:options.scale,dtype:'radialLinear',isDefault:true,dposition:'chartArea'});}helpers$1.each(items,function(item){var scaleOptions=item.options;var id=scaleOptions.id;var scaleType=valueOrDefault$9(scaleOptions.type,item.dtype);if(positionIsHorizontal(scaleOptions.position)!==positionIsHorizontal(item.dposition)){scaleOptions.position=item.dposition;}updated[id]=true;var scale=null;if(id in scales&&scales[id].type===scaleType){scale=scales[id];scale.options=scaleOptions;scale.ctx=me.ctx;scale.chart=me;}else{var scaleClass=core_scaleService.getScaleConstructor(scaleType);if(!scaleClass){return;}scale=new scaleClass({id:id,type:scaleType,options:scaleOptions,ctx:me.ctx,chart:me});scales[scale.id]=scale;}scale.mergeTicksOptions();// TODO(SB): I think we should be able to remove this custom case (options.scale)\n// and consider it as a regular scale part of the \"scales\"\" map only! This would\n// make the logic easier and remove some useless? custom code.\nif(item.isDefault){me.scale=scale;}});// clear up discarded scales\nhelpers$1.each(updated,function(hasUpdated,id){if(!hasUpdated){delete scales[id];}});me.scales=scales;core_scaleService.addScalesToLayout(this);},buildOrUpdateControllers:function(){var me=this;var newControllers=[];var datasets=me.data.datasets;var i,ilen;for(i=0,ilen=datasets.length;i<ilen;i++){var dataset=datasets[i];var meta=me.getDatasetMeta(i);var type=dataset.type||me.config.type;if(meta.type&&meta.type!==type){me.destroyDatasetMeta(i);meta=me.getDatasetMeta(i);}meta.type=type;meta.order=dataset.order||0;meta.index=i;if(meta.controller){meta.controller.updateIndex(i);meta.controller.linkScales();}else{var ControllerClass=controllers[meta.type];if(ControllerClass===undefined){throw new Error('\"'+meta.type+'\" is not a chart type.');}meta.controller=new ControllerClass(me,i);newControllers.push(meta.controller);}}return newControllers;},/**\r\n         * Reset the elements of all datasets\r\n         * @private\r\n         */resetElements:function(){var me=this;helpers$1.each(me.data.datasets,function(dataset,datasetIndex){me.getDatasetMeta(datasetIndex).controller.reset();},me);},/**\r\n        * Resets the chart back to it's state before the initial animation\r\n        */reset:function(){this.resetElements();this.tooltip.initialize();},update:function(config){var me=this;var i,ilen;if(!config||typeof config!=='object'){// backwards compatibility\nconfig={duration:config,lazy:arguments[1]};}updateConfig(me);// plugins options references might have change, let's invalidate the cache\n// https://github.com/chartjs/Chart.js/issues/5111#issuecomment-355934167\ncore_plugins._invalidate(me);if(core_plugins.notify(me,'beforeUpdate')===false){return;}// In case the entire data object changed\nme.tooltip._data=me.data;// Make sure dataset controllers are updated and new controllers are reset\nvar newControllers=me.buildOrUpdateControllers();// Make sure all dataset controllers have correct meta data counts\nfor(i=0,ilen=me.data.datasets.length;i<ilen;i++){me.getDatasetMeta(i).controller.buildOrUpdateElements();}me.updateLayout();// Can only reset the new controllers after the scales have been updated\nif(me.options.animation&&me.options.animation.duration){helpers$1.each(newControllers,function(controller){controller.reset();});}me.updateDatasets();// Need to reset tooltip in case it is displayed with elements that are removed\n// after update.\nme.tooltip.initialize();// Last active contains items that were previously in the tooltip.\n// When we reset the tooltip, we need to clear it\nme.lastActive=[];// Do this before render so that any plugins that need final scale updates can use it\ncore_plugins.notify(me,'afterUpdate');me._layers.sort(compare2Level('z','_idx'));if(me._bufferedRender){me._bufferedRequest={duration:config.duration,easing:config.easing,lazy:config.lazy};}else{me.render(config);}},/**\r\n         * Updates the chart layout unless a plugin returns `false` to the `beforeLayout`\r\n         * hook, in which case, plugins will not be called on `afterLayout`.\r\n         * @private\r\n         */updateLayout:function(){var me=this;if(core_plugins.notify(me,'beforeLayout')===false){return;}core_layouts.update(this,this.width,this.height);me._layers=[];helpers$1.each(me.boxes,function(box){// _configure is called twice, once in core.scale.update and once here.\n// Here the boxes are fully updated and at their final positions.\nif(box._configure){box._configure();}me._layers.push.apply(me._layers,box._layers());},me);me._layers.forEach(function(item,index){item._idx=index;});/**\r\n             * Provided for backward compatibility, use `afterLayout` instead.\r\n             * @method IPlugin#afterScaleUpdate\r\n             * @deprecated since version 2.5.0\r\n             * @todo remove at version 3\r\n             * @private\r\n             */core_plugins.notify(me,'afterScaleUpdate');core_plugins.notify(me,'afterLayout');},/**\r\n         * Updates all datasets unless a plugin returns `false` to the `beforeDatasetsUpdate`\r\n         * hook, in which case, plugins will not be called on `afterDatasetsUpdate`.\r\n         * @private\r\n         */updateDatasets:function(){var me=this;if(core_plugins.notify(me,'beforeDatasetsUpdate')===false){return;}for(var i=0,ilen=me.data.datasets.length;i<ilen;++i){me.updateDataset(i);}core_plugins.notify(me,'afterDatasetsUpdate');},/**\r\n         * Updates dataset at index unless a plugin returns `false` to the `beforeDatasetUpdate`\r\n         * hook, in which case, plugins will not be called on `afterDatasetUpdate`.\r\n         * @private\r\n         */updateDataset:function(index){var me=this;var meta=me.getDatasetMeta(index);var args={meta:meta,index:index};if(core_plugins.notify(me,'beforeDatasetUpdate',[args])===false){return;}meta.controller._update();core_plugins.notify(me,'afterDatasetUpdate',[args]);},render:function(config){var me=this;if(!config||typeof config!=='object'){// backwards compatibility\nconfig={duration:config,lazy:arguments[1]};}var animationOptions=me.options.animation;var duration=valueOrDefault$9(config.duration,animationOptions&&animationOptions.duration);var lazy=config.lazy;if(core_plugins.notify(me,'beforeRender')===false){return;}var onComplete=function(animation){core_plugins.notify(me,'afterRender');helpers$1.callback(animationOptions&&animationOptions.onComplete,[animation],me);};if(animationOptions&&duration){var animation=new core_animation({numSteps:duration/16.66,// 60 fps\neasing:config.easing||animationOptions.easing,render:function(chart,animationObject){var easingFunction=helpers$1.easing.effects[animationObject.easing];var currentStep=animationObject.currentStep;var stepDecimal=currentStep/animationObject.numSteps;chart.draw(easingFunction(stepDecimal),stepDecimal,currentStep);},onAnimationProgress:animationOptions.onProgress,onAnimationComplete:onComplete});core_animations.addAnimation(me,animation,duration,lazy);}else{me.draw();// See https://github.com/chartjs/Chart.js/issues/3781\nonComplete(new core_animation({numSteps:0,chart:me}));}return me;},draw:function(easingValue){var me=this;var i,layers;me.clear();if(helpers$1.isNullOrUndef(easingValue)){easingValue=1;}me.transition(easingValue);if(me.width<=0||me.height<=0){return;}if(core_plugins.notify(me,'beforeDraw',[easingValue])===false){return;}// Because of plugin hooks (before/afterDatasetsDraw), datasets can't\n// currently be part of layers. Instead, we draw\n// layers <= 0 before(default, backward compat), and the rest after\nlayers=me._layers;for(i=0;i<layers.length&&layers[i].z<=0;++i){layers[i].draw(me.chartArea);}me.drawDatasets(easingValue);// Rest of layers\nfor(;i<layers.length;++i){layers[i].draw(me.chartArea);}me._drawTooltip(easingValue);core_plugins.notify(me,'afterDraw',[easingValue]);},/**\r\n         * @private\r\n         */transition:function(easingValue){var me=this;for(var i=0,ilen=(me.data.datasets||[]).length;i<ilen;++i){if(me.isDatasetVisible(i)){me.getDatasetMeta(i).controller.transition(easingValue);}}me.tooltip.transition(easingValue);},/**\r\n         * @private\r\n         */_getSortedDatasetMetas:function(filterVisible){var me=this;var datasets=me.data.datasets||[];var result=[];var i,ilen;for(i=0,ilen=datasets.length;i<ilen;++i){if(!filterVisible||me.isDatasetVisible(i)){result.push(me.getDatasetMeta(i));}}result.sort(compare2Level('order','index'));return result;},/**\r\n         * @private\r\n         */_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(true);},/**\r\n         * Draws all datasets unless a plugin returns `false` to the `beforeDatasetsDraw`\r\n         * hook, in which case, plugins will not be called on `afterDatasetsDraw`.\r\n         * @private\r\n         */drawDatasets:function(easingValue){var me=this;var metasets,i;if(core_plugins.notify(me,'beforeDatasetsDraw',[easingValue])===false){return;}metasets=me._getSortedVisibleDatasetMetas();for(i=metasets.length-1;i>=0;--i){me.drawDataset(metasets[i],easingValue);}core_plugins.notify(me,'afterDatasetsDraw',[easingValue]);},/**\r\n         * Draws dataset at index unless a plugin returns `false` to the `beforeDatasetDraw`\r\n         * hook, in which case, plugins will not be called on `afterDatasetDraw`.\r\n         * @private\r\n         */drawDataset:function(meta,easingValue){var me=this;var args={meta:meta,index:meta.index,easingValue:easingValue};if(core_plugins.notify(me,'beforeDatasetDraw',[args])===false){return;}meta.controller.draw(easingValue);core_plugins.notify(me,'afterDatasetDraw',[args]);},/**\r\n         * Draws tooltip unless a plugin returns `false` to the `beforeTooltipDraw`\r\n         * hook, in which case, plugins will not be called on `afterTooltipDraw`.\r\n         * @private\r\n         */_drawTooltip:function(easingValue){var me=this;var tooltip=me.tooltip;var args={tooltip:tooltip,easingValue:easingValue};if(core_plugins.notify(me,'beforeTooltipDraw',[args])===false){return;}tooltip.draw();core_plugins.notify(me,'afterTooltipDraw',[args]);},/**\r\n         * Get the single element that was clicked on\r\n         * @return An object containing the dataset index and element index of the matching element. Also contains the rectangle that was draw\r\n         */getElementAtEvent:function(e){return core_interaction.modes.single(this,e);},getElementsAtEvent:function(e){return core_interaction.modes.label(this,e,{intersect:true});},getElementsAtXAxis:function(e){return core_interaction.modes['x-axis'](this,e,{intersect:true});},getElementsAtEventForMode:function(e,mode,options){var method=core_interaction.modes[mode];if(typeof method==='function'){return method(this,e,options);}return[];},getDatasetAtEvent:function(e){return core_interaction.modes.dataset(this,e,{intersect:true});},getDatasetMeta:function(datasetIndex){var me=this;var dataset=me.data.datasets[datasetIndex];if(!dataset._meta){dataset._meta={};}var meta=dataset._meta[me.id];if(!meta){meta=dataset._meta[me.id]={type:null,data:[],dataset:null,controller:null,hidden:null,// See isDatasetVisible() comment\nxAxisID:null,yAxisID:null,order:dataset.order||0,index:datasetIndex};}return meta;},getVisibleDatasetCount:function(){var count=0;for(var i=0,ilen=this.data.datasets.length;i<ilen;++i){if(this.isDatasetVisible(i)){count++;}}return count;},isDatasetVisible:function(datasetIndex){var meta=this.getDatasetMeta(datasetIndex);// meta.hidden is a per chart dataset hidden flag override with 3 states: if true or false,\n// the dataset.hidden value is ignored, else if null, the dataset hidden state is returned.\nreturn typeof meta.hidden==='boolean'?!meta.hidden:!this.data.datasets[datasetIndex].hidden;},generateLegend:function(){return this.options.legendCallback(this);},/**\r\n         * @private\r\n         */destroyDatasetMeta:function(datasetIndex){var id=this.id;var dataset=this.data.datasets[datasetIndex];var meta=dataset._meta&&dataset._meta[id];if(meta){meta.controller.destroy();delete dataset._meta[id];}},destroy:function(){var me=this;var canvas=me.canvas;var i,ilen;me.stop();// dataset controllers need to cleanup associated data\nfor(i=0,ilen=me.data.datasets.length;i<ilen;++i){me.destroyDatasetMeta(i);}if(canvas){me.unbindEvents();helpers$1.canvas.clear(me);platform.releaseContext(me.ctx);me.canvas=null;me.ctx=null;}core_plugins.notify(me,'destroy');delete Chart.instances[me.id];},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments);},initToolTip:function(){var me=this;me.tooltip=new core_tooltip({_chart:me,_chartInstance:me,// deprecated, backward compatibility\n_data:me.data,_options:me.options.tooltips},me);},/**\r\n         * @private\r\n         */bindEvents:function(){var me=this;var listeners=me._listeners={};var listener=function(){me.eventHandler.apply(me,arguments);};helpers$1.each(me.options.events,function(type){platform.addEventListener(me,type,listener);listeners[type]=listener;});// Elements used to detect size change should not be injected for non responsive charts.\n// See https://github.com/chartjs/Chart.js/issues/2210\nif(me.options.responsive){listener=function(){me.resize();};platform.addEventListener(me,'resize',listener);listeners.resize=listener;}},/**\r\n         * @private\r\n         */unbindEvents:function(){var me=this;var listeners=me._listeners;if(!listeners){return;}delete me._listeners;helpers$1.each(listeners,function(listener,type){platform.removeEventListener(me,type,listener);});},updateHoverStyle:function(elements,mode,enabled){var prefix=enabled?'set':'remove';var element,i,ilen;for(i=0,ilen=elements.length;i<ilen;++i){element=elements[i];if(element){this.getDatasetMeta(element._datasetIndex).controller[prefix+'HoverStyle'](element);}}if(mode==='dataset'){this.getDatasetMeta(elements[0]._datasetIndex).controller['_'+prefix+'DatasetHoverStyle']();}},/**\r\n         * @private\r\n         */eventHandler:function(e){var me=this;var tooltip=me.tooltip;if(core_plugins.notify(me,'beforeEvent',[e])===false){return;}// Buffer any update calls so that renders do not occur\nme._bufferedRender=true;me._bufferedRequest=null;var changed=me.handleEvent(e);// for smooth tooltip animations issue #4989\n// the tooltip should be the source of change\n// Animation check workaround:\n// tooltip._start will be null when tooltip isn't animating\nif(tooltip){changed=tooltip._start?tooltip.handleEvent(e):changed|tooltip.handleEvent(e);}core_plugins.notify(me,'afterEvent',[e]);var bufferedRequest=me._bufferedRequest;if(bufferedRequest){// If we have an update that was triggered, we need to do a normal render\nme.render(bufferedRequest);}else if(changed&&!me.animating){// If entering, leaving, or changing elements, animate the change via pivot\nme.stop();// We only need to render at this point. Updating will cause scales to be\n// recomputed generating flicker & using more memory than necessary.\nme.render({duration:me.options.hover.animationDuration,lazy:true});}me._bufferedRender=false;me._bufferedRequest=null;return me;},/**\r\n         * Handle an event\r\n         * @private\r\n         * @param {IEvent} event the event to handle\r\n         * @return {boolean} true if the chart needs to re-render\r\n         */handleEvent:function(e){var me=this;var options=me.options||{};var hoverOptions=options.hover;var changed=false;me.lastActive=me.lastActive||[];// Find Active Elements for hover and tooltips\nif(e.type==='mouseout'){me.active=[];}else{me.active=me.getElementsAtEventForMode(e,hoverOptions.mode,hoverOptions);}// Invoke onHover hook\n// Need to call with native event here to not break backwards compatibility\nhelpers$1.callback(options.onHover||options.hover.onHover,[e.native,me.active],me);if(e.type==='mouseup'||e.type==='click'){if(options.onClick){// Use e.native here for backwards compatibility\noptions.onClick.call(me,e.native,me.active);}}// Remove styling for last active (even if it may still be active)\nif(me.lastActive.length){me.updateHoverStyle(me.lastActive,hoverOptions.mode,false);}// Built in hover styling\nif(me.active.length&&hoverOptions.mode){me.updateHoverStyle(me.active,hoverOptions.mode,true);}changed=!helpers$1.arrayEquals(me.active,me.lastActive);// Remember Last Actives\nme.lastActive=me.active;return changed;}});/**\r\n     * NOTE(SB) We actually don't use this container anymore but we need to keep it\r\n     * for backward compatibility. Though, it can still be useful for plugins that\r\n     * would need to work on multiple charts?!\r\n     */Chart.instances={};var core_controller=Chart;// DEPRECATIONS\n/**\r\n     * Provided for backward compatibility, use Chart instead.\r\n     * @class Chart.Controller\r\n     * @deprecated since version 2.6\r\n     * @todo remove at version 3\r\n     * @private\r\n     */Chart.Controller=Chart;/**\r\n     * Provided for backward compatibility, not available anymore.\r\n     * @namespace Chart\r\n     * @deprecated since version 2.8\r\n     * @todo remove at version 3\r\n     * @private\r\n     */Chart.types={};/**\r\n     * Provided for backward compatibility, not available anymore.\r\n     * @namespace Chart.helpers.configMerge\r\n     * @deprecated since version 2.8.0\r\n     * @todo remove at version 3\r\n     * @private\r\n     */helpers$1.configMerge=mergeConfig;/**\r\n     * Provided for backward compatibility, not available anymore.\r\n     * @namespace Chart.helpers.scaleMerge\r\n     * @deprecated since version 2.8.0\r\n     * @todo remove at version 3\r\n     * @private\r\n     */helpers$1.scaleMerge=mergeScaleConfig;var core_helpers=function(){// -- Basic js utility methods\nhelpers$1.where=function(collection,filterCallback){if(helpers$1.isArray(collection)&&Array.prototype.filter){return collection.filter(filterCallback);}var filtered=[];helpers$1.each(collection,function(item){if(filterCallback(item)){filtered.push(item);}});return filtered;};helpers$1.findIndex=Array.prototype.findIndex?function(array,callback,scope){return array.findIndex(callback,scope);}:function(array,callback,scope){scope=scope===undefined?array:scope;for(var i=0,ilen=array.length;i<ilen;++i){if(callback.call(scope,array[i],i,array)){return i;}}return-1;};helpers$1.findNextWhere=function(arrayToSearch,filterCallback,startIndex){// Default to start of the array\nif(helpers$1.isNullOrUndef(startIndex)){startIndex=-1;}for(var i=startIndex+1;i<arrayToSearch.length;i++){var currentItem=arrayToSearch[i];if(filterCallback(currentItem)){return currentItem;}}};helpers$1.findPreviousWhere=function(arrayToSearch,filterCallback,startIndex){// Default to end of the array\nif(helpers$1.isNullOrUndef(startIndex)){startIndex=arrayToSearch.length;}for(var i=startIndex-1;i>=0;i--){var currentItem=arrayToSearch[i];if(filterCallback(currentItem)){return currentItem;}}};// -- Math methods\nhelpers$1.isNumber=function(n){return!isNaN(parseFloat(n))&&isFinite(n);};helpers$1.almostEquals=function(x,y,epsilon){return Math.abs(x-y)<epsilon;};helpers$1.almostWhole=function(x,epsilon){var rounded=Math.round(x);return rounded-epsilon<=x&&rounded+epsilon>=x;};helpers$1.max=function(array){return array.reduce(function(max,value){if(!isNaN(value)){return Math.max(max,value);}return max;},Number.NEGATIVE_INFINITY);};helpers$1.min=function(array){return array.reduce(function(min,value){if(!isNaN(value)){return Math.min(min,value);}return min;},Number.POSITIVE_INFINITY);};helpers$1.sign=Math.sign?function(x){return Math.sign(x);}:function(x){x=+x;// convert to a number\nif(x===0||isNaN(x)){return x;}return x>0?1:-1;};helpers$1.toRadians=function(degrees){return degrees*(Math.PI/180);};helpers$1.toDegrees=function(radians){return radians*(180/Math.PI);};/**\r\n         * Returns the number of decimal places\r\n         * i.e. the number of digits after the decimal point, of the value of this Number.\r\n         * @param {number} x - A number.\r\n         * @returns {number} The number of decimal places.\r\n         * @private\r\n         */helpers$1._decimalPlaces=function(x){if(!helpers$1.isFinite(x)){return;}var e=1;var p=0;while(Math.round(x*e)/e!==x){e*=10;p++;}return p;};// Gets the angle from vertical upright to the point about a centre.\nhelpers$1.getAngleFromPoint=function(centrePoint,anglePoint){var distanceFromXCenter=anglePoint.x-centrePoint.x;var distanceFromYCenter=anglePoint.y-centrePoint.y;var radialDistanceFromCenter=Math.sqrt(distanceFromXCenter*distanceFromXCenter+distanceFromYCenter*distanceFromYCenter);var angle=Math.atan2(distanceFromYCenter,distanceFromXCenter);if(angle<-0.5*Math.PI){angle+=2.0*Math.PI;// make sure the returned angle is in the range of (-PI/2, 3PI/2]\n}return{angle:angle,distance:radialDistanceFromCenter};};helpers$1.distanceBetweenPoints=function(pt1,pt2){return Math.sqrt(Math.pow(pt2.x-pt1.x,2)+Math.pow(pt2.y-pt1.y,2));};/**\r\n         * Provided for backward compatibility, not available anymore\r\n         * @function Chart.helpers.aliasPixel\r\n         * @deprecated since version 2.8.0\r\n         * @todo remove at version 3\r\n         */helpers$1.aliasPixel=function(pixelWidth){return pixelWidth%2===0?0:0.5;};/**\r\n         * Returns the aligned pixel value to avoid anti-aliasing blur\r\n         * @param {Chart} chart - The chart instance.\r\n         * @param {number} pixel - A pixel value.\r\n         * @param {number} width - The width of the element.\r\n         * @returns {number} The aligned pixel value.\r\n         * @private\r\n         */helpers$1._alignPixel=function(chart,pixel,width){var devicePixelRatio=chart.currentDevicePixelRatio;var halfWidth=width/2;return Math.round((pixel-halfWidth)*devicePixelRatio)/devicePixelRatio+halfWidth;};helpers$1.splineCurve=function(firstPoint,middlePoint,afterPoint,t){// Props to Rob Spencer at scaled innovation for his post on splining between points\n// http://scaledinnovation.com/analytics/splines/aboutSplines.html\n// This function must also respect \"skipped\" points\nvar previous=firstPoint.skip?middlePoint:firstPoint;var current=middlePoint;var next=afterPoint.skip?middlePoint:afterPoint;var d01=Math.sqrt(Math.pow(current.x-previous.x,2)+Math.pow(current.y-previous.y,2));var d12=Math.sqrt(Math.pow(next.x-current.x,2)+Math.pow(next.y-current.y,2));var s01=d01/(d01+d12);var s12=d12/(d01+d12);// If all points are the same, s01 & s02 will be inf\ns01=isNaN(s01)?0:s01;s12=isNaN(s12)?0:s12;var fa=t*s01;// scaling factor for triangle Ta\nvar fb=t*s12;return{previous:{x:current.x-fa*(next.x-previous.x),y:current.y-fa*(next.y-previous.y)},next:{x:current.x+fb*(next.x-previous.x),y:current.y+fb*(next.y-previous.y)}};};helpers$1.EPSILON=Number.EPSILON||1e-14;helpers$1.splineCurveMonotone=function(points){// This function calculates Bézier control points in a similar way than |splineCurve|,\n// but preserves monotonicity of the provided data and ensures no local extremums are added\n// between the dataset discrete points due to the interpolation.\n// See : https://en.wikipedia.org/wiki/Monotone_cubic_interpolation\nvar pointsWithTangents=(points||[]).map(function(point){return{model:point._model,deltaK:0,mK:0};});// Calculate slopes (deltaK) and initialize tangents (mK)\nvar pointsLen=pointsWithTangents.length;var i,pointBefore,pointCurrent,pointAfter;for(i=0;i<pointsLen;++i){pointCurrent=pointsWithTangents[i];if(pointCurrent.model.skip){continue;}pointBefore=i>0?pointsWithTangents[i-1]:null;pointAfter=i<pointsLen-1?pointsWithTangents[i+1]:null;if(pointAfter&&!pointAfter.model.skip){var slopeDeltaX=pointAfter.model.x-pointCurrent.model.x;// In the case of two points that appear at the same x pixel, slopeDeltaX is 0\npointCurrent.deltaK=slopeDeltaX!==0?(pointAfter.model.y-pointCurrent.model.y)/slopeDeltaX:0;}if(!pointBefore||pointBefore.model.skip){pointCurrent.mK=pointCurrent.deltaK;}else if(!pointAfter||pointAfter.model.skip){pointCurrent.mK=pointBefore.deltaK;}else if(this.sign(pointBefore.deltaK)!==this.sign(pointCurrent.deltaK)){pointCurrent.mK=0;}else{pointCurrent.mK=(pointBefore.deltaK+pointCurrent.deltaK)/2;}}// Adjust tangents to ensure monotonic properties\nvar alphaK,betaK,tauK,squaredMagnitude;for(i=0;i<pointsLen-1;++i){pointCurrent=pointsWithTangents[i];pointAfter=pointsWithTangents[i+1];if(pointCurrent.model.skip||pointAfter.model.skip){continue;}if(helpers$1.almostEquals(pointCurrent.deltaK,0,this.EPSILON)){pointCurrent.mK=pointAfter.mK=0;continue;}alphaK=pointCurrent.mK/pointCurrent.deltaK;betaK=pointAfter.mK/pointCurrent.deltaK;squaredMagnitude=Math.pow(alphaK,2)+Math.pow(betaK,2);if(squaredMagnitude<=9){continue;}tauK=3/Math.sqrt(squaredMagnitude);pointCurrent.mK=alphaK*tauK*pointCurrent.deltaK;pointAfter.mK=betaK*tauK*pointCurrent.deltaK;}// Compute control points\nvar deltaX;for(i=0;i<pointsLen;++i){pointCurrent=pointsWithTangents[i];if(pointCurrent.model.skip){continue;}pointBefore=i>0?pointsWithTangents[i-1]:null;pointAfter=i<pointsLen-1?pointsWithTangents[i+1]:null;if(pointBefore&&!pointBefore.model.skip){deltaX=(pointCurrent.model.x-pointBefore.model.x)/3;pointCurrent.model.controlPointPreviousX=pointCurrent.model.x-deltaX;pointCurrent.model.controlPointPreviousY=pointCurrent.model.y-deltaX*pointCurrent.mK;}if(pointAfter&&!pointAfter.model.skip){deltaX=(pointAfter.model.x-pointCurrent.model.x)/3;pointCurrent.model.controlPointNextX=pointCurrent.model.x+deltaX;pointCurrent.model.controlPointNextY=pointCurrent.model.y+deltaX*pointCurrent.mK;}}};helpers$1.nextItem=function(collection,index,loop){if(loop){return index>=collection.length-1?collection[0]:collection[index+1];}return index>=collection.length-1?collection[collection.length-1]:collection[index+1];};helpers$1.previousItem=function(collection,index,loop){if(loop){return index<=0?collection[collection.length-1]:collection[index-1];}return index<=0?collection[0]:collection[index-1];};// Implementation of the nice number algorithm used in determining where axis labels will go\nhelpers$1.niceNum=function(range,round){var exponent=Math.floor(helpers$1.log10(range));var fraction=range/Math.pow(10,exponent);var niceFraction;if(round){if(fraction<1.5){niceFraction=1;}else if(fraction<3){niceFraction=2;}else if(fraction<7){niceFraction=5;}else{niceFraction=10;}}else if(fraction<=1.0){niceFraction=1;}else if(fraction<=2){niceFraction=2;}else if(fraction<=5){niceFraction=5;}else{niceFraction=10;}return niceFraction*Math.pow(10,exponent);};// Request animation polyfill - https://www.paulirish.com/2011/requestanimationframe-for-smart-animating/\nhelpers$1.requestAnimFrame=function(){if(typeof window==='undefined'){return function(callback){callback();};}return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){return window.setTimeout(callback,1000/60);};}();// -- DOM methods\nhelpers$1.getRelativePosition=function(evt,chart){var mouseX,mouseY;var e=evt.originalEvent||evt;var canvas=evt.target||evt.srcElement;var boundingRect=canvas.getBoundingClientRect();var touches=e.touches;if(touches&&touches.length>0){mouseX=touches[0].clientX;mouseY=touches[0].clientY;}else{mouseX=e.clientX;mouseY=e.clientY;}// Scale mouse coordinates into canvas coordinates\n// by following the pattern laid out by 'jerryj' in the comments of\n// https://www.html5canvastutorials.com/advanced/html5-canvas-mouse-coordinates/\nvar paddingLeft=parseFloat(helpers$1.getStyle(canvas,'padding-left'));var paddingTop=parseFloat(helpers$1.getStyle(canvas,'padding-top'));var paddingRight=parseFloat(helpers$1.getStyle(canvas,'padding-right'));var paddingBottom=parseFloat(helpers$1.getStyle(canvas,'padding-bottom'));var width=boundingRect.right-boundingRect.left-paddingLeft-paddingRight;var height=boundingRect.bottom-boundingRect.top-paddingTop-paddingBottom;// We divide by the current device pixel ratio, because the canvas is scaled up by that amount in each direction. However\n// the backend model is in unscaled coordinates. Since we are going to deal with our model coordinates, we go back here\nmouseX=Math.round((mouseX-boundingRect.left-paddingLeft)/width*canvas.width/chart.currentDevicePixelRatio);mouseY=Math.round((mouseY-boundingRect.top-paddingTop)/height*canvas.height/chart.currentDevicePixelRatio);return{x:mouseX,y:mouseY};};// Private helper function to convert max-width/max-height values that may be percentages into a number\nfunction parseMaxStyle(styleValue,node,parentProperty){var valueInPixels;if(typeof styleValue==='string'){valueInPixels=parseInt(styleValue,10);if(styleValue.indexOf('%')!==-1){// percentage * size in dimension\nvalueInPixels=valueInPixels/100*node.parentNode[parentProperty];}}else{valueInPixels=styleValue;}return valueInPixels;}/**\r\n         * Returns if the given value contains an effective constraint.\r\n         * @private\r\n         */function isConstrainedValue(value){return value!==undefined&&value!==null&&value!=='none';}/**\r\n         * Returns the max width or height of the given DOM node in a cross-browser compatible fashion\r\n         * @param {HTMLElement} domNode - the node to check the constraint on\r\n         * @param {string} maxStyle - the style that defines the maximum for the direction we are using ('max-width' / 'max-height')\r\n         * @param {string} percentageProperty - property of parent to use when calculating width as a percentage\r\n         * @see {@link https://www.nathanaeljones.com/blog/2013/reading-max-width-cross-browser}\r\n         */function getConstraintDimension(domNode,maxStyle,percentageProperty){var view=document.defaultView;var parentNode=helpers$1._getParentNode(domNode);var constrainedNode=view.getComputedStyle(domNode)[maxStyle];var constrainedContainer=view.getComputedStyle(parentNode)[maxStyle];var hasCNode=isConstrainedValue(constrainedNode);var hasCContainer=isConstrainedValue(constrainedContainer);var infinity=Number.POSITIVE_INFINITY;if(hasCNode||hasCContainer){return Math.min(hasCNode?parseMaxStyle(constrainedNode,domNode,percentageProperty):infinity,hasCContainer?parseMaxStyle(constrainedContainer,parentNode,percentageProperty):infinity);}return'none';}// returns Number or undefined if no constraint\nhelpers$1.getConstraintWidth=function(domNode){return getConstraintDimension(domNode,'max-width','clientWidth');};// returns Number or undefined if no constraint\nhelpers$1.getConstraintHeight=function(domNode){return getConstraintDimension(domNode,'max-height','clientHeight');};/**\r\n         * @private\r\n          */helpers$1._calculatePadding=function(container,padding,parentDimension){padding=helpers$1.getStyle(container,padding);return padding.indexOf('%')>-1?parentDimension*parseInt(padding,10)/100:parseInt(padding,10);};/**\r\n         * @private\r\n         */helpers$1._getParentNode=function(domNode){var parent=domNode.parentNode;if(parent&&parent.toString()==='[object ShadowRoot]'){parent=parent.host;}return parent;};helpers$1.getMaximumWidth=function(domNode){var container=helpers$1._getParentNode(domNode);if(!container){return domNode.clientWidth;}var clientWidth=container.clientWidth;var paddingLeft=helpers$1._calculatePadding(container,'padding-left',clientWidth);var paddingRight=helpers$1._calculatePadding(container,'padding-right',clientWidth);var w=clientWidth-paddingLeft-paddingRight;var cw=helpers$1.getConstraintWidth(domNode);return isNaN(cw)?w:Math.min(w,cw);};helpers$1.getMaximumHeight=function(domNode){var container=helpers$1._getParentNode(domNode);if(!container){return domNode.clientHeight;}var clientHeight=container.clientHeight;var paddingTop=helpers$1._calculatePadding(container,'padding-top',clientHeight);var paddingBottom=helpers$1._calculatePadding(container,'padding-bottom',clientHeight);var h=clientHeight-paddingTop-paddingBottom;var ch=helpers$1.getConstraintHeight(domNode);return isNaN(ch)?h:Math.min(h,ch);};helpers$1.getStyle=function(el,property){return el.currentStyle?el.currentStyle[property]:document.defaultView.getComputedStyle(el,null).getPropertyValue(property);};helpers$1.retinaScale=function(chart,forceRatio){var pixelRatio=chart.currentDevicePixelRatio=forceRatio||typeof window!=='undefined'&&window.devicePixelRatio||1;if(pixelRatio===1){return;}var canvas=chart.canvas;var height=chart.height;var width=chart.width;canvas.height=height*pixelRatio;canvas.width=width*pixelRatio;chart.ctx.scale(pixelRatio,pixelRatio);// If no style has been set on the canvas, the render size is used as display size,\n// making the chart visually bigger, so let's enforce it to the \"correct\" values.\n// See https://github.com/chartjs/Chart.js/issues/3575\nif(!canvas.style.height&&!canvas.style.width){canvas.style.height=height+'px';canvas.style.width=width+'px';}};// -- Canvas methods\nhelpers$1.fontString=function(pixelSize,fontStyle,fontFamily){return fontStyle+' '+pixelSize+'px '+fontFamily;};helpers$1.longestText=function(ctx,font,arrayOfThings,cache){cache=cache||{};var data=cache.data=cache.data||{};var gc=cache.garbageCollect=cache.garbageCollect||[];if(cache.font!==font){data=cache.data={};gc=cache.garbageCollect=[];cache.font=font;}ctx.font=font;var longest=0;var ilen=arrayOfThings.length;var i,j,jlen,thing,nestedThing;for(i=0;i<ilen;i++){thing=arrayOfThings[i];// Undefined strings and arrays should not be measured\nif(thing!==undefined&&thing!==null&&helpers$1.isArray(thing)!==true){longest=helpers$1.measureText(ctx,data,gc,longest,thing);}else if(helpers$1.isArray(thing)){// if it is an array lets measure each element\n// to do maybe simplify this function a bit so we can do this more recursively?\nfor(j=0,jlen=thing.length;j<jlen;j++){nestedThing=thing[j];// Undefined strings and arrays should not be measured\nif(nestedThing!==undefined&&nestedThing!==null&&!helpers$1.isArray(nestedThing)){longest=helpers$1.measureText(ctx,data,gc,longest,nestedThing);}}}}var gcLen=gc.length/2;if(gcLen>arrayOfThings.length){for(i=0;i<gcLen;i++){delete data[gc[i]];}gc.splice(0,gcLen);}return longest;};helpers$1.measureText=function(ctx,data,gc,longest,string){var textWidth=data[string];if(!textWidth){textWidth=data[string]=ctx.measureText(string).width;gc.push(string);}if(textWidth>longest){longest=textWidth;}return longest;};/**\r\n         * @deprecated\r\n         */helpers$1.numberOfLabelLines=function(arrayOfThings){var numberOfLines=1;helpers$1.each(arrayOfThings,function(thing){if(helpers$1.isArray(thing)){if(thing.length>numberOfLines){numberOfLines=thing.length;}}});return numberOfLines;};helpers$1.color=!chartjsColor?function(value){console.error('Color.js not found!');return value;}:function(value){/* global CanvasGradient */if(value instanceof CanvasGradient){value=core_defaults.global.defaultColor;}return chartjsColor(value);};helpers$1.getHoverColor=function(colorValue){/* global CanvasPattern */return colorValue instanceof CanvasPattern||colorValue instanceof CanvasGradient?colorValue:helpers$1.color(colorValue).saturate(0.5).darken(0.1).rgbString();};};function abstract(){throw new Error('This method is not implemented: either no adapter can '+'be found or an incomplete integration was provided.');}/**\r\n     * Date adapter (current used by the time scale)\r\n     * @namespace Chart._adapters._date\r\n     * @memberof Chart._adapters\r\n     * @private\r\n     */ /**\r\n     * Currently supported unit string values.\r\n     * @typedef {('millisecond'|'second'|'minute'|'hour'|'day'|'week'|'month'|'quarter'|'year')}\r\n     * @memberof Chart._adapters._date\r\n     * @name Unit\r\n     */ /**\r\n     * @class\r\n     */function DateAdapter(options){this.options=options||{};}helpers$1.extend(DateAdapter.prototype,/** @lends DateAdapter */{/**\r\n         * Returns a map of time formats for the supported formatting units defined\r\n         * in Unit as well as 'datetime' representing a detailed date/time string.\r\n         * @returns {{string: string}}\r\n         */formats:abstract,/**\r\n         * Parses the given `value` and return the associated timestamp.\r\n         * @param {any} value - the value to parse (usually comes from the data)\r\n         * @param {string} [format] - the expected data format\r\n         * @returns {(number|null)}\r\n         * @function\r\n         */parse:abstract,/**\r\n         * Returns the formatted date in the specified `format` for a given `timestamp`.\r\n         * @param {number} timestamp - the timestamp to format\r\n         * @param {string} format - the date/time token\r\n         * @return {string}\r\n         * @function\r\n         */format:abstract,/**\r\n         * Adds the specified `amount` of `unit` to the given `timestamp`.\r\n         * @param {number} timestamp - the input timestamp\r\n         * @param {number} amount - the amount to add\r\n         * @param {Unit} unit - the unit as string\r\n         * @return {number}\r\n         * @function\r\n         */add:abstract,/**\r\n         * Returns the number of `unit` between the given timestamps.\r\n         * @param {number} max - the input timestamp (reference)\r\n         * @param {number} min - the timestamp to substract\r\n         * @param {Unit} unit - the unit as string\r\n         * @return {number}\r\n         * @function\r\n         */diff:abstract,/**\r\n         * Returns start of `unit` for the given `timestamp`.\r\n         * @param {number} timestamp - the input timestamp\r\n         * @param {Unit} unit - the unit as string\r\n         * @param {number} [weekday] - the ISO day of the week with 1 being Monday\r\n         * and 7 being Sunday (only needed if param *unit* is `isoWeek`).\r\n         * @function\r\n         */startOf:abstract,/**\r\n         * Returns end of `unit` for the given `timestamp`.\r\n         * @param {number} timestamp - the input timestamp\r\n         * @param {Unit} unit - the unit as string\r\n         * @function\r\n         */endOf:abstract,// DEPRECATIONS\n/**\r\n         * Provided for backward compatibility for scale.getValueForPixel(),\r\n         * this method should be overridden only by the moment adapter.\r\n         * @deprecated since version 2.8.0\r\n         * @todo remove at version 3\r\n         * @private\r\n         */_create:function(value){return value;}});DateAdapter.override=function(members){helpers$1.extend(DateAdapter.prototype,members);};var _date=DateAdapter;var core_adapters={_date:_date};/**\r\n     * Namespace to hold static tick generation functions\r\n     * @namespace Chart.Ticks\r\n     */var core_ticks={/**\r\n         * Namespace to hold formatters for different types of ticks\r\n         * @namespace Chart.Ticks.formatters\r\n         */formatters:{/**\r\n             * Formatter for value labels\r\n             * @method Chart.Ticks.formatters.values\r\n             * @param value the value to display\r\n             * @return {string|string[]} the label to display\r\n             */values:function(value){return helpers$1.isArray(value)?value:''+value;},/**\r\n             * Formatter for linear numeric ticks\r\n             * @method Chart.Ticks.formatters.linear\r\n             * @param tickValue {number} the value to be formatted\r\n             * @param index {number} the position of the tickValue parameter in the ticks array\r\n             * @param ticks {number[]} the list of ticks being converted\r\n             * @return {string} string representation of the tickValue parameter\r\n             */linear:function(tickValue,index,ticks){// If we have lots of ticks, don't use the ones\nvar delta=ticks.length>3?ticks[2]-ticks[1]:ticks[1]-ticks[0];// If we have a number like 2.5 as the delta, figure out how many decimal places we need\nif(Math.abs(delta)>1){if(tickValue!==Math.floor(tickValue)){// not an integer\ndelta=tickValue-Math.floor(tickValue);}}var logDelta=helpers$1.log10(Math.abs(delta));var tickString='';if(tickValue!==0){var maxTick=Math.max(Math.abs(ticks[0]),Math.abs(ticks[ticks.length-1]));if(maxTick<1e-4){// all ticks are small numbers; use scientific notation\nvar logTick=helpers$1.log10(Math.abs(tickValue));var numExponential=Math.floor(logTick)-Math.floor(logDelta);numExponential=Math.max(Math.min(numExponential,20),0);tickString=tickValue.toExponential(numExponential);}else{var numDecimal=-1*Math.floor(logDelta);numDecimal=Math.max(Math.min(numDecimal,20),0);// toFixed has a max of 20 decimal places\ntickString=tickValue.toFixed(numDecimal);}}else{tickString='0';// never show decimal places for 0\n}return tickString;},logarithmic:function(tickValue,index,ticks){var remain=tickValue/Math.pow(10,Math.floor(helpers$1.log10(tickValue)));if(tickValue===0){return'0';}else if(remain===1||remain===2||remain===5||index===0||index===ticks.length-1){return tickValue.toExponential();}return'';}}};var isArray=helpers$1.isArray;var isNullOrUndef=helpers$1.isNullOrUndef;var valueOrDefault$a=helpers$1.valueOrDefault;var valueAtIndexOrDefault=helpers$1.valueAtIndexOrDefault;core_defaults._set('scale',{display:true,position:'left',offset:false,// grid line settings\ngridLines:{display:true,color:'rgba(0,0,0,0.1)',lineWidth:1,drawBorder:true,drawOnChartArea:true,drawTicks:true,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:'rgba(0,0,0,0.25)',zeroLineBorderDash:[],zeroLineBorderDashOffset:0.0,offsetGridLines:false,borderDash:[],borderDashOffset:0.0},// scale label\nscaleLabel:{// display property\ndisplay:false,// actual label\nlabelString:'',// top/bottom padding\npadding:{top:4,bottom:4}},// label settings\nticks:{beginAtZero:false,minRotation:0,maxRotation:50,mirror:false,padding:0,reverse:false,display:true,autoSkip:true,autoSkipPadding:0,labelOffset:0,// We pass through arrays to be rendered as multiline labels, we convert Others to strings here.\ncallback:core_ticks.formatters.values,minor:{},major:{}}});/** Returns a new array containing numItems from arr */function sample(arr,numItems){var result=[];var increment=arr.length/numItems;var i=0;var len=arr.length;for(;i<len;i+=increment){result.push(arr[Math.floor(i)]);}return result;}function getPixelForGridLine(scale,index,offsetGridLines){var length=scale.getTicks().length;var validIndex=Math.min(index,length-1);var lineValue=scale.getPixelForTick(validIndex);var start=scale._startPixel;var end=scale._endPixel;var epsilon=1e-6;// 1e-6 is margin in pixels for accumulated error.\nvar offset;if(offsetGridLines){if(length===1){offset=Math.max(lineValue-start,end-lineValue);}else if(index===0){offset=(scale.getPixelForTick(1)-lineValue)/2;}else{offset=(lineValue-scale.getPixelForTick(validIndex-1))/2;}lineValue+=validIndex<index?offset:-offset;// Return undefined if the pixel is out of the range\nif(lineValue<start-epsilon||lineValue>end+epsilon){return;}}return lineValue;}function garbageCollect(caches,length){helpers$1.each(caches,function(cache){var gc=cache.gc;var gcLen=gc.length/2;var i;if(gcLen>length){for(i=0;i<gcLen;++i){delete cache.data[gc[i]];}gc.splice(0,gcLen);}});}/**\r\n     * Returns {width, height, offset} objects for the first, last, widest, highest tick\r\n     * labels where offset indicates the anchor point offset from the top in pixels.\r\n     */function computeLabelSizes(ctx,tickFonts,ticks,caches){var length=ticks.length;var widths=[];var heights=[];var offsets=[];var i,j,jlen,label,tickFont,fontString,cache,lineHeight,width,height,nestedLabel,widest,highest;for(i=0;i<length;++i){label=ticks[i].label;tickFont=ticks[i].major?tickFonts.major:tickFonts.minor;ctx.font=fontString=tickFont.string;cache=caches[fontString]=caches[fontString]||{data:{},gc:[]};lineHeight=tickFont.lineHeight;width=height=0;// Undefined labels and arrays should not be measured\nif(!isNullOrUndef(label)&&!isArray(label)){width=helpers$1.measureText(ctx,cache.data,cache.gc,width,label);height=lineHeight;}else if(isArray(label)){// if it is an array let's measure each element\nfor(j=0,jlen=label.length;j<jlen;++j){nestedLabel=label[j];// Undefined labels and arrays should not be measured\nif(!isNullOrUndef(nestedLabel)&&!isArray(nestedLabel)){width=helpers$1.measureText(ctx,cache.data,cache.gc,width,nestedLabel);height+=lineHeight;}}}widths.push(width);heights.push(height);offsets.push(lineHeight/2);}garbageCollect(caches,length);widest=widths.indexOf(Math.max.apply(null,widths));highest=heights.indexOf(Math.max.apply(null,heights));function valueAt(idx){return{width:widths[idx]||0,height:heights[idx]||0,offset:offsets[idx]||0};}return{first:valueAt(0),last:valueAt(length-1),widest:valueAt(widest),highest:valueAt(highest)};}function getTickMarkLength(options){return options.drawTicks?options.tickMarkLength:0;}function getScaleLabelHeight(options){var font,padding;if(!options.display){return 0;}font=helpers$1.options._parseFont(options);padding=helpers$1.options.toPadding(options.padding);return font.lineHeight+padding.height;}function parseFontOptions(options,nestedOpts){return helpers$1.extend(helpers$1.options._parseFont({fontFamily:valueOrDefault$a(nestedOpts.fontFamily,options.fontFamily),fontSize:valueOrDefault$a(nestedOpts.fontSize,options.fontSize),fontStyle:valueOrDefault$a(nestedOpts.fontStyle,options.fontStyle),lineHeight:valueOrDefault$a(nestedOpts.lineHeight,options.lineHeight)}),{color:helpers$1.options.resolve([nestedOpts.fontColor,options.fontColor,core_defaults.global.defaultFontColor])});}function parseTickFontOptions(options){var minor=parseFontOptions(options,options.minor);var major=options.major.enabled?parseFontOptions(options,options.major):minor;return{minor:minor,major:major};}function nonSkipped(ticksToFilter){var filtered=[];var item,index,len;for(index=0,len=ticksToFilter.length;index<len;++index){item=ticksToFilter[index];if(typeof item._index!=='undefined'){filtered.push(item);}}return filtered;}function getEvenSpacing(arr){var len=arr.length;var i,diff;if(len<2){return false;}for(diff=arr[0],i=1;i<len;++i){if(arr[i]-arr[i-1]!==diff){return false;}}return diff;}function calculateSpacing(majorIndices,ticks,axisLength,ticksLimit){var evenMajorSpacing=getEvenSpacing(majorIndices);var spacing=(ticks.length-1)/ticksLimit;var factors,factor,i,ilen;// If the major ticks are evenly spaced apart, place the minor ticks\n// so that they divide the major ticks into even chunks\nif(!evenMajorSpacing){return Math.max(spacing,1);}factors=helpers$1.math._factorize(evenMajorSpacing);for(i=0,ilen=factors.length-1;i<ilen;i++){factor=factors[i];if(factor>spacing){return factor;}}return Math.max(spacing,1);}function getMajorIndices(ticks){var result=[];var i,ilen;for(i=0,ilen=ticks.length;i<ilen;i++){if(ticks[i].major){result.push(i);}}return result;}function skipMajors(ticks,majorIndices,spacing){var count=0;var next=majorIndices[0];var i,tick;spacing=Math.ceil(spacing);for(i=0;i<ticks.length;i++){tick=ticks[i];if(i===next){tick._index=i;count++;next=majorIndices[count*spacing];}else{delete tick.label;}}}function skip(ticks,spacing,majorStart,majorEnd){var start=valueOrDefault$a(majorStart,0);var end=Math.min(valueOrDefault$a(majorEnd,ticks.length),ticks.length);var count=0;var length,i,tick,next;spacing=Math.ceil(spacing);if(majorEnd){length=majorEnd-majorStart;spacing=length/Math.floor(length/spacing);}next=start;while(next<0){count++;next=Math.round(start+count*spacing);}for(i=Math.max(start,0);i<end;i++){tick=ticks[i];if(i===next){tick._index=i;count++;next=Math.round(start+count*spacing);}else{delete tick.label;}}}var Scale=core_element.extend({zeroLineIndex:0,/**\r\n         * Get the padding needed for the scale\r\n         * @method getPadding\r\n         * @private\r\n         * @returns {Padding} the necessary padding\r\n         */getPadding:function(){var me=this;return{left:me.paddingLeft||0,top:me.paddingTop||0,right:me.paddingRight||0,bottom:me.paddingBottom||0};},/**\r\n         * Returns the scale tick objects ({label, major})\r\n         * @since 2.7\r\n         */getTicks:function(){return this._ticks;},/**\r\n        * @private\r\n        */_getLabels:function(){var data=this.chart.data;return this.options.labels||(this.isHorizontal()?data.xLabels:data.yLabels)||data.labels||[];},// These methods are ordered by lifecyle. Utilities then follow.\n// Any function defined here is inherited by all scale types.\n// Any function can be extended by the scale type\n/**\r\n         * Provided for backward compatibility, not available anymore\r\n         * @function Chart.Scale.mergeTicksOptions\r\n         * @deprecated since version 2.8.0\r\n         * @todo remove at version 3\r\n         */mergeTicksOptions:function(){// noop\n},beforeUpdate:function(){helpers$1.callback(this.options.beforeUpdate,[this]);},/**\r\n         * @param {number} maxWidth - the max width in pixels\r\n         * @param {number} maxHeight - the max height in pixels\r\n         * @param {object} margins - the space between the edge of the other scales and edge of the chart\r\n         *   This space comes from two sources:\r\n         *     - padding - space that's required to show the labels at the edges of the scale\r\n         *     - thickness of scales or legends in another orientation\r\n         */update:function(maxWidth,maxHeight,margins){var me=this;var tickOpts=me.options.ticks;var sampleSize=tickOpts.sampleSize;var i,ilen,labels,ticks,samplingEnabled;// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)\nme.beforeUpdate();// Absorb the master measurements\nme.maxWidth=maxWidth;me.maxHeight=maxHeight;me.margins=helpers$1.extend({left:0,right:0,top:0,bottom:0},margins);me._ticks=null;me.ticks=null;me._labelSizes=null;me._maxLabelLines=0;me.longestLabelWidth=0;me.longestTextCache=me.longestTextCache||{};me._gridLineItems=null;me._labelItems=null;// Dimensions\nme.beforeSetDimensions();me.setDimensions();me.afterSetDimensions();// Data min/max\nme.beforeDataLimits();me.determineDataLimits();me.afterDataLimits();// Ticks - `this.ticks` is now DEPRECATED!\n// Internal ticks are now stored as objects in the PRIVATE `this._ticks` member\n// and must not be accessed directly from outside this class. `this.ticks` being\n// around for long time and not marked as private, we can't change its structure\n// without unexpected breaking changes. If you need to access the scale ticks,\n// use scale.getTicks() instead.\nme.beforeBuildTicks();// New implementations should return an array of objects but for BACKWARD COMPAT,\n// we still support no return (`this.ticks` internally set by calling this method).\nticks=me.buildTicks()||[];// Allow modification of ticks in callback.\nticks=me.afterBuildTicks(ticks)||ticks;// Ensure ticks contains ticks in new tick format\nif((!ticks||!ticks.length)&&me.ticks){ticks=[];for(i=0,ilen=me.ticks.length;i<ilen;++i){ticks.push({value:me.ticks[i],major:false});}}me._ticks=ticks;// Compute tick rotation and fit using a sampled subset of labels\n// We generally don't need to compute the size of every single label for determining scale size\nsamplingEnabled=sampleSize<ticks.length;labels=me._convertTicksToLabels(samplingEnabled?sample(ticks,sampleSize):ticks);// _configure is called twice, once here, once from core.controller.updateLayout.\n// Here we haven't been positioned yet, but dimensions are correct.\n// Variables set in _configure are needed for calculateTickRotation, and\n// it's ok that coordinates are not correct there, only dimensions matter.\nme._configure();// Tick Rotation\nme.beforeCalculateTickRotation();me.calculateTickRotation();me.afterCalculateTickRotation();me.beforeFit();me.fit();me.afterFit();// Auto-skip\nme._ticksToDraw=tickOpts.display&&(tickOpts.autoSkip||tickOpts.source==='auto')?me._autoSkip(ticks):ticks;if(samplingEnabled){// Generate labels using all non-skipped ticks\nlabels=me._convertTicksToLabels(me._ticksToDraw);}me.ticks=labels;// BACKWARD COMPATIBILITY\n// IMPORTANT: after this point, we consider that `this.ticks` will NEVER change!\nme.afterUpdate();// TODO(v3): remove minSize as a public property and return value from all layout boxes. It is unused\n// make maxWidth and maxHeight private\nreturn me.minSize;},/**\r\n         * @private\r\n         */_configure:function(){var me=this;var reversePixels=me.options.ticks.reverse;var startPixel,endPixel;if(me.isHorizontal()){startPixel=me.left;endPixel=me.right;}else{startPixel=me.top;endPixel=me.bottom;// by default vertical scales are from bottom to top, so pixels are reversed\nreversePixels=!reversePixels;}me._startPixel=startPixel;me._endPixel=endPixel;me._reversePixels=reversePixels;me._length=endPixel-startPixel;},afterUpdate:function(){helpers$1.callback(this.options.afterUpdate,[this]);},//\nbeforeSetDimensions:function(){helpers$1.callback(this.options.beforeSetDimensions,[this]);},setDimensions:function(){var me=this;// Set the unconstrained dimension before label rotation\nif(me.isHorizontal()){// Reset position before calculating rotation\nme.width=me.maxWidth;me.left=0;me.right=me.width;}else{me.height=me.maxHeight;// Reset position before calculating rotation\nme.top=0;me.bottom=me.height;}// Reset padding\nme.paddingLeft=0;me.paddingTop=0;me.paddingRight=0;me.paddingBottom=0;},afterSetDimensions:function(){helpers$1.callback(this.options.afterSetDimensions,[this]);},// Data limits\nbeforeDataLimits:function(){helpers$1.callback(this.options.beforeDataLimits,[this]);},determineDataLimits:helpers$1.noop,afterDataLimits:function(){helpers$1.callback(this.options.afterDataLimits,[this]);},//\nbeforeBuildTicks:function(){helpers$1.callback(this.options.beforeBuildTicks,[this]);},buildTicks:helpers$1.noop,afterBuildTicks:function(ticks){var me=this;// ticks is empty for old axis implementations here\nif(isArray(ticks)&&ticks.length){return helpers$1.callback(me.options.afterBuildTicks,[me,ticks]);}// Support old implementations (that modified `this.ticks` directly in buildTicks)\nme.ticks=helpers$1.callback(me.options.afterBuildTicks,[me,me.ticks])||me.ticks;return ticks;},beforeTickToLabelConversion:function(){helpers$1.callback(this.options.beforeTickToLabelConversion,[this]);},convertTicksToLabels:function(){var me=this;// Convert ticks to strings\nvar tickOpts=me.options.ticks;me.ticks=me.ticks.map(tickOpts.userCallback||tickOpts.callback,this);},afterTickToLabelConversion:function(){helpers$1.callback(this.options.afterTickToLabelConversion,[this]);},//\nbeforeCalculateTickRotation:function(){helpers$1.callback(this.options.beforeCalculateTickRotation,[this]);},calculateTickRotation:function(){var me=this;var options=me.options;var tickOpts=options.ticks;var numTicks=me.getTicks().length;var minRotation=tickOpts.minRotation||0;var maxRotation=tickOpts.maxRotation;var labelRotation=minRotation;var labelSizes,maxLabelWidth,maxLabelHeight,maxWidth,tickWidth,maxHeight,maxLabelDiagonal;if(!me._isVisible()||!tickOpts.display||minRotation>=maxRotation||numTicks<=1||!me.isHorizontal()){me.labelRotation=minRotation;return;}labelSizes=me._getLabelSizes();maxLabelWidth=labelSizes.widest.width;maxLabelHeight=labelSizes.highest.height-labelSizes.highest.offset;// Estimate the width of each grid based on the canvas width, the maximum\n// label width and the number of tick intervals\nmaxWidth=Math.min(me.maxWidth,me.chart.width-maxLabelWidth);tickWidth=options.offset?me.maxWidth/numTicks:maxWidth/(numTicks-1);// Allow 3 pixels x2 padding either side for label readability\nif(maxLabelWidth+6>tickWidth){tickWidth=maxWidth/(numTicks-(options.offset?0.5:1));maxHeight=me.maxHeight-getTickMarkLength(options.gridLines)-tickOpts.padding-getScaleLabelHeight(options.scaleLabel);maxLabelDiagonal=Math.sqrt(maxLabelWidth*maxLabelWidth+maxLabelHeight*maxLabelHeight);labelRotation=helpers$1.toDegrees(Math.min(Math.asin(Math.min((labelSizes.highest.height+6)/tickWidth,1)),Math.asin(Math.min(maxHeight/maxLabelDiagonal,1))-Math.asin(maxLabelHeight/maxLabelDiagonal)));labelRotation=Math.max(minRotation,Math.min(maxRotation,labelRotation));}me.labelRotation=labelRotation;},afterCalculateTickRotation:function(){helpers$1.callback(this.options.afterCalculateTickRotation,[this]);},//\nbeforeFit:function(){helpers$1.callback(this.options.beforeFit,[this]);},fit:function(){var me=this;// Reset\nvar minSize=me.minSize={width:0,height:0};var chart=me.chart;var opts=me.options;var tickOpts=opts.ticks;var scaleLabelOpts=opts.scaleLabel;var gridLineOpts=opts.gridLines;var display=me._isVisible();var isBottom=opts.position==='bottom';var isHorizontal=me.isHorizontal();// Width\nif(isHorizontal){minSize.width=me.maxWidth;}else if(display){minSize.width=getTickMarkLength(gridLineOpts)+getScaleLabelHeight(scaleLabelOpts);}// height\nif(!isHorizontal){minSize.height=me.maxHeight;// fill all the height\n}else if(display){minSize.height=getTickMarkLength(gridLineOpts)+getScaleLabelHeight(scaleLabelOpts);}// Don't bother fitting the ticks if we are not showing the labels\nif(tickOpts.display&&display){var tickFonts=parseTickFontOptions(tickOpts);var labelSizes=me._getLabelSizes();var firstLabelSize=labelSizes.first;var lastLabelSize=labelSizes.last;var widestLabelSize=labelSizes.widest;var highestLabelSize=labelSizes.highest;var lineSpace=tickFonts.minor.lineHeight*0.4;var tickPadding=tickOpts.padding;if(isHorizontal){// A horizontal axis is more constrained by the height.\nvar isRotated=me.labelRotation!==0;var angleRadians=helpers$1.toRadians(me.labelRotation);var cosRotation=Math.cos(angleRadians);var sinRotation=Math.sin(angleRadians);var labelHeight=sinRotation*widestLabelSize.width+cosRotation*(highestLabelSize.height-(isRotated?highestLabelSize.offset:0))+(isRotated?0:lineSpace);// padding\nminSize.height=Math.min(me.maxHeight,minSize.height+labelHeight+tickPadding);var offsetLeft=me.getPixelForTick(0)-me.left;var offsetRight=me.right-me.getPixelForTick(me.getTicks().length-1);var paddingLeft,paddingRight;// Ensure that our ticks are always inside the canvas. When rotated, ticks are right aligned\n// which means that the right padding is dominated by the font height\nif(isRotated){paddingLeft=isBottom?cosRotation*firstLabelSize.width+sinRotation*firstLabelSize.offset:sinRotation*(firstLabelSize.height-firstLabelSize.offset);paddingRight=isBottom?sinRotation*(lastLabelSize.height-lastLabelSize.offset):cosRotation*lastLabelSize.width+sinRotation*lastLabelSize.offset;}else{paddingLeft=firstLabelSize.width/2;paddingRight=lastLabelSize.width/2;}// Adjust padding taking into account changes in offsets\n// and add 3 px to move away from canvas edges\nme.paddingLeft=Math.max((paddingLeft-offsetLeft)*me.width/(me.width-offsetLeft),0)+3;me.paddingRight=Math.max((paddingRight-offsetRight)*me.width/(me.width-offsetRight),0)+3;}else{// A vertical axis is more constrained by the width. Labels are the\n// dominant factor here, so get that length first and account for padding\nvar labelWidth=tickOpts.mirror?0:// use lineSpace for consistency with horizontal axis\n// tickPadding is not implemented for horizontal\nwidestLabelSize.width+tickPadding+lineSpace;minSize.width=Math.min(me.maxWidth,minSize.width+labelWidth);me.paddingTop=firstLabelSize.height/2;me.paddingBottom=lastLabelSize.height/2;}}me.handleMargins();if(isHorizontal){me.width=me._length=chart.width-me.margins.left-me.margins.right;me.height=minSize.height;}else{me.width=minSize.width;me.height=me._length=chart.height-me.margins.top-me.margins.bottom;}},/**\r\n         * Handle margins and padding interactions\r\n         * @private\r\n         */handleMargins:function(){var me=this;if(me.margins){me.margins.left=Math.max(me.paddingLeft,me.margins.left);me.margins.top=Math.max(me.paddingTop,me.margins.top);me.margins.right=Math.max(me.paddingRight,me.margins.right);me.margins.bottom=Math.max(me.paddingBottom,me.margins.bottom);}},afterFit:function(){helpers$1.callback(this.options.afterFit,[this]);},// Shared Methods\nisHorizontal:function(){var pos=this.options.position;return pos==='top'||pos==='bottom';},isFullWidth:function(){return this.options.fullWidth;},// Get the correct value. NaN bad inputs, If the value type is object get the x or y based on whether we are horizontal or not\ngetRightValue:function(rawValue){// Null and undefined values first\nif(isNullOrUndef(rawValue)){return NaN;}// isNaN(object) returns true, so make sure NaN is checking for a number; Discard Infinite values\nif((typeof rawValue==='number'||rawValue instanceof Number)&&!isFinite(rawValue)){return NaN;}// If it is in fact an object, dive in one more level\nif(rawValue){if(this.isHorizontal()){if(rawValue.x!==undefined){return this.getRightValue(rawValue.x);}}else if(rawValue.y!==undefined){return this.getRightValue(rawValue.y);}}// Value is good, return it\nreturn rawValue;},_convertTicksToLabels:function(ticks){var me=this;var labels,i,ilen;me.ticks=ticks.map(function(tick){return tick.value;});me.beforeTickToLabelConversion();// New implementations should return the formatted tick labels but for BACKWARD\n// COMPAT, we still support no return (`this.ticks` internally changed by calling\n// this method and supposed to contain only string values).\nlabels=me.convertTicksToLabels(ticks)||me.ticks;me.afterTickToLabelConversion();// BACKWARD COMPAT: synchronize `_ticks` with labels (so potentially `this.ticks`)\nfor(i=0,ilen=ticks.length;i<ilen;++i){ticks[i].label=labels[i];}return labels;},/**\r\n         * @private\r\n         */_getLabelSizes:function(){var me=this;var labelSizes=me._labelSizes;if(!labelSizes){me._labelSizes=labelSizes=computeLabelSizes(me.ctx,parseTickFontOptions(me.options.ticks),me.getTicks(),me.longestTextCache);me.longestLabelWidth=labelSizes.widest.width;}return labelSizes;},/**\r\n         * @private\r\n         */_parseValue:function(value){var start,end,min,max;if(isArray(value)){start=+this.getRightValue(value[0]);end=+this.getRightValue(value[1]);min=Math.min(start,end);max=Math.max(start,end);}else{value=+this.getRightValue(value);start=undefined;end=value;min=value;max=value;}return{min:min,max:max,start:start,end:end};},/**\r\n        * @private\r\n        */_getScaleLabel:function(rawValue){var v=this._parseValue(rawValue);if(v.start!==undefined){return'['+v.start+', '+v.end+']';}return+this.getRightValue(rawValue);},/**\r\n         * Used to get the value to display in the tooltip for the data at the given index\r\n         * @param index\r\n         * @param datasetIndex\r\n         */getLabelForIndex:helpers$1.noop,/**\r\n         * Returns the location of the given data point. Value can either be an index or a numerical value\r\n         * The coordinate (0, 0) is at the upper-left corner of the canvas\r\n         * @param value\r\n         * @param index\r\n         * @param datasetIndex\r\n         */getPixelForValue:helpers$1.noop,/**\r\n         * Used to get the data value from a given pixel. This is the inverse of getPixelForValue\r\n         * The coordinate (0, 0) is at the upper-left corner of the canvas\r\n         * @param pixel\r\n         */getValueForPixel:helpers$1.noop,/**\r\n         * Returns the location of the tick at the given index\r\n         * The coordinate (0, 0) is at the upper-left corner of the canvas\r\n         */getPixelForTick:function(index){var me=this;var offset=me.options.offset;var numTicks=me._ticks.length;var tickWidth=1/Math.max(numTicks-(offset?0:1),1);return index<0||index>numTicks-1?null:me.getPixelForDecimal(index*tickWidth+(offset?tickWidth/2:0));},/**\r\n         * Utility for getting the pixel location of a percentage of scale\r\n         * The coordinate (0, 0) is at the upper-left corner of the canvas\r\n         */getPixelForDecimal:function(decimal){var me=this;if(me._reversePixels){decimal=1-decimal;}return me._startPixel+decimal*me._length;},getDecimalForPixel:function(pixel){var decimal=(pixel-this._startPixel)/this._length;return this._reversePixels?1-decimal:decimal;},/**\r\n         * Returns the pixel for the minimum chart value\r\n         * The coordinate (0, 0) is at the upper-left corner of the canvas\r\n         */getBasePixel:function(){return this.getPixelForValue(this.getBaseValue());},getBaseValue:function(){var me=this;var min=me.min;var max=me.max;return me.beginAtZero?0:min<0&&max<0?max:min>0&&max>0?min:0;},/**\r\n         * Returns a subset of ticks to be plotted to avoid overlapping labels.\r\n         * @private\r\n         */_autoSkip:function(ticks){var me=this;var tickOpts=me.options.ticks;var axisLength=me._length;var ticksLimit=tickOpts.maxTicksLimit||axisLength/me._tickSize()+1;var majorIndices=tickOpts.major.enabled?getMajorIndices(ticks):[];var numMajorIndices=majorIndices.length;var first=majorIndices[0];var last=majorIndices[numMajorIndices-1];var i,ilen,spacing,avgMajorSpacing;// If there are too many major ticks to display them all\nif(numMajorIndices>ticksLimit){skipMajors(ticks,majorIndices,numMajorIndices/ticksLimit);return nonSkipped(ticks);}spacing=calculateSpacing(majorIndices,ticks,axisLength,ticksLimit);if(numMajorIndices>0){for(i=0,ilen=numMajorIndices-1;i<ilen;i++){skip(ticks,spacing,majorIndices[i],majorIndices[i+1]);}avgMajorSpacing=numMajorIndices>1?(last-first)/(numMajorIndices-1):null;skip(ticks,spacing,helpers$1.isNullOrUndef(avgMajorSpacing)?0:first-avgMajorSpacing,first);skip(ticks,spacing,last,helpers$1.isNullOrUndef(avgMajorSpacing)?ticks.length:last+avgMajorSpacing);return nonSkipped(ticks);}skip(ticks,spacing);return nonSkipped(ticks);},/**\r\n         * @private\r\n         */_tickSize:function(){var me=this;var optionTicks=me.options.ticks;// Calculate space needed by label in axis direction.\nvar rot=helpers$1.toRadians(me.labelRotation);var cos=Math.abs(Math.cos(rot));var sin=Math.abs(Math.sin(rot));var labelSizes=me._getLabelSizes();var padding=optionTicks.autoSkipPadding||0;var w=labelSizes?labelSizes.widest.width+padding:0;var h=labelSizes?labelSizes.highest.height+padding:0;// Calculate space needed for 1 tick in axis direction.\nreturn me.isHorizontal()?h*cos>w*sin?w/cos:h/sin:h*sin<w*cos?h/cos:w/sin;},/**\r\n         * @private\r\n         */_isVisible:function(){var me=this;var chart=me.chart;var display=me.options.display;var i,ilen,meta;if(display!=='auto'){return!!display;}// When 'auto', the scale is visible if at least one associated dataset is visible.\nfor(i=0,ilen=chart.data.datasets.length;i<ilen;++i){if(chart.isDatasetVisible(i)){meta=chart.getDatasetMeta(i);if(meta.xAxisID===me.id||meta.yAxisID===me.id){return true;}}}return false;},/**\r\n         * @private\r\n         */_computeGridLineItems:function(chartArea){var me=this;var chart=me.chart;var options=me.options;var gridLines=options.gridLines;var position=options.position;var offsetGridLines=gridLines.offsetGridLines;var isHorizontal=me.isHorizontal();var ticks=me._ticksToDraw;var ticksLength=ticks.length+(offsetGridLines?1:0);var tl=getTickMarkLength(gridLines);var items=[];var axisWidth=gridLines.drawBorder?valueAtIndexOrDefault(gridLines.lineWidth,0,0):0;var axisHalfWidth=axisWidth/2;var alignPixel=helpers$1._alignPixel;var alignBorderValue=function(pixel){return alignPixel(chart,pixel,axisWidth);};var borderValue,i,tick,lineValue,alignedLineValue;var tx1,ty1,tx2,ty2,x1,y1,x2,y2,lineWidth,lineColor,borderDash,borderDashOffset;if(position==='top'){borderValue=alignBorderValue(me.bottom);ty1=me.bottom-tl;ty2=borderValue-axisHalfWidth;y1=alignBorderValue(chartArea.top)+axisHalfWidth;y2=chartArea.bottom;}else if(position==='bottom'){borderValue=alignBorderValue(me.top);y1=chartArea.top;y2=alignBorderValue(chartArea.bottom)-axisHalfWidth;ty1=borderValue+axisHalfWidth;ty2=me.top+tl;}else if(position==='left'){borderValue=alignBorderValue(me.right);tx1=me.right-tl;tx2=borderValue-axisHalfWidth;x1=alignBorderValue(chartArea.left)+axisHalfWidth;x2=chartArea.right;}else{borderValue=alignBorderValue(me.left);x1=chartArea.left;x2=alignBorderValue(chartArea.right)-axisHalfWidth;tx1=borderValue+axisHalfWidth;tx2=me.left+tl;}for(i=0;i<ticksLength;++i){tick=ticks[i]||{};// autoskipper skipped this tick (#4635)\nif(isNullOrUndef(tick.label)&&i<ticks.length){continue;}if(i===me.zeroLineIndex&&options.offset===offsetGridLines){// Draw the first index specially\nlineWidth=gridLines.zeroLineWidth;lineColor=gridLines.zeroLineColor;borderDash=gridLines.zeroLineBorderDash||[];borderDashOffset=gridLines.zeroLineBorderDashOffset||0.0;}else{lineWidth=valueAtIndexOrDefault(gridLines.lineWidth,i,1);lineColor=valueAtIndexOrDefault(gridLines.color,i,'rgba(0,0,0,0.1)');borderDash=gridLines.borderDash||[];borderDashOffset=gridLines.borderDashOffset||0.0;}lineValue=getPixelForGridLine(me,tick._index||i,offsetGridLines);// Skip if the pixel is out of the range\nif(lineValue===undefined){continue;}alignedLineValue=alignPixel(chart,lineValue,lineWidth);if(isHorizontal){tx1=tx2=x1=x2=alignedLineValue;}else{ty1=ty2=y1=y2=alignedLineValue;}items.push({tx1:tx1,ty1:ty1,tx2:tx2,ty2:ty2,x1:x1,y1:y1,x2:x2,y2:y2,width:lineWidth,color:lineColor,borderDash:borderDash,borderDashOffset:borderDashOffset});}items.ticksLength=ticksLength;items.borderValue=borderValue;return items;},/**\r\n         * @private\r\n         */_computeLabelItems:function(){var me=this;var options=me.options;var optionTicks=options.ticks;var position=options.position;var isMirrored=optionTicks.mirror;var isHorizontal=me.isHorizontal();var ticks=me._ticksToDraw;var fonts=parseTickFontOptions(optionTicks);var tickPadding=optionTicks.padding;var tl=getTickMarkLength(options.gridLines);var rotation=-helpers$1.toRadians(me.labelRotation);var items=[];var i,ilen,tick,label,x,y,textAlign,pixel,font,lineHeight,lineCount,textOffset;if(position==='top'){y=me.bottom-tl-tickPadding;textAlign=!rotation?'center':'left';}else if(position==='bottom'){y=me.top+tl+tickPadding;textAlign=!rotation?'center':'right';}else if(position==='left'){x=me.right-(isMirrored?0:tl)-tickPadding;textAlign=isMirrored?'left':'right';}else{x=me.left+(isMirrored?0:tl)+tickPadding;textAlign=isMirrored?'right':'left';}for(i=0,ilen=ticks.length;i<ilen;++i){tick=ticks[i];label=tick.label;// autoskipper skipped this tick (#4635)\nif(isNullOrUndef(label)){continue;}pixel=me.getPixelForTick(tick._index||i)+optionTicks.labelOffset;font=tick.major?fonts.major:fonts.minor;lineHeight=font.lineHeight;lineCount=isArray(label)?label.length:1;if(isHorizontal){x=pixel;textOffset=position==='top'?((!rotation?0.5:1)-lineCount)*lineHeight:(!rotation?0.5:0)*lineHeight;}else{y=pixel;textOffset=(1-lineCount)*lineHeight/2;}items.push({x:x,y:y,rotation:rotation,label:label,font:font,textOffset:textOffset,textAlign:textAlign});}return items;},/**\r\n         * @private\r\n         */_drawGrid:function(chartArea){var me=this;var gridLines=me.options.gridLines;if(!gridLines.display){return;}var ctx=me.ctx;var chart=me.chart;var alignPixel=helpers$1._alignPixel;var axisWidth=gridLines.drawBorder?valueAtIndexOrDefault(gridLines.lineWidth,0,0):0;var items=me._gridLineItems||(me._gridLineItems=me._computeGridLineItems(chartArea));var width,color,i,ilen,item;for(i=0,ilen=items.length;i<ilen;++i){item=items[i];width=item.width;color=item.color;if(width&&color){ctx.save();ctx.lineWidth=width;ctx.strokeStyle=color;if(ctx.setLineDash){ctx.setLineDash(item.borderDash);ctx.lineDashOffset=item.borderDashOffset;}ctx.beginPath();if(gridLines.drawTicks){ctx.moveTo(item.tx1,item.ty1);ctx.lineTo(item.tx2,item.ty2);}if(gridLines.drawOnChartArea){ctx.moveTo(item.x1,item.y1);ctx.lineTo(item.x2,item.y2);}ctx.stroke();ctx.restore();}}if(axisWidth){// Draw the line at the edge of the axis\nvar firstLineWidth=axisWidth;var lastLineWidth=valueAtIndexOrDefault(gridLines.lineWidth,items.ticksLength-1,1);var borderValue=items.borderValue;var x1,x2,y1,y2;if(me.isHorizontal()){x1=alignPixel(chart,me.left,firstLineWidth)-firstLineWidth/2;x2=alignPixel(chart,me.right,lastLineWidth)+lastLineWidth/2;y1=y2=borderValue;}else{y1=alignPixel(chart,me.top,firstLineWidth)-firstLineWidth/2;y2=alignPixel(chart,me.bottom,lastLineWidth)+lastLineWidth/2;x1=x2=borderValue;}ctx.lineWidth=axisWidth;ctx.strokeStyle=valueAtIndexOrDefault(gridLines.color,0);ctx.beginPath();ctx.moveTo(x1,y1);ctx.lineTo(x2,y2);ctx.stroke();}},/**\r\n         * @private\r\n         */_drawLabels:function(){var me=this;var optionTicks=me.options.ticks;if(!optionTicks.display){return;}var ctx=me.ctx;var items=me._labelItems||(me._labelItems=me._computeLabelItems());var i,j,ilen,jlen,item,tickFont,label,y;for(i=0,ilen=items.length;i<ilen;++i){item=items[i];tickFont=item.font;// Make sure we draw text in the correct color and font\nctx.save();ctx.translate(item.x,item.y);ctx.rotate(item.rotation);ctx.font=tickFont.string;ctx.fillStyle=tickFont.color;ctx.textBaseline='middle';ctx.textAlign=item.textAlign;label=item.label;y=item.textOffset;if(isArray(label)){for(j=0,jlen=label.length;j<jlen;++j){// We just make sure the multiline element is a string here..\nctx.fillText(''+label[j],0,y);y+=tickFont.lineHeight;}}else{ctx.fillText(label,0,y);}ctx.restore();}},/**\r\n         * @private\r\n         */_drawTitle:function(){var me=this;var ctx=me.ctx;var options=me.options;var scaleLabel=options.scaleLabel;if(!scaleLabel.display){return;}var scaleLabelFontColor=valueOrDefault$a(scaleLabel.fontColor,core_defaults.global.defaultFontColor);var scaleLabelFont=helpers$1.options._parseFont(scaleLabel);var scaleLabelPadding=helpers$1.options.toPadding(scaleLabel.padding);var halfLineHeight=scaleLabelFont.lineHeight/2;var position=options.position;var rotation=0;var scaleLabelX,scaleLabelY;if(me.isHorizontal()){scaleLabelX=me.left+me.width/2;// midpoint of the width\nscaleLabelY=position==='bottom'?me.bottom-halfLineHeight-scaleLabelPadding.bottom:me.top+halfLineHeight+scaleLabelPadding.top;}else{var isLeft=position==='left';scaleLabelX=isLeft?me.left+halfLineHeight+scaleLabelPadding.top:me.right-halfLineHeight-scaleLabelPadding.top;scaleLabelY=me.top+me.height/2;rotation=isLeft?-0.5*Math.PI:0.5*Math.PI;}ctx.save();ctx.translate(scaleLabelX,scaleLabelY);ctx.rotate(rotation);ctx.textAlign='center';ctx.textBaseline='middle';ctx.fillStyle=scaleLabelFontColor;// render in correct colour\nctx.font=scaleLabelFont.string;ctx.fillText(scaleLabel.labelString,0,0);ctx.restore();},draw:function(chartArea){var me=this;if(!me._isVisible()){return;}me._drawGrid(chartArea);me._drawTitle();me._drawLabels();},/**\r\n         * @private\r\n         */_layers:function(){var me=this;var opts=me.options;var tz=opts.ticks&&opts.ticks.z||0;var gz=opts.gridLines&&opts.gridLines.z||0;if(!me._isVisible()||tz===gz||me.draw!==me._draw){// backward compatibility: draw has been overridden by custom scale\nreturn[{z:tz,draw:function(){me.draw.apply(me,arguments);}}];}return[{z:gz,draw:function(){me._drawGrid.apply(me,arguments);me._drawTitle.apply(me,arguments);}},{z:tz,draw:function(){me._drawLabels.apply(me,arguments);}}];},/**\r\n         * @private\r\n         */_getMatchingVisibleMetas:function(type){var me=this;var isHorizontal=me.isHorizontal();return me.chart._getSortedVisibleDatasetMetas().filter(function(meta){return(!type||meta.type===type)&&(isHorizontal?meta.xAxisID===me.id:meta.yAxisID===me.id);});}});Scale.prototype._draw=Scale.prototype.draw;var core_scale=Scale;var isNullOrUndef$1=helpers$1.isNullOrUndef;var defaultConfig={position:'bottom'};var scale_category=core_scale.extend({determineDataLimits:function(){var me=this;var labels=me._getLabels();var ticksOpts=me.options.ticks;var min=ticksOpts.min;var max=ticksOpts.max;var minIndex=0;var maxIndex=labels.length-1;var findIndex;if(min!==undefined){// user specified min value\nfindIndex=labels.indexOf(min);if(findIndex>=0){minIndex=findIndex;}}if(max!==undefined){// user specified max value\nfindIndex=labels.indexOf(max);if(findIndex>=0){maxIndex=findIndex;}}me.minIndex=minIndex;me.maxIndex=maxIndex;me.min=labels[minIndex];me.max=labels[maxIndex];},buildTicks:function(){var me=this;var labels=me._getLabels();var minIndex=me.minIndex;var maxIndex=me.maxIndex;// If we are viewing some subset of labels, slice the original array\nme.ticks=minIndex===0&&maxIndex===labels.length-1?labels:labels.slice(minIndex,maxIndex+1);},getLabelForIndex:function(index,datasetIndex){var me=this;var chart=me.chart;if(chart.getDatasetMeta(datasetIndex).controller._getValueScaleId()===me.id){return me.getRightValue(chart.data.datasets[datasetIndex].data[index]);}return me._getLabels()[index];},_configure:function(){var me=this;var offset=me.options.offset;var ticks=me.ticks;core_scale.prototype._configure.call(me);if(!me.isHorizontal()){// For backward compatibility, vertical category scale reverse is inverted.\nme._reversePixels=!me._reversePixels;}if(!ticks){return;}me._startValue=me.minIndex-(offset?0.5:0);me._valueRange=Math.max(ticks.length-(offset?0:1),1);},// Used to get data value locations.  Value can either be an index or a numerical value\ngetPixelForValue:function(value,index,datasetIndex){var me=this;var valueCategory,labels,idx;if(!isNullOrUndef$1(index)&&!isNullOrUndef$1(datasetIndex)){value=me.chart.data.datasets[datasetIndex].data[index];}// If value is a data object, then index is the index in the data array,\n// not the index of the scale. We need to change that.\nif(!isNullOrUndef$1(value)){valueCategory=me.isHorizontal()?value.x:value.y;}if(valueCategory!==undefined||value!==undefined&&isNaN(index)){labels=me._getLabels();value=helpers$1.valueOrDefault(valueCategory,value);idx=labels.indexOf(value);index=idx!==-1?idx:index;if(isNaN(index)){index=value;}}return me.getPixelForDecimal((index-me._startValue)/me._valueRange);},getPixelForTick:function(index){var ticks=this.ticks;return index<0||index>ticks.length-1?null:this.getPixelForValue(ticks[index],index+this.minIndex);},getValueForPixel:function(pixel){var me=this;var value=Math.round(me._startValue+me.getDecimalForPixel(pixel)*me._valueRange);return Math.min(Math.max(value,0),me.ticks.length-1);},getBasePixel:function(){return this.bottom;}});// INTERNAL: static default options, registered in src/index.js\nvar _defaults=defaultConfig;scale_category._defaults=_defaults;var noop=helpers$1.noop;var isNullOrUndef$2=helpers$1.isNullOrUndef;/**\r\n     * Generate a set of linear ticks\r\n     * @param generationOptions the options used to generate the ticks\r\n     * @param dataRange the range of the data\r\n     * @returns {number[]} array of tick values\r\n     */function generateTicks(generationOptions,dataRange){var ticks=[];// To get a \"nice\" value for the tick spacing, we will use the appropriately named\n// \"nice number\" algorithm. See https://stackoverflow.com/questions/8506881/nice-label-algorithm-for-charts-with-minimum-ticks\n// for details.\nvar MIN_SPACING=1e-14;var stepSize=generationOptions.stepSize;var unit=stepSize||1;var maxNumSpaces=generationOptions.maxTicks-1;var min=generationOptions.min;var max=generationOptions.max;var precision=generationOptions.precision;var rmin=dataRange.min;var rmax=dataRange.max;var spacing=helpers$1.niceNum((rmax-rmin)/maxNumSpaces/unit)*unit;var factor,niceMin,niceMax,numSpaces;// Beyond MIN_SPACING floating point numbers being to lose precision\n// such that we can't do the math necessary to generate ticks\nif(spacing<MIN_SPACING&&isNullOrUndef$2(min)&&isNullOrUndef$2(max)){return[rmin,rmax];}numSpaces=Math.ceil(rmax/spacing)-Math.floor(rmin/spacing);if(numSpaces>maxNumSpaces){// If the calculated num of spaces exceeds maxNumSpaces, recalculate it\nspacing=helpers$1.niceNum(numSpaces*spacing/maxNumSpaces/unit)*unit;}if(stepSize||isNullOrUndef$2(precision)){// If a precision is not specified, calculate factor based on spacing\nfactor=Math.pow(10,helpers$1._decimalPlaces(spacing));}else{// If the user specified a precision, round to that number of decimal places\nfactor=Math.pow(10,precision);spacing=Math.ceil(spacing*factor)/factor;}niceMin=Math.floor(rmin/spacing)*spacing;niceMax=Math.ceil(rmax/spacing)*spacing;// If min, max and stepSize is set and they make an evenly spaced scale use it.\nif(stepSize){// If very close to our whole number, use it.\nif(!isNullOrUndef$2(min)&&helpers$1.almostWhole(min/spacing,spacing/1000)){niceMin=min;}if(!isNullOrUndef$2(max)&&helpers$1.almostWhole(max/spacing,spacing/1000)){niceMax=max;}}numSpaces=(niceMax-niceMin)/spacing;// If very close to our rounded value, use it.\nif(helpers$1.almostEquals(numSpaces,Math.round(numSpaces),spacing/1000)){numSpaces=Math.round(numSpaces);}else{numSpaces=Math.ceil(numSpaces);}niceMin=Math.round(niceMin*factor)/factor;niceMax=Math.round(niceMax*factor)/factor;ticks.push(isNullOrUndef$2(min)?niceMin:min);for(var j=1;j<numSpaces;++j){ticks.push(Math.round((niceMin+j*spacing)*factor)/factor);}ticks.push(isNullOrUndef$2(max)?niceMax:max);return ticks;}var scale_linearbase=core_scale.extend({getRightValue:function(value){if(typeof value==='string'){return+value;}return core_scale.prototype.getRightValue.call(this,value);},handleTickRangeOptions:function(){var me=this;var opts=me.options;var tickOpts=opts.ticks;// If we are forcing it to begin at 0, but 0 will already be rendered on the chart,\n// do nothing since that would make the chart weird. If the user really wants a weird chart\n// axis, they can manually override it\nif(tickOpts.beginAtZero){var minSign=helpers$1.sign(me.min);var maxSign=helpers$1.sign(me.max);if(minSign<0&&maxSign<0){// move the top up to 0\nme.max=0;}else if(minSign>0&&maxSign>0){// move the bottom down to 0\nme.min=0;}}var setMin=tickOpts.min!==undefined||tickOpts.suggestedMin!==undefined;var setMax=tickOpts.max!==undefined||tickOpts.suggestedMax!==undefined;if(tickOpts.min!==undefined){me.min=tickOpts.min;}else if(tickOpts.suggestedMin!==undefined){if(me.min===null){me.min=tickOpts.suggestedMin;}else{me.min=Math.min(me.min,tickOpts.suggestedMin);}}if(tickOpts.max!==undefined){me.max=tickOpts.max;}else if(tickOpts.suggestedMax!==undefined){if(me.max===null){me.max=tickOpts.suggestedMax;}else{me.max=Math.max(me.max,tickOpts.suggestedMax);}}if(setMin!==setMax){// We set the min or the max but not both.\n// So ensure that our range is good\n// Inverted or 0 length range can happen when\n// ticks.min is set, and no datasets are visible\nif(me.min>=me.max){if(setMin){me.max=me.min+1;}else{me.min=me.max-1;}}}if(me.min===me.max){me.max++;if(!tickOpts.beginAtZero){me.min--;}}},getTickLimit:function(){var me=this;var tickOpts=me.options.ticks;var stepSize=tickOpts.stepSize;var maxTicksLimit=tickOpts.maxTicksLimit;var maxTicks;if(stepSize){maxTicks=Math.ceil(me.max/stepSize)-Math.floor(me.min/stepSize)+1;}else{maxTicks=me._computeTickLimit();maxTicksLimit=maxTicksLimit||11;}if(maxTicksLimit){maxTicks=Math.min(maxTicksLimit,maxTicks);}return maxTicks;},_computeTickLimit:function(){return Number.POSITIVE_INFINITY;},handleDirectionalChanges:noop,buildTicks:function(){var me=this;var opts=me.options;var tickOpts=opts.ticks;// Figure out what the max number of ticks we can support it is based on the size of\n// the axis area. For now, we say that the minimum tick spacing in pixels must be 40\n// We also limit the maximum number of ticks to 11 which gives a nice 10 squares on\n// the graph. Make sure we always have at least 2 ticks\nvar maxTicks=me.getTickLimit();maxTicks=Math.max(2,maxTicks);var numericGeneratorOptions={maxTicks:maxTicks,min:tickOpts.min,max:tickOpts.max,precision:tickOpts.precision,stepSize:helpers$1.valueOrDefault(tickOpts.fixedStepSize,tickOpts.stepSize)};var ticks=me.ticks=generateTicks(numericGeneratorOptions,me);me.handleDirectionalChanges();// At this point, we need to update our max and min given the tick values since we have expanded the\n// range of the scale\nme.max=helpers$1.max(ticks);me.min=helpers$1.min(ticks);if(tickOpts.reverse){ticks.reverse();me.start=me.max;me.end=me.min;}else{me.start=me.min;me.end=me.max;}},convertTicksToLabels:function(){var me=this;me.ticksAsNumbers=me.ticks.slice();me.zeroLineIndex=me.ticks.indexOf(0);core_scale.prototype.convertTicksToLabels.call(me);},_configure:function(){var me=this;var ticks=me.getTicks();var start=me.min;var end=me.max;var offset;core_scale.prototype._configure.call(me);if(me.options.offset&&ticks.length){offset=(end-start)/Math.max(ticks.length-1,1)/2;start-=offset;end+=offset;}me._startValue=start;me._endValue=end;me._valueRange=end-start;}});var defaultConfig$1={position:'left',ticks:{callback:core_ticks.formatters.linear}};var DEFAULT_MIN=0;var DEFAULT_MAX=1;function getOrCreateStack(stacks,stacked,meta){var key=[meta.type,// we have a separate stack for stack=undefined datasets when the opts.stacked is undefined\nstacked===undefined&&meta.stack===undefined?meta.index:'',meta.stack].join('.');if(stacks[key]===undefined){stacks[key]={pos:[],neg:[]};}return stacks[key];}function stackData(scale,stacks,meta,data){var opts=scale.options;var stacked=opts.stacked;var stack=getOrCreateStack(stacks,stacked,meta);var pos=stack.pos;var neg=stack.neg;var ilen=data.length;var i,value;for(i=0;i<ilen;++i){value=scale._parseValue(data[i]);if(isNaN(value.min)||isNaN(value.max)||meta.data[i].hidden){continue;}pos[i]=pos[i]||0;neg[i]=neg[i]||0;if(opts.relativePoints){pos[i]=100;}else if(value.min<0||value.max<0){neg[i]+=value.min;}else{pos[i]+=value.max;}}}function updateMinMax(scale,meta,data){var ilen=data.length;var i,value;for(i=0;i<ilen;++i){value=scale._parseValue(data[i]);if(isNaN(value.min)||isNaN(value.max)||meta.data[i].hidden){continue;}scale.min=Math.min(scale.min,value.min);scale.max=Math.max(scale.max,value.max);}}var scale_linear=scale_linearbase.extend({determineDataLimits:function(){var me=this;var opts=me.options;var chart=me.chart;var datasets=chart.data.datasets;var metasets=me._getMatchingVisibleMetas();var hasStacks=opts.stacked;var stacks={};var ilen=metasets.length;var i,meta,data,values;me.min=Number.POSITIVE_INFINITY;me.max=Number.NEGATIVE_INFINITY;if(hasStacks===undefined){for(i=0;!hasStacks&&i<ilen;++i){meta=metasets[i];hasStacks=meta.stack!==undefined;}}for(i=0;i<ilen;++i){meta=metasets[i];data=datasets[meta.index].data;if(hasStacks){stackData(me,stacks,meta,data);}else{updateMinMax(me,meta,data);}}helpers$1.each(stacks,function(stackValues){values=stackValues.pos.concat(stackValues.neg);me.min=Math.min(me.min,helpers$1.min(values));me.max=Math.max(me.max,helpers$1.max(values));});me.min=helpers$1.isFinite(me.min)&&!isNaN(me.min)?me.min:DEFAULT_MIN;me.max=helpers$1.isFinite(me.max)&&!isNaN(me.max)?me.max:DEFAULT_MAX;// Common base implementation to handle ticks.min, ticks.max, ticks.beginAtZero\nme.handleTickRangeOptions();},// Returns the maximum number of ticks based on the scale dimension\n_computeTickLimit:function(){var me=this;var tickFont;if(me.isHorizontal()){return Math.ceil(me.width/40);}tickFont=helpers$1.options._parseFont(me.options.ticks);return Math.ceil(me.height/tickFont.lineHeight);},// Called after the ticks are built. We need\nhandleDirectionalChanges:function(){if(!this.isHorizontal()){// We are in a vertical orientation. The top value is the highest. So reverse the array\nthis.ticks.reverse();}},getLabelForIndex:function(index,datasetIndex){return this._getScaleLabel(this.chart.data.datasets[datasetIndex].data[index]);},// Utils\ngetPixelForValue:function(value){var me=this;return me.getPixelForDecimal((+me.getRightValue(value)-me._startValue)/me._valueRange);},getValueForPixel:function(pixel){return this._startValue+this.getDecimalForPixel(pixel)*this._valueRange;},getPixelForTick:function(index){var ticks=this.ticksAsNumbers;if(index<0||index>ticks.length-1){return null;}return this.getPixelForValue(ticks[index]);}});// INTERNAL: static default options, registered in src/index.js\nvar _defaults$1=defaultConfig$1;scale_linear._defaults=_defaults$1;var valueOrDefault$b=helpers$1.valueOrDefault;var log10=helpers$1.math.log10;/**\r\n     * Generate a set of logarithmic ticks\r\n     * @param generationOptions the options used to generate the ticks\r\n     * @param dataRange the range of the data\r\n     * @returns {number[]} array of tick values\r\n     */function generateTicks$1(generationOptions,dataRange){var ticks=[];var tickVal=valueOrDefault$b(generationOptions.min,Math.pow(10,Math.floor(log10(dataRange.min))));var endExp=Math.floor(log10(dataRange.max));var endSignificand=Math.ceil(dataRange.max/Math.pow(10,endExp));var exp,significand;if(tickVal===0){exp=Math.floor(log10(dataRange.minNotZero));significand=Math.floor(dataRange.minNotZero/Math.pow(10,exp));ticks.push(tickVal);tickVal=significand*Math.pow(10,exp);}else{exp=Math.floor(log10(tickVal));significand=Math.floor(tickVal/Math.pow(10,exp));}var precision=exp<0?Math.pow(10,Math.abs(exp)):1;do{ticks.push(tickVal);++significand;if(significand===10){significand=1;++exp;precision=exp>=0?1:precision;}tickVal=Math.round(significand*Math.pow(10,exp)*precision)/precision;}while(exp<endExp||exp===endExp&&significand<endSignificand);var lastTick=valueOrDefault$b(generationOptions.max,tickVal);ticks.push(lastTick);return ticks;}var defaultConfig$2={position:'left',// label settings\nticks:{callback:core_ticks.formatters.logarithmic}};// TODO(v3): change this to positiveOrDefault\nfunction nonNegativeOrDefault(value,defaultValue){return helpers$1.isFinite(value)&&value>=0?value:defaultValue;}var scale_logarithmic=core_scale.extend({determineDataLimits:function(){var me=this;var opts=me.options;var chart=me.chart;var datasets=chart.data.datasets;var isHorizontal=me.isHorizontal();function IDMatches(meta){return isHorizontal?meta.xAxisID===me.id:meta.yAxisID===me.id;}var datasetIndex,meta,value,data,i,ilen;// Calculate Range\nme.min=Number.POSITIVE_INFINITY;me.max=Number.NEGATIVE_INFINITY;me.minNotZero=Number.POSITIVE_INFINITY;var hasStacks=opts.stacked;if(hasStacks===undefined){for(datasetIndex=0;datasetIndex<datasets.length;datasetIndex++){meta=chart.getDatasetMeta(datasetIndex);if(chart.isDatasetVisible(datasetIndex)&&IDMatches(meta)&&meta.stack!==undefined){hasStacks=true;break;}}}if(opts.stacked||hasStacks){var valuesPerStack={};for(datasetIndex=0;datasetIndex<datasets.length;datasetIndex++){meta=chart.getDatasetMeta(datasetIndex);var key=[meta.type,// we have a separate stack for stack=undefined datasets when the opts.stacked is undefined\nopts.stacked===undefined&&meta.stack===undefined?datasetIndex:'',meta.stack].join('.');if(chart.isDatasetVisible(datasetIndex)&&IDMatches(meta)){if(valuesPerStack[key]===undefined){valuesPerStack[key]=[];}data=datasets[datasetIndex].data;for(i=0,ilen=data.length;i<ilen;i++){var values=valuesPerStack[key];value=me._parseValue(data[i]);// invalid, hidden and negative values are ignored\nif(isNaN(value.min)||isNaN(value.max)||meta.data[i].hidden||value.min<0||value.max<0){continue;}values[i]=values[i]||0;values[i]+=value.max;}}}helpers$1.each(valuesPerStack,function(valuesForType){if(valuesForType.length>0){var minVal=helpers$1.min(valuesForType);var maxVal=helpers$1.max(valuesForType);me.min=Math.min(me.min,minVal);me.max=Math.max(me.max,maxVal);}});}else{for(datasetIndex=0;datasetIndex<datasets.length;datasetIndex++){meta=chart.getDatasetMeta(datasetIndex);if(chart.isDatasetVisible(datasetIndex)&&IDMatches(meta)){data=datasets[datasetIndex].data;for(i=0,ilen=data.length;i<ilen;i++){value=me._parseValue(data[i]);// invalid, hidden and negative values are ignored\nif(isNaN(value.min)||isNaN(value.max)||meta.data[i].hidden||value.min<0||value.max<0){continue;}me.min=Math.min(value.min,me.min);me.max=Math.max(value.max,me.max);if(value.min!==0){me.minNotZero=Math.min(value.min,me.minNotZero);}}}}}me.min=helpers$1.isFinite(me.min)?me.min:null;me.max=helpers$1.isFinite(me.max)?me.max:null;me.minNotZero=helpers$1.isFinite(me.minNotZero)?me.minNotZero:null;// Common base implementation to handle ticks.min, ticks.max\nthis.handleTickRangeOptions();},handleTickRangeOptions:function(){var me=this;var tickOpts=me.options.ticks;var DEFAULT_MIN=1;var DEFAULT_MAX=10;me.min=nonNegativeOrDefault(tickOpts.min,me.min);me.max=nonNegativeOrDefault(tickOpts.max,me.max);if(me.min===me.max){if(me.min!==0&&me.min!==null){me.min=Math.pow(10,Math.floor(log10(me.min))-1);me.max=Math.pow(10,Math.floor(log10(me.max))+1);}else{me.min=DEFAULT_MIN;me.max=DEFAULT_MAX;}}if(me.min===null){me.min=Math.pow(10,Math.floor(log10(me.max))-1);}if(me.max===null){me.max=me.min!==0?Math.pow(10,Math.floor(log10(me.min))+1):DEFAULT_MAX;}if(me.minNotZero===null){if(me.min>0){me.minNotZero=me.min;}else if(me.max<1){me.minNotZero=Math.pow(10,Math.floor(log10(me.max)));}else{me.minNotZero=DEFAULT_MIN;}}},buildTicks:function(){var me=this;var tickOpts=me.options.ticks;var reverse=!me.isHorizontal();var generationOptions={min:nonNegativeOrDefault(tickOpts.min),max:nonNegativeOrDefault(tickOpts.max)};var ticks=me.ticks=generateTicks$1(generationOptions,me);// At this point, we need to update our max and min given the tick values since we have expanded the\n// range of the scale\nme.max=helpers$1.max(ticks);me.min=helpers$1.min(ticks);if(tickOpts.reverse){reverse=!reverse;me.start=me.max;me.end=me.min;}else{me.start=me.min;me.end=me.max;}if(reverse){ticks.reverse();}},convertTicksToLabels:function(){this.tickValues=this.ticks.slice();core_scale.prototype.convertTicksToLabels.call(this);},// Get the correct tooltip label\ngetLabelForIndex:function(index,datasetIndex){return this._getScaleLabel(this.chart.data.datasets[datasetIndex].data[index]);},getPixelForTick:function(index){var ticks=this.tickValues;if(index<0||index>ticks.length-1){return null;}return this.getPixelForValue(ticks[index]);},/**\r\n         * Returns the value of the first tick.\r\n         * @param {number} value - The minimum not zero value.\r\n         * @return {number} The first tick value.\r\n         * @private\r\n         */_getFirstTickValue:function(value){var exp=Math.floor(log10(value));var significand=Math.floor(value/Math.pow(10,exp));return significand*Math.pow(10,exp);},_configure:function(){var me=this;var start=me.min;var offset=0;core_scale.prototype._configure.call(me);if(start===0){start=me._getFirstTickValue(me.minNotZero);offset=valueOrDefault$b(me.options.ticks.fontSize,core_defaults.global.defaultFontSize)/me._length;}me._startValue=log10(start);me._valueOffset=offset;me._valueRange=(log10(me.max)-log10(start))/(1-offset);},getPixelForValue:function(value){var me=this;var decimal=0;value=+me.getRightValue(value);if(value>me.min&&value>0){decimal=(log10(value)-me._startValue)/me._valueRange+me._valueOffset;}return me.getPixelForDecimal(decimal);},getValueForPixel:function(pixel){var me=this;var decimal=me.getDecimalForPixel(pixel);return decimal===0&&me.min===0?0:Math.pow(10,me._startValue+(decimal-me._valueOffset)*me._valueRange);}});// INTERNAL: static default options, registered in src/index.js\nvar _defaults$2=defaultConfig$2;scale_logarithmic._defaults=_defaults$2;var valueOrDefault$c=helpers$1.valueOrDefault;var valueAtIndexOrDefault$1=helpers$1.valueAtIndexOrDefault;var resolve$4=helpers$1.options.resolve;var defaultConfig$3={display:true,// Boolean - Whether to animate scaling the chart from the centre\nanimate:true,position:'chartArea',angleLines:{display:true,color:'rgba(0,0,0,0.1)',lineWidth:1,borderDash:[],borderDashOffset:0.0},gridLines:{circular:false},// label settings\nticks:{// Boolean - Show a backdrop to the scale label\nshowLabelBackdrop:true,// String - The colour of the label backdrop\nbackdropColor:'rgba(255,255,255,0.75)',// Number - The backdrop padding above & below the label in pixels\nbackdropPaddingY:2,// Number - The backdrop padding to the side of the label in pixels\nbackdropPaddingX:2,callback:core_ticks.formatters.linear},pointLabels:{// Boolean - if true, show point labels\ndisplay:true,// Number - Point label font size in pixels\nfontSize:10,// Function - Used to convert point labels\ncallback:function(label){return label;}}};function getTickBackdropHeight(opts){var tickOpts=opts.ticks;if(tickOpts.display&&opts.display){return valueOrDefault$c(tickOpts.fontSize,core_defaults.global.defaultFontSize)+tickOpts.backdropPaddingY*2;}return 0;}function measureLabelSize(ctx,lineHeight,label){if(helpers$1.isArray(label)){return{w:helpers$1.longestText(ctx,ctx.font,label),h:label.length*lineHeight};}return{w:ctx.measureText(label).width,h:lineHeight};}function determineLimits(angle,pos,size,min,max){if(angle===min||angle===max){return{start:pos-size/2,end:pos+size/2};}else if(angle<min||angle>max){return{start:pos-size,end:pos};}return{start:pos,end:pos+size};}/**\r\n     * Helper function to fit a radial linear scale with point labels\r\n     */function fitWithPointLabels(scale){// Right, this is really confusing and there is a lot of maths going on here\n// The gist of the problem is here: https://gist.github.com/nnnick/696cc9c55f4b0beb8fe9\n//\n// Reaction: https://dl.dropboxusercontent.com/u/34601363/toomuchscience.gif\n//\n// Solution:\n//\n// We assume the radius of the polygon is half the size of the canvas at first\n// at each index we check if the text overlaps.\n//\n// Where it does, we store that angle and that index.\n//\n// After finding the largest index and angle we calculate how much we need to remove\n// from the shape radius to move the point inwards by that x.\n//\n// We average the left and right distances to get the maximum shape radius that can fit in the box\n// along with labels.\n//\n// Once we have that, we can find the centre point for the chart, by taking the x text protrusion\n// on each side, removing that from the size, halving it and adding the left x protrusion width.\n//\n// This will mean we have a shape fitted to the canvas, as large as it can be with the labels\n// and position it in the most space efficient manner\n//\n// https://dl.dropboxusercontent.com/u/34601363/yeahscience.gif\nvar plFont=helpers$1.options._parseFont(scale.options.pointLabels);// Get maximum radius of the polygon. Either half the height (minus the text width) or half the width.\n// Use this to calculate the offset + change. - Make sure L/R protrusion is at least 0 to stop issues with centre points\nvar furthestLimits={l:0,r:scale.width,t:0,b:scale.height-scale.paddingTop};var furthestAngles={};var i,textSize,pointPosition;scale.ctx.font=plFont.string;scale._pointLabelSizes=[];var valueCount=scale.chart.data.labels.length;for(i=0;i<valueCount;i++){pointPosition=scale.getPointPosition(i,scale.drawingArea+5);textSize=measureLabelSize(scale.ctx,plFont.lineHeight,scale.pointLabels[i]);scale._pointLabelSizes[i]=textSize;// Add quarter circle to make degree 0 mean top of circle\nvar angleRadians=scale.getIndexAngle(i);var angle=helpers$1.toDegrees(angleRadians)%360;var hLimits=determineLimits(angle,pointPosition.x,textSize.w,0,180);var vLimits=determineLimits(angle,pointPosition.y,textSize.h,90,270);if(hLimits.start<furthestLimits.l){furthestLimits.l=hLimits.start;furthestAngles.l=angleRadians;}if(hLimits.end>furthestLimits.r){furthestLimits.r=hLimits.end;furthestAngles.r=angleRadians;}if(vLimits.start<furthestLimits.t){furthestLimits.t=vLimits.start;furthestAngles.t=angleRadians;}if(vLimits.end>furthestLimits.b){furthestLimits.b=vLimits.end;furthestAngles.b=angleRadians;}}scale.setReductions(scale.drawingArea,furthestLimits,furthestAngles);}function getTextAlignForAngle(angle){if(angle===0||angle===180){return'center';}else if(angle<180){return'left';}return'right';}function fillText(ctx,text,position,lineHeight){var y=position.y+lineHeight/2;var i,ilen;if(helpers$1.isArray(text)){for(i=0,ilen=text.length;i<ilen;++i){ctx.fillText(text[i],position.x,y);y+=lineHeight;}}else{ctx.fillText(text,position.x,y);}}function adjustPointPositionForLabelHeight(angle,textSize,position){if(angle===90||angle===270){position.y-=textSize.h/2;}else if(angle>270||angle<90){position.y-=textSize.h;}}function drawPointLabels(scale){var ctx=scale.ctx;var opts=scale.options;var pointLabelOpts=opts.pointLabels;var tickBackdropHeight=getTickBackdropHeight(opts);var outerDistance=scale.getDistanceFromCenterForValue(opts.ticks.reverse?scale.min:scale.max);var plFont=helpers$1.options._parseFont(pointLabelOpts);ctx.save();ctx.font=plFont.string;ctx.textBaseline='middle';for(var i=scale.chart.data.labels.length-1;i>=0;i--){// Extra pixels out for some label spacing\nvar extra=i===0?tickBackdropHeight/2:0;var pointLabelPosition=scale.getPointPosition(i,outerDistance+extra+5);// Keep this in loop since we may support array properties here\nvar pointLabelFontColor=valueAtIndexOrDefault$1(pointLabelOpts.fontColor,i,core_defaults.global.defaultFontColor);ctx.fillStyle=pointLabelFontColor;var angleRadians=scale.getIndexAngle(i);var angle=helpers$1.toDegrees(angleRadians);ctx.textAlign=getTextAlignForAngle(angle);adjustPointPositionForLabelHeight(angle,scale._pointLabelSizes[i],pointLabelPosition);fillText(ctx,scale.pointLabels[i],pointLabelPosition,plFont.lineHeight);}ctx.restore();}function drawRadiusLine(scale,gridLineOpts,radius,index){var ctx=scale.ctx;var circular=gridLineOpts.circular;var valueCount=scale.chart.data.labels.length;var lineColor=valueAtIndexOrDefault$1(gridLineOpts.color,index-1);var lineWidth=valueAtIndexOrDefault$1(gridLineOpts.lineWidth,index-1);var pointPosition;if(!circular&&!valueCount||!lineColor||!lineWidth){return;}ctx.save();ctx.strokeStyle=lineColor;ctx.lineWidth=lineWidth;if(ctx.setLineDash){ctx.setLineDash(gridLineOpts.borderDash||[]);ctx.lineDashOffset=gridLineOpts.borderDashOffset||0.0;}ctx.beginPath();if(circular){// Draw circular arcs between the points\nctx.arc(scale.xCenter,scale.yCenter,radius,0,Math.PI*2);}else{// Draw straight lines connecting each index\npointPosition=scale.getPointPosition(0,radius);ctx.moveTo(pointPosition.x,pointPosition.y);for(var i=1;i<valueCount;i++){pointPosition=scale.getPointPosition(i,radius);ctx.lineTo(pointPosition.x,pointPosition.y);}}ctx.closePath();ctx.stroke();ctx.restore();}function numberOrZero(param){return helpers$1.isNumber(param)?param:0;}var scale_radialLinear=scale_linearbase.extend({setDimensions:function(){var me=this;// Set the unconstrained dimension before label rotation\nme.width=me.maxWidth;me.height=me.maxHeight;me.paddingTop=getTickBackdropHeight(me.options)/2;me.xCenter=Math.floor(me.width/2);me.yCenter=Math.floor((me.height-me.paddingTop)/2);me.drawingArea=Math.min(me.height-me.paddingTop,me.width)/2;},determineDataLimits:function(){var me=this;var chart=me.chart;var min=Number.POSITIVE_INFINITY;var max=Number.NEGATIVE_INFINITY;helpers$1.each(chart.data.datasets,function(dataset,datasetIndex){if(chart.isDatasetVisible(datasetIndex)){var meta=chart.getDatasetMeta(datasetIndex);helpers$1.each(dataset.data,function(rawValue,index){var value=+me.getRightValue(rawValue);if(isNaN(value)||meta.data[index].hidden){return;}min=Math.min(value,min);max=Math.max(value,max);});}});me.min=min===Number.POSITIVE_INFINITY?0:min;me.max=max===Number.NEGATIVE_INFINITY?0:max;// Common base implementation to handle ticks.min, ticks.max, ticks.beginAtZero\nme.handleTickRangeOptions();},// Returns the maximum number of ticks based on the scale dimension\n_computeTickLimit:function(){return Math.ceil(this.drawingArea/getTickBackdropHeight(this.options));},convertTicksToLabels:function(){var me=this;scale_linearbase.prototype.convertTicksToLabels.call(me);// Point labels\nme.pointLabels=me.chart.data.labels.map(function(){var label=helpers$1.callback(me.options.pointLabels.callback,arguments,me);return label||label===0?label:'';});},getLabelForIndex:function(index,datasetIndex){return+this.getRightValue(this.chart.data.datasets[datasetIndex].data[index]);},fit:function(){var me=this;var opts=me.options;if(opts.display&&opts.pointLabels.display){fitWithPointLabels(me);}else{me.setCenterPoint(0,0,0,0);}},/**\r\n         * Set radius reductions and determine new radius and center point\r\n         * @private\r\n         */setReductions:function(largestPossibleRadius,furthestLimits,furthestAngles){var me=this;var radiusReductionLeft=furthestLimits.l/Math.sin(furthestAngles.l);var radiusReductionRight=Math.max(furthestLimits.r-me.width,0)/Math.sin(furthestAngles.r);var radiusReductionTop=-furthestLimits.t/Math.cos(furthestAngles.t);var radiusReductionBottom=-Math.max(furthestLimits.b-(me.height-me.paddingTop),0)/Math.cos(furthestAngles.b);radiusReductionLeft=numberOrZero(radiusReductionLeft);radiusReductionRight=numberOrZero(radiusReductionRight);radiusReductionTop=numberOrZero(radiusReductionTop);radiusReductionBottom=numberOrZero(radiusReductionBottom);me.drawingArea=Math.min(Math.floor(largestPossibleRadius-(radiusReductionLeft+radiusReductionRight)/2),Math.floor(largestPossibleRadius-(radiusReductionTop+radiusReductionBottom)/2));me.setCenterPoint(radiusReductionLeft,radiusReductionRight,radiusReductionTop,radiusReductionBottom);},setCenterPoint:function(leftMovement,rightMovement,topMovement,bottomMovement){var me=this;var maxRight=me.width-rightMovement-me.drawingArea;var maxLeft=leftMovement+me.drawingArea;var maxTop=topMovement+me.drawingArea;var maxBottom=me.height-me.paddingTop-bottomMovement-me.drawingArea;me.xCenter=Math.floor((maxLeft+maxRight)/2+me.left);me.yCenter=Math.floor((maxTop+maxBottom)/2+me.top+me.paddingTop);},getIndexAngle:function(index){var chart=this.chart;var angleMultiplier=360/chart.data.labels.length;var options=chart.options||{};var startAngle=options.startAngle||0;// Start from the top instead of right, so remove a quarter of the circle\nvar angle=(index*angleMultiplier+startAngle)%360;return(angle<0?angle+360:angle)*Math.PI*2/360;},getDistanceFromCenterForValue:function(value){var me=this;if(helpers$1.isNullOrUndef(value)){return NaN;}// Take into account half font size + the yPadding of the top value\nvar scalingFactor=me.drawingArea/(me.max-me.min);if(me.options.ticks.reverse){return(me.max-value)*scalingFactor;}return(value-me.min)*scalingFactor;},getPointPosition:function(index,distanceFromCenter){var me=this;var thisAngle=me.getIndexAngle(index)-Math.PI/2;return{x:Math.cos(thisAngle)*distanceFromCenter+me.xCenter,y:Math.sin(thisAngle)*distanceFromCenter+me.yCenter};},getPointPositionForValue:function(index,value){return this.getPointPosition(index,this.getDistanceFromCenterForValue(value));},getBasePosition:function(index){var me=this;var min=me.min;var max=me.max;return me.getPointPositionForValue(index||0,me.beginAtZero?0:min<0&&max<0?max:min>0&&max>0?min:0);},/**\r\n         * @private\r\n         */_drawGrid:function(){var me=this;var ctx=me.ctx;var opts=me.options;var gridLineOpts=opts.gridLines;var angleLineOpts=opts.angleLines;var lineWidth=valueOrDefault$c(angleLineOpts.lineWidth,gridLineOpts.lineWidth);var lineColor=valueOrDefault$c(angleLineOpts.color,gridLineOpts.color);var i,offset,position;if(opts.pointLabels.display){drawPointLabels(me);}if(gridLineOpts.display){helpers$1.each(me.ticks,function(label,index){if(index!==0){offset=me.getDistanceFromCenterForValue(me.ticksAsNumbers[index]);drawRadiusLine(me,gridLineOpts,offset,index);}});}if(angleLineOpts.display&&lineWidth&&lineColor){ctx.save();ctx.lineWidth=lineWidth;ctx.strokeStyle=lineColor;if(ctx.setLineDash){ctx.setLineDash(resolve$4([angleLineOpts.borderDash,gridLineOpts.borderDash,[]]));ctx.lineDashOffset=resolve$4([angleLineOpts.borderDashOffset,gridLineOpts.borderDashOffset,0.0]);}for(i=me.chart.data.labels.length-1;i>=0;i--){offset=me.getDistanceFromCenterForValue(opts.ticks.reverse?me.min:me.max);position=me.getPointPosition(i,offset);ctx.beginPath();ctx.moveTo(me.xCenter,me.yCenter);ctx.lineTo(position.x,position.y);ctx.stroke();}ctx.restore();}},/**\r\n         * @private\r\n         */_drawLabels:function(){var me=this;var ctx=me.ctx;var opts=me.options;var tickOpts=opts.ticks;if(!tickOpts.display){return;}var startAngle=me.getIndexAngle(0);var tickFont=helpers$1.options._parseFont(tickOpts);var tickFontColor=valueOrDefault$c(tickOpts.fontColor,core_defaults.global.defaultFontColor);var offset,width;ctx.save();ctx.font=tickFont.string;ctx.translate(me.xCenter,me.yCenter);ctx.rotate(startAngle);ctx.textAlign='center';ctx.textBaseline='middle';helpers$1.each(me.ticks,function(label,index){if(index===0&&!tickOpts.reverse){return;}offset=me.getDistanceFromCenterForValue(me.ticksAsNumbers[index]);if(tickOpts.showLabelBackdrop){width=ctx.measureText(label).width;ctx.fillStyle=tickOpts.backdropColor;ctx.fillRect(-width/2-tickOpts.backdropPaddingX,-offset-tickFont.size/2-tickOpts.backdropPaddingY,width+tickOpts.backdropPaddingX*2,tickFont.size+tickOpts.backdropPaddingY*2);}ctx.fillStyle=tickFontColor;ctx.fillText(label,0,-offset);});ctx.restore();},/**\r\n         * @private\r\n         */_drawTitle:helpers$1.noop});// INTERNAL: static default options, registered in src/index.js\nvar _defaults$3=defaultConfig$3;scale_radialLinear._defaults=_defaults$3;var deprecated$1=helpers$1._deprecated;var resolve$5=helpers$1.options.resolve;var valueOrDefault$d=helpers$1.valueOrDefault;// Integer constants are from the ES6 spec.\nvar MIN_INTEGER=Number.MIN_SAFE_INTEGER||-9007199254740991;var MAX_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991;var INTERVALS={millisecond:{common:true,size:1,steps:1000},second:{common:true,size:1000,steps:60},minute:{common:true,size:60000,steps:60},hour:{common:true,size:3600000,steps:24},day:{common:true,size:86400000,steps:30},week:{common:false,size:604800000,steps:4},month:{common:true,size:2.628e9,steps:12},quarter:{common:false,size:7.884e9,steps:4},year:{common:true,size:3.154e10}};var UNITS=Object.keys(INTERVALS);function sorter(a,b){return a-b;}function arrayUnique(items){var hash={};var out=[];var i,ilen,item;for(i=0,ilen=items.length;i<ilen;++i){item=items[i];if(!hash[item]){hash[item]=true;out.push(item);}}return out;}function getMin(options){return helpers$1.valueOrDefault(options.time.min,options.ticks.min);}function getMax(options){return helpers$1.valueOrDefault(options.time.max,options.ticks.max);}/**\r\n     * Returns an array of {time, pos} objects used to interpolate a specific `time` or position\r\n     * (`pos`) on the scale, by searching entries before and after the requested value. `pos` is\r\n     * a decimal between 0 and 1: 0 being the start of the scale (left or top) and 1 the other\r\n     * extremity (left + width or top + height). Note that it would be more optimized to directly\r\n     * store pre-computed pixels, but the scale dimensions are not guaranteed at the time we need\r\n     * to create the lookup table. The table ALWAYS contains at least two items: min and max.\r\n     *\r\n     * @param {number[]} timestamps - timestamps sorted from lowest to highest.\r\n     * @param {string} distribution - If 'linear', timestamps will be spread linearly along the min\r\n     * and max range, so basically, the table will contains only two items: {min, 0} and {max, 1}.\r\n     * If 'series', timestamps will be positioned at the same distance from each other. In this\r\n     * case, only timestamps that break the time linearity are registered, meaning that in the\r\n     * best case, all timestamps are linear, the table contains only min and max.\r\n     */function buildLookupTable(timestamps,min,max,distribution){if(distribution==='linear'||!timestamps.length){return[{time:min,pos:0},{time:max,pos:1}];}var table=[];var items=[min];var i,ilen,prev,curr,next;for(i=0,ilen=timestamps.length;i<ilen;++i){curr=timestamps[i];if(curr>min&&curr<max){items.push(curr);}}items.push(max);for(i=0,ilen=items.length;i<ilen;++i){next=items[i+1];prev=items[i-1];curr=items[i];// only add points that breaks the scale linearity\nif(prev===undefined||next===undefined||Math.round((next+prev)/2)!==curr){table.push({time:curr,pos:i/(ilen-1)});}}return table;}// @see adapted from https://www.anujgakhar.com/2014/03/01/binary-search-in-javascript/\nfunction lookup(table,key,value){var lo=0;var hi=table.length-1;var mid,i0,i1;while(lo>=0&&lo<=hi){mid=lo+hi>>1;i0=table[mid-1]||null;i1=table[mid];if(!i0){// given value is outside table (before first item)\nreturn{lo:null,hi:i1};}else if(i1[key]<value){lo=mid+1;}else if(i0[key]>value){hi=mid-1;}else{return{lo:i0,hi:i1};}}// given value is outside table (after last item)\nreturn{lo:i1,hi:null};}/**\r\n     * Linearly interpolates the given source `value` using the table items `skey` values and\r\n     * returns the associated `tkey` value. For example, interpolate(table, 'time', 42, 'pos')\r\n     * returns the position for a timestamp equal to 42. If value is out of bounds, values at\r\n     * index [0, 1] or [n - 1, n] are used for the interpolation.\r\n     */function interpolate$1(table,skey,sval,tkey){var range=lookup(table,skey,sval);// Note: the lookup table ALWAYS contains at least 2 items (min and max)\nvar prev=!range.lo?table[0]:!range.hi?table[table.length-2]:range.lo;var next=!range.lo?table[1]:!range.hi?table[table.length-1]:range.hi;var span=next[skey]-prev[skey];var ratio=span?(sval-prev[skey])/span:0;var offset=(next[tkey]-prev[tkey])*ratio;return prev[tkey]+offset;}function toTimestamp(scale,input){var adapter=scale._adapter;var options=scale.options.time;var parser=options.parser;var format=parser||options.format;var value=input;if(typeof parser==='function'){value=parser(value);}// Only parse if its not a timestamp already\nif(!helpers$1.isFinite(value)){value=typeof format==='string'?adapter.parse(value,format):adapter.parse(value);}if(value!==null){return+value;}// Labels are in an incompatible format and no `parser` has been provided.\n// The user might still use the deprecated `format` option for parsing.\nif(!parser&&typeof format==='function'){value=format(input);// `format` could return something else than a timestamp, if so, parse it\nif(!helpers$1.isFinite(value)){value=adapter.parse(value);}}return value;}function parse(scale,input){if(helpers$1.isNullOrUndef(input)){return null;}var options=scale.options.time;var value=toTimestamp(scale,scale.getRightValue(input));if(value===null){return value;}if(options.round){value=+scale._adapter.startOf(value,options.round);}return value;}/**\r\n     * Figures out what unit results in an appropriate number of auto-generated ticks\r\n     */function determineUnitForAutoTicks(minUnit,min,max,capacity){var ilen=UNITS.length;var i,interval,factor;for(i=UNITS.indexOf(minUnit);i<ilen-1;++i){interval=INTERVALS[UNITS[i]];factor=interval.steps?interval.steps:MAX_INTEGER;if(interval.common&&Math.ceil((max-min)/(factor*interval.size))<=capacity){return UNITS[i];}}return UNITS[ilen-1];}/**\r\n     * Figures out what unit to format a set of ticks with\r\n     */function determineUnitForFormatting(scale,numTicks,minUnit,min,max){var i,unit;for(i=UNITS.length-1;i>=UNITS.indexOf(minUnit);i--){unit=UNITS[i];if(INTERVALS[unit].common&&scale._adapter.diff(max,min,unit)>=numTicks-1){return unit;}}return UNITS[minUnit?UNITS.indexOf(minUnit):0];}function determineMajorUnit(unit){for(var i=UNITS.indexOf(unit)+1,ilen=UNITS.length;i<ilen;++i){if(INTERVALS[UNITS[i]].common){return UNITS[i];}}}/**\r\n     * Generates a maximum of `capacity` timestamps between min and max, rounded to the\r\n     * `minor` unit using the given scale time `options`.\r\n     * Important: this method can return ticks outside the min and max range, it's the\r\n     * responsibility of the calling code to clamp values if needed.\r\n     */function generate(scale,min,max,capacity){var adapter=scale._adapter;var options=scale.options;var timeOpts=options.time;var minor=timeOpts.unit||determineUnitForAutoTicks(timeOpts.minUnit,min,max,capacity);var stepSize=resolve$5([timeOpts.stepSize,timeOpts.unitStepSize,1]);var weekday=minor==='week'?timeOpts.isoWeekday:false;var first=min;var ticks=[];var time;// For 'week' unit, handle the first day of week option\nif(weekday){first=+adapter.startOf(first,'isoWeek',weekday);}// Align first ticks on unit\nfirst=+adapter.startOf(first,weekday?'day':minor);// Prevent browser from freezing in case user options request millions of milliseconds\nif(adapter.diff(max,min,minor)>100000*stepSize){throw min+' and '+max+' are too far apart with stepSize of '+stepSize+' '+minor;}for(time=first;time<max;time=+adapter.add(time,stepSize,minor)){ticks.push(time);}if(time===max||options.bounds==='ticks'){ticks.push(time);}return ticks;}/**\r\n     * Returns the start and end offsets from edges in the form of {start, end}\r\n     * where each value is a relative width to the scale and ranges between 0 and 1.\r\n     * They add extra margins on the both sides by scaling down the original scale.\r\n     * Offsets are added when the `offset` option is true.\r\n     */function computeOffsets(table,ticks,min,max,options){var start=0;var end=0;var first,last;if(options.offset&&ticks.length){first=interpolate$1(table,'time',ticks[0],'pos');if(ticks.length===1){start=1-first;}else{start=(interpolate$1(table,'time',ticks[1],'pos')-first)/2;}last=interpolate$1(table,'time',ticks[ticks.length-1],'pos');if(ticks.length===1){end=last;}else{end=(last-interpolate$1(table,'time',ticks[ticks.length-2],'pos'))/2;}}return{start:start,end:end,factor:1/(start+1+end)};}function setMajorTicks(scale,ticks,map,majorUnit){var adapter=scale._adapter;var first=+adapter.startOf(ticks[0].value,majorUnit);var last=ticks[ticks.length-1].value;var major,index;for(major=first;major<=last;major=+adapter.add(major,1,majorUnit)){index=map[major];if(index>=0){ticks[index].major=true;}}return ticks;}function ticksFromTimestamps(scale,values,majorUnit){var ticks=[];var map={};var ilen=values.length;var i,value;for(i=0;i<ilen;++i){value=values[i];map[value]=i;ticks.push({value:value,major:false});}// We set the major ticks separately from the above loop because calling startOf for every tick\n// is expensive when there is a large number of ticks\nreturn ilen===0||!majorUnit?ticks:setMajorTicks(scale,ticks,map,majorUnit);}var defaultConfig$4={position:'bottom',/**\r\n         * Data distribution along the scale:\r\n         * - 'linear': data are spread according to their time (distances can vary),\r\n         * - 'series': data are spread at the same distance from each other.\r\n         * @see https://github.com/chartjs/Chart.js/pull/4507\r\n         * @since 2.7.0\r\n         */distribution:'linear',/**\r\n         * Scale boundary strategy (bypassed by min/max time options)\r\n         * - `data`: make sure data are fully visible, ticks outside are removed\r\n         * - `ticks`: make sure ticks are fully visible, data outside are truncated\r\n         * @see https://github.com/chartjs/Chart.js/pull/4556\r\n         * @since 2.7.0\r\n         */bounds:'data',adapters:{},time:{parser:false,// false == a pattern string from https://momentjs.com/docs/#/parsing/string-format/ or a custom callback that converts its argument to a moment\nunit:false,// false == automatic or override with week, month, year, etc.\nround:false,// none, or override with week, month, year, etc.\ndisplayFormat:false,// DEPRECATED\nisoWeekday:false,// override week start day - see https://momentjs.com/docs/#/get-set/iso-weekday/\nminUnit:'millisecond',displayFormats:{}},ticks:{autoSkip:false,/**\r\n             * Ticks generation input values:\r\n             * - 'auto': generates \"optimal\" ticks based on scale size and time options.\r\n             * - 'data': generates ticks from data (including labels from data {t|x|y} objects).\r\n             * - 'labels': generates ticks from user given `data.labels` values ONLY.\r\n             * @see https://github.com/chartjs/Chart.js/pull/4507\r\n             * @since 2.7.0\r\n             */source:'auto',major:{enabled:false}}};var scale_time=core_scale.extend({initialize:function(){this.mergeTicksOptions();core_scale.prototype.initialize.call(this);},update:function(){var me=this;var options=me.options;var time=options.time||(options.time={});var adapter=me._adapter=new core_adapters._date(options.adapters.date);// DEPRECATIONS: output a message only one time per update\ndeprecated$1('time scale',time.format,'time.format','time.parser');deprecated$1('time scale',time.min,'time.min','ticks.min');deprecated$1('time scale',time.max,'time.max','ticks.max');// Backward compatibility: before introducing adapter, `displayFormats` was\n// supposed to contain *all* unit/string pairs but this can't be resolved\n// when loading the scale (adapters are loaded afterward), so let's populate\n// missing formats on update\nhelpers$1.mergeIf(time.displayFormats,adapter.formats());return core_scale.prototype.update.apply(me,arguments);},/**\r\n         * Allows data to be referenced via 't' attribute\r\n         */getRightValue:function(rawValue){if(rawValue&&rawValue.t!==undefined){rawValue=rawValue.t;}return core_scale.prototype.getRightValue.call(this,rawValue);},determineDataLimits:function(){var me=this;var chart=me.chart;var adapter=me._adapter;var options=me.options;var unit=options.time.unit||'day';var min=MAX_INTEGER;var max=MIN_INTEGER;var timestamps=[];var datasets=[];var labels=[];var i,j,ilen,jlen,data,timestamp,labelsAdded;var dataLabels=me._getLabels();for(i=0,ilen=dataLabels.length;i<ilen;++i){labels.push(parse(me,dataLabels[i]));}for(i=0,ilen=(chart.data.datasets||[]).length;i<ilen;++i){if(chart.isDatasetVisible(i)){data=chart.data.datasets[i].data;// Let's consider that all data have the same format.\nif(helpers$1.isObject(data[0])){datasets[i]=[];for(j=0,jlen=data.length;j<jlen;++j){timestamp=parse(me,data[j]);timestamps.push(timestamp);datasets[i][j]=timestamp;}}else{datasets[i]=labels.slice(0);if(!labelsAdded){timestamps=timestamps.concat(labels);labelsAdded=true;}}}else{datasets[i]=[];}}if(labels.length){min=Math.min(min,labels[0]);max=Math.max(max,labels[labels.length-1]);}if(timestamps.length){timestamps=ilen>1?arrayUnique(timestamps).sort(sorter):timestamps.sort(sorter);min=Math.min(min,timestamps[0]);max=Math.max(max,timestamps[timestamps.length-1]);}min=parse(me,getMin(options))||min;max=parse(me,getMax(options))||max;// In case there is no valid min/max, set limits based on unit time option\nmin=min===MAX_INTEGER?+adapter.startOf(Date.now(),unit):min;max=max===MIN_INTEGER?+adapter.endOf(Date.now(),unit)+1:max;// Make sure that max is strictly higher than min (required by the lookup table)\nme.min=Math.min(min,max);me.max=Math.max(min+1,max);// PRIVATE\nme._table=[];me._timestamps={data:timestamps,datasets:datasets,labels:labels};},buildTicks:function(){var me=this;var min=me.min;var max=me.max;var options=me.options;var tickOpts=options.ticks;var timeOpts=options.time;var timestamps=me._timestamps;var ticks=[];var capacity=me.getLabelCapacity(min);var source=tickOpts.source;var distribution=options.distribution;var i,ilen,timestamp;if(source==='data'||source==='auto'&&distribution==='series'){timestamps=timestamps.data;}else if(source==='labels'){timestamps=timestamps.labels;}else{timestamps=generate(me,min,max,capacity);}if(options.bounds==='ticks'&&timestamps.length){min=timestamps[0];max=timestamps[timestamps.length-1];}// Enforce limits with user min/max options\nmin=parse(me,getMin(options))||min;max=parse(me,getMax(options))||max;// Remove ticks outside the min/max range\nfor(i=0,ilen=timestamps.length;i<ilen;++i){timestamp=timestamps[i];if(timestamp>=min&&timestamp<=max){ticks.push(timestamp);}}me.min=min;me.max=max;// PRIVATE\n// determineUnitForFormatting relies on the number of ticks so we don't use it when\n// autoSkip is enabled because we don't yet know what the final number of ticks will be\nme._unit=timeOpts.unit||(tickOpts.autoSkip?determineUnitForAutoTicks(timeOpts.minUnit,me.min,me.max,capacity):determineUnitForFormatting(me,ticks.length,timeOpts.minUnit,me.min,me.max));me._majorUnit=!tickOpts.major.enabled||me._unit==='year'?undefined:determineMajorUnit(me._unit);me._table=buildLookupTable(me._timestamps.data,min,max,distribution);me._offsets=computeOffsets(me._table,ticks,min,max,options);if(tickOpts.reverse){ticks.reverse();}return ticksFromTimestamps(me,ticks,me._majorUnit);},getLabelForIndex:function(index,datasetIndex){var me=this;var adapter=me._adapter;var data=me.chart.data;var timeOpts=me.options.time;var label=data.labels&&index<data.labels.length?data.labels[index]:'';var value=data.datasets[datasetIndex].data[index];if(helpers$1.isObject(value)){label=me.getRightValue(value);}if(timeOpts.tooltipFormat){return adapter.format(toTimestamp(me,label),timeOpts.tooltipFormat);}if(typeof label==='string'){return label;}return adapter.format(toTimestamp(me,label),timeOpts.displayFormats.datetime);},/**\r\n         * Function to format an individual tick mark\r\n         * @private\r\n         */tickFormatFunction:function(time,index,ticks,format){var me=this;var adapter=me._adapter;var options=me.options;var formats=options.time.displayFormats;var minorFormat=formats[me._unit];var majorUnit=me._majorUnit;var majorFormat=formats[majorUnit];var tick=ticks[index];var tickOpts=options.ticks;var major=majorUnit&&majorFormat&&tick&&tick.major;var label=adapter.format(time,format?format:major?majorFormat:minorFormat);var nestedTickOpts=major?tickOpts.major:tickOpts.minor;var formatter=resolve$5([nestedTickOpts.callback,nestedTickOpts.userCallback,tickOpts.callback,tickOpts.userCallback]);return formatter?formatter(label,index,ticks):label;},convertTicksToLabels:function(ticks){var labels=[];var i,ilen;for(i=0,ilen=ticks.length;i<ilen;++i){labels.push(this.tickFormatFunction(ticks[i].value,i,ticks));}return labels;},/**\r\n         * @private\r\n         */getPixelForOffset:function(time){var me=this;var offsets=me._offsets;var pos=interpolate$1(me._table,'time',time,'pos');return me.getPixelForDecimal((offsets.start+pos)*offsets.factor);},getPixelForValue:function(value,index,datasetIndex){var me=this;var time=null;if(index!==undefined&&datasetIndex!==undefined){time=me._timestamps.datasets[datasetIndex][index];}if(time===null){time=parse(me,value);}if(time!==null){return me.getPixelForOffset(time);}},getPixelForTick:function(index){var ticks=this.getTicks();return index>=0&&index<ticks.length?this.getPixelForOffset(ticks[index].value):null;},getValueForPixel:function(pixel){var me=this;var offsets=me._offsets;var pos=me.getDecimalForPixel(pixel)/offsets.factor-offsets.end;var time=interpolate$1(me._table,'pos',pos,'time');// DEPRECATION, we should return time directly\nreturn me._adapter._create(time);},/**\r\n         * @private\r\n         */_getLabelSize:function(label){var me=this;var ticksOpts=me.options.ticks;var tickLabelWidth=me.ctx.measureText(label).width;var angle=helpers$1.toRadians(me.isHorizontal()?ticksOpts.maxRotation:ticksOpts.minRotation);var cosRotation=Math.cos(angle);var sinRotation=Math.sin(angle);var tickFontSize=valueOrDefault$d(ticksOpts.fontSize,core_defaults.global.defaultFontSize);return{w:tickLabelWidth*cosRotation+tickFontSize*sinRotation,h:tickLabelWidth*sinRotation+tickFontSize*cosRotation};},/**\r\n         * Crude approximation of what the label width might be\r\n         * @private\r\n         */getLabelWidth:function(label){return this._getLabelSize(label).w;},/**\r\n         * @private\r\n         */getLabelCapacity:function(exampleTime){var me=this;var timeOpts=me.options.time;var displayFormats=timeOpts.displayFormats;// pick the longest format (milliseconds) for guestimation\nvar format=displayFormats[timeOpts.unit]||displayFormats.millisecond;var exampleLabel=me.tickFormatFunction(exampleTime,0,ticksFromTimestamps(me,[exampleTime],me._majorUnit),format);var size=me._getLabelSize(exampleLabel);var capacity=Math.floor(me.isHorizontal()?me.width/size.w:me.height/size.h);if(me.options.offset){capacity--;}return capacity>0?capacity:1;}});// INTERNAL: static default options, registered in src/index.js\nvar _defaults$4=defaultConfig$4;scale_time._defaults=_defaults$4;var scales={category:scale_category,linear:scale_linear,logarithmic:scale_logarithmic,radialLinear:scale_radialLinear,time:scale_time};var moment=createCommonjsModule(function(module,exports){(function(global,factory){module.exports=factory();})(commonjsGlobal,function(){var hookCallback;function hooks(){return hookCallback.apply(null,arguments);}// This is done to register the method called with moment()\n// without creating circular dependencies.\nfunction setHookCallback(callback){hookCallback=callback;}function isArray(input){return input instanceof Array||Object.prototype.toString.call(input)==='[object Array]';}function isObject(input){// IE8 will treat undefined and null as object if it wasn't for\n// input != null\nreturn input!=null&&Object.prototype.toString.call(input)==='[object Object]';}function isObjectEmpty(obj){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(obj).length===0;}else{var k;for(k in obj){if(obj.hasOwnProperty(k)){return false;}}return true;}}function isUndefined(input){return input===void 0;}function isNumber(input){return typeof input==='number'||Object.prototype.toString.call(input)==='[object Number]';}function isDate(input){return input instanceof Date||Object.prototype.toString.call(input)==='[object Date]';}function map(arr,fn){var res=[],i;for(i=0;i<arr.length;++i){res.push(fn(arr[i],i));}return res;}function hasOwnProp(a,b){return Object.prototype.hasOwnProperty.call(a,b);}function extend(a,b){for(var i in b){if(hasOwnProp(b,i)){a[i]=b[i];}}if(hasOwnProp(b,'toString')){a.toString=b.toString;}if(hasOwnProp(b,'valueOf')){a.valueOf=b.valueOf;}return a;}function createUTC(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,true).utc();}function defaultParsingFlags(){// We need to deep clone this object.\nreturn{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],meridiem:null,rfc2822:false,weekdayMismatch:false};}function getParsingFlags(m){if(m._pf==null){m._pf=defaultParsingFlags();}return m._pf;}var some;if(Array.prototype.some){some=Array.prototype.some;}else{some=function(fun){var t=Object(this);var len=t.length>>>0;for(var i=0;i<len;i++){if(i in t&&fun.call(this,t[i],i,t)){return true;}}return false;};}function isValid(m){if(m._isValid==null){var flags=getParsingFlags(m);var parsedParts=some.call(flags.parsedDateParts,function(i){return i!=null;});var isNowValid=!isNaN(m._d.getTime())&&flags.overflow<0&&!flags.empty&&!flags.invalidMonth&&!flags.invalidWeekday&&!flags.weekdayMismatch&&!flags.nullInput&&!flags.invalidFormat&&!flags.userInvalidated&&(!flags.meridiem||flags.meridiem&&parsedParts);if(m._strict){isNowValid=isNowValid&&flags.charsLeftOver===0&&flags.unusedTokens.length===0&&flags.bigHour===undefined;}if(Object.isFrozen==null||!Object.isFrozen(m)){m._isValid=isNowValid;}else{return isNowValid;}}return m._isValid;}function createInvalid(flags){var m=createUTC(NaN);if(flags!=null){extend(getParsingFlags(m),flags);}else{getParsingFlags(m).userInvalidated=true;}return m;}// Plugins that add properties should also add the key here (null value),\n// so we can properly clone ourselves.\nvar momentProperties=hooks.momentProperties=[];function copyConfig(to,from){var i,prop,val;if(!isUndefined(from._isAMomentObject)){to._isAMomentObject=from._isAMomentObject;}if(!isUndefined(from._i)){to._i=from._i;}if(!isUndefined(from._f)){to._f=from._f;}if(!isUndefined(from._l)){to._l=from._l;}if(!isUndefined(from._strict)){to._strict=from._strict;}if(!isUndefined(from._tzm)){to._tzm=from._tzm;}if(!isUndefined(from._isUTC)){to._isUTC=from._isUTC;}if(!isUndefined(from._offset)){to._offset=from._offset;}if(!isUndefined(from._pf)){to._pf=getParsingFlags(from);}if(!isUndefined(from._locale)){to._locale=from._locale;}if(momentProperties.length>0){for(i=0;i<momentProperties.length;i++){prop=momentProperties[i];val=from[prop];if(!isUndefined(val)){to[prop]=val;}}}return to;}var updateInProgress=false;// Moment prototype object\nfunction Moment(config){copyConfig(this,config);this._d=new Date(config._d!=null?config._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN);}// Prevent infinite loop in case updateOffset creates new moment\n// objects.\nif(updateInProgress===false){updateInProgress=true;hooks.updateOffset(this);updateInProgress=false;}}function isMoment(obj){return obj instanceof Moment||obj!=null&&obj._isAMomentObject!=null;}function absFloor(number){if(number<0){// -0 -> 0\nreturn Math.ceil(number)||0;}else{return Math.floor(number);}}function toInt(argumentForCoercion){var coercedNumber=+argumentForCoercion,value=0;if(coercedNumber!==0&&isFinite(coercedNumber)){value=absFloor(coercedNumber);}return value;}// compare two arrays, return the number of differences\nfunction compareArrays(array1,array2,dontConvert){var len=Math.min(array1.length,array2.length),lengthDiff=Math.abs(array1.length-array2.length),diffs=0,i;for(i=0;i<len;i++){if(dontConvert&&array1[i]!==array2[i]||!dontConvert&&toInt(array1[i])!==toInt(array2[i])){diffs++;}}return diffs+lengthDiff;}function warn(msg){if(hooks.suppressDeprecationWarnings===false&&typeof console!=='undefined'&&console.warn){console.warn('Deprecation warning: '+msg);}}function deprecate(msg,fn){var firstTime=true;return extend(function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,msg);}if(firstTime){var args=[];var arg;for(var i=0;i<arguments.length;i++){arg='';if(typeof arguments[i]==='object'){arg+='\\n['+i+'] ';for(var key in arguments[0]){arg+=key+': '+arguments[0][key]+', ';}arg=arg.slice(0,-2);// Remove trailing comma and space\n}else{arg=arguments[i];}args.push(arg);}warn(msg+'\\nArguments: '+Array.prototype.slice.call(args).join('')+'\\n'+new Error().stack);firstTime=false;}return fn.apply(this,arguments);},fn);}var deprecations={};function deprecateSimple(name,msg){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(name,msg);}if(!deprecations[name]){warn(msg);deprecations[name]=true;}}hooks.suppressDeprecationWarnings=false;hooks.deprecationHandler=null;function isFunction(input){return input instanceof Function||Object.prototype.toString.call(input)==='[object Function]';}function set(config){var prop,i;for(i in config){prop=config[i];if(isFunction(prop)){this[i]=prop;}else{this['_'+i]=prop;}}this._config=config;// Lenient ordinal parsing accepts just a number in addition to\n// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n// TODO: Remove \"ordinalParse\" fallback in next major release.\nthis._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+'|'+/\\d{1,2}/.source);}function mergeConfigs(parentConfig,childConfig){var res=extend({},parentConfig),prop;for(prop in childConfig){if(hasOwnProp(childConfig,prop)){if(isObject(parentConfig[prop])&&isObject(childConfig[prop])){res[prop]={};extend(res[prop],parentConfig[prop]);extend(res[prop],childConfig[prop]);}else if(childConfig[prop]!=null){res[prop]=childConfig[prop];}else{delete res[prop];}}}for(prop in parentConfig){if(hasOwnProp(parentConfig,prop)&&!hasOwnProp(childConfig,prop)&&isObject(parentConfig[prop])){// make sure changes to properties don't modify parent config\nres[prop]=extend({},res[prop]);}}return res;}function Locale(config){if(config!=null){this.set(config);}}var keys;if(Object.keys){keys=Object.keys;}else{keys=function(obj){var i,res=[];for(i in obj){if(hasOwnProp(obj,i)){res.push(i);}}return res;};}var defaultCalendar={sameDay:'[Today at] LT',nextDay:'[Tomorrow at] LT',nextWeek:'dddd [at] LT',lastDay:'[Yesterday at] LT',lastWeek:'[Last] dddd [at] LT',sameElse:'L'};function calendar(key,mom,now){var output=this._calendar[key]||this._calendar['sameElse'];return isFunction(output)?output.call(mom,now):output;}var defaultLongDateFormat={LTS:'h:mm:ss A',LT:'h:mm A',L:'MM/DD/YYYY',LL:'MMMM D, YYYY',LLL:'MMMM D, YYYY h:mm A',LLLL:'dddd, MMMM D, YYYY h:mm A'};function longDateFormat(key){var format=this._longDateFormat[key],formatUpper=this._longDateFormat[key.toUpperCase()];if(format||!formatUpper){return format;}this._longDateFormat[key]=formatUpper.replace(/MMMM|MM|DD|dddd/g,function(val){return val.slice(1);});return this._longDateFormat[key];}var defaultInvalidDate='Invalid date';function invalidDate(){return this._invalidDate;}var defaultOrdinal='%d';var defaultDayOfMonthOrdinalParse=/\\d{1,2}/;function ordinal(number){return this._ordinal.replace('%d',number);}var defaultRelativeTime={future:'in %s',past:'%s ago',s:'a few seconds',ss:'%d seconds',m:'a minute',mm:'%d minutes',h:'an hour',hh:'%d hours',d:'a day',dd:'%d days',M:'a month',MM:'%d months',y:'a year',yy:'%d years'};function relativeTime(number,withoutSuffix,string,isFuture){var output=this._relativeTime[string];return isFunction(output)?output(number,withoutSuffix,string,isFuture):output.replace(/%d/i,number);}function pastFuture(diff,output){var format=this._relativeTime[diff>0?'future':'past'];return isFunction(format)?format(output):format.replace(/%s/i,output);}var aliases={};function addUnitAlias(unit,shorthand){var lowerCase=unit.toLowerCase();aliases[lowerCase]=aliases[lowerCase+'s']=aliases[shorthand]=unit;}function normalizeUnits(units){return typeof units==='string'?aliases[units]||aliases[units.toLowerCase()]:undefined;}function normalizeObjectUnits(inputObject){var normalizedInput={},normalizedProp,prop;for(prop in inputObject){if(hasOwnProp(inputObject,prop)){normalizedProp=normalizeUnits(prop);if(normalizedProp){normalizedInput[normalizedProp]=inputObject[prop];}}}return normalizedInput;}var priorities={};function addUnitPriority(unit,priority){priorities[unit]=priority;}function getPrioritizedUnits(unitsObj){var units=[];for(var u in unitsObj){units.push({unit:u,priority:priorities[u]});}units.sort(function(a,b){return a.priority-b.priority;});return units;}function zeroFill(number,targetLength,forceSign){var absNumber=''+Math.abs(number),zerosToFill=targetLength-absNumber.length,sign=number>=0;return(sign?forceSign?'+':'':'-')+Math.pow(10,Math.max(0,zerosToFill)).toString().substr(1)+absNumber;}var formattingTokens=/(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;var localFormattingTokens=/(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g;var formatFunctions={};var formatTokenFunctions={};// token:    'M'\n// padded:   ['MM', 2]\n// ordinal:  'Mo'\n// callback: function () { this.month() + 1 }\nfunction addFormatToken(token,padded,ordinal,callback){var func=callback;if(typeof callback==='string'){func=function(){return this[callback]();};}if(token){formatTokenFunctions[token]=func;}if(padded){formatTokenFunctions[padded[0]]=function(){return zeroFill(func.apply(this,arguments),padded[1],padded[2]);};}if(ordinal){formatTokenFunctions[ordinal]=function(){return this.localeData().ordinal(func.apply(this,arguments),token);};}}function removeFormattingTokens(input){if(input.match(/\\[[\\s\\S]/)){return input.replace(/^\\[|\\]$/g,'');}return input.replace(/\\\\/g,'');}function makeFormatFunction(format){var array=format.match(formattingTokens),i,length;for(i=0,length=array.length;i<length;i++){if(formatTokenFunctions[array[i]]){array[i]=formatTokenFunctions[array[i]];}else{array[i]=removeFormattingTokens(array[i]);}}return function(mom){var output='',i;for(i=0;i<length;i++){output+=isFunction(array[i])?array[i].call(mom,format):array[i];}return output;};}// format date using native date object\nfunction formatMoment(m,format){if(!m.isValid()){return m.localeData().invalidDate();}format=expandFormat(format,m.localeData());formatFunctions[format]=formatFunctions[format]||makeFormatFunction(format);return formatFunctions[format](m);}function expandFormat(format,locale){var i=5;function replaceLongDateFormatTokens(input){return locale.longDateFormat(input)||input;}localFormattingTokens.lastIndex=0;while(i>=0&&localFormattingTokens.test(format)){format=format.replace(localFormattingTokens,replaceLongDateFormatTokens);localFormattingTokens.lastIndex=0;i-=1;}return format;}var match1=/\\d/;//       0 - 9\nvar match2=/\\d\\d/;//      00 - 99\nvar match3=/\\d{3}/;//     000 - 999\nvar match4=/\\d{4}/;//    0000 - 9999\nvar match6=/[+-]?\\d{6}/;// -999999 - 999999\nvar match1to2=/\\d\\d?/;//       0 - 99\nvar match3to4=/\\d\\d\\d\\d?/;//     999 - 9999\nvar match5to6=/\\d\\d\\d\\d\\d\\d?/;//   99999 - 999999\nvar match1to3=/\\d{1,3}/;//       0 - 999\nvar match1to4=/\\d{1,4}/;//       0 - 9999\nvar match1to6=/[+-]?\\d{1,6}/;// -999999 - 999999\nvar matchUnsigned=/\\d+/;//       0 - inf\nvar matchSigned=/[+-]?\\d+/;//    -inf - inf\nvar matchOffset=/Z|[+-]\\d\\d:?\\d\\d/gi;// +00:00 -00:00 +0000 -0000 or Z\nvar matchShortOffset=/Z|[+-]\\d\\d(?::?\\d\\d)?/gi;// +00 -00 +00:00 -00:00 +0000 -0000 or Z\nvar matchTimestamp=/[+-]?\\d+(\\.\\d{1,3})?/;// 123456789 123456789.123\n// any word (or two) characters or numbers including two/three word month in arabic.\n// includes scottish gaelic two word and hyphenated months\nvar matchWord=/[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i;var regexes={};function addRegexToken(token,regex,strictRegex){regexes[token]=isFunction(regex)?regex:function(isStrict,localeData){return isStrict&&strictRegex?strictRegex:regex;};}function getParseRegexForToken(token,config){if(!hasOwnProp(regexes,token)){return new RegExp(unescapeFormat(token));}return regexes[token](config._strict,config._locale);}// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\nfunction unescapeFormat(s){return regexEscape(s.replace('\\\\','').replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,function(matched,p1,p2,p3,p4){return p1||p2||p3||p4;}));}function regexEscape(s){return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,'\\\\$&');}var tokens={};function addParseToken(token,callback){var i,func=callback;if(typeof token==='string'){token=[token];}if(isNumber(callback)){func=function(input,array){array[callback]=toInt(input);};}for(i=0;i<token.length;i++){tokens[token[i]]=func;}}function addWeekParseToken(token,callback){addParseToken(token,function(input,array,config,token){config._w=config._w||{};callback(input,config._w,config,token);});}function addTimeToArrayFromToken(token,input,config){if(input!=null&&hasOwnProp(tokens,token)){tokens[token](input,config._a,config,token);}}var YEAR=0;var MONTH=1;var DATE=2;var HOUR=3;var MINUTE=4;var SECOND=5;var MILLISECOND=6;var WEEK=7;var WEEKDAY=8;// FORMATTING\naddFormatToken('Y',0,0,function(){var y=this.year();return y<=9999?''+y:'+'+y;});addFormatToken(0,['YY',2],0,function(){return this.year()%100;});addFormatToken(0,['YYYY',4],0,'year');addFormatToken(0,['YYYYY',5],0,'year');addFormatToken(0,['YYYYYY',6,true],0,'year');// ALIASES\naddUnitAlias('year','y');// PRIORITIES\naddUnitPriority('year',1);// PARSING\naddRegexToken('Y',matchSigned);addRegexToken('YY',match1to2,match2);addRegexToken('YYYY',match1to4,match4);addRegexToken('YYYYY',match1to6,match6);addRegexToken('YYYYYY',match1to6,match6);addParseToken(['YYYYY','YYYYYY'],YEAR);addParseToken('YYYY',function(input,array){array[YEAR]=input.length===2?hooks.parseTwoDigitYear(input):toInt(input);});addParseToken('YY',function(input,array){array[YEAR]=hooks.parseTwoDigitYear(input);});addParseToken('Y',function(input,array){array[YEAR]=parseInt(input,10);});// HELPERS\nfunction daysInYear(year){return isLeapYear(year)?366:365;}function isLeapYear(year){return year%4===0&&year%100!==0||year%400===0;}// HOOKS\nhooks.parseTwoDigitYear=function(input){return toInt(input)+(toInt(input)>68?1900:2000);};// MOMENTS\nvar getSetYear=makeGetSet('FullYear',true);function getIsLeapYear(){return isLeapYear(this.year());}function makeGetSet(unit,keepTime){return function(value){if(value!=null){set$1(this,unit,value);hooks.updateOffset(this,keepTime);return this;}else{return get(this,unit);}};}function get(mom,unit){return mom.isValid()?mom._d['get'+(mom._isUTC?'UTC':'')+unit]():NaN;}function set$1(mom,unit,value){if(mom.isValid()&&!isNaN(value)){if(unit==='FullYear'&&isLeapYear(mom.year())&&mom.month()===1&&mom.date()===29){mom._d['set'+(mom._isUTC?'UTC':'')+unit](value,mom.month(),daysInMonth(value,mom.month()));}else{mom._d['set'+(mom._isUTC?'UTC':'')+unit](value);}}}// MOMENTS\nfunction stringGet(units){units=normalizeUnits(units);if(isFunction(this[units])){return this[units]();}return this;}function stringSet(units,value){if(typeof units==='object'){units=normalizeObjectUnits(units);var prioritized=getPrioritizedUnits(units);for(var i=0;i<prioritized.length;i++){this[prioritized[i].unit](units[prioritized[i].unit]);}}else{units=normalizeUnits(units);if(isFunction(this[units])){return this[units](value);}}return this;}function mod(n,x){return(n%x+x)%x;}var indexOf;if(Array.prototype.indexOf){indexOf=Array.prototype.indexOf;}else{indexOf=function(o){// I know\nvar i;for(i=0;i<this.length;++i){if(this[i]===o){return i;}}return-1;};}function daysInMonth(year,month){if(isNaN(year)||isNaN(month)){return NaN;}var modMonth=mod(month,12);year+=(month-modMonth)/12;return modMonth===1?isLeapYear(year)?29:28:31-modMonth%7%2;}// FORMATTING\naddFormatToken('M',['MM',2],'Mo',function(){return this.month()+1;});addFormatToken('MMM',0,0,function(format){return this.localeData().monthsShort(this,format);});addFormatToken('MMMM',0,0,function(format){return this.localeData().months(this,format);});// ALIASES\naddUnitAlias('month','M');// PRIORITY\naddUnitPriority('month',8);// PARSING\naddRegexToken('M',match1to2);addRegexToken('MM',match1to2,match2);addRegexToken('MMM',function(isStrict,locale){return locale.monthsShortRegex(isStrict);});addRegexToken('MMMM',function(isStrict,locale){return locale.monthsRegex(isStrict);});addParseToken(['M','MM'],function(input,array){array[MONTH]=toInt(input)-1;});addParseToken(['MMM','MMMM'],function(input,array,config,token){var month=config._locale.monthsParse(input,token,config._strict);// if we didn't find a month name, mark the date as invalid.\nif(month!=null){array[MONTH]=month;}else{getParsingFlags(config).invalidMonth=input;}});// LOCALES\nvar MONTHS_IN_FORMAT=/D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/;var defaultLocaleMonths='January_February_March_April_May_June_July_August_September_October_November_December'.split('_');function localeMonths(m,format){if(!m){return isArray(this._months)?this._months:this._months['standalone'];}return isArray(this._months)?this._months[m.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(format)?'format':'standalone'][m.month()];}var defaultLocaleMonthsShort='Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');function localeMonthsShort(m,format){if(!m){return isArray(this._monthsShort)?this._monthsShort:this._monthsShort['standalone'];}return isArray(this._monthsShort)?this._monthsShort[m.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(format)?'format':'standalone'][m.month()];}function handleStrictParse(monthName,format,strict){var i,ii,mom,llc=monthName.toLocaleLowerCase();if(!this._monthsParse){// this is not used\nthis._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(i=0;i<12;++i){mom=createUTC([2000,i]);this._shortMonthsParse[i]=this.monthsShort(mom,'').toLocaleLowerCase();this._longMonthsParse[i]=this.months(mom,'').toLocaleLowerCase();}}if(strict){if(format==='MMM'){ii=indexOf.call(this._shortMonthsParse,llc);return ii!==-1?ii:null;}else{ii=indexOf.call(this._longMonthsParse,llc);return ii!==-1?ii:null;}}else{if(format==='MMM'){ii=indexOf.call(this._shortMonthsParse,llc);if(ii!==-1){return ii;}ii=indexOf.call(this._longMonthsParse,llc);return ii!==-1?ii:null;}else{ii=indexOf.call(this._longMonthsParse,llc);if(ii!==-1){return ii;}ii=indexOf.call(this._shortMonthsParse,llc);return ii!==-1?ii:null;}}}function localeMonthsParse(monthName,format,strict){var i,mom,regex;if(this._monthsParseExact){return handleStrictParse.call(this,monthName,format,strict);}if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];}// TODO: add sorting\n// Sorting makes sure if one month (or abbr) is a prefix of another\n// see sorting in computeMonthsParse\nfor(i=0;i<12;i++){// make the regex if we don't have it already\nmom=createUTC([2000,i]);if(strict&&!this._longMonthsParse[i]){this._longMonthsParse[i]=new RegExp('^'+this.months(mom,'').replace('.','')+'$','i');this._shortMonthsParse[i]=new RegExp('^'+this.monthsShort(mom,'').replace('.','')+'$','i');}if(!strict&&!this._monthsParse[i]){regex='^'+this.months(mom,'')+'|^'+this.monthsShort(mom,'');this._monthsParse[i]=new RegExp(regex.replace('.',''),'i');}// test the regex\nif(strict&&format==='MMMM'&&this._longMonthsParse[i].test(monthName)){return i;}else if(strict&&format==='MMM'&&this._shortMonthsParse[i].test(monthName)){return i;}else if(!strict&&this._monthsParse[i].test(monthName)){return i;}}}// MOMENTS\nfunction setMonth(mom,value){var dayOfMonth;if(!mom.isValid()){// No op\nreturn mom;}if(typeof value==='string'){if(/^\\d+$/.test(value)){value=toInt(value);}else{value=mom.localeData().monthsParse(value);// TODO: Another silent failure?\nif(!isNumber(value)){return mom;}}}dayOfMonth=Math.min(mom.date(),daysInMonth(mom.year(),value));mom._d['set'+(mom._isUTC?'UTC':'')+'Month'](value,dayOfMonth);return mom;}function getSetMonth(value){if(value!=null){setMonth(this,value);hooks.updateOffset(this,true);return this;}else{return get(this,'Month');}}function getDaysInMonth(){return daysInMonth(this.year(),this.month());}var defaultMonthsShortRegex=matchWord;function monthsShortRegex(isStrict){if(this._monthsParseExact){if(!hasOwnProp(this,'_monthsRegex')){computeMonthsParse.call(this);}if(isStrict){return this._monthsShortStrictRegex;}else{return this._monthsShortRegex;}}else{if(!hasOwnProp(this,'_monthsShortRegex')){this._monthsShortRegex=defaultMonthsShortRegex;}return this._monthsShortStrictRegex&&isStrict?this._monthsShortStrictRegex:this._monthsShortRegex;}}var defaultMonthsRegex=matchWord;function monthsRegex(isStrict){if(this._monthsParseExact){if(!hasOwnProp(this,'_monthsRegex')){computeMonthsParse.call(this);}if(isStrict){return this._monthsStrictRegex;}else{return this._monthsRegex;}}else{if(!hasOwnProp(this,'_monthsRegex')){this._monthsRegex=defaultMonthsRegex;}return this._monthsStrictRegex&&isStrict?this._monthsStrictRegex:this._monthsRegex;}}function computeMonthsParse(){function cmpLenRev(a,b){return b.length-a.length;}var shortPieces=[],longPieces=[],mixedPieces=[],i,mom;for(i=0;i<12;i++){// make the regex if we don't have it already\nmom=createUTC([2000,i]);shortPieces.push(this.monthsShort(mom,''));longPieces.push(this.months(mom,''));mixedPieces.push(this.months(mom,''));mixedPieces.push(this.monthsShort(mom,''));}// Sorting makes sure if one month (or abbr) is a prefix of another it\n// will match the longer piece.\nshortPieces.sort(cmpLenRev);longPieces.sort(cmpLenRev);mixedPieces.sort(cmpLenRev);for(i=0;i<12;i++){shortPieces[i]=regexEscape(shortPieces[i]);longPieces[i]=regexEscape(longPieces[i]);}for(i=0;i<24;i++){mixedPieces[i]=regexEscape(mixedPieces[i]);}this._monthsRegex=new RegExp('^('+mixedPieces.join('|')+')','i');this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp('^('+longPieces.join('|')+')','i');this._monthsShortStrictRegex=new RegExp('^('+shortPieces.join('|')+')','i');}function createDate(y,m,d,h,M,s,ms){// can't just apply() to create a date:\n// https://stackoverflow.com/q/181348\nvar date;// the date constructor remaps years 0-99 to 1900-1999\nif(y<100&&y>=0){// preserve leap years using a full 400 year cycle, then reset\ndate=new Date(y+400,m,d,h,M,s,ms);if(isFinite(date.getFullYear())){date.setFullYear(y);}}else{date=new Date(y,m,d,h,M,s,ms);}return date;}function createUTCDate(y){var date;// the Date.UTC function remaps years 0-99 to 1900-1999\nif(y<100&&y>=0){var args=Array.prototype.slice.call(arguments);// preserve leap years using a full 400 year cycle, then reset\nargs[0]=y+400;date=new Date(Date.UTC.apply(null,args));if(isFinite(date.getUTCFullYear())){date.setUTCFullYear(y);}}else{date=new Date(Date.UTC.apply(null,arguments));}return date;}// start-of-first-week - start-of-year\nfunction firstWeekOffset(year,dow,doy){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)\nfwd=7+dow-doy,// first-week day local weekday -- which local weekday is fwd\nfwdlw=(7+createUTCDate(year,0,fwd).getUTCDay()-dow)%7;return-fwdlw+fwd-1;}// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\nfunction dayOfYearFromWeeks(year,week,weekday,dow,doy){var localWeekday=(7+weekday-dow)%7,weekOffset=firstWeekOffset(year,dow,doy),dayOfYear=1+7*(week-1)+localWeekday+weekOffset,resYear,resDayOfYear;if(dayOfYear<=0){resYear=year-1;resDayOfYear=daysInYear(resYear)+dayOfYear;}else if(dayOfYear>daysInYear(year)){resYear=year+1;resDayOfYear=dayOfYear-daysInYear(year);}else{resYear=year;resDayOfYear=dayOfYear;}return{year:resYear,dayOfYear:resDayOfYear};}function weekOfYear(mom,dow,doy){var weekOffset=firstWeekOffset(mom.year(),dow,doy),week=Math.floor((mom.dayOfYear()-weekOffset-1)/7)+1,resWeek,resYear;if(week<1){resYear=mom.year()-1;resWeek=week+weeksInYear(resYear,dow,doy);}else if(week>weeksInYear(mom.year(),dow,doy)){resWeek=week-weeksInYear(mom.year(),dow,doy);resYear=mom.year()+1;}else{resYear=mom.year();resWeek=week;}return{week:resWeek,year:resYear};}function weeksInYear(year,dow,doy){var weekOffset=firstWeekOffset(year,dow,doy),weekOffsetNext=firstWeekOffset(year+1,dow,doy);return(daysInYear(year)-weekOffset+weekOffsetNext)/7;}// FORMATTING\naddFormatToken('w',['ww',2],'wo','week');addFormatToken('W',['WW',2],'Wo','isoWeek');// ALIASES\naddUnitAlias('week','w');addUnitAlias('isoWeek','W');// PRIORITIES\naddUnitPriority('week',5);addUnitPriority('isoWeek',5);// PARSING\naddRegexToken('w',match1to2);addRegexToken('ww',match1to2,match2);addRegexToken('W',match1to2);addRegexToken('WW',match1to2,match2);addWeekParseToken(['w','ww','W','WW'],function(input,week,config,token){week[token.substr(0,1)]=toInt(input);});// HELPERS\n// LOCALES\nfunction localeWeek(mom){return weekOfYear(mom,this._week.dow,this._week.doy).week;}var defaultLocaleWeek={dow:0,// Sunday is the first day of the week.\ndoy:6// The week that contains Jan 6th is the first week of the year.\n};function localeFirstDayOfWeek(){return this._week.dow;}function localeFirstDayOfYear(){return this._week.doy;}// MOMENTS\nfunction getSetWeek(input){var week=this.localeData().week(this);return input==null?week:this.add((input-week)*7,'d');}function getSetISOWeek(input){var week=weekOfYear(this,1,4).week;return input==null?week:this.add((input-week)*7,'d');}// FORMATTING\naddFormatToken('d',0,'do','day');addFormatToken('dd',0,0,function(format){return this.localeData().weekdaysMin(this,format);});addFormatToken('ddd',0,0,function(format){return this.localeData().weekdaysShort(this,format);});addFormatToken('dddd',0,0,function(format){return this.localeData().weekdays(this,format);});addFormatToken('e',0,0,'weekday');addFormatToken('E',0,0,'isoWeekday');// ALIASES\naddUnitAlias('day','d');addUnitAlias('weekday','e');addUnitAlias('isoWeekday','E');// PRIORITY\naddUnitPriority('day',11);addUnitPriority('weekday',11);addUnitPriority('isoWeekday',11);// PARSING\naddRegexToken('d',match1to2);addRegexToken('e',match1to2);addRegexToken('E',match1to2);addRegexToken('dd',function(isStrict,locale){return locale.weekdaysMinRegex(isStrict);});addRegexToken('ddd',function(isStrict,locale){return locale.weekdaysShortRegex(isStrict);});addRegexToken('dddd',function(isStrict,locale){return locale.weekdaysRegex(isStrict);});addWeekParseToken(['dd','ddd','dddd'],function(input,week,config,token){var weekday=config._locale.weekdaysParse(input,token,config._strict);// if we didn't get a weekday name, mark the date as invalid\nif(weekday!=null){week.d=weekday;}else{getParsingFlags(config).invalidWeekday=input;}});addWeekParseToken(['d','e','E'],function(input,week,config,token){week[token]=toInt(input);});// HELPERS\nfunction parseWeekday(input,locale){if(typeof input!=='string'){return input;}if(!isNaN(input)){return parseInt(input,10);}input=locale.weekdaysParse(input);if(typeof input==='number'){return input;}return null;}function parseIsoWeekday(input,locale){if(typeof input==='string'){return locale.weekdaysParse(input)%7||7;}return isNaN(input)?null:input;}// LOCALES\nfunction shiftWeekdays(ws,n){return ws.slice(n,7).concat(ws.slice(0,n));}var defaultLocaleWeekdays='Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');function localeWeekdays(m,format){var weekdays=isArray(this._weekdays)?this._weekdays:this._weekdays[m&&m!==true&&this._weekdays.isFormat.test(format)?'format':'standalone'];return m===true?shiftWeekdays(weekdays,this._week.dow):m?weekdays[m.day()]:weekdays;}var defaultLocaleWeekdaysShort='Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');function localeWeekdaysShort(m){return m===true?shiftWeekdays(this._weekdaysShort,this._week.dow):m?this._weekdaysShort[m.day()]:this._weekdaysShort;}var defaultLocaleWeekdaysMin='Su_Mo_Tu_We_Th_Fr_Sa'.split('_');function localeWeekdaysMin(m){return m===true?shiftWeekdays(this._weekdaysMin,this._week.dow):m?this._weekdaysMin[m.day()]:this._weekdaysMin;}function handleStrictParse$1(weekdayName,format,strict){var i,ii,mom,llc=weekdayName.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(i=0;i<7;++i){mom=createUTC([2000,1]).day(i);this._minWeekdaysParse[i]=this.weekdaysMin(mom,'').toLocaleLowerCase();this._shortWeekdaysParse[i]=this.weekdaysShort(mom,'').toLocaleLowerCase();this._weekdaysParse[i]=this.weekdays(mom,'').toLocaleLowerCase();}}if(strict){if(format==='dddd'){ii=indexOf.call(this._weekdaysParse,llc);return ii!==-1?ii:null;}else if(format==='ddd'){ii=indexOf.call(this._shortWeekdaysParse,llc);return ii!==-1?ii:null;}else{ii=indexOf.call(this._minWeekdaysParse,llc);return ii!==-1?ii:null;}}else{if(format==='dddd'){ii=indexOf.call(this._weekdaysParse,llc);if(ii!==-1){return ii;}ii=indexOf.call(this._shortWeekdaysParse,llc);if(ii!==-1){return ii;}ii=indexOf.call(this._minWeekdaysParse,llc);return ii!==-1?ii:null;}else if(format==='ddd'){ii=indexOf.call(this._shortWeekdaysParse,llc);if(ii!==-1){return ii;}ii=indexOf.call(this._weekdaysParse,llc);if(ii!==-1){return ii;}ii=indexOf.call(this._minWeekdaysParse,llc);return ii!==-1?ii:null;}else{ii=indexOf.call(this._minWeekdaysParse,llc);if(ii!==-1){return ii;}ii=indexOf.call(this._weekdaysParse,llc);if(ii!==-1){return ii;}ii=indexOf.call(this._shortWeekdaysParse,llc);return ii!==-1?ii:null;}}}function localeWeekdaysParse(weekdayName,format,strict){var i,mom,regex;if(this._weekdaysParseExact){return handleStrictParse$1.call(this,weekdayName,format,strict);}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[];}for(i=0;i<7;i++){// make the regex if we don't have it already\nmom=createUTC([2000,1]).day(i);if(strict&&!this._fullWeekdaysParse[i]){this._fullWeekdaysParse[i]=new RegExp('^'+this.weekdays(mom,'').replace('.','\\\\.?')+'$','i');this._shortWeekdaysParse[i]=new RegExp('^'+this.weekdaysShort(mom,'').replace('.','\\\\.?')+'$','i');this._minWeekdaysParse[i]=new RegExp('^'+this.weekdaysMin(mom,'').replace('.','\\\\.?')+'$','i');}if(!this._weekdaysParse[i]){regex='^'+this.weekdays(mom,'')+'|^'+this.weekdaysShort(mom,'')+'|^'+this.weekdaysMin(mom,'');this._weekdaysParse[i]=new RegExp(regex.replace('.',''),'i');}// test the regex\nif(strict&&format==='dddd'&&this._fullWeekdaysParse[i].test(weekdayName)){return i;}else if(strict&&format==='ddd'&&this._shortWeekdaysParse[i].test(weekdayName)){return i;}else if(strict&&format==='dd'&&this._minWeekdaysParse[i].test(weekdayName)){return i;}else if(!strict&&this._weekdaysParse[i].test(weekdayName)){return i;}}}// MOMENTS\nfunction getSetDayOfWeek(input){if(!this.isValid()){return input!=null?this:NaN;}var day=this._isUTC?this._d.getUTCDay():this._d.getDay();if(input!=null){input=parseWeekday(input,this.localeData());return this.add(input-day,'d');}else{return day;}}function getSetLocaleDayOfWeek(input){if(!this.isValid()){return input!=null?this:NaN;}var weekday=(this.day()+7-this.localeData()._week.dow)%7;return input==null?weekday:this.add(input-weekday,'d');}function getSetISODayOfWeek(input){if(!this.isValid()){return input!=null?this:NaN;}// behaves the same as moment#day except\n// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n// as a setter, sunday should belong to the previous week.\nif(input!=null){var weekday=parseIsoWeekday(input,this.localeData());return this.day(this.day()%7?weekday:weekday-7);}else{return this.day()||7;}}var defaultWeekdaysRegex=matchWord;function weekdaysRegex(isStrict){if(this._weekdaysParseExact){if(!hasOwnProp(this,'_weekdaysRegex')){computeWeekdaysParse.call(this);}if(isStrict){return this._weekdaysStrictRegex;}else{return this._weekdaysRegex;}}else{if(!hasOwnProp(this,'_weekdaysRegex')){this._weekdaysRegex=defaultWeekdaysRegex;}return this._weekdaysStrictRegex&&isStrict?this._weekdaysStrictRegex:this._weekdaysRegex;}}var defaultWeekdaysShortRegex=matchWord;function weekdaysShortRegex(isStrict){if(this._weekdaysParseExact){if(!hasOwnProp(this,'_weekdaysRegex')){computeWeekdaysParse.call(this);}if(isStrict){return this._weekdaysShortStrictRegex;}else{return this._weekdaysShortRegex;}}else{if(!hasOwnProp(this,'_weekdaysShortRegex')){this._weekdaysShortRegex=defaultWeekdaysShortRegex;}return this._weekdaysShortStrictRegex&&isStrict?this._weekdaysShortStrictRegex:this._weekdaysShortRegex;}}var defaultWeekdaysMinRegex=matchWord;function weekdaysMinRegex(isStrict){if(this._weekdaysParseExact){if(!hasOwnProp(this,'_weekdaysRegex')){computeWeekdaysParse.call(this);}if(isStrict){return this._weekdaysMinStrictRegex;}else{return this._weekdaysMinRegex;}}else{if(!hasOwnProp(this,'_weekdaysMinRegex')){this._weekdaysMinRegex=defaultWeekdaysMinRegex;}return this._weekdaysMinStrictRegex&&isStrict?this._weekdaysMinStrictRegex:this._weekdaysMinRegex;}}function computeWeekdaysParse(){function cmpLenRev(a,b){return b.length-a.length;}var minPieces=[],shortPieces=[],longPieces=[],mixedPieces=[],i,mom,minp,shortp,longp;for(i=0;i<7;i++){// make the regex if we don't have it already\nmom=createUTC([2000,1]).day(i);minp=this.weekdaysMin(mom,'');shortp=this.weekdaysShort(mom,'');longp=this.weekdays(mom,'');minPieces.push(minp);shortPieces.push(shortp);longPieces.push(longp);mixedPieces.push(minp);mixedPieces.push(shortp);mixedPieces.push(longp);}// Sorting makes sure if one weekday (or abbr) is a prefix of another it\n// will match the longer piece.\nminPieces.sort(cmpLenRev);shortPieces.sort(cmpLenRev);longPieces.sort(cmpLenRev);mixedPieces.sort(cmpLenRev);for(i=0;i<7;i++){shortPieces[i]=regexEscape(shortPieces[i]);longPieces[i]=regexEscape(longPieces[i]);mixedPieces[i]=regexEscape(mixedPieces[i]);}this._weekdaysRegex=new RegExp('^('+mixedPieces.join('|')+')','i');this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp('^('+longPieces.join('|')+')','i');this._weekdaysShortStrictRegex=new RegExp('^('+shortPieces.join('|')+')','i');this._weekdaysMinStrictRegex=new RegExp('^('+minPieces.join('|')+')','i');}// FORMATTING\nfunction hFormat(){return this.hours()%12||12;}function kFormat(){return this.hours()||24;}addFormatToken('H',['HH',2],0,'hour');addFormatToken('h',['hh',2],0,hFormat);addFormatToken('k',['kk',2],0,kFormat);addFormatToken('hmm',0,0,function(){return''+hFormat.apply(this)+zeroFill(this.minutes(),2);});addFormatToken('hmmss',0,0,function(){return''+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2);});addFormatToken('Hmm',0,0,function(){return''+this.hours()+zeroFill(this.minutes(),2);});addFormatToken('Hmmss',0,0,function(){return''+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2);});function meridiem(token,lowercase){addFormatToken(token,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),lowercase);});}meridiem('a',true);meridiem('A',false);// ALIASES\naddUnitAlias('hour','h');// PRIORITY\naddUnitPriority('hour',13);// PARSING\nfunction matchMeridiem(isStrict,locale){return locale._meridiemParse;}addRegexToken('a',matchMeridiem);addRegexToken('A',matchMeridiem);addRegexToken('H',match1to2);addRegexToken('h',match1to2);addRegexToken('k',match1to2);addRegexToken('HH',match1to2,match2);addRegexToken('hh',match1to2,match2);addRegexToken('kk',match1to2,match2);addRegexToken('hmm',match3to4);addRegexToken('hmmss',match5to6);addRegexToken('Hmm',match3to4);addRegexToken('Hmmss',match5to6);addParseToken(['H','HH'],HOUR);addParseToken(['k','kk'],function(input,array,config){var kInput=toInt(input);array[HOUR]=kInput===24?0:kInput;});addParseToken(['a','A'],function(input,array,config){config._isPm=config._locale.isPM(input);config._meridiem=input;});addParseToken(['h','hh'],function(input,array,config){array[HOUR]=toInt(input);getParsingFlags(config).bigHour=true;});addParseToken('hmm',function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos));array[MINUTE]=toInt(input.substr(pos));getParsingFlags(config).bigHour=true;});addParseToken('hmmss',function(input,array,config){var pos1=input.length-4;var pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1));array[MINUTE]=toInt(input.substr(pos1,2));array[SECOND]=toInt(input.substr(pos2));getParsingFlags(config).bigHour=true;});addParseToken('Hmm',function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos));array[MINUTE]=toInt(input.substr(pos));});addParseToken('Hmmss',function(input,array,config){var pos1=input.length-4;var pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1));array[MINUTE]=toInt(input.substr(pos1,2));array[SECOND]=toInt(input.substr(pos2));});// LOCALES\nfunction localeIsPM(input){// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n// Using charAt should be more compatible.\nreturn(input+'').toLowerCase().charAt(0)==='p';}var defaultLocaleMeridiemParse=/[ap]\\.?m?\\.?/i;function localeMeridiem(hours,minutes,isLower){if(hours>11){return isLower?'pm':'PM';}else{return isLower?'am':'AM';}}// MOMENTS\n// Setting the hour should keep the time, because the user explicitly\n// specified which hour they want. So trying to maintain the same hour (in\n// a new timezone) makes sense. Adding/subtracting hours does not follow\n// this rule.\nvar getSetHour=makeGetSet('Hours',true);var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse};// internal storage for locale config files\nvar locales={};var localeFamilies={};var globalLocale;function normalizeLocale(key){return key?key.toLowerCase().replace('_','-'):key;}// pick the locale from the array\n// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\nfunction chooseLocale(names){var i=0,j,next,locale,split;while(i<names.length){split=normalizeLocale(names[i]).split('-');j=split.length;next=normalizeLocale(names[i+1]);next=next?next.split('-'):null;while(j>0){locale=loadLocale(split.slice(0,j).join('-'));if(locale){return locale;}if(next&&next.length>=j&&compareArrays(split,next,true)>=j-1){//the next array item is better than a shallower substring of this one\nbreak;}j--;}i++;}return globalLocale;}function loadLocale(name){var oldLocale=null;// TODO: Find a better way to register and load all the locales in Node\nif(!locales[name]&&'object'!=='undefined'&&module&&module.exports){try{oldLocale=globalLocale._abbr;var aliasedRequire=commonjsRequire;aliasedRequire('./locale/'+name);getSetGlobalLocale(oldLocale);}catch(e){}}return locales[name];}// This function will load locale and then set the global locale.  If\n// no arguments are passed in, it will simply return the current global\n// locale key.\nfunction getSetGlobalLocale(key,values){var data;if(key){if(isUndefined(values)){data=getLocale(key);}else{data=defineLocale(key,values);}if(data){// moment.duration._locale = moment._locale = data;\nglobalLocale=data;}else{if(typeof console!=='undefined'&&console.warn){//warn user if arguments are passed but the locale could not be set\nconsole.warn('Locale '+key+' not found. Did you forget to load it?');}}}return globalLocale._abbr;}function defineLocale(name,config){if(config!==null){var locale,parentConfig=baseConfig;config.abbr=name;if(locales[name]!=null){deprecateSimple('defineLocaleOverride','use moment.updateLocale(localeName, config) to change '+'an existing locale. moment.defineLocale(localeName, '+'config) should only be used for creating a new locale '+'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');parentConfig=locales[name]._config;}else if(config.parentLocale!=null){if(locales[config.parentLocale]!=null){parentConfig=locales[config.parentLocale]._config;}else{locale=loadLocale(config.parentLocale);if(locale!=null){parentConfig=locale._config;}else{if(!localeFamilies[config.parentLocale]){localeFamilies[config.parentLocale]=[];}localeFamilies[config.parentLocale].push({name:name,config:config});return null;}}}locales[name]=new Locale(mergeConfigs(parentConfig,config));if(localeFamilies[name]){localeFamilies[name].forEach(function(x){defineLocale(x.name,x.config);});}// backwards compat for now: also set the locale\n// make sure we set the locale AFTER all child locales have been\n// created, so we won't end up with the child locale set.\ngetSetGlobalLocale(name);return locales[name];}else{// useful for testing\ndelete locales[name];return null;}}function updateLocale(name,config){if(config!=null){var locale,tmpLocale,parentConfig=baseConfig;// MERGE\ntmpLocale=loadLocale(name);if(tmpLocale!=null){parentConfig=tmpLocale._config;}config=mergeConfigs(parentConfig,config);locale=new Locale(config);locale.parentLocale=locales[name];locales[name]=locale;// backwards compat for now: also set the locale\ngetSetGlobalLocale(name);}else{// pass null for config to unupdate, useful for tests\nif(locales[name]!=null){if(locales[name].parentLocale!=null){locales[name]=locales[name].parentLocale;}else if(locales[name]!=null){delete locales[name];}}}return locales[name];}// returns locale data\nfunction getLocale(key){var locale;if(key&&key._locale&&key._locale._abbr){key=key._locale._abbr;}if(!key){return globalLocale;}if(!isArray(key)){//short-circuit everything else\nlocale=loadLocale(key);if(locale){return locale;}key=[key];}return chooseLocale(key);}function listLocales(){return keys(locales);}function checkOverflow(m){var overflow;var a=m._a;if(a&&getParsingFlags(m).overflow===-2){overflow=a[MONTH]<0||a[MONTH]>11?MONTH:a[DATE]<1||a[DATE]>daysInMonth(a[YEAR],a[MONTH])?DATE:a[HOUR]<0||a[HOUR]>24||a[HOUR]===24&&(a[MINUTE]!==0||a[SECOND]!==0||a[MILLISECOND]!==0)?HOUR:a[MINUTE]<0||a[MINUTE]>59?MINUTE:a[SECOND]<0||a[SECOND]>59?SECOND:a[MILLISECOND]<0||a[MILLISECOND]>999?MILLISECOND:-1;if(getParsingFlags(m)._overflowDayOfYear&&(overflow<YEAR||overflow>DATE)){overflow=DATE;}if(getParsingFlags(m)._overflowWeeks&&overflow===-1){overflow=WEEK;}if(getParsingFlags(m)._overflowWeekday&&overflow===-1){overflow=WEEKDAY;}getParsingFlags(m).overflow=overflow;}return m;}// Pick the first defined of two or three arguments.\nfunction defaults(a,b,c){if(a!=null){return a;}if(b!=null){return b;}return c;}function currentDateArray(config){// hooks is actually the exported moment object\nvar nowValue=new Date(hooks.now());if(config._useUTC){return[nowValue.getUTCFullYear(),nowValue.getUTCMonth(),nowValue.getUTCDate()];}return[nowValue.getFullYear(),nowValue.getMonth(),nowValue.getDate()];}// convert an array to a date.\n// the array should mirror the parameters below\n// note: all values past the year are optional and will default to the lowest possible value.\n// [year, month, day , hour, minute, second, millisecond]\nfunction configFromArray(config){var i,date,input=[],currentDate,expectedWeekday,yearToUse;if(config._d){return;}currentDate=currentDateArray(config);//compute day of the year from weeks and weekdays\nif(config._w&&config._a[DATE]==null&&config._a[MONTH]==null){dayOfYearFromWeekInfo(config);}//if the day of the year is set, figure out what it is\nif(config._dayOfYear!=null){yearToUse=defaults(config._a[YEAR],currentDate[YEAR]);if(config._dayOfYear>daysInYear(yearToUse)||config._dayOfYear===0){getParsingFlags(config)._overflowDayOfYear=true;}date=createUTCDate(yearToUse,0,config._dayOfYear);config._a[MONTH]=date.getUTCMonth();config._a[DATE]=date.getUTCDate();}// Default to current date.\n// * if no year, month, day of month are given, default to today\n// * if day of month is given, default month and year\n// * if month is given, default only year\n// * if year is given, don't default anything\nfor(i=0;i<3&&config._a[i]==null;++i){config._a[i]=input[i]=currentDate[i];}// Zero out whatever was not defaulted, including time\nfor(;i<7;i++){config._a[i]=input[i]=config._a[i]==null?i===2?1:0:config._a[i];}// Check for 24:00:00.000\nif(config._a[HOUR]===24&&config._a[MINUTE]===0&&config._a[SECOND]===0&&config._a[MILLISECOND]===0){config._nextDay=true;config._a[HOUR]=0;}config._d=(config._useUTC?createUTCDate:createDate).apply(null,input);expectedWeekday=config._useUTC?config._d.getUTCDay():config._d.getDay();// Apply timezone offset from input. The actual utcOffset can be changed\n// with parseZone.\nif(config._tzm!=null){config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm);}if(config._nextDay){config._a[HOUR]=24;}// check for mismatching day of week\nif(config._w&&typeof config._w.d!=='undefined'&&config._w.d!==expectedWeekday){getParsingFlags(config).weekdayMismatch=true;}}function dayOfYearFromWeekInfo(config){var w,weekYear,week,weekday,dow,doy,temp,weekdayOverflow;w=config._w;if(w.GG!=null||w.W!=null||w.E!=null){dow=1;doy=4;// TODO: We need to take the current isoWeekYear, but that depends on\n// how we interpret now (local, utc, fixed offset). So create\n// a now version of current config (take local/utc/offset flags, and\n// create now).\nweekYear=defaults(w.GG,config._a[YEAR],weekOfYear(createLocal(),1,4).year);week=defaults(w.W,1);weekday=defaults(w.E,1);if(weekday<1||weekday>7){weekdayOverflow=true;}}else{dow=config._locale._week.dow;doy=config._locale._week.doy;var curWeek=weekOfYear(createLocal(),dow,doy);weekYear=defaults(w.gg,config._a[YEAR],curWeek.year);// Default to current week.\nweek=defaults(w.w,curWeek.week);if(w.d!=null){// weekday -- low day numbers are considered next week\nweekday=w.d;if(weekday<0||weekday>6){weekdayOverflow=true;}}else if(w.e!=null){// local weekday -- counting starts from beginning of week\nweekday=w.e+dow;if(w.e<0||w.e>6){weekdayOverflow=true;}}else{// default to beginning of week\nweekday=dow;}}if(week<1||week>weeksInYear(weekYear,dow,doy)){getParsingFlags(config)._overflowWeeks=true;}else if(weekdayOverflow!=null){getParsingFlags(config)._overflowWeekday=true;}else{temp=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy);config._a[YEAR]=temp.year;config._dayOfYear=temp.dayOfYear;}}// iso 8601 regex\n// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\nvar extendedIsoRegex=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/;var basicIsoRegex=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/;var tzRegex=/Z|[+-]\\d\\d(?::?\\d\\d)?/;var isoDates=[['YYYYYY-MM-DD',/[+-]\\d{6}-\\d\\d-\\d\\d/],['YYYY-MM-DD',/\\d{4}-\\d\\d-\\d\\d/],['GGGG-[W]WW-E',/\\d{4}-W\\d\\d-\\d/],['GGGG-[W]WW',/\\d{4}-W\\d\\d/,false],['YYYY-DDD',/\\d{4}-\\d{3}/],['YYYY-MM',/\\d{4}-\\d\\d/,false],['YYYYYYMMDD',/[+-]\\d{10}/],['YYYYMMDD',/\\d{8}/],// YYYYMM is NOT allowed by the standard\n['GGGG[W]WWE',/\\d{4}W\\d{3}/],['GGGG[W]WW',/\\d{4}W\\d{2}/,false],['YYYYDDD',/\\d{7}/]];// iso time formats and regexes\nvar isoTimes=[['HH:mm:ss.SSSS',/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],['HH:mm:ss,SSSS',/\\d\\d:\\d\\d:\\d\\d,\\d+/],['HH:mm:ss',/\\d\\d:\\d\\d:\\d\\d/],['HH:mm',/\\d\\d:\\d\\d/],['HHmmss.SSSS',/\\d\\d\\d\\d\\d\\d\\.\\d+/],['HHmmss,SSSS',/\\d\\d\\d\\d\\d\\d,\\d+/],['HHmmss',/\\d\\d\\d\\d\\d\\d/],['HHmm',/\\d\\d\\d\\d/],['HH',/\\d\\d/]];var aspNetJsonRegex=/^\\/?Date\\((\\-?\\d+)/i;// date from iso format\nfunction configFromISO(config){var i,l,string=config._i,match=extendedIsoRegex.exec(string)||basicIsoRegex.exec(string),allowTime,dateFormat,timeFormat,tzFormat;if(match){getParsingFlags(config).iso=true;for(i=0,l=isoDates.length;i<l;i++){if(isoDates[i][1].exec(match[1])){dateFormat=isoDates[i][0];allowTime=isoDates[i][2]!==false;break;}}if(dateFormat==null){config._isValid=false;return;}if(match[3]){for(i=0,l=isoTimes.length;i<l;i++){if(isoTimes[i][1].exec(match[3])){// match[2] should be 'T' or space\ntimeFormat=(match[2]||' ')+isoTimes[i][0];break;}}if(timeFormat==null){config._isValid=false;return;}}if(!allowTime&&timeFormat!=null){config._isValid=false;return;}if(match[4]){if(tzRegex.exec(match[4])){tzFormat='Z';}else{config._isValid=false;return;}}config._f=dateFormat+(timeFormat||'')+(tzFormat||'');configFromStringAndFormat(config);}else{config._isValid=false;}}// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\nvar rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/;function extractFromRFC2822Strings(yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr){var result=[untruncateYear(yearStr),defaultLocaleMonthsShort.indexOf(monthStr),parseInt(dayStr,10),parseInt(hourStr,10),parseInt(minuteStr,10)];if(secondStr){result.push(parseInt(secondStr,10));}return result;}function untruncateYear(yearStr){var year=parseInt(yearStr,10);if(year<=49){return 2000+year;}else if(year<=999){return 1900+year;}return year;}function preprocessRFC2822(s){// Remove comments and folding whitespace and replace multiple-spaces with a single space\nreturn s.replace(/\\([^)]*\\)|[\\n\\t]/g,' ').replace(/(\\s\\s+)/g,' ').replace(/^\\s\\s*/,'').replace(/\\s\\s*$/,'');}function checkWeekday(weekdayStr,parsedInput,config){if(weekdayStr){// TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.\nvar weekdayProvided=defaultLocaleWeekdaysShort.indexOf(weekdayStr),weekdayActual=new Date(parsedInput[0],parsedInput[1],parsedInput[2]).getDay();if(weekdayProvided!==weekdayActual){getParsingFlags(config).weekdayMismatch=true;config._isValid=false;return false;}}return true;}var obsOffsets={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function calculateOffset(obsOffset,militaryOffset,numOffset){if(obsOffset){return obsOffsets[obsOffset];}else if(militaryOffset){// the only allowed military tz is Z\nreturn 0;}else{var hm=parseInt(numOffset,10);var m=hm%100,h=(hm-m)/100;return h*60+m;}}// date and time from ref 2822 format\nfunction configFromRFC2822(config){var match=rfc2822.exec(preprocessRFC2822(config._i));if(match){var parsedArray=extractFromRFC2822Strings(match[4],match[3],match[2],match[5],match[6],match[7]);if(!checkWeekday(match[1],parsedArray,config)){return;}config._a=parsedArray;config._tzm=calculateOffset(match[8],match[9],match[10]);config._d=createUTCDate.apply(null,config._a);config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm);getParsingFlags(config).rfc2822=true;}else{config._isValid=false;}}// date from iso format or fallback\nfunction configFromString(config){var matched=aspNetJsonRegex.exec(config._i);if(matched!==null){config._d=new Date(+matched[1]);return;}configFromISO(config);if(config._isValid===false){delete config._isValid;}else{return;}configFromRFC2822(config);if(config._isValid===false){delete config._isValid;}else{return;}// Final attempt, use Input Fallback\nhooks.createFromInputFallback(config);}hooks.createFromInputFallback=deprecate('value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), '+'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are '+'discouraged and will be removed in an upcoming major release. Please refer to '+'http://momentjs.com/guides/#/warnings/js-date/ for more info.',function(config){config._d=new Date(config._i+(config._useUTC?' UTC':''));});// constant that refers to the ISO standard\nhooks.ISO_8601=function(){};// constant that refers to the RFC 2822 form\nhooks.RFC_2822=function(){};// date from string and format string\nfunction configFromStringAndFormat(config){// TODO: Move this to another part of the creation flow to prevent circular deps\nif(config._f===hooks.ISO_8601){configFromISO(config);return;}if(config._f===hooks.RFC_2822){configFromRFC2822(config);return;}config._a=[];getParsingFlags(config).empty=true;// This array is used to make a Date, either with `new Date` or `Date.UTC`\nvar string=''+config._i,i,parsedInput,tokens,token,skipped,stringLength=string.length,totalParsedInputLength=0;tokens=expandFormat(config._f,config._locale).match(formattingTokens)||[];for(i=0;i<tokens.length;i++){token=tokens[i];parsedInput=(string.match(getParseRegexForToken(token,config))||[])[0];// console.log('token', token, 'parsedInput', parsedInput,\n//         'regex', getParseRegexForToken(token, config));\nif(parsedInput){skipped=string.substr(0,string.indexOf(parsedInput));if(skipped.length>0){getParsingFlags(config).unusedInput.push(skipped);}string=string.slice(string.indexOf(parsedInput)+parsedInput.length);totalParsedInputLength+=parsedInput.length;}// don't parse if it's not a known token\nif(formatTokenFunctions[token]){if(parsedInput){getParsingFlags(config).empty=false;}else{getParsingFlags(config).unusedTokens.push(token);}addTimeToArrayFromToken(token,parsedInput,config);}else if(config._strict&&!parsedInput){getParsingFlags(config).unusedTokens.push(token);}}// add remaining unparsed input length to the string\ngetParsingFlags(config).charsLeftOver=stringLength-totalParsedInputLength;if(string.length>0){getParsingFlags(config).unusedInput.push(string);}// clear _12h flag if hour is <= 12\nif(config._a[HOUR]<=12&&getParsingFlags(config).bigHour===true&&config._a[HOUR]>0){getParsingFlags(config).bigHour=undefined;}getParsingFlags(config).parsedDateParts=config._a.slice(0);getParsingFlags(config).meridiem=config._meridiem;// handle meridiem\nconfig._a[HOUR]=meridiemFixWrap(config._locale,config._a[HOUR],config._meridiem);configFromArray(config);checkOverflow(config);}function meridiemFixWrap(locale,hour,meridiem){var isPm;if(meridiem==null){// nothing to do\nreturn hour;}if(locale.meridiemHour!=null){return locale.meridiemHour(hour,meridiem);}else if(locale.isPM!=null){// Fallback\nisPm=locale.isPM(meridiem);if(isPm&&hour<12){hour+=12;}if(!isPm&&hour===12){hour=0;}return hour;}else{// this is not supposed to happen\nreturn hour;}}// date from string and array of format strings\nfunction configFromStringAndArray(config){var tempConfig,bestMoment,scoreToBeat,i,currentScore;if(config._f.length===0){getParsingFlags(config).invalidFormat=true;config._d=new Date(NaN);return;}for(i=0;i<config._f.length;i++){currentScore=0;tempConfig=copyConfig({},config);if(config._useUTC!=null){tempConfig._useUTC=config._useUTC;}tempConfig._f=config._f[i];configFromStringAndFormat(tempConfig);if(!isValid(tempConfig)){continue;}// if there is any input that was not parsed add a penalty for that format\ncurrentScore+=getParsingFlags(tempConfig).charsLeftOver;//or tokens\ncurrentScore+=getParsingFlags(tempConfig).unusedTokens.length*10;getParsingFlags(tempConfig).score=currentScore;if(scoreToBeat==null||currentScore<scoreToBeat){scoreToBeat=currentScore;bestMoment=tempConfig;}}extend(config,bestMoment||tempConfig);}function configFromObject(config){if(config._d){return;}var i=normalizeObjectUnits(config._i);config._a=map([i.year,i.month,i.day||i.date,i.hour,i.minute,i.second,i.millisecond],function(obj){return obj&&parseInt(obj,10);});configFromArray(config);}function createFromConfig(config){var res=new Moment(checkOverflow(prepareConfig(config)));if(res._nextDay){// Adding is smart enough around DST\nres.add(1,'d');res._nextDay=undefined;}return res;}function prepareConfig(config){var input=config._i,format=config._f;config._locale=config._locale||getLocale(config._l);if(input===null||format===undefined&&input===''){return createInvalid({nullInput:true});}if(typeof input==='string'){config._i=input=config._locale.preparse(input);}if(isMoment(input)){return new Moment(checkOverflow(input));}else if(isDate(input)){config._d=input;}else if(isArray(format)){configFromStringAndArray(config);}else if(format){configFromStringAndFormat(config);}else{configFromInput(config);}if(!isValid(config)){config._d=null;}return config;}function configFromInput(config){var input=config._i;if(isUndefined(input)){config._d=new Date(hooks.now());}else if(isDate(input)){config._d=new Date(input.valueOf());}else if(typeof input==='string'){configFromString(config);}else if(isArray(input)){config._a=map(input.slice(0),function(obj){return parseInt(obj,10);});configFromArray(config);}else if(isObject(input)){configFromObject(config);}else if(isNumber(input)){// from milliseconds\nconfig._d=new Date(input);}else{hooks.createFromInputFallback(config);}}function createLocalOrUTC(input,format,locale,strict,isUTC){var c={};if(locale===true||locale===false){strict=locale;locale=undefined;}if(isObject(input)&&isObjectEmpty(input)||isArray(input)&&input.length===0){input=undefined;}// object construction must be done this way.\n// https://github.com/moment/moment/issues/1423\nc._isAMomentObject=true;c._useUTC=c._isUTC=isUTC;c._l=locale;c._i=input;c._f=format;c._strict=strict;return createFromConfig(c);}function createLocal(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,false);}var prototypeMin=deprecate('moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',function(){var other=createLocal.apply(null,arguments);if(this.isValid()&&other.isValid()){return other<this?this:other;}else{return createInvalid();}});var prototypeMax=deprecate('moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',function(){var other=createLocal.apply(null,arguments);if(this.isValid()&&other.isValid()){return other>this?this:other;}else{return createInvalid();}});// Pick a moment m from moments so that m[fn](other) is true for all\n// other. This relies on the function fn to be transitive.\n//\n// moments should either be an array of moment objects or an array, whose\n// first element is an array of moment objects.\nfunction pickBy(fn,moments){var res,i;if(moments.length===1&&isArray(moments[0])){moments=moments[0];}if(!moments.length){return createLocal();}res=moments[0];for(i=1;i<moments.length;++i){if(!moments[i].isValid()||moments[i][fn](res)){res=moments[i];}}return res;}// TODO: Use [].sort instead?\nfunction min(){var args=[].slice.call(arguments,0);return pickBy('isBefore',args);}function max(){var args=[].slice.call(arguments,0);return pickBy('isAfter',args);}var now=function(){return Date.now?Date.now():+new Date();};var ordering=['year','quarter','month','week','day','hour','minute','second','millisecond'];function isDurationValid(m){for(var key in m){if(!(indexOf.call(ordering,key)!==-1&&(m[key]==null||!isNaN(m[key])))){return false;}}var unitHasDecimal=false;for(var i=0;i<ordering.length;++i){if(m[ordering[i]]){if(unitHasDecimal){return false;// only allow non-integers for smallest unit\n}if(parseFloat(m[ordering[i]])!==toInt(m[ordering[i]])){unitHasDecimal=true;}}}return true;}function isValid$1(){return this._isValid;}function createInvalid$1(){return createDuration(NaN);}function Duration(duration){var normalizedInput=normalizeObjectUnits(duration),years=normalizedInput.year||0,quarters=normalizedInput.quarter||0,months=normalizedInput.month||0,weeks=normalizedInput.week||normalizedInput.isoWeek||0,days=normalizedInput.day||0,hours=normalizedInput.hour||0,minutes=normalizedInput.minute||0,seconds=normalizedInput.second||0,milliseconds=normalizedInput.millisecond||0;this._isValid=isDurationValid(normalizedInput);// representation for dateAddRemove\nthis._milliseconds=+milliseconds+seconds*1e3+// 1000\nminutes*6e4+// 1000 * 60\nhours*1000*60*60;//using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n// Because of dateAddRemove treats 24 hours as different from a\n// day when working around DST, we need to store them separately\nthis._days=+days+weeks*7;// It is impossible to translate months into days without knowing\n// which months you are are talking about, so we have to store\n// it separately.\nthis._months=+months+quarters*3+years*12;this._data={};this._locale=getLocale();this._bubble();}function isDuration(obj){return obj instanceof Duration;}function absRound(number){if(number<0){return Math.round(-1*number)*-1;}else{return Math.round(number);}}// FORMATTING\nfunction offset(token,separator){addFormatToken(token,0,0,function(){var offset=this.utcOffset();var sign='+';if(offset<0){offset=-offset;sign='-';}return sign+zeroFill(~~(offset/60),2)+separator+zeroFill(~~offset%60,2);});}offset('Z',':');offset('ZZ','');// PARSING\naddRegexToken('Z',matchShortOffset);addRegexToken('ZZ',matchShortOffset);addParseToken(['Z','ZZ'],function(input,array,config){config._useUTC=true;config._tzm=offsetFromString(matchShortOffset,input);});// HELPERS\n// timezone chunker\n// '+10:00' > ['10',  '00']\n// '-1530'  > ['-15', '30']\nvar chunkOffset=/([\\+\\-]|\\d\\d)/gi;function offsetFromString(matcher,string){var matches=(string||'').match(matcher);if(matches===null){return null;}var chunk=matches[matches.length-1]||[];var parts=(chunk+'').match(chunkOffset)||['-',0,0];var minutes=+(parts[1]*60)+toInt(parts[2]);return minutes===0?0:parts[0]==='+'?minutes:-minutes;}// Return a moment from input, that is local/utc/zone equivalent to model.\nfunction cloneWithOffset(input,model){var res,diff;if(model._isUTC){res=model.clone();diff=(isMoment(input)||isDate(input)?input.valueOf():createLocal(input).valueOf())-res.valueOf();// Use low-level api, because this fn is low-level api.\nres._d.setTime(res._d.valueOf()+diff);hooks.updateOffset(res,false);return res;}else{return createLocal(input).local();}}function getDateOffset(m){// On Firefox.24 Date#getTimezoneOffset returns a floating point.\n// https://github.com/moment/moment/pull/1871\nreturn-Math.round(m._d.getTimezoneOffset()/15)*15;}// HOOKS\n// This function will be called whenever a moment is mutated.\n// It is intended to keep the offset in sync with the timezone.\nhooks.updateOffset=function(){};// MOMENTS\n// keepLocalTime = true means only change the timezone, without\n// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n// +0200, so we adjust the time as needed, to be valid.\n//\n// Keeping the time actually adds/subtracts (one hour)\n// from the actual represented time. That is why we call updateOffset\n// a second time. In case it wants us to change the offset again\n// _changeInProgress == true case, then we have to adjust, because\n// there is no such time in the given timezone.\nfunction getSetOffset(input,keepLocalTime,keepMinutes){var offset=this._offset||0,localAdjust;if(!this.isValid()){return input!=null?this:NaN;}if(input!=null){if(typeof input==='string'){input=offsetFromString(matchShortOffset,input);if(input===null){return this;}}else if(Math.abs(input)<16&&!keepMinutes){input=input*60;}if(!this._isUTC&&keepLocalTime){localAdjust=getDateOffset(this);}this._offset=input;this._isUTC=true;if(localAdjust!=null){this.add(localAdjust,'m');}if(offset!==input){if(!keepLocalTime||this._changeInProgress){addSubtract(this,createDuration(input-offset,'m'),1,false);}else if(!this._changeInProgress){this._changeInProgress=true;hooks.updateOffset(this,true);this._changeInProgress=null;}}return this;}else{return this._isUTC?offset:getDateOffset(this);}}function getSetZone(input,keepLocalTime){if(input!=null){if(typeof input!=='string'){input=-input;}this.utcOffset(input,keepLocalTime);return this;}else{return-this.utcOffset();}}function setOffsetToUTC(keepLocalTime){return this.utcOffset(0,keepLocalTime);}function setOffsetToLocal(keepLocalTime){if(this._isUTC){this.utcOffset(0,keepLocalTime);this._isUTC=false;if(keepLocalTime){this.subtract(getDateOffset(this),'m');}}return this;}function setOffsetToParsedOffset(){if(this._tzm!=null){this.utcOffset(this._tzm,false,true);}else if(typeof this._i==='string'){var tZone=offsetFromString(matchOffset,this._i);if(tZone!=null){this.utcOffset(tZone);}else{this.utcOffset(0,true);}}return this;}function hasAlignedHourOffset(input){if(!this.isValid()){return false;}input=input?createLocal(input).utcOffset():0;return(this.utcOffset()-input)%60===0;}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset();}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted)){return this._isDSTShifted;}var c={};copyConfig(c,this);c=prepareConfig(c);if(c._a){var other=c._isUTC?createUTC(c._a):createLocal(c._a);this._isDSTShifted=this.isValid()&&compareArrays(c._a,other.toArray())>0;}else{this._isDSTShifted=false;}return this._isDSTShifted;}function isLocal(){return this.isValid()?!this._isUTC:false;}function isUtcOffset(){return this.isValid()?this._isUTC:false;}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:false;}// ASP.NET json date format regex\nvar aspNetRegex=/^(\\-|\\+)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)(\\.\\d*)?)?$/;// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n// and further modified to allow for strings containing both week and day\nvar isoRegex=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(input,key){var duration=input,// matching against regexp is expensive, do it on demand\nmatch=null,sign,ret,diffRes;if(isDuration(input)){duration={ms:input._milliseconds,d:input._days,M:input._months};}else if(isNumber(input)){duration={};if(key){duration[key]=input;}else{duration.milliseconds=input;}}else if(!!(match=aspNetRegex.exec(input))){sign=match[1]==='-'?-1:1;duration={y:0,d:toInt(match[DATE])*sign,h:toInt(match[HOUR])*sign,m:toInt(match[MINUTE])*sign,s:toInt(match[SECOND])*sign,ms:toInt(absRound(match[MILLISECOND]*1000))*sign// the millisecond decimal point is included in the match\n};}else if(!!(match=isoRegex.exec(input))){sign=match[1]==='-'?-1:1;duration={y:parseIso(match[2],sign),M:parseIso(match[3],sign),w:parseIso(match[4],sign),d:parseIso(match[5],sign),h:parseIso(match[6],sign),m:parseIso(match[7],sign),s:parseIso(match[8],sign)};}else if(duration==null){// checks for null or undefined\nduration={};}else if(typeof duration==='object'&&('from'in duration||'to'in duration)){diffRes=momentsDifference(createLocal(duration.from),createLocal(duration.to));duration={};duration.ms=diffRes.milliseconds;duration.M=diffRes.months;}ret=new Duration(duration);if(isDuration(input)&&hasOwnProp(input,'_locale')){ret._locale=input._locale;}return ret;}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(inp,sign){// We'd normally use ~~inp for this, but unfortunately it also\n// converts floats to ints.\n// inp may be undefined, so careful calling replace on it.\nvar res=inp&&parseFloat(inp.replace(',','.'));// apply sign while we're at it\nreturn(isNaN(res)?0:res)*sign;}function positiveMomentsDifference(base,other){var res={};res.months=other.month()-base.month()+(other.year()-base.year())*12;if(base.clone().add(res.months,'M').isAfter(other)){--res.months;}res.milliseconds=+other-+base.clone().add(res.months,'M');return res;}function momentsDifference(base,other){var res;if(!(base.isValid()&&other.isValid())){return{milliseconds:0,months:0};}other=cloneWithOffset(other,base);if(base.isBefore(other)){res=positiveMomentsDifference(base,other);}else{res=positiveMomentsDifference(other,base);res.milliseconds=-res.milliseconds;res.months=-res.months;}return res;}// TODO: remove 'name' arg after deprecation is removed\nfunction createAdder(direction,name){return function(val,period){var dur,tmp;//invert the arguments, but complain about it\nif(period!==null&&!isNaN(+period)){deprecateSimple(name,'moment().'+name+'(period, number) is deprecated. Please use moment().'+name+'(number, period). '+'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');tmp=val;val=period;period=tmp;}val=typeof val==='string'?+val:val;dur=createDuration(val,period);addSubtract(this,dur,direction);return this;};}function addSubtract(mom,duration,isAdding,updateOffset){var milliseconds=duration._milliseconds,days=absRound(duration._days),months=absRound(duration._months);if(!mom.isValid()){// No op\nreturn;}updateOffset=updateOffset==null?true:updateOffset;if(months){setMonth(mom,get(mom,'Month')+months*isAdding);}if(days){set$1(mom,'Date',get(mom,'Date')+days*isAdding);}if(milliseconds){mom._d.setTime(mom._d.valueOf()+milliseconds*isAdding);}if(updateOffset){hooks.updateOffset(mom,days||months);}}var add=createAdder(1,'add');var subtract=createAdder(-1,'subtract');function getCalendarFormat(myMoment,now){var diff=myMoment.diff(now,'days',true);return diff<-6?'sameElse':diff<-1?'lastWeek':diff<0?'lastDay':diff<1?'sameDay':diff<2?'nextDay':diff<7?'nextWeek':'sameElse';}function calendar$1(time,formats){// We want to compare the start of today, vs this.\n// Getting start-of-today depends on whether we're local/utc/offset or not.\nvar now=time||createLocal(),sod=cloneWithOffset(now,this).startOf('day'),format=hooks.calendarFormat(this,sod)||'sameElse';var output=formats&&(isFunction(formats[format])?formats[format].call(this,now):formats[format]);return this.format(output||this.localeData().calendar(format,this,createLocal(now)));}function clone(){return new Moment(this);}function isAfter(input,units){var localInput=isMoment(input)?input:createLocal(input);if(!(this.isValid()&&localInput.isValid())){return false;}units=normalizeUnits(units)||'millisecond';if(units==='millisecond'){return this.valueOf()>localInput.valueOf();}else{return localInput.valueOf()<this.clone().startOf(units).valueOf();}}function isBefore(input,units){var localInput=isMoment(input)?input:createLocal(input);if(!(this.isValid()&&localInput.isValid())){return false;}units=normalizeUnits(units)||'millisecond';if(units==='millisecond'){return this.valueOf()<localInput.valueOf();}else{return this.clone().endOf(units).valueOf()<localInput.valueOf();}}function isBetween(from,to,units,inclusivity){var localFrom=isMoment(from)?from:createLocal(from),localTo=isMoment(to)?to:createLocal(to);if(!(this.isValid()&&localFrom.isValid()&&localTo.isValid())){return false;}inclusivity=inclusivity||'()';return(inclusivity[0]==='('?this.isAfter(localFrom,units):!this.isBefore(localFrom,units))&&(inclusivity[1]===')'?this.isBefore(localTo,units):!this.isAfter(localTo,units));}function isSame(input,units){var localInput=isMoment(input)?input:createLocal(input),inputMs;if(!(this.isValid()&&localInput.isValid())){return false;}units=normalizeUnits(units)||'millisecond';if(units==='millisecond'){return this.valueOf()===localInput.valueOf();}else{inputMs=localInput.valueOf();return this.clone().startOf(units).valueOf()<=inputMs&&inputMs<=this.clone().endOf(units).valueOf();}}function isSameOrAfter(input,units){return this.isSame(input,units)||this.isAfter(input,units);}function isSameOrBefore(input,units){return this.isSame(input,units)||this.isBefore(input,units);}function diff(input,units,asFloat){var that,zoneDelta,output;if(!this.isValid()){return NaN;}that=cloneWithOffset(input,this);if(!that.isValid()){return NaN;}zoneDelta=(that.utcOffset()-this.utcOffset())*6e4;units=normalizeUnits(units);switch(units){case'year':output=monthDiff(this,that)/12;break;case'month':output=monthDiff(this,that);break;case'quarter':output=monthDiff(this,that)/3;break;case'second':output=(this-that)/1e3;break;// 1000\ncase'minute':output=(this-that)/6e4;break;// 1000 * 60\ncase'hour':output=(this-that)/36e5;break;// 1000 * 60 * 60\ncase'day':output=(this-that-zoneDelta)/864e5;break;// 1000 * 60 * 60 * 24, negate dst\ncase'week':output=(this-that-zoneDelta)/6048e5;break;// 1000 * 60 * 60 * 24 * 7, negate dst\ndefault:output=this-that;}return asFloat?output:absFloor(output);}function monthDiff(a,b){// difference in months\nvar wholeMonthDiff=(b.year()-a.year())*12+(b.month()-a.month()),// b is in (anchor - 1 month, anchor + 1 month)\nanchor=a.clone().add(wholeMonthDiff,'months'),anchor2,adjust;if(b-anchor<0){anchor2=a.clone().add(wholeMonthDiff-1,'months');// linear across the month\nadjust=(b-anchor)/(anchor-anchor2);}else{anchor2=a.clone().add(wholeMonthDiff+1,'months');// linear across the month\nadjust=(b-anchor)/(anchor2-anchor);}//check for negative zero, return zero if negative zero\nreturn-(wholeMonthDiff+adjust)||0;}hooks.defaultFormat='YYYY-MM-DDTHH:mm:ssZ';hooks.defaultFormatUtc='YYYY-MM-DDTHH:mm:ss[Z]';function toString(){return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');}function toISOString(keepOffset){if(!this.isValid()){return null;}var utc=keepOffset!==true;var m=utc?this.clone().utc():this;if(m.year()<0||m.year()>9999){return formatMoment(m,utc?'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');}if(isFunction(Date.prototype.toISOString)){// native implementation is ~50x faster, use it when we can\nif(utc){return this.toDate().toISOString();}else{return new Date(this.valueOf()+this.utcOffset()*60*1000).toISOString().replace('Z',formatMoment(m,'Z'));}}return formatMoment(m,utc?'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYY-MM-DD[T]HH:mm:ss.SSSZ');}/**\r\n         * Return a human readable representation of a moment that can\r\n         * also be evaluated to get a new moment which is the same\r\n         *\r\n         * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\r\n         */function inspect(){if(!this.isValid()){return'moment.invalid(/* '+this._i+' */)';}var func='moment';var zone='';if(!this.isLocal()){func=this.utcOffset()===0?'moment.utc':'moment.parseZone';zone='Z';}var prefix='['+func+'(\"]';var year=0<=this.year()&&this.year()<=9999?'YYYY':'YYYYYY';var datetime='-MM-DD[T]HH:mm:ss.SSS';var suffix=zone+'[\")]';return this.format(prefix+year+datetime+suffix);}function format(inputString){if(!inputString){inputString=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat;}var output=formatMoment(this,inputString);return this.localeData().postformat(output);}function from(time,withoutSuffix){if(this.isValid()&&(isMoment(time)&&time.isValid()||createLocal(time).isValid())){return createDuration({to:this,from:time}).locale(this.locale()).humanize(!withoutSuffix);}else{return this.localeData().invalidDate();}}function fromNow(withoutSuffix){return this.from(createLocal(),withoutSuffix);}function to(time,withoutSuffix){if(this.isValid()&&(isMoment(time)&&time.isValid()||createLocal(time).isValid())){return createDuration({from:this,to:time}).locale(this.locale()).humanize(!withoutSuffix);}else{return this.localeData().invalidDate();}}function toNow(withoutSuffix){return this.to(createLocal(),withoutSuffix);}// If passed a locale key, it will set the locale for this\n// instance.  Otherwise, it will return the locale configuration\n// variables for this instance.\nfunction locale(key){var newLocaleData;if(key===undefined){return this._locale._abbr;}else{newLocaleData=getLocale(key);if(newLocaleData!=null){this._locale=newLocaleData;}return this;}}var lang=deprecate('moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',function(key){if(key===undefined){return this.localeData();}else{return this.locale(key);}});function localeData(){return this._locale;}var MS_PER_SECOND=1000;var MS_PER_MINUTE=60*MS_PER_SECOND;var MS_PER_HOUR=60*MS_PER_MINUTE;var MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;// actual modulo - handles negative numbers (for dates before 1970):\nfunction mod$1(dividend,divisor){return(dividend%divisor+divisor)%divisor;}function localStartOfDate(y,m,d){// the date constructor remaps years 0-99 to 1900-1999\nif(y<100&&y>=0){// preserve leap years using a full 400 year cycle, then reset\nreturn new Date(y+400,m,d)-MS_PER_400_YEARS;}else{return new Date(y,m,d).valueOf();}}function utcStartOfDate(y,m,d){// Date.UTC remaps years 0-99 to 1900-1999\nif(y<100&&y>=0){// preserve leap years using a full 400 year cycle, then reset\nreturn Date.UTC(y+400,m,d)-MS_PER_400_YEARS;}else{return Date.UTC(y,m,d);}}function startOf(units){var time;units=normalizeUnits(units);if(units===undefined||units==='millisecond'||!this.isValid()){return this;}var startOfDate=this._isUTC?utcStartOfDate:localStartOfDate;switch(units){case'year':time=startOfDate(this.year(),0,1);break;case'quarter':time=startOfDate(this.year(),this.month()-this.month()%3,1);break;case'month':time=startOfDate(this.year(),this.month(),1);break;case'week':time=startOfDate(this.year(),this.month(),this.date()-this.weekday());break;case'isoWeek':time=startOfDate(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case'day':case'date':time=startOfDate(this.year(),this.month(),this.date());break;case'hour':time=this._d.valueOf();time-=mod$1(time+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case'minute':time=this._d.valueOf();time-=mod$1(time,MS_PER_MINUTE);break;case'second':time=this._d.valueOf();time-=mod$1(time,MS_PER_SECOND);break;}this._d.setTime(time);hooks.updateOffset(this,true);return this;}function endOf(units){var time;units=normalizeUnits(units);if(units===undefined||units==='millisecond'||!this.isValid()){return this;}var startOfDate=this._isUTC?utcStartOfDate:localStartOfDate;switch(units){case'year':time=startOfDate(this.year()+1,0,1)-1;break;case'quarter':time=startOfDate(this.year(),this.month()-this.month()%3+3,1)-1;break;case'month':time=startOfDate(this.year(),this.month()+1,1)-1;break;case'week':time=startOfDate(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case'isoWeek':time=startOfDate(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case'day':case'date':time=startOfDate(this.year(),this.month(),this.date()+1)-1;break;case'hour':time=this._d.valueOf();time+=MS_PER_HOUR-mod$1(time+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case'minute':time=this._d.valueOf();time+=MS_PER_MINUTE-mod$1(time,MS_PER_MINUTE)-1;break;case'second':time=this._d.valueOf();time+=MS_PER_SECOND-mod$1(time,MS_PER_SECOND)-1;break;}this._d.setTime(time);hooks.updateOffset(this,true);return this;}function valueOf(){return this._d.valueOf()-(this._offset||0)*60000;}function unix(){return Math.floor(this.valueOf()/1000);}function toDate(){return new Date(this.valueOf());}function toArray(){var m=this;return[m.year(),m.month(),m.date(),m.hour(),m.minute(),m.second(),m.millisecond()];}function toObject(){var m=this;return{years:m.year(),months:m.month(),date:m.date(),hours:m.hours(),minutes:m.minutes(),seconds:m.seconds(),milliseconds:m.milliseconds()};}function toJSON(){// new Date(NaN).toJSON() === null\nreturn this.isValid()?this.toISOString():null;}function isValid$2(){return isValid(this);}function parsingFlags(){return extend({},getParsingFlags(this));}function invalidAt(){return getParsingFlags(this).overflow;}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict};}// FORMATTING\naddFormatToken(0,['gg',2],0,function(){return this.weekYear()%100;});addFormatToken(0,['GG',2],0,function(){return this.isoWeekYear()%100;});function addWeekYearFormatToken(token,getter){addFormatToken(0,[token,token.length],0,getter);}addWeekYearFormatToken('gggg','weekYear');addWeekYearFormatToken('ggggg','weekYear');addWeekYearFormatToken('GGGG','isoWeekYear');addWeekYearFormatToken('GGGGG','isoWeekYear');// ALIASES\naddUnitAlias('weekYear','gg');addUnitAlias('isoWeekYear','GG');// PRIORITY\naddUnitPriority('weekYear',1);addUnitPriority('isoWeekYear',1);// PARSING\naddRegexToken('G',matchSigned);addRegexToken('g',matchSigned);addRegexToken('GG',match1to2,match2);addRegexToken('gg',match1to2,match2);addRegexToken('GGGG',match1to4,match4);addRegexToken('gggg',match1to4,match4);addRegexToken('GGGGG',match1to6,match6);addRegexToken('ggggg',match1to6,match6);addWeekParseToken(['gggg','ggggg','GGGG','GGGGG'],function(input,week,config,token){week[token.substr(0,2)]=toInt(input);});addWeekParseToken(['gg','GG'],function(input,week,config,token){week[token]=hooks.parseTwoDigitYear(input);});// MOMENTS\nfunction getSetWeekYear(input){return getSetWeekYearHelper.call(this,input,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy);}function getSetISOWeekYear(input){return getSetWeekYearHelper.call(this,input,this.isoWeek(),this.isoWeekday(),1,4);}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4);}function getWeeksInYear(){var weekInfo=this.localeData()._week;return weeksInYear(this.year(),weekInfo.dow,weekInfo.doy);}function getSetWeekYearHelper(input,week,weekday,dow,doy){var weeksTarget;if(input==null){return weekOfYear(this,dow,doy).year;}else{weeksTarget=weeksInYear(input,dow,doy);if(week>weeksTarget){week=weeksTarget;}return setWeekAll.call(this,input,week,weekday,dow,doy);}}function setWeekAll(weekYear,week,weekday,dow,doy){var dayOfYearData=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy),date=createUTCDate(dayOfYearData.year,0,dayOfYearData.dayOfYear);this.year(date.getUTCFullYear());this.month(date.getUTCMonth());this.date(date.getUTCDate());return this;}// FORMATTING\naddFormatToken('Q',0,'Qo','quarter');// ALIASES\naddUnitAlias('quarter','Q');// PRIORITY\naddUnitPriority('quarter',7);// PARSING\naddRegexToken('Q',match1);addParseToken('Q',function(input,array){array[MONTH]=(toInt(input)-1)*3;});// MOMENTS\nfunction getSetQuarter(input){return input==null?Math.ceil((this.month()+1)/3):this.month((input-1)*3+this.month()%3);}// FORMATTING\naddFormatToken('D',['DD',2],'Do','date');// ALIASES\naddUnitAlias('date','D');// PRIORITY\naddUnitPriority('date',9);// PARSING\naddRegexToken('D',match1to2);addRegexToken('DD',match1to2,match2);addRegexToken('Do',function(isStrict,locale){// TODO: Remove \"ordinalParse\" fallback in next major release.\nreturn isStrict?locale._dayOfMonthOrdinalParse||locale._ordinalParse:locale._dayOfMonthOrdinalParseLenient;});addParseToken(['D','DD'],DATE);addParseToken('Do',function(input,array){array[DATE]=toInt(input.match(match1to2)[0]);});// MOMENTS\nvar getSetDayOfMonth=makeGetSet('Date',true);// FORMATTING\naddFormatToken('DDD',['DDDD',3],'DDDo','dayOfYear');// ALIASES\naddUnitAlias('dayOfYear','DDD');// PRIORITY\naddUnitPriority('dayOfYear',4);// PARSING\naddRegexToken('DDD',match1to3);addRegexToken('DDDD',match3);addParseToken(['DDD','DDDD'],function(input,array,config){config._dayOfYear=toInt(input);});// HELPERS\n// MOMENTS\nfunction getSetDayOfYear(input){var dayOfYear=Math.round((this.clone().startOf('day')-this.clone().startOf('year'))/864e5)+1;return input==null?dayOfYear:this.add(input-dayOfYear,'d');}// FORMATTING\naddFormatToken('m',['mm',2],0,'minute');// ALIASES\naddUnitAlias('minute','m');// PRIORITY\naddUnitPriority('minute',14);// PARSING\naddRegexToken('m',match1to2);addRegexToken('mm',match1to2,match2);addParseToken(['m','mm'],MINUTE);// MOMENTS\nvar getSetMinute=makeGetSet('Minutes',false);// FORMATTING\naddFormatToken('s',['ss',2],0,'second');// ALIASES\naddUnitAlias('second','s');// PRIORITY\naddUnitPriority('second',15);// PARSING\naddRegexToken('s',match1to2);addRegexToken('ss',match1to2,match2);addParseToken(['s','ss'],SECOND);// MOMENTS\nvar getSetSecond=makeGetSet('Seconds',false);// FORMATTING\naddFormatToken('S',0,0,function(){return~~(this.millisecond()/100);});addFormatToken(0,['SS',2],0,function(){return~~(this.millisecond()/10);});addFormatToken(0,['SSS',3],0,'millisecond');addFormatToken(0,['SSSS',4],0,function(){return this.millisecond()*10;});addFormatToken(0,['SSSSS',5],0,function(){return this.millisecond()*100;});addFormatToken(0,['SSSSSS',6],0,function(){return this.millisecond()*1000;});addFormatToken(0,['SSSSSSS',7],0,function(){return this.millisecond()*10000;});addFormatToken(0,['SSSSSSSS',8],0,function(){return this.millisecond()*100000;});addFormatToken(0,['SSSSSSSSS',9],0,function(){return this.millisecond()*1000000;});// ALIASES\naddUnitAlias('millisecond','ms');// PRIORITY\naddUnitPriority('millisecond',16);// PARSING\naddRegexToken('S',match1to3,match1);addRegexToken('SS',match1to3,match2);addRegexToken('SSS',match1to3,match3);var token;for(token='SSSS';token.length<=9;token+='S'){addRegexToken(token,matchUnsigned);}function parseMs(input,array){array[MILLISECOND]=toInt(('0.'+input)*1000);}for(token='S';token.length<=9;token+='S'){addParseToken(token,parseMs);}// MOMENTS\nvar getSetMillisecond=makeGetSet('Milliseconds',false);// FORMATTING\naddFormatToken('z',0,0,'zoneAbbr');addFormatToken('zz',0,0,'zoneName');// MOMENTS\nfunction getZoneAbbr(){return this._isUTC?'UTC':'';}function getZoneName(){return this._isUTC?'Coordinated Universal Time':'';}var proto=Moment.prototype;proto.add=add;proto.calendar=calendar$1;proto.clone=clone;proto.diff=diff;proto.endOf=endOf;proto.format=format;proto.from=from;proto.fromNow=fromNow;proto.to=to;proto.toNow=toNow;proto.get=stringGet;proto.invalidAt=invalidAt;proto.isAfter=isAfter;proto.isBefore=isBefore;proto.isBetween=isBetween;proto.isSame=isSame;proto.isSameOrAfter=isSameOrAfter;proto.isSameOrBefore=isSameOrBefore;proto.isValid=isValid$2;proto.lang=lang;proto.locale=locale;proto.localeData=localeData;proto.max=prototypeMax;proto.min=prototypeMin;proto.parsingFlags=parsingFlags;proto.set=stringSet;proto.startOf=startOf;proto.subtract=subtract;proto.toArray=toArray;proto.toObject=toObject;proto.toDate=toDate;proto.toISOString=toISOString;proto.inspect=inspect;proto.toJSON=toJSON;proto.toString=toString;proto.unix=unix;proto.valueOf=valueOf;proto.creationData=creationData;proto.year=getSetYear;proto.isLeapYear=getIsLeapYear;proto.weekYear=getSetWeekYear;proto.isoWeekYear=getSetISOWeekYear;proto.quarter=proto.quarters=getSetQuarter;proto.month=getSetMonth;proto.daysInMonth=getDaysInMonth;proto.week=proto.weeks=getSetWeek;proto.isoWeek=proto.isoWeeks=getSetISOWeek;proto.weeksInYear=getWeeksInYear;proto.isoWeeksInYear=getISOWeeksInYear;proto.date=getSetDayOfMonth;proto.day=proto.days=getSetDayOfWeek;proto.weekday=getSetLocaleDayOfWeek;proto.isoWeekday=getSetISODayOfWeek;proto.dayOfYear=getSetDayOfYear;proto.hour=proto.hours=getSetHour;proto.minute=proto.minutes=getSetMinute;proto.second=proto.seconds=getSetSecond;proto.millisecond=proto.milliseconds=getSetMillisecond;proto.utcOffset=getSetOffset;proto.utc=setOffsetToUTC;proto.local=setOffsetToLocal;proto.parseZone=setOffsetToParsedOffset;proto.hasAlignedHourOffset=hasAlignedHourOffset;proto.isDST=isDaylightSavingTime;proto.isLocal=isLocal;proto.isUtcOffset=isUtcOffset;proto.isUtc=isUtc;proto.isUTC=isUtc;proto.zoneAbbr=getZoneAbbr;proto.zoneName=getZoneName;proto.dates=deprecate('dates accessor is deprecated. Use date instead.',getSetDayOfMonth);proto.months=deprecate('months accessor is deprecated. Use month instead',getSetMonth);proto.years=deprecate('years accessor is deprecated. Use year instead',getSetYear);proto.zone=deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',getSetZone);proto.isDSTShifted=deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',isDaylightSavingTimeShifted);function createUnix(input){return createLocal(input*1000);}function createInZone(){return createLocal.apply(null,arguments).parseZone();}function preParsePostFormat(string){return string;}var proto$1=Locale.prototype;proto$1.calendar=calendar;proto$1.longDateFormat=longDateFormat;proto$1.invalidDate=invalidDate;proto$1.ordinal=ordinal;proto$1.preparse=preParsePostFormat;proto$1.postformat=preParsePostFormat;proto$1.relativeTime=relativeTime;proto$1.pastFuture=pastFuture;proto$1.set=set;proto$1.months=localeMonths;proto$1.monthsShort=localeMonthsShort;proto$1.monthsParse=localeMonthsParse;proto$1.monthsRegex=monthsRegex;proto$1.monthsShortRegex=monthsShortRegex;proto$1.week=localeWeek;proto$1.firstDayOfYear=localeFirstDayOfYear;proto$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1.weekdays=localeWeekdays;proto$1.weekdaysMin=localeWeekdaysMin;proto$1.weekdaysShort=localeWeekdaysShort;proto$1.weekdaysParse=localeWeekdaysParse;proto$1.weekdaysRegex=weekdaysRegex;proto$1.weekdaysShortRegex=weekdaysShortRegex;proto$1.weekdaysMinRegex=weekdaysMinRegex;proto$1.isPM=localeIsPM;proto$1.meridiem=localeMeridiem;function get$1(format,index,field,setter){var locale=getLocale();var utc=createUTC().set(setter,index);return locale[field](utc,format);}function listMonthsImpl(format,index,field){if(isNumber(format)){index=format;format=undefined;}format=format||'';if(index!=null){return get$1(format,index,field,'month');}var i;var out=[];for(i=0;i<12;i++){out[i]=get$1(format,i,field,'month');}return out;}// ()\n// (5)\n// (fmt, 5)\n// (fmt)\n// (true)\n// (true, 5)\n// (true, fmt, 5)\n// (true, fmt)\nfunction listWeekdaysImpl(localeSorted,format,index,field){if(typeof localeSorted==='boolean'){if(isNumber(format)){index=format;format=undefined;}format=format||'';}else{format=localeSorted;index=format;localeSorted=false;if(isNumber(format)){index=format;format=undefined;}format=format||'';}var locale=getLocale(),shift=localeSorted?locale._week.dow:0;if(index!=null){return get$1(format,(index+shift)%7,field,'day');}var i;var out=[];for(i=0;i<7;i++){out[i]=get$1(format,(i+shift)%7,field,'day');}return out;}function listMonths(format,index){return listMonthsImpl(format,index,'months');}function listMonthsShort(format,index){return listMonthsImpl(format,index,'monthsShort');}function listWeekdays(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,'weekdays');}function listWeekdaysShort(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,'weekdaysShort');}function listWeekdaysMin(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,'weekdaysMin');}getSetGlobalLocale('en',{dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(number){var b=number%10,output=toInt(number%100/10)===1?'th':b===1?'st':b===2?'nd':b===3?'rd':'th';return number+output;}});// Side effect imports\nhooks.lang=deprecate('moment.lang is deprecated. Use moment.locale instead.',getSetGlobalLocale);hooks.langData=deprecate('moment.langData is deprecated. Use moment.localeData instead.',getLocale);var mathAbs=Math.abs;function abs(){var data=this._data;this._milliseconds=mathAbs(this._milliseconds);this._days=mathAbs(this._days);this._months=mathAbs(this._months);data.milliseconds=mathAbs(data.milliseconds);data.seconds=mathAbs(data.seconds);data.minutes=mathAbs(data.minutes);data.hours=mathAbs(data.hours);data.months=mathAbs(data.months);data.years=mathAbs(data.years);return this;}function addSubtract$1(duration,input,value,direction){var other=createDuration(input,value);duration._milliseconds+=direction*other._milliseconds;duration._days+=direction*other._days;duration._months+=direction*other._months;return duration._bubble();}// supports only 2.0-style add(1, 's') or add(duration)\nfunction add$1(input,value){return addSubtract$1(this,input,value,1);}// supports only 2.0-style subtract(1, 's') or subtract(duration)\nfunction subtract$1(input,value){return addSubtract$1(this,input,value,-1);}function absCeil(number){if(number<0){return Math.floor(number);}else{return Math.ceil(number);}}function bubble(){var milliseconds=this._milliseconds;var days=this._days;var months=this._months;var data=this._data;var seconds,minutes,hours,years,monthsFromDays;// if we have a mix of positive and negative values, bubble down first\n// check: https://github.com/moment/moment/issues/2166\nif(!(milliseconds>=0&&days>=0&&months>=0||milliseconds<=0&&days<=0&&months<=0)){milliseconds+=absCeil(monthsToDays(months)+days)*864e5;days=0;months=0;}// The following code bubbles up values, see the tests for\n// examples of what that means.\ndata.milliseconds=milliseconds%1000;seconds=absFloor(milliseconds/1000);data.seconds=seconds%60;minutes=absFloor(seconds/60);data.minutes=minutes%60;hours=absFloor(minutes/60);data.hours=hours%24;days+=absFloor(hours/24);// convert days to months\nmonthsFromDays=absFloor(daysToMonths(days));months+=monthsFromDays;days-=absCeil(monthsToDays(monthsFromDays));// 12 months -> 1 year\nyears=absFloor(months/12);months%=12;data.days=days;data.months=months;data.years=years;return this;}function daysToMonths(days){// 400 years have 146097 days (taking into account leap year rules)\n// 400 years have 12 months === 4800\nreturn days*4800/146097;}function monthsToDays(months){// the reverse of daysToMonths\nreturn months*146097/4800;}function as(units){if(!this.isValid()){return NaN;}var days;var months;var milliseconds=this._milliseconds;units=normalizeUnits(units);if(units==='month'||units==='quarter'||units==='year'){days=this._days+milliseconds/864e5;months=this._months+daysToMonths(days);switch(units){case'month':return months;case'quarter':return months/3;case'year':return months/12;}}else{// handle milliseconds separately because of floating point math errors (issue #1867)\ndays=this._days+Math.round(monthsToDays(this._months));switch(units){case'week':return days/7+milliseconds/6048e5;case'day':return days+milliseconds/864e5;case'hour':return days*24+milliseconds/36e5;case'minute':return days*1440+milliseconds/6e4;case'second':return days*86400+milliseconds/1000;// Math.floor prevents floating point math errors here\ncase'millisecond':return Math.floor(days*864e5)+milliseconds;default:throw new Error('Unknown unit '+units);}}}// TODO: Use this.as('ms')?\nfunction valueOf$1(){if(!this.isValid()){return NaN;}return this._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6;}function makeAs(alias){return function(){return this.as(alias);};}var asMilliseconds=makeAs('ms');var asSeconds=makeAs('s');var asMinutes=makeAs('m');var asHours=makeAs('h');var asDays=makeAs('d');var asWeeks=makeAs('w');var asMonths=makeAs('M');var asQuarters=makeAs('Q');var asYears=makeAs('y');function clone$1(){return createDuration(this);}function get$2(units){units=normalizeUnits(units);return this.isValid()?this[units+'s']():NaN;}function makeGetter(name){return function(){return this.isValid()?this._data[name]:NaN;};}var milliseconds=makeGetter('milliseconds');var seconds=makeGetter('seconds');var minutes=makeGetter('minutes');var hours=makeGetter('hours');var days=makeGetter('days');var months=makeGetter('months');var years=makeGetter('years');function weeks(){return absFloor(this.days()/7);}var round=Math.round;var thresholds={ss:44,// a few seconds to seconds\ns:45,// seconds to minute\nm:45,// minutes to hour\nh:22,// hours to day\nd:26,// days to month\nM:11// months to year\n};// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\nfunction substituteTimeAgo(string,number,withoutSuffix,isFuture,locale){return locale.relativeTime(number||1,!!withoutSuffix,string,isFuture);}function relativeTime$1(posNegDuration,withoutSuffix,locale){var duration=createDuration(posNegDuration).abs();var seconds=round(duration.as('s'));var minutes=round(duration.as('m'));var hours=round(duration.as('h'));var days=round(duration.as('d'));var months=round(duration.as('M'));var years=round(duration.as('y'));var a=seconds<=thresholds.ss&&['s',seconds]||seconds<thresholds.s&&['ss',seconds]||minutes<=1&&['m']||minutes<thresholds.m&&['mm',minutes]||hours<=1&&['h']||hours<thresholds.h&&['hh',hours]||days<=1&&['d']||days<thresholds.d&&['dd',days]||months<=1&&['M']||months<thresholds.M&&['MM',months]||years<=1&&['y']||['yy',years];a[2]=withoutSuffix;a[3]=+posNegDuration>0;a[4]=locale;return substituteTimeAgo.apply(null,a);}// This function allows you to set the rounding function for relative time strings\nfunction getSetRelativeTimeRounding(roundingFunction){if(roundingFunction===undefined){return round;}if(typeof roundingFunction==='function'){round=roundingFunction;return true;}return false;}// This function allows you to set a threshold for relative time strings\nfunction getSetRelativeTimeThreshold(threshold,limit){if(thresholds[threshold]===undefined){return false;}if(limit===undefined){return thresholds[threshold];}thresholds[threshold]=limit;if(threshold==='s'){thresholds.ss=limit-1;}return true;}function humanize(withSuffix){if(!this.isValid()){return this.localeData().invalidDate();}var locale=this.localeData();var output=relativeTime$1(this,!withSuffix,locale);if(withSuffix){output=locale.pastFuture(+this,output);}return locale.postformat(output);}var abs$1=Math.abs;function sign(x){return(x>0)-(x<0)||+x;}function toISOString$1(){// for ISO strings we do not use the normal bubbling rules:\n//  * milliseconds bubble up until they become hours\n//  * days do not bubble at all\n//  * months bubble up until they become years\n// This is because there is no context-free conversion between hours and days\n// (think of clock changes)\n// and also not between days and months (28-31 days per month)\nif(!this.isValid()){return this.localeData().invalidDate();}var seconds=abs$1(this._milliseconds)/1000;var days=abs$1(this._days);var months=abs$1(this._months);var minutes,hours,years;// 3600 seconds -> 60 minutes -> 1 hour\nminutes=absFloor(seconds/60);hours=absFloor(minutes/60);seconds%=60;minutes%=60;// 12 months -> 1 year\nyears=absFloor(months/12);months%=12;// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\nvar Y=years;var M=months;var D=days;var h=hours;var m=minutes;var s=seconds?seconds.toFixed(3).replace(/\\.?0+$/,''):'';var total=this.asSeconds();if(!total){// this is the same as C#'s (Noda) and python (isodate)...\n// but not other JS (goog.date)\nreturn'P0D';}var totalSign=total<0?'-':'';var ymSign=sign(this._months)!==sign(total)?'-':'';var daysSign=sign(this._days)!==sign(total)?'-':'';var hmsSign=sign(this._milliseconds)!==sign(total)?'-':'';return totalSign+'P'+(Y?ymSign+Y+'Y':'')+(M?ymSign+M+'M':'')+(D?daysSign+D+'D':'')+(h||m||s?'T':'')+(h?hmsSign+h+'H':'')+(m?hmsSign+m+'M':'')+(s?hmsSign+s+'S':'');}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs;proto$2.add=add$1;proto$2.subtract=subtract$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asQuarters=asQuarters;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1;proto$2.get=get$2;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale;proto$2.localeData=localeData;proto$2.toIsoString=deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',toISOString$1);proto$2.lang=lang;// Side effect imports\n// FORMATTING\naddFormatToken('X',0,0,'unix');addFormatToken('x',0,0,'valueOf');// PARSING\naddRegexToken('x',matchSigned);addRegexToken('X',matchTimestamp);addParseToken('X',function(input,array,config){config._d=new Date(parseFloat(input,10)*1000);});addParseToken('x',function(input,array,config){config._d=new Date(toInt(input));});// Side effect imports\nhooks.version='2.24.0';setHookCallback(createLocal);hooks.fn=proto;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto;// currently HTML5 input type only supports 24-hour formats\nhooks.HTML5_FMT={DATETIME_LOCAL:'YYYY-MM-DDTHH:mm',// <input type=\"datetime-local\" />\nDATETIME_LOCAL_SECONDS:'YYYY-MM-DDTHH:mm:ss',// <input type=\"datetime-local\" step=\"1\" />\nDATETIME_LOCAL_MS:'YYYY-MM-DDTHH:mm:ss.SSS',// <input type=\"datetime-local\" step=\"0.001\" />\nDATE:'YYYY-MM-DD',// <input type=\"date\" />\nTIME:'HH:mm',// <input type=\"time\" />\nTIME_SECONDS:'HH:mm:ss',// <input type=\"time\" step=\"1\" />\nTIME_MS:'HH:mm:ss.SSS',// <input type=\"time\" step=\"0.001\" />\nWEEK:'GGGG-[W]WW',// <input type=\"week\" />\nMONTH:'YYYY-MM'// <input type=\"month\" />\n};return hooks;});});var FORMATS={datetime:'MMM D, YYYY, h:mm:ss a',millisecond:'h:mm:ss.SSS a',second:'h:mm:ss a',minute:'h:mm a',hour:'hA',day:'MMM D',week:'ll',month:'MMM YYYY',quarter:'[Q]Q - YYYY',year:'YYYY'};core_adapters._date.override(typeof moment==='function'?{_id:'moment',// DEBUG ONLY\nformats:function(){return FORMATS;},parse:function(value,format){if(typeof value==='string'&&typeof format==='string'){value=moment(value,format);}else if(!(value instanceof moment)){value=moment(value);}return value.isValid()?value.valueOf():null;},format:function(time,format){return moment(time).format(format);},add:function(time,amount,unit){return moment(time).add(amount,unit).valueOf();},diff:function(max,min,unit){return moment(max).diff(moment(min),unit);},startOf:function(time,unit,weekday){time=moment(time);if(unit==='isoWeek'){return time.isoWeekday(weekday).valueOf();}return time.startOf(unit).valueOf();},endOf:function(time,unit){return moment(time).endOf(unit).valueOf();},// DEPRECATIONS\n/**\r\n         * Provided for backward compatibility with scale.getValueForPixel().\r\n         * @deprecated since version 2.8.0\r\n         * @todo remove at version 3\r\n         * @private\r\n         */_create:function(time){return moment(time);}}:{});core_defaults._set('global',{plugins:{filler:{propagate:true}}});var mappers={dataset:function(source){var index=source.fill;var chart=source.chart;var meta=chart.getDatasetMeta(index);var visible=meta&&chart.isDatasetVisible(index);var points=visible&&meta.dataset._children||[];var length=points.length||0;return!length?null:function(point,i){return i<length&&points[i]._view||null;};},boundary:function(source){var boundary=source.boundary;var x=boundary?boundary.x:null;var y=boundary?boundary.y:null;if(helpers$1.isArray(boundary)){return function(point,i){return boundary[i];};}return function(point){return{x:x===null?point.x:x,y:y===null?point.y:y};};}};// @todo if (fill[0] === '#')\nfunction decodeFill(el,index,count){var model=el._model||{};var fill=model.fill;var target;if(fill===undefined){fill=!!model.backgroundColor;}if(fill===false||fill===null){return false;}if(fill===true){return'origin';}target=parseFloat(fill,10);if(isFinite(target)&&Math.floor(target)===target){if(fill[0]==='-'||fill[0]==='+'){target=index+target;}if(target===index||target<0||target>=count){return false;}return target;}switch(fill){// compatibility\ncase'bottom':return'start';case'top':return'end';case'zero':return'origin';// supported boundaries\ncase'origin':case'start':case'end':return fill;// invalid fill values\ndefault:return false;}}function computeLinearBoundary(source){var model=source.el._model||{};var scale=source.el._scale||{};var fill=source.fill;var target=null;var horizontal;if(isFinite(fill)){return null;}// Backward compatibility: until v3, we still need to support boundary values set on\n// the model (scaleTop, scaleBottom and scaleZero) because some external plugins and\n// controllers might still use it (e.g. the Smith chart).\nif(fill==='start'){target=model.scaleBottom===undefined?scale.bottom:model.scaleBottom;}else if(fill==='end'){target=model.scaleTop===undefined?scale.top:model.scaleTop;}else if(model.scaleZero!==undefined){target=model.scaleZero;}else if(scale.getBasePixel){target=scale.getBasePixel();}if(target!==undefined&&target!==null){if(target.x!==undefined&&target.y!==undefined){return target;}if(helpers$1.isFinite(target)){horizontal=scale.isHorizontal();return{x:horizontal?target:null,y:horizontal?null:target};}}return null;}function computeCircularBoundary(source){var scale=source.el._scale;var options=scale.options;var length=scale.chart.data.labels.length;var fill=source.fill;var target=[];var start,end,center,i,point;if(!length){return null;}start=options.ticks.reverse?scale.max:scale.min;end=options.ticks.reverse?scale.min:scale.max;center=scale.getPointPositionForValue(0,start);for(i=0;i<length;++i){point=fill==='start'||fill==='end'?scale.getPointPositionForValue(i,fill==='start'?start:end):scale.getBasePosition(i);if(options.gridLines.circular){point.cx=center.x;point.cy=center.y;point.angle=scale.getIndexAngle(i)-Math.PI/2;}target.push(point);}return target;}function computeBoundary(source){var scale=source.el._scale||{};if(scale.getPointPositionForValue){return computeCircularBoundary(source);}return computeLinearBoundary(source);}function resolveTarget(sources,index,propagate){var source=sources[index];var fill=source.fill;var visited=[index];var target;if(!propagate){return fill;}while(fill!==false&&visited.indexOf(fill)===-1){if(!isFinite(fill)){return fill;}target=sources[fill];if(!target){return false;}if(target.visible){return fill;}visited.push(fill);fill=target.fill;}return false;}function createMapper(source){var fill=source.fill;var type='dataset';if(fill===false){return null;}if(!isFinite(fill)){type='boundary';}return mappers[type](source);}function isDrawable(point){return point&&!point.skip;}function drawArea(ctx,curve0,curve1,len0,len1){var i,cx,cy,r;if(!len0||!len1){return;}// building first area curve (normal)\nctx.moveTo(curve0[0].x,curve0[0].y);for(i=1;i<len0;++i){helpers$1.canvas.lineTo(ctx,curve0[i-1],curve0[i]);}if(curve1[0].angle!==undefined){cx=curve1[0].cx;cy=curve1[0].cy;r=Math.sqrt(Math.pow(curve1[0].x-cx,2)+Math.pow(curve1[0].y-cy,2));for(i=len1-1;i>0;--i){ctx.arc(cx,cy,r,curve1[i].angle,curve1[i-1].angle,true);}return;}// joining the two area curves\nctx.lineTo(curve1[len1-1].x,curve1[len1-1].y);// building opposite area curve (reverse)\nfor(i=len1-1;i>0;--i){helpers$1.canvas.lineTo(ctx,curve1[i],curve1[i-1],true);}}function doFill(ctx,points,mapper,view,color,loop){var count=points.length;var span=view.spanGaps;var curve0=[];var curve1=[];var len0=0;var len1=0;var i,ilen,index,p0,p1,d0,d1,loopOffset;ctx.beginPath();for(i=0,ilen=count;i<ilen;++i){index=i%count;p0=points[index]._view;p1=mapper(p0,index,view);d0=isDrawable(p0);d1=isDrawable(p1);if(loop&&loopOffset===undefined&&d0){loopOffset=i+1;ilen=count+loopOffset;}if(d0&&d1){len0=curve0.push(p0);len1=curve1.push(p1);}else if(len0&&len1){if(!span){drawArea(ctx,curve0,curve1,len0,len1);len0=len1=0;curve0=[];curve1=[];}else{if(d0){curve0.push(p0);}if(d1){curve1.push(p1);}}}}drawArea(ctx,curve0,curve1,len0,len1);ctx.closePath();ctx.fillStyle=color;ctx.fill();}var plugin_filler={id:'filler',afterDatasetsUpdate:function(chart,options){var count=(chart.data.datasets||[]).length;var propagate=options.propagate;var sources=[];var meta,i,el,source;for(i=0;i<count;++i){meta=chart.getDatasetMeta(i);el=meta.dataset;source=null;if(el&&el._model&&el instanceof elements.Line){source={visible:chart.isDatasetVisible(i),fill:decodeFill(el,i,count),chart:chart,el:el};}meta.$filler=source;sources.push(source);}for(i=0;i<count;++i){source=sources[i];if(!source){continue;}source.fill=resolveTarget(sources,i,propagate);source.boundary=computeBoundary(source);source.mapper=createMapper(source);}},beforeDatasetsDraw:function(chart){var metasets=chart._getSortedVisibleDatasetMetas();var ctx=chart.ctx;var meta,i,el,view,points,mapper,color;for(i=metasets.length-1;i>=0;--i){meta=metasets[i].$filler;if(!meta||!meta.visible){continue;}el=meta.el;view=el._view;points=el._children||[];mapper=meta.mapper;color=view.backgroundColor||core_defaults.global.defaultColor;if(mapper&&color&&points.length){helpers$1.canvas.clipArea(ctx,chart.chartArea);doFill(ctx,points,mapper,view,color,el._loop);helpers$1.canvas.unclipArea(ctx);}}}};var getRtlHelper$1=helpers$1.rtl.getRtlAdapter;var noop$1=helpers$1.noop;var valueOrDefault$e=helpers$1.valueOrDefault;core_defaults._set('global',{legend:{display:true,position:'top',align:'center',fullWidth:true,reverse:false,weight:1000,// a callback that will handle\nonClick:function(e,legendItem){var index=legendItem.datasetIndex;var ci=this.chart;var meta=ci.getDatasetMeta(index);// See controller.isDatasetVisible comment\nmeta.hidden=meta.hidden===null?!ci.data.datasets[index].hidden:null;// We hid a dataset ... rerender the chart\nci.update();},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,// Generates labels shown in the legend\n// Valid properties to return:\n// text : text to display\n// fillStyle : fill of coloured box\n// strokeStyle: stroke of coloured box\n// hidden : if this legend item refers to a hidden item\n// lineCap : cap style for line\n// lineDash\n// lineDashOffset :\n// lineJoin :\n// lineWidth :\ngenerateLabels:function(chart){var datasets=chart.data.datasets;var options=chart.options.legend||{};var usePointStyle=options.labels&&options.labels.usePointStyle;return chart._getSortedDatasetMetas().map(function(meta){var style=meta.controller.getStyle(usePointStyle?0:undefined);return{text:datasets[meta.index].label,fillStyle:style.backgroundColor,hidden:!chart.isDatasetVisible(meta.index),lineCap:style.borderCapStyle,lineDash:style.borderDash,lineDashOffset:style.borderDashOffset,lineJoin:style.borderJoinStyle,lineWidth:style.borderWidth,strokeStyle:style.borderColor,pointStyle:style.pointStyle,rotation:style.rotation,// Below is extra data used for toggling the datasets\ndatasetIndex:meta.index};},this);}}},legendCallback:function(chart){var list=document.createElement('ul');var datasets=chart.data.datasets;var i,ilen,listItem,listItemSpan;list.setAttribute('class',chart.id+'-legend');for(i=0,ilen=datasets.length;i<ilen;i++){listItem=list.appendChild(document.createElement('li'));listItemSpan=listItem.appendChild(document.createElement('span'));listItemSpan.style.backgroundColor=datasets[i].backgroundColor;if(datasets[i].label){listItem.appendChild(document.createTextNode(datasets[i].label));}}return list.outerHTML;}});/**\r\n     * Helper function to get the box width based on the usePointStyle option\r\n     * @param {object} labelopts - the label options on the legend\r\n     * @param {number} fontSize - the label font size\r\n     * @return {number} width of the color box area\r\n     */function getBoxWidth(labelOpts,fontSize){return labelOpts.usePointStyle&&labelOpts.boxWidth>fontSize?fontSize:labelOpts.boxWidth;}/**\r\n     * IMPORTANT: this class is exposed publicly as Chart.Legend, backward compatibility required!\r\n     */var Legend=core_element.extend({initialize:function(config){var me=this;helpers$1.extend(me,config);// Contains hit boxes for each dataset (in dataset order)\nme.legendHitBoxes=[];/**\r\n              * @private\r\n              */me._hoveredItem=null;// Are we in doughnut mode which has a different data type\nme.doughnutMode=false;},// These methods are ordered by lifecycle. Utilities then follow.\n// Any function defined here is inherited by all legend types.\n// Any function can be extended by the legend type\nbeforeUpdate:noop$1,update:function(maxWidth,maxHeight,margins){var me=this;// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)\nme.beforeUpdate();// Absorb the master measurements\nme.maxWidth=maxWidth;me.maxHeight=maxHeight;me.margins=margins;// Dimensions\nme.beforeSetDimensions();me.setDimensions();me.afterSetDimensions();// Labels\nme.beforeBuildLabels();me.buildLabels();me.afterBuildLabels();// Fit\nme.beforeFit();me.fit();me.afterFit();//\nme.afterUpdate();return me.minSize;},afterUpdate:noop$1,//\nbeforeSetDimensions:noop$1,setDimensions:function(){var me=this;// Set the unconstrained dimension before label rotation\nif(me.isHorizontal()){// Reset position before calculating rotation\nme.width=me.maxWidth;me.left=0;me.right=me.width;}else{me.height=me.maxHeight;// Reset position before calculating rotation\nme.top=0;me.bottom=me.height;}// Reset padding\nme.paddingLeft=0;me.paddingTop=0;me.paddingRight=0;me.paddingBottom=0;// Reset minSize\nme.minSize={width:0,height:0};},afterSetDimensions:noop$1,//\nbeforeBuildLabels:noop$1,buildLabels:function(){var me=this;var labelOpts=me.options.labels||{};var legendItems=helpers$1.callback(labelOpts.generateLabels,[me.chart],me)||[];if(labelOpts.filter){legendItems=legendItems.filter(function(item){return labelOpts.filter(item,me.chart.data);});}if(me.options.reverse){legendItems.reverse();}me.legendItems=legendItems;},afterBuildLabels:noop$1,//\nbeforeFit:noop$1,fit:function(){var me=this;var opts=me.options;var labelOpts=opts.labels;var display=opts.display;var ctx=me.ctx;var labelFont=helpers$1.options._parseFont(labelOpts);var fontSize=labelFont.size;// Reset hit boxes\nvar hitboxes=me.legendHitBoxes=[];var minSize=me.minSize;var isHorizontal=me.isHorizontal();if(isHorizontal){minSize.width=me.maxWidth;// fill all the width\nminSize.height=display?10:0;}else{minSize.width=display?10:0;minSize.height=me.maxHeight;// fill all the height\n}// Increase sizes here\nif(!display){me.width=minSize.width=me.height=minSize.height=0;return;}ctx.font=labelFont.string;if(isHorizontal){// Labels\n// Width of each line of legend boxes. Labels wrap onto multiple lines when there are too many to fit on one\nvar lineWidths=me.lineWidths=[0];var totalHeight=0;ctx.textAlign='left';ctx.textBaseline='middle';helpers$1.each(me.legendItems,function(legendItem,i){var boxWidth=getBoxWidth(labelOpts,fontSize);var width=boxWidth+fontSize/2+ctx.measureText(legendItem.text).width;if(i===0||lineWidths[lineWidths.length-1]+width+2*labelOpts.padding>minSize.width){totalHeight+=fontSize+labelOpts.padding;lineWidths[lineWidths.length-(i>0?0:1)]=0;}// Store the hitbox width and height here. Final position will be updated in `draw`\nhitboxes[i]={left:0,top:0,width:width,height:fontSize};lineWidths[lineWidths.length-1]+=width+labelOpts.padding;});minSize.height+=totalHeight;}else{var vPadding=labelOpts.padding;var columnWidths=me.columnWidths=[];var columnHeights=me.columnHeights=[];var totalWidth=labelOpts.padding;var currentColWidth=0;var currentColHeight=0;helpers$1.each(me.legendItems,function(legendItem,i){var boxWidth=getBoxWidth(labelOpts,fontSize);var itemWidth=boxWidth+fontSize/2+ctx.measureText(legendItem.text).width;// If too tall, go to new column\nif(i>0&&currentColHeight+fontSize+2*vPadding>minSize.height){totalWidth+=currentColWidth+labelOpts.padding;columnWidths.push(currentColWidth);// previous column width\ncolumnHeights.push(currentColHeight);currentColWidth=0;currentColHeight=0;}// Get max width\ncurrentColWidth=Math.max(currentColWidth,itemWidth);currentColHeight+=fontSize+vPadding;// Store the hitbox width and height here. Final position will be updated in `draw`\nhitboxes[i]={left:0,top:0,width:itemWidth,height:fontSize};});totalWidth+=currentColWidth;columnWidths.push(currentColWidth);columnHeights.push(currentColHeight);minSize.width+=totalWidth;}me.width=minSize.width;me.height=minSize.height;},afterFit:noop$1,// Shared Methods\nisHorizontal:function(){return this.options.position==='top'||this.options.position==='bottom';},// Actually draw the legend on the canvas\ndraw:function(){var me=this;var opts=me.options;var labelOpts=opts.labels;var globalDefaults=core_defaults.global;var defaultColor=globalDefaults.defaultColor;var lineDefault=globalDefaults.elements.line;var legendHeight=me.height;var columnHeights=me.columnHeights;var legendWidth=me.width;var lineWidths=me.lineWidths;if(!opts.display){return;}var rtlHelper=getRtlHelper$1(opts.rtl,me.left,me.minSize.width);var ctx=me.ctx;var fontColor=valueOrDefault$e(labelOpts.fontColor,globalDefaults.defaultFontColor);var labelFont=helpers$1.options._parseFont(labelOpts);var fontSize=labelFont.size;var cursor;// Canvas setup\nctx.textAlign=rtlHelper.textAlign('left');ctx.textBaseline='middle';ctx.lineWidth=0.5;ctx.strokeStyle=fontColor;// for strikethrough effect\nctx.fillStyle=fontColor;// render in correct colour\nctx.font=labelFont.string;var boxWidth=getBoxWidth(labelOpts,fontSize);var hitboxes=me.legendHitBoxes;// current position\nvar drawLegendBox=function(x,y,legendItem){if(isNaN(boxWidth)||boxWidth<=0){return;}// Set the ctx for the box\nctx.save();var lineWidth=valueOrDefault$e(legendItem.lineWidth,lineDefault.borderWidth);ctx.fillStyle=valueOrDefault$e(legendItem.fillStyle,defaultColor);ctx.lineCap=valueOrDefault$e(legendItem.lineCap,lineDefault.borderCapStyle);ctx.lineDashOffset=valueOrDefault$e(legendItem.lineDashOffset,lineDefault.borderDashOffset);ctx.lineJoin=valueOrDefault$e(legendItem.lineJoin,lineDefault.borderJoinStyle);ctx.lineWidth=lineWidth;ctx.strokeStyle=valueOrDefault$e(legendItem.strokeStyle,defaultColor);if(ctx.setLineDash){// IE 9 and 10 do not support line dash\nctx.setLineDash(valueOrDefault$e(legendItem.lineDash,lineDefault.borderDash));}if(labelOpts&&labelOpts.usePointStyle){// Recalculate x and y for drawPoint() because its expecting\n// x and y to be center of figure (instead of top left)\nvar radius=boxWidth*Math.SQRT2/2;var centerX=rtlHelper.xPlus(x,boxWidth/2);var centerY=y+fontSize/2;// Draw pointStyle as legend symbol\nhelpers$1.canvas.drawPoint(ctx,legendItem.pointStyle,radius,centerX,centerY,legendItem.rotation);}else{// Draw box as legend symbol\nctx.fillRect(rtlHelper.leftForLtr(x,boxWidth),y,boxWidth,fontSize);if(lineWidth!==0){ctx.strokeRect(rtlHelper.leftForLtr(x,boxWidth),y,boxWidth,fontSize);}}ctx.restore();};var fillText=function(x,y,legendItem,textWidth){var halfFontSize=fontSize/2;var xLeft=rtlHelper.xPlus(x,boxWidth+halfFontSize);var yMiddle=y+halfFontSize;ctx.fillText(legendItem.text,xLeft,yMiddle);if(legendItem.hidden){// Strikethrough the text if hidden\nctx.beginPath();ctx.lineWidth=2;ctx.moveTo(xLeft,yMiddle);ctx.lineTo(rtlHelper.xPlus(xLeft,textWidth),yMiddle);ctx.stroke();}};var alignmentOffset=function(dimension,blockSize){switch(opts.align){case'start':return labelOpts.padding;case'end':return dimension-blockSize;default:// center\nreturn(dimension-blockSize+labelOpts.padding)/2;}};// Horizontal\nvar isHorizontal=me.isHorizontal();if(isHorizontal){cursor={x:me.left+alignmentOffset(legendWidth,lineWidths[0]),y:me.top+labelOpts.padding,line:0};}else{cursor={x:me.left+labelOpts.padding,y:me.top+alignmentOffset(legendHeight,columnHeights[0]),line:0};}helpers$1.rtl.overrideTextDirection(me.ctx,opts.textDirection);var itemHeight=fontSize+labelOpts.padding;helpers$1.each(me.legendItems,function(legendItem,i){var textWidth=ctx.measureText(legendItem.text).width;var width=boxWidth+fontSize/2+textWidth;var x=cursor.x;var y=cursor.y;rtlHelper.setWidth(me.minSize.width);// Use (me.left + me.minSize.width) and (me.top + me.minSize.height)\n// instead of me.right and me.bottom because me.width and me.height\n// may have been changed since me.minSize was calculated\nif(isHorizontal){if(i>0&&x+width+labelOpts.padding>me.left+me.minSize.width){y=cursor.y+=itemHeight;cursor.line++;x=cursor.x=me.left+alignmentOffset(legendWidth,lineWidths[cursor.line]);}}else if(i>0&&y+itemHeight>me.top+me.minSize.height){x=cursor.x=x+me.columnWidths[cursor.line]+labelOpts.padding;cursor.line++;y=cursor.y=me.top+alignmentOffset(legendHeight,columnHeights[cursor.line]);}var realX=rtlHelper.x(x);drawLegendBox(realX,y,legendItem);hitboxes[i].left=rtlHelper.leftForLtr(realX,hitboxes[i].width);hitboxes[i].top=y;// Fill the actual label\nfillText(realX,y,legendItem,textWidth);if(isHorizontal){cursor.x+=width+labelOpts.padding;}else{cursor.y+=itemHeight;}});helpers$1.rtl.restoreTextDirection(me.ctx,opts.textDirection);},/**\r\n         * @private\r\n         */_getLegendItemAt:function(x,y){var me=this;var i,hitBox,lh;if(x>=me.left&&x<=me.right&&y>=me.top&&y<=me.bottom){// See if we are touching one of the dataset boxes\nlh=me.legendHitBoxes;for(i=0;i<lh.length;++i){hitBox=lh[i];if(x>=hitBox.left&&x<=hitBox.left+hitBox.width&&y>=hitBox.top&&y<=hitBox.top+hitBox.height){// Touching an element\nreturn me.legendItems[i];}}}return null;},/**\r\n         * Handle an event\r\n         * @private\r\n         * @param {IEvent} event - The event to handle\r\n         */handleEvent:function(e){var me=this;var opts=me.options;var type=e.type==='mouseup'?'click':e.type;var hoveredItem;if(type==='mousemove'){if(!opts.onHover&&!opts.onLeave){return;}}else if(type==='click'){if(!opts.onClick){return;}}else{return;}// Chart event already has relative position in it\nhoveredItem=me._getLegendItemAt(e.x,e.y);if(type==='click'){if(hoveredItem&&opts.onClick){// use e.native for backwards compatibility\nopts.onClick.call(me,e.native,hoveredItem);}}else{if(opts.onLeave&&hoveredItem!==me._hoveredItem){if(me._hoveredItem){opts.onLeave.call(me,e.native,me._hoveredItem);}me._hoveredItem=hoveredItem;}if(opts.onHover&&hoveredItem){// use e.native for backwards compatibility\nopts.onHover.call(me,e.native,hoveredItem);}}}});function createNewLegendAndAttach(chart,legendOpts){var legend=new Legend({ctx:chart.ctx,options:legendOpts,chart:chart});core_layouts.configure(chart,legend,legendOpts);core_layouts.addBox(chart,legend);chart.legend=legend;}var plugin_legend={id:'legend',/**\r\n         * Backward compatibility: since 2.1.5, the legend is registered as a plugin, making\r\n         * Chart.Legend obsolete. To avoid a breaking change, we export the Legend as part of\r\n         * the plugin, which one will be re-exposed in the chart.js file.\r\n         * https://github.com/chartjs/Chart.js/pull/2640\r\n         * @private\r\n         */_element:Legend,beforeInit:function(chart){var legendOpts=chart.options.legend;if(legendOpts){createNewLegendAndAttach(chart,legendOpts);}},beforeUpdate:function(chart){var legendOpts=chart.options.legend;var legend=chart.legend;if(legendOpts){helpers$1.mergeIf(legendOpts,core_defaults.global.legend);if(legend){core_layouts.configure(chart,legend,legendOpts);legend.options=legendOpts;}else{createNewLegendAndAttach(chart,legendOpts);}}else if(legend){core_layouts.removeBox(chart,legend);delete chart.legend;}},afterEvent:function(chart,e){var legend=chart.legend;if(legend){legend.handleEvent(e);}}};var noop$2=helpers$1.noop;core_defaults._set('global',{title:{display:false,fontStyle:'bold',fullWidth:true,padding:10,position:'top',text:'',weight:2000// by default greater than legend (1000) to be above\n}});/**\r\n     * IMPORTANT: this class is exposed publicly as Chart.Legend, backward compatibility required!\r\n     */var Title=core_element.extend({initialize:function(config){var me=this;helpers$1.extend(me,config);// Contains hit boxes for each dataset (in dataset order)\nme.legendHitBoxes=[];},// These methods are ordered by lifecycle. Utilities then follow.\nbeforeUpdate:noop$2,update:function(maxWidth,maxHeight,margins){var me=this;// Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)\nme.beforeUpdate();// Absorb the master measurements\nme.maxWidth=maxWidth;me.maxHeight=maxHeight;me.margins=margins;// Dimensions\nme.beforeSetDimensions();me.setDimensions();me.afterSetDimensions();// Labels\nme.beforeBuildLabels();me.buildLabels();me.afterBuildLabels();// Fit\nme.beforeFit();me.fit();me.afterFit();//\nme.afterUpdate();return me.minSize;},afterUpdate:noop$2,//\nbeforeSetDimensions:noop$2,setDimensions:function(){var me=this;// Set the unconstrained dimension before label rotation\nif(me.isHorizontal()){// Reset position before calculating rotation\nme.width=me.maxWidth;me.left=0;me.right=me.width;}else{me.height=me.maxHeight;// Reset position before calculating rotation\nme.top=0;me.bottom=me.height;}// Reset padding\nme.paddingLeft=0;me.paddingTop=0;me.paddingRight=0;me.paddingBottom=0;// Reset minSize\nme.minSize={width:0,height:0};},afterSetDimensions:noop$2,//\nbeforeBuildLabels:noop$2,buildLabels:noop$2,afterBuildLabels:noop$2,//\nbeforeFit:noop$2,fit:function(){var me=this;var opts=me.options;var minSize=me.minSize={};var isHorizontal=me.isHorizontal();var lineCount,textSize;if(!opts.display){me.width=minSize.width=me.height=minSize.height=0;return;}lineCount=helpers$1.isArray(opts.text)?opts.text.length:1;textSize=lineCount*helpers$1.options._parseFont(opts).lineHeight+opts.padding*2;me.width=minSize.width=isHorizontal?me.maxWidth:textSize;me.height=minSize.height=isHorizontal?textSize:me.maxHeight;},afterFit:noop$2,// Shared Methods\nisHorizontal:function(){var pos=this.options.position;return pos==='top'||pos==='bottom';},// Actually draw the title block on the canvas\ndraw:function(){var me=this;var ctx=me.ctx;var opts=me.options;if(!opts.display){return;}var fontOpts=helpers$1.options._parseFont(opts);var lineHeight=fontOpts.lineHeight;var offset=lineHeight/2+opts.padding;var rotation=0;var top=me.top;var left=me.left;var bottom=me.bottom;var right=me.right;var maxWidth,titleX,titleY;ctx.fillStyle=helpers$1.valueOrDefault(opts.fontColor,core_defaults.global.defaultFontColor);// render in correct colour\nctx.font=fontOpts.string;// Horizontal\nif(me.isHorizontal()){titleX=left+(right-left)/2;// midpoint of the width\ntitleY=top+offset;maxWidth=right-left;}else{titleX=opts.position==='left'?left+offset:right-offset;titleY=top+(bottom-top)/2;maxWidth=bottom-top;rotation=Math.PI*(opts.position==='left'?-0.5:0.5);}ctx.save();ctx.translate(titleX,titleY);ctx.rotate(rotation);ctx.textAlign='center';ctx.textBaseline='middle';var text=opts.text;if(helpers$1.isArray(text)){var y=0;for(var i=0;i<text.length;++i){ctx.fillText(text[i],0,y,maxWidth);y+=lineHeight;}}else{ctx.fillText(text,0,0,maxWidth);}ctx.restore();}});function createNewTitleBlockAndAttach(chart,titleOpts){var title=new Title({ctx:chart.ctx,options:titleOpts,chart:chart});core_layouts.configure(chart,title,titleOpts);core_layouts.addBox(chart,title);chart.titleBlock=title;}var plugin_title={id:'title',/**\r\n         * Backward compatibility: since 2.1.5, the title is registered as a plugin, making\r\n         * Chart.Title obsolete. To avoid a breaking change, we export the Title as part of\r\n         * the plugin, which one will be re-exposed in the chart.js file.\r\n         * https://github.com/chartjs/Chart.js/pull/2640\r\n         * @private\r\n         */_element:Title,beforeInit:function(chart){var titleOpts=chart.options.title;if(titleOpts){createNewTitleBlockAndAttach(chart,titleOpts);}},beforeUpdate:function(chart){var titleOpts=chart.options.title;var titleBlock=chart.titleBlock;if(titleOpts){helpers$1.mergeIf(titleOpts,core_defaults.global.title);if(titleBlock){core_layouts.configure(chart,titleBlock,titleOpts);titleBlock.options=titleOpts;}else{createNewTitleBlockAndAttach(chart,titleOpts);}}else if(titleBlock){core_layouts.removeBox(chart,titleBlock);delete chart.titleBlock;}}};var plugins={};var filler=plugin_filler;var legend=plugin_legend;var title=plugin_title;plugins.filler=filler;plugins.legend=legend;plugins.title=title;/**\r\n     * @namespace Chart\r\n     */core_controller.helpers=helpers$1;// @todo dispatch these helpers into appropriated helpers/helpers.* file and write unit tests!\ncore_helpers();core_controller._adapters=core_adapters;core_controller.Animation=core_animation;core_controller.animationService=core_animations;core_controller.controllers=controllers;core_controller.DatasetController=core_datasetController;core_controller.defaults=core_defaults;core_controller.Element=core_element;core_controller.elements=elements;core_controller.Interaction=core_interaction;core_controller.layouts=core_layouts;core_controller.platform=platform;core_controller.plugins=core_plugins;core_controller.Scale=core_scale;core_controller.scaleService=core_scaleService;core_controller.Ticks=core_ticks;core_controller.Tooltip=core_tooltip;// Register built-in scales\ncore_controller.helpers.each(scales,function(scale,type){core_controller.scaleService.registerScaleType(type,scale,scale._defaults);});// Load to register built-in adapters (as side effects)\n// Loading built-in plugins\nfor(var k in plugins){if(plugins.hasOwnProperty(k)){core_controller.plugins.register(plugins[k]);}}core_controller.platform.initialize();var src=core_controller;if(typeof window!=='undefined'){window.Chart=core_controller;}// DEPRECATIONS\n/**\r\n     * Provided for backward compatibility, not available anymore\r\n     * @namespace Chart.Chart\r\n     * @deprecated since version 2.8.0\r\n     * @todo remove at version 3\r\n     * @private\r\n     */core_controller.Chart=core_controller;/**\r\n     * Provided for backward compatibility, not available anymore\r\n     * @namespace Chart.Legend\r\n     * @deprecated since version 2.1.5\r\n     * @todo remove at version 3\r\n     * @private\r\n     */core_controller.Legend=plugins.legend._element;/**\r\n     * Provided for backward compatibility, not available anymore\r\n     * @namespace Chart.Title\r\n     * @deprecated since version 2.1.5\r\n     * @todo remove at version 3\r\n     * @private\r\n     */core_controller.Title=plugins.title._element;/**\r\n     * Provided for backward compatibility, use Chart.plugins instead\r\n     * @namespace Chart.pluginService\r\n     * @deprecated since version 2.1.5\r\n     * @todo remove at version 3\r\n     * @private\r\n     */core_controller.pluginService=core_controller.plugins;/**\r\n     * Provided for backward compatibility, inheriting from Chart.PlugingBase has no\r\n     * effect, instead simply create/register plugins via plain JavaScript objects.\r\n     * @interface Chart.PluginBase\r\n     * @deprecated since version 2.5.0\r\n     * @todo remove at version 3\r\n     * @private\r\n     */core_controller.PluginBase=core_controller.Element.extend({});/**\r\n     * Provided for backward compatibility, use Chart.helpers.canvas instead.\r\n     * @namespace Chart.canvasHelpers\r\n     * @deprecated since version 2.6.0\r\n     * @todo remove at version 3\r\n     * @private\r\n     */core_controller.canvasHelpers=core_controller.helpers.canvas;/**\r\n     * Provided for backward compatibility, use Chart.layouts instead.\r\n     * @namespace Chart.layoutService\r\n     * @deprecated since version 2.7.3\r\n     * @todo remove at version 3\r\n     * @private\r\n     */core_controller.layoutService=core_controller.layouts;/**\r\n     * Provided for backward compatibility, not available anymore.\r\n     * @namespace Chart.LinearScaleBase\r\n     * @deprecated since version 2.8\r\n     * @todo remove at version 3\r\n     * @private\r\n     */core_controller.LinearScaleBase=scale_linearbase;/**\r\n     * Provided for backward compatibility, instead we should create a new Chart\r\n     * by setting the type in the config (`new Chart(id, {type: '{chart-type}'}`).\r\n     * @deprecated since version 2.8.0\r\n     * @todo remove at version 3\r\n     */core_controller.helpers.each(['Bar','Bubble','Doughnut','Line','PolarArea','Radar','Scatter'],function(klass){core_controller[klass]=function(ctx,cfg){return new core_controller(ctx,core_controller.helpers.merge(cfg||{},{type:klass.charAt(0).toLowerCase()+klass.slice(1)}));};});return src;});// ----------- chartjs.bundle.js END -------------\n// ----------- moment.js START -------------\n!function(e,t){ true?module.exports=t():0;}(this,function(){\"use strict\";var e,i;function c(){return e.apply(null,arguments);}function o(e){return e instanceof Array||\"[object Array]\"===Object.prototype.toString.call(e);}function u(e){return null!=e&&\"[object Object]\"===Object.prototype.toString.call(e);}function l(e){return void 0===e;}function h(e){return\"number\"==typeof e||\"[object Number]\"===Object.prototype.toString.call(e);}function d(e){return e instanceof Date||\"[object Date]\"===Object.prototype.toString.call(e);}function f(e,t){var n,s=[];for(n=0;n<e.length;++n)s.push(t(e[n],n));return s;}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t);}function _(e,t){for(var n in t)m(t,n)&&(e[n]=t[n]);return m(t,\"toString\")&&(e.toString=t.toString),m(t,\"valueOf\")&&(e.valueOf=t.valueOf),e;}function y(e,t,n,s){return Tt(e,t,n,s,!0).utc();}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf;}function v(e){if(null==e._isValid){var t=g(e),n=i.call(t.parsedDateParts,function(e){return null!=e;}),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s;}return e._isValid;}function p(e){var t=y(NaN);return null!=e?_(g(t),e):g(t).userInvalidated=!0,t;}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1;};var r=c.momentProperties=[];function w(e,t){var n,s,i;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=g(t)),l(t._locale)||(e._locale=t._locale),0<r.length)for(n=0;n<r.length;n++)l(i=t[s=r[n]])||(e[s]=i);return e;}var t=!1;function M(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,c.updateOffset(this),t=!1);}function k(e){return e instanceof M||null!=e&&null!=e._isAMomentObject;}function S(e){return e<0?Math.ceil(e)||0:Math.floor(e);}function D(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=S(t)),n;}function a(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s<i;s++)(n&&e[s]!==t[s]||!n&&D(e[s])!==D(t[s]))&&a++;return a+r;}function Y(e){!1===c.suppressDeprecationWarnings&&\"undefined\"!=typeof console&&console.warn&&console.warn(\"Deprecation warning: \"+e);}function n(i,r){var a=!0;return _(function(){if(null!=c.deprecationHandler&&c.deprecationHandler(null,i),a){for(var e,t=[],n=0;n<arguments.length;n++){if(e=\"\",\"object\"==typeof arguments[n]){for(var s in e+=\"\\n[\"+n+\"] \",arguments[0])e+=s+\": \"+arguments[0][s]+\", \";e=e.slice(0,-2);}else e=arguments[n];t.push(e);}Y(i+\"\\nArguments: \"+Array.prototype.slice.call(t).join(\"\")+\"\\n\"+new Error().stack),a=!1;}return r.apply(this,arguments);},r);}var s,O={};function T(e,t){null!=c.deprecationHandler&&c.deprecationHandler(e,t),O[e]||(Y(t),O[e]=!0);}function b(e){return e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e);}function x(e,t){var n,s=_({},e);for(n in t)m(t,n)&&(u(e[n])&&u(t[n])?(s[n]={},_(s[n],e[n]),_(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)m(e,n)&&!m(t,n)&&u(e[n])&&(s[n]=_({},s[n]));return s;}function P(e){null!=e&&this.set(e);}c.suppressDeprecationWarnings=!1,c.deprecationHandler=null,s=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)m(e,t)&&n.push(t);return n;};var W={};function C(e,t){var n=e.toLowerCase();W[n]=W[n+\"s\"]=W[t]=e;}function H(e){return\"string\"==typeof e?W[e]||W[e.toLowerCase()]:void 0;}function R(e){var t,n,s={};for(n in e)m(e,n)&&(t=H(n))&&(s[t]=e[n]);return s;}var U={};function F(e,t){U[e]=t;}function L(e,t,n){var s=\"\"+Math.abs(e),i=t-s.length;return(0<=e?n?\"+\":\"\":\"-\")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s;}var N=/(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,G=/(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},E={};function I(e,t,n,s){var i=s;\"string\"==typeof s&&(i=function(){return this[s]();}),e&&(E[e]=i),t&&(E[t[0]]=function(){return L(i.apply(this,arguments),t[1],t[2]);}),n&&(E[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e);});}function A(e,t){return e.isValid()?(t=j(t,e.localeData()),V[t]=V[t]||function(s){var e,i,t,r=s.match(N);for(e=0,i=r.length;e<i;e++)E[r[e]]?r[e]=E[r[e]]:r[e]=(t=r[e]).match(/\\[[\\s\\S]/)?t.replace(/^\\[|\\]$/g,\"\"):t.replace(/\\\\/g,\"\");return function(e){var t,n=\"\";for(t=0;t<i;t++)n+=b(r[t])?r[t].call(e,s):r[t];return n;};}(t),V[t](e)):e.localeData().invalidDate();}function j(e,t){var n=5;function s(e){return t.longDateFormat(e)||e;}for(G.lastIndex=0;0<=n&&G.test(e);)e=e.replace(G,s),G.lastIndex=0,n-=1;return e;}var Z=/\\d/,z=/\\d\\d/,$=/\\d{3}/,q=/\\d{4}/,J=/[+-]?\\d{6}/,B=/\\d\\d?/,Q=/\\d\\d\\d\\d?/,X=/\\d\\d\\d\\d\\d\\d?/,K=/\\d{1,3}/,ee=/\\d{1,4}/,te=/[+-]?\\d{1,6}/,ne=/\\d+/,se=/[+-]?\\d+/,ie=/Z|[+-]\\d\\d:?\\d\\d/gi,re=/Z|[+-]\\d\\d(?::?\\d\\d)?/gi,ae=/[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i,oe={};function ue(e,n,s){oe[e]=b(n)?n:function(e,t){return e&&s?s:n;};}function le(e,t){return m(oe,e)?oe[e](t._strict,t._locale):new RegExp(he(e.replace(\"\\\\\",\"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,function(e,t,n,s,i){return t||n||s||i;})));}function he(e){return e.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\");}var de={};function ce(e,n){var t,s=n;for(\"string\"==typeof e&&(e=[e]),h(n)&&(s=function(e,t){t[n]=D(e);}),t=0;t<e.length;t++)de[e[t]]=s;}function fe(e,i){ce(e,function(e,t,n,s){n._w=n._w||{},i(e,n._w,n,s);});}var me=0,_e=1,ye=2,ge=3,ve=4,pe=5,we=6,Me=7,ke=8;function Se(e){return De(e)?366:365;}function De(e){return e%4==0&&e%100!=0||e%400==0;}I(\"Y\",0,0,function(){var e=this.year();return e<=9999?\"\"+e:\"+\"+e;}),I(0,[\"YY\",2],0,function(){return this.year()%100;}),I(0,[\"YYYY\",4],0,\"year\"),I(0,[\"YYYYY\",5],0,\"year\"),I(0,[\"YYYYYY\",6,!0],0,\"year\"),C(\"year\",\"y\"),F(\"year\",1),ue(\"Y\",se),ue(\"YY\",B,z),ue(\"YYYY\",ee,q),ue(\"YYYYY\",te,J),ue(\"YYYYYY\",te,J),ce([\"YYYYY\",\"YYYYYY\"],me),ce(\"YYYY\",function(e,t){t[me]=2===e.length?c.parseTwoDigitYear(e):D(e);}),ce(\"YY\",function(e,t){t[me]=c.parseTwoDigitYear(e);}),ce(\"Y\",function(e,t){t[me]=parseInt(e,10);}),c.parseTwoDigitYear=function(e){return D(e)+(68<D(e)?1900:2e3);};var Ye,Oe=Te(\"FullYear\",!0);function Te(t,n){return function(e){return null!=e?(xe(this,t,e),c.updateOffset(this,n),this):be(this,t);};}function be(e,t){return e.isValid()?e._d[\"get\"+(e._isUTC?\"UTC\":\"\")+t]():NaN;}function xe(e,t,n){e.isValid()&&!isNaN(n)&&(\"FullYear\"===t&&De(e.year())&&1===e.month()&&29===e.date()?e._d[\"set\"+(e._isUTC?\"UTC\":\"\")+t](n,e.month(),Pe(n,e.month())):e._d[\"set\"+(e._isUTC?\"UTC\":\"\")+t](n));}function Pe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,s=(t%(n=12)+n)%n;return e+=(t-s)/12,1===s?De(e)?29:28:31-s%7%2;}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1;},I(\"M\",[\"MM\",2],\"Mo\",function(){return this.month()+1;}),I(\"MMM\",0,0,function(e){return this.localeData().monthsShort(this,e);}),I(\"MMMM\",0,0,function(e){return this.localeData().months(this,e);}),C(\"month\",\"M\"),F(\"month\",8),ue(\"M\",B),ue(\"MM\",B,z),ue(\"MMM\",function(e,t){return t.monthsShortRegex(e);}),ue(\"MMMM\",function(e,t){return t.monthsRegex(e);}),ce([\"M\",\"MM\"],function(e,t){t[_e]=D(e)-1;}),ce([\"MMM\",\"MMMM\"],function(e,t,n,s){var i=n._locale.monthsParse(e,s,n._strict);null!=i?t[_e]=i:g(n).invalidMonth=e;});var We=/D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,Ce=\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\");var He=\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\");function Re(e,t){var n;if(!e.isValid())return e;if(\"string\"==typeof t)if(/^\\d+$/.test(t))t=D(t);else if(!h(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Pe(e.year(),t)),e._d[\"set\"+(e._isUTC?\"UTC\":\"\")+\"Month\"](t,n),e;}function Ue(e){return null!=e?(Re(this,e),c.updateOffset(this,!0),this):be(this,\"Month\");}var Fe=ae;var Le=ae;function Ne(){function e(e,t){return t.length-e.length;}var t,n,s=[],i=[],r=[];for(t=0;t<12;t++)n=y([2e3,t]),s.push(this.monthsShort(n,\"\")),i.push(this.months(n,\"\")),r.push(this.months(n,\"\")),r.push(this.monthsShort(n,\"\"));for(s.sort(e),i.sort(e),r.sort(e),t=0;t<12;t++)s[t]=he(s[t]),i[t]=he(i[t]);for(t=0;t<24;t++)r[t]=he(r[t]);this._monthsRegex=new RegExp(\"^(\"+r.join(\"|\")+\")\",\"i\"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(\"^(\"+i.join(\"|\")+\")\",\"i\"),this._monthsShortStrictRegex=new RegExp(\"^(\"+s.join(\"|\")+\")\",\"i\");}function Ge(e){var t;if(e<100&&0<=e){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e);}else t=new Date(Date.UTC.apply(null,arguments));return t;}function Ve(e,t,n){var s=7+t-n;return-((7+Ge(e,0,s).getUTCDay()-t)%7)+s-1;}function Ee(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+Ve(e,s,i);return a=o<=0?Se(r=e-1)+o:o>Se(e)?(r=e+1,o-Se(e)):(r=e,o),{year:r,dayOfYear:a};}function Ie(e,t,n){var s,i,r=Ve(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ae(i=e.year()-1,t,n):a>Ae(e.year(),t,n)?(s=a-Ae(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i};}function Ae(e,t,n){var s=Ve(e,t,n),i=Ve(e+1,t,n);return(Se(e)-s+i)/7;}I(\"w\",[\"ww\",2],\"wo\",\"week\"),I(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\"),C(\"week\",\"w\"),C(\"isoWeek\",\"W\"),F(\"week\",5),F(\"isoWeek\",5),ue(\"w\",B),ue(\"ww\",B,z),ue(\"W\",B),ue(\"WW\",B,z),fe([\"w\",\"ww\",\"W\",\"WW\"],function(e,t,n,s){t[s.substr(0,1)]=D(e);});function je(e,t){return e.slice(t,7).concat(e.slice(0,t));}I(\"d\",0,\"do\",\"day\"),I(\"dd\",0,0,function(e){return this.localeData().weekdaysMin(this,e);}),I(\"ddd\",0,0,function(e){return this.localeData().weekdaysShort(this,e);}),I(\"dddd\",0,0,function(e){return this.localeData().weekdays(this,e);}),I(\"e\",0,0,\"weekday\"),I(\"E\",0,0,\"isoWeekday\"),C(\"day\",\"d\"),C(\"weekday\",\"e\"),C(\"isoWeekday\",\"E\"),F(\"day\",11),F(\"weekday\",11),F(\"isoWeekday\",11),ue(\"d\",B),ue(\"e\",B),ue(\"E\",B),ue(\"dd\",function(e,t){return t.weekdaysMinRegex(e);}),ue(\"ddd\",function(e,t){return t.weekdaysShortRegex(e);}),ue(\"dddd\",function(e,t){return t.weekdaysRegex(e);}),fe([\"dd\",\"ddd\",\"dddd\"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e;}),fe([\"d\",\"e\",\"E\"],function(e,t,n,s){t[s]=D(e);});var Ze=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\");var ze=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\");var $e=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\");var qe=ae;var Je=ae;var Be=ae;function Qe(){function e(e,t){return t.length-e.length;}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=y([2e3,1]).day(t),s=this.weekdaysMin(n,\"\"),i=this.weekdaysShort(n,\"\"),r=this.weekdays(n,\"\"),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=he(o[t]),u[t]=he(u[t]),l[t]=he(l[t]);this._weekdaysRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+u.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+a.join(\"|\")+\")\",\"i\");}function Xe(){return this.hours()%12||12;}function Ke(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t);});}function et(e,t){return t._meridiemParse;}I(\"H\",[\"HH\",2],0,\"hour\"),I(\"h\",[\"hh\",2],0,Xe),I(\"k\",[\"kk\",2],0,function(){return this.hours()||24;}),I(\"hmm\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2);}),I(\"hmmss\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2)+L(this.seconds(),2);}),I(\"Hmm\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2);}),I(\"Hmmss\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)+L(this.seconds(),2);}),Ke(\"a\",!0),Ke(\"A\",!1),C(\"hour\",\"h\"),F(\"hour\",13),ue(\"a\",et),ue(\"A\",et),ue(\"H\",B),ue(\"h\",B),ue(\"k\",B),ue(\"HH\",B,z),ue(\"hh\",B,z),ue(\"kk\",B,z),ue(\"hmm\",Q),ue(\"hmmss\",X),ue(\"Hmm\",Q),ue(\"Hmmss\",X),ce([\"H\",\"HH\"],ge),ce([\"k\",\"kk\"],function(e,t,n){var s=D(e);t[ge]=24===s?0:s;}),ce([\"a\",\"A\"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e;}),ce([\"h\",\"hh\"],function(e,t,n){t[ge]=D(e),g(n).bigHour=!0;}),ce(\"hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s)),g(n).bigHour=!0;}),ce(\"hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i)),g(n).bigHour=!0;}),ce(\"Hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s));}),ce(\"Hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i));});var tt,nt=Te(\"Hours\",!0),st={calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},longDateFormat:{LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},invalidDate:\"Invalid date\",ordinal:\"%d\",dayOfMonthOrdinalParse:/\\d{1,2}/,relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},months:Ce,monthsShort:He,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:$e,weekdaysShort:ze,meridiemParse:/[ap]\\.?m?\\.?/i},it={},rt={};function at(e){return e?e.toLowerCase().replace(\"_\",\"-\"):e;}function ot(e){var t=null;if(!it[e]&&\"undefined\"!=\"object\"&&module&&module.exports)try{t=tt._abbr,__webpack_require__(\"false sync recursive ^\\\\.\\\\/.*$\")(\"./\"+e),ut(t);}catch(e){}return it[e];}function ut(e,t){var n;return e&&((n=l(t)?ht(e):lt(e,t))?tt=n:\"undefined\"!=typeof console&&console.warn&&console.warn(\"Locale \"+e+\" not found. Did you forget to load it?\")),tt._abbr;}function lt(e,t){if(null===t)return delete it[e],null;var n,s=st;if(t.abbr=e,null!=it[e])T(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"),s=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])s=it[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;s=n._config;}return it[e]=new P(x(s,t)),rt[e]&&rt[e].forEach(function(e){lt(e.name,e.config);}),ut(e),it[e];}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!o(e)){if(t=ot(e))return t;e=[e];}return function(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=at(e[r]).split(\"-\")).length,n=(n=at(e[r+1]))?n.split(\"-\"):null;0<t;){if(s=ot(i.slice(0,t).join(\"-\")))return s;if(n&&n.length>=t&&a(i,n,!0)>=t-1)break;t--;}r++;}return tt;}(e);}function dt(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[_e]<0||11<n[_e]?_e:n[ye]<1||n[ye]>Pe(n[me],n[_e])?ye:n[ge]<0||24<n[ge]||24===n[ge]&&(0!==n[ve]||0!==n[pe]||0!==n[we])?ge:n[ve]<0||59<n[ve]?ve:n[pe]<0||59<n[pe]?pe:n[we]<0||999<n[we]?we:-1,g(e)._overflowDayOfYear&&(t<me||ye<t)&&(t=ye),g(e)._overflowWeeks&&-1===t&&(t=Me),g(e)._overflowWeekday&&-1===t&&(t=ke),g(e).overflow=t),e;}function ct(e,t,n){return null!=e?e:null!=t?t:n;}function ft(e){var t,n,s,i,r,a=[];if(!e._d){var o,u;for(o=e,u=new Date(c.now()),s=o._useUTC?[u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()]:[u.getFullYear(),u.getMonth(),u.getDate()],e._w&&null==e._a[ye]&&null==e._a[_e]&&function(e){var t,n,s,i,r,a,o,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,a=4,n=ct(t.GG,e._a[me],Ie(bt(),1,4).year),s=ct(t.W,1),((i=ct(t.E,1))<1||7<i)&&(u=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var l=Ie(bt(),r,a);n=ct(t.gg,e._a[me],l.year),s=ct(t.w,l.week),null!=t.d?((i=t.d)<0||6<i)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||6<t.e)&&(u=!0)):i=r;}s<1||s>Ae(n,r,a)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(o=Ee(n,s,i,r,a),e._a[me]=o.year,e._dayOfYear=o.dayOfYear);}(e),null!=e._dayOfYear&&(r=ct(e._a[me],s[me]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=Ge(r,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ge]&&0===e._a[ve]&&0===e._a[pe]&&0===e._a[we]&&(e._nextDay=!0,e._a[ge]=0),e._d=(e._useUTC?Ge:function(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o;}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0);}}var mt=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,_t=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,yt=/Z|[+-]\\d\\d(?::?\\d\\d)?/,gt=[[\"YYYYYY-MM-DD\",/[+-]\\d{6}-\\d\\d-\\d\\d/],[\"YYYY-MM-DD\",/\\d{4}-\\d\\d-\\d\\d/],[\"GGGG-[W]WW-E\",/\\d{4}-W\\d\\d-\\d/],[\"GGGG-[W]WW\",/\\d{4}-W\\d\\d/,!1],[\"YYYY-DDD\",/\\d{4}-\\d{3}/],[\"YYYY-MM\",/\\d{4}-\\d\\d/,!1],[\"YYYYYYMMDD\",/[+-]\\d{10}/],[\"YYYYMMDD\",/\\d{8}/],[\"GGGG[W]WWE\",/\\d{4}W\\d{3}/],[\"GGGG[W]WW\",/\\d{4}W\\d{2}/,!1],[\"YYYYDDD\",/\\d{7}/]],vt=[[\"HH:mm:ss.SSSS\",/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],[\"HH:mm:ss,SSSS\",/\\d\\d:\\d\\d:\\d\\d,\\d+/],[\"HH:mm:ss\",/\\d\\d:\\d\\d:\\d\\d/],[\"HH:mm\",/\\d\\d:\\d\\d/],[\"HHmmss.SSSS\",/\\d\\d\\d\\d\\d\\d\\.\\d+/],[\"HHmmss,SSSS\",/\\d\\d\\d\\d\\d\\d,\\d+/],[\"HHmmss\",/\\d\\d\\d\\d\\d\\d/],[\"HHmm\",/\\d\\d\\d\\d/],[\"HH\",/\\d\\d/]],pt=/^\\/?Date\\((\\-?\\d+)/i;function wt(e){var t,n,s,i,r,a,o=e._i,u=mt.exec(o)||_t.exec(o);if(u){for(g(e).iso=!0,t=0,n=gt.length;t<n;t++)if(gt[t][1].exec(u[1])){i=gt[t][0],s=!1!==gt[t][2];break;}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=vt.length;t<n;t++)if(vt[t][1].exec(u[3])){r=(u[2]||\" \")+vt[t][0];break;}if(null==r)return void(e._isValid=!1);}if(!s&&null!=r)return void(e._isValid=!1);if(u[4]){if(!yt.exec(u[4]))return void(e._isValid=!1);a=\"Z\";}e._f=i+(r||\"\")+(a||\"\"),Yt(e);}else e._isValid=!1;}var Mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/;function kt(e,t,n,s,i,r){var a=[function(e){var t=parseInt(e,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t;}return t;}(e),He.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&a.push(parseInt(r,10)),a;}var St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dt(e){var t,n,s,i=Mt.exec(e._i.replace(/\\([^)]*\\)|[\\n\\t]/g,\" \").replace(/(\\s\\s+)/g,\" \").replace(/^\\s\\s*/,\"\").replace(/\\s\\s*$/,\"\"));if(i){var r=kt(i[4],i[3],i[2],i[5],i[6],i[7]);if(t=i[1],n=r,s=e,t&&ze.indexOf(t)!==new Date(n[0],n[1],n[2]).getDay()&&(g(s).weekdayMismatch=!0,!(s._isValid=!1)))return;e._a=r,e._tzm=function(e,t,n){if(e)return St[e];if(t)return 0;var s=parseInt(n,10),i=s%100;return(s-i)/100*60+i;}(i[8],i[9],i[10]),e._d=Ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0;}else e._isValid=!1;}function Yt(e){if(e._f!==c.ISO_8601){if(e._f!==c.RFC_2822){e._a=[],g(e).empty=!0;var t,n,s,i,r,a,o,u,l=\"\"+e._i,h=l.length,d=0;for(s=j(e._f,e._locale).match(N)||[],t=0;t<s.length;t++)i=s[t],(n=(l.match(le(i,e))||[])[0])&&(0<(r=l.substr(0,l.indexOf(n))).length&&g(e).unusedInput.push(r),l=l.slice(l.indexOf(n)+n.length),d+=n.length),E[i]?(n?g(e).empty=!1:g(e).unusedTokens.push(i),a=i,u=e,null!=(o=n)&&m(de,a)&&de[a](o,u._a,u,a)):e._strict&&!n&&g(e).unusedTokens.push(i);g(e).charsLeftOver=h-d,0<l.length&&g(e).unusedInput.push(l),e._a[ge]<=12&&!0===g(e).bigHour&&0<e._a[ge]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[ge]=function(e,t,n){var s;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0)),t);}(e._locale,e._a[ge],e._meridiem),ft(e),dt(e);}else Dt(e);}else wt(e);}function Ot(e){var t,n,s,i,r=e._i,a=e._f;return e._locale=e._locale||ht(e._l),null===r||void 0===a&&\"\"===r?p({nullInput:!0}):(\"string\"==typeof r&&(e._i=r=e._locale.preparse(r)),k(r)?new M(dt(r)):(d(r)?e._d=r:o(a)?function(e){var t,n,s,i,r;if(0===e._f.length)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)r=0,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Yt(t),v(t)&&(r+=g(t).charsLeftOver,r+=10*g(t).unusedTokens.length,g(t).score=r,(null==s||r<s)&&(s=r,n=t));_(e,n||t);}(e):a?Yt(e):l(n=(t=e)._i)?t._d=new Date(c.now()):d(n)?t._d=new Date(n.valueOf()):\"string\"==typeof n?(s=t,null===(i=pt.exec(s._i))?(wt(s),!1===s._isValid&&(delete s._isValid,Dt(s),!1===s._isValid&&(delete s._isValid,c.createFromInputFallback(s)))):s._d=new Date(+i[1])):o(n)?(t._a=f(n.slice(0),function(e){return parseInt(e,10);}),ft(t)):u(n)?function(e){if(!e._d){var t=R(e._i);e._a=f([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10);}),ft(e);}}(t):h(n)?t._d=new Date(n):c.createFromInputFallback(t),v(e)||(e._d=null),e));}function Tt(e,t,n,s,i){var r,a={};return!0!==n&&!1!==n||(s=n,n=void 0),(u(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0;}(e)||o(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=s,(r=new M(dt(Ot(a))))._nextDay&&(r.add(1,\"d\"),r._nextDay=void 0),r;}function bt(e,t,n,s){return Tt(e,t,n,s,!1);}c.createFromInputFallback=n(\"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.\",function(e){e._d=new Date(e._i+(e._useUTC?\" UTC\":\"\"));}),c.ISO_8601=function(){},c.RFC_2822=function(){};var xt=n(\"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/\",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p();}),Pt=n(\"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/\",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:p();});function Wt(e,t){var n,s;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return bt();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n;}var Ct=[\"year\",\"quarter\",\"month\",\"week\",\"day\",\"hour\",\"minute\",\"second\",\"millisecond\"];function Ht(e){var t=R(e),n=t.year||0,s=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Ye.call(Ct,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,s=0;s<Ct.length;++s)if(e[Ct[s]]){if(n)return!1;parseFloat(e[Ct[s]])!==D(e[Ct[s]])&&(n=!0);}return!0;}(t),this._milliseconds=+h+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*r,this._months=+i+3*s+12*n,this._data={},this._locale=ht(),this._bubble();}function Rt(e){return e instanceof Ht;}function Ut(e){return e<0?-1*Math.round(-1*e):Math.round(e);}function Ft(e,n){I(e,0,0,function(){var e=this.utcOffset(),t=\"+\";return e<0&&(e=-e,t=\"-\"),t+L(~~(e/60),2)+n+L(~~e%60,2);});}Ft(\"Z\",\":\"),Ft(\"ZZ\",\"\"),ue(\"Z\",re),ue(\"ZZ\",re),ce([\"Z\",\"ZZ\"],function(e,t,n){n._useUTC=!0,n._tzm=Nt(re,e);});var Lt=/([\\+\\-]|\\d\\d)/gi;function Nt(e,t){var n=(t||\"\").match(e);if(null===n)return null;var s=((n[n.length-1]||[])+\"\").match(Lt)||[\"-\",0,0],i=60*s[1]+D(s[2]);return 0===i?0:\"+\"===s[0]?i:-i;}function Gt(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(k(e)||d(e)?e.valueOf():bt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),c.updateOffset(n,!1),n):bt(e).local();}function Vt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15);}function Et(){return!!this.isValid()&&this._isUTC&&0===this._offset;}c.updateOffset=function(){};var It=/^(\\-|\\+)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)(\\.\\d*)?)?$/,At=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jt(e,t){var n,s,i,r=e,a=null;return Rt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:h(e)?(r={},t?r[t]=e:r.milliseconds=e):(a=It.exec(e))?(n=\"-\"===a[1]?-1:1,r={y:0,d:D(a[ye])*n,h:D(a[ge])*n,m:D(a[ve])*n,s:D(a[pe])*n,ms:D(Ut(1e3*a[we]))*n}):(a=At.exec(e))?(n=\"-\"===a[1]?-1:1,r={y:Zt(a[2],n),M:Zt(a[3],n),w:Zt(a[4],n),d:Zt(a[5],n),h:Zt(a[6],n),m:Zt(a[7],n),s:Zt(a[8],n)}):null==r?r={}:\"object\"==typeof r&&(\"from\"in r||\"to\"in r)&&(i=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Gt(t,e),e.isBefore(t)?n=zt(e,t):((n=zt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n;}(bt(r.from),bt(r.to)),(r={}).ms=i.milliseconds,r.M=i.months),s=new Ht(r),Rt(e)&&m(e,\"_locale\")&&(s._locale=e._locale),s;}function Zt(e,t){var n=e&&parseFloat(e.replace(\",\",\".\"));return(isNaN(n)?0:n)*t;}function zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,\"M\").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,\"M\"),n;}function $t(s,i){return function(e,t){var n;return null===t||isNaN(+t)||(T(i,\"moment().\"+i+\"(period, number) is deprecated. Please use moment().\"+i+\"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.\"),n=e,e=t,t=n),qt(this,jt(e=\"string\"==typeof e?+e:e,t),s),this;};}function qt(e,t,n,s){var i=t._milliseconds,r=Ut(t._days),a=Ut(t._months);e.isValid()&&(s=null==s||s,a&&Re(e,be(e,\"Month\")+a*n),r&&xe(e,\"Date\",be(e,\"Date\")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s&&c.updateOffset(e,r||a));}jt.fn=Ht.prototype,jt.invalid=function(){return jt(NaN);};var Jt=$t(1,\"add\"),Bt=$t(-1,\"subtract\");function Qt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(n,\"months\");return-(n+(t-s<0?(t-s)/(s-e.clone().add(n-1,\"months\")):(t-s)/(e.clone().add(n+1,\"months\")-s)))||0;}function Xt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ht(e))&&(this._locale=t),this);}c.defaultFormat=\"YYYY-MM-DDTHH:mm:ssZ\",c.defaultFormatUtc=\"YYYY-MM-DDTHH:mm:ss[Z]\";var Kt=n(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\",function(e){return void 0===e?this.localeData():this.locale(e);});function en(){return this._locale;}var tn=126227808e5;function nn(e,t){return(e%t+t)%t;}function sn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-tn:new Date(e,t,n).valueOf();}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-tn:Date.UTC(e,t,n);}function an(e,t){I(0,[e,e.length],0,t);}function on(e,t,n,s,i){var r;return null==e?Ie(this,s,i).year:((r=Ae(e,s,i))<t&&(t=r),function(e,t,n,s,i){var r=Ee(e,t,n,s,i),a=Ge(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this;}.call(this,e,t,n,s,i));}I(0,[\"gg\",2],0,function(){return this.weekYear()%100;}),I(0,[\"GG\",2],0,function(){return this.isoWeekYear()%100;}),an(\"gggg\",\"weekYear\"),an(\"ggggg\",\"weekYear\"),an(\"GGGG\",\"isoWeekYear\"),an(\"GGGGG\",\"isoWeekYear\"),C(\"weekYear\",\"gg\"),C(\"isoWeekYear\",\"GG\"),F(\"weekYear\",1),F(\"isoWeekYear\",1),ue(\"G\",se),ue(\"g\",se),ue(\"GG\",B,z),ue(\"gg\",B,z),ue(\"GGGG\",ee,q),ue(\"gggg\",ee,q),ue(\"GGGGG\",te,J),ue(\"ggggg\",te,J),fe([\"gggg\",\"ggggg\",\"GGGG\",\"GGGGG\"],function(e,t,n,s){t[s.substr(0,2)]=D(e);}),fe([\"gg\",\"GG\"],function(e,t,n,s){t[s]=c.parseTwoDigitYear(e);}),I(\"Q\",0,\"Qo\",\"quarter\"),C(\"quarter\",\"Q\"),F(\"quarter\",7),ue(\"Q\",Z),ce(\"Q\",function(e,t){t[_e]=3*(D(e)-1);}),I(\"D\",[\"DD\",2],\"Do\",\"date\"),C(\"date\",\"D\"),F(\"date\",9),ue(\"D\",B),ue(\"DD\",B,z),ue(\"Do\",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient;}),ce([\"D\",\"DD\"],ye),ce(\"Do\",function(e,t){t[ye]=D(e.match(B)[0]);});var un=Te(\"Date\",!0);I(\"DDD\",[\"DDDD\",3],\"DDDo\",\"dayOfYear\"),C(\"dayOfYear\",\"DDD\"),F(\"dayOfYear\",4),ue(\"DDD\",K),ue(\"DDDD\",$),ce([\"DDD\",\"DDDD\"],function(e,t,n){n._dayOfYear=D(e);}),I(\"m\",[\"mm\",2],0,\"minute\"),C(\"minute\",\"m\"),F(\"minute\",14),ue(\"m\",B),ue(\"mm\",B,z),ce([\"m\",\"mm\"],ve);var ln=Te(\"Minutes\",!1);I(\"s\",[\"ss\",2],0,\"second\"),C(\"second\",\"s\"),F(\"second\",15),ue(\"s\",B),ue(\"ss\",B,z),ce([\"s\",\"ss\"],pe);var hn,dn=Te(\"Seconds\",!1);for(I(\"S\",0,0,function(){return~~(this.millisecond()/100);}),I(0,[\"SS\",2],0,function(){return~~(this.millisecond()/10);}),I(0,[\"SSS\",3],0,\"millisecond\"),I(0,[\"SSSS\",4],0,function(){return 10*this.millisecond();}),I(0,[\"SSSSS\",5],0,function(){return 100*this.millisecond();}),I(0,[\"SSSSSS\",6],0,function(){return 1e3*this.millisecond();}),I(0,[\"SSSSSSS\",7],0,function(){return 1e4*this.millisecond();}),I(0,[\"SSSSSSSS\",8],0,function(){return 1e5*this.millisecond();}),I(0,[\"SSSSSSSSS\",9],0,function(){return 1e6*this.millisecond();}),C(\"millisecond\",\"ms\"),F(\"millisecond\",16),ue(\"S\",K,Z),ue(\"SS\",K,z),ue(\"SSS\",K,$),hn=\"SSSS\";hn.length<=9;hn+=\"S\")ue(hn,ne);function cn(e,t){t[we]=D(1e3*(\"0.\"+e));}for(hn=\"S\";hn.length<=9;hn+=\"S\")ce(hn,cn);var fn=Te(\"Milliseconds\",!1);I(\"z\",0,0,\"zoneAbbr\"),I(\"zz\",0,0,\"zoneName\");var mn=M.prototype;function _n(e){return e;}mn.add=Jt,mn.calendar=function(e,t){var n=e||bt(),s=Gt(n,this).startOf(\"day\"),i=c.calendarFormat(this,s)||\"sameElse\",r=t&&(b(t[i])?t[i].call(this,n):t[i]);return this.format(r||this.localeData().calendar(i,this,bt(n)));},mn.clone=function(){return new M(this);},mn.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Gt(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=H(t)){case\"year\":r=Qt(this,s)/12;break;case\"month\":r=Qt(this,s);break;case\"quarter\":r=Qt(this,s)/3;break;case\"second\":r=(this-s)/1e3;break;case\"minute\":r=(this-s)/6e4;break;case\"hour\":r=(this-s)/36e5;break;case\"day\":r=(this-s-i)/864e5;break;case\"week\":r=(this-s-i)/6048e5;break;default:r=this-s;}return n?r:S(r);},mn.endOf=function(e){var t;if(void 0===(e=H(e))||\"millisecond\"===e||!this.isValid())return this;var n=this._isUTC?rn:sn;switch(e){case\"year\":t=n(this.year()+1,0,1)-1;break;case\"quarter\":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case\"month\":t=n(this.year(),this.month()+1,1)-1;break;case\"week\":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case\"isoWeek\":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case\"day\":case\"date\":t=n(this.year(),this.month(),this.date()+1)-1;break;case\"hour\":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case\"minute\":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case\"second\":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1;break;}return this._d.setTime(t),c.updateOffset(this,!0),this;},mn.format=function(e){e||(e=this.isUtc()?c.defaultFormatUtc:c.defaultFormat);var t=A(this,e);return this.localeData().postformat(t);},mn.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||bt(e).isValid())?jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate();},mn.fromNow=function(e){return this.from(bt(),e);},mn.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||bt(e).isValid())?jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate();},mn.toNow=function(e){return this.to(bt(),e);},mn.get=function(e){return b(this[e=H(e)])?this[e]():this;},mn.invalidAt=function(){return g(this).overflow;},mn.isAfter=function(e,t){var n=k(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&(\"millisecond\"===(t=H(t)||\"millisecond\")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf());},mn.isBefore=function(e,t){var n=k(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&(\"millisecond\"===(t=H(t)||\"millisecond\")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf());},mn.isBetween=function(e,t,n,s){var i=k(e)?e:bt(e),r=k(t)?t:bt(t);return!!(this.isValid()&&i.isValid()&&r.isValid())&&(\"(\"===(s=s||\"()\")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(\")\"===s[1]?this.isBefore(r,n):!this.isAfter(r,n));},mn.isSame=function(e,t){var n,s=k(e)?e:bt(e);return!(!this.isValid()||!s.isValid())&&(\"millisecond\"===(t=H(t)||\"millisecond\")?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()));},mn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t);},mn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t);},mn.isValid=function(){return v(this);},mn.lang=Kt,mn.locale=Xt,mn.localeData=en,mn.max=Pt,mn.min=xt,mn.parsingFlags=function(){return _({},g(this));},mn.set=function(e,t){if(\"object\"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:U[n]});return t.sort(function(e,t){return e.priority-t.priority;}),t;}(e=R(e)),s=0;s<n.length;s++)this[n[s].unit](e[n[s].unit]);else if(b(this[e=H(e)]))return this[e](t);return this;},mn.startOf=function(e){var t;if(void 0===(e=H(e))||\"millisecond\"===e||!this.isValid())return this;var n=this._isUTC?rn:sn;switch(e){case\"year\":t=n(this.year(),0,1);break;case\"quarter\":t=n(this.year(),this.month()-this.month()%3,1);break;case\"month\":t=n(this.year(),this.month(),1);break;case\"week\":t=n(this.year(),this.month(),this.date()-this.weekday());break;case\"isoWeek\":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case\"day\":case\"date\":t=n(this.year(),this.month(),this.date());break;case\"hour\":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case\"minute\":t=this._d.valueOf(),t-=nn(t,6e4);break;case\"second\":t=this._d.valueOf(),t-=nn(t,1e3);break;}return this._d.setTime(t),c.updateOffset(this,!0),this;},mn.subtract=Bt,mn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()];},mn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()};},mn.toDate=function(){return new Date(this.valueOf());},mn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?A(n,t?\"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\":\"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ\"):b(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace(\"Z\",A(n,\"Z\")):A(n,t?\"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\":\"YYYY-MM-DD[T]HH:mm:ss.SSSZ\");},mn.inspect=function(){if(!this.isValid())return\"moment.invalid(/* \"+this._i+\" */)\";var e=\"moment\",t=\"\";this.isLocal()||(e=0===this.utcOffset()?\"moment.utc\":\"moment.parseZone\",t=\"Z\");var n=\"[\"+e+'(\"]',s=0<=this.year()&&this.year()<=9999?\"YYYY\":\"YYYYYY\",i=t+'[\")]';return this.format(n+s+\"-MM-DD[T]HH:mm:ss.SSS\"+i);},mn.toJSON=function(){return this.isValid()?this.toISOString():null;},mn.toString=function(){return this.clone().locale(\"en\").format(\"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ\");},mn.unix=function(){return Math.floor(this.valueOf()/1e3);},mn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0);},mn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict};},mn.year=Oe,mn.isLeapYear=function(){return De(this.year());},mn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy);},mn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4);},mn.quarter=mn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3);},mn.month=Ue,mn.daysInMonth=function(){return Pe(this.year(),this.month());},mn.week=mn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),\"d\");},mn.isoWeek=mn.isoWeeks=function(e){var t=Ie(this,1,4).week;return null==e?t:this.add(7*(e-t),\"d\");},mn.weeksInYear=function(){var e=this.localeData()._week;return Ae(this.year(),e.dow,e.doy);},mn.isoWeeksInYear=function(){return Ae(this.year(),1,4);},mn.date=un,mn.day=mn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,s=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e=\"string\"!=typeof t?t:isNaN(t)?\"number\"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-s,\"d\")):s;},mn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,\"d\");},mn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,n,s=(t=e,n=this.localeData(),\"string\"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?s:s-7);},mn.dayOfYear=function(e){var t=Math.round((this.clone().startOf(\"day\")-this.clone().startOf(\"year\"))/864e5)+1;return null==e?t:this.add(e-t,\"d\");},mn.hour=mn.hours=nt,mn.minute=mn.minutes=ln,mn.second=mn.seconds=dn,mn.millisecond=mn.milliseconds=fn,mn.utcOffset=function(e,t,n){var s,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Vt(this);if(\"string\"==typeof e){if(null===(e=Nt(re,e)))return this;}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=Vt(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,\"m\"),i!==e&&(!t||this._changeInProgress?qt(this,jt(e-i,\"m\"),1,!1):this._changeInProgress||(this._changeInProgress=!0,c.updateOffset(this,!0),this._changeInProgress=null)),this;},mn.utc=function(e){return this.utcOffset(0,e);},mn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Vt(this),\"m\")),this;},mn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if(\"string\"==typeof this._i){var e=Nt(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0);}return this;},mn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?bt(e).utcOffset():0,(this.utcOffset()-e)%60==0);},mn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset();},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC;},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC;},mn.isUtc=Et,mn.isUTC=Et,mn.zoneAbbr=function(){return this._isUTC?\"UTC\":\"\";},mn.zoneName=function(){return this._isUTC?\"Coordinated Universal Time\":\"\";},mn.dates=n(\"dates accessor is deprecated. Use date instead.\",un),mn.months=n(\"months accessor is deprecated. Use month instead\",Ue),mn.years=n(\"years accessor is deprecated. Use year instead\",Oe),mn.zone=n(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",function(e,t){return null!=e?(\"string\"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset();}),mn.isDSTShifted=n(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(w(e,this),(e=Ot(e))._a){var t=e._isUTC?y(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&0<a(e._a,t.toArray());}else this._isDSTShifted=!1;return this._isDSTShifted;});var yn=P.prototype;function gn(e,t,n,s){var i=ht(),r=y().set(s,t);return i[n](r,e);}function vn(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||\"\",null!=t)return gn(e,t,n,\"month\");var s,i=[];for(s=0;s<12;s++)i[s]=gn(e,s,n,\"month\");return i;}function pn(e,t,n,s){t=(\"boolean\"==typeof e?h(t)&&(n=t,t=void 0):(t=e,e=!1,h(n=t)&&(n=t,t=void 0)),t||\"\");var i,r=ht(),a=e?r._week.dow:0;if(null!=n)return gn(t,(n+a)%7,s,\"day\");var o=[];for(i=0;i<7;i++)o[i]=gn(t,(i+a)%7,s,\"day\");return o;}yn.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return b(s)?s.call(t,n):s;},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1);}),this._longDateFormat[e]);},yn.invalidDate=function(){return this._invalidDate;},yn.ordinal=function(e){return this._ordinal.replace(\"%d\",e);},yn.preparse=_n,yn.postformat=_n,yn.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return b(i)?i(e,t,n,s):i.replace(/%d/i,e);},yn.pastFuture=function(e,t){var n=this._relativeTime[0<e?\"future\":\"past\"];return b(n)?n(t):n.replace(/%s/i,t);},yn.set=function(e){var t,n;for(n in e)b(t=e[n])?this[n]=t:this[\"_\"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+\"|\"+/\\d{1,2}/.source);},yn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||We).test(t)?\"format\":\"standalone\"][e.month()]:o(this._months)?this._months:this._months.standalone;},yn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[We.test(t)?\"format\":\"standalone\"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;},yn.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=y([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,\"\").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,\"\").toLocaleLowerCase();return n?\"MMM\"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:\"MMM\"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))?i:-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))?i:-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null;}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=y([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp(\"^\"+this.months(i,\"\").replace(\".\",\"\")+\"$\",\"i\"),this._shortMonthsParse[s]=new RegExp(\"^\"+this.monthsShort(i,\"\").replace(\".\",\"\")+\"$\",\"i\")),n||this._monthsParse[s]||(r=\"^\"+this.months(i,\"\")+\"|^\"+this.monthsShort(i,\"\"),this._monthsParse[s]=new RegExp(r.replace(\".\",\"\"),\"i\")),n&&\"MMMM\"===t&&this._longMonthsParse[s].test(e))return s;if(n&&\"MMM\"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s;}},yn.monthsRegex=function(e){return this._monthsParseExact?(m(this,\"_monthsRegex\")||Ne.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,\"_monthsRegex\")||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex);},yn.monthsShortRegex=function(e){return this._monthsParseExact?(m(this,\"_monthsRegex\")||Ne.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,\"_monthsShortRegex\")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex);},yn.week=function(e){return Ie(e,this._week.dow,this._week.doy).week;},yn.firstDayOfYear=function(){return this._week.doy;},yn.firstDayOfWeek=function(){return this._week.dow;},yn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?\"format\":\"standalone\"];return!0===e?je(n,this._week.dow):e?n[e.day()]:n;},yn.weekdaysMin=function(e){return!0===e?je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin;},yn.weekdaysShort=function(e){return!0===e?je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort;},yn.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=y([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,\"\").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,\"\").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,\"\").toLocaleLowerCase();return n?\"dddd\"===t?-1!==(i=Ye.call(this._weekdaysParse,a))?i:null:\"ddd\"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:\"dddd\"===t?-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:\"ddd\"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null;}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=y([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp(\"^\"+this.weekdays(i,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\"),this._shortWeekdaysParse[s]=new RegExp(\"^\"+this.weekdaysShort(i,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\"),this._minWeekdaysParse[s]=new RegExp(\"^\"+this.weekdaysMin(i,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\")),this._weekdaysParse[s]||(r=\"^\"+this.weekdays(i,\"\")+\"|^\"+this.weekdaysShort(i,\"\")+\"|^\"+this.weekdaysMin(i,\"\"),this._weekdaysParse[s]=new RegExp(r.replace(\".\",\"\"),\"i\")),n&&\"dddd\"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&\"ddd\"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&\"dd\"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s;}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(m(this,\"_weekdaysRegex\")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,\"_weekdaysRegex\")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex);},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(m(this,\"_weekdaysRegex\")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,\"_weekdaysShortRegex\")||(this._weekdaysShortRegex=Je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex);},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(m(this,\"_weekdaysRegex\")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,\"_weekdaysMinRegex\")||(this._weekdaysMinRegex=Be),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex);},yn.isPM=function(e){return\"p\"===(e+\"\").toLowerCase().charAt(0);},yn.meridiem=function(e,t,n){return 11<e?n?\"pm\":\"PM\":n?\"am\":\"AM\";},ut(\"en\",{dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===D(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\");}}),c.lang=n(\"moment.lang is deprecated. Use moment.locale instead.\",ut),c.langData=n(\"moment.langData is deprecated. Use moment.localeData instead.\",ht);var wn=Math.abs;function Mn(e,t,n,s){var i=jt(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble();}function kn(e){return e<0?Math.floor(e):Math.ceil(e);}function Sn(e){return 4800*e/146097;}function Dn(e){return 146097*e/4800;}function Yn(e){return function(){return this.as(e);};}var On=Yn(\"ms\"),Tn=Yn(\"s\"),bn=Yn(\"m\"),xn=Yn(\"h\"),Pn=Yn(\"d\"),Wn=Yn(\"w\"),Cn=Yn(\"M\"),Hn=Yn(\"Q\"),Rn=Yn(\"y\");function Un(e){return function(){return this.isValid()?this._data[e]:NaN;};}var Fn=Un(\"milliseconds\"),Ln=Un(\"seconds\"),Nn=Un(\"minutes\"),Gn=Un(\"hours\"),Vn=Un(\"days\"),En=Un(\"months\"),In=Un(\"years\");var An=Math.round,jn={ss:44,s:45,m:45,h:22,d:26,M:11};var Zn=Math.abs;function zn(e){return(0<e)-(e<0)||+e;}function $n(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Zn(this._milliseconds)/1e3,s=Zn(this._days),i=Zn(this._months);t=S((e=S(n/60))/60),n%=60,e%=60;var r=S(i/12),a=i%=12,o=s,u=t,l=e,h=n?n.toFixed(3).replace(/\\.?0+$/,\"\"):\"\",d=this.asSeconds();if(!d)return\"P0D\";var c=d<0?\"-\":\"\",f=zn(this._months)!==zn(d)?\"-\":\"\",m=zn(this._days)!==zn(d)?\"-\":\"\",_=zn(this._milliseconds)!==zn(d)?\"-\":\"\";return c+\"P\"+(r?f+r+\"Y\":\"\")+(a?f+a+\"M\":\"\")+(o?m+o+\"D\":\"\")+(u||l||h?\"T\":\"\")+(u?_+u+\"H\":\"\")+(l?_+l+\"M\":\"\")+(h?_+h+\"S\":\"\");}var qn=Ht.prototype;return qn.isValid=function(){return this._isValid;},qn.abs=function(){var e=this._data;return this._milliseconds=wn(this._milliseconds),this._days=wn(this._days),this._months=wn(this._months),e.milliseconds=wn(e.milliseconds),e.seconds=wn(e.seconds),e.minutes=wn(e.minutes),e.hours=wn(e.hours),e.months=wn(e.months),e.years=wn(e.years),this;},qn.add=function(e,t){return Mn(this,e,t,1);},qn.subtract=function(e,t){return Mn(this,e,t,-1);},qn.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if(\"month\"===(e=H(e))||\"quarter\"===e||\"year\"===e)switch(t=this._days+s/864e5,n=this._months+Sn(t),e){case\"month\":return n;case\"quarter\":return n/3;case\"year\":return n/12;}else switch(t=this._days+Math.round(Dn(this._months)),e){case\"week\":return t/7+s/6048e5;case\"day\":return t+s/864e5;case\"hour\":return 24*t+s/36e5;case\"minute\":return 1440*t+s/6e4;case\"second\":return 86400*t+s/1e3;case\"millisecond\":return Math.floor(864e5*t)+s;default:throw new Error(\"Unknown unit \"+e);}},qn.asMilliseconds=On,qn.asSeconds=Tn,qn.asMinutes=bn,qn.asHours=xn,qn.asDays=Pn,qn.asWeeks=Wn,qn.asMonths=Cn,qn.asQuarters=Hn,qn.asYears=Rn,qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*D(this._months/12):NaN;},qn._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return 0<=r&&0<=a&&0<=o||r<=0&&a<=0&&o<=0||(r+=864e5*kn(Dn(o)+a),o=a=0),u.milliseconds=r%1e3,e=S(r/1e3),u.seconds=e%60,t=S(e/60),u.minutes=t%60,n=S(t/60),u.hours=n%24,o+=i=S(Sn(a+=S(n/24))),a-=kn(Dn(i)),s=S(o/12),o%=12,u.days=a,u.months=o,u.years=s,this;},qn.clone=function(){return jt(this);},qn.get=function(e){return e=H(e),this.isValid()?this[e+\"s\"]():NaN;},qn.milliseconds=Fn,qn.seconds=Ln,qn.minutes=Nn,qn.hours=Gn,qn.days=Vn,qn.weeks=function(){return S(this.days()/7);},qn.months=En,qn.years=In,qn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,s,i,r,a,o,u,l,h,d,c=this.localeData(),f=(n=!e,s=c,i=jt(t=this).abs(),r=An(i.as(\"s\")),a=An(i.as(\"m\")),o=An(i.as(\"h\")),u=An(i.as(\"d\")),l=An(i.as(\"M\")),h=An(i.as(\"y\")),(d=r<=jn.ss&&[\"s\",r]||r<jn.s&&[\"ss\",r]||a<=1&&[\"m\"]||a<jn.m&&[\"mm\",a]||o<=1&&[\"h\"]||o<jn.h&&[\"hh\",o]||u<=1&&[\"d\"]||u<jn.d&&[\"dd\",u]||l<=1&&[\"M\"]||l<jn.M&&[\"MM\",l]||h<=1&&[\"y\"]||[\"yy\",h])[2]=n,d[3]=0<+t,d[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s);}.apply(null,d));return e&&(f=c.pastFuture(+this,f)),c.postformat(f);},qn.toISOString=$n,qn.toString=$n,qn.toJSON=$n,qn.locale=Xt,qn.localeData=en,qn.toIsoString=n(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\",$n),qn.lang=Kt,I(\"X\",0,0,\"unix\"),I(\"x\",0,0,\"valueOf\"),ue(\"x\",se),ue(\"X\",/[+-]?\\d+(\\.\\d{1,3})?/),ce(\"X\",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10));}),ce(\"x\",function(e,t,n){n._d=new Date(D(e));}),c.version=\"2.24.0\",e=bt,c.fn=mn,c.min=function(){return Wt(\"isBefore\",[].slice.call(arguments,0));},c.max=function(){return Wt(\"isAfter\",[].slice.call(arguments,0));},c.now=function(){return Date.now?Date.now():+new Date();},c.utc=y,c.unix=function(e){return bt(1e3*e);},c.months=function(e,t){return vn(e,t,\"months\");},c.isDate=d,c.locale=ut,c.invalid=p,c.duration=jt,c.isMoment=k,c.weekdays=function(e,t,n){return pn(e,t,n,\"weekdays\");},c.parseZone=function(){return bt.apply(null,arguments).parseZone();},c.localeData=ht,c.isDuration=Rt,c.monthsShort=function(e,t){return vn(e,t,\"monthsShort\");},c.weekdaysMin=function(e,t,n){return pn(e,t,n,\"weekdaysMin\");},c.defineLocale=lt,c.updateLocale=function(e,t){if(null!=t){var n,s,i=st;null!=(s=ot(e))&&(i=s._config),(n=new P(t=x(i,t))).parentLocale=it[e],it[e]=n,ut(e);}else null!=it[e]&&(null!=it[e].parentLocale?it[e]=it[e].parentLocale:null!=it[e]&&delete it[e]);return it[e];},c.locales=function(){return s(it);},c.weekdaysShort=function(e,t,n){return pn(e,t,n,\"weekdaysShort\");},c.normalizeUnits=H,c.relativeTimeRounding=function(e){return void 0===e?An:\"function\"==typeof e&&(An=e,!0);},c.relativeTimeThreshold=function(e,t){return void 0!==jn[e]&&(void 0===t?jn[e]:(jn[e]=t,\"s\"===e&&(jn.ss=t-1),!0));},c.calendarFormat=function(e,t){var n=e.diff(t,\"days\",!0);return n<-6?\"sameElse\":n<-1?\"lastWeek\":n<0?\"lastDay\":n<1?\"sameDay\":n<2?\"nextDay\":n<7?\"nextWeek\":\"sameElse\";},c.prototype=mn,c.HTML5_FMT={DATETIME_LOCAL:\"YYYY-MM-DDTHH:mm\",DATETIME_LOCAL_SECONDS:\"YYYY-MM-DDTHH:mm:ss\",DATETIME_LOCAL_MS:\"YYYY-MM-DDTHH:mm:ss.SSS\",DATE:\"YYYY-MM-DD\",TIME:\"HH:mm\",TIME_SECONDS:\"HH:mm:ss\",TIME_MS:\"HH:mm:ss.SSS\",WEEK:\"GGGG-[W]WW\",MONTH:\"YYYY-MM\"},c;});// ----------- moment.js END -------------\n// ----------- bootstrap-daterangepicker.js START -------------\n/**\r\n* @version: 3.0.5\r\n* @author: Dan Grossman http://www.dangrossman.info/\r\n* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.\r\n* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php\r\n* @website: http://www.daterangepicker.com/\r\n*/ // Following the UMD template https://github.com/umdjs/umd/blob/master/templates/returnExportsGlobal.js\n(function(root,factory){if(true){// AMD. Make globaly available as well\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\"),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function(moment,jquery){if(!jquery.fn)jquery.fn={};// webpack server rendering\nif(typeof moment!=='function'&&moment.default)moment=moment.default;return factory(moment,jquery);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else { var moment, jQuery; }})(this,function(moment,$){var DateRangePicker=function(element,options,cb){//default settings for options\nthis.parentEl='body';this.element=$(element);this.startDate=moment().startOf('day');this.endDate=moment().endOf('day');this.minDate=false;this.maxDate=false;this.maxSpan=false;this.autoApply=false;this.singleDatePicker=false;this.showDropdowns=false;this.minYear=moment().subtract(100,'year').format('YYYY');this.maxYear=moment().add(100,'year').format('YYYY');this.showWeekNumbers=false;this.showISOWeekNumbers=false;this.showCustomRangeLabel=true;this.timePicker=false;this.timePicker24Hour=false;this.timePickerIncrement=1;this.timePickerSeconds=false;this.linkedCalendars=true;this.autoUpdateInput=true;this.alwaysShowCalendars=false;this.ranges={};this.opens='right';if(this.element.hasClass('pull-right'))this.opens='left';this.drops='down';if(this.element.hasClass('dropup'))this.drops='up';this.buttonClasses='btn btn-sm';this.applyButtonClasses='btn-primary';this.cancelButtonClasses='btn-default';this.locale={direction:'ltr',format:moment.localeData().longDateFormat('L'),separator:' - ',applyLabel:'Apply',cancelLabel:'Cancel',weekLabel:'W',customRangeLabel:'Custom Range',daysOfWeek:moment.weekdaysMin(),monthNames:moment.monthsShort(),firstDay:moment.localeData().firstDayOfWeek()};this.callback=function(){};//some state information\nthis.isShowing=false;this.leftCalendar={};this.rightCalendar={};//custom options from user\nif(typeof options!=='object'||options===null)options={};//allow setting options with data attributes\n//data-api options will be overwritten with custom javascript options\noptions=$.extend(this.element.data(),options);//html template for the picker UI\nif(typeof options.template!=='string'&&!(options.template instanceof $))options.template='<div class=\"daterangepicker\">'+'<div class=\"ranges\"></div>'+'<div class=\"drp-calendar left\">'+'<div class=\"calendar-table\"></div>'+'<div class=\"calendar-time\"></div>'+'</div>'+'<div class=\"drp-calendar right\">'+'<div class=\"calendar-table\"></div>'+'<div class=\"calendar-time\"></div>'+'</div>'+'<div class=\"drp-buttons\">'+'<span class=\"drp-selected\"></span>'+'<button class=\"cancelBtn\" type=\"button\"></button>'+'<button class=\"applyBtn\" disabled=\"disabled\" type=\"button\"></button> '+'</div>'+'</div>';this.parentEl=options.parentEl&&$(options.parentEl).length?$(options.parentEl):$(this.parentEl);this.container=$(options.template).appendTo(this.parentEl);//\n// handle all the possible options overriding defaults\n//\nif(typeof options.locale==='object'){if(typeof options.locale.direction==='string')this.locale.direction=options.locale.direction;if(typeof options.locale.format==='string')this.locale.format=options.locale.format;if(typeof options.locale.separator==='string')this.locale.separator=options.locale.separator;if(typeof options.locale.daysOfWeek==='object')this.locale.daysOfWeek=options.locale.daysOfWeek.slice();if(typeof options.locale.monthNames==='object')this.locale.monthNames=options.locale.monthNames.slice();if(typeof options.locale.firstDay==='number')this.locale.firstDay=options.locale.firstDay;if(typeof options.locale.applyLabel==='string')this.locale.applyLabel=options.locale.applyLabel;if(typeof options.locale.cancelLabel==='string')this.locale.cancelLabel=options.locale.cancelLabel;if(typeof options.locale.weekLabel==='string')this.locale.weekLabel=options.locale.weekLabel;if(typeof options.locale.customRangeLabel==='string'){//Support unicode chars in the custom range name.\nvar elem=document.createElement('textarea');elem.innerHTML=options.locale.customRangeLabel;var rangeHtml=elem.value;this.locale.customRangeLabel=rangeHtml;}}this.container.addClass(this.locale.direction);if(typeof options.startDate==='string')this.startDate=moment(options.startDate,this.locale.format);if(typeof options.endDate==='string')this.endDate=moment(options.endDate,this.locale.format);if(typeof options.minDate==='string')this.minDate=moment(options.minDate,this.locale.format);if(typeof options.maxDate==='string')this.maxDate=moment(options.maxDate,this.locale.format);if(typeof options.startDate==='object')this.startDate=moment(options.startDate);if(typeof options.endDate==='object')this.endDate=moment(options.endDate);if(typeof options.minDate==='object')this.minDate=moment(options.minDate);if(typeof options.maxDate==='object')this.maxDate=moment(options.maxDate);// sanity check for bad options\nif(this.minDate&&this.startDate.isBefore(this.minDate))this.startDate=this.minDate.clone();// sanity check for bad options\nif(this.maxDate&&this.endDate.isAfter(this.maxDate))this.endDate=this.maxDate.clone();if(typeof options.applyButtonClasses==='string')this.applyButtonClasses=options.applyButtonClasses;if(typeof options.applyClass==='string')//backwards compat\nthis.applyButtonClasses=options.applyClass;if(typeof options.cancelButtonClasses==='string')this.cancelButtonClasses=options.cancelButtonClasses;if(typeof options.cancelClass==='string')//backwards compat\nthis.cancelButtonClasses=options.cancelClass;if(typeof options.maxSpan==='object')this.maxSpan=options.maxSpan;if(typeof options.dateLimit==='object')//backwards compat\nthis.maxSpan=options.dateLimit;if(typeof options.opens==='string')this.opens=options.opens;if(typeof options.drops==='string')this.drops=options.drops;if(typeof options.showWeekNumbers==='boolean')this.showWeekNumbers=options.showWeekNumbers;if(typeof options.showISOWeekNumbers==='boolean')this.showISOWeekNumbers=options.showISOWeekNumbers;if(typeof options.buttonClasses==='string')this.buttonClasses=options.buttonClasses;if(typeof options.buttonClasses==='object')this.buttonClasses=options.buttonClasses.join(' ');if(typeof options.showDropdowns==='boolean')this.showDropdowns=options.showDropdowns;if(typeof options.minYear==='number')this.minYear=options.minYear;if(typeof options.maxYear==='number')this.maxYear=options.maxYear;if(typeof options.showCustomRangeLabel==='boolean')this.showCustomRangeLabel=options.showCustomRangeLabel;if(typeof options.singleDatePicker==='boolean'){this.singleDatePicker=options.singleDatePicker;if(this.singleDatePicker)this.endDate=this.startDate.clone();}if(typeof options.timePicker==='boolean')this.timePicker=options.timePicker;if(typeof options.timePickerSeconds==='boolean')this.timePickerSeconds=options.timePickerSeconds;if(typeof options.timePickerIncrement==='number')this.timePickerIncrement=options.timePickerIncrement;if(typeof options.timePicker24Hour==='boolean')this.timePicker24Hour=options.timePicker24Hour;if(typeof options.autoApply==='boolean')this.autoApply=options.autoApply;if(typeof options.autoUpdateInput==='boolean')this.autoUpdateInput=options.autoUpdateInput;if(typeof options.linkedCalendars==='boolean')this.linkedCalendars=options.linkedCalendars;if(typeof options.isInvalidDate==='function')this.isInvalidDate=options.isInvalidDate;if(typeof options.isCustomDate==='function')this.isCustomDate=options.isCustomDate;if(typeof options.alwaysShowCalendars==='boolean')this.alwaysShowCalendars=options.alwaysShowCalendars;// update day names order to firstDay\nif(this.locale.firstDay!=0){var iterator=this.locale.firstDay;while(iterator>0){this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift());iterator--;}}var start,end,range;//if no start/end dates set, check if an input element contains initial values\nif(typeof options.startDate==='undefined'&&typeof options.endDate==='undefined'){if($(this.element).is(':text')){var val=$(this.element).val(),split=val.split(this.locale.separator);start=end=null;if(split.length==2){start=moment(split[0],this.locale.format);end=moment(split[1],this.locale.format);}else if(this.singleDatePicker&&val!==\"\"){start=moment(val,this.locale.format);end=moment(val,this.locale.format);}if(start!==null&&end!==null){this.setStartDate(start);this.setEndDate(end);}}}if(typeof options.ranges==='object'){for(range in options.ranges){if(typeof options.ranges[range][0]==='string')start=moment(options.ranges[range][0],this.locale.format);else start=moment(options.ranges[range][0]);if(typeof options.ranges[range][1]==='string')end=moment(options.ranges[range][1],this.locale.format);else end=moment(options.ranges[range][1]);// If the start or end date exceed those allowed by the minDate or maxSpan\n// options, shorten the range to the allowable period.\nif(this.minDate&&start.isBefore(this.minDate))start=this.minDate.clone();var maxDate=this.maxDate;if(this.maxSpan&&maxDate&&start.clone().add(this.maxSpan).isAfter(maxDate))maxDate=start.clone().add(this.maxSpan);if(maxDate&&end.isAfter(maxDate))end=maxDate.clone();// If the end of the range is before the minimum or the start of the range is\n// after the maximum, don't display this range option at all.\nif(this.minDate&&end.isBefore(this.minDate,this.timepicker?'minute':'day')||maxDate&&start.isAfter(maxDate,this.timepicker?'minute':'day'))continue;//Support unicode chars in the range names.\nvar elem=document.createElement('textarea');elem.innerHTML=range;var rangeHtml=elem.value;this.ranges[rangeHtml]=[start,end];}var list='<ul>';for(range in this.ranges){list+='<li data-range-key=\"'+range+'\">'+range+'</li>';}if(this.showCustomRangeLabel){list+='<li data-range-key=\"'+this.locale.customRangeLabel+'\">'+this.locale.customRangeLabel+'</li>';}list+='</ul>';this.container.find('.ranges').prepend(list);}if(typeof cb==='function'){this.callback=cb;}if(!this.timePicker){this.startDate=this.startDate.startOf('day');this.endDate=this.endDate.endOf('day');this.container.find('.calendar-time').hide();}//can't be used together for now\nif(this.timePicker&&this.autoApply)this.autoApply=false;if(this.autoApply){this.container.addClass('auto-apply');}if(typeof options.ranges==='object')this.container.addClass('show-ranges');if(this.singleDatePicker){this.container.addClass('single');this.container.find('.drp-calendar.left').addClass('single');this.container.find('.drp-calendar.left').show();this.container.find('.drp-calendar.right').hide();if(!this.timePicker){this.container.addClass('auto-apply');}}if(typeof options.ranges==='undefined'&&!this.singleDatePicker||this.alwaysShowCalendars){this.container.addClass('show-calendar');}this.container.addClass('opens'+this.opens);//apply CSS classes and labels to buttons\nthis.container.find('.applyBtn, .cancelBtn').addClass(this.buttonClasses);if(this.applyButtonClasses.length)this.container.find('.applyBtn').addClass(this.applyButtonClasses);if(this.cancelButtonClasses.length)this.container.find('.cancelBtn').addClass(this.cancelButtonClasses);this.container.find('.applyBtn').html(this.locale.applyLabel);this.container.find('.cancelBtn').html(this.locale.cancelLabel);//\n// event listeners\n//\nthis.container.find('.drp-calendar').on('click.daterangepicker','.prev',$.proxy(this.clickPrev,this)).on('click.daterangepicker','.next',$.proxy(this.clickNext,this)).on('mousedown.daterangepicker','td.available',$.proxy(this.clickDate,this)).on('mouseenter.daterangepicker','td.available',$.proxy(this.hoverDate,this)).on('change.daterangepicker','select.yearselect',$.proxy(this.monthOrYearChanged,this)).on('change.daterangepicker','select.monthselect',$.proxy(this.monthOrYearChanged,this)).on('change.daterangepicker','select.hourselect,select.minuteselect,select.secondselect,select.ampmselect',$.proxy(this.timeChanged,this));this.container.find('.ranges').on('click.daterangepicker','li',$.proxy(this.clickRange,this));this.container.find('.drp-buttons').on('click.daterangepicker','button.applyBtn',$.proxy(this.clickApply,this)).on('click.daterangepicker','button.cancelBtn',$.proxy(this.clickCancel,this));if(this.element.is('input')||this.element.is('button')){this.element.on({'click.daterangepicker':$.proxy(this.show,this),'focus.daterangepicker':$.proxy(this.show,this),'keyup.daterangepicker':$.proxy(this.elementChanged,this),'keydown.daterangepicker':$.proxy(this.keydown,this)//IE 11 compatibility\n});}else{this.element.on('click.daterangepicker',$.proxy(this.toggle,this));this.element.on('keydown.daterangepicker',$.proxy(this.toggle,this));}//\n// if attached to a text input, set the initial value\n//\nthis.updateElement();};DateRangePicker.prototype={constructor:DateRangePicker,setStartDate:function(startDate){if(typeof startDate==='string')this.startDate=moment(startDate,this.locale.format);if(typeof startDate==='object')this.startDate=moment(startDate);if(!this.timePicker)this.startDate=this.startDate.startOf('day');if(this.timePicker&&this.timePickerIncrement)this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement);if(this.minDate&&this.startDate.isBefore(this.minDate)){this.startDate=this.minDate.clone();if(this.timePicker&&this.timePickerIncrement)this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement);}if(this.maxDate&&this.startDate.isAfter(this.maxDate)){this.startDate=this.maxDate.clone();if(this.timePicker&&this.timePickerIncrement)this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement);}if(!this.isShowing)this.updateElement();this.updateMonthsInView();},setEndDate:function(endDate){if(typeof endDate==='string')this.endDate=moment(endDate,this.locale.format);if(typeof endDate==='object')this.endDate=moment(endDate);if(!this.timePicker)this.endDate=this.endDate.endOf('day');if(this.timePicker&&this.timePickerIncrement)this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement);if(this.endDate.isBefore(this.startDate))this.endDate=this.startDate.clone();if(this.maxDate&&this.endDate.isAfter(this.maxDate))this.endDate=this.maxDate.clone();if(this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate))this.endDate=this.startDate.clone().add(this.maxSpan);this.previousRightTime=this.endDate.clone();this.container.find('.drp-selected').html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format));if(!this.isShowing)this.updateElement();this.updateMonthsInView();},isInvalidDate:function(){return false;},isCustomDate:function(){return false;},updateView:function(){if(this.timePicker){this.renderTimePicker('left');this.renderTimePicker('right');if(!this.endDate){this.container.find('.right .calendar-time select').attr('disabled','disabled').addClass('disabled');}else{this.container.find('.right .calendar-time select').removeAttr('disabled').removeClass('disabled');}}if(this.endDate)this.container.find('.drp-selected').html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format));this.updateMonthsInView();this.updateCalendars();this.updateFormInputs();},updateMonthsInView:function(){if(this.endDate){//if both dates are visible already, do nothing\nif(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format('YYYY-MM')==this.leftCalendar.month.format('YYYY-MM')||this.startDate.format('YYYY-MM')==this.rightCalendar.month.format('YYYY-MM'))&&(this.endDate.format('YYYY-MM')==this.leftCalendar.month.format('YYYY-MM')||this.endDate.format('YYYY-MM')==this.rightCalendar.month.format('YYYY-MM'))){return;}this.leftCalendar.month=this.startDate.clone().date(2);if(!this.linkedCalendars&&(this.endDate.month()!=this.startDate.month()||this.endDate.year()!=this.startDate.year())){this.rightCalendar.month=this.endDate.clone().date(2);}else{this.rightCalendar.month=this.startDate.clone().date(2).add(1,'month');}}else{if(this.leftCalendar.month.format('YYYY-MM')!=this.startDate.format('YYYY-MM')&&this.rightCalendar.month.format('YYYY-MM')!=this.startDate.format('YYYY-MM')){this.leftCalendar.month=this.startDate.clone().date(2);this.rightCalendar.month=this.startDate.clone().date(2).add(1,'month');}}if(this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate){this.rightCalendar.month=this.maxDate.clone().date(2);this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,'month');}},updateCalendars:function(){if(this.timePicker){var hour,minute,second;if(this.endDate){hour=parseInt(this.container.find('.left .hourselect').val(),10);minute=parseInt(this.container.find('.left .minuteselect').val(),10);if(isNaN(minute)){minute=parseInt(this.container.find('.left .minuteselect option:last').val(),10);}second=this.timePickerSeconds?parseInt(this.container.find('.left .secondselect').val(),10):0;if(!this.timePicker24Hour){var ampm=this.container.find('.left .ampmselect').val();if(ampm==='PM'&&hour<12)hour+=12;if(ampm==='AM'&&hour===12)hour=0;}}else{hour=parseInt(this.container.find('.right .hourselect').val(),10);minute=parseInt(this.container.find('.right .minuteselect').val(),10);if(isNaN(minute)){minute=parseInt(this.container.find('.right .minuteselect option:last').val(),10);}second=this.timePickerSeconds?parseInt(this.container.find('.right .secondselect').val(),10):0;if(!this.timePicker24Hour){var ampm=this.container.find('.right .ampmselect').val();if(ampm==='PM'&&hour<12)hour+=12;if(ampm==='AM'&&hour===12)hour=0;}}this.leftCalendar.month.hour(hour).minute(minute).second(second);this.rightCalendar.month.hour(hour).minute(minute).second(second);}this.renderCalendar('left');this.renderCalendar('right');//highlight any predefined range matching the current start and end dates\nthis.container.find('.ranges li').removeClass('active');if(this.endDate==null)return;this.calculateChosenLabel();},renderCalendar:function(side){//\n// Build the matrix of dates that will populate the calendar\n//\nvar calendar=side=='left'?this.leftCalendar:this.rightCalendar;var month=calendar.month.month();var year=calendar.month.year();var hour=calendar.month.hour();var minute=calendar.month.minute();var second=calendar.month.second();var daysInMonth=moment([year,month]).daysInMonth();var firstDay=moment([year,month,1]);var lastDay=moment([year,month,daysInMonth]);var lastMonth=moment(firstDay).subtract(1,'month').month();var lastYear=moment(firstDay).subtract(1,'month').year();var daysInLastMonth=moment([lastYear,lastMonth]).daysInMonth();var dayOfWeek=firstDay.day();//initialize a 6 rows x 7 columns array for the calendar\nvar calendar=[];calendar.firstDay=firstDay;calendar.lastDay=lastDay;for(var i=0;i<6;i++){calendar[i]=[];}//populate the calendar with date objects\nvar startDay=daysInLastMonth-dayOfWeek+this.locale.firstDay+1;if(startDay>daysInLastMonth)startDay-=7;if(dayOfWeek==this.locale.firstDay)startDay=daysInLastMonth-6;var curDate=moment([lastYear,lastMonth,startDay,12,minute,second]);var col,row;for(var i=0,col=0,row=0;i<42;i++,col++,curDate=moment(curDate).add(24,'hour')){if(i>0&&col%7===0){col=0;row++;}calendar[row][col]=curDate.clone().hour(hour).minute(minute).second(second);curDate.hour(12);if(this.minDate&&calendar[row][col].format('YYYY-MM-DD')==this.minDate.format('YYYY-MM-DD')&&calendar[row][col].isBefore(this.minDate)&&side=='left'){calendar[row][col]=this.minDate.clone();}if(this.maxDate&&calendar[row][col].format('YYYY-MM-DD')==this.maxDate.format('YYYY-MM-DD')&&calendar[row][col].isAfter(this.maxDate)&&side=='right'){calendar[row][col]=this.maxDate.clone();}}//make the calendar object available to hoverDate/clickDate\nif(side=='left'){this.leftCalendar.calendar=calendar;}else{this.rightCalendar.calendar=calendar;}//\n// Display the calendar\n//\nvar minDate=side=='left'?this.minDate:this.startDate;var maxDate=this.maxDate;var selected=side=='left'?this.startDate:this.endDate;var arrow=this.locale.direction=='ltr'?{left:'chevron-left',right:'chevron-right'}:{left:'chevron-right',right:'chevron-left'};var html='<table class=\"table-condensed\">';html+='<thead>';html+='<tr>';// add empty cell for week number\nif(this.showWeekNumbers||this.showISOWeekNumbers)html+='<th></th>';if((!minDate||minDate.isBefore(calendar.firstDay))&&(!this.linkedCalendars||side=='left')){html+='<th class=\"prev available\"><span></span></th>';}else{html+='<th></th>';}var dateHtml=this.locale.monthNames[calendar[1][1].month()]+calendar[1][1].format(\" YYYY\");if(this.showDropdowns){var currentMonth=calendar[1][1].month();var currentYear=calendar[1][1].year();var maxYear=maxDate&&maxDate.year()||this.maxYear;var minYear=minDate&&minDate.year()||this.minYear;var inMinYear=currentYear==minYear;var inMaxYear=currentYear==maxYear;var monthHtml='<select class=\"monthselect\">';for(var m=0;m<12;m++){if((!inMinYear||minDate&&m>=minDate.month())&&(!inMaxYear||maxDate&&m<=maxDate.month())){monthHtml+=\"<option value='\"+m+\"'\"+(m===currentMonth?\" selected='selected'\":\"\")+\">\"+this.locale.monthNames[m]+\"</option>\";}else{monthHtml+=\"<option value='\"+m+\"'\"+(m===currentMonth?\" selected='selected'\":\"\")+\" disabled='disabled'>\"+this.locale.monthNames[m]+\"</option>\";}}monthHtml+=\"</select>\";var yearHtml='<select class=\"yearselect\">';for(var y=minYear;y<=maxYear;y++){yearHtml+='<option value=\"'+y+'\"'+(y===currentYear?' selected=\"selected\"':'')+'>'+y+'</option>';}yearHtml+='</select>';dateHtml=monthHtml+yearHtml;}html+='<th colspan=\"5\" class=\"month\">'+dateHtml+'</th>';if((!maxDate||maxDate.isAfter(calendar.lastDay))&&(!this.linkedCalendars||side=='right'||this.singleDatePicker)){html+='<th class=\"next available\"><span></span></th>';}else{html+='<th></th>';}html+='</tr>';html+='<tr>';// add week number label\nif(this.showWeekNumbers||this.showISOWeekNumbers)html+='<th class=\"week\">'+this.locale.weekLabel+'</th>';$.each(this.locale.daysOfWeek,function(index,dayOfWeek){html+='<th>'+dayOfWeek+'</th>';});html+='</tr>';html+='</thead>';html+='<tbody>';//adjust maxDate to reflect the maxSpan setting in order to\n//grey out end dates beyond the maxSpan\nif(this.endDate==null&&this.maxSpan){var maxLimit=this.startDate.clone().add(this.maxSpan).endOf('day');if(!maxDate||maxLimit.isBefore(maxDate)){maxDate=maxLimit;}}for(var row=0;row<6;row++){html+='<tr>';// add week number\nif(this.showWeekNumbers)html+='<td class=\"week\">'+calendar[row][0].week()+'</td>';else if(this.showISOWeekNumbers)html+='<td class=\"week\">'+calendar[row][0].isoWeek()+'</td>';for(var col=0;col<7;col++){var classes=[];//highlight today's date\nif(calendar[row][col].isSame(new Date(),\"day\"))classes.push('today');//highlight weekends\nif(calendar[row][col].isoWeekday()>5)classes.push('weekend');//grey out the dates in other months displayed at beginning and end of this calendar\nif(calendar[row][col].month()!=calendar[1][1].month())classes.push('off','ends');//don't allow selection of dates before the minimum date\nif(this.minDate&&calendar[row][col].isBefore(this.minDate,'day'))classes.push('off','disabled');//don't allow selection of dates after the maximum date\nif(maxDate&&calendar[row][col].isAfter(maxDate,'day'))classes.push('off','disabled');//don't allow selection of date if a custom function decides it's invalid\nif(this.isInvalidDate(calendar[row][col]))classes.push('off','disabled');//highlight the currently selected start date\nif(calendar[row][col].format('YYYY-MM-DD')==this.startDate.format('YYYY-MM-DD'))classes.push('active','start-date');//highlight the currently selected end date\nif(this.endDate!=null&&calendar[row][col].format('YYYY-MM-DD')==this.endDate.format('YYYY-MM-DD'))classes.push('active','end-date');//highlight dates in-between the selected dates\nif(this.endDate!=null&&calendar[row][col]>this.startDate&&calendar[row][col]<this.endDate)classes.push('in-range');//apply custom classes for this date\nvar isCustom=this.isCustomDate(calendar[row][col]);if(isCustom!==false){if(typeof isCustom==='string')classes.push(isCustom);else Array.prototype.push.apply(classes,isCustom);}var cname='',disabled=false;for(var i=0;i<classes.length;i++){cname+=classes[i]+' ';if(classes[i]=='disabled')disabled=true;}if(!disabled)cname+='available';html+='<td class=\"'+cname.replace(/^\\s+|\\s+$/g,'')+'\" data-title=\"'+'r'+row+'c'+col+'\">'+calendar[row][col].date()+'</td>';}html+='</tr>';}html+='</tbody>';html+='</table>';this.container.find('.drp-calendar.'+side+' .calendar-table').html(html);},renderTimePicker:function(side){// Don't bother updating the time picker if it's currently disabled\n// because an end date hasn't been clicked yet\nif(side=='right'&&!this.endDate)return;var html,selected,minDate,maxDate=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate)))maxDate=this.startDate.clone().add(this.maxSpan);if(side=='left'){selected=this.startDate.clone();minDate=this.minDate;}else if(side=='right'){selected=this.endDate.clone();minDate=this.startDate;//Preserve the time already selected\nvar timeSelector=this.container.find('.drp-calendar.right .calendar-time');if(timeSelector.html()!=''){selected.hour(!isNaN(selected.hour())?selected.hour():timeSelector.find('.hourselect option:selected').val());selected.minute(!isNaN(selected.minute())?selected.minute():timeSelector.find('.minuteselect option:selected').val());selected.second(!isNaN(selected.second())?selected.second():timeSelector.find('.secondselect option:selected').val());if(!this.timePicker24Hour){var ampm=timeSelector.find('.ampmselect option:selected').val();if(ampm==='PM'&&selected.hour()<12)selected.hour(selected.hour()+12);if(ampm==='AM'&&selected.hour()===12)selected.hour(0);}}if(selected.isBefore(this.startDate))selected=this.startDate.clone();if(maxDate&&selected.isAfter(maxDate))selected=maxDate.clone();}//\n// hours\n//\nhtml='<select class=\"hourselect\">';var start=this.timePicker24Hour?0:1;var end=this.timePicker24Hour?23:12;for(var i=start;i<=end;i++){var i_in_24=i;if(!this.timePicker24Hour)i_in_24=selected.hour()>=12?i==12?12:i+12:i==12?0:i;var time=selected.clone().hour(i_in_24);var disabled=false;if(minDate&&time.minute(59).isBefore(minDate))disabled=true;if(maxDate&&time.minute(0).isAfter(maxDate))disabled=true;if(i_in_24==selected.hour()&&!disabled){html+='<option value=\"'+i+'\" selected=\"selected\">'+i+'</option>';}else if(disabled){html+='<option value=\"'+i+'\" disabled=\"disabled\" class=\"disabled\">'+i+'</option>';}else{html+='<option value=\"'+i+'\">'+i+'</option>';}}html+='</select> ';//\n// minutes\n//\nhtml+=': <select class=\"minuteselect\">';for(var i=0;i<60;i+=this.timePickerIncrement){var padded=i<10?'0'+i:i;var time=selected.clone().minute(i);var disabled=false;if(minDate&&time.second(59).isBefore(minDate))disabled=true;if(maxDate&&time.second(0).isAfter(maxDate))disabled=true;if(selected.minute()==i&&!disabled){html+='<option value=\"'+i+'\" selected=\"selected\">'+padded+'</option>';}else if(disabled){html+='<option value=\"'+i+'\" disabled=\"disabled\" class=\"disabled\">'+padded+'</option>';}else{html+='<option value=\"'+i+'\">'+padded+'</option>';}}html+='</select> ';//\n// seconds\n//\nif(this.timePickerSeconds){html+=': <select class=\"secondselect\">';for(var i=0;i<60;i++){var padded=i<10?'0'+i:i;var time=selected.clone().second(i);var disabled=false;if(minDate&&time.isBefore(minDate))disabled=true;if(maxDate&&time.isAfter(maxDate))disabled=true;if(selected.second()==i&&!disabled){html+='<option value=\"'+i+'\" selected=\"selected\">'+padded+'</option>';}else if(disabled){html+='<option value=\"'+i+'\" disabled=\"disabled\" class=\"disabled\">'+padded+'</option>';}else{html+='<option value=\"'+i+'\">'+padded+'</option>';}}html+='</select> ';}//\n// AM/PM\n//\nif(!this.timePicker24Hour){html+='<select class=\"ampmselect\">';var am_html='';var pm_html='';if(minDate&&selected.clone().hour(12).minute(0).second(0).isBefore(minDate))am_html=' disabled=\"disabled\" class=\"disabled\"';if(maxDate&&selected.clone().hour(0).minute(0).second(0).isAfter(maxDate))pm_html=' disabled=\"disabled\" class=\"disabled\"';if(selected.hour()>=12){html+='<option value=\"AM\"'+am_html+'>AM</option><option value=\"PM\" selected=\"selected\"'+pm_html+'>PM</option>';}else{html+='<option value=\"AM\" selected=\"selected\"'+am_html+'>AM</option><option value=\"PM\"'+pm_html+'>PM</option>';}html+='</select>';}this.container.find('.drp-calendar.'+side+' .calendar-time').html(html);},updateFormInputs:function(){if(this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))){this.container.find('button.applyBtn').removeAttr('disabled');}else{this.container.find('button.applyBtn').attr('disabled','disabled');}},move:function(){var parentOffset={top:0,left:0},containerTop;var parentRightEdge=$(window).width();if(!this.parentEl.is('body')){parentOffset={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()};parentRightEdge=this.parentEl[0].clientWidth+this.parentEl.offset().left;}if(this.drops=='up')containerTop=this.element.offset().top-this.container.outerHeight()-parentOffset.top;else containerTop=this.element.offset().top+this.element.outerHeight()-parentOffset.top;// Force the container to it's actual width\nthis.container.css({top:0,left:0,right:'auto'});var containerWidth=this.container.outerWidth();this.container[this.drops=='up'?'addClass':'removeClass']('drop-up');if(this.opens=='left'){var containerRight=parentRightEdge-this.element.offset().left-this.element.outerWidth();if(containerWidth+containerRight>$(window).width()){this.container.css({top:containerTop,right:'auto',left:9});}else{this.container.css({top:containerTop,right:containerRight,left:'auto'});}}else if(this.opens=='center'){var containerLeft=this.element.offset().left-parentOffset.left+this.element.outerWidth()/2-containerWidth/2;if(containerLeft<0){this.container.css({top:containerTop,right:'auto',left:9});}else if(containerLeft+containerWidth>$(window).width()){this.container.css({top:containerTop,left:'auto',right:0});}else{this.container.css({top:containerTop,left:containerLeft,right:'auto'});}}else{var containerLeft=this.element.offset().left-parentOffset.left;if(containerLeft+containerWidth>$(window).width()){this.container.css({top:containerTop,left:'auto',right:0});}else{this.container.css({top:containerTop,left:containerLeft,right:'auto'});}}},show:function(e){if(this.isShowing)return;// Create a click proxy that is private to this instance of datepicker, for unbinding\nthis._outsideClickProxy=$.proxy(function(e){this.outsideClick(e);},this);// Bind global datepicker mousedown for hiding and\n$(document).on('mousedown.daterangepicker',this._outsideClickProxy)// also support mobile devices\n.on('touchend.daterangepicker',this._outsideClickProxy)// also explicitly play nice with Bootstrap dropdowns, which stopPropagation when clicking them\n.on('click.daterangepicker','[data-toggle=dropdown]',this._outsideClickProxy)// and also close when focus changes to outside the picker (eg. tabbing between controls)\n.on('focusin.daterangepicker',this._outsideClickProxy);// Reposition the picker if the window is resized while it's open\n$(window).on('resize.daterangepicker',$.proxy(function(e){this.move(e);},this));this.oldStartDate=this.startDate.clone();this.oldEndDate=this.endDate.clone();this.previousRightTime=this.endDate.clone();this.updateView();this.container.show();this.move();this.element.trigger('show.daterangepicker',this);this.isShowing=true;},hide:function(e){if(!this.isShowing)return;//incomplete date selection, revert to last values\nif(!this.endDate){this.startDate=this.oldStartDate.clone();this.endDate=this.oldEndDate.clone();}//if a new date range was selected, invoke the user callback function\nif(!this.startDate.isSame(this.oldStartDate)||!this.endDate.isSame(this.oldEndDate))this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel);//if picker is attached to a text input, update it\nthis.updateElement();$(document).off('.daterangepicker');$(window).off('.daterangepicker');this.container.hide();this.element.trigger('hide.daterangepicker',this);this.isShowing=false;},toggle:function(e){if(this.isShowing){this.hide();}else{this.show();}},outsideClick:function(e){var target=$(e.target);// if the page is clicked anywhere except within the daterangerpicker/button\n// itself then call this.hide()\nif(// ie modal dialog fix\ne.type==\"focusin\"||target.closest(this.element).length||target.closest(this.container).length||target.closest('.calendar-table').length)return;this.hide();this.element.trigger('outsideClick.daterangepicker',this);},showCalendars:function(){this.container.addClass('show-calendar');this.move();this.element.trigger('showCalendar.daterangepicker',this);},hideCalendars:function(){this.container.removeClass('show-calendar');this.element.trigger('hideCalendar.daterangepicker',this);},clickRange:function(e){var label=e.target.getAttribute('data-range-key');this.chosenLabel=label;if(label==this.locale.customRangeLabel){this.showCalendars();}else{var dates=this.ranges[label];this.startDate=dates[0];this.endDate=dates[1];if(!this.timePicker){this.startDate.startOf('day');this.endDate.endOf('day');}if(!this.alwaysShowCalendars)this.hideCalendars();this.clickApply();}},clickPrev:function(e){var cal=$(e.target).parents('.drp-calendar');if(cal.hasClass('left')){this.leftCalendar.month.subtract(1,'month');if(this.linkedCalendars)this.rightCalendar.month.subtract(1,'month');}else{this.rightCalendar.month.subtract(1,'month');}this.updateCalendars();},clickNext:function(e){var cal=$(e.target).parents('.drp-calendar');if(cal.hasClass('left')){this.leftCalendar.month.add(1,'month');}else{this.rightCalendar.month.add(1,'month');if(this.linkedCalendars)this.leftCalendar.month.add(1,'month');}this.updateCalendars();},hoverDate:function(e){//ignore dates that can't be selected\nif(!$(e.target).hasClass('available'))return;var title=$(e.target).attr('data-title');var row=title.substr(1,1);var col=title.substr(3,1);var cal=$(e.target).parents('.drp-calendar');var date=cal.hasClass('left')?this.leftCalendar.calendar[row][col]:this.rightCalendar.calendar[row][col];//highlight the dates between the start date and the date being hovered as a potential end date\nvar leftCalendar=this.leftCalendar;var rightCalendar=this.rightCalendar;var startDate=this.startDate;if(!this.endDate){this.container.find('.drp-calendar tbody td').each(function(index,el){//skip week numbers, only look at dates\nif($(el).hasClass('week'))return;var title=$(el).attr('data-title');var row=title.substr(1,1);var col=title.substr(3,1);var cal=$(el).parents('.drp-calendar');var dt=cal.hasClass('left')?leftCalendar.calendar[row][col]:rightCalendar.calendar[row][col];if(dt.isAfter(startDate)&&dt.isBefore(date)||dt.isSame(date,'day')){$(el).addClass('in-range');}else{$(el).removeClass('in-range');}});}},clickDate:function(e){if(!$(e.target).hasClass('available'))return;var title=$(e.target).attr('data-title');var row=title.substr(1,1);var col=title.substr(3,1);var cal=$(e.target).parents('.drp-calendar');var date=cal.hasClass('left')?this.leftCalendar.calendar[row][col]:this.rightCalendar.calendar[row][col];//\n// this function needs to do a few things:\n// * alternate between selecting a start and end date for the range,\n// * if the time picker is enabled, apply the hour/minute/second from the select boxes to the clicked date\n// * if autoapply is enabled, and an end date was chosen, apply the selection\n// * if single date picker mode, and time picker isn't enabled, apply the selection immediately\n// * if one of the inputs above the calendars was focused, cancel that manual input\n//\nif(this.endDate||date.isBefore(this.startDate,'day')){//picking start\nif(this.timePicker){var hour=parseInt(this.container.find('.left .hourselect').val(),10);if(!this.timePicker24Hour){var ampm=this.container.find('.left .ampmselect').val();if(ampm==='PM'&&hour<12)hour+=12;if(ampm==='AM'&&hour===12)hour=0;}var minute=parseInt(this.container.find('.left .minuteselect').val(),10);if(isNaN(minute)){minute=parseInt(this.container.find('.left .minuteselect option:last').val(),10);}var second=this.timePickerSeconds?parseInt(this.container.find('.left .secondselect').val(),10):0;date=date.clone().hour(hour).minute(minute).second(second);}this.endDate=null;this.setStartDate(date.clone());}else if(!this.endDate&&date.isBefore(this.startDate)){//special case: clicking the same date for start/end,\n//but the time of the end date is before the start date\nthis.setEndDate(this.startDate.clone());}else{// picking end\nif(this.timePicker){var hour=parseInt(this.container.find('.right .hourselect').val(),10);if(!this.timePicker24Hour){var ampm=this.container.find('.right .ampmselect').val();if(ampm==='PM'&&hour<12)hour+=12;if(ampm==='AM'&&hour===12)hour=0;}var minute=parseInt(this.container.find('.right .minuteselect').val(),10);if(isNaN(minute)){minute=parseInt(this.container.find('.right .minuteselect option:last').val(),10);}var second=this.timePickerSeconds?parseInt(this.container.find('.right .secondselect').val(),10):0;date=date.clone().hour(hour).minute(minute).second(second);}this.setEndDate(date.clone());if(this.autoApply){this.calculateChosenLabel();this.clickApply();}}if(this.singleDatePicker){this.setEndDate(this.startDate);if(!this.timePicker)this.clickApply();}this.updateView();//This is to cancel the blur event handler if the mouse was in one of the inputs\ne.stopPropagation();},calculateChosenLabel:function(){var customRange=true;var i=0;for(var range in this.ranges){if(this.timePicker){var format=this.timePickerSeconds?\"YYYY-MM-DD HH:mm:ss\":\"YYYY-MM-DD HH:mm\";//ignore times when comparing dates if time picker seconds is not enabled\nif(this.startDate.format(format)==this.ranges[range][0].format(format)&&this.endDate.format(format)==this.ranges[range][1].format(format)){customRange=false;this.chosenLabel=this.container.find('.ranges li:eq('+i+')').addClass('active').attr('data-range-key');break;}}else{//ignore times when comparing dates if time picker is not enabled\nif(this.startDate.format('YYYY-MM-DD')==this.ranges[range][0].format('YYYY-MM-DD')&&this.endDate.format('YYYY-MM-DD')==this.ranges[range][1].format('YYYY-MM-DD')){customRange=false;this.chosenLabel=this.container.find('.ranges li:eq('+i+')').addClass('active').attr('data-range-key');break;}}i++;}if(customRange){if(this.showCustomRangeLabel){this.chosenLabel=this.container.find('.ranges li:last').addClass('active').attr('data-range-key');}else{this.chosenLabel=null;}this.showCalendars();}},clickApply:function(e){this.hide();this.element.trigger('apply.daterangepicker',this);},clickCancel:function(e){this.startDate=this.oldStartDate;this.endDate=this.oldEndDate;this.hide();this.element.trigger('cancel.daterangepicker',this);},monthOrYearChanged:function(e){var isLeft=$(e.target).closest('.drp-calendar').hasClass('left'),leftOrRight=isLeft?'left':'right',cal=this.container.find('.drp-calendar.'+leftOrRight);// Month must be Number for new moment versions\nvar month=parseInt(cal.find('.monthselect').val(),10);var year=cal.find('.yearselect').val();if(!isLeft){if(year<this.startDate.year()||year==this.startDate.year()&&month<this.startDate.month()){month=this.startDate.month();year=this.startDate.year();}}if(this.minDate){if(year<this.minDate.year()||year==this.minDate.year()&&month<this.minDate.month()){month=this.minDate.month();year=this.minDate.year();}}if(this.maxDate){if(year>this.maxDate.year()||year==this.maxDate.year()&&month>this.maxDate.month()){month=this.maxDate.month();year=this.maxDate.year();}}if(isLeft){this.leftCalendar.month.month(month).year(year);if(this.linkedCalendars)this.rightCalendar.month=this.leftCalendar.month.clone().add(1,'month');}else{this.rightCalendar.month.month(month).year(year);if(this.linkedCalendars)this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,'month');}this.updateCalendars();},timeChanged:function(e){var cal=$(e.target).closest('.drp-calendar'),isLeft=cal.hasClass('left');var hour=parseInt(cal.find('.hourselect').val(),10);var minute=parseInt(cal.find('.minuteselect').val(),10);if(isNaN(minute)){minute=parseInt(cal.find('.minuteselect option:last').val(),10);}var second=this.timePickerSeconds?parseInt(cal.find('.secondselect').val(),10):0;if(!this.timePicker24Hour){var ampm=cal.find('.ampmselect').val();if(ampm==='PM'&&hour<12)hour+=12;if(ampm==='AM'&&hour===12)hour=0;}if(isLeft){var start=this.startDate.clone();start.hour(hour);start.minute(minute);start.second(second);this.setStartDate(start);if(this.singleDatePicker){this.endDate=this.startDate.clone();}else if(this.endDate&&this.endDate.format('YYYY-MM-DD')==start.format('YYYY-MM-DD')&&this.endDate.isBefore(start)){this.setEndDate(start.clone());}}else if(this.endDate){var end=this.endDate.clone();end.hour(hour);end.minute(minute);end.second(second);this.setEndDate(end);}//update the calendars so all clickable dates reflect the new time component\nthis.updateCalendars();//update the form inputs above the calendars with the new time\nthis.updateFormInputs();//re-render the time pickers because changing one selection can affect what's enabled in another\nthis.renderTimePicker('left');this.renderTimePicker('right');},elementChanged:function(){if(!this.element.is('input'))return;if(!this.element.val().length)return;var dateString=this.element.val().split(this.locale.separator),start=null,end=null;if(dateString.length===2){start=moment(dateString[0],this.locale.format);end=moment(dateString[1],this.locale.format);}if(this.singleDatePicker||start===null||end===null){start=moment(this.element.val(),this.locale.format);end=start;}if(!start.isValid()||!end.isValid())return;this.setStartDate(start);this.setEndDate(end);this.updateView();},keydown:function(e){//hide on tab or enter\nif(e.keyCode===9||e.keyCode===13){this.hide();}//hide on esc and prevent propagation\nif(e.keyCode===27){e.preventDefault();e.stopPropagation();this.hide();}},updateElement:function(){if(this.element.is('input')&&this.autoUpdateInput){var newValue=this.startDate.format(this.locale.format);if(!this.singleDatePicker){newValue+=this.locale.separator+this.endDate.format(this.locale.format);}if(newValue!==this.element.val()){this.element.val(newValue).trigger('change');}}},remove:function(){this.container.remove();this.element.off('.daterangepicker');this.element.removeData();}};$.fn.daterangepicker=function(options,callback){var implementOptions=$.extend(true,{},$.fn.daterangepicker.defaultOptions,options);this.each(function(){var el=$(this);if(el.data('daterangepicker'))el.data('daterangepicker').remove();el.data('daterangepicker',new DateRangePicker(el,implementOptions,callback));});return this;};return DateRangePicker;});// ----------- bootstrap-daterangepicker.js END -------------\n// ----------- moment.js START -------------\n!function(e,t){ true?module.exports=t():0;}(this,function(){\"use strict\";var e,i;function c(){return e.apply(null,arguments);}function o(e){return e instanceof Array||\"[object Array]\"===Object.prototype.toString.call(e);}function u(e){return null!=e&&\"[object Object]\"===Object.prototype.toString.call(e);}function l(e){return void 0===e;}function h(e){return\"number\"==typeof e||\"[object Number]\"===Object.prototype.toString.call(e);}function d(e){return e instanceof Date||\"[object Date]\"===Object.prototype.toString.call(e);}function f(e,t){var n,s=[];for(n=0;n<e.length;++n)s.push(t(e[n],n));return s;}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t);}function _(e,t){for(var n in t)m(t,n)&&(e[n]=t[n]);return m(t,\"toString\")&&(e.toString=t.toString),m(t,\"valueOf\")&&(e.valueOf=t.valueOf),e;}function y(e,t,n,s){return Tt(e,t,n,s,!0).utc();}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf;}function v(e){if(null==e._isValid){var t=g(e),n=i.call(t.parsedDateParts,function(e){return null!=e;}),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s;}return e._isValid;}function p(e){var t=y(NaN);return null!=e?_(g(t),e):g(t).userInvalidated=!0,t;}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1;};var r=c.momentProperties=[];function w(e,t){var n,s,i;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=g(t)),l(t._locale)||(e._locale=t._locale),0<r.length)for(n=0;n<r.length;n++)l(i=t[s=r[n]])||(e[s]=i);return e;}var t=!1;function M(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,c.updateOffset(this),t=!1);}function k(e){return e instanceof M||null!=e&&null!=e._isAMomentObject;}function S(e){return e<0?Math.ceil(e)||0:Math.floor(e);}function D(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=S(t)),n;}function a(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s<i;s++)(n&&e[s]!==t[s]||!n&&D(e[s])!==D(t[s]))&&a++;return a+r;}function Y(e){!1===c.suppressDeprecationWarnings&&\"undefined\"!=typeof console&&console.warn&&console.warn(\"Deprecation warning: \"+e);}function n(i,r){var a=!0;return _(function(){if(null!=c.deprecationHandler&&c.deprecationHandler(null,i),a){for(var e,t=[],n=0;n<arguments.length;n++){if(e=\"\",\"object\"==typeof arguments[n]){for(var s in e+=\"\\n[\"+n+\"] \",arguments[0])e+=s+\": \"+arguments[0][s]+\", \";e=e.slice(0,-2);}else e=arguments[n];t.push(e);}Y(i+\"\\nArguments: \"+Array.prototype.slice.call(t).join(\"\")+\"\\n\"+new Error().stack),a=!1;}return r.apply(this,arguments);},r);}var s,O={};function T(e,t){null!=c.deprecationHandler&&c.deprecationHandler(e,t),O[e]||(Y(t),O[e]=!0);}function b(e){return e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e);}function x(e,t){var n,s=_({},e);for(n in t)m(t,n)&&(u(e[n])&&u(t[n])?(s[n]={},_(s[n],e[n]),_(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)m(e,n)&&!m(t,n)&&u(e[n])&&(s[n]=_({},s[n]));return s;}function P(e){null!=e&&this.set(e);}c.suppressDeprecationWarnings=!1,c.deprecationHandler=null,s=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)m(e,t)&&n.push(t);return n;};var W={};function C(e,t){var n=e.toLowerCase();W[n]=W[n+\"s\"]=W[t]=e;}function H(e){return\"string\"==typeof e?W[e]||W[e.toLowerCase()]:void 0;}function R(e){var t,n,s={};for(n in e)m(e,n)&&(t=H(n))&&(s[t]=e[n]);return s;}var U={};function F(e,t){U[e]=t;}function L(e,t,n){var s=\"\"+Math.abs(e),i=t-s.length;return(0<=e?n?\"+\":\"\":\"-\")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s;}var N=/(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,G=/(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},E={};function I(e,t,n,s){var i=s;\"string\"==typeof s&&(i=function(){return this[s]();}),e&&(E[e]=i),t&&(E[t[0]]=function(){return L(i.apply(this,arguments),t[1],t[2]);}),n&&(E[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e);});}function A(e,t){return e.isValid()?(t=j(t,e.localeData()),V[t]=V[t]||function(s){var e,i,t,r=s.match(N);for(e=0,i=r.length;e<i;e++)E[r[e]]?r[e]=E[r[e]]:r[e]=(t=r[e]).match(/\\[[\\s\\S]/)?t.replace(/^\\[|\\]$/g,\"\"):t.replace(/\\\\/g,\"\");return function(e){var t,n=\"\";for(t=0;t<i;t++)n+=b(r[t])?r[t].call(e,s):r[t];return n;};}(t),V[t](e)):e.localeData().invalidDate();}function j(e,t){var n=5;function s(e){return t.longDateFormat(e)||e;}for(G.lastIndex=0;0<=n&&G.test(e);)e=e.replace(G,s),G.lastIndex=0,n-=1;return e;}var Z=/\\d/,z=/\\d\\d/,$=/\\d{3}/,q=/\\d{4}/,J=/[+-]?\\d{6}/,B=/\\d\\d?/,Q=/\\d\\d\\d\\d?/,X=/\\d\\d\\d\\d\\d\\d?/,K=/\\d{1,3}/,ee=/\\d{1,4}/,te=/[+-]?\\d{1,6}/,ne=/\\d+/,se=/[+-]?\\d+/,ie=/Z|[+-]\\d\\d:?\\d\\d/gi,re=/Z|[+-]\\d\\d(?::?\\d\\d)?/gi,ae=/[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i,oe={};function ue(e,n,s){oe[e]=b(n)?n:function(e,t){return e&&s?s:n;};}function le(e,t){return m(oe,e)?oe[e](t._strict,t._locale):new RegExp(he(e.replace(\"\\\\\",\"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,function(e,t,n,s,i){return t||n||s||i;})));}function he(e){return e.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\");}var de={};function ce(e,n){var t,s=n;for(\"string\"==typeof e&&(e=[e]),h(n)&&(s=function(e,t){t[n]=D(e);}),t=0;t<e.length;t++)de[e[t]]=s;}function fe(e,i){ce(e,function(e,t,n,s){n._w=n._w||{},i(e,n._w,n,s);});}var me=0,_e=1,ye=2,ge=3,ve=4,pe=5,we=6,Me=7,ke=8;function Se(e){return De(e)?366:365;}function De(e){return e%4==0&&e%100!=0||e%400==0;}I(\"Y\",0,0,function(){var e=this.year();return e<=9999?\"\"+e:\"+\"+e;}),I(0,[\"YY\",2],0,function(){return this.year()%100;}),I(0,[\"YYYY\",4],0,\"year\"),I(0,[\"YYYYY\",5],0,\"year\"),I(0,[\"YYYYYY\",6,!0],0,\"year\"),C(\"year\",\"y\"),F(\"year\",1),ue(\"Y\",se),ue(\"YY\",B,z),ue(\"YYYY\",ee,q),ue(\"YYYYY\",te,J),ue(\"YYYYYY\",te,J),ce([\"YYYYY\",\"YYYYYY\"],me),ce(\"YYYY\",function(e,t){t[me]=2===e.length?c.parseTwoDigitYear(e):D(e);}),ce(\"YY\",function(e,t){t[me]=c.parseTwoDigitYear(e);}),ce(\"Y\",function(e,t){t[me]=parseInt(e,10);}),c.parseTwoDigitYear=function(e){return D(e)+(68<D(e)?1900:2e3);};var Ye,Oe=Te(\"FullYear\",!0);function Te(t,n){return function(e){return null!=e?(xe(this,t,e),c.updateOffset(this,n),this):be(this,t);};}function be(e,t){return e.isValid()?e._d[\"get\"+(e._isUTC?\"UTC\":\"\")+t]():NaN;}function xe(e,t,n){e.isValid()&&!isNaN(n)&&(\"FullYear\"===t&&De(e.year())&&1===e.month()&&29===e.date()?e._d[\"set\"+(e._isUTC?\"UTC\":\"\")+t](n,e.month(),Pe(n,e.month())):e._d[\"set\"+(e._isUTC?\"UTC\":\"\")+t](n));}function Pe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,s=(t%(n=12)+n)%n;return e+=(t-s)/12,1===s?De(e)?29:28:31-s%7%2;}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1;},I(\"M\",[\"MM\",2],\"Mo\",function(){return this.month()+1;}),I(\"MMM\",0,0,function(e){return this.localeData().monthsShort(this,e);}),I(\"MMMM\",0,0,function(e){return this.localeData().months(this,e);}),C(\"month\",\"M\"),F(\"month\",8),ue(\"M\",B),ue(\"MM\",B,z),ue(\"MMM\",function(e,t){return t.monthsShortRegex(e);}),ue(\"MMMM\",function(e,t){return t.monthsRegex(e);}),ce([\"M\",\"MM\"],function(e,t){t[_e]=D(e)-1;}),ce([\"MMM\",\"MMMM\"],function(e,t,n,s){var i=n._locale.monthsParse(e,s,n._strict);null!=i?t[_e]=i:g(n).invalidMonth=e;});var We=/D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,Ce=\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\");var He=\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\");function Re(e,t){var n;if(!e.isValid())return e;if(\"string\"==typeof t)if(/^\\d+$/.test(t))t=D(t);else if(!h(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Pe(e.year(),t)),e._d[\"set\"+(e._isUTC?\"UTC\":\"\")+\"Month\"](t,n),e;}function Ue(e){return null!=e?(Re(this,e),c.updateOffset(this,!0),this):be(this,\"Month\");}var Fe=ae;var Le=ae;function Ne(){function e(e,t){return t.length-e.length;}var t,n,s=[],i=[],r=[];for(t=0;t<12;t++)n=y([2e3,t]),s.push(this.monthsShort(n,\"\")),i.push(this.months(n,\"\")),r.push(this.months(n,\"\")),r.push(this.monthsShort(n,\"\"));for(s.sort(e),i.sort(e),r.sort(e),t=0;t<12;t++)s[t]=he(s[t]),i[t]=he(i[t]);for(t=0;t<24;t++)r[t]=he(r[t]);this._monthsRegex=new RegExp(\"^(\"+r.join(\"|\")+\")\",\"i\"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(\"^(\"+i.join(\"|\")+\")\",\"i\"),this._monthsShortStrictRegex=new RegExp(\"^(\"+s.join(\"|\")+\")\",\"i\");}function Ge(e){var t;if(e<100&&0<=e){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e);}else t=new Date(Date.UTC.apply(null,arguments));return t;}function Ve(e,t,n){var s=7+t-n;return-((7+Ge(e,0,s).getUTCDay()-t)%7)+s-1;}function Ee(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+Ve(e,s,i);return a=o<=0?Se(r=e-1)+o:o>Se(e)?(r=e+1,o-Se(e)):(r=e,o),{year:r,dayOfYear:a};}function Ie(e,t,n){var s,i,r=Ve(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ae(i=e.year()-1,t,n):a>Ae(e.year(),t,n)?(s=a-Ae(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i};}function Ae(e,t,n){var s=Ve(e,t,n),i=Ve(e+1,t,n);return(Se(e)-s+i)/7;}I(\"w\",[\"ww\",2],\"wo\",\"week\"),I(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\"),C(\"week\",\"w\"),C(\"isoWeek\",\"W\"),F(\"week\",5),F(\"isoWeek\",5),ue(\"w\",B),ue(\"ww\",B,z),ue(\"W\",B),ue(\"WW\",B,z),fe([\"w\",\"ww\",\"W\",\"WW\"],function(e,t,n,s){t[s.substr(0,1)]=D(e);});function je(e,t){return e.slice(t,7).concat(e.slice(0,t));}I(\"d\",0,\"do\",\"day\"),I(\"dd\",0,0,function(e){return this.localeData().weekdaysMin(this,e);}),I(\"ddd\",0,0,function(e){return this.localeData().weekdaysShort(this,e);}),I(\"dddd\",0,0,function(e){return this.localeData().weekdays(this,e);}),I(\"e\",0,0,\"weekday\"),I(\"E\",0,0,\"isoWeekday\"),C(\"day\",\"d\"),C(\"weekday\",\"e\"),C(\"isoWeekday\",\"E\"),F(\"day\",11),F(\"weekday\",11),F(\"isoWeekday\",11),ue(\"d\",B),ue(\"e\",B),ue(\"E\",B),ue(\"dd\",function(e,t){return t.weekdaysMinRegex(e);}),ue(\"ddd\",function(e,t){return t.weekdaysShortRegex(e);}),ue(\"dddd\",function(e,t){return t.weekdaysRegex(e);}),fe([\"dd\",\"ddd\",\"dddd\"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e;}),fe([\"d\",\"e\",\"E\"],function(e,t,n,s){t[s]=D(e);});var Ze=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\");var ze=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\");var $e=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\");var qe=ae;var Je=ae;var Be=ae;function Qe(){function e(e,t){return t.length-e.length;}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=y([2e3,1]).day(t),s=this.weekdaysMin(n,\"\"),i=this.weekdaysShort(n,\"\"),r=this.weekdays(n,\"\"),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=he(o[t]),u[t]=he(u[t]),l[t]=he(l[t]);this._weekdaysRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+u.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+a.join(\"|\")+\")\",\"i\");}function Xe(){return this.hours()%12||12;}function Ke(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t);});}function et(e,t){return t._meridiemParse;}I(\"H\",[\"HH\",2],0,\"hour\"),I(\"h\",[\"hh\",2],0,Xe),I(\"k\",[\"kk\",2],0,function(){return this.hours()||24;}),I(\"hmm\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2);}),I(\"hmmss\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2)+L(this.seconds(),2);}),I(\"Hmm\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2);}),I(\"Hmmss\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)+L(this.seconds(),2);}),Ke(\"a\",!0),Ke(\"A\",!1),C(\"hour\",\"h\"),F(\"hour\",13),ue(\"a\",et),ue(\"A\",et),ue(\"H\",B),ue(\"h\",B),ue(\"k\",B),ue(\"HH\",B,z),ue(\"hh\",B,z),ue(\"kk\",B,z),ue(\"hmm\",Q),ue(\"hmmss\",X),ue(\"Hmm\",Q),ue(\"Hmmss\",X),ce([\"H\",\"HH\"],ge),ce([\"k\",\"kk\"],function(e,t,n){var s=D(e);t[ge]=24===s?0:s;}),ce([\"a\",\"A\"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e;}),ce([\"h\",\"hh\"],function(e,t,n){t[ge]=D(e),g(n).bigHour=!0;}),ce(\"hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s)),g(n).bigHour=!0;}),ce(\"hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i)),g(n).bigHour=!0;}),ce(\"Hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s));}),ce(\"Hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i));});var tt,nt=Te(\"Hours\",!0),st={calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},longDateFormat:{LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},invalidDate:\"Invalid date\",ordinal:\"%d\",dayOfMonthOrdinalParse:/\\d{1,2}/,relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},months:Ce,monthsShort:He,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:$e,weekdaysShort:ze,meridiemParse:/[ap]\\.?m?\\.?/i},it={},rt={};function at(e){return e?e.toLowerCase().replace(\"_\",\"-\"):e;}function ot(e){var t=null;if(!it[e]&&\"undefined\"!=\"object\"&&module&&module.exports)try{t=tt._abbr,__webpack_require__(\"false sync recursive ^\\\\.\\\\/.*$\")(\"./\"+e),ut(t);}catch(e){}return it[e];}function ut(e,t){var n;return e&&((n=l(t)?ht(e):lt(e,t))?tt=n:\"undefined\"!=typeof console&&console.warn&&console.warn(\"Locale \"+e+\" not found. Did you forget to load it?\")),tt._abbr;}function lt(e,t){if(null===t)return delete it[e],null;var n,s=st;if(t.abbr=e,null!=it[e])T(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"),s=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])s=it[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;s=n._config;}return it[e]=new P(x(s,t)),rt[e]&&rt[e].forEach(function(e){lt(e.name,e.config);}),ut(e),it[e];}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!o(e)){if(t=ot(e))return t;e=[e];}return function(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=at(e[r]).split(\"-\")).length,n=(n=at(e[r+1]))?n.split(\"-\"):null;0<t;){if(s=ot(i.slice(0,t).join(\"-\")))return s;if(n&&n.length>=t&&a(i,n,!0)>=t-1)break;t--;}r++;}return tt;}(e);}function dt(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[_e]<0||11<n[_e]?_e:n[ye]<1||n[ye]>Pe(n[me],n[_e])?ye:n[ge]<0||24<n[ge]||24===n[ge]&&(0!==n[ve]||0!==n[pe]||0!==n[we])?ge:n[ve]<0||59<n[ve]?ve:n[pe]<0||59<n[pe]?pe:n[we]<0||999<n[we]?we:-1,g(e)._overflowDayOfYear&&(t<me||ye<t)&&(t=ye),g(e)._overflowWeeks&&-1===t&&(t=Me),g(e)._overflowWeekday&&-1===t&&(t=ke),g(e).overflow=t),e;}function ct(e,t,n){return null!=e?e:null!=t?t:n;}function ft(e){var t,n,s,i,r,a=[];if(!e._d){var o,u;for(o=e,u=new Date(c.now()),s=o._useUTC?[u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()]:[u.getFullYear(),u.getMonth(),u.getDate()],e._w&&null==e._a[ye]&&null==e._a[_e]&&function(e){var t,n,s,i,r,a,o,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,a=4,n=ct(t.GG,e._a[me],Ie(bt(),1,4).year),s=ct(t.W,1),((i=ct(t.E,1))<1||7<i)&&(u=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var l=Ie(bt(),r,a);n=ct(t.gg,e._a[me],l.year),s=ct(t.w,l.week),null!=t.d?((i=t.d)<0||6<i)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||6<t.e)&&(u=!0)):i=r;}s<1||s>Ae(n,r,a)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(o=Ee(n,s,i,r,a),e._a[me]=o.year,e._dayOfYear=o.dayOfYear);}(e),null!=e._dayOfYear&&(r=ct(e._a[me],s[me]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=Ge(r,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ge]&&0===e._a[ve]&&0===e._a[pe]&&0===e._a[we]&&(e._nextDay=!0,e._a[ge]=0),e._d=(e._useUTC?Ge:function(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o;}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0);}}var mt=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,_t=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,yt=/Z|[+-]\\d\\d(?::?\\d\\d)?/,gt=[[\"YYYYYY-MM-DD\",/[+-]\\d{6}-\\d\\d-\\d\\d/],[\"YYYY-MM-DD\",/\\d{4}-\\d\\d-\\d\\d/],[\"GGGG-[W]WW-E\",/\\d{4}-W\\d\\d-\\d/],[\"GGGG-[W]WW\",/\\d{4}-W\\d\\d/,!1],[\"YYYY-DDD\",/\\d{4}-\\d{3}/],[\"YYYY-MM\",/\\d{4}-\\d\\d/,!1],[\"YYYYYYMMDD\",/[+-]\\d{10}/],[\"YYYYMMDD\",/\\d{8}/],[\"GGGG[W]WWE\",/\\d{4}W\\d{3}/],[\"GGGG[W]WW\",/\\d{4}W\\d{2}/,!1],[\"YYYYDDD\",/\\d{7}/]],vt=[[\"HH:mm:ss.SSSS\",/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],[\"HH:mm:ss,SSSS\",/\\d\\d:\\d\\d:\\d\\d,\\d+/],[\"HH:mm:ss\",/\\d\\d:\\d\\d:\\d\\d/],[\"HH:mm\",/\\d\\d:\\d\\d/],[\"HHmmss.SSSS\",/\\d\\d\\d\\d\\d\\d\\.\\d+/],[\"HHmmss,SSSS\",/\\d\\d\\d\\d\\d\\d,\\d+/],[\"HHmmss\",/\\d\\d\\d\\d\\d\\d/],[\"HHmm\",/\\d\\d\\d\\d/],[\"HH\",/\\d\\d/]],pt=/^\\/?Date\\((\\-?\\d+)/i;function wt(e){var t,n,s,i,r,a,o=e._i,u=mt.exec(o)||_t.exec(o);if(u){for(g(e).iso=!0,t=0,n=gt.length;t<n;t++)if(gt[t][1].exec(u[1])){i=gt[t][0],s=!1!==gt[t][2];break;}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=vt.length;t<n;t++)if(vt[t][1].exec(u[3])){r=(u[2]||\" \")+vt[t][0];break;}if(null==r)return void(e._isValid=!1);}if(!s&&null!=r)return void(e._isValid=!1);if(u[4]){if(!yt.exec(u[4]))return void(e._isValid=!1);a=\"Z\";}e._f=i+(r||\"\")+(a||\"\"),Yt(e);}else e._isValid=!1;}var Mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/;function kt(e,t,n,s,i,r){var a=[function(e){var t=parseInt(e,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t;}return t;}(e),He.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&a.push(parseInt(r,10)),a;}var St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dt(e){var t,n,s,i=Mt.exec(e._i.replace(/\\([^)]*\\)|[\\n\\t]/g,\" \").replace(/(\\s\\s+)/g,\" \").replace(/^\\s\\s*/,\"\").replace(/\\s\\s*$/,\"\"));if(i){var r=kt(i[4],i[3],i[2],i[5],i[6],i[7]);if(t=i[1],n=r,s=e,t&&ze.indexOf(t)!==new Date(n[0],n[1],n[2]).getDay()&&(g(s).weekdayMismatch=!0,!(s._isValid=!1)))return;e._a=r,e._tzm=function(e,t,n){if(e)return St[e];if(t)return 0;var s=parseInt(n,10),i=s%100;return(s-i)/100*60+i;}(i[8],i[9],i[10]),e._d=Ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0;}else e._isValid=!1;}function Yt(e){if(e._f!==c.ISO_8601){if(e._f!==c.RFC_2822){e._a=[],g(e).empty=!0;var t,n,s,i,r,a,o,u,l=\"\"+e._i,h=l.length,d=0;for(s=j(e._f,e._locale).match(N)||[],t=0;t<s.length;t++)i=s[t],(n=(l.match(le(i,e))||[])[0])&&(0<(r=l.substr(0,l.indexOf(n))).length&&g(e).unusedInput.push(r),l=l.slice(l.indexOf(n)+n.length),d+=n.length),E[i]?(n?g(e).empty=!1:g(e).unusedTokens.push(i),a=i,u=e,null!=(o=n)&&m(de,a)&&de[a](o,u._a,u,a)):e._strict&&!n&&g(e).unusedTokens.push(i);g(e).charsLeftOver=h-d,0<l.length&&g(e).unusedInput.push(l),e._a[ge]<=12&&!0===g(e).bigHour&&0<e._a[ge]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[ge]=function(e,t,n){var s;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0)),t);}(e._locale,e._a[ge],e._meridiem),ft(e),dt(e);}else Dt(e);}else wt(e);}function Ot(e){var t,n,s,i,r=e._i,a=e._f;return e._locale=e._locale||ht(e._l),null===r||void 0===a&&\"\"===r?p({nullInput:!0}):(\"string\"==typeof r&&(e._i=r=e._locale.preparse(r)),k(r)?new M(dt(r)):(d(r)?e._d=r:o(a)?function(e){var t,n,s,i,r;if(0===e._f.length)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)r=0,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Yt(t),v(t)&&(r+=g(t).charsLeftOver,r+=10*g(t).unusedTokens.length,g(t).score=r,(null==s||r<s)&&(s=r,n=t));_(e,n||t);}(e):a?Yt(e):l(n=(t=e)._i)?t._d=new Date(c.now()):d(n)?t._d=new Date(n.valueOf()):\"string\"==typeof n?(s=t,null===(i=pt.exec(s._i))?(wt(s),!1===s._isValid&&(delete s._isValid,Dt(s),!1===s._isValid&&(delete s._isValid,c.createFromInputFallback(s)))):s._d=new Date(+i[1])):o(n)?(t._a=f(n.slice(0),function(e){return parseInt(e,10);}),ft(t)):u(n)?function(e){if(!e._d){var t=R(e._i);e._a=f([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10);}),ft(e);}}(t):h(n)?t._d=new Date(n):c.createFromInputFallback(t),v(e)||(e._d=null),e));}function Tt(e,t,n,s,i){var r,a={};return!0!==n&&!1!==n||(s=n,n=void 0),(u(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0;}(e)||o(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=s,(r=new M(dt(Ot(a))))._nextDay&&(r.add(1,\"d\"),r._nextDay=void 0),r;}function bt(e,t,n,s){return Tt(e,t,n,s,!1);}c.createFromInputFallback=n(\"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.\",function(e){e._d=new Date(e._i+(e._useUTC?\" UTC\":\"\"));}),c.ISO_8601=function(){},c.RFC_2822=function(){};var xt=n(\"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/\",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p();}),Pt=n(\"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/\",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:p();});function Wt(e,t){var n,s;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return bt();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n;}var Ct=[\"year\",\"quarter\",\"month\",\"week\",\"day\",\"hour\",\"minute\",\"second\",\"millisecond\"];function Ht(e){var t=R(e),n=t.year||0,s=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Ye.call(Ct,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,s=0;s<Ct.length;++s)if(e[Ct[s]]){if(n)return!1;parseFloat(e[Ct[s]])!==D(e[Ct[s]])&&(n=!0);}return!0;}(t),this._milliseconds=+h+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*r,this._months=+i+3*s+12*n,this._data={},this._locale=ht(),this._bubble();}function Rt(e){return e instanceof Ht;}function Ut(e){return e<0?-1*Math.round(-1*e):Math.round(e);}function Ft(e,n){I(e,0,0,function(){var e=this.utcOffset(),t=\"+\";return e<0&&(e=-e,t=\"-\"),t+L(~~(e/60),2)+n+L(~~e%60,2);});}Ft(\"Z\",\":\"),Ft(\"ZZ\",\"\"),ue(\"Z\",re),ue(\"ZZ\",re),ce([\"Z\",\"ZZ\"],function(e,t,n){n._useUTC=!0,n._tzm=Nt(re,e);});var Lt=/([\\+\\-]|\\d\\d)/gi;function Nt(e,t){var n=(t||\"\").match(e);if(null===n)return null;var s=((n[n.length-1]||[])+\"\").match(Lt)||[\"-\",0,0],i=60*s[1]+D(s[2]);return 0===i?0:\"+\"===s[0]?i:-i;}function Gt(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(k(e)||d(e)?e.valueOf():bt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),c.updateOffset(n,!1),n):bt(e).local();}function Vt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15);}function Et(){return!!this.isValid()&&this._isUTC&&0===this._offset;}c.updateOffset=function(){};var It=/^(\\-|\\+)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)(\\.\\d*)?)?$/,At=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jt(e,t){var n,s,i,r=e,a=null;return Rt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:h(e)?(r={},t?r[t]=e:r.milliseconds=e):(a=It.exec(e))?(n=\"-\"===a[1]?-1:1,r={y:0,d:D(a[ye])*n,h:D(a[ge])*n,m:D(a[ve])*n,s:D(a[pe])*n,ms:D(Ut(1e3*a[we]))*n}):(a=At.exec(e))?(n=\"-\"===a[1]?-1:1,r={y:Zt(a[2],n),M:Zt(a[3],n),w:Zt(a[4],n),d:Zt(a[5],n),h:Zt(a[6],n),m:Zt(a[7],n),s:Zt(a[8],n)}):null==r?r={}:\"object\"==typeof r&&(\"from\"in r||\"to\"in r)&&(i=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Gt(t,e),e.isBefore(t)?n=zt(e,t):((n=zt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n;}(bt(r.from),bt(r.to)),(r={}).ms=i.milliseconds,r.M=i.months),s=new Ht(r),Rt(e)&&m(e,\"_locale\")&&(s._locale=e._locale),s;}function Zt(e,t){var n=e&&parseFloat(e.replace(\",\",\".\"));return(isNaN(n)?0:n)*t;}function zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,\"M\").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,\"M\"),n;}function $t(s,i){return function(e,t){var n;return null===t||isNaN(+t)||(T(i,\"moment().\"+i+\"(period, number) is deprecated. Please use moment().\"+i+\"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.\"),n=e,e=t,t=n),qt(this,jt(e=\"string\"==typeof e?+e:e,t),s),this;};}function qt(e,t,n,s){var i=t._milliseconds,r=Ut(t._days),a=Ut(t._months);e.isValid()&&(s=null==s||s,a&&Re(e,be(e,\"Month\")+a*n),r&&xe(e,\"Date\",be(e,\"Date\")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s&&c.updateOffset(e,r||a));}jt.fn=Ht.prototype,jt.invalid=function(){return jt(NaN);};var Jt=$t(1,\"add\"),Bt=$t(-1,\"subtract\");function Qt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(n,\"months\");return-(n+(t-s<0?(t-s)/(s-e.clone().add(n-1,\"months\")):(t-s)/(e.clone().add(n+1,\"months\")-s)))||0;}function Xt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ht(e))&&(this._locale=t),this);}c.defaultFormat=\"YYYY-MM-DDTHH:mm:ssZ\",c.defaultFormatUtc=\"YYYY-MM-DDTHH:mm:ss[Z]\";var Kt=n(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\",function(e){return void 0===e?this.localeData():this.locale(e);});function en(){return this._locale;}var tn=126227808e5;function nn(e,t){return(e%t+t)%t;}function sn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-tn:new Date(e,t,n).valueOf();}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-tn:Date.UTC(e,t,n);}function an(e,t){I(0,[e,e.length],0,t);}function on(e,t,n,s,i){var r;return null==e?Ie(this,s,i).year:((r=Ae(e,s,i))<t&&(t=r),function(e,t,n,s,i){var r=Ee(e,t,n,s,i),a=Ge(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this;}.call(this,e,t,n,s,i));}I(0,[\"gg\",2],0,function(){return this.weekYear()%100;}),I(0,[\"GG\",2],0,function(){return this.isoWeekYear()%100;}),an(\"gggg\",\"weekYear\"),an(\"ggggg\",\"weekYear\"),an(\"GGGG\",\"isoWeekYear\"),an(\"GGGGG\",\"isoWeekYear\"),C(\"weekYear\",\"gg\"),C(\"isoWeekYear\",\"GG\"),F(\"weekYear\",1),F(\"isoWeekYear\",1),ue(\"G\",se),ue(\"g\",se),ue(\"GG\",B,z),ue(\"gg\",B,z),ue(\"GGGG\",ee,q),ue(\"gggg\",ee,q),ue(\"GGGGG\",te,J),ue(\"ggggg\",te,J),fe([\"gggg\",\"ggggg\",\"GGGG\",\"GGGGG\"],function(e,t,n,s){t[s.substr(0,2)]=D(e);}),fe([\"gg\",\"GG\"],function(e,t,n,s){t[s]=c.parseTwoDigitYear(e);}),I(\"Q\",0,\"Qo\",\"quarter\"),C(\"quarter\",\"Q\"),F(\"quarter\",7),ue(\"Q\",Z),ce(\"Q\",function(e,t){t[_e]=3*(D(e)-1);}),I(\"D\",[\"DD\",2],\"Do\",\"date\"),C(\"date\",\"D\"),F(\"date\",9),ue(\"D\",B),ue(\"DD\",B,z),ue(\"Do\",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient;}),ce([\"D\",\"DD\"],ye),ce(\"Do\",function(e,t){t[ye]=D(e.match(B)[0]);});var un=Te(\"Date\",!0);I(\"DDD\",[\"DDDD\",3],\"DDDo\",\"dayOfYear\"),C(\"dayOfYear\",\"DDD\"),F(\"dayOfYear\",4),ue(\"DDD\",K),ue(\"DDDD\",$),ce([\"DDD\",\"DDDD\"],function(e,t,n){n._dayOfYear=D(e);}),I(\"m\",[\"mm\",2],0,\"minute\"),C(\"minute\",\"m\"),F(\"minute\",14),ue(\"m\",B),ue(\"mm\",B,z),ce([\"m\",\"mm\"],ve);var ln=Te(\"Minutes\",!1);I(\"s\",[\"ss\",2],0,\"second\"),C(\"second\",\"s\"),F(\"second\",15),ue(\"s\",B),ue(\"ss\",B,z),ce([\"s\",\"ss\"],pe);var hn,dn=Te(\"Seconds\",!1);for(I(\"S\",0,0,function(){return~~(this.millisecond()/100);}),I(0,[\"SS\",2],0,function(){return~~(this.millisecond()/10);}),I(0,[\"SSS\",3],0,\"millisecond\"),I(0,[\"SSSS\",4],0,function(){return 10*this.millisecond();}),I(0,[\"SSSSS\",5],0,function(){return 100*this.millisecond();}),I(0,[\"SSSSSS\",6],0,function(){return 1e3*this.millisecond();}),I(0,[\"SSSSSSS\",7],0,function(){return 1e4*this.millisecond();}),I(0,[\"SSSSSSSS\",8],0,function(){return 1e5*this.millisecond();}),I(0,[\"SSSSSSSSS\",9],0,function(){return 1e6*this.millisecond();}),C(\"millisecond\",\"ms\"),F(\"millisecond\",16),ue(\"S\",K,Z),ue(\"SS\",K,z),ue(\"SSS\",K,$),hn=\"SSSS\";hn.length<=9;hn+=\"S\")ue(hn,ne);function cn(e,t){t[we]=D(1e3*(\"0.\"+e));}for(hn=\"S\";hn.length<=9;hn+=\"S\")ce(hn,cn);var fn=Te(\"Milliseconds\",!1);I(\"z\",0,0,\"zoneAbbr\"),I(\"zz\",0,0,\"zoneName\");var mn=M.prototype;function _n(e){return e;}mn.add=Jt,mn.calendar=function(e,t){var n=e||bt(),s=Gt(n,this).startOf(\"day\"),i=c.calendarFormat(this,s)||\"sameElse\",r=t&&(b(t[i])?t[i].call(this,n):t[i]);return this.format(r||this.localeData().calendar(i,this,bt(n)));},mn.clone=function(){return new M(this);},mn.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Gt(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=H(t)){case\"year\":r=Qt(this,s)/12;break;case\"month\":r=Qt(this,s);break;case\"quarter\":r=Qt(this,s)/3;break;case\"second\":r=(this-s)/1e3;break;case\"minute\":r=(this-s)/6e4;break;case\"hour\":r=(this-s)/36e5;break;case\"day\":r=(this-s-i)/864e5;break;case\"week\":r=(this-s-i)/6048e5;break;default:r=this-s;}return n?r:S(r);},mn.endOf=function(e){var t;if(void 0===(e=H(e))||\"millisecond\"===e||!this.isValid())return this;var n=this._isUTC?rn:sn;switch(e){case\"year\":t=n(this.year()+1,0,1)-1;break;case\"quarter\":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case\"month\":t=n(this.year(),this.month()+1,1)-1;break;case\"week\":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case\"isoWeek\":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case\"day\":case\"date\":t=n(this.year(),this.month(),this.date()+1)-1;break;case\"hour\":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case\"minute\":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case\"second\":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1;break;}return this._d.setTime(t),c.updateOffset(this,!0),this;},mn.format=function(e){e||(e=this.isUtc()?c.defaultFormatUtc:c.defaultFormat);var t=A(this,e);return this.localeData().postformat(t);},mn.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||bt(e).isValid())?jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate();},mn.fromNow=function(e){return this.from(bt(),e);},mn.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||bt(e).isValid())?jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate();},mn.toNow=function(e){return this.to(bt(),e);},mn.get=function(e){return b(this[e=H(e)])?this[e]():this;},mn.invalidAt=function(){return g(this).overflow;},mn.isAfter=function(e,t){var n=k(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&(\"millisecond\"===(t=H(t)||\"millisecond\")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf());},mn.isBefore=function(e,t){var n=k(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&(\"millisecond\"===(t=H(t)||\"millisecond\")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf());},mn.isBetween=function(e,t,n,s){var i=k(e)?e:bt(e),r=k(t)?t:bt(t);return!!(this.isValid()&&i.isValid()&&r.isValid())&&(\"(\"===(s=s||\"()\")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(\")\"===s[1]?this.isBefore(r,n):!this.isAfter(r,n));},mn.isSame=function(e,t){var n,s=k(e)?e:bt(e);return!(!this.isValid()||!s.isValid())&&(\"millisecond\"===(t=H(t)||\"millisecond\")?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()));},mn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t);},mn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t);},mn.isValid=function(){return v(this);},mn.lang=Kt,mn.locale=Xt,mn.localeData=en,mn.max=Pt,mn.min=xt,mn.parsingFlags=function(){return _({},g(this));},mn.set=function(e,t){if(\"object\"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:U[n]});return t.sort(function(e,t){return e.priority-t.priority;}),t;}(e=R(e)),s=0;s<n.length;s++)this[n[s].unit](e[n[s].unit]);else if(b(this[e=H(e)]))return this[e](t);return this;},mn.startOf=function(e){var t;if(void 0===(e=H(e))||\"millisecond\"===e||!this.isValid())return this;var n=this._isUTC?rn:sn;switch(e){case\"year\":t=n(this.year(),0,1);break;case\"quarter\":t=n(this.year(),this.month()-this.month()%3,1);break;case\"month\":t=n(this.year(),this.month(),1);break;case\"week\":t=n(this.year(),this.month(),this.date()-this.weekday());break;case\"isoWeek\":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case\"day\":case\"date\":t=n(this.year(),this.month(),this.date());break;case\"hour\":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case\"minute\":t=this._d.valueOf(),t-=nn(t,6e4);break;case\"second\":t=this._d.valueOf(),t-=nn(t,1e3);break;}return this._d.setTime(t),c.updateOffset(this,!0),this;},mn.subtract=Bt,mn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()];},mn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()};},mn.toDate=function(){return new Date(this.valueOf());},mn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?A(n,t?\"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\":\"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ\"):b(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace(\"Z\",A(n,\"Z\")):A(n,t?\"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\":\"YYYY-MM-DD[T]HH:mm:ss.SSSZ\");},mn.inspect=function(){if(!this.isValid())return\"moment.invalid(/* \"+this._i+\" */)\";var e=\"moment\",t=\"\";this.isLocal()||(e=0===this.utcOffset()?\"moment.utc\":\"moment.parseZone\",t=\"Z\");var n=\"[\"+e+'(\"]',s=0<=this.year()&&this.year()<=9999?\"YYYY\":\"YYYYYY\",i=t+'[\")]';return this.format(n+s+\"-MM-DD[T]HH:mm:ss.SSS\"+i);},mn.toJSON=function(){return this.isValid()?this.toISOString():null;},mn.toString=function(){return this.clone().locale(\"en\").format(\"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ\");},mn.unix=function(){return Math.floor(this.valueOf()/1e3);},mn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0);},mn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict};},mn.year=Oe,mn.isLeapYear=function(){return De(this.year());},mn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy);},mn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4);},mn.quarter=mn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3);},mn.month=Ue,mn.daysInMonth=function(){return Pe(this.year(),this.month());},mn.week=mn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),\"d\");},mn.isoWeek=mn.isoWeeks=function(e){var t=Ie(this,1,4).week;return null==e?t:this.add(7*(e-t),\"d\");},mn.weeksInYear=function(){var e=this.localeData()._week;return Ae(this.year(),e.dow,e.doy);},mn.isoWeeksInYear=function(){return Ae(this.year(),1,4);},mn.date=un,mn.day=mn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,s=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e=\"string\"!=typeof t?t:isNaN(t)?\"number\"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-s,\"d\")):s;},mn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,\"d\");},mn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,n,s=(t=e,n=this.localeData(),\"string\"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?s:s-7);},mn.dayOfYear=function(e){var t=Math.round((this.clone().startOf(\"day\")-this.clone().startOf(\"year\"))/864e5)+1;return null==e?t:this.add(e-t,\"d\");},mn.hour=mn.hours=nt,mn.minute=mn.minutes=ln,mn.second=mn.seconds=dn,mn.millisecond=mn.milliseconds=fn,mn.utcOffset=function(e,t,n){var s,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Vt(this);if(\"string\"==typeof e){if(null===(e=Nt(re,e)))return this;}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=Vt(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,\"m\"),i!==e&&(!t||this._changeInProgress?qt(this,jt(e-i,\"m\"),1,!1):this._changeInProgress||(this._changeInProgress=!0,c.updateOffset(this,!0),this._changeInProgress=null)),this;},mn.utc=function(e){return this.utcOffset(0,e);},mn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Vt(this),\"m\")),this;},mn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if(\"string\"==typeof this._i){var e=Nt(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0);}return this;},mn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?bt(e).utcOffset():0,(this.utcOffset()-e)%60==0);},mn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset();},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC;},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC;},mn.isUtc=Et,mn.isUTC=Et,mn.zoneAbbr=function(){return this._isUTC?\"UTC\":\"\";},mn.zoneName=function(){return this._isUTC?\"Coordinated Universal Time\":\"\";},mn.dates=n(\"dates accessor is deprecated. Use date instead.\",un),mn.months=n(\"months accessor is deprecated. Use month instead\",Ue),mn.years=n(\"years accessor is deprecated. Use year instead\",Oe),mn.zone=n(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",function(e,t){return null!=e?(\"string\"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset();}),mn.isDSTShifted=n(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(w(e,this),(e=Ot(e))._a){var t=e._isUTC?y(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&0<a(e._a,t.toArray());}else this._isDSTShifted=!1;return this._isDSTShifted;});var yn=P.prototype;function gn(e,t,n,s){var i=ht(),r=y().set(s,t);return i[n](r,e);}function vn(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||\"\",null!=t)return gn(e,t,n,\"month\");var s,i=[];for(s=0;s<12;s++)i[s]=gn(e,s,n,\"month\");return i;}function pn(e,t,n,s){t=(\"boolean\"==typeof e?h(t)&&(n=t,t=void 0):(t=e,e=!1,h(n=t)&&(n=t,t=void 0)),t||\"\");var i,r=ht(),a=e?r._week.dow:0;if(null!=n)return gn(t,(n+a)%7,s,\"day\");var o=[];for(i=0;i<7;i++)o[i]=gn(t,(i+a)%7,s,\"day\");return o;}yn.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return b(s)?s.call(t,n):s;},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1);}),this._longDateFormat[e]);},yn.invalidDate=function(){return this._invalidDate;},yn.ordinal=function(e){return this._ordinal.replace(\"%d\",e);},yn.preparse=_n,yn.postformat=_n,yn.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return b(i)?i(e,t,n,s):i.replace(/%d/i,e);},yn.pastFuture=function(e,t){var n=this._relativeTime[0<e?\"future\":\"past\"];return b(n)?n(t):n.replace(/%s/i,t);},yn.set=function(e){var t,n;for(n in e)b(t=e[n])?this[n]=t:this[\"_\"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+\"|\"+/\\d{1,2}/.source);},yn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||We).test(t)?\"format\":\"standalone\"][e.month()]:o(this._months)?this._months:this._months.standalone;},yn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[We.test(t)?\"format\":\"standalone\"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;},yn.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=y([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,\"\").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,\"\").toLocaleLowerCase();return n?\"MMM\"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:\"MMM\"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))?i:-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))?i:-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null;}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=y([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp(\"^\"+this.months(i,\"\").replace(\".\",\"\")+\"$\",\"i\"),this._shortMonthsParse[s]=new RegExp(\"^\"+this.monthsShort(i,\"\").replace(\".\",\"\")+\"$\",\"i\")),n||this._monthsParse[s]||(r=\"^\"+this.months(i,\"\")+\"|^\"+this.monthsShort(i,\"\"),this._monthsParse[s]=new RegExp(r.replace(\".\",\"\"),\"i\")),n&&\"MMMM\"===t&&this._longMonthsParse[s].test(e))return s;if(n&&\"MMM\"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s;}},yn.monthsRegex=function(e){return this._monthsParseExact?(m(this,\"_monthsRegex\")||Ne.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,\"_monthsRegex\")||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex);},yn.monthsShortRegex=function(e){return this._monthsParseExact?(m(this,\"_monthsRegex\")||Ne.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,\"_monthsShortRegex\")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex);},yn.week=function(e){return Ie(e,this._week.dow,this._week.doy).week;},yn.firstDayOfYear=function(){return this._week.doy;},yn.firstDayOfWeek=function(){return this._week.dow;},yn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?\"format\":\"standalone\"];return!0===e?je(n,this._week.dow):e?n[e.day()]:n;},yn.weekdaysMin=function(e){return!0===e?je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin;},yn.weekdaysShort=function(e){return!0===e?je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort;},yn.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=y([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,\"\").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,\"\").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,\"\").toLocaleLowerCase();return n?\"dddd\"===t?-1!==(i=Ye.call(this._weekdaysParse,a))?i:null:\"ddd\"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:\"dddd\"===t?-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:\"ddd\"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:-1!==(i=Ye.call(this._weekdaysParse,a))?i:-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null;}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=y([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp(\"^\"+this.weekdays(i,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\"),this._shortWeekdaysParse[s]=new RegExp(\"^\"+this.weekdaysShort(i,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\"),this._minWeekdaysParse[s]=new RegExp(\"^\"+this.weekdaysMin(i,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\")),this._weekdaysParse[s]||(r=\"^\"+this.weekdays(i,\"\")+\"|^\"+this.weekdaysShort(i,\"\")+\"|^\"+this.weekdaysMin(i,\"\"),this._weekdaysParse[s]=new RegExp(r.replace(\".\",\"\"),\"i\")),n&&\"dddd\"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&\"ddd\"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&\"dd\"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s;}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(m(this,\"_weekdaysRegex\")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,\"_weekdaysRegex\")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex);},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(m(this,\"_weekdaysRegex\")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,\"_weekdaysShortRegex\")||(this._weekdaysShortRegex=Je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex);},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(m(this,\"_weekdaysRegex\")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,\"_weekdaysMinRegex\")||(this._weekdaysMinRegex=Be),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex);},yn.isPM=function(e){return\"p\"===(e+\"\").toLowerCase().charAt(0);},yn.meridiem=function(e,t,n){return 11<e?n?\"pm\":\"PM\":n?\"am\":\"AM\";},ut(\"en\",{dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===D(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\");}}),c.lang=n(\"moment.lang is deprecated. Use moment.locale instead.\",ut),c.langData=n(\"moment.langData is deprecated. Use moment.localeData instead.\",ht);var wn=Math.abs;function Mn(e,t,n,s){var i=jt(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble();}function kn(e){return e<0?Math.floor(e):Math.ceil(e);}function Sn(e){return 4800*e/146097;}function Dn(e){return 146097*e/4800;}function Yn(e){return function(){return this.as(e);};}var On=Yn(\"ms\"),Tn=Yn(\"s\"),bn=Yn(\"m\"),xn=Yn(\"h\"),Pn=Yn(\"d\"),Wn=Yn(\"w\"),Cn=Yn(\"M\"),Hn=Yn(\"Q\"),Rn=Yn(\"y\");function Un(e){return function(){return this.isValid()?this._data[e]:NaN;};}var Fn=Un(\"milliseconds\"),Ln=Un(\"seconds\"),Nn=Un(\"minutes\"),Gn=Un(\"hours\"),Vn=Un(\"days\"),En=Un(\"months\"),In=Un(\"years\");var An=Math.round,jn={ss:44,s:45,m:45,h:22,d:26,M:11};var Zn=Math.abs;function zn(e){return(0<e)-(e<0)||+e;}function $n(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Zn(this._milliseconds)/1e3,s=Zn(this._days),i=Zn(this._months);t=S((e=S(n/60))/60),n%=60,e%=60;var r=S(i/12),a=i%=12,o=s,u=t,l=e,h=n?n.toFixed(3).replace(/\\.?0+$/,\"\"):\"\",d=this.asSeconds();if(!d)return\"P0D\";var c=d<0?\"-\":\"\",f=zn(this._months)!==zn(d)?\"-\":\"\",m=zn(this._days)!==zn(d)?\"-\":\"\",_=zn(this._milliseconds)!==zn(d)?\"-\":\"\";return c+\"P\"+(r?f+r+\"Y\":\"\")+(a?f+a+\"M\":\"\")+(o?m+o+\"D\":\"\")+(u||l||h?\"T\":\"\")+(u?_+u+\"H\":\"\")+(l?_+l+\"M\":\"\")+(h?_+h+\"S\":\"\");}var qn=Ht.prototype;return qn.isValid=function(){return this._isValid;},qn.abs=function(){var e=this._data;return this._milliseconds=wn(this._milliseconds),this._days=wn(this._days),this._months=wn(this._months),e.milliseconds=wn(e.milliseconds),e.seconds=wn(e.seconds),e.minutes=wn(e.minutes),e.hours=wn(e.hours),e.months=wn(e.months),e.years=wn(e.years),this;},qn.add=function(e,t){return Mn(this,e,t,1);},qn.subtract=function(e,t){return Mn(this,e,t,-1);},qn.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if(\"month\"===(e=H(e))||\"quarter\"===e||\"year\"===e)switch(t=this._days+s/864e5,n=this._months+Sn(t),e){case\"month\":return n;case\"quarter\":return n/3;case\"year\":return n/12;}else switch(t=this._days+Math.round(Dn(this._months)),e){case\"week\":return t/7+s/6048e5;case\"day\":return t+s/864e5;case\"hour\":return 24*t+s/36e5;case\"minute\":return 1440*t+s/6e4;case\"second\":return 86400*t+s/1e3;case\"millisecond\":return Math.floor(864e5*t)+s;default:throw new Error(\"Unknown unit \"+e);}},qn.asMilliseconds=On,qn.asSeconds=Tn,qn.asMinutes=bn,qn.asHours=xn,qn.asDays=Pn,qn.asWeeks=Wn,qn.asMonths=Cn,qn.asQuarters=Hn,qn.asYears=Rn,qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*D(this._months/12):NaN;},qn._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return 0<=r&&0<=a&&0<=o||r<=0&&a<=0&&o<=0||(r+=864e5*kn(Dn(o)+a),o=a=0),u.milliseconds=r%1e3,e=S(r/1e3),u.seconds=e%60,t=S(e/60),u.minutes=t%60,n=S(t/60),u.hours=n%24,o+=i=S(Sn(a+=S(n/24))),a-=kn(Dn(i)),s=S(o/12),o%=12,u.days=a,u.months=o,u.years=s,this;},qn.clone=function(){return jt(this);},qn.get=function(e){return e=H(e),this.isValid()?this[e+\"s\"]():NaN;},qn.milliseconds=Fn,qn.seconds=Ln,qn.minutes=Nn,qn.hours=Gn,qn.days=Vn,qn.weeks=function(){return S(this.days()/7);},qn.months=En,qn.years=In,qn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,s,i,r,a,o,u,l,h,d,c=this.localeData(),f=(n=!e,s=c,i=jt(t=this).abs(),r=An(i.as(\"s\")),a=An(i.as(\"m\")),o=An(i.as(\"h\")),u=An(i.as(\"d\")),l=An(i.as(\"M\")),h=An(i.as(\"y\")),(d=r<=jn.ss&&[\"s\",r]||r<jn.s&&[\"ss\",r]||a<=1&&[\"m\"]||a<jn.m&&[\"mm\",a]||o<=1&&[\"h\"]||o<jn.h&&[\"hh\",o]||u<=1&&[\"d\"]||u<jn.d&&[\"dd\",u]||l<=1&&[\"M\"]||l<jn.M&&[\"MM\",l]||h<=1&&[\"y\"]||[\"yy\",h])[2]=n,d[3]=0<+t,d[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s);}.apply(null,d));return e&&(f=c.pastFuture(+this,f)),c.postformat(f);},qn.toISOString=$n,qn.toString=$n,qn.toJSON=$n,qn.locale=Xt,qn.localeData=en,qn.toIsoString=n(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\",$n),qn.lang=Kt,I(\"X\",0,0,\"unix\"),I(\"x\",0,0,\"valueOf\"),ue(\"x\",se),ue(\"X\",/[+-]?\\d+(\\.\\d{1,3})?/),ce(\"X\",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10));}),ce(\"x\",function(e,t,n){n._d=new Date(D(e));}),c.version=\"2.24.0\",e=bt,c.fn=mn,c.min=function(){return Wt(\"isBefore\",[].slice.call(arguments,0));},c.max=function(){return Wt(\"isAfter\",[].slice.call(arguments,0));},c.now=function(){return Date.now?Date.now():+new Date();},c.utc=y,c.unix=function(e){return bt(1e3*e);},c.months=function(e,t){return vn(e,t,\"months\");},c.isDate=d,c.locale=ut,c.invalid=p,c.duration=jt,c.isMoment=k,c.weekdays=function(e,t,n){return pn(e,t,n,\"weekdays\");},c.parseZone=function(){return bt.apply(null,arguments).parseZone();},c.localeData=ht,c.isDuration=Rt,c.monthsShort=function(e,t){return vn(e,t,\"monthsShort\");},c.weekdaysMin=function(e,t,n){return pn(e,t,n,\"weekdaysMin\");},c.defineLocale=lt,c.updateLocale=function(e,t){if(null!=t){var n,s,i=st;null!=(s=ot(e))&&(i=s._config),(n=new P(t=x(i,t))).parentLocale=it[e],it[e]=n,ut(e);}else null!=it[e]&&(null!=it[e].parentLocale?it[e]=it[e].parentLocale:null!=it[e]&&delete it[e]);return it[e];},c.locales=function(){return s(it);},c.weekdaysShort=function(e,t,n){return pn(e,t,n,\"weekdaysShort\");},c.normalizeUnits=H,c.relativeTimeRounding=function(e){return void 0===e?An:\"function\"==typeof e&&(An=e,!0);},c.relativeTimeThreshold=function(e,t){return void 0!==jn[e]&&(void 0===t?jn[e]:(jn[e]=t,\"s\"===e&&(jn.ss=t-1),!0));},c.calendarFormat=function(e,t){var n=e.diff(t,\"days\",!0);return n<-6?\"sameElse\":n<-1?\"lastWeek\":n<0?\"lastDay\":n<1?\"sameDay\":n<2?\"nextDay\":n<7?\"nextWeek\":\"sameElse\";},c.prototype=mn,c.HTML5_FMT={DATETIME_LOCAL:\"YYYY-MM-DDTHH:mm\",DATETIME_LOCAL_SECONDS:\"YYYY-MM-DDTHH:mm:ss\",DATETIME_LOCAL_MS:\"YYYY-MM-DDTHH:mm:ss.SSS\",DATE:\"YYYY-MM-DD\",TIME:\"HH:mm\",TIME_SECONDS:\"HH:mm:ss\",TIME_MS:\"HH:mm:ss.SSS\",WEEK:\"GGGG-[W]WW\",MONTH:\"YYYY-MM\"},c;});// ----------- moment.js END -------------\n// ----------- fullcalendar.bundle.js START -------------\n/*!\r\nFullCalendar Core Package v4.4.0\r\nDocs & License: https://fullcalendar.io/\r\n(c) 2019 Adam Shaw\r\n*/(function(global,factory){ true?factory(exports):0;})(this,function(exports){'use strict';// Creating\n// ----------------------------------------------------------------------------------------------------------------\nvar elementPropHash={className:true,colSpan:true,rowSpan:true};var containerTagHash={'<tr':'tbody','<td':'tr'};function createElement(tagName,attrs,content){var el=document.createElement(tagName);if(attrs){for(var attrName in attrs){if(attrName==='style'){applyStyle(el,attrs[attrName]);}else if(elementPropHash[attrName]){el[attrName]=attrs[attrName];}else{el.setAttribute(attrName,attrs[attrName]);}}}if(typeof content==='string'){el.innerHTML=content;// shortcut. no need to process HTML in any way\n}else if(content!=null){appendToElement(el,content);}return el;}function htmlToElement(html){html=html.trim();var container=document.createElement(computeContainerTag(html));container.innerHTML=html;return container.firstChild;}function htmlToElements(html){return Array.prototype.slice.call(htmlToNodeList(html));}function htmlToNodeList(html){html=html.trim();var container=document.createElement(computeContainerTag(html));container.innerHTML=html;return container.childNodes;}// assumes html already trimmed and tag names are lowercase\nfunction computeContainerTag(html){return containerTagHash[html.substr(0,3)// faster than using regex\n]||'div';}function appendToElement(el,content){var childNodes=normalizeContent(content);for(var i=0;i<childNodes.length;i++){el.appendChild(childNodes[i]);}}function prependToElement(parent,content){var newEls=normalizeContent(content);var afterEl=parent.firstChild||null;// if no firstChild, will append to end, but that's okay, b/c there were no children\nfor(var i=0;i<newEls.length;i++){parent.insertBefore(newEls[i],afterEl);}}function insertAfterElement(refEl,content){var newEls=normalizeContent(content);var afterEl=refEl.nextSibling||null;for(var i=0;i<newEls.length;i++){refEl.parentNode.insertBefore(newEls[i],afterEl);}}function normalizeContent(content){var els;if(typeof content==='string'){els=htmlToElements(content);}else if(content instanceof Node){els=[content];}else{// Node[] or NodeList\nels=Array.prototype.slice.call(content);}return els;}function removeElement(el){if(el.parentNode){el.parentNode.removeChild(el);}}// Querying\n// ----------------------------------------------------------------------------------------------------------------\n// from https://developer.mozilla.org/en-US/docs/Web/API/Element/closest\nvar matchesMethod=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector;var closestMethod=Element.prototype.closest||function(selector){// polyfill\nvar el=this;if(!document.documentElement.contains(el)){return null;}do{if(elementMatches(el,selector)){return el;}el=el.parentElement||el.parentNode;}while(el!==null&&el.nodeType===1);return null;};function elementClosest(el,selector){return closestMethod.call(el,selector);}function elementMatches(el,selector){return matchesMethod.call(el,selector);}// accepts multiple subject els\n// returns a real array. good for methods like forEach\nfunction findElements(container,selector){var containers=container instanceof HTMLElement?[container]:container;var allMatches=[];for(var i=0;i<containers.length;i++){var matches=containers[i].querySelectorAll(selector);for(var j=0;j<matches.length;j++){allMatches.push(matches[j]);}}return allMatches;}// accepts multiple subject els\n// only queries direct child elements\nfunction findChildren(parent,selector){var parents=parent instanceof HTMLElement?[parent]:parent;var allMatches=[];for(var i=0;i<parents.length;i++){var childNodes=parents[i].children;// only ever elements\nfor(var j=0;j<childNodes.length;j++){var childNode=childNodes[j];if(!selector||elementMatches(childNode,selector)){allMatches.push(childNode);}}}return allMatches;}// Attributes\n// ----------------------------------------------------------------------------------------------------------------\nfunction forceClassName(el,className,bool){if(bool){el.classList.add(className);}else{el.classList.remove(className);}}// Style\n// ----------------------------------------------------------------------------------------------------------------\nvar PIXEL_PROP_RE=/(top|left|right|bottom|width|height)$/i;function applyStyle(el,props){for(var propName in props){applyStyleProp(el,propName,props[propName]);}}function applyStyleProp(el,name,val){if(val==null){el.style[name]='';}else if(typeof val==='number'&&PIXEL_PROP_RE.test(name)){el.style[name]=val+'px';}else{el.style[name]=val;}}function pointInsideRect(point,rect){return point.left>=rect.left&&point.left<rect.right&&point.top>=rect.top&&point.top<rect.bottom;}// Returns a new rectangle that is the intersection of the two rectangles. If they don't intersect, returns false\nfunction intersectRects(rect1,rect2){var res={left:Math.max(rect1.left,rect2.left),right:Math.min(rect1.right,rect2.right),top:Math.max(rect1.top,rect2.top),bottom:Math.min(rect1.bottom,rect2.bottom)};if(res.left<res.right&&res.top<res.bottom){return res;}return false;}function translateRect(rect,deltaX,deltaY){return{left:rect.left+deltaX,right:rect.right+deltaX,top:rect.top+deltaY,bottom:rect.bottom+deltaY};}// Returns a new point that will have been moved to reside within the given rectangle\nfunction constrainPoint(point,rect){return{left:Math.min(Math.max(point.left,rect.left),rect.right),top:Math.min(Math.max(point.top,rect.top),rect.bottom)};}// Returns a point that is the center of the given rectangle\nfunction getRectCenter(rect){return{left:(rect.left+rect.right)/2,top:(rect.top+rect.bottom)/2};}// Subtracts point2's coordinates from point1's coordinates, returning a delta\nfunction diffPoints(point1,point2){return{left:point1.left-point2.left,top:point1.top-point2.top};}// Logic for determining if, when the element is right-to-left, the scrollbar appears on the left side\nvar isRtlScrollbarOnLeft=null;function getIsRtlScrollbarOnLeft(){if(isRtlScrollbarOnLeft===null){isRtlScrollbarOnLeft=computeIsRtlScrollbarOnLeft();}return isRtlScrollbarOnLeft;}function computeIsRtlScrollbarOnLeft(){var outerEl=createElement('div',{style:{position:'absolute',top:-1000,left:0,border:0,padding:0,overflow:'scroll',direction:'rtl'}},'<div></div>');document.body.appendChild(outerEl);var innerEl=outerEl.firstChild;var res=innerEl.getBoundingClientRect().left>outerEl.getBoundingClientRect().left;removeElement(outerEl);return res;}// The scrollbar width computations in computeEdges are sometimes flawed when it comes to\n// retina displays, rounding, and IE11. Massage them into a usable value.\nfunction sanitizeScrollbarWidth(width){width=Math.max(0,width);// no negatives\nwidth=Math.round(width);return width;}function computeEdges(el,getPadding){if(getPadding===void 0){getPadding=false;}var computedStyle=window.getComputedStyle(el);var borderLeft=parseInt(computedStyle.borderLeftWidth,10)||0;var borderRight=parseInt(computedStyle.borderRightWidth,10)||0;var borderTop=parseInt(computedStyle.borderTopWidth,10)||0;var borderBottom=parseInt(computedStyle.borderBottomWidth,10)||0;// must use offset(Width|Height) because compatible with client(Width|Height)\nvar scrollbarLeftRight=sanitizeScrollbarWidth(el.offsetWidth-el.clientWidth-borderLeft-borderRight);var scrollbarBottom=sanitizeScrollbarWidth(el.offsetHeight-el.clientHeight-borderTop-borderBottom);var res={borderLeft:borderLeft,borderRight:borderRight,borderTop:borderTop,borderBottom:borderBottom,scrollbarBottom:scrollbarBottom,scrollbarLeft:0,scrollbarRight:0};if(getIsRtlScrollbarOnLeft()&&computedStyle.direction==='rtl'){// is the scrollbar on the left side?\nres.scrollbarLeft=scrollbarLeftRight;}else{res.scrollbarRight=scrollbarLeftRight;}if(getPadding){res.paddingLeft=parseInt(computedStyle.paddingLeft,10)||0;res.paddingRight=parseInt(computedStyle.paddingRight,10)||0;res.paddingTop=parseInt(computedStyle.paddingTop,10)||0;res.paddingBottom=parseInt(computedStyle.paddingBottom,10)||0;}return res;}function computeInnerRect(el,goWithinPadding){if(goWithinPadding===void 0){goWithinPadding=false;}var outerRect=computeRect(el);var edges=computeEdges(el,goWithinPadding);var res={left:outerRect.left+edges.borderLeft+edges.scrollbarLeft,right:outerRect.right-edges.borderRight-edges.scrollbarRight,top:outerRect.top+edges.borderTop,bottom:outerRect.bottom-edges.borderBottom-edges.scrollbarBottom};if(goWithinPadding){res.left+=edges.paddingLeft;res.right-=edges.paddingRight;res.top+=edges.paddingTop;res.bottom-=edges.paddingBottom;}return res;}function computeRect(el){var rect=el.getBoundingClientRect();return{left:rect.left+window.pageXOffset,top:rect.top+window.pageYOffset,right:rect.right+window.pageXOffset,bottom:rect.bottom+window.pageYOffset};}function computeViewportRect(){return{left:window.pageXOffset,right:window.pageXOffset+document.documentElement.clientWidth,top:window.pageYOffset,bottom:window.pageYOffset+document.documentElement.clientHeight};}function computeHeightAndMargins(el){return el.getBoundingClientRect().height+computeVMargins(el);}function computeVMargins(el){var computed=window.getComputedStyle(el);return parseInt(computed.marginTop,10)+parseInt(computed.marginBottom,10);}// does not return window\nfunction getClippingParents(el){var parents=[];while(el instanceof HTMLElement){// will stop when gets to document or null\nvar computedStyle=window.getComputedStyle(el);if(computedStyle.position==='fixed'){break;}if(/(auto|scroll)/.test(computedStyle.overflow+computedStyle.overflowY+computedStyle.overflowX)){parents.push(el);}el=el.parentNode;}return parents;}function computeClippingRect(el){return getClippingParents(el).map(function(el){return computeInnerRect(el);}).concat(computeViewportRect()).reduce(function(rect0,rect1){return intersectRects(rect0,rect1)||rect1;// should always intersect\n});}// Stops a mouse/touch event from doing it's native browser action\nfunction preventDefault(ev){ev.preventDefault();}// Event Delegation\n// ----------------------------------------------------------------------------------------------------------------\nfunction listenBySelector(container,eventType,selector,handler){function realHandler(ev){var matchedChild=elementClosest(ev.target,selector);if(matchedChild){handler.call(matchedChild,ev,matchedChild);}}container.addEventListener(eventType,realHandler);return function(){container.removeEventListener(eventType,realHandler);};}function listenToHoverBySelector(container,selector,onMouseEnter,onMouseLeave){var currentMatchedChild;return listenBySelector(container,'mouseover',selector,function(ev,matchedChild){if(matchedChild!==currentMatchedChild){currentMatchedChild=matchedChild;onMouseEnter(ev,matchedChild);var realOnMouseLeave_1=function(ev){currentMatchedChild=null;onMouseLeave(ev,matchedChild);matchedChild.removeEventListener('mouseleave',realOnMouseLeave_1);};// listen to the next mouseleave, and then unattach\nmatchedChild.addEventListener('mouseleave',realOnMouseLeave_1);}});}// Animation\n// ----------------------------------------------------------------------------------------------------------------\nvar transitionEventNames=['webkitTransitionEnd','otransitionend','oTransitionEnd','msTransitionEnd','transitionend'];// triggered only when the next single subsequent transition finishes\nfunction whenTransitionDone(el,callback){var realCallback=function(ev){callback(ev);transitionEventNames.forEach(function(eventName){el.removeEventListener(eventName,realCallback);});};transitionEventNames.forEach(function(eventName){el.addEventListener(eventName,realCallback);// cross-browser way to determine when the transition finishes\n});}var DAY_IDS=['sun','mon','tue','wed','thu','fri','sat'];// Adding\nfunction addWeeks(m,n){var a=dateToUtcArray(m);a[2]+=n*7;return arrayToUtcDate(a);}function addDays(m,n){var a=dateToUtcArray(m);a[2]+=n;return arrayToUtcDate(a);}function addMs(m,n){var a=dateToUtcArray(m);a[6]+=n;return arrayToUtcDate(a);}// Diffing (all return floats)\nfunction diffWeeks(m0,m1){return diffDays(m0,m1)/7;}function diffDays(m0,m1){return(m1.valueOf()-m0.valueOf())/(1000*60*60*24);}function diffHours(m0,m1){return(m1.valueOf()-m0.valueOf())/(1000*60*60);}function diffMinutes(m0,m1){return(m1.valueOf()-m0.valueOf())/(1000*60);}function diffSeconds(m0,m1){return(m1.valueOf()-m0.valueOf())/1000;}function diffDayAndTime(m0,m1){var m0day=startOfDay(m0);var m1day=startOfDay(m1);return{years:0,months:0,days:Math.round(diffDays(m0day,m1day)),milliseconds:m1.valueOf()-m1day.valueOf()-(m0.valueOf()-m0day.valueOf())};}// Diffing Whole Units\nfunction diffWholeWeeks(m0,m1){var d=diffWholeDays(m0,m1);if(d!==null&&d%7===0){return d/7;}return null;}function diffWholeDays(m0,m1){if(timeAsMs(m0)===timeAsMs(m1)){return Math.round(diffDays(m0,m1));}return null;}// Start-Of\nfunction startOfDay(m){return arrayToUtcDate([m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()]);}function startOfHour(m){return arrayToUtcDate([m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate(),m.getUTCHours()]);}function startOfMinute(m){return arrayToUtcDate([m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate(),m.getUTCHours(),m.getUTCMinutes()]);}function startOfSecond(m){return arrayToUtcDate([m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate(),m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds()]);}// Week Computation\nfunction weekOfYear(marker,dow,doy){var y=marker.getUTCFullYear();var w=weekOfGivenYear(marker,y,dow,doy);if(w<1){return weekOfGivenYear(marker,y-1,dow,doy);}var nextW=weekOfGivenYear(marker,y+1,dow,doy);if(nextW>=1){return Math.min(w,nextW);}return w;}function weekOfGivenYear(marker,year,dow,doy){var firstWeekStart=arrayToUtcDate([year,0,1+firstWeekOffset(year,dow,doy)]);var dayStart=startOfDay(marker);var days=Math.round(diffDays(firstWeekStart,dayStart));return Math.floor(days/7)+1;// zero-indexed\n}// start-of-first-week - start-of-year\nfunction firstWeekOffset(year,dow,doy){// first-week day -- which january is always in the first week (4 for iso, 1 for other)\nvar fwd=7+dow-doy;// first-week day local weekday -- which local weekday is fwd\nvar fwdlw=(7+arrayToUtcDate([year,0,fwd]).getUTCDay()-dow)%7;return-fwdlw+fwd-1;}// Array Conversion\nfunction dateToLocalArray(date){return[date.getFullYear(),date.getMonth(),date.getDate(),date.getHours(),date.getMinutes(),date.getSeconds(),date.getMilliseconds()];}function arrayToLocalDate(a){return new Date(a[0],a[1]||0,a[2]==null?1:a[2],// day of month\na[3]||0,a[4]||0,a[5]||0);}function dateToUtcArray(date){return[date.getUTCFullYear(),date.getUTCMonth(),date.getUTCDate(),date.getUTCHours(),date.getUTCMinutes(),date.getUTCSeconds(),date.getUTCMilliseconds()];}function arrayToUtcDate(a){// according to web standards (and Safari), a month index is required.\n// massage if only given a year.\nif(a.length===1){a=a.concat([0]);}return new Date(Date.UTC.apply(Date,a));}// Other Utils\nfunction isValidDate(m){return!isNaN(m.valueOf());}function timeAsMs(m){return m.getUTCHours()*1000*60*60+m.getUTCMinutes()*1000*60+m.getUTCSeconds()*1000+m.getUTCMilliseconds();}var INTERNAL_UNITS=['years','months','days','milliseconds'];var PARSE_RE=/^(-?)(?:(\\d+)\\.)?(\\d+):(\\d\\d)(?::(\\d\\d)(?:\\.(\\d\\d\\d))?)?/;// Parsing and Creation\nfunction createDuration(input,unit){var _a;if(typeof input==='string'){return parseString(input);}else if(typeof input==='object'&&input){// non-null object\nreturn normalizeObject(input);}else if(typeof input==='number'){return normalizeObject((_a={},_a[unit||'milliseconds']=input,_a));}else{return null;}}function parseString(s){var m=PARSE_RE.exec(s);if(m){var sign=m[1]?-1:1;return{years:0,months:0,days:sign*(m[2]?parseInt(m[2],10):0),milliseconds:sign*((m[3]?parseInt(m[3],10):0)*60*60*1000+// hours\n(m[4]?parseInt(m[4],10):0)*60*1000+// minutes\n(m[5]?parseInt(m[5],10):0)*1000+(// seconds\nm[6]?parseInt(m[6],10):0)// ms\n)};}return null;}function normalizeObject(obj){return{years:obj.years||obj.year||0,months:obj.months||obj.month||0,days:(obj.days||obj.day||0)+getWeeksFromInput(obj)*7,milliseconds:(obj.hours||obj.hour||0)*60*60*1000+// hours\n(obj.minutes||obj.minute||0)*60*1000+// minutes\n(obj.seconds||obj.second||0)*1000+(// seconds\nobj.milliseconds||obj.millisecond||obj.ms||0)// ms\n};}function getWeeksFromInput(obj){return obj.weeks||obj.week||0;}// Equality\nfunction durationsEqual(d0,d1){return d0.years===d1.years&&d0.months===d1.months&&d0.days===d1.days&&d0.milliseconds===d1.milliseconds;}function isSingleDay(dur){return dur.years===0&&dur.months===0&&dur.days===1&&dur.milliseconds===0;}// Simple Math\nfunction addDurations(d0,d1){return{years:d0.years+d1.years,months:d0.months+d1.months,days:d0.days+d1.days,milliseconds:d0.milliseconds+d1.milliseconds};}function subtractDurations(d1,d0){return{years:d1.years-d0.years,months:d1.months-d0.months,days:d1.days-d0.days,milliseconds:d1.milliseconds-d0.milliseconds};}function multiplyDuration(d,n){return{years:d.years*n,months:d.months*n,days:d.days*n,milliseconds:d.milliseconds*n};}// Conversions\n// \"Rough\" because they are based on average-case Gregorian months/years\nfunction asRoughYears(dur){return asRoughDays(dur)/365;}function asRoughMonths(dur){return asRoughDays(dur)/30;}function asRoughDays(dur){return asRoughMs(dur)/864e5;}function asRoughMinutes(dur){return asRoughMs(dur)/(1000*60);}function asRoughSeconds(dur){return asRoughMs(dur)/1000;}function asRoughMs(dur){return dur.years*(365*864e5)+dur.months*(30*864e5)+dur.days*864e5+dur.milliseconds;}// Advanced Math\nfunction wholeDivideDurations(numerator,denominator){var res=null;for(var i=0;i<INTERNAL_UNITS.length;i++){var unit=INTERNAL_UNITS[i];if(denominator[unit]){var localRes=numerator[unit]/denominator[unit];if(!isInt(localRes)||res!==null&&res!==localRes){return null;}res=localRes;}else if(numerator[unit]){// needs to divide by something but can't!\nreturn null;}}return res;}function greatestDurationDenominator(dur,dontReturnWeeks){var ms=dur.milliseconds;if(ms){if(ms%1000!==0){return{unit:'millisecond',value:ms};}if(ms%(1000*60)!==0){return{unit:'second',value:ms/1000};}if(ms%(1000*60*60)!==0){return{unit:'minute',value:ms/(1000*60)};}if(ms){return{unit:'hour',value:ms/(1000*60*60)};}}if(dur.days){if(!dontReturnWeeks&&dur.days%7===0){return{unit:'week',value:dur.days/7};}return{unit:'day',value:dur.days};}if(dur.months){return{unit:'month',value:dur.months};}if(dur.years){return{unit:'year',value:dur.years};}return{unit:'millisecond',value:0};}/* FullCalendar-specific DOM Utilities\r\n    ----------------------------------------------------------------------------------------------------------------------*/ // Given the scrollbar widths of some other container, create borders/margins on rowEls in order to match the left\n// and right space that was offset by the scrollbars. A 1-pixel border first, then margin beyond that.\nfunction compensateScroll(rowEl,scrollbarWidths){if(scrollbarWidths.left){applyStyle(rowEl,{borderLeftWidth:1,marginLeft:scrollbarWidths.left-1});}if(scrollbarWidths.right){applyStyle(rowEl,{borderRightWidth:1,marginRight:scrollbarWidths.right-1});}}// Undoes compensateScroll and restores all borders/margins\nfunction uncompensateScroll(rowEl){applyStyle(rowEl,{marginLeft:'',marginRight:'',borderLeftWidth:'',borderRightWidth:''});}// Make the mouse cursor express that an event is not allowed in the current area\nfunction disableCursor(){document.body.classList.add('fc-not-allowed');}// Returns the mouse cursor to its original look\nfunction enableCursor(){document.body.classList.remove('fc-not-allowed');}// Given a total available height to fill, have `els` (essentially child rows) expand to accomodate.\n// By default, all elements that are shorter than the recommended height are expanded uniformly, not considering\n// any other els that are already too tall. if `shouldRedistribute` is on, it considers these tall rows and\n// reduces the available height.\nfunction distributeHeight(els,availableHeight,shouldRedistribute){// *FLOORING NOTE*: we floor in certain places because zoom can give inaccurate floating-point dimensions,\n// and it is better to be shorter than taller, to avoid creating unnecessary scrollbars.\nvar minOffset1=Math.floor(availableHeight/els.length);// for non-last element\nvar minOffset2=Math.floor(availableHeight-minOffset1*(els.length-1));// for last element *FLOORING NOTE*\nvar flexEls=[];// elements that are allowed to expand. array of DOM nodes\nvar flexOffsets=[];// amount of vertical space it takes up\nvar flexHeights=[];// actual css height\nvar usedHeight=0;undistributeHeight(els);// give all elements their natural height\n// find elements that are below the recommended height (expandable).\n// important to query for heights in a single first pass (to avoid reflow oscillation).\nels.forEach(function(el,i){var minOffset=i===els.length-1?minOffset2:minOffset1;var naturalHeight=el.getBoundingClientRect().height;var naturalOffset=naturalHeight+computeVMargins(el);if(naturalOffset<minOffset){flexEls.push(el);flexOffsets.push(naturalOffset);flexHeights.push(naturalHeight);}else{// this element stretches past recommended height (non-expandable). mark the space as occupied.\nusedHeight+=naturalOffset;}});// readjust the recommended height to only consider the height available to non-maxed-out rows.\nif(shouldRedistribute){availableHeight-=usedHeight;minOffset1=Math.floor(availableHeight/flexEls.length);minOffset2=Math.floor(availableHeight-minOffset1*(flexEls.length-1));// *FLOORING NOTE*\n}// assign heights to all expandable elements\nflexEls.forEach(function(el,i){var minOffset=i===flexEls.length-1?minOffset2:minOffset1;var naturalOffset=flexOffsets[i];var naturalHeight=flexHeights[i];var newHeight=minOffset-(naturalOffset-naturalHeight);// subtract the margin/padding\nif(naturalOffset<minOffset){// we check this again because redistribution might have changed things\nel.style.height=newHeight+'px';}});}// Undoes distrubuteHeight, restoring all els to their natural height\nfunction undistributeHeight(els){els.forEach(function(el){el.style.height='';});}// Given `els`, a set of <td> cells, find the cell with the largest natural width and set the widths of all the\n// cells to be that width.\n// PREREQUISITE: if you want a cell to take up width, it needs to have a single inner element w/ display:inline\nfunction matchCellWidths(els){var maxInnerWidth=0;els.forEach(function(el){var innerEl=el.firstChild;// hopefully an element\nif(innerEl instanceof HTMLElement){var innerWidth_1=innerEl.getBoundingClientRect().width;if(innerWidth_1>maxInnerWidth){maxInnerWidth=innerWidth_1;}}});maxInnerWidth++;// sometimes not accurate of width the text needs to stay on one line. insurance\nels.forEach(function(el){el.style.width=maxInnerWidth+'px';});return maxInnerWidth;}// Given one element that resides inside another,\n// Subtracts the height of the inner element from the outer element.\nfunction subtractInnerElHeight(outerEl,innerEl){// effin' IE8/9/10/11 sometimes returns 0 for dimensions. this weird hack was the only thing that worked\nvar reflowStyleProps={position:'relative',left:-1// ensure reflow in case the el was already relative. negative is less likely to cause new scroll\n};applyStyle(outerEl,reflowStyleProps);applyStyle(innerEl,reflowStyleProps);var diff=// grab the dimensions\nouterEl.getBoundingClientRect().height-innerEl.getBoundingClientRect().height;// undo hack\nvar resetStyleProps={position:'',left:''};applyStyle(outerEl,resetStyleProps);applyStyle(innerEl,resetStyleProps);return diff;}/* Selection\r\n    ----------------------------------------------------------------------------------------------------------------------*/function preventSelection(el){el.classList.add('fc-unselectable');el.addEventListener('selectstart',preventDefault);}function allowSelection(el){el.classList.remove('fc-unselectable');el.removeEventListener('selectstart',preventDefault);}/* Context Menu\r\n    ----------------------------------------------------------------------------------------------------------------------*/function preventContextMenu(el){el.addEventListener('contextmenu',preventDefault);}function allowContextMenu(el){el.removeEventListener('contextmenu',preventDefault);}/* Object Ordering by Field\r\n    ----------------------------------------------------------------------------------------------------------------------*/function parseFieldSpecs(input){var specs=[];var tokens=[];var i;var token;if(typeof input==='string'){tokens=input.split(/\\s*,\\s*/);}else if(typeof input==='function'){tokens=[input];}else if(Array.isArray(input)){tokens=input;}for(i=0;i<tokens.length;i++){token=tokens[i];if(typeof token==='string'){specs.push(token.charAt(0)==='-'?{field:token.substring(1),order:-1}:{field:token,order:1});}else if(typeof token==='function'){specs.push({func:token});}}return specs;}function compareByFieldSpecs(obj0,obj1,fieldSpecs){var i;var cmp;for(i=0;i<fieldSpecs.length;i++){cmp=compareByFieldSpec(obj0,obj1,fieldSpecs[i]);if(cmp){return cmp;}}return 0;}function compareByFieldSpec(obj0,obj1,fieldSpec){if(fieldSpec.func){return fieldSpec.func(obj0,obj1);}return flexibleCompare(obj0[fieldSpec.field],obj1[fieldSpec.field])*(fieldSpec.order||1);}function flexibleCompare(a,b){if(!a&&!b){return 0;}if(b==null){return-1;}if(a==null){return 1;}if(typeof a==='string'||typeof b==='string'){return String(a).localeCompare(String(b));}return a-b;}/* String Utilities\r\n    ----------------------------------------------------------------------------------------------------------------------*/function capitaliseFirstLetter(str){return str.charAt(0).toUpperCase()+str.slice(1);}function padStart(val,len){var s=String(val);return'000'.substr(0,len-s.length)+s;}/* Number Utilities\r\n    ----------------------------------------------------------------------------------------------------------------------*/function compareNumbers(a,b){return a-b;}function isInt(n){return n%1===0;}/* Weird Utilities\r\n    ----------------------------------------------------------------------------------------------------------------------*/function applyAll(functions,thisObj,args){if(typeof functions==='function'){// supplied a single function\nfunctions=[functions];}if(functions){var i=void 0;var ret=void 0;for(i=0;i<functions.length;i++){ret=functions[i].apply(thisObj,args)||ret;}return ret;}}function firstDefined(){var args=[];for(var _i=0;_i<arguments.length;_i++){args[_i]=arguments[_i];}for(var i=0;i<args.length;i++){if(args[i]!==undefined){return args[i];}}}// Returns a function, that, as long as it continues to be invoked, will not\n// be triggered. The function will be called after it stops being called for\n// N milliseconds. If `immediate` is passed, trigger the function on the\n// leading edge, instead of the trailing.\n// https://github.com/jashkenas/underscore/blob/1.6.0/underscore.js#L714\nfunction debounce(func,wait){var timeout;var args;var context;var timestamp;var result;var later=function(){var last=new Date().valueOf()-timestamp;if(last<wait){timeout=setTimeout(later,wait-last);}else{timeout=null;result=func.apply(context,args);context=args=null;}};return function(){context=this;args=arguments;timestamp=new Date().valueOf();if(!timeout){timeout=setTimeout(later,wait);}return result;};}// Number and Boolean are only types that defaults or not computed for\n// TODO: write more comments\nfunction refineProps(rawProps,processors,defaults,leftoverProps){if(defaults===void 0){defaults={};}var refined={};for(var key in processors){var processor=processors[key];if(rawProps[key]!==undefined){// found\nif(processor===Function){refined[key]=typeof rawProps[key]==='function'?rawProps[key]:null;}else if(processor){// a refining function?\nrefined[key]=processor(rawProps[key]);}else{refined[key]=rawProps[key];}}else if(defaults[key]!==undefined){// there's an explicit default\nrefined[key]=defaults[key];}else{// must compute a default\nif(processor===String){refined[key]='';// empty string is default for String\n}else if(!processor||processor===Number||processor===Boolean||processor===Function){refined[key]=null;// assign null for other non-custom processor funcs\n}else{refined[key]=processor(null);// run the custom processor func\n}}}if(leftoverProps){for(var key in rawProps){if(processors[key]===undefined){leftoverProps[key]=rawProps[key];}}}return refined;}/* Date stuff that doesn't belong in datelib core\r\n    ----------------------------------------------------------------------------------------------------------------------*/ // given a timed range, computes an all-day range that has the same exact duration,\n// but whose start time is aligned with the start of the day.\nfunction computeAlignedDayRange(timedRange){var dayCnt=Math.floor(diffDays(timedRange.start,timedRange.end))||1;var start=startOfDay(timedRange.start);var end=addDays(start,dayCnt);return{start:start,end:end};}// given a timed range, computes an all-day range based on how for the end date bleeds into the next day\n// TODO: give nextDayThreshold a default arg\nfunction computeVisibleDayRange(timedRange,nextDayThreshold){if(nextDayThreshold===void 0){nextDayThreshold=createDuration(0);}var startDay=null;var endDay=null;if(timedRange.end){endDay=startOfDay(timedRange.end);var endTimeMS=timedRange.end.valueOf()-endDay.valueOf();// # of milliseconds into `endDay`\n// If the end time is actually inclusively part of the next day and is equal to or\n// beyond the next day threshold, adjust the end to be the exclusive end of `endDay`.\n// Otherwise, leaving it as inclusive will cause it to exclude `endDay`.\nif(endTimeMS&&endTimeMS>=asRoughMs(nextDayThreshold)){endDay=addDays(endDay,1);}}if(timedRange.start){startDay=startOfDay(timedRange.start);// the beginning of the day the range starts\n// If end is within `startDay` but not past nextDayThreshold, assign the default duration of one day.\nif(endDay&&endDay<=startDay){endDay=addDays(startDay,1);}}return{start:startDay,end:endDay};}// spans from one day into another?\nfunction isMultiDayRange(range){var visibleRange=computeVisibleDayRange(range);return diffDays(visibleRange.start,visibleRange.end)>1;}function diffDates(date0,date1,dateEnv,largeUnit){if(largeUnit==='year'){return createDuration(dateEnv.diffWholeYears(date0,date1),'year');}else if(largeUnit==='month'){return createDuration(dateEnv.diffWholeMonths(date0,date1),'month');}else{return diffDayAndTime(date0,date1);// returns a duration\n}}/*! *****************************************************************************\r\n    Copyright (c) Microsoft Corporation. All rights reserved.\r\n    Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n    this file except in compliance with the License. You may obtain a copy of the\r\n    License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n    MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n    See the Apache Version 2.0 License for specific language governing permissions\r\n    and limitations under the License.\r\n    ***************************************************************************** */ /* global Reflect, Promise */var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b;}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p];};return extendStatics(d,b);};function __extends(d,b){extendStatics(d,b);function __(){this.constructor=d;}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __());}var __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}return t;};return __assign.apply(this,arguments);};function parseRecurring(eventInput,allDayDefault,dateEnv,recurringTypes,leftovers){for(var i=0;i<recurringTypes.length;i++){var localLeftovers={};var parsed=recurringTypes[i].parse(eventInput,localLeftovers,dateEnv);if(parsed){var allDay=localLeftovers.allDay;delete localLeftovers.allDay;// remove from leftovers\nif(allDay==null){allDay=allDayDefault;if(allDay==null){allDay=parsed.allDayGuess;if(allDay==null){allDay=false;}}}__assign(leftovers,localLeftovers);return{allDay:allDay,duration:parsed.duration,typeData:parsed.typeData,typeId:i};}}return null;}/*\r\n    Event MUST have a recurringDef\r\n    */function expandRecurringRanges(eventDef,duration,framingRange,dateEnv,recurringTypes){var typeDef=recurringTypes[eventDef.recurringDef.typeId];var markers=typeDef.expand(eventDef.recurringDef.typeData,{start:dateEnv.subtract(framingRange.start,duration),end:framingRange.end},dateEnv);// the recurrence plugins don't guarantee that all-day events are start-of-day, so we have to\nif(eventDef.allDay){markers=markers.map(startOfDay);}return markers;}var hasOwnProperty=Object.prototype.hasOwnProperty;// Merges an array of objects into a single object.\n// The second argument allows for an array of property names who's object values will be merged together.\nfunction mergeProps(propObjs,complexProps){var dest={};var i;var name;var complexObjs;var j;var val;var props;if(complexProps){for(i=0;i<complexProps.length;i++){name=complexProps[i];complexObjs=[];// collect the trailing object values, stopping when a non-object is discovered\nfor(j=propObjs.length-1;j>=0;j--){val=propObjs[j][name];if(typeof val==='object'&&val){// non-null object\ncomplexObjs.unshift(val);}else if(val!==undefined){dest[name]=val;// if there were no objects, this value will be used\nbreak;}}// if the trailing values were objects, use the merged value\nif(complexObjs.length){dest[name]=mergeProps(complexObjs);}}}// copy values into the destination, going from last to first\nfor(i=propObjs.length-1;i>=0;i--){props=propObjs[i];for(name in props){if(!(name in dest)){// if already assigned by previous props or complex props, don't reassign\ndest[name]=props[name];}}}return dest;}function filterHash(hash,func){var filtered={};for(var key in hash){if(func(hash[key],key)){filtered[key]=hash[key];}}return filtered;}function mapHash(hash,func){var newHash={};for(var key in hash){newHash[key]=func(hash[key],key);}return newHash;}function arrayToHash(a){var hash={};for(var _i=0,a_1=a;_i<a_1.length;_i++){var item=a_1[_i];hash[item]=true;}return hash;}function hashValuesToArray(obj){var a=[];for(var key in obj){a.push(obj[key]);}return a;}function isPropsEqual(obj0,obj1){for(var key in obj0){if(hasOwnProperty.call(obj0,key)){if(!(key in obj1)){return false;}}}for(var key in obj1){if(hasOwnProperty.call(obj1,key)){if(obj0[key]!==obj1[key]){return false;}}}return true;}function parseEvents(rawEvents,sourceId,calendar,allowOpenRange){var eventStore=createEmptyEventStore();for(var _i=0,rawEvents_1=rawEvents;_i<rawEvents_1.length;_i++){var rawEvent=rawEvents_1[_i];var tuple=parseEvent(rawEvent,sourceId,calendar,allowOpenRange);if(tuple){eventTupleToStore(tuple,eventStore);}}return eventStore;}function eventTupleToStore(tuple,eventStore){if(eventStore===void 0){eventStore=createEmptyEventStore();}eventStore.defs[tuple.def.defId]=tuple.def;if(tuple.instance){eventStore.instances[tuple.instance.instanceId]=tuple.instance;}return eventStore;}function expandRecurring(eventStore,framingRange,calendar){var dateEnv=calendar.dateEnv;var defs=eventStore.defs,instances=eventStore.instances;// remove existing recurring instances\ninstances=filterHash(instances,function(instance){return!defs[instance.defId].recurringDef;});for(var defId in defs){var def=defs[defId];if(def.recurringDef){var duration=def.recurringDef.duration;if(!duration){duration=def.allDay?calendar.defaultAllDayEventDuration:calendar.defaultTimedEventDuration;}var starts=expandRecurringRanges(def,duration,framingRange,calendar.dateEnv,calendar.pluginSystem.hooks.recurringTypes);for(var _i=0,starts_1=starts;_i<starts_1.length;_i++){var start=starts_1[_i];var instance=createEventInstance(defId,{start:start,end:dateEnv.add(start,duration)});instances[instance.instanceId]=instance;}}}return{defs:defs,instances:instances};}// retrieves events that have the same groupId as the instance specified by `instanceId`\n// or they are the same as the instance.\n// why might instanceId not be in the store? an event from another calendar?\nfunction getRelevantEvents(eventStore,instanceId){var instance=eventStore.instances[instanceId];if(instance){var def_1=eventStore.defs[instance.defId];// get events/instances with same group\nvar newStore=filterEventStoreDefs(eventStore,function(lookDef){return isEventDefsGrouped(def_1,lookDef);});// add the original\n// TODO: wish we could use eventTupleToStore or something like it\nnewStore.defs[def_1.defId]=def_1;newStore.instances[instance.instanceId]=instance;return newStore;}return createEmptyEventStore();}function isEventDefsGrouped(def0,def1){return Boolean(def0.groupId&&def0.groupId===def1.groupId);}function transformRawEvents(rawEvents,eventSource,calendar){var calEachTransform=calendar.opt('eventDataTransform');var sourceEachTransform=eventSource?eventSource.eventDataTransform:null;if(sourceEachTransform){rawEvents=transformEachRawEvent(rawEvents,sourceEachTransform);}if(calEachTransform){rawEvents=transformEachRawEvent(rawEvents,calEachTransform);}return rawEvents;}function transformEachRawEvent(rawEvents,func){var refinedEvents;if(!func){refinedEvents=rawEvents;}else{refinedEvents=[];for(var _i=0,rawEvents_2=rawEvents;_i<rawEvents_2.length;_i++){var rawEvent=rawEvents_2[_i];var refinedEvent=func(rawEvent);if(refinedEvent){refinedEvents.push(refinedEvent);}else if(refinedEvent==null){refinedEvents.push(rawEvent);}// if a different falsy value, do nothing\n}}return refinedEvents;}function createEmptyEventStore(){return{defs:{},instances:{}};}function mergeEventStores(store0,store1){return{defs:__assign({},store0.defs,store1.defs),instances:__assign({},store0.instances,store1.instances)};}function filterEventStoreDefs(eventStore,filterFunc){var defs=filterHash(eventStore.defs,filterFunc);var instances=filterHash(eventStore.instances,function(instance){return defs[instance.defId];// still exists?\n});return{defs:defs,instances:instances};}function parseRange(input,dateEnv){var start=null;var end=null;if(input.start){start=dateEnv.createMarker(input.start);}if(input.end){end=dateEnv.createMarker(input.end);}if(!start&&!end){return null;}if(start&&end&&end<start){return null;}return{start:start,end:end};}// SIDE-EFFECT: will mutate ranges.\n// Will return a new array result.\nfunction invertRanges(ranges,constraintRange){var invertedRanges=[];var start=constraintRange.start;// the end of the previous range. the start of the new range\nvar i;var dateRange;// ranges need to be in order. required for our date-walking algorithm\nranges.sort(compareRanges);for(i=0;i<ranges.length;i++){dateRange=ranges[i];// add the span of time before the event (if there is any)\nif(dateRange.start>start){// compare millisecond time (skip any ambig logic)\ninvertedRanges.push({start:start,end:dateRange.start});}if(dateRange.end>start){start=dateRange.end;}}// add the span of time after the last event (if there is any)\nif(start<constraintRange.end){// compare millisecond time (skip any ambig logic)\ninvertedRanges.push({start:start,end:constraintRange.end});}return invertedRanges;}function compareRanges(range0,range1){return range0.start.valueOf()-range1.start.valueOf();// earlier ranges go first\n}function intersectRanges(range0,range1){var start=range0.start;var end=range0.end;var newRange=null;if(range1.start!==null){if(start===null){start=range1.start;}else{start=new Date(Math.max(start.valueOf(),range1.start.valueOf()));}}if(range1.end!=null){if(end===null){end=range1.end;}else{end=new Date(Math.min(end.valueOf(),range1.end.valueOf()));}}if(start===null||end===null||start<end){newRange={start:start,end:end};}return newRange;}function rangesEqual(range0,range1){return(range0.start===null?null:range0.start.valueOf())===(range1.start===null?null:range1.start.valueOf())&&(range0.end===null?null:range0.end.valueOf())===(range1.end===null?null:range1.end.valueOf());}function rangesIntersect(range0,range1){return(range0.end===null||range1.start===null||range0.end>range1.start)&&(range0.start===null||range1.end===null||range0.start<range1.end);}function rangeContainsRange(outerRange,innerRange){return(outerRange.start===null||innerRange.start!==null&&innerRange.start>=outerRange.start)&&(outerRange.end===null||innerRange.end!==null&&innerRange.end<=outerRange.end);}function rangeContainsMarker(range,date){return(range.start===null||date>=range.start)&&(range.end===null||date<range.end);}// If the given date is not within the given range, move it inside.\n// (If it's past the end, make it one millisecond before the end).\nfunction constrainMarkerToRange(date,range){if(range.start!=null&&date<range.start){return range.start;}if(range.end!=null&&date>=range.end){return new Date(range.end.valueOf()-1);}return date;}function removeExact(array,exactVal){var removeCnt=0;var i=0;while(i<array.length){if(array[i]===exactVal){array.splice(i,1);removeCnt++;}else{i++;}}return removeCnt;}function isArraysEqual(a0,a1){var len=a0.length;var i;if(len!==a1.length){// not array? or not same length?\nreturn false;}for(i=0;i<len;i++){if(a0[i]!==a1[i]){return false;}}return true;}function memoize(workerFunc){var args;var res;return function(){if(!args||!isArraysEqual(args,arguments)){args=arguments;res=workerFunc.apply(this,arguments);}return res;};}/*\r\n    always executes the workerFunc, but if the result is equal to the previous result,\r\n    return the previous result instead.\r\n    */function memoizeOutput(workerFunc,equalityFunc){var cachedRes=null;return function(){var newRes=workerFunc.apply(this,arguments);if(cachedRes===null||!(cachedRes===newRes||equalityFunc(cachedRes,newRes))){cachedRes=newRes;}return cachedRes;};}var EXTENDED_SETTINGS_AND_SEVERITIES={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0};var STANDARD_DATE_PROP_SEVERITIES={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1};var MERIDIEM_RE=/\\s*([ap])\\.?m\\.?/i;// eats up leading spaces too\nvar COMMA_RE=/,/g;// we need re for globalness\nvar MULTI_SPACE_RE=/\\s+/g;var LTR_RE=/\\u200e/g;// control character\nvar UTC_RE=/UTC|GMT/;var NativeFormatter=/** @class */function(){function NativeFormatter(formatSettings){var standardDateProps={};var extendedSettings={};var severity=0;for(var name_1 in formatSettings){if(name_1 in EXTENDED_SETTINGS_AND_SEVERITIES){extendedSettings[name_1]=formatSettings[name_1];severity=Math.max(EXTENDED_SETTINGS_AND_SEVERITIES[name_1],severity);}else{standardDateProps[name_1]=formatSettings[name_1];if(name_1 in STANDARD_DATE_PROP_SEVERITIES){severity=Math.max(STANDARD_DATE_PROP_SEVERITIES[name_1],severity);}}}this.standardDateProps=standardDateProps;this.extendedSettings=extendedSettings;this.severity=severity;this.buildFormattingFunc=memoize(buildFormattingFunc);}NativeFormatter.prototype.format=function(date,context){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,context)(date);};NativeFormatter.prototype.formatRange=function(start,end,context){var _a=this,standardDateProps=_a.standardDateProps,extendedSettings=_a.extendedSettings;var diffSeverity=computeMarkerDiffSeverity(start.marker,end.marker,context.calendarSystem);if(!diffSeverity){return this.format(start,context);}var biggestUnitForPartial=diffSeverity;if(biggestUnitForPartial>1&&(// the two dates are different in a way that's larger scale than time\nstandardDateProps.year==='numeric'||standardDateProps.year==='2-digit')&&(standardDateProps.month==='numeric'||standardDateProps.month==='2-digit')&&(standardDateProps.day==='numeric'||standardDateProps.day==='2-digit')){biggestUnitForPartial=1;// make it look like the dates are only different in terms of time\n}var full0=this.format(start,context);var full1=this.format(end,context);if(full0===full1){return full0;}var partialDateProps=computePartialFormattingOptions(standardDateProps,biggestUnitForPartial);var partialFormattingFunc=buildFormattingFunc(partialDateProps,extendedSettings,context);var partial0=partialFormattingFunc(start);var partial1=partialFormattingFunc(end);var insertion=findCommonInsertion(full0,partial0,full1,partial1);var separator=extendedSettings.separator||'';if(insertion){return insertion.before+partial0+separator+partial1+insertion.after;}return full0+separator+full1;};NativeFormatter.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return'year';case 4:return'month';case 3:return'week';default:return'day';}};return NativeFormatter;}();function buildFormattingFunc(standardDateProps,extendedSettings,context){var standardDatePropCnt=Object.keys(standardDateProps).length;if(standardDatePropCnt===1&&standardDateProps.timeZoneName==='short'){return function(date){return formatTimeZoneOffset(date.timeZoneOffset);};}if(standardDatePropCnt===0&&extendedSettings.week){return function(date){return formatWeekNumber(context.computeWeekNumber(date.marker),context.weekLabel,context.locale,extendedSettings.week);};}return buildNativeFormattingFunc(standardDateProps,extendedSettings,context);}function buildNativeFormattingFunc(standardDateProps,extendedSettings,context){standardDateProps=__assign({},standardDateProps);// copy\nextendedSettings=__assign({},extendedSettings);// copy\nsanitizeSettings(standardDateProps,extendedSettings);standardDateProps.timeZone='UTC';// we leverage the only guaranteed timeZone for our UTC markers\nvar normalFormat=new Intl.DateTimeFormat(context.locale.codes,standardDateProps);var zeroFormat;// needed?\nif(extendedSettings.omitZeroMinute){var zeroProps=__assign({},standardDateProps);delete zeroProps.minute;// seconds and ms were already considered in sanitizeSettings\nzeroFormat=new Intl.DateTimeFormat(context.locale.codes,zeroProps);}return function(date){var marker=date.marker;var format;if(zeroFormat&&!marker.getUTCMinutes()){format=zeroFormat;}else{format=normalFormat;}var s=format.format(marker);return postProcess(s,date,standardDateProps,extendedSettings,context);};}function sanitizeSettings(standardDateProps,extendedSettings){// deal with a browser inconsistency where formatting the timezone\n// requires that the hour/minute be present.\nif(standardDateProps.timeZoneName){if(!standardDateProps.hour){standardDateProps.hour='2-digit';}if(!standardDateProps.minute){standardDateProps.minute='2-digit';}}// only support short timezone names\nif(standardDateProps.timeZoneName==='long'){standardDateProps.timeZoneName='short';}// if requesting to display seconds, MUST display minutes\nif(extendedSettings.omitZeroMinute&&(standardDateProps.second||standardDateProps.millisecond)){delete extendedSettings.omitZeroMinute;}}function postProcess(s,date,standardDateProps,extendedSettings,context){s=s.replace(LTR_RE,'');// remove left-to-right control chars. do first. good for other regexes\nif(standardDateProps.timeZoneName==='short'){s=injectTzoStr(s,context.timeZone==='UTC'||date.timeZoneOffset==null?'UTC':// important to normalize for IE, which does \"GMT\"\nformatTimeZoneOffset(date.timeZoneOffset));}if(extendedSettings.omitCommas){s=s.replace(COMMA_RE,'').trim();}if(extendedSettings.omitZeroMinute){s=s.replace(':00','');// zeroFormat doesn't always achieve this\n}// ^ do anything that might create adjacent spaces before this point,\n// because MERIDIEM_RE likes to eat up loading spaces\nif(extendedSettings.meridiem===false){s=s.replace(MERIDIEM_RE,'').trim();}else if(extendedSettings.meridiem==='narrow'){// a/p\ns=s.replace(MERIDIEM_RE,function(m0,m1){return m1.toLocaleLowerCase();});}else if(extendedSettings.meridiem==='short'){// am/pm\ns=s.replace(MERIDIEM_RE,function(m0,m1){return m1.toLocaleLowerCase()+'m';});}else if(extendedSettings.meridiem==='lowercase'){// other meridiem transformers already converted to lowercase\ns=s.replace(MERIDIEM_RE,function(m0){return m0.toLocaleLowerCase();});}s=s.replace(MULTI_SPACE_RE,' ');s=s.trim();return s;}function injectTzoStr(s,tzoStr){var replaced=false;s=s.replace(UTC_RE,function(){replaced=true;return tzoStr;});// IE11 doesn't include UTC/GMT in the original string, so append to end\nif(!replaced){s+=' '+tzoStr;}return s;}function formatWeekNumber(num,weekLabel,locale,display){var parts=[];if(display==='narrow'){parts.push(weekLabel);}else if(display==='short'){parts.push(weekLabel,' ');}// otherwise, considered 'numeric'\nparts.push(locale.simpleNumberFormat.format(num));if(locale.options.isRtl){// TODO: use control characters instead?\nparts.reverse();}return parts.join('');}// Range Formatting Utils\n// 0 = exactly the same\n// 1 = different by time\n// and bigger\nfunction computeMarkerDiffSeverity(d0,d1,ca){if(ca.getMarkerYear(d0)!==ca.getMarkerYear(d1)){return 5;}if(ca.getMarkerMonth(d0)!==ca.getMarkerMonth(d1)){return 4;}if(ca.getMarkerDay(d0)!==ca.getMarkerDay(d1)){return 2;}if(timeAsMs(d0)!==timeAsMs(d1)){return 1;}return 0;}function computePartialFormattingOptions(options,biggestUnit){var partialOptions={};for(var name_2 in options){if(!(name_2 in STANDARD_DATE_PROP_SEVERITIES)||// not a date part prop (like timeZone)\nSTANDARD_DATE_PROP_SEVERITIES[name_2]<=biggestUnit){partialOptions[name_2]=options[name_2];}}return partialOptions;}function findCommonInsertion(full0,partial0,full1,partial1){var i0=0;while(i0<full0.length){var found0=full0.indexOf(partial0,i0);if(found0===-1){break;}var before0=full0.substr(0,found0);i0=found0+partial0.length;var after0=full0.substr(i0);var i1=0;while(i1<full1.length){var found1=full1.indexOf(partial1,i1);if(found1===-1){break;}var before1=full1.substr(0,found1);i1=found1+partial1.length;var after1=full1.substr(i1);if(before0===before1&&after0===after1){return{before:before0,after:after0};}}}return null;}/*\r\n    TODO: fix the terminology of \"formatter\" vs \"formatting func\"\r\n    */ /*\r\n    At the time of instantiation, this object does not know which cmd-formatting system it will use.\r\n    It receives this at the time of formatting, as a setting.\r\n    */var CmdFormatter=/** @class */function(){function CmdFormatter(cmdStr,separator){this.cmdStr=cmdStr;this.separator=separator;}CmdFormatter.prototype.format=function(date,context){return context.cmdFormatter(this.cmdStr,createVerboseFormattingArg(date,null,context,this.separator));};CmdFormatter.prototype.formatRange=function(start,end,context){return context.cmdFormatter(this.cmdStr,createVerboseFormattingArg(start,end,context,this.separator));};return CmdFormatter;}();var FuncFormatter=/** @class */function(){function FuncFormatter(func){this.func=func;}FuncFormatter.prototype.format=function(date,context){return this.func(createVerboseFormattingArg(date,null,context));};FuncFormatter.prototype.formatRange=function(start,end,context){return this.func(createVerboseFormattingArg(start,end,context));};return FuncFormatter;}();// Formatter Object Creation\nfunction createFormatter(input,defaultSeparator){if(typeof input==='object'&&input){// non-null object\nif(typeof defaultSeparator==='string'){input=__assign({separator:defaultSeparator},input);}return new NativeFormatter(input);}else if(typeof input==='string'){return new CmdFormatter(input,defaultSeparator);}else if(typeof input==='function'){return new FuncFormatter(input);}}// String Utils\n// timeZoneOffset is in minutes\nfunction buildIsoString(marker,timeZoneOffset,stripZeroTime){if(stripZeroTime===void 0){stripZeroTime=false;}var s=marker.toISOString();s=s.replace('.000','');if(stripZeroTime){s=s.replace('T00:00:00Z','');}if(s.length>10){// time part wasn't stripped, can add timezone info\nif(timeZoneOffset==null){s=s.replace('Z','');}else if(timeZoneOffset!==0){s=s.replace('Z',formatTimeZoneOffset(timeZoneOffset,true));}// otherwise, its UTC-0 and we want to keep the Z\n}return s;}function formatIsoTimeString(marker){return padStart(marker.getUTCHours(),2)+':'+padStart(marker.getUTCMinutes(),2)+':'+padStart(marker.getUTCSeconds(),2);}function formatTimeZoneOffset(minutes,doIso){if(doIso===void 0){doIso=false;}var sign=minutes<0?'-':'+';var abs=Math.abs(minutes);var hours=Math.floor(abs/60);var mins=Math.round(abs%60);if(doIso){return sign+padStart(hours,2)+':'+padStart(mins,2);}else{return'GMT'+sign+hours+(mins?':'+padStart(mins,2):'');}}// Arg Utils\nfunction createVerboseFormattingArg(start,end,context,separator){var startInfo=expandZonedMarker(start,context.calendarSystem);var endInfo=end?expandZonedMarker(end,context.calendarSystem):null;return{date:startInfo,start:startInfo,end:endInfo,timeZone:context.timeZone,localeCodes:context.locale.codes,separator:separator};}function expandZonedMarker(dateInfo,calendarSystem){var a=calendarSystem.markerToArray(dateInfo.marker);return{marker:dateInfo.marker,timeZoneOffset:dateInfo.timeZoneOffset,array:a,year:a[0],month:a[1],day:a[2],hour:a[3],minute:a[4],second:a[5],millisecond:a[6]};}var EventSourceApi=/** @class */function(){function EventSourceApi(calendar,internalEventSource){this.calendar=calendar;this.internalEventSource=internalEventSource;}EventSourceApi.prototype.remove=function(){this.calendar.dispatch({type:'REMOVE_EVENT_SOURCE',sourceId:this.internalEventSource.sourceId});};EventSourceApi.prototype.refetch=function(){this.calendar.dispatch({type:'FETCH_EVENT_SOURCES',sourceIds:[this.internalEventSource.sourceId]});};Object.defineProperty(EventSourceApi.prototype,\"id\",{get:function(){return this.internalEventSource.publicId;},enumerable:true,configurable:true});Object.defineProperty(EventSourceApi.prototype,\"url\",{// only relevant to json-feed event sources\nget:function(){return this.internalEventSource.meta.url;},enumerable:true,configurable:true});return EventSourceApi;}();var EventApi=/** @class */function(){function EventApi(calendar,def,instance){this._calendar=calendar;this._def=def;this._instance=instance||null;}/*\r\n        TODO: make event struct more responsible for this\r\n        */EventApi.prototype.setProp=function(name,val){var _a,_b;if(name in DATE_PROPS);else if(name in NON_DATE_PROPS){if(typeof NON_DATE_PROPS[name]==='function'){val=NON_DATE_PROPS[name](val);}this.mutate({standardProps:(_a={},_a[name]=val,_a)});}else if(name in UNSCOPED_EVENT_UI_PROPS){var ui=void 0;if(typeof UNSCOPED_EVENT_UI_PROPS[name]==='function'){val=UNSCOPED_EVENT_UI_PROPS[name](val);}if(name==='color'){ui={backgroundColor:val,borderColor:val};}else if(name==='editable'){ui={startEditable:val,durationEditable:val};}else{ui=(_b={},_b[name]=val,_b);}this.mutate({standardProps:{ui:ui}});}};EventApi.prototype.setExtendedProp=function(name,val){var _a;this.mutate({extendedProps:(_a={},_a[name]=val,_a)});};EventApi.prototype.setStart=function(startInput,options){if(options===void 0){options={};}var dateEnv=this._calendar.dateEnv;var start=dateEnv.createMarker(startInput);if(start&&this._instance){// TODO: warning if parsed bad\nvar instanceRange=this._instance.range;var startDelta=diffDates(instanceRange.start,start,dateEnv,options.granularity);// what if parsed bad!?\nif(options.maintainDuration){this.mutate({datesDelta:startDelta});}else{this.mutate({startDelta:startDelta});}}};EventApi.prototype.setEnd=function(endInput,options){if(options===void 0){options={};}var dateEnv=this._calendar.dateEnv;var end;if(endInput!=null){end=dateEnv.createMarker(endInput);if(!end){return;// TODO: warning if parsed bad\n}}if(this._instance){if(end){var endDelta=diffDates(this._instance.range.end,end,dateEnv,options.granularity);this.mutate({endDelta:endDelta});}else{this.mutate({standardProps:{hasEnd:false}});}}};EventApi.prototype.setDates=function(startInput,endInput,options){if(options===void 0){options={};}var dateEnv=this._calendar.dateEnv;var standardProps={allDay:options.allDay};var start=dateEnv.createMarker(startInput);var end;if(!start){return;// TODO: warning if parsed bad\n}if(endInput!=null){end=dateEnv.createMarker(endInput);if(!end){// TODO: warning if parsed bad\nreturn;}}if(this._instance){var instanceRange=this._instance.range;// when computing the diff for an event being converted to all-day,\n// compute diff off of the all-day values the way event-mutation does.\nif(options.allDay===true){instanceRange=computeAlignedDayRange(instanceRange);}var startDelta=diffDates(instanceRange.start,start,dateEnv,options.granularity);if(end){var endDelta=diffDates(instanceRange.end,end,dateEnv,options.granularity);if(durationsEqual(startDelta,endDelta)){this.mutate({datesDelta:startDelta,standardProps:standardProps});}else{this.mutate({startDelta:startDelta,endDelta:endDelta,standardProps:standardProps});}}else{// means \"clear the end\"\nstandardProps.hasEnd=false;this.mutate({datesDelta:startDelta,standardProps:standardProps});}}};EventApi.prototype.moveStart=function(deltaInput){var delta=createDuration(deltaInput);if(delta){// TODO: warning if parsed bad\nthis.mutate({startDelta:delta});}};EventApi.prototype.moveEnd=function(deltaInput){var delta=createDuration(deltaInput);if(delta){// TODO: warning if parsed bad\nthis.mutate({endDelta:delta});}};EventApi.prototype.moveDates=function(deltaInput){var delta=createDuration(deltaInput);if(delta){// TODO: warning if parsed bad\nthis.mutate({datesDelta:delta});}};EventApi.prototype.setAllDay=function(allDay,options){if(options===void 0){options={};}var standardProps={allDay:allDay};var maintainDuration=options.maintainDuration;if(maintainDuration==null){maintainDuration=this._calendar.opt('allDayMaintainDuration');}if(this._def.allDay!==allDay){standardProps.hasEnd=maintainDuration;}this.mutate({standardProps:standardProps});};EventApi.prototype.formatRange=function(formatInput){var dateEnv=this._calendar.dateEnv;var instance=this._instance;var formatter=createFormatter(formatInput,this._calendar.opt('defaultRangeSeparator'));if(this._def.hasEnd){return dateEnv.formatRange(instance.range.start,instance.range.end,formatter,{forcedStartTzo:instance.forcedStartTzo,forcedEndTzo:instance.forcedEndTzo});}else{return dateEnv.format(instance.range.start,formatter,{forcedTzo:instance.forcedStartTzo});}};EventApi.prototype.mutate=function(mutation){var def=this._def;var instance=this._instance;if(instance){this._calendar.dispatch({type:'MUTATE_EVENTS',instanceId:instance.instanceId,mutation:mutation,fromApi:true});var eventStore=this._calendar.state.eventStore;this._def=eventStore.defs[def.defId];this._instance=eventStore.instances[instance.instanceId];}};EventApi.prototype.remove=function(){this._calendar.dispatch({type:'REMOVE_EVENT_DEF',defId:this._def.defId});};Object.defineProperty(EventApi.prototype,\"source\",{get:function(){var sourceId=this._def.sourceId;if(sourceId){return new EventSourceApi(this._calendar,this._calendar.state.eventSources[sourceId]);}return null;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"start\",{get:function(){return this._instance?this._calendar.dateEnv.toDate(this._instance.range.start):null;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"end\",{get:function(){return this._instance&&this._def.hasEnd?this._calendar.dateEnv.toDate(this._instance.range.end):null;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"id\",{// computable props that all access the def\n// TODO: find a TypeScript-compatible way to do this at scale\nget:function(){return this._def.publicId;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"groupId\",{get:function(){return this._def.groupId;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"allDay\",{get:function(){return this._def.allDay;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"title\",{get:function(){return this._def.title;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"url\",{get:function(){return this._def.url;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"rendering\",{get:function(){return this._def.rendering;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"startEditable\",{get:function(){return this._def.ui.startEditable;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"durationEditable\",{get:function(){return this._def.ui.durationEditable;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"constraint\",{get:function(){return this._def.ui.constraints[0]||null;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"overlap\",{get:function(){return this._def.ui.overlap;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"allow\",{get:function(){return this._def.ui.allows[0]||null;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"backgroundColor\",{get:function(){return this._def.ui.backgroundColor;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"borderColor\",{get:function(){return this._def.ui.borderColor;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"textColor\",{get:function(){return this._def.ui.textColor;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"classNames\",{// NOTE: user can't modify these because Object.freeze was called in event-def parsing\nget:function(){return this._def.ui.classNames;},enumerable:true,configurable:true});Object.defineProperty(EventApi.prototype,\"extendedProps\",{get:function(){return this._def.extendedProps;},enumerable:true,configurable:true});return EventApi;}();/*\r\n    Specifying nextDayThreshold signals that all-day ranges should be sliced.\r\n    */function sliceEventStore(eventStore,eventUiBases,framingRange,nextDayThreshold){var inverseBgByGroupId={};var inverseBgByDefId={};var defByGroupId={};var bgRanges=[];var fgRanges=[];var eventUis=compileEventUis(eventStore.defs,eventUiBases);for(var defId in eventStore.defs){var def=eventStore.defs[defId];if(def.rendering==='inverse-background'){if(def.groupId){inverseBgByGroupId[def.groupId]=[];if(!defByGroupId[def.groupId]){defByGroupId[def.groupId]=def;}}else{inverseBgByDefId[defId]=[];}}}for(var instanceId in eventStore.instances){var instance=eventStore.instances[instanceId];var def=eventStore.defs[instance.defId];var ui=eventUis[def.defId];var origRange=instance.range;var normalRange=!def.allDay&&nextDayThreshold?computeVisibleDayRange(origRange,nextDayThreshold):origRange;var slicedRange=intersectRanges(normalRange,framingRange);if(slicedRange){if(def.rendering==='inverse-background'){if(def.groupId){inverseBgByGroupId[def.groupId].push(slicedRange);}else{inverseBgByDefId[instance.defId].push(slicedRange);}}else{(def.rendering==='background'?bgRanges:fgRanges).push({def:def,ui:ui,instance:instance,range:slicedRange,isStart:normalRange.start&&normalRange.start.valueOf()===slicedRange.start.valueOf(),isEnd:normalRange.end&&normalRange.end.valueOf()===slicedRange.end.valueOf()});}}}for(var groupId in inverseBgByGroupId){// BY GROUP\nvar ranges=inverseBgByGroupId[groupId];var invertedRanges=invertRanges(ranges,framingRange);for(var _i=0,invertedRanges_1=invertedRanges;_i<invertedRanges_1.length;_i++){var invertedRange=invertedRanges_1[_i];var def=defByGroupId[groupId];var ui=eventUis[def.defId];bgRanges.push({def:def,ui:ui,instance:null,range:invertedRange,isStart:false,isEnd:false});}}for(var defId in inverseBgByDefId){var ranges=inverseBgByDefId[defId];var invertedRanges=invertRanges(ranges,framingRange);for(var _a=0,invertedRanges_2=invertedRanges;_a<invertedRanges_2.length;_a++){var invertedRange=invertedRanges_2[_a];bgRanges.push({def:eventStore.defs[defId],ui:eventUis[defId],instance:null,range:invertedRange,isStart:false,isEnd:false});}}return{bg:bgRanges,fg:fgRanges};}function hasBgRendering(def){return def.rendering==='background'||def.rendering==='inverse-background';}function filterSegsViaEls(context,segs,isMirror){var calendar=context.calendar,view=context.view;if(calendar.hasPublicHandlers('eventRender')){segs=segs.filter(function(seg){var custom=calendar.publiclyTrigger('eventRender',[{event:new EventApi(calendar,seg.eventRange.def,seg.eventRange.instance),isMirror:isMirror,isStart:seg.isStart,isEnd:seg.isEnd,// TODO: include seg.range once all components consistently generate it\nel:seg.el,view:view}]);if(custom===false){// means don't render at all\nreturn false;}else if(custom&&custom!==true){seg.el=custom;}return true;});}for(var _i=0,segs_1=segs;_i<segs_1.length;_i++){var seg=segs_1[_i];setElSeg(seg.el,seg);}return segs;}function setElSeg(el,seg){el.fcSeg=seg;}function getElSeg(el){return el.fcSeg||null;}// event ui computation\nfunction compileEventUis(eventDefs,eventUiBases){return mapHash(eventDefs,function(eventDef){return compileEventUi(eventDef,eventUiBases);});}function compileEventUi(eventDef,eventUiBases){var uis=[];if(eventUiBases['']){uis.push(eventUiBases['']);}if(eventUiBases[eventDef.defId]){uis.push(eventUiBases[eventDef.defId]);}uis.push(eventDef.ui);return combineEventUis(uis);}// triggers\nfunction triggerRenderedSegs(context,segs,isMirrors){var calendar=context.calendar,view=context.view;if(calendar.hasPublicHandlers('eventPositioned')){for(var _i=0,segs_2=segs;_i<segs_2.length;_i++){var seg=segs_2[_i];calendar.publiclyTriggerAfterSizing('eventPositioned',[{event:new EventApi(calendar,seg.eventRange.def,seg.eventRange.instance),isMirror:isMirrors,isStart:seg.isStart,isEnd:seg.isEnd,el:seg.el,view:view}]);}}if(!calendar.state.loadingLevel){// avoid initial empty state while pending\ncalendar.afterSizingTriggers._eventsPositioned=[null];// fire once\n}}function triggerWillRemoveSegs(context,segs,isMirrors){var calendar=context.calendar,view=context.view;for(var _i=0,segs_3=segs;_i<segs_3.length;_i++){var seg=segs_3[_i];calendar.trigger('eventElRemove',seg.el);}if(calendar.hasPublicHandlers('eventDestroy')){for(var _a=0,segs_4=segs;_a<segs_4.length;_a++){var seg=segs_4[_a];calendar.publiclyTrigger('eventDestroy',[{event:new EventApi(calendar,seg.eventRange.def,seg.eventRange.instance),isMirror:isMirrors,el:seg.el,view:view}]);}}}// is-interactable\nfunction computeEventDraggable(context,eventDef,eventUi){var calendar=context.calendar,view=context.view;var transformers=calendar.pluginSystem.hooks.isDraggableTransformers;var val=eventUi.startEditable;for(var _i=0,transformers_1=transformers;_i<transformers_1.length;_i++){var transformer=transformers_1[_i];val=transformer(val,eventDef,eventUi,view);}return val;}function computeEventStartResizable(context,eventDef,eventUi){return eventUi.durationEditable&&context.options.eventResizableFromStart;}function computeEventEndResizable(context,eventDef,eventUi){return eventUi.durationEditable;}// applies the mutation to ALL defs/instances within the event store\nfunction applyMutationToEventStore(eventStore,eventConfigBase,mutation,calendar){var eventConfigs=compileEventUis(eventStore.defs,eventConfigBase);var dest=createEmptyEventStore();for(var defId in eventStore.defs){var def=eventStore.defs[defId];dest.defs[defId]=applyMutationToEventDef(def,eventConfigs[defId],mutation,calendar.pluginSystem.hooks.eventDefMutationAppliers,calendar);}for(var instanceId in eventStore.instances){var instance=eventStore.instances[instanceId];var def=dest.defs[instance.defId];// important to grab the newly modified def\ndest.instances[instanceId]=applyMutationToEventInstance(instance,def,eventConfigs[instance.defId],mutation,calendar);}return dest;}function applyMutationToEventDef(eventDef,eventConfig,mutation,appliers,calendar){var standardProps=mutation.standardProps||{};// if hasEnd has not been specified, guess a good value based on deltas.\n// if duration will change, there's no way the default duration will persist,\n// and thus, we need to mark the event as having a real end\nif(standardProps.hasEnd==null&&eventConfig.durationEditable&&(mutation.startDelta||mutation.endDelta)){standardProps.hasEnd=true;// TODO: is this mutation okay?\n}var copy=__assign({},eventDef,standardProps,{ui:__assign({},eventDef.ui,standardProps.ui)});if(mutation.extendedProps){copy.extendedProps=__assign({},copy.extendedProps,mutation.extendedProps);}for(var _i=0,appliers_1=appliers;_i<appliers_1.length;_i++){var applier=appliers_1[_i];applier(copy,mutation,calendar);}if(!copy.hasEnd&&calendar.opt('forceEventDuration')){copy.hasEnd=true;}return copy;}function applyMutationToEventInstance(eventInstance,eventDef,// must first be modified by applyMutationToEventDef\neventConfig,mutation,calendar){var dateEnv=calendar.dateEnv;var forceAllDay=mutation.standardProps&&mutation.standardProps.allDay===true;var clearEnd=mutation.standardProps&&mutation.standardProps.hasEnd===false;var copy=__assign({},eventInstance);if(forceAllDay){copy.range=computeAlignedDayRange(copy.range);}if(mutation.datesDelta&&eventConfig.startEditable){copy.range={start:dateEnv.add(copy.range.start,mutation.datesDelta),end:dateEnv.add(copy.range.end,mutation.datesDelta)};}if(mutation.startDelta&&eventConfig.durationEditable){copy.range={start:dateEnv.add(copy.range.start,mutation.startDelta),end:copy.range.end};}if(mutation.endDelta&&eventConfig.durationEditable){copy.range={start:copy.range.start,end:dateEnv.add(copy.range.end,mutation.endDelta)};}if(clearEnd){copy.range={start:copy.range.start,end:calendar.getDefaultEventEnd(eventDef.allDay,copy.range.start)};}// in case event was all-day but the supplied deltas were not\n// better util for this?\nif(eventDef.allDay){copy.range={start:startOfDay(copy.range.start),end:startOfDay(copy.range.end)};}// handle invalid durations\nif(copy.range.end<copy.range.start){copy.range.end=calendar.getDefaultEventEnd(eventDef.allDay,copy.range.start);}return copy;}function reduceEventStore(eventStore,action,eventSources,dateProfile,calendar){switch(action.type){case'RECEIVE_EVENTS':// raw\nreturn receiveRawEvents(eventStore,eventSources[action.sourceId],action.fetchId,action.fetchRange,action.rawEvents,calendar);case'ADD_EVENTS':// already parsed, but not expanded\nreturn addEvent(eventStore,action.eventStore,// new ones\ndateProfile?dateProfile.activeRange:null,calendar);case'MERGE_EVENTS':// already parsed and expanded\nreturn mergeEventStores(eventStore,action.eventStore);case'PREV':// TODO: how do we track all actions that affect dateProfile :(\ncase'NEXT':case'SET_DATE':case'SET_VIEW_TYPE':if(dateProfile){return expandRecurring(eventStore,dateProfile.activeRange,calendar);}else{return eventStore;}case'CHANGE_TIMEZONE':return rezoneDates(eventStore,action.oldDateEnv,calendar.dateEnv);case'MUTATE_EVENTS':return applyMutationToRelated(eventStore,action.instanceId,action.mutation,action.fromApi,calendar);case'REMOVE_EVENT_INSTANCES':return excludeInstances(eventStore,action.instances);case'REMOVE_EVENT_DEF':return filterEventStoreDefs(eventStore,function(eventDef){return eventDef.defId!==action.defId;});case'REMOVE_EVENT_SOURCE':return excludeEventsBySourceId(eventStore,action.sourceId);case'REMOVE_ALL_EVENT_SOURCES':return filterEventStoreDefs(eventStore,function(eventDef){return!eventDef.sourceId;// only keep events with no source id\n});case'REMOVE_ALL_EVENTS':return createEmptyEventStore();case'RESET_EVENTS':return{defs:eventStore.defs,instances:eventStore.instances};default:return eventStore;}}function receiveRawEvents(eventStore,eventSource,fetchId,fetchRange,rawEvents,calendar){if(eventSource&&// not already removed\nfetchId===eventSource.latestFetchId// TODO: wish this logic was always in event-sources\n){var subset=parseEvents(transformRawEvents(rawEvents,eventSource,calendar),eventSource.sourceId,calendar);if(fetchRange){subset=expandRecurring(subset,fetchRange,calendar);}return mergeEventStores(excludeEventsBySourceId(eventStore,eventSource.sourceId),subset);}return eventStore;}function addEvent(eventStore,subset,expandRange,calendar){if(expandRange){subset=expandRecurring(subset,expandRange,calendar);}return mergeEventStores(eventStore,subset);}function rezoneDates(eventStore,oldDateEnv,newDateEnv){var defs=eventStore.defs;var instances=mapHash(eventStore.instances,function(instance){var def=defs[instance.defId];if(def.allDay||def.recurringDef){return instance;// isn't dependent on timezone\n}else{return __assign({},instance,{range:{start:newDateEnv.createMarker(oldDateEnv.toDate(instance.range.start,instance.forcedStartTzo)),end:newDateEnv.createMarker(oldDateEnv.toDate(instance.range.end,instance.forcedEndTzo))},forcedStartTzo:newDateEnv.canComputeOffset?null:instance.forcedStartTzo,forcedEndTzo:newDateEnv.canComputeOffset?null:instance.forcedEndTzo});}});return{defs:defs,instances:instances};}function applyMutationToRelated(eventStore,instanceId,mutation,fromApi,calendar){var relevant=getRelevantEvents(eventStore,instanceId);var eventConfigBase=fromApi?{'':{startEditable:true,durationEditable:true,constraints:[],overlap:null,allows:[],backgroundColor:'',borderColor:'',textColor:'',classNames:[]}}:calendar.eventUiBases;relevant=applyMutationToEventStore(relevant,eventConfigBase,mutation,calendar);return mergeEventStores(eventStore,relevant);}function excludeEventsBySourceId(eventStore,sourceId){return filterEventStoreDefs(eventStore,function(eventDef){return eventDef.sourceId!==sourceId;});}// QUESTION: why not just return instances? do a general object-property-exclusion util\nfunction excludeInstances(eventStore,removals){return{defs:eventStore.defs,instances:filterHash(eventStore.instances,function(instance){return!removals[instance.instanceId];})};}// high-level segmenting-aware tester functions\n// ------------------------------------------------------------------------------------------------------------------------\nfunction isInteractionValid(interaction,calendar){return isNewPropsValid({eventDrag:interaction},calendar);// HACK: the eventDrag props is used for ALL interactions\n}function isDateSelectionValid(dateSelection,calendar){return isNewPropsValid({dateSelection:dateSelection},calendar);}function isNewPropsValid(newProps,calendar){var view=calendar.view;var props=__assign({businessHours:view?view.props.businessHours:createEmptyEventStore(),dateSelection:'',eventStore:calendar.state.eventStore,eventUiBases:calendar.eventUiBases,eventSelection:'',eventDrag:null,eventResize:null},newProps);return(calendar.pluginSystem.hooks.isPropsValid||isPropsValid)(props,calendar);}function isPropsValid(state,calendar,dateSpanMeta,filterConfig){if(dateSpanMeta===void 0){dateSpanMeta={};}if(state.eventDrag&&!isInteractionPropsValid(state,calendar,dateSpanMeta,filterConfig)){return false;}if(state.dateSelection&&!isDateSelectionPropsValid(state,calendar,dateSpanMeta,filterConfig)){return false;}return true;}// Moving Event Validation\n// ------------------------------------------------------------------------------------------------------------------------\nfunction isInteractionPropsValid(state,calendar,dateSpanMeta,filterConfig){var interaction=state.eventDrag;// HACK: the eventDrag props is used for ALL interactions\nvar subjectEventStore=interaction.mutatedEvents;var subjectDefs=subjectEventStore.defs;var subjectInstances=subjectEventStore.instances;var subjectConfigs=compileEventUis(subjectDefs,interaction.isEvent?state.eventUiBases:{'':calendar.selectionConfig}// if not a real event, validate as a selection\n);if(filterConfig){subjectConfigs=mapHash(subjectConfigs,filterConfig);}var otherEventStore=excludeInstances(state.eventStore,interaction.affectedEvents.instances);// exclude the subject events. TODO: exclude defs too?\nvar otherDefs=otherEventStore.defs;var otherInstances=otherEventStore.instances;var otherConfigs=compileEventUis(otherDefs,state.eventUiBases);for(var subjectInstanceId in subjectInstances){var subjectInstance=subjectInstances[subjectInstanceId];var subjectRange=subjectInstance.range;var subjectConfig=subjectConfigs[subjectInstance.defId];var subjectDef=subjectDefs[subjectInstance.defId];// constraint\nif(!allConstraintsPass(subjectConfig.constraints,subjectRange,otherEventStore,state.businessHours,calendar)){return false;}// overlap\nvar overlapFunc=calendar.opt('eventOverlap');if(typeof overlapFunc!=='function'){overlapFunc=null;}for(var otherInstanceId in otherInstances){var otherInstance=otherInstances[otherInstanceId];// intersect! evaluate\nif(rangesIntersect(subjectRange,otherInstance.range)){var otherOverlap=otherConfigs[otherInstance.defId].overlap;// consider the other event's overlap. only do this if the subject event is a \"real\" event\nif(otherOverlap===false&&interaction.isEvent){return false;}if(subjectConfig.overlap===false){return false;}if(overlapFunc&&!overlapFunc(new EventApi(calendar,otherDefs[otherInstance.defId],otherInstance),// still event\nnew EventApi(calendar,subjectDef,subjectInstance)// moving event\n)){return false;}}}// allow (a function)\nvar calendarEventStore=calendar.state.eventStore;// need global-to-calendar, not local to component (splittable)state\nfor(var _i=0,_a=subjectConfig.allows;_i<_a.length;_i++){var subjectAllow=_a[_i];var subjectDateSpan=__assign({},dateSpanMeta,{range:subjectInstance.range,allDay:subjectDef.allDay});var origDef=calendarEventStore.defs[subjectDef.defId];var origInstance=calendarEventStore.instances[subjectInstanceId];var eventApi=void 0;if(origDef){// was previously in the calendar\neventApi=new EventApi(calendar,origDef,origInstance);}else{// was an external event\neventApi=new EventApi(calendar,subjectDef);// no instance, because had no dates\n}if(!subjectAllow(calendar.buildDateSpanApi(subjectDateSpan),eventApi)){return false;}}}return true;}// Date Selection Validation\n// ------------------------------------------------------------------------------------------------------------------------\nfunction isDateSelectionPropsValid(state,calendar,dateSpanMeta,filterConfig){var relevantEventStore=state.eventStore;var relevantDefs=relevantEventStore.defs;var relevantInstances=relevantEventStore.instances;var selection=state.dateSelection;var selectionRange=selection.range;var selectionConfig=calendar.selectionConfig;if(filterConfig){selectionConfig=filterConfig(selectionConfig);}// constraint\nif(!allConstraintsPass(selectionConfig.constraints,selectionRange,relevantEventStore,state.businessHours,calendar)){return false;}// overlap\nvar overlapFunc=calendar.opt('selectOverlap');if(typeof overlapFunc!=='function'){overlapFunc=null;}for(var relevantInstanceId in relevantInstances){var relevantInstance=relevantInstances[relevantInstanceId];// intersect! evaluate\nif(rangesIntersect(selectionRange,relevantInstance.range)){if(selectionConfig.overlap===false){return false;}if(overlapFunc&&!overlapFunc(new EventApi(calendar,relevantDefs[relevantInstance.defId],relevantInstance))){return false;}}}// allow (a function)\nfor(var _i=0,_a=selectionConfig.allows;_i<_a.length;_i++){var selectionAllow=_a[_i];var fullDateSpan=__assign({},dateSpanMeta,selection);if(!selectionAllow(calendar.buildDateSpanApi(fullDateSpan),null)){return false;}}return true;}// Constraint Utils\n// ------------------------------------------------------------------------------------------------------------------------\nfunction allConstraintsPass(constraints,subjectRange,otherEventStore,businessHoursUnexpanded,calendar){for(var _i=0,constraints_1=constraints;_i<constraints_1.length;_i++){var constraint=constraints_1[_i];if(!anyRangesContainRange(constraintToRanges(constraint,subjectRange,otherEventStore,businessHoursUnexpanded,calendar),subjectRange)){return false;}}return true;}function constraintToRanges(constraint,subjectRange,// for expanding a recurring constraint, or expanding business hours\notherEventStore,// for if constraint is an even group ID\nbusinessHoursUnexpanded,// for if constraint is 'businessHours'\ncalendar// for expanding businesshours\n){if(constraint==='businessHours'){return eventStoreToRanges(expandRecurring(businessHoursUnexpanded,subjectRange,calendar));}else if(typeof constraint==='string'){// an group ID\nreturn eventStoreToRanges(filterEventStoreDefs(otherEventStore,function(eventDef){return eventDef.groupId===constraint;}));}else if(typeof constraint==='object'&&constraint){// non-null object\nreturn eventStoreToRanges(expandRecurring(constraint,subjectRange,calendar));}return[];// if it's false\n}// TODO: move to event-store file?\nfunction eventStoreToRanges(eventStore){var instances=eventStore.instances;var ranges=[];for(var instanceId in instances){ranges.push(instances[instanceId].range);}return ranges;}// TODO: move to geom file?\nfunction anyRangesContainRange(outerRanges,innerRange){for(var _i=0,outerRanges_1=outerRanges;_i<outerRanges_1.length;_i++){var outerRange=outerRanges_1[_i];if(rangeContainsRange(outerRange,innerRange)){return true;}}return false;}// Parsing\n// ------------------------------------------------------------------------------------------------------------------------\nfunction normalizeConstraint(input,calendar){if(Array.isArray(input)){return parseEvents(input,'',calendar,true);// allowOpenRange=true\n}else if(typeof input==='object'&&input){// non-null object\nreturn parseEvents([input],'',calendar,true);// allowOpenRange=true\n}else if(input!=null){return String(input);}else{return null;}}function htmlEscape(s){return(s+'').replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/'/g,'&#039;').replace(/\"/g,'&quot;').replace(/\\n/g,'<br />');}// Given a hash of CSS properties, returns a string of CSS.\n// Uses property names as-is (no camel-case conversion). Will not make statements for null/undefined values.\nfunction cssToStr(cssProps){var statements=[];for(var name_1 in cssProps){var val=cssProps[name_1];if(val!=null&&val!==''){statements.push(name_1+':'+val);}}return statements.join(';');}// Given an object hash of HTML attribute names to values,\n// generates a string that can be injected between < > in HTML\nfunction attrsToStr(attrs){var parts=[];for(var name_2 in attrs){var val=attrs[name_2];if(val!=null){parts.push(name_2+'=\"'+htmlEscape(val)+'\"');}}return parts.join(' ');}function parseClassName(raw){if(Array.isArray(raw)){return raw;}else if(typeof raw==='string'){return raw.split(/\\s+/);}else{return[];}}var UNSCOPED_EVENT_UI_PROPS={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:parseClassName,classNames:parseClassName,color:String,backgroundColor:String,borderColor:String,textColor:String};function processUnscopedUiProps(rawProps,calendar,leftovers){var props=refineProps(rawProps,UNSCOPED_EVENT_UI_PROPS,{},leftovers);var constraint=normalizeConstraint(props.constraint,calendar);return{startEditable:props.startEditable!=null?props.startEditable:props.editable,durationEditable:props.durationEditable!=null?props.durationEditable:props.editable,constraints:constraint!=null?[constraint]:[],overlap:props.overlap,allows:props.allow!=null?[props.allow]:[],backgroundColor:props.backgroundColor||props.color,borderColor:props.borderColor||props.color,textColor:props.textColor,classNames:props.classNames.concat(props.className)};}function processScopedUiProps(prefix,rawScoped,calendar,leftovers){var rawUnscoped={};var wasFound={};for(var key in UNSCOPED_EVENT_UI_PROPS){var scopedKey=prefix+capitaliseFirstLetter(key);rawUnscoped[key]=rawScoped[scopedKey];wasFound[scopedKey]=true;}if(prefix==='event'){rawUnscoped.editable=rawScoped.editable;// special case. there is no 'eventEditable', just 'editable'\n}if(leftovers){for(var key in rawScoped){if(!wasFound[key]){leftovers[key]=rawScoped[key];}}}return processUnscopedUiProps(rawUnscoped,calendar);}var EMPTY_EVENT_UI={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:'',borderColor:'',textColor:'',classNames:[]};// prevent against problems with <2 args!\nfunction combineEventUis(uis){return uis.reduce(combineTwoEventUis,EMPTY_EVENT_UI);}function combineTwoEventUis(item0,item1){return{startEditable:item1.startEditable!=null?item1.startEditable:item0.startEditable,durationEditable:item1.durationEditable!=null?item1.durationEditable:item0.durationEditable,constraints:item0.constraints.concat(item1.constraints),overlap:typeof item1.overlap==='boolean'?item1.overlap:item0.overlap,allows:item0.allows.concat(item1.allows),backgroundColor:item1.backgroundColor||item0.backgroundColor,borderColor:item1.borderColor||item0.borderColor,textColor:item1.textColor||item0.textColor,classNames:item0.classNames.concat(item1.classNames)};}var NON_DATE_PROPS={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null};var DATE_PROPS={start:null,date:null,end:null,allDay:null};var uid=0;function parseEvent(raw,sourceId,calendar,allowOpenRange){var allDayDefault=computeIsAllDayDefault(sourceId,calendar);var leftovers0={};var recurringRes=parseRecurring(raw,// raw, but with single-event stuff stripped out\nallDayDefault,calendar.dateEnv,calendar.pluginSystem.hooks.recurringTypes,leftovers0// will populate with non-recurring props\n);if(recurringRes){var def=parseEventDef(leftovers0,sourceId,recurringRes.allDay,Boolean(recurringRes.duration),calendar);def.recurringDef={typeId:recurringRes.typeId,typeData:recurringRes.typeData,duration:recurringRes.duration};return{def:def,instance:null};}else{var leftovers1={};var singleRes=parseSingle(raw,allDayDefault,calendar,leftovers1,allowOpenRange);if(singleRes){var def=parseEventDef(leftovers1,sourceId,singleRes.allDay,singleRes.hasEnd,calendar);var instance=createEventInstance(def.defId,singleRes.range,singleRes.forcedStartTzo,singleRes.forcedEndTzo);return{def:def,instance:instance};}}return null;}/*\r\n    Will NOT populate extendedProps with the leftover properties.\r\n    Will NOT populate date-related props.\r\n    The EventNonDateInput has been normalized (id => publicId, etc).\r\n    */function parseEventDef(raw,sourceId,allDay,hasEnd,calendar){var leftovers={};var def=pluckNonDateProps(raw,calendar,leftovers);def.defId=String(uid++);def.sourceId=sourceId;def.allDay=allDay;def.hasEnd=hasEnd;for(var _i=0,_a=calendar.pluginSystem.hooks.eventDefParsers;_i<_a.length;_i++){var eventDefParser=_a[_i];var newLeftovers={};eventDefParser(def,leftovers,newLeftovers);leftovers=newLeftovers;}def.extendedProps=__assign(leftovers,def.extendedProps||{});// help out EventApi from having user modify props\nObject.freeze(def.ui.classNames);Object.freeze(def.extendedProps);return def;}function createEventInstance(defId,range,forcedStartTzo,forcedEndTzo){return{instanceId:String(uid++),defId:defId,range:range,forcedStartTzo:forcedStartTzo==null?null:forcedStartTzo,forcedEndTzo:forcedEndTzo==null?null:forcedEndTzo};}function parseSingle(raw,allDayDefault,calendar,leftovers,allowOpenRange){var props=pluckDateProps(raw,leftovers);var allDay=props.allDay;var startMeta;var startMarker=null;var hasEnd=false;var endMeta;var endMarker=null;startMeta=calendar.dateEnv.createMarkerMeta(props.start);if(startMeta){startMarker=startMeta.marker;}else if(!allowOpenRange){return null;}if(props.end!=null){endMeta=calendar.dateEnv.createMarkerMeta(props.end);}if(allDay==null){if(allDayDefault!=null){allDay=allDayDefault;}else{// fall back to the date props LAST\nallDay=(!startMeta||startMeta.isTimeUnspecified)&&(!endMeta||endMeta.isTimeUnspecified);}}if(allDay&&startMarker){startMarker=startOfDay(startMarker);}if(endMeta){endMarker=endMeta.marker;if(allDay){endMarker=startOfDay(endMarker);}if(startMarker&&endMarker<=startMarker){endMarker=null;}}if(endMarker){hasEnd=true;}else if(!allowOpenRange){hasEnd=calendar.opt('forceEventDuration')||false;endMarker=calendar.dateEnv.add(startMarker,allDay?calendar.defaultAllDayEventDuration:calendar.defaultTimedEventDuration);}return{allDay:allDay,hasEnd:hasEnd,range:{start:startMarker,end:endMarker},forcedStartTzo:startMeta?startMeta.forcedTzo:null,forcedEndTzo:endMeta?endMeta.forcedTzo:null};}function pluckDateProps(raw,leftovers){var props=refineProps(raw,DATE_PROPS,{},leftovers);props.start=props.start!==null?props.start:props.date;delete props.date;return props;}function pluckNonDateProps(raw,calendar,leftovers){var preLeftovers={};var props=refineProps(raw,NON_DATE_PROPS,{},preLeftovers);var ui=processUnscopedUiProps(preLeftovers,calendar,leftovers);props.publicId=props.id;delete props.id;props.ui=ui;return props;}function computeIsAllDayDefault(sourceId,calendar){var res=null;if(sourceId){var source=calendar.state.eventSources[sourceId];res=source.allDayDefault;}if(res==null){res=calendar.opt('allDayDefault');}return res;}var DEF_DEFAULTS={startTime:'09:00',endTime:'17:00',daysOfWeek:[1,2,3,4,5],rendering:'inverse-background',classNames:'fc-nonbusiness',groupId:'_businessHours'// so multiple defs get grouped\n};/*\r\n    TODO: pass around as EventDefHash!!!\r\n    */function parseBusinessHours(input,calendar){return parseEvents(refineInputs(input),'',calendar);}function refineInputs(input){var rawDefs;if(input===true){rawDefs=[{}];// will get DEF_DEFAULTS verbatim\n}else if(Array.isArray(input)){// if specifying an array, every sub-definition NEEDS a day-of-week\nrawDefs=input.filter(function(rawDef){return rawDef.daysOfWeek;});}else if(typeof input==='object'&&input){// non-null object\nrawDefs=[input];}else{// is probably false\nrawDefs=[];}rawDefs=rawDefs.map(function(rawDef){return __assign({},DEF_DEFAULTS,rawDef);});return rawDefs;}function memoizeRendering(renderFunc,unrenderFunc,dependencies){if(dependencies===void 0){dependencies=[];}var dependents=[];var thisContext;var prevArgs;function unrender(){if(prevArgs){for(var _i=0,dependents_1=dependents;_i<dependents_1.length;_i++){var dependent=dependents_1[_i];dependent.unrender();}if(unrenderFunc){unrenderFunc.apply(thisContext,prevArgs);}prevArgs=null;}}function res(){if(!prevArgs||!isArraysEqual(prevArgs,arguments)){unrender();thisContext=this;prevArgs=arguments;renderFunc.apply(this,arguments);}}res.dependents=dependents;res.unrender=unrender;for(var _i=0,dependencies_1=dependencies;_i<dependencies_1.length;_i++){var dependency=dependencies_1[_i];dependency.dependents.push(res);}return res;}var EMPTY_EVENT_STORE=createEmptyEventStore();// for purecomponents. TODO: keep elsewhere\nvar Splitter=/** @class */function(){function Splitter(){this.getKeysForEventDefs=memoize(this._getKeysForEventDefs);this.splitDateSelection=memoize(this._splitDateSpan);this.splitEventStore=memoize(this._splitEventStore);this.splitIndividualUi=memoize(this._splitIndividualUi);this.splitEventDrag=memoize(this._splitInteraction);this.splitEventResize=memoize(this._splitInteraction);this.eventUiBuilders={};// TODO: typescript protection\n}Splitter.prototype.splitProps=function(props){var _this=this;var keyInfos=this.getKeyInfo(props);var defKeys=this.getKeysForEventDefs(props.eventStore);var dateSelections=this.splitDateSelection(props.dateSelection);var individualUi=this.splitIndividualUi(props.eventUiBases,defKeys);// the individual *bases*\nvar eventStores=this.splitEventStore(props.eventStore,defKeys);var eventDrags=this.splitEventDrag(props.eventDrag);var eventResizes=this.splitEventResize(props.eventResize);var splitProps={};this.eventUiBuilders=mapHash(keyInfos,function(info,key){return _this.eventUiBuilders[key]||memoize(buildEventUiForKey);});for(var key in keyInfos){var keyInfo=keyInfos[key];var eventStore=eventStores[key]||EMPTY_EVENT_STORE;var buildEventUi=this.eventUiBuilders[key];splitProps[key]={businessHours:keyInfo.businessHours||props.businessHours,dateSelection:dateSelections[key]||null,eventStore:eventStore,eventUiBases:buildEventUi(props.eventUiBases[''],keyInfo.ui,individualUi[key]),eventSelection:eventStore.instances[props.eventSelection]?props.eventSelection:'',eventDrag:eventDrags[key]||null,eventResize:eventResizes[key]||null};}return splitProps;};Splitter.prototype._splitDateSpan=function(dateSpan){var dateSpans={};if(dateSpan){var keys=this.getKeysForDateSpan(dateSpan);for(var _i=0,keys_1=keys;_i<keys_1.length;_i++){var key=keys_1[_i];dateSpans[key]=dateSpan;}}return dateSpans;};Splitter.prototype._getKeysForEventDefs=function(eventStore){var _this=this;return mapHash(eventStore.defs,function(eventDef){return _this.getKeysForEventDef(eventDef);});};Splitter.prototype._splitEventStore=function(eventStore,defKeys){var defs=eventStore.defs,instances=eventStore.instances;var splitStores={};for(var defId in defs){for(var _i=0,_a=defKeys[defId];_i<_a.length;_i++){var key=_a[_i];if(!splitStores[key]){splitStores[key]=createEmptyEventStore();}splitStores[key].defs[defId]=defs[defId];}}for(var instanceId in instances){var instance=instances[instanceId];for(var _b=0,_c=defKeys[instance.defId];_b<_c.length;_b++){var key=_c[_b];if(splitStores[key]){// must have already been created\nsplitStores[key].instances[instanceId]=instance;}}}return splitStores;};Splitter.prototype._splitIndividualUi=function(eventUiBases,defKeys){var splitHashes={};for(var defId in eventUiBases){if(defId){// not the '' key\nfor(var _i=0,_a=defKeys[defId];_i<_a.length;_i++){var key=_a[_i];if(!splitHashes[key]){splitHashes[key]={};}splitHashes[key][defId]=eventUiBases[defId];}}}return splitHashes;};Splitter.prototype._splitInteraction=function(interaction){var splitStates={};if(interaction){var affectedStores_1=this._splitEventStore(interaction.affectedEvents,this._getKeysForEventDefs(interaction.affectedEvents)// can't use cached. might be events from other calendar\n);// can't rely on defKeys because event data is mutated\nvar mutatedKeysByDefId=this._getKeysForEventDefs(interaction.mutatedEvents);var mutatedStores_1=this._splitEventStore(interaction.mutatedEvents,mutatedKeysByDefId);var populate=function(key){if(!splitStates[key]){splitStates[key]={affectedEvents:affectedStores_1[key]||EMPTY_EVENT_STORE,mutatedEvents:mutatedStores_1[key]||EMPTY_EVENT_STORE,isEvent:interaction.isEvent,origSeg:interaction.origSeg};}};for(var key in affectedStores_1){populate(key);}for(var key in mutatedStores_1){populate(key);}}return splitStates;};return Splitter;}();function buildEventUiForKey(allUi,eventUiForKey,individualUi){var baseParts=[];if(allUi){baseParts.push(allUi);}if(eventUiForKey){baseParts.push(eventUiForKey);}var stuff={'':combineEventUis(baseParts)};if(individualUi){__assign(stuff,individualUi);}return stuff;}// Generates HTML for an anchor to another view into the calendar.\n// Will either generate an <a> tag or a non-clickable <span> tag, depending on enabled settings.\n// `gotoOptions` can either be a DateMarker, or an object with the form:\n// { date, type, forceOff }\n// `type` is a view-type like \"day\" or \"week\". default value is \"day\".\n// `attrs` and `innerHtml` are use to generate the rest of the HTML tag.\nfunction buildGotoAnchorHtml(allOptions,dateEnv,gotoOptions,attrs,innerHtml){var date;var type;var forceOff;var finalOptions;if(gotoOptions instanceof Date){date=gotoOptions;// a single date-like input\n}else{date=gotoOptions.date;type=gotoOptions.type;forceOff=gotoOptions.forceOff;}finalOptions={date:dateEnv.formatIso(date,{omitTime:true}),type:type||'day'};if(typeof attrs==='string'){innerHtml=attrs;attrs=null;}attrs=attrs?' '+attrsToStr(attrs):'';// will have a leading space\ninnerHtml=innerHtml||'';if(!forceOff&&allOptions.navLinks){return'<a'+attrs+' data-goto=\"'+htmlEscape(JSON.stringify(finalOptions))+'\">'+innerHtml+'</a>';}else{return'<span'+attrs+'>'+innerHtml+'</span>';}}function getAllDayHtml(allOptions){return allOptions.allDayHtml||htmlEscape(allOptions.allDayText);}// Computes HTML classNames for a single-day element\nfunction getDayClasses(date,dateProfile,context,noThemeHighlight){var calendar=context.calendar,options=context.options,theme=context.theme,dateEnv=context.dateEnv;var classes=[];var todayStart;var todayEnd;if(!rangeContainsMarker(dateProfile.activeRange,date)){classes.push('fc-disabled-day');}else{classes.push('fc-'+DAY_IDS[date.getUTCDay()]);if(options.monthMode&&dateEnv.getMonth(date)!==dateEnv.getMonth(dateProfile.currentRange.start)){classes.push('fc-other-month');}todayStart=startOfDay(calendar.getNow());todayEnd=addDays(todayStart,1);if(date<todayStart){classes.push('fc-past');}else if(date>=todayEnd){classes.push('fc-future');}else{classes.push('fc-today');if(noThemeHighlight!==true){classes.push(theme.getClass('today'));}}}return classes;}// given a function that resolves a result asynchronously.\n// the function can either call passed-in success and failure callbacks,\n// or it can return a promise.\n// if you need to pass additional params to func, bind them first.\nfunction unpromisify(func,success,failure){// guard against success/failure callbacks being called more than once\n// and guard against a promise AND callback being used together.\nvar isResolved=false;var wrappedSuccess=function(){if(!isResolved){isResolved=true;success.apply(this,arguments);}};var wrappedFailure=function(){if(!isResolved){isResolved=true;if(failure){failure.apply(this,arguments);}}};var res=func(wrappedSuccess,wrappedFailure);if(res&&typeof res.then==='function'){res.then(wrappedSuccess,wrappedFailure);}}var Mixin=/** @class */function(){function Mixin(){}// mix into a CLASS\nMixin.mixInto=function(destClass){this.mixIntoObj(destClass.prototype);};// mix into ANY object\nMixin.mixIntoObj=function(destObj){var _this=this;Object.getOwnPropertyNames(this.prototype).forEach(function(name){if(!destObj[name]){// if destination doesn't already define it\ndestObj[name]=_this.prototype[name];}});};/*\r\n        will override existing methods\r\n        TODO: remove! not used anymore\r\n        */Mixin.mixOver=function(destClass){var _this=this;Object.getOwnPropertyNames(this.prototype).forEach(function(name){destClass.prototype[name]=_this.prototype[name];});};return Mixin;}();/*\r\n    USAGE:\r\n      import { default as EmitterMixin, EmitterInterface } from './EmitterMixin'\r\n    in class:\r\n      on: EmitterInterface['on']\r\n      one: EmitterInterface['one']\r\n      off: EmitterInterface['off']\r\n      trigger: EmitterInterface['trigger']\r\n      triggerWith: EmitterInterface['triggerWith']\r\n      hasHandlers: EmitterInterface['hasHandlers']\r\n    after class:\r\n      EmitterMixin.mixInto(TheClass)\r\n    */var EmitterMixin=/** @class */function(_super){__extends(EmitterMixin,_super);function EmitterMixin(){return _super!==null&&_super.apply(this,arguments)||this;}EmitterMixin.prototype.on=function(type,handler){addToHash(this._handlers||(this._handlers={}),type,handler);return this;// for chaining\n};// todo: add comments\nEmitterMixin.prototype.one=function(type,handler){addToHash(this._oneHandlers||(this._oneHandlers={}),type,handler);return this;// for chaining\n};EmitterMixin.prototype.off=function(type,handler){if(this._handlers){removeFromHash(this._handlers,type,handler);}if(this._oneHandlers){removeFromHash(this._oneHandlers,type,handler);}return this;// for chaining\n};EmitterMixin.prototype.trigger=function(type){var args=[];for(var _i=1;_i<arguments.length;_i++){args[_i-1]=arguments[_i];}this.triggerWith(type,this,args);return this;// for chaining\n};EmitterMixin.prototype.triggerWith=function(type,context,args){if(this._handlers){applyAll(this._handlers[type],context,args);}if(this._oneHandlers){applyAll(this._oneHandlers[type],context,args);delete this._oneHandlers[type];// will never fire again\n}return this;// for chaining\n};EmitterMixin.prototype.hasHandlers=function(type){return this._handlers&&this._handlers[type]&&this._handlers[type].length||this._oneHandlers&&this._oneHandlers[type]&&this._oneHandlers[type].length;};return EmitterMixin;}(Mixin);function addToHash(hash,type,handler){(hash[type]||(hash[type]=[])).push(handler);}function removeFromHash(hash,type,handler){if(handler){if(hash[type]){hash[type]=hash[type].filter(function(func){return func!==handler;});}}else{delete hash[type];// remove all handler funcs for this type\n}}/*\r\n    Records offset information for a set of elements, relative to an origin element.\r\n    Can record the left/right OR the top/bottom OR both.\r\n    Provides methods for querying the cache by position.\r\n    */var PositionCache=/** @class */function(){function PositionCache(originEl,els,isHorizontal,isVertical){this.originEl=originEl;this.els=els;this.isHorizontal=isHorizontal;this.isVertical=isVertical;}// Queries the els for coordinates and stores them.\n// Call this method before using and of the get* methods below.\nPositionCache.prototype.build=function(){var originEl=this.originEl;var originClientRect=this.originClientRect=originEl.getBoundingClientRect();// relative to viewport top-left\nif(this.isHorizontal){this.buildElHorizontals(originClientRect.left);}if(this.isVertical){this.buildElVerticals(originClientRect.top);}};// Populates the left/right internal coordinate arrays\nPositionCache.prototype.buildElHorizontals=function(originClientLeft){var lefts=[];var rights=[];for(var _i=0,_a=this.els;_i<_a.length;_i++){var el=_a[_i];var rect=el.getBoundingClientRect();lefts.push(rect.left-originClientLeft);rights.push(rect.right-originClientLeft);}this.lefts=lefts;this.rights=rights;};// Populates the top/bottom internal coordinate arrays\nPositionCache.prototype.buildElVerticals=function(originClientTop){var tops=[];var bottoms=[];for(var _i=0,_a=this.els;_i<_a.length;_i++){var el=_a[_i];var rect=el.getBoundingClientRect();tops.push(rect.top-originClientTop);bottoms.push(rect.bottom-originClientTop);}this.tops=tops;this.bottoms=bottoms;};// Given a left offset (from document left), returns the index of the el that it horizontally intersects.\n// If no intersection is made, returns undefined.\nPositionCache.prototype.leftToIndex=function(leftPosition){var lefts=this.lefts;var rights=this.rights;var len=lefts.length;var i;for(i=0;i<len;i++){if(leftPosition>=lefts[i]&&leftPosition<rights[i]){return i;}}};// Given a top offset (from document top), returns the index of the el that it vertically intersects.\n// If no intersection is made, returns undefined.\nPositionCache.prototype.topToIndex=function(topPosition){var tops=this.tops;var bottoms=this.bottoms;var len=tops.length;var i;for(i=0;i<len;i++){if(topPosition>=tops[i]&&topPosition<bottoms[i]){return i;}}};// Gets the width of the element at the given index\nPositionCache.prototype.getWidth=function(leftIndex){return this.rights[leftIndex]-this.lefts[leftIndex];};// Gets the height of the element at the given index\nPositionCache.prototype.getHeight=function(topIndex){return this.bottoms[topIndex]-this.tops[topIndex];};return PositionCache;}();/*\r\n    An object for getting/setting scroll-related information for an element.\r\n    Internally, this is done very differently for window versus DOM element,\r\n    so this object serves as a common interface.\r\n    */var ScrollController=/** @class */function(){function ScrollController(){}ScrollController.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight();};ScrollController.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth();};ScrollController.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0;};ScrollController.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0;};ScrollController.prototype.canScrollUp=function(){return this.getScrollTop()>0;};ScrollController.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop();};ScrollController.prototype.canScrollLeft=function(){return this.getScrollLeft()>0;};ScrollController.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft();};return ScrollController;}();var ElementScrollController=/** @class */function(_super){__extends(ElementScrollController,_super);function ElementScrollController(el){var _this=_super.call(this)||this;_this.el=el;return _this;}ElementScrollController.prototype.getScrollTop=function(){return this.el.scrollTop;};ElementScrollController.prototype.getScrollLeft=function(){return this.el.scrollLeft;};ElementScrollController.prototype.setScrollTop=function(top){this.el.scrollTop=top;};ElementScrollController.prototype.setScrollLeft=function(left){this.el.scrollLeft=left;};ElementScrollController.prototype.getScrollWidth=function(){return this.el.scrollWidth;};ElementScrollController.prototype.getScrollHeight=function(){return this.el.scrollHeight;};ElementScrollController.prototype.getClientHeight=function(){return this.el.clientHeight;};ElementScrollController.prototype.getClientWidth=function(){return this.el.clientWidth;};return ElementScrollController;}(ScrollController);var WindowScrollController=/** @class */function(_super){__extends(WindowScrollController,_super);function WindowScrollController(){return _super!==null&&_super.apply(this,arguments)||this;}WindowScrollController.prototype.getScrollTop=function(){return window.pageYOffset;};WindowScrollController.prototype.getScrollLeft=function(){return window.pageXOffset;};WindowScrollController.prototype.setScrollTop=function(n){window.scroll(window.pageXOffset,n);};WindowScrollController.prototype.setScrollLeft=function(n){window.scroll(n,window.pageYOffset);};WindowScrollController.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth;};WindowScrollController.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight;};WindowScrollController.prototype.getClientHeight=function(){return document.documentElement.clientHeight;};WindowScrollController.prototype.getClientWidth=function(){return document.documentElement.clientWidth;};return WindowScrollController;}(ScrollController);/*\r\n    Embodies a div that has potential scrollbars\r\n    */var ScrollComponent=/** @class */function(_super){__extends(ScrollComponent,_super);function ScrollComponent(overflowX,overflowY){var _this=_super.call(this,createElement('div',{className:'fc-scroller'}))||this;_this.overflowX=overflowX;_this.overflowY=overflowY;_this.applyOverflow();return _this;}// sets to natural height, unlocks overflow\nScrollComponent.prototype.clear=function(){this.setHeight('auto');this.applyOverflow();};ScrollComponent.prototype.destroy=function(){removeElement(this.el);};// Overflow\n// -----------------------------------------------------------------------------------------------------------------\nScrollComponent.prototype.applyOverflow=function(){applyStyle(this.el,{overflowX:this.overflowX,overflowY:this.overflowY});};// Causes any 'auto' overflow values to resolves to 'scroll' or 'hidden'.\n// Useful for preserving scrollbar widths regardless of future resizes.\n// Can pass in scrollbarWidths for optimization.\nScrollComponent.prototype.lockOverflow=function(scrollbarWidths){var overflowX=this.overflowX;var overflowY=this.overflowY;scrollbarWidths=scrollbarWidths||this.getScrollbarWidths();if(overflowX==='auto'){overflowX=scrollbarWidths.bottom||// horizontal scrollbars?\nthis.canScrollHorizontally()// OR scrolling pane with massless scrollbars?\n?'scroll':'hidden';}if(overflowY==='auto'){overflowY=scrollbarWidths.left||scrollbarWidths.right||// horizontal scrollbars?\nthis.canScrollVertically()// OR scrolling pane with massless scrollbars?\n?'scroll':'hidden';}applyStyle(this.el,{overflowX:overflowX,overflowY:overflowY});};ScrollComponent.prototype.setHeight=function(height){applyStyleProp(this.el,'height',height);};ScrollComponent.prototype.getScrollbarWidths=function(){var edges=computeEdges(this.el);return{left:edges.scrollbarLeft,right:edges.scrollbarRight,bottom:edges.scrollbarBottom};};return ScrollComponent;}(ElementScrollController);var Theme=/** @class */function(){function Theme(calendarOptions){this.calendarOptions=calendarOptions;this.processIconOverride();}Theme.prototype.processIconOverride=function(){if(this.iconOverrideOption){this.setIconOverride(this.calendarOptions[this.iconOverrideOption]);}};Theme.prototype.setIconOverride=function(iconOverrideHash){var iconClassesCopy;var buttonName;if(typeof iconOverrideHash==='object'&&iconOverrideHash){// non-null object\niconClassesCopy=__assign({},this.iconClasses);for(buttonName in iconOverrideHash){iconClassesCopy[buttonName]=this.applyIconOverridePrefix(iconOverrideHash[buttonName]);}this.iconClasses=iconClassesCopy;}else if(iconOverrideHash===false){this.iconClasses={};}};Theme.prototype.applyIconOverridePrefix=function(className){var prefix=this.iconOverridePrefix;if(prefix&&className.indexOf(prefix)!==0){// if not already present\nclassName=prefix+className;}return className;};Theme.prototype.getClass=function(key){return this.classes[key]||'';};Theme.prototype.getIconClass=function(buttonName){var className=this.iconClasses[buttonName];if(className){return this.baseIconClass+' '+className;}return'';};Theme.prototype.getCustomButtonIconClass=function(customButtonProps){var className;if(this.iconOverrideCustomButtonOption){className=customButtonProps[this.iconOverrideCustomButtonOption];if(className){return this.baseIconClass+' '+this.applyIconOverridePrefix(className);}}return'';};return Theme;}();Theme.prototype.classes={};Theme.prototype.iconClasses={};Theme.prototype.baseIconClass='';Theme.prototype.iconOverridePrefix='';var guid=0;var ComponentContext=/** @class */function(){function ComponentContext(calendar,theme,dateEnv,options,view){this.calendar=calendar;this.theme=theme;this.dateEnv=dateEnv;this.options=options;this.view=view;this.isRtl=options.dir==='rtl';this.eventOrderSpecs=parseFieldSpecs(options.eventOrder);this.nextDayThreshold=createDuration(options.nextDayThreshold);}ComponentContext.prototype.extend=function(options,view){return new ComponentContext(this.calendar,this.theme,this.dateEnv,options||this.options,view||this.view);};return ComponentContext;}();var Component=/** @class */function(){function Component(){this.uid=String(guid++);}Component.addEqualityFuncs=function(newFuncs){this.prototype.equalityFuncs=__assign({},this.prototype.equalityFuncs,newFuncs);};Component.prototype.receiveProps=function(props,context){var oldContext=this.context;this.context=context;if(!oldContext){this.firstContext(context);}var _a=recycleProps(this.props||{},props,this.equalityFuncs),anyChanges=_a.anyChanges,comboProps=_a.comboProps;this.props=comboProps;if(anyChanges){if(oldContext){this.beforeUpdate();}this.render(comboProps,context);if(oldContext){this.afterUpdate();}}};Component.prototype.render=function(props,context){};Component.prototype.firstContext=function(context){};Component.prototype.beforeUpdate=function(){};Component.prototype.afterUpdate=function(){};// after destroy is called, this component won't ever be used again\nComponent.prototype.destroy=function(){};return Component;}();Component.prototype.equalityFuncs={};/*\r\n    Reuses old values when equal. If anything is unequal, returns newProps as-is.\r\n    Great for PureComponent, but won't be feasible with React, so just eliminate and use React's DOM diffing.\r\n    */function recycleProps(oldProps,newProps,equalityFuncs){var comboProps={};// some old, some new\nvar anyChanges=false;for(var key in newProps){if(key in oldProps&&(oldProps[key]===newProps[key]||equalityFuncs[key]&&equalityFuncs[key](oldProps[key],newProps[key]))){// equal to old? use old prop\ncomboProps[key]=oldProps[key];}else{comboProps[key]=newProps[key];anyChanges=true;}}for(var key in oldProps){if(!(key in newProps)){anyChanges=true;break;}}return{anyChanges:anyChanges,comboProps:comboProps};}/*\r\n    PURPOSES:\r\n    - hook up to fg, fill, and mirror renderers\r\n    - interface for dragging and hits\r\n    */var DateComponent=/** @class */function(_super){__extends(DateComponent,_super);function DateComponent(el){var _this=_super.call(this)||this;_this.el=el;return _this;}DateComponent.prototype.destroy=function(){_super.prototype.destroy.call(this);removeElement(this.el);};// Hit System\n// -----------------------------------------------------------------------------------------------------------------\nDateComponent.prototype.buildPositionCaches=function(){};DateComponent.prototype.queryHit=function(positionLeft,positionTop,elWidth,elHeight){return null;// this should be abstract\n};// Validation\n// -----------------------------------------------------------------------------------------------------------------\nDateComponent.prototype.isInteractionValid=function(interaction){var calendar=this.context.calendar;var dateProfile=this.props.dateProfile;// HACK\nvar instances=interaction.mutatedEvents.instances;if(dateProfile){// HACK for DayTile\nfor(var instanceId in instances){if(!rangeContainsRange(dateProfile.validRange,instances[instanceId].range)){return false;}}}return isInteractionValid(interaction,calendar);};DateComponent.prototype.isDateSelectionValid=function(selection){var calendar=this.context.calendar;var dateProfile=this.props.dateProfile;// HACK\nif(dateProfile&&// HACK for DayTile\n!rangeContainsRange(dateProfile.validRange,selection.range)){return false;}return isDateSelectionValid(selection,calendar);};// Pointer Interaction Utils\n// -----------------------------------------------------------------------------------------------------------------\nDateComponent.prototype.isValidSegDownEl=function(el){return!this.props.eventDrag&&// HACK\n!this.props.eventResize&&// HACK\n!elementClosest(el,'.fc-mirror')&&(this.isPopover()||!this.isInPopover(el));// ^above line ensures we don't detect a seg interaction within a nested component.\n// it's a HACK because it only supports a popover as the nested component.\n};DateComponent.prototype.isValidDateDownEl=function(el){var segEl=elementClosest(el,this.fgSegSelector);return(!segEl||segEl.classList.contains('fc-mirror'))&&!elementClosest(el,'.fc-more')&&// a \"more..\" link\n!elementClosest(el,'a[data-goto]')&&// a clickable nav link\n!this.isInPopover(el);};DateComponent.prototype.isPopover=function(){return this.el.classList.contains('fc-popover');};DateComponent.prototype.isInPopover=function(el){return Boolean(elementClosest(el,'.fc-popover'));};return DateComponent;}(Component);DateComponent.prototype.fgSegSelector='.fc-event-container > *';DateComponent.prototype.bgSegSelector='.fc-bgevent:not(.fc-nonbusiness)';var uid$1=0;function createPlugin(input){return{id:String(uid$1++),deps:input.deps||[],reducers:input.reducers||[],eventDefParsers:input.eventDefParsers||[],isDraggableTransformers:input.isDraggableTransformers||[],eventDragMutationMassagers:input.eventDragMutationMassagers||[],eventDefMutationAppliers:input.eventDefMutationAppliers||[],dateSelectionTransformers:input.dateSelectionTransformers||[],datePointTransforms:input.datePointTransforms||[],dateSpanTransforms:input.dateSpanTransforms||[],views:input.views||{},viewPropsTransformers:input.viewPropsTransformers||[],isPropsValid:input.isPropsValid||null,externalDefTransforms:input.externalDefTransforms||[],eventResizeJoinTransforms:input.eventResizeJoinTransforms||[],viewContainerModifiers:input.viewContainerModifiers||[],eventDropTransformers:input.eventDropTransformers||[],componentInteractions:input.componentInteractions||[],calendarInteractions:input.calendarInteractions||[],themeClasses:input.themeClasses||{},eventSourceDefs:input.eventSourceDefs||[],cmdFormatter:input.cmdFormatter,recurringTypes:input.recurringTypes||[],namedTimeZonedImpl:input.namedTimeZonedImpl,defaultView:input.defaultView||'',elementDraggingImpl:input.elementDraggingImpl,optionChangeHandlers:input.optionChangeHandlers||{}};}var PluginSystem=/** @class */function(){function PluginSystem(){this.hooks={reducers:[],eventDefParsers:[],isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],eventResizeJoinTransforms:[],viewContainerModifiers:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,defaultView:'',elementDraggingImpl:null,optionChangeHandlers:{}};this.addedHash={};}PluginSystem.prototype.add=function(plugin){if(!this.addedHash[plugin.id]){this.addedHash[plugin.id]=true;for(var _i=0,_a=plugin.deps;_i<_a.length;_i++){var dep=_a[_i];this.add(dep);}this.hooks=combineHooks(this.hooks,plugin);}};return PluginSystem;}();function combineHooks(hooks0,hooks1){return{reducers:hooks0.reducers.concat(hooks1.reducers),eventDefParsers:hooks0.eventDefParsers.concat(hooks1.eventDefParsers),isDraggableTransformers:hooks0.isDraggableTransformers.concat(hooks1.isDraggableTransformers),eventDragMutationMassagers:hooks0.eventDragMutationMassagers.concat(hooks1.eventDragMutationMassagers),eventDefMutationAppliers:hooks0.eventDefMutationAppliers.concat(hooks1.eventDefMutationAppliers),dateSelectionTransformers:hooks0.dateSelectionTransformers.concat(hooks1.dateSelectionTransformers),datePointTransforms:hooks0.datePointTransforms.concat(hooks1.datePointTransforms),dateSpanTransforms:hooks0.dateSpanTransforms.concat(hooks1.dateSpanTransforms),views:__assign({},hooks0.views,hooks1.views),viewPropsTransformers:hooks0.viewPropsTransformers.concat(hooks1.viewPropsTransformers),isPropsValid:hooks1.isPropsValid||hooks0.isPropsValid,externalDefTransforms:hooks0.externalDefTransforms.concat(hooks1.externalDefTransforms),eventResizeJoinTransforms:hooks0.eventResizeJoinTransforms.concat(hooks1.eventResizeJoinTransforms),viewContainerModifiers:hooks0.viewContainerModifiers.concat(hooks1.viewContainerModifiers),eventDropTransformers:hooks0.eventDropTransformers.concat(hooks1.eventDropTransformers),calendarInteractions:hooks0.calendarInteractions.concat(hooks1.calendarInteractions),componentInteractions:hooks0.componentInteractions.concat(hooks1.componentInteractions),themeClasses:__assign({},hooks0.themeClasses,hooks1.themeClasses),eventSourceDefs:hooks0.eventSourceDefs.concat(hooks1.eventSourceDefs),cmdFormatter:hooks1.cmdFormatter||hooks0.cmdFormatter,recurringTypes:hooks0.recurringTypes.concat(hooks1.recurringTypes),namedTimeZonedImpl:hooks1.namedTimeZonedImpl||hooks0.namedTimeZonedImpl,defaultView:hooks0.defaultView||hooks1.defaultView,elementDraggingImpl:hooks0.elementDraggingImpl||hooks1.elementDraggingImpl,optionChangeHandlers:__assign({},hooks0.optionChangeHandlers,hooks1.optionChangeHandlers)};}var eventSourceDef={ignoreRange:true,parseMeta:function(raw){if(Array.isArray(raw)){// short form\nreturn raw;}else if(Array.isArray(raw.events)){return raw.events;}return null;},fetch:function(arg,success){success({rawEvents:arg.eventSource.meta});}};var ArrayEventSourcePlugin=createPlugin({eventSourceDefs:[eventSourceDef]});var eventSourceDef$1={parseMeta:function(raw){if(typeof raw==='function'){// short form\nreturn raw;}else if(typeof raw.events==='function'){return raw.events;}return null;},fetch:function(arg,success,failure){var dateEnv=arg.calendar.dateEnv;var func=arg.eventSource.meta;unpromisify(func.bind(null,{start:dateEnv.toDate(arg.range.start),end:dateEnv.toDate(arg.range.end),startStr:dateEnv.formatIso(arg.range.start),endStr:dateEnv.formatIso(arg.range.end),timeZone:dateEnv.timeZone}),function(rawEvents){success({rawEvents:rawEvents});// needs an object response\n},failure// send errorObj directly to failure callback\n);}};var FuncEventSourcePlugin=createPlugin({eventSourceDefs:[eventSourceDef$1]});function requestJson(method,url,params,successCallback,failureCallback){method=method.toUpperCase();var body=null;if(method==='GET'){url=injectQueryStringParams(url,params);}else{body=encodeParams(params);}var xhr=new XMLHttpRequest();xhr.open(method,url,true);if(method!=='GET'){xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');}xhr.onload=function(){if(xhr.status>=200&&xhr.status<400){try{var res=JSON.parse(xhr.responseText);successCallback(res,xhr);}catch(err){failureCallback('Failure parsing JSON',xhr);}}else{failureCallback('Request failed',xhr);}};xhr.onerror=function(){failureCallback('Request failed',xhr);};xhr.send(body);}function injectQueryStringParams(url,params){return url+(url.indexOf('?')===-1?'?':'&')+encodeParams(params);}function encodeParams(params){var parts=[];for(var key in params){parts.push(encodeURIComponent(key)+'='+encodeURIComponent(params[key]));}return parts.join('&');}var eventSourceDef$2={parseMeta:function(raw){if(typeof raw==='string'){// short form\nraw={url:raw};}else if(!raw||typeof raw!=='object'||!raw.url){return null;}return{url:raw.url,method:(raw.method||'GET').toUpperCase(),extraParams:raw.extraParams,startParam:raw.startParam,endParam:raw.endParam,timeZoneParam:raw.timeZoneParam};},fetch:function(arg,success,failure){var meta=arg.eventSource.meta;var requestParams=buildRequestParams(meta,arg.range,arg.calendar);requestJson(meta.method,meta.url,requestParams,function(rawEvents,xhr){success({rawEvents:rawEvents,xhr:xhr});},function(errorMessage,xhr){failure({message:errorMessage,xhr:xhr});});}};var JsonFeedEventSourcePlugin=createPlugin({eventSourceDefs:[eventSourceDef$2]});function buildRequestParams(meta,range,calendar){var dateEnv=calendar.dateEnv;var startParam;var endParam;var timeZoneParam;var customRequestParams;var params={};startParam=meta.startParam;if(startParam==null){startParam=calendar.opt('startParam');}endParam=meta.endParam;if(endParam==null){endParam=calendar.opt('endParam');}timeZoneParam=meta.timeZoneParam;if(timeZoneParam==null){timeZoneParam=calendar.opt('timeZoneParam');}// retrieve any outbound GET/POST data from the options\nif(typeof meta.extraParams==='function'){// supplied as a function that returns a key/value object\ncustomRequestParams=meta.extraParams();}else{// probably supplied as a straight key/value object\ncustomRequestParams=meta.extraParams||{};}__assign(params,customRequestParams);params[startParam]=dateEnv.formatIso(range.start);params[endParam]=dateEnv.formatIso(range.end);if(dateEnv.timeZone!=='local'){params[timeZoneParam]=dateEnv.timeZone;}return params;}var recurring={parse:function(rawEvent,leftoverProps,dateEnv){var createMarker=dateEnv.createMarker.bind(dateEnv);var processors={daysOfWeek:null,startTime:createDuration,endTime:createDuration,startRecur:createMarker,endRecur:createMarker};var props=refineProps(rawEvent,processors,{},leftoverProps);var anyValid=false;for(var propName in props){if(props[propName]!=null){anyValid=true;break;}}if(anyValid){var duration=null;if('duration'in leftoverProps){duration=createDuration(leftoverProps.duration);delete leftoverProps.duration;}if(!duration&&props.startTime&&props.endTime){duration=subtractDurations(props.endTime,props.startTime);}return{allDayGuess:Boolean(!props.startTime&&!props.endTime),duration:duration,typeData:props// doesn't need endTime anymore but oh well\n};}return null;},expand:function(typeData,framingRange,dateEnv){var clippedFramingRange=intersectRanges(framingRange,{start:typeData.startRecur,end:typeData.endRecur});if(clippedFramingRange){return expandRanges(typeData.daysOfWeek,typeData.startTime,clippedFramingRange,dateEnv);}else{return[];}}};var SimpleRecurrencePlugin=createPlugin({recurringTypes:[recurring]});function expandRanges(daysOfWeek,startTime,framingRange,dateEnv){var dowHash=daysOfWeek?arrayToHash(daysOfWeek):null;var dayMarker=startOfDay(framingRange.start);var endMarker=framingRange.end;var instanceStarts=[];while(dayMarker<endMarker){var instanceStart// if everyday, or this particular day-of-week\n=void 0;// if everyday, or this particular day-of-week\nif(!dowHash||dowHash[dayMarker.getUTCDay()]){if(startTime){instanceStart=dateEnv.add(dayMarker,startTime);}else{instanceStart=dayMarker;}instanceStarts.push(instanceStart);}dayMarker=addDays(dayMarker,1);}return instanceStarts;}var DefaultOptionChangeHandlers=createPlugin({optionChangeHandlers:{events:function(events,calendar,deepEqual){handleEventSources([events],calendar,deepEqual);},eventSources:handleEventSources,plugins:handlePlugins}});function handleEventSources(inputs,calendar,deepEqual){var unfoundSources=hashValuesToArray(calendar.state.eventSources);var newInputs=[];for(var _i=0,inputs_1=inputs;_i<inputs_1.length;_i++){var input=inputs_1[_i];var inputFound=false;for(var i=0;i<unfoundSources.length;i++){if(deepEqual(unfoundSources[i]._raw,input)){unfoundSources.splice(i,1);// delete\ninputFound=true;break;}}if(!inputFound){newInputs.push(input);}}for(var _a=0,unfoundSources_1=unfoundSources;_a<unfoundSources_1.length;_a++){var unfoundSource=unfoundSources_1[_a];calendar.dispatch({type:'REMOVE_EVENT_SOURCE',sourceId:unfoundSource.sourceId});}for(var _b=0,newInputs_1=newInputs;_b<newInputs_1.length;_b++){var newInput=newInputs_1[_b];calendar.addEventSource(newInput);}}// shortcoming: won't remove plugins\nfunction handlePlugins(inputs,calendar){calendar.addPluginInputs(inputs);// will gracefully handle duplicates\n}var config={};// TODO: make these options\nvar globalDefaults={defaultRangeSeparator:' - ',titleRangeSeparator:' \\u2013 ',defaultTimedEventDuration:'01:00:00',defaultAllDayEventDuration:{day:1},forceEventDuration:false,nextDayThreshold:'00:00:00',// display\ncolumnHeader:true,defaultView:'',aspectRatio:1.35,header:{left:'title',center:'',right:'today prev,next'},weekends:true,weekNumbers:false,weekNumberCalculation:'local',editable:false,// nowIndicator: false,\nscrollTime:'06:00:00',minTime:'00:00:00',maxTime:'24:00:00',showNonCurrentDates:true,// event ajax\nlazyFetching:true,startParam:'start',endParam:'end',timeZoneParam:'timeZone',timeZone:'local',// allDayDefault: undefined,\n// locale\nlocales:[],locale:'',// dir: will get this from the default locale\n// buttonIcons: null,\n// allows setting a min-height to the event segment to prevent short events overlapping each other\ntimeGridEventMinHeight:0,themeSystem:'standard',// eventResizableFromStart: false,\ndragRevertDuration:500,dragScroll:true,allDayMaintainDuration:false,// selectable: false,\nunselectAuto:true,// selectMinDistance: 0,\ndropAccept:'*',eventOrder:'start,-duration,allDay,title',// ^ if start tie, longer events go before shorter. final tie-breaker is title text\n// rerenderDelay: null,\neventLimit:false,eventLimitClick:'popover',dayPopoverFormat:{month:'long',day:'numeric',year:'numeric'},handleWindowResize:true,windowResizeDelay:100,longPressDelay:1000,eventDragMinDistance:5// only applies to mouse\n};var rtlDefaults={header:{left:'next,prev today',center:'',right:'title'},buttonIcons:{// TODO: make RTL support the responibility of the theme\nprev:'fc-icon-chevron-right',next:'fc-icon-chevron-left',prevYear:'fc-icon-chevrons-right',nextYear:'fc-icon-chevrons-left'}};var complexOptions=['header','footer','buttonText','buttonIcons'];// Merges an array of option objects into a single object\nfunction mergeOptions(optionObjs){return mergeProps(optionObjs,complexOptions);}// TODO: move this stuff to a \"plugin\"-related file...\nvar INTERNAL_PLUGINS=[ArrayEventSourcePlugin,FuncEventSourcePlugin,JsonFeedEventSourcePlugin,SimpleRecurrencePlugin,DefaultOptionChangeHandlers];function refinePluginDefs(pluginInputs){var plugins=[];for(var _i=0,pluginInputs_1=pluginInputs;_i<pluginInputs_1.length;_i++){var pluginInput=pluginInputs_1[_i];if(typeof pluginInput==='string'){var globalName='FullCalendar'+capitaliseFirstLetter(pluginInput);if(!window[globalName]){console.warn('Plugin file not loaded for '+pluginInput);}else{plugins.push(window[globalName].default);// is an ES6 module\n}}else{plugins.push(pluginInput);}}return INTERNAL_PLUGINS.concat(plugins);}var RAW_EN_LOCALE={code:'en',week:{dow:0,doy:4// 4 days need to be within the year to be considered the first week\n},dir:'ltr',buttonText:{prev:'prev',next:'next',prevYear:'prev year',nextYear:'next year',year:'year',today:'today',month:'month',week:'week',day:'day',list:'list'},weekLabel:'W',allDayText:'all-day',eventLimitText:'more',noEventsMessage:'No events to display'};function parseRawLocales(explicitRawLocales){var defaultCode=explicitRawLocales.length>0?explicitRawLocales[0].code:'en';var globalArray=window['FullCalendarLocalesAll']||[];// from locales-all.js\nvar globalObject=window['FullCalendarLocales']||{};// from locales/*.js. keys are meaningless\nvar allRawLocales=globalArray.concat(// globalArray is low prio\nhashValuesToArray(globalObject),// medium prio\nexplicitRawLocales// highest prio\n);var rawLocaleMap={en:RAW_EN_LOCALE// necessary?\n};for(var _i=0,allRawLocales_1=allRawLocales;_i<allRawLocales_1.length;_i++){var rawLocale=allRawLocales_1[_i];rawLocaleMap[rawLocale.code]=rawLocale;}return{map:rawLocaleMap,defaultCode:defaultCode};}function buildLocale(inputSingular,available){if(typeof inputSingular==='object'&&!Array.isArray(inputSingular)){return parseLocale(inputSingular.code,[inputSingular.code],inputSingular);}else{return queryLocale(inputSingular,available);}}function queryLocale(codeArg,available){var codes=[].concat(codeArg||[]);// will convert to array\nvar raw=queryRawLocale(codes,available)||RAW_EN_LOCALE;return parseLocale(codeArg,codes,raw);}function queryRawLocale(codes,available){for(var i=0;i<codes.length;i++){var parts=codes[i].toLocaleLowerCase().split('-');for(var j=parts.length;j>0;j--){var simpleId=parts.slice(0,j).join('-');if(available[simpleId]){return available[simpleId];}}}return null;}function parseLocale(codeArg,codes,raw){var merged=mergeProps([RAW_EN_LOCALE,raw],['buttonText']);delete merged.code;// don't want this part of the options\nvar week=merged.week;delete merged.week;return{codeArg:codeArg,codes:codes,week:week,simpleNumberFormat:new Intl.NumberFormat(codeArg),options:merged};}var OptionsManager=/** @class */function(){function OptionsManager(overrides){this.overrides=__assign({},overrides);// make a copy\nthis.dynamicOverrides={};this.compute();}OptionsManager.prototype.mutate=function(updates,removals,isDynamic){if(!Object.keys(updates).length&&!removals.length){return;}var overrideHash=isDynamic?this.dynamicOverrides:this.overrides;__assign(overrideHash,updates);for(var _i=0,removals_1=removals;_i<removals_1.length;_i++){var propName=removals_1[_i];delete overrideHash[propName];}this.compute();};// Computes the flattened options hash for the calendar and assigns to `this.options`.\n// Assumes this.overrides and this.dynamicOverrides have already been initialized.\nOptionsManager.prototype.compute=function(){// TODO: not a very efficient system\nvar locales=firstDefined(// explicit locale option given?\nthis.dynamicOverrides.locales,this.overrides.locales,globalDefaults.locales);var locale=firstDefined(// explicit locales option given?\nthis.dynamicOverrides.locale,this.overrides.locale,globalDefaults.locale);var available=parseRawLocales(locales);var localeDefaults=buildLocale(locale||available.defaultCode,available.map).options;var dir=firstDefined(// based on options computed so far, is direction RTL?\nthis.dynamicOverrides.dir,this.overrides.dir,localeDefaults.dir);var dirDefaults=dir==='rtl'?rtlDefaults:{};this.dirDefaults=dirDefaults;this.localeDefaults=localeDefaults;this.computed=mergeOptions([globalDefaults,dirDefaults,localeDefaults,this.overrides,this.dynamicOverrides]);};return OptionsManager;}();var calendarSystemClassMap={};function registerCalendarSystem(name,theClass){calendarSystemClassMap[name]=theClass;}function createCalendarSystem(name){return new calendarSystemClassMap[name]();}var GregorianCalendarSystem=/** @class */function(){function GregorianCalendarSystem(){}GregorianCalendarSystem.prototype.getMarkerYear=function(d){return d.getUTCFullYear();};GregorianCalendarSystem.prototype.getMarkerMonth=function(d){return d.getUTCMonth();};GregorianCalendarSystem.prototype.getMarkerDay=function(d){return d.getUTCDate();};GregorianCalendarSystem.prototype.arrayToMarker=function(arr){return arrayToUtcDate(arr);};GregorianCalendarSystem.prototype.markerToArray=function(marker){return dateToUtcArray(marker);};return GregorianCalendarSystem;}();registerCalendarSystem('gregory',GregorianCalendarSystem);var ISO_RE=/^\\s*(\\d{4})(-(\\d{2})(-(\\d{2})([T ](\\d{2}):(\\d{2})(:(\\d{2})(\\.(\\d+))?)?(Z|(([-+])(\\d{2})(:?(\\d{2}))?))?)?)?)?$/;function parse(str){var m=ISO_RE.exec(str);if(m){var marker=new Date(Date.UTC(Number(m[1]),m[3]?Number(m[3])-1:0,Number(m[5]||1),Number(m[7]||0),Number(m[8]||0),Number(m[10]||0),m[12]?Number('0.'+m[12])*1000:0));if(isValidDate(marker)){var timeZoneOffset=null;if(m[13]){timeZoneOffset=(m[15]==='-'?-1:1)*(Number(m[16]||0)*60+Number(m[18]||0));}return{marker:marker,isTimeUnspecified:!m[6],timeZoneOffset:timeZoneOffset};}}return null;}var DateEnv=/** @class */function(){function DateEnv(settings){var timeZone=this.timeZone=settings.timeZone;var isNamedTimeZone=timeZone!=='local'&&timeZone!=='UTC';if(settings.namedTimeZoneImpl&&isNamedTimeZone){this.namedTimeZoneImpl=new settings.namedTimeZoneImpl(timeZone);}this.canComputeOffset=Boolean(!isNamedTimeZone||this.namedTimeZoneImpl);this.calendarSystem=createCalendarSystem(settings.calendarSystem);this.locale=settings.locale;this.weekDow=settings.locale.week.dow;this.weekDoy=settings.locale.week.doy;if(settings.weekNumberCalculation==='ISO'){this.weekDow=1;this.weekDoy=4;}if(typeof settings.firstDay==='number'){this.weekDow=settings.firstDay;}if(typeof settings.weekNumberCalculation==='function'){this.weekNumberFunc=settings.weekNumberCalculation;}this.weekLabel=settings.weekLabel!=null?settings.weekLabel:settings.locale.options.weekLabel;this.cmdFormatter=settings.cmdFormatter;}// Creating / Parsing\nDateEnv.prototype.createMarker=function(input){var meta=this.createMarkerMeta(input);if(meta===null){return null;}return meta.marker;};DateEnv.prototype.createNowMarker=function(){if(this.canComputeOffset){return this.timestampToMarker(new Date().valueOf());}else{// if we can't compute the current date val for a timezone,\n// better to give the current local date vals than UTC\nreturn arrayToUtcDate(dateToLocalArray(new Date()));}};DateEnv.prototype.createMarkerMeta=function(input){if(typeof input==='string'){return this.parse(input);}var marker=null;if(typeof input==='number'){marker=this.timestampToMarker(input);}else if(input instanceof Date){input=input.valueOf();if(!isNaN(input)){marker=this.timestampToMarker(input);}}else if(Array.isArray(input)){marker=arrayToUtcDate(input);}if(marker===null||!isValidDate(marker)){return null;}return{marker:marker,isTimeUnspecified:false,forcedTzo:null};};DateEnv.prototype.parse=function(s){var parts=parse(s);if(parts===null){return null;}var marker=parts.marker;var forcedTzo=null;if(parts.timeZoneOffset!==null){if(this.canComputeOffset){marker=this.timestampToMarker(marker.valueOf()-parts.timeZoneOffset*60*1000);}else{forcedTzo=parts.timeZoneOffset;}}return{marker:marker,isTimeUnspecified:parts.isTimeUnspecified,forcedTzo:forcedTzo};};// Accessors\nDateEnv.prototype.getYear=function(marker){return this.calendarSystem.getMarkerYear(marker);};DateEnv.prototype.getMonth=function(marker){return this.calendarSystem.getMarkerMonth(marker);};// Adding / Subtracting\nDateEnv.prototype.add=function(marker,dur){var a=this.calendarSystem.markerToArray(marker);a[0]+=dur.years;a[1]+=dur.months;a[2]+=dur.days;a[6]+=dur.milliseconds;return this.calendarSystem.arrayToMarker(a);};DateEnv.prototype.subtract=function(marker,dur){var a=this.calendarSystem.markerToArray(marker);a[0]-=dur.years;a[1]-=dur.months;a[2]-=dur.days;a[6]-=dur.milliseconds;return this.calendarSystem.arrayToMarker(a);};DateEnv.prototype.addYears=function(marker,n){var a=this.calendarSystem.markerToArray(marker);a[0]+=n;return this.calendarSystem.arrayToMarker(a);};DateEnv.prototype.addMonths=function(marker,n){var a=this.calendarSystem.markerToArray(marker);a[1]+=n;return this.calendarSystem.arrayToMarker(a);};// Diffing Whole Units\nDateEnv.prototype.diffWholeYears=function(m0,m1){var calendarSystem=this.calendarSystem;if(timeAsMs(m0)===timeAsMs(m1)&&calendarSystem.getMarkerDay(m0)===calendarSystem.getMarkerDay(m1)&&calendarSystem.getMarkerMonth(m0)===calendarSystem.getMarkerMonth(m1)){return calendarSystem.getMarkerYear(m1)-calendarSystem.getMarkerYear(m0);}return null;};DateEnv.prototype.diffWholeMonths=function(m0,m1){var calendarSystem=this.calendarSystem;if(timeAsMs(m0)===timeAsMs(m1)&&calendarSystem.getMarkerDay(m0)===calendarSystem.getMarkerDay(m1)){return calendarSystem.getMarkerMonth(m1)-calendarSystem.getMarkerMonth(m0)+(calendarSystem.getMarkerYear(m1)-calendarSystem.getMarkerYear(m0))*12;}return null;};// Range / Duration\nDateEnv.prototype.greatestWholeUnit=function(m0,m1){var n=this.diffWholeYears(m0,m1);if(n!==null){return{unit:'year',value:n};}n=this.diffWholeMonths(m0,m1);if(n!==null){return{unit:'month',value:n};}n=diffWholeWeeks(m0,m1);if(n!==null){return{unit:'week',value:n};}n=diffWholeDays(m0,m1);if(n!==null){return{unit:'day',value:n};}n=diffHours(m0,m1);if(isInt(n)){return{unit:'hour',value:n};}n=diffMinutes(m0,m1);if(isInt(n)){return{unit:'minute',value:n};}n=diffSeconds(m0,m1);if(isInt(n)){return{unit:'second',value:n};}return{unit:'millisecond',value:m1.valueOf()-m0.valueOf()};};DateEnv.prototype.countDurationsBetween=function(m0,m1,d){// TODO: can use greatestWholeUnit\nvar diff;if(d.years){diff=this.diffWholeYears(m0,m1);if(diff!==null){return diff/asRoughYears(d);}}if(d.months){diff=this.diffWholeMonths(m0,m1);if(diff!==null){return diff/asRoughMonths(d);}}if(d.days){diff=diffWholeDays(m0,m1);if(diff!==null){return diff/asRoughDays(d);}}return(m1.valueOf()-m0.valueOf())/asRoughMs(d);};// Start-Of\nDateEnv.prototype.startOf=function(m,unit){if(unit==='year'){return this.startOfYear(m);}else if(unit==='month'){return this.startOfMonth(m);}else if(unit==='week'){return this.startOfWeek(m);}else if(unit==='day'){return startOfDay(m);}else if(unit==='hour'){return startOfHour(m);}else if(unit==='minute'){return startOfMinute(m);}else if(unit==='second'){return startOfSecond(m);}};DateEnv.prototype.startOfYear=function(m){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(m)]);};DateEnv.prototype.startOfMonth=function(m){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(m),this.calendarSystem.getMarkerMonth(m)]);};DateEnv.prototype.startOfWeek=function(m){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(m),this.calendarSystem.getMarkerMonth(m),m.getUTCDate()-(m.getUTCDay()-this.weekDow+7)%7]);};// Week Number\nDateEnv.prototype.computeWeekNumber=function(marker){if(this.weekNumberFunc){return this.weekNumberFunc(this.toDate(marker));}else{return weekOfYear(marker,this.weekDow,this.weekDoy);}};// TODO: choke on timeZoneName: long\nDateEnv.prototype.format=function(marker,formatter,dateOptions){if(dateOptions===void 0){dateOptions={};}return formatter.format({marker:marker,timeZoneOffset:dateOptions.forcedTzo!=null?dateOptions.forcedTzo:this.offsetForMarker(marker)},this);};DateEnv.prototype.formatRange=function(start,end,formatter,dateOptions){if(dateOptions===void 0){dateOptions={};}if(dateOptions.isEndExclusive){end=addMs(end,-1);}return formatter.formatRange({marker:start,timeZoneOffset:dateOptions.forcedStartTzo!=null?dateOptions.forcedStartTzo:this.offsetForMarker(start)},{marker:end,timeZoneOffset:dateOptions.forcedEndTzo!=null?dateOptions.forcedEndTzo:this.offsetForMarker(end)},this);};DateEnv.prototype.formatIso=function(marker,extraOptions){if(extraOptions===void 0){extraOptions={};}var timeZoneOffset=null;if(!extraOptions.omitTimeZoneOffset){if(extraOptions.forcedTzo!=null){timeZoneOffset=extraOptions.forcedTzo;}else{timeZoneOffset=this.offsetForMarker(marker);}}return buildIsoString(marker,timeZoneOffset,extraOptions.omitTime);};// TimeZone\nDateEnv.prototype.timestampToMarker=function(ms){if(this.timeZone==='local'){return arrayToUtcDate(dateToLocalArray(new Date(ms)));}else if(this.timeZone==='UTC'||!this.namedTimeZoneImpl){return new Date(ms);}else{return arrayToUtcDate(this.namedTimeZoneImpl.timestampToArray(ms));}};DateEnv.prototype.offsetForMarker=function(m){if(this.timeZone==='local'){return-arrayToLocalDate(dateToUtcArray(m)).getTimezoneOffset();// convert \"inverse\" offset to \"normal\" offset\n}else if(this.timeZone==='UTC'){return 0;}else if(this.namedTimeZoneImpl){return this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(m));}return null;};// Conversion\nDateEnv.prototype.toDate=function(m,forcedTzo){if(this.timeZone==='local'){return arrayToLocalDate(dateToUtcArray(m));}else if(this.timeZone==='UTC'){return new Date(m.valueOf());// make sure it's a copy\n}else if(!this.namedTimeZoneImpl){return new Date(m.valueOf()-(forcedTzo||0));}else{return new Date(m.valueOf()-this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(m))*1000*60// convert minutes -> ms\n);}};return DateEnv;}();var SIMPLE_SOURCE_PROPS={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function};var uid$2=0;function doesSourceNeedRange(eventSource,calendar){var defs=calendar.pluginSystem.hooks.eventSourceDefs;return!defs[eventSource.sourceDefId].ignoreRange;}function parseEventSource(raw,calendar){var defs=calendar.pluginSystem.hooks.eventSourceDefs;for(var i=defs.length-1;i>=0;i--){// later-added plugins take precedence\nvar def=defs[i];var meta=def.parseMeta(raw);if(meta){var res=parseEventSourceProps(typeof raw==='object'?raw:{},meta,i,calendar);res._raw=raw;return res;}}return null;}function parseEventSourceProps(raw,meta,sourceDefId,calendar){var leftovers0={};var props=refineProps(raw,SIMPLE_SOURCE_PROPS,{},leftovers0);var leftovers1={};var ui=processUnscopedUiProps(leftovers0,calendar,leftovers1);props.isFetching=false;props.latestFetchId='';props.fetchRange=null;props.publicId=String(raw.id||'');props.sourceId=String(uid$2++);props.sourceDefId=sourceDefId;props.meta=meta;props.ui=ui;props.extendedProps=leftovers1;return props;}function reduceEventSources(eventSources,action,dateProfile,calendar){switch(action.type){case'ADD_EVENT_SOURCES':// already parsed\nreturn addSources(eventSources,action.sources,dateProfile?dateProfile.activeRange:null,calendar);case'REMOVE_EVENT_SOURCE':return removeSource(eventSources,action.sourceId);case'PREV':// TODO: how do we track all actions that affect dateProfile :(\ncase'NEXT':case'SET_DATE':case'SET_VIEW_TYPE':if(dateProfile){return fetchDirtySources(eventSources,dateProfile.activeRange,calendar);}else{return eventSources;}case'FETCH_EVENT_SOURCES':case'CHANGE_TIMEZONE':return fetchSourcesByIds(eventSources,action.sourceIds?arrayToHash(action.sourceIds):excludeStaticSources(eventSources,calendar),dateProfile?dateProfile.activeRange:null,calendar);case'RECEIVE_EVENTS':case'RECEIVE_EVENT_ERROR':return receiveResponse(eventSources,action.sourceId,action.fetchId,action.fetchRange);case'REMOVE_ALL_EVENT_SOURCES':return{};default:return eventSources;}}var uid$3=0;function addSources(eventSourceHash,sources,fetchRange,calendar){var hash={};for(var _i=0,sources_1=sources;_i<sources_1.length;_i++){var source=sources_1[_i];hash[source.sourceId]=source;}if(fetchRange){hash=fetchDirtySources(hash,fetchRange,calendar);}return __assign({},eventSourceHash,hash);}function removeSource(eventSourceHash,sourceId){return filterHash(eventSourceHash,function(eventSource){return eventSource.sourceId!==sourceId;});}function fetchDirtySources(sourceHash,fetchRange,calendar){return fetchSourcesByIds(sourceHash,filterHash(sourceHash,function(eventSource){return isSourceDirty(eventSource,fetchRange,calendar);}),fetchRange,calendar);}function isSourceDirty(eventSource,fetchRange,calendar){if(!doesSourceNeedRange(eventSource,calendar)){return!eventSource.latestFetchId;}else{return!calendar.opt('lazyFetching')||!eventSource.fetchRange||eventSource.isFetching||// always cancel outdated in-progress fetches\nfetchRange.start<eventSource.fetchRange.start||fetchRange.end>eventSource.fetchRange.end;}}function fetchSourcesByIds(prevSources,sourceIdHash,fetchRange,calendar){var nextSources={};for(var sourceId in prevSources){var source=prevSources[sourceId];if(sourceIdHash[sourceId]){nextSources[sourceId]=fetchSource(source,fetchRange,calendar);}else{nextSources[sourceId]=source;}}return nextSources;}function fetchSource(eventSource,fetchRange,calendar){var sourceDef=calendar.pluginSystem.hooks.eventSourceDefs[eventSource.sourceDefId];var fetchId=String(uid$3++);sourceDef.fetch({eventSource:eventSource,calendar:calendar,range:fetchRange},function(res){var rawEvents=res.rawEvents;var calSuccess=calendar.opt('eventSourceSuccess');var calSuccessRes;var sourceSuccessRes;if(eventSource.success){sourceSuccessRes=eventSource.success(rawEvents,res.xhr);}if(calSuccess){calSuccessRes=calSuccess(rawEvents,res.xhr);}rawEvents=sourceSuccessRes||calSuccessRes||rawEvents;calendar.dispatch({type:'RECEIVE_EVENTS',sourceId:eventSource.sourceId,fetchId:fetchId,fetchRange:fetchRange,rawEvents:rawEvents});},function(error){var callFailure=calendar.opt('eventSourceFailure');console.warn(error.message,error);if(eventSource.failure){eventSource.failure(error);}if(callFailure){callFailure(error);}calendar.dispatch({type:'RECEIVE_EVENT_ERROR',sourceId:eventSource.sourceId,fetchId:fetchId,fetchRange:fetchRange,error:error});});return __assign({},eventSource,{isFetching:true,latestFetchId:fetchId});}function receiveResponse(sourceHash,sourceId,fetchId,fetchRange){var _a;var eventSource=sourceHash[sourceId];if(eventSource&&// not already removed\nfetchId===eventSource.latestFetchId){return __assign({},sourceHash,(_a={},_a[sourceId]=__assign({},eventSource,{isFetching:false,fetchRange:fetchRange// also serves as a marker that at least one fetch has completed\n}),_a));}return sourceHash;}function excludeStaticSources(eventSources,calendar){return filterHash(eventSources,function(eventSource){return doesSourceNeedRange(eventSource,calendar);});}var DateProfileGenerator=/** @class */function(){function DateProfileGenerator(viewSpec,calendar){this.viewSpec=viewSpec;this.options=viewSpec.options;this.dateEnv=calendar.dateEnv;this.calendar=calendar;this.initHiddenDays();}/* Date Range Computation\r\n        ------------------------------------------------------------------------------------------------------------------*/ // Builds a structure with info about what the dates/ranges will be for the \"prev\" view.\nDateProfileGenerator.prototype.buildPrev=function(currentDateProfile,currentDate){var dateEnv=this.dateEnv;var prevDate=dateEnv.subtract(dateEnv.startOf(currentDate,currentDateProfile.currentRangeUnit),// important for start-of-month\ncurrentDateProfile.dateIncrement);return this.build(prevDate,-1);};// Builds a structure with info about what the dates/ranges will be for the \"next\" view.\nDateProfileGenerator.prototype.buildNext=function(currentDateProfile,currentDate){var dateEnv=this.dateEnv;var nextDate=dateEnv.add(dateEnv.startOf(currentDate,currentDateProfile.currentRangeUnit),// important for start-of-month\ncurrentDateProfile.dateIncrement);return this.build(nextDate,1);};// Builds a structure holding dates/ranges for rendering around the given date.\n// Optional direction param indicates whether the date is being incremented/decremented\n// from its previous value. decremented = -1, incremented = 1 (default).\nDateProfileGenerator.prototype.build=function(currentDate,direction,forceToValid){if(forceToValid===void 0){forceToValid=false;}var validRange;var minTime=null;var maxTime=null;var currentInfo;var isRangeAllDay;var renderRange;var activeRange;var isValid;validRange=this.buildValidRange();validRange=this.trimHiddenDays(validRange);if(forceToValid){currentDate=constrainMarkerToRange(currentDate,validRange);}currentInfo=this.buildCurrentRangeInfo(currentDate,direction);isRangeAllDay=/^(year|month|week|day)$/.test(currentInfo.unit);renderRange=this.buildRenderRange(this.trimHiddenDays(currentInfo.range),currentInfo.unit,isRangeAllDay);renderRange=this.trimHiddenDays(renderRange);activeRange=renderRange;if(!this.options.showNonCurrentDates){activeRange=intersectRanges(activeRange,currentInfo.range);}minTime=createDuration(this.options.minTime);maxTime=createDuration(this.options.maxTime);activeRange=this.adjustActiveRange(activeRange,minTime,maxTime);activeRange=intersectRanges(activeRange,validRange);// might return null\n// it's invalid if the originally requested date is not contained,\n// or if the range is completely outside of the valid range.\nisValid=rangesIntersect(currentInfo.range,validRange);return{// constraint for where prev/next operations can go and where events can be dragged/resized to.\n// an object with optional start and end properties.\nvalidRange:validRange,// range the view is formally responsible for.\n// for example, a month view might have 1st-31st, excluding padded dates\ncurrentRange:currentInfo.range,// name of largest unit being displayed, like \"month\" or \"week\"\ncurrentRangeUnit:currentInfo.unit,isRangeAllDay:isRangeAllDay,// dates that display events and accept drag-n-drop\n// will be `null` if no dates accept events\nactiveRange:activeRange,// date range with a rendered skeleton\n// includes not-active days that need some sort of DOM\nrenderRange:renderRange,// Duration object that denotes the first visible time of any given day\nminTime:minTime,// Duration object that denotes the exclusive visible end time of any given day\nmaxTime:maxTime,isValid:isValid,// how far the current date will move for a prev/next operation\ndateIncrement:this.buildDateIncrement(currentInfo.duration)// pass a fallback (might be null) ^\n};};// Builds an object with optional start/end properties.\n// Indicates the minimum/maximum dates to display.\n// not responsible for trimming hidden days.\nDateProfileGenerator.prototype.buildValidRange=function(){return this.getRangeOption('validRange',this.calendar.getNow())||{start:null,end:null};// completely open-ended\n};// Builds a structure with info about the \"current\" range, the range that is\n// highlighted as being the current month for example.\n// See build() for a description of `direction`.\n// Guaranteed to have `range` and `unit` properties. `duration` is optional.\nDateProfileGenerator.prototype.buildCurrentRangeInfo=function(date,direction){var _a=this,viewSpec=_a.viewSpec,dateEnv=_a.dateEnv;var duration=null;var unit=null;var range=null;var dayCount;if(viewSpec.duration){duration=viewSpec.duration;unit=viewSpec.durationUnit;range=this.buildRangeFromDuration(date,direction,duration,unit);}else if(dayCount=this.options.dayCount){unit='day';range=this.buildRangeFromDayCount(date,direction,dayCount);}else if(range=this.buildCustomVisibleRange(date)){unit=dateEnv.greatestWholeUnit(range.start,range.end).unit;}else{duration=this.getFallbackDuration();unit=greatestDurationDenominator(duration).unit;range=this.buildRangeFromDuration(date,direction,duration,unit);}return{duration:duration,unit:unit,range:range};};DateProfileGenerator.prototype.getFallbackDuration=function(){return createDuration({day:1});};// Returns a new activeRange to have time values (un-ambiguate)\n// minTime or maxTime causes the range to expand.\nDateProfileGenerator.prototype.adjustActiveRange=function(range,minTime,maxTime){var dateEnv=this.dateEnv;var start=range.start;var end=range.end;if(this.viewSpec.class.prototype.usesMinMaxTime){// expand active range if minTime is negative (why not when positive?)\nif(asRoughDays(minTime)<0){start=startOfDay(start);// necessary?\nstart=dateEnv.add(start,minTime);}// expand active range if maxTime is beyond one day (why not when positive?)\nif(asRoughDays(maxTime)>1){end=startOfDay(end);// necessary?\nend=addDays(end,-1);end=dateEnv.add(end,maxTime);}}return{start:start,end:end};};// Builds the \"current\" range when it is specified as an explicit duration.\n// `unit` is the already-computed greatestDurationDenominator unit of duration.\nDateProfileGenerator.prototype.buildRangeFromDuration=function(date,direction,duration,unit){var dateEnv=this.dateEnv;var alignment=this.options.dateAlignment;var dateIncrementInput;var dateIncrementDuration;var start;var end;var res;// compute what the alignment should be\nif(!alignment){dateIncrementInput=this.options.dateIncrement;if(dateIncrementInput){dateIncrementDuration=createDuration(dateIncrementInput);// use the smaller of the two units\nif(asRoughMs(dateIncrementDuration)<asRoughMs(duration)){alignment=greatestDurationDenominator(dateIncrementDuration,!getWeeksFromInput(dateIncrementInput)).unit;}else{alignment=unit;}}else{alignment=unit;}}// if the view displays a single day or smaller\nif(asRoughDays(duration)<=1){if(this.isHiddenDay(start)){start=this.skipHiddenDays(start,direction);start=startOfDay(start);}}function computeRes(){start=dateEnv.startOf(date,alignment);end=dateEnv.add(start,duration);res={start:start,end:end};}computeRes();// if range is completely enveloped by hidden days, go past the hidden days\nif(!this.trimHiddenDays(res)){date=this.skipHiddenDays(date,direction);computeRes();}return res;};// Builds the \"current\" range when a dayCount is specified.\nDateProfileGenerator.prototype.buildRangeFromDayCount=function(date,direction,dayCount){var dateEnv=this.dateEnv;var customAlignment=this.options.dateAlignment;var runningCount=0;var start=date;var end;if(customAlignment){start=dateEnv.startOf(start,customAlignment);}start=startOfDay(start);start=this.skipHiddenDays(start,direction);end=start;do{end=addDays(end,1);if(!this.isHiddenDay(end)){runningCount++;}}while(runningCount<dayCount);return{start:start,end:end};};// Builds a normalized range object for the \"visible\" range,\n// which is a way to define the currentRange and activeRange at the same time.\nDateProfileGenerator.prototype.buildCustomVisibleRange=function(date){var dateEnv=this.dateEnv;var visibleRange=this.getRangeOption('visibleRange',dateEnv.toDate(date));if(visibleRange&&(visibleRange.start==null||visibleRange.end==null)){return null;}return visibleRange;};// Computes the range that will represent the element/cells for *rendering*,\n// but which may have voided days/times.\n// not responsible for trimming hidden days.\nDateProfileGenerator.prototype.buildRenderRange=function(currentRange,currentRangeUnit,isRangeAllDay){return currentRange;};// Compute the duration value that should be added/substracted to the current date\n// when a prev/next operation happens.\nDateProfileGenerator.prototype.buildDateIncrement=function(fallback){var dateIncrementInput=this.options.dateIncrement;var customAlignment;if(dateIncrementInput){return createDuration(dateIncrementInput);}else if(customAlignment=this.options.dateAlignment){return createDuration(1,customAlignment);}else if(fallback){return fallback;}else{return createDuration({days:1});}};// Arguments after name will be forwarded to a hypothetical function value\n// WARNING: passed-in arguments will be given to generator functions as-is and can cause side-effects.\n// Always clone your objects if you fear mutation.\nDateProfileGenerator.prototype.getRangeOption=function(name){var otherArgs=[];for(var _i=1;_i<arguments.length;_i++){otherArgs[_i-1]=arguments[_i];}var val=this.options[name];if(typeof val==='function'){val=val.apply(null,otherArgs);}if(val){val=parseRange(val,this.dateEnv);}if(val){val=computeVisibleDayRange(val);}return val;};/* Hidden Days\r\n        ------------------------------------------------------------------------------------------------------------------*/ // Initializes internal variables related to calculating hidden days-of-week\nDateProfileGenerator.prototype.initHiddenDays=function(){var hiddenDays=this.options.hiddenDays||[];// array of day-of-week indices that are hidden\nvar isHiddenDayHash=[];// is the day-of-week hidden? (hash with day-of-week-index -> bool)\nvar dayCnt=0;var i;if(this.options.weekends===false){hiddenDays.push(0,6);// 0=sunday, 6=saturday\n}for(i=0;i<7;i++){if(!(isHiddenDayHash[i]=hiddenDays.indexOf(i)!==-1)){dayCnt++;}}if(!dayCnt){throw new Error('invalid hiddenDays');// all days were hidden? bad.\n}this.isHiddenDayHash=isHiddenDayHash;};// Remove days from the beginning and end of the range that are computed as hidden.\n// If the whole range is trimmed off, returns null\nDateProfileGenerator.prototype.trimHiddenDays=function(range){var start=range.start;var end=range.end;if(start){start=this.skipHiddenDays(start);}if(end){end=this.skipHiddenDays(end,-1,true);}if(start==null||end==null||start<end){return{start:start,end:end};}return null;};// Is the current day hidden?\n// `day` is a day-of-week index (0-6), or a Date (used for UTC)\nDateProfileGenerator.prototype.isHiddenDay=function(day){if(day instanceof Date){day=day.getUTCDay();}return this.isHiddenDayHash[day];};// Incrementing the current day until it is no longer a hidden day, returning a copy.\n// DOES NOT CONSIDER validRange!\n// If the initial value of `date` is not a hidden day, don't do anything.\n// Pass `isExclusive` as `true` if you are dealing with an end date.\n// `inc` defaults to `1` (increment one day forward each time)\nDateProfileGenerator.prototype.skipHiddenDays=function(date,inc,isExclusive){if(inc===void 0){inc=1;}if(isExclusive===void 0){isExclusive=false;}while(this.isHiddenDayHash[(date.getUTCDay()+(isExclusive?inc:0)+7)%7]){date=addDays(date,inc);}return date;};return DateProfileGenerator;}();// TODO: find a way to avoid comparing DateProfiles. it's tedious\nfunction isDateProfilesEqual(p0,p1){return rangesEqual(p0.validRange,p1.validRange)&&rangesEqual(p0.activeRange,p1.activeRange)&&rangesEqual(p0.renderRange,p1.renderRange)&&durationsEqual(p0.minTime,p1.minTime)&&durationsEqual(p0.maxTime,p1.maxTime);/*\r\n        TODO: compare more?\r\n          currentRange: DateRange\r\n          currentRangeUnit: string\r\n          isRangeAllDay: boolean\r\n          isValid: boolean\r\n          dateIncrement: Duration\r\n        */}function reduce(state,action,calendar){var viewType=reduceViewType(state.viewType,action);var dateProfile=reduceDateProfile(state.dateProfile,action,state.currentDate,viewType,calendar);var eventSources=reduceEventSources(state.eventSources,action,dateProfile,calendar);var nextState=__assign({},state,{viewType:viewType,dateProfile:dateProfile,currentDate:reduceCurrentDate(state.currentDate,action,dateProfile),eventSources:eventSources,eventStore:reduceEventStore(state.eventStore,action,eventSources,dateProfile,calendar),dateSelection:reduceDateSelection(state.dateSelection,action,calendar),eventSelection:reduceSelectedEvent(state.eventSelection,action),eventDrag:reduceEventDrag(state.eventDrag,action,eventSources,calendar),eventResize:reduceEventResize(state.eventResize,action,eventSources,calendar),eventSourceLoadingLevel:computeLoadingLevel(eventSources),loadingLevel:computeLoadingLevel(eventSources)});for(var _i=0,_a=calendar.pluginSystem.hooks.reducers;_i<_a.length;_i++){var reducerFunc=_a[_i];nextState=reducerFunc(nextState,action,calendar);}// console.log(action.type, nextState)\nreturn nextState;}function reduceViewType(currentViewType,action){switch(action.type){case'SET_VIEW_TYPE':return action.viewType;default:return currentViewType;}}function reduceDateProfile(currentDateProfile,action,currentDate,viewType,calendar){var newDateProfile;switch(action.type){case'PREV':newDateProfile=calendar.dateProfileGenerators[viewType].buildPrev(currentDateProfile,currentDate);break;case'NEXT':newDateProfile=calendar.dateProfileGenerators[viewType].buildNext(currentDateProfile,currentDate);break;case'SET_DATE':if(!currentDateProfile.activeRange||!rangeContainsMarker(currentDateProfile.currentRange,action.dateMarker)){newDateProfile=calendar.dateProfileGenerators[viewType].build(action.dateMarker,undefined,true// forceToValid\n);}break;case'SET_VIEW_TYPE':var generator=calendar.dateProfileGenerators[viewType];if(!generator){throw new Error(viewType?'The FullCalendar view \"'+viewType+'\" does not exist. Make sure your plugins are loaded correctly.':'No available FullCalendar view plugins.');}newDateProfile=generator.build(action.dateMarker||currentDate,undefined,true// forceToValid\n);break;}if(newDateProfile&&newDateProfile.isValid&&!(currentDateProfile&&isDateProfilesEqual(currentDateProfile,newDateProfile))){return newDateProfile;}else{return currentDateProfile;}}function reduceCurrentDate(currentDate,action,dateProfile){switch(action.type){case'PREV':case'NEXT':if(!rangeContainsMarker(dateProfile.currentRange,currentDate)){return dateProfile.currentRange.start;}else{return currentDate;}case'SET_DATE':case'SET_VIEW_TYPE':var newDate=action.dateMarker||currentDate;if(dateProfile.activeRange&&!rangeContainsMarker(dateProfile.activeRange,newDate)){return dateProfile.currentRange.start;}else{return newDate;}default:return currentDate;}}function reduceDateSelection(currentSelection,action,calendar){switch(action.type){case'SELECT_DATES':return action.selection;case'UNSELECT_DATES':return null;default:return currentSelection;}}function reduceSelectedEvent(currentInstanceId,action){switch(action.type){case'SELECT_EVENT':return action.eventInstanceId;case'UNSELECT_EVENT':return'';default:return currentInstanceId;}}function reduceEventDrag(currentDrag,action,sources,calendar){switch(action.type){case'SET_EVENT_DRAG':var newDrag=action.state;return{affectedEvents:newDrag.affectedEvents,mutatedEvents:newDrag.mutatedEvents,isEvent:newDrag.isEvent,origSeg:newDrag.origSeg};case'UNSET_EVENT_DRAG':return null;default:return currentDrag;}}function reduceEventResize(currentResize,action,sources,calendar){switch(action.type){case'SET_EVENT_RESIZE':var newResize=action.state;return{affectedEvents:newResize.affectedEvents,mutatedEvents:newResize.mutatedEvents,isEvent:newResize.isEvent,origSeg:newResize.origSeg};case'UNSET_EVENT_RESIZE':return null;default:return currentResize;}}function computeLoadingLevel(eventSources){var cnt=0;for(var sourceId in eventSources){if(eventSources[sourceId].isFetching){cnt++;}}return cnt;}var STANDARD_PROPS={start:null,end:null,allDay:Boolean};function parseDateSpan(raw,dateEnv,defaultDuration){var span=parseOpenDateSpan(raw,dateEnv);var range=span.range;if(!range.start){return null;}if(!range.end){if(defaultDuration==null){return null;}else{range.end=dateEnv.add(range.start,defaultDuration);}}return span;}/*\r\n    TODO: somehow combine with parseRange?\r\n    Will return null if the start/end props were present but parsed invalidly.\r\n    */function parseOpenDateSpan(raw,dateEnv){var leftovers={};var standardProps=refineProps(raw,STANDARD_PROPS,{},leftovers);var startMeta=standardProps.start?dateEnv.createMarkerMeta(standardProps.start):null;var endMeta=standardProps.end?dateEnv.createMarkerMeta(standardProps.end):null;var allDay=standardProps.allDay;if(allDay==null){allDay=startMeta&&startMeta.isTimeUnspecified&&(!endMeta||endMeta.isTimeUnspecified);}// use this leftover object as the selection object\nleftovers.range={start:startMeta?startMeta.marker:null,end:endMeta?endMeta.marker:null};leftovers.allDay=allDay;return leftovers;}function isDateSpansEqual(span0,span1){return rangesEqual(span0.range,span1.range)&&span0.allDay===span1.allDay&&isSpanPropsEqual(span0,span1);}// the NON-DATE-RELATED props\nfunction isSpanPropsEqual(span0,span1){for(var propName in span1){if(propName!=='range'&&propName!=='allDay'){if(span0[propName]!==span1[propName]){return false;}}}// are there any props that span0 has that span1 DOESN'T have?\n// both have range/allDay, so no need to special-case.\nfor(var propName in span0){if(!(propName in span1)){return false;}}return true;}function buildDateSpanApi(span,dateEnv){return{start:dateEnv.toDate(span.range.start),end:dateEnv.toDate(span.range.end),startStr:dateEnv.formatIso(span.range.start,{omitTime:span.allDay}),endStr:dateEnv.formatIso(span.range.end,{omitTime:span.allDay}),allDay:span.allDay};}function buildDatePointApi(span,dateEnv){return{date:dateEnv.toDate(span.range.start),dateStr:dateEnv.formatIso(span.range.start,{omitTime:span.allDay}),allDay:span.allDay};}function fabricateEventRange(dateSpan,eventUiBases,calendar){var def=parseEventDef({editable:false},'',// sourceId\ndateSpan.allDay,true,// hasEnd\ncalendar);return{def:def,ui:compileEventUi(def,eventUiBases),instance:createEventInstance(def.defId,dateSpan.range),range:dateSpan.range,isStart:true,isEnd:true};}function compileViewDefs(defaultConfigs,overrideConfigs){var hash={};var viewType;for(viewType in defaultConfigs){ensureViewDef(viewType,hash,defaultConfigs,overrideConfigs);}for(viewType in overrideConfigs){ensureViewDef(viewType,hash,defaultConfigs,overrideConfigs);}return hash;}function ensureViewDef(viewType,hash,defaultConfigs,overrideConfigs){if(hash[viewType]){return hash[viewType];}var viewDef=buildViewDef(viewType,hash,defaultConfigs,overrideConfigs);if(viewDef){hash[viewType]=viewDef;}return viewDef;}function buildViewDef(viewType,hash,defaultConfigs,overrideConfigs){var defaultConfig=defaultConfigs[viewType];var overrideConfig=overrideConfigs[viewType];var queryProp=function(name){return defaultConfig&&defaultConfig[name]!==null?defaultConfig[name]:overrideConfig&&overrideConfig[name]!==null?overrideConfig[name]:null;};var theClass=queryProp('class');var superType=queryProp('superType');if(!superType&&theClass){superType=findViewNameBySubclass(theClass,overrideConfigs)||findViewNameBySubclass(theClass,defaultConfigs);}var superDef=null;if(superType){if(superType===viewType){throw new Error('Can\\'t have a custom view type that references itself');}superDef=ensureViewDef(superType,hash,defaultConfigs,overrideConfigs);}if(!theClass&&superDef){theClass=superDef.class;}if(!theClass){return null;// don't throw a warning, might be settings for a single-unit view\n}return{type:viewType,class:theClass,defaults:__assign({},superDef?superDef.defaults:{},defaultConfig?defaultConfig.options:{}),overrides:__assign({},superDef?superDef.overrides:{},overrideConfig?overrideConfig.options:{})};}function findViewNameBySubclass(viewSubclass,configs){var superProto=Object.getPrototypeOf(viewSubclass.prototype);for(var viewType in configs){var parsed=configs[viewType];// need DIRECT subclass, so instanceof won't do it\nif(parsed.class&&parsed.class.prototype===superProto){return viewType;}}return'';}function parseViewConfigs(inputs){return mapHash(inputs,parseViewConfig);}var VIEW_DEF_PROPS={type:String,class:null};function parseViewConfig(input){if(typeof input==='function'){input={class:input};}var options={};var props=refineProps(input,VIEW_DEF_PROPS,{},options);return{superType:props.type,class:props.class,options:options};}function buildViewSpecs(defaultInputs,optionsManager){var defaultConfigs=parseViewConfigs(defaultInputs);var overrideConfigs=parseViewConfigs(optionsManager.overrides.views);var viewDefs=compileViewDefs(defaultConfigs,overrideConfigs);return mapHash(viewDefs,function(viewDef){return buildViewSpec(viewDef,overrideConfigs,optionsManager);});}function buildViewSpec(viewDef,overrideConfigs,optionsManager){var durationInput=viewDef.overrides.duration||viewDef.defaults.duration||optionsManager.dynamicOverrides.duration||optionsManager.overrides.duration;var duration=null;var durationUnit='';var singleUnit='';var singleUnitOverrides={};if(durationInput){duration=createDuration(durationInput);if(duration){// valid?\nvar denom=greatestDurationDenominator(duration,!getWeeksFromInput(durationInput));durationUnit=denom.unit;if(denom.value===1){singleUnit=durationUnit;singleUnitOverrides=overrideConfigs[durationUnit]?overrideConfigs[durationUnit].options:{};}}}var queryButtonText=function(options){var buttonTextMap=options.buttonText||{};var buttonTextKey=viewDef.defaults.buttonTextKey;if(buttonTextKey!=null&&buttonTextMap[buttonTextKey]!=null){return buttonTextMap[buttonTextKey];}if(buttonTextMap[viewDef.type]!=null){return buttonTextMap[viewDef.type];}if(buttonTextMap[singleUnit]!=null){return buttonTextMap[singleUnit];}};return{type:viewDef.type,class:viewDef.class,duration:duration,durationUnit:durationUnit,singleUnit:singleUnit,options:__assign({},globalDefaults,viewDef.defaults,optionsManager.dirDefaults,optionsManager.localeDefaults,optionsManager.overrides,singleUnitOverrides,viewDef.overrides,optionsManager.dynamicOverrides),buttonTextOverride:queryButtonText(optionsManager.dynamicOverrides)||queryButtonText(optionsManager.overrides)||// constructor-specified buttonText lookup hash takes precedence\nviewDef.overrides.buttonText,buttonTextDefault:queryButtonText(optionsManager.localeDefaults)||queryButtonText(optionsManager.dirDefaults)||viewDef.defaults.buttonText||queryButtonText(globalDefaults)||viewDef.type// fall back to given view name\n};}var Toolbar=/** @class */function(_super){__extends(Toolbar,_super);function Toolbar(extraClassName){var _this=_super.call(this)||this;_this._renderLayout=memoizeRendering(_this.renderLayout,_this.unrenderLayout);_this._updateTitle=memoizeRendering(_this.updateTitle,null,[_this._renderLayout]);_this._updateActiveButton=memoizeRendering(_this.updateActiveButton,null,[_this._renderLayout]);_this._updateToday=memoizeRendering(_this.updateToday,null,[_this._renderLayout]);_this._updatePrev=memoizeRendering(_this.updatePrev,null,[_this._renderLayout]);_this._updateNext=memoizeRendering(_this.updateNext,null,[_this._renderLayout]);_this.el=createElement('div',{className:'fc-toolbar '+extraClassName});return _this;}Toolbar.prototype.destroy=function(){_super.prototype.destroy.call(this);this._renderLayout.unrender();// should unrender everything else\nremoveElement(this.el);};Toolbar.prototype.render=function(props){this._renderLayout(props.layout);this._updateTitle(props.title);this._updateActiveButton(props.activeButton);this._updateToday(props.isTodayEnabled);this._updatePrev(props.isPrevEnabled);this._updateNext(props.isNextEnabled);};Toolbar.prototype.renderLayout=function(layout){var el=this.el;this.viewsWithButtons=[];appendToElement(el,this.renderSection('left',layout.left));appendToElement(el,this.renderSection('center',layout.center));appendToElement(el,this.renderSection('right',layout.right));};Toolbar.prototype.unrenderLayout=function(){this.el.innerHTML='';};Toolbar.prototype.renderSection=function(position,buttonStr){var _this=this;var _a=this.context,theme=_a.theme,calendar=_a.calendar;var optionsManager=calendar.optionsManager;var viewSpecs=calendar.viewSpecs;var sectionEl=createElement('div',{className:'fc-'+position});var calendarCustomButtons=optionsManager.computed.customButtons||{};var calendarButtonTextOverrides=optionsManager.overrides.buttonText||{};var calendarButtonText=optionsManager.computed.buttonText||{};if(buttonStr){buttonStr.split(' ').forEach(function(buttonGroupStr,i){var groupChildren=[];var isOnlyButtons=true;var groupEl;buttonGroupStr.split(',').forEach(function(buttonName,j){var customButtonProps;var viewSpec;var buttonClick;var buttonIcon;// only one of these will be set\nvar buttonText;// \"\nvar buttonInnerHtml;var buttonClasses;var buttonEl;var buttonAriaAttr;if(buttonName==='title'){groupChildren.push(htmlToElement('<h2>&nbsp;</h2>'));// we always want it to take up height\nisOnlyButtons=false;}else{if(customButtonProps=calendarCustomButtons[buttonName]){buttonClick=function(ev){if(customButtonProps.click){customButtonProps.click.call(buttonEl,ev);}};(buttonIcon=theme.getCustomButtonIconClass(customButtonProps))||(buttonIcon=theme.getIconClass(buttonName))||(buttonText=customButtonProps.text);}else if(viewSpec=viewSpecs[buttonName]){_this.viewsWithButtons.push(buttonName);buttonClick=function(){calendar.changeView(buttonName);};(buttonText=viewSpec.buttonTextOverride)||(buttonIcon=theme.getIconClass(buttonName))||(buttonText=viewSpec.buttonTextDefault);}else if(calendar[buttonName]){// a calendar method\nbuttonClick=function(){calendar[buttonName]();};(buttonText=calendarButtonTextOverrides[buttonName])||(buttonIcon=theme.getIconClass(buttonName))||(buttonText=calendarButtonText[buttonName]);//            ^ everything else is considered default\n}if(buttonClick){buttonClasses=['fc-'+buttonName+'-button',theme.getClass('button')];if(buttonText){buttonInnerHtml=htmlEscape(buttonText);buttonAriaAttr='';}else if(buttonIcon){buttonInnerHtml=\"<span class='\"+buttonIcon+\"'></span>\";buttonAriaAttr=' aria-label=\"'+buttonName+'\"';}buttonEl=htmlToElement(// type=\"button\" so that it doesn't submit a form\n'<button type=\"button\" class=\"'+buttonClasses.join(' ')+'\"'+buttonAriaAttr+'>'+buttonInnerHtml+'</button>');buttonEl.addEventListener('click',buttonClick);groupChildren.push(buttonEl);}}});if(groupChildren.length>1){groupEl=document.createElement('div');var buttonGroupClassName=theme.getClass('buttonGroup');if(isOnlyButtons&&buttonGroupClassName){groupEl.classList.add(buttonGroupClassName);}appendToElement(groupEl,groupChildren);sectionEl.appendChild(groupEl);}else{appendToElement(sectionEl,groupChildren);// 1 or 0 children\n}});}return sectionEl;};Toolbar.prototype.updateToday=function(isTodayEnabled){this.toggleButtonEnabled('today',isTodayEnabled);};Toolbar.prototype.updatePrev=function(isPrevEnabled){this.toggleButtonEnabled('prev',isPrevEnabled);};Toolbar.prototype.updateNext=function(isNextEnabled){this.toggleButtonEnabled('next',isNextEnabled);};Toolbar.prototype.updateTitle=function(text){findElements(this.el,'h2').forEach(function(titleEl){titleEl.innerText=text;});};Toolbar.prototype.updateActiveButton=function(buttonName){var theme=this.context.theme;var className=theme.getClass('buttonActive');findElements(this.el,'button').forEach(function(buttonEl){if(buttonName&&buttonEl.classList.contains('fc-'+buttonName+'-button')){buttonEl.classList.add(className);}else{buttonEl.classList.remove(className);}});};Toolbar.prototype.toggleButtonEnabled=function(buttonName,bool){findElements(this.el,'.fc-'+buttonName+'-button').forEach(function(buttonEl){buttonEl.disabled=!bool;});};return Toolbar;}(Component);var CalendarComponent=/** @class */function(_super){__extends(CalendarComponent,_super);function CalendarComponent(el){var _this=_super.call(this)||this;_this.elClassNames=[];_this.renderSkeleton=memoizeRendering(_this._renderSkeleton,_this._unrenderSkeleton);_this.renderToolbars=memoizeRendering(_this._renderToolbars,_this._unrenderToolbars,[_this.renderSkeleton]);_this.buildComponentContext=memoize(buildComponentContext);_this.buildViewPropTransformers=memoize(buildViewPropTransformers);_this.el=el;_this.computeTitle=memoize(computeTitle);_this.parseBusinessHours=memoize(function(input){return parseBusinessHours(input,_this.context.calendar);});return _this;}CalendarComponent.prototype.render=function(props,context){this.freezeHeight();var title=this.computeTitle(props.dateProfile,props.viewSpec.options);this.renderSkeleton(context);this.renderToolbars(props.viewSpec,props.dateProfile,props.currentDate,title);this.renderView(props,title);this.updateSize();this.thawHeight();};CalendarComponent.prototype.destroy=function(){if(this.header){this.header.destroy();}if(this.footer){this.footer.destroy();}this.renderSkeleton.unrender();// will call destroyView\n_super.prototype.destroy.call(this);};CalendarComponent.prototype._renderSkeleton=function(context){this.updateElClassNames(context);prependToElement(this.el,this.contentEl=createElement('div',{className:'fc-view-container'}));var calendar=context.calendar;for(var _i=0,_a=calendar.pluginSystem.hooks.viewContainerModifiers;_i<_a.length;_i++){var modifyViewContainer=_a[_i];modifyViewContainer(this.contentEl,calendar);}};CalendarComponent.prototype._unrenderSkeleton=function(){// weird to have this here\nif(this.view){this.savedScroll=this.view.queryScroll();this.view.destroy();this.view=null;}removeElement(this.contentEl);this.removeElClassNames();};CalendarComponent.prototype.removeElClassNames=function(){var classList=this.el.classList;for(var _i=0,_a=this.elClassNames;_i<_a.length;_i++){var className=_a[_i];classList.remove(className);}this.elClassNames=[];};CalendarComponent.prototype.updateElClassNames=function(context){this.removeElClassNames();var theme=context.theme,options=context.options;this.elClassNames=['fc','fc-'+options.dir,theme.getClass('widget')];var classList=this.el.classList;for(var _i=0,_a=this.elClassNames;_i<_a.length;_i++){var className=_a[_i];classList.add(className);}};CalendarComponent.prototype._renderToolbars=function(viewSpec,dateProfile,currentDate,title){var _a=this,context=_a.context,header=_a.header,footer=_a.footer;var options=context.options,calendar=context.calendar;var headerLayout=options.header;var footerLayout=options.footer;var dateProfileGenerator=this.props.dateProfileGenerator;var now=calendar.getNow();var todayInfo=dateProfileGenerator.build(now);var prevInfo=dateProfileGenerator.buildPrev(dateProfile,currentDate);var nextInfo=dateProfileGenerator.buildNext(dateProfile,currentDate);var toolbarProps={title:title,activeButton:viewSpec.type,isTodayEnabled:todayInfo.isValid&&!rangeContainsMarker(dateProfile.currentRange,now),isPrevEnabled:prevInfo.isValid,isNextEnabled:nextInfo.isValid};if(headerLayout){if(!header){header=this.header=new Toolbar('fc-header-toolbar');prependToElement(this.el,header.el);}header.receiveProps(__assign({layout:headerLayout},toolbarProps),context);}else if(header){header.destroy();header=this.header=null;}if(footerLayout){if(!footer){footer=this.footer=new Toolbar('fc-footer-toolbar');appendToElement(this.el,footer.el);}footer.receiveProps(__assign({layout:footerLayout},toolbarProps),context);}else if(footer){footer.destroy();footer=this.footer=null;}};CalendarComponent.prototype._unrenderToolbars=function(){if(this.header){this.header.destroy();this.header=null;}if(this.footer){this.footer.destroy();this.footer=null;}};CalendarComponent.prototype.renderView=function(props,title){var view=this.view;var _a=this.context,calendar=_a.calendar,options=_a.options;var viewSpec=props.viewSpec,dateProfileGenerator=props.dateProfileGenerator;if(!view||view.viewSpec!==viewSpec){if(view){view.destroy();}view=this.view=new viewSpec['class'](viewSpec,this.contentEl);if(this.savedScroll){view.addScroll(this.savedScroll,true);this.savedScroll=null;}}view.title=title;// for the API\nvar viewProps={dateProfileGenerator:dateProfileGenerator,dateProfile:props.dateProfile,businessHours:this.parseBusinessHours(viewSpec.options.businessHours),eventStore:props.eventStore,eventUiBases:props.eventUiBases,dateSelection:props.dateSelection,eventSelection:props.eventSelection,eventDrag:props.eventDrag,eventResize:props.eventResize};var transformers=this.buildViewPropTransformers(calendar.pluginSystem.hooks.viewPropsTransformers);for(var _i=0,transformers_1=transformers;_i<transformers_1.length;_i++){var transformer=transformers_1[_i];__assign(viewProps,transformer.transform(viewProps,viewSpec,props,options));}view.receiveProps(viewProps,this.buildComponentContext(this.context,viewSpec,view));};// Sizing\n// -----------------------------------------------------------------------------------------------------------------\nCalendarComponent.prototype.updateSize=function(isResize){if(isResize===void 0){isResize=false;}var view=this.view;if(!view){return;// why?\n}if(isResize||this.isHeightAuto==null){this.computeHeightVars();}view.updateSize(isResize,this.viewHeight,this.isHeightAuto);view.updateNowIndicator();// we need to guarantee this will run after updateSize\nview.popScroll(isResize);};CalendarComponent.prototype.computeHeightVars=function(){var calendar=this.context.calendar;// yuck. need to handle dynamic options\nvar heightInput=calendar.opt('height');var contentHeightInput=calendar.opt('contentHeight');this.isHeightAuto=heightInput==='auto'||contentHeightInput==='auto';if(typeof contentHeightInput==='number'){// exists and not 'auto'\nthis.viewHeight=contentHeightInput;}else if(typeof contentHeightInput==='function'){// exists and is a function\nthis.viewHeight=contentHeightInput();}else if(typeof heightInput==='number'){// exists and not 'auto'\nthis.viewHeight=heightInput-this.queryToolbarsHeight();}else if(typeof heightInput==='function'){// exists and is a function\nthis.viewHeight=heightInput()-this.queryToolbarsHeight();}else if(heightInput==='parent'){// set to height of parent element\nvar parentEl=this.el.parentNode;this.viewHeight=parentEl.getBoundingClientRect().height-this.queryToolbarsHeight();}else{this.viewHeight=Math.round(this.contentEl.getBoundingClientRect().width/Math.max(calendar.opt('aspectRatio'),.5));}};CalendarComponent.prototype.queryToolbarsHeight=function(){var height=0;if(this.header){height+=computeHeightAndMargins(this.header.el);}if(this.footer){height+=computeHeightAndMargins(this.footer.el);}return height;};// Height \"Freezing\"\n// -----------------------------------------------------------------------------------------------------------------\nCalendarComponent.prototype.freezeHeight=function(){applyStyle(this.el,{height:this.el.getBoundingClientRect().height,overflow:'hidden'});};CalendarComponent.prototype.thawHeight=function(){applyStyle(this.el,{height:'',overflow:''});};return CalendarComponent;}(Component);// Title and Date Formatting\n// -----------------------------------------------------------------------------------------------------------------\n// Computes what the title at the top of the calendar should be for this view\nfunction computeTitle(dateProfile,viewOptions){var range;// for views that span a large unit of time, show the proper interval, ignoring stray days before and after\nif(/^(year|month)$/.test(dateProfile.currentRangeUnit)){range=dateProfile.currentRange;}else{// for day units or smaller, use the actual day range\nrange=dateProfile.activeRange;}return this.context.dateEnv.formatRange(range.start,range.end,createFormatter(viewOptions.titleFormat||computeTitleFormat(dateProfile),viewOptions.titleRangeSeparator),{isEndExclusive:dateProfile.isRangeAllDay});}// Generates the format string that should be used to generate the title for the current date range.\n// Attempts to compute the most appropriate format if not explicitly specified with `titleFormat`.\nfunction computeTitleFormat(dateProfile){var currentRangeUnit=dateProfile.currentRangeUnit;if(currentRangeUnit==='year'){return{year:'numeric'};}else if(currentRangeUnit==='month'){return{year:'numeric',month:'long'};// like \"September 2014\"\n}else{var days=diffWholeDays(dateProfile.currentRange.start,dateProfile.currentRange.end);if(days!==null&&days>1){// multi-day range. shorter, like \"Sep 9 - 10 2014\"\nreturn{year:'numeric',month:'short',day:'numeric'};}else{// one day. longer, like \"September 9 2014\"\nreturn{year:'numeric',month:'long',day:'numeric'};}}}// build a context scoped to the view\nfunction buildComponentContext(context,viewSpec,view){return context.extend(viewSpec.options,view);}// Plugin\n// -----------------------------------------------------------------------------------------------------------------\nfunction buildViewPropTransformers(theClasses){return theClasses.map(function(theClass){return new theClass();});}var Interaction=/** @class */function(){function Interaction(settings){this.component=settings.component;}Interaction.prototype.destroy=function(){};return Interaction;}();function parseInteractionSettings(component,input){return{component:component,el:input.el,useEventCenter:input.useEventCenter!=null?input.useEventCenter:true};}function interactionSettingsToStore(settings){var _a;return _a={},_a[settings.component.uid]=settings,_a;}// global state\nvar interactionSettingsStore={};/*\r\n    Detects when the user clicks on an event within a DateComponent\r\n    */var EventClicking=/** @class */function(_super){__extends(EventClicking,_super);function EventClicking(settings){var _this=_super.call(this,settings)||this;_this.handleSegClick=function(ev,segEl){var component=_this.component;var _a=component.context,calendar=_a.calendar,view=_a.view;var seg=getElSeg(segEl);if(seg&&// might be the <div> surrounding the more link\ncomponent.isValidSegDownEl(ev.target)){// our way to simulate a link click for elements that can't be <a> tags\n// grab before trigger fired in case trigger trashes DOM thru rerendering\nvar hasUrlContainer=elementClosest(ev.target,'.fc-has-url');var url=hasUrlContainer?hasUrlContainer.querySelector('a[href]').href:'';calendar.publiclyTrigger('eventClick',[{el:segEl,event:new EventApi(component.context.calendar,seg.eventRange.def,seg.eventRange.instance),jsEvent:ev,view:view}]);if(url&&!ev.defaultPrevented){window.location.href=url;}}};var component=settings.component;_this.destroy=listenBySelector(component.el,'click',component.fgSegSelector+','+component.bgSegSelector,_this.handleSegClick);return _this;}return EventClicking;}(Interaction);/*\r\n    Triggers events and adds/removes core classNames when the user's pointer\r\n    enters/leaves event-elements of a component.\r\n    */var EventHovering=/** @class */function(_super){__extends(EventHovering,_super);function EventHovering(settings){var _this=_super.call(this,settings)||this;// for simulating an eventMouseLeave when the event el is destroyed while mouse is over it\n_this.handleEventElRemove=function(el){if(el===_this.currentSegEl){_this.handleSegLeave(null,_this.currentSegEl);}};_this.handleSegEnter=function(ev,segEl){if(getElSeg(segEl)){// TODO: better way to make sure not hovering over more+ link or its wrapper\nsegEl.classList.add('fc-allow-mouse-resize');_this.currentSegEl=segEl;_this.triggerEvent('eventMouseEnter',ev,segEl);}};_this.handleSegLeave=function(ev,segEl){if(_this.currentSegEl){segEl.classList.remove('fc-allow-mouse-resize');_this.currentSegEl=null;_this.triggerEvent('eventMouseLeave',ev,segEl);}};var component=settings.component;_this.removeHoverListeners=listenToHoverBySelector(component.el,component.fgSegSelector+','+component.bgSegSelector,_this.handleSegEnter,_this.handleSegLeave);// how to make sure component already has context?\ncomponent.context.calendar.on('eventElRemove',_this.handleEventElRemove);return _this;}EventHovering.prototype.destroy=function(){this.removeHoverListeners();this.component.context.calendar.off('eventElRemove',this.handleEventElRemove);};EventHovering.prototype.triggerEvent=function(publicEvName,ev,segEl){var component=this.component;var _a=component.context,calendar=_a.calendar,view=_a.view;var seg=getElSeg(segEl);if(!ev||component.isValidSegDownEl(ev.target)){calendar.publiclyTrigger(publicEvName,[{el:segEl,event:new EventApi(calendar,seg.eventRange.def,seg.eventRange.instance),jsEvent:ev,view:view}]);}};return EventHovering;}(Interaction);var StandardTheme=/** @class */function(_super){__extends(StandardTheme,_super);function StandardTheme(){return _super!==null&&_super.apply(this,arguments)||this;}return StandardTheme;}(Theme);StandardTheme.prototype.classes={widget:'fc-unthemed',widgetHeader:'fc-widget-header',widgetContent:'fc-widget-content',buttonGroup:'fc-button-group',button:'fc-button fc-button-primary',buttonActive:'fc-button-active',popoverHeader:'fc-widget-header',popoverContent:'fc-widget-content',// day grid\nheaderRow:'fc-widget-header',dayRow:'fc-widget-content',// list view\nlistView:'fc-widget-content'};StandardTheme.prototype.baseIconClass='fc-icon';StandardTheme.prototype.iconClasses={close:'fc-icon-x',prev:'fc-icon-chevron-left',next:'fc-icon-chevron-right',prevYear:'fc-icon-chevrons-left',nextYear:'fc-icon-chevrons-right'};StandardTheme.prototype.iconOverrideOption='buttonIcons';StandardTheme.prototype.iconOverrideCustomButtonOption='icon';StandardTheme.prototype.iconOverridePrefix='fc-icon-';var Calendar=/** @class */function(){function Calendar(el,overrides){var _this=this;this.buildComponentContext=memoize(buildComponentContext$1);this.parseRawLocales=memoize(parseRawLocales);this.buildLocale=memoize(buildLocale);this.buildDateEnv=memoize(buildDateEnv);this.buildTheme=memoize(buildTheme);this.buildEventUiSingleBase=memoize(this._buildEventUiSingleBase);this.buildSelectionConfig=memoize(this._buildSelectionConfig);this.buildEventUiBySource=memoizeOutput(buildEventUiBySource,isPropsEqual);this.buildEventUiBases=memoize(buildEventUiBases);this.interactionsStore={};this.actionQueue=[];this.isReducing=false;// isDisplaying: boolean = false // installed in DOM? accepting renders?\nthis.needsRerender=false;// needs a render?\nthis.isRendering=false;// currently in the executeRender function?\nthis.renderingPauseDepth=0;this.buildDelayedRerender=memoize(buildDelayedRerender);this.afterSizingTriggers={};this.isViewUpdated=false;this.isDatesUpdated=false;this.isEventsUpdated=false;this.el=el;this.optionsManager=new OptionsManager(overrides||{});this.pluginSystem=new PluginSystem();// only do once. don't do in handleOptions. because can't remove plugins\nthis.addPluginInputs(this.optionsManager.computed.plugins||[]);this.handleOptions(this.optionsManager.computed);this.publiclyTrigger('_init');// for tests\nthis.hydrate();this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map(function(calendarInteractionClass){return new calendarInteractionClass(_this);});}Calendar.prototype.addPluginInputs=function(pluginInputs){var pluginDefs=refinePluginDefs(pluginInputs);for(var _i=0,pluginDefs_1=pluginDefs;_i<pluginDefs_1.length;_i++){var pluginDef=pluginDefs_1[_i];this.pluginSystem.add(pluginDef);}};Object.defineProperty(Calendar.prototype,\"view\",{// public API\nget:function(){return this.component?this.component.view:null;},enumerable:true,configurable:true});// Public API for rendering\n// -----------------------------------------------------------------------------------------------------------------\nCalendar.prototype.render=function(){if(!this.component){this.component=new CalendarComponent(this.el);this.renderableEventStore=createEmptyEventStore();this.bindHandlers();this.executeRender();}else{this.requestRerender();}};Calendar.prototype.destroy=function(){if(this.component){this.unbindHandlers();this.component.destroy();// don't null-out. in case API needs access\nthis.component=null;// umm ???\nfor(var _i=0,_a=this.calendarInteractions;_i<_a.length;_i++){var interaction=_a[_i];interaction.destroy();}this.publiclyTrigger('_destroyed');}};// Handlers\n// -----------------------------------------------------------------------------------------------------------------\nCalendar.prototype.bindHandlers=function(){var _this=this;// event delegation for nav links\nthis.removeNavLinkListener=listenBySelector(this.el,'click','a[data-goto]',function(ev,anchorEl){var gotoOptions=anchorEl.getAttribute('data-goto');gotoOptions=gotoOptions?JSON.parse(gotoOptions):{};var dateEnv=_this.dateEnv;var dateMarker=dateEnv.createMarker(gotoOptions.date);var viewType=gotoOptions.type;// property like \"navLinkDayClick\". might be a string or a function\nvar customAction=_this.viewOpt('navLink'+capitaliseFirstLetter(viewType)+'Click');if(typeof customAction==='function'){customAction(dateEnv.toDate(dateMarker),ev);}else{if(typeof customAction==='string'){viewType=customAction;}_this.zoomTo(dateMarker,viewType);}});if(this.opt('handleWindowResize')){window.addEventListener('resize',this.windowResizeProxy=debounce(// prevents rapid calls\nthis.windowResize.bind(this),this.opt('windowResizeDelay')));}};Calendar.prototype.unbindHandlers=function(){this.removeNavLinkListener();if(this.windowResizeProxy){window.removeEventListener('resize',this.windowResizeProxy);this.windowResizeProxy=null;}};// Dispatcher\n// -----------------------------------------------------------------------------------------------------------------\nCalendar.prototype.hydrate=function(){var _this=this;this.state=this.buildInitialState();var rawSources=this.opt('eventSources')||[];var singleRawSource=this.opt('events');var sources=[];// parsed\nif(singleRawSource){rawSources.unshift(singleRawSource);}for(var _i=0,rawSources_1=rawSources;_i<rawSources_1.length;_i++){var rawSource=rawSources_1[_i];var source=parseEventSource(rawSource,this);if(source){sources.push(source);}}this.batchRendering(function(){_this.dispatch({type:'INIT'});// pass in sources here?\n_this.dispatch({type:'ADD_EVENT_SOURCES',sources:sources});_this.dispatch({type:'SET_VIEW_TYPE',viewType:_this.opt('defaultView')||_this.pluginSystem.hooks.defaultView});});};Calendar.prototype.buildInitialState=function(){return{viewType:null,loadingLevel:0,eventSourceLoadingLevel:0,currentDate:this.getInitialDate(),dateProfile:null,eventSources:{},eventStore:createEmptyEventStore(),dateSelection:null,eventSelection:'',eventDrag:null,eventResize:null};};Calendar.prototype.dispatch=function(action){this.actionQueue.push(action);if(!this.isReducing){this.isReducing=true;var oldState=this.state;while(this.actionQueue.length){this.state=this.reduce(this.state,this.actionQueue.shift(),this);}var newState=this.state;this.isReducing=false;if(!oldState.loadingLevel&&newState.loadingLevel){this.publiclyTrigger('loading',[true]);}else if(oldState.loadingLevel&&!newState.loadingLevel){this.publiclyTrigger('loading',[false]);}var view=this.component&&this.component.view;if(oldState.eventStore!==newState.eventStore){if(oldState.eventStore){this.isEventsUpdated=true;}}if(oldState.dateProfile!==newState.dateProfile){if(oldState.dateProfile&&view){// why would view be null!?\nthis.publiclyTrigger('datesDestroy',[{view:view,el:view.el}]);}this.isDatesUpdated=true;}if(oldState.viewType!==newState.viewType){if(oldState.viewType&&view){// why would view be null!?\nthis.publiclyTrigger('viewSkeletonDestroy',[{view:view,el:view.el}]);}this.isViewUpdated=true;}this.requestRerender();}};Calendar.prototype.reduce=function(state,action,calendar){return reduce(state,action,calendar);};// Render Queue\n// -----------------------------------------------------------------------------------------------------------------\nCalendar.prototype.requestRerender=function(){this.needsRerender=true;this.delayedRerender();// will call a debounced-version of tryRerender\n};Calendar.prototype.tryRerender=function(){if(this.component&&// must be accepting renders\nthis.needsRerender&&// indicates that a rerender was requested\n!this.renderingPauseDepth&&// not paused\n!this.isRendering// not currently in the render loop\n){this.executeRender();}};Calendar.prototype.batchRendering=function(func){this.renderingPauseDepth++;func();this.renderingPauseDepth--;if(this.needsRerender){this.requestRerender();}};// Rendering\n// -----------------------------------------------------------------------------------------------------------------\nCalendar.prototype.executeRender=function(){// clear these BEFORE the render so that new values will accumulate during render\nthis.needsRerender=false;this.isRendering=true;this.renderComponent();this.isRendering=false;// received a rerender request while rendering\nif(this.needsRerender){this.delayedRerender();}};/*\r\n        don't call this directly. use executeRender instead\r\n        */Calendar.prototype.renderComponent=function(){var _a=this,state=_a.state,component=_a.component;var viewType=state.viewType;var viewSpec=this.viewSpecs[viewType];if(!viewSpec){throw new Error(\"View type \\\"\"+viewType+\"\\\" is not valid\");}// if event sources are still loading and progressive rendering hasn't been enabled,\n// keep rendering the last fully loaded set of events\nvar renderableEventStore=this.renderableEventStore=state.eventSourceLoadingLevel&&!this.opt('progressiveEventRendering')?this.renderableEventStore:state.eventStore;var eventUiSingleBase=this.buildEventUiSingleBase(viewSpec.options);var eventUiBySource=this.buildEventUiBySource(state.eventSources);var eventUiBases=this.eventUiBases=this.buildEventUiBases(renderableEventStore.defs,eventUiSingleBase,eventUiBySource);component.receiveProps(__assign({},state,{viewSpec:viewSpec,dateProfileGenerator:this.dateProfileGenerators[viewType],dateProfile:state.dateProfile,eventStore:renderableEventStore,eventUiBases:eventUiBases,dateSelection:state.dateSelection,eventSelection:state.eventSelection,eventDrag:state.eventDrag,eventResize:state.eventResize}),this.buildComponentContext(this.theme,this.dateEnv,this.optionsManager.computed));if(this.isViewUpdated){this.isViewUpdated=false;this.publiclyTrigger('viewSkeletonRender',[{view:component.view,el:component.view.el}]);}if(this.isDatesUpdated){this.isDatesUpdated=false;this.publiclyTrigger('datesRender',[{view:component.view,el:component.view.el}]);}if(this.isEventsUpdated){this.isEventsUpdated=false;}this.releaseAfterSizingTriggers();};// Options\n// -----------------------------------------------------------------------------------------------------------------\nCalendar.prototype.setOption=function(name,val){var _a;this.mutateOptions((_a={},_a[name]=val,_a),[],true);};Calendar.prototype.getOption=function(name){return this.optionsManager.computed[name];};Calendar.prototype.opt=function(name){return this.optionsManager.computed[name];};Calendar.prototype.viewOpt=function(name){return this.viewOpts()[name];};Calendar.prototype.viewOpts=function(){return this.viewSpecs[this.state.viewType].options;};/*\r\n        handles option changes (like a diff)\r\n        */Calendar.prototype.mutateOptions=function(updates,removals,isDynamic,deepEqual){var _this=this;var changeHandlers=this.pluginSystem.hooks.optionChangeHandlers;var normalUpdates={};var specialUpdates={};var oldDateEnv=this.dateEnv;// do this before handleOptions\nvar isTimeZoneDirty=false;var isSizeDirty=false;var anyDifficultOptions=Boolean(removals.length);for(var name_1 in updates){if(changeHandlers[name_1]){specialUpdates[name_1]=updates[name_1];}else{normalUpdates[name_1]=updates[name_1];}}for(var name_2 in normalUpdates){if(/^(height|contentHeight|aspectRatio)$/.test(name_2)){isSizeDirty=true;}else if(/^(defaultDate|defaultView)$/.test(name_2));else{anyDifficultOptions=true;if(name_2==='timeZone'){isTimeZoneDirty=true;}}}this.optionsManager.mutate(normalUpdates,removals,isDynamic);if(anyDifficultOptions){this.handleOptions(this.optionsManager.computed);}this.batchRendering(function(){if(anyDifficultOptions){if(isTimeZoneDirty){_this.dispatch({type:'CHANGE_TIMEZONE',oldDateEnv:oldDateEnv});}/* HACK\r\n                    has the same effect as calling this.requestRerender()\r\n                    but recomputes the state's dateProfile\r\n                    */_this.dispatch({type:'SET_VIEW_TYPE',viewType:_this.state.viewType});}else if(isSizeDirty){_this.updateSize();}// special updates\nif(deepEqual){for(var name_3 in specialUpdates){changeHandlers[name_3](specialUpdates[name_3],_this,deepEqual);}}});};/*\r\n        rebuilds things based off of a complete set of refined options\r\n        */Calendar.prototype.handleOptions=function(options){var _this=this;var pluginHooks=this.pluginSystem.hooks;this.defaultAllDayEventDuration=createDuration(options.defaultAllDayEventDuration);this.defaultTimedEventDuration=createDuration(options.defaultTimedEventDuration);this.delayedRerender=this.buildDelayedRerender(options.rerenderDelay);this.theme=this.buildTheme(options);var available=this.parseRawLocales(options.locales);this.availableRawLocales=available.map;var locale=this.buildLocale(options.locale||available.defaultCode,available.map);this.dateEnv=this.buildDateEnv(locale,options.timeZone,pluginHooks.namedTimeZonedImpl,options.firstDay,options.weekNumberCalculation,options.weekLabel,pluginHooks.cmdFormatter);this.selectionConfig=this.buildSelectionConfig(options);// needs dateEnv. do after :(\n// ineffecient to do every time?\nthis.viewSpecs=buildViewSpecs(pluginHooks.views,this.optionsManager);// ineffecient to do every time?\nthis.dateProfileGenerators=mapHash(this.viewSpecs,function(viewSpec){return new viewSpec.class.prototype.dateProfileGeneratorClass(viewSpec,_this);});};Calendar.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.availableRawLocales);};Calendar.prototype._buildSelectionConfig=function(rawOpts){return processScopedUiProps('select',rawOpts,this);};Calendar.prototype._buildEventUiSingleBase=function(rawOpts){if(rawOpts.editable){// so 'editable' affected events\nrawOpts=__assign({},rawOpts,{eventEditable:true});}return processScopedUiProps('event',rawOpts,this);};// Trigger\n// -----------------------------------------------------------------------------------------------------------------\nCalendar.prototype.hasPublicHandlers=function(name){return this.hasHandlers(name)||this.opt(name);// handler specified in options\n};Calendar.prototype.publiclyTrigger=function(name,args){var optHandler=this.opt(name);this.triggerWith(name,this,args);if(optHandler){return optHandler.apply(this,args);}};Calendar.prototype.publiclyTriggerAfterSizing=function(name,args){var afterSizingTriggers=this.afterSizingTriggers;(afterSizingTriggers[name]||(afterSizingTriggers[name]=[])).push(args);};Calendar.prototype.releaseAfterSizingTriggers=function(){var afterSizingTriggers=this.afterSizingTriggers;for(var name_4 in afterSizingTriggers){for(var _i=0,_a=afterSizingTriggers[name_4];_i<_a.length;_i++){var args=_a[_i];this.publiclyTrigger(name_4,args);}}this.afterSizingTriggers={};};// View\n// -----------------------------------------------------------------------------------------------------------------\n// Returns a boolean about whether the view is okay to instantiate at some point\nCalendar.prototype.isValidViewType=function(viewType){return Boolean(this.viewSpecs[viewType]);};Calendar.prototype.changeView=function(viewType,dateOrRange){var dateMarker=null;if(dateOrRange){if(dateOrRange.start&&dateOrRange.end){// a range\nthis.optionsManager.mutate({visibleRange:dateOrRange},[]);// will not rerender\nthis.handleOptions(this.optionsManager.computed);// ...but yuck\n}else{// a date\ndateMarker=this.dateEnv.createMarker(dateOrRange);// just like gotoDate\n}}this.unselect();this.dispatch({type:'SET_VIEW_TYPE',viewType:viewType,dateMarker:dateMarker});};// Forces navigation to a view for the given date.\n// `viewType` can be a specific view name or a generic one like \"week\" or \"day\".\n// needs to change\nCalendar.prototype.zoomTo=function(dateMarker,viewType){var spec;viewType=viewType||'day';// day is default zoom\nspec=this.viewSpecs[viewType]||this.getUnitViewSpec(viewType);this.unselect();if(spec){this.dispatch({type:'SET_VIEW_TYPE',viewType:spec.type,dateMarker:dateMarker});}else{this.dispatch({type:'SET_DATE',dateMarker:dateMarker});}};// Given a duration singular unit, like \"week\" or \"day\", finds a matching view spec.\n// Preference is given to views that have corresponding buttons.\nCalendar.prototype.getUnitViewSpec=function(unit){var component=this.component;var viewTypes=[];var i;var spec;// put views that have buttons first. there will be duplicates, but oh\nif(component.header){viewTypes.push.apply(viewTypes,component.header.viewsWithButtons);}if(component.footer){viewTypes.push.apply(viewTypes,component.footer.viewsWithButtons);}for(var viewType in this.viewSpecs){viewTypes.push(viewType);}for(i=0;i<viewTypes.length;i++){spec=this.viewSpecs[viewTypes[i]];if(spec){if(spec.singleUnit===unit){return spec;}}}};// Current Date\n// -----------------------------------------------------------------------------------------------------------------\nCalendar.prototype.getInitialDate=function(){var defaultDateInput=this.opt('defaultDate');// compute the initial ambig-timezone date\nif(defaultDateInput!=null){return this.dateEnv.createMarker(defaultDateInput);}else{return this.getNow();// getNow already returns unzoned\n}};Calendar.prototype.prev=function(){this.unselect();this.dispatch({type:'PREV'});};Calendar.prototype.next=function(){this.unselect();this.dispatch({type:'NEXT'});};Calendar.prototype.prevYear=function(){this.unselect();this.dispatch({type:'SET_DATE',dateMarker:this.dateEnv.addYears(this.state.currentDate,-1)});};Calendar.prototype.nextYear=function(){this.unselect();this.dispatch({type:'SET_DATE',dateMarker:this.dateEnv.addYears(this.state.currentDate,1)});};Calendar.prototype.today=function(){this.unselect();this.dispatch({type:'SET_DATE',dateMarker:this.getNow()});};Calendar.prototype.gotoDate=function(zonedDateInput){this.unselect();this.dispatch({type:'SET_DATE',dateMarker:this.dateEnv.createMarker(zonedDateInput)});};Calendar.prototype.incrementDate=function(deltaInput){var delta=createDuration(deltaInput);if(delta){// else, warn about invalid input?\nthis.unselect();this.dispatch({type:'SET_DATE',dateMarker:this.dateEnv.add(this.state.currentDate,delta)});}};// for external API\nCalendar.prototype.getDate=function(){return this.dateEnv.toDate(this.state.currentDate);};// Date Formatting Utils\n// -----------------------------------------------------------------------------------------------------------------\nCalendar.prototype.formatDate=function(d,formatter){var dateEnv=this.dateEnv;return dateEnv.format(dateEnv.createMarker(d),createFormatter(formatter));};// `settings` is for formatter AND isEndExclusive\nCalendar.prototype.formatRange=function(d0,d1,settings){var dateEnv=this.dateEnv;return dateEnv.formatRange(dateEnv.createMarker(d0),dateEnv.createMarker(d1),createFormatter(settings,this.opt('defaultRangeSeparator')),settings);};Calendar.prototype.formatIso=function(d,omitTime){var dateEnv=this.dateEnv;return dateEnv.formatIso(dateEnv.createMarker(d),{omitTime:omitTime});};// Sizing\n// -----------------------------------------------------------------------------------------------------------------\nCalendar.prototype.windowResize=function(ev){if(!this.isHandlingWindowResize&&this.component&&// why?\nev.target===window// not a jqui resize event\n){this.isHandlingWindowResize=true;this.updateSize();this.publiclyTrigger('windowResize',[this.view]);this.isHandlingWindowResize=false;}};Calendar.prototype.updateSize=function(){if(this.component){// when?\nthis.component.updateSize(true);}};// Component Registration\n// -----------------------------------------------------------------------------------------------------------------\nCalendar.prototype.registerInteractiveComponent=function(component,settingsInput){var settings=parseInteractionSettings(component,settingsInput);var DEFAULT_INTERACTIONS=[EventClicking,EventHovering];var interactionClasses=DEFAULT_INTERACTIONS.concat(this.pluginSystem.hooks.componentInteractions);var interactions=interactionClasses.map(function(interactionClass){return new interactionClass(settings);});this.interactionsStore[component.uid]=interactions;interactionSettingsStore[component.uid]=settings;};Calendar.prototype.unregisterInteractiveComponent=function(component){for(var _i=0,_a=this.interactionsStore[component.uid];_i<_a.length;_i++){var listener=_a[_i];listener.destroy();}delete this.interactionsStore[component.uid];delete interactionSettingsStore[component.uid];};// Date Selection / Event Selection / DayClick\n// -----------------------------------------------------------------------------------------------------------------\n// this public method receives start/end dates in any format, with any timezone\n// NOTE: args were changed from v3\nCalendar.prototype.select=function(dateOrObj,endDate){var selectionInput;if(endDate==null){if(dateOrObj.start!=null){selectionInput=dateOrObj;}else{selectionInput={start:dateOrObj,end:null};}}else{selectionInput={start:dateOrObj,end:endDate};}var selection=parseDateSpan(selectionInput,this.dateEnv,createDuration({days:1})// TODO: cache this?\n);if(selection){// throw parse error otherwise?\nthis.dispatch({type:'SELECT_DATES',selection:selection});this.triggerDateSelect(selection);}};// public method\nCalendar.prototype.unselect=function(pev){if(this.state.dateSelection){this.dispatch({type:'UNSELECT_DATES'});this.triggerDateUnselect(pev);}};Calendar.prototype.triggerDateSelect=function(selection,pev){var arg=__assign({},this.buildDateSpanApi(selection),{jsEvent:pev?pev.origEvent:null,view:this.view});this.publiclyTrigger('select',[arg]);};Calendar.prototype.triggerDateUnselect=function(pev){this.publiclyTrigger('unselect',[{jsEvent:pev?pev.origEvent:null,view:this.view}]);};// TODO: receive pev?\nCalendar.prototype.triggerDateClick=function(dateSpan,dayEl,view,ev){var arg=__assign({},this.buildDatePointApi(dateSpan),{dayEl:dayEl,jsEvent:ev,// Is this always a mouse event? See #4655\nview:view});this.publiclyTrigger('dateClick',[arg]);};Calendar.prototype.buildDatePointApi=function(dateSpan){var props={};for(var _i=0,_a=this.pluginSystem.hooks.datePointTransforms;_i<_a.length;_i++){var transform=_a[_i];__assign(props,transform(dateSpan,this));}__assign(props,buildDatePointApi(dateSpan,this.dateEnv));return props;};Calendar.prototype.buildDateSpanApi=function(dateSpan){var props={};for(var _i=0,_a=this.pluginSystem.hooks.dateSpanTransforms;_i<_a.length;_i++){var transform=_a[_i];__assign(props,transform(dateSpan,this));}__assign(props,buildDateSpanApi(dateSpan,this.dateEnv));return props;};// Date Utils\n// -----------------------------------------------------------------------------------------------------------------\n// Returns a DateMarker for the current date, as defined by the client's computer or from the `now` option\nCalendar.prototype.getNow=function(){var now=this.opt('now');if(typeof now==='function'){now=now();}if(now==null){return this.dateEnv.createNowMarker();}return this.dateEnv.createMarker(now);};// Event-Date Utilities\n// -----------------------------------------------------------------------------------------------------------------\n// Given an event's allDay status and start date, return what its fallback end date should be.\n// TODO: rename to computeDefaultEventEnd\nCalendar.prototype.getDefaultEventEnd=function(allDay,marker){var end=marker;if(allDay){end=startOfDay(end);end=this.dateEnv.add(end,this.defaultAllDayEventDuration);}else{end=this.dateEnv.add(end,this.defaultTimedEventDuration);}return end;};// Public Events API\n// -----------------------------------------------------------------------------------------------------------------\nCalendar.prototype.addEvent=function(eventInput,sourceInput){if(eventInput instanceof EventApi){var def=eventInput._def;var instance=eventInput._instance;// not already present? don't want to add an old snapshot\nif(!this.state.eventStore.defs[def.defId]){this.dispatch({type:'ADD_EVENTS',eventStore:eventTupleToStore({def:def,instance:instance})// TODO: better util for two args?\n});}return eventInput;}var sourceId;if(sourceInput instanceof EventSourceApi){sourceId=sourceInput.internalEventSource.sourceId;}else if(sourceInput!=null){var sourceApi=this.getEventSourceById(sourceInput);// TODO: use an internal function\nif(!sourceApi){console.warn('Could not find an event source with ID \"'+sourceInput+'\"');// TODO: test\nreturn null;}else{sourceId=sourceApi.internalEventSource.sourceId;}}var tuple=parseEvent(eventInput,sourceId,this);if(tuple){this.dispatch({type:'ADD_EVENTS',eventStore:eventTupleToStore(tuple)});return new EventApi(this,tuple.def,tuple.def.recurringDef?null:tuple.instance);}return null;};// TODO: optimize\nCalendar.prototype.getEventById=function(id){var _a=this.state.eventStore,defs=_a.defs,instances=_a.instances;id=String(id);for(var defId in defs){var def=defs[defId];if(def.publicId===id){if(def.recurringDef){return new EventApi(this,def,null);}else{for(var instanceId in instances){var instance=instances[instanceId];if(instance.defId===def.defId){return new EventApi(this,def,instance);}}}}}return null;};Calendar.prototype.getEvents=function(){var _a=this.state.eventStore,defs=_a.defs,instances=_a.instances;var eventApis=[];for(var id in instances){var instance=instances[id];var def=defs[instance.defId];eventApis.push(new EventApi(this,def,instance));}return eventApis;};Calendar.prototype.removeAllEvents=function(){this.dispatch({type:'REMOVE_ALL_EVENTS'});};Calendar.prototype.rerenderEvents=function(){this.dispatch({type:'RESET_EVENTS'});};// Public Event Sources API\n// -----------------------------------------------------------------------------------------------------------------\nCalendar.prototype.getEventSources=function(){var sourceHash=this.state.eventSources;var sourceApis=[];for(var internalId in sourceHash){sourceApis.push(new EventSourceApi(this,sourceHash[internalId]));}return sourceApis;};Calendar.prototype.getEventSourceById=function(id){var sourceHash=this.state.eventSources;id=String(id);for(var sourceId in sourceHash){if(sourceHash[sourceId].publicId===id){return new EventSourceApi(this,sourceHash[sourceId]);}}return null;};Calendar.prototype.addEventSource=function(sourceInput){if(sourceInput instanceof EventSourceApi){// not already present? don't want to add an old snapshot\nif(!this.state.eventSources[sourceInput.internalEventSource.sourceId]){this.dispatch({type:'ADD_EVENT_SOURCES',sources:[sourceInput.internalEventSource]});}return sourceInput;}var eventSource=parseEventSource(sourceInput,this);if(eventSource){// TODO: error otherwise?\nthis.dispatch({type:'ADD_EVENT_SOURCES',sources:[eventSource]});return new EventSourceApi(this,eventSource);}return null;};Calendar.prototype.removeAllEventSources=function(){this.dispatch({type:'REMOVE_ALL_EVENT_SOURCES'});};Calendar.prototype.refetchEvents=function(){this.dispatch({type:'FETCH_EVENT_SOURCES'});};// Scroll\n// -----------------------------------------------------------------------------------------------------------------\nCalendar.prototype.scrollToTime=function(timeInput){var duration=createDuration(timeInput);if(duration){this.component.view.scrollToDuration(duration);}};return Calendar;}();EmitterMixin.mixInto(Calendar);// for memoizers\n// -----------------------------------------------------------------------------------------------------------------\nfunction buildComponentContext$1(theme,dateEnv,options){return new ComponentContext(this,theme,dateEnv,options,null);}function buildDateEnv(locale,timeZone,namedTimeZoneImpl,firstDay,weekNumberCalculation,weekLabel,cmdFormatter){return new DateEnv({calendarSystem:'gregory',timeZone:timeZone,namedTimeZoneImpl:namedTimeZoneImpl,locale:locale,weekNumberCalculation:weekNumberCalculation,firstDay:firstDay,weekLabel:weekLabel,cmdFormatter:cmdFormatter});}function buildTheme(calendarOptions){var themeClass=this.pluginSystem.hooks.themeClasses[calendarOptions.themeSystem]||StandardTheme;return new themeClass(calendarOptions);}function buildDelayedRerender(wait){var func=this.tryRerender.bind(this);if(wait!=null){func=debounce(func,wait);}return func;}function buildEventUiBySource(eventSources){return mapHash(eventSources,function(eventSource){return eventSource.ui;});}function buildEventUiBases(eventDefs,eventUiSingleBase,eventUiBySource){var eventUiBases={'':eventUiSingleBase};for(var defId in eventDefs){var def=eventDefs[defId];if(def.sourceId&&eventUiBySource[def.sourceId]){eventUiBases[defId]=eventUiBySource[def.sourceId];}}return eventUiBases;}var View=/** @class */function(_super){__extends(View,_super);function View(viewSpec,parentEl){var _this=_super.call(this,createElement('div',{className:'fc-view fc-'+viewSpec.type+'-view'}))||this;_this.renderDatesMem=memoizeRendering(_this.renderDatesWrap,_this.unrenderDatesWrap);_this.renderBusinessHoursMem=memoizeRendering(_this.renderBusinessHours,_this.unrenderBusinessHours,[_this.renderDatesMem]);_this.renderDateSelectionMem=memoizeRendering(_this.renderDateSelectionWrap,_this.unrenderDateSelectionWrap,[_this.renderDatesMem]);_this.renderEventsMem=memoizeRendering(_this.renderEvents,_this.unrenderEvents,[_this.renderDatesMem]);_this.renderEventSelectionMem=memoizeRendering(_this.renderEventSelectionWrap,_this.unrenderEventSelectionWrap,[_this.renderEventsMem]);_this.renderEventDragMem=memoizeRendering(_this.renderEventDragWrap,_this.unrenderEventDragWrap,[_this.renderDatesMem]);_this.renderEventResizeMem=memoizeRendering(_this.renderEventResizeWrap,_this.unrenderEventResizeWrap,[_this.renderDatesMem]);_this.viewSpec=viewSpec;_this.type=viewSpec.type;parentEl.appendChild(_this.el);_this.initialize();return _this;}View.prototype.initialize=function(){};Object.defineProperty(View.prototype,\"activeStart\",{// Date Setting/Unsetting\n// -----------------------------------------------------------------------------------------------------------------\nget:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.start);},enumerable:true,configurable:true});Object.defineProperty(View.prototype,\"activeEnd\",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.end);},enumerable:true,configurable:true});Object.defineProperty(View.prototype,\"currentStart\",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.start);},enumerable:true,configurable:true});Object.defineProperty(View.prototype,\"currentEnd\",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.end);},enumerable:true,configurable:true});// General Rendering\n// -----------------------------------------------------------------------------------------------------------------\nView.prototype.render=function(props,context){this.renderDatesMem(props.dateProfile);this.renderBusinessHoursMem(props.businessHours);this.renderDateSelectionMem(props.dateSelection);this.renderEventsMem(props.eventStore);this.renderEventSelectionMem(props.eventSelection);this.renderEventDragMem(props.eventDrag);this.renderEventResizeMem(props.eventResize);};View.prototype.beforeUpdate=function(){this.addScroll(this.queryScroll());};View.prototype.destroy=function(){_super.prototype.destroy.call(this);this.renderDatesMem.unrender();// should unrender everything else\n};// Sizing\n// -----------------------------------------------------------------------------------------------------------------\nView.prototype.updateSize=function(isResize,viewHeight,isAuto){var calendar=this.context.calendar;if(isResize){this.addScroll(this.queryScroll());// NOTE: same code as in beforeUpdate\n}if(isResize||// HACKS...\ncalendar.isViewUpdated||calendar.isDatesUpdated||calendar.isEventsUpdated){// sort of the catch-all sizing\n// anything that might cause dimension changes\nthis.updateBaseSize(isResize,viewHeight,isAuto);}// NOTE: popScroll is called by CalendarComponent\n};View.prototype.updateBaseSize=function(isResize,viewHeight,isAuto){};// Date Rendering\n// -----------------------------------------------------------------------------------------------------------------\nView.prototype.renderDatesWrap=function(dateProfile){this.renderDates(dateProfile);this.addScroll({duration:createDuration(this.context.options.scrollTime)});};View.prototype.unrenderDatesWrap=function(){this.stopNowIndicator();this.unrenderDates();};View.prototype.renderDates=function(dateProfile){};View.prototype.unrenderDates=function(){};// Business Hours\n// -----------------------------------------------------------------------------------------------------------------\nView.prototype.renderBusinessHours=function(businessHours){};View.prototype.unrenderBusinessHours=function(){};// Date Selection\n// -----------------------------------------------------------------------------------------------------------------\nView.prototype.renderDateSelectionWrap=function(selection){if(selection){this.renderDateSelection(selection);}};View.prototype.unrenderDateSelectionWrap=function(selection){if(selection){this.unrenderDateSelection(selection);}};View.prototype.renderDateSelection=function(selection){};View.prototype.unrenderDateSelection=function(selection){};// Event Rendering\n// -----------------------------------------------------------------------------------------------------------------\nView.prototype.renderEvents=function(eventStore){};View.prototype.unrenderEvents=function(){};// util for subclasses\nView.prototype.sliceEvents=function(eventStore,allDay){var props=this.props;return sliceEventStore(eventStore,props.eventUiBases,props.dateProfile.activeRange,allDay?this.context.nextDayThreshold:null).fg;};// Event Selection\n// -----------------------------------------------------------------------------------------------------------------\nView.prototype.renderEventSelectionWrap=function(instanceId){if(instanceId){this.renderEventSelection(instanceId);}};View.prototype.unrenderEventSelectionWrap=function(instanceId){if(instanceId){this.unrenderEventSelection(instanceId);}};View.prototype.renderEventSelection=function(instanceId){};View.prototype.unrenderEventSelection=function(instanceId){};// Event Drag\n// -----------------------------------------------------------------------------------------------------------------\nView.prototype.renderEventDragWrap=function(state){if(state){this.renderEventDrag(state);}};View.prototype.unrenderEventDragWrap=function(state){if(state){this.unrenderEventDrag(state);}};View.prototype.renderEventDrag=function(state){};View.prototype.unrenderEventDrag=function(state){};// Event Resize\n// -----------------------------------------------------------------------------------------------------------------\nView.prototype.renderEventResizeWrap=function(state){if(state){this.renderEventResize(state);}};View.prototype.unrenderEventResizeWrap=function(state){if(state){this.unrenderEventResize(state);}};View.prototype.renderEventResize=function(state){};View.prototype.unrenderEventResize=function(state){};/* Now Indicator\r\n        ------------------------------------------------------------------------------------------------------------------*/ // Immediately render the current time indicator and begins re-rendering it at an interval,\n// which is defined by this.getNowIndicatorUnit().\n// TODO: somehow do this for the current whole day's background too\n// USAGE: must be called manually from subclasses' render methods! don't need to call stopNowIndicator tho\nView.prototype.startNowIndicator=function(dateProfile,dateProfileGenerator){var _this=this;var _a=this.context,calendar=_a.calendar,dateEnv=_a.dateEnv,options=_a.options;var unit;var update;var delay;// ms wait value\nif(options.nowIndicator&&!this.initialNowDate){unit=this.getNowIndicatorUnit(dateProfile,dateProfileGenerator);if(unit){update=this.updateNowIndicator.bind(this);this.initialNowDate=calendar.getNow();this.initialNowQueriedMs=new Date().valueOf();// wait until the beginning of the next interval\ndelay=dateEnv.add(dateEnv.startOf(this.initialNowDate,unit),createDuration(1,unit)).valueOf()-this.initialNowDate.valueOf();// TODO: maybe always use setTimeout, waiting until start of next unit\nthis.nowIndicatorTimeoutID=setTimeout(function(){_this.nowIndicatorTimeoutID=null;update();if(unit==='second'){delay=1000;// every second\n}else{delay=1000*60;// otherwise, every minute\n}_this.nowIndicatorIntervalID=setInterval(update,delay);// update every interval\n},delay);}// rendering will be initiated in updateSize\n}};// rerenders the now indicator, computing the new current time from the amount of time that has passed\n// since the initial getNow call.\nView.prototype.updateNowIndicator=function(){if(this.props.dateProfile&&// a way to determine if dates were rendered yet\nthis.initialNowDate// activated before?\n){this.unrenderNowIndicator();// won't unrender if unnecessary\nthis.renderNowIndicator(addMs(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs));this.isNowIndicatorRendered=true;}};// Immediately unrenders the view's current time indicator and stops any re-rendering timers.\n// Won't cause side effects if indicator isn't rendered.\nView.prototype.stopNowIndicator=function(){if(this.nowIndicatorTimeoutID){clearTimeout(this.nowIndicatorTimeoutID);this.nowIndicatorTimeoutID=null;}if(this.nowIndicatorIntervalID){clearInterval(this.nowIndicatorIntervalID);this.nowIndicatorIntervalID=null;}if(this.isNowIndicatorRendered){this.unrenderNowIndicator();this.isNowIndicatorRendered=false;}};View.prototype.getNowIndicatorUnit=function(dateProfile,dateProfileGenerator){// subclasses should implement\n};// Renders a current time indicator at the given datetime\nView.prototype.renderNowIndicator=function(date){// SUBCLASSES MUST PASS TO CHILDREN!\n};// Undoes the rendering actions from renderNowIndicator\nView.prototype.unrenderNowIndicator=function(){// SUBCLASSES MUST PASS TO CHILDREN!\n};/* Scroller\r\n        ------------------------------------------------------------------------------------------------------------------*/View.prototype.addScroll=function(scroll,isForced){if(isForced){scroll.isForced=isForced;}__assign(this.queuedScroll||(this.queuedScroll={}),scroll);};View.prototype.popScroll=function(isResize){this.applyQueuedScroll(isResize);this.queuedScroll=null;};View.prototype.applyQueuedScroll=function(isResize){if(this.queuedScroll){this.applyScroll(this.queuedScroll,isResize);}};View.prototype.queryScroll=function(){var scroll={};if(this.props.dateProfile){// dates rendered yet?\n__assign(scroll,this.queryDateScroll());}return scroll;};View.prototype.applyScroll=function(scroll,isResize){var duration=scroll.duration,isForced=scroll.isForced;if(duration!=null&&!isForced){delete scroll.duration;if(this.props.dateProfile){// dates rendered yet?\n__assign(scroll,this.computeDateScroll(duration));}}if(this.props.dateProfile){// dates rendered yet?\nthis.applyDateScroll(scroll);}};View.prototype.computeDateScroll=function(duration){return{};// subclasses must implement\n};View.prototype.queryDateScroll=function(){return{};// subclasses must implement\n};View.prototype.applyDateScroll=function(scroll){// subclasses must implement\n};// for API\nView.prototype.scrollToDuration=function(duration){this.applyScroll({duration:duration},false);};return View;}(DateComponent);EmitterMixin.mixInto(View);View.prototype.usesMinMaxTime=false;View.prototype.dateProfileGeneratorClass=DateProfileGenerator;var FgEventRenderer=/** @class */function(){function FgEventRenderer(){this.segs=[];this.isSizeDirty=false;}FgEventRenderer.prototype.renderSegs=function(context,segs,mirrorInfo){this.context=context;this.rangeUpdated();// called too frequently :(\n// render an `.el` on each seg\n// returns a subset of the segs. segs that were actually rendered\nsegs=this.renderSegEls(segs,mirrorInfo);this.segs=segs;this.attachSegs(segs,mirrorInfo);this.isSizeDirty=true;triggerRenderedSegs(this.context,this.segs,Boolean(mirrorInfo));};FgEventRenderer.prototype.unrender=function(context,_segs,mirrorInfo){triggerWillRemoveSegs(this.context,this.segs,Boolean(mirrorInfo));this.detachSegs(this.segs);this.segs=[];};// Updates values that rely on options and also relate to range\nFgEventRenderer.prototype.rangeUpdated=function(){var options=this.context.options;var displayEventTime;var displayEventEnd;this.eventTimeFormat=createFormatter(options.eventTimeFormat||this.computeEventTimeFormat(),options.defaultRangeSeparator);displayEventTime=options.displayEventTime;if(displayEventTime==null){displayEventTime=this.computeDisplayEventTime();// might be based off of range\n}displayEventEnd=options.displayEventEnd;if(displayEventEnd==null){displayEventEnd=this.computeDisplayEventEnd();// might be based off of range\n}this.displayEventTime=displayEventTime;this.displayEventEnd=displayEventEnd;};// Renders and assigns an `el` property for each foreground event segment.\n// Only returns segments that successfully rendered.\nFgEventRenderer.prototype.renderSegEls=function(segs,mirrorInfo){var html='';var i;if(segs.length){// don't build an empty html string\n// build a large concatenation of event segment HTML\nfor(i=0;i<segs.length;i++){html+=this.renderSegHtml(segs[i],mirrorInfo);}// Grab individual elements from the combined HTML string. Use each as the default rendering.\n// Then, compute the 'el' for each segment. An el might be null if the eventRender callback returned false.\nhtmlToElements(html).forEach(function(el,i){var seg=segs[i];if(el){seg.el=el;}});segs=filterSegsViaEls(this.context,segs,Boolean(mirrorInfo));}return segs;};// Generic utility for generating the HTML classNames for an event segment's element\nFgEventRenderer.prototype.getSegClasses=function(seg,isDraggable,isResizable,mirrorInfo){var classes=['fc-event',seg.isStart?'fc-start':'fc-not-start',seg.isEnd?'fc-end':'fc-not-end'].concat(seg.eventRange.ui.classNames);if(isDraggable){classes.push('fc-draggable');}if(isResizable){classes.push('fc-resizable');}if(mirrorInfo){classes.push('fc-mirror');if(mirrorInfo.isDragging){classes.push('fc-dragging');}if(mirrorInfo.isResizing){classes.push('fc-resizing');}}return classes;};// Compute the text that should be displayed on an event's element.\n// `range` can be the Event object itself, or something range-like, with at least a `start`.\n// If event times are disabled, or the event has no time, will return a blank string.\n// If not specified, formatter will default to the eventTimeFormat setting,\n// and displayEnd will default to the displayEventEnd setting.\nFgEventRenderer.prototype.getTimeText=function(eventRange,formatter,displayEnd){var def=eventRange.def,instance=eventRange.instance;return this._getTimeText(instance.range.start,def.hasEnd?instance.range.end:null,def.allDay,formatter,displayEnd,instance.forcedStartTzo,instance.forcedEndTzo);};FgEventRenderer.prototype._getTimeText=function(start,end,allDay,formatter,displayEnd,forcedStartTzo,forcedEndTzo){var dateEnv=this.context.dateEnv;if(formatter==null){formatter=this.eventTimeFormat;}if(displayEnd==null){displayEnd=this.displayEventEnd;}if(this.displayEventTime&&!allDay){if(displayEnd&&end){return dateEnv.formatRange(start,end,formatter,{forcedStartTzo:forcedStartTzo,forcedEndTzo:forcedEndTzo});}else{return dateEnv.format(start,formatter,{forcedTzo:forcedStartTzo});}}return'';};FgEventRenderer.prototype.computeEventTimeFormat=function(){return{hour:'numeric',minute:'2-digit',omitZeroMinute:true};};FgEventRenderer.prototype.computeDisplayEventTime=function(){return true;};FgEventRenderer.prototype.computeDisplayEventEnd=function(){return true;};// Utility for generating event skin-related CSS properties\nFgEventRenderer.prototype.getSkinCss=function(ui){return{'background-color':ui.backgroundColor,'border-color':ui.borderColor,color:ui.textColor};};FgEventRenderer.prototype.sortEventSegs=function(segs){var specs=this.context.eventOrderSpecs;var objs=segs.map(buildSegCompareObj);objs.sort(function(obj0,obj1){return compareByFieldSpecs(obj0,obj1,specs);});return objs.map(function(c){return c._seg;});};FgEventRenderer.prototype.computeSizes=function(force){if(force||this.isSizeDirty){this.computeSegSizes(this.segs);}};FgEventRenderer.prototype.assignSizes=function(force){if(force||this.isSizeDirty){this.assignSegSizes(this.segs);this.isSizeDirty=false;}};FgEventRenderer.prototype.computeSegSizes=function(segs){};FgEventRenderer.prototype.assignSegSizes=function(segs){};// Manipulation on rendered segs\nFgEventRenderer.prototype.hideByHash=function(hash){if(hash){for(var _i=0,_a=this.segs;_i<_a.length;_i++){var seg=_a[_i];if(hash[seg.eventRange.instance.instanceId]){seg.el.style.visibility='hidden';}}}};FgEventRenderer.prototype.showByHash=function(hash){if(hash){for(var _i=0,_a=this.segs;_i<_a.length;_i++){var seg=_a[_i];if(hash[seg.eventRange.instance.instanceId]){seg.el.style.visibility='';}}}};FgEventRenderer.prototype.selectByInstanceId=function(instanceId){if(instanceId){for(var _i=0,_a=this.segs;_i<_a.length;_i++){var seg=_a[_i];var eventInstance=seg.eventRange.instance;if(eventInstance&&eventInstance.instanceId===instanceId&&seg.el// necessary?\n){seg.el.classList.add('fc-selected');}}}};FgEventRenderer.prototype.unselectByInstanceId=function(instanceId){if(instanceId){for(var _i=0,_a=this.segs;_i<_a.length;_i++){var seg=_a[_i];if(seg.el){// necessary?\nseg.el.classList.remove('fc-selected');}}}};return FgEventRenderer;}();// returns a object with all primitive props that can be compared\nfunction buildSegCompareObj(seg){var eventDef=seg.eventRange.def;var range=seg.eventRange.instance.range;var start=range.start?range.start.valueOf():0;// TODO: better support for open-range events\nvar end=range.end?range.end.valueOf():0;// \"\nreturn __assign({},eventDef.extendedProps,eventDef,{id:eventDef.publicId,start:start,end:end,duration:end-start,allDay:Number(eventDef.allDay),_seg:seg// for later retrieval\n});}/*\r\n    TODO: when refactoring this class, make a new FillRenderer instance for each `type`\r\n    */var FillRenderer=/** @class */function(){function FillRenderer(){this.fillSegTag='div';this.dirtySizeFlags={};this.containerElsByType={};this.segsByType={};}FillRenderer.prototype.getSegsByType=function(type){return this.segsByType[type]||[];};FillRenderer.prototype.renderSegs=function(type,context,segs){var _a;this.context=context;var renderedSegs=this.renderSegEls(type,segs);// assignes `.el` to each seg. returns successfully rendered segs\nvar containerEls=this.attachSegs(type,renderedSegs);if(containerEls){(_a=this.containerElsByType[type]||(this.containerElsByType[type]=[])).push.apply(_a,containerEls);}this.segsByType[type]=renderedSegs;if(type==='bgEvent'){triggerRenderedSegs(context,renderedSegs,false);// isMirror=false\n}this.dirtySizeFlags[type]=true;};// Unrenders a specific type of fill that is currently rendered on the grid\nFillRenderer.prototype.unrender=function(type,context){var segs=this.segsByType[type];if(segs){if(type==='bgEvent'){triggerWillRemoveSegs(context,segs,false);// isMirror=false\n}this.detachSegs(type,segs);}};// Renders and assigns an `el` property for each fill segment. Generic enough to work with different types.\n// Only returns segments that successfully rendered.\nFillRenderer.prototype.renderSegEls=function(type,segs){var _this=this;var html='';var i;if(segs.length){// build a large concatenation of segment HTML\nfor(i=0;i<segs.length;i++){html+=this.renderSegHtml(type,segs[i]);}// Grab individual elements from the combined HTML string. Use each as the default rendering.\n// Then, compute the 'el' for each segment.\nhtmlToElements(html).forEach(function(el,i){var seg=segs[i];if(el){seg.el=el;}});if(type==='bgEvent'){segs=filterSegsViaEls(this.context,segs,false// isMirror. background events can never be mirror elements\n);}// correct element type? (would be bad if a non-TD were inserted into a table for example)\nsegs=segs.filter(function(seg){return elementMatches(seg.el,_this.fillSegTag);});}return segs;};// Builds the HTML needed for one fill segment. Generic enough to work with different types.\nFillRenderer.prototype.renderSegHtml=function(type,seg){var css=null;var classNames=[];if(type!=='highlight'&&type!=='businessHours'){css={'background-color':seg.eventRange.ui.backgroundColor};}if(type!=='highlight'){classNames=classNames.concat(seg.eventRange.ui.classNames);}if(type==='businessHours'){classNames.push('fc-bgevent');}else{classNames.push('fc-'+type.toLowerCase());}return'<'+this.fillSegTag+(classNames.length?' class=\"'+classNames.join(' ')+'\"':'')+(css?' style=\"'+cssToStr(css)+'\"':'')+'></'+this.fillSegTag+'>';};FillRenderer.prototype.detachSegs=function(type,segs){var containerEls=this.containerElsByType[type];if(containerEls){containerEls.forEach(removeElement);delete this.containerElsByType[type];}};FillRenderer.prototype.computeSizes=function(force){for(var type in this.segsByType){if(force||this.dirtySizeFlags[type]){this.computeSegSizes(this.segsByType[type]);}}};FillRenderer.prototype.assignSizes=function(force){for(var type in this.segsByType){if(force||this.dirtySizeFlags[type]){this.assignSegSizes(this.segsByType[type]);}}this.dirtySizeFlags={};};FillRenderer.prototype.computeSegSizes=function(segs){};FillRenderer.prototype.assignSegSizes=function(segs){};return FillRenderer;}();var NamedTimeZoneImpl=/** @class */function(){function NamedTimeZoneImpl(timeZoneName){this.timeZoneName=timeZoneName;}return NamedTimeZoneImpl;}();/*\r\n    An abstraction for a dragging interaction originating on an event.\r\n    Does higher-level things than PointerDragger, such as possibly:\r\n    - a \"mirror\" that moves with the pointer\r\n    - a minimum number of pixels or other criteria for a true drag to begin\r\n\r\n    subclasses must emit:\r\n    - pointerdown\r\n    - dragstart\r\n    - dragmove\r\n    - pointerup\r\n    - dragend\r\n    */var ElementDragging=/** @class */function(){function ElementDragging(el){this.emitter=new EmitterMixin();}ElementDragging.prototype.destroy=function(){};ElementDragging.prototype.setMirrorIsVisible=function(bool){// optional if subclass doesn't want to support a mirror\n};ElementDragging.prototype.setMirrorNeedsRevert=function(bool){// optional if subclass doesn't want to support a mirror\n};ElementDragging.prototype.setAutoScrollEnabled=function(bool){// optional\n};return ElementDragging;}();function formatDate(dateInput,settings){if(settings===void 0){settings={};}var dateEnv=buildDateEnv$1(settings);var formatter=createFormatter(settings);var dateMeta=dateEnv.createMarkerMeta(dateInput);if(!dateMeta){// TODO: warning?\nreturn'';}return dateEnv.format(dateMeta.marker,formatter,{forcedTzo:dateMeta.forcedTzo});}function formatRange(startInput,endInput,settings// mixture of env and formatter settings\n){var dateEnv=buildDateEnv$1(typeof settings==='object'&&settings?settings:{});// pass in if non-null object\nvar formatter=createFormatter(settings,globalDefaults.defaultRangeSeparator);var startMeta=dateEnv.createMarkerMeta(startInput);var endMeta=dateEnv.createMarkerMeta(endInput);if(!startMeta||!endMeta){// TODO: warning?\nreturn'';}return dateEnv.formatRange(startMeta.marker,endMeta.marker,formatter,{forcedStartTzo:startMeta.forcedTzo,forcedEndTzo:endMeta.forcedTzo,isEndExclusive:settings.isEndExclusive});}// TODO: more DRY and optimized\nfunction buildDateEnv$1(settings){var locale=buildLocale(settings.locale||'en',parseRawLocales([]).map);// TODO: don't hardcode 'en' everywhere\n// ensure required settings\nsettings=__assign({timeZone:globalDefaults.timeZone,calendarSystem:'gregory'},settings,{locale:locale});return new DateEnv(settings);}var DRAG_META_PROPS={startTime:createDuration,duration:createDuration,create:Boolean,sourceId:String};var DRAG_META_DEFAULTS={create:true};function parseDragMeta(raw){var leftoverProps={};var refined=refineProps(raw,DRAG_META_PROPS,DRAG_META_DEFAULTS,leftoverProps);refined.leftoverProps=leftoverProps;return refined;}// Computes a default column header formatting string if `colFormat` is not explicitly defined\nfunction computeFallbackHeaderFormat(datesRepDistinctDays,dayCnt){// if more than one week row, or if there are a lot of columns with not much space,\n// put just the day numbers will be in each cell\nif(!datesRepDistinctDays||dayCnt>10){return{weekday:'short'};// \"Sat\"\n}else if(dayCnt>1){return{weekday:'short',month:'numeric',day:'numeric',omitCommas:true};// \"Sat 11/12\"\n}else{return{weekday:'long'};// \"Saturday\"\n}}function renderDateCell(dateMarker,dateProfile,datesRepDistinctDays,colCnt,colHeadFormat,context,colspan,otherAttrs){var dateEnv=context.dateEnv,theme=context.theme,options=context.options;var isDateValid=rangeContainsMarker(dateProfile.activeRange,dateMarker);// TODO: called too frequently. cache somehow.\nvar classNames=['fc-day-header',theme.getClass('widgetHeader')];var innerHtml;if(typeof options.columnHeaderHtml==='function'){innerHtml=options.columnHeaderHtml(dateEnv.toDate(dateMarker));}else if(typeof options.columnHeaderText==='function'){innerHtml=htmlEscape(options.columnHeaderText(dateEnv.toDate(dateMarker)));}else{innerHtml=htmlEscape(dateEnv.format(dateMarker,colHeadFormat));}// if only one row of days, the classNames on the header can represent the specific days beneath\nif(datesRepDistinctDays){classNames=classNames.concat(// includes the day-of-week class\n// noThemeHighlight=true (don't highlight the header)\ngetDayClasses(dateMarker,dateProfile,context,true));}else{classNames.push('fc-'+DAY_IDS[dateMarker.getUTCDay()]);// only add the day-of-week class\n}return''+'<th class=\"'+classNames.join(' ')+'\"'+(isDateValid&&datesRepDistinctDays?' data-date=\"'+dateEnv.formatIso(dateMarker,{omitTime:true})+'\"':'')+(colspan>1?' colspan=\"'+colspan+'\"':'')+(otherAttrs?' '+otherAttrs:'')+'>'+(isDateValid?// don't make a link if the heading could represent multiple days, or if there's only one day (forceOff)\nbuildGotoAnchorHtml(options,dateEnv,{date:dateMarker,forceOff:!datesRepDistinctDays||colCnt===1},innerHtml):// if not valid, display text, but no link\ninnerHtml)+'</th>';}var DayHeader=/** @class */function(_super){__extends(DayHeader,_super);function DayHeader(parentEl){var _this=_super.call(this)||this;_this.renderSkeleton=memoizeRendering(_this._renderSkeleton,_this._unrenderSkeleton);_this.parentEl=parentEl;return _this;}DayHeader.prototype.render=function(props,context){var dates=props.dates,datesRepDistinctDays=props.datesRepDistinctDays;var parts=[];this.renderSkeleton(context);if(props.renderIntroHtml){parts.push(props.renderIntroHtml());}var colHeadFormat=createFormatter(context.options.columnHeaderFormat||computeFallbackHeaderFormat(datesRepDistinctDays,dates.length));for(var _i=0,dates_1=dates;_i<dates_1.length;_i++){var date=dates_1[_i];parts.push(renderDateCell(date,props.dateProfile,datesRepDistinctDays,dates.length,colHeadFormat,context));}if(context.isRtl){parts.reverse();}this.thead.innerHTML='<tr>'+parts.join('')+'</tr>';};DayHeader.prototype.destroy=function(){_super.prototype.destroy.call(this);this.renderSkeleton.unrender();};DayHeader.prototype._renderSkeleton=function(context){var theme=context.theme;var parentEl=this.parentEl;parentEl.innerHTML='';// because might be nbsp\nparentEl.appendChild(this.el=htmlToElement('<div class=\"fc-row '+theme.getClass('headerRow')+'\">'+'<table class=\"'+theme.getClass('tableGrid')+'\">'+'<thead></thead>'+'</table>'+'</div>'));this.thead=this.el.querySelector('thead');};DayHeader.prototype._unrenderSkeleton=function(){removeElement(this.el);};return DayHeader;}(Component);var DaySeries=/** @class */function(){function DaySeries(range,dateProfileGenerator){var date=range.start;var end=range.end;var indices=[];var dates=[];var dayIndex=-1;while(date<end){// loop each day from start to end\nif(dateProfileGenerator.isHiddenDay(date)){indices.push(dayIndex+0.5);// mark that it's between indices\n}else{dayIndex++;indices.push(dayIndex);dates.push(date);}date=addDays(date,1);}this.dates=dates;this.indices=indices;this.cnt=dates.length;}DaySeries.prototype.sliceRange=function(range){var firstIndex=this.getDateDayIndex(range.start);// inclusive first index\nvar lastIndex=this.getDateDayIndex(addDays(range.end,-1));// inclusive last index\nvar clippedFirstIndex=Math.max(0,firstIndex);var clippedLastIndex=Math.min(this.cnt-1,lastIndex);// deal with in-between indices\nclippedFirstIndex=Math.ceil(clippedFirstIndex);// in-between starts round to next cell\nclippedLastIndex=Math.floor(clippedLastIndex);// in-between ends round to prev cell\nif(clippedFirstIndex<=clippedLastIndex){return{firstIndex:clippedFirstIndex,lastIndex:clippedLastIndex,isStart:firstIndex===clippedFirstIndex,isEnd:lastIndex===clippedLastIndex};}else{return null;}};// Given a date, returns its chronolocial cell-index from the first cell of the grid.\n// If the date lies between cells (because of hiddenDays), returns a floating-point value between offsets.\n// If before the first offset, returns a negative number.\n// If after the last offset, returns an offset past the last cell offset.\n// Only works for *start* dates of cells. Will not work for exclusive end dates for cells.\nDaySeries.prototype.getDateDayIndex=function(date){var indices=this.indices;var dayOffset=Math.floor(diffDays(this.dates[0],date));if(dayOffset<0){return indices[0]-1;}else if(dayOffset>=indices.length){return indices[indices.length-1]+1;}else{return indices[dayOffset];}};return DaySeries;}();var DayTable=/** @class */function(){function DayTable(daySeries,breakOnWeeks){var dates=daySeries.dates;var daysPerRow;var firstDay;var rowCnt;if(breakOnWeeks){// count columns until the day-of-week repeats\nfirstDay=dates[0].getUTCDay();for(daysPerRow=1;daysPerRow<dates.length;daysPerRow++){if(dates[daysPerRow].getUTCDay()===firstDay){break;}}rowCnt=Math.ceil(dates.length/daysPerRow);}else{rowCnt=1;daysPerRow=dates.length;}this.rowCnt=rowCnt;this.colCnt=daysPerRow;this.daySeries=daySeries;this.cells=this.buildCells();this.headerDates=this.buildHeaderDates();}DayTable.prototype.buildCells=function(){var rows=[];for(var row=0;row<this.rowCnt;row++){var cells=[];for(var col=0;col<this.colCnt;col++){cells.push(this.buildCell(row,col));}rows.push(cells);}return rows;};DayTable.prototype.buildCell=function(row,col){return{date:this.daySeries.dates[row*this.colCnt+col]};};DayTable.prototype.buildHeaderDates=function(){var dates=[];for(var col=0;col<this.colCnt;col++){dates.push(this.cells[0][col].date);}return dates;};DayTable.prototype.sliceRange=function(range){var colCnt=this.colCnt;var seriesSeg=this.daySeries.sliceRange(range);var segs=[];if(seriesSeg){var firstIndex=seriesSeg.firstIndex,lastIndex=seriesSeg.lastIndex;var index=firstIndex;while(index<=lastIndex){var row=Math.floor(index/colCnt);var nextIndex=Math.min((row+1)*colCnt,lastIndex+1);segs.push({row:row,firstCol:index%colCnt,lastCol:(nextIndex-1)%colCnt,isStart:seriesSeg.isStart&&index===firstIndex,isEnd:seriesSeg.isEnd&&nextIndex-1===lastIndex});index=nextIndex;}}return segs;};return DayTable;}();var Slicer=/** @class */function(){function Slicer(){this.sliceBusinessHours=memoize(this._sliceBusinessHours);this.sliceDateSelection=memoize(this._sliceDateSpan);this.sliceEventStore=memoize(this._sliceEventStore);this.sliceEventDrag=memoize(this._sliceInteraction);this.sliceEventResize=memoize(this._sliceInteraction);}Slicer.prototype.sliceProps=function(props,dateProfile,nextDayThreshold,calendar,component){var extraArgs=[];for(var _i=5;_i<arguments.length;_i++){extraArgs[_i-5]=arguments[_i];}var eventUiBases=props.eventUiBases;var eventSegs=this.sliceEventStore.apply(this,[props.eventStore,eventUiBases,dateProfile,nextDayThreshold,component].concat(extraArgs));return{dateSelectionSegs:this.sliceDateSelection.apply(this,[props.dateSelection,eventUiBases,component].concat(extraArgs)),businessHourSegs:this.sliceBusinessHours.apply(this,[props.businessHours,dateProfile,nextDayThreshold,calendar,component].concat(extraArgs)),fgEventSegs:eventSegs.fg,bgEventSegs:eventSegs.bg,eventDrag:this.sliceEventDrag.apply(this,[props.eventDrag,eventUiBases,dateProfile,nextDayThreshold,component].concat(extraArgs)),eventResize:this.sliceEventResize.apply(this,[props.eventResize,eventUiBases,dateProfile,nextDayThreshold,component].concat(extraArgs)),eventSelection:props.eventSelection};// TODO: give interactionSegs?\n};Slicer.prototype.sliceNowDate=function(// does not memoize\ndate,component){var extraArgs=[];for(var _i=2;_i<arguments.length;_i++){extraArgs[_i-2]=arguments[_i];}return this._sliceDateSpan.apply(this,[{range:{start:date,end:addMs(date,1)},allDay:false},{},component].concat(extraArgs));};Slicer.prototype._sliceBusinessHours=function(businessHours,dateProfile,nextDayThreshold,calendar,component){var extraArgs=[];for(var _i=5;_i<arguments.length;_i++){extraArgs[_i-5]=arguments[_i];}if(!businessHours){return[];}return this._sliceEventStore.apply(this,[expandRecurring(businessHours,computeActiveRange(dateProfile,Boolean(nextDayThreshold)),calendar),{},dateProfile,nextDayThreshold,component].concat(extraArgs)).bg;};Slicer.prototype._sliceEventStore=function(eventStore,eventUiBases,dateProfile,nextDayThreshold,component){var extraArgs=[];for(var _i=5;_i<arguments.length;_i++){extraArgs[_i-5]=arguments[_i];}if(eventStore){var rangeRes=sliceEventStore(eventStore,eventUiBases,computeActiveRange(dateProfile,Boolean(nextDayThreshold)),nextDayThreshold);return{bg:this.sliceEventRanges(rangeRes.bg,component,extraArgs),fg:this.sliceEventRanges(rangeRes.fg,component,extraArgs)};}else{return{bg:[],fg:[]};}};Slicer.prototype._sliceInteraction=function(interaction,eventUiBases,dateProfile,nextDayThreshold,component){var extraArgs=[];for(var _i=5;_i<arguments.length;_i++){extraArgs[_i-5]=arguments[_i];}if(!interaction){return null;}var rangeRes=sliceEventStore(interaction.mutatedEvents,eventUiBases,computeActiveRange(dateProfile,Boolean(nextDayThreshold)),nextDayThreshold);return{segs:this.sliceEventRanges(rangeRes.fg,component,extraArgs),affectedInstances:interaction.affectedEvents.instances,isEvent:interaction.isEvent,sourceSeg:interaction.origSeg};};Slicer.prototype._sliceDateSpan=function(dateSpan,eventUiBases,component){var extraArgs=[];for(var _i=3;_i<arguments.length;_i++){extraArgs[_i-3]=arguments[_i];}if(!dateSpan){return[];}var eventRange=fabricateEventRange(dateSpan,eventUiBases,component.context.calendar);var segs=this.sliceRange.apply(this,[dateSpan.range].concat(extraArgs));for(var _a=0,segs_1=segs;_a<segs_1.length;_a++){var seg=segs_1[_a];seg.component=component;seg.eventRange=eventRange;}return segs;};/*\r\n        \"complete\" seg means it has component and eventRange\r\n        */Slicer.prototype.sliceEventRanges=function(eventRanges,component,// TODO: kill\nextraArgs){var segs=[];for(var _i=0,eventRanges_1=eventRanges;_i<eventRanges_1.length;_i++){var eventRange=eventRanges_1[_i];segs.push.apply(segs,this.sliceEventRange(eventRange,component,extraArgs));}return segs;};/*\r\n        \"complete\" seg means it has component and eventRange\r\n        */Slicer.prototype.sliceEventRange=function(eventRange,component,// TODO: kill\nextraArgs){var segs=this.sliceRange.apply(this,[eventRange.range].concat(extraArgs));for(var _i=0,segs_2=segs;_i<segs_2.length;_i++){var seg=segs_2[_i];seg.component=component;seg.eventRange=eventRange;seg.isStart=eventRange.isStart&&seg.isStart;seg.isEnd=eventRange.isEnd&&seg.isEnd;}return segs;};return Slicer;}();/*\r\n    for incorporating minTime/maxTime if appropriate\r\n    TODO: should be part of DateProfile!\r\n    TimelineDateProfile already does this btw\r\n    */function computeActiveRange(dateProfile,isComponentAllDay){var range=dateProfile.activeRange;if(isComponentAllDay){return range;}return{start:addMs(range.start,dateProfile.minTime.milliseconds),end:addMs(range.end,dateProfile.maxTime.milliseconds-864e5)// 864e5 = ms in a day\n};}// exports\n// --------------------------------------------------------------------------------------------------\nvar version='4.4.0';exports.Calendar=Calendar;exports.Component=Component;exports.ComponentContext=ComponentContext;exports.DateComponent=DateComponent;exports.DateEnv=DateEnv;exports.DateProfileGenerator=DateProfileGenerator;exports.DayHeader=DayHeader;exports.DaySeries=DaySeries;exports.DayTable=DayTable;exports.ElementDragging=ElementDragging;exports.ElementScrollController=ElementScrollController;exports.EmitterMixin=EmitterMixin;exports.EventApi=EventApi;exports.FgEventRenderer=FgEventRenderer;exports.FillRenderer=FillRenderer;exports.Interaction=Interaction;exports.Mixin=Mixin;exports.NamedTimeZoneImpl=NamedTimeZoneImpl;exports.PositionCache=PositionCache;exports.ScrollComponent=ScrollComponent;exports.ScrollController=ScrollController;exports.Slicer=Slicer;exports.Splitter=Splitter;exports.Theme=Theme;exports.View=View;exports.WindowScrollController=WindowScrollController;exports.addDays=addDays;exports.addDurations=addDurations;exports.addMs=addMs;exports.addWeeks=addWeeks;exports.allowContextMenu=allowContextMenu;exports.allowSelection=allowSelection;exports.appendToElement=appendToElement;exports.applyAll=applyAll;exports.applyMutationToEventStore=applyMutationToEventStore;exports.applyStyle=applyStyle;exports.applyStyleProp=applyStyleProp;exports.asRoughMinutes=asRoughMinutes;exports.asRoughMs=asRoughMs;exports.asRoughSeconds=asRoughSeconds;exports.buildGotoAnchorHtml=buildGotoAnchorHtml;exports.buildSegCompareObj=buildSegCompareObj;exports.capitaliseFirstLetter=capitaliseFirstLetter;exports.combineEventUis=combineEventUis;exports.compareByFieldSpec=compareByFieldSpec;exports.compareByFieldSpecs=compareByFieldSpecs;exports.compareNumbers=compareNumbers;exports.compensateScroll=compensateScroll;exports.computeClippingRect=computeClippingRect;exports.computeEdges=computeEdges;exports.computeEventDraggable=computeEventDraggable;exports.computeEventEndResizable=computeEventEndResizable;exports.computeEventStartResizable=computeEventStartResizable;exports.computeFallbackHeaderFormat=computeFallbackHeaderFormat;exports.computeHeightAndMargins=computeHeightAndMargins;exports.computeInnerRect=computeInnerRect;exports.computeRect=computeRect;exports.computeVisibleDayRange=computeVisibleDayRange;exports.config=config;exports.constrainPoint=constrainPoint;exports.createDuration=createDuration;exports.createElement=createElement;exports.createEmptyEventStore=createEmptyEventStore;exports.createEventInstance=createEventInstance;exports.createFormatter=createFormatter;exports.createPlugin=createPlugin;exports.cssToStr=cssToStr;exports.debounce=debounce;exports.diffDates=diffDates;exports.diffDayAndTime=diffDayAndTime;exports.diffDays=diffDays;exports.diffPoints=diffPoints;exports.diffWeeks=diffWeeks;exports.diffWholeDays=diffWholeDays;exports.diffWholeWeeks=diffWholeWeeks;exports.disableCursor=disableCursor;exports.distributeHeight=distributeHeight;exports.elementClosest=elementClosest;exports.elementMatches=elementMatches;exports.enableCursor=enableCursor;exports.eventTupleToStore=eventTupleToStore;exports.filterEventStoreDefs=filterEventStoreDefs;exports.filterHash=filterHash;exports.findChildren=findChildren;exports.findElements=findElements;exports.flexibleCompare=flexibleCompare;exports.forceClassName=forceClassName;exports.formatDate=formatDate;exports.formatIsoTimeString=formatIsoTimeString;exports.formatRange=formatRange;exports.getAllDayHtml=getAllDayHtml;exports.getClippingParents=getClippingParents;exports.getDayClasses=getDayClasses;exports.getElSeg=getElSeg;exports.getRectCenter=getRectCenter;exports.getRelevantEvents=getRelevantEvents;exports.globalDefaults=globalDefaults;exports.greatestDurationDenominator=greatestDurationDenominator;exports.hasBgRendering=hasBgRendering;exports.htmlEscape=htmlEscape;exports.htmlToElement=htmlToElement;exports.insertAfterElement=insertAfterElement;exports.interactionSettingsStore=interactionSettingsStore;exports.interactionSettingsToStore=interactionSettingsToStore;exports.intersectRanges=intersectRanges;exports.intersectRects=intersectRects;exports.isArraysEqual=isArraysEqual;exports.isDateSpansEqual=isDateSpansEqual;exports.isInt=isInt;exports.isInteractionValid=isInteractionValid;exports.isMultiDayRange=isMultiDayRange;exports.isPropsEqual=isPropsEqual;exports.isPropsValid=isPropsValid;exports.isSingleDay=isSingleDay;exports.isValidDate=isValidDate;exports.listenBySelector=listenBySelector;exports.mapHash=mapHash;exports.matchCellWidths=matchCellWidths;exports.memoize=memoize;exports.memoizeOutput=memoizeOutput;exports.memoizeRendering=memoizeRendering;exports.mergeEventStores=mergeEventStores;exports.multiplyDuration=multiplyDuration;exports.padStart=padStart;exports.parseBusinessHours=parseBusinessHours;exports.parseDragMeta=parseDragMeta;exports.parseEventDef=parseEventDef;exports.parseFieldSpecs=parseFieldSpecs;exports.parseMarker=parse;exports.pointInsideRect=pointInsideRect;exports.prependToElement=prependToElement;exports.preventContextMenu=preventContextMenu;exports.preventDefault=preventDefault;exports.preventSelection=preventSelection;exports.processScopedUiProps=processScopedUiProps;exports.rangeContainsMarker=rangeContainsMarker;exports.rangeContainsRange=rangeContainsRange;exports.rangesEqual=rangesEqual;exports.rangesIntersect=rangesIntersect;exports.refineProps=refineProps;exports.removeElement=removeElement;exports.removeExact=removeExact;exports.renderDateCell=renderDateCell;exports.requestJson=requestJson;exports.sliceEventStore=sliceEventStore;exports.startOfDay=startOfDay;exports.subtractInnerElHeight=subtractInnerElHeight;exports.translateRect=translateRect;exports.uncompensateScroll=uncompensateScroll;exports.undistributeHeight=undistributeHeight;exports.unpromisify=unpromisify;exports.version=version;exports.whenTransitionDone=whenTransitionDone;exports.wholeDivideDurations=wholeDivideDurations;Object.defineProperty(exports,'__esModule',{value:true});});/*!\r\nFullCalendar Day Grid Plugin v4.4.0\r\nDocs & License: https://fullcalendar.io/\r\n(c) 2019 Adam Shaw\r\n*/(function(global,factory){ true?factory(exports,__webpack_require__(Object(function webpackMissingModule() { var e = new Error(\"Cannot find module '@fullcalendar/core'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))):0;})(this,function(exports,core){'use strict';/*! *****************************************************************************\r\n    Copyright (c) Microsoft Corporation. All rights reserved.\r\n    Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n    this file except in compliance with the License. You may obtain a copy of the\r\n    License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n    MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n    See the Apache Version 2.0 License for specific language governing permissions\r\n    and limitations under the License.\r\n    ***************************************************************************** */ /* global Reflect, Promise */var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b;}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p];};return extendStatics(d,b);};function __extends(d,b){extendStatics(d,b);function __(){this.constructor=d;}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __());}var __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}return t;};return __assign.apply(this,arguments);};var DayGridDateProfileGenerator=/** @class */function(_super){__extends(DayGridDateProfileGenerator,_super);function DayGridDateProfileGenerator(){return _super!==null&&_super.apply(this,arguments)||this;}// Computes the date range that will be rendered.\nDayGridDateProfileGenerator.prototype.buildRenderRange=function(currentRange,currentRangeUnit,isRangeAllDay){var dateEnv=this.dateEnv;var renderRange=_super.prototype.buildRenderRange.call(this,currentRange,currentRangeUnit,isRangeAllDay);var start=renderRange.start;var end=renderRange.end;var endOfWeek;// year and month views should be aligned with weeks. this is already done for week\nif(/^(year|month)$/.test(currentRangeUnit)){start=dateEnv.startOfWeek(start);// make end-of-week if not already\nendOfWeek=dateEnv.startOfWeek(end);if(endOfWeek.valueOf()!==end.valueOf()){end=core.addWeeks(endOfWeek,1);}}// ensure 6 weeks\nif(this.options.monthMode&&this.options.fixedWeekCount){var rowCnt=Math.ceil(// could be partial weeks due to hiddenDays\ncore.diffWeeks(start,end));end=core.addWeeks(end,6-rowCnt);}return{start:start,end:end};};return DayGridDateProfileGenerator;}(core.DateProfileGenerator);/* A rectangular panel that is absolutely positioned over other content\r\n    ------------------------------------------------------------------------------------------------------------------------\r\n    Options:\r\n      - className (string)\r\n      - content (HTML string, element, or element array)\r\n      - parentEl\r\n      - top\r\n      - left\r\n      - right (the x coord of where the right edge should be. not a \"CSS\" right)\r\n      - autoHide (boolean)\r\n      - show (callback)\r\n      - hide (callback)\r\n    */var Popover=/** @class */function(){function Popover(options){var _this=this;this.isHidden=true;this.margin=10;// the space required between the popover and the edges of the scroll container\n// Triggered when the user clicks *anywhere* in the document, for the autoHide feature\nthis.documentMousedown=function(ev){// only hide the popover if the click happened outside the popover\nif(_this.el&&!_this.el.contains(ev.target)){_this.hide();}};this.options=options;}// Shows the popover on the specified position. Renders it if not already\nPopover.prototype.show=function(){if(this.isHidden){if(!this.el){this.render();}this.el.style.display='';this.position();this.isHidden=false;this.trigger('show');}};// Hides the popover, through CSS, but does not remove it from the DOM\nPopover.prototype.hide=function(){if(!this.isHidden){this.el.style.display='none';this.isHidden=true;this.trigger('hide');}};// Creates `this.el` and renders content inside of it\nPopover.prototype.render=function(){var _this=this;var options=this.options;var el=this.el=core.createElement('div',{className:'fc-popover '+(options.className||''),style:{top:'0',left:'0'}});if(typeof options.content==='function'){options.content(el);}options.parentEl.appendChild(el);// when a click happens on anything inside with a 'fc-close' className, hide the popover\ncore.listenBySelector(el,'click','.fc-close',function(ev){_this.hide();});if(options.autoHide){document.addEventListener('mousedown',this.documentMousedown);}};// Hides and unregisters any handlers\nPopover.prototype.destroy=function(){this.hide();if(this.el){core.removeElement(this.el);this.el=null;}document.removeEventListener('mousedown',this.documentMousedown);};// Positions the popover optimally, using the top/left/right options\nPopover.prototype.position=function(){var options=this.options;var el=this.el;var elDims=el.getBoundingClientRect();// only used for width,height\nvar origin=core.computeRect(el.offsetParent);var clippingRect=core.computeClippingRect(options.parentEl);var top;// the \"position\" (not \"offset\") values for the popover\nvar left;//\n// compute top and left\ntop=options.top||0;if(options.left!==undefined){left=options.left;}else if(options.right!==undefined){left=options.right-elDims.width;// derive the left value from the right value\n}else{left=0;}// constrain to the view port. if constrained by two edges, give precedence to top/left\ntop=Math.min(top,clippingRect.bottom-elDims.height-this.margin);top=Math.max(top,clippingRect.top+this.margin);left=Math.min(left,clippingRect.right-elDims.width-this.margin);left=Math.max(left,clippingRect.left+this.margin);core.applyStyle(el,{top:top-origin.top,left:left-origin.left});};// Triggers a callback. Calls a function in the option hash of the same name.\n// Arguments beyond the first `name` are forwarded on.\n// TODO: better code reuse for this. Repeat code\n// can kill this???\nPopover.prototype.trigger=function(name){if(this.options[name]){this.options[name].apply(this,Array.prototype.slice.call(arguments,1));}};return Popover;}();/* Event-rendering methods for the DayGrid class\r\n    ----------------------------------------------------------------------------------------------------------------------*/ // \"Simple\" is bad a name. has nothing to do with SimpleDayGrid\nvar SimpleDayGridEventRenderer=/** @class */function(_super){__extends(SimpleDayGridEventRenderer,_super);function SimpleDayGridEventRenderer(){return _super!==null&&_super.apply(this,arguments)||this;}// Builds the HTML to be used for the default element for an individual segment\nSimpleDayGridEventRenderer.prototype.renderSegHtml=function(seg,mirrorInfo){var context=this.context;var eventRange=seg.eventRange;var eventDef=eventRange.def;var eventUi=eventRange.ui;var allDay=eventDef.allDay;var isDraggable=core.computeEventDraggable(context,eventDef,eventUi);var isResizableFromStart=allDay&&seg.isStart&&core.computeEventStartResizable(context,eventDef,eventUi);var isResizableFromEnd=allDay&&seg.isEnd&&core.computeEventEndResizable(context,eventDef,eventUi);var classes=this.getSegClasses(seg,isDraggable,isResizableFromStart||isResizableFromEnd,mirrorInfo);var skinCss=core.cssToStr(this.getSkinCss(eventUi));var timeHtml='';var timeText;var titleHtml;classes.unshift('fc-day-grid-event','fc-h-event');// Only display a timed events time if it is the starting segment\nif(seg.isStart){timeText=this.getTimeText(eventRange);if(timeText){timeHtml='<span class=\"fc-time\">'+core.htmlEscape(timeText)+'</span>';}}titleHtml='<span class=\"fc-title\">'+(core.htmlEscape(eventDef.title||'')||'&nbsp;')+// we always want one line of height\n'</span>';return'<a class=\"'+classes.join(' ')+'\"'+(eventDef.url?' href=\"'+core.htmlEscape(eventDef.url)+'\"':'')+(skinCss?' style=\"'+skinCss+'\"':'')+'>'+'<div class=\"fc-content\">'+(context.options.dir==='rtl'?titleHtml+' '+timeHtml:// put a natural space in between\ntimeHtml+' '+titleHtml//\n)+'</div>'+(isResizableFromStart?'<div class=\"fc-resizer fc-start-resizer\"></div>':'')+(isResizableFromEnd?'<div class=\"fc-resizer fc-end-resizer\"></div>':'')+'</a>';};// Computes a default event time formatting string if `eventTimeFormat` is not explicitly defined\nSimpleDayGridEventRenderer.prototype.computeEventTimeFormat=function(){return{hour:'numeric',minute:'2-digit',omitZeroMinute:true,meridiem:'narrow'};};SimpleDayGridEventRenderer.prototype.computeDisplayEventEnd=function(){return false;// TODO: somehow consider the originating DayGrid's column count\n};return SimpleDayGridEventRenderer;}(core.FgEventRenderer);/* Event-rendering methods for the DayGrid class\r\n    ----------------------------------------------------------------------------------------------------------------------*/var DayGridEventRenderer=/** @class */function(_super){__extends(DayGridEventRenderer,_super);function DayGridEventRenderer(dayGrid){var _this=_super.call(this)||this;_this.dayGrid=dayGrid;return _this;}// Renders the given foreground event segments onto the grid\nDayGridEventRenderer.prototype.attachSegs=function(segs,mirrorInfo){var rowStructs=this.rowStructs=this.renderSegRows(segs);// append to each row's content skeleton\nthis.dayGrid.rowEls.forEach(function(rowNode,i){rowNode.querySelector('.fc-content-skeleton > table').appendChild(rowStructs[i].tbodyEl);});// removes the \"more..\" events popover\nif(!mirrorInfo){this.dayGrid.removeSegPopover();}};// Unrenders all currently rendered foreground event segments\nDayGridEventRenderer.prototype.detachSegs=function(){var rowStructs=this.rowStructs||[];var rowStruct;while(rowStruct=rowStructs.pop()){core.removeElement(rowStruct.tbodyEl);}this.rowStructs=null;};// Uses the given events array to generate <tbody> elements that should be appended to each row's content skeleton.\n// Returns an array of rowStruct objects (see the bottom of `renderSegRow`).\n// PRECONDITION: each segment shoud already have a rendered and assigned `.el`\nDayGridEventRenderer.prototype.renderSegRows=function(segs){var rowStructs=[];var segRows;var row;segRows=this.groupSegRows(segs);// group into nested arrays\n// iterate each row of segment groupings\nfor(row=0;row<segRows.length;row++){rowStructs.push(this.renderSegRow(row,segRows[row]));}return rowStructs;};// Given a row # and an array of segments all in the same row, render a <tbody> element, a skeleton that contains\n// the segments. Returns object with a bunch of internal data about how the render was calculated.\n// NOTE: modifies rowSegs\nDayGridEventRenderer.prototype.renderSegRow=function(row,rowSegs){var isRtl=this.context.isRtl;var dayGrid=this.dayGrid;var colCnt=dayGrid.colCnt;var segLevels=this.buildSegLevels(rowSegs);// group into sub-arrays of levels\nvar levelCnt=Math.max(1,segLevels.length);// ensure at least one level\nvar tbody=document.createElement('tbody');var segMatrix=[];// lookup for which segments are rendered into which level+col cells\nvar cellMatrix=[];// lookup for all <td> elements of the level+col matrix\nvar loneCellMatrix=[];// lookup for <td> elements that only take up a single column\nvar i;var levelSegs;var col;var tr;var j;var seg;var td;// populates empty cells from the current column (`col`) to `endCol`\nfunction emptyCellsUntil(endCol){while(col<endCol){// try to grab a cell from the level above and extend its rowspan. otherwise, create a fresh cell\ntd=(loneCellMatrix[i-1]||[])[col];if(td){td.rowSpan=(td.rowSpan||1)+1;}else{td=document.createElement('td');tr.appendChild(td);}cellMatrix[i][col]=td;loneCellMatrix[i][col]=td;col++;}}for(i=0;i<levelCnt;i++){// iterate through all levels\nlevelSegs=segLevels[i];col=0;tr=document.createElement('tr');segMatrix.push([]);cellMatrix.push([]);loneCellMatrix.push([]);// levelCnt might be 1 even though there are no actual levels. protect against this.\n// this single empty row is useful for styling.\nif(levelSegs){for(j=0;j<levelSegs.length;j++){// iterate through segments in level\nseg=levelSegs[j];var leftCol=isRtl?colCnt-1-seg.lastCol:seg.firstCol;var rightCol=isRtl?colCnt-1-seg.firstCol:seg.lastCol;emptyCellsUntil(leftCol);// create a container that occupies or more columns. append the event element.\ntd=core.createElement('td',{className:'fc-event-container'},seg.el);if(leftCol!==rightCol){td.colSpan=rightCol-leftCol+1;}else{// a single-column segment\nloneCellMatrix[i][col]=td;}while(col<=rightCol){cellMatrix[i][col]=td;segMatrix[i][col]=seg;col++;}tr.appendChild(td);}}emptyCellsUntil(colCnt);// finish off the row\nvar introHtml=dayGrid.renderProps.renderIntroHtml();if(introHtml){if(isRtl){core.appendToElement(tr,introHtml);}else{core.prependToElement(tr,introHtml);}}tbody.appendChild(tr);}return{row:row,tbodyEl:tbody,cellMatrix:cellMatrix,segMatrix:segMatrix,segLevels:segLevels,segs:rowSegs};};// Stacks a flat array of segments, which are all assumed to be in the same row, into subarrays of vertical levels.\n// NOTE: modifies segs\nDayGridEventRenderer.prototype.buildSegLevels=function(segs){var isRtl=this.context.isRtl;var colCnt=this.dayGrid.colCnt;var levels=[];var i;var seg;var j;// Give preference to elements with certain criteria, so they have\n// a chance to be closer to the top.\nsegs=this.sortEventSegs(segs);for(i=0;i<segs.length;i++){seg=segs[i];// loop through levels, starting with the topmost, until the segment doesn't collide with other segments\nfor(j=0;j<levels.length;j++){if(!isDaySegCollision(seg,levels[j])){break;}}// `j` now holds the desired subrow index\nseg.level=j;seg.leftCol=isRtl?colCnt-1-seg.lastCol:seg.firstCol;// for sorting only\nseg.rightCol=isRtl?colCnt-1-seg.firstCol:seg.lastCol// for sorting only\n;(levels[j]||(levels[j]=[])).push(seg);}// order segments left-to-right. very important if calendar is RTL\nfor(j=0;j<levels.length;j++){levels[j].sort(compareDaySegCols);}return levels;};// Given a flat array of segments, return an array of sub-arrays, grouped by each segment's row\nDayGridEventRenderer.prototype.groupSegRows=function(segs){var segRows=[];var i;for(i=0;i<this.dayGrid.rowCnt;i++){segRows.push([]);}for(i=0;i<segs.length;i++){segRows[segs[i].row].push(segs[i]);}return segRows;};// Computes a default `displayEventEnd` value if one is not expliclty defined\nDayGridEventRenderer.prototype.computeDisplayEventEnd=function(){return this.dayGrid.colCnt===1;// we'll likely have space if there's only one day\n};return DayGridEventRenderer;}(SimpleDayGridEventRenderer);// Computes whether two segments' columns collide. They are assumed to be in the same row.\nfunction isDaySegCollision(seg,otherSegs){var i;var otherSeg;for(i=0;i<otherSegs.length;i++){otherSeg=otherSegs[i];if(otherSeg.firstCol<=seg.lastCol&&otherSeg.lastCol>=seg.firstCol){return true;}}return false;}// A cmp function for determining the leftmost event\nfunction compareDaySegCols(a,b){return a.leftCol-b.leftCol;}var DayGridMirrorRenderer=/** @class */function(_super){__extends(DayGridMirrorRenderer,_super);function DayGridMirrorRenderer(){return _super!==null&&_super.apply(this,arguments)||this;}DayGridMirrorRenderer.prototype.attachSegs=function(segs,mirrorInfo){var sourceSeg=mirrorInfo.sourceSeg;var rowStructs=this.rowStructs=this.renderSegRows(segs);// inject each new event skeleton into each associated row\nthis.dayGrid.rowEls.forEach(function(rowNode,row){var skeletonEl=core.htmlToElement('<div class=\"fc-mirror-skeleton\"><table></table></div>');// will be absolutely positioned\nvar skeletonTopEl;var skeletonTop;// If there is an original segment, match the top position. Otherwise, put it at the row's top level\nif(sourceSeg&&sourceSeg.row===row){skeletonTopEl=sourceSeg.el;}else{skeletonTopEl=rowNode.querySelector('.fc-content-skeleton tbody');if(!skeletonTopEl){// when no events\nskeletonTopEl=rowNode.querySelector('.fc-content-skeleton table');}}skeletonTop=skeletonTopEl.getBoundingClientRect().top-rowNode.getBoundingClientRect().top;// the offsetParent origin\nskeletonEl.style.top=skeletonTop+'px';skeletonEl.querySelector('table').appendChild(rowStructs[row].tbodyEl);rowNode.appendChild(skeletonEl);});};return DayGridMirrorRenderer;}(DayGridEventRenderer);var EMPTY_CELL_HTML='<td style=\"pointer-events:none\"></td>';var DayGridFillRenderer=/** @class */function(_super){__extends(DayGridFillRenderer,_super);function DayGridFillRenderer(dayGrid){var _this=_super.call(this)||this;_this.fillSegTag='td';// override the default tag name\n_this.dayGrid=dayGrid;return _this;}DayGridFillRenderer.prototype.renderSegs=function(type,context,segs){// don't render timed background events\nif(type==='bgEvent'){segs=segs.filter(function(seg){return seg.eventRange.def.allDay;});}_super.prototype.renderSegs.call(this,type,context,segs);};DayGridFillRenderer.prototype.attachSegs=function(type,segs){var els=[];var i;var seg;var skeletonEl;for(i=0;i<segs.length;i++){seg=segs[i];skeletonEl=this.renderFillRow(type,seg);this.dayGrid.rowEls[seg.row].appendChild(skeletonEl);els.push(skeletonEl);}return els;};// Generates the HTML needed for one row of a fill. Requires the seg's el to be rendered.\nDayGridFillRenderer.prototype.renderFillRow=function(type,seg){var dayGrid=this.dayGrid;var isRtl=this.context.isRtl;var colCnt=dayGrid.colCnt;var leftCol=isRtl?colCnt-1-seg.lastCol:seg.firstCol;var rightCol=isRtl?colCnt-1-seg.firstCol:seg.lastCol;var startCol=leftCol;var endCol=rightCol+1;var className;var skeletonEl;var trEl;if(type==='businessHours'){className='bgevent';}else{className=type.toLowerCase();}skeletonEl=core.htmlToElement('<div class=\"fc-'+className+'-skeleton\">'+'<table><tr></tr></table>'+'</div>');trEl=skeletonEl.getElementsByTagName('tr')[0];if(startCol>0){core.appendToElement(trEl,// will create (startCol + 1) td's\nnew Array(startCol+1).join(EMPTY_CELL_HTML));}seg.el.colSpan=endCol-startCol;trEl.appendChild(seg.el);if(endCol<colCnt){core.appendToElement(trEl,// will create (colCnt - endCol) td's\nnew Array(colCnt-endCol+1).join(EMPTY_CELL_HTML));}var introHtml=dayGrid.renderProps.renderIntroHtml();if(introHtml){if(isRtl){core.appendToElement(trEl,introHtml);}else{core.prependToElement(trEl,introHtml);}}return skeletonEl;};return DayGridFillRenderer;}(core.FillRenderer);var DayTile=/** @class */function(_super){__extends(DayTile,_super);function DayTile(el){var _this=_super.call(this,el)||this;var eventRenderer=_this.eventRenderer=new DayTileEventRenderer(_this);var renderFrame=_this.renderFrame=core.memoizeRendering(_this._renderFrame);_this.renderFgEvents=core.memoizeRendering(eventRenderer.renderSegs.bind(eventRenderer),eventRenderer.unrender.bind(eventRenderer),[renderFrame]);_this.renderEventSelection=core.memoizeRendering(eventRenderer.selectByInstanceId.bind(eventRenderer),eventRenderer.unselectByInstanceId.bind(eventRenderer),[_this.renderFgEvents]);_this.renderEventDrag=core.memoizeRendering(eventRenderer.hideByHash.bind(eventRenderer),eventRenderer.showByHash.bind(eventRenderer),[renderFrame]);_this.renderEventResize=core.memoizeRendering(eventRenderer.hideByHash.bind(eventRenderer),eventRenderer.showByHash.bind(eventRenderer),[renderFrame]);return _this;}DayTile.prototype.firstContext=function(context){context.calendar.registerInteractiveComponent(this,{el:this.el,useEventCenter:false});};DayTile.prototype.render=function(props,context){this.renderFrame(props.date);this.renderFgEvents(context,props.fgSegs);this.renderEventSelection(props.eventSelection);this.renderEventDrag(props.eventDragInstances);this.renderEventResize(props.eventResizeInstances);};DayTile.prototype.destroy=function(){_super.prototype.destroy.call(this);this.renderFrame.unrender();// should unrender everything else\nthis.context.calendar.unregisterInteractiveComponent(this);};DayTile.prototype._renderFrame=function(date){var _a=this.context,theme=_a.theme,dateEnv=_a.dateEnv,options=_a.options;var title=dateEnv.format(date,core.createFormatter(options.dayPopoverFormat)// TODO: cache\n);this.el.innerHTML='<div class=\"fc-header '+theme.getClass('popoverHeader')+'\">'+'<span class=\"fc-title\">'+core.htmlEscape(title)+'</span>'+'<span class=\"fc-close '+theme.getIconClass('close')+'\"></span>'+'</div>'+'<div class=\"fc-body '+theme.getClass('popoverContent')+'\">'+'<div class=\"fc-event-container\"></div>'+'</div>';this.segContainerEl=this.el.querySelector('.fc-event-container');};DayTile.prototype.queryHit=function(positionLeft,positionTop,elWidth,elHeight){var date=this.props.date;// HACK\nif(positionLeft<elWidth&&positionTop<elHeight){return{component:this,dateSpan:{allDay:true,range:{start:date,end:core.addDays(date,1)}},dayEl:this.el,rect:{left:0,top:0,right:elWidth,bottom:elHeight},layer:1};}};return DayTile;}(core.DateComponent);var DayTileEventRenderer=/** @class */function(_super){__extends(DayTileEventRenderer,_super);function DayTileEventRenderer(dayTile){var _this=_super.call(this)||this;_this.dayTile=dayTile;return _this;}DayTileEventRenderer.prototype.attachSegs=function(segs){for(var _i=0,segs_1=segs;_i<segs_1.length;_i++){var seg=segs_1[_i];this.dayTile.segContainerEl.appendChild(seg.el);}};DayTileEventRenderer.prototype.detachSegs=function(segs){for(var _i=0,segs_2=segs;_i<segs_2.length;_i++){var seg=segs_2[_i];core.removeElement(seg.el);}};return DayTileEventRenderer;}(SimpleDayGridEventRenderer);var DayBgRow=/** @class */function(){function DayBgRow(context){this.context=context;}DayBgRow.prototype.renderHtml=function(props){var parts=[];if(props.renderIntroHtml){parts.push(props.renderIntroHtml());}for(var _i=0,_a=props.cells;_i<_a.length;_i++){var cell=_a[_i];parts.push(renderCellHtml(cell.date,props.dateProfile,this.context,cell.htmlAttrs));}if(!props.cells.length){parts.push('<td class=\"fc-day '+this.context.theme.getClass('widgetContent')+'\"></td>');}if(this.context.options.dir==='rtl'){parts.reverse();}return'<tr>'+parts.join('')+'</tr>';};return DayBgRow;}();function renderCellHtml(date,dateProfile,context,otherAttrs){var dateEnv=context.dateEnv,theme=context.theme;var isDateValid=core.rangeContainsMarker(dateProfile.activeRange,date);// TODO: called too frequently. cache somehow.\nvar classes=core.getDayClasses(date,dateProfile,context);classes.unshift('fc-day',theme.getClass('widgetContent'));return'<td class=\"'+classes.join(' ')+'\"'+(isDateValid?' data-date=\"'+dateEnv.formatIso(date,{omitTime:true})+'\"':'')+(otherAttrs?' '+otherAttrs:'')+'></td>';}var DAY_NUM_FORMAT=core.createFormatter({day:'numeric'});var WEEK_NUM_FORMAT=core.createFormatter({week:'numeric'});var DayGrid=/** @class */function(_super){__extends(DayGrid,_super);function DayGrid(el,renderProps){var _this=_super.call(this,el)||this;_this.bottomCoordPadding=0;// hack for extending the hit area for the last row of the coordinate grid\n_this.isCellSizesDirty=false;_this.renderProps=renderProps;var eventRenderer=_this.eventRenderer=new DayGridEventRenderer(_this);var fillRenderer=_this.fillRenderer=new DayGridFillRenderer(_this);_this.mirrorRenderer=new DayGridMirrorRenderer(_this);var renderCells=_this.renderCells=core.memoizeRendering(_this._renderCells,_this._unrenderCells);_this.renderBusinessHours=core.memoizeRendering(fillRenderer.renderSegs.bind(fillRenderer,'businessHours'),fillRenderer.unrender.bind(fillRenderer,'businessHours'),[renderCells]);_this.renderDateSelection=core.memoizeRendering(fillRenderer.renderSegs.bind(fillRenderer,'highlight'),fillRenderer.unrender.bind(fillRenderer,'highlight'),[renderCells]);_this.renderBgEvents=core.memoizeRendering(fillRenderer.renderSegs.bind(fillRenderer,'bgEvent'),fillRenderer.unrender.bind(fillRenderer,'bgEvent'),[renderCells]);_this.renderFgEvents=core.memoizeRendering(eventRenderer.renderSegs.bind(eventRenderer),eventRenderer.unrender.bind(eventRenderer),[renderCells]);_this.renderEventSelection=core.memoizeRendering(eventRenderer.selectByInstanceId.bind(eventRenderer),eventRenderer.unselectByInstanceId.bind(eventRenderer),[_this.renderFgEvents]);_this.renderEventDrag=core.memoizeRendering(_this._renderEventDrag,_this._unrenderEventDrag,[renderCells]);_this.renderEventResize=core.memoizeRendering(_this._renderEventResize,_this._unrenderEventResize,[renderCells]);return _this;}DayGrid.prototype.render=function(props,context){var cells=props.cells;this.rowCnt=cells.length;this.colCnt=cells[0].length;this.renderCells(cells,props.isRigid);this.renderBusinessHours(context,props.businessHourSegs);this.renderDateSelection(context,props.dateSelectionSegs);this.renderBgEvents(context,props.bgEventSegs);this.renderFgEvents(context,props.fgEventSegs);this.renderEventSelection(props.eventSelection);this.renderEventDrag(props.eventDrag);this.renderEventResize(props.eventResize);if(this.segPopoverTile){this.updateSegPopoverTile();}};DayGrid.prototype.destroy=function(){_super.prototype.destroy.call(this);this.renderCells.unrender();// will unrender everything else\n};DayGrid.prototype.getCellRange=function(row,col){var start=this.props.cells[row][col].date;var end=core.addDays(start,1);return{start:start,end:end};};DayGrid.prototype.updateSegPopoverTile=function(date,segs){var ownProps=this.props;this.segPopoverTile.receiveProps({date:date||this.segPopoverTile.props.date,fgSegs:segs||this.segPopoverTile.props.fgSegs,eventSelection:ownProps.eventSelection,eventDragInstances:ownProps.eventDrag?ownProps.eventDrag.affectedInstances:null,eventResizeInstances:ownProps.eventResize?ownProps.eventResize.affectedInstances:null},this.context);};/* Date Rendering\r\n        ------------------------------------------------------------------------------------------------------------------*/DayGrid.prototype._renderCells=function(cells,isRigid){var _a=this.context,calendar=_a.calendar,view=_a.view,isRtl=_a.isRtl,dateEnv=_a.dateEnv;var _b=this,rowCnt=_b.rowCnt,colCnt=_b.colCnt;var html='';var row;var col;for(row=0;row<rowCnt;row++){html+=this.renderDayRowHtml(row,isRigid);}this.el.innerHTML=html;this.rowEls=core.findElements(this.el,'.fc-row');this.cellEls=core.findElements(this.el,'.fc-day, .fc-disabled-day');if(isRtl){this.cellEls.reverse();}this.rowPositions=new core.PositionCache(this.el,this.rowEls,false,true// vertical\n);this.colPositions=new core.PositionCache(this.el,this.cellEls.slice(0,colCnt),// only the first row\ntrue,false// horizontal\n);// trigger dayRender with each cell's element\nfor(row=0;row<rowCnt;row++){for(col=0;col<colCnt;col++){calendar.publiclyTrigger('dayRender',[{date:dateEnv.toDate(cells[row][col].date),el:this.getCellEl(row,col),view:view}]);}}this.isCellSizesDirty=true;};DayGrid.prototype._unrenderCells=function(){this.removeSegPopover();};// Generates the HTML for a single row, which is a div that wraps a table.\n// `row` is the row number.\nDayGrid.prototype.renderDayRowHtml=function(row,isRigid){var theme=this.context.theme;var classes=['fc-row','fc-week',theme.getClass('dayRow')];if(isRigid){classes.push('fc-rigid');}var bgRow=new DayBgRow(this.context);return''+'<div class=\"'+classes.join(' ')+'\">'+'<div class=\"fc-bg\">'+'<table class=\"'+theme.getClass('tableGrid')+'\">'+bgRow.renderHtml({cells:this.props.cells[row],dateProfile:this.props.dateProfile,renderIntroHtml:this.renderProps.renderBgIntroHtml})+'</table>'+'</div>'+'<div class=\"fc-content-skeleton\">'+'<table>'+(this.getIsNumbersVisible()?'<thead>'+this.renderNumberTrHtml(row)+'</thead>':'')+'</table>'+'</div>'+'</div>';};DayGrid.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.renderProps.cellWeekNumbersVisible||this.renderProps.colWeekNumbersVisible;};DayGrid.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1;};/* Grid Number Rendering\r\n        ------------------------------------------------------------------------------------------------------------------*/DayGrid.prototype.renderNumberTrHtml=function(row){var isRtl=this.context.isRtl;var intro=this.renderProps.renderNumberIntroHtml(row,this);return''+'<tr>'+(isRtl?'':intro)+this.renderNumberCellsHtml(row)+(isRtl?intro:'')+'</tr>';};DayGrid.prototype.renderNumberCellsHtml=function(row){var htmls=[];var col;var date;for(col=0;col<this.colCnt;col++){date=this.props.cells[row][col].date;htmls.push(this.renderNumberCellHtml(date));}if(this.context.isRtl){htmls.reverse();}return htmls.join('');};// Generates the HTML for the <td>s of the \"number\" row in the DayGrid's content skeleton.\n// The number row will only exist if either day numbers or week numbers are turned on.\nDayGrid.prototype.renderNumberCellHtml=function(date){var _a=this.context,dateEnv=_a.dateEnv,options=_a.options;var html='';var isDateValid=core.rangeContainsMarker(this.props.dateProfile.activeRange,date);// TODO: called too frequently. cache somehow.\nvar isDayNumberVisible=this.getIsDayNumbersVisible()&&isDateValid;var classes;var weekCalcFirstDow;if(!isDayNumberVisible&&!this.renderProps.cellWeekNumbersVisible){// no numbers in day cell (week number must be along the side)\nreturn'<td></td>';//  will create an empty space above events :(\n}classes=core.getDayClasses(date,this.props.dateProfile,this.context);classes.unshift('fc-day-top');if(this.renderProps.cellWeekNumbersVisible){weekCalcFirstDow=dateEnv.weekDow;}html+='<td class=\"'+classes.join(' ')+'\"'+(isDateValid?' data-date=\"'+dateEnv.formatIso(date,{omitTime:true})+'\"':'')+'>';if(this.renderProps.cellWeekNumbersVisible&&date.getUTCDay()===weekCalcFirstDow){html+=core.buildGotoAnchorHtml(options,dateEnv,{date:date,type:'week'},{'class':'fc-week-number'},dateEnv.format(date,WEEK_NUM_FORMAT)// inner HTML\n);}if(isDayNumberVisible){html+=core.buildGotoAnchorHtml(options,dateEnv,date,{'class':'fc-day-number'},dateEnv.format(date,DAY_NUM_FORMAT)// inner HTML\n);}html+='</td>';return html;};/* Sizing\r\n        ------------------------------------------------------------------------------------------------------------------*/DayGrid.prototype.updateSize=function(isResize){var calendar=this.context.calendar;var _a=this,fillRenderer=_a.fillRenderer,eventRenderer=_a.eventRenderer,mirrorRenderer=_a.mirrorRenderer;if(isResize||this.isCellSizesDirty||calendar.isEventsUpdated// hack\n){this.buildPositionCaches();this.isCellSizesDirty=false;}fillRenderer.computeSizes(isResize);eventRenderer.computeSizes(isResize);mirrorRenderer.computeSizes(isResize);fillRenderer.assignSizes(isResize);eventRenderer.assignSizes(isResize);mirrorRenderer.assignSizes(isResize);};DayGrid.prototype.buildPositionCaches=function(){this.buildColPositions();this.buildRowPositions();};DayGrid.prototype.buildColPositions=function(){this.colPositions.build();};DayGrid.prototype.buildRowPositions=function(){this.rowPositions.build();this.rowPositions.bottoms[this.rowCnt-1]+=this.bottomCoordPadding;// hack\n};/* Hit System\r\n        ------------------------------------------------------------------------------------------------------------------*/DayGrid.prototype.positionToHit=function(leftPosition,topPosition){var _a=this,colPositions=_a.colPositions,rowPositions=_a.rowPositions;var col=colPositions.leftToIndex(leftPosition);var row=rowPositions.topToIndex(topPosition);if(row!=null&&col!=null){return{row:row,col:col,dateSpan:{range:this.getCellRange(row,col),allDay:true},dayEl:this.getCellEl(row,col),relativeRect:{left:colPositions.lefts[col],right:colPositions.rights[col],top:rowPositions.tops[row],bottom:rowPositions.bottoms[row]}};}};/* Cell System\r\n        ------------------------------------------------------------------------------------------------------------------*/ // FYI: the first column is the leftmost column, regardless of date\nDayGrid.prototype.getCellEl=function(row,col){return this.cellEls[row*this.colCnt+col];};/* Event Drag Visualization\r\n        ------------------------------------------------------------------------------------------------------------------*/DayGrid.prototype._renderEventDrag=function(state){if(state){this.eventRenderer.hideByHash(state.affectedInstances);this.fillRenderer.renderSegs('highlight',this.context,state.segs);}};DayGrid.prototype._unrenderEventDrag=function(state){if(state){this.eventRenderer.showByHash(state.affectedInstances);this.fillRenderer.unrender('highlight',this.context);}};/* Event Resize Visualization\r\n        ------------------------------------------------------------------------------------------------------------------*/DayGrid.prototype._renderEventResize=function(state){if(state){this.eventRenderer.hideByHash(state.affectedInstances);this.fillRenderer.renderSegs('highlight',this.context,state.segs);this.mirrorRenderer.renderSegs(this.context,state.segs,{isResizing:true,sourceSeg:state.sourceSeg});}};DayGrid.prototype._unrenderEventResize=function(state){if(state){this.eventRenderer.showByHash(state.affectedInstances);this.fillRenderer.unrender('highlight',this.context);this.mirrorRenderer.unrender(this.context,state.segs,{isResizing:true,sourceSeg:state.sourceSeg});}};/* More+ Link Popover\r\n        ------------------------------------------------------------------------------------------------------------------*/DayGrid.prototype.removeSegPopover=function(){if(this.segPopover){this.segPopover.hide();// in handler, will call segPopover's removeElement\n}};// Limits the number of \"levels\" (vertically stacking layers of events) for each row of the grid.\n// `levelLimit` can be false (don't limit), a number, or true (should be computed).\nDayGrid.prototype.limitRows=function(levelLimit){var rowStructs=this.eventRenderer.rowStructs||[];var row;// row #\nvar rowLevelLimit;for(row=0;row<rowStructs.length;row++){this.unlimitRow(row);if(!levelLimit){rowLevelLimit=false;}else if(typeof levelLimit==='number'){rowLevelLimit=levelLimit;}else{rowLevelLimit=this.computeRowLevelLimit(row);}if(rowLevelLimit!==false){this.limitRow(row,rowLevelLimit);}}};// Computes the number of levels a row will accomodate without going outside its bounds.\n// Assumes the row is \"rigid\" (maintains a constant height regardless of what is inside).\n// `row` is the row number.\nDayGrid.prototype.computeRowLevelLimit=function(row){var rowEl=this.rowEls[row];// the containing \"fake\" row div\nvar rowBottom=rowEl.getBoundingClientRect().bottom;// relative to viewport!\nvar trEls=core.findChildren(this.eventRenderer.rowStructs[row].tbodyEl);var i;var trEl;// Reveal one level <tr> at a time and stop when we find one out of bounds\nfor(i=0;i<trEls.length;i++){trEl=trEls[i];trEl.classList.remove('fc-limited');// reset to original state (reveal)\nif(trEl.getBoundingClientRect().bottom>rowBottom){return i;}}return false;// should not limit at all\n};// Limits the given grid row to the maximum number of levels and injects \"more\" links if necessary.\n// `row` is the row number.\n// `levelLimit` is a number for the maximum (inclusive) number of levels allowed.\nDayGrid.prototype.limitRow=function(row,levelLimit){var _this=this;var colCnt=this.colCnt;var isRtl=this.context.isRtl;var rowStruct=this.eventRenderer.rowStructs[row];var moreNodes=[];// array of \"more\" <a> links and <td> DOM nodes\nvar col=0;// col #, left-to-right (not chronologically)\nvar levelSegs;// array of segment objects in the last allowable level, ordered left-to-right\nvar cellMatrix;// a matrix (by level, then column) of all <td> elements in the row\nvar limitedNodes;// array of temporarily hidden level <tr> and segment <td> DOM nodes\nvar i;var seg;var segsBelow;// array of segment objects below `seg` in the current `col`\nvar totalSegsBelow;// total number of segments below `seg` in any of the columns `seg` occupies\nvar colSegsBelow;// array of segment arrays, below seg, one for each column (offset from segs's first column)\nvar td;var rowSpan;var segMoreNodes;// array of \"more\" <td> cells that will stand-in for the current seg's cell\nvar j;var moreTd;var moreWrap;var moreLink;// Iterates through empty level cells and places \"more\" links inside if need be\nvar emptyCellsUntil=function(endCol){while(col<endCol){segsBelow=_this.getCellSegs(row,col,levelLimit);if(segsBelow.length){td=cellMatrix[levelLimit-1][col];moreLink=_this.renderMoreLink(row,col,segsBelow);moreWrap=core.createElement('div',null,moreLink);td.appendChild(moreWrap);moreNodes.push(moreWrap);}col++;}};if(levelLimit&&levelLimit<rowStruct.segLevels.length){// is it actually over the limit?\nlevelSegs=rowStruct.segLevels[levelLimit-1];cellMatrix=rowStruct.cellMatrix;limitedNodes=core.findChildren(rowStruct.tbodyEl).slice(levelLimit);// get level <tr> elements past the limit\nlimitedNodes.forEach(function(node){node.classList.add('fc-limited');// hide elements and get a simple DOM-nodes array\n});// iterate though segments in the last allowable level\nfor(i=0;i<levelSegs.length;i++){seg=levelSegs[i];var leftCol=isRtl?colCnt-1-seg.lastCol:seg.firstCol;var rightCol=isRtl?colCnt-1-seg.firstCol:seg.lastCol;emptyCellsUntil(leftCol);// process empty cells before the segment\n// determine *all* segments below `seg` that occupy the same columns\ncolSegsBelow=[];totalSegsBelow=0;while(col<=rightCol){segsBelow=this.getCellSegs(row,col,levelLimit);colSegsBelow.push(segsBelow);totalSegsBelow+=segsBelow.length;col++;}if(totalSegsBelow){// do we need to replace this segment with one or many \"more\" links?\ntd=cellMatrix[levelLimit-1][leftCol];// the segment's parent cell\nrowSpan=td.rowSpan||1;segMoreNodes=[];// make a replacement <td> for each column the segment occupies. will be one for each colspan\nfor(j=0;j<colSegsBelow.length;j++){moreTd=core.createElement('td',{className:'fc-more-cell',rowSpan:rowSpan});segsBelow=colSegsBelow[j];moreLink=this.renderMoreLink(row,leftCol+j,[seg].concat(segsBelow)// count seg as hidden too\n);moreWrap=core.createElement('div',null,moreLink);moreTd.appendChild(moreWrap);segMoreNodes.push(moreTd);moreNodes.push(moreTd);}td.classList.add('fc-limited');core.insertAfterElement(td,segMoreNodes);limitedNodes.push(td);}}emptyCellsUntil(this.colCnt);// finish off the level\nrowStruct.moreEls=moreNodes;// for easy undoing later\nrowStruct.limitedEls=limitedNodes;// for easy undoing later\n}};// Reveals all levels and removes all \"more\"-related elements for a grid's row.\n// `row` is a row number.\nDayGrid.prototype.unlimitRow=function(row){var rowStruct=this.eventRenderer.rowStructs[row];if(rowStruct.moreEls){rowStruct.moreEls.forEach(core.removeElement);rowStruct.moreEls=null;}if(rowStruct.limitedEls){rowStruct.limitedEls.forEach(function(limitedEl){limitedEl.classList.remove('fc-limited');});rowStruct.limitedEls=null;}};// Renders an <a> element that represents hidden event element for a cell.\n// Responsible for attaching click handler as well.\nDayGrid.prototype.renderMoreLink=function(row,col,hiddenSegs){var _this=this;var _a=this.context,calendar=_a.calendar,view=_a.view,dateEnv=_a.dateEnv,options=_a.options,isRtl=_a.isRtl;var a=core.createElement('a',{className:'fc-more'});a.innerText=this.getMoreLinkText(hiddenSegs.length);a.addEventListener('click',function(ev){var clickOption=options.eventLimitClick;var _col=isRtl?_this.colCnt-col-1:col;// HACK: props.cells has different dir system?\nvar date=_this.props.cells[row][_col].date;var moreEl=ev.currentTarget;var dayEl=_this.getCellEl(row,col);var allSegs=_this.getCellSegs(row,col);// rescope the segments to be within the cell's date\nvar reslicedAllSegs=_this.resliceDaySegs(allSegs,date);var reslicedHiddenSegs=_this.resliceDaySegs(hiddenSegs,date);if(typeof clickOption==='function'){// the returned value can be an atomic option\nclickOption=calendar.publiclyTrigger('eventLimitClick',[{date:dateEnv.toDate(date),allDay:true,dayEl:dayEl,moreEl:moreEl,segs:reslicedAllSegs,hiddenSegs:reslicedHiddenSegs,jsEvent:ev,view:view}]);}if(clickOption==='popover'){_this.showSegPopover(row,col,moreEl,reslicedAllSegs);}else if(typeof clickOption==='string'){// a view name\ncalendar.zoomTo(date,clickOption);}});return a;};// Reveals the popover that displays all events within a cell\nDayGrid.prototype.showSegPopover=function(row,col,moreLink,segs){var _this=this;var _a=this.context,calendar=_a.calendar,view=_a.view,theme=_a.theme,isRtl=_a.isRtl;var _col=isRtl?this.colCnt-col-1:col;// HACK: props.cells has different dir system?\nvar moreWrap=moreLink.parentNode;// the <div> wrapper around the <a>\nvar topEl;// the element we want to match the top coordinate of\nvar options;if(this.rowCnt===1){topEl=view.el;// will cause the popover to cover any sort of header\n}else{topEl=this.rowEls[row];// will align with top of row\n}options={className:'fc-more-popover '+theme.getClass('popover'),parentEl:view.el,top:core.computeRect(topEl).top,autoHide:true,content:function(el){_this.segPopoverTile=new DayTile(el);_this.updateSegPopoverTile(_this.props.cells[row][_col].date,segs);},hide:function(){_this.segPopoverTile.destroy();_this.segPopoverTile=null;_this.segPopover.destroy();_this.segPopover=null;}};// Determine horizontal coordinate.\n// We use the moreWrap instead of the <td> to avoid border confusion.\nif(isRtl){options.right=core.computeRect(moreWrap).right+1;// +1 to be over cell border\n}else{options.left=core.computeRect(moreWrap).left-1;// -1 to be over cell border\n}this.segPopover=new Popover(options);this.segPopover.show();calendar.releaseAfterSizingTriggers();// hack for eventPositioned\n};// Given the events within an array of segment objects, reslice them to be in a single day\nDayGrid.prototype.resliceDaySegs=function(segs,dayDate){var dayStart=dayDate;var dayEnd=core.addDays(dayStart,1);var dayRange={start:dayStart,end:dayEnd};var newSegs=[];for(var _i=0,segs_1=segs;_i<segs_1.length;_i++){var seg=segs_1[_i];var eventRange=seg.eventRange;var origRange=eventRange.range;var slicedRange=core.intersectRanges(origRange,dayRange);if(slicedRange){newSegs.push(__assign({},seg,{eventRange:{def:eventRange.def,ui:__assign({},eventRange.ui,{durationEditable:false}),instance:eventRange.instance,range:slicedRange},isStart:seg.isStart&&slicedRange.start.valueOf()===origRange.start.valueOf(),isEnd:seg.isEnd&&slicedRange.end.valueOf()===origRange.end.valueOf()}));}}return newSegs;};// Generates the text that should be inside a \"more\" link, given the number of events it represents\nDayGrid.prototype.getMoreLinkText=function(num){var opt=this.context.options.eventLimitText;if(typeof opt==='function'){return opt(num);}else{return'+'+num+' '+opt;}};// Returns segments within a given cell.\n// If `startLevel` is specified, returns only events including and below that level. Otherwise returns all segs.\nDayGrid.prototype.getCellSegs=function(row,col,startLevel){var segMatrix=this.eventRenderer.rowStructs[row].segMatrix;var level=startLevel||0;var segs=[];var seg;while(level<segMatrix.length){seg=segMatrix[level][col];if(seg){segs.push(seg);}level++;}return segs;};return DayGrid;}(core.DateComponent);var WEEK_NUM_FORMAT$1=core.createFormatter({week:'numeric'});/* An abstract class for the daygrid views, as well as month view. Renders one or more rows of day cells.\r\n    ----------------------------------------------------------------------------------------------------------------------*/ // It is a manager for a DayGrid subcomponent, which does most of the heavy lifting.\n// It is responsible for managing width/height.\nvar AbstractDayGridView=/** @class */function(_super){__extends(AbstractDayGridView,_super);function AbstractDayGridView(){var _this=_super!==null&&_super.apply(this,arguments)||this;_this.processOptions=core.memoize(_this._processOptions);_this.renderSkeleton=core.memoizeRendering(_this._renderSkeleton,_this._unrenderSkeleton);/* Header Rendering\r\n            ------------------------------------------------------------------------------------------------------------------*/ // Generates the HTML that will go before the day-of week header cells\n_this.renderHeadIntroHtml=function(){var _a=_this.context,theme=_a.theme,options=_a.options;if(_this.colWeekNumbersVisible){return''+'<th class=\"fc-week-number '+theme.getClass('widgetHeader')+'\" '+_this.weekNumberStyleAttr()+'>'+'<span>'+// needed for matchCellWidths\ncore.htmlEscape(options.weekLabel)+'</span>'+'</th>';}return'';};/* Day Grid Rendering\r\n            ------------------------------------------------------------------------------------------------------------------*/ // Generates the HTML that will go before content-skeleton cells that display the day/week numbers\n_this.renderDayGridNumberIntroHtml=function(row,dayGrid){var _a=_this.context,options=_a.options,dateEnv=_a.dateEnv;var weekStart=dayGrid.props.cells[row][0].date;if(_this.colWeekNumbersVisible){return''+'<td class=\"fc-week-number\" '+_this.weekNumberStyleAttr()+'>'+core.buildGotoAnchorHtml(// aside from link, important for matchCellWidths\noptions,dateEnv,{date:weekStart,type:'week',forceOff:dayGrid.colCnt===1},dateEnv.format(weekStart,WEEK_NUM_FORMAT$1)// inner HTML\n)+'</td>';}return'';};// Generates the HTML that goes before the day bg cells for each day-row\n_this.renderDayGridBgIntroHtml=function(){var theme=_this.context.theme;if(_this.colWeekNumbersVisible){return'<td class=\"fc-week-number '+theme.getClass('widgetContent')+'\" '+_this.weekNumberStyleAttr()+'></td>';}return'';};// Generates the HTML that goes before every other type of row generated by DayGrid.\n// Affects mirror-skeleton and highlight-skeleton rows.\n_this.renderDayGridIntroHtml=function(){if(_this.colWeekNumbersVisible){return'<td class=\"fc-week-number\" '+_this.weekNumberStyleAttr()+'></td>';}return'';};return _this;}AbstractDayGridView.prototype._processOptions=function(options){if(options.weekNumbers){if(options.weekNumbersWithinDays){this.cellWeekNumbersVisible=true;this.colWeekNumbersVisible=false;}else{this.cellWeekNumbersVisible=false;this.colWeekNumbersVisible=true;}}else{this.colWeekNumbersVisible=false;this.cellWeekNumbersVisible=false;}};AbstractDayGridView.prototype.render=function(props,context){_super.prototype.render.call(this,props,context);this.processOptions(context.options);this.renderSkeleton(context);};AbstractDayGridView.prototype.destroy=function(){_super.prototype.destroy.call(this);this.renderSkeleton.unrender();};AbstractDayGridView.prototype._renderSkeleton=function(context){this.el.classList.add('fc-dayGrid-view');this.el.innerHTML=this.renderSkeletonHtml();this.scroller=new core.ScrollComponent('hidden',// overflow x\n'auto'// overflow y\n);var dayGridContainerEl=this.scroller.el;this.el.querySelector('.fc-body > tr > td').appendChild(dayGridContainerEl);dayGridContainerEl.classList.add('fc-day-grid-container');var dayGridEl=core.createElement('div',{className:'fc-day-grid'});dayGridContainerEl.appendChild(dayGridEl);this.dayGrid=new DayGrid(dayGridEl,{renderNumberIntroHtml:this.renderDayGridNumberIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:this.colWeekNumbersVisible,cellWeekNumbersVisible:this.cellWeekNumbersVisible});};AbstractDayGridView.prototype._unrenderSkeleton=function(){this.el.classList.remove('fc-dayGrid-view');this.dayGrid.destroy();this.scroller.destroy();};// Builds the HTML skeleton for the view.\n// The day-grid component will render inside of a container defined by this HTML.\nAbstractDayGridView.prototype.renderSkeletonHtml=function(){var _a=this.context,theme=_a.theme,options=_a.options;return''+'<table class=\"'+theme.getClass('tableGrid')+'\">'+(options.columnHeader?'<thead class=\"fc-head\">'+'<tr>'+'<td class=\"fc-head-container '+theme.getClass('widgetHeader')+'\">&nbsp;</td>'+'</tr>'+'</thead>':'')+'<tbody class=\"fc-body\">'+'<tr>'+'<td class=\"'+theme.getClass('widgetContent')+'\"></td>'+'</tr>'+'</tbody>'+'</table>';};// Generates an HTML attribute string for setting the width of the week number column, if it is known\nAbstractDayGridView.prototype.weekNumberStyleAttr=function(){if(this.weekNumberWidth!=null){return'style=\"width:'+this.weekNumberWidth+'px\"';}return'';};// Determines whether each row should have a constant height\nAbstractDayGridView.prototype.hasRigidRows=function(){var eventLimit=this.context.options.eventLimit;return eventLimit&&typeof eventLimit!=='number';};/* Dimensions\r\n        ------------------------------------------------------------------------------------------------------------------*/AbstractDayGridView.prototype.updateSize=function(isResize,viewHeight,isAuto){_super.prototype.updateSize.call(this,isResize,viewHeight,isAuto);// will call updateBaseSize. important that executes first\nthis.dayGrid.updateSize(isResize);};// Refreshes the horizontal dimensions of the view\nAbstractDayGridView.prototype.updateBaseSize=function(isResize,viewHeight,isAuto){var dayGrid=this.dayGrid;var eventLimit=this.context.options.eventLimit;var headRowEl=this.header?this.header.el:null;// HACK\nvar scrollerHeight;var scrollbarWidths;// hack to give the view some height prior to dayGrid's columns being rendered\n// TODO: separate setting height from scroller VS dayGrid.\nif(!dayGrid.rowEls){if(!isAuto){scrollerHeight=this.computeScrollerHeight(viewHeight);this.scroller.setHeight(scrollerHeight);}return;}if(this.colWeekNumbersVisible){// Make sure all week number cells running down the side have the same width.\nthis.weekNumberWidth=core.matchCellWidths(core.findElements(this.el,'.fc-week-number'));}// reset all heights to be natural\nthis.scroller.clear();if(headRowEl){core.uncompensateScroll(headRowEl);}dayGrid.removeSegPopover();// kill the \"more\" popover if displayed\n// is the event limit a constant level number?\nif(eventLimit&&typeof eventLimit==='number'){dayGrid.limitRows(eventLimit);// limit the levels first so the height can redistribute after\n}// distribute the height to the rows\n// (viewHeight is a \"recommended\" value if isAuto)\nscrollerHeight=this.computeScrollerHeight(viewHeight);this.setGridHeight(scrollerHeight,isAuto);// is the event limit dynamically calculated?\nif(eventLimit&&typeof eventLimit!=='number'){dayGrid.limitRows(eventLimit);// limit the levels after the grid's row heights have been set\n}if(!isAuto){// should we force dimensions of the scroll container?\nthis.scroller.setHeight(scrollerHeight);scrollbarWidths=this.scroller.getScrollbarWidths();if(scrollbarWidths.left||scrollbarWidths.right){// using scrollbars?\nif(headRowEl){core.compensateScroll(headRowEl,scrollbarWidths);}// doing the scrollbar compensation might have created text overflow which created more height. redo\nscrollerHeight=this.computeScrollerHeight(viewHeight);this.scroller.setHeight(scrollerHeight);}// guarantees the same scrollbar widths\nthis.scroller.lockOverflow(scrollbarWidths);}};// given a desired total height of the view, returns what the height of the scroller should be\nAbstractDayGridView.prototype.computeScrollerHeight=function(viewHeight){return viewHeight-core.subtractInnerElHeight(this.el,this.scroller.el);// everything that's NOT the scroller\n};// Sets the height of just the DayGrid component in this view\nAbstractDayGridView.prototype.setGridHeight=function(height,isAuto){if(this.context.options.monthMode){// if auto, make the height of each row the height that it would be if there were 6 weeks\nif(isAuto){height*=this.dayGrid.rowCnt/6;}core.distributeHeight(this.dayGrid.rowEls,height,!isAuto);// if auto, don't compensate for height-hogging rows\n}else{if(isAuto){core.undistributeHeight(this.dayGrid.rowEls);// let the rows be their natural height with no expanding\n}else{core.distributeHeight(this.dayGrid.rowEls,height,true);// true = compensate for height-hogging rows\n}}};/* Scroll\r\n        ------------------------------------------------------------------------------------------------------------------*/AbstractDayGridView.prototype.computeDateScroll=function(duration){return{top:0};};AbstractDayGridView.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()};};AbstractDayGridView.prototype.applyDateScroll=function(scroll){if(scroll.top!==undefined){this.scroller.setScrollTop(scroll.top);}};return AbstractDayGridView;}(core.View);AbstractDayGridView.prototype.dateProfileGeneratorClass=DayGridDateProfileGenerator;var SimpleDayGrid=/** @class */function(_super){__extends(SimpleDayGrid,_super);function SimpleDayGrid(dayGrid){var _this=_super.call(this,dayGrid.el)||this;_this.slicer=new DayGridSlicer();_this.dayGrid=dayGrid;return _this;}SimpleDayGrid.prototype.firstContext=function(context){context.calendar.registerInteractiveComponent(this,{el:this.dayGrid.el});};SimpleDayGrid.prototype.destroy=function(){_super.prototype.destroy.call(this);this.context.calendar.unregisterInteractiveComponent(this);};SimpleDayGrid.prototype.render=function(props,context){var dayGrid=this.dayGrid;var dateProfile=props.dateProfile,dayTable=props.dayTable;dayGrid.receiveProps(__assign({},this.slicer.sliceProps(props,dateProfile,props.nextDayThreshold,context.calendar,dayGrid,dayTable),{dateProfile:dateProfile,cells:dayTable.cells,isRigid:props.isRigid}),context);};SimpleDayGrid.prototype.buildPositionCaches=function(){this.dayGrid.buildPositionCaches();};SimpleDayGrid.prototype.queryHit=function(positionLeft,positionTop){var rawHit=this.dayGrid.positionToHit(positionLeft,positionTop);if(rawHit){return{component:this.dayGrid,dateSpan:rawHit.dateSpan,dayEl:rawHit.dayEl,rect:{left:rawHit.relativeRect.left,right:rawHit.relativeRect.right,top:rawHit.relativeRect.top,bottom:rawHit.relativeRect.bottom},layer:0};}};return SimpleDayGrid;}(core.DateComponent);var DayGridSlicer=/** @class */function(_super){__extends(DayGridSlicer,_super);function DayGridSlicer(){return _super!==null&&_super.apply(this,arguments)||this;}DayGridSlicer.prototype.sliceRange=function(dateRange,dayTable){return dayTable.sliceRange(dateRange);};return DayGridSlicer;}(core.Slicer);var DayGridView=/** @class */function(_super){__extends(DayGridView,_super);function DayGridView(){var _this=_super!==null&&_super.apply(this,arguments)||this;_this.buildDayTable=core.memoize(buildDayTable);return _this;}DayGridView.prototype.render=function(props,context){_super.prototype.render.call(this,props,context);// will call _renderSkeleton/_unrenderSkeleton\nvar dateProfile=this.props.dateProfile;var dayTable=this.dayTable=this.buildDayTable(dateProfile,props.dateProfileGenerator);if(this.header){this.header.receiveProps({dateProfile:dateProfile,dates:dayTable.headerDates,datesRepDistinctDays:dayTable.rowCnt===1,renderIntroHtml:this.renderHeadIntroHtml},context);}this.simpleDayGrid.receiveProps({dateProfile:dateProfile,dayTable:dayTable,businessHours:props.businessHours,dateSelection:props.dateSelection,eventStore:props.eventStore,eventUiBases:props.eventUiBases,eventSelection:props.eventSelection,eventDrag:props.eventDrag,eventResize:props.eventResize,isRigid:this.hasRigidRows(),nextDayThreshold:this.context.nextDayThreshold},context);};DayGridView.prototype._renderSkeleton=function(context){_super.prototype._renderSkeleton.call(this,context);if(context.options.columnHeader){this.header=new core.DayHeader(this.el.querySelector('.fc-head-container'));}this.simpleDayGrid=new SimpleDayGrid(this.dayGrid);};DayGridView.prototype._unrenderSkeleton=function(){_super.prototype._unrenderSkeleton.call(this);if(this.header){this.header.destroy();}this.simpleDayGrid.destroy();};return DayGridView;}(AbstractDayGridView);function buildDayTable(dateProfile,dateProfileGenerator){var daySeries=new core.DaySeries(dateProfile.renderRange,dateProfileGenerator);return new core.DayTable(daySeries,/year|month|week/.test(dateProfile.currentRangeUnit));}var main=core.createPlugin({defaultView:'dayGridMonth',views:{dayGrid:DayGridView,dayGridDay:{type:'dayGrid',duration:{days:1}},dayGridWeek:{type:'dayGrid',duration:{weeks:1}},dayGridMonth:{type:'dayGrid',duration:{months:1},monthMode:true,fixedWeekCount:true}}});exports.AbstractDayGridView=AbstractDayGridView;exports.DayBgRow=DayBgRow;exports.DayGrid=DayGrid;exports.DayGridSlicer=DayGridSlicer;exports.DayGridView=DayGridView;exports.SimpleDayGrid=SimpleDayGrid;exports.buildBasicDayTable=buildDayTable;exports.default=main;Object.defineProperty(exports,'__esModule',{value:true});});/*!\r\nFullCalendar List View Plugin v4.4.0\r\nDocs & License: https://fullcalendar.io/\r\n(c) 2019 Adam Shaw\r\n*/(function(global,factory){ true?factory(exports,__webpack_require__(Object(function webpackMissingModule() { var e = new Error(\"Cannot find module '@fullcalendar/core'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))):0;})(this,function(exports,core){'use strict';/*! *****************************************************************************\r\n    Copyright (c) Microsoft Corporation. All rights reserved.\r\n    Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n    this file except in compliance with the License. You may obtain a copy of the\r\n    License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n    MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n    See the Apache Version 2.0 License for specific language governing permissions\r\n    and limitations under the License.\r\n    ***************************************************************************** */ /* global Reflect, Promise */var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b;}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p];};return extendStatics(d,b);};function __extends(d,b){extendStatics(d,b);function __(){this.constructor=d;}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __());}var ListEventRenderer=/** @class */function(_super){__extends(ListEventRenderer,_super);function ListEventRenderer(listView){var _this=_super.call(this)||this;_this.listView=listView;return _this;}ListEventRenderer.prototype.attachSegs=function(segs){if(!segs.length){this.listView.renderEmptyMessage();}else{this.listView.renderSegList(segs);}};ListEventRenderer.prototype.detachSegs=function(){};// generates the HTML for a single event row\nListEventRenderer.prototype.renderSegHtml=function(seg){var _a=this.context,theme=_a.theme,options=_a.options;var eventRange=seg.eventRange;var eventDef=eventRange.def;var eventInstance=eventRange.instance;var eventUi=eventRange.ui;var url=eventDef.url;var classes=['fc-list-item'].concat(eventUi.classNames);var bgColor=eventUi.backgroundColor;var timeHtml;if(eventDef.allDay){timeHtml=core.getAllDayHtml(options);}else if(core.isMultiDayRange(eventRange.range)){if(seg.isStart){timeHtml=core.htmlEscape(this._getTimeText(eventInstance.range.start,seg.end,false// allDay\n));}else if(seg.isEnd){timeHtml=core.htmlEscape(this._getTimeText(seg.start,eventInstance.range.end,false// allDay\n));}else{// inner segment that lasts the whole day\ntimeHtml=core.getAllDayHtml(options);}}else{// Display the normal time text for the *event's* times\ntimeHtml=core.htmlEscape(this.getTimeText(eventRange));}if(url){classes.push('fc-has-url');}return'<tr class=\"'+classes.join(' ')+'\">'+(this.displayEventTime?'<td class=\"fc-list-item-time '+theme.getClass('widgetContent')+'\">'+(timeHtml||'')+'</td>':'')+'<td class=\"fc-list-item-marker '+theme.getClass('widgetContent')+'\">'+'<span class=\"fc-event-dot\"'+(bgColor?' style=\"background-color:'+bgColor+'\"':'')+'></span>'+'</td>'+'<td class=\"fc-list-item-title '+theme.getClass('widgetContent')+'\">'+'<a'+(url?' href=\"'+core.htmlEscape(url)+'\"':'')+'>'+core.htmlEscape(eventDef.title||'')+'</a>'+'</td>'+'</tr>';};// like \"4:00am\"\nListEventRenderer.prototype.computeEventTimeFormat=function(){return{hour:'numeric',minute:'2-digit',meridiem:'short'};};return ListEventRenderer;}(core.FgEventRenderer);/*\r\n    Responsible for the scroller, and forwarding event-related actions into the \"grid\".\r\n    */var ListView=/** @class */function(_super){__extends(ListView,_super);function ListView(viewSpec,parentEl){var _this=_super.call(this,viewSpec,parentEl)||this;_this.computeDateVars=core.memoize(computeDateVars);_this.eventStoreToSegs=core.memoize(_this._eventStoreToSegs);_this.renderSkeleton=core.memoizeRendering(_this._renderSkeleton,_this._unrenderSkeleton);var eventRenderer=_this.eventRenderer=new ListEventRenderer(_this);_this.renderContent=core.memoizeRendering(eventRenderer.renderSegs.bind(eventRenderer),eventRenderer.unrender.bind(eventRenderer),[_this.renderSkeleton]);return _this;}ListView.prototype.firstContext=function(context){context.calendar.registerInteractiveComponent(this,{el:this.el// TODO: make aware that it doesn't do Hits\n});};ListView.prototype.render=function(props,context){_super.prototype.render.call(this,props,context);var _a=this.computeDateVars(props.dateProfile),dayDates=_a.dayDates,dayRanges=_a.dayRanges;this.dayDates=dayDates;this.renderSkeleton(context);this.renderContent(context,this.eventStoreToSegs(props.eventStore,props.eventUiBases,dayRanges));};ListView.prototype.destroy=function(){_super.prototype.destroy.call(this);this.renderSkeleton.unrender();this.renderContent.unrender();this.context.calendar.unregisterInteractiveComponent(this);};ListView.prototype._renderSkeleton=function(context){var theme=context.theme;this.el.classList.add('fc-list-view');var listViewClassNames=(theme.getClass('listView')||'').split(' ');// wish we didn't have to do this\nfor(var _i=0,listViewClassNames_1=listViewClassNames;_i<listViewClassNames_1.length;_i++){var listViewClassName=listViewClassNames_1[_i];if(listViewClassName){// in case input was empty string\nthis.el.classList.add(listViewClassName);}}this.scroller=new core.ScrollComponent('hidden',// overflow x\n'auto'// overflow y\n);this.el.appendChild(this.scroller.el);this.contentEl=this.scroller.el;// shortcut\n};ListView.prototype._unrenderSkeleton=function(){// TODO: remove classNames\nthis.scroller.destroy();// will remove the Grid too\n};ListView.prototype.updateSize=function(isResize,viewHeight,isAuto){_super.prototype.updateSize.call(this,isResize,viewHeight,isAuto);this.eventRenderer.computeSizes(isResize);this.eventRenderer.assignSizes(isResize);this.scroller.clear();// sets height to 'auto' and clears overflow\nif(!isAuto){this.scroller.setHeight(this.computeScrollerHeight(viewHeight));}};ListView.prototype.computeScrollerHeight=function(viewHeight){return viewHeight-core.subtractInnerElHeight(this.el,this.scroller.el);// everything that's NOT the scroller\n};ListView.prototype._eventStoreToSegs=function(eventStore,eventUiBases,dayRanges){return this.eventRangesToSegs(core.sliceEventStore(eventStore,eventUiBases,this.props.dateProfile.activeRange,this.context.nextDayThreshold).fg,dayRanges);};ListView.prototype.eventRangesToSegs=function(eventRanges,dayRanges){var segs=[];for(var _i=0,eventRanges_1=eventRanges;_i<eventRanges_1.length;_i++){var eventRange=eventRanges_1[_i];segs.push.apply(segs,this.eventRangeToSegs(eventRange,dayRanges));}return segs;};ListView.prototype.eventRangeToSegs=function(eventRange,dayRanges){var _a=this.context,dateEnv=_a.dateEnv,nextDayThreshold=_a.nextDayThreshold;var range=eventRange.range;var allDay=eventRange.def.allDay;var dayIndex;var segRange;var seg;var segs=[];for(dayIndex=0;dayIndex<dayRanges.length;dayIndex++){segRange=core.intersectRanges(range,dayRanges[dayIndex]);if(segRange){seg={component:this,eventRange:eventRange,start:segRange.start,end:segRange.end,isStart:eventRange.isStart&&segRange.start.valueOf()===range.start.valueOf(),isEnd:eventRange.isEnd&&segRange.end.valueOf()===range.end.valueOf(),dayIndex:dayIndex};segs.push(seg);// detect when range won't go fully into the next day,\n// and mutate the latest seg to the be the end.\nif(!seg.isEnd&&!allDay&&dayIndex+1<dayRanges.length&&range.end<dateEnv.add(dayRanges[dayIndex+1].start,nextDayThreshold)){seg.end=range.end;seg.isEnd=true;break;}}}return segs;};ListView.prototype.renderEmptyMessage=function(){this.contentEl.innerHTML='<div class=\"fc-list-empty-wrap2\">'+// TODO: try less wraps\n'<div class=\"fc-list-empty-wrap1\">'+'<div class=\"fc-list-empty\">'+core.htmlEscape(this.context.options.noEventsMessage)+'</div>'+'</div>'+'</div>';};// called by ListEventRenderer\nListView.prototype.renderSegList=function(allSegs){var theme=this.context.theme;var segsByDay=this.groupSegsByDay(allSegs);// sparse array\nvar dayIndex;var daySegs;var i;var tableEl=core.htmlToElement('<table class=\"fc-list-table '+theme.getClass('tableList')+'\"><tbody></tbody></table>');var tbodyEl=tableEl.querySelector('tbody');for(dayIndex=0;dayIndex<segsByDay.length;dayIndex++){daySegs=segsByDay[dayIndex];if(daySegs){// sparse array, so might be undefined\n// append a day header\ntbodyEl.appendChild(this.buildDayHeaderRow(this.dayDates[dayIndex]));daySegs=this.eventRenderer.sortEventSegs(daySegs);for(i=0;i<daySegs.length;i++){tbodyEl.appendChild(daySegs[i].el);// append event row\n}}}this.contentEl.innerHTML='';this.contentEl.appendChild(tableEl);};// Returns a sparse array of arrays, segs grouped by their dayIndex\nListView.prototype.groupSegsByDay=function(segs){var segsByDay=[];// sparse array\nvar i;var seg;for(i=0;i<segs.length;i++){seg=segs[i];(segsByDay[seg.dayIndex]||(segsByDay[seg.dayIndex]=[])).push(seg);}return segsByDay;};// generates the HTML for the day headers that live amongst the event rows\nListView.prototype.buildDayHeaderRow=function(dayDate){var _a=this.context,theme=_a.theme,dateEnv=_a.dateEnv,options=_a.options;var mainFormat=core.createFormatter(options.listDayFormat);// TODO: cache\nvar altFormat=core.createFormatter(options.listDayAltFormat);// TODO: cache\nreturn core.createElement('tr',{className:'fc-list-heading','data-date':dateEnv.formatIso(dayDate,{omitTime:true})},'<td class=\"'+(theme.getClass('tableListHeading')||theme.getClass('widgetHeader'))+'\" colspan=\"3\">'+(mainFormat?core.buildGotoAnchorHtml(options,dateEnv,dayDate,{'class':'fc-list-heading-main'},core.htmlEscape(dateEnv.format(dayDate,mainFormat))// inner HTML\n):'')+(altFormat?core.buildGotoAnchorHtml(options,dateEnv,dayDate,{'class':'fc-list-heading-alt'},core.htmlEscape(dateEnv.format(dayDate,altFormat))// inner HTML\n):'')+'</td>');};return ListView;}(core.View);ListView.prototype.fgSegSelector='.fc-list-item';// which elements accept event actions\nfunction computeDateVars(dateProfile){var dayStart=core.startOfDay(dateProfile.renderRange.start);var viewEnd=dateProfile.renderRange.end;var dayDates=[];var dayRanges=[];while(dayStart<viewEnd){dayDates.push(dayStart);dayRanges.push({start:dayStart,end:core.addDays(dayStart,1)});dayStart=core.addDays(dayStart,1);}return{dayDates:dayDates,dayRanges:dayRanges};}var main=core.createPlugin({views:{list:{class:ListView,buttonTextKey:'list',listDayFormat:{month:'long',day:'numeric',year:'numeric'}// like \"January 1, 2016\"\n},listDay:{type:'list',duration:{days:1},listDayFormat:{weekday:'long'}// day-of-week is all we need. full date is probably in header\n},listWeek:{type:'list',duration:{weeks:1},listDayFormat:{weekday:'long'},listDayAltFormat:{month:'long',day:'numeric',year:'numeric'}},listMonth:{type:'list',duration:{month:1},listDayAltFormat:{weekday:'long'}// day-of-week is nice-to-have\n},listYear:{type:'list',duration:{year:1},listDayAltFormat:{weekday:'long'}// day-of-week is nice-to-have\n}}});exports.ListView=ListView;exports.default=main;Object.defineProperty(exports,'__esModule',{value:true});});/*!\r\nFullCalendar Time Grid Plugin v4.4.0\r\nDocs & License: https://fullcalendar.io/\r\n(c) 2019 Adam Shaw\r\n*/(function(global,factory){ true?factory(exports,__webpack_require__(Object(function webpackMissingModule() { var e = new Error(\"Cannot find module '@fullcalendar/core'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())),__webpack_require__(Object(function webpackMissingModule() { var e = new Error(\"Cannot find module '@fullcalendar/daygrid'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))):0;})(this,function(exports,core,daygrid){'use strict';/*! *****************************************************************************\r\n    Copyright (c) Microsoft Corporation. All rights reserved.\r\n    Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n    this file except in compliance with the License. You may obtain a copy of the\r\n    License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n    MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n    See the Apache Version 2.0 License for specific language governing permissions\r\n    and limitations under the License.\r\n    ***************************************************************************** */ /* global Reflect, Promise */var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b;}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p];};return extendStatics(d,b);};function __extends(d,b){extendStatics(d,b);function __(){this.constructor=d;}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __());}var __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}return t;};return __assign.apply(this,arguments);};/*\r\n    Only handles foreground segs.\r\n    Does not own rendering. Use for low-level util methods by TimeGrid.\r\n    */var TimeGridEventRenderer=/** @class */function(_super){__extends(TimeGridEventRenderer,_super);function TimeGridEventRenderer(timeGrid){var _this=_super.call(this)||this;_this.timeGrid=timeGrid;return _this;}TimeGridEventRenderer.prototype.renderSegs=function(context,segs,mirrorInfo){_super.prototype.renderSegs.call(this,context,segs,mirrorInfo);// TODO: dont do every time. memoize\nthis.fullTimeFormat=core.createFormatter({hour:'numeric',minute:'2-digit',separator:this.context.options.defaultRangeSeparator});};// Given an array of foreground segments, render a DOM element for each, computes position,\n// and attaches to the column inner-container elements.\nTimeGridEventRenderer.prototype.attachSegs=function(segs,mirrorInfo){var segsByCol=this.timeGrid.groupSegsByCol(segs);// order the segs within each column\n// TODO: have groupSegsByCol do this?\nfor(var col=0;col<segsByCol.length;col++){segsByCol[col]=this.sortEventSegs(segsByCol[col]);}this.segsByCol=segsByCol;this.timeGrid.attachSegsByCol(segsByCol,this.timeGrid.fgContainerEls);};TimeGridEventRenderer.prototype.detachSegs=function(segs){segs.forEach(function(seg){core.removeElement(seg.el);});this.segsByCol=null;};TimeGridEventRenderer.prototype.computeSegSizes=function(allSegs){var _a=this,timeGrid=_a.timeGrid,segsByCol=_a.segsByCol;var colCnt=timeGrid.colCnt;timeGrid.computeSegVerticals(allSegs);// horizontals relies on this\nif(segsByCol){for(var col=0;col<colCnt;col++){this.computeSegHorizontals(segsByCol[col]);// compute horizontal coordinates, z-index's, and reorder the array\n}}};TimeGridEventRenderer.prototype.assignSegSizes=function(allSegs){var _a=this,timeGrid=_a.timeGrid,segsByCol=_a.segsByCol;var colCnt=timeGrid.colCnt;timeGrid.assignSegVerticals(allSegs);// horizontals relies on this\nif(segsByCol){for(var col=0;col<colCnt;col++){this.assignSegCss(segsByCol[col]);}}};// Computes a default event time formatting string if `eventTimeFormat` is not explicitly defined\nTimeGridEventRenderer.prototype.computeEventTimeFormat=function(){return{hour:'numeric',minute:'2-digit',meridiem:false};};// Computes a default `displayEventEnd` value if one is not expliclty defined\nTimeGridEventRenderer.prototype.computeDisplayEventEnd=function(){return true;};// Renders the HTML for a single event segment's default rendering\nTimeGridEventRenderer.prototype.renderSegHtml=function(seg,mirrorInfo){var eventRange=seg.eventRange;var eventDef=eventRange.def;var eventUi=eventRange.ui;var allDay=eventDef.allDay;var isDraggable=core.computeEventDraggable(this.context,eventDef,eventUi);var isResizableFromStart=seg.isStart&&core.computeEventStartResizable(this.context,eventDef,eventUi);var isResizableFromEnd=seg.isEnd&&core.computeEventEndResizable(this.context,eventDef,eventUi);var classes=this.getSegClasses(seg,isDraggable,isResizableFromStart||isResizableFromEnd,mirrorInfo);var skinCss=core.cssToStr(this.getSkinCss(eventUi));var timeText;var fullTimeText;// more verbose time text. for the print stylesheet\nvar startTimeText;// just the start time text\nclasses.unshift('fc-time-grid-event');// if the event appears to span more than one day...\nif(core.isMultiDayRange(eventRange.range)){// Don't display time text on segments that run entirely through a day.\n// That would appear as midnight-midnight and would look dumb.\n// Otherwise, display the time text for the *segment's* times (like 6pm-midnight or midnight-10am)\nif(seg.isStart||seg.isEnd){var unzonedStart=seg.start;var unzonedEnd=seg.end;timeText=this._getTimeText(unzonedStart,unzonedEnd,allDay);// TODO: give the timezones\nfullTimeText=this._getTimeText(unzonedStart,unzonedEnd,allDay,this.fullTimeFormat);startTimeText=this._getTimeText(unzonedStart,unzonedEnd,allDay,null,false);// displayEnd=false\n}}else{// Display the normal time text for the *event's* times\ntimeText=this.getTimeText(eventRange);fullTimeText=this.getTimeText(eventRange,this.fullTimeFormat);startTimeText=this.getTimeText(eventRange,null,false);// displayEnd=false\n}return'<a class=\"'+classes.join(' ')+'\"'+(eventDef.url?' href=\"'+core.htmlEscape(eventDef.url)+'\"':'')+(skinCss?' style=\"'+skinCss+'\"':'')+'>'+'<div class=\"fc-content\">'+(timeText?'<div class=\"fc-time\"'+' data-start=\"'+core.htmlEscape(startTimeText)+'\"'+' data-full=\"'+core.htmlEscape(fullTimeText)+'\"'+'>'+'<span>'+core.htmlEscape(timeText)+'</span>'+'</div>':'')+(eventDef.title?'<div class=\"fc-title\">'+core.htmlEscape(eventDef.title)+'</div>':'')+'</div>'+(/* TODO: write CSS for this\r\n                (isResizableFromStart ?\r\n                  '<div class=\"fc-resizer fc-start-resizer\"></div>' :\r\n                  ''\r\n                  ) +\r\n                */isResizableFromEnd?'<div class=\"fc-resizer fc-end-resizer\"></div>':'')+'</a>';};// Given an array of segments that are all in the same column, sets the backwardCoord and forwardCoord on each.\n// Assumed the segs are already ordered.\n// NOTE: Also reorders the given array by date!\nTimeGridEventRenderer.prototype.computeSegHorizontals=function(segs){var levels;var level0;var i;levels=buildSlotSegLevels(segs);computeForwardSlotSegs(levels);if(level0=levels[0]){for(i=0;i<level0.length;i++){computeSlotSegPressures(level0[i]);}for(i=0;i<level0.length;i++){this.computeSegForwardBack(level0[i],0,0);}}};// Calculate seg.forwardCoord and seg.backwardCoord for the segment, where both values range\n// from 0 to 1. If the calendar is left-to-right, the seg.backwardCoord maps to \"left\" and\n// seg.forwardCoord maps to \"right\" (via percentage). Vice-versa if the calendar is right-to-left.\n//\n// The segment might be part of a \"series\", which means consecutive segments with the same pressure\n// who's width is unknown until an edge has been hit. `seriesBackwardPressure` is the number of\n// segments behind this one in the current series, and `seriesBackwardCoord` is the starting\n// coordinate of the first segment in the series.\nTimeGridEventRenderer.prototype.computeSegForwardBack=function(seg,seriesBackwardPressure,seriesBackwardCoord){var forwardSegs=seg.forwardSegs;var i;if(seg.forwardCoord===undefined){// not already computed\nif(!forwardSegs.length){// if there are no forward segments, this segment should butt up against the edge\nseg.forwardCoord=1;}else{// sort highest pressure first\nthis.sortForwardSegs(forwardSegs);// this segment's forwardCoord will be calculated from the backwardCoord of the\n// highest-pressure forward segment.\nthis.computeSegForwardBack(forwardSegs[0],seriesBackwardPressure+1,seriesBackwardCoord);seg.forwardCoord=forwardSegs[0].backwardCoord;}// calculate the backwardCoord from the forwardCoord. consider the series\nseg.backwardCoord=seg.forwardCoord-(seg.forwardCoord-seriesBackwardCoord)/(// available width for series\nseriesBackwardPressure+1);// # of segments in the series\n// use this segment's coordinates to computed the coordinates of the less-pressurized\n// forward segments\nfor(i=0;i<forwardSegs.length;i++){this.computeSegForwardBack(forwardSegs[i],0,seg.forwardCoord);}}};TimeGridEventRenderer.prototype.sortForwardSegs=function(forwardSegs){var objs=forwardSegs.map(buildTimeGridSegCompareObj);var specs=[// put higher-pressure first\n{field:'forwardPressure',order:-1},// put segments that are closer to initial edge first (and favor ones with no coords yet)\n{field:'backwardCoord',order:1}].concat(this.context.eventOrderSpecs);objs.sort(function(obj0,obj1){return core.compareByFieldSpecs(obj0,obj1,specs);});return objs.map(function(c){return c._seg;});};// Given foreground event segments that have already had their position coordinates computed,\n// assigns position-related CSS values to their elements.\nTimeGridEventRenderer.prototype.assignSegCss=function(segs){for(var _i=0,segs_1=segs;_i<segs_1.length;_i++){var seg=segs_1[_i];core.applyStyle(seg.el,this.generateSegCss(seg));if(seg.level>0){seg.el.classList.add('fc-time-grid-event-inset');}// if the event is short that the title will be cut off,\n// attach a className that condenses the title into the time area.\nif(seg.eventRange.def.title&&seg.bottom-seg.top<30){seg.el.classList.add('fc-short');// TODO: \"condensed\" is a better name\n}}};// Generates an object with CSS properties/values that should be applied to an event segment element.\n// Contains important positioning-related properties that should be applied to any event element, customized or not.\nTimeGridEventRenderer.prototype.generateSegCss=function(seg){var shouldOverlap=this.context.options.slotEventOverlap;var backwardCoord=seg.backwardCoord;// the left side if LTR. the right side if RTL. floating-point\nvar forwardCoord=seg.forwardCoord;// the right side if LTR. the left side if RTL. floating-point\nvar props=this.timeGrid.generateSegVerticalCss(seg);// get top/bottom first\nvar isRtl=this.context.isRtl;var left;// amount of space from left edge, a fraction of the total width\nvar right;// amount of space from right edge, a fraction of the total width\nif(shouldOverlap){// double the width, but don't go beyond the maximum forward coordinate (1.0)\nforwardCoord=Math.min(1,backwardCoord+(forwardCoord-backwardCoord)*2);}if(isRtl){left=1-forwardCoord;right=backwardCoord;}else{left=backwardCoord;right=1-forwardCoord;}props.zIndex=seg.level+1;// convert from 0-base to 1-based\nprops.left=left*100+'%';props.right=right*100+'%';if(shouldOverlap&&seg.forwardPressure){// add padding to the edge so that forward stacked events don't cover the resizer's icon\nprops[isRtl?'marginLeft':'marginRight']=10*2;// 10 is a guesstimate of the icon's width\n}return props;};return TimeGridEventRenderer;}(core.FgEventRenderer);// Builds an array of segments \"levels\". The first level will be the leftmost tier of segments if the calendar is\n// left-to-right, or the rightmost if the calendar is right-to-left. Assumes the segments are already ordered by date.\nfunction buildSlotSegLevels(segs){var levels=[];var i;var seg;var j;for(i=0;i<segs.length;i++){seg=segs[i];// go through all the levels and stop on the first level where there are no collisions\nfor(j=0;j<levels.length;j++){if(!computeSlotSegCollisions(seg,levels[j]).length){break;}}seg.level=j;(levels[j]||(levels[j]=[])).push(seg);}return levels;}// For every segment, figure out the other segments that are in subsequent\n// levels that also occupy the same vertical space. Accumulate in seg.forwardSegs\nfunction computeForwardSlotSegs(levels){var i;var level;var j;var seg;var k;for(i=0;i<levels.length;i++){level=levels[i];for(j=0;j<level.length;j++){seg=level[j];seg.forwardSegs=[];for(k=i+1;k<levels.length;k++){computeSlotSegCollisions(seg,levels[k],seg.forwardSegs);}}}}// Figure out which path forward (via seg.forwardSegs) results in the longest path until\n// the furthest edge is reached. The number of segments in this path will be seg.forwardPressure\nfunction computeSlotSegPressures(seg){var forwardSegs=seg.forwardSegs;var forwardPressure=0;var i;var forwardSeg;if(seg.forwardPressure===undefined){// not already computed\nfor(i=0;i<forwardSegs.length;i++){forwardSeg=forwardSegs[i];// figure out the child's maximum forward path\ncomputeSlotSegPressures(forwardSeg);// either use the existing maximum, or use the child's forward pressure\n// plus one (for the forwardSeg itself)\nforwardPressure=Math.max(forwardPressure,1+forwardSeg.forwardPressure);}seg.forwardPressure=forwardPressure;}}// Find all the segments in `otherSegs` that vertically collide with `seg`.\n// Append into an optionally-supplied `results` array and return.\nfunction computeSlotSegCollisions(seg,otherSegs,results){if(results===void 0){results=[];}for(var i=0;i<otherSegs.length;i++){if(isSlotSegCollision(seg,otherSegs[i])){results.push(otherSegs[i]);}}return results;}// Do these segments occupy the same vertical space?\nfunction isSlotSegCollision(seg1,seg2){return seg1.bottom>seg2.top&&seg1.top<seg2.bottom;}function buildTimeGridSegCompareObj(seg){var obj=core.buildSegCompareObj(seg);obj.forwardPressure=seg.forwardPressure;obj.backwardCoord=seg.backwardCoord;return obj;}var TimeGridMirrorRenderer=/** @class */function(_super){__extends(TimeGridMirrorRenderer,_super);function TimeGridMirrorRenderer(){return _super!==null&&_super.apply(this,arguments)||this;}TimeGridMirrorRenderer.prototype.attachSegs=function(segs,mirrorInfo){this.segsByCol=this.timeGrid.groupSegsByCol(segs);this.timeGrid.attachSegsByCol(this.segsByCol,this.timeGrid.mirrorContainerEls);this.sourceSeg=mirrorInfo.sourceSeg;};TimeGridMirrorRenderer.prototype.generateSegCss=function(seg){var props=_super.prototype.generateSegCss.call(this,seg);var sourceSeg=this.sourceSeg;if(sourceSeg&&sourceSeg.col===seg.col){var sourceSegProps=_super.prototype.generateSegCss.call(this,sourceSeg);props.left=sourceSegProps.left;props.right=sourceSegProps.right;props.marginLeft=sourceSegProps.marginLeft;props.marginRight=sourceSegProps.marginRight;}return props;};return TimeGridMirrorRenderer;}(TimeGridEventRenderer);var TimeGridFillRenderer=/** @class */function(_super){__extends(TimeGridFillRenderer,_super);function TimeGridFillRenderer(timeGrid){var _this=_super.call(this)||this;_this.timeGrid=timeGrid;return _this;}TimeGridFillRenderer.prototype.attachSegs=function(type,segs){var timeGrid=this.timeGrid;var containerEls;// TODO: more efficient lookup\nif(type==='bgEvent'){containerEls=timeGrid.bgContainerEls;}else if(type==='businessHours'){containerEls=timeGrid.businessContainerEls;}else if(type==='highlight'){containerEls=timeGrid.highlightContainerEls;}timeGrid.attachSegsByCol(timeGrid.groupSegsByCol(segs),containerEls);return segs.map(function(seg){return seg.el;});};TimeGridFillRenderer.prototype.computeSegSizes=function(segs){this.timeGrid.computeSegVerticals(segs);};TimeGridFillRenderer.prototype.assignSegSizes=function(segs){this.timeGrid.assignSegVerticals(segs);};return TimeGridFillRenderer;}(core.FillRenderer);/* A component that renders one or more columns of vertical time slots\r\n    ----------------------------------------------------------------------------------------------------------------------*/ // potential nice values for the slot-duration and interval-duration\n// from largest to smallest\nvar AGENDA_STOCK_SUB_DURATIONS=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];var TimeGrid=/** @class */function(_super){__extends(TimeGrid,_super);function TimeGrid(el,renderProps){var _this=_super.call(this,el)||this;_this.isSlatSizesDirty=false;_this.isColSizesDirty=false;_this.processOptions=core.memoize(_this._processOptions);_this.renderSkeleton=core.memoizeRendering(_this._renderSkeleton);_this.renderSlats=core.memoizeRendering(_this._renderSlats,null,[_this.renderSkeleton]);_this.renderColumns=core.memoizeRendering(_this._renderColumns,_this._unrenderColumns,[_this.renderSkeleton]);_this.renderProps=renderProps;var renderColumns=_this.renderColumns;var eventRenderer=_this.eventRenderer=new TimeGridEventRenderer(_this);var fillRenderer=_this.fillRenderer=new TimeGridFillRenderer(_this);_this.mirrorRenderer=new TimeGridMirrorRenderer(_this);_this.renderBusinessHours=core.memoizeRendering(fillRenderer.renderSegs.bind(fillRenderer,'businessHours'),fillRenderer.unrender.bind(fillRenderer,'businessHours'),[renderColumns]);_this.renderDateSelection=core.memoizeRendering(_this._renderDateSelection,_this._unrenderDateSelection,[renderColumns]);_this.renderFgEvents=core.memoizeRendering(eventRenderer.renderSegs.bind(eventRenderer),eventRenderer.unrender.bind(eventRenderer),[renderColumns]);_this.renderBgEvents=core.memoizeRendering(fillRenderer.renderSegs.bind(fillRenderer,'bgEvent'),fillRenderer.unrender.bind(fillRenderer,'bgEvent'),[renderColumns]);_this.renderEventSelection=core.memoizeRendering(eventRenderer.selectByInstanceId.bind(eventRenderer),eventRenderer.unselectByInstanceId.bind(eventRenderer),[_this.renderFgEvents]);_this.renderEventDrag=core.memoizeRendering(_this._renderEventDrag,_this._unrenderEventDrag,[renderColumns]);_this.renderEventResize=core.memoizeRendering(_this._renderEventResize,_this._unrenderEventResize,[renderColumns]);return _this;}/* Options\r\n        ------------------------------------------------------------------------------------------------------------------*/ // Parses various options into properties of this object\n// MUST have context already set\nTimeGrid.prototype._processOptions=function(options){var slotDuration=options.slotDuration,snapDuration=options.snapDuration;var snapsPerSlot;var input;slotDuration=core.createDuration(slotDuration);snapDuration=snapDuration?core.createDuration(snapDuration):slotDuration;snapsPerSlot=core.wholeDivideDurations(slotDuration,snapDuration);if(snapsPerSlot===null){snapDuration=slotDuration;snapsPerSlot=1;// TODO: say warning?\n}this.slotDuration=slotDuration;this.snapDuration=snapDuration;this.snapsPerSlot=snapsPerSlot;// might be an array value (for TimelineView).\n// if so, getting the most granular entry (the last one probably).\ninput=options.slotLabelFormat;if(Array.isArray(input)){input=input[input.length-1];}this.labelFormat=core.createFormatter(input||{hour:'numeric',minute:'2-digit',omitZeroMinute:true,meridiem:'short'});input=options.slotLabelInterval;this.labelInterval=input?core.createDuration(input):this.computeLabelInterval(slotDuration);};// Computes an automatic value for slotLabelInterval\nTimeGrid.prototype.computeLabelInterval=function(slotDuration){var i;var labelInterval;var slotsPerLabel;// find the smallest stock label interval that results in more than one slots-per-label\nfor(i=AGENDA_STOCK_SUB_DURATIONS.length-1;i>=0;i--){labelInterval=core.createDuration(AGENDA_STOCK_SUB_DURATIONS[i]);slotsPerLabel=core.wholeDivideDurations(labelInterval,slotDuration);if(slotsPerLabel!==null&&slotsPerLabel>1){return labelInterval;}}return slotDuration;// fall back\n};/* Rendering\r\n        ------------------------------------------------------------------------------------------------------------------*/TimeGrid.prototype.render=function(props,context){this.processOptions(context.options);var cells=props.cells;this.colCnt=cells.length;this.renderSkeleton(context.theme);this.renderSlats(props.dateProfile);this.renderColumns(props.cells,props.dateProfile);this.renderBusinessHours(context,props.businessHourSegs);this.renderDateSelection(props.dateSelectionSegs);this.renderFgEvents(context,props.fgEventSegs);this.renderBgEvents(context,props.bgEventSegs);this.renderEventSelection(props.eventSelection);this.renderEventDrag(props.eventDrag);this.renderEventResize(props.eventResize);};TimeGrid.prototype.destroy=function(){_super.prototype.destroy.call(this);// should unrender everything else too\nthis.renderSlats.unrender();this.renderColumns.unrender();this.renderSkeleton.unrender();};TimeGrid.prototype.updateSize=function(isResize){var _a=this,fillRenderer=_a.fillRenderer,eventRenderer=_a.eventRenderer,mirrorRenderer=_a.mirrorRenderer;if(isResize||this.isSlatSizesDirty){this.buildSlatPositions();this.isSlatSizesDirty=false;}if(isResize||this.isColSizesDirty){this.buildColPositions();this.isColSizesDirty=false;}fillRenderer.computeSizes(isResize);eventRenderer.computeSizes(isResize);mirrorRenderer.computeSizes(isResize);fillRenderer.assignSizes(isResize);eventRenderer.assignSizes(isResize);mirrorRenderer.assignSizes(isResize);};TimeGrid.prototype._renderSkeleton=function(theme){var el=this.el;el.innerHTML='<div class=\"fc-bg\"></div>'+'<div class=\"fc-slats\"></div>'+'<hr class=\"fc-divider '+theme.getClass('widgetHeader')+'\" style=\"display:none\" />';this.rootBgContainerEl=el.querySelector('.fc-bg');this.slatContainerEl=el.querySelector('.fc-slats');this.bottomRuleEl=el.querySelector('.fc-divider');};TimeGrid.prototype._renderSlats=function(dateProfile){var theme=this.context.theme;this.slatContainerEl.innerHTML='<table class=\"'+theme.getClass('tableGrid')+'\">'+this.renderSlatRowHtml(dateProfile)+'</table>';this.slatEls=core.findElements(this.slatContainerEl,'tr');this.slatPositions=new core.PositionCache(this.el,this.slatEls,false,true// vertical\n);this.isSlatSizesDirty=true;};// Generates the HTML for the horizontal \"slats\" that run width-wise. Has a time axis on a side. Depends on RTL.\nTimeGrid.prototype.renderSlatRowHtml=function(dateProfile){var _a=this.context,dateEnv=_a.dateEnv,theme=_a.theme,isRtl=_a.isRtl;var html='';var dayStart=core.startOfDay(dateProfile.renderRange.start);var slotTime=dateProfile.minTime;var slotIterator=core.createDuration(0);var slotDate;// will be on the view's first day, but we only care about its time\nvar isLabeled;var axisHtml;// Calculate the time for each slot\nwhile(core.asRoughMs(slotTime)<core.asRoughMs(dateProfile.maxTime)){slotDate=dateEnv.add(dayStart,slotTime);isLabeled=core.wholeDivideDurations(slotIterator,this.labelInterval)!==null;axisHtml='<td class=\"fc-axis fc-time '+theme.getClass('widgetContent')+'\">'+(isLabeled?'<span>'+// for matchCellWidths\ncore.htmlEscape(dateEnv.format(slotDate,this.labelFormat))+'</span>':'')+'</td>';html+='<tr data-time=\"'+core.formatIsoTimeString(slotDate)+'\"'+(isLabeled?'':' class=\"fc-minor\"')+'>'+(!isRtl?axisHtml:'')+'<td class=\"'+theme.getClass('widgetContent')+'\"></td>'+(isRtl?axisHtml:'')+'</tr>';slotTime=core.addDurations(slotTime,this.slotDuration);slotIterator=core.addDurations(slotIterator,this.slotDuration);}return html;};TimeGrid.prototype._renderColumns=function(cells,dateProfile){var _a=this.context,calendar=_a.calendar,view=_a.view,isRtl=_a.isRtl,theme=_a.theme,dateEnv=_a.dateEnv;var bgRow=new daygrid.DayBgRow(this.context);this.rootBgContainerEl.innerHTML='<table class=\"'+theme.getClass('tableGrid')+'\">'+bgRow.renderHtml({cells:cells,dateProfile:dateProfile,renderIntroHtml:this.renderProps.renderBgIntroHtml})+'</table>';this.colEls=core.findElements(this.el,'.fc-day, .fc-disabled-day');for(var col=0;col<this.colCnt;col++){calendar.publiclyTrigger('dayRender',[{date:dateEnv.toDate(cells[col].date),el:this.colEls[col],view:view}]);}if(isRtl){this.colEls.reverse();}this.colPositions=new core.PositionCache(this.el,this.colEls,true,// horizontal\nfalse);this.renderContentSkeleton();this.isColSizesDirty=true;};TimeGrid.prototype._unrenderColumns=function(){this.unrenderContentSkeleton();};/* Content Skeleton\r\n        ------------------------------------------------------------------------------------------------------------------*/ // Renders the DOM that the view's content will live in\nTimeGrid.prototype.renderContentSkeleton=function(){var isRtl=this.context.isRtl;var parts=[];var skeletonEl;parts.push(this.renderProps.renderIntroHtml());for(var i=0;i<this.colCnt;i++){parts.push('<td>'+'<div class=\"fc-content-col\">'+'<div class=\"fc-event-container fc-mirror-container\"></div>'+'<div class=\"fc-event-container\"></div>'+'<div class=\"fc-highlight-container\"></div>'+'<div class=\"fc-bgevent-container\"></div>'+'<div class=\"fc-business-container\"></div>'+'</div>'+'</td>');}if(isRtl){parts.reverse();}skeletonEl=this.contentSkeletonEl=core.htmlToElement('<div class=\"fc-content-skeleton\">'+'<table>'+'<tr>'+parts.join('')+'</tr>'+'</table>'+'</div>');this.colContainerEls=core.findElements(skeletonEl,'.fc-content-col');this.mirrorContainerEls=core.findElements(skeletonEl,'.fc-mirror-container');this.fgContainerEls=core.findElements(skeletonEl,'.fc-event-container:not(.fc-mirror-container)');this.bgContainerEls=core.findElements(skeletonEl,'.fc-bgevent-container');this.highlightContainerEls=core.findElements(skeletonEl,'.fc-highlight-container');this.businessContainerEls=core.findElements(skeletonEl,'.fc-business-container');if(isRtl){this.colContainerEls.reverse();this.mirrorContainerEls.reverse();this.fgContainerEls.reverse();this.bgContainerEls.reverse();this.highlightContainerEls.reverse();this.businessContainerEls.reverse();}this.el.appendChild(skeletonEl);};TimeGrid.prototype.unrenderContentSkeleton=function(){core.removeElement(this.contentSkeletonEl);};// Given a flat array of segments, return an array of sub-arrays, grouped by each segment's col\nTimeGrid.prototype.groupSegsByCol=function(segs){var segsByCol=[];var i;for(i=0;i<this.colCnt;i++){segsByCol.push([]);}for(i=0;i<segs.length;i++){segsByCol[segs[i].col].push(segs[i]);}return segsByCol;};// Given segments grouped by column, insert the segments' elements into a parallel array of container\n// elements, each living within a column.\nTimeGrid.prototype.attachSegsByCol=function(segsByCol,containerEls){var col;var segs;var i;for(col=0;col<this.colCnt;col++){// iterate each column grouping\nsegs=segsByCol[col];for(i=0;i<segs.length;i++){containerEls[col].appendChild(segs[i].el);}}};/* Now Indicator\r\n        ------------------------------------------------------------------------------------------------------------------*/TimeGrid.prototype.getNowIndicatorUnit=function(){return'minute';// will refresh on the minute\n};TimeGrid.prototype.renderNowIndicator=function(segs,date){// HACK: if date columns not ready for some reason (scheduler)\nif(!this.colContainerEls){return;}var top=this.computeDateTop(date);var nodes=[];var i;// render lines within the columns\nfor(i=0;i<segs.length;i++){var lineEl=core.createElement('div',{className:'fc-now-indicator fc-now-indicator-line'});lineEl.style.top=top+'px';this.colContainerEls[segs[i].col].appendChild(lineEl);nodes.push(lineEl);}// render an arrow over the axis\nif(segs.length>0){// is the current time in view?\nvar arrowEl=core.createElement('div',{className:'fc-now-indicator fc-now-indicator-arrow'});arrowEl.style.top=top+'px';this.contentSkeletonEl.appendChild(arrowEl);nodes.push(arrowEl);}this.nowIndicatorEls=nodes;};TimeGrid.prototype.unrenderNowIndicator=function(){if(this.nowIndicatorEls){this.nowIndicatorEls.forEach(core.removeElement);this.nowIndicatorEls=null;}};/* Coordinates\r\n        ------------------------------------------------------------------------------------------------------------------*/TimeGrid.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.getBoundingClientRect().height;};// Computes the top coordinate, relative to the bounds of the grid, of the given date.\n// A `startOfDayDate` must be given for avoiding ambiguity over how to treat midnight.\nTimeGrid.prototype.computeDateTop=function(when,startOfDayDate){if(!startOfDayDate){startOfDayDate=core.startOfDay(when);}return this.computeTimeTop(core.createDuration(when.valueOf()-startOfDayDate.valueOf()));};// Computes the top coordinate, relative to the bounds of the grid, of the given time (a Duration).\nTimeGrid.prototype.computeTimeTop=function(duration){var len=this.slatEls.length;var dateProfile=this.props.dateProfile;var slatCoverage=(duration.milliseconds-core.asRoughMs(dateProfile.minTime))/core.asRoughMs(this.slotDuration);// floating-point value of # of slots covered\nvar slatIndex;var slatRemainder;// compute a floating-point number for how many slats should be progressed through.\n// from 0 to number of slats (inclusive)\n// constrained because minTime/maxTime might be customized.\nslatCoverage=Math.max(0,slatCoverage);slatCoverage=Math.min(len,slatCoverage);// an integer index of the furthest whole slat\n// from 0 to number slats (*exclusive*, so len-1)\nslatIndex=Math.floor(slatCoverage);slatIndex=Math.min(slatIndex,len-1);// how much further through the slatIndex slat (from 0.0-1.0) must be covered in addition.\n// could be 1.0 if slatCoverage is covering *all* the slots\nslatRemainder=slatCoverage-slatIndex;return this.slatPositions.tops[slatIndex]+this.slatPositions.getHeight(slatIndex)*slatRemainder;};// For each segment in an array, computes and assigns its top and bottom properties\nTimeGrid.prototype.computeSegVerticals=function(segs){var options=this.context.options;var eventMinHeight=options.timeGridEventMinHeight;var i;var seg;var dayDate;for(i=0;i<segs.length;i++){seg=segs[i];dayDate=this.props.cells[seg.col].date;seg.top=this.computeDateTop(seg.start,dayDate);seg.bottom=Math.max(seg.top+eventMinHeight,this.computeDateTop(seg.end,dayDate));}};// Given segments that already have their top/bottom properties computed, applies those values to\n// the segments' elements.\nTimeGrid.prototype.assignSegVerticals=function(segs){var i;var seg;for(i=0;i<segs.length;i++){seg=segs[i];core.applyStyle(seg.el,this.generateSegVerticalCss(seg));}};// Generates an object with CSS properties for the top/bottom coordinates of a segment element\nTimeGrid.prototype.generateSegVerticalCss=function(seg){return{top:seg.top,bottom:-seg.bottom// flipped because needs to be space beyond bottom edge of event container\n};};/* Sizing\r\n        ------------------------------------------------------------------------------------------------------------------*/TimeGrid.prototype.buildPositionCaches=function(){this.buildColPositions();this.buildSlatPositions();};TimeGrid.prototype.buildColPositions=function(){this.colPositions.build();};TimeGrid.prototype.buildSlatPositions=function(){this.slatPositions.build();};/* Hit System\r\n        ------------------------------------------------------------------------------------------------------------------*/TimeGrid.prototype.positionToHit=function(positionLeft,positionTop){var dateEnv=this.context.dateEnv;var _a=this,snapsPerSlot=_a.snapsPerSlot,slatPositions=_a.slatPositions,colPositions=_a.colPositions;var colIndex=colPositions.leftToIndex(positionLeft);var slatIndex=slatPositions.topToIndex(positionTop);if(colIndex!=null&&slatIndex!=null){var slatTop=slatPositions.tops[slatIndex];var slatHeight=slatPositions.getHeight(slatIndex);var partial=(positionTop-slatTop)/slatHeight;// floating point number between 0 and 1\nvar localSnapIndex=Math.floor(partial*snapsPerSlot);// the snap # relative to start of slat\nvar snapIndex=slatIndex*snapsPerSlot+localSnapIndex;var dayDate=this.props.cells[colIndex].date;var time=core.addDurations(this.props.dateProfile.minTime,core.multiplyDuration(this.snapDuration,snapIndex));var start=dateEnv.add(dayDate,time);var end=dateEnv.add(start,this.snapDuration);return{col:colIndex,dateSpan:{range:{start:start,end:end},allDay:false},dayEl:this.colEls[colIndex],relativeRect:{left:colPositions.lefts[colIndex],right:colPositions.rights[colIndex],top:slatTop,bottom:slatTop+slatHeight}};}};/* Event Drag Visualization\r\n        ------------------------------------------------------------------------------------------------------------------*/TimeGrid.prototype._renderEventDrag=function(state){if(state){this.eventRenderer.hideByHash(state.affectedInstances);if(state.isEvent){this.mirrorRenderer.renderSegs(this.context,state.segs,{isDragging:true,sourceSeg:state.sourceSeg});}else{this.fillRenderer.renderSegs('highlight',this.context,state.segs);}}};TimeGrid.prototype._unrenderEventDrag=function(state){if(state){this.eventRenderer.showByHash(state.affectedInstances);if(state.isEvent){this.mirrorRenderer.unrender(this.context,state.segs,{isDragging:true,sourceSeg:state.sourceSeg});}else{this.fillRenderer.unrender('highlight',this.context);}}};/* Event Resize Visualization\r\n        ------------------------------------------------------------------------------------------------------------------*/TimeGrid.prototype._renderEventResize=function(state){if(state){this.eventRenderer.hideByHash(state.affectedInstances);this.mirrorRenderer.renderSegs(this.context,state.segs,{isResizing:true,sourceSeg:state.sourceSeg});}};TimeGrid.prototype._unrenderEventResize=function(state){if(state){this.eventRenderer.showByHash(state.affectedInstances);this.mirrorRenderer.unrender(this.context,state.segs,{isResizing:true,sourceSeg:state.sourceSeg});}};/* Selection\r\n        ------------------------------------------------------------------------------------------------------------------*/ // Renders a visual indication of a selection. Overrides the default, which was to simply render a highlight.\nTimeGrid.prototype._renderDateSelection=function(segs){if(segs){if(this.context.options.selectMirror){this.mirrorRenderer.renderSegs(this.context,segs,{isSelecting:true});}else{this.fillRenderer.renderSegs('highlight',this.context,segs);}}};TimeGrid.prototype._unrenderDateSelection=function(segs){if(segs){if(this.context.options.selectMirror){this.mirrorRenderer.unrender(this.context,segs,{isSelecting:true});}else{this.fillRenderer.unrender('highlight',this.context);}}};return TimeGrid;}(core.DateComponent);var AllDaySplitter=/** @class */function(_super){__extends(AllDaySplitter,_super);function AllDaySplitter(){return _super!==null&&_super.apply(this,arguments)||this;}AllDaySplitter.prototype.getKeyInfo=function(){return{allDay:{},timed:{}};};AllDaySplitter.prototype.getKeysForDateSpan=function(dateSpan){if(dateSpan.allDay){return['allDay'];}else{return['timed'];}};AllDaySplitter.prototype.getKeysForEventDef=function(eventDef){if(!eventDef.allDay){return['timed'];}else if(core.hasBgRendering(eventDef)){return['timed','allDay'];}else{return['allDay'];}};return AllDaySplitter;}(core.Splitter);var TIMEGRID_ALL_DAY_EVENT_LIMIT=5;var WEEK_HEADER_FORMAT=core.createFormatter({week:'short'});/* An abstract class for all timegrid-related views. Displays one more columns with time slots running vertically.\r\n    ----------------------------------------------------------------------------------------------------------------------*/ // Is a manager for the TimeGrid subcomponent and possibly the DayGrid subcomponent (if allDaySlot is on).\n// Responsible for managing width/height.\nvar AbstractTimeGridView=/** @class */function(_super){__extends(AbstractTimeGridView,_super);function AbstractTimeGridView(){var _this=_super!==null&&_super.apply(this,arguments)||this;_this.splitter=new AllDaySplitter();_this.renderSkeleton=core.memoizeRendering(_this._renderSkeleton,_this._unrenderSkeleton);/* Header Render Methods\r\n            ------------------------------------------------------------------------------------------------------------------*/ // Generates the HTML that will go before the day-of week header cells\n_this.renderHeadIntroHtml=function(){var _a=_this.context,theme=_a.theme,dateEnv=_a.dateEnv,options=_a.options;var range=_this.props.dateProfile.renderRange;var dayCnt=core.diffDays(range.start,range.end);var weekText;if(options.weekNumbers){weekText=dateEnv.format(range.start,WEEK_HEADER_FORMAT);return''+'<th class=\"fc-axis fc-week-number '+theme.getClass('widgetHeader')+'\" '+_this.axisStyleAttr()+'>'+core.buildGotoAnchorHtml(// aside from link, important for matchCellWidths\noptions,dateEnv,{date:range.start,type:'week',forceOff:dayCnt>1},core.htmlEscape(weekText)// inner HTML\n)+'</th>';}else{return'<th class=\"fc-axis '+theme.getClass('widgetHeader')+'\" '+_this.axisStyleAttr()+'></th>';}};/* Time Grid Render Methods\r\n            ------------------------------------------------------------------------------------------------------------------*/ // Generates the HTML that goes before the bg of the TimeGrid slot area. Long vertical column.\n_this.renderTimeGridBgIntroHtml=function(){var theme=_this.context.theme;return'<td class=\"fc-axis '+theme.getClass('widgetContent')+'\" '+_this.axisStyleAttr()+'></td>';};// Generates the HTML that goes before all other types of cells.\n// Affects content-skeleton, mirror-skeleton, highlight-skeleton for both the time-grid and day-grid.\n_this.renderTimeGridIntroHtml=function(){return'<td class=\"fc-axis\" '+_this.axisStyleAttr()+'></td>';};/* Day Grid Render Methods\r\n            ------------------------------------------------------------------------------------------------------------------*/ // Generates the HTML that goes before the all-day cells\n_this.renderDayGridBgIntroHtml=function(){var _a=_this.context,theme=_a.theme,options=_a.options;return''+'<td class=\"fc-axis '+theme.getClass('widgetContent')+'\" '+_this.axisStyleAttr()+'>'+'<span>'+// needed for matchCellWidths\ncore.getAllDayHtml(options)+'</span>'+'</td>';};// Generates the HTML that goes before all other types of cells.\n// Affects content-skeleton, mirror-skeleton, highlight-skeleton for both the time-grid and day-grid.\n_this.renderDayGridIntroHtml=function(){return'<td class=\"fc-axis\" '+_this.axisStyleAttr()+'></td>';};return _this;}AbstractTimeGridView.prototype.render=function(props,context){_super.prototype.render.call(this,props,context);this.renderSkeleton(context);};AbstractTimeGridView.prototype.destroy=function(){_super.prototype.destroy.call(this);this.renderSkeleton.unrender();};AbstractTimeGridView.prototype._renderSkeleton=function(context){this.el.classList.add('fc-timeGrid-view');this.el.innerHTML=this.renderSkeletonHtml();this.scroller=new core.ScrollComponent('hidden',// overflow x\n'auto'// overflow y\n);var timeGridWrapEl=this.scroller.el;this.el.querySelector('.fc-body > tr > td').appendChild(timeGridWrapEl);timeGridWrapEl.classList.add('fc-time-grid-container');var timeGridEl=core.createElement('div',{className:'fc-time-grid'});timeGridWrapEl.appendChild(timeGridEl);this.timeGrid=new TimeGrid(timeGridEl,{renderBgIntroHtml:this.renderTimeGridBgIntroHtml,renderIntroHtml:this.renderTimeGridIntroHtml});if(context.options.allDaySlot){// should we display the \"all-day\" area?\nthis.dayGrid=new daygrid.DayGrid(// the all-day subcomponent of this view\nthis.el.querySelector('.fc-day-grid'),{renderNumberIntroHtml:this.renderDayGridIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:false,cellWeekNumbersVisible:false});// have the day-grid extend it's coordinate area over the <hr> dividing the two grids\nvar dividerEl=this.el.querySelector('.fc-divider');this.dayGrid.bottomCoordPadding=dividerEl.getBoundingClientRect().height;}};AbstractTimeGridView.prototype._unrenderSkeleton=function(){this.el.classList.remove('fc-timeGrid-view');this.timeGrid.destroy();if(this.dayGrid){this.dayGrid.destroy();}this.scroller.destroy();};/* Rendering\r\n        ------------------------------------------------------------------------------------------------------------------*/ // Builds the HTML skeleton for the view.\n// The day-grid and time-grid components will render inside containers defined by this HTML.\nAbstractTimeGridView.prototype.renderSkeletonHtml=function(){var _a=this.context,theme=_a.theme,options=_a.options;return''+'<table class=\"'+theme.getClass('tableGrid')+'\">'+(options.columnHeader?'<thead class=\"fc-head\">'+'<tr>'+'<td class=\"fc-head-container '+theme.getClass('widgetHeader')+'\">&nbsp;</td>'+'</tr>'+'</thead>':'')+'<tbody class=\"fc-body\">'+'<tr>'+'<td class=\"'+theme.getClass('widgetContent')+'\">'+(options.allDaySlot?'<div class=\"fc-day-grid\"></div>'+'<hr class=\"fc-divider '+theme.getClass('widgetHeader')+'\" />':'')+'</td>'+'</tr>'+'</tbody>'+'</table>';};/* Now Indicator\r\n        ------------------------------------------------------------------------------------------------------------------*/AbstractTimeGridView.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit();};// subclasses should implement\n// renderNowIndicator(date: DateMarker) {\n// }\nAbstractTimeGridView.prototype.unrenderNowIndicator=function(){this.timeGrid.unrenderNowIndicator();};/* Dimensions\r\n        ------------------------------------------------------------------------------------------------------------------*/AbstractTimeGridView.prototype.updateSize=function(isResize,viewHeight,isAuto){_super.prototype.updateSize.call(this,isResize,viewHeight,isAuto);// will call updateBaseSize. important that executes first\nthis.timeGrid.updateSize(isResize);if(this.dayGrid){this.dayGrid.updateSize(isResize);}};// Adjusts the vertical dimensions of the view to the specified values\nAbstractTimeGridView.prototype.updateBaseSize=function(isResize,viewHeight,isAuto){var _this=this;var eventLimit;var scrollerHeight;var scrollbarWidths;// make all axis cells line up\nthis.axisWidth=core.matchCellWidths(core.findElements(this.el,'.fc-axis'));// hack to give the view some height prior to timeGrid's columns being rendered\n// TODO: separate setting height from scroller VS timeGrid.\nif(!this.timeGrid.colEls){if(!isAuto){scrollerHeight=this.computeScrollerHeight(viewHeight);this.scroller.setHeight(scrollerHeight);}return;}// set of fake row elements that must compensate when scroller has scrollbars\nvar noScrollRowEls=core.findElements(this.el,'.fc-row').filter(function(node){return!_this.scroller.el.contains(node);});// reset all dimensions back to the original state\nthis.timeGrid.bottomRuleEl.style.display='none';// will be shown later if this <hr> is necessary\nthis.scroller.clear();// sets height to 'auto' and clears overflow\nnoScrollRowEls.forEach(core.uncompensateScroll);// limit number of events in the all-day area\nif(this.dayGrid){this.dayGrid.removeSegPopover();// kill the \"more\" popover if displayed\neventLimit=this.context.options.eventLimit;if(eventLimit&&typeof eventLimit!=='number'){eventLimit=TIMEGRID_ALL_DAY_EVENT_LIMIT;// make sure \"auto\" goes to a real number\n}if(eventLimit){this.dayGrid.limitRows(eventLimit);}}if(!isAuto){// should we force dimensions of the scroll container?\nscrollerHeight=this.computeScrollerHeight(viewHeight);this.scroller.setHeight(scrollerHeight);scrollbarWidths=this.scroller.getScrollbarWidths();if(scrollbarWidths.left||scrollbarWidths.right){// using scrollbars?\n// make the all-day and header rows lines up\nnoScrollRowEls.forEach(function(rowEl){core.compensateScroll(rowEl,scrollbarWidths);});// the scrollbar compensation might have changed text flow, which might affect height, so recalculate\n// and reapply the desired height to the scroller.\nscrollerHeight=this.computeScrollerHeight(viewHeight);this.scroller.setHeight(scrollerHeight);}// guarantees the same scrollbar widths\nthis.scroller.lockOverflow(scrollbarWidths);// if there's any space below the slats, show the horizontal rule.\n// this won't cause any new overflow, because lockOverflow already called.\nif(this.timeGrid.getTotalSlatHeight()<scrollerHeight){this.timeGrid.bottomRuleEl.style.display='';}}};// given a desired total height of the view, returns what the height of the scroller should be\nAbstractTimeGridView.prototype.computeScrollerHeight=function(viewHeight){return viewHeight-core.subtractInnerElHeight(this.el,this.scroller.el);// everything that's NOT the scroller\n};/* Scroll\r\n        ------------------------------------------------------------------------------------------------------------------*/ // Computes the initial pre-configured scroll state prior to allowing the user to change it\nAbstractTimeGridView.prototype.computeDateScroll=function(duration){var top=this.timeGrid.computeTimeTop(duration);// zoom can give weird floating-point values. rather scroll a little bit further\ntop=Math.ceil(top);if(top){top++;// to overcome top border that slots beyond the first have. looks better\n}return{top:top};};AbstractTimeGridView.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()};};AbstractTimeGridView.prototype.applyDateScroll=function(scroll){if(scroll.top!==undefined){this.scroller.setScrollTop(scroll.top);}};// Generates an HTML attribute string for setting the width of the axis, if it is known\nAbstractTimeGridView.prototype.axisStyleAttr=function(){if(this.axisWidth!=null){return'style=\"width:'+this.axisWidth+'px\"';}return'';};return AbstractTimeGridView;}(core.View);AbstractTimeGridView.prototype.usesMinMaxTime=true;// indicates that minTime/maxTime affects rendering\nvar SimpleTimeGrid=/** @class */function(_super){__extends(SimpleTimeGrid,_super);function SimpleTimeGrid(timeGrid){var _this=_super.call(this,timeGrid.el)||this;_this.buildDayRanges=core.memoize(buildDayRanges);_this.slicer=new TimeGridSlicer();_this.timeGrid=timeGrid;return _this;}SimpleTimeGrid.prototype.firstContext=function(context){context.calendar.registerInteractiveComponent(this,{el:this.timeGrid.el});};SimpleTimeGrid.prototype.destroy=function(){_super.prototype.destroy.call(this);this.context.calendar.unregisterInteractiveComponent(this);};SimpleTimeGrid.prototype.render=function(props,context){var dateEnv=this.context.dateEnv;var dateProfile=props.dateProfile,dayTable=props.dayTable;var dayRanges=this.dayRanges=this.buildDayRanges(dayTable,dateProfile,dateEnv);this.timeGrid.receiveProps(__assign({},this.slicer.sliceProps(props,dateProfile,null,context.calendar,this.timeGrid,dayRanges),{dateProfile:dateProfile,cells:dayTable.cells[0]}),context);};SimpleTimeGrid.prototype.renderNowIndicator=function(date){this.timeGrid.renderNowIndicator(this.slicer.sliceNowDate(date,this.timeGrid,this.dayRanges),date);};SimpleTimeGrid.prototype.buildPositionCaches=function(){this.timeGrid.buildPositionCaches();};SimpleTimeGrid.prototype.queryHit=function(positionLeft,positionTop){var rawHit=this.timeGrid.positionToHit(positionLeft,positionTop);if(rawHit){return{component:this.timeGrid,dateSpan:rawHit.dateSpan,dayEl:rawHit.dayEl,rect:{left:rawHit.relativeRect.left,right:rawHit.relativeRect.right,top:rawHit.relativeRect.top,bottom:rawHit.relativeRect.bottom},layer:0};}};return SimpleTimeGrid;}(core.DateComponent);function buildDayRanges(dayTable,dateProfile,dateEnv){var ranges=[];for(var _i=0,_a=dayTable.headerDates;_i<_a.length;_i++){var date=_a[_i];ranges.push({start:dateEnv.add(date,dateProfile.minTime),end:dateEnv.add(date,dateProfile.maxTime)});}return ranges;}var TimeGridSlicer=/** @class */function(_super){__extends(TimeGridSlicer,_super);function TimeGridSlicer(){return _super!==null&&_super.apply(this,arguments)||this;}TimeGridSlicer.prototype.sliceRange=function(range,dayRanges){var segs=[];for(var col=0;col<dayRanges.length;col++){var segRange=core.intersectRanges(range,dayRanges[col]);if(segRange){segs.push({start:segRange.start,end:segRange.end,isStart:segRange.start.valueOf()===range.start.valueOf(),isEnd:segRange.end.valueOf()===range.end.valueOf(),col:col});}}return segs;};return TimeGridSlicer;}(core.Slicer);var TimeGridView=/** @class */function(_super){__extends(TimeGridView,_super);function TimeGridView(){var _this=_super!==null&&_super.apply(this,arguments)||this;_this.buildDayTable=core.memoize(buildDayTable);return _this;}TimeGridView.prototype.render=function(props,context){_super.prototype.render.call(this,props,context);// for flags for updateSize. also _renderSkeleton/_unrenderSkeleton\nvar _a=this.props,dateProfile=_a.dateProfile,dateProfileGenerator=_a.dateProfileGenerator;var nextDayThreshold=context.nextDayThreshold;var dayTable=this.buildDayTable(dateProfile,dateProfileGenerator);var splitProps=this.splitter.splitProps(props);if(this.header){this.header.receiveProps({dateProfile:dateProfile,dates:dayTable.headerDates,datesRepDistinctDays:true,renderIntroHtml:this.renderHeadIntroHtml},context);}this.simpleTimeGrid.receiveProps(__assign({},splitProps['timed'],{dateProfile:dateProfile,dayTable:dayTable}),context);if(this.simpleDayGrid){this.simpleDayGrid.receiveProps(__assign({},splitProps['allDay'],{dateProfile:dateProfile,dayTable:dayTable,nextDayThreshold:nextDayThreshold,isRigid:false}),context);}this.startNowIndicator(dateProfile,dateProfileGenerator);};TimeGridView.prototype._renderSkeleton=function(context){_super.prototype._renderSkeleton.call(this,context);if(context.options.columnHeader){this.header=new core.DayHeader(this.el.querySelector('.fc-head-container'));}this.simpleTimeGrid=new SimpleTimeGrid(this.timeGrid);if(this.dayGrid){this.simpleDayGrid=new daygrid.SimpleDayGrid(this.dayGrid);}};TimeGridView.prototype._unrenderSkeleton=function(){_super.prototype._unrenderSkeleton.call(this);if(this.header){this.header.destroy();}this.simpleTimeGrid.destroy();if(this.simpleDayGrid){this.simpleDayGrid.destroy();}};TimeGridView.prototype.renderNowIndicator=function(date){this.simpleTimeGrid.renderNowIndicator(date);};return TimeGridView;}(AbstractTimeGridView);function buildDayTable(dateProfile,dateProfileGenerator){var daySeries=new core.DaySeries(dateProfile.renderRange,dateProfileGenerator);return new core.DayTable(daySeries,false);}var main=core.createPlugin({defaultView:'timeGridWeek',views:{timeGrid:{class:TimeGridView,allDaySlot:true,slotDuration:'00:30:00',slotEventOverlap:true// a bad name. confused with overlap/constraint system\n},timeGridDay:{type:'timeGrid',duration:{days:1}},timeGridWeek:{type:'timeGrid',duration:{weeks:1}}}});exports.AbstractTimeGridView=AbstractTimeGridView;exports.TimeGrid=TimeGrid;exports.TimeGridSlicer=TimeGridSlicer;exports.TimeGridView=TimeGridView;exports.buildDayRanges=buildDayRanges;exports.buildDayTable=buildDayTable;exports.default=main;Object.defineProperty(exports,'__esModule',{value:true});});/*!\r\nFullCalendar Interaction Plugin v4.4.0\r\nDocs & License: https://fullcalendar.io/\r\n(c) 2019 Adam Shaw\r\n*/(function(global,factory){ true?factory(exports,__webpack_require__(Object(function webpackMissingModule() { var e = new Error(\"Cannot find module '@fullcalendar/core'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))):0;})(this,function(exports,core){'use strict';/*! *****************************************************************************\r\n    Copyright (c) Microsoft Corporation. All rights reserved.\r\n    Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n    this file except in compliance with the License. You may obtain a copy of the\r\n    License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n    MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n    See the Apache Version 2.0 License for specific language governing permissions\r\n    and limitations under the License.\r\n    ***************************************************************************** */ /* global Reflect, Promise */var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b;}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p];};return extendStatics(d,b);};function __extends(d,b){extendStatics(d,b);function __(){this.constructor=d;}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __());}var __assign=function(){__assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}return t;};return __assign.apply(this,arguments);};core.config.touchMouseIgnoreWait=500;var ignoreMouseDepth=0;var listenerCnt=0;var isWindowTouchMoveCancelled=false;/*\r\n    Uses a \"pointer\" abstraction, which monitors UI events for both mouse and touch.\r\n    Tracks when the pointer \"drags\" on a certain element, meaning down+move+up.\r\n\r\n    Also, tracks if there was touch-scrolling.\r\n    Also, can prevent touch-scrolling from happening.\r\n    Also, can fire pointermove events when scrolling happens underneath, even when no real pointer movement.\r\n\r\n    emits:\r\n    - pointerdown\r\n    - pointermove\r\n    - pointerup\r\n    */var PointerDragging=/** @class */function(){function PointerDragging(containerEl){var _this=this;this.subjectEl=null;this.downEl=null;// options that can be directly assigned by caller\nthis.selector='';// will cause subjectEl in all emitted events to be this element\nthis.handleSelector='';this.shouldIgnoreMove=false;this.shouldWatchScroll=true;// for simulating pointermove on scroll\n// internal states\nthis.isDragging=false;this.isTouchDragging=false;this.wasTouchScroll=false;// Mouse\n// ----------------------------------------------------------------------------------------------------\nthis.handleMouseDown=function(ev){if(!_this.shouldIgnoreMouse()&&isPrimaryMouseButton(ev)&&_this.tryStart(ev)){var pev=_this.createEventFromMouse(ev,true);_this.emitter.trigger('pointerdown',pev);_this.initScrollWatch(pev);if(!_this.shouldIgnoreMove){document.addEventListener('mousemove',_this.handleMouseMove);}document.addEventListener('mouseup',_this.handleMouseUp);}};this.handleMouseMove=function(ev){var pev=_this.createEventFromMouse(ev);_this.recordCoords(pev);_this.emitter.trigger('pointermove',pev);};this.handleMouseUp=function(ev){document.removeEventListener('mousemove',_this.handleMouseMove);document.removeEventListener('mouseup',_this.handleMouseUp);_this.emitter.trigger('pointerup',_this.createEventFromMouse(ev));_this.cleanup();// call last so that pointerup has access to props\n};// Touch\n// ----------------------------------------------------------------------------------------------------\nthis.handleTouchStart=function(ev){if(_this.tryStart(ev)){_this.isTouchDragging=true;var pev=_this.createEventFromTouch(ev,true);_this.emitter.trigger('pointerdown',pev);_this.initScrollWatch(pev);// unlike mouse, need to attach to target, not document\n// https://stackoverflow.com/a/45760014\nvar target=ev.target;if(!_this.shouldIgnoreMove){target.addEventListener('touchmove',_this.handleTouchMove);}target.addEventListener('touchend',_this.handleTouchEnd);target.addEventListener('touchcancel',_this.handleTouchEnd);// treat it as a touch end\n// attach a handler to get called when ANY scroll action happens on the page.\n// this was impossible to do with normal on/off because 'scroll' doesn't bubble.\n// http://stackoverflow.com/a/32954565/96342\nwindow.addEventListener('scroll',_this.handleTouchScroll,true// useCapture\n);}};this.handleTouchMove=function(ev){var pev=_this.createEventFromTouch(ev);_this.recordCoords(pev);_this.emitter.trigger('pointermove',pev);};this.handleTouchEnd=function(ev){if(_this.isDragging){// done to guard against touchend followed by touchcancel\nvar target=ev.target;target.removeEventListener('touchmove',_this.handleTouchMove);target.removeEventListener('touchend',_this.handleTouchEnd);target.removeEventListener('touchcancel',_this.handleTouchEnd);window.removeEventListener('scroll',_this.handleTouchScroll,true);// useCaptured=true\n_this.emitter.trigger('pointerup',_this.createEventFromTouch(ev));_this.cleanup();// call last so that pointerup has access to props\n_this.isTouchDragging=false;startIgnoringMouse();}};this.handleTouchScroll=function(){_this.wasTouchScroll=true;};this.handleScroll=function(ev){if(!_this.shouldIgnoreMove){var pageX=window.pageXOffset-_this.prevScrollX+_this.prevPageX;var pageY=window.pageYOffset-_this.prevScrollY+_this.prevPageY;_this.emitter.trigger('pointermove',{origEvent:ev,isTouch:_this.isTouchDragging,subjectEl:_this.subjectEl,pageX:pageX,pageY:pageY,deltaX:pageX-_this.origPageX,deltaY:pageY-_this.origPageY});}};this.containerEl=containerEl;this.emitter=new core.EmitterMixin();containerEl.addEventListener('mousedown',this.handleMouseDown);containerEl.addEventListener('touchstart',this.handleTouchStart,{passive:true});listenerCreated();}PointerDragging.prototype.destroy=function(){this.containerEl.removeEventListener('mousedown',this.handleMouseDown);this.containerEl.removeEventListener('touchstart',this.handleTouchStart,{passive:true});listenerDestroyed();};PointerDragging.prototype.tryStart=function(ev){var subjectEl=this.querySubjectEl(ev);var downEl=ev.target;if(subjectEl&&(!this.handleSelector||core.elementClosest(downEl,this.handleSelector))){this.subjectEl=subjectEl;this.downEl=downEl;this.isDragging=true;// do this first so cancelTouchScroll will work\nthis.wasTouchScroll=false;return true;}return false;};PointerDragging.prototype.cleanup=function(){isWindowTouchMoveCancelled=false;this.isDragging=false;this.subjectEl=null;this.downEl=null;// keep wasTouchScroll around for later access\nthis.destroyScrollWatch();};PointerDragging.prototype.querySubjectEl=function(ev){if(this.selector){return core.elementClosest(ev.target,this.selector);}else{return this.containerEl;}};PointerDragging.prototype.shouldIgnoreMouse=function(){return ignoreMouseDepth||this.isTouchDragging;};// can be called by user of this class, to cancel touch-based scrolling for the current drag\nPointerDragging.prototype.cancelTouchScroll=function(){if(this.isDragging){isWindowTouchMoveCancelled=true;}};// Scrolling that simulates pointermoves\n// ----------------------------------------------------------------------------------------------------\nPointerDragging.prototype.initScrollWatch=function(ev){if(this.shouldWatchScroll){this.recordCoords(ev);window.addEventListener('scroll',this.handleScroll,true);// useCapture=true\n}};PointerDragging.prototype.recordCoords=function(ev){if(this.shouldWatchScroll){this.prevPageX=ev.pageX;this.prevPageY=ev.pageY;this.prevScrollX=window.pageXOffset;this.prevScrollY=window.pageYOffset;}};PointerDragging.prototype.destroyScrollWatch=function(){if(this.shouldWatchScroll){window.removeEventListener('scroll',this.handleScroll,true);// useCaptured=true\n}};// Event Normalization\n// ----------------------------------------------------------------------------------------------------\nPointerDragging.prototype.createEventFromMouse=function(ev,isFirst){var deltaX=0;var deltaY=0;// TODO: repeat code\nif(isFirst){this.origPageX=ev.pageX;this.origPageY=ev.pageY;}else{deltaX=ev.pageX-this.origPageX;deltaY=ev.pageY-this.origPageY;}return{origEvent:ev,isTouch:false,subjectEl:this.subjectEl,pageX:ev.pageX,pageY:ev.pageY,deltaX:deltaX,deltaY:deltaY};};PointerDragging.prototype.createEventFromTouch=function(ev,isFirst){var touches=ev.touches;var pageX;var pageY;var deltaX=0;var deltaY=0;// if touch coords available, prefer,\n// because FF would give bad ev.pageX ev.pageY\nif(touches&&touches.length){pageX=touches[0].pageX;pageY=touches[0].pageY;}else{pageX=ev.pageX;pageY=ev.pageY;}// TODO: repeat code\nif(isFirst){this.origPageX=pageX;this.origPageY=pageY;}else{deltaX=pageX-this.origPageX;deltaY=pageY-this.origPageY;}return{origEvent:ev,isTouch:true,subjectEl:this.subjectEl,pageX:pageX,pageY:pageY,deltaX:deltaX,deltaY:deltaY};};return PointerDragging;}();// Returns a boolean whether this was a left mouse click and no ctrl key (which means right click on Mac)\nfunction isPrimaryMouseButton(ev){return ev.button===0&&!ev.ctrlKey;}// Ignoring fake mouse events generated by touch\n// ----------------------------------------------------------------------------------------------------\nfunction startIgnoringMouse(){ignoreMouseDepth++;setTimeout(function(){ignoreMouseDepth--;},core.config.touchMouseIgnoreWait);}// We want to attach touchmove as early as possible for Safari\n// ----------------------------------------------------------------------------------------------------\nfunction listenerCreated(){if(!listenerCnt++){window.addEventListener('touchmove',onWindowTouchMove,{passive:false});}}function listenerDestroyed(){if(! --listenerCnt){window.removeEventListener('touchmove',onWindowTouchMove,{passive:false});}}function onWindowTouchMove(ev){if(isWindowTouchMoveCancelled){ev.preventDefault();}}/*\r\n    An effect in which an element follows the movement of a pointer across the screen.\r\n    The moving element is a clone of some other element.\r\n    Must call start + handleMove + stop.\r\n    */var ElementMirror=/** @class */function(){function ElementMirror(){this.isVisible=false;// must be explicitly enabled\nthis.sourceEl=null;this.mirrorEl=null;this.sourceElRect=null;// screen coords relative to viewport\n// options that can be set directly by caller\nthis.parentNode=document.body;this.zIndex=9999;this.revertDuration=0;}ElementMirror.prototype.start=function(sourceEl,pageX,pageY){this.sourceEl=sourceEl;this.sourceElRect=this.sourceEl.getBoundingClientRect();this.origScreenX=pageX-window.pageXOffset;this.origScreenY=pageY-window.pageYOffset;this.deltaX=0;this.deltaY=0;this.updateElPosition();};ElementMirror.prototype.handleMove=function(pageX,pageY){this.deltaX=pageX-window.pageXOffset-this.origScreenX;this.deltaY=pageY-window.pageYOffset-this.origScreenY;this.updateElPosition();};// can be called before start\nElementMirror.prototype.setIsVisible=function(bool){if(bool){if(!this.isVisible){if(this.mirrorEl){this.mirrorEl.style.display='';}this.isVisible=bool;// needs to happen before updateElPosition\nthis.updateElPosition();// because was not updating the position while invisible\n}}else{if(this.isVisible){if(this.mirrorEl){this.mirrorEl.style.display='none';}this.isVisible=bool;}}};// always async\nElementMirror.prototype.stop=function(needsRevertAnimation,callback){var _this=this;var done=function(){_this.cleanup();callback();};if(needsRevertAnimation&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(// if 0, transition won't work\nthis.deltaX||this.deltaY)// if same coords, transition won't work\n){this.doRevertAnimation(done,this.revertDuration);}else{setTimeout(done,0);}};ElementMirror.prototype.doRevertAnimation=function(callback,revertDuration){var mirrorEl=this.mirrorEl;var finalSourceElRect=this.sourceEl.getBoundingClientRect();// because autoscrolling might have happened\nmirrorEl.style.transition='top '+revertDuration+'ms,'+'left '+revertDuration+'ms';core.applyStyle(mirrorEl,{left:finalSourceElRect.left,top:finalSourceElRect.top});core.whenTransitionDone(mirrorEl,function(){mirrorEl.style.transition='';callback();});};ElementMirror.prototype.cleanup=function(){if(this.mirrorEl){core.removeElement(this.mirrorEl);this.mirrorEl=null;}this.sourceEl=null;};ElementMirror.prototype.updateElPosition=function(){if(this.sourceEl&&this.isVisible){core.applyStyle(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY});}};ElementMirror.prototype.getMirrorEl=function(){var sourceElRect=this.sourceElRect;var mirrorEl=this.mirrorEl;if(!mirrorEl){mirrorEl=this.mirrorEl=this.sourceEl.cloneNode(true);// cloneChildren=true\n// we don't want long taps or any mouse interaction causing selection/menus.\n// would use preventSelection(), but that prevents selectstart, causing problems.\nmirrorEl.classList.add('fc-unselectable');mirrorEl.classList.add('fc-dragging');core.applyStyle(mirrorEl,{position:'fixed',zIndex:this.zIndex,visibility:'',boxSizing:'border-box',width:sourceElRect.right-sourceElRect.left,height:sourceElRect.bottom-sourceElRect.top,right:'auto',bottom:'auto',margin:0});this.parentNode.appendChild(mirrorEl);}return mirrorEl;};return ElementMirror;}();/*\r\n    Is a cache for a given element's scroll information (all the info that ScrollController stores)\r\n    in addition the \"client rectangle\" of the element.. the area within the scrollbars.\r\n\r\n    The cache can be in one of two modes:\r\n    - doesListening:false - ignores when the container is scrolled by someone else\r\n    - doesListening:true - watch for scrolling and update the cache\r\n    */var ScrollGeomCache=/** @class */function(_super){__extends(ScrollGeomCache,_super);function ScrollGeomCache(scrollController,doesListening){var _this=_super.call(this)||this;_this.handleScroll=function(){_this.scrollTop=_this.scrollController.getScrollTop();_this.scrollLeft=_this.scrollController.getScrollLeft();_this.handleScrollChange();};_this.scrollController=scrollController;_this.doesListening=doesListening;_this.scrollTop=_this.origScrollTop=scrollController.getScrollTop();_this.scrollLeft=_this.origScrollLeft=scrollController.getScrollLeft();_this.scrollWidth=scrollController.getScrollWidth();_this.scrollHeight=scrollController.getScrollHeight();_this.clientWidth=scrollController.getClientWidth();_this.clientHeight=scrollController.getClientHeight();_this.clientRect=_this.computeClientRect();// do last in case it needs cached values\nif(_this.doesListening){_this.getEventTarget().addEventListener('scroll',_this.handleScroll);}return _this;}ScrollGeomCache.prototype.destroy=function(){if(this.doesListening){this.getEventTarget().removeEventListener('scroll',this.handleScroll);}};ScrollGeomCache.prototype.getScrollTop=function(){return this.scrollTop;};ScrollGeomCache.prototype.getScrollLeft=function(){return this.scrollLeft;};ScrollGeomCache.prototype.setScrollTop=function(top){this.scrollController.setScrollTop(top);if(!this.doesListening){// we are not relying on the element to normalize out-of-bounds scroll values\n// so we need to sanitize ourselves\nthis.scrollTop=Math.max(Math.min(top,this.getMaxScrollTop()),0);this.handleScrollChange();}};ScrollGeomCache.prototype.setScrollLeft=function(top){this.scrollController.setScrollLeft(top);if(!this.doesListening){// we are not relying on the element to normalize out-of-bounds scroll values\n// so we need to sanitize ourselves\nthis.scrollLeft=Math.max(Math.min(top,this.getMaxScrollLeft()),0);this.handleScrollChange();}};ScrollGeomCache.prototype.getClientWidth=function(){return this.clientWidth;};ScrollGeomCache.prototype.getClientHeight=function(){return this.clientHeight;};ScrollGeomCache.prototype.getScrollWidth=function(){return this.scrollWidth;};ScrollGeomCache.prototype.getScrollHeight=function(){return this.scrollHeight;};ScrollGeomCache.prototype.handleScrollChange=function(){};return ScrollGeomCache;}(core.ScrollController);var ElementScrollGeomCache=/** @class */function(_super){__extends(ElementScrollGeomCache,_super);function ElementScrollGeomCache(el,doesListening){return _super.call(this,new core.ElementScrollController(el),doesListening)||this;}ElementScrollGeomCache.prototype.getEventTarget=function(){return this.scrollController.el;};ElementScrollGeomCache.prototype.computeClientRect=function(){return core.computeInnerRect(this.scrollController.el);};return ElementScrollGeomCache;}(ScrollGeomCache);var WindowScrollGeomCache=/** @class */function(_super){__extends(WindowScrollGeomCache,_super);function WindowScrollGeomCache(doesListening){return _super.call(this,new core.WindowScrollController(),doesListening)||this;}WindowScrollGeomCache.prototype.getEventTarget=function(){return window;};WindowScrollGeomCache.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight};};// the window is the only scroll object that changes it's rectangle relative\n// to the document's topleft as it scrolls\nWindowScrollGeomCache.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect();};return WindowScrollGeomCache;}(ScrollGeomCache);// If available we are using native \"performance\" API instead of \"Date\"\n// Read more about it on MDN:\n// https://developer.mozilla.org/en-US/docs/Web/API/Performance\nvar getTime=typeof performance==='function'?performance.now:Date.now;/*\r\n    For a pointer interaction, automatically scrolls certain scroll containers when the pointer\r\n    approaches the edge.\r\n\r\n    The caller must call start + handleMove + stop.\r\n    */var AutoScroller=/** @class */function(){function AutoScroller(){var _this=this;// options that can be set by caller\nthis.isEnabled=true;this.scrollQuery=[window,'.fc-scroller'];this.edgeThreshold=50;// pixels\nthis.maxVelocity=300;// pixels per second\n// internal state\nthis.pointerScreenX=null;this.pointerScreenY=null;this.isAnimating=false;this.scrollCaches=null;// protect against the initial pointerdown being too close to an edge and starting the scroll\nthis.everMovedUp=false;this.everMovedDown=false;this.everMovedLeft=false;this.everMovedRight=false;this.animate=function(){if(_this.isAnimating){// wasn't cancelled between animation calls\nvar edge=_this.computeBestEdge(_this.pointerScreenX+window.pageXOffset,_this.pointerScreenY+window.pageYOffset);if(edge){var now=getTime();_this.handleSide(edge,(now-_this.msSinceRequest)/1000);_this.requestAnimation(now);}else{_this.isAnimating=false;// will stop animation\n}}};}AutoScroller.prototype.start=function(pageX,pageY){if(this.isEnabled){this.scrollCaches=this.buildCaches();this.pointerScreenX=null;this.pointerScreenY=null;this.everMovedUp=false;this.everMovedDown=false;this.everMovedLeft=false;this.everMovedRight=false;this.handleMove(pageX,pageY);}};AutoScroller.prototype.handleMove=function(pageX,pageY){if(this.isEnabled){var pointerScreenX=pageX-window.pageXOffset;var pointerScreenY=pageY-window.pageYOffset;var yDelta=this.pointerScreenY===null?0:pointerScreenY-this.pointerScreenY;var xDelta=this.pointerScreenX===null?0:pointerScreenX-this.pointerScreenX;if(yDelta<0){this.everMovedUp=true;}else if(yDelta>0){this.everMovedDown=true;}if(xDelta<0){this.everMovedLeft=true;}else if(xDelta>0){this.everMovedRight=true;}this.pointerScreenX=pointerScreenX;this.pointerScreenY=pointerScreenY;if(!this.isAnimating){this.isAnimating=true;this.requestAnimation(getTime());}}};AutoScroller.prototype.stop=function(){if(this.isEnabled){this.isAnimating=false;// will stop animation\nfor(var _i=0,_a=this.scrollCaches;_i<_a.length;_i++){var scrollCache=_a[_i];scrollCache.destroy();}this.scrollCaches=null;}};AutoScroller.prototype.requestAnimation=function(now){this.msSinceRequest=now;requestAnimationFrame(this.animate);};AutoScroller.prototype.handleSide=function(edge,seconds){var scrollCache=edge.scrollCache;var edgeThreshold=this.edgeThreshold;var invDistance=edgeThreshold-edge.distance;var velocity=// the closer to the edge, the faster we scroll\ninvDistance*invDistance/(edgeThreshold*edgeThreshold)*// quadratic\nthis.maxVelocity*seconds;var sign=1;switch(edge.name){case'left':sign=-1;// falls through\ncase'right':scrollCache.setScrollLeft(scrollCache.getScrollLeft()+velocity*sign);break;case'top':sign=-1;// falls through\ncase'bottom':scrollCache.setScrollTop(scrollCache.getScrollTop()+velocity*sign);break;}};// left/top are relative to document topleft\nAutoScroller.prototype.computeBestEdge=function(left,top){var edgeThreshold=this.edgeThreshold;var bestSide=null;for(var _i=0,_a=this.scrollCaches;_i<_a.length;_i++){var scrollCache=_a[_i];var rect=scrollCache.clientRect;var leftDist=left-rect.left;var rightDist=rect.right-left;var topDist=top-rect.top;var bottomDist=rect.bottom-top;// completely within the rect?\nif(leftDist>=0&&rightDist>=0&&topDist>=0&&bottomDist>=0){if(topDist<=edgeThreshold&&this.everMovedUp&&scrollCache.canScrollUp()&&(!bestSide||bestSide.distance>topDist)){bestSide={scrollCache:scrollCache,name:'top',distance:topDist};}if(bottomDist<=edgeThreshold&&this.everMovedDown&&scrollCache.canScrollDown()&&(!bestSide||bestSide.distance>bottomDist)){bestSide={scrollCache:scrollCache,name:'bottom',distance:bottomDist};}if(leftDist<=edgeThreshold&&this.everMovedLeft&&scrollCache.canScrollLeft()&&(!bestSide||bestSide.distance>leftDist)){bestSide={scrollCache:scrollCache,name:'left',distance:leftDist};}if(rightDist<=edgeThreshold&&this.everMovedRight&&scrollCache.canScrollRight()&&(!bestSide||bestSide.distance>rightDist)){bestSide={scrollCache:scrollCache,name:'right',distance:rightDist};}}}return bestSide;};AutoScroller.prototype.buildCaches=function(){return this.queryScrollEls().map(function(el){if(el===window){return new WindowScrollGeomCache(false);// false = don't listen to user-generated scrolls\n}else{return new ElementScrollGeomCache(el,false);// false = don't listen to user-generated scrolls\n}});};AutoScroller.prototype.queryScrollEls=function(){var els=[];for(var _i=0,_a=this.scrollQuery;_i<_a.length;_i++){var query=_a[_i];if(typeof query==='object'){els.push(query);}else{els.push.apply(els,Array.prototype.slice.call(document.querySelectorAll(query)));}}return els;};return AutoScroller;}();/*\r\n    Monitors dragging on an element. Has a number of high-level features:\r\n    - minimum distance required before dragging\r\n    - minimum wait time (\"delay\") before dragging\r\n    - a mirror element that follows the pointer\r\n    */var FeaturefulElementDragging=/** @class */function(_super){__extends(FeaturefulElementDragging,_super);function FeaturefulElementDragging(containerEl){var _this=_super.call(this,containerEl)||this;// options that can be directly set by caller\n// the caller can also set the PointerDragging's options as well\n_this.delay=null;_this.minDistance=0;_this.touchScrollAllowed=true;// prevents drag from starting and blocks scrolling during drag\n_this.mirrorNeedsRevert=false;_this.isInteracting=false;// is the user validly moving the pointer? lasts until pointerup\n_this.isDragging=false;// is it INTENTFULLY dragging? lasts until after revert animation\n_this.isDelayEnded=false;_this.isDistanceSurpassed=false;_this.delayTimeoutId=null;_this.onPointerDown=function(ev){if(!_this.isDragging){// so new drag doesn't happen while revert animation is going\n_this.isInteracting=true;_this.isDelayEnded=false;_this.isDistanceSurpassed=false;core.preventSelection(document.body);core.preventContextMenu(document.body);// prevent links from being visited if there's an eventual drag.\n// also prevents selection in older browsers (maybe?).\n// not necessary for touch, besides, browser would complain about passiveness.\nif(!ev.isTouch){ev.origEvent.preventDefault();}_this.emitter.trigger('pointerdown',ev);if(!_this.pointer.shouldIgnoreMove){// actions related to initiating dragstart+dragmove+dragend...\n_this.mirror.setIsVisible(false);// reset. caller must set-visible\n_this.mirror.start(ev.subjectEl,ev.pageX,ev.pageY);// must happen on first pointer down\n_this.startDelay(ev);if(!_this.minDistance){_this.handleDistanceSurpassed(ev);}}}};_this.onPointerMove=function(ev){if(_this.isInteracting){// if false, still waiting for previous drag's revert\n_this.emitter.trigger('pointermove',ev);if(!_this.isDistanceSurpassed){var minDistance=_this.minDistance;var distanceSq=void 0;// current distance from the origin, squared\nvar deltaX=ev.deltaX,deltaY=ev.deltaY;distanceSq=deltaX*deltaX+deltaY*deltaY;if(distanceSq>=minDistance*minDistance){// use pythagorean theorem\n_this.handleDistanceSurpassed(ev);}}if(_this.isDragging){// a real pointer move? (not one simulated by scrolling)\nif(ev.origEvent.type!=='scroll'){_this.mirror.handleMove(ev.pageX,ev.pageY);_this.autoScroller.handleMove(ev.pageX,ev.pageY);}_this.emitter.trigger('dragmove',ev);}}};_this.onPointerUp=function(ev){if(_this.isInteracting){// if false, still waiting for previous drag's revert\n_this.isInteracting=false;core.allowSelection(document.body);core.allowContextMenu(document.body);_this.emitter.trigger('pointerup',ev);// can potentially set mirrorNeedsRevert\nif(_this.isDragging){_this.autoScroller.stop();_this.tryStopDrag(ev);// which will stop the mirror\n}if(_this.delayTimeoutId){clearTimeout(_this.delayTimeoutId);_this.delayTimeoutId=null;}}};var pointer=_this.pointer=new PointerDragging(containerEl);pointer.emitter.on('pointerdown',_this.onPointerDown);pointer.emitter.on('pointermove',_this.onPointerMove);pointer.emitter.on('pointerup',_this.onPointerUp);_this.mirror=new ElementMirror();_this.autoScroller=new AutoScroller();return _this;}FeaturefulElementDragging.prototype.destroy=function(){this.pointer.destroy();};FeaturefulElementDragging.prototype.startDelay=function(ev){var _this=this;if(typeof this.delay==='number'){this.delayTimeoutId=setTimeout(function(){_this.delayTimeoutId=null;_this.handleDelayEnd(ev);},this.delay);// not assignable to number!\n}else{this.handleDelayEnd(ev);}};FeaturefulElementDragging.prototype.handleDelayEnd=function(ev){this.isDelayEnded=true;this.tryStartDrag(ev);};FeaturefulElementDragging.prototype.handleDistanceSurpassed=function(ev){this.isDistanceSurpassed=true;this.tryStartDrag(ev);};FeaturefulElementDragging.prototype.tryStartDrag=function(ev){if(this.isDelayEnded&&this.isDistanceSurpassed){if(!this.pointer.wasTouchScroll||this.touchScrollAllowed){this.isDragging=true;this.mirrorNeedsRevert=false;this.autoScroller.start(ev.pageX,ev.pageY);this.emitter.trigger('dragstart',ev);if(this.touchScrollAllowed===false){this.pointer.cancelTouchScroll();}}}};FeaturefulElementDragging.prototype.tryStopDrag=function(ev){// .stop() is ALWAYS asynchronous, which we NEED because we want all pointerup events\n// that come from the document to fire beforehand. much more convenient this way.\nthis.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,ev)// bound with args\n);};FeaturefulElementDragging.prototype.stopDrag=function(ev){this.isDragging=false;this.emitter.trigger('dragend',ev);};// fill in the implementations...\nFeaturefulElementDragging.prototype.setIgnoreMove=function(bool){this.pointer.shouldIgnoreMove=bool;};FeaturefulElementDragging.prototype.setMirrorIsVisible=function(bool){this.mirror.setIsVisible(bool);};FeaturefulElementDragging.prototype.setMirrorNeedsRevert=function(bool){this.mirrorNeedsRevert=bool;};FeaturefulElementDragging.prototype.setAutoScrollEnabled=function(bool){this.autoScroller.isEnabled=bool;};return FeaturefulElementDragging;}(core.ElementDragging);/*\r\n    When this class is instantiated, it records the offset of an element (relative to the document topleft),\r\n    and continues to monitor scrolling, updating the cached coordinates if it needs to.\r\n    Does not access the DOM after instantiation, so highly performant.\r\n\r\n    Also keeps track of all scrolling/overflow:hidden containers that are parents of the given element\r\n    and an determine if a given point is inside the combined clipping rectangle.\r\n    */var OffsetTracker=/** @class */function(){function OffsetTracker(el){this.origRect=core.computeRect(el);// will work fine for divs that have overflow:hidden\nthis.scrollCaches=core.getClippingParents(el).map(function(el){return new ElementScrollGeomCache(el,true);// listen=true\n});}OffsetTracker.prototype.destroy=function(){for(var _i=0,_a=this.scrollCaches;_i<_a.length;_i++){var scrollCache=_a[_i];scrollCache.destroy();}};OffsetTracker.prototype.computeLeft=function(){var left=this.origRect.left;for(var _i=0,_a=this.scrollCaches;_i<_a.length;_i++){var scrollCache=_a[_i];left+=scrollCache.origScrollLeft-scrollCache.getScrollLeft();}return left;};OffsetTracker.prototype.computeTop=function(){var top=this.origRect.top;for(var _i=0,_a=this.scrollCaches;_i<_a.length;_i++){var scrollCache=_a[_i];top+=scrollCache.origScrollTop-scrollCache.getScrollTop();}return top;};OffsetTracker.prototype.isWithinClipping=function(pageX,pageY){var point={left:pageX,top:pageY};for(var _i=0,_a=this.scrollCaches;_i<_a.length;_i++){var scrollCache=_a[_i];if(!isIgnoredClipping(scrollCache.getEventTarget())&&!core.pointInsideRect(point,scrollCache.clientRect)){return false;}}return true;};return OffsetTracker;}();// certain clipping containers should never constrain interactions, like <html> and <body>\n// https://github.com/fullcalendar/fullcalendar/issues/3615\nfunction isIgnoredClipping(node){var tagName=node.tagName;return tagName==='HTML'||tagName==='BODY';}/*\r\n    Tracks movement over multiple droppable areas (aka \"hits\")\r\n    that exist in one or more DateComponents.\r\n    Relies on an existing draggable.\r\n\r\n    emits:\r\n    - pointerdown\r\n    - dragstart\r\n    - hitchange - fires initially, even if not over a hit\r\n    - pointerup\r\n    - (hitchange - again, to null, if ended over a hit)\r\n    - dragend\r\n    */var HitDragging=/** @class */function(){function HitDragging(dragging,droppableStore){var _this=this;// options that can be set by caller\nthis.useSubjectCenter=false;this.requireInitial=true;// if doesn't start out on a hit, won't emit any events\nthis.initialHit=null;this.movingHit=null;this.finalHit=null;// won't ever be populated if shouldIgnoreMove\nthis.handlePointerDown=function(ev){var dragging=_this.dragging;_this.initialHit=null;_this.movingHit=null;_this.finalHit=null;_this.prepareHits();_this.processFirstCoord(ev);if(_this.initialHit||!_this.requireInitial){dragging.setIgnoreMove(false);_this.emitter.trigger('pointerdown',ev);// TODO: fire this before computing processFirstCoord, so listeners can cancel. this gets fired by almost every handler :(\n}else{dragging.setIgnoreMove(true);}};this.handleDragStart=function(ev){_this.emitter.trigger('dragstart',ev);_this.handleMove(ev,true);// force = fire even if initially null\n};this.handleDragMove=function(ev){_this.emitter.trigger('dragmove',ev);_this.handleMove(ev);};this.handlePointerUp=function(ev){_this.releaseHits();_this.emitter.trigger('pointerup',ev);};this.handleDragEnd=function(ev){if(_this.movingHit){_this.emitter.trigger('hitupdate',null,true,ev);}_this.finalHit=_this.movingHit;_this.movingHit=null;_this.emitter.trigger('dragend',ev);};this.droppableStore=droppableStore;dragging.emitter.on('pointerdown',this.handlePointerDown);dragging.emitter.on('dragstart',this.handleDragStart);dragging.emitter.on('dragmove',this.handleDragMove);dragging.emitter.on('pointerup',this.handlePointerUp);dragging.emitter.on('dragend',this.handleDragEnd);this.dragging=dragging;this.emitter=new core.EmitterMixin();}// sets initialHit\n// sets coordAdjust\nHitDragging.prototype.processFirstCoord=function(ev){var origPoint={left:ev.pageX,top:ev.pageY};var adjustedPoint=origPoint;var subjectEl=ev.subjectEl;var subjectRect;if(subjectEl!==document){subjectRect=core.computeRect(subjectEl);adjustedPoint=core.constrainPoint(adjustedPoint,subjectRect);}var initialHit=this.initialHit=this.queryHitForOffset(adjustedPoint.left,adjustedPoint.top);if(initialHit){if(this.useSubjectCenter&&subjectRect){var slicedSubjectRect=core.intersectRects(subjectRect,initialHit.rect);if(slicedSubjectRect){adjustedPoint=core.getRectCenter(slicedSubjectRect);}}this.coordAdjust=core.diffPoints(adjustedPoint,origPoint);}else{this.coordAdjust={left:0,top:0};}};HitDragging.prototype.handleMove=function(ev,forceHandle){var hit=this.queryHitForOffset(ev.pageX+this.coordAdjust.left,ev.pageY+this.coordAdjust.top);if(forceHandle||!isHitsEqual(this.movingHit,hit)){this.movingHit=hit;this.emitter.trigger('hitupdate',hit,false,ev);}};HitDragging.prototype.prepareHits=function(){this.offsetTrackers=core.mapHash(this.droppableStore,function(interactionSettings){interactionSettings.component.buildPositionCaches();return new OffsetTracker(interactionSettings.el);});};HitDragging.prototype.releaseHits=function(){var offsetTrackers=this.offsetTrackers;for(var id in offsetTrackers){offsetTrackers[id].destroy();}this.offsetTrackers={};};HitDragging.prototype.queryHitForOffset=function(offsetLeft,offsetTop){var _a=this,droppableStore=_a.droppableStore,offsetTrackers=_a.offsetTrackers;var bestHit=null;for(var id in droppableStore){var component=droppableStore[id].component;var offsetTracker=offsetTrackers[id];if(offsetTracker.isWithinClipping(offsetLeft,offsetTop)){var originLeft=offsetTracker.computeLeft();var originTop=offsetTracker.computeTop();var positionLeft=offsetLeft-originLeft;var positionTop=offsetTop-originTop;var origRect=offsetTracker.origRect;var width=origRect.right-origRect.left;var height=origRect.bottom-origRect.top;if(// must be within the element's bounds\npositionLeft>=0&&positionLeft<width&&positionTop>=0&&positionTop<height){var hit=component.queryHit(positionLeft,positionTop,width,height);if(hit&&(// make sure the hit is within activeRange, meaning it's not a deal cell\n!component.props.dateProfile||// hack for DayTile\ncore.rangeContainsRange(component.props.dateProfile.activeRange,hit.dateSpan.range))&&(!bestHit||hit.layer>bestHit.layer)){// TODO: better way to re-orient rectangle\nhit.rect.left+=originLeft;hit.rect.right+=originLeft;hit.rect.top+=originTop;hit.rect.bottom+=originTop;bestHit=hit;}}}}return bestHit;};return HitDragging;}();function isHitsEqual(hit0,hit1){if(!hit0&&!hit1){return true;}if(Boolean(hit0)!==Boolean(hit1)){return false;}return core.isDateSpansEqual(hit0.dateSpan,hit1.dateSpan);}/*\r\n    Monitors when the user clicks on a specific date/time of a component.\r\n    A pointerdown+pointerup on the same \"hit\" constitutes a click.\r\n    */var DateClicking=/** @class */function(_super){__extends(DateClicking,_super);function DateClicking(settings){var _this=_super.call(this,settings)||this;_this.handlePointerDown=function(ev){var dragging=_this.dragging;// do this in pointerdown (not dragend) because DOM might be mutated by the time dragend is fired\ndragging.setIgnoreMove(!_this.component.isValidDateDownEl(dragging.pointer.downEl));};// won't even fire if moving was ignored\n_this.handleDragEnd=function(ev){var component=_this.component;var _a=component.context,calendar=_a.calendar,view=_a.view;var pointer=_this.dragging.pointer;if(!pointer.wasTouchScroll){var _b=_this.hitDragging,initialHit=_b.initialHit,finalHit=_b.finalHit;if(initialHit&&finalHit&&isHitsEqual(initialHit,finalHit)){calendar.triggerDateClick(initialHit.dateSpan,initialHit.dayEl,view,ev.origEvent);}}};var component=settings.component;// we DO want to watch pointer moves because otherwise finalHit won't get populated\n_this.dragging=new FeaturefulElementDragging(component.el);_this.dragging.autoScroller.isEnabled=false;var hitDragging=_this.hitDragging=new HitDragging(_this.dragging,core.interactionSettingsToStore(settings));hitDragging.emitter.on('pointerdown',_this.handlePointerDown);hitDragging.emitter.on('dragend',_this.handleDragEnd);return _this;}DateClicking.prototype.destroy=function(){this.dragging.destroy();};return DateClicking;}(core.Interaction);/*\r\n    Tracks when the user selects a portion of time of a component,\r\n    constituted by a drag over date cells, with a possible delay at the beginning of the drag.\r\n    */var DateSelecting=/** @class */function(_super){__extends(DateSelecting,_super);function DateSelecting(settings){var _this=_super.call(this,settings)||this;_this.dragSelection=null;_this.handlePointerDown=function(ev){var _a=_this,component=_a.component,dragging=_a.dragging;var options=component.context.options;var canSelect=options.selectable&&component.isValidDateDownEl(ev.origEvent.target);// don't bother to watch expensive moves if component won't do selection\ndragging.setIgnoreMove(!canSelect);// if touch, require user to hold down\ndragging.delay=ev.isTouch?getComponentTouchDelay(component):null;};_this.handleDragStart=function(ev){_this.component.context.calendar.unselect(ev);// unselect previous selections\n};_this.handleHitUpdate=function(hit,isFinal){var calendar=_this.component.context.calendar;var dragSelection=null;var isInvalid=false;if(hit){dragSelection=joinHitsIntoSelection(_this.hitDragging.initialHit,hit,calendar.pluginSystem.hooks.dateSelectionTransformers);if(!dragSelection||!_this.component.isDateSelectionValid(dragSelection)){isInvalid=true;dragSelection=null;}}if(dragSelection){calendar.dispatch({type:'SELECT_DATES',selection:dragSelection});}else if(!isFinal){// only unselect if moved away while dragging\ncalendar.dispatch({type:'UNSELECT_DATES'});}if(!isInvalid){core.enableCursor();}else{core.disableCursor();}if(!isFinal){_this.dragSelection=dragSelection;// only clear if moved away from all hits while dragging\n}};_this.handlePointerUp=function(pev){if(_this.dragSelection){// selection is already rendered, so just need to report selection\n_this.component.context.calendar.triggerDateSelect(_this.dragSelection,pev);_this.dragSelection=null;}};var component=settings.component;var options=component.context.options;var dragging=_this.dragging=new FeaturefulElementDragging(component.el);dragging.touchScrollAllowed=false;dragging.minDistance=options.selectMinDistance||0;dragging.autoScroller.isEnabled=options.dragScroll;var hitDragging=_this.hitDragging=new HitDragging(_this.dragging,core.interactionSettingsToStore(settings));hitDragging.emitter.on('pointerdown',_this.handlePointerDown);hitDragging.emitter.on('dragstart',_this.handleDragStart);hitDragging.emitter.on('hitupdate',_this.handleHitUpdate);hitDragging.emitter.on('pointerup',_this.handlePointerUp);return _this;}DateSelecting.prototype.destroy=function(){this.dragging.destroy();};return DateSelecting;}(core.Interaction);function getComponentTouchDelay(component){var options=component.context.options;var delay=options.selectLongPressDelay;if(delay==null){delay=options.longPressDelay;}return delay;}function joinHitsIntoSelection(hit0,hit1,dateSelectionTransformers){var dateSpan0=hit0.dateSpan;var dateSpan1=hit1.dateSpan;var ms=[dateSpan0.range.start,dateSpan0.range.end,dateSpan1.range.start,dateSpan1.range.end];ms.sort(core.compareNumbers);var props={};for(var _i=0,dateSelectionTransformers_1=dateSelectionTransformers;_i<dateSelectionTransformers_1.length;_i++){var transformer=dateSelectionTransformers_1[_i];var res=transformer(hit0,hit1);if(res===false){return null;}else if(res){__assign(props,res);}}props.range={start:ms[0],end:ms[3]};props.allDay=dateSpan0.allDay;return props;}var EventDragging=/** @class */function(_super){__extends(EventDragging,_super);function EventDragging(settings){var _this=_super.call(this,settings)||this;// internal state\n_this.subjectSeg=null;// the seg being selected/dragged\n_this.isDragging=false;_this.eventRange=null;_this.relevantEvents=null;// the events being dragged\n_this.receivingCalendar=null;_this.validMutation=null;_this.mutatedRelevantEvents=null;_this.handlePointerDown=function(ev){var origTarget=ev.origEvent.target;var _a=_this,component=_a.component,dragging=_a.dragging;var mirror=dragging.mirror;var options=component.context.options;var initialCalendar=component.context.calendar;var subjectSeg=_this.subjectSeg=core.getElSeg(ev.subjectEl);var eventRange=_this.eventRange=subjectSeg.eventRange;var eventInstanceId=eventRange.instance.instanceId;_this.relevantEvents=core.getRelevantEvents(initialCalendar.state.eventStore,eventInstanceId);dragging.minDistance=ev.isTouch?0:options.eventDragMinDistance;dragging.delay=// only do a touch delay if touch and this event hasn't been selected yet\nev.isTouch&&eventInstanceId!==component.props.eventSelection?getComponentTouchDelay$1(component):null;mirror.parentNode=initialCalendar.el;mirror.revertDuration=options.dragRevertDuration;var isValid=component.isValidSegDownEl(origTarget)&&!core.elementClosest(origTarget,'.fc-resizer');// NOT on a resizer\ndragging.setIgnoreMove(!isValid);// disable dragging for elements that are resizable (ie, selectable)\n// but are not draggable\n_this.isDragging=isValid&&ev.subjectEl.classList.contains('fc-draggable');};_this.handleDragStart=function(ev){var context=_this.component.context;var initialCalendar=context.calendar;var eventRange=_this.eventRange;var eventInstanceId=eventRange.instance.instanceId;if(ev.isTouch){// need to select a different event?\nif(eventInstanceId!==_this.component.props.eventSelection){initialCalendar.dispatch({type:'SELECT_EVENT',eventInstanceId:eventInstanceId});}}else{// if now using mouse, but was previous touch interaction, clear selected event\ninitialCalendar.dispatch({type:'UNSELECT_EVENT'});}if(_this.isDragging){initialCalendar.unselect(ev);// unselect *date* selection\ninitialCalendar.publiclyTrigger('eventDragStart',[{el:_this.subjectSeg.el,event:new core.EventApi(initialCalendar,eventRange.def,eventRange.instance),jsEvent:ev.origEvent,view:context.view}]);}};_this.handleHitUpdate=function(hit,isFinal){if(!_this.isDragging){return;}var relevantEvents=_this.relevantEvents;var initialHit=_this.hitDragging.initialHit;var initialCalendar=_this.component.context.calendar;// states based on new hit\nvar receivingCalendar=null;var mutation=null;var mutatedRelevantEvents=null;var isInvalid=false;var interaction={affectedEvents:relevantEvents,mutatedEvents:core.createEmptyEventStore(),isEvent:true,origSeg:_this.subjectSeg};if(hit){var receivingComponent=hit.component;receivingCalendar=receivingComponent.context.calendar;var receivingOptions=receivingComponent.context.options;if(initialCalendar===receivingCalendar||receivingOptions.editable&&receivingOptions.droppable){mutation=computeEventMutation(initialHit,hit,receivingCalendar.pluginSystem.hooks.eventDragMutationMassagers);if(mutation){mutatedRelevantEvents=core.applyMutationToEventStore(relevantEvents,receivingCalendar.eventUiBases,mutation,receivingCalendar);interaction.mutatedEvents=mutatedRelevantEvents;if(!receivingComponent.isInteractionValid(interaction)){isInvalid=true;mutation=null;mutatedRelevantEvents=null;interaction.mutatedEvents=core.createEmptyEventStore();}}}else{receivingCalendar=null;}}_this.displayDrag(receivingCalendar,interaction);if(!isInvalid){core.enableCursor();}else{core.disableCursor();}if(!isFinal){if(initialCalendar===receivingCalendar&&// TODO: write test for this\nisHitsEqual(initialHit,hit)){mutation=null;}_this.dragging.setMirrorNeedsRevert(!mutation);// render the mirror if no already-rendered mirror\n// TODO: wish we could somehow wait for dispatch to guarantee render\n_this.dragging.setMirrorIsVisible(!hit||!document.querySelector('.fc-mirror'));// assign states based on new hit\n_this.receivingCalendar=receivingCalendar;_this.validMutation=mutation;_this.mutatedRelevantEvents=mutatedRelevantEvents;}};_this.handlePointerUp=function(){if(!_this.isDragging){_this.cleanup();// because handleDragEnd won't fire\n}};_this.handleDragEnd=function(ev){if(_this.isDragging){var context=_this.component.context;var initialCalendar_1=context.calendar;var initialView=context.view;var _a=_this,receivingCalendar=_a.receivingCalendar,validMutation=_a.validMutation;var eventDef=_this.eventRange.def;var eventInstance=_this.eventRange.instance;var eventApi=new core.EventApi(initialCalendar_1,eventDef,eventInstance);var relevantEvents_1=_this.relevantEvents;var mutatedRelevantEvents=_this.mutatedRelevantEvents;var finalHit=_this.hitDragging.finalHit;_this.clearDrag();// must happen after revert animation\ninitialCalendar_1.publiclyTrigger('eventDragStop',[{el:_this.subjectSeg.el,event:eventApi,jsEvent:ev.origEvent,view:initialView}]);if(validMutation){// dropped within same calendar\nif(receivingCalendar===initialCalendar_1){initialCalendar_1.dispatch({type:'MERGE_EVENTS',eventStore:mutatedRelevantEvents});var transformed={};for(var _i=0,_b=initialCalendar_1.pluginSystem.hooks.eventDropTransformers;_i<_b.length;_i++){var transformer=_b[_i];__assign(transformed,transformer(validMutation,initialCalendar_1));}var eventDropArg=__assign({},transformed,{el:ev.subjectEl,delta:validMutation.datesDelta,oldEvent:eventApi,event:new core.EventApi(// the data AFTER the mutation\ninitialCalendar_1,mutatedRelevantEvents.defs[eventDef.defId],eventInstance?mutatedRelevantEvents.instances[eventInstance.instanceId]:null),revert:function(){initialCalendar_1.dispatch({type:'MERGE_EVENTS',eventStore:relevantEvents_1});},jsEvent:ev.origEvent,view:initialView});initialCalendar_1.publiclyTrigger('eventDrop',[eventDropArg]);// dropped in different calendar\n}else if(receivingCalendar){initialCalendar_1.publiclyTrigger('eventLeave',[{draggedEl:ev.subjectEl,event:eventApi,view:initialView}]);initialCalendar_1.dispatch({type:'REMOVE_EVENT_INSTANCES',instances:_this.mutatedRelevantEvents.instances});receivingCalendar.dispatch({type:'MERGE_EVENTS',eventStore:_this.mutatedRelevantEvents});if(ev.isTouch){receivingCalendar.dispatch({type:'SELECT_EVENT',eventInstanceId:eventInstance.instanceId});}var dropArg=__assign({},receivingCalendar.buildDatePointApi(finalHit.dateSpan),{draggedEl:ev.subjectEl,jsEvent:ev.origEvent,view:finalHit.component// should this be finalHit.component.view? See #4644\n});receivingCalendar.publiclyTrigger('drop',[dropArg]);receivingCalendar.publiclyTrigger('eventReceive',[{draggedEl:ev.subjectEl,event:new core.EventApi(// the data AFTER the mutation\nreceivingCalendar,mutatedRelevantEvents.defs[eventDef.defId],mutatedRelevantEvents.instances[eventInstance.instanceId]),view:finalHit.component// should this be finalHit.component.view? See #4644\n}]);}}else{initialCalendar_1.publiclyTrigger('_noEventDrop');}}_this.cleanup();};var component=_this.component;var options=component.context.options;var dragging=_this.dragging=new FeaturefulElementDragging(component.el);dragging.pointer.selector=EventDragging.SELECTOR;dragging.touchScrollAllowed=false;dragging.autoScroller.isEnabled=options.dragScroll;var hitDragging=_this.hitDragging=new HitDragging(_this.dragging,core.interactionSettingsStore);hitDragging.useSubjectCenter=settings.useEventCenter;hitDragging.emitter.on('pointerdown',_this.handlePointerDown);hitDragging.emitter.on('dragstart',_this.handleDragStart);hitDragging.emitter.on('hitupdate',_this.handleHitUpdate);hitDragging.emitter.on('pointerup',_this.handlePointerUp);hitDragging.emitter.on('dragend',_this.handleDragEnd);return _this;}EventDragging.prototype.destroy=function(){this.dragging.destroy();};// render a drag state on the next receivingCalendar\nEventDragging.prototype.displayDrag=function(nextCalendar,state){var initialCalendar=this.component.context.calendar;var prevCalendar=this.receivingCalendar;// does the previous calendar need to be cleared?\nif(prevCalendar&&prevCalendar!==nextCalendar){// does the initial calendar need to be cleared?\n// if so, don't clear all the way. we still need to to hide the affectedEvents\nif(prevCalendar===initialCalendar){prevCalendar.dispatch({type:'SET_EVENT_DRAG',state:{affectedEvents:state.affectedEvents,mutatedEvents:core.createEmptyEventStore(),isEvent:true,origSeg:state.origSeg}});// completely clear the old calendar if it wasn't the initial\n}else{prevCalendar.dispatch({type:'UNSET_EVENT_DRAG'});}}if(nextCalendar){nextCalendar.dispatch({type:'SET_EVENT_DRAG',state:state});}};EventDragging.prototype.clearDrag=function(){var initialCalendar=this.component.context.calendar;var receivingCalendar=this.receivingCalendar;if(receivingCalendar){receivingCalendar.dispatch({type:'UNSET_EVENT_DRAG'});}// the initial calendar might have an dummy drag state from displayDrag\nif(initialCalendar!==receivingCalendar){initialCalendar.dispatch({type:'UNSET_EVENT_DRAG'});}};EventDragging.prototype.cleanup=function(){this.subjectSeg=null;this.isDragging=false;this.eventRange=null;this.relevantEvents=null;this.receivingCalendar=null;this.validMutation=null;this.mutatedRelevantEvents=null;};EventDragging.SELECTOR='.fc-draggable, .fc-resizable';// TODO: test this in IE11\nreturn EventDragging;}(core.Interaction);function computeEventMutation(hit0,hit1,massagers){var dateSpan0=hit0.dateSpan;var dateSpan1=hit1.dateSpan;var date0=dateSpan0.range.start;var date1=dateSpan1.range.start;var standardProps={};if(dateSpan0.allDay!==dateSpan1.allDay){standardProps.allDay=dateSpan1.allDay;standardProps.hasEnd=hit1.component.context.options.allDayMaintainDuration;if(dateSpan1.allDay){// means date1 is already start-of-day,\n// but date0 needs to be converted\ndate0=core.startOfDay(date0);}}var delta=core.diffDates(date0,date1,hit0.component.context.dateEnv,hit0.component===hit1.component?hit0.component.largeUnit:null);if(delta.milliseconds){// has hours/minutes/seconds\nstandardProps.allDay=false;}var mutation={datesDelta:delta,standardProps:standardProps};for(var _i=0,massagers_1=massagers;_i<massagers_1.length;_i++){var massager=massagers_1[_i];massager(mutation,hit0,hit1);}return mutation;}function getComponentTouchDelay$1(component){var options=component.context.options;var delay=options.eventLongPressDelay;if(delay==null){delay=options.longPressDelay;}return delay;}var EventDragging$1=/** @class */function(_super){__extends(EventDragging,_super);function EventDragging(settings){var _this=_super.call(this,settings)||this;// internal state\n_this.draggingSeg=null;// TODO: rename to resizingSeg? subjectSeg?\n_this.eventRange=null;_this.relevantEvents=null;_this.validMutation=null;_this.mutatedRelevantEvents=null;_this.handlePointerDown=function(ev){var component=_this.component;var seg=_this.querySeg(ev);var eventRange=_this.eventRange=seg.eventRange;_this.dragging.minDistance=component.context.options.eventDragMinDistance;// if touch, need to be working with a selected event\n_this.dragging.setIgnoreMove(!_this.component.isValidSegDownEl(ev.origEvent.target)||ev.isTouch&&_this.component.props.eventSelection!==eventRange.instance.instanceId);};_this.handleDragStart=function(ev){var _a=_this.component.context,calendar=_a.calendar,view=_a.view;var eventRange=_this.eventRange;_this.relevantEvents=core.getRelevantEvents(calendar.state.eventStore,_this.eventRange.instance.instanceId);_this.draggingSeg=_this.querySeg(ev);calendar.unselect();calendar.publiclyTrigger('eventResizeStart',[{el:_this.draggingSeg.el,event:new core.EventApi(calendar,eventRange.def,eventRange.instance),jsEvent:ev.origEvent,view:view}]);};_this.handleHitUpdate=function(hit,isFinal,ev){var calendar=_this.component.context.calendar;var relevantEvents=_this.relevantEvents;var initialHit=_this.hitDragging.initialHit;var eventInstance=_this.eventRange.instance;var mutation=null;var mutatedRelevantEvents=null;var isInvalid=false;var interaction={affectedEvents:relevantEvents,mutatedEvents:core.createEmptyEventStore(),isEvent:true,origSeg:_this.draggingSeg};if(hit){mutation=computeMutation(initialHit,hit,ev.subjectEl.classList.contains('fc-start-resizer'),eventInstance.range,calendar.pluginSystem.hooks.eventResizeJoinTransforms);}if(mutation){mutatedRelevantEvents=core.applyMutationToEventStore(relevantEvents,calendar.eventUiBases,mutation,calendar);interaction.mutatedEvents=mutatedRelevantEvents;if(!_this.component.isInteractionValid(interaction)){isInvalid=true;mutation=null;mutatedRelevantEvents=null;interaction.mutatedEvents=null;}}if(mutatedRelevantEvents){calendar.dispatch({type:'SET_EVENT_RESIZE',state:interaction});}else{calendar.dispatch({type:'UNSET_EVENT_RESIZE'});}if(!isInvalid){core.enableCursor();}else{core.disableCursor();}if(!isFinal){if(mutation&&isHitsEqual(initialHit,hit)){mutation=null;}_this.validMutation=mutation;_this.mutatedRelevantEvents=mutatedRelevantEvents;}};_this.handleDragEnd=function(ev){var _a=_this.component.context,calendar=_a.calendar,view=_a.view;var eventDef=_this.eventRange.def;var eventInstance=_this.eventRange.instance;var eventApi=new core.EventApi(calendar,eventDef,eventInstance);var relevantEvents=_this.relevantEvents;var mutatedRelevantEvents=_this.mutatedRelevantEvents;calendar.publiclyTrigger('eventResizeStop',[{el:_this.draggingSeg.el,event:eventApi,jsEvent:ev.origEvent,view:view}]);if(_this.validMutation){calendar.dispatch({type:'MERGE_EVENTS',eventStore:mutatedRelevantEvents});calendar.publiclyTrigger('eventResize',[{el:_this.draggingSeg.el,startDelta:_this.validMutation.startDelta||core.createDuration(0),endDelta:_this.validMutation.endDelta||core.createDuration(0),prevEvent:eventApi,event:new core.EventApi(// the data AFTER the mutation\ncalendar,mutatedRelevantEvents.defs[eventDef.defId],eventInstance?mutatedRelevantEvents.instances[eventInstance.instanceId]:null),revert:function(){calendar.dispatch({type:'MERGE_EVENTS',eventStore:relevantEvents});},jsEvent:ev.origEvent,view:view}]);}else{calendar.publiclyTrigger('_noEventResize');}// reset all internal state\n_this.draggingSeg=null;_this.relevantEvents=null;_this.validMutation=null;// okay to keep eventInstance around. useful to set it in handlePointerDown\n};var component=settings.component;var dragging=_this.dragging=new FeaturefulElementDragging(component.el);dragging.pointer.selector='.fc-resizer';dragging.touchScrollAllowed=false;dragging.autoScroller.isEnabled=component.context.options.dragScroll;var hitDragging=_this.hitDragging=new HitDragging(_this.dragging,core.interactionSettingsToStore(settings));hitDragging.emitter.on('pointerdown',_this.handlePointerDown);hitDragging.emitter.on('dragstart',_this.handleDragStart);hitDragging.emitter.on('hitupdate',_this.handleHitUpdate);hitDragging.emitter.on('dragend',_this.handleDragEnd);return _this;}EventDragging.prototype.destroy=function(){this.dragging.destroy();};EventDragging.prototype.querySeg=function(ev){return core.getElSeg(core.elementClosest(ev.subjectEl,this.component.fgSegSelector));};return EventDragging;}(core.Interaction);function computeMutation(hit0,hit1,isFromStart,instanceRange,transforms){var dateEnv=hit0.component.context.dateEnv;var date0=hit0.dateSpan.range.start;var date1=hit1.dateSpan.range.start;var delta=core.diffDates(date0,date1,dateEnv,hit0.component.largeUnit);var props={};for(var _i=0,transforms_1=transforms;_i<transforms_1.length;_i++){var transform=transforms_1[_i];var res=transform(hit0,hit1);if(res===false){return null;}else if(res){__assign(props,res);}}if(isFromStart){if(dateEnv.add(instanceRange.start,delta)<instanceRange.end){props.startDelta=delta;return props;}}else{if(dateEnv.add(instanceRange.end,delta)>instanceRange.start){props.endDelta=delta;return props;}}return null;}var UnselectAuto=/** @class */function(){function UnselectAuto(calendar){var _this=this;this.isRecentPointerDateSelect=false;// wish we could use a selector to detect date selection, but uses hit system\nthis.onSelect=function(selectInfo){if(selectInfo.jsEvent){_this.isRecentPointerDateSelect=true;}};this.onDocumentPointerUp=function(pev){var _a=_this,calendar=_a.calendar,documentPointer=_a.documentPointer;var state=calendar.state;// touch-scrolling should never unfocus any type of selection\nif(!documentPointer.wasTouchScroll){if(state.dateSelection&&// an existing date selection?\n!_this.isRecentPointerDateSelect// a new pointer-initiated date selection since last onDocumentPointerUp?\n){var unselectAuto=calendar.viewOpt('unselectAuto');var unselectCancel=calendar.viewOpt('unselectCancel');if(unselectAuto&&(!unselectAuto||!core.elementClosest(documentPointer.downEl,unselectCancel))){calendar.unselect(pev);}}if(state.eventSelection&&// an existing event selected?\n!core.elementClosest(documentPointer.downEl,EventDragging.SELECTOR)// interaction DIDN'T start on an event\n){calendar.dispatch({type:'UNSELECT_EVENT'});}}_this.isRecentPointerDateSelect=false;};this.calendar=calendar;var documentPointer=this.documentPointer=new PointerDragging(document);documentPointer.shouldIgnoreMove=true;documentPointer.shouldWatchScroll=false;documentPointer.emitter.on('pointerup',this.onDocumentPointerUp);/*\r\n            TODO: better way to know about whether there was a selection with the pointer\r\n            */calendar.on('select',this.onSelect);}UnselectAuto.prototype.destroy=function(){this.calendar.off('select',this.onSelect);this.documentPointer.destroy();};return UnselectAuto;}();/*\r\n    Given an already instantiated draggable object for one-or-more elements,\r\n    Interprets any dragging as an attempt to drag an events that lives outside\r\n    of a calendar onto a calendar.\r\n    */var ExternalElementDragging=/** @class */function(){function ExternalElementDragging(dragging,suppliedDragMeta){var _this=this;this.receivingCalendar=null;this.droppableEvent=null;// will exist for all drags, even if create:false\nthis.suppliedDragMeta=null;this.dragMeta=null;this.handleDragStart=function(ev){_this.dragMeta=_this.buildDragMeta(ev.subjectEl);};this.handleHitUpdate=function(hit,isFinal,ev){var dragging=_this.hitDragging.dragging;var receivingCalendar=null;var droppableEvent=null;var isInvalid=false;var interaction={affectedEvents:core.createEmptyEventStore(),mutatedEvents:core.createEmptyEventStore(),isEvent:_this.dragMeta.create,origSeg:null};if(hit){receivingCalendar=hit.component.context.calendar;if(_this.canDropElOnCalendar(ev.subjectEl,receivingCalendar)){droppableEvent=computeEventForDateSpan(hit.dateSpan,_this.dragMeta,receivingCalendar);interaction.mutatedEvents=core.eventTupleToStore(droppableEvent);isInvalid=!core.isInteractionValid(interaction,receivingCalendar);if(isInvalid){interaction.mutatedEvents=core.createEmptyEventStore();droppableEvent=null;}}}_this.displayDrag(receivingCalendar,interaction);// show mirror if no already-rendered mirror element OR if we are shutting down the mirror (?)\n// TODO: wish we could somehow wait for dispatch to guarantee render\ndragging.setMirrorIsVisible(isFinal||!droppableEvent||!document.querySelector('.fc-mirror'));if(!isInvalid){core.enableCursor();}else{core.disableCursor();}if(!isFinal){dragging.setMirrorNeedsRevert(!droppableEvent);_this.receivingCalendar=receivingCalendar;_this.droppableEvent=droppableEvent;}};this.handleDragEnd=function(pev){var _a=_this,receivingCalendar=_a.receivingCalendar,droppableEvent=_a.droppableEvent;_this.clearDrag();if(receivingCalendar&&droppableEvent){var finalHit=_this.hitDragging.finalHit;var finalView=finalHit.component.context.view;var dragMeta=_this.dragMeta;var arg=__assign({},receivingCalendar.buildDatePointApi(finalHit.dateSpan),{draggedEl:pev.subjectEl,jsEvent:pev.origEvent,view:finalView});receivingCalendar.publiclyTrigger('drop',[arg]);if(dragMeta.create){receivingCalendar.dispatch({type:'MERGE_EVENTS',eventStore:core.eventTupleToStore(droppableEvent)});if(pev.isTouch){receivingCalendar.dispatch({type:'SELECT_EVENT',eventInstanceId:droppableEvent.instance.instanceId});}// signal that an external event landed\nreceivingCalendar.publiclyTrigger('eventReceive',[{draggedEl:pev.subjectEl,event:new core.EventApi(receivingCalendar,droppableEvent.def,droppableEvent.instance),view:finalView}]);}}_this.receivingCalendar=null;_this.droppableEvent=null;};var hitDragging=this.hitDragging=new HitDragging(dragging,core.interactionSettingsStore);hitDragging.requireInitial=false;// will start outside of a component\nhitDragging.emitter.on('dragstart',this.handleDragStart);hitDragging.emitter.on('hitupdate',this.handleHitUpdate);hitDragging.emitter.on('dragend',this.handleDragEnd);this.suppliedDragMeta=suppliedDragMeta;}ExternalElementDragging.prototype.buildDragMeta=function(subjectEl){if(typeof this.suppliedDragMeta==='object'){return core.parseDragMeta(this.suppliedDragMeta);}else if(typeof this.suppliedDragMeta==='function'){return core.parseDragMeta(this.suppliedDragMeta(subjectEl));}else{return getDragMetaFromEl(subjectEl);}};ExternalElementDragging.prototype.displayDrag=function(nextCalendar,state){var prevCalendar=this.receivingCalendar;if(prevCalendar&&prevCalendar!==nextCalendar){prevCalendar.dispatch({type:'UNSET_EVENT_DRAG'});}if(nextCalendar){nextCalendar.dispatch({type:'SET_EVENT_DRAG',state:state});}};ExternalElementDragging.prototype.clearDrag=function(){if(this.receivingCalendar){this.receivingCalendar.dispatch({type:'UNSET_EVENT_DRAG'});}};ExternalElementDragging.prototype.canDropElOnCalendar=function(el,receivingCalendar){var dropAccept=receivingCalendar.opt('dropAccept');if(typeof dropAccept==='function'){return dropAccept(el);}else if(typeof dropAccept==='string'&&dropAccept){return Boolean(core.elementMatches(el,dropAccept));}return true;};return ExternalElementDragging;}();// Utils for computing event store from the DragMeta\n// ----------------------------------------------------------------------------------------------------\nfunction computeEventForDateSpan(dateSpan,dragMeta,calendar){var defProps=__assign({},dragMeta.leftoverProps);for(var _i=0,_a=calendar.pluginSystem.hooks.externalDefTransforms;_i<_a.length;_i++){var transform=_a[_i];__assign(defProps,transform(dateSpan,dragMeta));}var def=core.parseEventDef(defProps,dragMeta.sourceId,dateSpan.allDay,calendar.opt('forceEventDuration')||Boolean(dragMeta.duration),// hasEnd\ncalendar);var start=dateSpan.range.start;// only rely on time info if drop zone is all-day,\n// otherwise, we already know the time\nif(dateSpan.allDay&&dragMeta.startTime){start=calendar.dateEnv.add(start,dragMeta.startTime);}var end=dragMeta.duration?calendar.dateEnv.add(start,dragMeta.duration):calendar.getDefaultEventEnd(dateSpan.allDay,start);var instance=core.createEventInstance(def.defId,{start:start,end:end});return{def:def,instance:instance};}// Utils for extracting data from element\n// ----------------------------------------------------------------------------------------------------\nfunction getDragMetaFromEl(el){var str=getEmbeddedElData(el,'event');var obj=str?JSON.parse(str):{create:false};// if no embedded data, assume no event creation\nreturn core.parseDragMeta(obj);}core.config.dataAttrPrefix='';function getEmbeddedElData(el,name){var prefix=core.config.dataAttrPrefix;var prefixedName=(prefix?prefix+'-':'')+name;return el.getAttribute('data-'+prefixedName)||'';}/*\r\n    Makes an element (that is *external* to any calendar) draggable.\r\n    Can pass in data that determines how an event will be created when dropped onto a calendar.\r\n    Leverages FullCalendar's internal drag-n-drop functionality WITHOUT a third-party drag system.\r\n    */var ExternalDraggable=/** @class */function(){function ExternalDraggable(el,settings){var _this=this;if(settings===void 0){settings={};}this.handlePointerDown=function(ev){var dragging=_this.dragging;var _a=_this.settings,minDistance=_a.minDistance,longPressDelay=_a.longPressDelay;dragging.minDistance=minDistance!=null?minDistance:ev.isTouch?0:core.globalDefaults.eventDragMinDistance;dragging.delay=ev.isTouch?// TODO: eventually read eventLongPressDelay instead vvv\nlongPressDelay!=null?longPressDelay:core.globalDefaults.longPressDelay:0;};this.handleDragStart=function(ev){if(ev.isTouch&&_this.dragging.delay&&ev.subjectEl.classList.contains('fc-event')){_this.dragging.mirror.getMirrorEl().classList.add('fc-selected');}};this.settings=settings;var dragging=this.dragging=new FeaturefulElementDragging(el);dragging.touchScrollAllowed=false;if(settings.itemSelector!=null){dragging.pointer.selector=settings.itemSelector;}if(settings.appendTo!=null){dragging.mirror.parentNode=settings.appendTo;// TODO: write tests\n}dragging.emitter.on('pointerdown',this.handlePointerDown);dragging.emitter.on('dragstart',this.handleDragStart);new ExternalElementDragging(dragging,settings.eventData);}ExternalDraggable.prototype.destroy=function(){this.dragging.destroy();};return ExternalDraggable;}();/*\r\n    Detects when a *THIRD-PARTY* drag-n-drop system interacts with elements.\r\n    The third-party system is responsible for drawing the visuals effects of the drag.\r\n    This class simply monitors for pointer movements and fires events.\r\n    It also has the ability to hide the moving element (the \"mirror\") during the drag.\r\n    */var InferredElementDragging=/** @class */function(_super){__extends(InferredElementDragging,_super);function InferredElementDragging(containerEl){var _this=_super.call(this,containerEl)||this;_this.shouldIgnoreMove=false;_this.mirrorSelector='';_this.currentMirrorEl=null;_this.handlePointerDown=function(ev){_this.emitter.trigger('pointerdown',ev);if(!_this.shouldIgnoreMove){// fire dragstart right away. does not support delay or min-distance\n_this.emitter.trigger('dragstart',ev);}};_this.handlePointerMove=function(ev){if(!_this.shouldIgnoreMove){_this.emitter.trigger('dragmove',ev);}};_this.handlePointerUp=function(ev){_this.emitter.trigger('pointerup',ev);if(!_this.shouldIgnoreMove){// fire dragend right away. does not support a revert animation\n_this.emitter.trigger('dragend',ev);}};var pointer=_this.pointer=new PointerDragging(containerEl);pointer.emitter.on('pointerdown',_this.handlePointerDown);pointer.emitter.on('pointermove',_this.handlePointerMove);pointer.emitter.on('pointerup',_this.handlePointerUp);return _this;}InferredElementDragging.prototype.destroy=function(){this.pointer.destroy();};InferredElementDragging.prototype.setIgnoreMove=function(bool){this.shouldIgnoreMove=bool;};InferredElementDragging.prototype.setMirrorIsVisible=function(bool){if(bool){// restore a previously hidden element.\n// use the reference in case the selector class has already been removed.\nif(this.currentMirrorEl){this.currentMirrorEl.style.visibility='';this.currentMirrorEl=null;}}else{var mirrorEl=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;if(mirrorEl){this.currentMirrorEl=mirrorEl;mirrorEl.style.visibility='hidden';}}};return InferredElementDragging;}(core.ElementDragging);/*\r\n    Bridges third-party drag-n-drop systems with FullCalendar.\r\n    Must be instantiated and destroyed by caller.\r\n    */var ThirdPartyDraggable=/** @class */function(){function ThirdPartyDraggable(containerOrSettings,settings){var containerEl=document;if(// wish we could just test instanceof EventTarget, but doesn't work in IE11\ncontainerOrSettings===document||containerOrSettings instanceof Element){containerEl=containerOrSettings;settings=settings||{};}else{settings=containerOrSettings||{};}var dragging=this.dragging=new InferredElementDragging(containerEl);if(typeof settings.itemSelector==='string'){dragging.pointer.selector=settings.itemSelector;}else if(containerEl===document){dragging.pointer.selector='[data-event]';}if(typeof settings.mirrorSelector==='string'){dragging.mirrorSelector=settings.mirrorSelector;}new ExternalElementDragging(dragging,settings.eventData);}ThirdPartyDraggable.prototype.destroy=function(){this.dragging.destroy();};return ThirdPartyDraggable;}();var main=core.createPlugin({componentInteractions:[DateClicking,DateSelecting,EventDragging,EventDragging$1],calendarInteractions:[UnselectAuto],elementDraggingImpl:FeaturefulElementDragging});exports.Draggable=ExternalDraggable;exports.FeaturefulElementDragging=FeaturefulElementDragging;exports.PointerDragging=PointerDragging;exports.ThirdPartyDraggable=ThirdPartyDraggable;exports.default=main;Object.defineProperty(exports,'__esModule',{value:true});});/*!\r\nFullCalendar Bootstrap Plugin v4.1.0\r\nDocs & License: https://fullcalendar.io/\r\n(c) 2019 Adam Shaw\r\n*/(function(global,factory){ true?factory(exports,__webpack_require__(Object(function webpackMissingModule() { var e = new Error(\"Cannot find module '@fullcalendar/core'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))):0;})(this,function(exports,core){'use strict';/*! *****************************************************************************\r\n    Copyright (c) Microsoft Corporation. All rights reserved.\r\n    Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n    this file except in compliance with the License. You may obtain a copy of the\r\n    License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n    MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n    See the Apache Version 2.0 License for specific language governing permissions\r\n    and limitations under the License.\r\n    ***************************************************************************** */ /* global Reflect, Promise */var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b;}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p];};return extendStatics(d,b);};function __extends(d,b){extendStatics(d,b);function __(){this.constructor=d;}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __());}var BootstrapTheme=/** @class */function(_super){__extends(BootstrapTheme,_super);function BootstrapTheme(){return _super!==null&&_super.apply(this,arguments)||this;}return BootstrapTheme;}(core.Theme);BootstrapTheme.prototype.classes={widget:'fc-bootstrap',tableGrid:'table-bordered',tableList:'table',tableListHeading:'table-active',buttonGroup:'btn-group',button:'btn btn-default',buttonActive:'active',today:'alert alert-info',popover:'card card-primary',popoverHeader:'card-header',popoverContent:'card-body',// day grid\n// for left/right border color when border is inset from edges (all-day in timeGrid view)\n// avoid `table` class b/c don't want margins/padding/structure. only border color.\nheaderRow:'table-bordered',dayRow:'table-bordered',// list view\nlistView:'card card-primary'};BootstrapTheme.prototype.baseIconClass='fal';BootstrapTheme.prototype.iconClasses={close:'fa-times',prev:'fa-chevron-left',next:'fa-chevron-right',prevYear:'fa-angle-double-left',nextYear:'fa-angle-double-right'};BootstrapTheme.prototype.iconOverrideOption='bootstrapFontAwesome';BootstrapTheme.prototype.iconOverrideCustomButtonOption='bootstrapFontAwesome';BootstrapTheme.prototype.iconOverridePrefix='fa-';var main=core.createPlugin({themeClasses:{bootstrap:BootstrapTheme}});exports.BootstrapTheme=BootstrapTheme;exports.default=main;Object.defineProperty(exports,'__esModule',{value:true});});// ----------- fullcalendar.bundle.js END -------------\n// ----------- sparkline.bundle.js START -------------\n/**\r\n*\r\n* jquery.sparkline.js\r\n*\r\n* v2.4.1\r\n* (c) Splunk, Inc\r\n* Contact: Gareth Watts (gareth@splunk.com)\r\n* http://omnipotent.net/jquery.sparkline/\r\n*\r\n* Generates inline sparkline charts from data supplied either to the method\r\n* or inline in HTML\r\n*\r\n* Compatible with Internet Explorer 6.0+ and modern browsers equipped with the canvas tag\r\n* (Firefox 2.0+, Safari, Opera, etc)\r\n*\r\n* License: New BSD License\r\n*\r\n* Copyright (c) 2012, Splunk Inc.\r\n* All rights reserved.\r\n*\r\n* Redistribution and use in source and binary forms, with or without modification,\r\n* are permitted provided that the following conditions are met:\r\n*\r\n*     * Redistributions of source code must retain the above copyright notice,\r\n*       this list of conditions and the following disclaimer.\r\n*     * Redistributions in binary form must reproduce the above copyright notice,\r\n*       this list of conditions and the following disclaimer in the documentation\r\n*       and/or other materials provided with the distribution.\r\n*     * Neither the name of Splunk Inc nor the names of its contributors may\r\n*       be used to endorse or promote products derived from this software without\r\n*       specific prior written permission.\r\n*\r\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY\r\n* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r\n* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT\r\n* SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\r\n* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\r\n* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r\n* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\r\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r\n* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r\n*\r\n*\r\n* Usage:\r\n*  $(selector).sparkline(values, options)\r\n*\r\n* If values is undefined or set to 'html' then the data values are read from the specified tag:\r\n*   <p>Sparkline: <span class=\"sparkline\">1,4,6,6,8,5,3,5</span></p>\r\n*   $('.sparkline').sparkline();\r\n* There must be no spaces in the enclosed data set\r\n*\r\n* Otherwise values must be an array of numbers or null values\r\n*    <p>Sparkline: <span id=\"sparkline1\">This text replaced if the browser is compatible</span></p>\r\n*    $('#sparkline1').sparkline([1,4,6,6,8,5,3,5])\r\n*    $('#sparkline2').sparkline([1,4,6,null,null,5,3,5])\r\n*\r\n* Values can also be specified in an HTML comment, or as a values attribute:\r\n*    <p>Sparkline: <span class=\"sparkline\"><!--1,4,6,6,8,5,3,5 --></span></p>\r\n*    <p>Sparkline: <span class=\"sparkline\" values=\"1,4,6,6,8,5,3,5\"></span></p>\r\n*    $('.sparkline').sparkline();\r\n*\r\n* For line charts, x values can also be specified:\r\n*   <p>Sparkline: <span class=\"sparkline\">1:1,2.7:4,3.4:6,5:6,6:8,8.7:5,9:3,10:5</span></p>\r\n*    $('#sparkline1').sparkline([ [1,1], [2.7,4], [3.4,6], [5,6], [6,8], [8.7,5], [9,3], [10,5] ])\r\n*\r\n* By default, options should be passed in as the second argument to the sparkline function:\r\n*   $('.sparkline').sparkline([1,2,3,4], {type: 'bar'})\r\n*\r\n* Options can also be set by passing them on the tag itself.  This feature is disabled by default though\r\n* as there's a slight performance overhead:\r\n*   $('.sparkline').sparkline([1,2,3,4], {enableTagOptions: true})\r\n*   <p>Sparkline: <span class=\"sparkline\" sparkType=\"bar\" sparkBarColor=\"red\">loading</span></p>\r\n* Prefix all options supplied as tag attribute with \"spark\" (configurable by setting tagOptionsPrefix)\r\n*\r\n* Supported options:\r\n*   lineColor - Color of the line used for the chart\r\n*   fillColor - Color used to fill in the chart - Set to '' or false for a transparent chart\r\n*   width - Width of the chart - Defaults to 3 times the number of values in pixels\r\n*   height - Height of the chart - Defaults to the height of the containing element\r\n*   chartRangeMin - Specify the minimum value to use for the Y range of the chart - Defaults to the minimum value supplied\r\n*   chartRangeMax - Specify the maximum value to use for the Y range of the chart - Defaults to the maximum value supplied\r\n*   chartRangeClip - Clip out of range values to the max/min specified by chartRangeMin and chartRangeMax\r\n*   chartRangeMinX - Specify the minimum value to use for the X range of the chart - Defaults to the minimum value supplied\r\n*   chartRangeMaxX - Specify the maximum value to use for the X range of the chart - Defaults to the maximum value supplied\r\n*   composite - If true then don't erase any existing chart attached to the tag, but draw\r\n*           another chart over the top - Note that width and height are ignored if an\r\n*           existing chart is detected.\r\n*   tagValuesAttribute - Name of tag attribute to check for data values - Defaults to 'values'\r\n*   enableTagOptions - Whether to check tags for sparkline options\r\n*   tagOptionsPrefix - Prefix used for options supplied as tag attributes - Defaults to 'spark'\r\n*   disableHiddenCheck - If set to true, then the plugin will assume that charts will never be drawn into a\r\n*           hidden dom element, avoding a browser reflow\r\n*   disableInteraction - If set to true then all mouseover/click interaction behaviour will be disabled,\r\n*       making the plugin perform much like it did in 1.x\r\n*   disableTooltips - If set to true then tooltips will be disabled - Defaults to false (tooltips enabled)\r\n*   disableHighlight - If set to true then highlighting of selected chart elements on mouseover will be disabled\r\n*       defaults to false (highlights enabled)\r\n*   highlightLighten - Factor to lighten/darken highlighted chart values by - Defaults to 1.4 for a 40% increase\r\n*   tooltipContainer - Specify which DOM element the tooltip should be rendered into - defaults to document.body\r\n*   tooltipClassname - Optional CSS classname to apply to tooltips - If not specified then a default style will be applied\r\n*   tooltipOffsetX - How many pixels away from the mouse pointer to render the tooltip on the X axis\r\n*   tooltipOffsetY - How many pixels away from the mouse pointer to render the tooltip on the r axis\r\n*   tooltipFormatter  - Optional callback that allows you to override the HTML displayed in the tooltip\r\n*       callback is given arguments of (sparkline, options, fields)\r\n*   tooltipChartTitle - If specified then the tooltip uses the string specified by this setting as a title\r\n*   tooltipFormat - A format string or SPFormat object  (or an array thereof for multiple entries)\r\n*       to control the format of the tooltip\r\n*   tooltipPrefix - A string to prepend to each field displayed in a tooltip\r\n*   tooltipSuffix - A string to append to each field displayed in a tooltip\r\n*   tooltipSkipNull - If true then null values will not have a tooltip displayed (defaults to true)\r\n*   tooltipValueLookups - An object or range map to map field values to tooltip strings\r\n*       (eg. to map -1 to \"Lost\", 0 to \"Draw\", and 1 to \"Win\")\r\n*   numberFormatter - Optional callback for formatting numbers in tooltips\r\n*   numberDigitGroupSep - Character to use for group separator in numbers \"1,234\" - Defaults to \",\"\r\n*   numberDecimalMark - Character to use for the decimal point when formatting numbers - Defaults to \".\"\r\n*   numberDigitGroupCount - Number of digits between group separator - Defaults to 3\r\n*\r\n* There are 7 types of sparkline, selected by supplying a \"type\" option of 'line' (default),\r\n* 'bar', 'tristate', 'bullet', 'discrete', 'pie' or 'box'\r\n*    line - Line chart.  Options:\r\n*       spotColor - Set to '' to not end each line in a circular spot\r\n*       minSpotColor - If set, color of spot at minimum value\r\n*       maxSpotColor - If set, color of spot at maximum value\r\n*       spotRadius - Radius in pixels\r\n*       lineWidth - Width of line in pixels\r\n*       normalRangeMin\r\n*       normalRangeMax - If set draws a filled horizontal bar between these two values marking the \"normal\"\r\n*                      or expected range of values\r\n*       normalRangeColor - Color to use for the above bar\r\n*       drawNormalOnTop - Draw the normal range above the chart fill color if true\r\n*       defaultPixelsPerValue - Defaults to 3 pixels of width for each value in the chart\r\n*       highlightSpotColor - The color to use for drawing a highlight spot on mouseover - Set to null to disable\r\n*       highlightLineColor - The color to use for drawing a highlight line on mouseover - Set to null to disable\r\n*       valueSpots - Specify which points to draw spots on, and in which color.  Accepts a range map\r\n*\r\n*   bar - Bar chart.  Options:\r\n*       barColor - Color of bars for postive values\r\n*       negBarColor - Color of bars for negative values\r\n*       zeroColor - Color of bars with zero values\r\n*       nullColor - Color of bars with null values - Defaults to omitting the bar entirely\r\n*       barWidth - Width of bars in pixels\r\n*       colorMap - Optional mappnig of values to colors to override the *BarColor values above\r\n*                  can be an Array of values to control the color of individual bars or a range map\r\n*                  to specify colors for individual ranges of values\r\n*       barSpacing - Gap between bars in pixels\r\n*       zeroAxis - Centers the y-axis around zero if true\r\n*\r\n*   tristate - Charts values of win (>0), lose (<0) or draw (=0)\r\n*       posBarColor - Color of win values\r\n*       negBarColor - Color of lose values\r\n*       zeroBarColor - Color of draw values\r\n*       barWidth - Width of bars in pixels\r\n*       barSpacing - Gap between bars in pixels\r\n*       colorMap - Optional mappnig of values to colors to override the *BarColor values above\r\n*                  can be an Array of values to control the color of individual bars or a range map\r\n*                  to specify colors for individual ranges of values\r\n*\r\n*   discrete - Options:\r\n*       lineHeight - Height of each line in pixels - Defaults to 30% of the graph height\r\n*       thesholdValue - Values less than this value will be drawn using thresholdColor instead of lineColor\r\n*       thresholdColor\r\n*\r\n*   bullet - Values for bullet graphs msut be in the order: target, performance, range1, range2, range3, ...\r\n*       options:\r\n*       targetColor - The color of the vertical target marker\r\n*       targetWidth - The width of the target marker in pixels\r\n*       performanceColor - The color of the performance measure horizontal bar\r\n*       rangeColors - Colors to use for each qualitative range background color\r\n*\r\n*   pie - Pie chart. Options:\r\n*       sliceColors - An array of colors to use for pie slices\r\n*       offset - Angle in degrees to offset the first slice - Try -90 or +90\r\n*       borderWidth - Width of border to draw around the pie chart, in pixels - Defaults to 0 (no border)\r\n*       borderColor - Color to use for the pie chart border - Defaults to #000\r\n*\r\n*   box - Box plot. Options:\r\n*       raw - Set to true to supply pre-computed plot points as values\r\n*             values should be: low_outlier, low_whisker, q1, median, q3, high_whisker, high_outlier\r\n*             When set to false you can supply any number of values and the box plot will\r\n*             be computed for you.  Default is false.\r\n*       showOutliers - Set to true (default) to display outliers as circles\r\n*       outlierIQR - Interquartile range used to determine outliers.  Default 1.5\r\n*       boxLineColor - Outline color of the box\r\n*       boxFillColor - Fill color for the box\r\n*       whiskerColor - Line color used for whiskers\r\n*       outlierLineColor - Outline color of outlier circles\r\n*       outlierFillColor - Fill color of the outlier circles\r\n*       spotRadius - Radius of outlier circles\r\n*       medianColor - Line color of the median line\r\n*       target - Draw a target cross hair at the supplied value (default undefined)\r\n*\r\n*\r\n*\r\n*   Examples:\r\n*   $('#sparkline1').sparkline(myvalues, { lineColor: '#f00', fillColor: false });\r\n*   $('.barsparks').sparkline('html', { type:'bar', height:'40px', barWidth:5 });\r\n*   $('#tristate').sparkline([1,1,-1,1,0,0,-1], { type:'tristate' }):\r\n*   $('#discrete').sparkline([1,3,4,5,5,3,4,5], { type:'discrete' });\r\n*   $('#bullet').sparkline([10,12,12,9,7], { type:'bullet' });\r\n*   $('#pie').sparkline([1,1,2], { type:'pie' });\r\n*/ /*jslint regexp: true, browser: true, jquery: true, white: true, nomen: false, plusplus: false, maxerr: 500, indent: 4 */(function(document,Math,undefined){// performance/minified-size optimization\n(function(factory){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($){'use strict';var UNSET_OPTION={},getDefaults,createClass,SPFormat,clipval,quartile,normalizeValue,normalizeValues,remove,isNumber,all,sum,addCSS,ensureArray,formatNumber,RangeMap,MouseHandler,Tooltip,barHighlightMixin,line,bar,tristate,discrete,bullet,pie,box,defaultStyles,initStyles,VShape,VCanvas_base,VCanvas_canvas,VCanvas_vml,pending,shapeCount=0;/**\r\n         * Default configuration settings\r\n         */getDefaults=function(){return{// Settings common to most/all chart types\ncommon:{type:'line',lineColor:'#00f',fillColor:'#cdf',defaultPixelsPerValue:3,width:'auto',height:'auto',composite:false,tagValuesAttribute:'values',tagOptionsPrefix:'spark',enableTagOptions:false,enableHighlight:true,highlightLighten:1.4,tooltipSkipNull:true,tooltipPrefix:'',tooltipSuffix:'',disableHiddenCheck:false,numberFormatter:false,numberDigitGroupCount:3,numberDigitGroupSep:',',numberDecimalMark:'.',disableTooltips:false,disableInteraction:false},// Defaults for line charts\nline:{spotColor:'#f80',highlightSpotColor:'#5f5',highlightLineColor:'#f22',spotRadius:1.5,minSpotColor:'#f80',maxSpotColor:'#f80',lineWidth:1,normalRangeMin:undefined,normalRangeMax:undefined,normalRangeColor:'#ccc',drawNormalOnTop:false,chartRangeMin:undefined,chartRangeMax:undefined,chartRangeMinX:undefined,chartRangeMaxX:undefined,tooltipFormat:new SPFormat('<span style=\"color: {{color}}\">&#9679;</span> {{prefix}}{{y}}{{suffix}}')},// Defaults for bar charts\nbar:{barColor:'#3366cc',negBarColor:'#f44',stackedBarColor:['#3366cc','#dc3912','#ff9900','#109618','#66aa00','#dd4477','#0099c6','#990099'],zeroColor:undefined,nullColor:undefined,zeroAxis:true,barWidth:4,barSpacing:1,chartRangeMax:undefined,chartRangeMin:undefined,chartRangeClip:false,colorMap:undefined,tooltipFormat:new SPFormat('<span style=\"color: {{color}}\">&#9679;</span> {{prefix}}{{value}}{{suffix}}')},// Defaults for tristate charts\ntristate:{barWidth:4,barSpacing:1,posBarColor:'#6f6',negBarColor:'#f44',zeroBarColor:'#999',colorMap:{},tooltipFormat:new SPFormat('<span style=\"color: {{color}}\">&#9679;</span> {{value:map}}'),tooltipValueLookups:{map:{'-1':'Loss','0':'Draw','1':'Win'}}},// Defaults for discrete charts\ndiscrete:{lineHeight:'auto',thresholdColor:undefined,thresholdValue:0,chartRangeMax:undefined,chartRangeMin:undefined,chartRangeClip:false,tooltipFormat:new SPFormat('{{prefix}}{{value}}{{suffix}}')},// Defaults for bullet charts\nbullet:{targetColor:'#f33',targetWidth:3,// width of the target bar in pixels\nperformanceColor:'#33f',rangeColors:['#d3dafe','#a8b6ff','#7f94ff'],base:undefined,// set this to a number to change the base start number\ntooltipFormat:new SPFormat('{{fieldkey:fields}} - {{value}}'),tooltipValueLookups:{fields:{r:'Range',p:'Performance',t:'Target'}}},// Defaults for pie charts\npie:{offset:0,sliceColors:['#3366cc','#dc3912','#ff9900','#109618','#66aa00','#dd4477','#0099c6','#990099'],borderWidth:0,borderColor:'#000',tooltipFormat:new SPFormat('<span style=\"color: {{color}}\">&#9679;</span> {{value}} ({{percent.1}}%)')},// Defaults for box plots\nbox:{raw:false,boxLineColor:'#000',boxFillColor:'#cdf',whiskerColor:'#000',outlierLineColor:'#333',outlierFillColor:'#fff',medianColor:'#f00',showOutliers:true,outlierIQR:1.5,spotRadius:1.5,target:undefined,targetColor:'#4a2',chartRangeMax:undefined,chartRangeMin:undefined,tooltipFormat:new SPFormat('{{field:fields}}: {{value}}'),tooltipFormatFieldlistKey:'field',tooltipValueLookups:{fields:{lq:'Lower Quartile',med:'Median',uq:'Upper Quartile',lo:'Left Outlier',ro:'Right Outlier',lw:'Left Whisker',rw:'Right Whisker'}}}};};// You can have tooltips use a css class other than jqstooltip by specifying tooltipClassname\ndefaultStyles='.jqstooltip { '+'position: absolute;'+'left: 0px;'+'top: 0px;'+'visibility: hidden;'+'background: rgb(0, 0, 0) transparent;'+'background-color: rgba(0,0,0,0.6);'+'filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);'+'-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)\";'+'color: white;'+'font: 10px arial, san serif;'+'text-align: left;'+'white-space: nowrap;'+'padding: 5px;'+'border: 1px solid white;'+'box-sizing: content-box;'+'z-index: 10000;'+'}'+'.jqsfield { '+'color: white;'+'font: 10px arial, san serif;'+'text-align: left;'+'}';/**\r\n         * Utilities\r\n         */createClass=function/* [baseclass, [mixin, ...]], definition */(){var Class,args;Class=function(){this.init.apply(this,arguments);};if(arguments.length>1){if(arguments[0]){Class.prototype=$.extend(new arguments[0](),arguments[arguments.length-1]);Class._super=arguments[0].prototype;}else{Class.prototype=arguments[arguments.length-1];}if(arguments.length>2){args=Array.prototype.slice.call(arguments,1,-1);args.unshift(Class.prototype);$.extend.apply($,args);}}else{Class.prototype=arguments[0];}Class.prototype.cls=Class;return Class;};/**\r\n         * Wraps a format string for tooltips\r\n         * {{x}}\r\n         * {{x.2}\r\n         * {{x:months}}\r\n         */$.SPFormatClass=SPFormat=createClass({fre:/\\{\\{([\\w.]+?)(:(.+?))?\\}\\}/g,precre:/(\\w+)\\.(\\d+)/,init:function(format,fclass){this.format=format;this.fclass=fclass;},render:function(fieldset,lookups,options){var self=this,fields=fieldset,match,token,lookupkey,fieldvalue,prec;return this.format.replace(this.fre,function(){var lookup;token=arguments[1];lookupkey=arguments[3];match=self.precre.exec(token);if(match){prec=match[2];token=match[1];}else{prec=false;}fieldvalue=fields[token];if(fieldvalue===undefined){return'';}if(lookupkey&&lookups&&lookups[lookupkey]){lookup=lookups[lookupkey];if(lookup.get){// RangeMap\nreturn lookups[lookupkey].get(fieldvalue)||fieldvalue;}else{return lookups[lookupkey][fieldvalue]||fieldvalue;}}if(isNumber(fieldvalue)){if(options.get('numberFormatter')){fieldvalue=options.get('numberFormatter')(fieldvalue);}else{fieldvalue=formatNumber(fieldvalue,prec,options.get('numberDigitGroupCount'),options.get('numberDigitGroupSep'),options.get('numberDecimalMark'));}}return fieldvalue;});}});// convience method to avoid needing the new operator\n$.spformat=function(format,fclass){return new SPFormat(format,fclass);};clipval=function(val,min,max){if(val<min){return min;}if(val>max){return max;}return val;};quartile=function(values,q){var vl;if(q===2){vl=Math.floor(values.length/2);return values.length%2?values[vl]:(values[vl-1]+values[vl])/2;}else{if(values.length%2){// odd\nvl=(values.length*q+q)/4;return vl%1?(values[Math.floor(vl)]+values[Math.floor(vl)-1])/2:values[vl-1];}else{//even\nvl=(values.length*q+2)/4;return vl%1?(values[Math.floor(vl)]+values[Math.floor(vl)-1])/2:values[vl-1];}}};normalizeValue=function(val){var nf;switch(val){case'undefined':val=undefined;break;case'null':val=null;break;case'true':val=true;break;case'false':val=false;break;default:nf=parseFloat(val);if(val==nf){val=nf;}}return val;};normalizeValues=function(vals){var i,result=[];for(i=vals.length;i--;){result[i]=normalizeValue(vals[i]);}return result;};remove=function(vals,filter){var i,vl,result=[];for(i=0,vl=vals.length;i<vl;i++){if(vals[i]!==filter){result.push(vals[i]);}}return result;};isNumber=function(num){return!isNaN(parseFloat(num))&&isFinite(num);};formatNumber=function(num,prec,groupsize,groupsep,decsep){var p,i;num=(prec===false?parseFloat(num).toString():num.toFixed(prec)).split('');p=(p=$.inArray('.',num))<0?num.length:p;if(p<num.length){num[p]=decsep;}for(i=p-groupsize;i>0;i-=groupsize){num.splice(i,0,groupsep);}return num.join('');};// determine if all values of an array match a value\n// returns true if the array is empty\nall=function(val,arr,ignoreNull){var i;for(i=arr.length;i--;){if(ignoreNull&&arr[i]===null)continue;if(arr[i]!==val){return false;}}return true;};// sums the numeric values in an array, ignoring other values\nsum=function(vals){var total=0,i;for(i=vals.length;i--;){total+=typeof vals[i]==='number'?vals[i]:0;}return total;};ensureArray=function(val){return $.isArray(val)?val:[val];};// http://paulirish.com/2008/bookmarklet-inject-new-css-rules/\naddCSS=function(css){var tag,iefail;if(document.createStyleSheet){try{document.createStyleSheet().cssText=css;return;}catch(e){// IE <= 9 maxes out at 31 stylesheets; inject into page instead.\niefail=true;}}tag=document.createElement('style');tag.type='text/css';document.getElementsByTagName('head')[0].appendChild(tag);if(iefail){document.styleSheets[document.styleSheets.length-1].cssText=css;}else{tag[typeof document.body.style.WebkitAppearance=='string'/* webkit only */?'innerText':'innerHTML']=css;}};// Provide a cross-browser interface to a few simple drawing primitives\n$.fn.simpledraw=function(width,height,useExisting,interact){var target,mhandler;if(useExisting&&(target=this.data('_jqs_vcanvas'))){return target;}if($.fn.sparkline.canvas===false){// We've already determined that neither Canvas nor VML are available\nreturn false;}else if($.fn.sparkline.canvas===undefined){// No function defined yet -- need to see if we support Canvas or VML\nvar el=document.createElement('canvas');if(!!(el.getContext&&el.getContext('2d'))){// Canvas is available\n$.fn.sparkline.canvas=function(width,height,target,interact){return new VCanvas_canvas(width,height,target,interact);};}else if(document.namespaces&&!document.namespaces.v){// VML is available\ndocument.namespaces.add('v','urn:schemas-microsoft-com:vml','#default#VML');$.fn.sparkline.canvas=function(width,height,target,interact){return new VCanvas_vml(width,height,target);};}else{// Neither Canvas nor VML are available\n$.fn.sparkline.canvas=false;return false;}}if(width===undefined){width=$(this).innerWidth();}if(height===undefined){height=$(this).innerHeight();}target=$.fn.sparkline.canvas(width,height,this,interact);mhandler=$(this).data('_jqs_mhandler');if(mhandler){mhandler.registerCanvas(target);}return target;};$.fn.cleardraw=function(){var target=this.data('_jqs_vcanvas');if(target){target.reset();}};$.RangeMapClass=RangeMap=createClass({init:function(map){var key,range,rangelist=[];for(key in map){if(map.hasOwnProperty(key)&&typeof key==='string'&&key.indexOf(':')>-1){range=key.split(':');range[0]=range[0].length===0?-Infinity:parseFloat(range[0]);range[1]=range[1].length===0?Infinity:parseFloat(range[1]);range[2]=map[key];rangelist.push(range);}}this.map=map;this.rangelist=rangelist||false;},get:function(value){var rangelist=this.rangelist,i,range,result;if((result=this.map[value])!==undefined){return result;}if(rangelist){for(i=rangelist.length;i--;){range=rangelist[i];if(range[0]<=value&&range[1]>=value){return range[2];}}}return undefined;}});// Convenience function\n$.range_map=function(map){return new RangeMap(map);};MouseHandler=createClass({init:function(el,options){var $el=$(el);this.$el=$el;this.options=options;this.currentPageX=0;this.currentPageY=0;this.el=el;this.splist=[];this.tooltip=null;this.over=false;this.displayTooltips=!options.get('disableTooltips');this.highlightEnabled=!options.get('disableHighlight');},registerSparkline:function(sp){this.splist.push(sp);if(this.over){this.updateDisplay();}},registerCanvas:function(canvas){var $canvas=$(canvas.canvas);this.canvas=canvas;this.$canvas=$canvas;$canvas.mouseenter($.proxy(this.mouseenter,this));$canvas.mouseleave($.proxy(this.mouseleave,this));$canvas.click($.proxy(this.mouseclick,this));},reset:function(removeTooltip){this.splist=[];if(this.tooltip&&removeTooltip){this.tooltip.remove();this.tooltip=undefined;}},mouseclick:function(e){var clickEvent=$.Event('sparklineClick');clickEvent.originalEvent=e;clickEvent.sparklines=this.splist;this.$el.trigger(clickEvent);},mouseenter:function(e){$(document.body).unbind('mousemove.jqs');$(document.body).bind('mousemove.jqs',$.proxy(this.mousemove,this));this.over=true;this.currentPageX=e.pageX;this.currentPageY=e.pageY;this.currentEl=e.target;if(!this.tooltip&&this.displayTooltips){this.tooltip=new Tooltip(this.options);this.tooltip.updatePosition(e.pageX,e.pageY);}this.updateDisplay();},mouseleave:function(){$(document.body).unbind('mousemove.jqs');var splist=this.splist,spcount=splist.length,needsRefresh=false,sp,i;this.over=false;this.currentEl=null;if(this.tooltip){this.tooltip.remove();this.tooltip=null;}for(i=0;i<spcount;i++){sp=splist[i];if(sp.clearRegionHighlight()){needsRefresh=true;}}if(needsRefresh){this.canvas.render();}},mousemove:function(e){this.currentPageX=e.pageX;this.currentPageY=e.pageY;this.currentEl=e.target;if(this.tooltip){this.tooltip.updatePosition(e.pageX,e.pageY);}this.updateDisplay();},updateDisplay:function(){var splist=this.splist,spcount=splist.length,needsRefresh=false,offset=this.$canvas.offset(),localX=this.currentPageX-offset.left,localY=this.currentPageY-offset.top,tooltiphtml,sp,i,result,changeEvent;if(!this.over){return;}for(i=0;i<spcount;i++){sp=splist[i];result=sp.setRegionHighlight(this.currentEl,localX,localY);if(result){needsRefresh=true;}}if(needsRefresh){changeEvent=$.Event('sparklineRegionChange');changeEvent.sparklines=this.splist;this.$el.trigger(changeEvent);if(this.tooltip){tooltiphtml='';for(i=0;i<spcount;i++){sp=splist[i];tooltiphtml+=sp.getCurrentRegionTooltip();}this.tooltip.setContent(tooltiphtml);}if(!this.disableHighlight){this.canvas.render();}}if(result===null){this.mouseleave();}}});Tooltip=createClass({sizeStyle:'position: static !important;'+'display: block !important;'+'visibility: hidden !important;'+'float: left !important;',init:function(options){var tooltipClassname=options.get('tooltipClassname','jqstooltip'),sizetipStyle=this.sizeStyle,offset;this.container=options.get('tooltipContainer')||document.body;this.tooltipOffsetX=options.get('tooltipOffsetX',10);this.tooltipOffsetY=options.get('tooltipOffsetY',12);// remove any previous lingering tooltip\n$('#jqssizetip').remove();$('#jqstooltip').remove();this.sizetip=$('<div/>',{id:'jqssizetip',style:sizetipStyle,'class':tooltipClassname});this.tooltip=$('<div/>',{id:'jqstooltip','class':tooltipClassname}).appendTo(this.container);// account for the container's location\noffset=this.tooltip.offset();this.offsetLeft=offset.left;this.offsetTop=offset.top;this.hidden=true;$(window).unbind('resize.jqs scroll.jqs');$(window).bind('resize.jqs scroll.jqs',$.proxy(this.updateWindowDims,this));this.updateWindowDims();},updateWindowDims:function(){this.scrollTop=$(window).scrollTop();this.scrollLeft=$(window).scrollLeft();this.scrollRight=this.scrollLeft+$(window).width();this.updatePosition();},getSize:function(content){this.sizetip.html(content).appendTo(this.container);this.width=this.sizetip.width()+1;this.height=this.sizetip.height();this.sizetip.remove();},setContent:function(content){if(!content){this.tooltip.css('visibility','hidden');this.hidden=true;return;}this.getSize(content);this.tooltip.html(content).css({'width':this.width,'height':this.height,'visibility':'visible'});if(this.hidden){this.hidden=false;this.updatePosition();}},updatePosition:function(x,y){if(x===undefined){if(this.mousex===undefined){return;}x=this.mousex-this.offsetLeft;y=this.mousey-this.offsetTop;}else{this.mousex=x=x-this.offsetLeft;this.mousey=y=y-this.offsetTop;}if(!this.height||!this.width||this.hidden){return;}y-=this.height+this.tooltipOffsetY;x+=this.tooltipOffsetX;if(y<this.scrollTop){y=this.scrollTop;}if(x<this.scrollLeft){x=this.scrollLeft;}else if(x+this.width>this.scrollRight){x=this.scrollRight-this.width;}this.tooltip.css({'left':x,'top':y});},remove:function(){this.tooltip.remove();this.sizetip.remove();this.sizetip=this.tooltip=undefined;$(window).unbind('resize.jqs scroll.jqs');}});initStyles=function(){addCSS(defaultStyles);};$(initStyles);pending=[];$.fn.sparkline=function(userValues,userOptions){return this.each(function(){var options=new $.fn.sparkline.options(this,userOptions),$this=$(this),render,i;render=function(){var values,width,height,tmp,mhandler,sp,vals;if(userValues==='html'||userValues===undefined){vals=this.getAttribute(options.get('tagValuesAttribute'));if(vals===undefined||vals===null){vals=$this.html();}values=vals.replace(/(^\\s*<!--)|(-->\\s*$)|\\s+/g,'').split(',');}else{values=userValues;}width=options.get('width')==='auto'?values.length*options.get('defaultPixelsPerValue'):options.get('width');if(options.get('height')==='auto'){if(!options.get('composite')||!$.data(this,'_jqs_vcanvas')){// must be a better way to get the line height\ntmp=document.createElement('span');tmp.innerHTML='a';$this.html(tmp);height=$(tmp).innerHeight()||$(tmp).height();$(tmp).remove();tmp=null;}}else{height=options.get('height');}if(!options.get('disableInteraction')){mhandler=$.data(this,'_jqs_mhandler');if(!mhandler){mhandler=new MouseHandler(this,options);$.data(this,'_jqs_mhandler',mhandler);}else if(!options.get('composite')){mhandler.reset();}}else{mhandler=false;}if(options.get('composite')&&!$.data(this,'_jqs_vcanvas')){if(!$.data(this,'_jqs_errnotify')){alert('Attempted to attach a composite sparkline to an element with no existing sparkline');$.data(this,'_jqs_errnotify',true);}return;}sp=new $.fn.sparkline[options.get('type')](this,values,options,width,height);sp.render();if(mhandler){mhandler.registerSparkline(sp);}};if($(this).html()&&!options.get('disableHiddenCheck')&&$(this).is(':hidden')||!$(this).parents('body').length){if(!options.get('composite')&&$.data(this,'_jqs_pending')){// remove any existing references to the element\nfor(i=pending.length;i;i--){if(pending[i-1][0]==this){pending.splice(i-1,1);}}}pending.push([this,render]);$.data(this,'_jqs_pending',true);}else{render.call(this);}});};$.fn.sparkline.defaults=getDefaults();$.sparkline_display_visible=function(){var el,i,pl;var done=[];for(i=0,pl=pending.length;i<pl;i++){el=pending[i][0];if($(el).is(':visible')&&!$(el).parents().is(':hidden')){pending[i][1].call(el);$.data(pending[i][0],'_jqs_pending',false);done.push(i);}else if(!$(el).closest('html').length&&!$.data(el,'_jqs_pending')){// element has been inserted and removed from the DOM\n// If it was not yet inserted into the dom then the .data request\n// will return true.\n// removing from the dom causes the data to be removed.\n$.data(pending[i][0],'_jqs_pending',false);done.push(i);}}for(i=done.length;i;i--){pending.splice(done[i-1],1);}};/**\r\n         * User option handler\r\n         */$.fn.sparkline.options=createClass({init:function(tag,userOptions){var extendedOptions,defaults,base,tagOptionType;this.userOptions=userOptions=userOptions||{};this.tag=tag;this.tagValCache={};defaults=$.fn.sparkline.defaults;base=defaults.common;this.tagOptionsPrefix=userOptions.enableTagOptions&&(userOptions.tagOptionsPrefix||base.tagOptionsPrefix);tagOptionType=this.getTagSetting('type');if(tagOptionType===UNSET_OPTION){extendedOptions=defaults[userOptions.type||base.type];}else{extendedOptions=defaults[tagOptionType];}this.mergedOptions=$.extend({},base,extendedOptions,userOptions);},getTagSetting:function(key){var prefix=this.tagOptionsPrefix,val,i,pairs,keyval;if(prefix===false||prefix===undefined){return UNSET_OPTION;}if(this.tagValCache.hasOwnProperty(key)){val=this.tagValCache.key;}else{val=this.tag.getAttribute(prefix+key);if(val===undefined||val===null){val=UNSET_OPTION;}else if(val.substr(0,1)==='['){val=val.substr(1,val.length-2).split(',');for(i=val.length;i--;){val[i]=normalizeValue(val[i].replace(/(^\\s*)|(\\s*$)/g,''));}}else if(val.substr(0,1)==='{'){pairs=val.substr(1,val.length-2).split(',');val={};for(i=pairs.length;i--;){keyval=pairs[i].split(':',2);val[keyval[0].replace(/(^\\s*)|(\\s*$)/g,'')]=normalizeValue(keyval[1].replace(/(^\\s*)|(\\s*$)/g,''));}}else{val=normalizeValue(val);}this.tagValCache.key=val;}return val;},get:function(key,defaultval){var tagOption=this.getTagSetting(key),result;if(tagOption!==UNSET_OPTION){return tagOption;}return(result=this.mergedOptions[key])===undefined?defaultval:result;}});$.fn.sparkline._base=createClass({disabled:false,init:function(el,values,options,width,height){this.el=el;this.$el=$(el);this.values=values;this.options=options;this.width=width;this.height=height;this.currentRegion=undefined;},/**\r\n             * Setup the canvas\r\n             */initTarget:function(){var interactive=!this.options.get('disableInteraction');if(!(this.target=this.$el.simpledraw(this.width,this.height,this.options.get('composite'),interactive))){this.disabled=true;}else{this.canvasWidth=this.target.pixelWidth;this.canvasHeight=this.target.pixelHeight;}},/**\r\n             * Actually render the chart to the canvas\r\n             */render:function(){if(this.disabled){this.el.innerHTML='';return false;}return true;},/**\r\n             * Return a region id for a given x/y co-ordinate\r\n             */getRegion:function(x,y){},/**\r\n             * Highlight an item based on the moused-over x,y co-ordinate\r\n             */setRegionHighlight:function(el,x,y){var currentRegion=this.currentRegion,highlightEnabled=!this.options.get('disableHighlight'),newRegion;if(x>this.canvasWidth||y>this.canvasHeight||x<0||y<0){return null;}newRegion=this.getRegion(el,x,y);if(currentRegion!==newRegion){if(currentRegion!==undefined&&highlightEnabled){this.removeHighlight();}this.currentRegion=newRegion;if(newRegion!==undefined&&highlightEnabled){this.renderHighlight();}return true;}return false;},/**\r\n             * Reset any currently highlighted item\r\n             */clearRegionHighlight:function(){if(this.currentRegion!==undefined){this.removeHighlight();this.currentRegion=undefined;return true;}return false;},renderHighlight:function(){this.changeHighlight(true);},removeHighlight:function(){this.changeHighlight(false);},changeHighlight:function(highlight){},/**\r\n             * Fetch the HTML to display as a tooltip\r\n             */getCurrentRegionTooltip:function(){var options=this.options,header='',entries=[],fields,formats,formatlen,fclass,text,i,showFields,showFieldsKey,newFields,fv,formatter,format,fieldlen,j;if(this.currentRegion===undefined){return'';}fields=this.getCurrentRegionFields();formatter=options.get('tooltipFormatter');if(formatter){return formatter(this,options,fields);}if(options.get('tooltipChartTitle')){header+='<div class=\"jqs jqstitle\">'+options.get('tooltipChartTitle')+'</div>\\n';}formats=this.options.get('tooltipFormat');if(!formats){return'';}if(!$.isArray(formats)){formats=[formats];}if(!$.isArray(fields)){fields=[fields];}showFields=this.options.get('tooltipFormatFieldlist');showFieldsKey=this.options.get('tooltipFormatFieldlistKey');if(showFields&&showFieldsKey){// user-selected ordering of fields\nnewFields=[];for(i=fields.length;i--;){fv=fields[i][showFieldsKey];if((j=$.inArray(fv,showFields))!=-1){newFields[j]=fields[i];}}fields=newFields;}formatlen=formats.length;fieldlen=fields.length;for(i=0;i<formatlen;i++){format=formats[i];if(typeof format==='string'){format=new SPFormat(format);}fclass=format.fclass||'jqsfield';for(j=0;j<fieldlen;j++){if(!fields[j].isNull||!options.get('tooltipSkipNull')){$.extend(fields[j],{prefix:options.get('tooltipPrefix'),suffix:options.get('tooltipSuffix')});text=format.render(fields[j],options.get('tooltipValueLookups'),options);entries.push('<div class=\"'+fclass+'\">'+text+'</div>');}}}if(entries.length){return header+entries.join('\\n');}return'';},getCurrentRegionFields:function(){},calcHighlightColor:function(color,options){var highlightColor=options.get('highlightColor'),lighten=options.get('highlightLighten'),parse,mult,rgbnew,i;if(highlightColor){return highlightColor;}if(lighten){// extract RGB values\nparse=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(color)||/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);if(parse){rgbnew=[];mult=color.length===4?16:1;for(i=0;i<3;i++){rgbnew[i]=clipval(Math.round(parseInt(parse[i+1],16)*mult*lighten),0,255);}return'rgb('+rgbnew.join(',')+')';}}return color;}});barHighlightMixin={changeHighlight:function(highlight){var currentRegion=this.currentRegion,target=this.target,shapeids=this.regionShapes[currentRegion],newShapes;// will be null if the region value was null\nif(shapeids){newShapes=this.renderRegion(currentRegion,highlight);if($.isArray(newShapes)||$.isArray(shapeids)){target.replaceWithShapes(shapeids,newShapes);this.regionShapes[currentRegion]=$.map(newShapes,function(newShape){return newShape.id;});}else{target.replaceWithShape(shapeids,newShapes);this.regionShapes[currentRegion]=newShapes.id;}}},render:function(){var values=this.values,target=this.target,regionShapes=this.regionShapes,shapes,ids,i,j;if(!this.cls._super.render.call(this)){return;}for(i=values.length;i--;){shapes=this.renderRegion(i);if(shapes){if($.isArray(shapes)){ids=[];for(j=shapes.length;j--;){shapes[j].append();ids.push(shapes[j].id);}regionShapes[i]=ids;}else{shapes.append();regionShapes[i]=shapes.id;// store just the shapeid\n}}else{// null value\nregionShapes[i]=null;}}target.render();}};/**\r\n         * Line charts\r\n         */$.fn.sparkline.line=line=createClass($.fn.sparkline._base,{type:'line',init:function(el,values,options,width,height){line._super.init.call(this,el,values,options,width,height);this.vertices=[];this.regionMap=[];this.xvalues=[];this.yvalues=[];this.yminmax=[];this.hightlightSpotId=null;this.lastShapeId=null;this.initTarget();},getRegion:function(el,x,y){var i,regionMap=this.regionMap;// maps regions to value positions\nfor(i=regionMap.length;i--;){if(regionMap[i]!==null&&x>=regionMap[i][0]&&x<=regionMap[i][1]){return regionMap[i][2];}}return undefined;},getCurrentRegionFields:function(){var currentRegion=this.currentRegion;return{isNull:this.yvalues[currentRegion]===null,x:this.xvalues[currentRegion],y:this.yvalues[currentRegion],color:this.options.get('lineColor'),fillColor:this.options.get('fillColor'),offset:currentRegion};},renderHighlight:function(){var currentRegion=this.currentRegion,target=this.target,vertex=this.vertices[currentRegion],options=this.options,spotRadius=options.get('spotRadius'),highlightSpotColor=options.get('highlightSpotColor'),highlightLineColor=options.get('highlightLineColor'),highlightSpot,highlightLine;if(!vertex){return;}if(spotRadius&&highlightSpotColor){highlightSpot=target.drawCircle(vertex[0],vertex[1],spotRadius,undefined,highlightSpotColor);this.highlightSpotId=highlightSpot.id;target.insertAfterShape(this.lastShapeId,highlightSpot);}if(highlightLineColor){highlightLine=target.drawLine(vertex[0],this.canvasTop,vertex[0],this.canvasTop+this.canvasHeight,highlightLineColor);this.highlightLineId=highlightLine.id;target.insertAfterShape(this.lastShapeId,highlightLine);}},removeHighlight:function(){var target=this.target;if(this.highlightSpotId){target.removeShapeId(this.highlightSpotId);this.highlightSpotId=null;}if(this.highlightLineId){target.removeShapeId(this.highlightLineId);this.highlightLineId=null;}},scanValues:function(){var values=this.values,valcount=values.length,xvalues=this.xvalues,yvalues=this.yvalues,yminmax=this.yminmax,i,val,isStr,isArray,sp;for(i=0;i<valcount;i++){val=values[i];isStr=typeof values[i]==='string';isArray=typeof values[i]==='object'&&values[i]instanceof Array;sp=isStr&&values[i].split(':');if(isStr&&sp.length===2){// x:y\nxvalues.push(Number(sp[0]));yvalues.push(Number(sp[1]));yminmax.push(Number(sp[1]));}else if(isArray){xvalues.push(val[0]);yvalues.push(val[1]);yminmax.push(val[1]);}else{xvalues.push(i);if(values[i]===null||values[i]==='null'){yvalues.push(null);}else{yvalues.push(Number(val));yminmax.push(Number(val));}}}if(this.options.get('xvalues')){xvalues=this.options.get('xvalues');}this.maxy=this.maxyorg=Math.max.apply(Math,yminmax);this.miny=this.minyorg=Math.min.apply(Math,yminmax);this.maxx=Math.max.apply(Math,xvalues);this.minx=Math.min.apply(Math,xvalues);this.xvalues=xvalues;this.yvalues=yvalues;this.yminmax=yminmax;},processRangeOptions:function(){var options=this.options,normalRangeMin=options.get('normalRangeMin'),normalRangeMax=options.get('normalRangeMax');if(normalRangeMin!==undefined){if(normalRangeMin<this.miny){this.miny=normalRangeMin;}if(normalRangeMax>this.maxy){this.maxy=normalRangeMax;}}if(options.get('chartRangeMin')!==undefined&&(options.get('chartRangeClip')||options.get('chartRangeMin')<this.miny)){this.miny=options.get('chartRangeMin');}if(options.get('chartRangeMax')!==undefined&&(options.get('chartRangeClip')||options.get('chartRangeMax')>this.maxy)){this.maxy=options.get('chartRangeMax');}if(options.get('chartRangeMinX')!==undefined&&(options.get('chartRangeClipX')||options.get('chartRangeMinX')<this.minx)){this.minx=options.get('chartRangeMinX');}if(options.get('chartRangeMaxX')!==undefined&&(options.get('chartRangeClipX')||options.get('chartRangeMaxX')>this.maxx)){this.maxx=options.get('chartRangeMaxX');}},drawNormalRange:function(canvasLeft,canvasTop,canvasHeight,canvasWidth,rangey){var normalRangeMin=this.options.get('normalRangeMin'),normalRangeMax=this.options.get('normalRangeMax'),ytop=canvasTop+Math.round(canvasHeight-canvasHeight*((normalRangeMax-this.miny)/rangey)),height=Math.round(canvasHeight*(normalRangeMax-normalRangeMin)/rangey);this.target.drawRect(canvasLeft,ytop,canvasWidth,height,undefined,this.options.get('normalRangeColor')).append();},render:function(){var options=this.options,target=this.target,canvasWidth=this.canvasWidth,canvasHeight=this.canvasHeight,vertices=this.vertices,spotRadius=options.get('spotRadius'),regionMap=this.regionMap,rangex,rangey,yvallast,canvasTop,canvasLeft,vertex,path,paths,x,y,xnext,xpos,xposnext,last,next,yvalcount,lineShapes,fillShapes,plen,valueSpots,hlSpotsEnabled,color,xvalues,yvalues,i;if(!line._super.render.call(this)){return;}this.scanValues();this.processRangeOptions();xvalues=this.xvalues;yvalues=this.yvalues;if(!this.yminmax.length||this.yvalues.length<2){// empty or all null valuess\nreturn;}canvasTop=canvasLeft=0;rangex=this.maxx-this.minx===0?1:this.maxx-this.minx;rangey=this.maxy-this.miny===0?1:this.maxy-this.miny;yvallast=this.yvalues.length-1;if(spotRadius&&(canvasWidth<spotRadius*4||canvasHeight<spotRadius*4)){spotRadius=0;}if(spotRadius){// adjust the canvas size as required so that spots will fit\nhlSpotsEnabled=options.get('highlightSpotColor')&&!options.get('disableInteraction');if(hlSpotsEnabled||options.get('minSpotColor')||options.get('spotColor')&&yvalues[yvallast]===this.miny){canvasHeight-=Math.ceil(spotRadius);}if(hlSpotsEnabled||options.get('maxSpotColor')||options.get('spotColor')&&yvalues[yvallast]===this.maxy){canvasHeight-=Math.ceil(spotRadius);canvasTop+=Math.ceil(spotRadius);}if(hlSpotsEnabled||(options.get('minSpotColor')||options.get('maxSpotColor'))&&(yvalues[0]===this.miny||yvalues[0]===this.maxy)){canvasLeft+=Math.ceil(spotRadius);canvasWidth-=Math.ceil(spotRadius);}if(hlSpotsEnabled||options.get('spotColor')||options.get('minSpotColor')||options.get('maxSpotColor')&&(yvalues[yvallast]===this.miny||yvalues[yvallast]===this.maxy)){canvasWidth-=Math.ceil(spotRadius);}}canvasHeight--;if(options.get('normalRangeMin')!==undefined&&!options.get('drawNormalOnTop')){this.drawNormalRange(canvasLeft,canvasTop,canvasHeight,canvasWidth,rangey);}path=[];paths=[path];last=next=null;yvalcount=yvalues.length;for(i=0;i<yvalcount;i++){x=xvalues[i];xnext=xvalues[i+1];y=yvalues[i];xpos=canvasLeft+Math.round((x-this.minx)*(canvasWidth/rangex));xposnext=i<yvalcount-1?canvasLeft+Math.round((xnext-this.minx)*(canvasWidth/rangex)):canvasWidth;next=xpos+(xposnext-xpos)/2;regionMap[i]=[last||0,next,i];last=next;if(y===null){if(i){if(yvalues[i-1]!==null){path=[];paths.push(path);}vertices.push(null);}}else{if(y<this.miny){y=this.miny;}if(y>this.maxy){y=this.maxy;}if(!path.length){// previous value was null\npath.push([xpos,canvasTop+canvasHeight]);}vertex=[xpos,canvasTop+Math.round(canvasHeight-canvasHeight*((y-this.miny)/rangey))];path.push(vertex);vertices.push(vertex);}}lineShapes=[];fillShapes=[];plen=paths.length;for(i=0;i<plen;i++){path=paths[i];if(path.length){if(options.get('fillColor')){path.push([path[path.length-1][0],canvasTop+canvasHeight]);fillShapes.push(path.slice(0));path.pop();}// if there's only a single point in this path, then we want to display it\n// as a vertical line which means we keep path[0]  as is\nif(path.length>2){// else we want the first value\npath[0]=[path[0][0],path[1][1]];}lineShapes.push(path);}}// draw the fill first, then optionally the normal range, then the line on top of that\nplen=fillShapes.length;for(i=0;i<plen;i++){target.drawShape(fillShapes[i],options.get('fillColor'),options.get('fillColor')).append();}if(options.get('normalRangeMin')!==undefined&&options.get('drawNormalOnTop')){this.drawNormalRange(canvasLeft,canvasTop,canvasHeight,canvasWidth,rangey);}plen=lineShapes.length;for(i=0;i<plen;i++){target.drawShape(lineShapes[i],options.get('lineColor'),undefined,options.get('lineWidth')).append();}if(spotRadius&&options.get('valueSpots')){valueSpots=options.get('valueSpots');if(valueSpots.get===undefined){valueSpots=new RangeMap(valueSpots);}for(i=0;i<yvalcount;i++){color=valueSpots.get(yvalues[i]);if(color){target.drawCircle(canvasLeft+Math.round((xvalues[i]-this.minx)*(canvasWidth/rangex)),canvasTop+Math.round(canvasHeight-canvasHeight*((yvalues[i]-this.miny)/rangey)),spotRadius,undefined,color).append();}}}if(spotRadius&&options.get('spotColor')&&yvalues[yvallast]!==null){target.drawCircle(canvasLeft+Math.round((xvalues[xvalues.length-1]-this.minx)*(canvasWidth/rangex)),canvasTop+Math.round(canvasHeight-canvasHeight*((yvalues[yvallast]-this.miny)/rangey)),spotRadius,undefined,options.get('spotColor')).append();}if(this.maxy!==this.minyorg){if(spotRadius&&options.get('minSpotColor')){x=xvalues[$.inArray(this.minyorg,yvalues)];target.drawCircle(canvasLeft+Math.round((x-this.minx)*(canvasWidth/rangex)),canvasTop+Math.round(canvasHeight-canvasHeight*((this.minyorg-this.miny)/rangey)),spotRadius,undefined,options.get('minSpotColor')).append();}if(spotRadius&&options.get('maxSpotColor')){x=xvalues[$.inArray(this.maxyorg,yvalues)];target.drawCircle(canvasLeft+Math.round((x-this.minx)*(canvasWidth/rangex)),canvasTop+Math.round(canvasHeight-canvasHeight*((this.maxyorg-this.miny)/rangey)),spotRadius,undefined,options.get('maxSpotColor')).append();}}this.lastShapeId=target.getLastShapeId();this.canvasTop=canvasTop;target.render();}});/**\r\n         * Bar charts\r\n         */$.fn.sparkline.bar=bar=createClass($.fn.sparkline._base,barHighlightMixin,{type:'bar',init:function(el,values,options,width,height){var barWidth=parseInt(options.get('barWidth'),10),barSpacing=parseInt(options.get('barSpacing'),10),chartRangeMin=options.get('chartRangeMin'),chartRangeMax=options.get('chartRangeMax'),chartRangeClip=options.get('chartRangeClip'),stackMin=Infinity,stackMax=-Infinity,isStackString,groupMin,groupMax,stackRanges,numValues,i,vlen,range,zeroAxis,xaxisOffset,min,max,clipMin,clipMax,stacked,vlist,j,slen,svals,val,yoffset,yMaxCalc,canvasHeightEf;bar._super.init.call(this,el,values,options,width,height);// scan values to determine whether to stack bars\nfor(i=0,vlen=values.length;i<vlen;i++){val=values[i];isStackString=typeof val==='string'&&val.indexOf(':')>-1;if(isStackString||$.isArray(val)){stacked=true;if(isStackString){val=values[i]=normalizeValues(val.split(':'));}val=remove(val,null);// min/max will treat null as zero\ngroupMin=Math.min.apply(Math,val);groupMax=Math.max.apply(Math,val);if(groupMin<stackMin){stackMin=groupMin;}if(groupMax>stackMax){stackMax=groupMax;}}}this.stacked=stacked;this.regionShapes={};this.barWidth=barWidth;this.barSpacing=barSpacing;this.totalBarWidth=barWidth+barSpacing;this.width=width=values.length*barWidth+(values.length-1)*barSpacing;this.initTarget();if(chartRangeClip){clipMin=chartRangeMin===undefined?-Infinity:chartRangeMin;clipMax=chartRangeMax===undefined?Infinity:chartRangeMax;}numValues=[];stackRanges=stacked?[]:numValues;var stackTotals=[];var stackRangesNeg=[];for(i=0,vlen=values.length;i<vlen;i++){if(stacked){vlist=values[i];values[i]=svals=[];stackTotals[i]=0;stackRanges[i]=stackRangesNeg[i]=0;for(j=0,slen=vlist.length;j<slen;j++){val=svals[j]=chartRangeClip?clipval(vlist[j],clipMin,clipMax):vlist[j];if(val!==null){if(val>0){stackTotals[i]+=val;}if(stackMin<0&&stackMax>0){if(val<0){stackRangesNeg[i]+=Math.abs(val);}else{stackRanges[i]+=val;}}else{stackRanges[i]+=Math.abs(val-(val<0?stackMax:stackMin));}numValues.push(val);}}}else{val=chartRangeClip?clipval(values[i],clipMin,clipMax):values[i];val=values[i]=normalizeValue(val);if(val!==null){numValues.push(val);}}}this.max=max=Math.max.apply(Math,numValues);this.min=min=Math.min.apply(Math,numValues);this.stackMax=stackMax=stacked?Math.max.apply(Math,stackTotals):max;this.stackMin=stackMin=stacked?Math.min.apply(Math,numValues):min;if(options.get('chartRangeMin')!==undefined&&(options.get('chartRangeClip')||options.get('chartRangeMin')<min)){min=options.get('chartRangeMin');}if(options.get('chartRangeMax')!==undefined&&(options.get('chartRangeClip')||options.get('chartRangeMax')>max)){max=options.get('chartRangeMax');}this.zeroAxis=zeroAxis=options.get('zeroAxis',true);if(min<=0&&max>=0&&zeroAxis){xaxisOffset=0;}else if(zeroAxis==false){xaxisOffset=min;}else if(min>0){xaxisOffset=min;}else{xaxisOffset=max;}this.xaxisOffset=xaxisOffset;range=stacked?Math.max.apply(Math,stackRanges)+Math.max.apply(Math,stackRangesNeg):max-min;// as we plot zero/min values a single pixel line, we add a pixel to all other\n// values - Reduce the effective canvas size to suit\nthis.canvasHeightEf=zeroAxis&&min<0?this.canvasHeight-2:this.canvasHeight-1;if(min<xaxisOffset){yMaxCalc=stacked&&max>=0?stackMax:max;yoffset=(yMaxCalc-xaxisOffset)/range*this.canvasHeight;if(yoffset!==Math.ceil(yoffset)){this.canvasHeightEf-=2;yoffset=Math.ceil(yoffset);}}else{yoffset=this.canvasHeight;}this.yoffset=yoffset;if($.isArray(options.get('colorMap'))){this.colorMapByIndex=options.get('colorMap');this.colorMapByValue=null;}else{this.colorMapByIndex=null;this.colorMapByValue=options.get('colorMap');if(this.colorMapByValue&&this.colorMapByValue.get===undefined){this.colorMapByValue=new RangeMap(this.colorMapByValue);}}this.range=range;},getRegion:function(el,x,y){var result=Math.floor(x/this.totalBarWidth);return result<0||result>=this.values.length?undefined:result;},getCurrentRegionFields:function(){var currentRegion=this.currentRegion,values=ensureArray(this.values[currentRegion]),result=[],value,i;for(i=values.length;i--;){value=values[i];result.push({isNull:value===null,value:value,color:this.calcColor(i,value,currentRegion),offset:currentRegion});}return result;},calcColor:function(stacknum,value,valuenum){var colorMapByIndex=this.colorMapByIndex,colorMapByValue=this.colorMapByValue,options=this.options,color,newColor;if(this.stacked){color=options.get('stackedBarColor');}else{color=value<0?options.get('negBarColor'):options.get('barColor');}if(value===0&&options.get('zeroColor')!==undefined){color=options.get('zeroColor');}if(colorMapByValue&&(newColor=colorMapByValue.get(value))){color=newColor;}else if(colorMapByIndex&&colorMapByIndex.length>valuenum){color=colorMapByIndex[valuenum];}return $.isArray(color)?color[stacknum%color.length]:color;},/**\r\n             * Render bar(s) for a region\r\n             */renderRegion:function(valuenum,highlight){var vals=this.values[valuenum],options=this.options,xaxisOffset=this.xaxisOffset,result=[],range=this.range,stacked=this.stacked,target=this.target,x=valuenum*this.totalBarWidth,canvasHeightEf=this.canvasHeightEf,yoffset=this.yoffset,y,height,color,isNull,yoffsetNeg,i,valcount,val,minPlotted,allMin;vals=$.isArray(vals)?vals:[vals];valcount=vals.length;val=vals[0];isNull=all(null,vals);allMin=all(xaxisOffset,vals,true);if(isNull){if(options.get('nullColor')){color=highlight?options.get('nullColor'):this.calcHighlightColor(options.get('nullColor'),options);y=yoffset>0?yoffset-1:yoffset;return target.drawRect(x,y,this.barWidth-1,0,color,color);}else{return undefined;}}yoffsetNeg=yoffset;for(i=0;i<valcount;i++){val=vals[i];if(stacked&&val===xaxisOffset){if(!allMin||minPlotted){continue;}minPlotted=true;}if(range>0){height=Math.floor(canvasHeightEf*(Math.abs(val-xaxisOffset)/range))+1;}else{height=1;}if(val<xaxisOffset||val===xaxisOffset&&yoffset===0){y=yoffsetNeg;yoffsetNeg+=height;}else{y=yoffset-height;yoffset-=height;}color=this.calcColor(i,val,valuenum);if(highlight){color=this.calcHighlightColor(color,options);}result.push(target.drawRect(x,y,this.barWidth-1,height-1,color,color));}if(result.length===1){return result[0];}return result;}});/**\r\n         * Tristate charts\r\n         */$.fn.sparkline.tristate=tristate=createClass($.fn.sparkline._base,barHighlightMixin,{type:'tristate',init:function(el,values,options,width,height){var barWidth=parseInt(options.get('barWidth'),10),barSpacing=parseInt(options.get('barSpacing'),10);tristate._super.init.call(this,el,values,options,width,height);this.regionShapes={};this.barWidth=barWidth;this.barSpacing=barSpacing;this.totalBarWidth=barWidth+barSpacing;this.values=$.map(values,Number);this.width=width=values.length*barWidth+(values.length-1)*barSpacing;if($.isArray(options.get('colorMap'))){this.colorMapByIndex=options.get('colorMap');this.colorMapByValue=null;}else{this.colorMapByIndex=null;this.colorMapByValue=options.get('colorMap');if(this.colorMapByValue&&this.colorMapByValue.get===undefined){this.colorMapByValue=new RangeMap(this.colorMapByValue);}}this.initTarget();},getRegion:function(el,x,y){return Math.floor(x/this.totalBarWidth);},getCurrentRegionFields:function(){var currentRegion=this.currentRegion;return{isNull:this.values[currentRegion]===undefined,value:this.values[currentRegion],color:this.calcColor(this.values[currentRegion],currentRegion),offset:currentRegion};},calcColor:function(value,valuenum){var values=this.values,options=this.options,colorMapByIndex=this.colorMapByIndex,colorMapByValue=this.colorMapByValue,color,newColor;if(colorMapByValue&&(newColor=colorMapByValue.get(value))){color=newColor;}else if(colorMapByIndex&&colorMapByIndex.length>valuenum){color=colorMapByIndex[valuenum];}else if(values[valuenum]<0){color=options.get('negBarColor');}else if(values[valuenum]>0){color=options.get('posBarColor');}else{color=options.get('zeroBarColor');}return color;},renderRegion:function(valuenum,highlight){var values=this.values,options=this.options,target=this.target,canvasHeight,height,halfHeight,x,y,color;canvasHeight=target.pixelHeight;halfHeight=Math.round(canvasHeight/2);x=valuenum*this.totalBarWidth;if(values[valuenum]<0){y=halfHeight;height=halfHeight-1;}else if(values[valuenum]>0){y=0;height=halfHeight-1;}else{y=halfHeight-1;height=2;}color=this.calcColor(values[valuenum],valuenum);if(color===null){return;}if(highlight){color=this.calcHighlightColor(color,options);}return target.drawRect(x,y,this.barWidth-1,height-1,color,color);}});/**\r\n         * Discrete charts\r\n         */$.fn.sparkline.discrete=discrete=createClass($.fn.sparkline._base,barHighlightMixin,{type:'discrete',init:function(el,values,options,width,height){discrete._super.init.call(this,el,values,options,width,height);this.regionShapes={};this.values=values=$.map(values,Number);this.min=Math.min.apply(Math,values);this.max=Math.max.apply(Math,values);this.range=this.max-this.min;this.width=width=options.get('width')==='auto'?values.length*2:this.width;this.interval=Math.floor(width/values.length);this.itemWidth=width/values.length;if(options.get('chartRangeMin')!==undefined&&(options.get('chartRangeClip')||options.get('chartRangeMin')<this.min)){this.min=options.get('chartRangeMin');}if(options.get('chartRangeMax')!==undefined&&(options.get('chartRangeClip')||options.get('chartRangeMax')>this.max)){this.max=options.get('chartRangeMax');}this.initTarget();if(this.target){this.lineHeight=options.get('lineHeight')==='auto'?Math.round(this.canvasHeight*0.3):options.get('lineHeight');}},getRegion:function(el,x,y){return Math.floor(x/this.itemWidth);},getCurrentRegionFields:function(){var currentRegion=this.currentRegion;return{isNull:this.values[currentRegion]===undefined,value:this.values[currentRegion],offset:currentRegion};},renderRegion:function(valuenum,highlight){var values=this.values,options=this.options,min=this.min,max=this.max,range=this.range,interval=this.interval,target=this.target,canvasHeight=this.canvasHeight,lineHeight=this.lineHeight,pheight=canvasHeight-lineHeight,ytop,val,color,x;val=clipval(values[valuenum],min,max);x=valuenum*interval;ytop=Math.round(pheight-pheight*((val-min)/range));color=options.get('thresholdColor')&&val<options.get('thresholdValue')?options.get('thresholdColor'):options.get('lineColor');if(highlight){color=this.calcHighlightColor(color,options);}return target.drawLine(x,ytop,x,ytop+lineHeight,color);}});/**\r\n         * Bullet charts\r\n         */$.fn.sparkline.bullet=bullet=createClass($.fn.sparkline._base,{type:'bullet',init:function(el,values,options,width,height){var min,max,vals;bullet._super.init.call(this,el,values,options,width,height);// values: target, performance, range1, range2, range3\nthis.values=values=normalizeValues(values);// target or performance could be null\nvals=values.slice();vals[0]=vals[0]===null?vals[2]:vals[0];vals[1]=values[1]===null?vals[2]:vals[1];min=Math.min.apply(Math,values);max=Math.max.apply(Math,values);if(options.get('base')===undefined){min=min<0?min:0;}else{min=options.get('base');}this.min=min;this.max=max;this.range=max-min;this.shapes={};this.valueShapes={};this.regiondata={};this.width=width=options.get('width')==='auto'?'4.0em':width;this.target=this.$el.simpledraw(width,height,options.get('composite'));if(!values.length){this.disabled=true;}this.initTarget();},getRegion:function(el,x,y){var shapeid=this.target.getShapeAt(el,x,y);return shapeid!==undefined&&this.shapes[shapeid]!==undefined?this.shapes[shapeid]:undefined;},getCurrentRegionFields:function(){var currentRegion=this.currentRegion;return{fieldkey:currentRegion.substr(0,1),value:this.values[currentRegion.substr(1)],region:currentRegion};},changeHighlight:function(highlight){var currentRegion=this.currentRegion,shapeid=this.valueShapes[currentRegion],shape;delete this.shapes[shapeid];switch(currentRegion.substr(0,1)){case'r':shape=this.renderRange(currentRegion.substr(1),highlight);break;case'p':shape=this.renderPerformance(highlight);break;case't':shape=this.renderTarget(highlight);break;}this.valueShapes[currentRegion]=shape.id;this.shapes[shape.id]=currentRegion;this.target.replaceWithShape(shapeid,shape);},renderRange:function(rn,highlight){var rangeval=this.values[rn],rangewidth=Math.round(this.canvasWidth*((rangeval-this.min)/this.range)),color=this.options.get('rangeColors')[rn-2];if(highlight){color=this.calcHighlightColor(color,this.options);}return this.target.drawRect(0,0,rangewidth-1,this.canvasHeight-1,color,color);},renderPerformance:function(highlight){var perfval=this.values[1],perfwidth=Math.round(this.canvasWidth*((perfval-this.min)/this.range)),color=this.options.get('performanceColor');if(highlight){color=this.calcHighlightColor(color,this.options);}return this.target.drawRect(0,Math.round(this.canvasHeight*0.3),perfwidth-1,Math.round(this.canvasHeight*0.4)-1,color,color);},renderTarget:function(highlight){var targetval=this.values[0],x=Math.round(this.canvasWidth*((targetval-this.min)/this.range)-this.options.get('targetWidth')/2),targettop=Math.round(this.canvasHeight*0.10),targetheight=this.canvasHeight-targettop*2,color=this.options.get('targetColor');if(highlight){color=this.calcHighlightColor(color,this.options);}return this.target.drawRect(x,targettop,this.options.get('targetWidth')-1,targetheight-1,color,color);},render:function(){var vlen=this.values.length,target=this.target,i,shape;if(!bullet._super.render.call(this)){return;}for(i=2;i<vlen;i++){shape=this.renderRange(i).append();this.shapes[shape.id]='r'+i;this.valueShapes['r'+i]=shape.id;}if(this.values[1]!==null){shape=this.renderPerformance().append();this.shapes[shape.id]='p1';this.valueShapes.p1=shape.id;}if(this.values[0]!==null){shape=this.renderTarget().append();this.shapes[shape.id]='t0';this.valueShapes.t0=shape.id;}target.render();}});/**\r\n         * Pie charts\r\n         */$.fn.sparkline.pie=pie=createClass($.fn.sparkline._base,{type:'pie',init:function(el,values,options,width,height){var total=0,i;pie._super.init.call(this,el,values,options,width,height);this.shapes={};// map shape ids to value offsets\nthis.valueShapes={};// maps value offsets to shape ids\nthis.values=values=$.map(values,Number);if(options.get('width')==='auto'){this.width=this.height;}if(values.length>0){for(i=values.length;i--;){total+=values[i];}}this.total=total;this.initTarget();this.radius=Math.floor(Math.min(this.canvasWidth,this.canvasHeight)/2);},getRegion:function(el,x,y){var shapeid=this.target.getShapeAt(el,x,y);return shapeid!==undefined&&this.shapes[shapeid]!==undefined?this.shapes[shapeid]:undefined;},getCurrentRegionFields:function(){var currentRegion=this.currentRegion;return{isNull:this.values[currentRegion]===undefined,value:this.values[currentRegion],percent:this.values[currentRegion]/this.total*100,color:this.options.get('sliceColors')[currentRegion%this.options.get('sliceColors').length],offset:currentRegion};},changeHighlight:function(highlight){var currentRegion=this.currentRegion,newslice=this.renderSlice(currentRegion,highlight),shapeid=this.valueShapes[currentRegion];delete this.shapes[shapeid];this.target.replaceWithShape(shapeid,newslice);this.valueShapes[currentRegion]=newslice.id;this.shapes[newslice.id]=currentRegion;},renderSlice:function(valuenum,highlight){var target=this.target,options=this.options,radius=this.radius,borderWidth=options.get('borderWidth'),offset=options.get('offset'),circle=2*Math.PI,values=this.values,total=this.total,next=offset?2*Math.PI*(offset/360):0,start,end,i,vlen,color;vlen=values.length;for(i=0;i<vlen;i++){start=next;end=next;if(total>0){// avoid divide by zero\nend=next+circle*(values[i]/total);}if(valuenum===i){color=options.get('sliceColors')[i%options.get('sliceColors').length];if(highlight){color=this.calcHighlightColor(color,options);}return target.drawPieSlice(radius,radius,radius-borderWidth,start,end,undefined,color);}next=end;}},render:function(){var target=this.target,values=this.values,options=this.options,radius=this.radius,borderWidth=options.get('borderWidth'),donutWidth=options.get('donutWidth'),shape,i;if(!pie._super.render.call(this)){return;}if(borderWidth){target.drawCircle(radius,radius,Math.floor(radius-borderWidth/2),options.get('borderColor'),undefined,borderWidth).append();}for(i=values.length;i--;){if(values[i]){// don't render zero values\nshape=this.renderSlice(i).append();this.valueShapes[i]=shape.id;// store just the shapeid\nthis.shapes[shape.id]=i;}}if(donutWidth){target.drawCircle(radius,radius,radius-donutWidth,options.get('donutColor'),options.get('donutColor'),0).append();}target.render();}});/**\r\n         * Box plots\r\n         */$.fn.sparkline.box=box=createClass($.fn.sparkline._base,{type:'box',init:function(el,values,options,width,height){box._super.init.call(this,el,values,options,width,height);this.values=$.map(values,Number);this.width=options.get('width')==='auto'?'4.0em':width;this.initTarget();if(!this.values.length){this.disabled=1;}},/**\r\n             * Simulate a single region\r\n             */getRegion:function(){return 1;},getCurrentRegionFields:function(){var result=[{field:'lq',value:this.quartiles[0]},{field:'med',value:this.quartiles[1]},{field:'uq',value:this.quartiles[2]}];if(this.loutlier!==undefined){result.push({field:'lo',value:this.loutlier});}if(this.routlier!==undefined){result.push({field:'ro',value:this.routlier});}if(this.lwhisker!==undefined){result.push({field:'lw',value:this.lwhisker});}if(this.rwhisker!==undefined){result.push({field:'rw',value:this.rwhisker});}return result;},render:function(){var target=this.target,values=this.values,vlen=values.length,options=this.options,canvasWidth=this.canvasWidth,canvasHeight=this.canvasHeight,minValue=options.get('chartRangeMin')===undefined?Math.min.apply(Math,values):options.get('chartRangeMin'),maxValue=options.get('chartRangeMax')===undefined?Math.max.apply(Math,values):options.get('chartRangeMax'),canvasLeft=0,lwhisker,loutlier,iqr,q1,q2,q3,rwhisker,routlier,i,size,unitSize;if(!box._super.render.call(this)){return;}if(options.get('raw')){if(options.get('showOutliers')&&values.length>5){loutlier=values[0];lwhisker=values[1];q1=values[2];q2=values[3];q3=values[4];rwhisker=values[5];routlier=values[6];}else{lwhisker=values[0];q1=values[1];q2=values[2];q3=values[3];rwhisker=values[4];}}else{values.sort(function(a,b){return a-b;});q1=quartile(values,1);q2=quartile(values,2);q3=quartile(values,3);iqr=q3-q1;if(options.get('showOutliers')){lwhisker=rwhisker=undefined;for(i=0;i<vlen;i++){if(lwhisker===undefined&&values[i]>q1-iqr*options.get('outlierIQR')){lwhisker=values[i];}if(values[i]<q3+iqr*options.get('outlierIQR')){rwhisker=values[i];}}loutlier=values[0];routlier=values[vlen-1];}else{lwhisker=values[0];rwhisker=values[vlen-1];}}this.quartiles=[q1,q2,q3];this.lwhisker=lwhisker;this.rwhisker=rwhisker;this.loutlier=loutlier;this.routlier=routlier;unitSize=canvasWidth/(maxValue-minValue+1);if(options.get('showOutliers')){canvasLeft=Math.ceil(options.get('spotRadius'));canvasWidth-=2*Math.ceil(options.get('spotRadius'));unitSize=canvasWidth/(maxValue-minValue+1);if(loutlier<lwhisker){target.drawCircle((loutlier-minValue)*unitSize+canvasLeft,canvasHeight/2,options.get('spotRadius'),options.get('outlierLineColor'),options.get('outlierFillColor')).append();}if(routlier>rwhisker){target.drawCircle((routlier-minValue)*unitSize+canvasLeft,canvasHeight/2,options.get('spotRadius'),options.get('outlierLineColor'),options.get('outlierFillColor')).append();}}// box\ntarget.drawRect(Math.round((q1-minValue)*unitSize+canvasLeft),Math.round(canvasHeight*0.1),Math.round((q3-q1)*unitSize),Math.round(canvasHeight*0.8),options.get('boxLineColor'),options.get('boxFillColor')).append();// left whisker\ntarget.drawLine(Math.round((lwhisker-minValue)*unitSize+canvasLeft),Math.round(canvasHeight/2),Math.round((q1-minValue)*unitSize+canvasLeft),Math.round(canvasHeight/2),options.get('lineColor')).append();target.drawLine(Math.round((lwhisker-minValue)*unitSize+canvasLeft),Math.round(canvasHeight/4),Math.round((lwhisker-minValue)*unitSize+canvasLeft),Math.round(canvasHeight-canvasHeight/4),options.get('whiskerColor')).append();// right whisker\ntarget.drawLine(Math.round((rwhisker-minValue)*unitSize+canvasLeft),Math.round(canvasHeight/2),Math.round((q3-minValue)*unitSize+canvasLeft),Math.round(canvasHeight/2),options.get('lineColor')).append();target.drawLine(Math.round((rwhisker-minValue)*unitSize+canvasLeft),Math.round(canvasHeight/4),Math.round((rwhisker-minValue)*unitSize+canvasLeft),Math.round(canvasHeight-canvasHeight/4),options.get('whiskerColor')).append();// median line\ntarget.drawLine(Math.round((q2-minValue)*unitSize+canvasLeft),Math.round(canvasHeight*0.1),Math.round((q2-minValue)*unitSize+canvasLeft),Math.round(canvasHeight*0.9),options.get('medianColor')).append();if(options.get('target')){size=Math.ceil(options.get('spotRadius'));target.drawLine(Math.round((options.get('target')-minValue)*unitSize+canvasLeft),Math.round(canvasHeight/2-size),Math.round((options.get('target')-minValue)*unitSize+canvasLeft),Math.round(canvasHeight/2+size),options.get('targetColor')).append();target.drawLine(Math.round((options.get('target')-minValue)*unitSize+canvasLeft-size),Math.round(canvasHeight/2),Math.round((options.get('target')-minValue)*unitSize+canvasLeft+size),Math.round(canvasHeight/2),options.get('targetColor')).append();}target.render();}});// Setup a very simple \"virtual canvas\" to make drawing the few shapes we need easier\n// This is accessible as $(foo).simpledraw()\nVShape=createClass({init:function(target,id,type,args){this.target=target;this.id=id;this.type=type;this.args=args;},append:function(){this.target.appendShape(this);return this;}});VCanvas_base=createClass({_pxregex:/(\\d+)(px)?\\s*$/i,init:function(width,height,target){if(!width){return;}this.width=width;this.height=height;this.target=target;this.lastShapeId=null;if(target[0]){target=target[0];}$.data(target,'_jqs_vcanvas',this);},drawLine:function(x1,y1,x2,y2,lineColor,lineWidth){return this.drawShape([[x1,y1],[x2,y2]],lineColor,lineWidth);},drawShape:function(path,lineColor,fillColor,lineWidth){return this._genShape('Shape',[path,lineColor,fillColor,lineWidth]);},drawCircle:function(x,y,radius,lineColor,fillColor,lineWidth){return this._genShape('Circle',[x,y,radius,lineColor,fillColor,lineWidth]);},drawPieSlice:function(x,y,radius,startAngle,endAngle,lineColor,fillColor){return this._genShape('PieSlice',[x,y,radius,startAngle,endAngle,lineColor,fillColor]);},drawRect:function(x,y,width,height,lineColor,fillColor){return this._genShape('Rect',[x,y,width,height,lineColor,fillColor]);},getElement:function(){return this.canvas;},/**\r\n             * Return the most recently inserted shape id\r\n             */getLastShapeId:function(){return this.lastShapeId;},/**\r\n             * Clear and reset the canvas\r\n             */reset:function(){alert('reset not implemented');},_insert:function(el,target){$(target).html(el);},/**\r\n             * Calculate the pixel dimensions of the canvas\r\n             */_calculatePixelDims:function(width,height,canvas){// XXX This should probably be a configurable option\nvar match;match=this._pxregex.exec(height);if(match){this.pixelHeight=match[1];}else{this.pixelHeight=$(canvas).height();}match=this._pxregex.exec(width);if(match){this.pixelWidth=match[1];}else{this.pixelWidth=$(canvas).width();}},/**\r\n             * Generate a shape object and id for later rendering\r\n             */_genShape:function(shapetype,shapeargs){var id=shapeCount++;shapeargs.unshift(id);return new VShape(this,id,shapetype,shapeargs);},/**\r\n             * Add a shape to the end of the render queue\r\n             */appendShape:function(shape){alert('appendShape not implemented');},/**\r\n             * Replace one shape with another\r\n             */replaceWithShape:function(shapeid,shape){alert('replaceWithShape not implemented');},/**\r\n             * Insert one shape after another in the render queue\r\n             */insertAfterShape:function(shapeid,shape){alert('insertAfterShape not implemented');},/**\r\n             * Remove a shape from the queue\r\n             */removeShapeId:function(shapeid){alert('removeShapeId not implemented');},/**\r\n             * Find a shape at the specified x/y co-ordinates\r\n             */getShapeAt:function(el,x,y){alert('getShapeAt not implemented');},/**\r\n             * Render all queued shapes onto the canvas\r\n             */render:function(){alert('render not implemented');}});VCanvas_canvas=createClass(VCanvas_base,{init:function(width,height,target,interact){VCanvas_canvas._super.init.call(this,width,height,target);this.canvas=document.createElement('canvas');if(target[0]){target=target[0];}$.data(target,'_jqs_vcanvas',this);$(this.canvas).css({display:'inline-block',width:width,height:height,verticalAlign:'top'});this._insert(this.canvas,target);this._calculatePixelDims(width,height,this.canvas);this.canvas.width=this.pixelWidth;this.canvas.height=this.pixelHeight;this.interact=interact;this.shapes={};this.shapeseq=[];this.currentTargetShapeId=undefined;$(this.canvas).css({width:this.pixelWidth,height:this.pixelHeight});},_getContext:function(lineColor,fillColor,lineWidth){var context=this.canvas.getContext('2d');if(lineColor!==undefined){context.strokeStyle=lineColor;}context.lineWidth=lineWidth===undefined?1:lineWidth;if(fillColor!==undefined){context.fillStyle=fillColor;}return context;},reset:function(){var context=this._getContext();context.clearRect(0,0,this.pixelWidth,this.pixelHeight);this.shapes={};this.shapeseq=[];this.currentTargetShapeId=undefined;},_drawShape:function(shapeid,path,lineColor,fillColor,lineWidth){var context=this._getContext(lineColor,fillColor,lineWidth),i,plen;context.beginPath();context.moveTo(path[0][0]+0.5,path[0][1]+0.5);for(i=1,plen=path.length;i<plen;i++){context.lineTo(path[i][0]+0.5,path[i][1]+0.5);// the 0.5 offset gives us crisp pixel-width lines\n}if(lineColor!==undefined){context.stroke();}if(fillColor!==undefined){context.fill();}if(this.targetX!==undefined&&this.targetY!==undefined&&context.isPointInPath(this.targetX,this.targetY)){this.currentTargetShapeId=shapeid;}},_drawCircle:function(shapeid,x,y,radius,lineColor,fillColor,lineWidth){var context=this._getContext(lineColor,fillColor,lineWidth);context.beginPath();context.arc(x,y,radius,0,2*Math.PI,false);if(this.targetX!==undefined&&this.targetY!==undefined&&context.isPointInPath(this.targetX,this.targetY)){this.currentTargetShapeId=shapeid;}if(lineColor!==undefined){context.stroke();}if(fillColor!==undefined){context.fill();}},_drawPieSlice:function(shapeid,x,y,radius,startAngle,endAngle,lineColor,fillColor){var context=this._getContext(lineColor,fillColor);context.beginPath();context.moveTo(x,y);context.arc(x,y,radius,startAngle,endAngle,false);context.lineTo(x,y);context.closePath();if(lineColor!==undefined){context.stroke();}if(fillColor){context.fill();}if(this.targetX!==undefined&&this.targetY!==undefined&&context.isPointInPath(this.targetX,this.targetY)){this.currentTargetShapeId=shapeid;}},_drawRect:function(shapeid,x,y,width,height,lineColor,fillColor){return this._drawShape(shapeid,[[x,y],[x+width,y],[x+width,y+height],[x,y+height],[x,y]],lineColor,fillColor);},appendShape:function(shape){this.shapes[shape.id]=shape;this.shapeseq.push(shape.id);this.lastShapeId=shape.id;return shape.id;},replaceWithShape:function(shapeid,shape){var shapeseq=this.shapeseq,i;this.shapes[shape.id]=shape;for(i=shapeseq.length;i--;){if(shapeseq[i]==shapeid){shapeseq[i]=shape.id;}}delete this.shapes[shapeid];},replaceWithShapes:function(shapeids,shapes){var shapeseq=this.shapeseq,shapemap={},sid,i,first;for(i=shapeids.length;i--;){shapemap[shapeids[i]]=true;}for(i=shapeseq.length;i--;){sid=shapeseq[i];if(shapemap[sid]){shapeseq.splice(i,1);delete this.shapes[sid];first=i;}}for(i=shapes.length;i--;){shapeseq.splice(first,0,shapes[i].id);this.shapes[shapes[i].id]=shapes[i];}},insertAfterShape:function(shapeid,shape){var shapeseq=this.shapeseq,i;for(i=shapeseq.length;i--;){if(shapeseq[i]===shapeid){shapeseq.splice(i+1,0,shape.id);this.shapes[shape.id]=shape;return;}}},removeShapeId:function(shapeid){var shapeseq=this.shapeseq,i;for(i=shapeseq.length;i--;){if(shapeseq[i]===shapeid){shapeseq.splice(i,1);break;}}delete this.shapes[shapeid];},getShapeAt:function(el,x,y){this.targetX=x;this.targetY=y;this.render();return this.currentTargetShapeId;},render:function(){var shapeseq=this.shapeseq,shapes=this.shapes,shapeCount=shapeseq.length,context=this._getContext(),shapeid,shape,i;context.clearRect(0,0,this.pixelWidth,this.pixelHeight);for(i=0;i<shapeCount;i++){shapeid=shapeseq[i];shape=shapes[shapeid];this['_draw'+shape.type].apply(this,shape.args);}if(!this.interact){// not interactive so no need to keep the shapes array\nthis.shapes={};this.shapeseq=[];}}});VCanvas_vml=createClass(VCanvas_base,{init:function(width,height,target){var groupel;VCanvas_vml._super.init.call(this,width,height,target);if(target[0]){target=target[0];}$.data(target,'_jqs_vcanvas',this);this.canvas=document.createElement('span');$(this.canvas).css({display:'inline-block',position:'relative',overflow:'hidden',width:width,height:height,margin:'0px',padding:'0px',verticalAlign:'top'});this._insert(this.canvas,target);this._calculatePixelDims(width,height,this.canvas);this.canvas.width=this.pixelWidth;this.canvas.height=this.pixelHeight;groupel='<v:group coordorigin=\"0 0\" coordsize=\"'+this.pixelWidth+' '+this.pixelHeight+'\"'+' style=\"position:absolute;top:0;left:0;width:'+this.pixelWidth+'px;height='+this.pixelHeight+'px;\"></v:group>';this.canvas.insertAdjacentHTML('beforeEnd',groupel);this.group=$(this.canvas).children()[0];this.rendered=false;this.prerender='';},_drawShape:function(shapeid,path,lineColor,fillColor,lineWidth){var vpath=[],initial,stroke,fill,closed,vel,plen,i;for(i=0,plen=path.length;i<plen;i++){vpath[i]=''+path[i][0]+','+path[i][1];}initial=vpath.splice(0,1);lineWidth=lineWidth===undefined?1:lineWidth;stroke=lineColor===undefined?' stroked=\"false\" ':' strokeWeight=\"'+lineWidth+'px\" strokeColor=\"'+lineColor+'\" ';fill=fillColor===undefined?' filled=\"false\"':' fillColor=\"'+fillColor+'\" filled=\"true\" ';closed=vpath[0]===vpath[vpath.length-1]?'x ':'';vel='<v:shape coordorigin=\"0 0\" coordsize=\"'+this.pixelWidth+' '+this.pixelHeight+'\" '+' id=\"jqsshape'+shapeid+'\" '+stroke+fill+' style=\"position:absolute;left:0px;top:0px;height:'+this.pixelHeight+'px;width:'+this.pixelWidth+'px;padding:0px;margin:0px;\" '+' path=\"m '+initial+' l '+vpath.join(', ')+' '+closed+'e\">'+' </v:shape>';return vel;},_drawCircle:function(shapeid,x,y,radius,lineColor,fillColor,lineWidth){var stroke,fill,vel;x-=radius;y-=radius;stroke=lineColor===undefined?' stroked=\"false\" ':' strokeWeight=\"'+lineWidth+'px\" strokeColor=\"'+lineColor+'\" ';fill=fillColor===undefined?' filled=\"false\"':' fillColor=\"'+fillColor+'\" filled=\"true\" ';vel='<v:oval '+' id=\"jqsshape'+shapeid+'\" '+stroke+fill+' style=\"position:absolute;top:'+y+'px; left:'+x+'px; width:'+radius*2+'px; height:'+radius*2+'px\"></v:oval>';return vel;},_drawPieSlice:function(shapeid,x,y,radius,startAngle,endAngle,lineColor,fillColor){var vpath,startx,starty,endx,endy,stroke,fill,vel;if(startAngle===endAngle){return'';// VML seems to have problem when start angle equals end angle.\n}if(endAngle-startAngle===2*Math.PI){startAngle=0.0;// VML seems to have a problem when drawing a full circle that doesn't start 0\nendAngle=2*Math.PI;}startx=x+Math.round(Math.cos(startAngle)*radius);starty=y+Math.round(Math.sin(startAngle)*radius);endx=x+Math.round(Math.cos(endAngle)*radius);endy=y+Math.round(Math.sin(endAngle)*radius);if(startx===endx&&starty===endy){if(endAngle-startAngle<Math.PI){// Prevent very small slices from being mistaken as a whole pie\nreturn'';}// essentially going to be the entire circle, so ignore startAngle\nstartx=endx=x+radius;starty=endy=y;}if(startx===endx&&starty===endy&&endAngle-startAngle<Math.PI){return'';}vpath=[x-radius,y-radius,x+radius,y+radius,startx,starty,endx,endy];stroke=lineColor===undefined?' stroked=\"false\" ':' strokeWeight=\"1px\" strokeColor=\"'+lineColor+'\" ';fill=fillColor===undefined?' filled=\"false\"':' fillColor=\"'+fillColor+'\" filled=\"true\" ';vel='<v:shape coordorigin=\"0 0\" coordsize=\"'+this.pixelWidth+' '+this.pixelHeight+'\" '+' id=\"jqsshape'+shapeid+'\" '+stroke+fill+' style=\"position:absolute;left:0px;top:0px;height:'+this.pixelHeight+'px;width:'+this.pixelWidth+'px;padding:0px;margin:0px;\" '+' path=\"m '+x+','+y+' wa '+vpath.join(', ')+' x e\">'+' </v:shape>';return vel;},_drawRect:function(shapeid,x,y,width,height,lineColor,fillColor){return this._drawShape(shapeid,[[x,y],[x,y+height],[x+width,y+height],[x+width,y],[x,y]],lineColor,fillColor);},reset:function(){this.group.innerHTML='';},appendShape:function(shape){var vel=this['_draw'+shape.type].apply(this,shape.args);if(this.rendered){this.group.insertAdjacentHTML('beforeEnd',vel);}else{this.prerender+=vel;}this.lastShapeId=shape.id;return shape.id;},replaceWithShape:function(shapeid,shape){var existing=$('#jqsshape'+shapeid),vel=this['_draw'+shape.type].apply(this,shape.args);existing[0].outerHTML=vel;},replaceWithShapes:function(shapeids,shapes){// replace the first shapeid with all the new shapes then toast the remaining old shapes\nvar existing=$('#jqsshape'+shapeids[0]),replace='',slen=shapes.length,i;for(i=0;i<slen;i++){replace+=this['_draw'+shapes[i].type].apply(this,shapes[i].args);}existing[0].outerHTML=replace;for(i=1;i<shapeids.length;i++){$('#jqsshape'+shapeids[i]).remove();}},insertAfterShape:function(shapeid,shape){var existing=$('#jqsshape'+shapeid),vel=this['_draw'+shape.type].apply(this,shape.args);existing[0].insertAdjacentHTML('afterEnd',vel);},removeShapeId:function(shapeid){var existing=$('#jqsshape'+shapeid);this.group.removeChild(existing[0]);},getShapeAt:function(el,x,y){var shapeid=el.id.substr(8);return shapeid;},render:function(){if(!this.rendered){// batch the intial render into a single repaint\nthis.group.innerHTML=this.prerender;this.rendered=true;}}});});})(document,Math);document.addEventListener('DOMContentLoaded',function(){/* this sets all default colors and width sizes - however you can still override them with the HTML tagOptions */ /* this is a non-destructive settings which can be applied to any sparkline chart to keep things constant */$('.sparklines').sparkline('html',{// enables you to use HTML tad options (eg. sparkBarWidth=\"100\")\nenableTagOptions:true,// you can also use percentage (eg. \"100%\")\nwidth:110,// globalized height\nheight:40,// globalize bar spacing\nbarSpacing:\"3px\",// globalized bar width\nbarWidth:\"7px\",// the point radius of line chart\nspotRadius:3,// the red line color\nhighlightLineColor:rgb2hex($('#js-color-profile .color-danger-700').css('color')),// used for box chart\ntargetColor:rgb2hex($('#js-color-profile .color-danger-500').css('color')),// used for box chart\nperformanceColor:rgb2hex($('#js-color-profile .color-primary-700').css('color')),// range colors\nrangeColors:[rgb2hex($('#js-color-profile .color-primary-100').css('color')),rgb2hex($('#js-color-profile .color-primary-200').css('color')),rgb2hex($('#js-color-profile .color-primary-300').css('color'))],// stacked bar colors\nbarColor:rgb2hex($('#js-color-profile .color-primary-500').css('color')),stackedBarColor:[rgb2hex($('#js-color-profile .color-danger-300').css('color')),rgb2hex($('#js-color-profile .color-info-300').css('color'))],//pie colors\nsliceColors:[rgb2hex($('#js-color-profile .color-success-500').css('color')),rgb2hex($('#js-color-profile .color-info-500').css('color')),rgb2hex($('#js-color-profile .color-danger-500').css('color')),rgb2hex($('#js-color-profile .color-primary-500').css('color')),rgb2hex($('#js-color-profile .color-warning-500').css('color')),rgb2hex($('#js-color-profile .color-primary-700').css('color')),rgb2hex($('#js-color-profile .color-info-700').css('color')),rgb2hex($('#js-color-profile .color-danger-700').css('color'))]});});// ----------- sparkline.bundle.js END -------------\n// ----------- easypiechart.bundle.js START -------------\n/**!\r\n * easy-pie-chart\r\n * Lightweight plugin to render simple, animated and retina optimized pie charts\r\n *\r\n * @license \r\n * @author Robert Fleischmann <rendro87@gmail.com> (http://robert-fleischmann.de)\r\n * @version 2.1.7\r\n **/(function(root,factory){if(true){// AMD. Register as an anonymous module unless amdModuleId is set\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function(a0){return factory(a0);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(this,function($){/**\r\n   * Renderer to render the chart on a canvas object\r\n   * @param {DOMElement} el      DOM element to host the canvas (root of the plugin)\r\n   * @param {object}     options options object of the plugin\r\n   */var CanvasRenderer=function(el,options){var cachedBackground;var canvas=document.createElement('canvas');el.appendChild(canvas);if(typeof G_vmlCanvasManager==='object'){G_vmlCanvasManager.initElement(canvas);}var ctx=canvas.getContext('2d');canvas.width=canvas.height=options.size;// canvas on retina devices\nvar scaleBy=1;if(window.devicePixelRatio>1){scaleBy=window.devicePixelRatio;canvas.style.width=canvas.style.height=[options.size,'px'].join('');canvas.width=canvas.height=options.size*scaleBy;ctx.scale(scaleBy,scaleBy);}// move 0,0 coordinates to the center\nctx.translate(options.size/2,options.size/2);// rotate canvas -90deg\nctx.rotate((-1/2+options.rotate/180)*Math.PI);var radius=(options.size-options.lineWidth)/2;if(options.scaleColor&&options.scaleLength){radius-=options.scaleLength+2;// 2 is the distance between scale and bar\n}// IE polyfill for Date\nDate.now=Date.now||function(){return+new Date();};/**\r\n       * Draw a circle around the center of the canvas\r\n       * @param {strong} color     Valid CSS color string\r\n       * @param {number} lineWidth Width of the line in px\r\n       * @param {number} percent   Percentage to draw (float between -1 and 1)\r\n       */var drawCircle=function(color,lineWidth,percent){percent=Math.min(Math.max(-1,percent||0),1);var isNegative=percent<=0?true:false;ctx.beginPath();ctx.arc(0,0,radius,0,Math.PI*2*percent,isNegative);ctx.strokeStyle=color;ctx.lineWidth=lineWidth;ctx.stroke();};/**\r\n       * Draw the scale of the chart\r\n       */var drawScale=function(){var offset;var length;ctx.lineWidth=1;ctx.fillStyle=options.scaleColor;ctx.save();for(var i=24;i>0;--i){if(i%6===0){length=options.scaleLength;offset=0;}else{length=options.scaleLength*0.6;offset=options.scaleLength-length;}ctx.fillRect(-options.size/2+offset,0,length,1);ctx.rotate(Math.PI/12);}ctx.restore();};/**\r\n       * Request animation frame wrapper with polyfill\r\n       * @return {function} Request animation frame method or timeout fallback\r\n       */var reqAnimationFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(callback){window.setTimeout(callback,1000/60);};}();/**\r\n       * Draw the background of the plugin including the scale and the track\r\n       */var drawBackground=function(){if(options.scaleColor)drawScale();if(options.trackColor)drawCircle(options.trackColor,options.trackWidth||options.lineWidth,1);};/**\r\n      * Canvas accessor\r\n     */this.getCanvas=function(){return canvas;};/**\r\n      * Canvas 2D context 'ctx' accessor\r\n     */this.getCtx=function(){return ctx;};/**\r\n       * Clear the complete canvas\r\n       */this.clear=function(){ctx.clearRect(options.size/-2,options.size/-2,options.size,options.size);};/**\r\n       * Draw the complete chart\r\n       * @param {number} percent Percent shown by the chart between -100 and 100\r\n       */this.draw=function(percent){// do we need to render a background\nif(!!options.scaleColor||!!options.trackColor){// getImageData and putImageData are supported\nif(ctx.getImageData&&ctx.putImageData){if(!cachedBackground){drawBackground();cachedBackground=ctx.getImageData(0,0,options.size*scaleBy,options.size*scaleBy);}else{ctx.putImageData(cachedBackground,0,0);}}else{this.clear();drawBackground();}}else{this.clear();}ctx.lineCap=options.lineCap;// if barcolor is a function execute it and pass the percent as a value\nvar color;if(typeof options.barColor==='function'){color=options.barColor(percent);}else{color=options.barColor;}// draw bar\ndrawCircle(color,options.lineWidth,percent/100);}.bind(this);/**\r\n       * Animate from some percent to some other percentage\r\n       * @param {number} from Starting percentage\r\n       * @param {number} to   Final percentage\r\n       */this.animate=function(from,to){var startTime=Date.now();options.onStart(from,to);var animation=function(){var process=Math.min(Date.now()-startTime,options.animate.duration);var currentValue=options.easing(this,process,from,to-from,options.animate.duration);this.draw(currentValue);options.onStep(from,to,currentValue);if(process>=options.animate.duration){options.onStop(from,to);}else{reqAnimationFrame(animation);}}.bind(this);reqAnimationFrame(animation);}.bind(this);};var EasyPieChart=function(el,opts){var defaultOptions={barColor:'#ef1e25',trackColor:'#f9f9f9',scaleColor:'#dfe0e0',scaleLength:5,lineCap:'round',lineWidth:3,trackWidth:undefined,size:110,rotate:0,animate:{duration:1000,enabled:true},easing:function(x,t,b,c,d){// more can be found here: http://gsgd.co.uk/sandbox/jquery/easing/\nt=t/(d/2);if(t<1){return c/2*t*t+b;}return-c/2*(--t*(t-2)-1)+b;},onStart:function(from,to){return;},onStep:function(from,to,currentValue){return;},onStop:function(from,to){return;}};// detect present renderer\nif(typeof CanvasRenderer!=='undefined'){defaultOptions.renderer=CanvasRenderer;}else if(typeof SVGRenderer!=='undefined'){defaultOptions.renderer=SVGRenderer;}else{throw new Error('Please load either the SVG- or the CanvasRenderer');}var options={};var currentValue=0;/**\r\n       * Initialize the plugin by creating the options object and initialize rendering\r\n       */var init=function(){this.el=el;this.options=options;// merge user options into default options\nfor(var i in defaultOptions){if(defaultOptions.hasOwnProperty(i)){options[i]=opts&&typeof opts[i]!=='undefined'?opts[i]:defaultOptions[i];if(typeof options[i]==='function'){options[i]=options[i].bind(this);}}}// check for jQuery easing\nif(typeof options.easing==='string'&&typeof jQuery!=='undefined'&&jQuery.isFunction(jQuery.easing[options.easing])){options.easing=jQuery.easing[options.easing];}else{options.easing=defaultOptions.easing;}// process earlier animate option to avoid bc breaks\nif(typeof options.animate==='number'){options.animate={duration:options.animate,enabled:true};}if(typeof options.animate==='boolean'&&!options.animate){options.animate={duration:1000,enabled:options.animate};}// create renderer\nthis.renderer=new options.renderer(el,options);// initial draw\nthis.renderer.draw(currentValue);// initial update\nif(el.dataset&&el.dataset.percent){this.update(parseFloat(el.dataset.percent));}else if(el.getAttribute&&el.getAttribute('data-percent')){this.update(parseFloat(el.getAttribute('data-percent')));}}.bind(this);/**\r\n       * Update the value of the chart\r\n       * @param  {number} newValue Number between 0 and 100\r\n       * @return {object}          Instance of the plugin for method chaining\r\n       */this.update=function(newValue){newValue=parseFloat(newValue);if(options.animate.enabled){this.renderer.animate(currentValue,newValue);}else{this.renderer.draw(newValue);}currentValue=newValue;return this;}.bind(this);/**\r\n       * Disable animation\r\n       * @return {object} Instance of the plugin for method chaining\r\n       */this.disableAnimation=function(){options.animate.enabled=false;return this;};/**\r\n       * Enable animation\r\n       * @return {object} Instance of the plugin for method chaining\r\n       */this.enableAnimation=function(){options.animate.enabled=true;return this;};init();};$.fn.easyPieChart=function(options){return this.each(function(){var instanceOptions;if(!$.data(this,'easyPieChart')){instanceOptions=$.extend({},options,$(this).data());$.data(this,'easyPieChart',new EasyPieChart(this,instanceOptions));}});};});document.addEventListener('DOMContentLoaded',function(){/* \tEasy pie chart Snippet\r\n          DOC: make sure to include this snippet in your project to be able to use the easy \r\n          configurations without any jquery implementations\r\n       */$('.js-easy-pie-chart').each(function(){var $this=$(this),barcolor=$this.css('color')||color.primary._700,trackcolor=$this.data('trackcolor')||'rgba(0,0,0,0.04)',size=parseInt($this.data('piesize'))||50,scalecolor=$this.data('scalecolor')||$this.css('color'),scalelength=parseInt($this.data('scalelength'))||0,linewidth=parseInt($this.data('linewidth'))||parseInt(size/8.5),linecap=$this.data('linecap')||'butt';//butt, round and square.\n$this.easyPieChart({size:size,barColor:barcolor,trackColor:trackcolor,scaleColor:scalecolor,scaleLength:scalelength,//Length of the scale lines (reduces the radius of the chart).\nlineCap:linecap,//Defines how the ending of the bar line looks like. Possible values are: butt, round and square.\nlineWidth:linewidth,animate:{duration:1500,enabled:true},onStep:function(from,to,percent){$(this.el).find('.js-percent').text(Math.round(percent));}});$this=null;});});// ----------- easypiechart.bundle.js END -------------\n// ----------- flot.bundle.js START -------------\n/* Javascript plotting library for jQuery, version 0.8.3.\r\n\r\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\r\nLicensed under the MIT license.\r\n\r\n*/ // first an inline dependency, jquery.colorhelpers.js, we inline it here\n// for convenience\n/* Plugin for jQuery for working with colors.\r\n *\r\n * Version 1.1.\r\n *\r\n * Inspiration from jQuery color animation plugin by John Resig.\r\n *\r\n * Released under the MIT license by Ole Laursen, October 2009.\r\n *\r\n * Examples:\r\n *\r\n *   $.color.parse(\"#fff\").scale('rgb', 0.25).add('a', -0.5).toString()\r\n *   var c = $.color.extract($(\"#mydiv\"), 'background-color');\r\n *   console.log(c.r, c.g, c.b, c.a);\r\n *   $.color.make(100, 50, 25, 0.4).toString() // returns \"rgba(100,50,25,0.4)\"\r\n *\r\n * Note that .scale() and .add() return the same modified object\r\n * instead of making a new one.\r\n *\r\n * V. 1.1: Fix error handling so e.g. parsing an empty string does\r\n * produce a color rather than just crashing.\r\n */(function($){$.color={};$.color.make=function(r,g,b,a){var o={};o.r=r||0;o.g=g||0;o.b=b||0;o.a=a!=null?a:1;o.add=function(c,d){for(var i=0;i<c.length;++i)o[c.charAt(i)]+=d;return o.normalize();};o.scale=function(c,f){for(var i=0;i<c.length;++i)o[c.charAt(i)]*=f;return o.normalize();};o.toString=function(){if(o.a>=1){return\"rgb(\"+[o.r,o.g,o.b].join(\",\")+\")\";}else{return\"rgba(\"+[o.r,o.g,o.b,o.a].join(\",\")+\")\";}};o.normalize=function(){function clamp(min,value,max){return value<min?min:value>max?max:value;}o.r=clamp(0,parseInt(o.r),255);o.g=clamp(0,parseInt(o.g),255);o.b=clamp(0,parseInt(o.b),255);o.a=clamp(0,o.a,1);return o;};o.clone=function(){return $.color.make(o.r,o.b,o.g,o.a);};return o.normalize();};$.color.extract=function(elem,css){var c;do{c=elem.css(css).toLowerCase();if(c!=\"\"&&c!=\"transparent\")break;elem=elem.parent();}while(elem.length&&!$.nodeName(elem.get(0),\"body\"));if(c==\"rgba(0, 0, 0, 0)\")c=\"transparent\";return $.color.parse(c);};$.color.parse=function(str){var res,m=$.color.make;if(res=/rgb\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)/.exec(str))return m(parseInt(res[1],10),parseInt(res[2],10),parseInt(res[3],10));if(res=/rgba\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\s*\\)/.exec(str))return m(parseInt(res[1],10),parseInt(res[2],10),parseInt(res[3],10),parseFloat(res[4]));if(res=/rgb\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)/.exec(str))return m(parseFloat(res[1])*2.55,parseFloat(res[2])*2.55,parseFloat(res[3])*2.55);if(res=/rgba\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\s*\\)/.exec(str))return m(parseFloat(res[1])*2.55,parseFloat(res[2])*2.55,parseFloat(res[3])*2.55,parseFloat(res[4]));if(res=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(str))return m(parseInt(res[1],16),parseInt(res[2],16),parseInt(res[3],16));if(res=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(str))return m(parseInt(res[1]+res[1],16),parseInt(res[2]+res[2],16),parseInt(res[3]+res[3],16));var name=$.trim(str).toLowerCase();if(name==\"transparent\")return m(255,255,255,0);else{res=lookupColors[name]||[0,0,0];return m(res[0],res[1],res[2]);}};var lookupColors={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]};})(jQuery);// the actual Flot code\n(function($){// Cache the prototype hasOwnProperty for faster access\nvar hasOwnProperty=Object.prototype.hasOwnProperty;// A shim to provide 'detach' to jQuery versions prior to 1.4.  Using a DOM\n// operation produces the same effect as detach, i.e. removing the element\n// without touching its jQuery data.\n// Do not merge this into Flot 0.9, since it requires jQuery 1.4.4+.\nif(!$.fn.detach){$.fn.detach=function(){return this.each(function(){if(this.parentNode){this.parentNode.removeChild(this);}});};}///////////////////////////////////////////////////////////////////////////\n// The Canvas object is a wrapper around an HTML5 <canvas> tag.\n//\n// @constructor\n// @param {string} cls List of classes to apply to the canvas.\n// @param {element} container Element onto which to append the canvas.\n//\n// Requiring a container is a little iffy, but unfortunately canvas\n// operations don't work unless the canvas is attached to the DOM.\nfunction Canvas(cls,container){var element=container.children(\".\"+cls)[0];if(element==null){element=document.createElement(\"canvas\");element.className=cls;$(element).css({direction:\"ltr\",position:\"absolute\",left:0,top:0}).appendTo(container);// If HTML5 Canvas isn't available, fall back to [Ex|Flash]canvas\nif(!element.getContext){if(window.G_vmlCanvasManager){element=window.G_vmlCanvasManager.initElement(element);}else{throw new Error(\"Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.\");}}}this.element=element;var context=this.context=element.getContext(\"2d\");// Determine the screen's ratio of physical to device-independent\n// pixels.  This is the ratio between the canvas width that the browser\n// advertises and the number of pixels actually present in that space.\n// The iPhone 4, for example, has a device-independent width of 320px,\n// but its screen is actually 640px wide.  It therefore has a pixel\n// ratio of 2, while most normal devices have a ratio of 1.\nvar devicePixelRatio=window.devicePixelRatio||1,backingStoreRatio=context.webkitBackingStorePixelRatio||context.mozBackingStorePixelRatio||context.msBackingStorePixelRatio||context.oBackingStorePixelRatio||context.backingStorePixelRatio||1;this.pixelRatio=devicePixelRatio/backingStoreRatio;// Size the canvas to match the internal dimensions of its container\nthis.resize(container.width(),container.height());// Collection of HTML div layers for text overlaid onto the canvas\nthis.textContainer=null;this.text={};// Cache of text fragments and metrics, so we can avoid expensively\n// re-calculating them when the plot is re-rendered in a loop.\nthis._textCache={};}// Resizes the canvas to the given dimensions.\n//\n// @param {number} width New width of the canvas, in pixels.\n// @param {number} width New height of the canvas, in pixels.\nCanvas.prototype.resize=function(width,height){if(width<=0||height<=0){throw new Error(\"Invalid dimensions for plot, width = \"+width+\", height = \"+height);}var element=this.element,context=this.context,pixelRatio=this.pixelRatio;// Resize the canvas, increasing its density based on the display's\n// pixel ratio; basically giving it more pixels without increasing the\n// size of its element, to take advantage of the fact that retina\n// displays have that many more pixels in the same advertised space.\n// Resizing should reset the state (excanvas seems to be buggy though)\nif(this.width!=width){element.width=width*pixelRatio;element.style.width=width+\"px\";this.width=width;}if(this.height!=height){element.height=height*pixelRatio;element.style.height=height+\"px\";this.height=height;}// Save the context, so we can reset in case we get replotted.  The\n// restore ensure that we're really back at the initial state, and\n// should be safe even if we haven't saved the initial state yet.\ncontext.restore();context.save();// Scale the coordinate space to match the display density; so even though we\n// may have twice as many pixels, we still want lines and other drawing to\n// appear at the same size; the extra pixels will just make them crisper.\ncontext.scale(pixelRatio,pixelRatio);};// Clears the entire canvas area, not including any overlaid HTML text\nCanvas.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height);};// Finishes rendering the canvas, including managing the text overlay.\nCanvas.prototype.render=function(){var cache=this._textCache;// For each text layer, add elements marked as active that haven't\n// already been rendered, and remove those that are no longer active.\nfor(var layerKey in cache){if(hasOwnProperty.call(cache,layerKey)){var layer=this.getTextLayer(layerKey),layerCache=cache[layerKey];layer.hide();for(var styleKey in layerCache){if(hasOwnProperty.call(layerCache,styleKey)){var styleCache=layerCache[styleKey];for(var key in styleCache){if(hasOwnProperty.call(styleCache,key)){var positions=styleCache[key].positions;for(var i=0,position;position=positions[i];i++){if(position.active){if(!position.rendered){layer.append(position.element);position.rendered=true;}}else{positions.splice(i--,1);if(position.rendered){position.element.detach();}}}if(positions.length==0){delete styleCache[key];}}}}}layer.show();}}};// Creates (if necessary) and returns the text overlay container.\n//\n// @param {string} classes String of space-separated CSS classes used to\n//     uniquely identify the text layer.\n// @return {object} The jQuery-wrapped text-layer div.\nCanvas.prototype.getTextLayer=function(classes){var layer=this.text[classes];// Create the text layer if it doesn't exist\nif(layer==null){// Create the text layer container, if it doesn't exist\nif(this.textContainer==null){this.textContainer=$(\"<div class='flot-text'></div>\").css({position:\"absolute\",top:0,left:0,bottom:0,right:0,'font-size':\"smaller\",color:\"#545454\"}).insertAfter(this.element);}layer=this.text[classes]=$(\"<div></div>\").addClass(classes).css({position:\"absolute\",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer);}return layer;};// Creates (if necessary) and returns a text info object.\n//\n// The object looks like this:\n//\n// {\n//     width: Width of the text's wrapper div.\n//     height: Height of the text's wrapper div.\n//     element: The jQuery-wrapped HTML div containing the text.\n//     positions: Array of positions at which this text is drawn.\n// }\n//\n// The positions array contains objects that look like this:\n//\n// {\n//     active: Flag indicating whether the text should be visible.\n//     rendered: Flag indicating whether the text is currently visible.\n//     element: The jQuery-wrapped HTML div containing the text.\n//     x: X coordinate at which to draw the text.\n//     y: Y coordinate at which to draw the text.\n// }\n//\n// Each position after the first receives a clone of the original element.\n//\n// The idea is that that the width, height, and general 'identity' of the\n// text is constant no matter where it is placed; the placements are a\n// secondary property.\n//\n// Canvas maintains a cache of recently-used text info objects; getTextInfo\n// either returns the cached element or creates a new entry.\n//\n// @param {string} layer A string of space-separated CSS classes uniquely\n//     identifying the layer containing this text.\n// @param {string} text Text string to retrieve info for.\n// @param {(string|object)=} font Either a string of space-separated CSS\n//     classes or a font-spec object, defining the text's font and style.\n// @param {number=} angle Angle at which to rotate the text, in degrees.\n//     Angle is currently unused, it will be implemented in the future.\n// @param {number=} width Maximum width of the text before it wraps.\n// @return {object} a text info object.\nCanvas.prototype.getTextInfo=function(layer,text,font,angle,width){var textStyle,layerCache,styleCache,info;// Cast the value to a string, in case we were given a number or such\ntext=\"\"+text;// If the font is a font-spec object, generate a CSS font definition\nif(typeof font===\"object\"){textStyle=font.style+\" \"+font.variant+\" \"+font.weight+\" \"+font.size+\"px/\"+font.lineHeight+\"px \"+font.family;}else{textStyle=font;}// Retrieve (or create) the cache for the text's layer and styles\nlayerCache=this._textCache[layer];if(layerCache==null){layerCache=this._textCache[layer]={};}styleCache=layerCache[textStyle];if(styleCache==null){styleCache=layerCache[textStyle]={};}info=styleCache[text];// If we can't find a matching element in our cache, create a new one\nif(info==null){var element=$(\"<div></div>\").html(text).css({position:\"absolute\",'max-width':width,top:-9999}).appendTo(this.getTextLayer(layer));if(typeof font===\"object\"){element.css({font:textStyle,color:font.color});}else if(typeof font===\"string\"){element.addClass(font);}info=styleCache[text]={width:element.outerWidth(true),height:element.outerHeight(true),element:element,positions:[]};element.detach();}return info;};// Adds a text string to the canvas text overlay.\n//\n// The text isn't drawn immediately; it is marked as rendering, which will\n// result in its addition to the canvas on the next render pass.\n//\n// @param {string} layer A string of space-separated CSS classes uniquely\n//     identifying the layer containing this text.\n// @param {number} x X coordinate at which to draw the text.\n// @param {number} y Y coordinate at which to draw the text.\n// @param {string} text Text string to draw.\n// @param {(string|object)=} font Either a string of space-separated CSS\n//     classes or a font-spec object, defining the text's font and style.\n// @param {number=} angle Angle at which to rotate the text, in degrees.\n//     Angle is currently unused, it will be implemented in the future.\n// @param {number=} width Maximum width of the text before it wraps.\n// @param {string=} halign Horizontal alignment of the text; either \"left\",\n//     \"center\" or \"right\".\n// @param {string=} valign Vertical alignment of the text; either \"top\",\n//     \"middle\" or \"bottom\".\nCanvas.prototype.addText=function(layer,x,y,text,font,angle,width,halign,valign){var info=this.getTextInfo(layer,text,font,angle,width),positions=info.positions;// Tweak the div's position to match the text's alignment\nif(halign==\"center\"){x-=info.width/2;}else if(halign==\"right\"){x-=info.width;}if(valign==\"middle\"){y-=info.height/2;}else if(valign==\"bottom\"){y-=info.height;}// Determine whether this text already exists at this position.\n// If so, mark it for inclusion in the next render pass.\nfor(var i=0,position;position=positions[i];i++){if(position.x==x&&position.y==y){position.active=true;return;}}// If the text doesn't exist at this position, create a new entry\n// For the very first position we'll re-use the original element,\n// while for subsequent ones we'll clone it.\nposition={active:true,rendered:false,element:positions.length?info.element.clone():info.element,x:x,y:y};positions.push(position);// Move the element to its final position within the container\nposition.element.css({top:Math.round(y),left:Math.round(x),'text-align':halign// In case the text wraps\n});};// Removes one or more text strings from the canvas text overlay.\n//\n// If no parameters are given, all text within the layer is removed.\n//\n// Note that the text is not immediately removed; it is simply marked as\n// inactive, which will result in its removal on the next render pass.\n// This avoids the performance penalty for 'clear and redraw' behavior,\n// where we potentially get rid of all text on a layer, but will likely\n// add back most or all of it later, as when redrawing axes, for example.\n//\n// @param {string} layer A string of space-separated CSS classes uniquely\n//     identifying the layer containing this text.\n// @param {number=} x X coordinate of the text.\n// @param {number=} y Y coordinate of the text.\n// @param {string=} text Text string to remove.\n// @param {(string|object)=} font Either a string of space-separated CSS\n//     classes or a font-spec object, defining the text's font and style.\n// @param {number=} angle Angle at which the text is rotated, in degrees.\n//     Angle is currently unused, it will be implemented in the future.\nCanvas.prototype.removeText=function(layer,x,y,text,font,angle){if(text==null){var layerCache=this._textCache[layer];if(layerCache!=null){for(var styleKey in layerCache){if(hasOwnProperty.call(layerCache,styleKey)){var styleCache=layerCache[styleKey];for(var key in styleCache){if(hasOwnProperty.call(styleCache,key)){var positions=styleCache[key].positions;for(var i=0,position;position=positions[i];i++){position.active=false;}}}}}}}else{var positions=this.getTextInfo(layer,text,font,angle).positions;for(var i=0,position;position=positions[i];i++){if(position.x==x&&position.y==y){position.active=false;}}}};///////////////////////////////////////////////////////////////////////////\n// The top-level container for the entire plot.\nfunction Plot(placeholder,data_,options_,plugins){// data is on the form:\n//   [ series1, series2 ... ]\n// where series is either just the data as [ [x1, y1], [x2, y2], ... ]\n// or { data: [ [x1, y1], [x2, y2], ... ], label: \"some label\", ... }\nvar series=[],options={// the color theme used for graphs\ncolors:[\"#edc240\",\"#afd8f8\",\"#cb4b4b\",\"#4da74d\",\"#9440ed\"],legend:{show:true,noColumns:1,// number of colums in legend table\nlabelFormatter:null,// fn: string -> string\nlabelBoxBorderColor:\"#ccc\",// border color for the little label boxes\ncontainer:null,// container (as jQuery object) to put legend in, null means default on top of graph\nposition:\"ne\",// position of default legend container within plot\nmargin:5,// distance from grid edge to default legend container within plot\nbackgroundColor:null,// null means auto-detect\nbackgroundOpacity:0.85,// set to 0 to avoid background\nsorted:null// default to no legend sorting\n},xaxis:{show:null,// null = auto-detect, true = always, false = never\nposition:\"bottom\",// or \"top\"\nmode:null,// null or \"time\"\nfont:null,// null (derived from CSS in placeholder) or object like { size: 11, lineHeight: 13, style: \"italic\", weight: \"bold\", family: \"sans-serif\", variant: \"small-caps\" }\ncolor:null,// base color, labels, ticks\ntickColor:null,// possibly different color of ticks, e.g. \"rgba(0,0,0,0.15)\"\ntransform:null,// null or f: number -> number to transform axis\ninverseTransform:null,// if transform is set, this should be the inverse function\nmin:null,// min. value to show, null means set automatically\nmax:null,// max. value to show, null means set automatically\nautoscaleMargin:null,// margin in % to add if auto-setting min/max\nticks:null,// either [1, 3] or [[1, \"a\"], 3] or (fn: axis info -> ticks) or app. number of ticks for auto-ticks\ntickFormatter:null,// fn: number -> string\nlabelWidth:null,// size of tick labels in pixels\nlabelHeight:null,reserveSpace:null,// whether to reserve space even if axis isn't shown\ntickLength:null,// size in pixels of ticks, or \"full\" for whole line\nalignTicksWithAxis:null,// axis number or null for no sync\ntickDecimals:null,// no. of decimals, null means auto\ntickSize:null,// number or [number, \"unit\"]\nminTickSize:null// number or [number, \"unit\"]\n},yaxis:{autoscaleMargin:0.02,position:\"left\"// or \"right\"\n},xaxes:[],yaxes:[],series:{points:{show:false,radius:3,lineWidth:2,// in pixels\nfill:true,fillColor:\"#ffffff\",symbol:\"circle\"// or callback\n},lines:{// we don't put in show: false so we can see\n// whether lines were actively disabled\nlineWidth:2,// in pixels\nfill:false,fillColor:null,steps:false// Omit 'zero', so we can later default its value to\n// match that of the 'fill' option.\n},bars:{show:false,lineWidth:2,// in pixels\nbarWidth:1,// in units of the x axis\nfill:true,fillColor:null,align:\"left\",// \"left\", \"right\", or \"center\"\nhorizontal:false,zero:true},shadowSize:3,highlightColor:null},grid:{show:true,aboveData:false,color:\"#545454\",// primary color used for outline and labels\nbackgroundColor:null,// null for transparent, else color\nborderColor:null,// set if different from the grid color\ntickColor:null,// color for the ticks, e.g. \"rgba(0,0,0,0.15)\"\nmargin:0,// distance from the canvas edge to the grid\nlabelMargin:5,// in pixels\naxisMargin:8,// in pixels\nborderWidth:2,// in pixels\nminBorderMargin:null,// in pixels, null means taken from points radius\nmarkings:null,// array of ranges or fn: axes -> array of ranges\nmarkingsColor:\"#f4f4f4\",markingsLineWidth:2,// interactive stuff\nclickable:false,hoverable:false,autoHighlight:true,// highlight in case mouse is near\nmouseActiveRadius:10// how far the mouse can be away to activate an item\n},interaction:{redrawOverlayInterval:1000/60// time between updates, -1 means in same flow\n},hooks:{}},surface=null,// the canvas for the plot itself\noverlay=null,// canvas for interactive stuff on top of plot\neventHolder=null,// jQuery object that events should be bound to\nctx=null,octx=null,xaxes=[],yaxes=[],plotOffset={left:0,right:0,top:0,bottom:0},plotWidth=0,plotHeight=0,hooks={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},plot=this;// public functions\nplot.setData=setData;plot.setupGrid=setupGrid;plot.draw=draw;plot.getPlaceholder=function(){return placeholder;};plot.getCanvas=function(){return surface.element;};plot.getPlotOffset=function(){return plotOffset;};plot.width=function(){return plotWidth;};plot.height=function(){return plotHeight;};plot.offset=function(){var o=eventHolder.offset();o.left+=plotOffset.left;o.top+=plotOffset.top;return o;};plot.getData=function(){return series;};plot.getAxes=function(){var res={},i;$.each(xaxes.concat(yaxes),function(_,axis){if(axis)res[axis.direction+(axis.n!=1?axis.n:\"\")+\"axis\"]=axis;});return res;};plot.getXAxes=function(){return xaxes;};plot.getYAxes=function(){return yaxes;};plot.c2p=canvasToAxisCoords;plot.p2c=axisToCanvasCoords;plot.getOptions=function(){return options;};plot.highlight=highlight;plot.unhighlight=unhighlight;plot.triggerRedrawOverlay=triggerRedrawOverlay;plot.pointOffset=function(point){return{left:parseInt(xaxes[axisNumber(point,\"x\")-1].p2c(+point.x)+plotOffset.left,10),top:parseInt(yaxes[axisNumber(point,\"y\")-1].p2c(+point.y)+plotOffset.top,10)};};plot.shutdown=shutdown;plot.destroy=function(){shutdown();placeholder.removeData(\"plot\").empty();series=[];options=null;surface=null;overlay=null;eventHolder=null;ctx=null;octx=null;xaxes=[];yaxes=[];hooks=null;highlights=[];plot=null;};plot.resize=function(){var width=placeholder.width(),height=placeholder.height();surface.resize(width,height);overlay.resize(width,height);};// public attributes\nplot.hooks=hooks;// initialize\ninitPlugins(plot);parseOptions(options_);setupCanvases();setData(data_);setupGrid();draw();bindEvents();function executeHooks(hook,args){args=[plot].concat(args);for(var i=0;i<hook.length;++i)hook[i].apply(this,args);}function initPlugins(){// References to key classes, allowing plugins to modify them\nvar classes={Canvas:Canvas};for(var i=0;i<plugins.length;++i){var p=plugins[i];p.init(plot,classes);if(p.options)$.extend(true,options,p.options);}}function parseOptions(opts){$.extend(true,options,opts);// $.extend merges arrays, rather than replacing them.  When less\n// colors are provided than the size of the default palette, we\n// end up with those colors plus the remaining defaults, which is\n// not expected behavior; avoid it by replacing them here.\nif(opts&&opts.colors){options.colors=opts.colors;}if(options.xaxis.color==null)options.xaxis.color=$.color.parse(options.grid.color).scale('a',0.22).toString();if(options.yaxis.color==null)options.yaxis.color=$.color.parse(options.grid.color).scale('a',0.22).toString();if(options.xaxis.tickColor==null)// grid.tickColor for back-compatibility\noptions.xaxis.tickColor=options.grid.tickColor||options.xaxis.color;if(options.yaxis.tickColor==null)// grid.tickColor for back-compatibility\noptions.yaxis.tickColor=options.grid.tickColor||options.yaxis.color;if(options.grid.borderColor==null)options.grid.borderColor=options.grid.color;if(options.grid.tickColor==null)options.grid.tickColor=$.color.parse(options.grid.color).scale('a',0.22).toString();// Fill in defaults for axis options, including any unspecified\n// font-spec fields, if a font-spec was provided.\n// If no x/y axis options were provided, create one of each anyway,\n// since the rest of the code assumes that they exist.\nvar i,axisOptions,axisCount,fontSize=placeholder.css(\"font-size\"),fontSizeDefault=fontSize?+fontSize.replace(\"px\",\"\"):13,fontDefaults={style:placeholder.css(\"font-style\"),size:Math.round(0.8*fontSizeDefault),variant:placeholder.css(\"font-variant\"),weight:placeholder.css(\"font-weight\"),family:placeholder.css(\"font-family\")};axisCount=options.xaxes.length||1;for(i=0;i<axisCount;++i){axisOptions=options.xaxes[i];if(axisOptions&&!axisOptions.tickColor){axisOptions.tickColor=axisOptions.color;}axisOptions=$.extend(true,{},options.xaxis,axisOptions);options.xaxes[i]=axisOptions;if(axisOptions.font){axisOptions.font=$.extend({},fontDefaults,axisOptions.font);if(!axisOptions.font.color){axisOptions.font.color=axisOptions.color;}if(!axisOptions.font.lineHeight){axisOptions.font.lineHeight=Math.round(axisOptions.font.size*1.15);}}}axisCount=options.yaxes.length||1;for(i=0;i<axisCount;++i){axisOptions=options.yaxes[i];if(axisOptions&&!axisOptions.tickColor){axisOptions.tickColor=axisOptions.color;}axisOptions=$.extend(true,{},options.yaxis,axisOptions);options.yaxes[i]=axisOptions;if(axisOptions.font){axisOptions.font=$.extend({},fontDefaults,axisOptions.font);if(!axisOptions.font.color){axisOptions.font.color=axisOptions.color;}if(!axisOptions.font.lineHeight){axisOptions.font.lineHeight=Math.round(axisOptions.font.size*1.15);}}}// backwards compatibility, to be removed in future\nif(options.xaxis.noTicks&&options.xaxis.ticks==null)options.xaxis.ticks=options.xaxis.noTicks;if(options.yaxis.noTicks&&options.yaxis.ticks==null)options.yaxis.ticks=options.yaxis.noTicks;if(options.x2axis){options.xaxes[1]=$.extend(true,{},options.xaxis,options.x2axis);options.xaxes[1].position=\"top\";// Override the inherit to allow the axis to auto-scale\nif(options.x2axis.min==null){options.xaxes[1].min=null;}if(options.x2axis.max==null){options.xaxes[1].max=null;}}if(options.y2axis){options.yaxes[1]=$.extend(true,{},options.yaxis,options.y2axis);options.yaxes[1].position=\"right\";// Override the inherit to allow the axis to auto-scale\nif(options.y2axis.min==null){options.yaxes[1].min=null;}if(options.y2axis.max==null){options.yaxes[1].max=null;}}if(options.grid.coloredAreas)options.grid.markings=options.grid.coloredAreas;if(options.grid.coloredAreasColor)options.grid.markingsColor=options.grid.coloredAreasColor;if(options.lines)$.extend(true,options.series.lines,options.lines);if(options.points)$.extend(true,options.series.points,options.points);if(options.bars)$.extend(true,options.series.bars,options.bars);if(options.shadowSize!=null)options.series.shadowSize=options.shadowSize;if(options.highlightColor!=null)options.series.highlightColor=options.highlightColor;// save options on axes for future reference\nfor(i=0;i<options.xaxes.length;++i)getOrCreateAxis(xaxes,i+1).options=options.xaxes[i];for(i=0;i<options.yaxes.length;++i)getOrCreateAxis(yaxes,i+1).options=options.yaxes[i];// add hooks from options\nfor(var n in hooks)if(options.hooks[n]&&options.hooks[n].length)hooks[n]=hooks[n].concat(options.hooks[n]);executeHooks(hooks.processOptions,[options]);}function setData(d){series=parseData(d);fillInSeriesOptions();processData();}function parseData(d){var res=[];for(var i=0;i<d.length;++i){var s=$.extend(true,{},options.series);if(d[i].data!=null){s.data=d[i].data;// move the data instead of deep-copy\ndelete d[i].data;$.extend(true,s,d[i]);d[i].data=s.data;}else s.data=d[i];res.push(s);}return res;}function axisNumber(obj,coord){var a=obj[coord+\"axis\"];if(typeof a==\"object\")// if we got a real axis, extract number\na=a.n;if(typeof a!=\"number\")a=1;// default to first axis\nreturn a;}function allAxes(){// return flat array without annoying null entries\nreturn $.grep(xaxes.concat(yaxes),function(a){return a;});}function canvasToAxisCoords(pos){// return an object with x/y corresponding to all used axes\nvar res={},i,axis;for(i=0;i<xaxes.length;++i){axis=xaxes[i];if(axis&&axis.used)res[\"x\"+axis.n]=axis.c2p(pos.left);}for(i=0;i<yaxes.length;++i){axis=yaxes[i];if(axis&&axis.used)res[\"y\"+axis.n]=axis.c2p(pos.top);}if(res.x1!==undefined)res.x=res.x1;if(res.y1!==undefined)res.y=res.y1;return res;}function axisToCanvasCoords(pos){// get canvas coords from the first pair of x/y found in pos\nvar res={},i,axis,key;for(i=0;i<xaxes.length;++i){axis=xaxes[i];if(axis&&axis.used){key=\"x\"+axis.n;if(pos[key]==null&&axis.n==1)key=\"x\";if(pos[key]!=null){res.left=axis.p2c(pos[key]);break;}}}for(i=0;i<yaxes.length;++i){axis=yaxes[i];if(axis&&axis.used){key=\"y\"+axis.n;if(pos[key]==null&&axis.n==1)key=\"y\";if(pos[key]!=null){res.top=axis.p2c(pos[key]);break;}}}return res;}function getOrCreateAxis(axes,number){if(!axes[number-1])axes[number-1]={n:number,// save the number for future reference\ndirection:axes==xaxes?\"x\":\"y\",options:$.extend(true,{},axes==xaxes?options.xaxis:options.yaxis)};return axes[number-1];}function fillInSeriesOptions(){var neededColors=series.length,maxIndex=-1,i;// Subtract the number of series that already have fixed colors or\n// color indexes from the number that we still need to generate.\nfor(i=0;i<series.length;++i){var sc=series[i].color;if(sc!=null){neededColors--;if(typeof sc==\"number\"&&sc>maxIndex){maxIndex=sc;}}}// If any of the series have fixed color indexes, then we need to\n// generate at least as many colors as the highest index.\nif(neededColors<=maxIndex){neededColors=maxIndex+1;}// Generate all the colors, using first the option colors and then\n// variations on those colors once they're exhausted.\nvar c,colors=[],colorPool=options.colors,colorPoolSize=colorPool.length,variation=0;for(i=0;i<neededColors;i++){c=$.color.parse(colorPool[i%colorPoolSize]||\"#666\");// Each time we exhaust the colors in the pool we adjust\n// a scaling factor used to produce more variations on\n// those colors. The factor alternates negative/positive\n// to produce lighter/darker colors.\n// Reset the variation after every few cycles, or else\n// it will end up producing only white or black colors.\nif(i%colorPoolSize==0&&i){if(variation>=0){if(variation<0.5){variation=-variation-0.2;}else variation=0;}else variation=-variation;}colors[i]=c.scale('rgb',1+variation);}// Finalize the series options, filling in their colors\nvar colori=0,s;for(i=0;i<series.length;++i){s=series[i];// assign colors\nif(s.color==null){s.color=colors[colori].toString();++colori;}else if(typeof s.color==\"number\")s.color=colors[s.color].toString();// turn on lines automatically in case nothing is set\nif(s.lines.show==null){var v,show=true;for(v in s)if(s[v]&&s[v].show){show=false;break;}if(show)s.lines.show=true;}// If nothing was provided for lines.zero, default it to match\n// lines.fill, since areas by default should extend to zero.\nif(s.lines.zero==null){s.lines.zero=!!s.lines.fill;}// setup axes\ns.xaxis=getOrCreateAxis(xaxes,axisNumber(s,\"x\"));s.yaxis=getOrCreateAxis(yaxes,axisNumber(s,\"y\"));}}function processData(){var topSentry=Number.POSITIVE_INFINITY,bottomSentry=Number.NEGATIVE_INFINITY,fakeInfinity=Number.MAX_VALUE,i,j,k,m,length,s,points,ps,x,y,axis,val,f,p,data,format;function updateAxis(axis,min,max){if(min<axis.datamin&&min!=-fakeInfinity)axis.datamin=min;if(max>axis.datamax&&max!=fakeInfinity)axis.datamax=max;}$.each(allAxes(),function(_,axis){// init axis\naxis.datamin=topSentry;axis.datamax=bottomSentry;axis.used=false;});for(i=0;i<series.length;++i){s=series[i];s.datapoints={points:[]};executeHooks(hooks.processRawData,[s,s.data,s.datapoints]);}// first pass: clean and copy data\nfor(i=0;i<series.length;++i){s=series[i];data=s.data;format=s.datapoints.format;if(!format){format=[];// find out how to copy\nformat.push({x:true,number:true,required:true});format.push({y:true,number:true,required:true});if(s.bars.show||s.lines.show&&s.lines.fill){var autoscale=!!(s.bars.show&&s.bars.zero||s.lines.show&&s.lines.zero);format.push({y:true,number:true,required:false,defaultValue:0,autoscale:autoscale});if(s.bars.horizontal){delete format[format.length-1].y;format[format.length-1].x=true;}}s.datapoints.format=format;}if(s.datapoints.pointsize!=null)continue;// already filled in\ns.datapoints.pointsize=format.length;ps=s.datapoints.pointsize;points=s.datapoints.points;var insertSteps=s.lines.show&&s.lines.steps;s.xaxis.used=s.yaxis.used=true;for(j=k=0;j<data.length;++j,k+=ps){p=data[j];var nullify=p==null;if(!nullify){for(m=0;m<ps;++m){val=p[m];f=format[m];if(f){if(f.number&&val!=null){val=+val;// convert to number\nif(isNaN(val))val=null;else if(val==Infinity)val=fakeInfinity;else if(val==-Infinity)val=-fakeInfinity;}if(val==null){if(f.required)nullify=true;if(f.defaultValue!=null)val=f.defaultValue;}}points[k+m]=val;}}if(nullify){for(m=0;m<ps;++m){val=points[k+m];if(val!=null){f=format[m];// extract min/max info\nif(f.autoscale!==false){if(f.x){updateAxis(s.xaxis,val,val);}if(f.y){updateAxis(s.yaxis,val,val);}}}points[k+m]=null;}}else{// a little bit of line specific stuff that\n// perhaps shouldn't be here, but lacking\n// better means...\nif(insertSteps&&k>0&&points[k-ps]!=null&&points[k-ps]!=points[k]&&points[k-ps+1]!=points[k+1]){// copy the point to make room for a middle point\nfor(m=0;m<ps;++m)points[k+ps+m]=points[k+m];// middle point has same y\npoints[k+1]=points[k-ps+1];// we've added a point, better reflect that\nk+=ps;}}}}// give the hooks a chance to run\nfor(i=0;i<series.length;++i){s=series[i];executeHooks(hooks.processDatapoints,[s,s.datapoints]);}// second pass: find datamax/datamin for auto-scaling\nfor(i=0;i<series.length;++i){s=series[i];points=s.datapoints.points;ps=s.datapoints.pointsize;format=s.datapoints.format;var xmin=topSentry,ymin=topSentry,xmax=bottomSentry,ymax=bottomSentry;for(j=0;j<points.length;j+=ps){if(points[j]==null)continue;for(m=0;m<ps;++m){val=points[j+m];f=format[m];if(!f||f.autoscale===false||val==fakeInfinity||val==-fakeInfinity)continue;if(f.x){if(val<xmin)xmin=val;if(val>xmax)xmax=val;}if(f.y){if(val<ymin)ymin=val;if(val>ymax)ymax=val;}}}if(s.bars.show){// make sure we got room for the bar on the dancing floor\nvar delta;switch(s.bars.align){case\"left\":delta=0;break;case\"right\":delta=-s.bars.barWidth;break;default:delta=-s.bars.barWidth/2;}if(s.bars.horizontal){ymin+=delta;ymax+=delta+s.bars.barWidth;}else{xmin+=delta;xmax+=delta+s.bars.barWidth;}}updateAxis(s.xaxis,xmin,xmax);updateAxis(s.yaxis,ymin,ymax);}$.each(allAxes(),function(_,axis){if(axis.datamin==topSentry)axis.datamin=null;if(axis.datamax==bottomSentry)axis.datamax=null;});}function setupCanvases(){// Make sure the placeholder is clear of everything except canvases\n// from a previous plot in this container that we'll try to re-use.\nplaceholder.css(\"padding\",0)// padding messes up the positioning\n.children().filter(function(){return!$(this).hasClass(\"flot-overlay\")&&!$(this).hasClass('flot-base');}).remove();if(placeholder.css(\"position\")=='static')placeholder.css(\"position\",\"relative\");// for positioning labels and overlay\nsurface=new Canvas(\"flot-base\",placeholder);overlay=new Canvas(\"flot-overlay\",placeholder);// overlay canvas for interactive features\nctx=surface.context;octx=overlay.context;// define which element we're listening for events on\neventHolder=$(overlay.element).unbind();// If we're re-using a plot object, shut down the old one\nvar existing=placeholder.data(\"plot\");if(existing){existing.shutdown();overlay.clear();}// save in case we get replotted\nplaceholder.data(\"plot\",plot);}function bindEvents(){// bind events\nif(options.grid.hoverable){eventHolder.mousemove(onMouseMove);// Use bind, rather than .mouseleave, because we officially\n// still support jQuery 1.2.6, which doesn't define a shortcut\n// for mouseenter or mouseleave.  This was a bug/oversight that\n// was fixed somewhere around 1.3.x.  We can return to using\n// .mouseleave when we drop support for 1.2.6.\neventHolder.bind(\"mouseleave\",onMouseLeave);}if(options.grid.clickable)eventHolder.click(onClick);executeHooks(hooks.bindEvents,[eventHolder]);}function shutdown(){if(redrawTimeout)clearTimeout(redrawTimeout);eventHolder.unbind(\"mousemove\",onMouseMove);eventHolder.unbind(\"mouseleave\",onMouseLeave);eventHolder.unbind(\"click\",onClick);executeHooks(hooks.shutdown,[eventHolder]);}function setTransformationHelpers(axis){// set helper functions on the axis, assumes plot area\n// has been computed already\nfunction identity(x){return x;}var s,m,t=axis.options.transform||identity,it=axis.options.inverseTransform;// precompute how much the axis is scaling a point\n// in canvas space\nif(axis.direction==\"x\"){s=axis.scale=plotWidth/Math.abs(t(axis.max)-t(axis.min));m=Math.min(t(axis.max),t(axis.min));}else{s=axis.scale=plotHeight/Math.abs(t(axis.max)-t(axis.min));s=-s;m=Math.max(t(axis.max),t(axis.min));}// data point to canvas coordinate\nif(t==identity)// slight optimization\naxis.p2c=function(p){return(p-m)*s;};else axis.p2c=function(p){return(t(p)-m)*s;};// canvas coordinate to data point\nif(!it)axis.c2p=function(c){return m+c/s;};else axis.c2p=function(c){return it(m+c/s);};}function measureTickLabels(axis){var opts=axis.options,ticks=axis.ticks||[],labelWidth=opts.labelWidth||0,labelHeight=opts.labelHeight||0,maxWidth=labelWidth||(axis.direction==\"x\"?Math.floor(surface.width/(ticks.length||1)):null),legacyStyles=axis.direction+\"Axis \"+axis.direction+axis.n+\"Axis\",layer=\"flot-\"+axis.direction+\"-axis flot-\"+axis.direction+axis.n+\"-axis \"+legacyStyles,font=opts.font||\"flot-tick-label tickLabel\";for(var i=0;i<ticks.length;++i){var t=ticks[i];if(!t.label)continue;var info=surface.getTextInfo(layer,t.label,font,null,maxWidth);labelWidth=Math.max(labelWidth,info.width);labelHeight=Math.max(labelHeight,info.height);}axis.labelWidth=opts.labelWidth||labelWidth;axis.labelHeight=opts.labelHeight||labelHeight;}function allocateAxisBoxFirstPhase(axis){// find the bounding box of the axis by looking at label\n// widths/heights and ticks, make room by diminishing the\n// plotOffset; this first phase only looks at one\n// dimension per axis, the other dimension depends on the\n// other axes so will have to wait\nvar lw=axis.labelWidth,lh=axis.labelHeight,pos=axis.options.position,isXAxis=axis.direction===\"x\",tickLength=axis.options.tickLength,axisMargin=options.grid.axisMargin,padding=options.grid.labelMargin,innermost=true,outermost=true,first=true,found=false;// Determine the axis's position in its direction and on its side\n$.each(isXAxis?xaxes:yaxes,function(i,a){if(a&&(a.show||a.reserveSpace)){if(a===axis){found=true;}else if(a.options.position===pos){if(found){outermost=false;}else{innermost=false;}}if(!found){first=false;}}});// The outermost axis on each side has no margin\nif(outermost){axisMargin=0;}// The ticks for the first axis in each direction stretch across\nif(tickLength==null){tickLength=first?\"full\":5;}if(!isNaN(+tickLength))padding+=+tickLength;if(isXAxis){lh+=padding;if(pos==\"bottom\"){plotOffset.bottom+=lh+axisMargin;axis.box={top:surface.height-plotOffset.bottom,height:lh};}else{axis.box={top:plotOffset.top+axisMargin,height:lh};plotOffset.top+=lh+axisMargin;}}else{lw+=padding;if(pos==\"left\"){axis.box={left:plotOffset.left+axisMargin,width:lw};plotOffset.left+=lw+axisMargin;}else{plotOffset.right+=lw+axisMargin;axis.box={left:surface.width-plotOffset.right,width:lw};}}// save for future reference\naxis.position=pos;axis.tickLength=tickLength;axis.box.padding=padding;axis.innermost=innermost;}function allocateAxisBoxSecondPhase(axis){// now that all axis boxes have been placed in one\n// dimension, we can set the remaining dimension coordinates\nif(axis.direction==\"x\"){axis.box.left=plotOffset.left-axis.labelWidth/2;axis.box.width=surface.width-plotOffset.left-plotOffset.right+axis.labelWidth;}else{axis.box.top=plotOffset.top-axis.labelHeight/2;axis.box.height=surface.height-plotOffset.bottom-plotOffset.top+axis.labelHeight;}}function adjustLayoutForThingsStickingOut(){// possibly adjust plot offset to ensure everything stays\n// inside the canvas and isn't clipped off\nvar minMargin=options.grid.minBorderMargin,axis,i;// check stuff from the plot (FIXME: this should just read\n// a value from the series, otherwise it's impossible to\n// customize)\nif(minMargin==null){minMargin=0;for(i=0;i<series.length;++i)minMargin=Math.max(minMargin,2*(series[i].points.radius+series[i].points.lineWidth/2));}var margins={left:minMargin,right:minMargin,top:minMargin,bottom:minMargin};// check axis labels, note we don't check the actual\n// labels but instead use the overall width/height to not\n// jump as much around with replots\n$.each(allAxes(),function(_,axis){if(axis.reserveSpace&&axis.ticks&&axis.ticks.length){if(axis.direction===\"x\"){margins.left=Math.max(margins.left,axis.labelWidth/2);margins.right=Math.max(margins.right,axis.labelWidth/2);}else{margins.bottom=Math.max(margins.bottom,axis.labelHeight/2);margins.top=Math.max(margins.top,axis.labelHeight/2);}}});plotOffset.left=Math.ceil(Math.max(margins.left,plotOffset.left));plotOffset.right=Math.ceil(Math.max(margins.right,plotOffset.right));plotOffset.top=Math.ceil(Math.max(margins.top,plotOffset.top));plotOffset.bottom=Math.ceil(Math.max(margins.bottom,plotOffset.bottom));}function setupGrid(){var i,axes=allAxes(),showGrid=options.grid.show;// Initialize the plot's offset from the edge of the canvas\nfor(var a in plotOffset){var margin=options.grid.margin||0;plotOffset[a]=typeof margin==\"number\"?margin:margin[a]||0;}executeHooks(hooks.processOffset,[plotOffset]);// If the grid is visible, add its border width to the offset\nfor(var a in plotOffset){if(typeof options.grid.borderWidth==\"object\"){plotOffset[a]+=showGrid?options.grid.borderWidth[a]:0;}else{plotOffset[a]+=showGrid?options.grid.borderWidth:0;}}$.each(axes,function(_,axis){var axisOpts=axis.options;axis.show=axisOpts.show==null?axis.used:axisOpts.show;axis.reserveSpace=axisOpts.reserveSpace==null?axis.show:axisOpts.reserveSpace;setRange(axis);});if(showGrid){var allocatedAxes=$.grep(axes,function(axis){return axis.show||axis.reserveSpace;});$.each(allocatedAxes,function(_,axis){// make the ticks\nsetupTickGeneration(axis);setTicks(axis);snapRangeToTicks(axis,axis.ticks);// find labelWidth/Height for axis\nmeasureTickLabels(axis);});// with all dimensions calculated, we can compute the\n// axis bounding boxes, start from the outside\n// (reverse order)\nfor(i=allocatedAxes.length-1;i>=0;--i)allocateAxisBoxFirstPhase(allocatedAxes[i]);// make sure we've got enough space for things that\n// might stick out\nadjustLayoutForThingsStickingOut();$.each(allocatedAxes,function(_,axis){allocateAxisBoxSecondPhase(axis);});}plotWidth=surface.width-plotOffset.left-plotOffset.right;plotHeight=surface.height-plotOffset.bottom-plotOffset.top;// now we got the proper plot dimensions, we can compute the scaling\n$.each(axes,function(_,axis){setTransformationHelpers(axis);});if(showGrid){drawAxisLabels();}insertLegend();}function setRange(axis){var opts=axis.options,min=+(opts.min!=null?opts.min:axis.datamin),max=+(opts.max!=null?opts.max:axis.datamax),delta=max-min;if(delta==0.0){// degenerate case\nvar widen=max==0?1:0.01;if(opts.min==null)min-=widen;// always widen max if we couldn't widen min to ensure we\n// don't fall into min == max which doesn't work\nif(opts.max==null||opts.min!=null)max+=widen;}else{// consider autoscaling\nvar margin=opts.autoscaleMargin;if(margin!=null){if(opts.min==null){min-=delta*margin;// make sure we don't go below zero if all values\n// are positive\nif(min<0&&axis.datamin!=null&&axis.datamin>=0)min=0;}if(opts.max==null){max+=delta*margin;if(max>0&&axis.datamax!=null&&axis.datamax<=0)max=0;}}}axis.min=min;axis.max=max;}function setupTickGeneration(axis){var opts=axis.options;// estimate number of ticks\nvar noTicks;if(typeof opts.ticks==\"number\"&&opts.ticks>0)noTicks=opts.ticks;else// heuristic based on the model a*sqrt(x) fitted to\n// some data points that seemed reasonable\nnoTicks=0.3*Math.sqrt(axis.direction==\"x\"?surface.width:surface.height);var delta=(axis.max-axis.min)/noTicks,dec=-Math.floor(Math.log(delta)/Math.LN10),maxDec=opts.tickDecimals;if(maxDec!=null&&dec>maxDec){dec=maxDec;}var magn=Math.pow(10,-dec),norm=delta/magn,// norm is between 1.0 and 10.0\nsize;if(norm<1.5){size=1;}else if(norm<3){size=2;// special case for 2.5, requires an extra decimal\nif(norm>2.25&&(maxDec==null||dec+1<=maxDec)){size=2.5;++dec;}}else if(norm<7.5){size=5;}else{size=10;}size*=magn;if(opts.minTickSize!=null&&size<opts.minTickSize){size=opts.minTickSize;}axis.delta=delta;axis.tickDecimals=Math.max(0,maxDec!=null?maxDec:dec);axis.tickSize=opts.tickSize||size;// Time mode was moved to a plug-in in 0.8, and since so many people use it\n// we'll add an especially friendly reminder to make sure they included it.\nif(opts.mode==\"time\"&&!axis.tickGenerator){throw new Error(\"Time mode requires the flot.time plugin.\");}// Flot supports base-10 axes; any other mode else is handled by a plug-in,\n// like flot.time.js.\nif(!axis.tickGenerator){axis.tickGenerator=function(axis){var ticks=[],start=floorInBase(axis.min,axis.tickSize),i=0,v=Number.NaN,prev;do{prev=v;v=start+i*axis.tickSize;ticks.push(v);++i;}while(v<axis.max&&v!=prev);return ticks;};axis.tickFormatter=function(value,axis){var factor=axis.tickDecimals?Math.pow(10,axis.tickDecimals):1;var formatted=\"\"+Math.round(value*factor)/factor;// If tickDecimals was specified, ensure that we have exactly that\n// much precision; otherwise default to the value's own precision.\nif(axis.tickDecimals!=null){var decimal=formatted.indexOf(\".\");var precision=decimal==-1?0:formatted.length-decimal-1;if(precision<axis.tickDecimals){return(precision?formatted:formatted+\".\")+(\"\"+factor).substr(1,axis.tickDecimals-precision);}}return formatted;};}if($.isFunction(opts.tickFormatter))axis.tickFormatter=function(v,axis){return\"\"+opts.tickFormatter(v,axis);};if(opts.alignTicksWithAxis!=null){var otherAxis=(axis.direction==\"x\"?xaxes:yaxes)[opts.alignTicksWithAxis-1];if(otherAxis&&otherAxis.used&&otherAxis!=axis){// consider snapping min/max to outermost nice ticks\nvar niceTicks=axis.tickGenerator(axis);if(niceTicks.length>0){if(opts.min==null)axis.min=Math.min(axis.min,niceTicks[0]);if(opts.max==null&&niceTicks.length>1)axis.max=Math.max(axis.max,niceTicks[niceTicks.length-1]);}axis.tickGenerator=function(axis){// copy ticks, scaled to this axis\nvar ticks=[],v,i;for(i=0;i<otherAxis.ticks.length;++i){v=(otherAxis.ticks[i].v-otherAxis.min)/(otherAxis.max-otherAxis.min);v=axis.min+v*(axis.max-axis.min);ticks.push(v);}return ticks;};// we might need an extra decimal since forced\n// ticks don't necessarily fit naturally\nif(!axis.mode&&opts.tickDecimals==null){var extraDec=Math.max(0,-Math.floor(Math.log(axis.delta)/Math.LN10)+1),ts=axis.tickGenerator(axis);// only proceed if the tick interval rounded\n// with an extra decimal doesn't give us a\n// zero at end\nif(!(ts.length>1&&/\\..*0$/.test((ts[1]-ts[0]).toFixed(extraDec))))axis.tickDecimals=extraDec;}}}}function setTicks(axis){var oticks=axis.options.ticks,ticks=[];if(oticks==null||typeof oticks==\"number\"&&oticks>0)ticks=axis.tickGenerator(axis);else if(oticks){if($.isFunction(oticks))// generate the ticks\nticks=oticks(axis);else ticks=oticks;}// clean up/labelify the supplied ticks, copy them over\nvar i,v;axis.ticks=[];for(i=0;i<ticks.length;++i){var label=null;var t=ticks[i];if(typeof t==\"object\"){v=+t[0];if(t.length>1)label=t[1];}else v=+t;if(label==null)label=axis.tickFormatter(v,axis);if(!isNaN(v))axis.ticks.push({v:v,label:label});}}function snapRangeToTicks(axis,ticks){if(axis.options.autoscaleMargin&&ticks.length>0){// snap to ticks\nif(axis.options.min==null)axis.min=Math.min(axis.min,ticks[0].v);if(axis.options.max==null&&ticks.length>1)axis.max=Math.max(axis.max,ticks[ticks.length-1].v);}}function draw(){surface.clear();executeHooks(hooks.drawBackground,[ctx]);var grid=options.grid;// draw background, if any\nif(grid.show&&grid.backgroundColor)drawBackground();if(grid.show&&!grid.aboveData){drawGrid();}for(var i=0;i<series.length;++i){executeHooks(hooks.drawSeries,[ctx,series[i]]);drawSeries(series[i]);}executeHooks(hooks.draw,[ctx]);if(grid.show&&grid.aboveData){drawGrid();}surface.render();// A draw implies that either the axes or data have changed, so we\n// should probably update the overlay highlights as well.\ntriggerRedrawOverlay();}function extractRange(ranges,coord){var axis,from,to,key,axes=allAxes();for(var i=0;i<axes.length;++i){axis=axes[i];if(axis.direction==coord){key=coord+axis.n+\"axis\";if(!ranges[key]&&axis.n==1)key=coord+\"axis\";// support x1axis as xaxis\nif(ranges[key]){from=ranges[key].from;to=ranges[key].to;break;}}}// backwards-compat stuff - to be removed in future\nif(!ranges[key]){axis=coord==\"x\"?xaxes[0]:yaxes[0];from=ranges[coord+\"1\"];to=ranges[coord+\"2\"];}// auto-reverse as an added bonus\nif(from!=null&&to!=null&&from>to){var tmp=from;from=to;to=tmp;}return{from:from,to:to,axis:axis};}function drawBackground(){ctx.save();ctx.translate(plotOffset.left,plotOffset.top);ctx.fillStyle=getColorOrGradient(options.grid.backgroundColor,plotHeight,0,\"rgba(255, 255, 255, 0)\");ctx.fillRect(0,0,plotWidth,plotHeight);ctx.restore();}function drawGrid(){var i,axes,bw,bc;ctx.save();ctx.translate(plotOffset.left,plotOffset.top);// draw markings\nvar markings=options.grid.markings;if(markings){if($.isFunction(markings)){axes=plot.getAxes();// xmin etc. is backwards compatibility, to be\n// removed in the future\naxes.xmin=axes.xaxis.min;axes.xmax=axes.xaxis.max;axes.ymin=axes.yaxis.min;axes.ymax=axes.yaxis.max;markings=markings(axes);}for(i=0;i<markings.length;++i){var m=markings[i],xrange=extractRange(m,\"x\"),yrange=extractRange(m,\"y\");// fill in missing\nif(xrange.from==null)xrange.from=xrange.axis.min;if(xrange.to==null)xrange.to=xrange.axis.max;if(yrange.from==null)yrange.from=yrange.axis.min;if(yrange.to==null)yrange.to=yrange.axis.max;// clip\nif(xrange.to<xrange.axis.min||xrange.from>xrange.axis.max||yrange.to<yrange.axis.min||yrange.from>yrange.axis.max)continue;xrange.from=Math.max(xrange.from,xrange.axis.min);xrange.to=Math.min(xrange.to,xrange.axis.max);yrange.from=Math.max(yrange.from,yrange.axis.min);yrange.to=Math.min(yrange.to,yrange.axis.max);var xequal=xrange.from===xrange.to,yequal=yrange.from===yrange.to;if(xequal&&yequal){continue;}// then draw\nxrange.from=Math.floor(xrange.axis.p2c(xrange.from));xrange.to=Math.floor(xrange.axis.p2c(xrange.to));yrange.from=Math.floor(yrange.axis.p2c(yrange.from));yrange.to=Math.floor(yrange.axis.p2c(yrange.to));if(xequal||yequal){var lineWidth=m.lineWidth||options.grid.markingsLineWidth,subPixel=lineWidth%2?0.5:0;ctx.beginPath();ctx.strokeStyle=m.color||options.grid.markingsColor;ctx.lineWidth=lineWidth;if(xequal){ctx.moveTo(xrange.to+subPixel,yrange.from);ctx.lineTo(xrange.to+subPixel,yrange.to);}else{ctx.moveTo(xrange.from,yrange.to+subPixel);ctx.lineTo(xrange.to,yrange.to+subPixel);}ctx.stroke();}else{ctx.fillStyle=m.color||options.grid.markingsColor;ctx.fillRect(xrange.from,yrange.to,xrange.to-xrange.from,yrange.from-yrange.to);}}}// draw the ticks\naxes=allAxes();bw=options.grid.borderWidth;for(var j=0;j<axes.length;++j){var axis=axes[j],box=axis.box,t=axis.tickLength,x,y,xoff,yoff;if(!axis.show||axis.ticks.length==0)continue;ctx.lineWidth=1;// find the edges\nif(axis.direction==\"x\"){x=0;if(t==\"full\")y=axis.position==\"top\"?0:plotHeight;else y=box.top-plotOffset.top+(axis.position==\"top\"?box.height:0);}else{y=0;if(t==\"full\")x=axis.position==\"left\"?0:plotWidth;else x=box.left-plotOffset.left+(axis.position==\"left\"?box.width:0);}// draw tick bar\nif(!axis.innermost){ctx.strokeStyle=axis.options.color;ctx.beginPath();xoff=yoff=0;if(axis.direction==\"x\")xoff=plotWidth+1;else yoff=plotHeight+1;if(ctx.lineWidth==1){if(axis.direction==\"x\"){y=Math.floor(y)+0.5;}else{x=Math.floor(x)+0.5;}}ctx.moveTo(x,y);ctx.lineTo(x+xoff,y+yoff);ctx.stroke();}// draw ticks\nctx.strokeStyle=axis.options.tickColor;ctx.beginPath();for(i=0;i<axis.ticks.length;++i){var v=axis.ticks[i].v;xoff=yoff=0;if(isNaN(v)||v<axis.min||v>axis.max// skip those lying on the axes if we got a border\n||t==\"full\"&&(typeof bw==\"object\"&&bw[axis.position]>0||bw>0)&&(v==axis.min||v==axis.max))continue;if(axis.direction==\"x\"){x=axis.p2c(v);yoff=t==\"full\"?-plotHeight:t;if(axis.position==\"top\")yoff=-yoff;}else{y=axis.p2c(v);xoff=t==\"full\"?-plotWidth:t;if(axis.position==\"left\")xoff=-xoff;}if(ctx.lineWidth==1){if(axis.direction==\"x\")x=Math.floor(x)+0.5;else y=Math.floor(y)+0.5;}ctx.moveTo(x,y);ctx.lineTo(x+xoff,y+yoff);}ctx.stroke();}// draw border\nif(bw){// If either borderWidth or borderColor is an object, then draw the border\n// line by line instead of as one rectangle\nbc=options.grid.borderColor;if(typeof bw==\"object\"||typeof bc==\"object\"){if(typeof bw!==\"object\"){bw={top:bw,right:bw,bottom:bw,left:bw};}if(typeof bc!==\"object\"){bc={top:bc,right:bc,bottom:bc,left:bc};}if(bw.top>0){ctx.strokeStyle=bc.top;ctx.lineWidth=bw.top;ctx.beginPath();ctx.moveTo(0-bw.left,0-bw.top/2);ctx.lineTo(plotWidth,0-bw.top/2);ctx.stroke();}if(bw.right>0){ctx.strokeStyle=bc.right;ctx.lineWidth=bw.right;ctx.beginPath();ctx.moveTo(plotWidth+bw.right/2,0-bw.top);ctx.lineTo(plotWidth+bw.right/2,plotHeight);ctx.stroke();}if(bw.bottom>0){ctx.strokeStyle=bc.bottom;ctx.lineWidth=bw.bottom;ctx.beginPath();ctx.moveTo(plotWidth+bw.right,plotHeight+bw.bottom/2);ctx.lineTo(0,plotHeight+bw.bottom/2);ctx.stroke();}if(bw.left>0){ctx.strokeStyle=bc.left;ctx.lineWidth=bw.left;ctx.beginPath();ctx.moveTo(0-bw.left/2,plotHeight+bw.bottom);ctx.lineTo(0-bw.left/2,0);ctx.stroke();}}else{ctx.lineWidth=bw;ctx.strokeStyle=options.grid.borderColor;ctx.strokeRect(-bw/2,-bw/2,plotWidth+bw,plotHeight+bw);}}ctx.restore();}function drawAxisLabels(){$.each(allAxes(),function(_,axis){var box=axis.box,legacyStyles=axis.direction+\"Axis \"+axis.direction+axis.n+\"Axis\",layer=\"flot-\"+axis.direction+\"-axis flot-\"+axis.direction+axis.n+\"-axis \"+legacyStyles,font=axis.options.font||\"flot-tick-label tickLabel\",tick,x,y,halign,valign;// Remove text before checking for axis.show and ticks.length;\n// otherwise plugins, like flot-tickrotor, that draw their own\n// tick labels will end up with both theirs and the defaults.\nsurface.removeText(layer);if(!axis.show||axis.ticks.length==0)return;for(var i=0;i<axis.ticks.length;++i){tick=axis.ticks[i];if(!tick.label||tick.v<axis.min||tick.v>axis.max)continue;if(axis.direction==\"x\"){halign=\"center\";x=plotOffset.left+axis.p2c(tick.v);if(axis.position==\"bottom\"){y=box.top+box.padding;}else{y=box.top+box.height-box.padding;valign=\"bottom\";}}else{valign=\"middle\";y=plotOffset.top+axis.p2c(tick.v);if(axis.position==\"left\"){x=box.left+box.width-box.padding;halign=\"right\";}else{x=box.left+box.padding;}}surface.addText(layer,x,y,tick.label,font,null,null,halign,valign);}});}function drawSeries(series){if(series.lines.show)drawSeriesLines(series);if(series.bars.show)drawSeriesBars(series);if(series.points.show)drawSeriesPoints(series);}function drawSeriesLines(series){function plotLine(datapoints,xoffset,yoffset,axisx,axisy){var points=datapoints.points,ps=datapoints.pointsize,prevx=null,prevy=null;ctx.beginPath();for(var i=ps;i<points.length;i+=ps){var x1=points[i-ps],y1=points[i-ps+1],x2=points[i],y2=points[i+1];if(x1==null||x2==null)continue;// clip with ymin\nif(y1<=y2&&y1<axisy.min){if(y2<axisy.min)continue;// line segment is outside\n// compute new intersection point\nx1=(axisy.min-y1)/(y2-y1)*(x2-x1)+x1;y1=axisy.min;}else if(y2<=y1&&y2<axisy.min){if(y1<axisy.min)continue;x2=(axisy.min-y1)/(y2-y1)*(x2-x1)+x1;y2=axisy.min;}// clip with ymax\nif(y1>=y2&&y1>axisy.max){if(y2>axisy.max)continue;x1=(axisy.max-y1)/(y2-y1)*(x2-x1)+x1;y1=axisy.max;}else if(y2>=y1&&y2>axisy.max){if(y1>axisy.max)continue;x2=(axisy.max-y1)/(y2-y1)*(x2-x1)+x1;y2=axisy.max;}// clip with xmin\nif(x1<=x2&&x1<axisx.min){if(x2<axisx.min)continue;y1=(axisx.min-x1)/(x2-x1)*(y2-y1)+y1;x1=axisx.min;}else if(x2<=x1&&x2<axisx.min){if(x1<axisx.min)continue;y2=(axisx.min-x1)/(x2-x1)*(y2-y1)+y1;x2=axisx.min;}// clip with xmax\nif(x1>=x2&&x1>axisx.max){if(x2>axisx.max)continue;y1=(axisx.max-x1)/(x2-x1)*(y2-y1)+y1;x1=axisx.max;}else if(x2>=x1&&x2>axisx.max){if(x1>axisx.max)continue;y2=(axisx.max-x1)/(x2-x1)*(y2-y1)+y1;x2=axisx.max;}if(x1!=prevx||y1!=prevy)ctx.moveTo(axisx.p2c(x1)+xoffset,axisy.p2c(y1)+yoffset);prevx=x2;prevy=y2;ctx.lineTo(axisx.p2c(x2)+xoffset,axisy.p2c(y2)+yoffset);}ctx.stroke();}function plotLineArea(datapoints,axisx,axisy){var points=datapoints.points,ps=datapoints.pointsize,bottom=Math.min(Math.max(0,axisy.min),axisy.max),i=0,top,areaOpen=false,ypos=1,segmentStart=0,segmentEnd=0;// we process each segment in two turns, first forward\n// direction to sketch out top, then once we hit the\n// end we go backwards to sketch the bottom\nwhile(true){if(ps>0&&i>points.length+ps)break;i+=ps;// ps is negative if going backwards\nvar x1=points[i-ps],y1=points[i-ps+ypos],x2=points[i],y2=points[i+ypos];if(areaOpen){if(ps>0&&x1!=null&&x2==null){// at turning point\nsegmentEnd=i;ps=-ps;ypos=2;continue;}if(ps<0&&i==segmentStart+ps){// done with the reverse sweep\nctx.fill();areaOpen=false;ps=-ps;ypos=1;i=segmentStart=segmentEnd+ps;continue;}}if(x1==null||x2==null)continue;// clip x values\n// clip with xmin\nif(x1<=x2&&x1<axisx.min){if(x2<axisx.min)continue;y1=(axisx.min-x1)/(x2-x1)*(y2-y1)+y1;x1=axisx.min;}else if(x2<=x1&&x2<axisx.min){if(x1<axisx.min)continue;y2=(axisx.min-x1)/(x2-x1)*(y2-y1)+y1;x2=axisx.min;}// clip with xmax\nif(x1>=x2&&x1>axisx.max){if(x2>axisx.max)continue;y1=(axisx.max-x1)/(x2-x1)*(y2-y1)+y1;x1=axisx.max;}else if(x2>=x1&&x2>axisx.max){if(x1>axisx.max)continue;y2=(axisx.max-x1)/(x2-x1)*(y2-y1)+y1;x2=axisx.max;}if(!areaOpen){// open area\nctx.beginPath();ctx.moveTo(axisx.p2c(x1),axisy.p2c(bottom));areaOpen=true;}// now first check the case where both is outside\nif(y1>=axisy.max&&y2>=axisy.max){ctx.lineTo(axisx.p2c(x1),axisy.p2c(axisy.max));ctx.lineTo(axisx.p2c(x2),axisy.p2c(axisy.max));continue;}else if(y1<=axisy.min&&y2<=axisy.min){ctx.lineTo(axisx.p2c(x1),axisy.p2c(axisy.min));ctx.lineTo(axisx.p2c(x2),axisy.p2c(axisy.min));continue;}// else it's a bit more complicated, there might\n// be a flat maxed out rectangle first, then a\n// triangular cutout or reverse; to find these\n// keep track of the current x values\nvar x1old=x1,x2old=x2;// clip the y values, without shortcutting, we\n// go through all cases in turn\n// clip with ymin\nif(y1<=y2&&y1<axisy.min&&y2>=axisy.min){x1=(axisy.min-y1)/(y2-y1)*(x2-x1)+x1;y1=axisy.min;}else if(y2<=y1&&y2<axisy.min&&y1>=axisy.min){x2=(axisy.min-y1)/(y2-y1)*(x2-x1)+x1;y2=axisy.min;}// clip with ymax\nif(y1>=y2&&y1>axisy.max&&y2<=axisy.max){x1=(axisy.max-y1)/(y2-y1)*(x2-x1)+x1;y1=axisy.max;}else if(y2>=y1&&y2>axisy.max&&y1<=axisy.max){x2=(axisy.max-y1)/(y2-y1)*(x2-x1)+x1;y2=axisy.max;}// if the x value was changed we got a rectangle\n// to fill\nif(x1!=x1old){ctx.lineTo(axisx.p2c(x1old),axisy.p2c(y1));// it goes to (x1, y1), but we fill that below\n}// fill triangular section, this sometimes result\n// in redundant points if (x1, y1) hasn't changed\n// from previous line to, but we just ignore that\nctx.lineTo(axisx.p2c(x1),axisy.p2c(y1));ctx.lineTo(axisx.p2c(x2),axisy.p2c(y2));// fill the other rectangle if it's there\nif(x2!=x2old){ctx.lineTo(axisx.p2c(x2),axisy.p2c(y2));ctx.lineTo(axisx.p2c(x2old),axisy.p2c(y2));}}}ctx.save();ctx.translate(plotOffset.left,plotOffset.top);ctx.lineJoin=\"round\";var lw=series.lines.lineWidth,sw=series.shadowSize;// FIXME: consider another form of shadow when filling is turned on\nif(lw>0&&sw>0){// draw shadow as a thick and thin line with transparency\nctx.lineWidth=sw;ctx.strokeStyle=\"rgba(0,0,0,0.1)\";// position shadow at angle from the mid of line\nvar angle=Math.PI/18;plotLine(series.datapoints,Math.sin(angle)*(lw/2+sw/2),Math.cos(angle)*(lw/2+sw/2),series.xaxis,series.yaxis);ctx.lineWidth=sw/2;plotLine(series.datapoints,Math.sin(angle)*(lw/2+sw/4),Math.cos(angle)*(lw/2+sw/4),series.xaxis,series.yaxis);}ctx.lineWidth=lw;ctx.strokeStyle=series.color;var fillStyle=getFillStyle(series.lines,series.color,0,plotHeight);if(fillStyle){ctx.fillStyle=fillStyle;plotLineArea(series.datapoints,series.xaxis,series.yaxis);}if(lw>0)plotLine(series.datapoints,0,0,series.xaxis,series.yaxis);ctx.restore();}function drawSeriesPoints(series){function plotPoints(datapoints,radius,fillStyle,offset,shadow,axisx,axisy,symbol){var points=datapoints.points,ps=datapoints.pointsize;for(var i=0;i<points.length;i+=ps){var x=points[i],y=points[i+1];if(x==null||x<axisx.min||x>axisx.max||y<axisy.min||y>axisy.max)continue;ctx.beginPath();x=axisx.p2c(x);y=axisy.p2c(y)+offset;if(symbol==\"circle\")ctx.arc(x,y,radius,0,shadow?Math.PI:Math.PI*2,false);else symbol(ctx,x,y,radius,shadow);ctx.closePath();if(fillStyle){ctx.fillStyle=fillStyle;ctx.fill();}ctx.stroke();}}ctx.save();ctx.translate(plotOffset.left,plotOffset.top);var lw=series.points.lineWidth,sw=series.shadowSize,radius=series.points.radius,symbol=series.points.symbol;// If the user sets the line width to 0, we change it to a very \n// small value. A line width of 0 seems to force the default of 1.\n// Doing the conditional here allows the shadow setting to still be \n// optional even with a lineWidth of 0.\nif(lw==0)lw=0.0001;if(lw>0&&sw>0){// draw shadow in two steps\nvar w=sw/2;ctx.lineWidth=w;ctx.strokeStyle=\"rgba(0,0,0,0.1)\";plotPoints(series.datapoints,radius,null,w+w/2,true,series.xaxis,series.yaxis,symbol);ctx.strokeStyle=\"rgba(0,0,0,0.2)\";plotPoints(series.datapoints,radius,null,w/2,true,series.xaxis,series.yaxis,symbol);}ctx.lineWidth=lw;ctx.strokeStyle=series.color;plotPoints(series.datapoints,radius,getFillStyle(series.points,series.color),0,false,series.xaxis,series.yaxis,symbol);ctx.restore();}function drawBar(x,y,b,barLeft,barRight,fillStyleCallback,axisx,axisy,c,horizontal,lineWidth){var left,right,bottom,top,drawLeft,drawRight,drawTop,drawBottom,tmp;// in horizontal mode, we start the bar from the left\n// instead of from the bottom so it appears to be\n// horizontal rather than vertical\nif(horizontal){drawBottom=drawRight=drawTop=true;drawLeft=false;left=b;right=x;top=y+barLeft;bottom=y+barRight;// account for negative bars\nif(right<left){tmp=right;right=left;left=tmp;drawLeft=true;drawRight=false;}}else{drawLeft=drawRight=drawTop=true;drawBottom=false;left=x+barLeft;right=x+barRight;bottom=b;top=y;// account for negative bars\nif(top<bottom){tmp=top;top=bottom;bottom=tmp;drawBottom=true;drawTop=false;}}// clip\nif(right<axisx.min||left>axisx.max||top<axisy.min||bottom>axisy.max)return;if(left<axisx.min){left=axisx.min;drawLeft=false;}if(right>axisx.max){right=axisx.max;drawRight=false;}if(bottom<axisy.min){bottom=axisy.min;drawBottom=false;}if(top>axisy.max){top=axisy.max;drawTop=false;}left=axisx.p2c(left);bottom=axisy.p2c(bottom);right=axisx.p2c(right);top=axisy.p2c(top);// fill the bar\nif(fillStyleCallback){c.fillStyle=fillStyleCallback(bottom,top);c.fillRect(left,top,right-left,bottom-top);}// draw outline\nif(lineWidth>0&&(drawLeft||drawRight||drawTop||drawBottom)){c.beginPath();// FIXME: inline moveTo is buggy with excanvas\nc.moveTo(left,bottom);if(drawLeft)c.lineTo(left,top);else c.moveTo(left,top);if(drawTop)c.lineTo(right,top);else c.moveTo(right,top);if(drawRight)c.lineTo(right,bottom);else c.moveTo(right,bottom);if(drawBottom)c.lineTo(left,bottom);else c.moveTo(left,bottom);c.stroke();}}function drawSeriesBars(series){function plotBars(datapoints,barLeft,barRight,fillStyleCallback,axisx,axisy){var points=datapoints.points,ps=datapoints.pointsize;for(var i=0;i<points.length;i+=ps){if(points[i]==null)continue;drawBar(points[i],points[i+1],points[i+2],barLeft,barRight,fillStyleCallback,axisx,axisy,ctx,series.bars.horizontal,series.bars.lineWidth);}}ctx.save();ctx.translate(plotOffset.left,plotOffset.top);// FIXME: figure out a way to add shadows (for instance along the right edge)\nctx.lineWidth=series.bars.lineWidth;ctx.strokeStyle=series.color;var barLeft;switch(series.bars.align){case\"left\":barLeft=0;break;case\"right\":barLeft=-series.bars.barWidth;break;default:barLeft=-series.bars.barWidth/2;}var fillStyleCallback=series.bars.fill?function(bottom,top){return getFillStyle(series.bars,series.color,bottom,top);}:null;plotBars(series.datapoints,barLeft,barLeft+series.bars.barWidth,fillStyleCallback,series.xaxis,series.yaxis);ctx.restore();}function getFillStyle(filloptions,seriesColor,bottom,top){var fill=filloptions.fill;if(!fill)return null;if(filloptions.fillColor)return getColorOrGradient(filloptions.fillColor,bottom,top,seriesColor);var c=$.color.parse(seriesColor);c.a=typeof fill==\"number\"?fill:0.4;c.normalize();return c.toString();}function insertLegend(){if(options.legend.container!=null){$(options.legend.container).html(\"\");}else{placeholder.find(\".legend\").remove();}if(!options.legend.show){return;}var fragments=[],entries=[],rowStarted=false,lf=options.legend.labelFormatter,s,label;// Build a list of legend entries, with each having a label and a color\nfor(var i=0;i<series.length;++i){s=series[i];if(s.label){label=lf?lf(s.label,s):s.label;if(label){entries.push({label:label,color:s.color});}}}// Sort the legend using either the default or a custom comparator\nif(options.legend.sorted){if($.isFunction(options.legend.sorted)){entries.sort(options.legend.sorted);}else if(options.legend.sorted==\"reverse\"){entries.reverse();}else{var ascending=options.legend.sorted!=\"descending\";entries.sort(function(a,b){return a.label==b.label?0:a.label<b.label!=ascending?1:-1// Logical XOR\n;});}}// Generate markup for the list of entries, in their final order\nfor(var i=0;i<entries.length;++i){var entry=entries[i];if(i%options.legend.noColumns==0){if(rowStarted)fragments.push('</tr>');fragments.push('<tr>');rowStarted=true;}fragments.push('<td class=\"legendColorBox\"><div style=\"border:1px solid '+options.legend.labelBoxBorderColor+';padding:1px\"><div style=\"width:4px;height:0;border:5px solid '+entry.color+';overflow:hidden\"></div></div></td>'+'<td class=\"legendLabel\">'+entry.label+'</td>');}if(rowStarted)fragments.push('</tr>');if(fragments.length==0)return;var table='<table style=\"font-size:smaller;color:'+options.grid.color+'\">'+fragments.join(\"\")+'</table>';if(options.legend.container!=null)$(options.legend.container).html(table);else{var pos=\"\",p=options.legend.position,m=options.legend.margin;if(m[0]==null)m=[m,m];if(p.charAt(0)==\"n\")pos+='top:'+(m[1]+plotOffset.top)+'px;';else if(p.charAt(0)==\"s\")pos+='bottom:'+(m[1]+plotOffset.bottom)+'px;';if(p.charAt(1)==\"e\")pos+='right:'+(m[0]+plotOffset.right)+'px;';else if(p.charAt(1)==\"w\")pos+='left:'+(m[0]+plotOffset.left)+'px;';var legend=$('<div class=\"legend\">'+table.replace('style=\"','style=\"position:absolute;'+pos+';')+'</div>').appendTo(placeholder);if(options.legend.backgroundOpacity!=0.0){// put in the transparent background\n// separately to avoid blended labels and\n// label boxes\nvar c=options.legend.backgroundColor;if(c==null){c=options.grid.backgroundColor;if(c&&typeof c==\"string\")c=$.color.parse(c);else c=$.color.extract(legend,'background-color');c.a=1;c=c.toString();}var div=legend.children();$('<div style=\"position:absolute;width:'+div.width()+'px;height:'+div.height()+'px;'+pos+'background-color:'+c+';\"> </div>').prependTo(legend).css('opacity',options.legend.backgroundOpacity);}}}// interactive features\nvar highlights=[],redrawTimeout=null;// returns the data item the mouse is over, or null if none is found\nfunction findNearbyItem(mouseX,mouseY,seriesFilter){var maxDistance=options.grid.mouseActiveRadius,smallestDistance=maxDistance*maxDistance+1,item=null,foundPoint=false,i,j,ps;for(i=series.length-1;i>=0;--i){if(!seriesFilter(series[i]))continue;var s=series[i],axisx=s.xaxis,axisy=s.yaxis,points=s.datapoints.points,mx=axisx.c2p(mouseX),// precompute some stuff to make the loop faster\nmy=axisy.c2p(mouseY),maxx=maxDistance/axisx.scale,maxy=maxDistance/axisy.scale;ps=s.datapoints.pointsize;// with inverse transforms, we can't use the maxx/maxy\n// optimization, sadly\nif(axisx.options.inverseTransform)maxx=Number.MAX_VALUE;if(axisy.options.inverseTransform)maxy=Number.MAX_VALUE;if(s.lines.show||s.points.show){for(j=0;j<points.length;j+=ps){var x=points[j],y=points[j+1];if(x==null)continue;// For points and lines, the cursor must be within a\n// certain distance to the data point\nif(x-mx>maxx||x-mx<-maxx||y-my>maxy||y-my<-maxy)continue;// We have to calculate distances in pixels, not in\n// data units, because the scales of the axes may be different\nvar dx=Math.abs(axisx.p2c(x)-mouseX),dy=Math.abs(axisy.p2c(y)-mouseY),dist=dx*dx+dy*dy;// we save the sqrt\n// use <= to ensure last point takes precedence\n// (last generally means on top of)\nif(dist<smallestDistance){smallestDistance=dist;item=[i,j/ps];}}}if(s.bars.show&&!item){// no other point can be nearby\nvar barLeft,barRight;switch(s.bars.align){case\"left\":barLeft=0;break;case\"right\":barLeft=-s.bars.barWidth;break;default:barLeft=-s.bars.barWidth/2;}barRight=barLeft+s.bars.barWidth;for(j=0;j<points.length;j+=ps){var x=points[j],y=points[j+1],b=points[j+2];if(x==null)continue;// for a bar graph, the cursor must be inside the bar\nif(series[i].bars.horizontal?mx<=Math.max(b,x)&&mx>=Math.min(b,x)&&my>=y+barLeft&&my<=y+barRight:mx>=x+barLeft&&mx<=x+barRight&&my>=Math.min(b,y)&&my<=Math.max(b,y))item=[i,j/ps];}}}if(item){i=item[0];j=item[1];ps=series[i].datapoints.pointsize;return{datapoint:series[i].datapoints.points.slice(j*ps,(j+1)*ps),dataIndex:j,series:series[i],seriesIndex:i};}return null;}function onMouseMove(e){if(options.grid.hoverable)triggerClickHoverEvent(\"plothover\",e,function(s){return s[\"hoverable\"]!=false;});}function onMouseLeave(e){if(options.grid.hoverable)triggerClickHoverEvent(\"plothover\",e,function(s){return false;});}function onClick(e){triggerClickHoverEvent(\"plotclick\",e,function(s){return s[\"clickable\"]!=false;});}// trigger click or hover event (they send the same parameters\n// so we share their code)\nfunction triggerClickHoverEvent(eventname,event,seriesFilter){var offset=eventHolder.offset(),canvasX=event.pageX-offset.left-plotOffset.left,canvasY=event.pageY-offset.top-plotOffset.top,pos=canvasToAxisCoords({left:canvasX,top:canvasY});pos.pageX=event.pageX;pos.pageY=event.pageY;var item=findNearbyItem(canvasX,canvasY,seriesFilter);if(item){// fill in mouse pos for any listeners out there\nitem.pageX=parseInt(item.series.xaxis.p2c(item.datapoint[0])+offset.left+plotOffset.left,10);item.pageY=parseInt(item.series.yaxis.p2c(item.datapoint[1])+offset.top+plotOffset.top,10);}if(options.grid.autoHighlight){// clear auto-highlights\nfor(var i=0;i<highlights.length;++i){var h=highlights[i];if(h.auto==eventname&&!(item&&h.series==item.series&&h.point[0]==item.datapoint[0]&&h.point[1]==item.datapoint[1]))unhighlight(h.series,h.point);}if(item)highlight(item.series,item.datapoint,eventname);}placeholder.trigger(eventname,[pos,item]);}function triggerRedrawOverlay(){var t=options.interaction.redrawOverlayInterval;if(t==-1){// skip event queue\ndrawOverlay();return;}if(!redrawTimeout)redrawTimeout=setTimeout(drawOverlay,t);}function drawOverlay(){redrawTimeout=null;// draw highlights\noctx.save();overlay.clear();octx.translate(plotOffset.left,plotOffset.top);var i,hi;for(i=0;i<highlights.length;++i){hi=highlights[i];if(hi.series.bars.show)drawBarHighlight(hi.series,hi.point);else drawPointHighlight(hi.series,hi.point);}octx.restore();executeHooks(hooks.drawOverlay,[octx]);}function highlight(s,point,auto){if(typeof s==\"number\")s=series[s];if(typeof point==\"number\"){var ps=s.datapoints.pointsize;point=s.datapoints.points.slice(ps*point,ps*(point+1));}var i=indexOfHighlight(s,point);if(i==-1){highlights.push({series:s,point:point,auto:auto});triggerRedrawOverlay();}else if(!auto)highlights[i].auto=false;}function unhighlight(s,point){if(s==null&&point==null){highlights=[];triggerRedrawOverlay();return;}if(typeof s==\"number\")s=series[s];if(typeof point==\"number\"){var ps=s.datapoints.pointsize;point=s.datapoints.points.slice(ps*point,ps*(point+1));}var i=indexOfHighlight(s,point);if(i!=-1){highlights.splice(i,1);triggerRedrawOverlay();}}function indexOfHighlight(s,p){for(var i=0;i<highlights.length;++i){var h=highlights[i];if(h.series==s&&h.point[0]==p[0]&&h.point[1]==p[1])return i;}return-1;}function drawPointHighlight(series,point){var x=point[0],y=point[1],axisx=series.xaxis,axisy=series.yaxis,highlightColor=typeof series.highlightColor===\"string\"?series.highlightColor:$.color.parse(series.color).scale('a',0.5).toString();if(x<axisx.min||x>axisx.max||y<axisy.min||y>axisy.max)return;var pointRadius=series.points.radius+series.points.lineWidth/2;octx.lineWidth=pointRadius;octx.strokeStyle=highlightColor;var radius=1.5*pointRadius;x=axisx.p2c(x);y=axisy.p2c(y);octx.beginPath();if(series.points.symbol==\"circle\")octx.arc(x,y,radius,0,2*Math.PI,false);else series.points.symbol(octx,x,y,radius,false);octx.closePath();octx.stroke();}function drawBarHighlight(series,point){var highlightColor=typeof series.highlightColor===\"string\"?series.highlightColor:$.color.parse(series.color).scale('a',0.5).toString(),fillStyle=highlightColor,barLeft;switch(series.bars.align){case\"left\":barLeft=0;break;case\"right\":barLeft=-series.bars.barWidth;break;default:barLeft=-series.bars.barWidth/2;}octx.lineWidth=series.bars.lineWidth;octx.strokeStyle=highlightColor;drawBar(point[0],point[1],point[2]||0,barLeft,barLeft+series.bars.barWidth,function(){return fillStyle;},series.xaxis,series.yaxis,octx,series.bars.horizontal,series.bars.lineWidth);}function getColorOrGradient(spec,bottom,top,defaultColor){if(typeof spec==\"string\")return spec;else{// assume this is a gradient spec; IE currently only\n// supports a simple vertical gradient properly, so that's\n// what we support too\nvar gradient=ctx.createLinearGradient(0,top,0,bottom);for(var i=0,l=spec.colors.length;i<l;++i){var c=spec.colors[i];if(typeof c!=\"string\"){var co=$.color.parse(defaultColor);if(c.brightness!=null)co=co.scale('rgb',c.brightness);if(c.opacity!=null)co.a*=c.opacity;c=co.toString();}gradient.addColorStop(i/(l-1),c);}return gradient;}}}// Add the plot function to the top level of the jQuery object\n$.plot=function(placeholder,data,options){//var t0 = new Date();\nvar plot=new Plot($(placeholder),data,options,$.plot.plugins);//(window.console ? console.log : alert)(\"time used (msecs): \" + ((new Date()).getTime() - t0.getTime()));\nreturn plot;};$.plot.version=\"0.8.3\";$.plot.plugins=[];// Also add the plot function as a chainable property\n$.fn.plot=function(data,options){return this.each(function(){$.plot(this,data,options);});};// round to nearby lower multiple of base\nfunction floorInBase(n,base){return base*Math.floor(n/base);}})(jQuery);/* Plugin for jQuery for working with colors.\r\n * \r\n * Version 1.1.\r\n * \r\n * Inspiration from jQuery color animation plugin by John Resig.\r\n *\r\n * Released under the MIT license by Ole Laursen, October 2009.\r\n *\r\n * Examples:\r\n *\r\n *   $.color.parse(\"#fff\").scale('rgb', 0.25).add('a', -0.5).toString()\r\n *   var c = $.color.extract($(\"#mydiv\"), 'background-color');\r\n *   console.log(c.r, c.g, c.b, c.a);\r\n *   $.color.make(100, 50, 25, 0.4).toString() // returns \"rgba(100,50,25,0.4)\"\r\n *\r\n * Note that .scale() and .add() return the same modified object\r\n * instead of making a new one.\r\n *\r\n * V. 1.1: Fix error handling so e.g. parsing an empty string does\r\n * produce a color rather than just crashing.\r\n */(function($){$.color={};// construct color object with some convenient chainable helpers\n$.color.make=function(r,g,b,a){var o={};o.r=r||0;o.g=g||0;o.b=b||0;o.a=a!=null?a:1;o.add=function(c,d){for(var i=0;i<c.length;++i)o[c.charAt(i)]+=d;return o.normalize();};o.scale=function(c,f){for(var i=0;i<c.length;++i)o[c.charAt(i)]*=f;return o.normalize();};o.toString=function(){if(o.a>=1.0){return\"rgb(\"+[o.r,o.g,o.b].join(\",\")+\")\";}else{return\"rgba(\"+[o.r,o.g,o.b,o.a].join(\",\")+\")\";}};o.normalize=function(){function clamp(min,value,max){return value<min?min:value>max?max:value;}o.r=clamp(0,parseInt(o.r),255);o.g=clamp(0,parseInt(o.g),255);o.b=clamp(0,parseInt(o.b),255);o.a=clamp(0,o.a,1);return o;};o.clone=function(){return $.color.make(o.r,o.b,o.g,o.a);};return o.normalize();};// extract CSS color property from element, going up in the DOM\n// if it's \"transparent\"\n$.color.extract=function(elem,css){var c;do{c=elem.css(css).toLowerCase();// keep going until we find an element that has color, or\n// we hit the body or root (have no parent)\nif(c!=''&&c!='transparent')break;elem=elem.parent();}while(elem.length&&!$.nodeName(elem.get(0),\"body\"));// catch Safari's way of signalling transparent\nif(c==\"rgba(0, 0, 0, 0)\")c=\"transparent\";return $.color.parse(c);};// parse CSS color string (like \"rgb(10, 32, 43)\" or \"#fff\"),\n// returns color object, if parsing failed, you get black (0, 0,\n// 0) out\n$.color.parse=function(str){var res,m=$.color.make;// Look for rgb(num,num,num)\nif(res=/rgb\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)/.exec(str))return m(parseInt(res[1],10),parseInt(res[2],10),parseInt(res[3],10));// Look for rgba(num,num,num,num)\nif(res=/rgba\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\s*\\)/.exec(str))return m(parseInt(res[1],10),parseInt(res[2],10),parseInt(res[3],10),parseFloat(res[4]));// Look for rgb(num%,num%,num%)\nif(res=/rgb\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)/.exec(str))return m(parseFloat(res[1])*2.55,parseFloat(res[2])*2.55,parseFloat(res[3])*2.55);// Look for rgba(num%,num%,num%,num)\nif(res=/rgba\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\s*\\)/.exec(str))return m(parseFloat(res[1])*2.55,parseFloat(res[2])*2.55,parseFloat(res[3])*2.55,parseFloat(res[4]));// Look for #a0b1c2\nif(res=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(str))return m(parseInt(res[1],16),parseInt(res[2],16),parseInt(res[3],16));// Look for #fff\nif(res=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(str))return m(parseInt(res[1]+res[1],16),parseInt(res[2]+res[2],16),parseInt(res[3]+res[3],16));// Otherwise, we're most likely dealing with a named color\nvar name=$.trim(str).toLowerCase();if(name==\"transparent\")return m(255,255,255,0);else{// default to black\nres=lookupColors[name]||[0,0,0];return m(res[0],res[1],res[2]);}};var lookupColors={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]};})(jQuery);/* Flot plugin for drawing all elements of a plot on the canvas.\r\n\r\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\r\nLicensed under the MIT license.\r\n\r\nFlot normally produces certain elements, like axis labels and the legend, using\r\nHTML elements. This permits greater interactivity and customization, and often\r\nlooks better, due to cross-browser canvas text inconsistencies and limitations.\r\n\r\nIt can also be desirable to render the plot entirely in canvas, particularly\r\nif the goal is to save it as an image, or if Flot is being used in a context\r\nwhere the HTML DOM does not exist, as is the case within Node.js. This plugin\r\nswitches out Flot's standard drawing operations for canvas-only replacements.\r\n\r\nCurrently the plugin supports only axis labels, but it will eventually allow\r\nevery element of the plot to be rendered directly to canvas.\r\n\r\nThe plugin supports these options:\r\n\r\n{\r\n    canvas: boolean\r\n}\r\n\r\nThe \"canvas\" option controls whether full canvas drawing is enabled, making it\r\npossible to toggle on and off. This is useful when a plot uses HTML text in the\r\nbrowser, but needs to redraw with canvas text when exporting as an image.\r\n\r\n*/(function($){var options={canvas:true};var render,getTextInfo,addText;// Cache the prototype hasOwnProperty for faster access\nvar hasOwnProperty=Object.prototype.hasOwnProperty;function init(plot,classes){var Canvas=classes.Canvas;// We only want to replace the functions once; the second time around\n// we would just get our new function back.  This whole replacing of\n// prototype functions is a disaster, and needs to be changed ASAP.\nif(render==null){getTextInfo=Canvas.prototype.getTextInfo,addText=Canvas.prototype.addText,render=Canvas.prototype.render;}// Finishes rendering the canvas, including overlaid text\nCanvas.prototype.render=function(){if(!plot.getOptions().canvas){return render.call(this);}var context=this.context,cache=this._textCache;// For each text layer, render elements marked as active\ncontext.save();context.textBaseline=\"middle\";for(var layerKey in cache){if(hasOwnProperty.call(cache,layerKey)){var layerCache=cache[layerKey];for(var styleKey in layerCache){if(hasOwnProperty.call(layerCache,styleKey)){var styleCache=layerCache[styleKey],updateStyles=true;for(var key in styleCache){if(hasOwnProperty.call(styleCache,key)){var info=styleCache[key],positions=info.positions,lines=info.lines;// Since every element at this level of the cache have the\n// same font and fill styles, we can just change them once\n// using the values from the first element.\nif(updateStyles){context.fillStyle=info.font.color;context.font=info.font.definition;updateStyles=false;}for(var i=0,position;position=positions[i];i++){if(position.active){for(var j=0,line;line=position.lines[j];j++){context.fillText(lines[j].text,line[0],line[1]);}}else{positions.splice(i--,1);}}if(positions.length==0){delete styleCache[key];}}}}}}}context.restore();};// Creates (if necessary) and returns a text info object.\n//\n// When the canvas option is set, the object looks like this:\n//\n// {\n//     width: Width of the text's bounding box.\n//     height: Height of the text's bounding box.\n//     positions: Array of positions at which this text is drawn.\n//     lines: [{\n//         height: Height of this line.\n//         widths: Width of this line.\n//         text: Text on this line.\n//     }],\n//     font: {\n//         definition: Canvas font property string.\n//         color: Color of the text.\n//     },\n// }\n//\n// The positions array contains objects that look like this:\n//\n// {\n//     active: Flag indicating whether the text should be visible.\n//     lines: Array of [x, y] coordinates at which to draw the line.\n//     x: X coordinate at which to draw the text.\n//     y: Y coordinate at which to draw the text.\n// }\nCanvas.prototype.getTextInfo=function(layer,text,font,angle,width){if(!plot.getOptions().canvas){return getTextInfo.call(this,layer,text,font,angle,width);}var textStyle,layerCache,styleCache,info;// Cast the value to a string, in case we were given a number\ntext=\"\"+text;// If the font is a font-spec object, generate a CSS definition\nif(typeof font===\"object\"){textStyle=font.style+\" \"+font.variant+\" \"+font.weight+\" \"+font.size+\"px \"+font.family;}else{textStyle=font;}// Retrieve (or create) the cache for the text's layer and styles\nlayerCache=this._textCache[layer];if(layerCache==null){layerCache=this._textCache[layer]={};}styleCache=layerCache[textStyle];if(styleCache==null){styleCache=layerCache[textStyle]={};}info=styleCache[text];if(info==null){var context=this.context;// If the font was provided as CSS, create a div with those\n// classes and examine it to generate a canvas font spec.\nif(typeof font!==\"object\"){var element=$(\"<div>&nbsp;</div>\").css(\"position\",\"absolute\").addClass(typeof font===\"string\"?font:null).appendTo(this.getTextLayer(layer));font={lineHeight:element.height(),style:element.css(\"font-style\"),variant:element.css(\"font-variant\"),weight:element.css(\"font-weight\"),family:element.css(\"font-family\"),color:element.css(\"color\")};// Setting line-height to 1, without units, sets it equal\n// to the font-size, even if the font-size is abstract,\n// like 'smaller'.  This enables us to read the real size\n// via the element's height, working around browsers that\n// return the literal 'smaller' value.\nfont.size=element.css(\"line-height\",1).height();element.remove();}textStyle=font.style+\" \"+font.variant+\" \"+font.weight+\" \"+font.size+\"px \"+font.family;// Create a new info object, initializing the dimensions to\n// zero so we can count them up line-by-line.\ninfo=styleCache[text]={width:0,height:0,positions:[],lines:[],font:{definition:textStyle,color:font.color}};context.save();context.font=textStyle;// Canvas can't handle multi-line strings; break on various\n// newlines, including HTML brs, to build a list of lines.\n// Note that we could split directly on regexps, but IE < 9 is\n// broken; revisit when we drop IE 7/8 support.\nvar lines=(text+\"\").replace(/<br ?\\/?>|\\r\\n|\\r/g,\"\\n\").split(\"\\n\");for(var i=0;i<lines.length;++i){var lineText=lines[i],measured=context.measureText(lineText);info.width=Math.max(measured.width,info.width);info.height+=font.lineHeight;info.lines.push({text:lineText,width:measured.width,height:font.lineHeight});}context.restore();}return info;};// Adds a text string to the canvas text overlay.\nCanvas.prototype.addText=function(layer,x,y,text,font,angle,width,halign,valign){if(!plot.getOptions().canvas){return addText.call(this,layer,x,y,text,font,angle,width,halign,valign);}var info=this.getTextInfo(layer,text,font,angle,width),positions=info.positions,lines=info.lines;// Text is drawn with baseline 'middle', which we need to account\n// for by adding half a line's height to the y position.\ny+=info.height/lines.length/2;// Tweak the initial y-position to match vertical alignment\nif(valign==\"middle\"){y=Math.round(y-info.height/2);}else if(valign==\"bottom\"){y=Math.round(y-info.height);}else{y=Math.round(y);}// FIXME: LEGACY BROWSER FIX\n// AFFECTS: Opera < 12.00\n// Offset the y coordinate, since Opera is off pretty\n// consistently compared to the other browsers.\nif(!!(window.opera&&window.opera.version().split(\".\")[0]<12)){y-=2;}// Determine whether this text already exists at this position.\n// If so, mark it for inclusion in the next render pass.\nfor(var i=0,position;position=positions[i];i++){if(position.x==x&&position.y==y){position.active=true;return;}}// If the text doesn't exist at this position, create a new entry\nposition={active:true,lines:[],x:x,y:y};positions.push(position);// Fill in the x & y positions of each line, adjusting them\n// individually for horizontal alignment.\nfor(var i=0,line;line=lines[i];i++){if(halign==\"center\"){position.lines.push([Math.round(x-line.width/2),y]);}else if(halign==\"right\"){position.lines.push([Math.round(x-line.width),y]);}else{position.lines.push([Math.round(x),y]);}y+=line.height;}};}$.plot.plugins.push({init:init,options:options,name:\"canvas\",version:\"1.0\"});})(jQuery);/* Flot plugin for plotting textual data or categories.\r\n\r\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\r\nLicensed under the MIT license.\r\n\r\nConsider a dataset like [[\"February\", 34], [\"March\", 20], ...]. This plugin\r\nallows you to plot such a dataset directly.\r\n\r\nTo enable it, you must specify mode: \"categories\" on the axis with the textual\r\nlabels, e.g.\r\n\r\n\t$.plot(\"#placeholder\", data, { xaxis: { mode: \"categories\" } });\r\n\r\nBy default, the labels are ordered as they are met in the data series. If you\r\nneed a different ordering, you can specify \"categories\" on the axis options\r\nand list the categories there:\r\n\r\n\txaxis: {\r\n\t\tmode: \"categories\",\r\n\t\tcategories: [\"February\", \"March\", \"April\"]\r\n\t}\r\n\r\nIf you need to customize the distances between the categories, you can specify\r\n\"categories\" as an object mapping labels to values\r\n\r\n\txaxis: {\r\n\t\tmode: \"categories\",\r\n\t\tcategories: { \"February\": 1, \"March\": 3, \"April\": 4 }\r\n\t}\r\n\r\nIf you don't specify all categories, the remaining categories will be numbered\r\nfrom the max value plus 1 (with a spacing of 1 between each).\r\n\r\nInternally, the plugin works by transforming the input data through an auto-\r\ngenerated mapping where the first category becomes 0, the second 1, etc.\r\nHence, a point like [\"February\", 34] becomes [0, 34] internally in Flot (this\r\nis visible in hover and click events that return numbers rather than the\r\ncategory labels). The plugin also overrides the tick generator to spit out the\r\ncategories as ticks instead of the values.\r\n\r\nIf you need to map a value back to its label, the mapping is always accessible\r\nas \"categories\" on the axis object, e.g. plot.getAxes().xaxis.categories.\r\n\r\n*/(function($){var options={xaxis:{categories:null},yaxis:{categories:null}};function processRawData(plot,series,data,datapoints){// if categories are enabled, we need to disable\n// auto-transformation to numbers so the strings are intact\n// for later processing\nvar xCategories=series.xaxis.options.mode==\"categories\",yCategories=series.yaxis.options.mode==\"categories\";if(!(xCategories||yCategories))return;var format=datapoints.format;if(!format){// FIXME: auto-detection should really not be defined here\nvar s=series;format=[];format.push({x:true,number:true,required:true});format.push({y:true,number:true,required:true});if(s.bars.show||s.lines.show&&s.lines.fill){var autoscale=!!(s.bars.show&&s.bars.zero||s.lines.show&&s.lines.zero);format.push({y:true,number:true,required:false,defaultValue:0,autoscale:autoscale});if(s.bars.horizontal){delete format[format.length-1].y;format[format.length-1].x=true;}}datapoints.format=format;}for(var m=0;m<format.length;++m){if(format[m].x&&xCategories)format[m].number=false;if(format[m].y&&yCategories)format[m].number=false;}}function getNextIndex(categories){var index=-1;for(var v in categories)if(categories[v]>index)index=categories[v];return index+1;}function categoriesTickGenerator(axis){var res=[];for(var label in axis.categories){var v=axis.categories[label];if(v>=axis.min&&v<=axis.max)res.push([v,label]);}res.sort(function(a,b){return a[0]-b[0];});return res;}function setupCategoriesForAxis(series,axis,datapoints){if(series[axis].options.mode!=\"categories\")return;if(!series[axis].categories){// parse options\nvar c={},o=series[axis].options.categories||{};if($.isArray(o)){for(var i=0;i<o.length;++i)c[o[i]]=i;}else{for(var v in o)c[v]=o[v];}series[axis].categories=c;}// fix ticks\nif(!series[axis].options.ticks)series[axis].options.ticks=categoriesTickGenerator;transformPointsOnAxis(datapoints,axis,series[axis].categories);}function transformPointsOnAxis(datapoints,axis,categories){// go through the points, transforming them\nvar points=datapoints.points,ps=datapoints.pointsize,format=datapoints.format,formatColumn=axis.charAt(0),index=getNextIndex(categories);for(var i=0;i<points.length;i+=ps){if(points[i]==null)continue;for(var m=0;m<ps;++m){var val=points[i+m];if(val==null||!format[m][formatColumn])continue;if(!(val in categories)){categories[val]=index;++index;}points[i+m]=categories[val];}}}function processDatapoints(plot,series,datapoints){setupCategoriesForAxis(series,\"xaxis\",datapoints);setupCategoriesForAxis(series,\"yaxis\",datapoints);}function init(plot){plot.hooks.processRawData.push(processRawData);plot.hooks.processDatapoints.push(processDatapoints);}$.plot.plugins.push({init:init,options:options,name:'categories',version:'1.0'});})(jQuery);/* Flot plugin for showing crosshairs when the mouse hovers over the plot.\r\n\r\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\r\nLicensed under the MIT license.\r\n\r\nThe plugin supports these options:\r\n\r\n\tcrosshair: {\r\n\t\tmode: null or \"x\" or \"y\" or \"xy\"\r\n\t\tcolor: color\r\n\t\tlineWidth: number\r\n\t}\r\n\r\nSet the mode to one of \"x\", \"y\" or \"xy\". The \"x\" mode enables a vertical\r\ncrosshair that lets you trace the values on the x axis, \"y\" enables a\r\nhorizontal crosshair and \"xy\" enables them both. \"color\" is the color of the\r\ncrosshair (default is \"rgba(170, 0, 0, 0.80)\"), \"lineWidth\" is the width of\r\nthe drawn lines (default is 1).\r\n\r\nThe plugin also adds four public methods:\r\n\r\n  - setCrosshair( pos )\r\n\r\n    Set the position of the crosshair. Note that this is cleared if the user\r\n    moves the mouse. \"pos\" is in coordinates of the plot and should be on the\r\n    form { x: xpos, y: ypos } (you can use x2/x3/... if you're using multiple\r\n    axes), which is coincidentally the same format as what you get from a\r\n    \"plothover\" event. If \"pos\" is null, the crosshair is cleared.\r\n\r\n  - clearCrosshair()\r\n\r\n    Clear the crosshair.\r\n\r\n  - lockCrosshair(pos)\r\n\r\n    Cause the crosshair to lock to the current location, no longer updating if\r\n    the user moves the mouse. Optionally supply a position (passed on to\r\n    setCrosshair()) to move it to.\r\n\r\n    Example usage:\r\n\r\n\tvar myFlot = $.plot( $(\"#graph\"), ..., { crosshair: { mode: \"x\" } } };\r\n\t$(\"#graph\").bind( \"plothover\", function ( evt, position, item ) {\r\n\t\tif ( item ) {\r\n\t\t\t// Lock the crosshair to the data point being hovered\r\n\t\t\tmyFlot.lockCrosshair({\r\n\t\t\t\tx: item.datapoint[ 0 ],\r\n\t\t\t\ty: item.datapoint[ 1 ]\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\t// Return normal crosshair operation\r\n\t\t\tmyFlot.unlockCrosshair();\r\n\t\t}\r\n\t});\r\n\r\n  - unlockCrosshair()\r\n\r\n    Free the crosshair to move again after locking it.\r\n*/(function($){var options={crosshair:{mode:null,// one of null, \"x\", \"y\" or \"xy\",\ncolor:\"rgba(170, 0, 0, 0.80)\",lineWidth:1}};function init(plot){// position of crosshair in pixels\nvar crosshair={x:-1,y:-1,locked:false};plot.setCrosshair=function setCrosshair(pos){if(!pos)crosshair.x=-1;else{var o=plot.p2c(pos);crosshair.x=Math.max(0,Math.min(o.left,plot.width()));crosshair.y=Math.max(0,Math.min(o.top,plot.height()));}plot.triggerRedrawOverlay();};plot.clearCrosshair=plot.setCrosshair;// passes null for pos\nplot.lockCrosshair=function lockCrosshair(pos){if(pos)plot.setCrosshair(pos);crosshair.locked=true;};plot.unlockCrosshair=function unlockCrosshair(){crosshair.locked=false;};function onMouseOut(e){if(crosshair.locked)return;if(crosshair.x!=-1){crosshair.x=-1;plot.triggerRedrawOverlay();}}function onMouseMove(e){if(crosshair.locked)return;if(plot.getSelection&&plot.getSelection()){crosshair.x=-1;// hide the crosshair while selecting\nreturn;}var offset=plot.offset();crosshair.x=Math.max(0,Math.min(e.pageX-offset.left,plot.width()));crosshair.y=Math.max(0,Math.min(e.pageY-offset.top,plot.height()));plot.triggerRedrawOverlay();}plot.hooks.bindEvents.push(function(plot,eventHolder){if(!plot.getOptions().crosshair.mode)return;eventHolder.mouseout(onMouseOut);eventHolder.mousemove(onMouseMove);});plot.hooks.drawOverlay.push(function(plot,ctx){var c=plot.getOptions().crosshair;if(!c.mode)return;var plotOffset=plot.getPlotOffset();ctx.save();ctx.translate(plotOffset.left,plotOffset.top);if(crosshair.x!=-1){var adj=plot.getOptions().crosshair.lineWidth%2?0.5:0;ctx.strokeStyle=c.color;ctx.lineWidth=c.lineWidth;ctx.lineJoin=\"round\";ctx.beginPath();if(c.mode.indexOf(\"x\")!=-1){var drawX=Math.floor(crosshair.x)+adj;ctx.moveTo(drawX,0);ctx.lineTo(drawX,plot.height());}if(c.mode.indexOf(\"y\")!=-1){var drawY=Math.floor(crosshair.y)+adj;ctx.moveTo(0,drawY);ctx.lineTo(plot.width(),drawY);}ctx.stroke();}ctx.restore();});plot.hooks.shutdown.push(function(plot,eventHolder){eventHolder.unbind(\"mouseout\",onMouseOut);eventHolder.unbind(\"mousemove\",onMouseMove);});}$.plot.plugins.push({init:init,options:options,name:'crosshair',version:'1.0'});})(jQuery);/* Flot plugin for plotting error bars.\r\n\r\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\r\nLicensed under the MIT license.\r\n\r\nError bars are used to show standard deviation and other statistical\r\nproperties in a plot.\r\n\r\n* Created by Rui Pereira  -  rui (dot) pereira (at) gmail (dot) com\r\n\r\nThis plugin allows you to plot error-bars over points. Set \"errorbars\" inside\r\nthe points series to the axis name over which there will be error values in\r\nyour data array (*even* if you do not intend to plot them later, by setting\r\n\"show: null\" on xerr/yerr).\r\n\r\nThe plugin supports these options:\r\n\r\n\tseries: {\r\n\t\tpoints: {\r\n\t\t\terrorbars: \"x\" or \"y\" or \"xy\",\r\n\t\t\txerr: {\r\n\t\t\t\tshow: null/false or true,\r\n\t\t\t\tasymmetric: null/false or true,\r\n\t\t\t\tupperCap: null or \"-\" or function,\r\n\t\t\t\tlowerCap: null or \"-\" or function,\r\n\t\t\t\tcolor: null or color,\r\n\t\t\t\tradius: null or number\r\n\t\t\t},\r\n\t\t\tyerr: { same options as xerr }\r\n\t\t}\r\n\t}\r\n\r\nEach data point array is expected to be of the type:\r\n\r\n\t\"x\"  [ x, y, xerr ]\r\n\t\"y\"  [ x, y, yerr ]\r\n\t\"xy\" [ x, y, xerr, yerr ]\r\n\r\nWhere xerr becomes xerr_lower,xerr_upper for the asymmetric error case, and\r\nequivalently for yerr. Eg., a datapoint for the \"xy\" case with symmetric\r\nerror-bars on X and asymmetric on Y would be:\r\n\r\n\t[ x, y, xerr, yerr_lower, yerr_upper ]\r\n\r\nBy default no end caps are drawn. Setting upperCap and/or lowerCap to \"-\" will\r\ndraw a small cap perpendicular to the error bar. They can also be set to a\r\nuser-defined drawing function, with (ctx, x, y, radius) as parameters, as eg.\r\n\r\n\tfunction drawSemiCircle( ctx, x, y, radius ) {\r\n\t\tctx.beginPath();\r\n\t\tctx.arc( x, y, radius, 0, Math.PI, false );\r\n\t\tctx.moveTo( x - radius, y );\r\n\t\tctx.lineTo( x + radius, y );\r\n\t\tctx.stroke();\r\n\t}\r\n\r\nColor and radius both default to the same ones of the points series if not\r\nset. The independent radius parameter on xerr/yerr is useful for the case when\r\nwe may want to add error-bars to a line, without showing the interconnecting\r\npoints (with radius: 0), and still showing end caps on the error-bars.\r\nshadowSize and lineWidth are derived as well from the points series.\r\n\r\n*/(function($){var options={series:{points:{errorbars:null,//should be 'x', 'y' or 'xy'\nxerr:{err:'x',show:null,asymmetric:null,upperCap:null,lowerCap:null,color:null,radius:null},yerr:{err:'y',show:null,asymmetric:null,upperCap:null,lowerCap:null,color:null,radius:null}}}};function processRawData(plot,series,data,datapoints){if(!series.points.errorbars)return;// x,y values\nvar format=[{x:true,number:true,required:true},{y:true,number:true,required:true}];var errors=series.points.errorbars;// error bars - first X then Y\nif(errors=='x'||errors=='xy'){// lower / upper error\nif(series.points.xerr.asymmetric){format.push({x:true,number:true,required:true});format.push({x:true,number:true,required:true});}else format.push({x:true,number:true,required:true});}if(errors=='y'||errors=='xy'){// lower / upper error\nif(series.points.yerr.asymmetric){format.push({y:true,number:true,required:true});format.push({y:true,number:true,required:true});}else format.push({y:true,number:true,required:true});}datapoints.format=format;}function parseErrors(series,i){var points=series.datapoints.points;// read errors from points array\nvar exl=null,exu=null,eyl=null,eyu=null;var xerr=series.points.xerr,yerr=series.points.yerr;var eb=series.points.errorbars;// error bars - first X\nif(eb=='x'||eb=='xy'){if(xerr.asymmetric){exl=points[i+2];exu=points[i+3];if(eb=='xy')if(yerr.asymmetric){eyl=points[i+4];eyu=points[i+5];}else eyl=points[i+4];}else{exl=points[i+2];if(eb=='xy')if(yerr.asymmetric){eyl=points[i+3];eyu=points[i+4];}else eyl=points[i+3];}// only Y\n}else if(eb=='y')if(yerr.asymmetric){eyl=points[i+2];eyu=points[i+3];}else eyl=points[i+2];// symmetric errors?\nif(exu==null)exu=exl;if(eyu==null)eyu=eyl;var errRanges=[exl,exu,eyl,eyu];// nullify if not showing\nif(!xerr.show){errRanges[0]=null;errRanges[1]=null;}if(!yerr.show){errRanges[2]=null;errRanges[3]=null;}return errRanges;}function drawSeriesErrors(plot,ctx,s){var points=s.datapoints.points,ps=s.datapoints.pointsize,ax=[s.xaxis,s.yaxis],radius=s.points.radius,err=[s.points.xerr,s.points.yerr];//sanity check, in case some inverted axis hack is applied to flot\nvar invertX=false;if(ax[0].p2c(ax[0].max)<ax[0].p2c(ax[0].min)){invertX=true;var tmp=err[0].lowerCap;err[0].lowerCap=err[0].upperCap;err[0].upperCap=tmp;}var invertY=false;if(ax[1].p2c(ax[1].min)<ax[1].p2c(ax[1].max)){invertY=true;var tmp=err[1].lowerCap;err[1].lowerCap=err[1].upperCap;err[1].upperCap=tmp;}for(var i=0;i<s.datapoints.points.length;i+=ps){//parse\nvar errRanges=parseErrors(s,i);//cycle xerr & yerr\nfor(var e=0;e<err.length;e++){var minmax=[ax[e].min,ax[e].max];//draw this error?\nif(errRanges[e*err.length]){//data coordinates\nvar x=points[i],y=points[i+1];//errorbar ranges\nvar upper=[x,y][e]+errRanges[e*err.length+1],lower=[x,y][e]-errRanges[e*err.length];//points outside of the canvas\nif(err[e].err=='x')if(y>ax[1].max||y<ax[1].min||upper<ax[0].min||lower>ax[0].max)continue;if(err[e].err=='y')if(x>ax[0].max||x<ax[0].min||upper<ax[1].min||lower>ax[1].max)continue;// prevent errorbars getting out of the canvas\nvar drawUpper=true,drawLower=true;if(upper>minmax[1]){drawUpper=false;upper=minmax[1];}if(lower<minmax[0]){drawLower=false;lower=minmax[0];}//sanity check, in case some inverted axis hack is applied to flot\nif(err[e].err=='x'&&invertX||err[e].err=='y'&&invertY){//swap coordinates\nvar tmp=lower;lower=upper;upper=tmp;tmp=drawLower;drawLower=drawUpper;drawUpper=tmp;tmp=minmax[0];minmax[0]=minmax[1];minmax[1]=tmp;}// convert to pixels\nx=ax[0].p2c(x),y=ax[1].p2c(y),upper=ax[e].p2c(upper);lower=ax[e].p2c(lower);minmax[0]=ax[e].p2c(minmax[0]);minmax[1]=ax[e].p2c(minmax[1]);//same style as points by default\nvar lw=err[e].lineWidth?err[e].lineWidth:s.points.lineWidth,sw=s.points.shadowSize!=null?s.points.shadowSize:s.shadowSize;//shadow as for points\nif(lw>0&&sw>0){var w=sw/2;ctx.lineWidth=w;ctx.strokeStyle=\"rgba(0,0,0,0.1)\";drawError(ctx,err[e],x,y,upper,lower,drawUpper,drawLower,radius,w+w/2,minmax);ctx.strokeStyle=\"rgba(0,0,0,0.2)\";drawError(ctx,err[e],x,y,upper,lower,drawUpper,drawLower,radius,w/2,minmax);}ctx.strokeStyle=err[e].color?err[e].color:s.color;ctx.lineWidth=lw;//draw it\ndrawError(ctx,err[e],x,y,upper,lower,drawUpper,drawLower,radius,0,minmax);}}}}function drawError(ctx,err,x,y,upper,lower,drawUpper,drawLower,radius,offset,minmax){//shadow offset\ny+=offset;upper+=offset;lower+=offset;// error bar - avoid plotting over circles\nif(err.err=='x'){if(upper>x+radius)drawPath(ctx,[[upper,y],[Math.max(x+radius,minmax[0]),y]]);else drawUpper=false;if(lower<x-radius)drawPath(ctx,[[Math.min(x-radius,minmax[1]),y],[lower,y]]);else drawLower=false;}else{if(upper<y-radius)drawPath(ctx,[[x,upper],[x,Math.min(y-radius,minmax[0])]]);else drawUpper=false;if(lower>y+radius)drawPath(ctx,[[x,Math.max(y+radius,minmax[1])],[x,lower]]);else drawLower=false;}//internal radius value in errorbar, allows to plot radius 0 points and still keep proper sized caps\n//this is a way to get errorbars on lines without visible connecting dots\nradius=err.radius!=null?err.radius:radius;// upper cap\nif(drawUpper){if(err.upperCap=='-'){if(err.err=='x')drawPath(ctx,[[upper,y-radius],[upper,y+radius]]);else drawPath(ctx,[[x-radius,upper],[x+radius,upper]]);}else if($.isFunction(err.upperCap)){if(err.err=='x')err.upperCap(ctx,upper,y,radius);else err.upperCap(ctx,x,upper,radius);}}// lower cap\nif(drawLower){if(err.lowerCap=='-'){if(err.err=='x')drawPath(ctx,[[lower,y-radius],[lower,y+radius]]);else drawPath(ctx,[[x-radius,lower],[x+radius,lower]]);}else if($.isFunction(err.lowerCap)){if(err.err=='x')err.lowerCap(ctx,lower,y,radius);else err.lowerCap(ctx,x,lower,radius);}}}function drawPath(ctx,pts){ctx.beginPath();ctx.moveTo(pts[0][0],pts[0][1]);for(var p=1;p<pts.length;p++)ctx.lineTo(pts[p][0],pts[p][1]);ctx.stroke();}function draw(plot,ctx){var plotOffset=plot.getPlotOffset();ctx.save();ctx.translate(plotOffset.left,plotOffset.top);$.each(plot.getData(),function(i,s){if(s.points.errorbars&&(s.points.xerr.show||s.points.yerr.show))drawSeriesErrors(plot,ctx,s);});ctx.restore();}function init(plot){plot.hooks.processRawData.push(processRawData);plot.hooks.draw.push(draw);}$.plot.plugins.push({init:init,options:options,name:'errorbars',version:'1.0'});})(jQuery);/* Flot plugin for computing bottoms for filled line and bar charts.\r\n\r\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\r\nLicensed under the MIT license.\r\n\r\nThe case: you've got two series that you want to fill the area between. In Flot\r\nterms, you need to use one as the fill bottom of the other. You can specify the\r\nbottom of each data point as the third coordinate manually, or you can use this\r\nplugin to compute it for you.\r\n\r\nIn order to name the other series, you need to give it an id, like this:\r\n\r\n\tvar dataset = [\r\n\t\t{ data: [ ... ], id: \"foo\" } ,         // use default bottom\r\n\t\t{ data: [ ... ], fillBetween: \"foo\" }, // use first dataset as bottom\r\n\t];\r\n\r\n\t$.plot($(\"#placeholder\"), dataset, { lines: { show: true, fill: true }});\r\n\r\nAs a convenience, if the id given is a number that doesn't appear as an id in\r\nthe series, it is interpreted as the index in the array instead (so fillBetween:\r\n0 can also mean the first series).\r\n\r\nInternally, the plugin modifies the datapoints in each series. For line series,\r\nextra data points might be inserted through interpolation. Note that at points\r\nwhere the bottom line is not defined (due to a null point or start/end of line),\r\nthe current line will show a gap too. The algorithm comes from the\r\njquery.flot.stack.js plugin, possibly some code could be shared.\r\n\r\n*/(function($){var options={series:{fillBetween:null// or number\n}};function init(plot){function findBottomSeries(s,allseries){var i;for(i=0;i<allseries.length;++i){if(allseries[i].id===s.fillBetween){return allseries[i];}}if(typeof s.fillBetween===\"number\"){if(s.fillBetween<0||s.fillBetween>=allseries.length){return null;}return allseries[s.fillBetween];}return null;}function computeFillBottoms(plot,s,datapoints){if(s.fillBetween==null){return;}var other=findBottomSeries(s,plot.getData());if(!other){return;}var ps=datapoints.pointsize,points=datapoints.points,otherps=other.datapoints.pointsize,otherpoints=other.datapoints.points,newpoints=[],px,py,intery,qx,qy,bottom,withlines=s.lines.show,withbottom=ps>2&&datapoints.format[2].y,withsteps=withlines&&s.lines.steps,fromgap=true,i=0,j=0,l,m;while(true){if(i>=points.length){break;}l=newpoints.length;if(points[i]==null){// copy gaps\nfor(m=0;m<ps;++m){newpoints.push(points[i+m]);}i+=ps;}else if(j>=otherpoints.length){// for lines, we can't use the rest of the points\nif(!withlines){for(m=0;m<ps;++m){newpoints.push(points[i+m]);}}i+=ps;}else if(otherpoints[j]==null){// oops, got a gap\nfor(m=0;m<ps;++m){newpoints.push(null);}fromgap=true;j+=otherps;}else{// cases where we actually got two points\npx=points[i];py=points[i+1];qx=otherpoints[j];qy=otherpoints[j+1];bottom=0;if(px===qx){for(m=0;m<ps;++m){newpoints.push(points[i+m]);}//newpoints[ l + 1 ] += qy;\nbottom=qy;i+=ps;j+=otherps;}else if(px>qx){// we got past point below, might need to\n// insert interpolated extra point\nif(withlines&&i>0&&points[i-ps]!=null){intery=py+(points[i-ps+1]-py)*(qx-px)/(points[i-ps]-px);newpoints.push(qx);newpoints.push(intery);for(m=2;m<ps;++m){newpoints.push(points[i+m]);}bottom=qy;}j+=otherps;}else{// px < qx\n// if we come from a gap, we just skip this point\nif(fromgap&&withlines){i+=ps;continue;}for(m=0;m<ps;++m){newpoints.push(points[i+m]);}// we might be able to interpolate a point below,\n// this can give us a better y\nif(withlines&&j>0&&otherpoints[j-otherps]!=null){bottom=qy+(otherpoints[j-otherps+1]-qy)*(px-qx)/(otherpoints[j-otherps]-qx);}//newpoints[l + 1] += bottom;\ni+=ps;}fromgap=false;if(l!==newpoints.length&&withbottom){newpoints[l+2]=bottom;}}// maintain the line steps invariant\nif(withsteps&&l!==newpoints.length&&l>0&&newpoints[l]!==null&&newpoints[l]!==newpoints[l-ps]&&newpoints[l+1]!==newpoints[l-ps+1]){for(m=0;m<ps;++m){newpoints[l+ps+m]=newpoints[l+m];}newpoints[l+1]=newpoints[l-ps+1];}}datapoints.points=newpoints;}plot.hooks.processDatapoints.push(computeFillBottoms);}$.plot.plugins.push({init:init,options:options,name:\"fillbetween\",version:\"1.0\"});})(jQuery);/* Flot plugin for plotting images.\r\n\r\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\r\nLicensed under the MIT license.\r\n\r\nThe data syntax is [ [ image, x1, y1, x2, y2 ], ... ] where (x1, y1) and\r\n(x2, y2) are where you intend the two opposite corners of the image to end up\r\nin the plot. Image must be a fully loaded Javascript image (you can make one\r\nwith new Image()). If the image is not complete, it's skipped when plotting.\r\n\r\nThere are two helpers included for retrieving images. The easiest work the way\r\nthat you put in URLs instead of images in the data, like this:\r\n\r\n\t[ \"myimage.png\", 0, 0, 10, 10 ]\r\n\r\nThen call $.plot.image.loadData( data, options, callback ) where data and\r\noptions are the same as you pass in to $.plot. This loads the images, replaces\r\nthe URLs in the data with the corresponding images and calls \"callback\" when\r\nall images are loaded (or failed loading). In the callback, you can then call\r\n$.plot with the data set. See the included example.\r\n\r\nA more low-level helper, $.plot.image.load(urls, callback) is also included.\r\nGiven a list of URLs, it calls callback with an object mapping from URL to\r\nImage object when all images are loaded or have failed loading.\r\n\r\nThe plugin supports these options:\r\n\r\n\tseries: {\r\n\t\timages: {\r\n\t\t\tshow: boolean\r\n\t\t\tanchor: \"corner\" or \"center\"\r\n\t\t\talpha: [ 0, 1 ]\r\n\t\t}\r\n\t}\r\n\r\nThey can be specified for a specific series:\r\n\r\n\t$.plot( $(\"#placeholder\"), [{\r\n\t\tdata: [ ... ],\r\n\t\timages: { ... }\r\n\t])\r\n\r\nNote that because the data format is different from usual data points, you\r\ncan't use images with anything else in a specific data series.\r\n\r\nSetting \"anchor\" to \"center\" causes the pixels in the image to be anchored at\r\nthe corner pixel centers inside of at the pixel corners, effectively letting\r\nhalf a pixel stick out to each side in the plot.\r\n\r\nA possible future direction could be support for tiling for large images (like\r\nGoogle Maps).\r\n\r\n*/(function($){var options={series:{images:{show:false,alpha:1,anchor:\"corner\"// or \"center\"\n}}};$.plot.image={};$.plot.image.loadDataImages=function(series,options,callback){var urls=[],points=[];var defaultShow=options.series.images.show;$.each(series,function(i,s){if(!(defaultShow||s.images.show))return;if(s.data)s=s.data;$.each(s,function(i,p){if(typeof p[0]==\"string\"){urls.push(p[0]);points.push(p);}});});$.plot.image.load(urls,function(loadedImages){$.each(points,function(i,p){var url=p[0];if(loadedImages[url])p[0]=loadedImages[url];});callback();});};$.plot.image.load=function(urls,callback){var missing=urls.length,loaded={};if(missing==0)callback({});$.each(urls,function(i,url){var handler=function(){--missing;loaded[url]=this;if(missing==0)callback(loaded);};$('<img />').load(handler).error(handler).attr('src',url);});};function drawSeries(plot,ctx,series){var plotOffset=plot.getPlotOffset();if(!series.images||!series.images.show)return;var points=series.datapoints.points,ps=series.datapoints.pointsize;for(var i=0;i<points.length;i+=ps){var img=points[i],x1=points[i+1],y1=points[i+2],x2=points[i+3],y2=points[i+4],xaxis=series.xaxis,yaxis=series.yaxis,tmp;// actually we should check img.complete, but it\n// appears to be a somewhat unreliable indicator in\n// IE6 (false even after load event)\nif(!img||img.width<=0||img.height<=0)continue;if(x1>x2){tmp=x2;x2=x1;x1=tmp;}if(y1>y2){tmp=y2;y2=y1;y1=tmp;}// if the anchor is at the center of the pixel, expand the \n// image by 1/2 pixel in each direction\nif(series.images.anchor==\"center\"){tmp=0.5*(x2-x1)/(img.width-1);x1-=tmp;x2+=tmp;tmp=0.5*(y2-y1)/(img.height-1);y1-=tmp;y2+=tmp;}// clip\nif(x1==x2||y1==y2||x1>=xaxis.max||x2<=xaxis.min||y1>=yaxis.max||y2<=yaxis.min)continue;var sx1=0,sy1=0,sx2=img.width,sy2=img.height;if(x1<xaxis.min){sx1+=(sx2-sx1)*(xaxis.min-x1)/(x2-x1);x1=xaxis.min;}if(x2>xaxis.max){sx2+=(sx2-sx1)*(xaxis.max-x2)/(x2-x1);x2=xaxis.max;}if(y1<yaxis.min){sy2+=(sy1-sy2)*(yaxis.min-y1)/(y2-y1);y1=yaxis.min;}if(y2>yaxis.max){sy1+=(sy1-sy2)*(yaxis.max-y2)/(y2-y1);y2=yaxis.max;}x1=xaxis.p2c(x1);x2=xaxis.p2c(x2);y1=yaxis.p2c(y1);y2=yaxis.p2c(y2);// the transformation may have swapped us\nif(x1>x2){tmp=x2;x2=x1;x1=tmp;}if(y1>y2){tmp=y2;y2=y1;y1=tmp;}tmp=ctx.globalAlpha;ctx.globalAlpha*=series.images.alpha;ctx.drawImage(img,sx1,sy1,sx2-sx1,sy2-sy1,x1+plotOffset.left,y1+plotOffset.top,x2-x1,y2-y1);ctx.globalAlpha=tmp;}}function processRawData(plot,series,data,datapoints){if(!series.images.show)return;// format is Image, x1, y1, x2, y2 (opposite corners)\ndatapoints.format=[{required:true},{x:true,number:true,required:true},{y:true,number:true,required:true},{x:true,number:true,required:true},{y:true,number:true,required:true}];}function init(plot){plot.hooks.processRawData.push(processRawData);plot.hooks.drawSeries.push(drawSeries);}$.plot.plugins.push({init:init,options:options,name:'image',version:'1.1'});})(jQuery);/* Flot plugin for adding the ability to pan and zoom the plot.\r\n\r\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\r\nLicensed under the MIT license.\r\n\r\nThe default behaviour is double click and scrollwheel up/down to zoom in, drag\r\nto pan. The plugin defines plot.zoom({ center }), plot.zoomOut() and\r\nplot.pan( offset ) so you easily can add custom controls. It also fires\r\n\"plotpan\" and \"plotzoom\" events, useful for synchronizing plots.\r\n\r\nThe plugin supports these options:\r\n\r\n\tzoom: {\r\n\t\tinteractive: false\r\n\t\ttrigger: \"dblclick\" // or \"click\" for single click\r\n\t\tamount: 1.5         // 2 = 200% (zoom in), 0.5 = 50% (zoom out)\r\n\t}\r\n\r\n\tpan: {\r\n\t\tinteractive: false\r\n\t\tcursor: \"move\"      // CSS mouse cursor value used when dragging, e.g. \"pointer\"\r\n\t\tframeRate: 20\r\n\t}\r\n\r\n\txaxis, yaxis, x2axis, y2axis: {\r\n\t\tzoomRange: null  // or [ number, number ] (min range, max range) or false\r\n\t\tpanRange: null   // or [ number, number ] (min, max) or false\r\n\t}\r\n\r\n\"interactive\" enables the built-in drag/click behaviour. If you enable\r\ninteractive for pan, then you'll have a basic plot that supports moving\r\naround; the same for zoom.\r\n\r\n\"amount\" specifies the default amount to zoom in (so 1.5 = 150%) relative to\r\nthe current viewport.\r\n\r\n\"cursor\" is a standard CSS mouse cursor string used for visual feedback to the\r\nuser when dragging.\r\n\r\n\"frameRate\" specifies the maximum number of times per second the plot will\r\nupdate itself while the user is panning around on it (set to null to disable\r\nintermediate pans, the plot will then not update until the mouse button is\r\nreleased).\r\n\r\n\"zoomRange\" is the interval in which zooming can happen, e.g. with zoomRange:\r\n[1, 100] the zoom will never scale the axis so that the difference between min\r\nand max is smaller than 1 or larger than 100. You can set either end to null\r\nto ignore, e.g. [1, null]. If you set zoomRange to false, zooming on that axis\r\nwill be disabled.\r\n\r\n\"panRange\" confines the panning to stay within a range, e.g. with panRange:\r\n[-10, 20] panning stops at -10 in one end and at 20 in the other. Either can\r\nbe null, e.g. [-10, null]. If you set panRange to false, panning on that axis\r\nwill be disabled.\r\n\r\nExample API usage:\r\n\r\n\tplot = $.plot(...);\r\n\r\n\t// zoom default amount in on the pixel ( 10, 20 )\r\n\tplot.zoom({ center: { left: 10, top: 20 } });\r\n\r\n\t// zoom out again\r\n\tplot.zoomOut({ center: { left: 10, top: 20 } });\r\n\r\n\t// zoom 200% in on the pixel (10, 20)\r\n\tplot.zoom({ amount: 2, center: { left: 10, top: 20 } });\r\n\r\n\t// pan 100 pixels to the left and 20 down\r\n\tplot.pan({ left: -100, top: 20 })\r\n\r\nHere, \"center\" specifies where the center of the zooming should happen. Note\r\nthat this is defined in pixel space, not the space of the data points (you can\r\nuse the p2c helpers on the axes in Flot to help you convert between these).\r\n\r\n\"amount\" is the amount to zoom the viewport relative to the current range, so\r\n1 is 100% (i.e. no change), 1.5 is 150% (zoom in), 0.7 is 70% (zoom out). You\r\ncan set the default in the options.\r\n\r\n*/ // First two dependencies, jquery.event.drag.js and\n// jquery.mousewheel.js, we put them inline here to save people the\n// effort of downloading them.\n/*\r\njquery.event.drag.js ~ v1.5 ~ Copyright (c) 2008, Three Dub Media (http://threedubmedia.com)\r\nLicensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-LICENSE.txt\r\n*/(function(a){function e(h){var k,j=this,l=h.data||{};if(l.elem)j=h.dragTarget=l.elem,h.dragProxy=d.proxy||j,h.cursorOffsetX=l.pageX-l.left,h.cursorOffsetY=l.pageY-l.top,h.offsetX=h.pageX-h.cursorOffsetX,h.offsetY=h.pageY-h.cursorOffsetY;else if(d.dragging||l.which>0&&h.which!=l.which||a(h.target).is(l.not))return;switch(h.type){case\"mousedown\":return a.extend(l,a(j).offset(),{elem:j,target:h.target,pageX:h.pageX,pageY:h.pageY}),b.add(document,\"mousemove mouseup\",e,l),i(j,!1),d.dragging=null,!1;case!d.dragging&&\"mousemove\":if(g(h.pageX-l.pageX)+g(h.pageY-l.pageY)<l.distance)break;h.target=l.target,k=f(h,\"dragstart\",j),k!==!1&&(d.dragging=j,d.proxy=h.dragProxy=a(k||j)[0]);case\"mousemove\":if(d.dragging){if(k=f(h,\"drag\",j),c.drop&&(c.drop.allowed=k!==!1,c.drop.handler(h)),k!==!1)break;h.type=\"mouseup\";}case\"mouseup\":b.remove(document,\"mousemove mouseup\",e),d.dragging&&(c.drop&&c.drop.handler(h),f(h,\"dragend\",j)),i(j,!0),d.dragging=d.proxy=l.elem=!1;}return!0;}function f(b,c,d){b.type=c;var e=a.event.dispatch.call(d,b);return e===!1?!1:e||b.result;}function g(a){return Math.pow(a,2);}function h(){return d.dragging===!1;}function i(a,b){a&&(a.unselectable=b?\"off\":\"on\",a.onselectstart=function(){return b;},a.style&&(a.style.MozUserSelect=b?\"\":\"none\"));}a.fn.drag=function(a,b,c){return b&&this.bind(\"dragstart\",a),c&&this.bind(\"dragend\",c),a?this.bind(\"drag\",b?b:a):this.trigger(\"drag\");};var b=a.event,c=b.special,d=c.drag={not:\":input\",distance:0,which:1,dragging:!1,setup:function(c){c=a.extend({distance:d.distance,which:d.which,not:d.not},c||{}),c.distance=g(c.distance),b.add(this,\"mousedown\",e,c),this.attachEvent&&this.attachEvent(\"ondragstart\",h);},teardown:function(){b.remove(this,\"mousedown\",e),this===d.dragging&&(d.dragging=d.proxy=!1),i(this,!0),this.detachEvent&&this.detachEvent(\"ondragstart\",h);}};c.dragstart=c.dragend={setup:function(){},teardown:function(){}};})(jQuery);/* jquery.mousewheel.min.js\r\n * Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)\r\n * Licensed under the MIT License (LICENSE.txt).\r\n * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.\r\n * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.\r\n * Thanks to: Seamus Leahy for adding deltaX and deltaY\r\n *\r\n * Version: 3.0.6\r\n *\r\n * Requires: 1.2.2+\r\n */(function(d){function e(a){var b=a||window.event,c=[].slice.call(arguments,1),f=0,e=0,g=0,a=d.event.fix(b);a.type=\"mousewheel\";b.wheelDelta&&(f=b.wheelDelta/120);b.detail&&(f=-b.detail/3);g=f;void 0!==b.axis&&b.axis===b.HORIZONTAL_AXIS&&(g=0,e=-1*f);void 0!==b.wheelDeltaY&&(g=b.wheelDeltaY/120);void 0!==b.wheelDeltaX&&(e=-1*b.wheelDeltaX/120);c.unshift(a,f,e,g);return(d.event.dispatch||d.event.handle).apply(this,c);}var c=[\"DOMMouseScroll\",\"mousewheel\"];if(d.event.fixHooks)for(var h=c.length;h;)d.event.fixHooks[c[--h]]=d.event.mouseHooks;d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],e,!1);else this.onmousewheel=e;},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],e,!1);else this.onmousewheel=null;}};d.fn.extend({mousewheel:function(a){return a?this.bind(\"mousewheel\",a):this.trigger(\"mousewheel\");},unmousewheel:function(a){return this.unbind(\"mousewheel\",a);}});})(jQuery);(function($){var options={xaxis:{zoomRange:null,// or [number, number] (min range, max range)\npanRange:null// or [number, number] (min, max)\n},zoom:{interactive:false,trigger:\"dblclick\",// or \"click\" for single click\namount:1.5// how much to zoom relative to current position, 2 = 200% (zoom in), 0.5 = 50% (zoom out)\n},pan:{interactive:false,cursor:\"move\",frameRate:20}};function init(plot){function onZoomClick(e,zoomOut){var c=plot.offset();c.left=e.pageX-c.left;c.top=e.pageY-c.top;if(zoomOut)plot.zoomOut({center:c});else plot.zoom({center:c});}function onMouseWheel(e,delta){e.preventDefault();onZoomClick(e,delta<0);return false;}var prevCursor='default',prevPageX=0,prevPageY=0,panTimeout=null;function onDragStart(e){if(e.which!=1)// only accept left-click\nreturn false;var c=plot.getPlaceholder().css('cursor');if(c)prevCursor=c;plot.getPlaceholder().css('cursor',plot.getOptions().pan.cursor);prevPageX=e.pageX;prevPageY=e.pageY;}function onDrag(e){var frameRate=plot.getOptions().pan.frameRate;if(panTimeout||!frameRate)return;panTimeout=setTimeout(function(){plot.pan({left:prevPageX-e.pageX,top:prevPageY-e.pageY});prevPageX=e.pageX;prevPageY=e.pageY;panTimeout=null;},1/frameRate*1000);}function onDragEnd(e){if(panTimeout){clearTimeout(panTimeout);panTimeout=null;}plot.getPlaceholder().css('cursor',prevCursor);plot.pan({left:prevPageX-e.pageX,top:prevPageY-e.pageY});}function bindEvents(plot,eventHolder){var o=plot.getOptions();if(o.zoom.interactive){eventHolder[o.zoom.trigger](onZoomClick);eventHolder.mousewheel(onMouseWheel);}if(o.pan.interactive){eventHolder.bind(\"dragstart\",{distance:10},onDragStart);eventHolder.bind(\"drag\",onDrag);eventHolder.bind(\"dragend\",onDragEnd);}}plot.zoomOut=function(args){if(!args)args={};if(!args.amount)args.amount=plot.getOptions().zoom.amount;args.amount=1/args.amount;plot.zoom(args);};plot.zoom=function(args){if(!args)args={};var c=args.center,amount=args.amount||plot.getOptions().zoom.amount,w=plot.width(),h=plot.height();if(!c)c={left:w/2,top:h/2};var xf=c.left/w,yf=c.top/h,minmax={x:{min:c.left-xf*w/amount,max:c.left+(1-xf)*w/amount},y:{min:c.top-yf*h/amount,max:c.top+(1-yf)*h/amount}};$.each(plot.getAxes(),function(_,axis){var opts=axis.options,min=minmax[axis.direction].min,max=minmax[axis.direction].max,zr=opts.zoomRange,pr=opts.panRange;if(zr===false)// no zooming on this axis\nreturn;min=axis.c2p(min);max=axis.c2p(max);if(min>max){// make sure min < max\nvar tmp=min;min=max;max=tmp;}//Check that we are in panRange\nif(pr){if(pr[0]!=null&&min<pr[0]){min=pr[0];}if(pr[1]!=null&&max>pr[1]){max=pr[1];}}var range=max-min;if(zr&&(zr[0]!=null&&range<zr[0]&&amount>1||zr[1]!=null&&range>zr[1]&&amount<1))return;opts.min=min;opts.max=max;});plot.setupGrid();plot.draw();if(!args.preventEvent)plot.getPlaceholder().trigger(\"plotzoom\",[plot,args]);};plot.pan=function(args){var delta={x:+args.left,y:+args.top};if(isNaN(delta.x))delta.x=0;if(isNaN(delta.y))delta.y=0;$.each(plot.getAxes(),function(_,axis){var opts=axis.options,min,max,d=delta[axis.direction];min=axis.c2p(axis.p2c(axis.min)+d),max=axis.c2p(axis.p2c(axis.max)+d);var pr=opts.panRange;if(pr===false)// no panning on this axis\nreturn;if(pr){// check whether we hit the wall\nif(pr[0]!=null&&pr[0]>min){d=pr[0]-min;min+=d;max+=d;}if(pr[1]!=null&&pr[1]<max){d=pr[1]-max;min+=d;max+=d;}}opts.min=min;opts.max=max;});plot.setupGrid();plot.draw();if(!args.preventEvent)plot.getPlaceholder().trigger(\"plotpan\",[plot,args]);};function shutdown(plot,eventHolder){eventHolder.unbind(plot.getOptions().zoom.trigger,onZoomClick);eventHolder.unbind(\"mousewheel\",onMouseWheel);eventHolder.unbind(\"dragstart\",onDragStart);eventHolder.unbind(\"drag\",onDrag);eventHolder.unbind(\"dragend\",onDragEnd);if(panTimeout)clearTimeout(panTimeout);}plot.hooks.bindEvents.push(bindEvents);plot.hooks.shutdown.push(shutdown);}$.plot.plugins.push({init:init,options:options,name:'navigate',version:'1.3'});})(jQuery);/* Flot plugin for rendering pie charts.\r\n\r\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\r\nLicensed under the MIT license.\r\n\r\nThe plugin assumes that each series has a single data value, and that each\r\nvalue is a positive integer or zero.  Negative numbers don't make sense for a\r\npie chart, and have unpredictable results.  The values do NOT need to be\r\npassed in as percentages; the plugin will calculate the total and per-slice\r\npercentages internally.\r\n\r\n* Created by Brian Medendorp\r\n\r\n* Updated with contributions from btburnett3, Anthony Aragues and Xavi Ivars\r\n\r\nThe plugin supports these options:\r\n\r\n\tseries: {\r\n\t\tpie: {\r\n\t\t\tshow: true/false\r\n\t\t\tradius: 0-1 for percentage of fullsize, or a specified pixel length, or 'auto'\r\n\t\t\tinnerRadius: 0-1 for percentage of fullsize or a specified pixel length, for creating a donut effect\r\n\t\t\tstartAngle: 0-2 factor of PI used for starting angle (in radians) i.e 3/2 starts at the top, 0 and 2 have the same result\r\n\t\t\ttilt: 0-1 for percentage to tilt the pie, where 1 is no tilt, and 0 is completely flat (nothing will show)\r\n\t\t\toffset: {\r\n\t\t\t\ttop: integer value to move the pie up or down\r\n\t\t\t\tleft: integer value to move the pie left or right, or 'auto'\r\n\t\t\t},\r\n\t\t\tstroke: {\r\n\t\t\t\tcolor: any hexidecimal color value (other formats may or may not work, so best to stick with something like '#FFF')\r\n\t\t\t\twidth: integer pixel width of the stroke\r\n\t\t\t},\r\n\t\t\tlabel: {\r\n\t\t\t\tshow: true/false, or 'auto'\r\n\t\t\t\tformatter:  a user-defined function that modifies the text/style of the label text\r\n\t\t\t\tradius: 0-1 for percentage of fullsize, or a specified pixel length\r\n\t\t\t\tbackground: {\r\n\t\t\t\t\tcolor: any hexidecimal color value (other formats may or may not work, so best to stick with something like '#000')\r\n\t\t\t\t\topacity: 0-1\r\n\t\t\t\t},\r\n\t\t\t\tthreshold: 0-1 for the percentage value at which to hide labels (if they're too small)\r\n\t\t\t},\r\n\t\t\tcombine: {\r\n\t\t\t\tthreshold: 0-1 for the percentage value at which to combine slices (if they're too small)\r\n\t\t\t\tcolor: any hexidecimal color value (other formats may or may not work, so best to stick with something like '#CCC'), if null, the plugin will automatically use the color of the first slice to be combined\r\n\t\t\t\tlabel: any text value of what the combined slice should be labeled\r\n\t\t\t}\r\n\t\t\thighlight: {\r\n\t\t\t\topacity: 0-1\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\nMore detail and specific examples can be found in the included HTML file.\r\n\r\n*/(function($){// Maximum redraw attempts when fitting labels within the plot\nvar REDRAW_ATTEMPTS=10;// Factor by which to shrink the pie when fitting labels within the plot\nvar REDRAW_SHRINK=0.95;function init(plot){var canvas=null,target=null,options=null,maxRadius=null,centerLeft=null,centerTop=null,processed=false,ctx=null;// interactive variables\nvar highlights=[];// add hook to determine if pie plugin in enabled, and then perform necessary operations\nplot.hooks.processOptions.push(function(plot,options){if(options.series.pie.show){options.grid.show=false;// set labels.show\nif(options.series.pie.label.show==\"auto\"){if(options.legend.show){options.series.pie.label.show=false;}else{options.series.pie.label.show=true;}}// set radius\nif(options.series.pie.radius==\"auto\"){if(options.series.pie.label.show){options.series.pie.radius=3/4;}else{options.series.pie.radius=1;}}// ensure sane tilt\nif(options.series.pie.tilt>1){options.series.pie.tilt=1;}else if(options.series.pie.tilt<0){options.series.pie.tilt=0;}}});plot.hooks.bindEvents.push(function(plot,eventHolder){var options=plot.getOptions();if(options.series.pie.show){if(options.grid.hoverable){eventHolder.unbind(\"mousemove\").mousemove(onMouseMove);}if(options.grid.clickable){eventHolder.unbind(\"click\").click(onClick);}}});plot.hooks.processDatapoints.push(function(plot,series,data,datapoints){var options=plot.getOptions();if(options.series.pie.show){processDatapoints(plot,series,data,datapoints);}});plot.hooks.drawOverlay.push(function(plot,octx){var options=plot.getOptions();if(options.series.pie.show){drawOverlay(plot,octx);}});plot.hooks.draw.push(function(plot,newCtx){var options=plot.getOptions();if(options.series.pie.show){draw(plot,newCtx);}});function processDatapoints(plot,series,datapoints){if(!processed){processed=true;canvas=plot.getCanvas();target=$(canvas).parent();options=plot.getOptions();plot.setData(combine(plot.getData()));}}function combine(data){var total=0,combined=0,numCombined=0,color=options.series.pie.combine.color,newdata=[];// Fix up the raw data from Flot, ensuring the data is numeric\nfor(var i=0;i<data.length;++i){var value=data[i].data;// If the data is an array, we'll assume that it's a standard\n// Flot x-y pair, and are concerned only with the second value.\n// Note how we use the original array, rather than creating a\n// new one; this is more efficient and preserves any extra data\n// that the user may have stored in higher indexes.\nif($.isArray(value)&&value.length==1){value=value[0];}if($.isArray(value)){// Equivalent to $.isNumeric() but compatible with jQuery < 1.7\nif(!isNaN(parseFloat(value[1]))&&isFinite(value[1])){value[1]=+value[1];}else{value[1]=0;}}else if(!isNaN(parseFloat(value))&&isFinite(value)){value=[1,+value];}else{value=[1,0];}data[i].data=[value];}// Sum up all the slices, so we can calculate percentages for each\nfor(var i=0;i<data.length;++i){total+=data[i].data[0][1];}// Count the number of slices with percentages below the combine\n// threshold; if it turns out to be just one, we won't combine.\nfor(var i=0;i<data.length;++i){var value=data[i].data[0][1];if(value/total<=options.series.pie.combine.threshold){combined+=value;numCombined++;if(!color){color=data[i].color;}}}for(var i=0;i<data.length;++i){var value=data[i].data[0][1];if(numCombined<2||value/total>options.series.pie.combine.threshold){newdata.push($.extend(data[i],{/* extend to allow keeping all other original data values\r\n\t\t\t\t\t\t                           and using them e.g. in labelFormatter. */data:[[1,value]],color:data[i].color,label:data[i].label,angle:value*Math.PI*2/total,percent:value/(total/100)}));}}if(numCombined>1){newdata.push({data:[[1,combined]],color:color,label:options.series.pie.combine.label,angle:combined*Math.PI*2/total,percent:combined/(total/100)});}return newdata;}function draw(plot,newCtx){if(!target){return;// if no series were passed\n}var canvasWidth=plot.getPlaceholder().width(),canvasHeight=plot.getPlaceholder().height(),legendWidth=target.children().filter(\".legend\").children().width()||0;ctx=newCtx;// WARNING: HACK! REWRITE THIS CODE AS SOON AS POSSIBLE!\n// When combining smaller slices into an 'other' slice, we need to\n// add a new series.  Since Flot gives plugins no way to modify the\n// list of series, the pie plugin uses a hack where the first call\n// to processDatapoints results in a call to setData with the new\n// list of series, then subsequent processDatapoints do nothing.\n// The plugin-global 'processed' flag is used to control this hack;\n// it starts out false, and is set to true after the first call to\n// processDatapoints.\n// Unfortunately this turns future setData calls into no-ops; they\n// call processDatapoints, the flag is true, and nothing happens.\n// To fix this we'll set the flag back to false here in draw, when\n// all series have been processed, so the next sequence of calls to\n// processDatapoints once again starts out with a slice-combine.\n// This is really a hack; in 0.9 we need to give plugins a proper\n// way to modify series before any processing begins.\nprocessed=false;// calculate maximum radius and center point\nmaxRadius=Math.min(canvasWidth,canvasHeight/options.series.pie.tilt)/2;centerTop=canvasHeight/2+options.series.pie.offset.top;centerLeft=canvasWidth/2;if(options.series.pie.offset.left==\"auto\"){if(options.legend.position.match(\"w\")){centerLeft+=legendWidth/2;}else{centerLeft-=legendWidth/2;}if(centerLeft<maxRadius){centerLeft=maxRadius;}else if(centerLeft>canvasWidth-maxRadius){centerLeft=canvasWidth-maxRadius;}}else{centerLeft+=options.series.pie.offset.left;}var slices=plot.getData(),attempts=0;// Keep shrinking the pie's radius until drawPie returns true,\n// indicating that all the labels fit, or we try too many times.\ndo{if(attempts>0){maxRadius*=REDRAW_SHRINK;}attempts+=1;clear();if(options.series.pie.tilt<=0.8){drawShadow();}}while(!drawPie()&&attempts<REDRAW_ATTEMPTS);if(attempts>=REDRAW_ATTEMPTS){clear();target.prepend(\"<div class='error'>Could not draw pie with labels contained inside canvas</div>\");}if(plot.setSeries&&plot.insertLegend){plot.setSeries(slices);plot.insertLegend();}// we're actually done at this point, just defining internal functions at this point\nfunction clear(){ctx.clearRect(0,0,canvasWidth,canvasHeight);target.children().filter(\".pieLabel, .pieLabelBackground\").remove();}function drawShadow(){var shadowLeft=options.series.pie.shadow.left;var shadowTop=options.series.pie.shadow.top;var edge=10;var alpha=options.series.pie.shadow.alpha;var radius=options.series.pie.radius>1?options.series.pie.radius:maxRadius*options.series.pie.radius;if(radius>=canvasWidth/2-shadowLeft||radius*options.series.pie.tilt>=canvasHeight/2-shadowTop||radius<=edge){return;// shadow would be outside canvas, so don't draw it\n}ctx.save();ctx.translate(shadowLeft,shadowTop);ctx.globalAlpha=alpha;ctx.fillStyle=\"#000\";// center and rotate to starting position\nctx.translate(centerLeft,centerTop);ctx.scale(1,options.series.pie.tilt);//radius -= edge;\nfor(var i=1;i<=edge;i++){ctx.beginPath();ctx.arc(0,0,radius,0,Math.PI*2,false);ctx.fill();radius-=i;}ctx.restore();}function drawPie(){var startAngle=Math.PI*options.series.pie.startAngle;var radius=options.series.pie.radius>1?options.series.pie.radius:maxRadius*options.series.pie.radius;// center and rotate to starting position\nctx.save();ctx.translate(centerLeft,centerTop);ctx.scale(1,options.series.pie.tilt);//ctx.rotate(startAngle); // start at top; -- This doesn't work properly in Opera\n// draw slices\nctx.save();var currentAngle=startAngle;for(var i=0;i<slices.length;++i){slices[i].startAngle=currentAngle;drawSlice(slices[i].angle,slices[i].color,true);}ctx.restore();// draw slice outlines\nif(options.series.pie.stroke.width>0){ctx.save();ctx.lineWidth=options.series.pie.stroke.width;currentAngle=startAngle;for(var i=0;i<slices.length;++i){drawSlice(slices[i].angle,options.series.pie.stroke.color,false);}ctx.restore();}// draw donut hole\ndrawDonutHole(ctx);ctx.restore();// Draw the labels, returning true if they fit within the plot\nif(options.series.pie.label.show){return drawLabels();}else return true;function drawSlice(angle,color,fill){if(angle<=0||isNaN(angle)){return;}if(fill){ctx.fillStyle=color;}else{ctx.strokeStyle=color;ctx.lineJoin=\"round\";}ctx.beginPath();if(Math.abs(angle-Math.PI*2)>0.000000001){ctx.moveTo(0,0);// Center of the pie\n}//ctx.arc(0, 0, radius, 0, angle, false); // This doesn't work properly in Opera\nctx.arc(0,0,radius,currentAngle,currentAngle+angle/2,false);ctx.arc(0,0,radius,currentAngle+angle/2,currentAngle+angle,false);ctx.closePath();//ctx.rotate(angle); // This doesn't work properly in Opera\ncurrentAngle+=angle;if(fill){ctx.fill();}else{ctx.stroke();}}function drawLabels(){var currentAngle=startAngle;var radius=options.series.pie.label.radius>1?options.series.pie.label.radius:maxRadius*options.series.pie.label.radius;for(var i=0;i<slices.length;++i){if(slices[i].percent>=options.series.pie.label.threshold*100){if(!drawLabel(slices[i],currentAngle,i)){return false;}}currentAngle+=slices[i].angle;}return true;function drawLabel(slice,startAngle,index){if(slice.data[0][1]==0){return true;}// format label text\nvar lf=options.legend.labelFormatter,text,plf=options.series.pie.label.formatter;if(lf){text=lf(slice.label,slice);}else{text=slice.label;}if(plf){text=plf(text,slice);}var halfAngle=(startAngle+slice.angle+startAngle)/2;var x=centerLeft+Math.round(Math.cos(halfAngle)*radius);var y=centerTop+Math.round(Math.sin(halfAngle)*radius)*options.series.pie.tilt;var html=\"<span class='pieLabel' id='pieLabel\"+index+\"' style='position:absolute;top:\"+y+\"px;left:\"+x+\"px;'>\"+text+\"</span>\";target.append(html);var label=target.children(\"#pieLabel\"+index);var labelTop=y-label.height()/2;var labelLeft=x-label.width()/2;label.css(\"top\",labelTop);label.css(\"left\",labelLeft);// check to make sure that the label is not outside the canvas\nif(0-labelTop>0||0-labelLeft>0||canvasHeight-(labelTop+label.height())<0||canvasWidth-(labelLeft+label.width())<0){return false;}if(options.series.pie.label.background.opacity!=0){// put in the transparent background separately to avoid blended labels and label boxes\nvar c=options.series.pie.label.background.color;if(c==null){c=slice.color;}var pos=\"top:\"+labelTop+\"px;left:\"+labelLeft+\"px;\";$(\"<div class='pieLabelBackground' style='position:absolute;width:\"+label.width()+\"px;height:\"+label.height()+\"px;\"+pos+\"background-color:\"+c+\";'></div>\").css(\"opacity\",options.series.pie.label.background.opacity).insertBefore(label);}return true;}// end individual label function\n}// end drawLabels function\n}// end drawPie function\n}// end draw function\n// Placed here because it needs to be accessed from multiple locations\nfunction drawDonutHole(layer){if(options.series.pie.innerRadius>0){// subtract the center\nlayer.save();var innerRadius=options.series.pie.innerRadius>1?options.series.pie.innerRadius:maxRadius*options.series.pie.innerRadius;layer.globalCompositeOperation=\"destination-out\";// this does not work with excanvas, but it will fall back to using the stroke color\nlayer.beginPath();layer.fillStyle=options.series.pie.stroke.color;layer.arc(0,0,innerRadius,0,Math.PI*2,false);layer.fill();layer.closePath();layer.restore();// add inner stroke\nlayer.save();layer.beginPath();layer.strokeStyle=options.series.pie.stroke.color;layer.arc(0,0,innerRadius,0,Math.PI*2,false);layer.stroke();layer.closePath();layer.restore();// TODO: add extra shadow inside hole (with a mask) if the pie is tilted.\n}}//-- Additional Interactive related functions --\nfunction isPointInPoly(poly,pt){for(var c=false,i=-1,l=poly.length,j=l-1;++i<l;j=i)(poly[i][1]<=pt[1]&&pt[1]<poly[j][1]||poly[j][1]<=pt[1]&&pt[1]<poly[i][1])&&pt[0]<(poly[j][0]-poly[i][0])*(pt[1]-poly[i][1])/(poly[j][1]-poly[i][1])+poly[i][0]&&(c=!c);return c;}function findNearbySlice(mouseX,mouseY){var slices=plot.getData(),options=plot.getOptions(),radius=options.series.pie.radius>1?options.series.pie.radius:maxRadius*options.series.pie.radius,x,y;for(var i=0;i<slices.length;++i){var s=slices[i];if(s.pie.show){ctx.save();ctx.beginPath();ctx.moveTo(0,0);// Center of the pie\n//ctx.scale(1, options.series.pie.tilt);\t// this actually seems to break everything when here.\nctx.arc(0,0,radius,s.startAngle,s.startAngle+s.angle/2,false);ctx.arc(0,0,radius,s.startAngle+s.angle/2,s.startAngle+s.angle,false);ctx.closePath();x=mouseX-centerLeft;y=mouseY-centerTop;if(ctx.isPointInPath){if(ctx.isPointInPath(mouseX-centerLeft,mouseY-centerTop)){ctx.restore();return{datapoint:[s.percent,s.data],dataIndex:0,series:s,seriesIndex:i};}}else{// excanvas for IE doesn;t support isPointInPath, this is a workaround.\nvar p1X=radius*Math.cos(s.startAngle),p1Y=radius*Math.sin(s.startAngle),p2X=radius*Math.cos(s.startAngle+s.angle/4),p2Y=radius*Math.sin(s.startAngle+s.angle/4),p3X=radius*Math.cos(s.startAngle+s.angle/2),p3Y=radius*Math.sin(s.startAngle+s.angle/2),p4X=radius*Math.cos(s.startAngle+s.angle/1.5),p4Y=radius*Math.sin(s.startAngle+s.angle/1.5),p5X=radius*Math.cos(s.startAngle+s.angle),p5Y=radius*Math.sin(s.startAngle+s.angle),arrPoly=[[0,0],[p1X,p1Y],[p2X,p2Y],[p3X,p3Y],[p4X,p4Y],[p5X,p5Y]],arrPoint=[x,y];// TODO: perhaps do some mathmatical trickery here with the Y-coordinate to compensate for pie tilt?\nif(isPointInPoly(arrPoly,arrPoint)){ctx.restore();return{datapoint:[s.percent,s.data],dataIndex:0,series:s,seriesIndex:i};}}ctx.restore();}}return null;}function onMouseMove(e){triggerClickHoverEvent(\"plothover\",e);}function onClick(e){triggerClickHoverEvent(\"plotclick\",e);}// trigger click or hover event (they send the same parameters so we share their code)\nfunction triggerClickHoverEvent(eventname,e){var offset=plot.offset();var canvasX=parseInt(e.pageX-offset.left);var canvasY=parseInt(e.pageY-offset.top);var item=findNearbySlice(canvasX,canvasY);if(options.grid.autoHighlight){// clear auto-highlights\nfor(var i=0;i<highlights.length;++i){var h=highlights[i];if(h.auto==eventname&&!(item&&h.series==item.series)){unhighlight(h.series);}}}// highlight the slice\nif(item){highlight(item.series,eventname);}// trigger any hover bind events\nvar pos={pageX:e.pageX,pageY:e.pageY};target.trigger(eventname,[pos,item]);}function highlight(s,auto){//if (typeof s == \"number\") {\n//\ts = series[s];\n//}\nvar i=indexOfHighlight(s);if(i==-1){highlights.push({series:s,auto:auto});plot.triggerRedrawOverlay();}else if(!auto){highlights[i].auto=false;}}function unhighlight(s){if(s==null){highlights=[];plot.triggerRedrawOverlay();}//if (typeof s == \"number\") {\n//\ts = series[s];\n//}\nvar i=indexOfHighlight(s);if(i!=-1){highlights.splice(i,1);plot.triggerRedrawOverlay();}}function indexOfHighlight(s){for(var i=0;i<highlights.length;++i){var h=highlights[i];if(h.series==s)return i;}return-1;}function drawOverlay(plot,octx){var options=plot.getOptions();var radius=options.series.pie.radius>1?options.series.pie.radius:maxRadius*options.series.pie.radius;octx.save();octx.translate(centerLeft,centerTop);octx.scale(1,options.series.pie.tilt);for(var i=0;i<highlights.length;++i){drawHighlight(highlights[i].series);}drawDonutHole(octx);octx.restore();function drawHighlight(series){if(series.angle<=0||isNaN(series.angle)){return;}//octx.fillStyle = parseColor(options.series.pie.highlight.color).scale(null, null, null, options.series.pie.highlight.opacity).toString();\noctx.fillStyle=\"rgba(255, 255, 255, \"+options.series.pie.highlight.opacity+\")\";// this is temporary until we have access to parseColor\noctx.beginPath();if(Math.abs(series.angle-Math.PI*2)>0.000000001){octx.moveTo(0,0);// Center of the pie\n}octx.arc(0,0,radius,series.startAngle,series.startAngle+series.angle/2,false);octx.arc(0,0,radius,series.startAngle+series.angle/2,series.startAngle+series.angle,false);octx.closePath();octx.fill();}}}// end init (plugin body)\n// define pie specific options and their default values\nvar options={series:{pie:{show:false,radius:\"auto\",// actual radius of the visible pie (based on full calculated radius if <=1, or hard pixel value)\ninnerRadius:0,/* for donut */startAngle:3/2,tilt:1,shadow:{left:5,// shadow left offset\ntop:15,// shadow top offset\nalpha:0.02// shadow alpha\n},offset:{top:0,left:\"auto\"},stroke:{color:\"#fff\",width:1},label:{show:\"auto\",formatter:function(label,slice){return\"<div style='font-size:x-small;text-align:center;padding:2px;color:\"+slice.color+\";'>\"+label+\"<br/>\"+Math.round(slice.percent)+\"%</div>\";},// formatter function\nradius:1,// radius at which to place the labels (based on full calculated radius if <=1, or hard pixel value)\nbackground:{color:null,opacity:0},threshold:0// percentage at which to hide the label (i.e. the slice is too narrow)\n},combine:{threshold:-1,// percentage at which to combine little slices into one larger slice\ncolor:null,// color to give the new slice (auto-generated if null)\nlabel:\"Other\"// label to give the new slice\n},highlight:{//color: \"#fff\",\t\t// will add this functionality once parseColor is available\nopacity:0.5}}}};$.plot.plugins.push({init:init,options:options,name:\"pie\",version:\"1.1\"});})(jQuery);/* Flot plugin for automatically redrawing plots as the placeholder resizes.\r\n\r\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\r\nLicensed under the MIT license.\r\n\r\nIt works by listening for changes on the placeholder div (through the jQuery\r\nresize event plugin) - if the size changes, it will redraw the plot.\r\n\r\nThere are no options. If you need to disable the plugin for some plots, you\r\ncan just fix the size of their placeholders.\r\n\r\n*/ /* Inline dependency:\r\n * jQuery resize event - v1.1 - 3/14/2010\r\n * http://benalman.com/projects/jquery-resize-plugin/\r\n *\r\n * Copyright (c) 2010 \"Cowboy\" Ben Alman\r\n * Dual licensed under the MIT and GPL licenses.\r\n * http://benalman.com/about/license/\r\n */(function($,e,t){\"$:nomunge\";var i=[],n=$.resize=$.extend($.resize,{}),a,r=false,s=\"setTimeout\",u=\"resize\",m=u+\"-special-event\",o=\"pendingDelay\",l=\"activeDelay\",f=\"throttleWindow\";n[o]=200;n[l]=20;n[f]=true;$.event.special[u]={setup:function(){if(!n[f]&&this[s]){return false;}var e=$(this);i.push(this);e.data(m,{w:e.width(),h:e.height()});if(i.length===1){a=t;h();}},teardown:function(){if(!n[f]&&this[s]){return false;}var e=$(this);for(var t=i.length-1;t>=0;t--){if(i[t]==this){i.splice(t,1);break;}}e.removeData(m);if(!i.length){if(r){cancelAnimationFrame(a);}else{clearTimeout(a);}a=null;}},add:function(e){if(!n[f]&&this[s]){return false;}var i;function a(e,n,a){var r=$(this),s=r.data(m)||{};s.w=n!==t?n:r.width();s.h=a!==t?a:r.height();i.apply(this,arguments);}if($.isFunction(e)){i=e;return a;}else{i=e.handler;e.handler=a;}}};function h(t){if(r===true){r=t||1;}for(var s=i.length-1;s>=0;s--){var l=$(i[s]);if(l[0]==e||l.is(\":visible\")){var f=l.width(),c=l.height(),d=l.data(m);if(d&&(f!==d.w||c!==d.h)){l.trigger(u,[d.w=f,d.h=c]);r=t||true;}}else{d=l.data(m);d.w=0;d.h=0;}}if(a!==null){if(r&&(t==null||t-r<1e3)){a=e.requestAnimationFrame(h);}else{a=setTimeout(h,n[o]);r=false;}}}if(!e.requestAnimationFrame){e.requestAnimationFrame=function(){return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t,i){return e.setTimeout(function(){t(new Date().getTime());},n[l]);};}();}if(!e.cancelAnimationFrame){e.cancelAnimationFrame=function(){return e.webkitCancelRequestAnimationFrame||e.mozCancelRequestAnimationFrame||e.oCancelRequestAnimationFrame||e.msCancelRequestAnimationFrame||clearTimeout;}();}})(jQuery,this);(function($){var options={};// no options\nfunction init(plot){function onResize(){var placeholder=plot.getPlaceholder();// somebody might have hidden us and we can't plot\n// when we don't have the dimensions\nif(placeholder.width()==0||placeholder.height()==0)return;plot.resize();plot.setupGrid();plot.draw();}function bindEvents(plot,eventHolder){plot.getPlaceholder().resize(onResize);}function shutdown(plot,eventHolder){plot.getPlaceholder().unbind(\"resize\",onResize);}plot.hooks.bindEvents.push(bindEvents);plot.hooks.shutdown.push(shutdown);}$.plot.plugins.push({init:init,options:options,name:'resize',version:'1.0'});})(jQuery);/* Flot plugin for selecting regions of a plot.\r\n\r\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\r\nLicensed under the MIT license.\r\n\r\nThe plugin supports these options:\r\n\r\nselection: {\r\n\tmode: null or \"x\" or \"y\" or \"xy\",\r\n\tcolor: color,\r\n\tshape: \"round\" or \"miter\" or \"bevel\",\r\n\tminSize: number of pixels\r\n}\r\n\r\nSelection support is enabled by setting the mode to one of \"x\", \"y\" or \"xy\".\r\nIn \"x\" mode, the user will only be able to specify the x range, similarly for\r\n\"y\" mode. For \"xy\", the selection becomes a rectangle where both ranges can be\r\nspecified. \"color\" is color of the selection (if you need to change the color\r\nlater on, you can get to it with plot.getOptions().selection.color). \"shape\"\r\nis the shape of the corners of the selection.\r\n\r\n\"minSize\" is the minimum size a selection can be in pixels. This value can\r\nbe customized to determine the smallest size a selection can be and still\r\nhave the selection rectangle be displayed. When customizing this value, the\r\nfact that it refers to pixels, not axis units must be taken into account.\r\nThus, for example, if there is a bar graph in time mode with BarWidth set to 1\r\nminute, setting \"minSize\" to 1 will not make the minimum selection size 1\r\nminute, but rather 1 pixel. Note also that setting \"minSize\" to 0 will prevent\r\n\"plotunselected\" events from being fired when the user clicks the mouse without\r\ndragging.\r\n\r\nWhen selection support is enabled, a \"plotselected\" event will be emitted on\r\nthe DOM element you passed into the plot function. The event handler gets a\r\nparameter with the ranges selected on the axes, like this:\r\n\r\n\tplaceholder.bind( \"plotselected\", function( event, ranges ) {\r\n\t\talert(\"You selected \" + ranges.xaxis.from + \" to \" + ranges.xaxis.to)\r\n\t\t// similar for yaxis - with multiple axes, the extra ones are in\r\n\t\t// x2axis, x3axis, ...\r\n\t});\r\n\r\nThe \"plotselected\" event is only fired when the user has finished making the\r\nselection. A \"plotselecting\" event is fired during the process with the same\r\nparameters as the \"plotselected\" event, in case you want to know what's\r\nhappening while it's happening,\r\n\r\nA \"plotunselected\" event with no arguments is emitted when the user clicks the\r\nmouse to remove the selection. As stated above, setting \"minSize\" to 0 will\r\ndestroy this behavior.\r\n\r\nThe plugin allso adds the following methods to the plot object:\r\n\r\n- setSelection( ranges, preventEvent )\r\n\r\n  Set the selection rectangle. The passed in ranges is on the same form as\r\n  returned in the \"plotselected\" event. If the selection mode is \"x\", you\r\n  should put in either an xaxis range, if the mode is \"y\" you need to put in\r\n  an yaxis range and both xaxis and yaxis if the selection mode is \"xy\", like\r\n  this:\r\n\r\n\tsetSelection({ xaxis: { from: 0, to: 10 }, yaxis: { from: 40, to: 60 } });\r\n\r\n  setSelection will trigger the \"plotselected\" event when called. If you don't\r\n  want that to happen, e.g. if you're inside a \"plotselected\" handler, pass\r\n  true as the second parameter. If you are using multiple axes, you can\r\n  specify the ranges on any of those, e.g. as x2axis/x3axis/... instead of\r\n  xaxis, the plugin picks the first one it sees.\r\n\r\n- clearSelection( preventEvent )\r\n\r\n  Clear the selection rectangle. Pass in true to avoid getting a\r\n  \"plotunselected\" event.\r\n\r\n- getSelection()\r\n\r\n  Returns the current selection in the same format as the \"plotselected\"\r\n  event. If there's currently no selection, the function returns null.\r\n\r\n*/(function($){function init(plot){var selection={first:{x:-1,y:-1},second:{x:-1,y:-1},show:false,active:false};// FIXME: The drag handling implemented here should be\n// abstracted out, there's some similar code from a library in\n// the navigation plugin, this should be massaged a bit to fit\n// the Flot cases here better and reused. Doing this would\n// make this plugin much slimmer.\nvar savedhandlers={};var mouseUpHandler=null;function onMouseMove(e){if(selection.active){updateSelection(e);plot.getPlaceholder().trigger(\"plotselecting\",[getSelection()]);}}function onMouseDown(e){if(e.which!=1)// only accept left-click\nreturn;// cancel out any text selections\ndocument.body.focus();// prevent text selection and drag in old-school browsers\nif(document.onselectstart!==undefined&&savedhandlers.onselectstart==null){savedhandlers.onselectstart=document.onselectstart;document.onselectstart=function(){return false;};}if(document.ondrag!==undefined&&savedhandlers.ondrag==null){savedhandlers.ondrag=document.ondrag;document.ondrag=function(){return false;};}setSelectionPos(selection.first,e);selection.active=true;// this is a bit silly, but we have to use a closure to be\n// able to whack the same handler again\nmouseUpHandler=function(e){onMouseUp(e);};$(document).one(\"mouseup\",mouseUpHandler);}function onMouseUp(e){mouseUpHandler=null;// revert drag stuff for old-school browsers\nif(document.onselectstart!==undefined)document.onselectstart=savedhandlers.onselectstart;if(document.ondrag!==undefined)document.ondrag=savedhandlers.ondrag;// no more dragging\nselection.active=false;updateSelection(e);if(selectionIsSane())triggerSelectedEvent();else{// this counts as a clear\nplot.getPlaceholder().trigger(\"plotunselected\",[]);plot.getPlaceholder().trigger(\"plotselecting\",[null]);}return false;}function getSelection(){if(!selectionIsSane())return null;if(!selection.show)return null;var r={},c1=selection.first,c2=selection.second;$.each(plot.getAxes(),function(name,axis){if(axis.used){var p1=axis.c2p(c1[axis.direction]),p2=axis.c2p(c2[axis.direction]);r[name]={from:Math.min(p1,p2),to:Math.max(p1,p2)};}});return r;}function triggerSelectedEvent(){var r=getSelection();plot.getPlaceholder().trigger(\"plotselected\",[r]);// backwards-compat stuff, to be removed in future\nif(r.xaxis&&r.yaxis)plot.getPlaceholder().trigger(\"selected\",[{x1:r.xaxis.from,y1:r.yaxis.from,x2:r.xaxis.to,y2:r.yaxis.to}]);}function clamp(min,value,max){return value<min?min:value>max?max:value;}function setSelectionPos(pos,e){var o=plot.getOptions();var offset=plot.getPlaceholder().offset();var plotOffset=plot.getPlotOffset();pos.x=clamp(0,e.pageX-offset.left-plotOffset.left,plot.width());pos.y=clamp(0,e.pageY-offset.top-plotOffset.top,plot.height());if(o.selection.mode==\"y\")pos.x=pos==selection.first?0:plot.width();if(o.selection.mode==\"x\")pos.y=pos==selection.first?0:plot.height();}function updateSelection(pos){if(pos.pageX==null)return;setSelectionPos(selection.second,pos);if(selectionIsSane()){selection.show=true;plot.triggerRedrawOverlay();}else clearSelection(true);}function clearSelection(preventEvent){if(selection.show){selection.show=false;plot.triggerRedrawOverlay();if(!preventEvent)plot.getPlaceholder().trigger(\"plotunselected\",[]);}}// function taken from markings support in Flot\nfunction extractRange(ranges,coord){var axis,from,to,key,axes=plot.getAxes();for(var k in axes){axis=axes[k];if(axis.direction==coord){key=coord+axis.n+\"axis\";if(!ranges[key]&&axis.n==1)key=coord+\"axis\";// support x1axis as xaxis\nif(ranges[key]){from=ranges[key].from;to=ranges[key].to;break;}}}// backwards-compat stuff - to be removed in future\nif(!ranges[key]){axis=coord==\"x\"?plot.getXAxes()[0]:plot.getYAxes()[0];from=ranges[coord+\"1\"];to=ranges[coord+\"2\"];}// auto-reverse as an added bonus\nif(from!=null&&to!=null&&from>to){var tmp=from;from=to;to=tmp;}return{from:from,to:to,axis:axis};}function setSelection(ranges,preventEvent){var axis,range,o=plot.getOptions();if(o.selection.mode==\"y\"){selection.first.x=0;selection.second.x=plot.width();}else{range=extractRange(ranges,\"x\");selection.first.x=range.axis.p2c(range.from);selection.second.x=range.axis.p2c(range.to);}if(o.selection.mode==\"x\"){selection.first.y=0;selection.second.y=plot.height();}else{range=extractRange(ranges,\"y\");selection.first.y=range.axis.p2c(range.from);selection.second.y=range.axis.p2c(range.to);}selection.show=true;plot.triggerRedrawOverlay();if(!preventEvent&&selectionIsSane())triggerSelectedEvent();}function selectionIsSane(){var minSize=plot.getOptions().selection.minSize;return Math.abs(selection.second.x-selection.first.x)>=minSize&&Math.abs(selection.second.y-selection.first.y)>=minSize;}plot.clearSelection=clearSelection;plot.setSelection=setSelection;plot.getSelection=getSelection;plot.hooks.bindEvents.push(function(plot,eventHolder){var o=plot.getOptions();if(o.selection.mode!=null){eventHolder.mousemove(onMouseMove);eventHolder.mousedown(onMouseDown);}});plot.hooks.drawOverlay.push(function(plot,ctx){// draw selection\nif(selection.show&&selectionIsSane()){var plotOffset=plot.getPlotOffset();var o=plot.getOptions();ctx.save();ctx.translate(plotOffset.left,plotOffset.top);var c=$.color.parse(o.selection.color);ctx.strokeStyle=c.scale('a',0.8).toString();ctx.lineWidth=1;ctx.lineJoin=o.selection.shape;ctx.fillStyle=c.scale('a',0.4).toString();var x=Math.min(selection.first.x,selection.second.x)+0.5,y=Math.min(selection.first.y,selection.second.y)+0.5,w=Math.abs(selection.second.x-selection.first.x)-1,h=Math.abs(selection.second.y-selection.first.y)-1;ctx.fillRect(x,y,w,h);ctx.strokeRect(x,y,w,h);ctx.restore();}});plot.hooks.shutdown.push(function(plot,eventHolder){eventHolder.unbind(\"mousemove\",onMouseMove);eventHolder.unbind(\"mousedown\",onMouseDown);if(mouseUpHandler)$(document).unbind(\"mouseup\",mouseUpHandler);});}$.plot.plugins.push({init:init,options:{selection:{mode:null,// one of null, \"x\", \"y\" or \"xy\"\ncolor:\"#e8cfac\",shape:\"round\",// one of \"round\", \"miter\", or \"bevel\"\nminSize:5// minimum number of pixels\n}},name:'selection',version:'1.1'});})(jQuery);/* Flot plugin for stacking data sets rather than overlyaing them.\r\n\r\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\r\nLicensed under the MIT license.\r\n\r\nThe plugin assumes the data is sorted on x (or y if stacking horizontally).\r\nFor line charts, it is assumed that if a line has an undefined gap (from a\r\nnull point), then the line above it should have the same gap - insert zeros\r\ninstead of \"null\" if you want another behaviour. This also holds for the start\r\nand end of the chart. Note that stacking a mix of positive and negative values\r\nin most instances doesn't make sense (so it looks weird).\r\n\r\nTwo or more series are stacked when their \"stack\" attribute is set to the same\r\nkey (which can be any number or string or just \"true\"). To specify the default\r\nstack, you can set the stack option like this:\r\n\r\n\tseries: {\r\n\t\tstack: null/false, true, or a key (number/string)\r\n\t}\r\n\r\nYou can also specify it for a single series, like this:\r\n\r\n\t$.plot( $(\"#placeholder\"), [{\r\n\t\tdata: [ ... ],\r\n\t\tstack: true\r\n\t}])\r\n\r\nThe stacking order is determined by the order of the data series in the array\r\n(later series end up on top of the previous).\r\n\r\nInternally, the plugin modifies the datapoints in each series, adding an\r\noffset to the y value. For line series, extra data points are inserted through\r\ninterpolation. If there's a second y value, it's also adjusted (e.g for bar\r\ncharts or filled areas).\r\n\r\n*/(function($){var options={series:{stack:null}// or number/string\n};function init(plot){function findMatchingSeries(s,allseries){var res=null;for(var i=0;i<allseries.length;++i){if(s==allseries[i])break;if(allseries[i].stack==s.stack)res=allseries[i];}return res;}function stackData(plot,s,datapoints){if(s.stack==null||s.stack===false)return;var other=findMatchingSeries(s,plot.getData());if(!other)return;var ps=datapoints.pointsize,points=datapoints.points,otherps=other.datapoints.pointsize,otherpoints=other.datapoints.points,newpoints=[],px,py,intery,qx,qy,bottom,withlines=s.lines.show,horizontal=s.bars.horizontal,withbottom=ps>2&&(horizontal?datapoints.format[2].x:datapoints.format[2].y),withsteps=withlines&&s.lines.steps,fromgap=true,keyOffset=horizontal?1:0,accumulateOffset=horizontal?0:1,i=0,j=0,l,m;while(true){if(i>=points.length)break;l=newpoints.length;if(points[i]==null){// copy gaps\nfor(m=0;m<ps;++m)newpoints.push(points[i+m]);i+=ps;}else if(j>=otherpoints.length){// for lines, we can't use the rest of the points\nif(!withlines){for(m=0;m<ps;++m)newpoints.push(points[i+m]);}i+=ps;}else if(otherpoints[j]==null){// oops, got a gap\nfor(m=0;m<ps;++m)newpoints.push(null);fromgap=true;j+=otherps;}else{// cases where we actually got two points\npx=points[i+keyOffset];py=points[i+accumulateOffset];qx=otherpoints[j+keyOffset];qy=otherpoints[j+accumulateOffset];bottom=0;if(px==qx){for(m=0;m<ps;++m)newpoints.push(points[i+m]);newpoints[l+accumulateOffset]+=qy;bottom=qy;i+=ps;j+=otherps;}else if(px>qx){// we got past point below, might need to\n// insert interpolated extra point\nif(withlines&&i>0&&points[i-ps]!=null){intery=py+(points[i-ps+accumulateOffset]-py)*(qx-px)/(points[i-ps+keyOffset]-px);newpoints.push(qx);newpoints.push(intery+qy);for(m=2;m<ps;++m)newpoints.push(points[i+m]);bottom=qy;}j+=otherps;}else{// px < qx\nif(fromgap&&withlines){// if we come from a gap, we just skip this point\ni+=ps;continue;}for(m=0;m<ps;++m)newpoints.push(points[i+m]);// we might be able to interpolate a point below,\n// this can give us a better y\nif(withlines&&j>0&&otherpoints[j-otherps]!=null)bottom=qy+(otherpoints[j-otherps+accumulateOffset]-qy)*(px-qx)/(otherpoints[j-otherps+keyOffset]-qx);newpoints[l+accumulateOffset]+=bottom;i+=ps;}fromgap=false;if(l!=newpoints.length&&withbottom)newpoints[l+2]+=bottom;}// maintain the line steps invariant\nif(withsteps&&l!=newpoints.length&&l>0&&newpoints[l]!=null&&newpoints[l]!=newpoints[l-ps]&&newpoints[l+1]!=newpoints[l-ps+1]){for(m=0;m<ps;++m)newpoints[l+ps+m]=newpoints[l+m];newpoints[l+1]=newpoints[l-ps+1];}}datapoints.points=newpoints;}plot.hooks.processDatapoints.push(stackData);}$.plot.plugins.push({init:init,options:options,name:'stack',version:'1.2'});})(jQuery);/**\r\n * Flot plugin that provides spline interpolation for line graphs\r\n * author: Alex Bardas < alex.bardas@gmail.com >\r\n * modified by: Avi Kohn https://github.com/AMKohn\r\n * based on the spline interpolation described at:\r\n *     http://scaledinnovation.com/analytics/splines/aboutSplines.html\r\n *\r\n * Example usage: (add in plot options series object)\r\n *    for linespline:\r\n *      series: {\r\n *        ...\r\n *        lines: {\r\n *          show: false\r\n *        },\r\n *        splines: {\r\n *          show: true,\r\n *          tension: x, (float between 0 and 1, defaults to 0.5),\r\n *          lineWidth: y (number, defaults to 2),\r\n *          fill: z (float between 0 .. 1 or false, as in flot documentation)\r\n *        },\r\n *        ...\r\n *      }\r\n *    areaspline:\r\n *      series: {\r\n *        ...\r\n *        lines: {\r\n *          show: true,\r\n *          lineWidth: 0, (line drawing will not execute)\r\n *          fill: x, (float between 0 .. 1, as in flot documentation)\r\n *          ...\r\n *        },\r\n *        splines: {\r\n *          show: true,\r\n *          tension: 0.5 (float between 0 and 1)\r\n *        },\r\n *        ...\r\n *      }\r\n *\r\n */(function($){'use strict';/**\r\n   * @param {Number} x0, y0, x1, y1: coordinates of the end (knot) points of the segment\r\n   * @param {Number} x2, y2: the next knot (not connected, but needed to calculate p2)\r\n   * @param {Number} tension: control how far the control points spread\r\n   * @return {Array}: p1 -> control point, from x1 back toward x0\r\n   *          p2 -> the next control point, returned to become the next segment's p1\r\n   *\r\n   * @api private\r\n   */function getControlPoints(x0,y0,x1,y1,x2,y2,tension){var pow=Math.pow,sqrt=Math.sqrt,d01,d12,fa,fb,p1x,p1y,p2x,p2y;//  Scaling factors: distances from this knot to the previous and following knots.\nd01=sqrt(pow(x1-x0,2)+pow(y1-y0,2));d12=sqrt(pow(x2-x1,2)+pow(y2-y1,2));fa=tension*d01/(d01+d12);fb=tension-fa;p1x=x1+fa*(x0-x2);p1y=y1+fa*(y0-y2);p2x=x1-fb*(x0-x2);p2y=y1-fb*(y0-y2);return[p1x,p1y,p2x,p2y];}var line=[];function drawLine(points,ctx,height,fill,seriesColor){var c=$.color.parse(seriesColor);c.a=typeof fill==\"number\"?fill:.3;c.normalize();c=c.toString();ctx.beginPath();ctx.moveTo(points[0][0],points[0][1]);var plength=points.length;for(var i=0;i<plength;i++){ctx[points[i][3]].apply(ctx,points[i][2]);}ctx.stroke();ctx.lineWidth=0;ctx.lineTo(points[plength-1][0],height);ctx.lineTo(points[0][0],height);ctx.closePath();if(fill!==false){ctx.fillStyle=c;ctx.fill();}}/**\r\n   * @param {Object} ctx: canvas context\r\n   * @param {String} type: accepted strings: 'bezier' or 'quadratic' (defaults to quadratic)\r\n   * @param {Array} points: 2 points for which to draw the interpolation\r\n   * @param {Array} cpoints: control points for those segment points\r\n   *\r\n   * @api private\r\n   */function queue(ctx,type,points,cpoints){if(type===void 0||type!=='bezier'&&type!=='quadratic'){type='quadratic';}type=type+'CurveTo';if(line.length==0)line.push([points[0],points[1],cpoints.concat(points.slice(2)),type]);else if(type==\"quadraticCurveTo\"&&points.length==2){cpoints=cpoints.slice(0,2).concat(points);line.push([points[0],points[1],cpoints,type]);}else line.push([points[2],points[3],cpoints.concat(points.slice(2)),type]);}/**\r\n   * @param {Object} plot\r\n   * @param {Object} ctx: canvas context\r\n   * @param {Object} series\r\n   *\r\n   * @api private\r\n   */function drawSpline(plot,ctx,series){// Not interested if spline is not requested\nif(series.splines.show!==true){return;}var cp=[],// array of control points\ntension=series.splines.tension||0.5,idx,x,y,points=series.datapoints.points,ps=series.datapoints.pointsize,plotOffset=plot.getPlotOffset(),len=points.length,pts=[];line=[];// Cannot display a linespline/areaspline if there are less than 3 points\nif(len/ps<4){$.extend(series.lines,series.splines);return;}for(idx=0;idx<len;idx+=ps){x=points[idx];y=points[idx+1];if(x==null||x<series.xaxis.min||x>series.xaxis.max||y<series.yaxis.min||y>series.yaxis.max){continue;}pts.push(series.xaxis.p2c(x)+plotOffset.left,series.yaxis.p2c(y)+plotOffset.top);}len=pts.length;// Draw an open curve, not connected at the ends\nfor(idx=0;idx<len-2;idx+=2){cp=cp.concat(getControlPoints.apply(this,pts.slice(idx,idx+6).concat([tension])));}ctx.save();ctx.strokeStyle=series.color;ctx.lineWidth=series.splines.lineWidth;queue(ctx,'quadratic',pts.slice(0,4),cp.slice(0,2));for(idx=2;idx<len-3;idx+=2){queue(ctx,'bezier',pts.slice(idx,idx+4),cp.slice(2*idx-2,2*idx+2));}queue(ctx,'quadratic',pts.slice(len-2,len),[cp[2*len-10],cp[2*len-9],pts[len-4],pts[len-3]]);drawLine(line,ctx,plot.height()+10,series.splines.fill,series.color);ctx.restore();}$.plot.plugins.push({init:function(plot){plot.hooks.drawSeries.push(drawSpline);},options:{series:{splines:{show:false,lineWidth:2,tension:0.5,fill:false}}},name:'spline',version:'0.8.2'});})(jQuery);/* Flot plugin that adds some extra symbols for plotting points.\r\n\r\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\r\nLicensed under the MIT license.\r\n\r\nThe symbols are accessed as strings through the standard symbol options:\r\n\r\n\tseries: {\r\n\t\tpoints: {\r\n\t\t\tsymbol: \"square\" // or \"diamond\", \"triangle\", \"cross\"\r\n\t\t}\r\n\t}\r\n\r\n*/(function($){function processRawData(plot,series,datapoints){// we normalize the area of each symbol so it is approximately the\n// same as a circle of the given radius\nvar handlers={square:function(ctx,x,y,radius,shadow){// pi * r^2 = (2s)^2  =>  s = r * sqrt(pi)/2\nvar size=radius*Math.sqrt(Math.PI)/2;ctx.rect(x-size,y-size,size+size,size+size);},diamond:function(ctx,x,y,radius,shadow){// pi * r^2 = 2s^2  =>  s = r * sqrt(pi/2)\nvar size=radius*Math.sqrt(Math.PI/2);ctx.moveTo(x-size,y);ctx.lineTo(x,y-size);ctx.lineTo(x+size,y);ctx.lineTo(x,y+size);ctx.lineTo(x-size,y);},triangle:function(ctx,x,y,radius,shadow){// pi * r^2 = 1/2 * s^2 * sin (pi / 3)  =>  s = r * sqrt(2 * pi / sin(pi / 3))\nvar size=radius*Math.sqrt(2*Math.PI/Math.sin(Math.PI/3));var height=size*Math.sin(Math.PI/3);ctx.moveTo(x-size/2,y+height/2);ctx.lineTo(x+size/2,y+height/2);if(!shadow){ctx.lineTo(x,y-height/2);ctx.lineTo(x-size/2,y+height/2);}},cross:function(ctx,x,y,radius,shadow){// pi * r^2 = (2s)^2  =>  s = r * sqrt(pi)/2\nvar size=radius*Math.sqrt(Math.PI)/2;ctx.moveTo(x-size,y-size);ctx.lineTo(x+size,y+size);ctx.moveTo(x-size,y+size);ctx.lineTo(x+size,y-size);}};var s=series.points.symbol;if(handlers[s])series.points.symbol=handlers[s];}function init(plot){plot.hooks.processDatapoints.push(processRawData);}$.plot.plugins.push({init:init,name:'symbols',version:'1.0'});})(jQuery);/* Flot plugin for thresholding data.\r\n\r\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\r\nLicensed under the MIT license.\r\n\r\nThe plugin supports these options:\r\n\r\n\tseries: {\r\n\t\tthreshold: {\r\n\t\t\tbelow: number\r\n\t\t\tcolor: colorspec\r\n\t\t}\r\n\t}\r\n\r\nIt can also be applied to a single series, like this:\r\n\r\n\t$.plot( $(\"#placeholder\"), [{\r\n\t\tdata: [ ... ],\r\n\t\tthreshold: { ... }\r\n\t}])\r\n\r\nAn array can be passed for multiple thresholding, like this:\r\n\r\n\tthreshold: [{\r\n\t\tbelow: number1\r\n\t\tcolor: color1\r\n\t},{\r\n\t\tbelow: number2\r\n\t\tcolor: color2\r\n\t}]\r\n\r\nThese multiple threshold objects can be passed in any order since they are\r\nsorted by the processing function.\r\n\r\nThe data points below \"below\" are drawn with the specified color. This makes\r\nit easy to mark points below 0, e.g. for budget data.\r\n\r\nInternally, the plugin works by splitting the data into two series, above and\r\nbelow the threshold. The extra series below the threshold will have its label\r\ncleared and the special \"originSeries\" attribute set to the original series.\r\nYou may need to check for this in hover events.\r\n\r\n*/(function($){var options={series:{threshold:null}// or { below: number, color: color spec}\n};function init(plot){function thresholdData(plot,s,datapoints,below,color){var ps=datapoints.pointsize,i,x,y,p,prevp,thresholded=$.extend({},s);// note: shallow copy\nthresholded.datapoints={points:[],pointsize:ps,format:datapoints.format};thresholded.label=null;thresholded.color=color;thresholded.threshold=null;thresholded.originSeries=s;thresholded.data=[];var origpoints=datapoints.points,addCrossingPoints=s.lines.show;var threspoints=[];var newpoints=[];var m;for(i=0;i<origpoints.length;i+=ps){x=origpoints[i];y=origpoints[i+1];prevp=p;if(y<below)p=threspoints;else p=newpoints;if(addCrossingPoints&&prevp!=p&&x!=null&&i>0&&origpoints[i-ps]!=null){var interx=x+(below-y)*(x-origpoints[i-ps])/(y-origpoints[i-ps+1]);prevp.push(interx);prevp.push(below);for(m=2;m<ps;++m)prevp.push(origpoints[i+m]);p.push(null);// start new segment\np.push(null);for(m=2;m<ps;++m)p.push(origpoints[i+m]);p.push(interx);p.push(below);for(m=2;m<ps;++m)p.push(origpoints[i+m]);}p.push(x);p.push(y);for(m=2;m<ps;++m)p.push(origpoints[i+m]);}datapoints.points=newpoints;thresholded.datapoints.points=threspoints;if(thresholded.datapoints.points.length>0){var origIndex=$.inArray(s,plot.getData());// Insert newly-generated series right after original one (to prevent it from becoming top-most)\nplot.getData().splice(origIndex+1,0,thresholded);}// FIXME: there are probably some edge cases left in bars\n}function processThresholds(plot,s,datapoints){if(!s.threshold)return;if(s.threshold instanceof Array){s.threshold.sort(function(a,b){return a.below-b.below;});$(s.threshold).each(function(i,th){thresholdData(plot,s,datapoints,th.below,th.color);});}else{thresholdData(plot,s,datapoints,s.threshold.below,s.threshold.color);}}plot.hooks.processDatapoints.push(processThresholds);}$.plot.plugins.push({init:init,options:options,name:'threshold',version:'1.2'});})(jQuery);/*\r\n * jquery.flot.tooltip\r\n * \r\n * description: easy-to-use tooltips for Flot charts\r\n * version: 0.9.0\r\n * authors: Krzysztof Urbas @krzysu [myviews.pl],Evan Steinkerchner @Roundaround\r\n * website: https://github.com/krzysu/flot.tooltip\r\n * \r\n * build on 2016-07-26\r\n * released under MIT License, 2012\r\n*/(function($){// plugin options, default values\nvar defaultOptions={tooltip:{show:false,cssClass:\"flotTip\",content:\"%s | X: %x | Y: %y\",// allowed templates are:\n// %s -> series label,\n// %c -> series color,\n// %lx -> x axis label (requires flot-axislabels plugin https://github.com/markrcote/flot-axislabels),\n// %ly -> y axis label (requires flot-axislabels plugin https://github.com/markrcote/flot-axislabels),\n// %x -> X value,\n// %y -> Y value,\n// %x.2 -> precision of X value,\n// %p -> percent\n// %n -> value (not percent) of pie chart\nxDateFormat:null,yDateFormat:null,monthNames:null,dayNames:null,shifts:{x:10,y:20},defaultTheme:true,snap:true,lines:false,clickTips:false,// callbacks\nonHover:function(flotItem,$tooltipEl){},$compat:false}};// dummy default options object for legacy code (<0.8.5) - is deleted later\ndefaultOptions.tooltipOpts=defaultOptions.tooltip;// object\nvar FlotTooltip=function(plot){// variables\nthis.tipPosition={x:0,y:0};this.init(plot);};// main plugin function\nFlotTooltip.prototype.init=function(plot){var that=this;// detect other flot plugins\nvar plotPluginsLength=$.plot.plugins.length;this.plotPlugins=[];if(plotPluginsLength){for(var p=0;p<plotPluginsLength;p++){this.plotPlugins.push($.plot.plugins[p].name);}}plot.hooks.bindEvents.push(function(plot,eventHolder){// get plot options\nthat.plotOptions=plot.getOptions();// for legacy (<0.8.5) implementations\nif(typeof that.plotOptions.tooltip==='boolean'){that.plotOptions.tooltipOpts.show=that.plotOptions.tooltip;that.plotOptions.tooltip=that.plotOptions.tooltipOpts;delete that.plotOptions.tooltipOpts;}// if not enabled return\nif(that.plotOptions.tooltip.show===false||typeof that.plotOptions.tooltip.show==='undefined')return;// shortcut to access tooltip options\nthat.tooltipOptions=that.plotOptions.tooltip;if(that.tooltipOptions.$compat){that.wfunc='width';that.hfunc='height';}else{that.wfunc='innerWidth';that.hfunc='innerHeight';}// create tooltip DOM element\nvar $tip=that.getDomElement();// bind event\n$(plot.getPlaceholder()).bind(\"plothover\",plothover);if(that.tooltipOptions.clickTips){$(plot.getPlaceholder()).bind(\"plotclick\",plotclick);}that.clickmode=false;$(eventHolder).bind('mousemove',mouseMove);});plot.hooks.shutdown.push(function(plot,eventHolder){$(plot.getPlaceholder()).unbind(\"plothover\",plothover);$(plot.getPlaceholder()).unbind(\"plotclick\",plotclick);plot.removeTooltip();$(eventHolder).unbind(\"mousemove\",mouseMove);});function mouseMove(e){var pos={};pos.x=e.pageX;pos.y=e.pageY;plot.setTooltipPosition(pos);}/**\r\n         *  open the tooltip (if not already open) and freeze it on the current position till the next click\r\n         */function plotclick(event,pos,item){if(!that.clickmode){// it is the click activating the clicktip\nplothover(event,pos,item);if(that.getDomElement().is(\":visible\")){$(plot.getPlaceholder()).unbind(\"plothover\",plothover);that.clickmode=true;}}else{// it is the click deactivating the clicktip\n$(plot.getPlaceholder()).bind(\"plothover\",plothover);plot.hideTooltip();that.clickmode=false;}}function plothover(event,pos,item){// Simple distance formula.\nvar lineDistance=function(p1x,p1y,p2x,p2y){return Math.sqrt((p2x-p1x)*(p2x-p1x)+(p2y-p1y)*(p2y-p1y));};// Here is some voodoo magic for determining the distance to a line form a given point {x, y}.\nvar dotLineLength=function(x,y,x0,y0,x1,y1,o){if(o&&!(o=function(x,y,x0,y0,x1,y1){if(typeof x0!=='undefined')return{x:x0,y:y};else if(typeof y0!=='undefined')return{x:x,y:y0};var left,tg=-1/((y1-y0)/(x1-x0));return{x:left=(x1*(x*tg-y+y0)+x0*(x*-tg+y-y1))/(tg*(x1-x0)+y0-y1),y:tg*left-tg*x+y};}(x,y,x0,y0,x1,y1),o.x>=Math.min(x0,x1)&&o.x<=Math.max(x0,x1)&&o.y>=Math.min(y0,y1)&&o.y<=Math.max(y0,y1))){var l1=lineDistance(x,y,x0,y0),l2=lineDistance(x,y,x1,y1);return l1>l2?l2:l1;}else{var a=y0-y1,b=x1-x0,c=x0*y1-y0*x1;return Math.abs(a*x+b*y+c)/Math.sqrt(a*a+b*b);}};if(item){plot.showTooltip(item,that.tooltipOptions.snap?item:pos);}else if(that.plotOptions.series.lines.show&&that.tooltipOptions.lines===true){var maxDistance=that.plotOptions.grid.mouseActiveRadius;var closestTrace={distance:maxDistance+1};var ttPos=pos;$.each(plot.getData(),function(i,series){var xBeforeIndex=0,xAfterIndex=-1;// Our search here assumes our data is sorted via the x-axis.\n// TODO: Improve efficiency somehow - search smaller sets of data.\nfor(var j=1;j<series.data.length;j++){if(series.data[j-1][0]<=pos.x&&series.data[j][0]>=pos.x){xBeforeIndex=j-1;xAfterIndex=j;}}if(xAfterIndex===-1){plot.hideTooltip();return;}var pointPrev={x:series.data[xBeforeIndex][0],y:series.data[xBeforeIndex][1]},pointNext={x:series.data[xAfterIndex][0],y:series.data[xAfterIndex][1]};var distToLine=dotLineLength(series.xaxis.p2c(pos.x),series.yaxis.p2c(pos.y),series.xaxis.p2c(pointPrev.x),series.yaxis.p2c(pointPrev.y),series.xaxis.p2c(pointNext.x),series.yaxis.p2c(pointNext.y),false);if(distToLine<closestTrace.distance){var closestIndex=lineDistance(pointPrev.x,pointPrev.y,pos.x,pos.y)<lineDistance(pos.x,pos.y,pointNext.x,pointNext.y)?xBeforeIndex:xAfterIndex;var pointSize=series.datapoints.pointsize;// Calculate the point on the line vertically closest to our cursor.\nvar pointOnLine=[pos.x,pointPrev.y+(pointNext.y-pointPrev.y)*((pos.x-pointPrev.x)/(pointNext.x-pointPrev.x))];var item={datapoint:pointOnLine,dataIndex:closestIndex,series:series,seriesIndex:i};closestTrace={distance:distToLine,item:item};if(that.tooltipOptions.snap){ttPos={pageX:series.xaxis.p2c(pointOnLine[0]),pageY:series.yaxis.p2c(pointOnLine[1])};}}});if(closestTrace.distance<maxDistance+1)plot.showTooltip(closestTrace.item,ttPos);else plot.hideTooltip();}else{plot.hideTooltip();}}// Quick little function for setting the tooltip position.\nplot.setTooltipPosition=function(pos){var $tip=that.getDomElement();var totalTipWidth=$tip.outerWidth()+that.tooltipOptions.shifts.x;var totalTipHeight=$tip.outerHeight()+that.tooltipOptions.shifts.y;if(pos.x-$(window).scrollLeft()>$(window)[that.wfunc]()-totalTipWidth){pos.x-=totalTipWidth;pos.x=Math.max(pos.x,0);}if(pos.y-$(window).scrollTop()>$(window)[that.hfunc]()-totalTipHeight){pos.y-=totalTipHeight;}/*\r\n\t       The section applies the new positioning ONLY if pos.x and pos.y\r\n\t       are numbers. If they are undefined or not a number, use the last\r\n\t       known numerical position. This hack fixes a bug that kept pie\r\n\t       charts from keeping their tooltip positioning.\r\n\t     */if(isNaN(pos.x)){that.tipPosition.x=that.tipPosition.xPrev;}else{that.tipPosition.x=pos.x;that.tipPosition.xPrev=pos.x;}if(isNaN(pos.y)){that.tipPosition.y=that.tipPosition.yPrev;}else{that.tipPosition.y=pos.y;that.tipPosition.yPrev=pos.y;}};// Quick little function for showing the tooltip.\nplot.showTooltip=function(target,position,targetPosition){var $tip=that.getDomElement();// convert tooltip content template to real tipText\nvar tipText=that.stringFormat(that.tooltipOptions.content,target);if(tipText==='')return;$tip.html(tipText);plot.setTooltipPosition({x:that.tipPosition.x,y:that.tipPosition.y});$tip.css({left:that.tipPosition.x+that.tooltipOptions.shifts.x,top:that.tipPosition.y+that.tooltipOptions.shifts.y}).show();// run callback\nif(typeof that.tooltipOptions.onHover==='function'){that.tooltipOptions.onHover(target,$tip);}};// Quick little function for hiding the tooltip.\nplot.hideTooltip=function(){that.getDomElement().hide().html('');};plot.removeTooltip=function(){that.getDomElement().remove();};};/**\r\n     * get or create tooltip DOM element\r\n     * @return jQuery object\r\n     */FlotTooltip.prototype.getDomElement=function(){var $tip=$('<div>');if(this.tooltipOptions&&this.tooltipOptions.cssClass){$tip=$('.'+this.tooltipOptions.cssClass);if($tip.length===0){$tip=$('<div />').addClass(this.tooltipOptions.cssClass);$tip.appendTo('body').hide().css({position:'absolute'});if(this.tooltipOptions.defaultTheme){$tip.css({'background':'#fff','z-index':'1040','padding':'0.4em 0.6em','border-radius':'0.5em','font-size':'0.8em','border':'1px solid #111','display':'none','white-space':'nowrap'});}}}return $tip;};/**\r\n     * core function, create tooltip content\r\n     * @param  {string} content - template with tooltip content\r\n     * @param  {object} item - Flot item\r\n     * @return {string} real tooltip content for current item\r\n     */FlotTooltip.prototype.stringFormat=function(content,item){var percentPattern=/%p\\.{0,1}(\\d{0,})/;var seriesPattern=/%s/;var colorPattern=/%c/;var xLabelPattern=/%lx/;// requires flot-axislabels plugin https://github.com/markrcote/flot-axislabels, will be ignored if plugin isn't loaded\nvar yLabelPattern=/%ly/;// requires flot-axislabels plugin https://github.com/markrcote/flot-axislabels, will be ignored if plugin isn't loaded\nvar xPattern=/%x\\.{0,1}(\\d{0,})/;var yPattern=/%y\\.{0,1}(\\d{0,})/;var xPatternWithoutPrecision=\"%x\";var yPatternWithoutPrecision=\"%y\";var customTextPattern=\"%ct\";var nPiePattern=\"%n\";var x,y,customText,p,n;// for threshold plugin we need to read data from different place\nif(typeof item.series.threshold!==\"undefined\"){x=item.datapoint[0];y=item.datapoint[1];customText=item.datapoint[2];}// for CurvedLines plugin we need to read data from different place\nelse if(typeof item.series.curvedLines!==\"undefined\"){x=item.datapoint[0];y=item.datapoint[1];}else if(typeof item.series.lines!==\"undefined\"&&item.series.lines.steps){x=item.series.datapoints.points[item.dataIndex*2];y=item.series.datapoints.points[item.dataIndex*2+1];// TODO: where to find custom text in this variant?\ncustomText=\"\";}else{x=item.series.data[item.dataIndex][0];y=item.series.data[item.dataIndex][1];customText=item.series.data[item.dataIndex][2];}// I think this is only in case of threshold plugin\nif(item.series.label===null&&item.series.originSeries){item.series.label=item.series.originSeries.label;}// if it is a function callback get the content string\nif(typeof content==='function'){content=content(item.series.label,x,y,item);}// the case where the passed content is equal to false\nif(typeof content==='boolean'&&!content){return'';}/* replacement of %ct and other multi-character templates must\r\n           precede the replacement of single-character templates\r\n           to avoid conflict between '%c' and '%ct'  and similar substrings\r\n        */if(customText){content=content.replace(customTextPattern,customText);}// percent match for pie charts and stacked percent\nif(typeof item.series.percent!=='undefined'){p=item.series.percent;}else if(typeof item.series.percents!=='undefined'){p=item.series.percents[item.dataIndex];}if(typeof p==='number'){content=this.adjustValPrecision(percentPattern,content,p);}// replace %n with number of items represented by slice in pie charts\nif(item.series.hasOwnProperty('pie')){if(typeof item.series.data[0][1]!=='undefined'){n=item.series.data[0][1];}}if(typeof n==='number'){content=content.replace(nPiePattern,n);}// series match\nif(typeof item.series.label!=='undefined'){content=content.replace(seriesPattern,item.series.label);}else{//remove %s if label is undefined\ncontent=content.replace(seriesPattern,\"\");}// color match\nif(typeof item.series.color!=='undefined'){content=content.replace(colorPattern,item.series.color);}else{//remove %s if color is undefined\ncontent=content.replace(colorPattern,\"\");}// x axis label match\nif(this.hasAxisLabel('xaxis',item)){content=content.replace(xLabelPattern,item.series.xaxis.options.axisLabel);}else{//remove %lx if axis label is undefined or axislabels plugin not present\ncontent=content.replace(xLabelPattern,\"\");}// y axis label match\nif(this.hasAxisLabel('yaxis',item)){content=content.replace(yLabelPattern,item.series.yaxis.options.axisLabel);}else{//remove %ly if axis label is undefined or axislabels plugin not present\ncontent=content.replace(yLabelPattern,\"\");}// time mode axes with custom dateFormat\nif(this.isTimeMode('xaxis',item)&&this.isXDateFormat(item)){content=content.replace(xPattern,this.timestampToDate(x,this.tooltipOptions.xDateFormat,item.series.xaxis.options));}if(this.isTimeMode('yaxis',item)&&this.isYDateFormat(item)){content=content.replace(yPattern,this.timestampToDate(y,this.tooltipOptions.yDateFormat,item.series.yaxis.options));}// set precision if defined\nif(typeof x==='number'){content=this.adjustValPrecision(xPattern,content,x);}if(typeof y==='number'){content=this.adjustValPrecision(yPattern,content,y);}// change x from number to given label, if given\nif(typeof item.series.xaxis.ticks!=='undefined'){var ticks;if(this.hasRotatedXAxisTicks(item)){// xaxis.ticks will be an empty array if tickRotor is being used, but the values are available in rotatedTicks\nticks='rotatedTicks';}else{ticks='ticks';}// see https://github.com/krzysu/flot.tooltip/issues/65\nvar tickIndex=item.dataIndex+item.seriesIndex;for(var xIndex in item.series.xaxis[ticks]){if(item.series.xaxis[ticks].hasOwnProperty(tickIndex)&&!this.isTimeMode('xaxis',item)){var valueX=this.isCategoriesMode('xaxis',item)?item.series.xaxis[ticks][tickIndex].label:item.series.xaxis[ticks][tickIndex].v;if(valueX===x){content=content.replace(xPattern,item.series.xaxis[ticks][tickIndex].label.replace(/\\$/g,'$$$$'));}}}}// change y from number to given label, if given\nif(typeof item.series.yaxis.ticks!=='undefined'){for(var yIndex in item.series.yaxis.ticks){if(item.series.yaxis.ticks.hasOwnProperty(yIndex)){var valueY=this.isCategoriesMode('yaxis',item)?item.series.yaxis.ticks[yIndex].label:item.series.yaxis.ticks[yIndex].v;if(valueY===y){content=content.replace(yPattern,item.series.yaxis.ticks[yIndex].label.replace(/\\$/g,'$$$$'));}}}}// if no value customization, use tickFormatter by default\nif(typeof item.series.xaxis.tickFormatter!=='undefined'){//escape dollar\ncontent=content.replace(xPatternWithoutPrecision,item.series.xaxis.tickFormatter(x,item.series.xaxis).replace(/\\$/g,'$$'));}if(typeof item.series.yaxis.tickFormatter!=='undefined'){//escape dollar\ncontent=content.replace(yPatternWithoutPrecision,item.series.yaxis.tickFormatter(y,item.series.yaxis).replace(/\\$/g,'$$'));}return content;};// helpers just for readability\nFlotTooltip.prototype.isTimeMode=function(axisName,item){return typeof item.series[axisName].options.mode!=='undefined'&&item.series[axisName].options.mode==='time';};FlotTooltip.prototype.isXDateFormat=function(item){return typeof this.tooltipOptions.xDateFormat!=='undefined'&&this.tooltipOptions.xDateFormat!==null;};FlotTooltip.prototype.isYDateFormat=function(item){return typeof this.tooltipOptions.yDateFormat!=='undefined'&&this.tooltipOptions.yDateFormat!==null;};FlotTooltip.prototype.isCategoriesMode=function(axisName,item){return typeof item.series[axisName].options.mode!=='undefined'&&item.series[axisName].options.mode==='categories';};//\nFlotTooltip.prototype.timestampToDate=function(tmst,dateFormat,options){var theDate=$.plot.dateGenerator(tmst,options);return $.plot.formatDate(theDate,dateFormat,this.tooltipOptions.monthNames,this.tooltipOptions.dayNames);};//\nFlotTooltip.prototype.adjustValPrecision=function(pattern,content,value){var precision;var matchResult=content.match(pattern);if(matchResult!==null){if(RegExp.$1!==''){precision=RegExp.$1;value=value.toFixed(precision);// only replace content if precision exists, in other case use thickformater\ncontent=content.replace(pattern,value);}}return content;};// other plugins detection below\n// check if flot-axislabels plugin (https://github.com/markrcote/flot-axislabels) is used and that an axis label is given\nFlotTooltip.prototype.hasAxisLabel=function(axisName,item){return $.inArray('axisLabels',this.plotPlugins)!==-1&&typeof item.series[axisName].options.axisLabel!=='undefined'&&item.series[axisName].options.axisLabel.length>0;};// check whether flot-tickRotor, a plugin which allows rotation of X-axis ticks, is being used\nFlotTooltip.prototype.hasRotatedXAxisTicks=function(item){return $.inArray('tickRotor',this.plotPlugins)!==-1&&typeof item.series.xaxis.rotatedTicks!=='undefined';};//\nvar init=function(plot){new FlotTooltip(plot);};// define Flot plugin\n$.plot.plugins.push({init:init,options:defaultOptions,name:'tooltip',version:'0.8.5'});})(jQuery);/* Pretty handling of time axes.\r\n\r\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\r\nLicensed under the MIT license.\r\n\r\nSet axis.mode to \"time\" to enable. See the section \"Time series data\" in\r\nAPI.txt for details.\r\n\r\n*/(function($){var options={xaxis:{timezone:null,// \"browser\" for local to the client or timezone for timezone-js\ntimeformat:null,// format string to use\ntwelveHourClock:false,// 12 or 24 time in time mode\nmonthNames:null// list of names of months\n}};// round to nearby lower multiple of base\nfunction floorInBase(n,base){return base*Math.floor(n/base);}// Returns a string with the date d formatted according to fmt.\n// A subset of the Open Group's strftime format is supported.\nfunction formatDate(d,fmt,monthNames,dayNames){if(typeof d.strftime==\"function\"){return d.strftime(fmt);}var leftPad=function(n,pad){n=\"\"+n;pad=\"\"+(pad==null?\"0\":pad);return n.length==1?pad+n:n;};var r=[];var escape=false;var hours=d.getHours();var isAM=hours<12;if(monthNames==null){monthNames=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];}if(dayNames==null){dayNames=[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"];}var hours12;if(hours>12){hours12=hours-12;}else if(hours==0){hours12=12;}else{hours12=hours;}for(var i=0;i<fmt.length;++i){var c=fmt.charAt(i);if(escape){switch(c){case'a':c=\"\"+dayNames[d.getDay()];break;case'b':c=\"\"+monthNames[d.getMonth()];break;case'd':c=leftPad(d.getDate());break;case'e':c=leftPad(d.getDate(),\" \");break;case'h':// For back-compat with 0.7; remove in 1.0\ncase'H':c=leftPad(hours);break;case'I':c=leftPad(hours12);break;case'l':c=leftPad(hours12,\" \");break;case'm':c=leftPad(d.getMonth()+1);break;case'M':c=leftPad(d.getMinutes());break;// quarters not in Open Group's strftime specification\ncase'q':c=\"\"+(Math.floor(d.getMonth()/3)+1);break;case'S':c=leftPad(d.getSeconds());break;case'y':c=leftPad(d.getFullYear()%100);break;case'Y':c=\"\"+d.getFullYear();break;case'p':c=isAM?\"\"+\"am\":\"\"+\"pm\";break;case'P':c=isAM?\"\"+\"AM\":\"\"+\"PM\";break;case'w':c=\"\"+d.getDay();break;}r.push(c);escape=false;}else{if(c==\"%\"){escape=true;}else{r.push(c);}}}return r.join(\"\");}// To have a consistent view of time-based data independent of which time\n// zone the client happens to be in we need a date-like object independent\n// of time zones.  This is done through a wrapper that only calls the UTC\n// versions of the accessor methods.\nfunction makeUtcWrapper(d){function addProxyMethod(sourceObj,sourceMethod,targetObj,targetMethod){sourceObj[sourceMethod]=function(){return targetObj[targetMethod].apply(targetObj,arguments);};};var utc={date:d};// support strftime, if found\nif(d.strftime!=undefined){addProxyMethod(utc,\"strftime\",d,\"strftime\");}addProxyMethod(utc,\"getTime\",d,\"getTime\");addProxyMethod(utc,\"setTime\",d,\"setTime\");var props=[\"Date\",\"Day\",\"FullYear\",\"Hours\",\"Milliseconds\",\"Minutes\",\"Month\",\"Seconds\"];for(var p=0;p<props.length;p++){addProxyMethod(utc,\"get\"+props[p],d,\"getUTC\"+props[p]);addProxyMethod(utc,\"set\"+props[p],d,\"setUTC\"+props[p]);}return utc;};// select time zone strategy.  This returns a date-like object tied to the\n// desired timezone\nfunction dateGenerator(ts,opts){if(opts.timezone==\"browser\"){return new Date(ts);}else if(!opts.timezone||opts.timezone==\"utc\"){return makeUtcWrapper(new Date(ts));}else if(typeof timezoneJS!=\"undefined\"&&typeof timezoneJS.Date!=\"undefined\"){var d=new timezoneJS.Date();// timezone-js is fickle, so be sure to set the time zone before\n// setting the time.\nd.setTimezone(opts.timezone);d.setTime(ts);return d;}else{return makeUtcWrapper(new Date(ts));}}// map of app. size of time units in milliseconds\nvar timeUnitSize={\"second\":1000,\"minute\":60*1000,\"hour\":60*60*1000,\"day\":24*60*60*1000,\"month\":30*24*60*60*1000,\"quarter\":3*30*24*60*60*1000,\"year\":365.2425*24*60*60*1000};// the allowed tick sizes, after 1 year we use\n// an integer algorithm\nvar baseSpec=[[1,\"second\"],[2,\"second\"],[5,\"second\"],[10,\"second\"],[30,\"second\"],[1,\"minute\"],[2,\"minute\"],[5,\"minute\"],[10,\"minute\"],[30,\"minute\"],[1,\"hour\"],[2,\"hour\"],[4,\"hour\"],[8,\"hour\"],[12,\"hour\"],[1,\"day\"],[2,\"day\"],[3,\"day\"],[0.25,\"month\"],[0.5,\"month\"],[1,\"month\"],[2,\"month\"]];// we don't know which variant(s) we'll need yet, but generating both is\n// cheap\nvar specMonths=baseSpec.concat([[3,\"month\"],[6,\"month\"],[1,\"year\"]]);var specQuarters=baseSpec.concat([[1,\"quarter\"],[2,\"quarter\"],[1,\"year\"]]);function init(plot){plot.hooks.processOptions.push(function(plot,options){$.each(plot.getAxes(),function(axisName,axis){var opts=axis.options;if(opts.mode==\"time\"){axis.tickGenerator=function(axis){var ticks=[];var d=dateGenerator(axis.min,opts);var minSize=0;// make quarter use a possibility if quarters are\n// mentioned in either of these options\nvar spec=opts.tickSize&&opts.tickSize[1]===\"quarter\"||opts.minTickSize&&opts.minTickSize[1]===\"quarter\"?specQuarters:specMonths;if(opts.minTickSize!=null){if(typeof opts.tickSize==\"number\"){minSize=opts.tickSize;}else{minSize=opts.minTickSize[0]*timeUnitSize[opts.minTickSize[1]];}}for(var i=0;i<spec.length-1;++i){if(axis.delta<(spec[i][0]*timeUnitSize[spec[i][1]]+spec[i+1][0]*timeUnitSize[spec[i+1][1]])/2&&spec[i][0]*timeUnitSize[spec[i][1]]>=minSize){break;}}var size=spec[i][0];var unit=spec[i][1];// special-case the possibility of several years\nif(unit==\"year\"){// if given a minTickSize in years, just use it,\n// ensuring that it's an integer\nif(opts.minTickSize!=null&&opts.minTickSize[1]==\"year\"){size=Math.floor(opts.minTickSize[0]);}else{var magn=Math.pow(10,Math.floor(Math.log(axis.delta/timeUnitSize.year)/Math.LN10));var norm=axis.delta/timeUnitSize.year/magn;if(norm<1.5){size=1;}else if(norm<3){size=2;}else if(norm<7.5){size=5;}else{size=10;}size*=magn;}// minimum size for years is 1\nif(size<1){size=1;}}axis.tickSize=opts.tickSize||[size,unit];var tickSize=axis.tickSize[0];unit=axis.tickSize[1];var step=tickSize*timeUnitSize[unit];if(unit==\"second\"){d.setSeconds(floorInBase(d.getSeconds(),tickSize));}else if(unit==\"minute\"){d.setMinutes(floorInBase(d.getMinutes(),tickSize));}else if(unit==\"hour\"){d.setHours(floorInBase(d.getHours(),tickSize));}else if(unit==\"month\"){d.setMonth(floorInBase(d.getMonth(),tickSize));}else if(unit==\"quarter\"){d.setMonth(3*floorInBase(d.getMonth()/3,tickSize));}else if(unit==\"year\"){d.setFullYear(floorInBase(d.getFullYear(),tickSize));}// reset smaller components\nd.setMilliseconds(0);if(step>=timeUnitSize.minute){d.setSeconds(0);}if(step>=timeUnitSize.hour){d.setMinutes(0);}if(step>=timeUnitSize.day){d.setHours(0);}if(step>=timeUnitSize.day*4){d.setDate(1);}if(step>=timeUnitSize.month*2){d.setMonth(floorInBase(d.getMonth(),3));}if(step>=timeUnitSize.quarter*2){d.setMonth(floorInBase(d.getMonth(),6));}if(step>=timeUnitSize.year){d.setMonth(0);}var carry=0;var v=Number.NaN;var prev;do{prev=v;v=d.getTime();ticks.push(v);if(unit==\"month\"||unit==\"quarter\"){if(tickSize<1){// a bit complicated - we'll divide the\n// month/quarter up but we need to take\n// care of fractions so we don't end up in\n// the middle of a day\nd.setDate(1);var start=d.getTime();d.setMonth(d.getMonth()+(unit==\"quarter\"?3:1));var end=d.getTime();d.setTime(v+carry*timeUnitSize.hour+(end-start)*tickSize);carry=d.getHours();d.setHours(0);}else{d.setMonth(d.getMonth()+tickSize*(unit==\"quarter\"?3:1));}}else if(unit==\"year\"){d.setFullYear(d.getFullYear()+tickSize);}else{d.setTime(v+step);}}while(v<axis.max&&v!=prev);return ticks;};axis.tickFormatter=function(v,axis){var d=dateGenerator(v,axis.options);// first check global format\nif(opts.timeformat!=null){return formatDate(d,opts.timeformat,opts.monthNames,opts.dayNames);}// possibly use quarters if quarters are mentioned in\n// any of these places\nvar useQuarters=axis.options.tickSize&&axis.options.tickSize[1]==\"quarter\"||axis.options.minTickSize&&axis.options.minTickSize[1]==\"quarter\";var t=axis.tickSize[0]*timeUnitSize[axis.tickSize[1]];var span=axis.max-axis.min;var suffix=opts.twelveHourClock?\" %p\":\"\";var hourCode=opts.twelveHourClock?\"%I\":\"%H\";var fmt;if(t<timeUnitSize.minute){fmt=hourCode+\":%M:%S\"+suffix;}else if(t<timeUnitSize.day){if(span<2*timeUnitSize.day){fmt=hourCode+\":%M\"+suffix;}else{fmt=\"%b %d \"+hourCode+\":%M\"+suffix;}}else if(t<timeUnitSize.month){fmt=\"%b %d\";}else if(useQuarters&&t<timeUnitSize.quarter||!useQuarters&&t<timeUnitSize.year){if(span<timeUnitSize.year){fmt=\"%b\";}else{fmt=\"%b %Y\";}}else if(useQuarters&&t<timeUnitSize.year){if(span<timeUnitSize.year){fmt=\"Q%q\";}else{fmt=\"Q%q %Y\";}}else{fmt=\"%Y\";}var rt=formatDate(d,fmt,opts.monthNames,opts.dayNames);return rt;};}});});}$.plot.plugins.push({init:init,options:options,name:'time',version:'1.0'});// Time-axis support used to be in Flot core, which exposed the\n// formatDate function on the plot object.  Various plugins depend\n// on the function, so we need to re-expose it here.\n$.plot.formatDate=formatDate;$.plot.dateGenerator=dateGenerator;})(jQuery);// ----------- flot.bundle.js END -------------\n// ----------- jqvmap.bundle.js START -------------\n/*!\r\n * JQVMap: jQuery Vector Map Library\r\n * @author JQVMap <me@peterschmalfeldt.com>\r\n * @version 1.5.0\r\n * @link http://jqvmap.com\r\n * @license https://github.com/manifestinteractive/jqvmap/blob/master/LICENSE\r\n * @builddate 2016/03/15\r\n */var VectorCanvas=function(width,height,params){this.mode=window.SVGAngle?'svg':'vml';this.params=params;if(this.mode==='svg'){this.createSvgNode=function(nodeName){return document.createElementNS(this.svgns,nodeName);};}else{try{if(!document.namespaces.rvml){document.namespaces.add('rvml','urn:schemas-microsoft-com:vml');}this.createVmlNode=function(tagName){return document.createElement('<rvml:'+tagName+' class=\"rvml\">');};}catch(e){this.createVmlNode=function(tagName){return document.createElement('<'+tagName+' xmlns=\"urn:schemas-microsoft.com:vml\" class=\"rvml\">');};}document.createStyleSheet().addRule('.rvml','behavior:url(#default#VML)');}if(this.mode==='svg'){this.canvas=this.createSvgNode('svg');}else{this.canvas=this.createVmlNode('group');this.canvas.style.position='absolute';}this.setSize(width,height);};VectorCanvas.prototype={svgns:'http://www.w3.org/2000/svg',mode:'svg',width:0,height:0,canvas:null};var ColorScale=function(colors,normalizeFunction,minValue,maxValue){if(colors){this.setColors(colors);}if(normalizeFunction){this.setNormalizeFunction(normalizeFunction);}if(minValue){this.setMin(minValue);}if(minValue){this.setMax(maxValue);}};ColorScale.prototype={colors:[]};var JQVMap=function(params){params=params||{};var map=this;var mapData=JQVMap.maps[params.map];var mapPins;if(!mapData){throw new Error('Invalid \"'+params.map+'\" map parameter. Please make sure you have loaded this map file in your HTML.');}this.selectedRegions=[];this.multiSelectRegion=params.multiSelectRegion;this.container=params.container;this.defaultWidth=mapData.width;this.defaultHeight=mapData.height;this.color=params.color;this.selectedColor=params.selectedColor;this.hoverColor=params.hoverColor;this.hoverColors=params.hoverColors;this.hoverOpacity=params.hoverOpacity;this.setBackgroundColor(params.backgroundColor);this.width=params.container.width();this.height=params.container.height();this.resize();jQuery(window).resize(function(){var newWidth=params.container.width();var newHeight=params.container.height();if(newWidth&&newHeight){map.width=newWidth;map.height=newHeight;map.resize();map.canvas.setSize(map.width,map.height);map.applyTransform();var resizeEvent=jQuery.Event('resize.jqvmap');jQuery(params.container).trigger(resizeEvent,[newWidth,newHeight]);if(mapPins){jQuery('.jqvmap-pin').remove();map.pinHandlers=false;map.placePins(mapPins.pins,mapPins.mode);}}});this.canvas=new VectorCanvas(this.width,this.height,params);params.container.append(this.canvas.canvas);this.makeDraggable();this.rootGroup=this.canvas.createGroup(true);this.index=JQVMap.mapIndex;this.label=jQuery('<div/>').addClass('jqvmap-label').appendTo(jQuery('body')).hide();if(params.enableZoom){jQuery('<div/>').addClass('jqvmap-zoomin').text('+').appendTo(params.container);jQuery('<div/>').addClass('jqvmap-zoomout').html('&#x2212;').appendTo(params.container);}map.countries=[];for(var key in mapData.paths){var path=this.canvas.createPath({path:mapData.paths[key].path});path.setFill(this.color);path.id=map.getCountryId(key);map.countries[key]=path;if(this.canvas.mode==='svg'){path.setAttribute('class','jqvmap-region');}else{jQuery(path).addClass('jqvmap-region');}jQuery(this.rootGroup).append(path);}jQuery(params.container).delegate(this.canvas.mode==='svg'?'path':'shape','mouseover mouseout',function(e){var containerPath=e.target,code=e.target.id.split('_').pop(),labelShowEvent=jQuery.Event('labelShow.jqvmap'),regionMouseOverEvent=jQuery.Event('regionMouseOver.jqvmap');code=code.toLowerCase();if(e.type==='mouseover'){jQuery(params.container).trigger(regionMouseOverEvent,[code,mapData.paths[code].name]);if(!regionMouseOverEvent.isDefaultPrevented()){map.highlight(code,containerPath);}if(params.showTooltip){map.label.text(mapData.paths[code].name);jQuery(params.container).trigger(labelShowEvent,[map.label,code]);if(!labelShowEvent.isDefaultPrevented()){map.label.show();map.labelWidth=map.label.width();map.labelHeight=map.label.height();}}}else{map.unhighlight(code,containerPath);map.label.hide();jQuery(params.container).trigger('regionMouseOut.jqvmap',[code,mapData.paths[code].name]);}});jQuery(params.container).delegate(this.canvas.mode==='svg'?'path':'shape','click',function(regionClickEvent){var targetPath=regionClickEvent.target;var code=regionClickEvent.target.id.split('_').pop();var mapClickEvent=jQuery.Event('regionClick.jqvmap');code=code.toLowerCase();jQuery(params.container).trigger(mapClickEvent,[code,mapData.paths[code].name]);if(!params.multiSelectRegion&&!mapClickEvent.isDefaultPrevented()){for(var keyPath in mapData.paths){map.countries[keyPath].currentFillColor=map.countries[keyPath].getOriginalFill();map.countries[keyPath].setFill(map.countries[keyPath].getOriginalFill());}}if(!mapClickEvent.isDefaultPrevented()){if(map.isSelected(code)){map.deselect(code,targetPath);}else{map.select(code,targetPath);}}});if(params.showTooltip){params.container.mousemove(function(e){if(map.label.is(':visible')){var left=e.pageX-15-map.labelWidth;var top=e.pageY-15-map.labelHeight;if(left<0){left=e.pageX+15;}if(top<0){top=e.pageY+15;}map.label.css({left:left,top:top});}});}this.setColors(params.colors);this.canvas.canvas.appendChild(this.rootGroup);this.applyTransform();this.colorScale=new ColorScale(params.scaleColors,params.normalizeFunction,params.valueMin,params.valueMax);if(params.values){this.values=params.values;this.setValues(params.values);}if(params.selectedRegions){if(params.selectedRegions instanceof Array){for(var k in params.selectedRegions){this.select(params.selectedRegions[k].toLowerCase());}}else{this.select(params.selectedRegions.toLowerCase());}}this.bindZoomButtons();if(params.pins){mapPins={pins:params.pins,mode:params.pinMode};this.pinHandlers=false;this.placePins(params.pins,params.pinMode);}if(params.showLabels){this.pinHandlers=false;var pins={};for(key in map.countries){if(typeof map.countries[key]!=='function'){if(!params.pins||!params.pins[key]){pins[key]=key.toUpperCase();}}}mapPins={pins:pins,mode:'content'};this.placePins(pins,'content');}JQVMap.mapIndex++;};JQVMap.prototype={transX:0,transY:0,scale:1,baseTransX:0,baseTransY:0,baseScale:1,width:0,height:0,countries:{},countriesColors:{},countriesData:{},zoomStep:1.4,zoomMaxStep:4,zoomCurStep:1};JQVMap.xlink='http://www.w3.org/1999/xlink';JQVMap.mapIndex=1;JQVMap.maps={};(function(){var apiParams={colors:1,values:1,backgroundColor:1,scaleColors:1,normalizeFunction:1,enableZoom:1,showTooltip:1,borderColor:1,borderWidth:1,borderOpacity:1,selectedRegions:1,multiSelectRegion:1};var apiEvents={onLabelShow:'labelShow',onLoad:'load',onRegionOver:'regionMouseOver',onRegionOut:'regionMouseOut',onRegionClick:'regionClick',onRegionSelect:'regionSelect',onRegionDeselect:'regionDeselect',onResize:'resize'};jQuery.fn.vectorMap=function(options){var defaultParams={map:'world_en',backgroundColor:'#a5bfdd',color:'#f4f3f0',hoverColor:'#c9dfaf',hoverColors:{},selectedColor:'#c9dfaf',scaleColors:['#b6d6ff','#005ace'],normalizeFunction:'linear',enableZoom:true,showTooltip:true,borderColor:'#818181',borderWidth:1,borderOpacity:0.25,selectedRegions:null,multiSelectRegion:false},map=this.data('mapObject');if(options==='addMap'){JQVMap.maps[arguments[1]]=arguments[2];}else if(options==='set'&&apiParams[arguments[1]]){map['set'+arguments[1].charAt(0).toUpperCase()+arguments[1].substr(1)].apply(map,Array.prototype.slice.call(arguments,2));}else if(typeof options==='string'&&typeof map[options]==='function'){return map[options].apply(map,Array.prototype.slice.call(arguments,1));}else{jQuery.extend(defaultParams,options);defaultParams.container=this;this.css({position:'relative',overflow:'hidden'});map=new JQVMap(defaultParams);this.data('mapObject',map);this.unbind('.jqvmap');for(var e in apiEvents){if(defaultParams[e]){this.bind(apiEvents[e]+'.jqvmap',defaultParams[e]);}}var loadEvent=jQuery.Event('load.jqvmap');jQuery(defaultParams.container).trigger(loadEvent,map);return map;}};})(jQuery);ColorScale.arrayToRgb=function(ar){var rgb='#';var d;for(var i=0;i<ar.length;i++){d=ar[i].toString(16);rgb+=d.length===1?'0'+d:d;}return rgb;};ColorScale.prototype.getColor=function(value){if(typeof this.normalize==='function'){value=this.normalize(value);}var lengthes=[];var fullLength=0;var l;for(var i=0;i<this.colors.length-1;i++){l=this.vectorLength(this.vectorSubtract(this.colors[i+1],this.colors[i]));lengthes.push(l);fullLength+=l;}var c=(this.maxValue-this.minValue)/fullLength;for(i=0;i<lengthes.length;i++){lengthes[i]*=c;}i=0;value-=this.minValue;while(value-lengthes[i]>=0){value-=lengthes[i];i++;}var color;if(i===this.colors.length-1){color=this.vectorToNum(this.colors[i]).toString(16);}else{color=this.vectorToNum(this.vectorAdd(this.colors[i],this.vectorMult(this.vectorSubtract(this.colors[i+1],this.colors[i]),value/lengthes[i]))).toString(16);}while(color.length<6){color='0'+color;}return'#'+color;};ColorScale.rgbToArray=function(rgb){rgb=rgb.substr(1);return[parseInt(rgb.substr(0,2),16),parseInt(rgb.substr(2,2),16),parseInt(rgb.substr(4,2),16)];};ColorScale.prototype.setColors=function(colors){for(var i=0;i<colors.length;i++){colors[i]=ColorScale.rgbToArray(colors[i]);}this.colors=colors;};ColorScale.prototype.setMax=function(max){this.clearMaxValue=max;if(typeof this.normalize==='function'){this.maxValue=this.normalize(max);}else{this.maxValue=max;}};ColorScale.prototype.setMin=function(min){this.clearMinValue=min;if(typeof this.normalize==='function'){this.minValue=this.normalize(min);}else{this.minValue=min;}};ColorScale.prototype.setNormalizeFunction=function(f){if(f==='polynomial'){this.normalize=function(value){return Math.pow(value,0.2);};}else if(f==='linear'){delete this.normalize;}else{this.normalize=f;}this.setMin(this.clearMinValue);this.setMax(this.clearMaxValue);};ColorScale.prototype.vectorAdd=function(vector1,vector2){var vector=[];for(var i=0;i<vector1.length;i++){vector[i]=vector1[i]+vector2[i];}return vector;};ColorScale.prototype.vectorLength=function(vector){var result=0;for(var i=0;i<vector.length;i++){result+=vector[i]*vector[i];}return Math.sqrt(result);};ColorScale.prototype.vectorMult=function(vector,num){var result=[];for(var i=0;i<vector.length;i++){result[i]=vector[i]*num;}return result;};ColorScale.prototype.vectorSubtract=function(vector1,vector2){var vector=[];for(var i=0;i<vector1.length;i++){vector[i]=vector1[i]-vector2[i];}return vector;};ColorScale.prototype.vectorToNum=function(vector){var num=0;for(var i=0;i<vector.length;i++){num+=Math.round(vector[i])*Math.pow(256,vector.length-i-1);}return num;};JQVMap.prototype.applyTransform=function(){var maxTransX,maxTransY,minTransX,minTransY;if(this.defaultWidth*this.scale<=this.width){maxTransX=(this.width-this.defaultWidth*this.scale)/(2*this.scale);minTransX=(this.width-this.defaultWidth*this.scale)/(2*this.scale);}else{maxTransX=0;minTransX=(this.width-this.defaultWidth*this.scale)/this.scale;}if(this.defaultHeight*this.scale<=this.height){maxTransY=(this.height-this.defaultHeight*this.scale)/(2*this.scale);minTransY=(this.height-this.defaultHeight*this.scale)/(2*this.scale);}else{maxTransY=0;minTransY=(this.height-this.defaultHeight*this.scale)/this.scale;}if(this.transY>maxTransY){this.transY=maxTransY;}else if(this.transY<minTransY){this.transY=minTransY;}if(this.transX>maxTransX){this.transX=maxTransX;}else if(this.transX<minTransX){this.transX=minTransX;}this.canvas.applyTransformParams(this.scale,this.transX,this.transY);};JQVMap.prototype.bindZoomButtons=function(){var map=this;this.container.find('.jqvmap-zoomin').click(function(){map.zoomIn();});this.container.find('.jqvmap-zoomout').click(function(){map.zoomOut();});};JQVMap.prototype.deselect=function(cc,path){cc=cc.toLowerCase();path=path||jQuery('#'+this.getCountryId(cc))[0];if(this.isSelected(cc)){this.selectedRegions.splice(this.selectIndex(cc),1);jQuery(this.container).trigger('regionDeselect.jqvmap',[cc]);path.currentFillColor=path.getOriginalFill();path.setFill(path.getOriginalFill());}else{for(var key in this.countries){this.selectedRegions.splice(this.selectedRegions.indexOf(key),1);this.countries[key].currentFillColor=this.color;this.countries[key].setFill(this.color);}}};JQVMap.prototype.getCountryId=function(cc){return'jqvmap'+this.index+'_'+cc;};JQVMap.prototype.getPin=function(cc){var pinObj=jQuery('#'+this.getPinId(cc));return pinObj.html();};JQVMap.prototype.getPinId=function(cc){return this.getCountryId(cc)+'_pin';};JQVMap.prototype.getPins=function(){var pins=this.container.find('.jqvmap-pin');var ret={};jQuery.each(pins,function(index,pinObj){pinObj=jQuery(pinObj);var cc=pinObj.attr('for').toLowerCase();var pinContent=pinObj.html();ret[cc]=pinContent;});return JSON.stringify(ret);};JQVMap.prototype.highlight=function(cc,path){path=path||jQuery('#'+this.getCountryId(cc))[0];if(this.hoverOpacity){path.setOpacity(this.hoverOpacity);}else if(this.hoverColors&&cc in this.hoverColors){path.currentFillColor=path.getFill()+'';path.setFill(this.hoverColors[cc]);}else if(this.hoverColor){path.currentFillColor=path.getFill()+'';path.setFill(this.hoverColor);}};JQVMap.prototype.isSelected=function(cc){return this.selectIndex(cc)>=0;};JQVMap.prototype.makeDraggable=function(){var mouseDown=false;var oldPageX,oldPageY;var self=this;self.isMoving=false;self.isMovingTimeout=false;var lastTouchCount;var touchCenterX;var touchCenterY;var touchStartDistance;var touchStartScale;var touchX;var touchY;this.container.mousemove(function(e){if(mouseDown){self.transX-=(oldPageX-e.pageX)/self.scale;self.transY-=(oldPageY-e.pageY)/self.scale;self.applyTransform();oldPageX=e.pageX;oldPageY=e.pageY;self.isMoving=true;if(self.isMovingTimeout){clearTimeout(self.isMovingTimeout);}self.container.trigger('drag');}return false;}).mousedown(function(e){mouseDown=true;oldPageX=e.pageX;oldPageY=e.pageY;return false;}).mouseup(function(){mouseDown=false;clearTimeout(self.isMovingTimeout);self.isMovingTimeout=setTimeout(function(){self.isMoving=false;},100);return false;}).mouseout(function(){if(mouseDown&&self.isMoving){clearTimeout(self.isMovingTimeout);self.isMovingTimeout=setTimeout(function(){mouseDown=false;self.isMoving=false;},100);return false;}});jQuery(this.container).bind('touchmove',function(e){var offset;var scale;var touches=e.originalEvent.touches;var transformXOld;var transformYOld;if(touches.length===1){if(lastTouchCount===1){if(touchX===touches[0].pageX&&touchY===touches[0].pageY){return;}transformXOld=self.transX;transformYOld=self.transY;self.transX-=(touchX-touches[0].pageX)/self.scale;self.transY-=(touchY-touches[0].pageY)/self.scale;self.applyTransform();if(transformXOld!==self.transX||transformYOld!==self.transY){e.preventDefault();}self.isMoving=true;if(self.isMovingTimeout){clearTimeout(self.isMovingTimeout);}}touchX=touches[0].pageX;touchY=touches[0].pageY;}else if(touches.length===2){if(lastTouchCount===2){scale=Math.sqrt(Math.pow(touches[0].pageX-touches[1].pageX,2)+Math.pow(touches[0].pageY-touches[1].pageY,2))/touchStartDistance;self.setScale(touchStartScale*scale,touchCenterX,touchCenterY);e.preventDefault();}else{offset=jQuery(self.container).offset();if(touches[0].pageX>touches[1].pageX){touchCenterX=touches[1].pageX+(touches[0].pageX-touches[1].pageX)/2;}else{touchCenterX=touches[0].pageX+(touches[1].pageX-touches[0].pageX)/2;}if(touches[0].pageY>touches[1].pageY){touchCenterY=touches[1].pageY+(touches[0].pageY-touches[1].pageY)/2;}else{touchCenterY=touches[0].pageY+(touches[1].pageY-touches[0].pageY)/2;}touchCenterX-=offset.left;touchCenterY-=offset.top;touchStartScale=self.scale;touchStartDistance=Math.sqrt(Math.pow(touches[0].pageX-touches[1].pageX,2)+Math.pow(touches[0].pageY-touches[1].pageY,2));}}lastTouchCount=touches.length;});jQuery(this.container).bind('touchstart',function(){lastTouchCount=0;});jQuery(this.container).bind('touchend',function(){lastTouchCount=0;});};JQVMap.prototype.placePins=function(pins,pinMode){var map=this;if(!pinMode||pinMode!=='content'&&pinMode!=='id'){pinMode='content';}if(pinMode==='content'){//treat pin as content\njQuery.each(pins,function(index,pin){if(jQuery('#'+map.getCountryId(index)).length===0){return;}var pinIndex=map.getPinId(index);var $pin=jQuery('#'+pinIndex);if($pin.length>0){$pin.remove();}map.container.append('<div id=\"'+pinIndex+'\" for=\"'+index+'\" class=\"jqvmap-pin\" style=\"position:absolute\">'+pin+'</div>');});}else{//treat pin as id of an html content\njQuery.each(pins,function(index,pin){if(jQuery('#'+map.getCountryId(index)).length===0){return;}var pinIndex=map.getPinId(index);var $pin=jQuery('#'+pinIndex);if($pin.length>0){$pin.remove();}map.container.append('<div id=\"'+pinIndex+'\" for=\"'+index+'\" class=\"jqvmap-pin\" style=\"position:absolute\"></div>');$pin.append(jQuery('#'+pin));});}this.positionPins();if(!this.pinHandlers){this.pinHandlers=true;var positionFix=function(){map.positionPins();};this.container.bind('zoomIn',positionFix).bind('zoomOut',positionFix).bind('drag',positionFix);}};JQVMap.prototype.positionPins=function(){var map=this;var pins=this.container.find('.jqvmap-pin');jQuery.each(pins,function(index,pinObj){pinObj=jQuery(pinObj);var countryId=map.getCountryId(pinObj.attr('for').toLowerCase());var countryObj=jQuery('#'+countryId);var bbox=document.getElementById(countryId).getBBox();var position=countryObj.position();var scale=map.scale;var left=position.left+bbox.width/2*scale-pinObj.width()/2,top=position.top+bbox.height/2*scale-pinObj.height()/2;pinObj.css('left',left).css('top',top);});};JQVMap.prototype.removePin=function(cc){cc=cc.toLowerCase();jQuery('#'+this.getPinId(cc)).remove();};JQVMap.prototype.removePins=function(){this.container.find('.jqvmap-pin').remove();};JQVMap.prototype.reset=function(){for(var key in this.countries){this.countries[key].setFill(this.color);}this.scale=this.baseScale;this.transX=this.baseTransX;this.transY=this.baseTransY;this.applyTransform();};JQVMap.prototype.resize=function(){var curBaseScale=this.baseScale;if(this.width/this.height>this.defaultWidth/this.defaultHeight){this.baseScale=this.height/this.defaultHeight;this.baseTransX=Math.abs(this.width-this.defaultWidth*this.baseScale)/(2*this.baseScale);}else{this.baseScale=this.width/this.defaultWidth;this.baseTransY=Math.abs(this.height-this.defaultHeight*this.baseScale)/(2*this.baseScale);}this.scale*=this.baseScale/curBaseScale;this.transX*=this.baseScale/curBaseScale;this.transY*=this.baseScale/curBaseScale;};JQVMap.prototype.select=function(cc,path){cc=cc.toLowerCase();path=path||jQuery('#'+this.getCountryId(cc))[0];if(!this.isSelected(cc)){if(this.multiSelectRegion){this.selectedRegions.push(cc);}else{this.selectedRegions=[cc];}jQuery(this.container).trigger('regionSelect.jqvmap',[cc]);if(this.selectedColor&&path){path.currentFillColor=this.selectedColor;path.setFill(this.selectedColor);}}};JQVMap.prototype.selectIndex=function(cc){cc=cc.toLowerCase();for(var i=0;i<this.selectedRegions.length;i++){if(cc===this.selectedRegions[i]){return i;}}return-1;};JQVMap.prototype.setBackgroundColor=function(backgroundColor){this.container.css('background-color',backgroundColor);};JQVMap.prototype.setColors=function(key,color){if(typeof key==='string'){this.countries[key].setFill(color);this.countries[key].setAttribute('original',color);}else{var colors=key;for(var code in colors){if(this.countries[code]){this.countries[code].setFill(colors[code]);this.countries[code].setAttribute('original',colors[code]);}}}};JQVMap.prototype.setNormalizeFunction=function(f){this.colorScale.setNormalizeFunction(f);if(this.values){this.setValues(this.values);}};JQVMap.prototype.setScale=function(scale){this.scale=scale;this.applyTransform();};JQVMap.prototype.setScaleColors=function(colors){this.colorScale.setColors(colors);if(this.values){this.setValues(this.values);}};JQVMap.prototype.setValues=function(values){var max=0,min=Number.MAX_VALUE,val;for(var cc in values){cc=cc.toLowerCase();val=parseFloat(values[cc]);if(isNaN(val)){continue;}if(val>max){max=values[cc];}if(val<min){min=val;}}if(min===max){max++;}this.colorScale.setMin(min);this.colorScale.setMax(max);var colors={};for(cc in values){cc=cc.toLowerCase();val=parseFloat(values[cc]);colors[cc]=isNaN(val)?this.color:this.colorScale.getColor(val);}this.setColors(colors);this.values=values;};JQVMap.prototype.unhighlight=function(cc,path){cc=cc.toLowerCase();path=path||jQuery('#'+this.getCountryId(cc))[0];path.setOpacity(1);if(path.currentFillColor){path.setFill(path.currentFillColor);}};JQVMap.prototype.zoomIn=function(){var map=this;var sliderDelta=(jQuery('#zoom').innerHeight()-6*2-15*2-3*2-7-6)/(this.zoomMaxStep-this.zoomCurStep);if(map.zoomCurStep<map.zoomMaxStep){map.transX-=(map.width/map.scale-map.width/(map.scale*map.zoomStep))/2;map.transY-=(map.height/map.scale-map.height/(map.scale*map.zoomStep))/2;map.setScale(map.scale*map.zoomStep);map.zoomCurStep++;var $slider=jQuery('#zoomSlider');$slider.css('top',parseInt($slider.css('top'),10)-sliderDelta);map.container.trigger('zoomIn');}};JQVMap.prototype.zoomOut=function(){var map=this;var sliderDelta=(jQuery('#zoom').innerHeight()-6*2-15*2-3*2-7-6)/(this.zoomMaxStep-this.zoomCurStep);if(map.zoomCurStep>1){map.transX+=(map.width/(map.scale/map.zoomStep)-map.width/map.scale)/2;map.transY+=(map.height/(map.scale/map.zoomStep)-map.height/map.scale)/2;map.setScale(map.scale/map.zoomStep);map.zoomCurStep--;var $slider=jQuery('#zoomSlider');$slider.css('top',parseInt($slider.css('top'),10)+sliderDelta);map.container.trigger('zoomOut');}};VectorCanvas.prototype.applyTransformParams=function(scale,transX,transY){if(this.mode==='svg'){this.rootGroup.setAttribute('transform','scale('+scale+') translate('+transX+', '+transY+')');}else{this.rootGroup.coordorigin=this.width-transX+','+(this.height-transY);this.rootGroup.coordsize=this.width/scale+','+this.height/scale;}};VectorCanvas.prototype.createGroup=function(isRoot){var node;if(this.mode==='svg'){node=this.createSvgNode('g');}else{node=this.createVmlNode('group');node.style.width=this.width+'px';node.style.height=this.height+'px';node.style.left='0px';node.style.top='0px';node.coordorigin='0 0';node.coordsize=this.width+' '+this.height;}if(isRoot){this.rootGroup=node;}return node;};VectorCanvas.prototype.createPath=function(config){var node;if(this.mode==='svg'){node=this.createSvgNode('path');node.setAttribute('d',config.path);if(this.params.borderColor!==null){node.setAttribute('stroke',this.params.borderColor);}if(this.params.borderWidth>0){node.setAttribute('stroke-width',this.params.borderWidth);node.setAttribute('stroke-linecap','round');node.setAttribute('stroke-linejoin','round');}if(this.params.borderOpacity>0){node.setAttribute('stroke-opacity',this.params.borderOpacity);}node.setFill=function(color){this.setAttribute('fill',color);if(this.getAttribute('original')===null){this.setAttribute('original',color);}};node.getFill=function(){return this.getAttribute('fill');};node.getOriginalFill=function(){return this.getAttribute('original');};node.setOpacity=function(opacity){this.setAttribute('fill-opacity',opacity);};}else{node=this.createVmlNode('shape');node.coordorigin='0 0';node.coordsize=this.width+' '+this.height;node.style.width=this.width+'px';node.style.height=this.height+'px';node.fillcolor=JQVMap.defaultFillColor;node.stroked=false;node.path=VectorCanvas.pathSvgToVml(config.path);var scale=this.createVmlNode('skew');scale.on=true;scale.matrix='0.01,0,0,0.01,0,0';scale.offset='0,0';node.appendChild(scale);var fill=this.createVmlNode('fill');node.appendChild(fill);node.setFill=function(color){this.getElementsByTagName('fill')[0].color=color;if(this.getAttribute('original')===null){this.setAttribute('original',color);}};node.getFill=function(){return this.getElementsByTagName('fill')[0].color;};node.getOriginalFill=function(){return this.getAttribute('original');};node.setOpacity=function(opacity){this.getElementsByTagName('fill')[0].opacity=parseInt(opacity*100,10)+'%';};}return node;};VectorCanvas.prototype.pathSvgToVml=function(path){var result='';var cx=0,cy=0,ctrlx,ctrly;return path.replace(/([MmLlHhVvCcSs])((?:-?(?:\\d+)?(?:\\.\\d+)?,?\\s?)+)/g,function(segment,letter,coords){coords=coords.replace(/(\\d)-/g,'$1,-').replace(/\\s+/g,',').split(',');if(!coords[0]){coords.shift();}for(var i=0,l=coords.length;i<l;i++){coords[i]=Math.round(100*coords[i]);}switch(letter){case'm':cx+=coords[0];cy+=coords[1];result='t'+coords.join(',');break;case'M':cx=coords[0];cy=coords[1];result='m'+coords.join(',');break;case'l':cx+=coords[0];cy+=coords[1];result='r'+coords.join(',');break;case'L':cx=coords[0];cy=coords[1];result='l'+coords.join(',');break;case'h':cx+=coords[0];result='r'+coords[0]+',0';break;case'H':cx=coords[0];result='l'+cx+','+cy;break;case'v':cy+=coords[0];result='r0,'+coords[0];break;case'V':cy=coords[0];result='l'+cx+','+cy;break;case'c':ctrlx=cx+coords[coords.length-4];ctrly=cy+coords[coords.length-3];cx+=coords[coords.length-2];cy+=coords[coords.length-1];result='v'+coords.join(',');break;case'C':ctrlx=coords[coords.length-4];ctrly=coords[coords.length-3];cx=coords[coords.length-2];cy=coords[coords.length-1];result='c'+coords.join(',');break;case's':coords.unshift(cy-ctrly);coords.unshift(cx-ctrlx);ctrlx=cx+coords[coords.length-4];ctrly=cy+coords[coords.length-3];cx+=coords[coords.length-2];cy+=coords[coords.length-1];result='v'+coords.join(',');break;case'S':coords.unshift(cy+cy-ctrly);coords.unshift(cx+cx-ctrlx);ctrlx=coords[coords.length-4];ctrly=coords[coords.length-3];cx=coords[coords.length-2];cy=coords[coords.length-1];result='c'+coords.join(',');break;default:break;}return result;}).replace(/z/g,'');};VectorCanvas.prototype.setSize=function(width,height){if(this.mode==='svg'){this.canvas.setAttribute('width',width);this.canvas.setAttribute('height',height);}else{this.canvas.style.width=width+'px';this.canvas.style.height=height+'px';this.canvas.coordsize=width+' '+height;this.canvas.coordorigin='0 0';if(this.rootGroup){var paths=this.rootGroup.getElementsByTagName('shape');for(var i=0,l=paths.length;i<l;i++){paths[i].coordsize=width+' '+height;paths[i].style.width=width+'px';paths[i].style.height=height+'px';}this.rootGroup.coordsize=width+' '+height;this.rootGroup.style.width=width+'px';this.rootGroup.style.height=height+'px';}}this.width=width;this.height=height;};/** Add World Map Data Points */jQuery.fn.vectorMap('addMap','world_en',{\"width\":950,\"height\":550,\"paths\":{\"id\":{\"path\":\"M781.68,324.4l-2.31,8.68l-12.53,4.23l-3.75-4.4l-1.82,0.5l3.4,13.12l5.09,0.57l6.79,2.57v2.57l3.11-0.57l4.53-6.27v-5.13l2.55-5.13l2.83,0.57l-3.4-7.13l-0.52-4.59L781.68,324.4L781.68,324.4M722.48,317.57l-0.28,2.28l6.79,11.41h1.98l14.15,23.67l5.66,0.57l2.83-8.27l-4.53-2.85l-0.85-4.56L722.48,317.57L722.48,317.57M789.53,349.11l2.26,2.77l-1.47,4.16v0.79h3.34l1.18-10.4l1.08,0.3l1.96,9.5l1.87,0.5l1.77-4.06l-1.77-6.14l-1.47-2.67l4.62-3.37l-1.08-1.49l-4.42,2.87h-1.18l-2.16-3.17l0.69-1.39l3.64-1.78l5.5,1.68l1.67-0.1l4.13-3.86l-1.67-1.68l-3.83,2.97h-2.46l-3.73-1.78l-2.65,0.1l-2.95,4.75l-1.87,8.22L789.53,349.11L789.53,349.11M814.19,330.5l-1.87,4.55l2.95,3.86h0.98l1.28-2.57l0.69-0.89l-1.28-1.39l-1.87-0.69L814.19,330.5L814.19,330.5M819.99,345.45l-4.03,0.89l-1.18,1.29l0.98,1.68l2.65-0.99l1.67-0.99l2.46,1.98l1.08-0.89l-1.96-2.38L819.99,345.45L819.99,345.45M753.17,358.32l-2.75,1.88l0.59,1.58l8.75,1.98l4.42,0.79l1.87,1.98l5.01,0.4l2.36,1.98l2.16-0.5l1.97-1.78l-3.64-1.68l-3.14-2.67l-8.16-1.98L753.17,358.32L753.17,358.32M781.77,366.93l-2.16,1.19l1.28,1.39l3.14-1.19L781.77,366.93L781.77,366.93M785.5,366.04l0.39,1.88l2.26,0.59l0.88-1.09l-0.98-1.49L785.5,366.04L785.5,366.04M790.91,370.99l-2.75,0.4l2.46,2.08h1.96L790.91,370.99L790.91,370.99M791.69,367.72l-0.59,1.19l4.42,0.69l3.44-1.98l-1.96-0.59l-3.14,0.89l-1.18-0.99L791.69,367.72L791.69,367.72M831.93,339.34l-4.17,0.47l-2.68,1.96l1.11,2.24l4.54,0.84v0.84l-2.87,2.33l1.39,4.85l1.39,0.09l1.2-4.76h2.22l0.93,4.66l10.83,8.96l0.28,7l3.7,4.01l1.67-0.09l0.37-24.72l-6.29-4.38l-5.93,4.01l-2.13,1.31l-3.52-2.24l-0.09-7.09L831.93,339.34L831.93,339.34z\",\"name\":\"Indonesia\"},\"pg\":{\"path\":\"M852.76,348.29l-0.37,24.44l3.52-0.19l4.63-5.41l3.89,0.19l2.5,2.24l0.83,6.9l7.96,4.2l2.04-0.75v-2.52l-6.39-5.32l-3.15-7.28l2.5-1.21l-1.85-4.01l-3.7-0.09l-0.93-4.29l-9.81-6.62L852.76,348.29L852.76,348.29M880.48,349l-0.88,1.25l4.81,4.26l0.66,2.5l1.31-0.15l0.15-2.57l-1.46-1.32L880.48,349L880.48,349M882.89,355.03l-0.95,0.22l-0.58,2.57l-1.82,1.18l-5.47,0.96l0.22,2.06l5.76-0.29l3.65-2.28l-0.22-3.97L882.89,355.03L882.89,355.03M889.38,359.51l1.24,3.45l2.19,2.13l0.66-0.59l-0.22-2.28l-2.48-3.01L889.38,359.51L889.38,359.51z\",\"name\":\"Papua New Guinea\"},\"mx\":{\"path\":\"M137.49,225.43l4.83,15.21l-2.25,1.26l0.25,3.02l4.25,3.27v6.05l5.25,5.04l-2.25-14.86l-3-9.83l0.75-6.8l2.5,0.25l1,2.27l-1,5.79l13,25.44v9.07l10.5,12.34l11.5,5.29l4.75-2.77l6.75,5.54l4-4.03l-1.75-4.54l5.75-1.76l1.75,1.01l1.75-1.76h2.75l5-8.82l-2.5-2.27l-9.75,2.27l-2.25,6.55l-5.75,1.01l-6.75-2.77l-3-9.57l2.27-12.07l-4.64-2.89l-2.21-11.59l-1.85-0.79l-3.38,3.43l-3.88-2.07l-1.52-7.73l-15.37-1.61l-7.94-5.97L137.49,225.43L137.49,225.43z\",\"name\":\"Mexico\"},\"ee\":{\"path\":\"M517.77,143.66l-5.6-0.2l-3.55,2.17l-0.05,1.61l2.3,2.17l7.15,1.21L517.77,143.66L517.77,143.66M506.76,147.64l-1.55-0.05l-0.9,0.91l0.65,0.96l1.55,0.1l0.8-1.16L506.76,147.64L506.76,147.64z\",\"name\":\"Estonia\"},\"dz\":{\"path\":\"M473.88,227.49l-4.08-1.37l-16.98,3.19l-3.7,2.81l2.26,11.67l-6.75,0.27l-4.06,6.53l-9.67,2.32l0.03,4.75l31.85,24.35l5.43,0.46l18.11-14.15l-1.81-2.28l-3.4-0.46l-2.04-3.42v-14.15l-1.36-1.37l0.23-3.65l-3.62-3.65l-0.45-3.88l1.58-1.14l-0.68-4.11L473.88,227.49L473.88,227.49z\",\"name\":\"Algeria\"},\"ma\":{\"path\":\"M448.29,232.28h-11.55l-2.26,5.02l-5.21,2.51l-4.3,11.64l-8.38,5.02l-11.77,19.39l11.55-0.23l0.45-5.7h2.94v-7.76h10.19l0.23-10.04l9.74-2.28l4.08-6.62l6.34-0.23L448.29,232.28L448.29,232.28z\",\"name\":\"Morocco\"},\"mr\":{\"path\":\"M404.9,276.66l2.18,2.85l-0.45,12.32l3.17-2.28l2.26-0.46l3.17,1.14l3.62,5.02l3.4-2.28l16.53-0.23l-4.08-27.61l4.38-0.02l-8.16-6.25l0.01,4.06l-10.33,0.01l-0.05,7.75l-2.97-0.01l-0.38,5.72L404.9,276.66L404.9,276.66z\",\"name\":\"Mauritania\"},\"sn\":{\"path\":\"M412.03,289.84L410.12,290.31L406.18,293.18L405.28,294.78L405,296.37L406.43,297.40L411.28,297.34L414.40,296.5L414.75,298.03L414.46,300.06L414.53,300.09L406.78,300.21L408.03,303.21L408.71,301.37L418,302.15L418.06,302.21L419.03,302.25L422,302.37L422.12,300.62L418.53,296.31L414.53,290.87L412.03,289.84z\",\"name\":\"Senegal\"},\"gm\":{\"path\":\"M406.89,298.34l-0.13,1.11l6.92-0.1l0.35-1.03l-0.15-1.04l-1.99,0.81L406.89,298.34L406.89,298.34z\",\"name\":\"Gambia\"},\"gw\":{\"path\":\"M408.6,304.53l1.4,2.77l3.93-3.38l0.04-1.04l-4.63-0.67L408.6,304.53L408.6,304.53z\",\"name\":\"Guinea-Bissau\"},\"gn\":{\"path\":\"M410.42,307.94l3.04,4.68l3.96-3.44l4.06-0.18l3.38,4.49l2.87,1.89l1.08-2.1l0.96-0.54l-0.07-4.62l-1.91-5.48l-5.86,0.65l-7.25-0.58l-0.04,1.86L410.42,307.94L410.42,307.94z\",\"name\":\"Guinea\"},\"sl\":{\"path\":\"M413.93,313.13l5.65,5.46l4.03-4.89l-2.52-3.95l-3.47,0.35L413.93,313.13L413.93,313.13z\",\"name\":\"Sierra Leone\"},\"lr\":{\"path\":\"M420.17,319.19l10.98,7.34l-0.26-5.56l-3.32-3.91l-3.24-2.87L420.17,319.19L420.17,319.19z\",\"name\":\"Liberia\"},\"ci\":{\"path\":\"M432.07,326.75l4.28-3.03l5.32-0.93l5.43,1.17l-2.77-4.19l-0.81-2.56l0.81-7.57l-4.85,0.23l-2.2-2.1l-4.62,0.12l-2.2,0.35l0.23,5.12l-1.16,0.47l-1.39,2.56l3.58,4.19L432.07,326.75L432.07,326.75z\",\"name\":\"Cote d'Ivoire\"},\"ml\":{\"path\":\"M419.46,295.84l3.08-2.11l17.12-0.1l-3.96-27.54l4.52-0.13l21.87,16.69l2.94,0.42l-1.11,9.28l-13.75,1.25l-10.61,7.92l-1.93,5.42l-7.37,0.31l-1.88-5.41l-5.65,0.4l0.22-1.77L419.46,295.84L419.46,295.84z\",\"name\":\"Mali\"},\"bf\":{\"path\":\"M450.59,294.28l3.64-0.29l5.97,8.44l-5.54,4.18l-4.01-1.03l-5.39,0.07l-0.87,3.16l-4.52,0.22l-1.24-1.69l1.6-5.14L450.59,294.28L450.59,294.28z\",\"name\":\"Burkina Faso\"},\"ne\":{\"path\":\"M460.89,302l2.55-0.06l2.3-3.45l3.86-0.69l4.11,2.51l8.77,0.25l6.78-2.76l2.55-2.19l0.19-2.88l4.73-4.77l1.25-10.53l-3.11-6.52l-7.96-1.94l-18.42,14.36l-2.61-0.25l-1.12,9.97l-9.4,0.94L460.89,302L460.89,302z\",\"name\":\"Niger\"},\"gh\":{\"path\":\"M444.34,317.05l1.12,2.63l2.92,4.58l1.62-0.06l4.42-2.51l-0.31-14.29l-3.42-1l-4.79,0.13L444.34,317.05L444.34,317.05z\",\"name\":\"Ghana\"},\"tg\":{\"path\":\"M455.22,321.25l2.68-1.57l-0.06-10.35l-1.74-2.82l-1.12,0.94L455.22,321.25L455.22,321.25z\",\"name\":\"Togo\"},\"bj\":{\"path\":\"M458.71,319.49h2.12l0.12-6.02l2.68-3.89l-0.12-6.77l-2.43-0.06l-4.17,3.26l1.74,3.32L458.71,319.49L458.71,319.49z\",\"name\":\"Benin\"},\"ng\":{\"path\":\"M461.57,319.37l3.92,0.19l4.73,5.27l2.3,0.63l1.8-0.88l2.74-0.38l0.93-3.82l3.73-2.45l4.04-0.19l7.4-13.61l-0.12-3.07l-3.42-2.63l-6.84,3.01l-9.15-0.13l-4.36-2.76l-3.11,0.69l-1.62,2.82l-0.12,7.96l-2.61,3.7L461.57,319.37L461.57,319.37z\",\"name\":\"Nigeria\"},\"tn\":{\"path\":\"M474.91,227.33l5.53-2.23l1.82,1.18l0.07,1.44l-0.85,1.11l0.13,1.97l0.85,0.46v3.54l-0.98,1.64l0.13,1.05l3.71,1.31l-2.99,4.65l-1.17-0.07l-0.2,3.74l-1.3,0.2l-1.11-0.98l0.26-3.8l-3.64-3.54l-0.46-3.08l1.76-1.38L474.91,227.33L474.91,227.33z\",\"name\":\"Tunisia\"},\"ly\":{\"path\":\"M480.05,248.03l1.56-0.26l0.46-3.6h0.78l3.19-5.24l7.87,2.29l2.15,3.34l7.74,3.54l4.03-1.7l-0.39-1.7l-1.76-1.7l0.2-1.18l2.86-2.42h5.66l2.15,2.88l4.55,0.66l0.59,36.89l-3.38-0.13l-20.42-10.62l-2.21,1.25l-8.39-2.1l-2.28-3.01l-3.32-0.46l-1.69-3.01L480.05,248.03L480.05,248.03z\",\"name\":\"Libya\"},\"eg\":{\"path\":\"M521.93,243.06l2.67,0.07l5.2,1.44l2.47,0.07l3.06-2.56h1.43l2.6,1.44h3.29l0.59-0.04l2.08,5.98l0.59,1.93l0.55,2.89l-0.98,0.72l-1.69-0.85l-1.95-6.36l-1.76-0.13l-0.13,2.16l1.17,3.74l9.37,11.6l0.2,4.98l-2.73,3.15L522.32,273L521.93,243.06L521.93,243.06z\",\"name\":\"Egypt\"},\"td\":{\"path\":\"M492.79,296l0.13-2.95l4.74-4.61l1.27-11.32l-3.16-6.04l2.21-1.13l21.4,11.15l-0.13,10.94l-3.77,3.21v5.64l2.47,4.78h-4.36l-7.22,7.14l-0.19,2.16l-5.33-0.07l-0.07,0.98l-3.04-0.4l-2.08-3.93l-1.56-0.77l0.2-1.2l1.96-1.5v-7.02l-2.71-0.42l-3.27-2.43L492.79,296L492.79,296L492.79,296z\",\"name\":\"Chad\"},\"sd\":{\"path\":\"M520.15,292.43l0.18-11.83l2.46,0.07l-0.28-6.57l25.8,0.23l3.69-3.72l7.96,12.73l-4.36,5.14v7.85l-6.86,14.75l-2.36,1.04l0.75,4.11h2.94l3.99,5.79l-3.2,0.41l-0.82,1.49l-0.08,2.15l-9.6-0.17l-0.98-1.49l-6.71-0.38l-12.32-12.68l1.23-0.74l0.33-2.98l-2.95-1.74l-2.69-5.31l0.15-4.94L520.15,292.43L520.15,292.43z\",\"name\":\"Sudan\"},\"cm\":{\"path\":\"M477.82,324.28l3.22,2.96l-0.23,4.58l17.66-0.41l1.44-1.62l-5.06-5.45l-0.75-1.97l3.22-6.03l-2.19-4l-1.84-0.99v-2.03l2.13-1.39l0.12-6.32l-1.69-0.19l-0.03,3.32l-7.42,13.85l-4.54,0.23l-3.11,2.14L477.82,324.28L477.82,324.28z\",\"name\":\"Cameroon\"},\"er\":{\"path\":\"M556.71,294.7l-0.25-5.89l3.96-4.62l1.07,0.82l1.95,6.52l9.36,6.97l-1.7,2.09l-6.85-5.89H556.71L556.71,294.7z\",\"name\":\"Eritrea\"},\"dj\":{\"path\":\"M571.48,301.54l-0.57,3.36l3.96-0.06l0.06-4.94l-1.45-0.89L571.48,301.54L571.48,301.54z\",\"name\":\"Djibouti\"},\"et\":{\"path\":\"M549.49,311.76l7.28-16.2l7.23,0.04l6.41,5.57l-0.45,4.59h4.97l0.51,2.76l8.04,4.81l4.96,0.25l-9.43,10.13l-12.95,3.99h-3.21l-5.72-4.88l-2.26-0.95l-4.38-6.45l-2.89,0.04l-0.34-2.96L549.49,311.76L549.49,311.76z\",\"name\":\"Ethiopia\"},\"so\":{\"path\":\"M575.74,305.04l4.08,2.78l1.21-0.06l10.13-3.48l1.15,3.71l-0.81,3.13l-2.19,1.74l-5.47-0.35l-7.83-4.81L575.74,305.04L575.74,305.04M591.97,304.05l4.37-1.68l1.55,0.93l-0.17,3.88l-4.03,11.48l-21.81,23.36l-2.53-1.74l-0.17-9.86l3.28-3.77l6.96-2.15l10.21-10.78l2.67-2.38l0.75-3.48L591.97,304.05L591.97,304.05z\",\"name\":\"Somalia\"},\"ye\":{\"path\":\"M599.62,299.65l2.13,2.38l2.88-1.74l1.04-0.35l-1.32-1.28l-2.53,0.75L599.62,299.65L599.62,299.65M571.99,289.23l1.44,4.28v4.18l3.46,3.14l24.38-9.93l0.23-2.73l-3.91-7.02l-9.81,3.13l-5.63,5.54l-6.53-3.86L571.99,289.23L571.99,289.23z\",\"name\":\"Yemen\"},\"cf\":{\"path\":\"M495.66,324.05l4.66,5.04l1.84-2.38l2.93,0.12l0.63-2.32l2.88-1.8l5.98,4.12l3.45-3.42l13.39,0.59L519,311.18l1.67-1.04l0.23-2.26l-2.82-1.33h-4.14l-6.67,6.61l-0.23,2.72l-5.29-0.17l-0.17,1.16l-3.45-0.35l-3.11,5.91L495.66,324.05L495.66,324.05z\",\"name\":\"Central African Republic\"},\"st\":{\"path\":\"M470.74,337.15l1.15-0.58l0.86,0.7l-0.86,1.33l-1.04-0.41L470.74,337.15L470.74,337.15M473.05,333.5l1.73-0.29l0.58,1.1l-0.86,0.93l-0.86-0.12L473.05,333.5L473.05,333.5z\",\"name\":\"Sao Tome and Principe\"},\"gq\":{\"path\":\"M476.84,327.41l-0.46,1.97l1.38,0.75l1.32-0.99l-0.46-2.03L476.84,327.41L476.84,327.41M480.99,332.69l-0.06,1.39l4.54,0.23l-0.06-1.57L480.99,332.69L480.99,332.69z\",\"name\":\"Equatorial Guinea\"},\"ga\":{\"path\":\"M486.39,332.63l-0.12,2.49l-5.64-0.12l-3.45,6.67l8.11,8.87l2.01-1.68l-0.06-1.74l-1.38-0.64v-1.22l3.11-1.97l2.76,2.09l3.05,0.06l-0.06-10.49l-4.83-0.23l-0.06-2.2L486.39,332.63L486.39,332.63z\",\"name\":\"Gabon\"},\"cg\":{\"path\":\"M491,332.52l-0.06,1.45l4.78,0.12l0.17,12.41l-4.37-0.12l-2.53-1.97l-1.96,1.1l-0.09,0.55l1.01,0.49l0.29,2.55l-2.7,2.32l0.58,1.22l2.99-2.32h1.44l0.46,1.39l1.9,0.81l6.1-5.16l-0.12-3.77l1.27-3.07l3.91-2.9l1.05-9.81l-2.78,0.01l-3.22,4.41L491,332.52L491,332.52z\",\"name\":\"Congo\"},\"ao\":{\"path\":\"M486.55,353.23l1.74,2.26l2.25-2.13l-0.66-2.21l-0.56-0.04L486.55,353.23L486.55,353.23M488.62,356.71l3.41,12.73l-0.08,4.02l-4.99,5.36l-0.75,8.71l19.2,0.17l6.24,2.26l5.15-0.67l-3-3.76l0.01-10.74l5.9-0.25v-4.19l-4.79-0.2l-0.96-9.92l-2.02,0.03l-1.09-0.98l-1.19,0.06l-1.58,3.06H502l-1.41-1.42l0.42-2.01l-1.66-2.43L488.62,356.71L488.62,356.71z\",\"name\":\"Angola\"},\"cd\":{\"path\":\"M489.38,355.71l10.31-0.18l2.09,2.97l-0.08,2.19l0.77,0.7h5.12l1.47-2.89h2.09l0.85,0.86l2.87-0.08l0.85,10.08l4.96,0.16v0.78l13.33,6.01l0.62,1.17h2.79l-0.31-4.22l-5.04-2.42l0.31-3.2l2.17-5.08l4.96-0.16l-4.26-14.14l0.08-6.01l6.74-10.54l0.08-1.48l-1.01-0.55l0.04-2.86l-1.23-0.11l-1.24-1.58l-20.35-0.92l-3.73,3.63l-6.11-4.02l-2.15,1.32l-1.56,13.13l-3.86,2.98l-1.16,2.64l0.21,3.91l-6.96,5.69l-1.85-0.84l0.25,1.09L489.38,355.71L489.38,355.71z\",\"name\":\"Congo\"},\"rw\":{\"path\":\"M537.82,339.9l2.81,2.59l-0.12,2.77l-4.36,0.09v-3.06L537.82,339.9L537.82,339.9z\",\"name\":\"Rwanda\"},\"bi\":{\"path\":\"M536.21,346.21l4.27-0.09l-1.11,3.74l-1.08,0.94h-1.32l-0.94-2.53L536.21,346.21L536.21,346.21z\",\"name\":\"Burundi\"},\"ug\":{\"path\":\"M538.3,339.09l3.03,2.84l1.9-1.21l5.14-0.84l0.88,0.09l0.33-1.95l2.9-6.1l-2.44-5.08l-7.91,0.05l-0.05,2.09l1.06,1.02l-0.16,2.09L538.3,339.09L538.3,339.09z\",\"name\":\"Uganda\"},\"ke\":{\"path\":\"M550.83,326.52l2.66,5.19l-3.19,6.69l-0.42,2.03l15.93,9.85l4.94-7.76l-2.5-2.03l-0.05-10.22l3.13-3.42l-4.99,1.66l-3.77,0.05l-5.9-4.98l-1.86-0.8l-3.45,0.32l-0.61,1.02L550.83,326.52L550.83,326.52z\",\"name\":\"Kenya\"},\"tz\":{\"path\":\"M550.57,371.42l17.47-2.14l-3.93-7.6l-0.21-7.28l1.27-3.48l-16.62-10.44l-5.21,0.86l-1.81,1.34l-0.16,3.05l-1.17,4.23l-1.22,1.45l-1.75,0.16l3.35,11.61l5.47,2.57l3.77,0.11L550.57,371.42L550.57,371.42z\",\"name\":\"Tanzania\"},\"zm\":{\"path\":\"M514.55,384.7l3.17,4.4l4.91,0.3l1.74,0.96l5.14,0.06l4.43-6.21l12.38-5.54l1.08-4.88l-1.44-6.99l-6.46-3.68l-4.31,0.3l-2.15,4.76l0.06,2.17l5.08,2.47l0.3,5.37l-4.37,0.24l-1.08-1.81l-12.14-5.18l-0.36,3.98l-5.74,0.18L514.55,384.7L514.55,384.7z\",\"name\":\"Zambia\"},\"mw\":{\"path\":\"M547.16,379.4l3.11,3.25l-0.06,4.16l0.6,1.75l4.13-4.46l-0.48-5.67l-2.21-1.69l-1.97-9.95l-3.41-0.12l1.55,7.17L547.16,379.4L547.16,379.4z\",\"name\":\"Malawi\"},\"mz\":{\"path\":\"M541.17,413.28l2.69,2.23l6.34-3.86l1.02-5.73v-9.46l10.17-8.32l1.74,0.06l6.16-5.91l-0.96-12.18L552,372.17l0.48,3.68l2.81,2.17l0.66,6.63l-5.5,5.37l-1.32-3.01l0.24-3.98l-3.17-3.44l-7.78,3.62l7.24,3.68l0.24,10.73l-4.79,7.11L541.17,413.28L541.17,413.28z\",\"name\":\"Mozambique\"},\"zw\":{\"path\":\"M524.66,392.3l8.97,10.13l6.88,1.75l4.61-7.23l-0.36-9.58l-7.48-3.86l-2.81,1.27l-4.19,6.39l-5.8-0.06L524.66,392.3L524.66,392.3z\",\"name\":\"Zimbabwe\"},\"na\":{\"path\":\"M496.55,421.96l3.35,0.24l1.97,1.99l4.67,0.06l1.14-13.26v-8.68l2.99-0.6l1.14-9.1l7.6-0.24l2.69-2.23l-4.55-0.18l-6.16,0.84l-6.64-2.41h-18.66l0.48,5.3l6.22,9.16l-1.08,4.7l0.06,2.47L496.55,421.96L496.55,421.96z\",\"name\":\"Namibia\"},\"bw\":{\"path\":\"M508.51,411.23l2.15,0.66l-0.3,6.15l2.21,0.3l5.08-4.58l6.1,0.66l1.62-4.1l7.72-7.05l-9.27-10.67l-0.12-1.75l-1.02-0.3l-2.81,2.59l-7.3,0.18l-1.02,9.1l-2.87,0.66L508.51,411.23L508.51,411.23z\",\"name\":\"Botswana\"},\"sz\":{\"path\":\"M540.87,414l-2.51,0.42l-1.08,2.95l1.92,1.75h2.33l1.97-2.83L540.87,414L540.87,414z\",\"name\":\"Swaziland\"},\"ls\":{\"path\":\"M527.41,425.39l3.05-2.35l1.44,0.06l1.74,2.17l-0.18,2.17l-2.93,1.08v0.84l-3.23-0.18l-0.78-2.35L527.41,425.39L527.41,425.39z\",\"name\":\"Lesotho\"},\"za\":{\"path\":\"M534.16,403.63l-7.9,7.3l-1.88,4.51l-6.26-0.78l-5.21,4.63l-3.46-0.34l0.28-6.4l-1.23-0.43l-0.86,13.09l-6.14-0.06l-1.85-2.18l-2.71-0.03l2.47,7.09l4.41,4.17l-3.15,3.67l2.04,4.6l4.72,1.8l3.76-3.2l10.77,0.06l0.77-0.96l4.78-0.84l16.17-16.1l-0.06-5.07l-1.73,2.24h-2.59l-3.15-2.64l1.6-3.98l2.75-0.56l-0.25-8.18L534.16,403.63L534.16,403.63z M530.37,422.13l1.51-0.06l2.45,2.66l-0.07,3.08l-2.87,1.45l-0.18,1.02l-4.38,0.05l-1.37-3.3l1.25-2.42L530.37,422.13L530.37,422.13z\",\"name\":\"South Africa\"},\"gl\":{\"path\":\"M321.13,50.07l-1.36,2.17l2.45,2.45l-1.09,2.45l3.54,4.62l4.35-1.36l5.71-0.54l6.53,7.07l4.35,11.69l-3.53,7.34l4.89-0.82l2.72,1.63l0.27,3.54l-5.98,0.27l3.26,3.26l4.08,0.82l-8.97,11.96l-1.09,7.34l1.9,5.98l-1.36,3.54l2.45,7.61l4.62,5.17l1.36-0.27l2.99-0.82l0.27,4.35l1.9,2.72l3.53-0.27l2.72-10.06l8.16-10.06l12.24-4.89l7.61-9.52l3.53,1.63h7.34l5.98-5.98l7.34-2.99l0.82-4.62l-4.62-4.08l-4.08-1.36l-2.18-5.71l5.17-2.99l8.16,4.35l2.72-2.99l-4.35-2.45l9.25-12.51l-1.63-5.44l-4.35-0.27l1.63-4.89l5.44-2.45l11.15-9.79l-3.26-3.53l-12.51,1.09l-6.53,6.53l3.81-8.43l-4.35-1.09l-2.45,4.35l-3.53-2.99l-9.79,1.09l2.72-4.35l16.04-0.54l-4.08-5.44l-17.4-3.26l-7.07,1.09l0.27,3.54l-7.34-2.45l0.27-2.45l-5.17,1.09l-1.09,2.72l5.44,1.9l-5.71,4.08l-4.08-4.62l-5.71-1.63l-0.82,4.35h-5.71l-2.18-4.62l-8.97-1.36l-4.89,2.45l-0.27,3.26l-6.25-0.82l-3.81,1.63l0.27,3.81v1.9l-7.07,1.36l-3.26-2.17l-2.18,3.53l3.26,3.54l6.8-0.82l0.54,2.18l-5.17,2.45L321.13,50.07L321.13,50.07M342.89,92.49l1.63,2.45l-0.82,2.99h-1.63l-2.18-2.45l0.54-1.9L342.89,92.49L342.89,92.49M410.87,85.69l4.62,1.36l-0.27,3.81l-4.89-2.45l-1.09-1.36L410.87,85.69L410.87,85.69z\",\"name\":\"Greenland\"},\"au\":{\"path\":\"M761.17,427.98l-0.35,25.38l-3.9,2.86l-0.35,2.5l5.32,3.57l13.13-2.5h6.74l2.48-3.58l14.9-2.86l10.64,3.22l-0.71,4.29l1.42,4.29l8.16-1.43l0.35,2.14l-5.32,3.93l1.77,1.43l3.9-1.43l-1.06,11.8l7.45,5.72l4.26-1.43l2.13,2.14l12.42-1.79l11.71-18.95l4.26-1.07l8.51-15.73l2.13-13.58l-5.32-6.79l2.13-1.43l-4.26-13.23l-4.61-3.22l0.71-17.87l-4.26-3.22l-1.06-10.01h-2.13l-7.1,23.59l-3.9,0.36l-8.87-8.94l4.97-13.23l-9.22-1.79l-10.29,2.86l-2.84,8.22l-4.61,1.07l-0.35-5.72l-18.8,11.44l0.35,4.29l-2.84,3.93h-7.1l-15.26,6.43L761.17,427.98L761.17,427.98M825.74,496.26l-1.77,7.15l0.35,5l5.32-0.36l6.03-9.29L825.74,496.26L825.74,496.26z\",\"name\":\"Australia\"},\"nz\":{\"path\":\"M913.02,481.96l1.06,11.8l-1.42,5.36l-5.32,3.93l0.35,4.65v5l1.42,1.79l14.55-12.51v-2.86h-3.55l-4.97-16.8L913.02,481.96L913.02,481.96M902.38,507.7l2.84,5.36l-7.81,7.51l-0.71,3.93l-5.32,0.71l-8.87,8.22l-8.16-3.93l-0.71-2.86l14.9-6.43L902.38,507.7L902.38,507.7z\",\"name\":\"New Zealand\"},\"nc\":{\"path\":\"M906.64,420.47l-0.35,1.79l4.61,6.43l2.48,1.07l0.35-2.5L906.64,420.47L906.64,420.47z\",\"name\":\"New Caledonia\"},\"my\":{\"path\":\"M764.14,332.92l3.02,3.49l11.58-4.01l2.29-8.84l5.16-0.37l4.72-3.42l-6.12-4.46l-1.4-2.45l-3.02,5.57l1.11,3.2l-1.84,2.67l-3.47-0.89l-8.41,6.17l0.22,3.57L764.14,332.92L764.14,332.92M732.71,315.45l2.01,4.51l0.45,5.86l2.69,4.17l6.49,3.94l2.46,0.23l-0.45-4.06l-2.13-5.18l-3.12-6.63l-0.26,1.16l-3.76-0.17l-2.7-3.88L732.71,315.45L732.71,315.45z\",\"name\":\"Malaysia\"},\"bn\":{\"path\":\"M779.77,319.25l-2.88,3.49l2.36,0.74l1.33-1.86L779.77,319.25L779.77,319.25z\",\"name\":\"Brunei Darussalam\"},\"tl\":{\"path\":\"M806.14,368.42l-5.11,4.26l0.49,1.09l2.16-0.4l2.55-2.38l5.01-0.69l-0.98-1.68L806.14,368.42L806.14,368.42z\",\"name\":\"Timor-Leste\"},\"sb\":{\"path\":\"M895.43,364.65l0.15,2.28l1.39,1.32l1.31-0.81l-1.17-2.43L895.43,364.65L895.43,364.65M897.18,370.31l-1.17,1.25l1.24,2.28l1.46,0.44l-0.07-1.54L897.18,370.31L897.18,370.31M900.03,368.99l1.02,2.5l1.97,2.35l1.09-1.76l-1.46-2.5L900.03,368.99L900.03,368.99M905.14,372.74l0.58,3.09l1.39,1.91l1.17-2.42L905.14,372.74L905.14,372.74M906.74,379.65l-0.51,0.88l1.68,2.21l1.17,0.07l-0.73-2.87L906.74,379.65L906.74,379.65M903.02,384.05l-1.75,0.81l1.53,2.13l1.31-0.74L903.02,384.05L903.02,384.05z\",\"name\":\"Solomon Islands\"},\"vu\":{\"path\":\"M920.87,397.22l-1.24,1.66l0.52,1.87l0.62,0.42l1.13-1.46L920.87,397.22L920.87,397.22M921.49,402.31l0.1,1.35l1.34,0.42l0.93-0.52l-0.93-1.46L921.49,402.31L921.49,402.31M923.45,414.37l-0.62,0.94l0.93,1.04l1.55-0.52L923.45,414.37L923.45,414.37z\",\"name\":\"Vanuatu\"},\"fj\":{\"path\":\"M948.62,412.29l-1.24,1.66l-0.1,1.87l1.44,1.46L948.62,412.29L948.62,412.29z\",\"name\":\"Fiji\"},\"ph\":{\"path\":\"M789.37,297.53l-0.86,1.64l-0.48,2.02l-4.78,6.07l0.29,1.25l2.01-0.29l6.21-6.94L789.37,297.53L789.37,297.53M797.11,295.22l-0.1,5.01l1.82,1.83l0.67,3.56l1.82,0.39l0.86-2.22l-1.43-1.06l-0.38-6.26L797.11,295.22L797.11,295.22M802.28,297.15l-0.1,4.43l1.05,1.73l1.82-2.12l-0.48-3.85L802.28,297.15L802.28,297.15M803.42,293.29l1.82,2.41l0.86,2.31h1.63l-0.29-3.95l-1.82-1.25L803.42,293.29L803.42,293.29M806.96,302.35l0.38,2.89l-3.35,2.7l-2.77,0.29l-2.96,3.18l0.1,1.45l2.77-0.87l1.91-1.25l1.63,4.14l2.87,2.02l1.15-0.39l1.05-1.25l-2.29-2.31l1.34-1.06l1.53,1.25l1.05-1.73l-1.05-2.12l-0.19-4.72L806.96,302.35L806.96,302.35M791.38,272.97l-2.58,1.83l-0.29,5.78l4.02,7.8l1.34,1.06l1.72-1.16l2.96,0.48l0.57,2.6l2.2,0.19l1.05-1.44l-1.34-1.83l-1.63-1.54l-3.44-0.38l-1.82-2.99l2.1-3.18l0.19-2.79l-1.43-3.56L791.38,272.97L791.38,272.97M792.72,290.21l0.76,2.7l1.34,0.87l0.96-1.25l-1.53-2.12L792.72,290.21L792.72,290.21z\",\"name\":\"Philippines\"},\"cn\":{\"path\":\"M759.83,270.17l-2.39,0.67l-1.72,2.12l1.43,2.79l2.1,0.19l2.39-2.12l0.57-2.79L759.83,270.17L759.83,270.17M670.4,170.07l-3.46,8.7l-4.77-0.25l-5.03,11.01l4.27,5.44l-8.8,12.15l-4.52-0.76l-3.02,3.8l0.75,2.28l3.52,0.25l1.76,4.05l3.52,0.76l10.81,13.93v7.09l5.28,3.29l5.78-1.01l7.29,4.3l8.8,2.53l4.27-0.51l4.78-0.51l10.05-6.58l3.27,0.51l1.25,2.97l2.77,0.83l3.77,5.57l-2.51,5.57l1.51,3.8l4.27,1.52l0.75,4.56l5.03,0.51l0.75-2.28l7.29-3.8l4.52,0.25l5.28,5.82l3.52-1.52l2.26,0.25l1.01,2.79l1.76,0.25l2.51-3.54l10.05-3.8l9.05-10.89l3.02-10.38l-0.25-6.84l-3.77-0.76l2.26-2.53l-0.5-4.05l-9.55-9.62v-4.81l2.76-3.54l2.76-1.27l0.25-2.79h-7.04l-1.26,3.8l-3.27-0.76l-4.02-4.3l2.51-6.58l3.52-3.8l3.27,0.25l-0.5,5.82l1.76,1.52l4.27-4.3l1.51-0.25l-0.5-3.29l4.02-4.81l3.02,0.25l1.76-5.57l2.06-1.09l0.21-3.47l-2-2.1l-0.17-5.48l3.85-0.25l-0.25-14.13l-2.7,1.62l-1.01,3.62l-4.51-0.01l-13.07-7.35l-9.44-11.38l-9.58-0.1l-2.44,2.12l3.1,7.1l-1.08,6.66l-3.86,1.6l-2.17-0.17l-0.16,6.59l2.26,0.51l4.02-1.77l5.28,2.53v2.53l-3.77,0.25l-3.02,6.58l-2.76,0.25l-9.8,12.91l-10.3,4.56l-7.04,0.51l-4.77-3.29l-6.79,3.55l-7.29-2.28l-1.76-4.81l-12.31-0.76l-6.53-10.63h-2.76l-2.22-4.93L670.4,170.07z\",\"name\":\"China\"},\"tw\":{\"path\":\"M787.46,248.31l-3.54,2.7l-0.19,5.2l3.06,3.56l0.76-0.67L787.46,248.31L787.46,248.31z\",\"name\":\"Taiwan\"},\"jp\":{\"path\":\"M803.23,216.42l-1.63,1.64l0.67,2.31l1.43,0.1l0.96,5.01l1.15,1.25l2.01-1.83l0.86-3.28l-2.49-3.56L803.23,216.42L803.23,216.42M812.03,213.15l-2.77,2.6l-0.1,2.99l0.67,0.87l3.73-3.18l-0.29-3.18L812.03,213.15L812.03,213.15M808.2,206.98l-4.88,5.59l0.86,1.35l2.39,0.29l4.49-3.47l3.16-0.58l2.87,3.37l2.2-0.77l0.86-3.28l4.11-0.1l4.02-4.82l-2.1-8l-0.96-4.24l2.1-1.73l-4.78-7.22l-1.24,0.1l-2.58,2.89v2.41l1.15,1.35l0.38,6.36l-2.96,3.66l-1.72-1.06l-1.34,2.99l-0.29,2.79l1.05,1.64l-0.67,1.25l-2.2-1.83h-1.53l-1.34,0.77L808.2,206.98L808.2,206.98M816.43,163.44l-1.53,1.35l0.77,2.89l1.34,1.35l-0.1,4.43l-1.72,0.67l-1.34,2.99l3.92,5.39l2.58-0.87l0.48-1.35l-2.77-2.5l1.72-2.22l1.82,0.29l1.43,1.54l0.1-3.18l3.92-3.18l2.2-0.58l-1.82-3.08l-0.86-1.35l-1.43,0.96l-1.24,1.54l-2.68-0.58l-2.77-1.83L816.43,163.44L816.43,163.44z\",\"name\":\"Japan\"},\"ru\":{\"path\":\"M506.61,151.72l-1.5-0.15l-2.7,3.23v1.51l0.9,0.35l1.75,0.05l2.9-2.37l0.4-0.81L506.61,151.72L506.61,151.72M830.86,160.45l-2.68,3.76l0.19,1.83l1.34-0.58l3.15-3.95L830.86,160.45L830.86,160.45M834.4,154.96l-0.96,2.6l0.1,1.73l1.63-1.06l1.53-3.08V154L834.4,154.96L834.4,154.96M840.04,132.03l-1.24,1.54l0.1,2.41l1.15-0.1l1.91-3.37L840.04,132.03L840.04,132.03M837.75,137.91v4.24l1.34,0.48l0.96-1.54v-3.27L837.75,137.91L837.75,137.91M798.64,122.59l-0.09,6.17l7.74,11.95l2.77,10.4l4.88,9.25l1.91,0.67l1.63-1.35l0.76-2.22l-6.98-7.61l0.19-3.95l1.53-0.67l0.38-2.31l-13.67-19.36L798.64,122.59L798.64,122.59M852.57,103.42l-1.91,0.19l1.15,1.64l2.39,1.64l0.67-0.77L852.57,103.42L852.57,103.42M856.29,104.58l0.29,1.64l2.96,0.87l0.29-1.16L856.29,104.58L856.29,104.58M547.82,38.79l1.72,0.69l-1.21,2.08v2.95l-2.58,1.56H543l-1.55-1.91l0.17-2.08l1.21-1.56h2.41L547.82,38.79L547.82,38.79M554.36,36.88v2.08l1.72,1.39l2.41-0.17l2.07-1.91v-1.39h-1.89l-1.55,0.52l-1.21-1.39L554.36,36.88L554.36,36.88M564.18,37.06l1.21,2.6l2.41,0.17l1.72-0.69l-0.86-2.43l-2.24-0.52L564.18,37.06L564.18,37.06M573.99,33.59l-1.89-0.35l-1.72,1.74l0.86,1.56l0.52,2.43l2.24-1.73l0.52-1.91L573.99,33.59L573.99,33.59M584.49,51.98l-0.52,2.43l-3.96,3.47l-8.44,1.91l-6.89,11.45l-1.21,3.3l6.89,1.74l1.03-4.16l2.07-6.42l5.34-2.78l4.48-3.47l3.27-1.39h1.72v-4.68L584.49,51.98L584.49,51.98M562.28,77.31l4.65,0.52l1.55,5.38l3.96,4.16l-1.38,2.78h-2.41l-2.24-2.6l-4.99-0.17l-2.07-2.78v-1.91l3.1-0.87L562.28,77.31L562.28,77.31M634.95,18.15l-2.24-1.39h-2.58l-0.52,1.56l-2.75,1.56l-2.07,0.69l-0.34,2.08l4.82,0.35L634.95,18.15L634.95,18.15M640.28,18.67l-1.21,2.6l-2.41-0.17l-3.79,2.78l-1.03,3.47h2.41l1.38-2.26l3.27,2.43l3.1-1.39l2.24-1.91l-0.86-2.95l-1.21-2.08L640.28,18.67L640.28,18.67M645.28,20.58l1.21,4.86l1.89,4.51l2.07-3.64l3.96-0.87v-2.6l-2.58-1.91L645.28,20.58L645.28,20.58M739.76,12.8l2.69,2.26l1.91-0.79l0.56-3.17L741,8.39l-2.58,1.7l-6.28,0.57v2.83l-6.62,0.11v4.63l7.74,5.76l2.02-1.47l-0.45-4.07l4.94-1.24l-1.01-1.92l-1.79-1.81L739.76,12.8L739.76,12.8M746.94,10.09l1.79,3.39l6.96-0.79l1.91-2.49l-0.45-2.15l-1.91-0.79l-1.79,1.36l-5.16,1.13L746.94,10.09L746.94,10.09M746.49,23.31l-3.48-0.9L741,24.56l-0.9,2.94l4.71-0.45l3.59-1.81L746.49,23.31L746.49,23.31M836.68,3.76l-2.92-0.9L830.4,4.1l-1.68,2.49l2.13,2.83l5.61-2.49l1.12-1.24L836.68,3.76L836.68,3.76M817.97,72.93l1.76,6.08l3.52,1.01l3.52-5.57l-2.01-3.8l0.75-3.29h5.28l-1.26,2.53l0.5,9.12l-7.54,18.74l0.75,4.05l-0.25,6.84l14.07,20.51l2.76,0.76l0.25-16.71l2.76-2.53l-3.02-6.58l2.51-2.79l-5.53-7.34l-3.02,0.25l-1-12.15l7.79-2.03l0.5-3.55l4.02-1.01l2.26,2.03l2.76-11.14l4.77-8.1l3.77-2.03l3.27,0.25v-3.8l-5.28-1.01l-7.29-6.08l3.52-4.05l-3.02-6.84l2.51-2.53l3.02,4.05l7.54,2.79l8.29,0.76l1.01-3.54l-4.27-4.3l4.77-6.58l-10.81-3.8l-2.76,5.57l-3.52-4.56l-19.85-6.84l-18.85,3.29l-2.76,1.52v1.52l4.02,2.03l-0.5,4.81l-7.29-3.04l-16.08,6.33l-2.76-5.82h-11.06l-5.03,5.32l-17.84-4.05l-16.33,3.29l-2.01,5.06l2.51,0.76l-0.25,3.8l-15.83,1.77l1.01,5.06l-14.58-2.53l3.52-6.58l-14.83-0.76l1.26,6.84l-4.77,2.28l-4.02-3.8l-16.33,2.79l-6.28,5.82l-0.25,3.54l-4.02,0.25l-0.5-4.05l12.82-11.14v-7.6l-8.29-2.28l-10.81,3.54l-4.52-4.56h-2.01l-2.51,5.06l2.01,2.28l-14.33,7.85l-12.31,9.37l-7.54,10.38v4.3l8.04,3.29l-4.02,3.04l-8.54-3.04l-3.52,3.04l-5.28-6.08l-1.01,2.28l5.78,18.23l1.51,0.51l4.02-2.03l2.01,1.52v3.29l-3.77-1.52l-2.26,1.77l1.51,3.29l-1.26,8.61l-7.79,0.76l-0.5-2.79l4.52-2.79l1.01-7.6l-5.03-6.58l-1.76-11.39l-8.04-1.27l-0.75,4.05l1.51,2.03l-3.27,2.79l1.26,7.6l4.77,2.03l1.01,5.57l-4.78-3.04l-12.31-2.28l-1.51,4.05l-9.8,3.54l-1.51-2.53l-12.82,7.09l-0.25,4.81l-5.03,0.76l1.51-3.54v-3.54l-5.03-1.77l-3.27,1.27l2.76,5.32l2.01,3.54v2.79l-3.77-0.76l-0.75-0.76l-3.77,4.05l2.01,3.54l-8.54-0.25l2.76,3.55l-0.75,1.52h-4.52l-3.27-2.28l-0.75-6.33l-5.28-2.03v-2.53l11.06,2.28l6.03,0.51l2.51-3.8l-2.26-4.05l-16.08-6.33l-5.55,1.38l-1.9,1.63l0.59,3.75l2.36,0.41l-0.55,5.9l7.28,17.1l-5.26,8.34l-0.36,1.88l2.67,1.88l-2.41,1.59l-1.6,0.03l0.3,7.35l2.21,3.13l0.03,3.04l2.83,0.26l4.33,1.65l4.58,6.3l0.05,1.66l-1.49,2.55l3.42-0.19l3.33,0.96l4.5,6.37l11.08,1.01l-0.48,7.58l-3.82,3.27l0.79,1.28l-3.77,4.05l-1,3.8l2.26,3.29l7.29,2.53l3.02-1.77l19.35,7.34l0.75-2.03l-4.02-3.8v-4.81l-2.51-0.76l0.5-4.05l4.02-4.81l-7.21-5.4l0.5-7.51l7.71-5.07l9.05,0.51l1.51,2.79l9.3,0.51l6.79-3.8l-3.52-3.8l0.75-7.09l17.59-8.61l13.53,6.1l4.52-4.05l13.32,12.66l10.05-1.01l3.52,3.54l9.55,1.01l6.28-8.61l8.04,3.55l4.27,0.76l4.27-3.8l-3.77-2.53l3.27-5.06l9.3,3.04l2.01,4.05l4.02,0.25l2.51-1.77l6.79-0.25l0.75,1.77l7.79,0.51l5.28-5.57l10.81,1.27l3.27-1.27l1-6.08l-3.27-7.34l3.27-2.79h10.3l9.8,11.65l12.56,7.09h3.77l0.5-3.04l4.52-2.79l0.5,16.46l-4.02,0.25v4.05l2.26,2.79l-0.42,3.62l1.67,0.69l1.01-2.53l1.51,0.51l1,1.01l4.52-1.01l4.52-13.17l0.5-16.46l-5.78-13.17l-7.29-8.86l-3.52,0.51v2.79l-8.54-3.29l3.27-7.09l2.76-18.74l11.56-3.54l5.53-3.54h6.03L805.86,96l1.51,2.53l5.28-5.57l3.02,0.25l-0.5-3.29l-4.78-1.01l3.27-11.9L817.97,72.93L817.97,72.93z\",\"name\":\"Russian Federation\"},\"us\":{\"path\":\"M69.17,53.35l3.46,6.47l2.22-0.5v-2.24L69.17,53.35L69.17,53.35M49.66,110.26l-0.17,3.01l2.16-0.5v-1.34L49.66,110.26L49.66,110.26M46.34,111.6l-4.32,2.18l0.67,2.34l1.66-1.34l3.32-1.51L46.34,111.6L46.34,111.6M28.39,114.44l-2.99-0.67l-0.5,1.34l0.33,2.51L28.39,114.44L28.39,114.44M22.07,114.28l-2.83-1.17l-1,1.84l1.83,1.84L22.07,114.28L22.07,114.28M12.27,111.6l-1.33-1.84l-1.33,0.5v2.51l1.5,1L12.27,111.6L12.27,111.6M1.47,99.71l1.66,1.17l-0.5,1.34H1.47V99.71L1.47,99.71M10,248.7l-0.14,2.33l2.04,1.37l1.22-1.09L10,248.7L10,248.7M15.29,252.13l-1.9,1.37l1.63,2.05l1.9-1.64L15.29,252.13L15.29,252.13M19.1,255.41l-1.63,2.19l0.54,1.37l2.31-1.09L19.1,255.41L19.1,255.41M21.81,259.65l-0.95,5.47l0.95,2.05l3.12-0.96l1.63-2.74l-3.4-3.15L21.81,259.65L21.81,259.65M271.05,281.06l-2.64-0.89l-2.12,1.33l1.06,1.24l3.61,0.53L271.05,281.06L271.05,281.06M93.11,44.89l-8.39,1.99l1.73,9.45l9.13,2.49l0.49,1.99L82.5,65.04l-7.65,12.68l2.71,13.43L82,94.13l3.46-3.23l0.99,1.99l-4.2,4.97l-16.29,7.46l-10.37,2.49l-0.25,3.73l23.94-6.96l9.87-2.74l9.13-11.19l10.12-6.71l-5.18,8.7l5.68,0.75l9.63-4.23l1.73,6.96l6.66,1.49l6.91,6.71l0.49,4.97l-0.99,1.24l1.23,4.72h1.73l0.25-7.96h1.97l0.49,19.64l4.94-4.23l-3.46-20.39h-5.18l-5.68-7.21l27.89-47.25l-27.64-21.63l-30.85,5.97l-1.23,9.45l6.66,3.98l-2.47,6.47L93.11,44.89L93.11,44.89M148.76,158.34l-1,4.02l-3.49-2.26h-1.74l-1,4.27l-12.21,27.36l3.24,23.84l3.99,2.01l0.75,6.53h8.22l7.97,6.02l15.69,1.51l1.74,8.03l2.49,1.76l3.49-3.51l2.74,1.25l2.49,11.54l4.23,2.76l3.49-6.53l10.71-7.78l6.97,3.26l5.98,0.5l0.25-3.76l12.45,0.25l2.49,2.76l0.5,6.27l-1.49,3.51l1.74,6.02h3.74l3.74-5.77l-1.49-2.76l-1.49-6.02l2.24-6.78l10.21-8.78l7.72-2.26l-1-7.28l10.71-11.55l10.71-1.76L272.8,199l10.46-6.02v-8.03l-1-0.5l-3.74,1.25l-0.5,4.92l-12.43,0.15l-9.74,6.47l-15.29,5l-2.44-2.99l6.94-10.5l-3.43-3.27l-2.33-4.44l-4.83-3.88l-5.25-0.44l-9.92-6.77L148.76,158.34L148.76,158.34z\",\"name\":\"United States of America\"},\"mu\":{\"path\":\"M613.01,398.99l-1.52,1.99l0.3,2.15l3.2-2.61L613.01,398.99L613.01,398.99z\",\"name\":\"Mauritius\"},\"re\":{\"path\":\"M607.38,402.37l-2.28,0.15l-0.15,1.99l1.52,0.31l2.28-1.07L607.38,402.37L607.38,402.37z\",\"name\":\"Reunion\"},\"mg\":{\"path\":\"M592.3,372.92l-2.13,5.06l-3.65,6.44l-6.39,0.46l-2.74,3.22l0.46,9.82l-3.96,4.6l0.46,7.82l3.35,3.83l3.96-0.46l3.96-2.92l-0.91-4.6l9.13-15.8l-1.83-1.99l1.83-3.83l1.98,0.61l0.61-1.53l-1.83-7.82l-1.07-3.22L592.3,372.92L592.3,372.92z\",\"name\":\"Madagascar\"},\"km\":{\"path\":\"M577.69,371.23l0.46,1.53l1.98,0.31l0.76-1.99L577.69,371.23L577.69,371.23M580.58,374.3l0.76,1.69h1.22l0.61-2.15L580.58,374.3L580.58,374.3z\",\"name\":\"Comoros\"},\"sc\":{\"path\":\"M602.35,358.34l-0.61,1.23l1.67,1.38l1.22-1.38L602.35,358.34L602.35,358.34M610.88,349.14l-1.83,1.23l1.37,2.15h1.83L610.88,349.14L610.88,349.14M611.64,354.51l-1.22,1.38l0.91,1.38l1.67,0.31l0.15-2.92L611.64,354.51L611.64,354.51z\",\"name\":\"Seychelles\"},\"mv\":{\"path\":\"M656.4,320.76l0.3,2.61l1.67,0.61l0.3-2.3L656.4,320.76L656.4,320.76M658.53,326.28l-0.15,3.22l1.22,0.61l1.07-2.15L658.53,326.28L658.53,326.28M658.84,332.57l-1.07,1.07l1.22,1.07l1.52-1.07L658.84,332.57L658.84,332.57z\",\"name\":\"Maldives\"},\"pt\":{\"path\":\"M372.64,217.02l-1.36,1.37l2.44,1.37l0.27-1.91L372.64,217.02L372.64,217.02M379.97,216.2l-1.63,1.09l1.36,1.09l2.17-0.55L379.97,216.2L379.97,216.2M381.05,220.03l-0.81,2.19l1.08,1.37l1.36-1.09L381.05,220.03L381.05,220.03M387.56,224.4l-0.54,1.37l0.81,0.82l2.17-1.37L387.56,224.4L387.56,224.4M408.18,236.42l-1.08,1.37l1.08,1.37l1.63-0.82L408.18,236.42L408.18,236.42M430.93,211.24l-0.62,8.65l-1.77,1.6l0.18,0.98l1.24,2.05l-0.8,2.5l1.33,0.45l3.1-0.36l-0.18-2.5l2.03-11.59l-0.44-1.6L430.93,211.24L430.93,211.24z\",\"name\":\"Portugal\"},\"es\":{\"path\":\"M415.62,253.73l-1.75,1.01l0.81,0.82L415.62,253.73L415.62,253.73M409.54,253.92l-2.17,0.55l1.08,1.64h1.63L409.54,253.92L409.54,253.92M404.38,252.28l-1.36,1.37l1.9,1.64l1.08-2.46L404.38,252.28L404.38,252.28M448.36,205h-12.74l-2.57-1.16l-1.24,0.09l-1.5,3.12l0.53,3.21l4.87,0.45l0.62,2.05l-2.12,11.95l0.09,2.14l3.45,1.87l3.98,0.27l7.96-1.96l3.89-4.9l0.09-4.99l6.9-6.24l0.35-2.76l-6.28-0.09L448.36,205L448.36,205M461.1,217.21l-1.59,0.54l0.35,1.43h2.3l0.97-1.07L461.1,217.21L461.1,217.21z\",\"name\":\"Spain\"},\"cv\":{\"path\":\"M387.56,290.54l-1.9,1.09l1.36,1.09l1.63-0.82L387.56,290.54L387.56,290.54M392.23,292.74l-1.24,1.1l0.88,1.63l2.12-0.95L392.23,292.74L392.23,292.74M389.52,295.83l-1.59,0.95l1.71,2.29l1.35-0.71L389.52,295.83L389.52,295.83z\",\"name\":\"Cape Verde\"},\"pf\":{\"path\":\"M27.25,402.68l-1.9-0.14l-0.14,1.78l1.49,0.96l1.77-1.09L27.25,402.68L27.25,402.68M33.77,404.6l-2.72,1.78l2.04,2.46l1.77-0.41l0.95-1.23L33.77,404.6L33.77,404.6z\",\"name\":\"French Polynesia\"},\"kn\":{\"path\":\"M276.6,283.37l-1.5,0.62l0.53,1.33l1.76-1.15l-0.35-0.36L276.6,283.37L276.6,283.37z\",\"name\":\"Saint Kitts and Nevis\"},\"ag\":{\"path\":\"M279.07,284.88l-0.88,1.87l1.06,1.42l1.32-1.15L279.07,284.88L279.07,284.88z\",\"name\":\"Antigua and Barbuda\"},\"dm\":{\"path\":\"M282.07,290.03l-1.06,0.98l0.79,1.6l1.5-0.44L282.07,290.03L282.07,290.03z\",\"name\":\"Dominica\"},\"lc\":{\"path\":\"M281.98,294.03l-0.71,1.51l1.15,1.24l1.5-0.8L281.98,294.03L281.98,294.03z\",\"name\":\"Saint Lucia\"},\"bb\":{\"path\":\"M282.07,297.85l-1.23,0.89l0.97,1.78l1.59-0.89L282.07,297.85L282.07,297.85z\",\"name\":\"Barbados\"},\"gd\":{\"path\":\"M280.57,301.31l-1.15,1.15l0.44,0.71h1.41l0.44-1.16L280.57,301.31L280.57,301.31z\",\"name\":\"Grenada\"},\"tt\":{\"path\":\"M282.24,304.78l-1.06,0.98l-1.15,0.18v1.42l2.12,1.95l0.88-1.42l0.53-1.6l-0.18-1.33L282.24,304.78L282.24,304.78z\",\"name\":\"Trinidad and Tobago\"},\"do\":{\"path\":\"M263.11,280.44l-5.29-3.46l-2.5-0.85l-0.84,6l0.88,1.69l1.15-1.33l3.35-0.89l2.91,0.62L263.11,280.44L263.11,280.44z\",\"name\":\"Dominican Republic\"},\"ht\":{\"path\":\"M250.86,275.38l3.44,0.36l-0.41,4.22l-0.34,2.22l-4.01-0.22l-0.71,1.07l-1.23-0.09l-0.44-2.31l4.23-0.35l-0.26-2.4l-1.94-0.8L250.86,275.38L250.86,275.38z\",\"name\":\"Haiti\"},\"fk\":{\"path\":\"M307.95,508.18l-2.63-0.29l-2.62,1.76l1.9,2.06L307.95,508.18L307.95,508.18M310.57,506.86l-0.87,2.79l-2.48,2.2l0.15,0.73l4.23-1.62l1.75-2.2L310.57,506.86L310.57,506.86z\",\"name\":\"Falkland Islands\"},\"is\":{\"path\":\"M406.36,117.31l-1.96-1.11l-2.64,1.67l-2.27,2.1l0.06,1.17l2.94,0.37l-0.18,2.1l-1.04,1.05l0.25,0.68l2.94,0.19v3.4l4.23,0.74l2.51,1.42l2.82,0.12l4.84-2.41l3.74-4.94l0.06-3.34l-2.27-1.92l-1.9-1.61l-0.86,0.62l-1.29,1.67l-1.47-0.19l-1.47-1.61l-1.9,0.18l-2.76,2.29l-1.66,1.79l-0.92-0.8l-0.06-1.98l0.92-0.62L406.36,117.31L406.36,117.31z\",\"name\":\"Iceland\"},\"no\":{\"path\":\"M488.26,53.96l-1.65-1.66l-3.66,1.78h-6.72L475.17,58l3.77,3.33l1.65-0.24l2.36-4.04l2,1.43l-1.42,2.85l-0.71,4.16l1.65,2.61l3.54-5.94l4.6-5.59l-1.77-1.54L488.26,53.96L488.26,53.96M490.26,46.83l-2.95,2.73l1.77,2.73h3.18l1.3,1.78l3.89,2.02l4.48-2.61l3.07-2.61l-1.06-2.14l-3.07-1.78l-2.24,2.02l-1.53-1.9l-1.18,0.12l-1.53,3.33l-2.24-2.26l-0.24-1.54L490.26,46.83L490.26,46.83M496.98,59.07l-2.36,2.14l-2,1.54l0.94,1.66l1.89,0.59l3.07-1.43l1.42-1.78l-1.3-2.14L496.98,59.07L496.98,59.07M515.46,102.14l2.02-1.48L517.3,99l-1.28-0.74l0.18-2.03h1.1v-1.11l-4.77-1.29l-7.15,0.74l-0.73,3.14L503,97.16l-1.1-1.85l-3.49,0.18L498.04,99l-1.65,0.74l-0.92-1.85l-7.34,5.91l1.47,1.66l-2.75,1.29l-6.24,12.38l-2.2,1.48l0.18,1.11l2.2,1.11l-0.55,2.4l-3.67-0.19l-1.1-1.29l-2.38,2.77l-1.47,1.11l-0.37,2.59l-1.28,0.74l-3.3,0.74l-1.65,5.18l1.1,8.5l1.28,3.88l1.47,1.48l3.3-0.18l4.77-4.62l1.83-3.14l0.55,4.62l3.12-5.54l0.18-15.53l2.54-1.6l0.76-8.57l7.7-11.09l3.67-1.29l1.65-2.03l5.5,1.29l2.75,1.66l0.92-4.62l4.59-2.77L515.46,102.14L515.46,102.14z\",\"name\":\"Norway\"},\"lk\":{\"path\":\"M680.54,308.05l0.25,2.72l0.25,1.98l-1.47,0.25l0.74,4.45l2.21,1.24l3.43-1.98l-0.98-4.69l0.25-1.73l-3.19-2.96L680.54,308.05L680.54,308.05z\",\"name\":\"Sri Lanka\"},\"cu\":{\"path\":\"M220.85,266.92v1.27l5.32,0.1l2.51-1.46l0.39,1.07l5.22,1.27l4.64,4.19l-1.06,1.46l0.19,1.66l3.87,0.97l3.87-1.75l1.74-1.75l-2.51-1.27l-12.95-7.6l-4.54-0.49L220.85,266.92L220.85,266.92z\",\"name\":\"Cuba\"},\"bs\":{\"path\":\"M239.61,259.13l-1.26-0.39l-0.1,2.43l1.55,1.56l1.06-1.56L239.61,259.13L239.61,259.13M242.12,262.93l-1.74,0.97l1.64,2.34l0.87-1.17L242.12,262.93L242.12,262.93M247.73,264.68l-1.84-0.1l0.19,1.17l1.35,1.95l1.16-1.27L247.73,264.68L247.73,264.68M246.86,262.35l-3-1.27l-0.58-3.02l1.16-0.49l1.16,2.34l1.16,0.88L246.86,262.35L246.86,262.35M243.96,256.21l-1.55-0.39l-0.29-1.95l-1.64-0.58l1.06-1.07l1.93,0.68l1.45,0.88L243.96,256.21L243.96,256.21z\",\"name\":\"Bahamas\"},\"jm\":{\"path\":\"M238.93,279.59l-3.48,0.88v0.97l2.03,1.17h2.13l1.35-1.56L238.93,279.59L238.93,279.59z\",\"name\":\"Jamaica\"},\"ec\":{\"path\":\"M230.2,335.85l-4.73,2.94l-0.34,4.36l-0.95,1.43l2.98,2.86l-1.29,1.41l0.3,3.6l5.33,1.27l8.07-9.55l-0.02-3.33l-3.87-0.25L230.2,335.85L230.2,335.85z\",\"name\":\"Ecuador\"},\"ca\":{\"path\":\"M203.73,35.89l0.22,4.02l-7.98,8.27l2,6.7l5.76-1.56l3.33-4.92l8.42-3.13l6.87-0.45l-5.32-5.81l-2.66,2.01l-2-0.67l-1.11-2.46l-2.44-2.46L203.73,35.89L203.73,35.89M214.15,24.05l-1.77,3.13l8.65,3.13l3.1-4.69l1.33,3.13h2.22l4.21-4.69l-5.1-1.34l-2-1.56l-2.66,2.68L214.15,24.05L214.15,24.05M229.23,30.31l-6.87,2.9v2.23l8.87,3.35l-2,2.23l1.33,2.9l5.54-2.46h4.66l2.22,3.57l3.77-3.8l-0.89-3.58l-3.1,1.12l-0.44-4.47l1.55-2.68h-1.55l-2.44,1.56l-1.11,0.89l0.67,3.13l-1.77,1.34l-2.66-0.22l-0.67-4.02L229.23,30.31L229.23,30.31M238.32,23.38l-0.67,2.23l4.21,2.01l3.1-1.79l-0.22-1.34L238.32,23.38L238.32,23.38M241.64,19.58l-3.1,1.12l0.22,1.56l6.87-0.45l-0.22-1.56L241.64,19.58L241.64,19.58M256.5,23.38l-0.44,1.56l-1.11,1.56v2.23l4.21-0.67l4.43,3.8h1.55v-3.8l-4.43-4.92L256.5,23.38L256.5,23.38M267.81,27.85l1.77,2.01l-1.55,2.68l1.11,2.9l4.88-2.68v-2.01l-2.88-3.35L267.81,27.85L267.81,27.85M274.24,22.71l0.22,3.57h5.99l1.55,1.34l-0.22,1.56l-5.32,0.67l3.77,5.14l5.1,0.89l7.09-3.13l-10.2-15.42l-3.1,2.01l0.22,2.68l-3.55-1.34L274.24,22.71L274.24,22.71M222.58,47.96l-8.42,2.23l-4.88,4.25l0.44,4.69l8.87,2.68l-2,4.47l-6.43-4.02l-1.77,3.35l4.21,2.9l-0.22,4.69l6.43,1.79l7.76-0.45l1.33-2.46l5.76,6.48l3.99-1.34l0.67-4.47l2.88,2.01l0.44-4.47l-3.55-2.23l0.22-14.07l-3.1-2.46L231.89,56L222.58,47.96L222.58,47.96M249.63,57.79l-2.88-1.34l-1.55,2.01l3.1,4.92l0.22,4.69l6.65-4.02v-5.81l2.44-2.46l-2.44-1.79h-3.99L249.63,57.79L249.63,57.79M263.82,55.78l-4.66,3.8l1.11,4.69h2.88l1.33-2.46l2,2.01l2-0.22l5.32-4.47L263.82,55.78L263.82,55.78M263.37,48.4l-1.11,2.23l4.88,1.79l1.33-2.01L263.37,48.4L263.37,48.4M260.49,39.91l-4.88,0.67l-2.88,2.68l5.32,0.22l-1.55,4.02l1.11,1.79l1.55-0.22l3.77-6.03L260.49,39.91L260.49,39.91M268.92,38.35l-2.66,0.89l0.44,3.57l4.43,2.9l0.22,2.23l-1.33,1.34l0.67,4.47l17.07,5.58l4.66,1.56l4.66-4.02l-5.54-4.47l-5.1,1.34l-7.09-0.67l-2.66-2.68l-0.67-7.37l-4.43-2.23L268.92,38.35L268.92,38.35M282.88,61.59L278,61.14l-5.76,2.23l-3.1,4.24l0.89,11.62l9.53,0.45l9.09,4.47l6.43,7.37l4.88-0.22l-1.33,6.92l-4.43,7.37l-4.88,2.23l-3.55-0.67l-1.77-1.56l-2.66,3.57l1.11,3.57l3.77,0.22l4.66-2.23l3.99,10.28l9.98,6.48l6.87-8.71l-5.76-9.38l3.33-3.8l4.66,7.82l8.42-7.37l-1.55-3.35l-5.76,1.79l-3.99-10.95l3.77-6.25l-7.54-8.04l-4.21,2.9l-3.99-8.71l-8.42,1.12l-2.22-10.5l-6.87,4.69l-0.67,5.81h-3.77l0.44-5.14L282.88,61.59L282.88,61.59M292.86,65.61l-1.77,1.79l1.55,2.46l7.32,0.89l-4.66-4.92L292.86,65.61L292.86,65.61M285.77,40.36v2.01l-4.88,1.12l1.33,2.23l5.54,2.23l6.21,0.67l4.43,3.13l4.43-2.46l-3.1-3.13h3.99l2.44-2.68l5.99-0.89v-1.34l-3.33-2.23l0.44-2.46l9.31,1.56l13.75-5.36l-5.1-1.56l1.33-1.79h10.64l1.77-1.79l-21.51-7.6l-5.1-1.79l-5.54,4.02l-6.21-5.14l-3.33-0.22l-0.67,4.25l-4.21-3.8l-4.88,1.56l0.89,2.46l7.32,1.56l-0.44,3.57l3.99,2.46l9.76-2.46l0.22,3.35l-7.98,3.8l-4.88-3.8l-4.43,0.45l4.43,6.26l-2.22,1.12l-3.33-2.9l-2.44,1.56l2.22,4.24h3.77l-0.89,4.02l-3.1-0.45l-3.99-4.25L285.77,40.36L285.77,40.36M266.01,101.85l-4.23,5.32l-0.26,5.86l3.7-2.13h4.49l3.17,2.93l2.91-2.4L266.01,101.85L266.01,101.85M317.52,171.05l-10.57,10.12l1.06,2.4l12.94,4.79l1.85-3.19l-1.06-5.32l-4.23,0.53l-2.38-2.66l3.96-3.99L317.52,171.05L317.52,171.05M158.22,48.66l1.99,3.01l1,4.02l4.98,1.25l3.49-3.76l2.99,1.51l8.47,0.75l5.98-2.51l1,8.28h3.49V57.7l3.49,0.25l8.72,10.29l5.73,3.51l-2.99,4.77l1.25,1.25L219,80.03l0.25,5.02l2.99,0.5l0.75-7.53l4.73-1.25l3.49,5.27l7.47,3.51l3.74,0.75l2.49-3.01l0.25-4.77l4.48-2.76l1.49,4.02l-3.99,7.03l0.5,3.51l2.24-3.51l4.48-4.02l0.25-5.27l-2.49-4.02l0.75-3.26l5.98-3.01l2.74,2.01l0.5,17.57l4.23-3.76l2.49,1.51l-3.49,6.02l4.48,1l6.48-10.04l5.48,5.77l-2.24,10.29l-5.48,3.01l-5.23-2.51l-9.46,2.01l1,3.26l-2.49,4.02l-7.72,1.76l-8.72,6.78l-7.72,10.29l-1,3.26l5.23,2.01l1.99,5.02l7.22,7.28l11.46,5.02l-2.49,11.54l-0.25,3.26l2.99,2.01l3.99-5.27l0.5-10.04l6.23-0.25l2.99-5.77l0.5-8.78l7.97-15.56l9.96,3.51l5.23,7.28l-2.24,7.28l3.99,2.26l9.71-6.53l2.74,17.82l8.97,10.79l0.25,5.52l-9.96,2.51l-4.73,5.02l-9.96-2.26l-4.98-0.25l-8.72,6.78l5.23-1.25l6.48-1.25l1.25,1.51l-1.74,5.52l0.25,5.02l2.99,2.01l2.99-0.75l1.5-2.26h1.99l-3.24,6.02l-6.23,0.25l-2.74,4.02h-3.49l-1-3.01l4.98-5.02l-5.98,2.01l-0.27-8.53l-1.72-1l-5.23,2.26l-0.5,4.27h-11.96l-10.21,7.03l-13.7,4.52l-1.49-2.01l6.9-10.3l-3.92-3.77l-2.49-4.78l-5.07-3.87l-5.44-0.45l-9.75-6.83l-70.71-11.62l-1.17-4.79l-6.48-6.02v-5.02l1-4.52l-0.5-2.51l-2.49-2.51l-0.5-4.02l6.48-4.52l-3.99-21.58l-5.48-0.25l-4.98-6.53L158.22,48.66L158.22,48.66M133.83,128.41l-1.7,3.26l0.59,2.31l1.11,0.69l-0.26,0.94l-1.19,0.34l0.34,3.43l1.28,1.29l1.02-1.11l-1.28-3.34l0.76-2.66l1.87-2.49l-1.36-2.31L133.83,128.41L133.83,128.41M139.45,147.95l-1.53,0.6l2.81,3.26l0.68,3.86l2.81,3l2.38-0.43v-3.94l-2.89-1.8L139.45,147.95L139.45,147.95z\",\"name\":\"Canada\"},\"gt\":{\"path\":\"M194.88,291.52l5.93,4.34l5.98-7.43l-1.02-1.54l-2.04-0.07v-4.35l-1.53-0.93l-4.63,1.38l1.77,4.08L194.88,291.52L194.88,291.52z\",\"name\":\"Guatemala\"},\"hn\":{\"path\":\"M207.55,288.78l9.24-0.35l2.74,3.26l-1.71-0.39l-3.29,0.14l-4.3,4.04l-1.84,4.09l-1.21-0.64l-0.01-4.48l-2.66-1.78L207.55,288.78L207.55,288.78z\",\"name\":\"Honduras\"},\"sv\":{\"path\":\"M201.65,296.27l4.7,2.34l-0.07-3.71l-2.41-1.47L201.65,296.27L201.65,296.27z\",\"name\":\"El Salvador\"},\"ni\":{\"path\":\"M217.74,292.11l2.19,0.44l0.07,4.49l-2.55,7.28l-6.87-0.68l-1.53-3.51l2.04-4.26l3.87-3.6L217.74,292.11L217.74,292.11z\",\"name\":\"Nicaragua\"},\"cr\":{\"path\":\"M217.38,304.98l1.39,2.72l1.13,1.5l-1.52,4.51l-2.9-2.04l-4.74-4.34v-2.87L217.38,304.98L217.38,304.98z\",\"name\":\"Costa Rica\"},\"pa\":{\"path\":\"M220.59,309.61l-1.46,4.56l4.82,1.25l2.99,0.59l0.51-3.53l3.21-1.62l2.85,1.47l1.12,1.79l1.36-0.16l1.07-3.25l-3.56-1.47l-2.7-1.47l-2.7,1.84l-3.21,1.62l-3.28-1.32L220.59,309.61L220.59,309.61z\",\"name\":\"Panama\"},\"co\":{\"path\":\"M253.73,299.78l-2.06-0.21l-13.62,11.23l-1.44,3.95l-1.86,0.21l0.83,8.73l-4.75,11.65l5.16,4.37l6.61,0.42l4.54,6.66l6.6,0.21l-0.21,4.99H256l2.68-9.15l-2.48-3.12l0.62-5.82l5.16-0.42l-0.62-13.52l-11.56-3.74l-2.68-7.28L253.73,299.78L253.73,299.78z\",\"name\":\"Colombia\"},\"ve\":{\"path\":\"M250.46,305.92l0.44,2.59l3.25,1.03l0.74-4.77l3.43-3.55l3.43,4.02l7.89,2.15l6.68-1.4l4.55,5.61l3.43,2.15l-3.76,5.73l1.26,4.34l-2.15,2.66l-2.23,1.87l-4.83-2.43l-1.11,1.12v3.46l3.53,1.68l-2.6,2.81l-2.6,2.81l-3.43-0.28l-3.45-3.79l-0.73-14.26l-11.78-4.02l-2.14-6.27L250.46,305.92L250.46,305.92z\",\"name\":\"Venezuela\"},\"gy\":{\"path\":\"M285.05,314.13l7.22,6.54l-2.87,3.32l-0.23,1.97l3.77,3.89l-0.09,3.74l-6.56,2.5l-3.93-5.31l0.84-6.38l-1.68-4.75L285.05,314.13L285.05,314.13z\",\"name\":\"Guyana\"},\"sr\":{\"path\":\"M293.13,321.14l2.04,1.87l3.16-1.96l2.88,0.09l-0.37,1.12l-1.21,2.52l-0.19,6.27l-5.75,2.34l0.28-4.02l-3.71-3.46l0.19-1.78L293.13,321.14L293.13,321.14z\",\"name\":\"Suriname\"},\"gf\":{\"path\":\"M302.13,321.8l5.85,3.65l-3.06,6.08l-1.11,1.4l-3.25-1.87l0.09-6.55L302.13,321.8L302.13,321.8z\",\"name\":\"French Guiana\"},\"pe\":{\"path\":\"M225.03,349.52l-1.94,1.96l0.13,3.13l16.94,30.88l17.59,11.34l2.72-4.56l0.65-10.03l-1.42-6.25l-4.79-8.08l-2.85,0.91l-1.29,1.43l-5.69-6.52l1.42-7.69l6.6-4.3l-0.52-4.04l-6.72-0.26l-3.49-5.86l-1.94-0.65l0.13,3.52l-8.66,10.29l-6.47-1.56L225.03,349.52L225.03,349.52z\",\"name\":\"Peru\"},\"bo\":{\"path\":\"M258.71,372.79l8.23-3.59l2.72,0.26l1.81,7.56l12.54,4.17l2.07,6.39l5.17,0.65l2.2,5.47l-1.55,4.95l-8.41,0.65l-3.1,7.95l-6.6-0.13l-2.07-0.39l-3.81,3.7l-1.88-0.18l-6.47-14.99l1.79-2.68l0.63-10.6l-1.6-6.31L258.71,372.79L258.71,372.79z\",\"name\":\"Bolivia\"},\"py\":{\"path\":\"M291.76,399.51l2.2,2.4l-0.26,5.08l6.34-0.39l4.79,6.13l-0.39,5.47l-3.1,4.69l-6.34,0.26l-0.26-2.61l1.81-4.3l-6.21-3.91h-5.17l-3.88-4.17l2.82-8.06L291.76,399.51L291.76,399.51z\",\"name\":\"Paraguay\"},\"uy\":{\"path\":\"M300.36,431.93l-2.05,2.19l0.85,11.78l6.44,1.87l8.19-8.21L300.36,431.93L300.36,431.93z\",\"name\":\"Uruguay\"},\"ar\":{\"path\":\"M305.47,418.2l1.94,1.82l-7.37,10.95l-2.59,2.87l0.9,12.51l5.69,6.91l-4.78,8.34l-3.62,1.56h-4.14l1.16,6.51l-6.47,2.22l1.55,5.47l-3.88,12.38l4.79,3.91l-2.59,6.38l-4.4,6.91l2.33,4.82l-5.69,0.91l-4.66-5.73l-0.78-17.85l-7.24-30.32l2.19-10.6l-4.66-13.55l3.1-17.59l2.85-3.39l-0.7-2.57l3.66-3.34l8.16,0.56l4.56,4.87l5.27,0.09l5.4,3.3l-1.59,3.72l0.38,3.76l7.65-0.36L305.47,418.2L305.47,418.2M288.92,518.79l0.26,5.73l4.4-0.39l3.75-2.48l-6.34-1.3L288.92,518.79L288.92,518.79z\",\"name\":\"Argentina\"},\"cl\":{\"path\":\"M285.04,514.1l-4.27,9.38l7.37,0.78l0.13-6.25L285.04,514.1L285.04,514.1M283.59,512.63l-3.21,3.55l-0.39,4.17l-6.21-3.52l-6.6-9.51l-1.94-3.39l2.72-3.52l-0.26-4.43l-3.1-1.3l-2.46-1.82l0.52-2.48l3.23-0.91l0.65-14.33l-5.04-2.87l-3.29-74.59l0.85-1.48l6.44,14.85l2.06,0.04l0.67,2.37l-2.74,3.32l-3.15,17.87l4.48,13.76l-2.07,10.42l7.3,30.64l0.77,17.92l5.23,6.05L283.59,512.63L283.59,512.63M262.28,475.14l-1.29,1.95l0.65,3.39l1.29,0.13l0.65-4.3L262.28,475.14L262.28,475.14z\",\"name\":\"Chile\"},\"br\":{\"path\":\"M314.24,438.85l6.25-12.02l0.23-10.1l11.66-7.52h6.53l5.13-8.69l0.93-16.68l-2.1-4.46l12.36-11.28l0.47-12.45l-16.79-8.22l-20.28-6.34l-9.56-0.94l2.57-5.4l-0.7-8.22l-2.09-0.69l-3.09,6.14l-1.62,2.03l-4.16-1.84l-13.99,4.93l-4.66-5.87l0.75-6.13l-4.4,4.48l-4.86-2.62l-0.49,0.69l0.01,2.13l4.19,2.25l-6.29,6.63l-3.97-0.04l-4.02-4.09l-4.55,0.14l-0.56,4.86l2.61,3.17l-3.08,9.87l-3.6,0.28l-5.73,3.62l-1.4,7.11l4.97,5.32l0.91-1.03l3.49-0.94l2.98,5.02l8.53-3.66l3.31,0.19l2.28,8.07l12.17,3.86l2.1,6.44l5.18,0.62l2.47,6.15l-1.67,5.47l2.18,2.86l-0.32,4.26l5.84-0.55l5.35,6.76l-0.42,4.75l3.17,2.68l-7.6,11.51L314.24,438.85L314.24,438.85z\",\"name\":\"Brazil\"},\"bz\":{\"path\":\"M204.56,282.4l-0.05,3.65h0.84l2.86-5.34h-1.94L204.56,282.4L204.56,282.4z\",\"name\":\"Belize\"},\"mn\":{\"path\":\"M673.8,170.17l5.82-7.72l6.99,3.23l4.75,1.27l5.82-5.34l-3.95-2.91l2.6-3.67l7.76,2.74l2.69,4.41l4.86,0.13l2.54-1.89l5.23-0.21l1.14,1.94l8.69,0.44l5.5-5.61l7.61,0.8l-0.44,7.64l3.33,0.76l4.09-1.86l4.33,2.14l-0.1,1.08l-3.14,0.09l-3.27,6.86l-2.54,0.25l-9.88,12.91l-10.09,4.45l-6.31,0.49l-5.24-3.38l-6.7,3.58l-6.6-2.05l-1.87-4.79l-12.5-0.88l-6.4-10.85l-3.11-0.2L673.8,170.17L673.8,170.17z\",\"name\":\"Mongolia\"},\"kp\":{\"path\":\"M778.28,194.27l1.84,0.77l0.56,6.44l3.65,0.21l3.44-4.03l-1.19-1.06l0.14-4.32l3.16-3.82l-1.61-2.9l1.05-1.2l0.58-3l-1.83-0.83l-1.56,0.79l-1.93,5.86l-3.12-0.27l-3.61,4.26L778.28,194.27L778.28,194.27z\",\"name\":\"North Korea\"},\"kr\":{\"path\":\"M788.34,198.2l6.18,5.04l1.05,4.88l-0.21,2.62l-3.02,3.4l-2.6,0.14l-2.95-6.37l-1.12-3.04l1.19-0.92l-0.28-1.27l-1.47-0.66L788.34,198.2L788.34,198.2z\",\"name\":\"South Korea\"},\"kz\":{\"path\":\"M576.69,188.62l4.1-1.75l4.58-0.16l0.32,7h-2.68l-2.05,3.34l2.68,4.45l3.95,2.23l0.36,2.55l1.45-0.48l1.34-1.59l2.21,0.48l1.11,2.23h2.84v-2.86l-1.74-5.09l-0.79-4.13l5.05-2.23l6.79,1.11l4.26,4.29l9.63-0.95l5.37,7.63l6.31,0.32l1.74-2.86l2.21-0.48l0.32-3.18l3.31-0.16l1.74,2.07l1.74-4.13l14.99,2.07l2.52-3.34l-4.26-5.25l5.68-12.4l4.58,0.32l3.16-7.63l-6.31-0.64l-3.63-3.5l-10,1.16l-12.88-12.45l-4.54,4.03l-13.77-6.25l-16.89,8.27l-0.47,5.88l3.95,4.61l-7.7,4.35l-9.99-0.22l-2.09-3.07l-7.83-0.43l-7.42,4.77l-0.16,6.52L576.69,188.62L576.69,188.62z\",\"name\":\"Kazakhstan\"},\"tm\":{\"path\":\"M593.85,207.59l-0.62,2.63h-4.15v3.56l4.46,2.94l-1.38,4.03v1.86l1.85,0.31l2.46-3.25l5.54-1.24l11.84,4.49l0.15,3.25l6.61,0.62l7.38-7.75l-0.92-2.48l-4.92-1.08l-13.84-8.99l-0.62-3.25h-5.23l-2.31,4.34h-2.31L593.85,207.59L593.85,207.59z\",\"name\":\"Turkmenistan\"},\"uz\":{\"path\":\"M628.92,219.06l3.08,0.16v-5.27l-2.92-1.7l4.92-6.2h2l2,2.33l5.23-2.01l-7.23-2.48l-0.28-1.5l-1.72,0.42l-1.69,2.94l-7.29-0.24l-5.35-7.57l-9.4,0.93l-4.48-4.44l-6.2-1.05l-4.5,1.83l2.61,8.68l0.03,2.92l1.9,0.04l2.33-4.44l6.2,0.08l0.92,3.41l13.29,8.82l5.14,1.18L628.92,219.06L628.92,219.06z\",\"name\":\"Uzbekistan\"},\"tj\":{\"path\":\"M630.19,211.84l4.11-5.1h1.55l0.54,1.14l-1.9,1.38v1.14l1.25,0.9l6.01,0.36l1.96-0.84l0.89,0.18l0.6,1.92l3.57,0.36l1.79,3.78l-0.54,1.14l-0.71,0.06l-0.71-1.44l-1.55-0.12l-2.68,0.36l-0.18,2.52l-2.68-0.18l0.12-3.18l-1.96-1.92l-2.98,2.46l0.06,1.62l-2.62,0.9h-1.55l0.12-5.58L630.19,211.84L630.19,211.84z\",\"name\":\"Tajikistan\"},\"kg\":{\"path\":\"M636.81,199.21l-0.31,2.53l0.25,1.56l8.7,2.92l-7.64,3.08l-0.87-0.72l-1.65,1.06l0.08,0.58l0.88,0.4l5.36,0.14l2.72-0.82l3.49-4.4l4.37,0.76l5.27-7.3l-14.1-1.92l-1.95,4.73l-2.46-2.64L636.81,199.21L636.81,199.21z\",\"name\":\"Kyrgyz Republic\"},\"af\":{\"path\":\"M614.12,227.05l1.59,12.46l3.96,0.87l0.37,2.24l-2.84,2.37l5.29,4.27l10.28-3.7l0.82-4.38l6.47-4.04l2.48-9.36l1.85-1.99l-1.92-3.34l6.26-3.87l-0.8-1.12l-2.89,0.18l-0.26,2.66l-3.88-0.04l-0.07-3.55l-1.25-1.49l-2.1,1.91l0.06,1.75l-3.17,1.2l-5.85-0.37l-7.6,7.96L614.12,227.05L614.12,227.05z\",\"name\":\"Afghanistan\"},\"pk\":{\"path\":\"M623.13,249.84l2.6,3.86l-0.25,1.99l-3.46,1.37l-0.25,3.24h3.96l1.36-1.12h7.54l6.8,5.98l0.87-2.87h5.07l0.12-3.61l-5.19-4.98l1.11-2.74l5.32-0.37l7.17-14.95l-3.96-3.11l-1.48-5.23l9.64-0.87l-5.69-8.1l-3.03-0.82l-1.24,1.5l-0.93,0.07l-5.69,3.61l1.86,3.12l-2.1,2.24l-2.6,9.59l-6.43,4.11l-0.87,4.49L623.13,249.84L623.13,249.84z\",\"name\":\"Pakistan\"},\"in\":{\"path\":\"M670.98,313.01l4.58-2.24l2.72-9.84l-0.12-12.08l15.58-16.82v-3.99l3.21-1.25l-0.12-4.61l-3.46-6.73l1.98-3.61l4.33,3.99l5.56,0.25v2.24l-1.73,1.87l0.37,1l2.97,0.12l0.62,3.36h0.87l2.23-3.99l1.11-10.46l3.71-2.62l0.12-3.61l-1.48-2.87l-2.35-0.12l-9.2,6.08l0.58,3.91l-6.46-0.02l-2.28-2.79l-1.24,0.16l0.42,3.88l-13.97-1l-8.66-3.86l-0.46-4.75l-5.77-3.58l-0.07-7.37l-3.96-4.53l-9.1,0.87l0.99,3.96l4.46,3.61l-7.71,15.78l-5.16,0.39l-0.85,1.9l5.08,4.7l-0.25,4.75l-5.19-0.08l-0.56,2.36l4.31-0.19l0.12,1.87l-3.09,1.62l1.98,3.74l3.83,1.25l2.35-1.74l1.11-3.11l1.36-0.62l1.61,1.62l-0.49,3.99l-1.11,1.87l0.25,3.24L670.98,313.01L670.98,313.01z\",\"name\":\"India\"},\"np\":{\"path\":\"M671.19,242.56l0.46,4.27l8.08,3.66l12.95,0.96l-0.49-3.13l-8.65-2.38l-7.34-4.37L671.19,242.56L671.19,242.56z\",\"name\":\"Nepal\"},\"bt\":{\"path\":\"M695.4,248.08l1.55,2.12l5.24,0.04l-0.53-2.9L695.4,248.08L695.4,248.08z\",\"name\":\"Bhutan\"},\"bd\":{\"path\":\"M695.57,253.11l-1.31,2.37l3.4,6.46l0.1,5.04l0.62,1.35l3.99,0.07l2.26-2.17l1.64,0.99l0.33,3.07l1.31-0.82l0.08-3.92l-1.1-0.13l-0.69-3.33l-2.78-0.1l-0.69-1.85l1.7-2.27l0.03-1.12h-4.94L695.57,253.11L695.57,253.11z\",\"name\":\"Bangladesh\"},\"mm\":{\"path\":\"M729.44,303.65l-2.77-4.44l2.01-2.82l-1.9-3.49l-1.79-0.34l-0.34-5.86l-2.68-5.19l-0.78,1.24l-1.79,3.04l-2.24,0.34l-1.12-1.47l-0.56-3.95l-1.68-3.16l-6.84-6.45l1.68-1.11l0.31-4.67l2.5-4.2l1.08-10.45l3.62-2.47l0.12-3.81l2.17,0.72l3.42,4.95l-2.54,5.44l1.71,4.27l4.23,1.66l0.77,4.65l5.68,0.88l-1.57,2.71l-7.16,2.82l-0.78,4.62l5.26,6.76l0.22,3.61l-1.23,1.24l0.11,1.13l3.92,5.75l0.11,5.97L729.44,303.65L729.44,303.65z\",\"name\":\"Myanmar\"},\"th\":{\"path\":\"M730.03,270.47l3.24,4.17v5.07l1.12,0.56l5.15-2.48l1.01,0.34l6.15,7.1l-0.22,4.85l-2.01-0.34l-1.79-1.13l-1.34,0.11l-2.35,3.94l0.45,2.14l1.9,1.01l-0.11,2.37l-1.34,0.68l-4.59-3.16v-2.82l-1.9-0.11l-0.78,1.24l-0.4,12.62l2.97,5.42l5.26,5.07l-0.22,1.47l-2.8-0.11l-2.57-3.83h-2.69l-3.36-2.71l-1.01-2.82l1.45-2.37l0.5-2.14l1.58-2.8l-0.07-6.44l-3.86-5.58l-0.16-0.68l1.25-1.26l-0.29-4.43l-5.14-6.51l0.6-3.75L730.03,270.47L730.03,270.47z\",\"name\":\"Thailand\"},\"kh\":{\"path\":\"M740.48,299.47l4.09,4.37l7.61-5.64l0.67-8.9l-3.93,2.71l-2.04-1.14l-2.77-0.37l-1.55-1.09l-0.75,0.04l-2.03,3.33l0.33,1.54l2.06,1.15l-0.25,3.13L740.48,299.47L740.48,299.47z\",\"name\":\"Cambodia\"},\"la\":{\"path\":\"M735.47,262.93l-2.42,1.23l-2.01,5.86l3.36,4.28l-0.56,4.73l0.56,0.23l5.59-2.71l7.5,8.38l-0.18,5.28l1.63,0.88l4.03-3.27l-0.33-2.59l-11.63-11.05l0.11-1.69l1.45-1.01l-1.01-2.82l-4.81-0.79L735.47,262.93L735.47,262.93z\",\"name\":\"Lao People's Democratic Republic\"},\"vn\":{\"path\":\"M745.06,304.45l1.19,1.87l0.22,2.14l3.13,0.34l3.8-5.07l3.58-1.01l1.9-5.18l-0.89-8.34l-3.69-5.07l-3.89-3.11l-4.95-8.5l3.55-5.94l-5.08-5.83l-4.07-0.18l-3.66,1.97l1.09,4.71l4.88,0.86l1.31,3.63l-1.72,1.12l0.11,0.9l11.45,11.2l0.45,3.29l-0.69,10.4L745.06,304.45L745.06,304.45z\",\"name\":\"Vietnam\"},\"ge\":{\"path\":\"M555.46,204.16l3.27,4.27l4.08,1.88l2.51-0.01l4.31-1.17l1.08-1.69l-12.75-4.77L555.46,204.16L555.46,204.16z\",\"name\":\"Georgia\"},\"am\":{\"path\":\"M569.72,209.89l4.8,6.26l-1.41,1.65l-3.4-0.59l-4.22-3.78l0.23-2.48L569.72,209.89L569.72,209.89z\",\"name\":\"Armenia\"},\"az\":{\"path\":\"M571.41,207.72l-1.01,1.72l4.71,6.18l1.64-0.53l2.7,2.83l1.17-4.96l2.93,0.47l-0.12-1.42l-4.82-4.22l-0.92,2.48L571.41,207.72L571.41,207.72z\",\"name\":\"Azerbaijan\"},\"ir\":{\"path\":\"M569.65,217.95l-1.22,1.27l0.12,2.01l1.52,2.13l5.39,5.9l-0.82,2.36h-0.94l-0.47,2.36l3.05,3.9l2.81,0.24l5.63,7.79l3.16,0.24l2.46,1.77l0.12,3.54l9.73,5.67h3.63l2.23-1.89l2.81-0.12l1.64,3.78l10.51,1.46l0.31-3.86l3.48-1.26l0.16-1.38l-2.77-3.78l-6.17-4.96l3.24-2.95l-0.23-1.3l-4.06-0.63l-1.72-13.7l-0.2-3.15l-11.01-4.21l-4.88,1.1l-2.73,3.35l-2.42-0.16l-0.7,0.59l-5.39-0.35l-6.8-4.96l-2.53-2.77l-1.16,0.28l-2.09,2.39L569.65,217.95L569.65,217.95z\",\"name\":\"Iran\"},\"tr\":{\"path\":\"M558.7,209.19l-2.23,2.36l-8.2-0.24l-4.92-2.95l-4.8-0.12l-5.51,3.9l-5.16,0.24l-0.47,2.95h-5.86l-2.34,2.13v1.18l1.41,1.18v1.3l-0.59,1.54l0.59,1.3l1.88-0.94l1.88,2.01l-0.47,1.42l-0.7,0.95l1.05,1.18l5.16,1.06l3.63-1.54v-2.24l1.76,0.35l4.22,2.48l4.57-0.71l1.99-1.89l1.29,0.47v2.13h1.76l1.52-2.95l13.36-1.42l5.83-0.71l-1.54-2.02l-0.03-2.73l1.17-1.4l-4.26-3.42l0.23-2.95h-2.34L558.7,209.19L558.7,209.19M523.02,209.7l-0.16,3.55l3.1-0.95l1.42-0.95l-0.42-1.54l-1.47-1.17L523.02,209.7L523.02,209.7z\",\"name\":\"Turkey\"},\"om\":{\"path\":\"M598.38,280.84l7.39-4.26l1.31-6.25l-1.62-0.93l0.67-6.7l1.41-0.82l1.51,2.37l8.99,4.7v2.61l-10.89,16.03l-5.01,0.17L598.38,280.84L598.38,280.84z\",\"name\":\"Oman\"},\"ae\":{\"path\":\"M594.01,264.94l0.87,3.48l9.86,0.87l0.69-7.14l1.9-1.04l0.52-2.61l-3.11,0.87l-3.46,5.23L594.01,264.94L594.01,264.94z\",\"name\":\"United Arab Emirates\"},\"qa\":{\"path\":\"M592.63,259.02l-0.52,4.01l1.54,1.17l1.4-0.13l0.52-5.05l-1.21-0.87L592.63,259.02L592.63,259.02z\",\"name\":\"Qatar\"},\"kw\":{\"path\":\"M583.29,247.17l-2.25-1.22l-1.56,1.57l0.17,3.14l3.63,1.39L583.29,247.17L583.29,247.17z\",\"name\":\"Kuwait\"},\"sa\":{\"path\":\"M584,253.24l7.01,9.77l2.26,1.8l1.01,4.38l10.79,0.85l1.22,0.64l-1.21,5.4l-7.09,4.18l-10.37,3.14l-5.53,5.4l-6.57-3.83l-3.98,3.48L566,279.4l-3.8-1.74l-1.38-2.09v-4.53l-13.83-16.72l-0.52-2.96h3.98l4.84-4.18l0.17-2.09l-1.38-1.39l2.77-2.26l5.88,0.35l10.03,8.36l5.92-0.27l0.38,1.46L584,253.24L584,253.24z\",\"name\":\"Saudi Arabia\"},\"sy\":{\"path\":\"M546.67,229.13l-0.35,2.54l2.82,1.18l-0.12,7.04l2.82-0.06l2.82-2.13l1.06-0.18l6.4-5.09l1.29-7.39l-12.79,1.3l-1.35,2.96L546.67,229.13L546.67,229.13z\",\"name\":\"Syrian Arab Republic\"},\"iq\":{\"path\":\"M564.31,225.03l-1.56,7.71l-6.46,5.38l0.41,2.54l6.31,0.43l10.05,8.18l5.62-0.16l0.15-1.89l2.06-2.21l2.88,1.63l0.38-0.36l-5.57-7.41l-2.64-0.16l-3.51-4.51l0.7-3.32l1.07-0.14l0.37-1.47l-4.78-5.03L564.31,225.03L564.31,225.03z\",\"name\":\"Iraq\"},\"jo\":{\"path\":\"M548.9,240.78l-2.46,8.58l-0.11,1.31h3.87l4.33-3.82l0.11-1.45l-1.77-1.81l3.17-2.63l-0.46-2.44l-0.87,0.2l-2.64,1.89L548.9,240.78L548.9,240.78z\",\"name\":\"Jordan\"},\"lb\":{\"path\":\"M546.2,232.44l0.06,1.95l-0.82,2.96l2.82,0.24l0.18-4.2L546.2,232.44L546.2,232.44z\",\"name\":\"Lebanon\"},\"il\":{\"path\":\"M545.32,238.06l-1.58,5.03l2.05,6.03l2.35-8.81v-1.89L545.32,238.06L545.32,238.06z\",\"name\":\"Israel\"},\"cy\":{\"path\":\"M543.21,229.84l1.23,0.89l-3.81,3.61l-1.82-0.06l-1.35-0.95l0.18-1.77l2.76-0.18L543.21,229.84L543.21,229.84z\",\"name\":\"Cyprus\"},\"gb\":{\"path\":\"M446.12,149.08l-1.83,2.77l0.73,1.11h4.22v1.85l-1.1,1.48l0.73,3.88l2.38,4.62l1.83,4.25l2.93,1.11l1.28,2.22l-0.18,2.03l-1.83,1.11l-0.18,0.92l1.28,0.74l-1.1,1.48l-2.57,1.11l-4.95-0.55l-7.71,3.51l-2.57-1.29l7.34-4.25l-0.92-0.55l-3.85-0.37l2.38-3.51l0.37-2.96l3.12-0.37l-0.55-5.73l-3.67-0.18l-1.1-1.29l0.18-4.25l-2.2,0.18l2.2-7.39l4.04-2.96L446.12,149.08L446.12,149.08M438.42,161.47l-3.3,0.37l-0.18,2.96l2.2,1.48l2.38-0.55l0.92-1.66L438.42,161.47L438.42,161.47z\",\"name\":\"United Kingdom\"},\"ie\":{\"path\":\"M439.51,166.55l-0.91,6l-8.07,2.96h-2.57l-1.83-1.29v-1.11l4.04-2.59l-1.1-2.22l0.18-3.14l3.49,0.18l1.6-3.76l-0.21,3.34l2.71,2.15L439.51,166.55L439.51,166.55z\",\"name\":\"Ireland\"},\"se\":{\"path\":\"M497.72,104.58l1.96,1.81h3.67l2.02,3.88l0.55,6.65l-4.95,3.51v3.51l-3.49,4.81l-2.02,0.18l-2.75,4.62l0.18,4.44l4.77,3.51l-0.37,2.03l-1.83,2.77l-2.75,2.4l0.18,7.95l-4.22,1.48l-1.47,3.14h-2.02l-1.1-5.54l-4.59-7.04l3.77-6.31l0.26-15.59l2.6-1.43l0.63-8.92l7.41-10.61L497.72,104.58L497.72,104.58M498.49,150.17l-2.11,1.67l1.06,2.45l1.87-1.82L498.49,150.17L498.49,150.17z\",\"name\":\"Sweden\"},\"fi\":{\"path\":\"M506.79,116.94l2.07,0.91l1.28,2.4l-1.28,1.66l-6.42,7.02l-1.1,3.7l1.47,5.36l4.95,3.7l6.6-3.14l5.32-0.74l4.95-7.95l-3.67-8.69l-3.49-8.32l0.55-5.36l-2.2-0.37l-0.57-3.91l-2.96-4.83l-3.28,2.27l-1.29,5.27l-3.48-2.09l-4.84-1.18l-1.08,1.26l1.86,1.68l3.39-0.06l2.73,4.41L506.79,116.94L506.79,116.94z\",\"name\":\"Finland\"},\"lv\":{\"path\":\"M518.07,151.37l-6.85-1.11l0.15,3.83l6.35,3.88l2.6-0.76l-0.15-2.92L518.07,151.37L518.07,151.37z\",\"name\":\"Latvia\"},\"lt\":{\"path\":\"M510.81,154.7l-2.15-0.05l-2.95,2.82h-2.5l0.15,3.53l-1.5,2.77l5.4,0.05l1.55-0.2l1.55,1.87l3.55-0.15l3.4-4.33l-0.2-2.57L510.81,154.7L510.81,154.7z\",\"name\":\"Lithuania\"},\"by\":{\"path\":\"M510.66,166.29l1.5,2.47l-0.6,1.97l0.1,1.56l0.55,1.87l3.1-1.76l3.85,0.1l2.7,1.11h6.85l2-4.79l1.2-1.81v-1.21l-4.3-6.05l-3.8-1.51l-3.1-0.35l-2.7,0.86l0.1,2.72l-3.75,4.74L510.66,166.29L510.66,166.29z\",\"name\":\"Belarus\"},\"pl\":{\"path\":\"M511.46,174.76l0.85,1.56l0.2,1.66l-0.7,1.61l-1.6,3.08l-1.35,0.61l-1.75-0.76l-1.05,0.05l-2.55,0.96l-2.9-0.86l-4.7-3.33l-4.6-2.47l-1.85-2.82l-0.35-6.65l3.6-3.13l4.7-1.56l1.75-0.2l-0.7,1.41l0.45,0.55l7.91,0.15l1.7-0.05l2.8,4.29l-0.7,1.76l0.3,2.07L511.46,174.76L511.46,174.76z\",\"name\":\"Poland\"},\"it\":{\"path\":\"M477.56,213.38l-2.65,1.34l0.35,5.17l2.12,0.36l1.59-1.52v-4.9L477.56,213.38L477.56,213.38M472.27,196.98l-0.62,1.57l0.17,1.71l2.39,2.79l3.76-0.13l8.3,9.64l5.18,1.5l3.06,2.89l0.73,6.59l1.64-0.96l1.42-3.59l-0.35-2.58l2.43-0.22l0.35-1.46l-6.85-3.28l-6.5-6.39l-2.59-3.82l-0.63-3.63l3.31-0.79l-0.85-2.39l-2.03-1.71l-1.75-0.08l-2.44,0.67l-2.3,3.22l-1.39,0.92l-2.15-1.32L472.27,196.98L472.27,196.98M492.44,223.02l-1.45-0.78l-4.95,0.78l0.17,1.34l4.45,2.24l0.67,0.73l1.17,0.17L492.44,223.02L492.44,223.02z\",\"name\":\"Italy\"},\"fr\":{\"path\":\"M477.83,206.96l-1.95,1.96l-0.18,1.78l1.59,0.98l0.62-0.09l0.35-2.59L477.83,206.96L477.83,206.96M460.4,178.7l-2.21,0.54l-4.42,4.81l-1.33,0.09l-1.77-1.25l-1.15,0.27l-0.88,2.76l-6.46,0.18l0.18,1.43l4.42,2.94l5.13,4.1l-0.09,4.9l-2.74,4.81l5.93,2.85l6.02,0.18l1.86-2.14l3.8,0.09l1.06,0.98l3.8-0.27l1.95-2.5l-2.48-2.94l-0.18-1.87l0.53-2.05l-1.24-1.78l-2.12,0.62l-0.27-1.6l4.69-5.17v-3.12l-3.1-1.78l-1.59-0.27L460.4,178.7L460.4,178.7z\",\"name\":\"France\"},\"nl\":{\"path\":\"M470.09,168.27l-4.53,2.23l0.96,0.87l0.1,2.23l-0.96-0.19l-1.06-1.65l-2.53,4.01l3.89,0.81l1.45,1.53l0.77,0.02l0.51-3.46l2.45-1.03L470.09,168.27L470.09,168.27z\",\"name\":\"Netherlands\"},\"be\":{\"path\":\"M461.61,176.52l-0.64,1.6l6.88,4.54l1.98,0.47l0.07-2.15l-1.73-1.94h-1.06l-1.45-1.65L461.61,176.52L461.61,176.52z\",\"name\":\"Belgium\"},\"de\":{\"path\":\"M471.14,167.88l3.57-0.58v-2.52l2.99-0.49l1.64,1.65l1.73,0.19l2.7-1.17l2.41,0.68l2.12,1.84l0.29,6.89l2.12,2.82l-2.79,0.39l-4.63,2.91l0.39,0.97l4.14,3.88l-0.29,1.94l-3.85,1.94l-3.57,0.1l-0.87,1.84h-1.83l-0.87-1.94l-3.18-0.78l-0.1-3.2l-2.7-1.84l0.29-2.33l-1.83-2.52l0.48-3.3l2.5-1.17L471.14,167.88L471.14,167.88z\",\"name\":\"Germany\"},\"dk\":{\"path\":\"M476.77,151.5l-4.15,4.59l-0.15,2.99l1.89,4.93l2.96-0.56l-0.37-4.03l2.04-2.28l-0.04-1.79l-1.44-3.73L476.77,151.5L476.77,151.5M481.44,159.64l-0.93-0.04l-1.22,1.12l0.15,1.75l2.89,0.08l0.15-1.98L481.44,159.64L481.44,159.64z\",\"name\":\"Denmark\"},\"ch\":{\"path\":\"M472.91,189.38l-4.36,4.64l0.09,0.47l1.79-0.56l1.61,2.24l2.72-0.96l1.88,1.46l0.77-0.44l2.32-3.64l-0.59-0.56l-2.29-0.06l-1.11-2.27L472.91,189.38L472.91,189.38z\",\"name\":\"Switzerland\"},\"cz\":{\"path\":\"M488.43,184.87h2.97h1.46l2.37,1.69l4.39-3.65l-4.26-3.04l-4.22-2.04l-2.89,0.52l-3.92,2.52L488.43,184.87L488.43,184.87z\",\"name\":\"Czech Republic\"},\"sk\":{\"path\":\"M495.84,187.13l0.69,0.61l0.09,1.04l7.63-0.17l5.64-2.43l-0.09-2.47l-1.08,0.48l-1.55-0.83l-0.95-0.04l-2.5,1l-3.4-0.82L495.84,187.13L495.84,187.13z\",\"name\":\"Slovakia\"},\"at\":{\"path\":\"M480.63,190.12l-0.65,1.35l0.56,0.96l2.33-0.48h1.98l2.15,1.82l4.57-0.83l3.36-2l0.86-1.35l-0.13-1.74l-3.02-2.26l-4.05,0.04l-0.34,2.3l-4.26,2.08L480.63,190.12L480.63,190.12z\",\"name\":\"Austria\"},\"hu\":{\"path\":\"M496.74,189.6l-1.16,1.82l0.09,2.78l1.85,0.95l5.69,0.17l7.93-6.68l0.04-1.48l-0.86-0.43l-5.73,2.6L496.74,189.6L496.74,189.6z\",\"name\":\"Hungary\"},\"si\":{\"path\":\"M494.8,191.99l-2.54,1.52l-4.74,1.04l0.95,2.74l3.32,0.04l3.06-2.56L494.8,191.99L494.8,191.99z\",\"name\":\"Slovenia\"},\"hr\":{\"path\":\"M495.62,195.16l-3.53,2.91h-3.58l-0.43,2.52l1.64,0.43l0.82-1.22l1.29,1.13l1.03,3.6l7.07,3.3l0.7-0.8l-7.17-7.4l0.73-1.35l6.81-0.26l0.69-2.17l-4.44,0.13L495.62,195.16L495.62,195.16z\",\"name\":\"Croatia\"},\"ba\":{\"path\":\"M494.8,198.94l-0.37,0.61l6.71,6.92l2.46-3.62l-0.09-1.43l-2.15-2.61L494.8,198.94L494.8,198.94z\",\"name\":\"Bosnia and Herzegovina\"},\"mt\":{\"path\":\"M492.61,230.47l-1.67,0.34l0.06,1.85l1.5,0.5l0.67-0.56L492.61,230.47L492.61,230.47z\",\"name\":\"Malta\"},\"ua\":{\"path\":\"M515.57,173.15l-2.9,1.63l0.72,3.08l-2.68,5.65l0.02,2.49l1.26,0.8l8.08,0.4l2.26-1.87l2.42,0.81l3.47,4.63l-2.54,4.56l3.02,0.88l3.95-4.55l2.26,0.41l2.1,1.46l-1.85,2.44l2.5,3.9h2.66l1.37-2.6l2.82-0.57l0.08-2.11l-5.24-0.81l0.16-2.27h5.08l5.48-4.39l2.42-2.11l0.4-6.66l-10.8-0.97l-4.43-6.25l-3.06-1.05l-3.71,0.16l-1.67,4.13l-7.6,0.1l-2.47-1.14L515.57,173.15L515.57,173.15z\",\"name\":\"Ukraine\"},\"md\":{\"path\":\"M520.75,187.71l3.1,4.77l-0.26,2.7l1.11,0.05l2.63-4.45l-3.16-3.92l-1.79-0.74L520.75,187.71L520.75,187.71z\",\"name\":\"Moldova\"},\"ro\":{\"path\":\"M512.18,187.6l-0.26,1.48l-5.79,4.82l4.84,7.1l3.1,2.17h5.58l1.84-1.54l2.47-0.32l1.84,1.11l3.26-3.71l-0.63-1.86l-3.31-0.85l-2.26-0.11l0.11-3.18l-3-4.72L512.18,187.6L512.18,187.6z\",\"name\":\"Romania\"},\"rs\":{\"path\":\"M505.55,194.54l-2.05,1.54h-1l-0.68,2.12l2.42,2.81l0.16,2.23l-3,4.24l0.42,1.27l1.74,0.32l1.37-1.86l0.74-0.05l1.26,1.22l3.84-1.17l-0.32-5.46L505.55,194.54L505.55,194.54z\",\"name\":\"Serbia\"},\"bg\":{\"path\":\"M511.44,202.39l0.16,4.98l1.68,3.5l6.31,0.11l2.84-2.01l2.79-1.11l-0.68-3.18l0.63-1.7l-1.42-0.74l-1.95,0.16l-1.53,1.54l-6.42,0.05L511.44,202.39L511.44,202.39z\",\"name\":\"Bulgaria\"},\"al\":{\"path\":\"M504.02,209.76v4.61l1.32,2.49l0.95-0.11l1.63-2.97l-0.95-1.33l-0.37-3.29l-1.26-1.17L504.02,209.76L504.02,209.76z\",\"name\":\"Albania\"},\"mk\":{\"path\":\"M510.92,208.01l-3.37,1.11l0.16,2.86l0.79,1.01l4-1.86L510.92,208.01L510.92,208.01z\",\"name\":\"Macedonia\"},\"gr\":{\"path\":\"M506.71,217.6l-0.11,1.33l4.63,2.33l2.21,0.85l-1.16,1.22l-2.58,0.26l-0.37,1.17l0.89,2.01l2.89,1.54l1.26,0.11l0.16-3.45l1.89-2.28l-5.16-6.1l0.68-2.07l1.21-0.05l1.84,1.48l1.16-0.58l0.37-2.07l5.42,0.05l0.21-3.18l-2.26,1.59l-6.63-0.16l-4.31,2.23L506.71,217.6L506.71,217.6M516.76,230.59l1.63,0.05l0.68,1.01h2.37l1.58-0.58l0.53,0.64l-1.05,1.38l-4.63,0.16l-0.84-1.11l-0.89-0.53L516.76,230.59L516.76,230.59z\",\"name\":\"Greece\"}}});// ----------- jqvmap.bundle.js END -------------\n// ----------- select2.bundle.js START -------------\n/*!\r\n * Select2 4.0.13\r\n * https://select2.github.io\r\n *\r\n * Released under the MIT license\r\n * https://github.com/select2/select2/blob/master/LICENSE.md\r\n */;(function(factory){if(true){// AMD. Register as an anonymous module.\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function(jQuery){// This is needed so we can catch the AMD loader configuration and use it\n// The inner file should be wrapped (by `banner.start.js`) in a function that\n// returns the AMD loader references.\nvar S2=function(){// Restore the Select2 AMD loader so it can be used\n// Needed mostly in the language files, where the loader is not inserted\nif(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd){var S2=jQuery.fn.select2.amd;}var S2;(function(){if(!S2||!S2.requirejs){if(!S2){S2={};}else{require=S2;}/**\r\n   * @license almond 0.3.3 Copyright jQuery Foundation and other contributors.\r\n   * Released under MIT license, http://github.com/requirejs/almond/LICENSE\r\n   */ //Going sloppy to avoid 'use strict' string cost, but strict practices should\n//be followed.\n/*global setTimeout: false */var requirejs,require,define;(function(undef){var main,req,makeMap,handlers,defined={},waiting={},config={},defining={},hasOwn=Object.prototype.hasOwnProperty,aps=[].slice,jsSuffixRegExp=/\\.js$/;function hasProp(obj,prop){return hasOwn.call(obj,prop);}/**\r\n       * Given a relative module name, like ./something, normalize it to\r\n       * a real name that can be mapped to a path.\r\n       * @param {String} name the relative name\r\n       * @param {String} baseName a real name that the name arg is relative\r\n       * to.\r\n       * @returns {String} normalized name\r\n       */function normalize(name,baseName){var nameParts,nameSegment,mapValue,foundMap,lastIndex,foundI,foundStarMap,starI,i,j,part,normalizedBaseParts,baseParts=baseName&&baseName.split(\"/\"),map=config.map,starMap=map&&map['*']||{};//Adjust any relative paths.\nif(name){name=name.split('/');lastIndex=name.length-1;// If wanting node ID compatibility, strip .js from end\n// of IDs. Have to do this here, and not in nameToUrl\n// because node allows either .js or non .js to map\n// to same file.\nif(config.nodeIdCompat&&jsSuffixRegExp.test(name[lastIndex])){name[lastIndex]=name[lastIndex].replace(jsSuffixRegExp,'');}// Starts with a '.' so need the baseName\nif(name[0].charAt(0)==='.'&&baseParts){//Convert baseName to array, and lop off the last part,\n//so that . matches that 'directory' and not name of the baseName's\n//module. For instance, baseName of 'one/two/three', maps to\n//'one/two/three.js', but we want the directory, 'one/two' for\n//this normalization.\nnormalizedBaseParts=baseParts.slice(0,baseParts.length-1);name=normalizedBaseParts.concat(name);}//start trimDots\nfor(i=0;i<name.length;i++){part=name[i];if(part==='.'){name.splice(i,1);i-=1;}else if(part==='..'){// If at the start, or previous value is still ..,\n// keep them so that when converted to a path it may\n// still work when converted to a path, even though\n// as an ID it is less than ideal. In larger point\n// releases, may be better to just kick out an error.\nif(i===0||i===1&&name[2]==='..'||name[i-1]==='..'){continue;}else if(i>0){name.splice(i-1,2);i-=2;}}}//end trimDots\nname=name.join('/');}//Apply map config if available.\nif((baseParts||starMap)&&map){nameParts=name.split('/');for(i=nameParts.length;i>0;i-=1){nameSegment=nameParts.slice(0,i).join(\"/\");if(baseParts){//Find the longest baseName segment match in the config.\n//So, do joins on the biggest to smallest lengths of baseParts.\nfor(j=baseParts.length;j>0;j-=1){mapValue=map[baseParts.slice(0,j).join('/')];//baseName segment has  config, find if it has one for\n//this name.\nif(mapValue){mapValue=mapValue[nameSegment];if(mapValue){//Match, update name to the new value.\nfoundMap=mapValue;foundI=i;break;}}}}if(foundMap){break;}//Check for a star map match, but just hold on to it,\n//if there is a shorter segment match later in a matching\n//config, then favor over this star map.\nif(!foundStarMap&&starMap&&starMap[nameSegment]){foundStarMap=starMap[nameSegment];starI=i;}}if(!foundMap&&foundStarMap){foundMap=foundStarMap;foundI=starI;}if(foundMap){nameParts.splice(0,foundI,foundMap);name=nameParts.join('/');}}return name;}function makeRequire(relName,forceSync){return function(){//A version of a require function that passes a moduleName\n//value for items that may need to\n//look up paths relative to the moduleName\nvar args=aps.call(arguments,0);//If first arg is not require('string'), and there is only\n//one arg, it is the array form without a callback. Insert\n//a null so that the following concat is correct.\nif(typeof args[0]!=='string'&&args.length===1){args.push(null);}return req.apply(undef,args.concat([relName,forceSync]));};}function makeNormalize(relName){return function(name){return normalize(name,relName);};}function makeLoad(depName){return function(value){defined[depName]=value;};}function callDep(name){if(hasProp(waiting,name)){var args=waiting[name];delete waiting[name];defining[name]=true;main.apply(undef,args);}if(!hasProp(defined,name)&&!hasProp(defining,name)){throw new Error('No '+name);}return defined[name];}//Turns a plugin!resource to [plugin, resource]\n//with the plugin being undefined if the name\n//did not have a plugin prefix.\nfunction splitPrefix(name){var prefix,index=name?name.indexOf('!'):-1;if(index>-1){prefix=name.substring(0,index);name=name.substring(index+1,name.length);}return[prefix,name];}//Creates a parts array for a relName where first part is plugin ID,\n//second part is resource ID. Assumes relName has already been normalized.\nfunction makeRelParts(relName){return relName?splitPrefix(relName):[];}/**\r\n       * Makes a name map, normalizing the name, and using a plugin\r\n       * for normalization if necessary. Grabs a ref to plugin\r\n       * too, as an optimization.\r\n       */makeMap=function(name,relParts){var plugin,parts=splitPrefix(name),prefix=parts[0],relResourceName=relParts[1];name=parts[1];if(prefix){prefix=normalize(prefix,relResourceName);plugin=callDep(prefix);}//Normalize according\nif(prefix){if(plugin&&plugin.normalize){name=plugin.normalize(name,makeNormalize(relResourceName));}else{name=normalize(name,relResourceName);}}else{name=normalize(name,relResourceName);parts=splitPrefix(name);prefix=parts[0];name=parts[1];if(prefix){plugin=callDep(prefix);}}//Using ridiculous property names for space reasons\nreturn{f:prefix?prefix+'!'+name:name,//fullName\nn:name,pr:prefix,p:plugin};};function makeConfig(name){return function(){return config&&config.config&&config.config[name]||{};};}handlers={require:function(name){return makeRequire(name);},exports:function(name){var e=defined[name];if(typeof e!=='undefined'){return e;}else{return defined[name]={};}},module:function(name){return{id:name,uri:'',exports:defined[name],config:makeConfig(name)};}};main=function(name,deps,callback,relName){var cjsModule,depName,ret,map,i,relParts,args=[],callbackType=typeof callback,usingExports;//Use name if no relName\nrelName=relName||name;relParts=makeRelParts(relName);//Call the callback to define the module, if necessary.\nif(callbackType==='undefined'||callbackType==='function'){//Pull out the defined dependencies and pass the ordered\n//values to the callback.\n//Default to [require, exports, module] if no deps\ndeps=!deps.length&&callback.length?['require','exports','module']:deps;for(i=0;i<deps.length;i+=1){map=makeMap(deps[i],relParts);depName=map.f;//Fast path CommonJS standard dependencies.\nif(depName===\"require\"){args[i]=handlers.require(name);}else if(depName===\"exports\"){//CommonJS module spec 1.1\nargs[i]=handlers.exports(name);usingExports=true;}else if(depName===\"module\"){//CommonJS module spec 1.1\ncjsModule=args[i]=handlers.module(name);}else if(hasProp(defined,depName)||hasProp(waiting,depName)||hasProp(defining,depName)){args[i]=callDep(depName);}else if(map.p){map.p.load(map.n,makeRequire(relName,true),makeLoad(depName),{});args[i]=defined[depName];}else{throw new Error(name+' missing '+depName);}}ret=callback?callback.apply(defined[name],args):undefined;if(name){//If setting exports via \"module\" is in play,\n//favor that over return value and exports. After that,\n//favor a non-undefined return value over exports use.\nif(cjsModule&&cjsModule.exports!==undef&&cjsModule.exports!==defined[name]){defined[name]=cjsModule.exports;}else if(ret!==undef||!usingExports){//Use the return value from the function.\ndefined[name]=ret;}}}else if(name){//May just be an object definition for the module. Only\n//worry about defining if have a module name.\ndefined[name]=callback;}};requirejs=require=req=function(deps,callback,relName,forceSync,alt){if(typeof deps===\"string\"){if(handlers[deps]){//callback in this case is really relName\nreturn handlers[deps](callback);}//Just return the module wanted. In this scenario, the\n//deps arg is the module name, and second arg (if passed)\n//is just the relName.\n//Normalize module name, if it contains . or ..\nreturn callDep(makeMap(deps,makeRelParts(callback)).f);}else if(!deps.splice){//deps is a config object, not an array.\nconfig=deps;if(config.deps){req(config.deps,config.callback);}if(!callback){return;}if(callback.splice){//callback is an array, which means it is a dependency list.\n//Adjust args if there are dependencies\ndeps=callback;callback=relName;relName=null;}else{deps=undef;}}//Support require(['a'])\ncallback=callback||function(){};//If relName is a function, it is an errback handler,\n//so remove it.\nif(typeof relName==='function'){relName=forceSync;forceSync=alt;}//Simulate async callback;\nif(forceSync){main(undef,deps,callback,relName);}else{//Using a non-zero value because of concern for what old browsers\n//do, and latest browsers \"upgrade\" to 4 if lower value is used:\n//http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#dom-windowtimers-settimeout:\n//If want a value immediately, use require('id') instead -- something\n//that works in almond on the global level, but not guaranteed and\n//unlikely to work in other AMD implementations.\nsetTimeout(function(){main(undef,deps,callback,relName);},4);}return req;};/**\r\n       * Just drops the config on the floor, but returns req in case\r\n       * the config return value is used.\r\n       */req.config=function(cfg){return req(cfg);};/**\r\n       * Expose module registry for debugging and tooling\r\n       */requirejs._defined=defined;define=function(name,deps,callback){if(typeof name!=='string'){throw new Error('See almond README: incorrect module build, no module name');}//This module may not have dependencies\nif(!deps.splice){//deps is not an array, so probably means\n//an object literal or factory function for\n//the value. Adjust args.\ncallback=deps;deps=[];}if(!hasProp(defined,name)&&!hasProp(waiting,name)){waiting[name]=[name,deps,callback];}};define.amd={jQuery:true};})();S2.requirejs=requirejs;S2.require=require;S2.define=define;}})();S2.define(\"almond\",function(){});/* global jQuery:false, $:false */S2.define('jquery',[],function(){var _$=jQuery||$;if(_$==null&&console&&console.error){console.error('Select2: An instance of jQuery or a jQuery-compatible library was not '+'found. Make sure that you are including jQuery before Select2 on your '+'web page.');}return _$;});S2.define('select2/utils',['jquery'],function($){var Utils={};Utils.Extend=function(ChildClass,SuperClass){var __hasProp={}.hasOwnProperty;function BaseConstructor(){this.constructor=ChildClass;}for(var key in SuperClass){if(__hasProp.call(SuperClass,key)){ChildClass[key]=SuperClass[key];}}BaseConstructor.prototype=SuperClass.prototype;ChildClass.prototype=new BaseConstructor();ChildClass.__super__=SuperClass.prototype;return ChildClass;};function getMethods(theClass){var proto=theClass.prototype;var methods=[];for(var methodName in proto){var m=proto[methodName];if(typeof m!=='function'){continue;}if(methodName==='constructor'){continue;}methods.push(methodName);}return methods;}Utils.Decorate=function(SuperClass,DecoratorClass){var decoratedMethods=getMethods(DecoratorClass);var superMethods=getMethods(SuperClass);function DecoratedClass(){var unshift=Array.prototype.unshift;var argCount=DecoratorClass.prototype.constructor.length;var calledConstructor=SuperClass.prototype.constructor;if(argCount>0){unshift.call(arguments,SuperClass.prototype.constructor);calledConstructor=DecoratorClass.prototype.constructor;}calledConstructor.apply(this,arguments);}DecoratorClass.displayName=SuperClass.displayName;function ctr(){this.constructor=DecoratedClass;}DecoratedClass.prototype=new ctr();for(var m=0;m<superMethods.length;m++){var superMethod=superMethods[m];DecoratedClass.prototype[superMethod]=SuperClass.prototype[superMethod];}var calledMethod=function(methodName){// Stub out the original method if it's not decorating an actual method\nvar originalMethod=function(){};if(methodName in DecoratedClass.prototype){originalMethod=DecoratedClass.prototype[methodName];}var decoratedMethod=DecoratorClass.prototype[methodName];return function(){var unshift=Array.prototype.unshift;unshift.call(arguments,originalMethod);return decoratedMethod.apply(this,arguments);};};for(var d=0;d<decoratedMethods.length;d++){var decoratedMethod=decoratedMethods[d];DecoratedClass.prototype[decoratedMethod]=calledMethod(decoratedMethod);}return DecoratedClass;};var Observable=function(){this.listeners={};};Observable.prototype.on=function(event,callback){this.listeners=this.listeners||{};if(event in this.listeners){this.listeners[event].push(callback);}else{this.listeners[event]=[callback];}};Observable.prototype.trigger=function(event){var slice=Array.prototype.slice;var params=slice.call(arguments,1);this.listeners=this.listeners||{};// Params should always come in as an array\nif(params==null){params=[];}// If there are no arguments to the event, use a temporary object\nif(params.length===0){params.push({});}// Set the `_type` of the first object to the event\nparams[0]._type=event;if(event in this.listeners){this.invoke(this.listeners[event],slice.call(arguments,1));}if('*'in this.listeners){this.invoke(this.listeners['*'],arguments);}};Observable.prototype.invoke=function(listeners,params){for(var i=0,len=listeners.length;i<len;i++){listeners[i].apply(this,params);}};Utils.Observable=Observable;Utils.generateChars=function(length){var chars='';for(var i=0;i<length;i++){var randomChar=Math.floor(Math.random()*36);chars+=randomChar.toString(36);}return chars;};Utils.bind=function(func,context){return function(){func.apply(context,arguments);};};Utils._convertData=function(data){for(var originalKey in data){var keys=originalKey.split('-');var dataLevel=data;if(keys.length===1){continue;}for(var k=0;k<keys.length;k++){var key=keys[k];// Lowercase the first letter\n// By default, dash-separated becomes camelCase\nkey=key.substring(0,1).toLowerCase()+key.substring(1);if(!(key in dataLevel)){dataLevel[key]={};}if(k==keys.length-1){dataLevel[key]=data[originalKey];}dataLevel=dataLevel[key];}delete data[originalKey];}return data;};Utils.hasScroll=function(index,el){// Adapted from the function created by @ShadowScripter\n// and adapted by @BillBarry on the Stack Exchange Code Review website.\n// The original code can be found at\n// http://codereview.stackexchange.com/q/13338\n// and was designed to be used with the Sizzle selector engine.\nvar $el=$(el);var overflowX=el.style.overflowX;var overflowY=el.style.overflowY;//Check both x and y declarations\nif(overflowX===overflowY&&(overflowY==='hidden'||overflowY==='visible')){return false;}if(overflowX==='scroll'||overflowY==='scroll'){return true;}return $el.innerHeight()<el.scrollHeight||$el.innerWidth()<el.scrollWidth;};Utils.escapeMarkup=function(markup){var replaceMap={'\\\\':'&#92;','&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;','\\'':'&#39;','/':'&#47;'};// Do not try to escape the markup if it's not a string\nif(typeof markup!=='string'){return markup;}return String(markup).replace(/[&<>\"'\\/\\\\]/g,function(match){return replaceMap[match];});};// Append an array of jQuery nodes to a given element.\nUtils.appendMany=function($element,$nodes){// jQuery 1.7.x does not support $.fn.append() with an array\n// Fall back to a jQuery object collection using $.fn.add()\nif($.fn.jquery.substr(0,3)==='1.7'){var $jqNodes=$();$.map($nodes,function(node){$jqNodes=$jqNodes.add(node);});$nodes=$jqNodes;}$element.append($nodes);};// Cache objects in Utils.__cache instead of $.data (see #4346)\nUtils.__cache={};var id=0;Utils.GetUniqueElementId=function(element){// Get a unique element Id. If element has no id,\n// creates a new unique number, stores it in the id\n// attribute and returns the new id.\n// If an id already exists, it simply returns it.\nvar select2Id=element.getAttribute('data-select2-id');if(select2Id==null){// If element has id, use it.\nif(element.id){select2Id=element.id;element.setAttribute('data-select2-id',select2Id);}else{element.setAttribute('data-select2-id',++id);select2Id=id.toString();}}return select2Id;};Utils.StoreData=function(element,name,value){// Stores an item in the cache for a specified element.\n// name is the cache key.\nvar id=Utils.GetUniqueElementId(element);if(!Utils.__cache[id]){Utils.__cache[id]={};}Utils.__cache[id][name]=value;};Utils.GetData=function(element,name){// Retrieves a value from the cache by its key (name)\n// name is optional. If no name specified, return\n// all cache items for the specified element.\n// and for a specified element.\nvar id=Utils.GetUniqueElementId(element);if(name){if(Utils.__cache[id]){if(Utils.__cache[id][name]!=null){return Utils.__cache[id][name];}return $(element).data(name);// Fallback to HTML5 data attribs.\n}return $(element).data(name);// Fallback to HTML5 data attribs.\n}else{return Utils.__cache[id];}};Utils.RemoveData=function(element){// Removes all cached items for a specified element.\nvar id=Utils.GetUniqueElementId(element);if(Utils.__cache[id]!=null){delete Utils.__cache[id];}element.removeAttribute('data-select2-id');};return Utils;});S2.define('select2/results',['jquery','./utils'],function($,Utils){function Results($element,options,dataAdapter){this.$element=$element;this.data=dataAdapter;this.options=options;Results.__super__.constructor.call(this);}Utils.Extend(Results,Utils.Observable);Results.prototype.render=function(){var $results=$('<ul class=\"select2-results__options\" role=\"listbox\"></ul>');if(this.options.get('multiple')){$results.attr('aria-multiselectable','true');}this.$results=$results;return $results;};Results.prototype.clear=function(){this.$results.empty();};Results.prototype.displayMessage=function(params){var escapeMarkup=this.options.get('escapeMarkup');this.clear();this.hideLoading();var $message=$('<li role=\"alert\" aria-live=\"assertive\"'+' class=\"select2-results__option\"></li>');var message=this.options.get('translations').get(params.message);$message.append(escapeMarkup(message(params.args)));$message[0].className+=' select2-results__message';this.$results.append($message);};Results.prototype.hideMessages=function(){this.$results.find('.select2-results__message').remove();};Results.prototype.append=function(data){this.hideLoading();var $options=[];if(data.results==null||data.results.length===0){if(this.$results.children().length===0){this.trigger('results:message',{message:'noResults'});}return;}data.results=this.sort(data.results);for(var d=0;d<data.results.length;d++){var item=data.results[d];var $option=this.option(item);$options.push($option);}this.$results.append($options);};Results.prototype.position=function($results,$dropdown){var $resultsContainer=$dropdown.find('.select2-results');$resultsContainer.append($results);};Results.prototype.sort=function(data){var sorter=this.options.get('sorter');return sorter(data);};Results.prototype.highlightFirstItem=function(){var $options=this.$results.find('.select2-results__option[aria-selected]');var $selected=$options.filter('[aria-selected=true]');// Check if there are any selected options\nif($selected.length>0){// If there are selected options, highlight the first\n$selected.first().trigger('mouseenter');}else{// If there are no selected options, highlight the first option\n// in the dropdown\n$options.first().trigger('mouseenter');}this.ensureHighlightVisible();};Results.prototype.setClasses=function(){var self=this;this.data.current(function(selected){var selectedIds=$.map(selected,function(s){return s.id.toString();});var $options=self.$results.find('.select2-results__option[aria-selected]');$options.each(function(){var $option=$(this);var item=Utils.GetData(this,'data');// id needs to be converted to a string when comparing\nvar id=''+item.id;if(item.element!=null&&item.element.selected||item.element==null&&$.inArray(id,selectedIds)>-1){$option.attr('aria-selected','true');}else{$option.attr('aria-selected','false');}});});};Results.prototype.showLoading=function(params){this.hideLoading();var loadingMore=this.options.get('translations').get('searching');var loading={disabled:true,loading:true,text:loadingMore(params)};var $loading=this.option(loading);$loading.className+=' loading-results';this.$results.prepend($loading);};Results.prototype.hideLoading=function(){this.$results.find('.loading-results').remove();};Results.prototype.option=function(data){var option=document.createElement('li');option.className='select2-results__option';var attrs={'role':'option','aria-selected':'false'};var matches=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;if(data.element!=null&&matches.call(data.element,':disabled')||data.element==null&&data.disabled){delete attrs['aria-selected'];attrs['aria-disabled']='true';}if(data.id==null){delete attrs['aria-selected'];}if(data._resultId!=null){option.id=data._resultId;}if(data.title){option.title=data.title;}if(data.children){attrs.role='group';attrs['aria-label']=data.text;delete attrs['aria-selected'];}for(var attr in attrs){var val=attrs[attr];option.setAttribute(attr,val);}if(data.children){var $option=$(option);var label=document.createElement('strong');label.className='select2-results__group';var $label=$(label);this.template(data,label);var $children=[];for(var c=0;c<data.children.length;c++){var child=data.children[c];var $child=this.option(child);$children.push($child);}var $childrenContainer=$('<ul></ul>',{'class':'select2-results__options select2-results__options--nested'});$childrenContainer.append($children);$option.append(label);$option.append($childrenContainer);}else{this.template(data,option);}Utils.StoreData(option,'data',data);return option;};Results.prototype.bind=function(container,$container){var self=this;var id=container.id+'-results';this.$results.attr('id',id);container.on('results:all',function(params){self.clear();self.append(params.data);if(container.isOpen()){self.setClasses();self.highlightFirstItem();}});container.on('results:append',function(params){self.append(params.data);if(container.isOpen()){self.setClasses();}});container.on('query',function(params){self.hideMessages();self.showLoading(params);});container.on('select',function(){if(!container.isOpen()){return;}self.setClasses();if(self.options.get('scrollAfterSelect')){self.highlightFirstItem();}});container.on('unselect',function(){if(!container.isOpen()){return;}self.setClasses();if(self.options.get('scrollAfterSelect')){self.highlightFirstItem();}});container.on('open',function(){// When the dropdown is open, aria-expended=\"true\"\nself.$results.attr('aria-expanded','true');self.$results.attr('aria-hidden','false');self.setClasses();self.ensureHighlightVisible();});container.on('close',function(){// When the dropdown is closed, aria-expended=\"false\"\nself.$results.attr('aria-expanded','false');self.$results.attr('aria-hidden','true');self.$results.removeAttr('aria-activedescendant');});container.on('results:toggle',function(){var $highlighted=self.getHighlightedResults();if($highlighted.length===0){return;}$highlighted.trigger('mouseup');});container.on('results:select',function(){var $highlighted=self.getHighlightedResults();if($highlighted.length===0){return;}var data=Utils.GetData($highlighted[0],'data');if($highlighted.attr('aria-selected')=='true'){self.trigger('close',{});}else{self.trigger('select',{data:data});}});container.on('results:previous',function(){var $highlighted=self.getHighlightedResults();var $options=self.$results.find('[aria-selected]');var currentIndex=$options.index($highlighted);// If we are already at the top, don't move further\n// If no options, currentIndex will be -1\nif(currentIndex<=0){return;}var nextIndex=currentIndex-1;// If none are highlighted, highlight the first\nif($highlighted.length===0){nextIndex=0;}var $next=$options.eq(nextIndex);$next.trigger('mouseenter');var currentOffset=self.$results.offset().top;var nextTop=$next.offset().top;var nextOffset=self.$results.scrollTop()+(nextTop-currentOffset);if(nextIndex===0){self.$results.scrollTop(0);}else if(nextTop-currentOffset<0){self.$results.scrollTop(nextOffset);}});container.on('results:next',function(){var $highlighted=self.getHighlightedResults();var $options=self.$results.find('[aria-selected]');var currentIndex=$options.index($highlighted);var nextIndex=currentIndex+1;// If we are at the last option, stay there\nif(nextIndex>=$options.length){return;}var $next=$options.eq(nextIndex);$next.trigger('mouseenter');var currentOffset=self.$results.offset().top+self.$results.outerHeight(false);var nextBottom=$next.offset().top+$next.outerHeight(false);var nextOffset=self.$results.scrollTop()+nextBottom-currentOffset;if(nextIndex===0){self.$results.scrollTop(0);}else if(nextBottom>currentOffset){self.$results.scrollTop(nextOffset);}});container.on('results:focus',function(params){params.element.addClass('select2-results__option--highlighted');});container.on('results:message',function(params){self.displayMessage(params);});if($.fn.mousewheel){this.$results.on('mousewheel',function(e){var top=self.$results.scrollTop();var bottom=self.$results.get(0).scrollHeight-top+e.deltaY;var isAtTop=e.deltaY>0&&top-e.deltaY<=0;var isAtBottom=e.deltaY<0&&bottom<=self.$results.height();if(isAtTop){self.$results.scrollTop(0);e.preventDefault();e.stopPropagation();}else if(isAtBottom){self.$results.scrollTop(self.$results.get(0).scrollHeight-self.$results.height());e.preventDefault();e.stopPropagation();}});}this.$results.on('mouseup','.select2-results__option[aria-selected]',function(evt){var $this=$(this);var data=Utils.GetData(this,'data');if($this.attr('aria-selected')==='true'){if(self.options.get('multiple')){self.trigger('unselect',{originalEvent:evt,data:data});}else{self.trigger('close',{});}return;}self.trigger('select',{originalEvent:evt,data:data});});this.$results.on('mouseenter','.select2-results__option[aria-selected]',function(evt){var data=Utils.GetData(this,'data');self.getHighlightedResults().removeClass('select2-results__option--highlighted');self.trigger('results:focus',{data:data,element:$(this)});});};Results.prototype.getHighlightedResults=function(){var $highlighted=this.$results.find('.select2-results__option--highlighted');return $highlighted;};Results.prototype.destroy=function(){this.$results.remove();};Results.prototype.ensureHighlightVisible=function(){var $highlighted=this.getHighlightedResults();if($highlighted.length===0){return;}var $options=this.$results.find('[aria-selected]');var currentIndex=$options.index($highlighted);var currentOffset=this.$results.offset().top;var nextTop=$highlighted.offset().top;var nextOffset=this.$results.scrollTop()+(nextTop-currentOffset);var offsetDelta=nextTop-currentOffset;nextOffset-=$highlighted.outerHeight(false)*2;if(currentIndex<=2){this.$results.scrollTop(0);}else if(offsetDelta>this.$results.outerHeight()||offsetDelta<0){this.$results.scrollTop(nextOffset);}};Results.prototype.template=function(result,container){var template=this.options.get('templateResult');var escapeMarkup=this.options.get('escapeMarkup');var content=template(result,container);if(content==null){container.style.display='none';}else if(typeof content==='string'){container.innerHTML=escapeMarkup(content);}else{$(container).append(content);}};return Results;});S2.define('select2/keys',[],function(){var KEYS={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return KEYS;});S2.define('select2/selection/base',['jquery','../utils','../keys'],function($,Utils,KEYS){function BaseSelection($element,options){this.$element=$element;this.options=options;BaseSelection.__super__.constructor.call(this);}Utils.Extend(BaseSelection,Utils.Observable);BaseSelection.prototype.render=function(){var $selection=$('<span class=\"select2-selection\" role=\"combobox\" '+' aria-haspopup=\"true\" aria-expanded=\"false\">'+'</span>');this._tabindex=0;if(Utils.GetData(this.$element[0],'old-tabindex')!=null){this._tabindex=Utils.GetData(this.$element[0],'old-tabindex');}else if(this.$element.attr('tabindex')!=null){this._tabindex=this.$element.attr('tabindex');}$selection.attr('title',this.$element.attr('title'));$selection.attr('tabindex',this._tabindex);$selection.attr('aria-disabled','false');this.$selection=$selection;return $selection;};BaseSelection.prototype.bind=function(container,$container){var self=this;var resultsId=container.id+'-results';this.container=container;this.$selection.on('focus',function(evt){self.trigger('focus',evt);});this.$selection.on('blur',function(evt){self._handleBlur(evt);});this.$selection.on('keydown',function(evt){self.trigger('keypress',evt);if(evt.which===KEYS.SPACE){evt.preventDefault();}});container.on('results:focus',function(params){self.$selection.attr('aria-activedescendant',params.data._resultId);});container.on('selection:update',function(params){self.update(params.data);});container.on('open',function(){// When the dropdown is open, aria-expanded=\"true\"\nself.$selection.attr('aria-expanded','true');self.$selection.attr('aria-owns',resultsId);self._attachCloseHandler(container);});container.on('close',function(){// When the dropdown is closed, aria-expanded=\"false\"\nself.$selection.attr('aria-expanded','false');self.$selection.removeAttr('aria-activedescendant');self.$selection.removeAttr('aria-owns');self.$selection.trigger('focus');self._detachCloseHandler(container);});container.on('enable',function(){self.$selection.attr('tabindex',self._tabindex);self.$selection.attr('aria-disabled','false');});container.on('disable',function(){self.$selection.attr('tabindex','-1');self.$selection.attr('aria-disabled','true');});};BaseSelection.prototype._handleBlur=function(evt){var self=this;// This needs to be delayed as the active element is the body when the tab\n// key is pressed, possibly along with others.\nwindow.setTimeout(function(){// Don't trigger `blur` if the focus is still in the selection\nif(document.activeElement==self.$selection[0]||$.contains(self.$selection[0],document.activeElement)){return;}self.trigger('blur',evt);},1);};BaseSelection.prototype._attachCloseHandler=function(container){$(document.body).on('mousedown.select2.'+container.id,function(e){var $target=$(e.target);var $select=$target.closest('.select2');var $all=$('.select2.select2-container--open');$all.each(function(){if(this==$select[0]){return;}var $element=Utils.GetData(this,'element');$element.select2('close');});});};BaseSelection.prototype._detachCloseHandler=function(container){$(document.body).off('mousedown.select2.'+container.id);};BaseSelection.prototype.position=function($selection,$container){var $selectionContainer=$container.find('.selection');$selectionContainer.append($selection);};BaseSelection.prototype.destroy=function(){this._detachCloseHandler(this.container);};BaseSelection.prototype.update=function(data){throw new Error('The `update` method must be defined in child classes.');};/**\r\n     * Helper method to abstract the \"enabled\" (not \"disabled\") state of this\r\n     * object.\r\n     *\r\n     * @return {true} if the instance is not disabled.\r\n     * @return {false} if the instance is disabled.\r\n     */BaseSelection.prototype.isEnabled=function(){return!this.isDisabled();};/**\r\n     * Helper method to abstract the \"disabled\" state of this object.\r\n     *\r\n     * @return {true} if the disabled option is true.\r\n     * @return {false} if the disabled option is false.\r\n     */BaseSelection.prototype.isDisabled=function(){return this.options.get('disabled');};return BaseSelection;});S2.define('select2/selection/single',['jquery','./base','../utils','../keys'],function($,BaseSelection,Utils,KEYS){function SingleSelection(){SingleSelection.__super__.constructor.apply(this,arguments);}Utils.Extend(SingleSelection,BaseSelection);SingleSelection.prototype.render=function(){var $selection=SingleSelection.__super__.render.call(this);$selection.addClass('select2-selection--single');$selection.html('<span class=\"select2-selection__rendered\"></span>'+'<span class=\"select2-selection__arrow\" role=\"presentation\">'+'<b role=\"presentation\"></b>'+'</span>');return $selection;};SingleSelection.prototype.bind=function(container,$container){var self=this;SingleSelection.__super__.bind.apply(this,arguments);var id=container.id+'-container';this.$selection.find('.select2-selection__rendered').attr('id',id).attr('role','textbox').attr('aria-readonly','true');this.$selection.attr('aria-labelledby',id);this.$selection.on('mousedown',function(evt){// Only respond to left clicks\nif(evt.which!==1){return;}self.trigger('toggle',{originalEvent:evt});});this.$selection.on('focus',function(evt){// User focuses on the container\n});this.$selection.on('blur',function(evt){// User exits the container\n});container.on('focus',function(evt){if(!container.isOpen()){self.$selection.trigger('focus');}});};SingleSelection.prototype.clear=function(){var $rendered=this.$selection.find('.select2-selection__rendered');$rendered.empty();$rendered.removeAttr('title');// clear tooltip on empty\n};SingleSelection.prototype.display=function(data,container){var template=this.options.get('templateSelection');var escapeMarkup=this.options.get('escapeMarkup');return escapeMarkup(template(data,container));};SingleSelection.prototype.selectionContainer=function(){return $('<span></span>');};SingleSelection.prototype.update=function(data){if(data.length===0){this.clear();return;}var selection=data[0];var $rendered=this.$selection.find('.select2-selection__rendered');var formatted=this.display(selection,$rendered);$rendered.empty().append(formatted);var title=selection.title||selection.text;if(title){$rendered.attr('title',title);}else{$rendered.removeAttr('title');}};return SingleSelection;});S2.define('select2/selection/multiple',['jquery','./base','../utils'],function($,BaseSelection,Utils){function MultipleSelection($element,options){MultipleSelection.__super__.constructor.apply(this,arguments);}Utils.Extend(MultipleSelection,BaseSelection);MultipleSelection.prototype.render=function(){var $selection=MultipleSelection.__super__.render.call(this);$selection.addClass('select2-selection--multiple');$selection.html('<ul class=\"select2-selection__rendered\"></ul>');return $selection;};MultipleSelection.prototype.bind=function(container,$container){var self=this;MultipleSelection.__super__.bind.apply(this,arguments);this.$selection.on('click',function(evt){self.trigger('toggle',{originalEvent:evt});});this.$selection.on('click','.select2-selection__choice__remove',function(evt){// Ignore the event if it is disabled\nif(self.isDisabled()){return;}var $remove=$(this);var $selection=$remove.parent();var data=Utils.GetData($selection[0],'data');self.trigger('unselect',{originalEvent:evt,data:data});});};MultipleSelection.prototype.clear=function(){var $rendered=this.$selection.find('.select2-selection__rendered');$rendered.empty();$rendered.removeAttr('title');};MultipleSelection.prototype.display=function(data,container){var template=this.options.get('templateSelection');var escapeMarkup=this.options.get('escapeMarkup');return escapeMarkup(template(data,container));};MultipleSelection.prototype.selectionContainer=function(){var $container=$('<li class=\"select2-selection__choice\">'+'<span class=\"select2-selection__choice__remove\" role=\"presentation\">'+'&times;'+'</span>'+'</li>');return $container;};MultipleSelection.prototype.update=function(data){this.clear();if(data.length===0){return;}var $selections=[];for(var d=0;d<data.length;d++){var selection=data[d];var $selection=this.selectionContainer();var formatted=this.display(selection,$selection);$selection.append(formatted);var title=selection.title||selection.text;if(title){$selection.attr('title',title);}Utils.StoreData($selection[0],'data',selection);$selections.push($selection);}var $rendered=this.$selection.find('.select2-selection__rendered');Utils.appendMany($rendered,$selections);};return MultipleSelection;});S2.define('select2/selection/placeholder',['../utils'],function(Utils){function Placeholder(decorated,$element,options){this.placeholder=this.normalizePlaceholder(options.get('placeholder'));decorated.call(this,$element,options);}Placeholder.prototype.normalizePlaceholder=function(_,placeholder){if(typeof placeholder==='string'){placeholder={id:'',text:placeholder};}return placeholder;};Placeholder.prototype.createPlaceholder=function(decorated,placeholder){var $placeholder=this.selectionContainer();$placeholder.html(this.display(placeholder));$placeholder.addClass('select2-selection__placeholder').removeClass('select2-selection__choice');return $placeholder;};Placeholder.prototype.update=function(decorated,data){var singlePlaceholder=data.length==1&&data[0].id!=this.placeholder.id;var multipleSelections=data.length>1;if(multipleSelections||singlePlaceholder){return decorated.call(this,data);}this.clear();var $placeholder=this.createPlaceholder(this.placeholder);this.$selection.find('.select2-selection__rendered').append($placeholder);};return Placeholder;});S2.define('select2/selection/allowClear',['jquery','../keys','../utils'],function($,KEYS,Utils){function AllowClear(){}AllowClear.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);if(this.placeholder==null){if(this.options.get('debug')&&window.console&&console.error){console.error('Select2: The `allowClear` option should be used in combination '+'with the `placeholder` option.');}}this.$selection.on('mousedown','.select2-selection__clear',function(evt){self._handleClear(evt);});container.on('keypress',function(evt){self._handleKeyboardClear(evt,container);});};AllowClear.prototype._handleClear=function(_,evt){// Ignore the event if it is disabled\nif(this.isDisabled()){return;}var $clear=this.$selection.find('.select2-selection__clear');// Ignore the event if nothing has been selected\nif($clear.length===0){return;}evt.stopPropagation();var data=Utils.GetData($clear[0],'data');var previousVal=this.$element.val();this.$element.val(this.placeholder.id);var unselectData={data:data};this.trigger('clear',unselectData);if(unselectData.prevented){this.$element.val(previousVal);return;}for(var d=0;d<data.length;d++){unselectData={data:data[d]};// Trigger the `unselect` event, so people can prevent it from being\n// cleared.\nthis.trigger('unselect',unselectData);// If the event was prevented, don't clear it out.\nif(unselectData.prevented){this.$element.val(previousVal);return;}}this.$element.trigger('input').trigger('change');this.trigger('toggle',{});};AllowClear.prototype._handleKeyboardClear=function(_,evt,container){if(container.isOpen()){return;}if(evt.which==KEYS.DELETE||evt.which==KEYS.BACKSPACE){this._handleClear(evt);}};AllowClear.prototype.update=function(decorated,data){decorated.call(this,data);if(this.$selection.find('.select2-selection__placeholder').length>0||data.length===0){return;}var removeAll=this.options.get('translations').get('removeAllItems');var $remove=$('<span class=\"select2-selection__clear\" title=\"'+removeAll()+'\">'+'&times;'+'</span>');Utils.StoreData($remove[0],'data',data);this.$selection.find('.select2-selection__rendered').prepend($remove);};return AllowClear;});S2.define('select2/selection/search',['jquery','../utils','../keys'],function($,Utils,KEYS){function Search(decorated,$element,options){decorated.call(this,$element,options);}Search.prototype.render=function(decorated){var $search=$('<li class=\"select2-search select2-search--inline\">'+'<input class=\"select2-search__field\" type=\"search\" tabindex=\"-1\"'+' autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"none\"'+' spellcheck=\"false\" role=\"searchbox\" aria-autocomplete=\"list\" />'+'</li>');this.$searchContainer=$search;this.$search=$search.find('input');var $rendered=decorated.call(this);this._transferTabIndex();return $rendered;};Search.prototype.bind=function(decorated,container,$container){var self=this;var resultsId=container.id+'-results';decorated.call(this,container,$container);container.on('open',function(){self.$search.attr('aria-controls',resultsId);self.$search.trigger('focus');});container.on('close',function(){self.$search.val('');self.$search.removeAttr('aria-controls');self.$search.removeAttr('aria-activedescendant');self.$search.trigger('focus');});container.on('enable',function(){self.$search.prop('disabled',false);self._transferTabIndex();});container.on('disable',function(){self.$search.prop('disabled',true);});container.on('focus',function(evt){self.$search.trigger('focus');});container.on('results:focus',function(params){if(params.data._resultId){self.$search.attr('aria-activedescendant',params.data._resultId);}else{self.$search.removeAttr('aria-activedescendant');}});this.$selection.on('focusin','.select2-search--inline',function(evt){self.trigger('focus',evt);});this.$selection.on('focusout','.select2-search--inline',function(evt){self._handleBlur(evt);});this.$selection.on('keydown','.select2-search--inline',function(evt){evt.stopPropagation();self.trigger('keypress',evt);self._keyUpPrevented=evt.isDefaultPrevented();var key=evt.which;if(key===KEYS.BACKSPACE&&self.$search.val()===''){var $previousChoice=self.$searchContainer.prev('.select2-selection__choice');if($previousChoice.length>0){var item=Utils.GetData($previousChoice[0],'data');self.searchRemoveChoice(item);evt.preventDefault();}}});this.$selection.on('click','.select2-search--inline',function(evt){if(self.$search.val()){evt.stopPropagation();}});// Try to detect the IE version should the `documentMode` property that\n// is stored on the document. This is only implemented in IE and is\n// slightly cleaner than doing a user agent check.\n// This property is not available in Edge, but Edge also doesn't have\n// this bug.\nvar msie=document.documentMode;var disableInputEvents=msie&&msie<=11;// Workaround for browsers which do not support the `input` event\n// This will prevent double-triggering of events for browsers which support\n// both the `keyup` and `input` events.\nthis.$selection.on('input.searchcheck','.select2-search--inline',function(evt){// IE will trigger the `input` event when a placeholder is used on a\n// search box. To get around this issue, we are forced to ignore all\n// `input` events in IE and keep using `keyup`.\nif(disableInputEvents){self.$selection.off('input.search input.searchcheck');return;}// Unbind the duplicated `keyup` event\nself.$selection.off('keyup.search');});this.$selection.on('keyup.search input.search','.select2-search--inline',function(evt){// IE will trigger the `input` event when a placeholder is used on a\n// search box. To get around this issue, we are forced to ignore all\n// `input` events in IE and keep using `keyup`.\nif(disableInputEvents&&evt.type==='input'){self.$selection.off('input.search input.searchcheck');return;}var key=evt.which;// We can freely ignore events from modifier keys\nif(key==KEYS.SHIFT||key==KEYS.CTRL||key==KEYS.ALT){return;}// Tabbing will be handled during the `keydown` phase\nif(key==KEYS.TAB){return;}self.handleSearch(evt);});};/**\r\n     * This method will transfer the tabindex attribute from the rendered\r\n     * selection to the search box. This allows for the search box to be used as\r\n     * the primary focus instead of the selection container.\r\n     *\r\n     * @private\r\n     */Search.prototype._transferTabIndex=function(decorated){this.$search.attr('tabindex',this.$selection.attr('tabindex'));this.$selection.attr('tabindex','-1');};Search.prototype.createPlaceholder=function(decorated,placeholder){this.$search.attr('placeholder',placeholder.text);};Search.prototype.update=function(decorated,data){var searchHadFocus=this.$search[0]==document.activeElement;this.$search.attr('placeholder','');decorated.call(this,data);this.$selection.find('.select2-selection__rendered').append(this.$searchContainer);this.resizeSearch();if(searchHadFocus){this.$search.trigger('focus');}};Search.prototype.handleSearch=function(){this.resizeSearch();if(!this._keyUpPrevented){var input=this.$search.val();this.trigger('query',{term:input});}this._keyUpPrevented=false;};Search.prototype.searchRemoveChoice=function(decorated,item){this.trigger('unselect',{data:item});this.$search.val(item.text);this.handleSearch();};Search.prototype.resizeSearch=function(){this.$search.css('width','25px');var width='';if(this.$search.attr('placeholder')!==''){width=this.$selection.find('.select2-selection__rendered').width();}else{var minimumWidth=this.$search.val().length+1;width=minimumWidth*0.75+'em';}this.$search.css('width',width);};return Search;});S2.define('select2/selection/eventRelay',['jquery'],function($){function EventRelay(){}EventRelay.prototype.bind=function(decorated,container,$container){var self=this;var relayEvents=['open','opening','close','closing','select','selecting','unselect','unselecting','clear','clearing'];var preventableEvents=['opening','closing','selecting','unselecting','clearing'];decorated.call(this,container,$container);container.on('*',function(name,params){// Ignore events that should not be relayed\nif($.inArray(name,relayEvents)===-1){return;}// The parameters should always be an object\nparams=params||{};// Generate the jQuery event for the Select2 event\nvar evt=$.Event('select2:'+name,{params:params});self.$element.trigger(evt);// Only handle preventable events if it was one\nif($.inArray(name,preventableEvents)===-1){return;}params.prevented=evt.isDefaultPrevented();});};return EventRelay;});S2.define('select2/translation',['jquery','require'],function($,require){function Translation(dict){this.dict=dict||{};}Translation.prototype.all=function(){return this.dict;};Translation.prototype.get=function(key){return this.dict[key];};Translation.prototype.extend=function(translation){this.dict=$.extend({},translation.all(),this.dict);};// Static functions\nTranslation._cache={};Translation.loadPath=function(path){if(!(path in Translation._cache)){var translations=require(path);Translation._cache[path]=translations;}return new Translation(Translation._cache[path]);};return Translation;});S2.define('select2/diacritics',[],function(){var diacritics={'\\u24B6':'A','\\uFF21':'A','\\u00C0':'A','\\u00C1':'A','\\u00C2':'A','\\u1EA6':'A','\\u1EA4':'A','\\u1EAA':'A','\\u1EA8':'A','\\u00C3':'A','\\u0100':'A','\\u0102':'A','\\u1EB0':'A','\\u1EAE':'A','\\u1EB4':'A','\\u1EB2':'A','\\u0226':'A','\\u01E0':'A','\\u00C4':'A','\\u01DE':'A','\\u1EA2':'A','\\u00C5':'A','\\u01FA':'A','\\u01CD':'A','\\u0200':'A','\\u0202':'A','\\u1EA0':'A','\\u1EAC':'A','\\u1EB6':'A','\\u1E00':'A','\\u0104':'A','\\u023A':'A','\\u2C6F':'A','\\uA732':'AA','\\u00C6':'AE','\\u01FC':'AE','\\u01E2':'AE','\\uA734':'AO','\\uA736':'AU','\\uA738':'AV','\\uA73A':'AV','\\uA73C':'AY','\\u24B7':'B','\\uFF22':'B','\\u1E02':'B','\\u1E04':'B','\\u1E06':'B','\\u0243':'B','\\u0182':'B','\\u0181':'B','\\u24B8':'C','\\uFF23':'C','\\u0106':'C','\\u0108':'C','\\u010A':'C','\\u010C':'C','\\u00C7':'C','\\u1E08':'C','\\u0187':'C','\\u023B':'C','\\uA73E':'C','\\u24B9':'D','\\uFF24':'D','\\u1E0A':'D','\\u010E':'D','\\u1E0C':'D','\\u1E10':'D','\\u1E12':'D','\\u1E0E':'D','\\u0110':'D','\\u018B':'D','\\u018A':'D','\\u0189':'D','\\uA779':'D','\\u01F1':'DZ','\\u01C4':'DZ','\\u01F2':'Dz','\\u01C5':'Dz','\\u24BA':'E','\\uFF25':'E','\\u00C8':'E','\\u00C9':'E','\\u00CA':'E','\\u1EC0':'E','\\u1EBE':'E','\\u1EC4':'E','\\u1EC2':'E','\\u1EBC':'E','\\u0112':'E','\\u1E14':'E','\\u1E16':'E','\\u0114':'E','\\u0116':'E','\\u00CB':'E','\\u1EBA':'E','\\u011A':'E','\\u0204':'E','\\u0206':'E','\\u1EB8':'E','\\u1EC6':'E','\\u0228':'E','\\u1E1C':'E','\\u0118':'E','\\u1E18':'E','\\u1E1A':'E','\\u0190':'E','\\u018E':'E','\\u24BB':'F','\\uFF26':'F','\\u1E1E':'F','\\u0191':'F','\\uA77B':'F','\\u24BC':'G','\\uFF27':'G','\\u01F4':'G','\\u011C':'G','\\u1E20':'G','\\u011E':'G','\\u0120':'G','\\u01E6':'G','\\u0122':'G','\\u01E4':'G','\\u0193':'G','\\uA7A0':'G','\\uA77D':'G','\\uA77E':'G','\\u24BD':'H','\\uFF28':'H','\\u0124':'H','\\u1E22':'H','\\u1E26':'H','\\u021E':'H','\\u1E24':'H','\\u1E28':'H','\\u1E2A':'H','\\u0126':'H','\\u2C67':'H','\\u2C75':'H','\\uA78D':'H','\\u24BE':'I','\\uFF29':'I','\\u00CC':'I','\\u00CD':'I','\\u00CE':'I','\\u0128':'I','\\u012A':'I','\\u012C':'I','\\u0130':'I','\\u00CF':'I','\\u1E2E':'I','\\u1EC8':'I','\\u01CF':'I','\\u0208':'I','\\u020A':'I','\\u1ECA':'I','\\u012E':'I','\\u1E2C':'I','\\u0197':'I','\\u24BF':'J','\\uFF2A':'J','\\u0134':'J','\\u0248':'J','\\u24C0':'K','\\uFF2B':'K','\\u1E30':'K','\\u01E8':'K','\\u1E32':'K','\\u0136':'K','\\u1E34':'K','\\u0198':'K','\\u2C69':'K','\\uA740':'K','\\uA742':'K','\\uA744':'K','\\uA7A2':'K','\\u24C1':'L','\\uFF2C':'L','\\u013F':'L','\\u0139':'L','\\u013D':'L','\\u1E36':'L','\\u1E38':'L','\\u013B':'L','\\u1E3C':'L','\\u1E3A':'L','\\u0141':'L','\\u023D':'L','\\u2C62':'L','\\u2C60':'L','\\uA748':'L','\\uA746':'L','\\uA780':'L','\\u01C7':'LJ','\\u01C8':'Lj','\\u24C2':'M','\\uFF2D':'M','\\u1E3E':'M','\\u1E40':'M','\\u1E42':'M','\\u2C6E':'M','\\u019C':'M','\\u24C3':'N','\\uFF2E':'N','\\u01F8':'N','\\u0143':'N','\\u00D1':'N','\\u1E44':'N','\\u0147':'N','\\u1E46':'N','\\u0145':'N','\\u1E4A':'N','\\u1E48':'N','\\u0220':'N','\\u019D':'N','\\uA790':'N','\\uA7A4':'N','\\u01CA':'NJ','\\u01CB':'Nj','\\u24C4':'O','\\uFF2F':'O','\\u00D2':'O','\\u00D3':'O','\\u00D4':'O','\\u1ED2':'O','\\u1ED0':'O','\\u1ED6':'O','\\u1ED4':'O','\\u00D5':'O','\\u1E4C':'O','\\u022C':'O','\\u1E4E':'O','\\u014C':'O','\\u1E50':'O','\\u1E52':'O','\\u014E':'O','\\u022E':'O','\\u0230':'O','\\u00D6':'O','\\u022A':'O','\\u1ECE':'O','\\u0150':'O','\\u01D1':'O','\\u020C':'O','\\u020E':'O','\\u01A0':'O','\\u1EDC':'O','\\u1EDA':'O','\\u1EE0':'O','\\u1EDE':'O','\\u1EE2':'O','\\u1ECC':'O','\\u1ED8':'O','\\u01EA':'O','\\u01EC':'O','\\u00D8':'O','\\u01FE':'O','\\u0186':'O','\\u019F':'O','\\uA74A':'O','\\uA74C':'O','\\u0152':'OE','\\u01A2':'OI','\\uA74E':'OO','\\u0222':'OU','\\u24C5':'P','\\uFF30':'P','\\u1E54':'P','\\u1E56':'P','\\u01A4':'P','\\u2C63':'P','\\uA750':'P','\\uA752':'P','\\uA754':'P','\\u24C6':'Q','\\uFF31':'Q','\\uA756':'Q','\\uA758':'Q','\\u024A':'Q','\\u24C7':'R','\\uFF32':'R','\\u0154':'R','\\u1E58':'R','\\u0158':'R','\\u0210':'R','\\u0212':'R','\\u1E5A':'R','\\u1E5C':'R','\\u0156':'R','\\u1E5E':'R','\\u024C':'R','\\u2C64':'R','\\uA75A':'R','\\uA7A6':'R','\\uA782':'R','\\u24C8':'S','\\uFF33':'S','\\u1E9E':'S','\\u015A':'S','\\u1E64':'S','\\u015C':'S','\\u1E60':'S','\\u0160':'S','\\u1E66':'S','\\u1E62':'S','\\u1E68':'S','\\u0218':'S','\\u015E':'S','\\u2C7E':'S','\\uA7A8':'S','\\uA784':'S','\\u24C9':'T','\\uFF34':'T','\\u1E6A':'T','\\u0164':'T','\\u1E6C':'T','\\u021A':'T','\\u0162':'T','\\u1E70':'T','\\u1E6E':'T','\\u0166':'T','\\u01AC':'T','\\u01AE':'T','\\u023E':'T','\\uA786':'T','\\uA728':'TZ','\\u24CA':'U','\\uFF35':'U','\\u00D9':'U','\\u00DA':'U','\\u00DB':'U','\\u0168':'U','\\u1E78':'U','\\u016A':'U','\\u1E7A':'U','\\u016C':'U','\\u00DC':'U','\\u01DB':'U','\\u01D7':'U','\\u01D5':'U','\\u01D9':'U','\\u1EE6':'U','\\u016E':'U','\\u0170':'U','\\u01D3':'U','\\u0214':'U','\\u0216':'U','\\u01AF':'U','\\u1EEA':'U','\\u1EE8':'U','\\u1EEE':'U','\\u1EEC':'U','\\u1EF0':'U','\\u1EE4':'U','\\u1E72':'U','\\u0172':'U','\\u1E76':'U','\\u1E74':'U','\\u0244':'U','\\u24CB':'V','\\uFF36':'V','\\u1E7C':'V','\\u1E7E':'V','\\u01B2':'V','\\uA75E':'V','\\u0245':'V','\\uA760':'VY','\\u24CC':'W','\\uFF37':'W','\\u1E80':'W','\\u1E82':'W','\\u0174':'W','\\u1E86':'W','\\u1E84':'W','\\u1E88':'W','\\u2C72':'W','\\u24CD':'X','\\uFF38':'X','\\u1E8A':'X','\\u1E8C':'X','\\u24CE':'Y','\\uFF39':'Y','\\u1EF2':'Y','\\u00DD':'Y','\\u0176':'Y','\\u1EF8':'Y','\\u0232':'Y','\\u1E8E':'Y','\\u0178':'Y','\\u1EF6':'Y','\\u1EF4':'Y','\\u01B3':'Y','\\u024E':'Y','\\u1EFE':'Y','\\u24CF':'Z','\\uFF3A':'Z','\\u0179':'Z','\\u1E90':'Z','\\u017B':'Z','\\u017D':'Z','\\u1E92':'Z','\\u1E94':'Z','\\u01B5':'Z','\\u0224':'Z','\\u2C7F':'Z','\\u2C6B':'Z','\\uA762':'Z','\\u24D0':'a','\\uFF41':'a','\\u1E9A':'a','\\u00E0':'a','\\u00E1':'a','\\u00E2':'a','\\u1EA7':'a','\\u1EA5':'a','\\u1EAB':'a','\\u1EA9':'a','\\u00E3':'a','\\u0101':'a','\\u0103':'a','\\u1EB1':'a','\\u1EAF':'a','\\u1EB5':'a','\\u1EB3':'a','\\u0227':'a','\\u01E1':'a','\\u00E4':'a','\\u01DF':'a','\\u1EA3':'a','\\u00E5':'a','\\u01FB':'a','\\u01CE':'a','\\u0201':'a','\\u0203':'a','\\u1EA1':'a','\\u1EAD':'a','\\u1EB7':'a','\\u1E01':'a','\\u0105':'a','\\u2C65':'a','\\u0250':'a','\\uA733':'aa','\\u00E6':'ae','\\u01FD':'ae','\\u01E3':'ae','\\uA735':'ao','\\uA737':'au','\\uA739':'av','\\uA73B':'av','\\uA73D':'ay','\\u24D1':'b','\\uFF42':'b','\\u1E03':'b','\\u1E05':'b','\\u1E07':'b','\\u0180':'b','\\u0183':'b','\\u0253':'b','\\u24D2':'c','\\uFF43':'c','\\u0107':'c','\\u0109':'c','\\u010B':'c','\\u010D':'c','\\u00E7':'c','\\u1E09':'c','\\u0188':'c','\\u023C':'c','\\uA73F':'c','\\u2184':'c','\\u24D3':'d','\\uFF44':'d','\\u1E0B':'d','\\u010F':'d','\\u1E0D':'d','\\u1E11':'d','\\u1E13':'d','\\u1E0F':'d','\\u0111':'d','\\u018C':'d','\\u0256':'d','\\u0257':'d','\\uA77A':'d','\\u01F3':'dz','\\u01C6':'dz','\\u24D4':'e','\\uFF45':'e','\\u00E8':'e','\\u00E9':'e','\\u00EA':'e','\\u1EC1':'e','\\u1EBF':'e','\\u1EC5':'e','\\u1EC3':'e','\\u1EBD':'e','\\u0113':'e','\\u1E15':'e','\\u1E17':'e','\\u0115':'e','\\u0117':'e','\\u00EB':'e','\\u1EBB':'e','\\u011B':'e','\\u0205':'e','\\u0207':'e','\\u1EB9':'e','\\u1EC7':'e','\\u0229':'e','\\u1E1D':'e','\\u0119':'e','\\u1E19':'e','\\u1E1B':'e','\\u0247':'e','\\u025B':'e','\\u01DD':'e','\\u24D5':'f','\\uFF46':'f','\\u1E1F':'f','\\u0192':'f','\\uA77C':'f','\\u24D6':'g','\\uFF47':'g','\\u01F5':'g','\\u011D':'g','\\u1E21':'g','\\u011F':'g','\\u0121':'g','\\u01E7':'g','\\u0123':'g','\\u01E5':'g','\\u0260':'g','\\uA7A1':'g','\\u1D79':'g','\\uA77F':'g','\\u24D7':'h','\\uFF48':'h','\\u0125':'h','\\u1E23':'h','\\u1E27':'h','\\u021F':'h','\\u1E25':'h','\\u1E29':'h','\\u1E2B':'h','\\u1E96':'h','\\u0127':'h','\\u2C68':'h','\\u2C76':'h','\\u0265':'h','\\u0195':'hv','\\u24D8':'i','\\uFF49':'i','\\u00EC':'i','\\u00ED':'i','\\u00EE':'i','\\u0129':'i','\\u012B':'i','\\u012D':'i','\\u00EF':'i','\\u1E2F':'i','\\u1EC9':'i','\\u01D0':'i','\\u0209':'i','\\u020B':'i','\\u1ECB':'i','\\u012F':'i','\\u1E2D':'i','\\u0268':'i','\\u0131':'i','\\u24D9':'j','\\uFF4A':'j','\\u0135':'j','\\u01F0':'j','\\u0249':'j','\\u24DA':'k','\\uFF4B':'k','\\u1E31':'k','\\u01E9':'k','\\u1E33':'k','\\u0137':'k','\\u1E35':'k','\\u0199':'k','\\u2C6A':'k','\\uA741':'k','\\uA743':'k','\\uA745':'k','\\uA7A3':'k','\\u24DB':'l','\\uFF4C':'l','\\u0140':'l','\\u013A':'l','\\u013E':'l','\\u1E37':'l','\\u1E39':'l','\\u013C':'l','\\u1E3D':'l','\\u1E3B':'l','\\u017F':'l','\\u0142':'l','\\u019A':'l','\\u026B':'l','\\u2C61':'l','\\uA749':'l','\\uA781':'l','\\uA747':'l','\\u01C9':'lj','\\u24DC':'m','\\uFF4D':'m','\\u1E3F':'m','\\u1E41':'m','\\u1E43':'m','\\u0271':'m','\\u026F':'m','\\u24DD':'n','\\uFF4E':'n','\\u01F9':'n','\\u0144':'n','\\u00F1':'n','\\u1E45':'n','\\u0148':'n','\\u1E47':'n','\\u0146':'n','\\u1E4B':'n','\\u1E49':'n','\\u019E':'n','\\u0272':'n','\\u0149':'n','\\uA791':'n','\\uA7A5':'n','\\u01CC':'nj','\\u24DE':'o','\\uFF4F':'o','\\u00F2':'o','\\u00F3':'o','\\u00F4':'o','\\u1ED3':'o','\\u1ED1':'o','\\u1ED7':'o','\\u1ED5':'o','\\u00F5':'o','\\u1E4D':'o','\\u022D':'o','\\u1E4F':'o','\\u014D':'o','\\u1E51':'o','\\u1E53':'o','\\u014F':'o','\\u022F':'o','\\u0231':'o','\\u00F6':'o','\\u022B':'o','\\u1ECF':'o','\\u0151':'o','\\u01D2':'o','\\u020D':'o','\\u020F':'o','\\u01A1':'o','\\u1EDD':'o','\\u1EDB':'o','\\u1EE1':'o','\\u1EDF':'o','\\u1EE3':'o','\\u1ECD':'o','\\u1ED9':'o','\\u01EB':'o','\\u01ED':'o','\\u00F8':'o','\\u01FF':'o','\\u0254':'o','\\uA74B':'o','\\uA74D':'o','\\u0275':'o','\\u0153':'oe','\\u01A3':'oi','\\u0223':'ou','\\uA74F':'oo','\\u24DF':'p','\\uFF50':'p','\\u1E55':'p','\\u1E57':'p','\\u01A5':'p','\\u1D7D':'p','\\uA751':'p','\\uA753':'p','\\uA755':'p','\\u24E0':'q','\\uFF51':'q','\\u024B':'q','\\uA757':'q','\\uA759':'q','\\u24E1':'r','\\uFF52':'r','\\u0155':'r','\\u1E59':'r','\\u0159':'r','\\u0211':'r','\\u0213':'r','\\u1E5B':'r','\\u1E5D':'r','\\u0157':'r','\\u1E5F':'r','\\u024D':'r','\\u027D':'r','\\uA75B':'r','\\uA7A7':'r','\\uA783':'r','\\u24E2':'s','\\uFF53':'s','\\u00DF':'s','\\u015B':'s','\\u1E65':'s','\\u015D':'s','\\u1E61':'s','\\u0161':'s','\\u1E67':'s','\\u1E63':'s','\\u1E69':'s','\\u0219':'s','\\u015F':'s','\\u023F':'s','\\uA7A9':'s','\\uA785':'s','\\u1E9B':'s','\\u24E3':'t','\\uFF54':'t','\\u1E6B':'t','\\u1E97':'t','\\u0165':'t','\\u1E6D':'t','\\u021B':'t','\\u0163':'t','\\u1E71':'t','\\u1E6F':'t','\\u0167':'t','\\u01AD':'t','\\u0288':'t','\\u2C66':'t','\\uA787':'t','\\uA729':'tz','\\u24E4':'u','\\uFF55':'u','\\u00F9':'u','\\u00FA':'u','\\u00FB':'u','\\u0169':'u','\\u1E79':'u','\\u016B':'u','\\u1E7B':'u','\\u016D':'u','\\u00FC':'u','\\u01DC':'u','\\u01D8':'u','\\u01D6':'u','\\u01DA':'u','\\u1EE7':'u','\\u016F':'u','\\u0171':'u','\\u01D4':'u','\\u0215':'u','\\u0217':'u','\\u01B0':'u','\\u1EEB':'u','\\u1EE9':'u','\\u1EEF':'u','\\u1EED':'u','\\u1EF1':'u','\\u1EE5':'u','\\u1E73':'u','\\u0173':'u','\\u1E77':'u','\\u1E75':'u','\\u0289':'u','\\u24E5':'v','\\uFF56':'v','\\u1E7D':'v','\\u1E7F':'v','\\u028B':'v','\\uA75F':'v','\\u028C':'v','\\uA761':'vy','\\u24E6':'w','\\uFF57':'w','\\u1E81':'w','\\u1E83':'w','\\u0175':'w','\\u1E87':'w','\\u1E85':'w','\\u1E98':'w','\\u1E89':'w','\\u2C73':'w','\\u24E7':'x','\\uFF58':'x','\\u1E8B':'x','\\u1E8D':'x','\\u24E8':'y','\\uFF59':'y','\\u1EF3':'y','\\u00FD':'y','\\u0177':'y','\\u1EF9':'y','\\u0233':'y','\\u1E8F':'y','\\u00FF':'y','\\u1EF7':'y','\\u1E99':'y','\\u1EF5':'y','\\u01B4':'y','\\u024F':'y','\\u1EFF':'y','\\u24E9':'z','\\uFF5A':'z','\\u017A':'z','\\u1E91':'z','\\u017C':'z','\\u017E':'z','\\u1E93':'z','\\u1E95':'z','\\u01B6':'z','\\u0225':'z','\\u0240':'z','\\u2C6C':'z','\\uA763':'z','\\u0386':'\\u0391','\\u0388':'\\u0395','\\u0389':'\\u0397','\\u038A':'\\u0399','\\u03AA':'\\u0399','\\u038C':'\\u039F','\\u038E':'\\u03A5','\\u03AB':'\\u03A5','\\u038F':'\\u03A9','\\u03AC':'\\u03B1','\\u03AD':'\\u03B5','\\u03AE':'\\u03B7','\\u03AF':'\\u03B9','\\u03CA':'\\u03B9','\\u0390':'\\u03B9','\\u03CC':'\\u03BF','\\u03CD':'\\u03C5','\\u03CB':'\\u03C5','\\u03B0':'\\u03C5','\\u03CE':'\\u03C9','\\u03C2':'\\u03C3','\\u2019':'\\''};return diacritics;});S2.define('select2/data/base',['../utils'],function(Utils){function BaseAdapter($element,options){BaseAdapter.__super__.constructor.call(this);}Utils.Extend(BaseAdapter,Utils.Observable);BaseAdapter.prototype.current=function(callback){throw new Error('The `current` method must be defined in child classes.');};BaseAdapter.prototype.query=function(params,callback){throw new Error('The `query` method must be defined in child classes.');};BaseAdapter.prototype.bind=function(container,$container){// Can be implemented in subclasses\n};BaseAdapter.prototype.destroy=function(){// Can be implemented in subclasses\n};BaseAdapter.prototype.generateResultId=function(container,data){var id=container.id+'-result-';id+=Utils.generateChars(4);if(data.id!=null){id+='-'+data.id.toString();}else{id+='-'+Utils.generateChars(4);}return id;};return BaseAdapter;});S2.define('select2/data/select',['./base','../utils','jquery'],function(BaseAdapter,Utils,$){function SelectAdapter($element,options){this.$element=$element;this.options=options;SelectAdapter.__super__.constructor.call(this);}Utils.Extend(SelectAdapter,BaseAdapter);SelectAdapter.prototype.current=function(callback){var data=[];var self=this;this.$element.find(':selected').each(function(){var $option=$(this);var option=self.item($option);data.push(option);});callback(data);};SelectAdapter.prototype.select=function(data){var self=this;data.selected=true;// If data.element is a DOM node, use it instead\nif($(data.element).is('option')){data.element.selected=true;this.$element.trigger('input').trigger('change');return;}if(this.$element.prop('multiple')){this.current(function(currentData){var val=[];data=[data];data.push.apply(data,currentData);for(var d=0;d<data.length;d++){var id=data[d].id;if($.inArray(id,val)===-1){val.push(id);}}self.$element.val(val);self.$element.trigger('input').trigger('change');});}else{var val=data.id;this.$element.val(val);this.$element.trigger('input').trigger('change');}};SelectAdapter.prototype.unselect=function(data){var self=this;if(!this.$element.prop('multiple')){return;}data.selected=false;if($(data.element).is('option')){data.element.selected=false;this.$element.trigger('input').trigger('change');return;}this.current(function(currentData){var val=[];for(var d=0;d<currentData.length;d++){var id=currentData[d].id;if(id!==data.id&&$.inArray(id,val)===-1){val.push(id);}}self.$element.val(val);self.$element.trigger('input').trigger('change');});};SelectAdapter.prototype.bind=function(container,$container){var self=this;this.container=container;container.on('select',function(params){self.select(params.data);});container.on('unselect',function(params){self.unselect(params.data);});};SelectAdapter.prototype.destroy=function(){// Remove anything added to child elements\nthis.$element.find('*').each(function(){// Remove any custom data set by Select2\nUtils.RemoveData(this);});};SelectAdapter.prototype.query=function(params,callback){var data=[];var self=this;var $options=this.$element.children();$options.each(function(){var $option=$(this);if(!$option.is('option')&&!$option.is('optgroup')){return;}var option=self.item($option);var matches=self.matches(params,option);if(matches!==null){data.push(matches);}});callback({results:data});};SelectAdapter.prototype.addOptions=function($options){Utils.appendMany(this.$element,$options);};SelectAdapter.prototype.option=function(data){var option;if(data.children){option=document.createElement('optgroup');option.label=data.text;}else{option=document.createElement('option');if(option.textContent!==undefined){option.textContent=data.text;}else{option.innerText=data.text;}}if(data.id!==undefined){option.value=data.id;}if(data.disabled){option.disabled=true;}if(data.selected){option.selected=true;}if(data.title){option.title=data.title;}var $option=$(option);var normalizedData=this._normalizeItem(data);normalizedData.element=option;// Override the option's data with the combined data\nUtils.StoreData(option,'data',normalizedData);return $option;};SelectAdapter.prototype.item=function($option){var data={};data=Utils.GetData($option[0],'data');if(data!=null){return data;}if($option.is('option')){data={id:$option.val(),text:$option.text(),disabled:$option.prop('disabled'),selected:$option.prop('selected'),title:$option.prop('title')};}else if($option.is('optgroup')){data={text:$option.prop('label'),children:[],title:$option.prop('title')};var $children=$option.children('option');var children=[];for(var c=0;c<$children.length;c++){var $child=$($children[c]);var child=this.item($child);children.push(child);}data.children=children;}data=this._normalizeItem(data);data.element=$option[0];Utils.StoreData($option[0],'data',data);return data;};SelectAdapter.prototype._normalizeItem=function(item){if(item!==Object(item)){item={id:item,text:item};}item=$.extend({},{text:''},item);var defaults={selected:false,disabled:false};if(item.id!=null){item.id=item.id.toString();}if(item.text!=null){item.text=item.text.toString();}if(item._resultId==null&&item.id&&this.container!=null){item._resultId=this.generateResultId(this.container,item);}return $.extend({},defaults,item);};SelectAdapter.prototype.matches=function(params,data){var matcher=this.options.get('matcher');return matcher(params,data);};return SelectAdapter;});S2.define('select2/data/array',['./select','../utils','jquery'],function(SelectAdapter,Utils,$){function ArrayAdapter($element,options){this._dataToConvert=options.get('data')||[];ArrayAdapter.__super__.constructor.call(this,$element,options);}Utils.Extend(ArrayAdapter,SelectAdapter);ArrayAdapter.prototype.bind=function(container,$container){ArrayAdapter.__super__.bind.call(this,container,$container);this.addOptions(this.convertToOptions(this._dataToConvert));};ArrayAdapter.prototype.select=function(data){var $option=this.$element.find('option').filter(function(i,elm){return elm.value==data.id.toString();});if($option.length===0){$option=this.option(data);this.addOptions($option);}ArrayAdapter.__super__.select.call(this,data);};ArrayAdapter.prototype.convertToOptions=function(data){var self=this;var $existing=this.$element.find('option');var existingIds=$existing.map(function(){return self.item($(this)).id;}).get();var $options=[];// Filter out all items except for the one passed in the argument\nfunction onlyItem(item){return function(){return $(this).val()==item.id;};}for(var d=0;d<data.length;d++){var item=this._normalizeItem(data[d]);// Skip items which were pre-loaded, only merge the data\nif($.inArray(item.id,existingIds)>=0){var $existingOption=$existing.filter(onlyItem(item));var existingData=this.item($existingOption);var newData=$.extend(true,{},item,existingData);var $newOption=this.option(newData);$existingOption.replaceWith($newOption);continue;}var $option=this.option(item);if(item.children){var $children=this.convertToOptions(item.children);Utils.appendMany($option,$children);}$options.push($option);}return $options;};return ArrayAdapter;});S2.define('select2/data/ajax',['./array','../utils','jquery'],function(ArrayAdapter,Utils,$){function AjaxAdapter($element,options){this.ajaxOptions=this._applyDefaults(options.get('ajax'));if(this.ajaxOptions.processResults!=null){this.processResults=this.ajaxOptions.processResults;}AjaxAdapter.__super__.constructor.call(this,$element,options);}Utils.Extend(AjaxAdapter,ArrayAdapter);AjaxAdapter.prototype._applyDefaults=function(options){var defaults={data:function(params){return $.extend({},params,{q:params.term});},transport:function(params,success,failure){var $request=$.ajax(params);$request.then(success);$request.fail(failure);return $request;}};return $.extend({},defaults,options,true);};AjaxAdapter.prototype.processResults=function(results){return results;};AjaxAdapter.prototype.query=function(params,callback){var matches=[];var self=this;if(this._request!=null){// JSONP requests cannot always be aborted\nif($.isFunction(this._request.abort)){this._request.abort();}this._request=null;}var options=$.extend({type:'GET'},this.ajaxOptions);if(typeof options.url==='function'){options.url=options.url.call(this.$element,params);}if(typeof options.data==='function'){options.data=options.data.call(this.$element,params);}function request(){var $request=options.transport(options,function(data){var results=self.processResults(data,params);if(self.options.get('debug')&&window.console&&console.error){// Check to make sure that the response included a `results` key.\nif(!results||!results.results||!$.isArray(results.results)){console.error('Select2: The AJAX results did not return an array in the '+'`results` key of the response.');}}callback(results);},function(){// Attempt to detect if a request was aborted\n// Only works if the transport exposes a status property\nif('status'in $request&&($request.status===0||$request.status==='0')){return;}self.trigger('results:message',{message:'errorLoading'});});self._request=$request;}if(this.ajaxOptions.delay&&params.term!=null){if(this._queryTimeout){window.clearTimeout(this._queryTimeout);}this._queryTimeout=window.setTimeout(request,this.ajaxOptions.delay);}else{request();}};return AjaxAdapter;});S2.define('select2/data/tags',['jquery'],function($){function Tags(decorated,$element,options){var tags=options.get('tags');var createTag=options.get('createTag');if(createTag!==undefined){this.createTag=createTag;}var insertTag=options.get('insertTag');if(insertTag!==undefined){this.insertTag=insertTag;}decorated.call(this,$element,options);if($.isArray(tags)){for(var t=0;t<tags.length;t++){var tag=tags[t];var item=this._normalizeItem(tag);var $option=this.option(item);this.$element.append($option);}}}Tags.prototype.query=function(decorated,params,callback){var self=this;this._removeOldTags();if(params.term==null||params.page!=null){decorated.call(this,params,callback);return;}function wrapper(obj,child){var data=obj.results;for(var i=0;i<data.length;i++){var option=data[i];var checkChildren=option.children!=null&&!wrapper({results:option.children},true);var optionText=(option.text||'').toUpperCase();var paramsTerm=(params.term||'').toUpperCase();var checkText=optionText===paramsTerm;if(checkText||checkChildren){if(child){return false;}obj.data=data;callback(obj);return;}}if(child){return true;}var tag=self.createTag(params);if(tag!=null){var $option=self.option(tag);$option.attr('data-select2-tag',true);self.addOptions([$option]);self.insertTag(data,tag);}obj.results=data;callback(obj);}decorated.call(this,params,wrapper);};Tags.prototype.createTag=function(decorated,params){var term=$.trim(params.term);if(term===''){return null;}return{id:term,text:term};};Tags.prototype.insertTag=function(_,data,tag){data.unshift(tag);};Tags.prototype._removeOldTags=function(_){var $options=this.$element.find('option[data-select2-tag]');$options.each(function(){if(this.selected){return;}$(this).remove();});};return Tags;});S2.define('select2/data/tokenizer',['jquery'],function($){function Tokenizer(decorated,$element,options){var tokenizer=options.get('tokenizer');if(tokenizer!==undefined){this.tokenizer=tokenizer;}decorated.call(this,$element,options);}Tokenizer.prototype.bind=function(decorated,container,$container){decorated.call(this,container,$container);this.$search=container.dropdown.$search||container.selection.$search||$container.find('.select2-search__field');};Tokenizer.prototype.query=function(decorated,params,callback){var self=this;function createAndSelect(data){// Normalize the data object so we can use it for checks\nvar item=self._normalizeItem(data);// Check if the data object already exists as a tag\n// Select it if it doesn't\nvar $existingOptions=self.$element.find('option').filter(function(){return $(this).val()===item.id;});// If an existing option wasn't found for it, create the option\nif(!$existingOptions.length){var $option=self.option(item);$option.attr('data-select2-tag',true);self._removeOldTags();self.addOptions([$option]);}// Select the item, now that we know there is an option for it\nselect(item);}function select(data){self.trigger('select',{data:data});}params.term=params.term||'';var tokenData=this.tokenizer(params,this.options,createAndSelect);if(tokenData.term!==params.term){// Replace the search term if we have the search box\nif(this.$search.length){this.$search.val(tokenData.term);this.$search.trigger('focus');}params.term=tokenData.term;}decorated.call(this,params,callback);};Tokenizer.prototype.tokenizer=function(_,params,options,callback){var separators=options.get('tokenSeparators')||[];var term=params.term;var i=0;var createTag=this.createTag||function(params){return{id:params.term,text:params.term};};while(i<term.length){var termChar=term[i];if($.inArray(termChar,separators)===-1){i++;continue;}var part=term.substr(0,i);var partParams=$.extend({},params,{term:part});var data=createTag(partParams);if(data==null){i++;continue;}callback(data);// Reset the term to not include the tokenized portion\nterm=term.substr(i+1)||'';i=0;}return{term:term};};return Tokenizer;});S2.define('select2/data/minimumInputLength',[],function(){function MinimumInputLength(decorated,$e,options){this.minimumInputLength=options.get('minimumInputLength');decorated.call(this,$e,options);}MinimumInputLength.prototype.query=function(decorated,params,callback){params.term=params.term||'';if(params.term.length<this.minimumInputLength){this.trigger('results:message',{message:'inputTooShort',args:{minimum:this.minimumInputLength,input:params.term,params:params}});return;}decorated.call(this,params,callback);};return MinimumInputLength;});S2.define('select2/data/maximumInputLength',[],function(){function MaximumInputLength(decorated,$e,options){this.maximumInputLength=options.get('maximumInputLength');decorated.call(this,$e,options);}MaximumInputLength.prototype.query=function(decorated,params,callback){params.term=params.term||'';if(this.maximumInputLength>0&&params.term.length>this.maximumInputLength){this.trigger('results:message',{message:'inputTooLong',args:{maximum:this.maximumInputLength,input:params.term,params:params}});return;}decorated.call(this,params,callback);};return MaximumInputLength;});S2.define('select2/data/maximumSelectionLength',[],function(){function MaximumSelectionLength(decorated,$e,options){this.maximumSelectionLength=options.get('maximumSelectionLength');decorated.call(this,$e,options);}MaximumSelectionLength.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on('select',function(){self._checkIfMaximumSelected();});};MaximumSelectionLength.prototype.query=function(decorated,params,callback){var self=this;this._checkIfMaximumSelected(function(){decorated.call(self,params,callback);});};MaximumSelectionLength.prototype._checkIfMaximumSelected=function(_,successCallback){var self=this;this.current(function(currentData){var count=currentData!=null?currentData.length:0;if(self.maximumSelectionLength>0&&count>=self.maximumSelectionLength){self.trigger('results:message',{message:'maximumSelected',args:{maximum:self.maximumSelectionLength}});return;}if(successCallback){successCallback();}});};return MaximumSelectionLength;});S2.define('select2/dropdown',['jquery','./utils'],function($,Utils){function Dropdown($element,options){this.$element=$element;this.options=options;Dropdown.__super__.constructor.call(this);}Utils.Extend(Dropdown,Utils.Observable);Dropdown.prototype.render=function(){var $dropdown=$('<span class=\"select2-dropdown\">'+'<span class=\"select2-results\"></span>'+'</span>');$dropdown.attr('dir',this.options.get('dir'));this.$dropdown=$dropdown;return $dropdown;};Dropdown.prototype.bind=function(){// Should be implemented in subclasses\n};Dropdown.prototype.position=function($dropdown,$container){// Should be implemented in subclasses\n};Dropdown.prototype.destroy=function(){// Remove the dropdown from the DOM\nthis.$dropdown.remove();};return Dropdown;});S2.define('select2/dropdown/search',['jquery','../utils'],function($,Utils){function Search(){}Search.prototype.render=function(decorated){var $rendered=decorated.call(this);var $search=$('<span class=\"select2-search select2-search--dropdown\">'+'<input class=\"select2-search__field\" type=\"search\" tabindex=\"-1\"'+' autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"none\"'+' spellcheck=\"false\" role=\"searchbox\" aria-autocomplete=\"list\" />'+'</span>');this.$searchContainer=$search;this.$search=$search.find('input');$rendered.prepend($search);return $rendered;};Search.prototype.bind=function(decorated,container,$container){var self=this;var resultsId=container.id+'-results';decorated.call(this,container,$container);this.$search.on('keydown',function(evt){self.trigger('keypress',evt);self._keyUpPrevented=evt.isDefaultPrevented();});// Workaround for browsers which do not support the `input` event\n// This will prevent double-triggering of events for browsers which support\n// both the `keyup` and `input` events.\nthis.$search.on('input',function(evt){// Unbind the duplicated `keyup` event\n$(this).off('keyup');});this.$search.on('keyup input',function(evt){self.handleSearch(evt);});container.on('open',function(){self.$search.attr('tabindex',0);self.$search.attr('aria-controls',resultsId);self.$search.trigger('focus');window.setTimeout(function(){self.$search.trigger('focus');},0);});container.on('close',function(){self.$search.attr('tabindex',-1);self.$search.removeAttr('aria-controls');self.$search.removeAttr('aria-activedescendant');self.$search.val('');self.$search.trigger('blur');});container.on('focus',function(){if(!container.isOpen()){self.$search.trigger('focus');}});container.on('results:all',function(params){if(params.query.term==null||params.query.term===''){var showSearch=self.showSearch(params);if(showSearch){self.$searchContainer.removeClass('select2-search--hide');}else{self.$searchContainer.addClass('select2-search--hide');}}});container.on('results:focus',function(params){if(params.data._resultId){self.$search.attr('aria-activedescendant',params.data._resultId);}else{self.$search.removeAttr('aria-activedescendant');}});};Search.prototype.handleSearch=function(evt){if(!this._keyUpPrevented){var input=this.$search.val();this.trigger('query',{term:input});}this._keyUpPrevented=false;};Search.prototype.showSearch=function(_,params){return true;};return Search;});S2.define('select2/dropdown/hidePlaceholder',[],function(){function HidePlaceholder(decorated,$element,options,dataAdapter){this.placeholder=this.normalizePlaceholder(options.get('placeholder'));decorated.call(this,$element,options,dataAdapter);}HidePlaceholder.prototype.append=function(decorated,data){data.results=this.removePlaceholder(data.results);decorated.call(this,data);};HidePlaceholder.prototype.normalizePlaceholder=function(_,placeholder){if(typeof placeholder==='string'){placeholder={id:'',text:placeholder};}return placeholder;};HidePlaceholder.prototype.removePlaceholder=function(_,data){var modifiedData=data.slice(0);for(var d=data.length-1;d>=0;d--){var item=data[d];if(this.placeholder.id===item.id){modifiedData.splice(d,1);}}return modifiedData;};return HidePlaceholder;});S2.define('select2/dropdown/infiniteScroll',['jquery'],function($){function InfiniteScroll(decorated,$element,options,dataAdapter){this.lastParams={};decorated.call(this,$element,options,dataAdapter);this.$loadingMore=this.createLoadingMore();this.loading=false;}InfiniteScroll.prototype.append=function(decorated,data){this.$loadingMore.remove();this.loading=false;decorated.call(this,data);if(this.showLoadingMore(data)){this.$results.append(this.$loadingMore);this.loadMoreIfNeeded();}};InfiniteScroll.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on('query',function(params){self.lastParams=params;self.loading=true;});container.on('query:append',function(params){self.lastParams=params;self.loading=true;});this.$results.on('scroll',this.loadMoreIfNeeded.bind(this));};InfiniteScroll.prototype.loadMoreIfNeeded=function(){var isLoadMoreVisible=$.contains(document.documentElement,this.$loadingMore[0]);if(this.loading||!isLoadMoreVisible){return;}var currentOffset=this.$results.offset().top+this.$results.outerHeight(false);var loadingMoreOffset=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(false);if(currentOffset+50>=loadingMoreOffset){this.loadMore();}};InfiniteScroll.prototype.loadMore=function(){this.loading=true;var params=$.extend({},{page:1},this.lastParams);params.page++;this.trigger('query:append',params);};InfiniteScroll.prototype.showLoadingMore=function(_,data){return data.pagination&&data.pagination.more;};InfiniteScroll.prototype.createLoadingMore=function(){var $option=$('<li '+'class=\"select2-results__option select2-results__option--load-more\"'+'role=\"option\" aria-disabled=\"true\"></li>');var message=this.options.get('translations').get('loadingMore');$option.html(message(this.lastParams));return $option;};return InfiniteScroll;});S2.define('select2/dropdown/attachBody',['jquery','../utils'],function($,Utils){function AttachBody(decorated,$element,options){this.$dropdownParent=$(options.get('dropdownParent')||document.body);decorated.call(this,$element,options);}AttachBody.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on('open',function(){self._showDropdown();self._attachPositioningHandler(container);// Must bind after the results handlers to ensure correct sizing\nself._bindContainerResultHandlers(container);});container.on('close',function(){self._hideDropdown();self._detachPositioningHandler(container);});this.$dropdownContainer.on('mousedown',function(evt){evt.stopPropagation();});};AttachBody.prototype.destroy=function(decorated){decorated.call(this);this.$dropdownContainer.remove();};AttachBody.prototype.position=function(decorated,$dropdown,$container){// Clone all of the container classes\n$dropdown.attr('class',$container.attr('class'));$dropdown.removeClass('select2');$dropdown.addClass('select2-container--open');$dropdown.css({position:'absolute',top:-999999});this.$container=$container;};AttachBody.prototype.render=function(decorated){var $container=$('<span></span>');var $dropdown=decorated.call(this);$container.append($dropdown);this.$dropdownContainer=$container;return $container;};AttachBody.prototype._hideDropdown=function(decorated){this.$dropdownContainer.detach();};AttachBody.prototype._bindContainerResultHandlers=function(decorated,container){// These should only be bound once\nif(this._containerResultsHandlersBound){return;}var self=this;container.on('results:all',function(){self._positionDropdown();self._resizeDropdown();});container.on('results:append',function(){self._positionDropdown();self._resizeDropdown();});container.on('results:message',function(){self._positionDropdown();self._resizeDropdown();});container.on('select',function(){self._positionDropdown();self._resizeDropdown();});container.on('unselect',function(){self._positionDropdown();self._resizeDropdown();});this._containerResultsHandlersBound=true;};AttachBody.prototype._attachPositioningHandler=function(decorated,container){var self=this;var scrollEvent='scroll.select2.'+container.id;var resizeEvent='resize.select2.'+container.id;var orientationEvent='orientationchange.select2.'+container.id;var $watchers=this.$container.parents().filter(Utils.hasScroll);$watchers.each(function(){Utils.StoreData(this,'select2-scroll-position',{x:$(this).scrollLeft(),y:$(this).scrollTop()});});$watchers.on(scrollEvent,function(ev){var position=Utils.GetData(this,'select2-scroll-position');$(this).scrollTop(position.y);});$(window).on(scrollEvent+' '+resizeEvent+' '+orientationEvent,function(e){self._positionDropdown();self._resizeDropdown();});};AttachBody.prototype._detachPositioningHandler=function(decorated,container){var scrollEvent='scroll.select2.'+container.id;var resizeEvent='resize.select2.'+container.id;var orientationEvent='orientationchange.select2.'+container.id;var $watchers=this.$container.parents().filter(Utils.hasScroll);$watchers.off(scrollEvent);$(window).off(scrollEvent+' '+resizeEvent+' '+orientationEvent);};AttachBody.prototype._positionDropdown=function(){var $window=$(window);var isCurrentlyAbove=this.$dropdown.hasClass('select2-dropdown--above');var isCurrentlyBelow=this.$dropdown.hasClass('select2-dropdown--below');var newDirection=null;var offset=this.$container.offset();offset.bottom=offset.top+this.$container.outerHeight(false);var container={height:this.$container.outerHeight(false)};container.top=offset.top;container.bottom=offset.top+container.height;var dropdown={height:this.$dropdown.outerHeight(false)};var viewport={top:$window.scrollTop(),bottom:$window.scrollTop()+$window.height()};var enoughRoomAbove=viewport.top<offset.top-dropdown.height;var enoughRoomBelow=viewport.bottom>offset.bottom+dropdown.height;var css={left:offset.left,top:container.bottom};// Determine what the parent element is to use for calculating the offset\nvar $offsetParent=this.$dropdownParent;// For statically positioned elements, we need to get the element\n// that is determining the offset\nif($offsetParent.css('position')==='static'){$offsetParent=$offsetParent.offsetParent();}var parentOffset={top:0,left:0};if($.contains(document.body,$offsetParent[0])||$offsetParent[0].isConnected){parentOffset=$offsetParent.offset();}css.top-=parentOffset.top;css.left-=parentOffset.left;if(!isCurrentlyAbove&&!isCurrentlyBelow){newDirection='below';}if(!enoughRoomBelow&&enoughRoomAbove&&!isCurrentlyAbove){newDirection='above';}else if(!enoughRoomAbove&&enoughRoomBelow&&isCurrentlyAbove){newDirection='below';}if(newDirection=='above'||isCurrentlyAbove&&newDirection!=='below'){css.top=container.top-parentOffset.top-dropdown.height;}if(newDirection!=null){this.$dropdown.removeClass('select2-dropdown--below select2-dropdown--above').addClass('select2-dropdown--'+newDirection);this.$container.removeClass('select2-container--below select2-container--above').addClass('select2-container--'+newDirection);}this.$dropdownContainer.css(css);};AttachBody.prototype._resizeDropdown=function(){var css={width:this.$container.outerWidth(false)+'px'};if(this.options.get('dropdownAutoWidth')){css.minWidth=css.width;css.position='relative';css.width='auto';}this.$dropdown.css(css);};AttachBody.prototype._showDropdown=function(decorated){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown();};return AttachBody;});S2.define('select2/dropdown/minimumResultsForSearch',[],function(){function countResults(data){var count=0;for(var d=0;d<data.length;d++){var item=data[d];if(item.children){count+=countResults(item.children);}else{count++;}}return count;}function MinimumResultsForSearch(decorated,$element,options,dataAdapter){this.minimumResultsForSearch=options.get('minimumResultsForSearch');if(this.minimumResultsForSearch<0){this.minimumResultsForSearch=Infinity;}decorated.call(this,$element,options,dataAdapter);}MinimumResultsForSearch.prototype.showSearch=function(decorated,params){if(countResults(params.data.results)<this.minimumResultsForSearch){return false;}return decorated.call(this,params);};return MinimumResultsForSearch;});S2.define('select2/dropdown/selectOnClose',['../utils'],function(Utils){function SelectOnClose(){}SelectOnClose.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on('close',function(params){self._handleSelectOnClose(params);});};SelectOnClose.prototype._handleSelectOnClose=function(_,params){if(params&&params.originalSelect2Event!=null){var event=params.originalSelect2Event;// Don't select an item if the close event was triggered from a select or\n// unselect event\nif(event._type==='select'||event._type==='unselect'){return;}}var $highlightedResults=this.getHighlightedResults();// Only select highlighted results\nif($highlightedResults.length<1){return;}var data=Utils.GetData($highlightedResults[0],'data');// Don't re-select already selected resulte\nif(data.element!=null&&data.element.selected||data.element==null&&data.selected){return;}this.trigger('select',{data:data});};return SelectOnClose;});S2.define('select2/dropdown/closeOnSelect',[],function(){function CloseOnSelect(){}CloseOnSelect.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on('select',function(evt){self._selectTriggered(evt);});container.on('unselect',function(evt){self._selectTriggered(evt);});};CloseOnSelect.prototype._selectTriggered=function(_,evt){var originalEvent=evt.originalEvent;// Don't close if the control key is being held\nif(originalEvent&&(originalEvent.ctrlKey||originalEvent.metaKey)){return;}this.trigger('close',{originalEvent:originalEvent,originalSelect2Event:evt});};return CloseOnSelect;});S2.define('select2/i18n/en',[],function(){// English\nreturn{errorLoading:function(){return'The results could not be loaded.';},inputTooLong:function(args){var overChars=args.input.length-args.maximum;var message='Please delete '+overChars+' character';if(overChars!=1){message+='s';}return message;},inputTooShort:function(args){var remainingChars=args.minimum-args.input.length;var message='Please enter '+remainingChars+' or more characters';return message;},loadingMore:function(){return'Loading more results…';},maximumSelected:function(args){var message='You can only select '+args.maximum+' item';if(args.maximum!=1){message+='s';}return message;},noResults:function(){return'No results found';},searching:function(){return'Searching…';},removeAllItems:function(){return'Remove all items';}};});S2.define('select2/defaults',['jquery','require','./results','./selection/single','./selection/multiple','./selection/placeholder','./selection/allowClear','./selection/search','./selection/eventRelay','./utils','./translation','./diacritics','./data/select','./data/array','./data/ajax','./data/tags','./data/tokenizer','./data/minimumInputLength','./data/maximumInputLength','./data/maximumSelectionLength','./dropdown','./dropdown/search','./dropdown/hidePlaceholder','./dropdown/infiniteScroll','./dropdown/attachBody','./dropdown/minimumResultsForSearch','./dropdown/selectOnClose','./dropdown/closeOnSelect','./i18n/en'],function($,require,ResultsList,SingleSelection,MultipleSelection,Placeholder,AllowClear,SelectionSearch,EventRelay,Utils,Translation,DIACRITICS,SelectData,ArrayData,AjaxData,Tags,Tokenizer,MinimumInputLength,MaximumInputLength,MaximumSelectionLength,Dropdown,DropdownSearch,HidePlaceholder,InfiniteScroll,AttachBody,MinimumResultsForSearch,SelectOnClose,CloseOnSelect,EnglishTranslation){function Defaults(){this.reset();}Defaults.prototype.apply=function(options){options=$.extend(true,{},this.defaults,options);if(options.dataAdapter==null){if(options.ajax!=null){options.dataAdapter=AjaxData;}else if(options.data!=null){options.dataAdapter=ArrayData;}else{options.dataAdapter=SelectData;}if(options.minimumInputLength>0){options.dataAdapter=Utils.Decorate(options.dataAdapter,MinimumInputLength);}if(options.maximumInputLength>0){options.dataAdapter=Utils.Decorate(options.dataAdapter,MaximumInputLength);}if(options.maximumSelectionLength>0){options.dataAdapter=Utils.Decorate(options.dataAdapter,MaximumSelectionLength);}if(options.tags){options.dataAdapter=Utils.Decorate(options.dataAdapter,Tags);}if(options.tokenSeparators!=null||options.tokenizer!=null){options.dataAdapter=Utils.Decorate(options.dataAdapter,Tokenizer);}if(options.query!=null){var Query=require(options.amdBase+'compat/query');options.dataAdapter=Utils.Decorate(options.dataAdapter,Query);}if(options.initSelection!=null){var InitSelection=require(options.amdBase+'compat/initSelection');options.dataAdapter=Utils.Decorate(options.dataAdapter,InitSelection);}}if(options.resultsAdapter==null){options.resultsAdapter=ResultsList;if(options.ajax!=null){options.resultsAdapter=Utils.Decorate(options.resultsAdapter,InfiniteScroll);}if(options.placeholder!=null){options.resultsAdapter=Utils.Decorate(options.resultsAdapter,HidePlaceholder);}if(options.selectOnClose){options.resultsAdapter=Utils.Decorate(options.resultsAdapter,SelectOnClose);}}if(options.dropdownAdapter==null){if(options.multiple){options.dropdownAdapter=Dropdown;}else{var SearchableDropdown=Utils.Decorate(Dropdown,DropdownSearch);options.dropdownAdapter=SearchableDropdown;}if(options.minimumResultsForSearch!==0){options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,MinimumResultsForSearch);}if(options.closeOnSelect){options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,CloseOnSelect);}if(options.dropdownCssClass!=null||options.dropdownCss!=null||options.adaptDropdownCssClass!=null){var DropdownCSS=require(options.amdBase+'compat/dropdownCss');options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,DropdownCSS);}options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,AttachBody);}if(options.selectionAdapter==null){if(options.multiple){options.selectionAdapter=MultipleSelection;}else{options.selectionAdapter=SingleSelection;}// Add the placeholder mixin if a placeholder was specified\nif(options.placeholder!=null){options.selectionAdapter=Utils.Decorate(options.selectionAdapter,Placeholder);}if(options.allowClear){options.selectionAdapter=Utils.Decorate(options.selectionAdapter,AllowClear);}if(options.multiple){options.selectionAdapter=Utils.Decorate(options.selectionAdapter,SelectionSearch);}if(options.containerCssClass!=null||options.containerCss!=null||options.adaptContainerCssClass!=null){var ContainerCSS=require(options.amdBase+'compat/containerCss');options.selectionAdapter=Utils.Decorate(options.selectionAdapter,ContainerCSS);}options.selectionAdapter=Utils.Decorate(options.selectionAdapter,EventRelay);}// If the defaults were not previously applied from an element, it is\n// possible for the language option to have not been resolved\noptions.language=this._resolveLanguage(options.language);// Always fall back to English since it will always be complete\noptions.language.push('en');var uniqueLanguages=[];for(var l=0;l<options.language.length;l++){var language=options.language[l];if(uniqueLanguages.indexOf(language)===-1){uniqueLanguages.push(language);}}options.language=uniqueLanguages;options.translations=this._processTranslations(options.language,options.debug);return options;};Defaults.prototype.reset=function(){function stripDiacritics(text){// Used 'uni range + named function' from http://jsperf.com/diacritics/18\nfunction match(a){return DIACRITICS[a]||a;}return text.replace(/[^\\u0000-\\u007E]/g,match);}function matcher(params,data){// Always return the object if there is nothing to compare\nif($.trim(params.term)===''){return data;}// Do a recursive check for options with children\nif(data.children&&data.children.length>0){// Clone the data object if there are children\n// This is required as we modify the object to remove any non-matches\nvar match=$.extend(true,{},data);// Check each child of the option\nfor(var c=data.children.length-1;c>=0;c--){var child=data.children[c];var matches=matcher(params,child);// If there wasn't a match, remove the object in the array\nif(matches==null){match.children.splice(c,1);}}// If any children matched, return the new object\nif(match.children.length>0){return match;}// If there were no matching children, check just the plain object\nreturn matcher(params,match);}var original=stripDiacritics(data.text).toUpperCase();var term=stripDiacritics(params.term).toUpperCase();// Check if the text contains the term\nif(original.indexOf(term)>-1){return data;}// If it doesn't contain the term, don't return anything\nreturn null;}this.defaults={amdBase:'./',amdLanguageBase:'./i18n/',closeOnSelect:true,debug:false,dropdownAutoWidth:false,escapeMarkup:Utils.escapeMarkup,language:{},matcher:matcher,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:false,scrollAfterSelect:false,sorter:function(data){return data;},templateResult:function(result){return result.text;},templateSelection:function(selection){return selection.text;},theme:'default',width:'resolve'};};Defaults.prototype.applyFromElement=function(options,$element){var optionLanguage=options.language;var defaultLanguage=this.defaults.language;var elementLanguage=$element.prop('lang');var parentLanguage=$element.closest('[lang]').prop('lang');var languages=Array.prototype.concat.call(this._resolveLanguage(elementLanguage),this._resolveLanguage(optionLanguage),this._resolveLanguage(defaultLanguage),this._resolveLanguage(parentLanguage));options.language=languages;return options;};Defaults.prototype._resolveLanguage=function(language){if(!language){return[];}if($.isEmptyObject(language)){return[];}if($.isPlainObject(language)){return[language];}var languages;if(!$.isArray(language)){languages=[language];}else{languages=language;}var resolvedLanguages=[];for(var l=0;l<languages.length;l++){resolvedLanguages.push(languages[l]);if(typeof languages[l]==='string'&&languages[l].indexOf('-')>0){// Extract the region information if it is included\nvar languageParts=languages[l].split('-');var baseLanguage=languageParts[0];resolvedLanguages.push(baseLanguage);}}return resolvedLanguages;};Defaults.prototype._processTranslations=function(languages,debug){var translations=new Translation();for(var l=0;l<languages.length;l++){var languageData=new Translation();var language=languages[l];if(typeof language==='string'){try{// Try to load it with the original name\nlanguageData=Translation.loadPath(language);}catch(e){try{// If we couldn't load it, check if it wasn't the full path\nlanguage=this.defaults.amdLanguageBase+language;languageData=Translation.loadPath(language);}catch(ex){// The translation could not be loaded at all. Sometimes this is\n// because of a configuration problem, other times this can be\n// because of how Select2 helps load all possible translation files\nif(debug&&window.console&&console.warn){console.warn('Select2: The language file for \"'+language+'\" could '+'not be automatically loaded. A fallback will be used instead.');}}}}else if($.isPlainObject(language)){languageData=new Translation(language);}else{languageData=language;}translations.extend(languageData);}return translations;};Defaults.prototype.set=function(key,value){var camelKey=$.camelCase(key);var data={};data[camelKey]=value;var convertedData=Utils._convertData(data);$.extend(true,this.defaults,convertedData);};var defaults=new Defaults();return defaults;});S2.define('select2/options',['require','jquery','./defaults','./utils'],function(require,$,Defaults,Utils){function Options(options,$element){this.options=options;if($element!=null){this.fromElement($element);}if($element!=null){this.options=Defaults.applyFromElement(this.options,$element);}this.options=Defaults.apply(this.options);if($element&&$element.is('input')){var InputCompat=require(this.get('amdBase')+'compat/inputData');this.options.dataAdapter=Utils.Decorate(this.options.dataAdapter,InputCompat);}}Options.prototype.fromElement=function($e){var excludedData=['select2'];if(this.options.multiple==null){this.options.multiple=$e.prop('multiple');}if(this.options.disabled==null){this.options.disabled=$e.prop('disabled');}if(this.options.dir==null){if($e.prop('dir')){this.options.dir=$e.prop('dir');}else if($e.closest('[dir]').prop('dir')){this.options.dir=$e.closest('[dir]').prop('dir');}else{this.options.dir='ltr';}}$e.prop('disabled',this.options.disabled);$e.prop('multiple',this.options.multiple);if(Utils.GetData($e[0],'select2Tags')){if(this.options.debug&&window.console&&console.warn){console.warn('Select2: The `data-select2-tags` attribute has been changed to '+'use the `data-data` and `data-tags=\"true\"` attributes and will be '+'removed in future versions of Select2.');}Utils.StoreData($e[0],'data',Utils.GetData($e[0],'select2Tags'));Utils.StoreData($e[0],'tags',true);}if(Utils.GetData($e[0],'ajaxUrl')){if(this.options.debug&&window.console&&console.warn){console.warn('Select2: The `data-ajax-url` attribute has been changed to '+'`data-ajax--url` and support for the old attribute will be removed'+' in future versions of Select2.');}$e.attr('ajax--url',Utils.GetData($e[0],'ajaxUrl'));Utils.StoreData($e[0],'ajax-Url',Utils.GetData($e[0],'ajaxUrl'));}var dataset={};function upperCaseLetter(_,letter){return letter.toUpperCase();}// Pre-load all of the attributes which are prefixed with `data-`\nfor(var attr=0;attr<$e[0].attributes.length;attr++){var attributeName=$e[0].attributes[attr].name;var prefix='data-';if(attributeName.substr(0,prefix.length)==prefix){// Get the contents of the attribute after `data-`\nvar dataName=attributeName.substring(prefix.length);// Get the data contents from the consistent source\n// This is more than likely the jQuery data helper\nvar dataValue=Utils.GetData($e[0],dataName);// camelCase the attribute name to match the spec\nvar camelDataName=dataName.replace(/-([a-z])/g,upperCaseLetter);// Store the data attribute contents into the dataset since\ndataset[camelDataName]=dataValue;}}// Prefer the element's `dataset` attribute if it exists\n// jQuery 1.x does not correctly handle data attributes with multiple dashes\nif($.fn.jquery&&$.fn.jquery.substr(0,2)=='1.'&&$e[0].dataset){dataset=$.extend(true,{},$e[0].dataset,dataset);}// Prefer our internal data cache if it exists\nvar data=$.extend(true,{},Utils.GetData($e[0]),dataset);data=Utils._convertData(data);for(var key in data){if($.inArray(key,excludedData)>-1){continue;}if($.isPlainObject(this.options[key])){$.extend(this.options[key],data[key]);}else{this.options[key]=data[key];}}return this;};Options.prototype.get=function(key){return this.options[key];};Options.prototype.set=function(key,val){this.options[key]=val;};return Options;});S2.define('select2/core',['jquery','./options','./utils','./keys'],function($,Options,Utils,KEYS){var Select2=function($element,options){if(Utils.GetData($element[0],'select2')!=null){Utils.GetData($element[0],'select2').destroy();}this.$element=$element;this.id=this._generateId($element);options=options||{};this.options=new Options(options,$element);Select2.__super__.constructor.call(this);// Set up the tabindex\nvar tabindex=$element.attr('tabindex')||0;Utils.StoreData($element[0],'old-tabindex',tabindex);$element.attr('tabindex','-1');// Set up containers and adapters\nvar DataAdapter=this.options.get('dataAdapter');this.dataAdapter=new DataAdapter($element,this.options);var $container=this.render();this._placeContainer($container);var SelectionAdapter=this.options.get('selectionAdapter');this.selection=new SelectionAdapter($element,this.options);this.$selection=this.selection.render();this.selection.position(this.$selection,$container);var DropdownAdapter=this.options.get('dropdownAdapter');this.dropdown=new DropdownAdapter($element,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,$container);var ResultsAdapter=this.options.get('resultsAdapter');this.results=new ResultsAdapter($element,this.options,this.dataAdapter);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);// Bind events\nvar self=this;// Bind the container to all of the adapters\nthis._bindAdapters();// Register any DOM event handlers\nthis._registerDomEvents();// Register any internal event handlers\nthis._registerDataEvents();this._registerSelectionEvents();this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();// Set the initial state\nthis.dataAdapter.current(function(initialData){self.trigger('selection:update',{data:initialData});});// Hide the original select\n$element.addClass('select2-hidden-accessible');$element.attr('aria-hidden','true');// Synchronize any monitored attributes\nthis._syncAttributes();Utils.StoreData($element[0],'select2',this);// Ensure backwards compatibility with $element.data('select2').\n$element.data('select2',this);};Utils.Extend(Select2,Utils.Observable);Select2.prototype._generateId=function($element){var id='';if($element.attr('id')!=null){id=$element.attr('id');}else if($element.attr('name')!=null){id=$element.attr('name')+'-'+Utils.generateChars(2);}else{id=Utils.generateChars(4);}id=id.replace(/(:|\\.|\\[|\\]|,)/g,'');id='select2-'+id;return id;};Select2.prototype._placeContainer=function($container){$container.insertAfter(this.$element);var width=this._resolveWidth(this.$element,this.options.get('width'));if(width!=null){$container.css('width',width);}};Select2.prototype._resolveWidth=function($element,method){var WIDTH=/^width:(([-+]?([0-9]*\\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(method=='resolve'){var styleWidth=this._resolveWidth($element,'style');if(styleWidth!=null){return styleWidth;}return this._resolveWidth($element,'element');}if(method=='element'){var elementWidth=$element.outerWidth(false);if(elementWidth<=0){return'auto';}return elementWidth+'px';}if(method=='style'){var style=$element.attr('style');if(typeof style!=='string'){return null;}var attrs=style.split(';');for(var i=0,l=attrs.length;i<l;i=i+1){var attr=attrs[i].replace(/\\s/g,'');var matches=attr.match(WIDTH);if(matches!==null&&matches.length>=1){return matches[1];}}return null;}if(method=='computedstyle'){var computedStyle=window.getComputedStyle($element[0]);return computedStyle.width;}return method;};Select2.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container);this.selection.bind(this,this.$container);this.dropdown.bind(this,this.$container);this.results.bind(this,this.$container);};Select2.prototype._registerDomEvents=function(){var self=this;this.$element.on('change.select2',function(){self.dataAdapter.current(function(data){self.trigger('selection:update',{data:data});});});this.$element.on('focus.select2',function(evt){self.trigger('focus',evt);});this._syncA=Utils.bind(this._syncAttributes,this);this._syncS=Utils.bind(this._syncSubtree,this);if(this.$element[0].attachEvent){this.$element[0].attachEvent('onpropertychange',this._syncA);}var observer=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(observer!=null){this._observer=new observer(function(mutations){self._syncA();self._syncS(null,mutations);});this._observer.observe(this.$element[0],{attributes:true,childList:true,subtree:false});}else if(this.$element[0].addEventListener){this.$element[0].addEventListener('DOMAttrModified',self._syncA,false);this.$element[0].addEventListener('DOMNodeInserted',self._syncS,false);this.$element[0].addEventListener('DOMNodeRemoved',self._syncS,false);}};Select2.prototype._registerDataEvents=function(){var self=this;this.dataAdapter.on('*',function(name,params){self.trigger(name,params);});};Select2.prototype._registerSelectionEvents=function(){var self=this;var nonRelayEvents=['toggle','focus'];this.selection.on('toggle',function(){self.toggleDropdown();});this.selection.on('focus',function(params){self.focus(params);});this.selection.on('*',function(name,params){if($.inArray(name,nonRelayEvents)!==-1){return;}self.trigger(name,params);});};Select2.prototype._registerDropdownEvents=function(){var self=this;this.dropdown.on('*',function(name,params){self.trigger(name,params);});};Select2.prototype._registerResultsEvents=function(){var self=this;this.results.on('*',function(name,params){self.trigger(name,params);});};Select2.prototype._registerEvents=function(){var self=this;this.on('open',function(){self.$container.addClass('select2-container--open');});this.on('close',function(){self.$container.removeClass('select2-container--open');});this.on('enable',function(){self.$container.removeClass('select2-container--disabled');});this.on('disable',function(){self.$container.addClass('select2-container--disabled');});this.on('blur',function(){self.$container.removeClass('select2-container--focus');});this.on('query',function(params){if(!self.isOpen()){self.trigger('open',{});}this.dataAdapter.query(params,function(data){self.trigger('results:all',{data:data,query:params});});});this.on('query:append',function(params){this.dataAdapter.query(params,function(data){self.trigger('results:append',{data:data,query:params});});});this.on('keypress',function(evt){var key=evt.which;if(self.isOpen()){if(key===KEYS.ESC||key===KEYS.TAB||key===KEYS.UP&&evt.altKey){self.close(evt);evt.preventDefault();}else if(key===KEYS.ENTER){self.trigger('results:select',{});evt.preventDefault();}else if(key===KEYS.SPACE&&evt.ctrlKey){self.trigger('results:toggle',{});evt.preventDefault();}else if(key===KEYS.UP){self.trigger('results:previous',{});evt.preventDefault();}else if(key===KEYS.DOWN){self.trigger('results:next',{});evt.preventDefault();}}else{if(key===KEYS.ENTER||key===KEYS.SPACE||key===KEYS.DOWN&&evt.altKey){self.open();evt.preventDefault();}}});};Select2.prototype._syncAttributes=function(){this.options.set('disabled',this.$element.prop('disabled'));if(this.isDisabled()){if(this.isOpen()){this.close();}this.trigger('disable',{});}else{this.trigger('enable',{});}};Select2.prototype._isChangeMutation=function(evt,mutations){var changed=false;var self=this;// Ignore any mutation events raised for elements that aren't options or\n// optgroups. This handles the case when the select element is destroyed\nif(evt&&evt.target&&evt.target.nodeName!=='OPTION'&&evt.target.nodeName!=='OPTGROUP'){return;}if(!mutations){// If mutation events aren't supported, then we can only assume that the\n// change affected the selections\nchanged=true;}else if(mutations.addedNodes&&mutations.addedNodes.length>0){for(var n=0;n<mutations.addedNodes.length;n++){var node=mutations.addedNodes[n];if(node.selected){changed=true;}}}else if(mutations.removedNodes&&mutations.removedNodes.length>0){changed=true;}else if($.isArray(mutations)){$.each(mutations,function(evt,mutation){if(self._isChangeMutation(evt,mutation)){// We've found a change mutation.\n// Let's escape from the loop and continue\nchanged=true;return false;}});}return changed;};Select2.prototype._syncSubtree=function(evt,mutations){var changed=this._isChangeMutation(evt,mutations);var self=this;// Only re-pull the data if we think there is a change\nif(changed){this.dataAdapter.current(function(currentData){self.trigger('selection:update',{data:currentData});});}};/**\r\n     * Override the trigger method to automatically trigger pre-events when\r\n     * there are events that can be prevented.\r\n     */Select2.prototype.trigger=function(name,args){var actualTrigger=Select2.__super__.trigger;var preTriggerMap={'open':'opening','close':'closing','select':'selecting','unselect':'unselecting','clear':'clearing'};if(args===undefined){args={};}if(name in preTriggerMap){var preTriggerName=preTriggerMap[name];var preTriggerArgs={prevented:false,name:name,args:args};actualTrigger.call(this,preTriggerName,preTriggerArgs);if(preTriggerArgs.prevented){args.prevented=true;return;}}actualTrigger.call(this,name,args);};Select2.prototype.toggleDropdown=function(){if(this.isDisabled()){return;}if(this.isOpen()){this.close();}else{this.open();}};Select2.prototype.open=function(){if(this.isOpen()){return;}if(this.isDisabled()){return;}this.trigger('query',{});};Select2.prototype.close=function(evt){if(!this.isOpen()){return;}this.trigger('close',{originalEvent:evt});};/**\r\n     * Helper method to abstract the \"enabled\" (not \"disabled\") state of this\r\n     * object.\r\n     *\r\n     * @return {true} if the instance is not disabled.\r\n     * @return {false} if the instance is disabled.\r\n     */Select2.prototype.isEnabled=function(){return!this.isDisabled();};/**\r\n     * Helper method to abstract the \"disabled\" state of this object.\r\n     *\r\n     * @return {true} if the disabled option is true.\r\n     * @return {false} if the disabled option is false.\r\n     */Select2.prototype.isDisabled=function(){return this.options.get('disabled');};Select2.prototype.isOpen=function(){return this.$container.hasClass('select2-container--open');};Select2.prototype.hasFocus=function(){return this.$container.hasClass('select2-container--focus');};Select2.prototype.focus=function(data){// No need to re-trigger focus events if we are already focused\nif(this.hasFocus()){return;}this.$container.addClass('select2-container--focus');this.trigger('focus',{});};Select2.prototype.enable=function(args){if(this.options.get('debug')&&window.console&&console.warn){console.warn('Select2: The `select2(\"enable\")` method has been deprecated and will'+' be removed in later Select2 versions. Use $element.prop(\"disabled\")'+' instead.');}if(args==null||args.length===0){args=[true];}var disabled=!args[0];this.$element.prop('disabled',disabled);};Select2.prototype.data=function(){if(this.options.get('debug')&&arguments.length>0&&window.console&&console.warn){console.warn('Select2: Data can no longer be set using `select2(\"data\")`. You '+'should consider setting the value instead using `$element.val()`.');}var data=[];this.dataAdapter.current(function(currentData){data=currentData;});return data;};Select2.prototype.val=function(args){if(this.options.get('debug')&&window.console&&console.warn){console.warn('Select2: The `select2(\"val\")` method has been deprecated and will be'+' removed in later Select2 versions. Use $element.val() instead.');}if(args==null||args.length===0){return this.$element.val();}var newVal=args[0];if($.isArray(newVal)){newVal=$.map(newVal,function(obj){return obj.toString();});}this.$element.val(newVal).trigger('input').trigger('change');};Select2.prototype.destroy=function(){this.$container.remove();if(this.$element[0].detachEvent){this.$element[0].detachEvent('onpropertychange',this._syncA);}if(this._observer!=null){this._observer.disconnect();this._observer=null;}else if(this.$element[0].removeEventListener){this.$element[0].removeEventListener('DOMAttrModified',this._syncA,false);this.$element[0].removeEventListener('DOMNodeInserted',this._syncS,false);this.$element[0].removeEventListener('DOMNodeRemoved',this._syncS,false);}this._syncA=null;this._syncS=null;this.$element.off('.select2');this.$element.attr('tabindex',Utils.GetData(this.$element[0],'old-tabindex'));this.$element.removeClass('select2-hidden-accessible');this.$element.attr('aria-hidden','false');Utils.RemoveData(this.$element[0]);this.$element.removeData('select2');this.dataAdapter.destroy();this.selection.destroy();this.dropdown.destroy();this.results.destroy();this.dataAdapter=null;this.selection=null;this.dropdown=null;this.results=null;};Select2.prototype.render=function(){var $container=$('<span class=\"select2 select2-container\">'+'<span class=\"selection\"></span>'+'<span class=\"dropdown-wrapper\" aria-hidden=\"true\"></span>'+'</span>');$container.attr('dir',this.options.get('dir'));this.$container=$container;this.$container.addClass('select2-container--'+this.options.get('theme'));Utils.StoreData($container[0],'element',this.$element);return $container;};return Select2;});S2.define('select2/compat/utils',['jquery'],function($){function syncCssClasses($dest,$src,adapter){var classes,replacements=[],adapted;classes=$.trim($dest.attr('class'));if(classes){classes=''+classes;// for IE which returns object\n$(classes.split(/\\s+/)).each(function(){// Save all Select2 classes\nif(this.indexOf('select2-')===0){replacements.push(this);}});}classes=$.trim($src.attr('class'));if(classes){classes=''+classes;// for IE which returns object\n$(classes.split(/\\s+/)).each(function(){// Only adapt non-Select2 classes\nif(this.indexOf('select2-')!==0){adapted=adapter(this);if(adapted!=null){replacements.push(adapted);}}});}$dest.attr('class',replacements.join(' '));}return{syncCssClasses:syncCssClasses};});S2.define('select2/compat/containerCss',['jquery','./utils'],function($,CompatUtils){// No-op CSS adapter that discards all classes by default\nfunction _containerAdapter(clazz){return null;}function ContainerCSS(){}ContainerCSS.prototype.render=function(decorated){var $container=decorated.call(this);var containerCssClass=this.options.get('containerCssClass')||'';if($.isFunction(containerCssClass)){containerCssClass=containerCssClass(this.$element);}var containerCssAdapter=this.options.get('adaptContainerCssClass');containerCssAdapter=containerCssAdapter||_containerAdapter;if(containerCssClass.indexOf(':all:')!==-1){containerCssClass=containerCssClass.replace(':all:','');var _cssAdapter=containerCssAdapter;containerCssAdapter=function(clazz){var adapted=_cssAdapter(clazz);if(adapted!=null){// Append the old one along with the adapted one\nreturn adapted+' '+clazz;}return clazz;};}var containerCss=this.options.get('containerCss')||{};if($.isFunction(containerCss)){containerCss=containerCss(this.$element);}CompatUtils.syncCssClasses($container,this.$element,containerCssAdapter);$container.css(containerCss);$container.addClass(containerCssClass);return $container;};return ContainerCSS;});S2.define('select2/compat/dropdownCss',['jquery','./utils'],function($,CompatUtils){// No-op CSS adapter that discards all classes by default\nfunction _dropdownAdapter(clazz){return null;}function DropdownCSS(){}DropdownCSS.prototype.render=function(decorated){var $dropdown=decorated.call(this);var dropdownCssClass=this.options.get('dropdownCssClass')||'';if($.isFunction(dropdownCssClass)){dropdownCssClass=dropdownCssClass(this.$element);}var dropdownCssAdapter=this.options.get('adaptDropdownCssClass');dropdownCssAdapter=dropdownCssAdapter||_dropdownAdapter;if(dropdownCssClass.indexOf(':all:')!==-1){dropdownCssClass=dropdownCssClass.replace(':all:','');var _cssAdapter=dropdownCssAdapter;dropdownCssAdapter=function(clazz){var adapted=_cssAdapter(clazz);if(adapted!=null){// Append the old one along with the adapted one\nreturn adapted+' '+clazz;}return clazz;};}var dropdownCss=this.options.get('dropdownCss')||{};if($.isFunction(dropdownCss)){dropdownCss=dropdownCss(this.$element);}CompatUtils.syncCssClasses($dropdown,this.$element,dropdownCssAdapter);$dropdown.css(dropdownCss);$dropdown.addClass(dropdownCssClass);return $dropdown;};return DropdownCSS;});S2.define('select2/compat/initSelection',['jquery'],function($){function InitSelection(decorated,$element,options){if(options.get('debug')&&window.console&&console.warn){console.warn('Select2: The `initSelection` option has been deprecated in favor'+' of a custom data adapter that overrides the `current` method. '+'This method is now called multiple times instead of a single '+'time when the instance is initialized. Support will be removed '+'for the `initSelection` option in future versions of Select2');}this.initSelection=options.get('initSelection');this._isInitialized=false;decorated.call(this,$element,options);}InitSelection.prototype.current=function(decorated,callback){var self=this;if(this._isInitialized){decorated.call(this,callback);return;}this.initSelection.call(null,this.$element,function(data){self._isInitialized=true;if(!$.isArray(data)){data=[data];}callback(data);});};return InitSelection;});S2.define('select2/compat/inputData',['jquery','../utils'],function($,Utils){function InputData(decorated,$element,options){this._currentData=[];this._valueSeparator=options.get('valueSeparator')||',';if($element.prop('type')==='hidden'){if(options.get('debug')&&console&&console.warn){console.warn('Select2: Using a hidden input with Select2 is no longer '+'supported and may stop working in the future. It is recommended '+'to use a `<select>` element instead.');}}decorated.call(this,$element,options);}InputData.prototype.current=function(_,callback){function getSelected(data,selectedIds){var selected=[];if(data.selected||$.inArray(data.id,selectedIds)!==-1){data.selected=true;selected.push(data);}else{data.selected=false;}if(data.children){selected.push.apply(selected,getSelected(data.children,selectedIds));}return selected;}var selected=[];for(var d=0;d<this._currentData.length;d++){var data=this._currentData[d];selected.push.apply(selected,getSelected(data,this.$element.val().split(this._valueSeparator)));}callback(selected);};InputData.prototype.select=function(_,data){if(!this.options.get('multiple')){this.current(function(allData){$.map(allData,function(data){data.selected=false;});});this.$element.val(data.id);this.$element.trigger('input').trigger('change');}else{var value=this.$element.val();value+=this._valueSeparator+data.id;this.$element.val(value);this.$element.trigger('input').trigger('change');}};InputData.prototype.unselect=function(_,data){var self=this;data.selected=false;this.current(function(allData){var values=[];for(var d=0;d<allData.length;d++){var item=allData[d];if(data.id==item.id){continue;}values.push(item.id);}self.$element.val(values.join(self._valueSeparator));self.$element.trigger('input').trigger('change');});};InputData.prototype.query=function(_,params,callback){var results=[];for(var d=0;d<this._currentData.length;d++){var data=this._currentData[d];var matches=this.matches(params,data);if(matches!==null){results.push(matches);}}callback({results:results});};InputData.prototype.addOptions=function(_,$options){var options=$.map($options,function($option){return Utils.GetData($option[0],'data');});this._currentData.push.apply(this._currentData,options);};return InputData;});S2.define('select2/compat/matcher',['jquery'],function($){function oldMatcher(matcher){function wrappedMatcher(params,data){var match=$.extend(true,{},data);if(params.term==null||$.trim(params.term)===''){return match;}if(data.children){for(var c=data.children.length-1;c>=0;c--){var child=data.children[c];// Check if the child object matches\n// The old matcher returned a boolean true or false\nvar doesMatch=matcher(params.term,child.text,child);// If the child didn't match, pop it off\nif(!doesMatch){match.children.splice(c,1);}}if(match.children.length>0){return match;}}if(matcher(params.term,data.text,data)){return match;}return null;}return wrappedMatcher;}return oldMatcher;});S2.define('select2/compat/query',[],function(){function Query(decorated,$element,options){if(options.get('debug')&&window.console&&console.warn){console.warn('Select2: The `query` option has been deprecated in favor of a '+'custom data adapter that overrides the `query` method. Support '+'will be removed for the `query` option in future versions of '+'Select2.');}decorated.call(this,$element,options);}Query.prototype.query=function(_,params,callback){params.callback=callback;var query=this.options.get('query');query.call(null,params);};return Query;});S2.define('select2/dropdown/attachContainer',[],function(){function AttachContainer(decorated,$element,options){decorated.call(this,$element,options);}AttachContainer.prototype.position=function(decorated,$dropdown,$container){var $dropdownContainer=$container.find('.dropdown-wrapper');$dropdownContainer.append($dropdown);$dropdown.addClass('select2-dropdown--below');$container.addClass('select2-container--below');};return AttachContainer;});S2.define('select2/dropdown/stopPropagation',[],function(){function StopPropagation(){}StopPropagation.prototype.bind=function(decorated,container,$container){decorated.call(this,container,$container);var stoppedEvents=['blur','change','click','dblclick','focus','focusin','focusout','input','keydown','keyup','keypress','mousedown','mouseenter','mouseleave','mousemove','mouseover','mouseup','search','touchend','touchstart'];this.$dropdown.on(stoppedEvents.join(' '),function(evt){evt.stopPropagation();});};return StopPropagation;});S2.define('select2/selection/stopPropagation',[],function(){function StopPropagation(){}StopPropagation.prototype.bind=function(decorated,container,$container){decorated.call(this,container,$container);var stoppedEvents=['blur','change','click','dblclick','focus','focusin','focusout','input','keydown','keyup','keypress','mousedown','mouseenter','mouseleave','mousemove','mouseover','mouseup','search','touchend','touchstart'];this.$selection.on(stoppedEvents.join(' '),function(evt){evt.stopPropagation();});};return StopPropagation;});/*!\r\n   * jQuery Mousewheel 3.1.13\r\n   *\r\n   * Copyright jQuery Foundation and other contributors\r\n   * Released under the MIT license\r\n   * http://jquery.org/license\r\n   */(function(factory){if(typeof S2.define==='function'&&S2.define.amd){// AMD. Register as an anonymous module.\nS2.define('jquery-mousewheel',['jquery'],factory);}else if(true){// Node/CommonJS style for Browserify\nmodule.exports=factory;}else{}})(function($){var toFix=['wheel','mousewheel','DOMMouseScroll','MozMousePixelScroll'],toBind='onwheel'in document||document.documentMode>=9?['wheel']:['mousewheel','DomMouseScroll','MozMousePixelScroll'],slice=Array.prototype.slice,nullLowestDeltaTimeout,lowestDelta;if($.event.fixHooks){for(var i=toFix.length;i;){$.event.fixHooks[toFix[--i]]=$.event.mouseHooks;}}var special=$.event.special.mousewheel={version:'3.1.12',setup:function(){if(this.addEventListener){for(var i=toBind.length;i;){this.addEventListener(toBind[--i],handler,false);}}else{this.onmousewheel=handler;}// Store the line height and page height for this particular element\n$.data(this,'mousewheel-line-height',special.getLineHeight(this));$.data(this,'mousewheel-page-height',special.getPageHeight(this));},teardown:function(){if(this.removeEventListener){for(var i=toBind.length;i;){this.removeEventListener(toBind[--i],handler,false);}}else{this.onmousewheel=null;}// Clean up the data we added to the element\n$.removeData(this,'mousewheel-line-height');$.removeData(this,'mousewheel-page-height');},getLineHeight:function(elem){var $elem=$(elem),$parent=$elem['offsetParent'in $.fn?'offsetParent':'parent']();if(!$parent.length){$parent=$('body');}return parseInt($parent.css('fontSize'),10)||parseInt($elem.css('fontSize'),10)||16;},getPageHeight:function(elem){return $(elem).height();},settings:{adjustOldDeltas:true,// see shouldAdjustOldDeltas() below\nnormalizeOffset:true// calls getBoundingClientRect for each event\n}};$.fn.extend({mousewheel:function(fn){return fn?this.bind('mousewheel',fn):this.trigger('mousewheel');},unmousewheel:function(fn){return this.unbind('mousewheel',fn);}});function handler(event){var orgEvent=event||window.event,args=slice.call(arguments,1),delta=0,deltaX=0,deltaY=0,absDelta=0,offsetX=0,offsetY=0;event=$.event.fix(orgEvent);event.type='mousewheel';// Old school scrollwheel delta\nif('detail'in orgEvent){deltaY=orgEvent.detail*-1;}if('wheelDelta'in orgEvent){deltaY=orgEvent.wheelDelta;}if('wheelDeltaY'in orgEvent){deltaY=orgEvent.wheelDeltaY;}if('wheelDeltaX'in orgEvent){deltaX=orgEvent.wheelDeltaX*-1;}// Firefox < 17 horizontal scrolling related to DOMMouseScroll event\nif('axis'in orgEvent&&orgEvent.axis===orgEvent.HORIZONTAL_AXIS){deltaX=deltaY*-1;deltaY=0;}// Set delta to be deltaY or deltaX if deltaY is 0 for backwards compatabilitiy\ndelta=deltaY===0?deltaX:deltaY;// New school wheel delta (wheel event)\nif('deltaY'in orgEvent){deltaY=orgEvent.deltaY*-1;delta=deltaY;}if('deltaX'in orgEvent){deltaX=orgEvent.deltaX;if(deltaY===0){delta=deltaX*-1;}}// No change actually happened, no reason to go any further\nif(deltaY===0&&deltaX===0){return;}// Need to convert lines and pages to pixels if we aren't already in pixels\n// There are three delta modes:\n//   * deltaMode 0 is by pixels, nothing to do\n//   * deltaMode 1 is by lines\n//   * deltaMode 2 is by pages\nif(orgEvent.deltaMode===1){var lineHeight=$.data(this,'mousewheel-line-height');delta*=lineHeight;deltaY*=lineHeight;deltaX*=lineHeight;}else if(orgEvent.deltaMode===2){var pageHeight=$.data(this,'mousewheel-page-height');delta*=pageHeight;deltaY*=pageHeight;deltaX*=pageHeight;}// Store lowest absolute delta to normalize the delta values\nabsDelta=Math.max(Math.abs(deltaY),Math.abs(deltaX));if(!lowestDelta||absDelta<lowestDelta){lowestDelta=absDelta;// Adjust older deltas if necessary\nif(shouldAdjustOldDeltas(orgEvent,absDelta)){lowestDelta/=40;}}// Adjust older deltas if necessary\nif(shouldAdjustOldDeltas(orgEvent,absDelta)){// Divide all the things by 40!\ndelta/=40;deltaX/=40;deltaY/=40;}// Get a whole, normalized value for the deltas\ndelta=Math[delta>=1?'floor':'ceil'](delta/lowestDelta);deltaX=Math[deltaX>=1?'floor':'ceil'](deltaX/lowestDelta);deltaY=Math[deltaY>=1?'floor':'ceil'](deltaY/lowestDelta);// Normalise offsetX and offsetY properties\nif(special.settings.normalizeOffset&&this.getBoundingClientRect){var boundingRect=this.getBoundingClientRect();offsetX=event.clientX-boundingRect.left;offsetY=event.clientY-boundingRect.top;}// Add information to the event object\nevent.deltaX=deltaX;event.deltaY=deltaY;event.deltaFactor=lowestDelta;event.offsetX=offsetX;event.offsetY=offsetY;// Go ahead and set deltaMode to 0 since we converted to pixels\n// Although this is a little odd since we overwrite the deltaX/Y\n// properties with normalized deltas.\nevent.deltaMode=0;// Add event and delta to the front of the arguments\nargs.unshift(event,delta,deltaX,deltaY);// Clearout lowestDelta after sometime to better\n// handle multiple device types that give different\n// a different lowestDelta\n// Ex: trackpad = 3 and mouse wheel = 120\nif(nullLowestDeltaTimeout){clearTimeout(nullLowestDeltaTimeout);}nullLowestDeltaTimeout=setTimeout(nullLowestDelta,200);return($.event.dispatch||$.event.handle).apply(this,args);}function nullLowestDelta(){lowestDelta=null;}function shouldAdjustOldDeltas(orgEvent,absDelta){// If this is an older event and the delta is divisable by 120,\n// then we are assuming that the browser is treating this as an\n// older mouse wheel event and that we should divide the deltas\n// by 40 to try and get a more usable deltaFactor.\n// Side note, this actually impacts the reported scroll distance\n// in older browsers and can cause scrolling to be slower than native.\n// Turn this off by setting $.event.special.mousewheel.settings.adjustOldDeltas to false.\nreturn special.settings.adjustOldDeltas&&orgEvent.type==='mousewheel'&&absDelta%120===0;}});S2.define('jquery.select2',['jquery','jquery-mousewheel','./select2/core','./select2/defaults','./select2/utils'],function($,_,Select2,Defaults,Utils){if($.fn.select2==null){// All methods that should return the element\nvar thisMethods=['open','close','destroy'];$.fn.select2=function(options){options=options||{};if(typeof options==='object'){this.each(function(){var instanceOptions=$.extend(true,{},options);var instance=new Select2($(this),instanceOptions);});return this;}else if(typeof options==='string'){var ret;var args=Array.prototype.slice.call(arguments,1);this.each(function(){var instance=Utils.GetData(this,'select2');if(instance==null&&window.console&&console.error){console.error('The select2(\\''+options+'\\') method was called on an '+'element that is not using Select2.');}ret=instance[options].apply(instance,args);});// Check if we should be returning `this`\nif($.inArray(options,thisMethods)>-1){return this;}return ret;}else{throw new Error('Invalid arguments for Select2: '+options);}};}if($.fn.select2.defaults==null){$.fn.select2.defaults=Defaults;}return Select2;});// Return the AMD loader configuration so it can be used outside of this file\nreturn{define:S2.define,require:S2.require};}();// Autoload the jQuery bindings\n// We know that all of the modules exist above this, so we're safe\nvar select2=S2.require('jquery.select2');// Hold the AMD module references on the jQuery function that was just loaded\n// This allows Select2 to use the internal loader outside of this file, such\n// as in the language files.\njQuery.fn.select2.amd=S2;// Return the Select2 instance for anyone who is importing it.\nreturn select2;});// ----------- select2.bundle.js END -------------\n// ----------- holder.js START -------------\n/*!\r\n\r\nHolder - client side image placeholders\r\nVersion 2.9.6+fblyy\r\n© 2018 Ivan Malopinsky - http://imsky.co\r\n\r\nSite:     http://holderjs.com\r\nIssues:   https://github.com/imsky/holder/issues\r\nLicense:  MIT\r\n\r\n*/(function(window){if(!window.document)return;var document=window.document;//https://github.com/inexorabletash/polyfill/blob/master/web.js\nif(!document.querySelectorAll){document.querySelectorAll=function(selectors){var style=document.createElement('style'),elements=[],element;document.documentElement.firstChild.appendChild(style);document._qsa=[];style.styleSheet.cssText=selectors+'{x-qsa:expression(document._qsa && document._qsa.push(this))}';window.scrollBy(0,0);style.parentNode.removeChild(style);while(document._qsa.length){element=document._qsa.shift();element.style.removeAttribute('x-qsa');elements.push(element);}document._qsa=null;return elements;};}if(!document.querySelector){document.querySelector=function(selectors){var elements=document.querySelectorAll(selectors);return elements.length?elements[0]:null;};}if(!document.getElementsByClassName){document.getElementsByClassName=function(classNames){classNames=String(classNames).replace(/^|\\s+/g,'.');return document.querySelectorAll(classNames);};}//https://github.com/inexorabletash/polyfill\n// ES5 15.2.3.14 Object.keys ( O )\n// https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/keys\nif(!Object.keys){Object.keys=function(o){if(o!==Object(o)){throw TypeError('Object.keys called on non-object');}var ret=[],p;for(p in o){if(Object.prototype.hasOwnProperty.call(o,p)){ret.push(p);}}return ret;};}// ES5 15.4.4.18 Array.prototype.forEach ( callbackfn [ , thisArg ] )\n// From https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach\nif(!Array.prototype.forEach){Array.prototype.forEach=function(fun/*, thisp */){if(this===void 0||this===null){throw TypeError();}var t=Object(this);var len=t.length>>>0;if(typeof fun!==\"function\"){throw TypeError();}var thisp=arguments[1],i;for(i=0;i<len;i++){if(i in t){fun.call(thisp,t[i],i,t);}}};}//https://github.com/inexorabletash/polyfill/blob/master/web.js\n(function(global){var B64_ALPHABET='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';global.atob=global.atob||function(input){input=String(input);var position=0,output=[],buffer=0,bits=0,n;input=input.replace(/\\s/g,'');if(input.length%4===0){input=input.replace(/=+$/,'');}if(input.length%4===1){throw Error('InvalidCharacterError');}if(/[^+/0-9A-Za-z]/.test(input)){throw Error('InvalidCharacterError');}while(position<input.length){n=B64_ALPHABET.indexOf(input.charAt(position));buffer=buffer<<6|n;bits+=6;if(bits===24){output.push(String.fromCharCode(buffer>>16&0xFF));output.push(String.fromCharCode(buffer>>8&0xFF));output.push(String.fromCharCode(buffer&0xFF));bits=0;buffer=0;}position+=1;}if(bits===12){buffer=buffer>>4;output.push(String.fromCharCode(buffer&0xFF));}else if(bits===18){buffer=buffer>>2;output.push(String.fromCharCode(buffer>>8&0xFF));output.push(String.fromCharCode(buffer&0xFF));}return output.join('');};global.btoa=global.btoa||function(input){input=String(input);var position=0,out=[],o1,o2,o3,e1,e2,e3,e4;if(/[^\\x00-\\xFF]/.test(input)){throw Error('InvalidCharacterError');}while(position<input.length){o1=input.charCodeAt(position++);o2=input.charCodeAt(position++);o3=input.charCodeAt(position++);// 111111 112222 222233 333333\ne1=o1>>2;e2=(o1&0x3)<<4|o2>>4;e3=(o2&0xf)<<2|o3>>6;e4=o3&0x3f;if(position===input.length+2){e3=64;e4=64;}else if(position===input.length+1){e4=64;}out.push(B64_ALPHABET.charAt(e1),B64_ALPHABET.charAt(e2),B64_ALPHABET.charAt(e3),B64_ALPHABET.charAt(e4));}return out.join('');};})(window);//https://gist.github.com/jimeh/332357\nif(!Object.prototype.hasOwnProperty){/*jshint -W001, -W103 */Object.prototype.hasOwnProperty=function(prop){var proto=this.__proto__||this.constructor.prototype;return prop in this&&(!(prop in proto)||proto[prop]!==this[prop]);};/*jshint +W001, +W103 */}// @license http://opensource.org/licenses/MIT\n// copyright Paul Irish 2015\n// Date.now() is supported everywhere except IE8. For IE8 we use the Date.now polyfill\n//   github.com/Financial-Times/polyfill-service/blob/master/polyfills/Date.now/polyfill.js\n// as Safari 6 doesn't have support for NavigationTiming, we use a Date.now() timestamp for relative values\n// if you want values similar to what you'd get with real perf.now, place this towards the head of the page\n// but in reality, you're just getting the delta between now() calls, so it's not terribly important where it's placed\n(function(){if('performance'in window===false){window.performance={};}Date.now=Date.now||function(){// thanks IE8\nreturn new Date().getTime();};if('now'in window.performance===false){var nowOffset=Date.now();if(performance.timing&&performance.timing.navigationStart){nowOffset=performance.timing.navigationStart;}window.performance.now=function now(){return Date.now()-nowOffset;};}})();//requestAnimationFrame polyfill for older Firefox/Chrome versions\nif(!window.requestAnimationFrame){if(window.webkitRequestAnimationFrame&&window.webkitCancelAnimationFrame){//https://github.com/Financial-Times/polyfill-service/blob/master/polyfills/requestAnimationFrame/polyfill-webkit.js\n(function(global){global.requestAnimationFrame=function(callback){return webkitRequestAnimationFrame(function(){callback(global.performance.now());});};global.cancelAnimationFrame=global.webkitCancelAnimationFrame;})(window);}else if(window.mozRequestAnimationFrame&&window.mozCancelAnimationFrame){//https://github.com/Financial-Times/polyfill-service/blob/master/polyfills/requestAnimationFrame/polyfill-moz.js\n(function(global){global.requestAnimationFrame=function(callback){return mozRequestAnimationFrame(function(){callback(global.performance.now());});};global.cancelAnimationFrame=global.mozCancelAnimationFrame;})(window);}else{(function(global){global.requestAnimationFrame=function(callback){return global.setTimeout(callback,1000/60);};global.cancelAnimationFrame=global.clearTimeout;})(window);}}})(this);(function webpackUniversalModuleDefinition(root,factory){if(true)module.exports=factory();else {}})(this,function(){return(/******/function(modules){// webpackBootstrap\n/******/ // The module cache\n/******/var installedModules={};/******/ // The require function\n/******/function __nested_webpack_require_1738459__(moduleId){/******/ // Check if module is in cache\n/******/if(installedModules[moduleId])/******/return installedModules[moduleId].exports;/******/ // Create a new module (and put it into the cache)\n/******/var module=installedModules[moduleId]={/******/exports:{},/******/id:moduleId,/******/loaded:false/******/};/******/ // Execute the module function\n/******/modules[moduleId].call(module.exports,module,module.exports,__nested_webpack_require_1738459__);/******/ // Flag the module as loaded\n/******/module.loaded=true;/******/ // Return the exports of the module\n/******/return module.exports;/******/}/******/ // expose the modules object (__webpack_modules__)\n/******/__nested_webpack_require_1738459__.m=modules;/******/ // expose the module cache\n/******/__nested_webpack_require_1738459__.c=installedModules;/******/ // __webpack_public_path__\n/******/__nested_webpack_require_1738459__.p=\"\";/******/ // Load entry module and return exports\n/******/return __nested_webpack_require_1738459__(0);/******/}/************************************************************************/ /******/([/* 0 */ /***/function(module,exports,__nested_webpack_require_1739548__){/*\r\n      Holder.js - client side image placeholders\r\n      (c) 2012-2015 Ivan Malopinsky - http://imsky.co\r\n      */module.exports=__nested_webpack_require_1739548__(1);/***/},/* 1 */ /***/function(module,exports,__nested_webpack_require_1739768__){/* WEBPACK VAR INJECTION */(function(global){/*\r\n      Holder.js - client side image placeholders\r\n      (c) 2012-2016 Ivan Malopinsky - http://imsky.co\r\n      */ //Libraries and functions\nvar onDomReady=__nested_webpack_require_1739768__(2);var querystring=__nested_webpack_require_1739768__(3);var SceneGraph=__nested_webpack_require_1739768__(6);var utils=__nested_webpack_require_1739768__(7);var SVG=__nested_webpack_require_1739768__(8);var DOM=__nested_webpack_require_1739768__(9);var Color=__nested_webpack_require_1739768__(10);var constants=__nested_webpack_require_1739768__(11);var svgRenderer=__nested_webpack_require_1739768__(12);var sgCanvasRenderer=__nested_webpack_require_1739768__(15);var extend=utils.extend;var dimensionCheck=utils.dimensionCheck;//Constants and definitions\nvar SVG_NS=constants.svg_ns;var Holder={version:constants.version,/**\r\n           * Adds a theme to default settings\r\n           *\r\n           * @param {string} name Theme name\r\n           * @param {Object} theme Theme object, with foreground, background, size, font, and fontweight properties.\r\n           */addTheme:function(name,theme){name!=null&&theme!=null&&(App.settings.themes[name]=theme);delete App.vars.cache.themeKeys;return this;},/**\r\n           * Appends a placeholder to an element\r\n           *\r\n           * @param {string} src Placeholder URL string\r\n           * @param el A selector or a reference to a DOM node\r\n           */addImage:function(src,el){//todo: use jquery fallback if available for all QSA references\nvar nodes=DOM.getNodeArray(el);nodes.forEach(function(node){var img=DOM.newEl('img');var domProps={};domProps[App.setup.dataAttr]=src;DOM.setAttr(img,domProps);node.appendChild(img);});return this;},/**\r\n           * Sets whether or not an image is updated on resize.\r\n           * If an image is set to be updated, it is immediately rendered.\r\n           *\r\n           * @param {Object} el Image DOM element\r\n           * @param {Boolean} value Resizable update flag value\r\n           */setResizeUpdate:function(el,value){if(el.holderData){el.holderData.resizeUpdate=!!value;if(el.holderData.resizeUpdate){updateResizableElements(el);}}},/**\r\n           * Runs Holder with options. By default runs Holder on all images with \"holder.js\" in their source attributes.\r\n           *\r\n           * @param {Object} userOptions Options object, can contain domain, themes, images, and bgnodes properties\r\n           */run:function(userOptions){//todo: split processing into separate queues\nuserOptions=userOptions||{};var engineSettings={};var options=extend(App.settings,userOptions);App.vars.preempted=true;App.vars.dataAttr=options.dataAttr||App.setup.dataAttr;engineSettings.renderer=options.renderer?options.renderer:App.setup.renderer;if(App.setup.renderers.join(',').indexOf(engineSettings.renderer)===-1){engineSettings.renderer=App.setup.supportsSVG?'svg':App.setup.supportsCanvas?'canvas':'html';}var images=DOM.getNodeArray(options.images);var bgnodes=DOM.getNodeArray(options.bgnodes);var stylenodes=DOM.getNodeArray(options.stylenodes);var objects=DOM.getNodeArray(options.objects);engineSettings.stylesheets=[];engineSettings.svgXMLStylesheet=true;engineSettings.noFontFallback=!!options.noFontFallback;engineSettings.noBackgroundSize=!!options.noBackgroundSize;stylenodes.forEach(function(styleNode){if(styleNode.attributes.rel&&styleNode.attributes.href&&styleNode.attributes.rel.value=='stylesheet'){var href=styleNode.attributes.href.value;//todo: write isomorphic relative-to-absolute URL function\nvar proxyLink=DOM.newEl('a');proxyLink.href=href;var stylesheetURL=proxyLink.protocol+'//'+proxyLink.host+proxyLink.pathname+proxyLink.search;engineSettings.stylesheets.push(stylesheetURL);}});bgnodes.forEach(function(bgNode){//Skip processing background nodes if getComputedStyle is unavailable, since only modern browsers would be able to use canvas or SVG to render to background\nif(!global.getComputedStyle)return;var backgroundImage=global.getComputedStyle(bgNode,null).getPropertyValue('background-image');var dataBackgroundImage=bgNode.getAttribute('data-background-src');var rawURL=dataBackgroundImage||backgroundImage;var holderURL=null;var holderString=options.domain+'/';var holderStringIndex=rawURL.indexOf(holderString);if(holderStringIndex===0){holderURL=rawURL;}else if(holderStringIndex===1&&rawURL[0]==='?'){holderURL=rawURL.slice(1);}else{var fragment=rawURL.substr(holderStringIndex).match(/([^\\\"]*)\"?\\)/);if(fragment!==null){holderURL=fragment[1];}else if(rawURL.indexOf('url(')===0){throw'Holder: unable to parse background URL: '+rawURL;}}if(holderURL){var holderFlags=parseURL(holderURL,options);if(holderFlags){prepareDOMElement({mode:'background',el:bgNode,flags:holderFlags,engineSettings:engineSettings});}}});objects.forEach(function(object){var objectAttr={};try{objectAttr.data=object.getAttribute('data');objectAttr.dataSrc=object.getAttribute(App.vars.dataAttr);}catch(e){}var objectHasSrcURL=objectAttr.data!=null&&objectAttr.data.indexOf(options.domain)===0;var objectHasDataSrcURL=objectAttr.dataSrc!=null&&objectAttr.dataSrc.indexOf(options.domain)===0;if(objectHasSrcURL){prepareImageElement(options,engineSettings,objectAttr.data,object);}else if(objectHasDataSrcURL){prepareImageElement(options,engineSettings,objectAttr.dataSrc,object);}});images.forEach(function(image){var imageAttr={};try{imageAttr.src=image.getAttribute('src');imageAttr.dataSrc=image.getAttribute(App.vars.dataAttr);imageAttr.rendered=image.getAttribute('data-holder-rendered');}catch(e){}var imageHasSrc=imageAttr.src!=null;var imageHasDataSrcURL=imageAttr.dataSrc!=null&&imageAttr.dataSrc.indexOf(options.domain)===0;var imageRendered=imageAttr.rendered!=null&&imageAttr.rendered=='true';if(imageHasSrc){if(imageAttr.src.indexOf(options.domain)===0){prepareImageElement(options,engineSettings,imageAttr.src,image);}else if(imageHasDataSrcURL){//Image has a valid data-src and an invalid src\nif(imageRendered){//If the placeholder has already been render, re-render it\nprepareImageElement(options,engineSettings,imageAttr.dataSrc,image);}else{//If the placeholder has not been rendered, check if the image exists and render a fallback if it doesn't\n(function(src,options,engineSettings,dataSrc,image){utils.imageExists(src,function(exists){if(!exists){prepareImageElement(options,engineSettings,dataSrc,image);}});})(imageAttr.src,options,engineSettings,imageAttr.dataSrc,image);}}}else if(imageHasDataSrcURL){prepareImageElement(options,engineSettings,imageAttr.dataSrc,image);}});return this;}};var App={settings:{domain:'holder.js',images:'img',objects:'object',bgnodes:'body .holderjs',stylenodes:'head link.holderjs',themes:{'gray':{bg:'#EEEEEE',fg:'#AAAAAA'},'social':{bg:'#3a5a97',fg:'#FFFFFF'},'industrial':{bg:'#434A52',fg:'#C2F200'},'sky':{bg:'#0D8FDB',fg:'#FFFFFF'},'vine':{bg:'#39DBAC',fg:'#1E292C'},'lava':{bg:'#F8591A',fg:'#1C2846'}}},defaults:{size:10,units:'pt',scale:1/16}};/**\r\n       * Processes provided source attribute and sets up the appropriate rendering workflow\r\n       *\r\n       * @private\r\n       * @param options Instance options from Holder.run\r\n       * @param renderSettings Instance configuration\r\n       * @param src Image URL\r\n       * @param el Image DOM element\r\n       */function prepareImageElement(options,engineSettings,src,el){var holderFlags=parseURL(src.substr(src.lastIndexOf(options.domain)),options);if(holderFlags){prepareDOMElement({mode:null,el:el,flags:holderFlags,engineSettings:engineSettings});}}/**\r\n       * Processes a Holder URL and extracts configuration from query string\r\n       *\r\n       * @private\r\n       * @param url URL\r\n       * @param instanceOptions Instance options from Holder.run\r\n       */function parseURL(url,instanceOptions){var holder={theme:extend(App.settings.themes.gray,null),stylesheets:instanceOptions.stylesheets,instanceOptions:instanceOptions};var firstQuestionMark=url.indexOf('?');var parts=[url];if(firstQuestionMark!==-1){parts=[url.slice(0,firstQuestionMark),url.slice(firstQuestionMark+1)];}var basics=parts[0].split('/');holder.holderURL=url;var dimensions=basics[1];var dimensionData=dimensions.match(/([\\d]+p?)x([\\d]+p?)/);if(!dimensionData)return false;holder.fluid=dimensions.indexOf('p')!==-1;holder.dimensions={width:dimensionData[1].replace('p','%'),height:dimensionData[2].replace('p','%')};if(parts.length===2){var options=querystring.parse(parts[1]);// Dimensions\nif(utils.truthy(options.ratio)){holder.fluid=true;var ratioWidth=parseFloat(holder.dimensions.width.replace('%',''));var ratioHeight=parseFloat(holder.dimensions.height.replace('%',''));ratioHeight=Math.floor(100*(ratioHeight/ratioWidth));ratioWidth=100;holder.dimensions.width=ratioWidth+'%';holder.dimensions.height=ratioHeight+'%';}holder.auto=utils.truthy(options.auto);// Colors\nif(options.bg){holder.theme.bg=utils.parseColor(options.bg);}if(options.fg){holder.theme.fg=utils.parseColor(options.fg);}//todo: add automatic foreground to themes without foreground\nif(options.bg&&!options.fg){holder.autoFg=true;}if(options.theme&&holder.instanceOptions.themes.hasOwnProperty(options.theme)){holder.theme=extend(holder.instanceOptions.themes[options.theme],null);}// Text\nif(options.text){holder.text=options.text;}if(options.textmode){holder.textmode=options.textmode;}if(options.size&&parseFloat(options.size)){holder.size=parseFloat(options.size);}if(options.font){holder.font=options.font;}if(options.align){holder.align=options.align;}if(options.lineWrap){holder.lineWrap=options.lineWrap;}holder.nowrap=utils.truthy(options.nowrap);// Miscellaneous\nholder.outline=utils.truthy(options.outline);if(utils.truthy(options.random)){App.vars.cache.themeKeys=App.vars.cache.themeKeys||Object.keys(holder.instanceOptions.themes);var _theme=App.vars.cache.themeKeys[0|Math.random()*App.vars.cache.themeKeys.length];holder.theme=extend(holder.instanceOptions.themes[_theme],null);}}return holder;}/**\r\n       * Modifies the DOM to fit placeholders and sets up resizable image callbacks (for fluid and automatically sized placeholders)\r\n       *\r\n       * @private\r\n       * @param settings DOM prep settings\r\n       */function prepareDOMElement(prepSettings){var mode=prepSettings.mode;var el=prepSettings.el;var flags=prepSettings.flags;var _engineSettings=prepSettings.engineSettings;var dimensions=flags.dimensions,theme=flags.theme;var dimensionsCaption=dimensions.width+'x'+dimensions.height;mode=mode==null?flags.fluid?'fluid':'image':mode;var holderTemplateRe=/holder_([a-z]+)/g;var dimensionsInText=false;if(flags.text!=null){theme.text=flags.text;//<object> SVG embedding doesn't parse Unicode properly\nif(el.nodeName.toLowerCase()==='object'){var textLines=theme.text.split('\\\\n');for(var k=0;k<textLines.length;k++){textLines[k]=utils.encodeHtmlEntity(textLines[k]);}theme.text=textLines.join('\\\\n');}}if(theme.text){var holderTemplateMatches=theme.text.match(holderTemplateRe);if(holderTemplateMatches!==null){//todo: optimize template replacement\nholderTemplateMatches.forEach(function(match){if(match==='holder_dimensions'){theme.text=theme.text.replace(match,dimensionsCaption);}});}}var holderURL=flags.holderURL;var engineSettings=extend(_engineSettings,null);if(flags.font){/*\r\n              If external fonts are used in a <img> placeholder rendered with SVG, Holder falls back to canvas.\r\n  \r\n              This is done because Firefox and Chrome disallow embedded SVGs from referencing external assets.\r\n              The workaround is either to change the placeholder tag from <img> to <object> or to use the canvas renderer.\r\n              */theme.font=flags.font;if(!engineSettings.noFontFallback&&el.nodeName.toLowerCase()==='img'&&App.setup.supportsCanvas&&engineSettings.renderer==='svg'){engineSettings=extend(engineSettings,{renderer:'canvas'});}}//Chrome and Opera require a quick 10ms re-render if web fonts are used with canvas\nif(flags.font&&engineSettings.renderer=='canvas'){engineSettings.reRender=true;}if(mode=='background'){if(el.getAttribute('data-background-src')==null){DOM.setAttr(el,{'data-background-src':holderURL});}}else{var domProps={};domProps[App.vars.dataAttr]=holderURL;DOM.setAttr(el,domProps);}flags.theme=theme;//todo consider using all renderSettings in holderData\nel.holderData={flags:flags,engineSettings:engineSettings};if(mode=='image'||mode=='fluid'){DOM.setAttr(el,{'alt':theme.text?dimensionsInText?theme.text:theme.text+' ['+dimensionsCaption+']':dimensionsCaption});}var renderSettings={mode:mode,el:el,holderSettings:{dimensions:dimensions,theme:theme,flags:flags},engineSettings:engineSettings};if(mode=='image'){if(!flags.auto){el.style.width=dimensions.width+'px';el.style.height=dimensions.height+'px';}if(engineSettings.renderer=='html'){el.style.backgroundColor=theme.bg;}else{render(renderSettings);if(flags.textmode=='exact'){el.holderData.resizeUpdate=true;App.vars.resizableImages.push(el);updateResizableElements(el);}}}else if(mode=='background'&&engineSettings.renderer!='html'){render(renderSettings);}else if(mode=='fluid'){el.holderData.resizeUpdate=true;if(dimensions.height.slice(-1)=='%'){el.style.height=dimensions.height;}else if(flags.auto==null||!flags.auto){el.style.height=dimensions.height+'px';}if(dimensions.width.slice(-1)=='%'){el.style.width=dimensions.width;}else if(flags.auto==null||!flags.auto){el.style.width=dimensions.width+'px';}if(el.style.display=='inline'||el.style.display===''||el.style.display=='none'){el.style.display='block';}setInitialDimensions(el);if(engineSettings.renderer=='html'){el.style.backgroundColor=theme.bg;}else{App.vars.resizableImages.push(el);updateResizableElements(el);}}}/**\r\n       * Core function that takes output from renderers and sets it as the source or background-image of the target element\r\n       *\r\n       * @private\r\n       * @param renderSettings Renderer settings\r\n       */function render(renderSettings){var image=null;var mode=renderSettings.mode;var el=renderSettings.el;var holderSettings=renderSettings.holderSettings;var engineSettings=renderSettings.engineSettings;switch(engineSettings.renderer){case'svg':if(!App.setup.supportsSVG)return;break;case'canvas':if(!App.setup.supportsCanvas)return;break;default:return;}//todo: move generation of scene up to flag generation to reduce extra object creation\nvar scene={width:holderSettings.dimensions.width,height:holderSettings.dimensions.height,theme:holderSettings.theme,flags:holderSettings.flags};var sceneGraph=buildSceneGraph(scene);function getRenderedImage(){var image=null;switch(engineSettings.renderer){case'canvas':image=sgCanvasRenderer(sceneGraph,renderSettings);break;case'svg':image=svgRenderer(sceneGraph,renderSettings);break;default:throw'Holder: invalid renderer: '+engineSettings.renderer;}return image;}image=getRenderedImage();if(image==null){throw'Holder: couldn\\'t render placeholder';}//todo: add <object> canvas rendering\nif(mode=='background'){el.style.backgroundImage='url('+image+')';if(!engineSettings.noBackgroundSize){el.style.backgroundSize=scene.width+'px '+scene.height+'px';}}else{if(el.nodeName.toLowerCase()==='img'){DOM.setAttr(el,{'src':image});}else if(el.nodeName.toLowerCase()==='object'){DOM.setAttr(el,{'data':image,'type':'image/svg+xml'});}if(engineSettings.reRender){global.setTimeout(function(){var image=getRenderedImage();if(image==null){throw'Holder: couldn\\'t render placeholder';}//todo: refactor this code into a function\nif(el.nodeName.toLowerCase()==='img'){DOM.setAttr(el,{'src':image});}else if(el.nodeName.toLowerCase()==='object'){DOM.setAttr(el,{'data':image,'type':'image/svg+xml'});}},150);}}//todo: account for re-rendering\nDOM.setAttr(el,{'data-holder-rendered':true});}/**\r\n       * Core function that takes a Holder scene description and builds a scene graph\r\n       *\r\n       * @private\r\n       * @param scene Holder scene object\r\n       */ //todo: make this function reusable\n//todo: merge app defaults and setup properties into the scene argument\nfunction buildSceneGraph(scene){var fontSize=App.defaults.size;if(parseFloat(scene.theme.size)){fontSize=scene.theme.size;}else if(parseFloat(scene.flags.size)){fontSize=scene.flags.size;}scene.font={family:scene.theme.font?scene.theme.font:'Arial, Helvetica, Open Sans, sans-serif',size:textSize(scene.width,scene.height,fontSize,App.defaults.scale),units:scene.theme.units?scene.theme.units:App.defaults.units,weight:scene.theme.fontweight?scene.theme.fontweight:'bold'};scene.text=scene.theme.text||Math.floor(scene.width)+'x'+Math.floor(scene.height);scene.noWrap=scene.theme.nowrap||scene.flags.nowrap;scene.align=scene.theme.align||scene.flags.align||'center';switch(scene.flags.textmode){case'literal':scene.text=scene.flags.dimensions.width+'x'+scene.flags.dimensions.height;break;case'exact':if(!scene.flags.exactDimensions)break;scene.text=Math.floor(scene.flags.exactDimensions.width)+'x'+Math.floor(scene.flags.exactDimensions.height);break;}var lineWrap=scene.flags.lineWrap||App.setup.lineWrapRatio;var sceneMargin=scene.width*lineWrap;var maxLineWidth=sceneMargin;var sceneGraph=new SceneGraph({width:scene.width,height:scene.height});var Shape=sceneGraph.Shape;var holderBg=new Shape.Rect('holderBg',{fill:scene.theme.bg});holderBg.resize(scene.width,scene.height);sceneGraph.root.add(holderBg);if(scene.flags.outline){var outlineColor=new Color(holderBg.properties.fill);outlineColor=outlineColor.lighten(outlineColor.lighterThan('7f7f7f')?-0.1:0.1);holderBg.properties.outline={fill:outlineColor.toHex(true),width:2};}var holderTextColor=scene.theme.fg;if(scene.flags.autoFg){var holderBgColor=new Color(holderBg.properties.fill);var lightColor=new Color('fff');var darkColor=new Color('000',{'alpha':0.285714});holderTextColor=holderBgColor.blendAlpha(holderBgColor.lighterThan('7f7f7f')?darkColor:lightColor).toHex(true);}var holderTextGroup=new Shape.Group('holderTextGroup',{text:scene.text,align:scene.align,font:scene.font,fill:holderTextColor});holderTextGroup.moveTo(null,null,1);sceneGraph.root.add(holderTextGroup);var tpdata=holderTextGroup.textPositionData=stagingRenderer(sceneGraph);if(!tpdata){throw'Holder: staging fallback not supported yet.';}holderTextGroup.properties.leading=tpdata.boundingBox.height;var textNode=null;var line=null;function finalizeLine(parent,line,width,height){line.width=width;line.height=height;parent.width=Math.max(parent.width,line.width);parent.height+=line.height;}if(tpdata.lineCount>1){var offsetX=0;var offsetY=0;var lineIndex=0;var lineKey;line=new Shape.Group('line'+lineIndex);//Double margin so that left/right-aligned next is not flush with edge of image\nif(scene.align==='left'||scene.align==='right'){maxLineWidth=scene.width*(1-(1-lineWrap)*2);}for(var i=0;i<tpdata.words.length;i++){var word=tpdata.words[i];textNode=new Shape.Text(word.text);var newline=word.text=='\\\\n';if(!scene.noWrap&&(offsetX+word.width>=maxLineWidth||newline===true)){finalizeLine(holderTextGroup,line,offsetX,holderTextGroup.properties.leading);holderTextGroup.add(line);offsetX=0;offsetY+=holderTextGroup.properties.leading;lineIndex+=1;line=new Shape.Group('line'+lineIndex);line.y=offsetY;}if(newline===true){continue;}textNode.moveTo(offsetX,0);offsetX+=tpdata.spaceWidth+word.width;line.add(textNode);}finalizeLine(holderTextGroup,line,offsetX,holderTextGroup.properties.leading);holderTextGroup.add(line);if(scene.align==='left'){holderTextGroup.moveTo(scene.width-sceneMargin,null,null);}else if(scene.align==='right'){for(lineKey in holderTextGroup.children){line=holderTextGroup.children[lineKey];line.moveTo(scene.width-line.width,null,null);}holderTextGroup.moveTo(0-(scene.width-sceneMargin),null,null);}else{for(lineKey in holderTextGroup.children){line=holderTextGroup.children[lineKey];line.moveTo((holderTextGroup.width-line.width)/2,null,null);}holderTextGroup.moveTo((scene.width-holderTextGroup.width)/2,null,null);}holderTextGroup.moveTo(null,(scene.height-holderTextGroup.height)/2,null);//If the text exceeds vertical space, move it down so the first line is visible\nif((scene.height-holderTextGroup.height)/2<0){holderTextGroup.moveTo(null,0,null);}}else{textNode=new Shape.Text(scene.text);line=new Shape.Group('line0');line.add(textNode);holderTextGroup.add(line);if(scene.align==='left'){holderTextGroup.moveTo(scene.width-sceneMargin,null,null);}else if(scene.align==='right'){holderTextGroup.moveTo(0-(scene.width-sceneMargin),null,null);}else{holderTextGroup.moveTo((scene.width-tpdata.boundingBox.width)/2,null,null);}holderTextGroup.moveTo(null,(scene.height-tpdata.boundingBox.height)/2,null);}//todo: renderlist\nreturn sceneGraph;}/**\r\n       * Adaptive text sizing function\r\n       *\r\n       * @private\r\n       * @param width Parent width\r\n       * @param height Parent height\r\n       * @param fontSize Requested text size\r\n       * @param scale Proportional scale of text\r\n       */function textSize(width,height,fontSize,scale){var stageWidth=parseInt(width,10);var stageHeight=parseInt(height,10);var bigSide=Math.max(stageWidth,stageHeight);var smallSide=Math.min(stageWidth,stageHeight);var newHeight=0.8*Math.min(smallSide,bigSide*scale);return Math.round(Math.max(fontSize,newHeight));}/**\r\n       * Iterates over resizable (fluid or auto) placeholders and renders them\r\n       *\r\n       * @private\r\n       * @param element Optional element selector, specified only if a specific element needs to be re-rendered\r\n       */function updateResizableElements(element){var images;if(element==null||element.nodeType==null){images=App.vars.resizableImages;}else{images=[element];}for(var i=0,l=images.length;i<l;i++){var el=images[i];if(el.holderData){var flags=el.holderData.flags;var dimensions=dimensionCheck(el);if(dimensions){if(!el.holderData.resizeUpdate){continue;}if(flags.fluid&&flags.auto){var fluidConfig=el.holderData.fluidConfig;switch(fluidConfig.mode){case'width':dimensions.height=dimensions.width/fluidConfig.ratio;break;case'height':dimensions.width=dimensions.height*fluidConfig.ratio;break;}}var settings={mode:'image',holderSettings:{dimensions:dimensions,theme:flags.theme,flags:flags},el:el,engineSettings:el.holderData.engineSettings};if(flags.textmode=='exact'){flags.exactDimensions=dimensions;settings.holderSettings.dimensions=flags.dimensions;}render(settings);}else{setInvisible(el);}}}}/**\r\n       * Sets up aspect ratio metadata for fluid placeholders, in order to preserve proportions when resizing\r\n       *\r\n       * @private\r\n       * @param el Image DOM element\r\n       */function setInitialDimensions(el){if(el.holderData){var dimensions=dimensionCheck(el);if(dimensions){var flags=el.holderData.flags;var fluidConfig={fluidHeight:flags.dimensions.height.slice(-1)=='%',fluidWidth:flags.dimensions.width.slice(-1)=='%',mode:null,initialDimensions:dimensions};if(fluidConfig.fluidWidth&&!fluidConfig.fluidHeight){fluidConfig.mode='width';fluidConfig.ratio=fluidConfig.initialDimensions.width/parseFloat(flags.dimensions.height);}else if(!fluidConfig.fluidWidth&&fluidConfig.fluidHeight){fluidConfig.mode='height';fluidConfig.ratio=parseFloat(flags.dimensions.width)/fluidConfig.initialDimensions.height;}el.holderData.fluidConfig=fluidConfig;}else{setInvisible(el);}}}/**\r\n       * Iterates through all current invisible images, and if they're visible, renders them and removes them from further checks. Runs every animation frame.\r\n       *\r\n       * @private\r\n       */function visibilityCheck(){var renderableImages=[];var keys=Object.keys(App.vars.invisibleImages);var el;keys.forEach(function(key){el=App.vars.invisibleImages[key];if(dimensionCheck(el)&&el.nodeName.toLowerCase()=='img'){renderableImages.push(el);delete App.vars.invisibleImages[key];}});if(renderableImages.length){Holder.run({images:renderableImages});}// Done to prevent 100% CPU usage via aggressive calling of requestAnimationFrame\nsetTimeout(function(){global.requestAnimationFrame(visibilityCheck);},10);}/**\r\n       * Starts checking for invisible placeholders if not doing so yet. Does nothing otherwise.\r\n       *\r\n       * @private\r\n       */function startVisibilityCheck(){if(!App.vars.visibilityCheckStarted){global.requestAnimationFrame(visibilityCheck);App.vars.visibilityCheckStarted=true;}}/**\r\n       * Sets a unique ID for an image detected to be invisible and adds it to the map of invisible images checked by visibilityCheck\r\n       *\r\n       * @private\r\n       * @param el Invisible DOM element\r\n       */function setInvisible(el){if(!el.holderData.invisibleId){App.vars.invisibleId+=1;App.vars.invisibleImages['i'+App.vars.invisibleId]=el;el.holderData.invisibleId=App.vars.invisibleId;}}//todo: see if possible to convert stagingRenderer to use HTML only\nvar stagingRenderer=function(){var svg=null,stagingText=null,stagingTextNode=null;return function(graph){var rootNode=graph.root;if(App.setup.supportsSVG){var firstTimeSetup=false;var tnode=function(text){return document.createTextNode(text);};if(svg==null||svg.parentNode!==document.body){firstTimeSetup=true;}svg=SVG.initSVG(svg,rootNode.properties.width,rootNode.properties.height);//Show staging element before staging\nsvg.style.display='block';if(firstTimeSetup){stagingText=DOM.newEl('text',SVG_NS);stagingTextNode=tnode(null);DOM.setAttr(stagingText,{x:0});stagingText.appendChild(stagingTextNode);svg.appendChild(stagingText);document.body.appendChild(svg);svg.style.visibility='hidden';svg.style.position='absolute';svg.style.top='-100%';svg.style.left='-100%';//todo: workaround for zero-dimension <svg> tag in Opera 12\n//svg.setAttribute('width', 0);\n//svg.setAttribute('height', 0);\n}var holderTextGroup=rootNode.children.holderTextGroup;var htgProps=holderTextGroup.properties;DOM.setAttr(stagingText,{'y':htgProps.font.size,'style':utils.cssProps({'font-weight':htgProps.font.weight,'font-size':htgProps.font.size+htgProps.font.units,'font-family':htgProps.font.family})});//Unescape HTML entities to get approximately the right width\nvar txt=DOM.newEl('textarea');txt.innerHTML=htgProps.text;stagingTextNode.nodeValue=txt.value;//Get bounding box for the whole string (total width and height)\nvar stagingTextBBox=stagingText.getBBox();//Get line count and split the string into words\nvar lineCount=Math.ceil(stagingTextBBox.width/rootNode.properties.width);var words=htgProps.text.split(' ');var newlines=htgProps.text.match(/\\\\n/g);lineCount+=newlines==null?0:newlines.length;//Get bounding box for the string with spaces removed\nstagingTextNode.nodeValue=htgProps.text.replace(/[ ]+/g,'');var computedNoSpaceLength=stagingText.getComputedTextLength();//Compute average space width\nvar diffLength=stagingTextBBox.width-computedNoSpaceLength;var spaceWidth=Math.round(diffLength/Math.max(1,words.length-1));//Get widths for every word with space only if there is more than one line\nvar wordWidths=[];if(lineCount>1){stagingTextNode.nodeValue='';for(var i=0;i<words.length;i++){if(words[i].length===0)continue;stagingTextNode.nodeValue=utils.decodeHtmlEntity(words[i]);var bbox=stagingText.getBBox();wordWidths.push({text:words[i],width:bbox.width});}}//Hide staging element after staging\nsvg.style.display='none';return{spaceWidth:spaceWidth,lineCount:lineCount,boundingBox:stagingTextBBox,words:wordWidths};}else{//todo: canvas fallback for measuring text on android 2.3\nreturn false;}};}();//Helpers\n/**\r\n       * Prevents a function from being called too often, waits until a timer elapses to call it again\r\n       *\r\n       * @param fn Function to call\r\n       */function debounce(fn){if(!App.vars.debounceTimer)fn.call(this);if(App.vars.debounceTimer)global.clearTimeout(App.vars.debounceTimer);App.vars.debounceTimer=global.setTimeout(function(){App.vars.debounceTimer=null;fn.call(this);},App.setup.debounce);}/**\r\n       * Holder-specific resize/orientation change callback, debounced to prevent excessive execution\r\n       */function resizeEvent(){debounce(function(){updateResizableElements(null);});}//Set up flags\nfor(var flag in App.flags){if(!App.flags.hasOwnProperty(flag))continue;App.flags[flag].match=function(val){return val.match(this.regex);};}//Properties set once on setup\nApp.setup={renderer:'html',debounce:100,ratio:1,supportsCanvas:false,supportsSVG:false,lineWrapRatio:0.9,dataAttr:'data-src',renderers:['html','canvas','svg']};//Properties modified during runtime\nApp.vars={preempted:false,resizableImages:[],invisibleImages:{},invisibleId:0,visibilityCheckStarted:false,debounceTimer:null,cache:{}};//Pre-flight\n(function(){var canvas=DOM.newEl('canvas');if(canvas.getContext){if(canvas.toDataURL('image/png').indexOf('data:image/png')!=-1){App.setup.renderer='canvas';App.setup.supportsCanvas=true;}}if(!!document.createElementNS&&!!document.createElementNS(SVG_NS,'svg').createSVGRect){App.setup.renderer='svg';App.setup.supportsSVG=true;}})();//Starts checking for invisible placeholders\nstartVisibilityCheck();if(onDomReady){onDomReady(function(){if(!App.vars.preempted){Holder.run();}if(global.addEventListener){global.addEventListener('resize',resizeEvent,false);global.addEventListener('orientationchange',resizeEvent,false);}else{global.attachEvent('onresize',resizeEvent);}if(typeof global.Turbolinks=='object'){global.document.addEventListener('page:change',function(){Holder.run();});}});}module.exports=Holder;/* WEBPACK VAR INJECTION */}).call(exports,function(){return this;}());/***/},/* 2 */ /***/function(module,exports){/*!\r\n       * onDomReady.js 1.4.0 (c) 2013 Tubal Martin - MIT license\r\n       *\r\n       * Specially modified to work with Holder.js\r\n       */function _onDomReady(win){//Lazy loading fix for Firefox < 3.6\n//http://webreflection.blogspot.com/2009/11/195-chars-to-help-lazy-loading.html\nif(document.readyState==null&&document.addEventListener){document.addEventListener(\"DOMContentLoaded\",function DOMContentLoaded(){document.removeEventListener(\"DOMContentLoaded\",DOMContentLoaded,false);document.readyState=\"complete\";},false);document.readyState=\"loading\";}var doc=win.document,docElem=doc.documentElement,LOAD=\"load\",FALSE=false,ONLOAD=\"on\"+LOAD,COMPLETE=\"complete\",READYSTATE=\"readyState\",ATTACHEVENT=\"attachEvent\",DETACHEVENT=\"detachEvent\",ADDEVENTLISTENER=\"addEventListener\",DOMCONTENTLOADED=\"DOMContentLoaded\",ONREADYSTATECHANGE=\"onreadystatechange\",REMOVEEVENTLISTENER=\"removeEventListener\",// W3C Event model\nw3c=(ADDEVENTLISTENER in doc),_top=FALSE,// isReady: Is the DOM ready to be used? Set to true once it occurs.\nisReady=FALSE,// Callbacks pending execution until DOM is ready\ncallbacks=[];// Handle when the DOM is ready\nfunction ready(fn){if(!isReady){// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).\nif(!doc.body){return defer(ready);}// Remember that the DOM is ready\nisReady=true;// Execute all callbacks\nwhile(fn=callbacks.shift()){defer(fn);}}}// The ready event handler\nfunction completed(event){// readyState === \"complete\" is good enough for us to call the dom ready in oldIE\nif(w3c||event.type===LOAD||doc[READYSTATE]===COMPLETE){detach();ready();}}// Clean-up method for dom ready events\nfunction detach(){if(w3c){doc[REMOVEEVENTLISTENER](DOMCONTENTLOADED,completed,FALSE);win[REMOVEEVENTLISTENER](LOAD,completed,FALSE);}else{doc[DETACHEVENT](ONREADYSTATECHANGE,completed);win[DETACHEVENT](ONLOAD,completed);}}// Defers a function, scheduling it to run after the current call stack has cleared.\nfunction defer(fn,wait){// Allow 0 to be passed\nsetTimeout(fn,+wait>=0?wait:1);}// Attach the listeners:\n// Catch cases where onDomReady is called after the browser event has already occurred.\n// we once tried to use readyState \"interactive\" here, but it caused issues like the one\n// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15\nif(doc[READYSTATE]===COMPLETE){// Handle it asynchronously to allow scripts the opportunity to delay ready\ndefer(ready);// Standards-based browsers support DOMContentLoaded\n}else if(w3c){// Use the handy event callback\ndoc[ADDEVENTLISTENER](DOMCONTENTLOADED,completed,FALSE);// A fallback to window.onload, that will always work\nwin[ADDEVENTLISTENER](LOAD,completed,FALSE);// If IE event model is used\n}else{// Ensure firing before onload, maybe late but safe also for iframes\ndoc[ATTACHEVENT](ONREADYSTATECHANGE,completed);// A fallback to window.onload, that will always work\nwin[ATTACHEVENT](ONLOAD,completed);// If IE and not a frame\n// continually check to see if the document is ready\ntry{_top=win.frameElement==null&&docElem;}catch(e){}if(_top&&_top.doScroll){(function doScrollCheck(){if(!isReady){try{// Use the trick by Diego Perini\n// http://javascript.nwbox.com/IEContentLoaded/\n_top.doScroll(\"left\");}catch(e){return defer(doScrollCheck,50);}// detach all dom ready events\ndetach();// and execute any waiting functions\nready();}})();}}function onDomReady(fn){// If DOM is ready, execute the function (async), otherwise wait\nisReady?defer(fn):callbacks.push(fn);}// Add version\nonDomReady.version=\"1.4.0\";// Add method to check if DOM is ready\nonDomReady.isReady=function(){return isReady;};return onDomReady;}module.exports=typeof window!==\"undefined\"&&_onDomReady(window);/***/},/* 3 */ /***/function(module,exports,__nested_webpack_require_1772696__){//Modified version of component/querystring\n//Changes: updated dependencies, dot notation parsing, JSHint fixes\n//Fork at https://github.com/imsky/querystring\n/**\r\n       * Module dependencies.\r\n       */var encode=encodeURIComponent;var decode=decodeURIComponent;var trim=__nested_webpack_require_1772696__(4);var type=__nested_webpack_require_1772696__(5);var arrayRegex=/(\\w+)\\[(\\d+)\\]/;var objectRegex=/\\w+\\.\\w+/;/**\r\n       * Parse the given query `str`.\r\n       *\r\n       * @param {String} str\r\n       * @return {Object}\r\n       * @api public\r\n       */exports.parse=function(str){if('string'!==typeof str)return{};str=trim(str);if(''===str)return{};if('?'===str.charAt(0))str=str.slice(1);var obj={};var pairs=str.split('&');for(var i=0;i<pairs.length;i++){var parts=pairs[i].split('=');var key=decode(parts[0]);var m,ctx,prop;if(m=arrayRegex.exec(key)){obj[m[1]]=obj[m[1]]||[];obj[m[1]][m[2]]=decode(parts[1]);continue;}if(m=objectRegex.test(key)){m=key.split('.');ctx=obj;while(m.length){prop=m.shift();if(!prop.length)continue;if(!ctx[prop]){ctx[prop]={};}else if(ctx[prop]&&typeof ctx[prop]!=='object'){break;}if(!m.length){ctx[prop]=decode(parts[1]);}ctx=ctx[prop];}continue;}obj[parts[0]]=null==parts[1]?'':decode(parts[1]);}return obj;};/**\r\n       * Stringify the given `obj`.\r\n       *\r\n       * @param {Object} obj\r\n       * @return {String}\r\n       * @api public\r\n       */exports.stringify=function(obj){if(!obj)return'';var pairs=[];for(var key in obj){var value=obj[key];if('array'==type(value)){for(var i=0;i<value.length;++i){pairs.push(encode(key+'['+i+']')+'='+encode(value[i]));}continue;}pairs.push(encode(key)+'='+encode(obj[key]));}return pairs.join('&');};/***/},/* 4 */ /***/function(module,exports){exports=module.exports=trim;function trim(str){return str.replace(/^\\s*|\\s*$/g,'');}exports.left=function(str){return str.replace(/^\\s*/,'');};exports.right=function(str){return str.replace(/\\s*$/,'');};/***/},/* 5 */ /***/function(module,exports){/**\r\n       * toString ref.\r\n       */var toString=Object.prototype.toString;/**\r\n       * Return the type of `val`.\r\n       *\r\n       * @param {Mixed} val\r\n       * @return {String}\r\n       * @api public\r\n       */module.exports=function(val){switch(toString.call(val)){case'[object Date]':return'date';case'[object RegExp]':return'regexp';case'[object Arguments]':return'arguments';case'[object Array]':return'array';case'[object Error]':return'error';}if(val===null)return'null';if(val===undefined)return'undefined';if(val!==val)return'nan';if(val&&val.nodeType===1)return'element';if(isBuffer(val))return'buffer';val=val.valueOf?val.valueOf():Object.prototype.valueOf.apply(val);return typeof val;};// code borrowed from https://github.com/feross/is-buffer/blob/master/index.js\nfunction isBuffer(obj){return!!(obj!=null&&(obj._isBuffer||// For Safari 5-7 (missing Object.prototype.constructor)\nobj.constructor&&typeof obj.constructor.isBuffer==='function'&&obj.constructor.isBuffer(obj)));}/***/},/* 6 */ /***/function(module,exports){var SceneGraph=function(sceneProperties){var nodeCount=1;//todo: move merge to helpers section\nfunction merge(parent,child){for(var prop in child){parent[prop]=child[prop];}return parent;}var SceneNode=function(name){nodeCount++;this.parent=null;this.children={};this.id=nodeCount;this.name='n'+nodeCount;if(typeof name!=='undefined'){this.name=name;}this.x=this.y=this.z=0;this.width=this.height=0;};SceneNode.prototype.resize=function(width,height){if(width!=null){this.width=width;}if(height!=null){this.height=height;}};SceneNode.prototype.moveTo=function(x,y,z){this.x=x!=null?x:this.x;this.y=y!=null?y:this.y;this.z=z!=null?z:this.z;};SceneNode.prototype.add=function(child){var name=child.name;if(typeof this.children[name]==='undefined'){this.children[name]=child;child.parent=this;}else{throw'SceneGraph: child already exists: '+name;}};var RootNode=function(){SceneNode.call(this,'root');this.properties=sceneProperties;};RootNode.prototype=new SceneNode();var Shape=function(name,props){SceneNode.call(this,name);this.properties={'fill':'#000000'};if(typeof props!=='undefined'){merge(this.properties,props);}else if(typeof name!=='undefined'&&typeof name!=='string'){throw'SceneGraph: invalid node name';}};Shape.prototype=new SceneNode();var Group=function(){Shape.apply(this,arguments);this.type='group';};Group.prototype=new Shape();var Rect=function(){Shape.apply(this,arguments);this.type='rect';};Rect.prototype=new Shape();var Text=function(text){Shape.call(this);this.type='text';this.properties.text=text;};Text.prototype=new Shape();var root=new RootNode();this.Shape={'Rect':Rect,'Text':Text,'Group':Group};this.root=root;return this;};module.exports=SceneGraph;/***/},/* 7 */ /***/function(module,exports){/* WEBPACK VAR INJECTION */(function(global){/**\r\n       * Shallow object clone and merge\r\n       *\r\n       * @param a Object A\r\n       * @param b Object B\r\n       * @returns {Object} New object with all of A's properties, and all of B's properties, overwriting A's properties\r\n       */exports.extend=function(a,b){var c={};for(var x in a){if(a.hasOwnProperty(x)){c[x]=a[x];}}if(b!=null){for(var y in b){if(b.hasOwnProperty(y)){c[y]=b[y];}}}return c;};/**\r\n       * Takes a k/v list of CSS properties and returns a rule\r\n       *\r\n       * @param props CSS properties object\r\n       */exports.cssProps=function(props){var ret=[];for(var p in props){if(props.hasOwnProperty(p)){ret.push(p+':'+props[p]);}}return ret.join(';');};/**\r\n       * Encodes HTML entities in a string\r\n       *\r\n       * @param str Input string\r\n       */exports.encodeHtmlEntity=function(str){var buf=[];var charCode=0;for(var i=str.length-1;i>=0;i--){charCode=str.charCodeAt(i);if(charCode>128){buf.unshift(['&#',charCode,';'].join(''));}else{buf.unshift(str[i]);}}return buf.join('');};/**\r\n       * Checks if an image exists\r\n       *\r\n       * @param src URL of image\r\n       * @param callback Callback to call once image status has been found\r\n       */exports.imageExists=function(src,callback){var image=new Image();image.onerror=function(){callback.call(this,false);};image.onload=function(){callback.call(this,true);};image.src=src;};/**\r\n       * Decodes HTML entities in a string\r\n       *\r\n       * @param str Input string\r\n       */exports.decodeHtmlEntity=function(str){return str.replace(/&#(\\d+);/g,function(match,dec){return String.fromCharCode(dec);});};/**\r\n       * Returns an element's dimensions if it's visible, `false` otherwise.\r\n       *\r\n       * @param el DOM element\r\n       */exports.dimensionCheck=function(el){var dimensions={height:el.clientHeight,width:el.clientWidth};if(dimensions.height&&dimensions.width){return dimensions;}else{return false;}};/**\r\n       * Returns true if value is truthy or if it is \"semantically truthy\"\r\n       * @param val\r\n       */exports.truthy=function(val){if(typeof val==='string'){return val==='true'||val==='yes'||val==='1'||val==='on'||val==='✓';}return!!val;};/**\r\n       * Parses input into a well-formed CSS color\r\n       * @param val\r\n       */exports.parseColor=function(val){var hexre=/(^(?:#?)[0-9a-f]{6}$)|(^(?:#?)[0-9a-f]{3}$)/i;var rgbre=/^rgb\\((\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)$/;var rgbare=/^rgba\\((\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(0\\.\\d{1,}|1)\\)$/;var match=val.match(hexre);var retval;if(match!==null){retval=match[1]||match[2];if(retval[0]!=='#'){return'#'+retval;}else{return retval;}}match=val.match(rgbre);if(match!==null){retval='rgb('+match.slice(1).join(',')+')';return retval;}match=val.match(rgbare);if(match!==null){retval='rgba('+match.slice(1).join(',')+')';return retval;}return null;};/**\r\n       * Provides the correct scaling ratio for canvas drawing operations on HiDPI screens (e.g. Retina displays)\r\n       */exports.canvasRatio=function(){var devicePixelRatio=1;var backingStoreRatio=1;if(global.document){var canvas=global.document.createElement('canvas');if(canvas.getContext){var ctx=canvas.getContext('2d');devicePixelRatio=global.devicePixelRatio||1;backingStoreRatio=ctx.webkitBackingStorePixelRatio||ctx.mozBackingStorePixelRatio||ctx.msBackingStorePixelRatio||ctx.oBackingStorePixelRatio||ctx.backingStorePixelRatio||1;}}return devicePixelRatio/backingStoreRatio;};/* WEBPACK VAR INJECTION */}).call(exports,function(){return this;}());/***/},/* 8 */ /***/function(module,exports,__nested_webpack_require_1781031__){/* WEBPACK VAR INJECTION */(function(global){var DOM=__nested_webpack_require_1781031__(9);var SVG_NS='http://www.w3.org/2000/svg';var NODE_TYPE_COMMENT=8;/**\r\n       * Generic SVG element creation function\r\n       *\r\n       * @param svg SVG context, set to null if new\r\n       * @param width Document width\r\n       * @param height Document height\r\n       */exports.initSVG=function(svg,width,height){var defs,style,initialize=false;if(svg&&svg.querySelector){style=svg.querySelector('style');if(style===null){initialize=true;}}else{svg=DOM.newEl('svg',SVG_NS);initialize=true;}if(initialize){defs=DOM.newEl('defs',SVG_NS);style=DOM.newEl('style',SVG_NS);DOM.setAttr(style,{'type':'text/css'});defs.appendChild(style);svg.appendChild(defs);}//IE throws an exception if this is set and Chrome requires it to be set\nif(svg.webkitMatchesSelector){svg.setAttribute('xmlns',SVG_NS);}//Remove comment nodes\nfor(var i=0;i<svg.childNodes.length;i++){if(svg.childNodes[i].nodeType===NODE_TYPE_COMMENT){svg.removeChild(svg.childNodes[i]);}}//Remove CSS\nwhile(style.childNodes.length){style.removeChild(style.childNodes[0]);}DOM.setAttr(svg,{'width':width,'height':height,'viewBox':'0 0 '+width+' '+height,'preserveAspectRatio':'none'});return svg;};/**\r\n       * Converts serialized SVG to a string suitable for data URI use\r\n       * @param svgString Serialized SVG string\r\n       * @param [base64] Use base64 encoding for data URI\r\n       */exports.svgStringToDataURI=function(){var rawPrefix='data:image/svg+xml;charset=UTF-8,';var base64Prefix='data:image/svg+xml;charset=UTF-8;base64,';return function(svgString,base64){if(base64){return base64Prefix+btoa(global.unescape(encodeURIComponent(svgString)));}else{return rawPrefix+encodeURIComponent(svgString);}};}();/**\r\n       * Returns serialized SVG with XML processing instructions\r\n       *\r\n       * @param svg SVG context\r\n       * @param stylesheets CSS stylesheets to include\r\n       */exports.serializeSVG=function(svg,engineSettings){if(!global.XMLSerializer)return;var serializer=new XMLSerializer();var svgCSS='';var stylesheets=engineSettings.stylesheets;//External stylesheets: Processing Instruction method\nif(engineSettings.svgXMLStylesheet){var xml=DOM.createXML();//Add <?xml-stylesheet ?> directives\nfor(var i=stylesheets.length-1;i>=0;i--){var csspi=xml.createProcessingInstruction('xml-stylesheet','href=\"'+stylesheets[i]+'\" rel=\"stylesheet\"');xml.insertBefore(csspi,xml.firstChild);}xml.removeChild(xml.documentElement);svgCSS=serializer.serializeToString(xml);}var svgText=serializer.serializeToString(svg);svgText=svgText.replace(/\\&amp;(\\#[0-9]{2,}\\;)/g,'&$1');return svgCSS+svgText;};/* WEBPACK VAR INJECTION */}).call(exports,function(){return this;}());/***/},/* 9 */ /***/function(module,exports){/* WEBPACK VAR INJECTION */(function(global){/**\r\n       * Generic new DOM element function\r\n       *\r\n       * @param tag Tag to create\r\n       * @param namespace Optional namespace value\r\n       */exports.newEl=function(tag,namespace){if(!global.document)return;if(namespace==null){return global.document.createElement(tag);}else{return global.document.createElementNS(namespace,tag);}};/**\r\n       * Generic setAttribute function\r\n       *\r\n       * @param el Reference to DOM element\r\n       * @param attrs Object with attribute keys and values\r\n       */exports.setAttr=function(el,attrs){for(var a in attrs){el.setAttribute(a,attrs[a]);}};/**\r\n       * Creates a XML document\r\n       * @private\r\n       */exports.createXML=function(){if(!global.DOMParser)return;return new DOMParser().parseFromString('<xml />','application/xml');};/**\r\n       * Converts a value into an array of DOM nodes\r\n       *\r\n       * @param val A string, a NodeList, a Node, or an HTMLCollection\r\n       */exports.getNodeArray=function(val){var retval=null;if(typeof val=='string'){retval=document.querySelectorAll(val);}else if(global.NodeList&&val instanceof global.NodeList){retval=val;}else if(global.Node&&val instanceof global.Node){retval=[val];}else if(global.HTMLCollection&&val instanceof global.HTMLCollection){retval=val;}else if(val instanceof Array){retval=val;}else if(val===null){retval=[];}retval=Array.prototype.slice.call(retval);return retval;};/* WEBPACK VAR INJECTION */}).call(exports,function(){return this;}());/***/},/* 10 */ /***/function(module,exports){var Color=function(color,options){//todo: support rgba, hsla, and rrggbbaa notation\n//todo: use CIELAB internally\n//todo: add clamp function (with sign)\nif(typeof color!=='string')return;this.original=color;if(color.charAt(0)==='#'){color=color.slice(1);}if(/[^a-f0-9]+/i.test(color))return;if(color.length===3){color=color.replace(/./g,'$&$&');}if(color.length!==6)return;this.alpha=1;if(options&&options.alpha){this.alpha=options.alpha;}this.set(parseInt(color,16));};//todo: jsdocs\nColor.rgb2hex=function(r,g,b){function format(decimal){var hex=(decimal|0).toString(16);if(decimal<16){hex='0'+hex;}return hex;}return[r,g,b].map(format).join('');};//todo: jsdocs\nColor.hsl2rgb=function(h,s,l){var H=h/60;var C=(1-Math.abs(2*l-1))*s;var X=C*(1-Math.abs(parseInt(H)%2-1));var m=l-C/2;var r=0,g=0,b=0;if(H>=0&&H<1){r=C;g=X;}else if(H>=1&&H<2){r=X;g=C;}else if(H>=2&&H<3){g=C;b=X;}else if(H>=3&&H<4){g=X;b=C;}else if(H>=4&&H<5){r=X;b=C;}else if(H>=5&&H<6){r=C;b=X;}r+=m;g+=m;b+=m;r=parseInt(r*255);g=parseInt(g*255);b=parseInt(b*255);return[r,g,b];};/**\r\n       * Sets the color from a raw RGB888 integer\r\n       * @param raw RGB888 representation of color\r\n       */ //todo: refactor into a static method\n//todo: factor out individual color spaces\n//todo: add HSL, CIELAB, and CIELUV\nColor.prototype.set=function(val){this.raw=val;var r=(this.raw&0xFF0000)>>16;var g=(this.raw&0x00FF00)>>8;var b=this.raw&0x0000FF;// BT.709\nvar y=0.2126*r+0.7152*g+0.0722*b;var u=-0.09991*r-0.33609*g+0.436*b;var v=0.615*r-0.55861*g-0.05639*b;this.rgb={r:r,g:g,b:b};this.yuv={y:y,u:u,v:v};return this;};/**\r\n       * Lighten or darken a color\r\n       * @param multiplier Amount to lighten or darken (-1 to 1)\r\n       */Color.prototype.lighten=function(multiplier){var cm=Math.min(1,Math.max(0,Math.abs(multiplier)))*(multiplier<0?-1:1);var bm=255*cm|0;var cr=Math.min(255,Math.max(0,this.rgb.r+bm));var cg=Math.min(255,Math.max(0,this.rgb.g+bm));var cb=Math.min(255,Math.max(0,this.rgb.b+bm));var hex=Color.rgb2hex(cr,cg,cb);return new Color(hex);};/**\r\n       * Output color in hex format\r\n       * @param addHash Add a hash character to the beginning of the output\r\n       */Color.prototype.toHex=function(addHash){return(addHash?'#':'')+this.raw.toString(16);};/**\r\n       * Returns whether or not current color is lighter than another color\r\n       * @param color Color to compare against\r\n       */Color.prototype.lighterThan=function(color){if(!(color instanceof Color)){color=new Color(color);}return this.yuv.y>color.yuv.y;};/**\r\n       * Returns the result of mixing current color with another color\r\n       * @param color Color to mix with\r\n       * @param multiplier How much to mix with the other color\r\n       */ /*\r\n      Color.prototype.mix = function (color, multiplier) {\r\n          if (!(color instanceof Color)) {\r\n              color = new Color(color);\r\n          }\r\n  \r\n          var r = this.rgb.r;\r\n          var g = this.rgb.g;\r\n          var b = this.rgb.b;\r\n          var a = this.alpha;\r\n  \r\n          var m = typeof multiplier !== 'undefined' ? multiplier : 0.5;\r\n  \r\n          //todo: write a lerp function\r\n          r = r + m * (color.rgb.r - r);\r\n          g = g + m * (color.rgb.g - g);\r\n          b = b + m * (color.rgb.b - b);\r\n          a = a + m * (color.alpha - a);\r\n  \r\n          return new Color(Color.rgbToHex(r, g, b), {\r\n              'alpha': a\r\n          });\r\n      };\r\n      */ /**\r\n       * Returns the result of blending another color on top of current color with alpha\r\n       * @param color Color to blend on top of current color, i.e. \"Ca\"\r\n       */ //todo: see if .blendAlpha can be merged into .mix\nColor.prototype.blendAlpha=function(color){if(!(color instanceof Color)){color=new Color(color);}var Ca=color;var Cb=this;//todo: write alpha blending function\nvar r=Ca.alpha*Ca.rgb.r+(1-Ca.alpha)*Cb.rgb.r;var g=Ca.alpha*Ca.rgb.g+(1-Ca.alpha)*Cb.rgb.g;var b=Ca.alpha*Ca.rgb.b+(1-Ca.alpha)*Cb.rgb.b;return new Color(Color.rgb2hex(r,g,b));};module.exports=Color;/***/},/* 11 */ /***/function(module,exports){module.exports={'version':'2.9.6','svg_ns':'http://www.w3.org/2000/svg'};/***/},/* 12 */ /***/function(module,exports,__nested_webpack_require_1789531__){var shaven=__nested_webpack_require_1789531__(13);var SVG=__nested_webpack_require_1789531__(8);var constants=__nested_webpack_require_1789531__(11);var utils=__nested_webpack_require_1789531__(7);var SVG_NS=constants.svg_ns;var templates={'element':function(options){var tag=options.tag;var content=options.content||'';delete options.tag;delete options.content;return[tag,content,options];}};//todo: deprecate tag arg, infer tag from shape object\nfunction convertShape(shape,tag){return templates.element({'tag':tag,'width':shape.width,'height':shape.height,'fill':shape.properties.fill});}function textCss(properties){return utils.cssProps({'fill':properties.fill,'font-weight':properties.font.weight,'font-family':properties.font.family+', monospace','font-size':properties.font.size+properties.font.units});}function outlinePath(bgWidth,bgHeight,outlineWidth){var outlineOffsetWidth=outlineWidth/2;return['M',outlineOffsetWidth,outlineOffsetWidth,'H',bgWidth-outlineOffsetWidth,'V',bgHeight-outlineOffsetWidth,'H',outlineOffsetWidth,'V',0,'M',0,outlineOffsetWidth,'L',bgWidth,bgHeight-outlineOffsetWidth,'M',0,bgHeight-outlineOffsetWidth,'L',bgWidth,outlineOffsetWidth].join(' ');}module.exports=function(sceneGraph,renderSettings){var engineSettings=renderSettings.engineSettings;var stylesheets=engineSettings.stylesheets;var stylesheetXml=stylesheets.map(function(stylesheet){return'<?xml-stylesheet rel=\"stylesheet\" href=\"'+stylesheet+'\"?>';}).join('\\n');var holderId='holder_'+Number(new Date()).toString(16);var root=sceneGraph.root;var textGroup=root.children.holderTextGroup;var css='#'+holderId+' text { '+textCss(textGroup.properties)+' } ';// push text down to be equally vertically aligned with canvas renderer\ntextGroup.y+=textGroup.textPositionData.boundingBox.height*0.8;var wordTags=[];Object.keys(textGroup.children).forEach(function(lineKey){var line=textGroup.children[lineKey];Object.keys(line.children).forEach(function(wordKey){var word=line.children[wordKey];var x=textGroup.x+line.x+word.x;var y=textGroup.y+line.y+word.y;var wordTag=templates.element({'tag':'text','content':word.properties.text,'x':x,'y':y});wordTags.push(wordTag);});});var text=templates.element({'tag':'g','content':wordTags});var outline=null;if(root.children.holderBg.properties.outline){var outlineProperties=root.children.holderBg.properties.outline;outline=templates.element({'tag':'path','d':outlinePath(root.children.holderBg.width,root.children.holderBg.height,outlineProperties.width),'stroke-width':outlineProperties.width,'stroke':outlineProperties.fill,'fill':'none'});}var bg=convertShape(root.children.holderBg,'rect');var sceneContent=[];sceneContent.push(bg);if(outlineProperties){sceneContent.push(outline);}sceneContent.push(text);var scene=templates.element({'tag':'g','id':holderId,'content':sceneContent});var style=templates.element({'tag':'style',//todo: figure out how to add CDATA directive\n'content':css,'type':'text/css'});var defs=templates.element({'tag':'defs','content':style});var svg=templates.element({'tag':'svg','content':[defs,scene],'width':root.properties.width,'height':root.properties.height,'xmlns':SVG_NS,'viewBox':[0,0,root.properties.width,root.properties.height].join(' '),'preserveAspectRatio':'none'});var output=shaven(svg);if(/\\&amp;(x)?#[0-9A-Fa-f]/.test(output[0])){output[0]=output[0].replace(/&amp;#/gm,'&#');}output=stylesheetXml+output[0];var svgString=SVG.svgStringToDataURI(output,renderSettings.mode==='background');return svgString;};/***/},/* 13 */ /***/function(module,exports,__nested_webpack_require_1793031__){var escape=__nested_webpack_require_1793031__(14);// TODO: remove namespace\nmodule.exports=function shaven(array,namespace,returnObject){'use strict';var i=1;var doesEscape=true;var HTMLString;var attributeKey;var callback;var key;returnObject=returnObject||{};function createElement(sugarString){var tags=sugarString.match(/^[\\w-]+/);var element={tag:tags?tags[0]:'div',attr:{},children:[]};var id=sugarString.match(/#([\\w-]+)/);var reference=sugarString.match(/\\$([\\w-]+)/);var classNames=sugarString.match(/\\.[\\w-]+/g);// Assign id if is set\nif(id){element.attr.id=id[1];// Add element to the return object\nreturnObject[id[1]]=element;}if(reference)returnObject[reference[1]]=element;if(classNames)element.attr.class=classNames.join(' ').replace(/\\./g,'');if(sugarString.match(/&$/g))doesEscape=false;return element;}function replacer(key,value){if(value===null||value===false||value===undefined)return;if(typeof value!=='string'&&typeof value!=='object')return String(value);return value;}function escapeAttribute(string){return string||string===0?String(string).replace(/&/g,'&amp;').replace(/\"/g,'&quot;'):'';}function escapeHTML(string){return String(string).replace(/&/g,'&amp;').replace(/\"/g,'&quot;').replace(/'/g,'&apos;').replace(/</g,'&lt;').replace(/>/g,'&gt;');}if(typeof array[0]==='string')array[0]=createElement(array[0]);else if(Array.isArray(array[0]))i=0;else throw new Error('First element of array must be a string, '+'or an array and not '+JSON.stringify(array[0]));for(;i<array.length;i++){// Don't render element if value is false or null\nif(array[i]===false||array[i]===null){array[0]=false;break;}// Continue with next array value if current value is undefined or true\nelse if(array[i]===undefined||array[i]===true){continue;}else if(typeof array[i]==='string'){if(doesEscape)array[i]=escapeHTML(array[i]);array[0].children.push(array[i]);}else if(typeof array[i]==='number'){array[0].children.push(array[i]);}else if(Array.isArray(array[i])){if(Array.isArray(array[i][0])){array[i].reverse().forEach(function(subArray){array.splice(i+1,0,subArray);});if(i!==0)continue;i++;}shaven(array[i],namespace,returnObject);if(array[i][0])array[0].children.push(array[i][0]);}else if(typeof array[i]==='function')callback=array[i];else if(typeof array[i]==='object'){for(attributeKey in array[i])if(array[i].hasOwnProperty(attributeKey))if(array[i][attributeKey]!==null&&array[i][attributeKey]!==false)if(attributeKey==='style'&&typeof array[i][attributeKey]==='object')array[0].attr[attributeKey]=JSON.stringify(array[i][attributeKey],replacer).slice(2,-2).replace(/\",\"/g,';').replace(/\":\"/g,':').replace(/\\\\\"/g,'\\'');else array[0].attr[attributeKey]=array[i][attributeKey];}else throw new TypeError('\"'+array[i]+'\" is not allowed as a value.');}if(array[0]!==false){HTMLString='<'+array[0].tag;for(key in array[0].attr)if(array[0].attr.hasOwnProperty(key))HTMLString+=' '+key+'=\"'+escapeAttribute(array[0].attr[key])+'\"';HTMLString+='>';array[0].children.forEach(function(child){HTMLString+=child;});HTMLString+='</'+array[0].tag+'>';array[0]=HTMLString;}// Return root element on index 0\nreturnObject[0]=array[0];if(callback)callback(array[0]);// returns object containing all elements with an id and the root element\nreturn returnObject;};/***/},/* 14 */ /***/function(module,exports){/*!\r\n       * escape-html\r\n       * Copyright(c) 2012-2013 TJ Holowaychuk\r\n       * Copyright(c) 2015 Andreas Lubbe\r\n       * Copyright(c) 2015 Tiancheng \"Timothy\" Gu\r\n       * MIT Licensed\r\n       */'use strict';/**\r\n       * Module variables.\r\n       * @private\r\n       */var matchHtmlRegExp=/[\"'&<>]/;/**\r\n       * Module exports.\r\n       * @public\r\n       */module.exports=escapeHtml;/**\r\n       * Escape special characters in the given string of html.\r\n       *\r\n       * @param  {string} string The string to escape for inserting into HTML\r\n       * @return {string}\r\n       * @public\r\n       */function escapeHtml(string){var str=''+string;var match=matchHtmlRegExp.exec(str);if(!match){return str;}var escape;var html='';var index=0;var lastIndex=0;for(index=match.index;index<str.length;index++){switch(str.charCodeAt(index)){case 34:// \"\nescape='&quot;';break;case 38:// &\nescape='&amp;';break;case 39:// '\nescape='&#39;';break;case 60:// <\nescape='&lt;';break;case 62:// >\nescape='&gt;';break;default:continue;}if(lastIndex!==index){html+=str.substring(lastIndex,index);}lastIndex=index+1;html+=escape;}return lastIndex!==index?html+str.substring(lastIndex,index):html;}/***/},/* 15 */ /***/function(module,exports,__nested_webpack_require_1797571__){var DOM=__nested_webpack_require_1797571__(9);var utils=__nested_webpack_require_1797571__(7);module.exports=function(){var canvas=DOM.newEl('canvas');var ctx=null;return function(sceneGraph){if(ctx==null){ctx=canvas.getContext('2d');}var dpr=utils.canvasRatio();var root=sceneGraph.root;canvas.width=dpr*root.properties.width;canvas.height=dpr*root.properties.height;ctx.textBaseline='middle';var bg=root.children.holderBg;var bgWidth=dpr*bg.width;var bgHeight=dpr*bg.height;//todo: parametrize outline width (e.g. in scene object)\nvar outlineWidth=2;var outlineOffsetWidth=outlineWidth/2;ctx.fillStyle=bg.properties.fill;ctx.fillRect(0,0,bgWidth,bgHeight);if(bg.properties.outline){//todo: abstract this into a method\nctx.strokeStyle=bg.properties.outline.fill;ctx.lineWidth=bg.properties.outline.width;ctx.moveTo(outlineOffsetWidth,outlineOffsetWidth);// TL, TR, BR, BL\nctx.lineTo(bgWidth-outlineOffsetWidth,outlineOffsetWidth);ctx.lineTo(bgWidth-outlineOffsetWidth,bgHeight-outlineOffsetWidth);ctx.lineTo(outlineOffsetWidth,bgHeight-outlineOffsetWidth);ctx.lineTo(outlineOffsetWidth,outlineOffsetWidth);// Diagonals\nctx.moveTo(0,outlineOffsetWidth);ctx.lineTo(bgWidth,bgHeight-outlineOffsetWidth);ctx.moveTo(0,bgHeight-outlineOffsetWidth);ctx.lineTo(bgWidth,outlineOffsetWidth);ctx.stroke();}var textGroup=root.children.holderTextGroup;ctx.font=textGroup.properties.font.weight+' '+dpr*textGroup.properties.font.size+textGroup.properties.font.units+' '+textGroup.properties.font.family+', monospace';ctx.fillStyle=textGroup.properties.fill;for(var lineKey in textGroup.children){var line=textGroup.children[lineKey];for(var wordKey in line.children){var word=line.children[wordKey];var x=dpr*(textGroup.x+line.x+word.x);var y=dpr*(textGroup.y+line.y+word.y+textGroup.properties.leading/2);ctx.fillText(word.properties.text,x,y);}}return canvas.toDataURL('image/png');};}();/***/}/******/]));});;(function(ctx,isMeteorPackage){if(isMeteorPackage){Holder=ctx.Holder;}})(this,typeof Meteor!=='undefined'&&typeof Package!=='undefined');// ----------- holder.js END -------------\n// ----------- datatables.bundle.js START -------------\n/*! DataTables 1.10.19\r\n * ©2008-2018 SpryMedia Ltd - datatables.net/license\r\n */ /**\r\n * @summary     DataTables\r\n * @description Paginate, search and order HTML tables\r\n * @version     1.10.19\r\n * @file        jquery.dataTables.js\r\n * @author      SpryMedia Ltd\r\n * @contact     www.datatables.net\r\n * @copyright   Copyright 2008-2018 SpryMedia Ltd.\r\n *\r\n * This source file is free software, available under the following license:\r\n *   MIT license - http://datatables.net/license\r\n *\r\n * This source file is distributed in the hope that it will be useful, but\r\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\r\n *\r\n * For details please refer to: http://www.datatables.net\r\n */ /*jslint evil: true, undef: true, browser: true */ /*globals $,require,jQuery,define,_selector_run,_selector_opts,_selector_first,_selector_row_indexes,_ext,_Api,_api_register,_api_registerPlural,_re_new_lines,_re_html,_re_formatted_numeric,_re_escape_regex,_empty,_intVal,_numToDecimal,_isNumber,_isHtml,_htmlNumeric,_pluck,_pluck_order,_range,_stripHtml,_unique,_fnBuildAjax,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnAjaxDataSrc,_fnAddColumn,_fnColumnOptions,_fnAdjustColumnSizing,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnVisbleColumns,_fnGetColumns,_fnColumnTypes,_fnApplyColumnDefs,_fnHungarianMap,_fnCamelToHungarian,_fnLanguageCompat,_fnBrowserDetect,_fnAddData,_fnAddTr,_fnNodeToDataIndex,_fnNodeToColumnIndex,_fnGetCellData,_fnSetCellData,_fnSplitObjNotation,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnGetDataMaster,_fnClearTable,_fnDeleteIndex,_fnInvalidate,_fnGetRowElements,_fnCreateTr,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAddOptionsHtml,_fnDetectHeader,_fnGetUniqueThs,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnFilterCreateSearch,_fnEscapeRegex,_fnFilterData,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnInfoMacros,_fnInitialise,_fnInitComplete,_fnLengthChange,_fnFeatureHtmlLength,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnFeatureHtmlTable,_fnScrollDraw,_fnApplyToChildren,_fnCalculateColumnWidths,_fnThrottle,_fnConvertToWidth,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnSortFlatten,_fnSort,_fnSortAria,_fnSortListener,_fnSortAttachListener,_fnSortingClasses,_fnSortData,_fnSaveState,_fnLoadState,_fnSettingsFromNode,_fnLog,_fnMap,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnLengthOverflow,_fnRenderer,_fnDataSource,_fnRowAttributes*/(function(factory){\"use strict\";if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){\"use strict\";/**\r\n\t * DataTables is a plug-in for the jQuery Javascript library. It is a highly\r\n\t * flexible tool, based upon the foundations of progressive enhancement,\r\n\t * which will add advanced interaction controls to any HTML table. For a\r\n\t * full list of features please refer to\r\n\t * [DataTables.net](href=\"http://datatables.net).\r\n\t *\r\n\t * Note that the `DataTable` object is not a global variable but is aliased\r\n\t * to `jQuery.fn.DataTable` and `jQuery.fn.dataTable` through which it may\r\n\t * be  accessed.\r\n\t *\r\n\t *  @class\r\n\t *  @param {object} [init={}] Configuration object for DataTables. Options\r\n\t *    are defined by {@link DataTable.defaults}\r\n\t *  @requires jQuery 1.7+\r\n\t *\r\n\t *  @example\r\n\t *    // Basic initialisation\r\n\t *    $(document).ready( function {\r\n\t *      $('#example').dataTable();\r\n\t *    } );\r\n\t *\r\n\t *  @example\r\n\t *    // Initialisation with configuration options - in this case, disable\r\n\t *    // pagination and sorting.\r\n\t *    $(document).ready( function {\r\n\t *      $('#example').dataTable( {\r\n\t *        \"paginate\": false,\r\n\t *        \"sort\": false\r\n\t *      } );\r\n\t *    } );\r\n\t */var DataTable=function(options){/**\r\n\t\t * Perform a jQuery selector action on the table's TR elements (from the tbody) and\r\n\t\t * return the resulting jQuery object.\r\n\t\t *  @param {string|node|jQuery} sSelector jQuery selector or node collection to act on\r\n\t\t *  @param {object} [oOpts] Optional parameters for modifying the rows to be included\r\n\t\t *  @param {string} [oOpts.filter=none] Select TR elements that meet the current filter\r\n\t\t *    criterion (\"applied\") or all TR elements (i.e. no filter).\r\n\t\t *  @param {string} [oOpts.order=current] Order of the TR elements in the processed array.\r\n\t\t *    Can be either 'current', whereby the current sorting of the table is used, or\r\n\t\t *    'original' whereby the original order the data was read into the table is used.\r\n\t\t *  @param {string} [oOpts.page=all] Limit the selection to the currently displayed page\r\n\t\t *    (\"current\") or not (\"all\"). If 'current' is given, then order is assumed to be\r\n\t\t *    'current' and filter is 'applied', regardless of what they might be given as.\r\n\t\t *  @returns {object} jQuery object, filtered by the given selector.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Highlight every second row\r\n\t\t *      oTable.$('tr:odd').css('backgroundColor', 'blue');\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Filter to rows with 'Webkit' in them, add a background colour and then\r\n\t\t *      // remove the filter, thus highlighting the 'Webkit' rows only.\r\n\t\t *      oTable.fnFilter('Webkit');\r\n\t\t *      oTable.$('tr', {\"search\": \"applied\"}).css('backgroundColor', 'blue');\r\n\t\t *      oTable.fnFilter('');\r\n\t\t *    } );\r\n\t\t */this.$=function(sSelector,oOpts){return this.api(true).$(sSelector,oOpts);};/**\r\n\t\t * Almost identical to $ in operation, but in this case returns the data for the matched\r\n\t\t * rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes\r\n\t\t * rather than any descendants, so the data can be obtained for the row/cell. If matching\r\n\t\t * rows are found, the data returned is the original data array/object that was used to\r\n\t\t * create the row (or a generated array if from a DOM source).\r\n\t\t *\r\n\t\t * This method is often useful in-combination with $ where both functions are given the\r\n\t\t * same parameters and the array indexes will match identically.\r\n\t\t *  @param {string|node|jQuery} sSelector jQuery selector or node collection to act on\r\n\t\t *  @param {object} [oOpts] Optional parameters for modifying the rows to be included\r\n\t\t *  @param {string} [oOpts.filter=none] Select elements that meet the current filter\r\n\t\t *    criterion (\"applied\") or all elements (i.e. no filter).\r\n\t\t *  @param {string} [oOpts.order=current] Order of the data in the processed array.\r\n\t\t *    Can be either 'current', whereby the current sorting of the table is used, or\r\n\t\t *    'original' whereby the original order the data was read into the table is used.\r\n\t\t *  @param {string} [oOpts.page=all] Limit the selection to the currently displayed page\r\n\t\t *    (\"current\") or not (\"all\"). If 'current' is given, then order is assumed to be\r\n\t\t *    'current' and filter is 'applied', regardless of what they might be given as.\r\n\t\t *  @returns {array} Data for the matched elements. If any elements, as a result of the\r\n\t\t *    selector, were not TR, TD or TH elements in the DataTable, they will have a null\r\n\t\t *    entry in the array.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Get the data from the first row in the table\r\n\t\t *      var data = oTable._('tr:first');\r\n\t\t *\r\n\t\t *      // Do something useful with the data\r\n\t\t *      alert( \"First cell is: \"+data[0] );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Filter to 'Webkit' and get all data for\r\n\t\t *      oTable.fnFilter('Webkit');\r\n\t\t *      var data = oTable._('tr', {\"search\": \"applied\"});\r\n\t\t *\r\n\t\t *      // Do something with the data\r\n\t\t *      alert( data.length+\" rows matched the search\" );\r\n\t\t *    } );\r\n\t\t */this._=function(sSelector,oOpts){return this.api(true).rows(sSelector,oOpts).data();};/**\r\n\t\t * Create a DataTables Api instance, with the currently selected tables for\r\n\t\t * the Api's context.\r\n\t\t * @param {boolean} [traditional=false] Set the API instance's context to be\r\n\t\t *   only the table referred to by the `DataTable.ext.iApiIndex` option, as was\r\n\t\t *   used in the API presented by DataTables 1.9- (i.e. the traditional mode),\r\n\t\t *   or if all tables captured in the jQuery object should be used.\r\n\t\t * @return {DataTables.Api}\r\n\t\t */this.api=function(traditional){return traditional?new _Api(_fnSettingsFromNode(this[_ext.iApiIndex])):new _Api(this);};/**\r\n\t\t * Add a single new row or multiple rows of data to the table. Please note\r\n\t\t * that this is suitable for client-side processing only - if you are using\r\n\t\t * server-side processing (i.e. \"bServerSide\": true), then to add data, you\r\n\t\t * must add it to the data source, i.e. the server-side, through an Ajax call.\r\n\t\t *  @param {array|object} data The data to be added to the table. This can be:\r\n\t\t *    <ul>\r\n\t\t *      <li>1D array of data - add a single row with the data provided</li>\r\n\t\t *      <li>2D array of arrays - add multiple rows in a single call</li>\r\n\t\t *      <li>object - data object when using <i>mData</i></li>\r\n\t\t *      <li>array of objects - multiple data objects when using <i>mData</i></li>\r\n\t\t *    </ul>\r\n\t\t *  @param {bool} [redraw=true] redraw the table or not\r\n\t\t *  @returns {array} An array of integers, representing the list of indexes in\r\n\t\t *    <i>aoData</i> ({@link DataTable.models.oSettings}) that have been added to\r\n\t\t *    the table.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Global var for counter\r\n\t\t *    var giCount = 2;\r\n\t\t *\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      $('#example').dataTable();\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *    function fnClickAddRow() {\r\n\t\t *      $('#example').dataTable().fnAddData( [\r\n\t\t *        giCount+\".1\",\r\n\t\t *        giCount+\".2\",\r\n\t\t *        giCount+\".3\",\r\n\t\t *        giCount+\".4\" ]\r\n\t\t *      );\r\n\t\t *\r\n\t\t *      giCount++;\r\n\t\t *    }\r\n\t\t */this.fnAddData=function(data,redraw){var api=this.api(true);/* Check if we want to add multiple rows or not */var rows=$.isArray(data)&&($.isArray(data[0])||$.isPlainObject(data[0]))?api.rows.add(data):api.row.add(data);if(redraw===undefined||redraw){api.draw();}return rows.flatten().toArray();};/**\r\n\t\t * This function will make DataTables recalculate the column sizes, based on the data\r\n\t\t * contained in the table and the sizes applied to the columns (in the DOM, CSS or\r\n\t\t * through the sWidth parameter). This can be useful when the width of the table's\r\n\t\t * parent element changes (for example a window resize).\r\n\t\t *  @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable( {\r\n\t\t *        \"sScrollY\": \"200px\",\r\n\t\t *        \"bPaginate\": false\r\n\t\t *      } );\r\n\t\t *\r\n\t\t *      $(window).on('resize', function () {\r\n\t\t *        oTable.fnAdjustColumnSizing();\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */this.fnAdjustColumnSizing=function(bRedraw){var api=this.api(true).columns.adjust();var settings=api.settings()[0];var scroll=settings.oScroll;if(bRedraw===undefined||bRedraw){api.draw(false);}else if(scroll.sX!==\"\"||scroll.sY!==\"\"){/* If not redrawing, but scrolling, we want to apply the new column sizes anyway */_fnScrollDraw(settings);}};/**\r\n\t\t * Quickly and simply clear a table\r\n\t\t *  @param {bool} [bRedraw=true] redraw the table or not\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Immediately 'nuke' the current rows (perhaps waiting for an Ajax callback...)\r\n\t\t *      oTable.fnClearTable();\r\n\t\t *    } );\r\n\t\t */this.fnClearTable=function(bRedraw){var api=this.api(true).clear();if(bRedraw===undefined||bRedraw){api.draw();}};/**\r\n\t\t * The exact opposite of 'opening' a row, this function will close any rows which\r\n\t\t * are currently 'open'.\r\n\t\t *  @param {node} nTr the table row to 'close'\r\n\t\t *  @returns {int} 0 on success, or 1 if failed (can't find the row)\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable;\r\n\t\t *\r\n\t\t *      // 'open' an information row when a row is clicked on\r\n\t\t *      $('#example tbody tr').click( function () {\r\n\t\t *        if ( oTable.fnIsOpen(this) ) {\r\n\t\t *          oTable.fnClose( this );\r\n\t\t *        } else {\r\n\t\t *          oTable.fnOpen( this, \"Temporary row opened\", \"info_row\" );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *\r\n\t\t *      oTable = $('#example').dataTable();\r\n\t\t *    } );\r\n\t\t */this.fnClose=function(nTr){this.api(true).row(nTr).child.hide();};/**\r\n\t\t * Remove a row for the table\r\n\t\t *  @param {mixed} target The index of the row from aoData to be deleted, or\r\n\t\t *    the TR element you want to delete\r\n\t\t *  @param {function|null} [callBack] Callback function\r\n\t\t *  @param {bool} [redraw=true] Redraw the table or not\r\n\t\t *  @returns {array} The row that was deleted\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Immediately remove the first row\r\n\t\t *      oTable.fnDeleteRow( 0 );\r\n\t\t *    } );\r\n\t\t */this.fnDeleteRow=function(target,callback,redraw){var api=this.api(true);var rows=api.rows(target);var settings=rows.settings()[0];var data=settings.aoData[rows[0][0]];rows.remove();if(callback){callback.call(this,settings,data);}if(redraw===undefined||redraw){api.draw();}return data;};/**\r\n\t\t * Restore the table to it's original state in the DOM by removing all of DataTables\r\n\t\t * enhancements, alterations to the DOM structure of the table and event listeners.\r\n\t\t *  @param {boolean} [remove=false] Completely remove the table from the DOM\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      // This example is fairly pointless in reality, but shows how fnDestroy can be used\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *      oTable.fnDestroy();\r\n\t\t *    } );\r\n\t\t */this.fnDestroy=function(remove){this.api(true).destroy(remove);};/**\r\n\t\t * Redraw the table\r\n\t\t *  @param {bool} [complete=true] Re-filter and resort (if enabled) the table before the draw.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Re-draw the table - you wouldn't want to do it here, but it's an example :-)\r\n\t\t *      oTable.fnDraw();\r\n\t\t *    } );\r\n\t\t */this.fnDraw=function(complete){// Note that this isn't an exact match to the old call to _fnDraw - it takes\n// into account the new data, but can hold position.\nthis.api(true).draw(complete);};/**\r\n\t\t * Filter the input based on data\r\n\t\t *  @param {string} sInput String to filter the table on\r\n\t\t *  @param {int|null} [iColumn] Column to limit filtering to\r\n\t\t *  @param {bool} [bRegex=false] Treat as regular expression or not\r\n\t\t *  @param {bool} [bSmart=true] Perform smart filtering or not\r\n\t\t *  @param {bool} [bShowGlobal=true] Show the input global filter in it's input box(es)\r\n\t\t *  @param {bool} [bCaseInsensitive=true] Do case-insensitive matching (true) or not (false)\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Sometime later - filter...\r\n\t\t *      oTable.fnFilter( 'test string' );\r\n\t\t *    } );\r\n\t\t */this.fnFilter=function(sInput,iColumn,bRegex,bSmart,bShowGlobal,bCaseInsensitive){var api=this.api(true);if(iColumn===null||iColumn===undefined){api.search(sInput,bRegex,bSmart,bCaseInsensitive);}else{api.column(iColumn).search(sInput,bRegex,bSmart,bCaseInsensitive);}api.draw();};/**\r\n\t\t * Get the data for the whole table, an individual row or an individual cell based on the\r\n\t\t * provided parameters.\r\n\t\t *  @param {int|node} [src] A TR row node, TD/TH cell node or an integer. If given as\r\n\t\t *    a TR node then the data source for the whole row will be returned. If given as a\r\n\t\t *    TD/TH cell node then iCol will be automatically calculated and the data for the\r\n\t\t *    cell returned. If given as an integer, then this is treated as the aoData internal\r\n\t\t *    data index for the row (see fnGetPosition) and the data for that row used.\r\n\t\t *  @param {int} [col] Optional column index that you want the data of.\r\n\t\t *  @returns {array|object|string} If mRow is undefined, then the data for all rows is\r\n\t\t *    returned. If mRow is defined, just data for that row, and is iCol is\r\n\t\t *    defined, only data for the designated cell is returned.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Row data\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      oTable.$('tr').click( function () {\r\n\t\t *        var data = oTable.fnGetData( this );\r\n\t\t *        // ... do something with the array / object of data for the row\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Individual cell data\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      oTable.$('td').click( function () {\r\n\t\t *        var sData = oTable.fnGetData( this );\r\n\t\t *        alert( 'The cell clicked on had the value of '+sData );\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */this.fnGetData=function(src,col){var api=this.api(true);if(src!==undefined){var type=src.nodeName?src.nodeName.toLowerCase():'';return col!==undefined||type=='td'||type=='th'?api.cell(src,col).data():api.row(src).data()||null;}return api.data().toArray();};/**\r\n\t\t * Get an array of the TR nodes that are used in the table's body. Note that you will\r\n\t\t * typically want to use the '$' API method in preference to this as it is more\r\n\t\t * flexible.\r\n\t\t *  @param {int} [iRow] Optional row index for the TR element you want\r\n\t\t *  @returns {array|node} If iRow is undefined, returns an array of all TR elements\r\n\t\t *    in the table's body, or iRow is defined, just the TR element requested.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Get the nodes from the table\r\n\t\t *      var nNodes = oTable.fnGetNodes( );\r\n\t\t *    } );\r\n\t\t */this.fnGetNodes=function(iRow){var api=this.api(true);return iRow!==undefined?api.row(iRow).node():api.rows().nodes().flatten().toArray();};/**\r\n\t\t * Get the array indexes of a particular cell from it's DOM element\r\n\t\t * and column index including hidden columns\r\n\t\t *  @param {node} node this can either be a TR, TD or TH in the table's body\r\n\t\t *  @returns {int} If nNode is given as a TR, then a single index is returned, or\r\n\t\t *    if given as a cell, an array of [row index, column index (visible),\r\n\t\t *    column index (all)] is given.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      $('#example tbody td').click( function () {\r\n\t\t *        // Get the position of the current data from the node\r\n\t\t *        var aPos = oTable.fnGetPosition( this );\r\n\t\t *\r\n\t\t *        // Get the data array for this row\r\n\t\t *        var aData = oTable.fnGetData( aPos[0] );\r\n\t\t *\r\n\t\t *        // Update the data array and return the value\r\n\t\t *        aData[ aPos[1] ] = 'clicked';\r\n\t\t *        this.innerHTML = 'clicked';\r\n\t\t *      } );\r\n\t\t *\r\n\t\t *      // Init DataTables\r\n\t\t *      oTable = $('#example').dataTable();\r\n\t\t *    } );\r\n\t\t */this.fnGetPosition=function(node){var api=this.api(true);var nodeName=node.nodeName.toUpperCase();if(nodeName=='TR'){return api.row(node).index();}else if(nodeName=='TD'||nodeName=='TH'){var cell=api.cell(node).index();return[cell.row,cell.columnVisible,cell.column];}return null;};/**\r\n\t\t * Check to see if a row is 'open' or not.\r\n\t\t *  @param {node} nTr the table row to check\r\n\t\t *  @returns {boolean} true if the row is currently open, false otherwise\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable;\r\n\t\t *\r\n\t\t *      // 'open' an information row when a row is clicked on\r\n\t\t *      $('#example tbody tr').click( function () {\r\n\t\t *        if ( oTable.fnIsOpen(this) ) {\r\n\t\t *          oTable.fnClose( this );\r\n\t\t *        } else {\r\n\t\t *          oTable.fnOpen( this, \"Temporary row opened\", \"info_row\" );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *\r\n\t\t *      oTable = $('#example').dataTable();\r\n\t\t *    } );\r\n\t\t */this.fnIsOpen=function(nTr){return this.api(true).row(nTr).child.isShown();};/**\r\n\t\t * This function will place a new row directly after a row which is currently\r\n\t\t * on display on the page, with the HTML contents that is passed into the\r\n\t\t * function. This can be used, for example, to ask for confirmation that a\r\n\t\t * particular record should be deleted.\r\n\t\t *  @param {node} nTr The table row to 'open'\r\n\t\t *  @param {string|node|jQuery} mHtml The HTML to put into the row\r\n\t\t *  @param {string} sClass Class to give the new TD cell\r\n\t\t *  @returns {node} The row opened. Note that if the table row passed in as the\r\n\t\t *    first parameter, is not found in the table, this method will silently\r\n\t\t *    return.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable;\r\n\t\t *\r\n\t\t *      // 'open' an information row when a row is clicked on\r\n\t\t *      $('#example tbody tr').click( function () {\r\n\t\t *        if ( oTable.fnIsOpen(this) ) {\r\n\t\t *          oTable.fnClose( this );\r\n\t\t *        } else {\r\n\t\t *          oTable.fnOpen( this, \"Temporary row opened\", \"info_row\" );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *\r\n\t\t *      oTable = $('#example').dataTable();\r\n\t\t *    } );\r\n\t\t */this.fnOpen=function(nTr,mHtml,sClass){return this.api(true).row(nTr).child(mHtml,sClass).show().child()[0];};/**\r\n\t\t * Change the pagination - provides the internal logic for pagination in a simple API\r\n\t\t * function. With this function you can have a DataTables table go to the next,\r\n\t\t * previous, first or last pages.\r\n\t\t *  @param {string|int} mAction Paging action to take: \"first\", \"previous\", \"next\" or \"last\"\r\n\t\t *    or page number to jump to (integer), note that page 0 is the first page.\r\n\t\t *  @param {bool} [bRedraw=true] Redraw the table or not\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *      oTable.fnPageChange( 'next' );\r\n\t\t *    } );\r\n\t\t */this.fnPageChange=function(mAction,bRedraw){var api=this.api(true).page(mAction);if(bRedraw===undefined||bRedraw){api.draw(false);}};/**\r\n\t\t * Show a particular column\r\n\t\t *  @param {int} iCol The column whose display should be changed\r\n\t\t *  @param {bool} bShow Show (true) or hide (false) the column\r\n\t\t *  @param {bool} [bRedraw=true] Redraw the table or not\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Hide the second column after initialisation\r\n\t\t *      oTable.fnSetColumnVis( 1, false );\r\n\t\t *    } );\r\n\t\t */this.fnSetColumnVis=function(iCol,bShow,bRedraw){var api=this.api(true).column(iCol).visible(bShow);if(bRedraw===undefined||bRedraw){api.columns.adjust().draw();}};/**\r\n\t\t * Get the settings for a particular table for external manipulation\r\n\t\t *  @returns {object} DataTables settings object. See\r\n\t\t *    {@link DataTable.models.oSettings}\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *      var oSettings = oTable.fnSettings();\r\n\t\t *\r\n\t\t *      // Show an example parameter from the settings\r\n\t\t *      alert( oSettings._iDisplayStart );\r\n\t\t *    } );\r\n\t\t */this.fnSettings=function(){return _fnSettingsFromNode(this[_ext.iApiIndex]);};/**\r\n\t\t * Sort the table by a particular column\r\n\t\t *  @param {int} iCol the data index to sort on. Note that this will not match the\r\n\t\t *    'display index' if you have hidden data entries\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Sort immediately with columns 0 and 1\r\n\t\t *      oTable.fnSort( [ [0,'asc'], [1,'asc'] ] );\r\n\t\t *    } );\r\n\t\t */this.fnSort=function(aaSort){this.api(true).order(aaSort).draw();};/**\r\n\t\t * Attach a sort listener to an element for a given column\r\n\t\t *  @param {node} nNode the element to attach the sort listener to\r\n\t\t *  @param {int} iColumn the column that a click on this node will sort on\r\n\t\t *  @param {function} [fnCallback] callback function when sort is run\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Sort on column 1, when 'sorter' is clicked on\r\n\t\t *      oTable.fnSortListener( document.getElementById('sorter'), 1 );\r\n\t\t *    } );\r\n\t\t */this.fnSortListener=function(nNode,iColumn,fnCallback){this.api(true).order.listener(nNode,iColumn,fnCallback);};/**\r\n\t\t * Update a table cell or row - this method will accept either a single value to\r\n\t\t * update the cell with, an array of values with one element for each column or\r\n\t\t * an object in the same format as the original data source. The function is\r\n\t\t * self-referencing in order to make the multi column updates easier.\r\n\t\t *  @param {object|array|string} mData Data to update the cell/row with\r\n\t\t *  @param {node|int} mRow TR element you want to update or the aoData index\r\n\t\t *  @param {int} [iColumn] The column to update, give as null or undefined to\r\n\t\t *    update a whole row.\r\n\t\t *  @param {bool} [bRedraw=true] Redraw the table or not\r\n\t\t *  @param {bool} [bAction=true] Perform pre-draw actions or not\r\n\t\t *  @returns {int} 0 on success, 1 on error\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *      oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell\r\n\t\t *      oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], $('tbody tr')[0] ); // Row\r\n\t\t *    } );\r\n\t\t */this.fnUpdate=function(mData,mRow,iColumn,bRedraw,bAction){var api=this.api(true);if(iColumn===undefined||iColumn===null){api.row(mRow).data(mData);}else{api.cell(mRow,iColumn).data(mData);}if(bAction===undefined||bAction){api.columns.adjust();}if(bRedraw===undefined||bRedraw){api.draw();}return 0;};/**\r\n\t\t * Provide a common method for plug-ins to check the version of DataTables being used, in order\r\n\t\t * to ensure compatibility.\r\n\t\t *  @param {string} sVersion Version string to check for, in the format \"X.Y.Z\". Note that the\r\n\t\t *    formats \"X\" and \"X.Y\" are also acceptable.\r\n\t\t *  @returns {boolean} true if this version of DataTables is greater or equal to the required\r\n\t\t *    version, or false if this version of DataTales is not suitable\r\n\t\t *  @method\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *      alert( oTable.fnVersionCheck( '1.9.0' ) );\r\n\t\t *    } );\r\n\t\t */this.fnVersionCheck=_ext.fnVersionCheck;var _that=this;var emptyInit=options===undefined;var len=this.length;if(emptyInit){options={};}this.oApi=this.internal=_ext.internal;// Extend with old style plug-in API methods\nfor(var fn in DataTable.ext.internal){if(fn){this[fn]=_fnExternApiFunc(fn);}}this.each(function(){// For each initialisation we want to give it a clean initialisation\n// object that can be bashed around\nvar o={};var oInit=len>1?// optimisation for single table case\n_fnExtend(o,options,true):options;/*global oInit,_that,emptyInit*/var i=0,iLen,j,jLen,k,kLen;var sId=this.getAttribute('id');var bInitHandedOff=false;var defaults=DataTable.defaults;var $this=$(this);/* Sanity check */if(this.nodeName.toLowerCase()!='table'){_fnLog(null,0,'Non-table node initialisation ('+this.nodeName+')',2);return;}/* Backwards compatibility for the defaults */_fnCompatOpts(defaults);_fnCompatCols(defaults.column);/* Convert the camel-case defaults to Hungarian */_fnCamelToHungarian(defaults,defaults,true);_fnCamelToHungarian(defaults.column,defaults.column,true);/* Setting up the initialisation object */_fnCamelToHungarian(defaults,$.extend(oInit,$this.data()));/* Check to see if we are re-initialising a table */var allSettings=DataTable.settings;for(i=0,iLen=allSettings.length;i<iLen;i++){var s=allSettings[i];/* Base check on table node */if(s.nTable==this||s.nTHead&&s.nTHead.parentNode==this||s.nTFoot&&s.nTFoot.parentNode==this){var bRetrieve=oInit.bRetrieve!==undefined?oInit.bRetrieve:defaults.bRetrieve;var bDestroy=oInit.bDestroy!==undefined?oInit.bDestroy:defaults.bDestroy;if(emptyInit||bRetrieve){return s.oInstance;}else if(bDestroy){s.oInstance.fnDestroy();break;}else{_fnLog(s,0,'Cannot reinitialise DataTable',3);return;}}/* If the element we are initialising has the same ID as a table which was previously\r\n\t\t\t\t * initialised, but the table nodes don't match (from before) then we destroy the old\r\n\t\t\t\t * instance by simply deleting it. This is under the assumption that the table has been\r\n\t\t\t\t * destroyed by other methods. Anyone using non-id selectors will need to do this manually\r\n\t\t\t\t */if(s.sTableId==this.id){allSettings.splice(i,1);break;}}/* Ensure the table has an ID - required for accessibility */if(sId===null||sId===\"\"){sId=\"DataTables_Table_\"+DataTable.ext._unique++;this.id=sId;}/* Create the settings object for this table and set some of the default parameters */var oSettings=$.extend(true,{},DataTable.models.oSettings,{\"sDestroyWidth\":$this[0].style.width,\"sInstance\":sId,\"sTableId\":sId});oSettings.nTable=this;oSettings.oApi=_that.internal;oSettings.oInit=oInit;allSettings.push(oSettings);// Need to add the instance after the instance after the settings object has been added\n// to the settings array, so we can self reference the table instance if more than one\noSettings.oInstance=_that.length===1?_that:$this.dataTable();// Backwards compatibility, before we apply all the defaults\n_fnCompatOpts(oInit);_fnLanguageCompat(oInit.oLanguage);// If the length menu is given, but the init display length is not, use the length menu\nif(oInit.aLengthMenu&&!oInit.iDisplayLength){oInit.iDisplayLength=$.isArray(oInit.aLengthMenu[0])?oInit.aLengthMenu[0][0]:oInit.aLengthMenu[0];}// Apply the defaults and init options to make a single init object will all\n// options defined from defaults and instance options.\noInit=_fnExtend($.extend(true,{},defaults),oInit);// Map the initialisation options onto the settings object\n_fnMap(oSettings.oFeatures,oInit,[\"bPaginate\",\"bLengthChange\",\"bFilter\",\"bSort\",\"bSortMulti\",\"bInfo\",\"bProcessing\",\"bAutoWidth\",\"bSortClasses\",\"bServerSide\",\"bDeferRender\"]);_fnMap(oSettings,oInit,[\"asStripeClasses\",\"ajax\",\"fnServerData\",\"fnFormatNumber\",\"sServerMethod\",\"aaSorting\",\"aaSortingFixed\",\"aLengthMenu\",\"sPaginationType\",\"sAjaxSource\",\"sAjaxDataProp\",\"iStateDuration\",\"sDom\",\"bSortCellsTop\",\"iTabIndex\",\"fnStateLoadCallback\",\"fnStateSaveCallback\",\"renderer\",\"searchDelay\",\"rowId\",[\"iCookieDuration\",\"iStateDuration\"],// backwards compat\n[\"oSearch\",\"oPreviousSearch\"],[\"aoSearchCols\",\"aoPreSearchCols\"],[\"iDisplayLength\",\"_iDisplayLength\"]]);_fnMap(oSettings.oScroll,oInit,[[\"sScrollX\",\"sX\"],[\"sScrollXInner\",\"sXInner\"],[\"sScrollY\",\"sY\"],[\"bScrollCollapse\",\"bCollapse\"]]);_fnMap(oSettings.oLanguage,oInit,\"fnInfoCallback\");/* Callback functions which are array driven */_fnCallbackReg(oSettings,'aoDrawCallback',oInit.fnDrawCallback,'user');_fnCallbackReg(oSettings,'aoServerParams',oInit.fnServerParams,'user');_fnCallbackReg(oSettings,'aoStateSaveParams',oInit.fnStateSaveParams,'user');_fnCallbackReg(oSettings,'aoStateLoadParams',oInit.fnStateLoadParams,'user');_fnCallbackReg(oSettings,'aoStateLoaded',oInit.fnStateLoaded,'user');_fnCallbackReg(oSettings,'aoRowCallback',oInit.fnRowCallback,'user');_fnCallbackReg(oSettings,'aoRowCreatedCallback',oInit.fnCreatedRow,'user');_fnCallbackReg(oSettings,'aoHeaderCallback',oInit.fnHeaderCallback,'user');_fnCallbackReg(oSettings,'aoFooterCallback',oInit.fnFooterCallback,'user');_fnCallbackReg(oSettings,'aoInitComplete',oInit.fnInitComplete,'user');_fnCallbackReg(oSettings,'aoPreDrawCallback',oInit.fnPreDrawCallback,'user');oSettings.rowIdFn=_fnGetObjectDataFn(oInit.rowId);/* Browser support detection */_fnBrowserDetect(oSettings);var oClasses=oSettings.oClasses;$.extend(oClasses,DataTable.ext.classes,oInit.oClasses);$this.addClass(oClasses.sTable);if(oSettings.iInitDisplayStart===undefined){/* Display start point, taking into account the save saving */oSettings.iInitDisplayStart=oInit.iDisplayStart;oSettings._iDisplayStart=oInit.iDisplayStart;}if(oInit.iDeferLoading!==null){oSettings.bDeferLoading=true;var tmp=$.isArray(oInit.iDeferLoading);oSettings._iRecordsDisplay=tmp?oInit.iDeferLoading[0]:oInit.iDeferLoading;oSettings._iRecordsTotal=tmp?oInit.iDeferLoading[1]:oInit.iDeferLoading;}/* Language definitions */var oLanguage=oSettings.oLanguage;$.extend(true,oLanguage,oInit.oLanguage);if(oLanguage.sUrl){/* Get the language definitions from a file - because this Ajax call makes the language\r\n\t\t\t\t * get async to the remainder of this function we use bInitHandedOff to indicate that\r\n\t\t\t\t * _fnInitialise will be fired by the returned Ajax handler, rather than the constructor\r\n\t\t\t\t */$.ajax({dataType:'json',url:oLanguage.sUrl,success:function(json){_fnLanguageCompat(json);_fnCamelToHungarian(defaults.oLanguage,json);$.extend(true,oLanguage,json);_fnInitialise(oSettings);},error:function(){// Error occurred loading language file, continue on as best we can\n_fnInitialise(oSettings);}});bInitHandedOff=true;}/*\r\n\t\t\t * Stripes\r\n\t\t\t */if(oInit.asStripeClasses===null){oSettings.asStripeClasses=[oClasses.sStripeOdd,oClasses.sStripeEven];}/* Remove row stripe classes if they are already on the table row */var stripeClasses=oSettings.asStripeClasses;var rowOne=$this.children('tbody').find('tr').eq(0);if($.inArray(true,$.map(stripeClasses,function(el,i){return rowOne.hasClass(el);}))!==-1){$('tbody tr',this).removeClass(stripeClasses.join(' '));oSettings.asDestroyStripes=stripeClasses.slice();}/*\r\n\t\t\t * Columns\r\n\t\t\t * See if we should load columns automatically or use defined ones\r\n\t\t\t */var anThs=[];var aoColumnsInit;var nThead=this.getElementsByTagName('thead');if(nThead.length!==0){_fnDetectHeader(oSettings.aoHeader,nThead[0]);anThs=_fnGetUniqueThs(oSettings);}/* If not given a column array, generate one with nulls */if(oInit.aoColumns===null){aoColumnsInit=[];for(i=0,iLen=anThs.length;i<iLen;i++){aoColumnsInit.push(null);}}else{aoColumnsInit=oInit.aoColumns;}/* Add the columns */for(i=0,iLen=aoColumnsInit.length;i<iLen;i++){_fnAddColumn(oSettings,anThs?anThs[i]:null);}/* Apply the column definitions */_fnApplyColumnDefs(oSettings,oInit.aoColumnDefs,aoColumnsInit,function(iCol,oDef){_fnColumnOptions(oSettings,iCol,oDef);});/* HTML5 attribute detection - build an mData object automatically if the\r\n\t\t\t * attributes are found\r\n\t\t\t */if(rowOne.length){var a=function(cell,name){return cell.getAttribute('data-'+name)!==null?name:null;};$(rowOne[0]).children('th, td').each(function(i,cell){var col=oSettings.aoColumns[i];if(col.mData===i){var sort=a(cell,'sort')||a(cell,'order');var filter=a(cell,'filter')||a(cell,'search');if(sort!==null||filter!==null){col.mData={_:i+'.display',sort:sort!==null?i+'.@data-'+sort:undefined,type:sort!==null?i+'.@data-'+sort:undefined,filter:filter!==null?i+'.@data-'+filter:undefined};_fnColumnOptions(oSettings,i);}}});}var features=oSettings.oFeatures;var loadedInit=function(){/*\r\n\t\t\t\t * Sorting\r\n\t\t\t\t * @todo For modularisation (1.11) this needs to do into a sort start up handler\r\n\t\t\t\t */ // If aaSorting is not defined, then we use the first indicator in asSorting\n// in case that has been altered, so the default sort reflects that option\nif(oInit.aaSorting===undefined){var sorting=oSettings.aaSorting;for(i=0,iLen=sorting.length;i<iLen;i++){sorting[i][1]=oSettings.aoColumns[i].asSorting[0];}}/* Do a first pass on the sorting classes (allows any size changes to be taken into\r\n\t\t\t\t * account, and also will apply sorting disabled classes if disabled\r\n\t\t\t\t */_fnSortingClasses(oSettings);if(features.bSort){_fnCallbackReg(oSettings,'aoDrawCallback',function(){if(oSettings.bSorted){var aSort=_fnSortFlatten(oSettings);var sortedColumns={};$.each(aSort,function(i,val){sortedColumns[val.src]=val.dir;});_fnCallbackFire(oSettings,null,'order',[oSettings,aSort,sortedColumns]);_fnSortAria(oSettings);}});}_fnCallbackReg(oSettings,'aoDrawCallback',function(){if(oSettings.bSorted||_fnDataSource(oSettings)==='ssp'||features.bDeferRender){_fnSortingClasses(oSettings);}},'sc');/*\r\n\t\t\t\t * Final init\r\n\t\t\t\t * Cache the header, body and footer as required, creating them if needed\r\n\t\t\t\t */ // Work around for Webkit bug 83867 - store the caption-side before removing from doc\nvar captions=$this.children('caption').each(function(){this._captionSide=$(this).css('caption-side');});var thead=$this.children('thead');if(thead.length===0){thead=$('<thead/>').appendTo($this);}oSettings.nTHead=thead[0];var tbody=$this.children('tbody');if(tbody.length===0){tbody=$('<tbody/>').appendTo($this);}oSettings.nTBody=tbody[0];var tfoot=$this.children('tfoot');if(tfoot.length===0&&captions.length>0&&(oSettings.oScroll.sX!==\"\"||oSettings.oScroll.sY!==\"\")){// If we are a scrolling table, and no footer has been given, then we need to create\n// a tfoot element for the caption element to be appended to\ntfoot=$('<tfoot/>').appendTo($this);}if(tfoot.length===0||tfoot.children().length===0){$this.addClass(oClasses.sNoFooter);}else if(tfoot.length>0){oSettings.nTFoot=tfoot[0];_fnDetectHeader(oSettings.aoFooter,oSettings.nTFoot);}/* Check if there is data passing into the constructor */if(oInit.aaData){for(i=0;i<oInit.aaData.length;i++){_fnAddData(oSettings,oInit.aaData[i]);}}else if(oSettings.bDeferLoading||_fnDataSource(oSettings)=='dom'){/* Grab the data from the page - only do this when deferred loading or no Ajax\r\n\t\t\t\t\t * source since there is no point in reading the DOM data if we are then going\r\n\t\t\t\t\t * to replace it with Ajax data\r\n\t\t\t\t\t */_fnAddTr(oSettings,$(oSettings.nTBody).children('tr'));}/* Copy the data index array */oSettings.aiDisplay=oSettings.aiDisplayMaster.slice();/* Initialisation complete - table can be drawn */oSettings.bInitialised=true;/* Check if we need to initialise the table (it might not have been handed off to the\r\n\t\t\t\t * language processor)\r\n\t\t\t\t */if(bInitHandedOff===false){_fnInitialise(oSettings);}};/* Must be done after everything which can be overridden by the state saving! */if(oInit.bStateSave){features.bStateSave=true;_fnCallbackReg(oSettings,'aoDrawCallback',_fnSaveState,'state_save');_fnLoadState(oSettings,oInit,loadedInit);}else{loadedInit();}});_that=null;return this;};/*\r\n\t * It is useful to have variables which are scoped locally so only the\r\n\t * DataTables functions can access them and they don't leak into global space.\r\n\t * At the same time these functions are often useful over multiple files in the\r\n\t * core and API, so we list, or at least document, all variables which are used\r\n\t * by DataTables as private variables here. This also ensures that there is no\r\n\t * clashing of variable names and that they can easily referenced for reuse.\r\n\t */ // Defined else where\n//  _selector_run\n//  _selector_opts\n//  _selector_first\n//  _selector_row_indexes\nvar _ext;// DataTable.ext\nvar _Api;// DataTable.Api\nvar _api_register;// DataTable.Api.register\nvar _api_registerPlural;// DataTable.Api.registerPlural\nvar _re_dic={};var _re_new_lines=/[\\r\\n]/g;var _re_html=/<.*?>/g;// This is not strict ISO8601 - Date.parse() is quite lax, although\n// implementations differ between browsers.\nvar _re_date=/^\\d{2,4}[\\.\\/\\-]\\d{1,2}[\\.\\/\\-]\\d{1,2}([T ]{1}\\d{1,2}[:\\.]\\d{2}([\\.:]\\d{2})?)?$/;// Escape regular expression special characters\nvar _re_escape_regex=new RegExp('(\\\\'+['/','.','*','+','?','|','(',')','[',']','{','}','\\\\','$','^','-'].join('|\\\\')+')','g');// http://en.wikipedia.org/wiki/Foreign_exchange_market\n// - \\u20BD - Russian ruble.\n// - \\u20a9 - South Korean Won\n// - \\u20BA - Turkish Lira\n// - \\u20B9 - Indian Rupee\n// - R - Brazil (R$) and South Africa\n// - fr - Swiss Franc\n// - kr - Swedish krona, Norwegian krone and Danish krone\n// - \\u2009 is thin space and \\u202F is narrow no-break space, both used in many\n// - Ƀ - Bitcoin\n// - Ξ - Ethereum\n//   standards as thousands separators.\nvar _re_formatted_numeric=/[',$£€¥%\\u2009\\u202F\\u20BD\\u20a9\\u20BArfkɃΞ]/gi;var _empty=function(d){return!d||d===true||d==='-'?true:false;};var _intVal=function(s){var integer=parseInt(s,10);return!isNaN(integer)&&isFinite(s)?integer:null;};// Convert from a formatted number with characters other than `.` as the\n// decimal place, to a Javascript number\nvar _numToDecimal=function(num,decimalPoint){// Cache created regular expressions for speed as this function is called often\nif(!_re_dic[decimalPoint]){_re_dic[decimalPoint]=new RegExp(_fnEscapeRegex(decimalPoint),'g');}return typeof num==='string'&&decimalPoint!=='.'?num.replace(/\\./g,'').replace(_re_dic[decimalPoint],'.'):num;};var _isNumber=function(d,decimalPoint,formatted){var strType=typeof d==='string';// If empty return immediately so there must be a number if it is a\n// formatted string (this stops the string \"k\", or \"kr\", etc being detected\n// as a formatted number for currency\nif(_empty(d)){return true;}if(decimalPoint&&strType){d=_numToDecimal(d,decimalPoint);}if(formatted&&strType){d=d.replace(_re_formatted_numeric,'');}return!isNaN(parseFloat(d))&&isFinite(d);};// A string without HTML in it can be considered to be HTML still\nvar _isHtml=function(d){return _empty(d)||typeof d==='string';};var _htmlNumeric=function(d,decimalPoint,formatted){if(_empty(d)){return true;}var html=_isHtml(d);return!html?null:_isNumber(_stripHtml(d),decimalPoint,formatted)?true:null;};var _pluck=function(a,prop,prop2){var out=[];var i=0,ien=a.length;// Could have the test in the loop for slightly smaller code, but speed\n// is essential here\nif(prop2!==undefined){for(;i<ien;i++){if(a[i]&&a[i][prop]){out.push(a[i][prop][prop2]);}}}else{for(;i<ien;i++){if(a[i]){out.push(a[i][prop]);}}}return out;};// Basically the same as _pluck, but rather than looping over `a` we use `order`\n// as the indexes to pick from `a`\nvar _pluck_order=function(a,order,prop,prop2){var out=[];var i=0,ien=order.length;// Could have the test in the loop for slightly smaller code, but speed\n// is essential here\nif(prop2!==undefined){for(;i<ien;i++){if(a[order[i]][prop]){out.push(a[order[i]][prop][prop2]);}}}else{for(;i<ien;i++){out.push(a[order[i]][prop]);}}return out;};var _range=function(len,start){var out=[];var end;if(start===undefined){start=0;end=len;}else{end=start;start=len;}for(var i=start;i<end;i++){out.push(i);}return out;};var _removeEmpty=function(a){var out=[];for(var i=0,ien=a.length;i<ien;i++){if(a[i]){// careful - will remove all falsy values!\nout.push(a[i]);}}return out;};var _stripHtml=function(d){return d.replace(_re_html,'');};/**\r\n\t * Determine if all values in the array are unique. This means we can short\r\n\t * cut the _unique method at the cost of a single loop. A sorted array is used\r\n\t * to easily check the values.\r\n\t *\r\n\t * @param  {array} src Source array\r\n\t * @return {boolean} true if all unique, false otherwise\r\n\t * @ignore\r\n\t */var _areAllUnique=function(src){if(src.length<2){return true;}var sorted=src.slice().sort();var last=sorted[0];for(var i=1,ien=sorted.length;i<ien;i++){if(sorted[i]===last){return false;}last=sorted[i];}return true;};/**\r\n\t * Find the unique elements in a source array.\r\n\t *\r\n\t * @param  {array} src Source array\r\n\t * @return {array} Array of unique items\r\n\t * @ignore\r\n\t */var _unique=function(src){if(_areAllUnique(src)){return src.slice();}// A faster unique method is to use object keys to identify used values,\n// but this doesn't work with arrays or objects, which we must also\n// consider. See jsperf.com/compare-array-unique-versions/4 for more\n// information.\nvar out=[],val,i,ien=src.length,j,k=0;again:for(i=0;i<ien;i++){val=src[i];for(j=0;j<k;j++){if(out[j]===val){continue again;}}out.push(val);k++;}return out;};/**\r\n\t * DataTables utility methods\r\n\t * \r\n\t * This namespace provides helper methods that DataTables uses internally to\r\n\t * create a DataTable, but which are not exclusively used only for DataTables.\r\n\t * These methods can be used by extension authors to save the duplication of\r\n\t * code.\r\n\t *\r\n\t *  @namespace\r\n\t */DataTable.util={/**\r\n\t\t * Throttle the calls to a function. Arguments and context are maintained\r\n\t\t * for the throttled function.\r\n\t\t *\r\n\t\t * @param {function} fn Function to be called\r\n\t\t * @param {integer} freq Call frequency in mS\r\n\t\t * @return {function} Wrapped function\r\n\t\t */throttle:function(fn,freq){var frequency=freq!==undefined?freq:200,last,timer;return function(){var that=this,now=+new Date(),args=arguments;if(last&&now<last+frequency){clearTimeout(timer);timer=setTimeout(function(){last=undefined;fn.apply(that,args);},frequency);}else{last=now;fn.apply(that,args);}};},/**\r\n\t\t * Escape a string such that it can be used in a regular expression\r\n\t\t *\r\n\t\t *  @param {string} val string to escape\r\n\t\t *  @returns {string} escaped string\r\n\t\t */escapeRegex:function(val){return val.replace(_re_escape_regex,'\\\\$1');}};/**\r\n\t * Create a mapping object that allows camel case parameters to be looked up\r\n\t * for their Hungarian counterparts. The mapping is stored in a private\r\n\t * parameter called `_hungarianMap` which can be accessed on the source object.\r\n\t *  @param {object} o\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnHungarianMap(o){var hungarian='a aa ai ao as b fn i m o s ',match,newKey,map={};$.each(o,function(key,val){match=key.match(/^([^A-Z]+?)([A-Z])/);if(match&&hungarian.indexOf(match[1]+' ')!==-1){newKey=key.replace(match[0],match[2].toLowerCase());map[newKey]=key;if(match[1]==='o'){_fnHungarianMap(o[key]);}}});o._hungarianMap=map;}/**\r\n\t * Convert from camel case parameters to Hungarian, based on a Hungarian map\r\n\t * created by _fnHungarianMap.\r\n\t *  @param {object} src The model object which holds all parameters that can be\r\n\t *    mapped.\r\n\t *  @param {object} user The object to convert from camel case to Hungarian.\r\n\t *  @param {boolean} force When set to `true`, properties which already have a\r\n\t *    Hungarian value in the `user` object will be overwritten. Otherwise they\r\n\t *    won't be.\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnCamelToHungarian(src,user,force){if(!src._hungarianMap){_fnHungarianMap(src);}var hungarianKey;$.each(user,function(key,val){hungarianKey=src._hungarianMap[key];if(hungarianKey!==undefined&&(force||user[hungarianKey]===undefined)){// For objects, we need to buzz down into the object to copy parameters\nif(hungarianKey.charAt(0)==='o'){// Copy the camelCase options over to the hungarian\nif(!user[hungarianKey]){user[hungarianKey]={};}$.extend(true,user[hungarianKey],user[key]);_fnCamelToHungarian(src[hungarianKey],user[hungarianKey],force);}else{user[hungarianKey]=user[key];}}});}/**\r\n\t * Language compatibility - when certain options are given, and others aren't, we\r\n\t * need to duplicate the values over, in order to provide backwards compatibility\r\n\t * with older language files.\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnLanguageCompat(lang){// Note the use of the Hungarian notation for the parameters in this method as\n// this is called after the mapping of camelCase to Hungarian\nvar defaults=DataTable.defaults.oLanguage;// Default mapping\nvar defaultDecimal=defaults.sDecimal;if(defaultDecimal){_addNumericSort(defaultDecimal);}if(lang){var zeroRecords=lang.sZeroRecords;// Backwards compatibility - if there is no sEmptyTable given, then use the same as\n// sZeroRecords - assuming that is given.\nif(!lang.sEmptyTable&&zeroRecords&&defaults.sEmptyTable===\"No data available in table\"){_fnMap(lang,lang,'sZeroRecords','sEmptyTable');}// Likewise with loading records\nif(!lang.sLoadingRecords&&zeroRecords&&defaults.sLoadingRecords===\"Loading...\"){_fnMap(lang,lang,'sZeroRecords','sLoadingRecords');}// Old parameter name of the thousands separator mapped onto the new\nif(lang.sInfoThousands){lang.sThousands=lang.sInfoThousands;}var decimal=lang.sDecimal;if(decimal&&defaultDecimal!==decimal){_addNumericSort(decimal);}}}/**\r\n\t * Map one parameter onto another\r\n\t *  @param {object} o Object to map\r\n\t *  @param {*} knew The new parameter name\r\n\t *  @param {*} old The old parameter name\r\n\t */var _fnCompatMap=function(o,knew,old){if(o[knew]!==undefined){o[old]=o[knew];}};/**\r\n\t * Provide backwards compatibility for the main DT options. Note that the new\r\n\t * options are mapped onto the old parameters, so this is an external interface\r\n\t * change only.\r\n\t *  @param {object} init Object to map\r\n\t */function _fnCompatOpts(init){_fnCompatMap(init,'ordering','bSort');_fnCompatMap(init,'orderMulti','bSortMulti');_fnCompatMap(init,'orderClasses','bSortClasses');_fnCompatMap(init,'orderCellsTop','bSortCellsTop');_fnCompatMap(init,'order','aaSorting');_fnCompatMap(init,'orderFixed','aaSortingFixed');_fnCompatMap(init,'paging','bPaginate');_fnCompatMap(init,'pagingType','sPaginationType');_fnCompatMap(init,'pageLength','iDisplayLength');_fnCompatMap(init,'searching','bFilter');// Boolean initialisation of x-scrolling\nif(typeof init.sScrollX==='boolean'){init.sScrollX=init.sScrollX?'100%':'';}if(typeof init.scrollX==='boolean'){init.scrollX=init.scrollX?'100%':'';}// Column search objects are in an array, so it needs to be converted\n// element by element\nvar searchCols=init.aoSearchCols;if(searchCols){for(var i=0,ien=searchCols.length;i<ien;i++){if(searchCols[i]){_fnCamelToHungarian(DataTable.models.oSearch,searchCols[i]);}}}}/**\r\n\t * Provide backwards compatibility for column options. Note that the new options\r\n\t * are mapped onto the old parameters, so this is an external interface change\r\n\t * only.\r\n\t *  @param {object} init Object to map\r\n\t */function _fnCompatCols(init){_fnCompatMap(init,'orderable','bSortable');_fnCompatMap(init,'orderData','aDataSort');_fnCompatMap(init,'orderSequence','asSorting');_fnCompatMap(init,'orderDataType','sortDataType');// orderData can be given as an integer\nvar dataSort=init.aDataSort;if(typeof dataSort==='number'&&!$.isArray(dataSort)){init.aDataSort=[dataSort];}}/**\r\n\t * Browser feature detection for capabilities, quirks\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnBrowserDetect(settings){// We don't need to do this every time DataTables is constructed, the values\n// calculated are specific to the browser and OS configuration which we\n// don't expect to change between initialisations\nif(!DataTable.__browser){var browser={};DataTable.__browser=browser;// Scrolling feature / quirks detection\nvar n=$('<div/>').css({position:'fixed',top:0,left:$(window).scrollLeft()*-1,// allow for scrolling\nheight:1,width:1,overflow:'hidden'}).append($('<div/>').css({position:'absolute',top:1,left:1,width:100,overflow:'scroll'}).append($('<div/>').css({width:'100%',height:10}))).appendTo('body');var outer=n.children();var inner=outer.children();// Numbers below, in order, are:\n// inner.offsetWidth, inner.clientWidth, outer.offsetWidth, outer.clientWidth\n//\n// IE6 XP:                           100 100 100  83\n// IE7 Vista:                        100 100 100  83\n// IE 8+ Windows:                     83  83 100  83\n// Evergreen Windows:                 83  83 100  83\n// Evergreen Mac with scrollbars:     85  85 100  85\n// Evergreen Mac without scrollbars: 100 100 100 100\n// Get scrollbar width\nbrowser.barWidth=outer[0].offsetWidth-outer[0].clientWidth;// IE6/7 will oversize a width 100% element inside a scrolling element, to\n// include the width of the scrollbar, while other browsers ensure the inner\n// element is contained without forcing scrolling\nbrowser.bScrollOversize=inner[0].offsetWidth===100&&outer[0].clientWidth!==100;// In rtl text layout, some browsers (most, but not all) will place the\n// scrollbar on the left, rather than the right.\nbrowser.bScrollbarLeft=Math.round(inner.offset().left)!==1;// IE8- don't provide height and width for getBoundingClientRect\nbrowser.bBounding=n[0].getBoundingClientRect().width?true:false;n.remove();}$.extend(settings.oBrowser,DataTable.__browser);settings.oScroll.iBarWidth=DataTable.__browser.barWidth;}/**\r\n\t * Array.prototype reduce[Right] method, used for browsers which don't support\r\n\t * JS 1.6. Done this way to reduce code size, since we iterate either way\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnReduce(that,fn,init,start,end,inc){var i=start,value,isSet=false;if(init!==undefined){value=init;isSet=true;}while(i!==end){if(!that.hasOwnProperty(i)){continue;}value=isSet?fn(value,that[i],i,that):that[i];isSet=true;i+=inc;}return value;}/**\r\n\t * Add a column to the list used for the table with default values\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {node} nTh The th element for this column\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnAddColumn(oSettings,nTh){// Add column to aoColumns array\nvar oDefaults=DataTable.defaults.column;var iCol=oSettings.aoColumns.length;var oCol=$.extend({},DataTable.models.oColumn,oDefaults,{\"nTh\":nTh?nTh:document.createElement('th'),\"sTitle\":oDefaults.sTitle?oDefaults.sTitle:nTh?nTh.innerHTML:'',\"aDataSort\":oDefaults.aDataSort?oDefaults.aDataSort:[iCol],\"mData\":oDefaults.mData?oDefaults.mData:iCol,idx:iCol});oSettings.aoColumns.push(oCol);// Add search object for column specific search. Note that the `searchCols[ iCol ]`\n// passed into extend can be undefined. This allows the user to give a default\n// with only some of the parameters defined, and also not give a default\nvar searchCols=oSettings.aoPreSearchCols;searchCols[iCol]=$.extend({},DataTable.models.oSearch,searchCols[iCol]);// Use the default column options function to initialise classes etc\n_fnColumnOptions(oSettings,iCol,$(nTh).data());}/**\r\n\t * Apply options for a column\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {int} iCol column index to consider\r\n\t *  @param {object} oOptions object with sType, bVisible and bSearchable etc\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnColumnOptions(oSettings,iCol,oOptions){var oCol=oSettings.aoColumns[iCol];var oClasses=oSettings.oClasses;var th=$(oCol.nTh);// Try to get width information from the DOM. We can't get it from CSS\n// as we'd need to parse the CSS stylesheet. `width` option can override\nif(!oCol.sWidthOrig){// Width attribute\noCol.sWidthOrig=th.attr('width')||null;// Style attribute\nvar t=(th.attr('style')||'').match(/width:\\s*(\\d+[pxem%]+)/);if(t){oCol.sWidthOrig=t[1];}}/* User specified column options */if(oOptions!==undefined&&oOptions!==null){// Backwards compatibility\n_fnCompatCols(oOptions);// Map camel case parameters to their Hungarian counterparts\n_fnCamelToHungarian(DataTable.defaults.column,oOptions);/* Backwards compatibility for mDataProp */if(oOptions.mDataProp!==undefined&&!oOptions.mData){oOptions.mData=oOptions.mDataProp;}if(oOptions.sType){oCol._sManualType=oOptions.sType;}// `class` is a reserved word in Javascript, so we need to provide\n// the ability to use a valid name for the camel case input\nif(oOptions.className&&!oOptions.sClass){oOptions.sClass=oOptions.className;}if(oOptions.sClass){th.addClass(oOptions.sClass);}$.extend(oCol,oOptions);_fnMap(oCol,oOptions,\"sWidth\",\"sWidthOrig\");/* iDataSort to be applied (backwards compatibility), but aDataSort will take\r\n\t\t\t * priority if defined\r\n\t\t\t */if(oOptions.iDataSort!==undefined){oCol.aDataSort=[oOptions.iDataSort];}_fnMap(oCol,oOptions,\"aDataSort\");}/* Cache the data get and set functions for speed */var mDataSrc=oCol.mData;var mData=_fnGetObjectDataFn(mDataSrc);var mRender=oCol.mRender?_fnGetObjectDataFn(oCol.mRender):null;var attrTest=function(src){return typeof src==='string'&&src.indexOf('@')!==-1;};oCol._bAttrSrc=$.isPlainObject(mDataSrc)&&(attrTest(mDataSrc.sort)||attrTest(mDataSrc.type)||attrTest(mDataSrc.filter));oCol._setter=null;oCol.fnGetData=function(rowData,type,meta){var innerData=mData(rowData,type,undefined,meta);return mRender&&type?mRender(innerData,type,rowData,meta):innerData;};oCol.fnSetData=function(rowData,val,meta){return _fnSetObjectDataFn(mDataSrc)(rowData,val,meta);};// Indicate if DataTables should read DOM data as an object or array\n// Used in _fnGetRowElements\nif(typeof mDataSrc!=='number'){oSettings._rowReadObject=true;}/* Feature sorting overrides column specific when off */if(!oSettings.oFeatures.bSort){oCol.bSortable=false;th.addClass(oClasses.sSortableNone);// Have to add class here as order event isn't called\n}/* Check that the class assignment is correct for sorting */var bAsc=$.inArray('asc',oCol.asSorting)!==-1;var bDesc=$.inArray('desc',oCol.asSorting)!==-1;if(!oCol.bSortable||!bAsc&&!bDesc){oCol.sSortingClass=oClasses.sSortableNone;oCol.sSortingClassJUI=\"\";}else if(bAsc&&!bDesc){oCol.sSortingClass=oClasses.sSortableAsc;oCol.sSortingClassJUI=oClasses.sSortJUIAscAllowed;}else if(!bAsc&&bDesc){oCol.sSortingClass=oClasses.sSortableDesc;oCol.sSortingClassJUI=oClasses.sSortJUIDescAllowed;}else{oCol.sSortingClass=oClasses.sSortable;oCol.sSortingClassJUI=oClasses.sSortJUI;}}/**\r\n\t * Adjust the table column widths for new data. Note: you would probably want to\r\n\t * do a redraw after calling this function!\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnAdjustColumnSizing(settings){/* Not interested in doing column width calculation if auto-width is disabled */if(settings.oFeatures.bAutoWidth!==false){var columns=settings.aoColumns;_fnCalculateColumnWidths(settings);for(var i=0,iLen=columns.length;i<iLen;i++){columns[i].nTh.style.width=columns[i].sWidth;}}var scroll=settings.oScroll;if(scroll.sY!==''||scroll.sX!==''){_fnScrollDraw(settings);}_fnCallbackFire(settings,null,'column-sizing',[settings]);}/**\r\n\t * Covert the index of a visible column to the index in the data array (take account\r\n\t * of hidden columns)\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {int} iMatch Visible column index to lookup\r\n\t *  @returns {int} i the data index\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnVisibleToColumnIndex(oSettings,iMatch){var aiVis=_fnGetColumns(oSettings,'bVisible');return typeof aiVis[iMatch]==='number'?aiVis[iMatch]:null;}/**\r\n\t * Covert the index of an index in the data array and convert it to the visible\r\n\t *   column index (take account of hidden columns)\r\n\t *  @param {int} iMatch Column index to lookup\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @returns {int} i the data index\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnColumnIndexToVisible(oSettings,iMatch){var aiVis=_fnGetColumns(oSettings,'bVisible');var iPos=$.inArray(iMatch,aiVis);return iPos!==-1?iPos:null;}/**\r\n\t * Get the number of visible columns\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @returns {int} i the number of visible columns\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnVisbleColumns(oSettings){var vis=0;// No reduce in IE8, use a loop for now\n$.each(oSettings.aoColumns,function(i,col){if(col.bVisible&&$(col.nTh).css('display')!=='none'){vis++;}});return vis;}/**\r\n\t * Get an array of column indexes that match a given property\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {string} sParam Parameter in aoColumns to look for - typically\r\n\t *    bVisible or bSearchable\r\n\t *  @returns {array} Array of indexes with matched properties\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnGetColumns(oSettings,sParam){var a=[];$.map(oSettings.aoColumns,function(val,i){if(val[sParam]){a.push(i);}});return a;}/**\r\n\t * Calculate the 'type' of a column\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnColumnTypes(settings){var columns=settings.aoColumns;var data=settings.aoData;var types=DataTable.ext.type.detect;var i,ien,j,jen,k,ken;var col,cell,detectedType,cache;// For each column, spin over the \nfor(i=0,ien=columns.length;i<ien;i++){col=columns[i];cache=[];if(!col.sType&&col._sManualType){col.sType=col._sManualType;}else if(!col.sType){for(j=0,jen=types.length;j<jen;j++){for(k=0,ken=data.length;k<ken;k++){// Use a cache array so we only need to get the type data\n// from the formatter once (when using multiple detectors)\nif(cache[k]===undefined){cache[k]=_fnGetCellData(settings,k,i,'type');}detectedType=types[j](cache[k],settings);// If null, then this type can't apply to this column, so\n// rather than testing all cells, break out. There is an\n// exception for the last type which is `html`. We need to\n// scan all rows since it is possible to mix string and HTML\n// types\nif(!detectedType&&j!==types.length-1){break;}// Only a single match is needed for html type since it is\n// bottom of the pile and very similar to string\nif(detectedType==='html'){break;}}// Type is valid for all data points in the column - use this\n// type\nif(detectedType){col.sType=detectedType;break;}}// Fall back - if no type was detected, always use string\nif(!col.sType){col.sType='string';}}}}/**\r\n\t * Take the column definitions and static columns arrays and calculate how\r\n\t * they relate to column indexes. The callback function will then apply the\r\n\t * definition found for a column to a suitable configuration object.\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {array} aoColDefs The aoColumnDefs array that is to be applied\r\n\t *  @param {array} aoCols The aoColumns array that defines columns individually\r\n\t *  @param {function} fn Callback function - takes two parameters, the calculated\r\n\t *    column index and the definition for that column.\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnApplyColumnDefs(oSettings,aoColDefs,aoCols,fn){var i,iLen,j,jLen,k,kLen,def;var columns=oSettings.aoColumns;// Column definitions with aTargets\nif(aoColDefs){/* Loop over the definitions array - loop in reverse so first instance has priority */for(i=aoColDefs.length-1;i>=0;i--){def=aoColDefs[i];/* Each definition can target multiple columns, as it is an array */var aTargets=def.targets!==undefined?def.targets:def.aTargets;if(!$.isArray(aTargets)){aTargets=[aTargets];}for(j=0,jLen=aTargets.length;j<jLen;j++){if(typeof aTargets[j]==='number'&&aTargets[j]>=0){/* Add columns that we don't yet know about */while(columns.length<=aTargets[j]){_fnAddColumn(oSettings);}/* Integer, basic index */fn(aTargets[j],def);}else if(typeof aTargets[j]==='number'&&aTargets[j]<0){/* Negative integer, right to left column counting */fn(columns.length+aTargets[j],def);}else if(typeof aTargets[j]==='string'){/* Class name matching on TH element */for(k=0,kLen=columns.length;k<kLen;k++){if(aTargets[j]==\"_all\"||$(columns[k].nTh).hasClass(aTargets[j])){fn(k,def);}}}}}}// Statically defined columns array\nif(aoCols){for(i=0,iLen=aoCols.length;i<iLen;i++){fn(i,aoCols[i]);}}}/**\r\n\t * Add a data array to the table, creating DOM node etc. This is the parallel to\r\n\t * _fnGatherData, but for adding rows from a Javascript source, rather than a\r\n\t * DOM source.\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {array} aData data array to be added\r\n\t *  @param {node} [nTr] TR element to add to the table - optional. If not given,\r\n\t *    DataTables will create a row automatically\r\n\t *  @param {array} [anTds] Array of TD|TH elements for the row - must be given\r\n\t *    if nTr is.\r\n\t *  @returns {int} >=0 if successful (index of new aoData entry), -1 if failed\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnAddData(oSettings,aDataIn,nTr,anTds){/* Create the object for storing information about this new row */var iRow=oSettings.aoData.length;var oData=$.extend(true,{},DataTable.models.oRow,{src:nTr?'dom':'data',idx:iRow});oData._aData=aDataIn;oSettings.aoData.push(oData);/* Create the cells */var nTd,sThisType;var columns=oSettings.aoColumns;// Invalidate the column types as the new data needs to be revalidated\nfor(var i=0,iLen=columns.length;i<iLen;i++){columns[i].sType=null;}/* Add to the display array */oSettings.aiDisplayMaster.push(iRow);var id=oSettings.rowIdFn(aDataIn);if(id!==undefined){oSettings.aIds[id]=oData;}/* Create the DOM information, or register it if already present */if(nTr||!oSettings.oFeatures.bDeferRender){_fnCreateTr(oSettings,iRow,nTr,anTds);}return iRow;}/**\r\n\t * Add one or more TR elements to the table. Generally we'd expect to\r\n\t * use this for reading data from a DOM sourced table, but it could be\r\n\t * used for an TR element. Note that if a TR is given, it is used (i.e.\r\n\t * it is not cloned).\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {array|node|jQuery} trs The TR element(s) to add to the table\r\n\t *  @returns {array} Array of indexes for the added rows\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnAddTr(settings,trs){var row;// Allow an individual node to be passed in\nif(!(trs instanceof $)){trs=$(trs);}return trs.map(function(i,el){row=_fnGetRowElements(settings,el);return _fnAddData(settings,row.data,el,row.cells);});}/**\r\n\t * Take a TR element and convert it to an index in aoData\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {node} n the TR element to find\r\n\t *  @returns {int} index if the node is found, null if not\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnNodeToDataIndex(oSettings,n){return n._DT_RowIndex!==undefined?n._DT_RowIndex:null;}/**\r\n\t * Take a TD element and convert it into a column data index (not the visible index)\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {int} iRow The row number the TD/TH can be found in\r\n\t *  @param {node} n The TD/TH element to find\r\n\t *  @returns {int} index if the node is found, -1 if not\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnNodeToColumnIndex(oSettings,iRow,n){return $.inArray(n,oSettings.aoData[iRow].anCells);}/**\r\n\t * Get the data for a given cell from the internal cache, taking into account data mapping\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {int} rowIdx aoData row id\r\n\t *  @param {int} colIdx Column index\r\n\t *  @param {string} type data get type ('display', 'type' 'filter' 'sort')\r\n\t *  @returns {*} Cell data\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnGetCellData(settings,rowIdx,colIdx,type){var draw=settings.iDraw;var col=settings.aoColumns[colIdx];var rowData=settings.aoData[rowIdx]._aData;var defaultContent=col.sDefaultContent;var cellData=col.fnGetData(rowData,type,{settings:settings,row:rowIdx,col:colIdx});if(cellData===undefined){if(settings.iDrawError!=draw&&defaultContent===null){_fnLog(settings,0,\"Requested unknown parameter \"+(typeof col.mData=='function'?'{function}':\"'\"+col.mData+\"'\")+\" for row \"+rowIdx+\", column \"+colIdx,4);settings.iDrawError=draw;}return defaultContent;}// When the data source is null and a specific data type is requested (i.e.\n// not the original data), we can use default column data\nif((cellData===rowData||cellData===null)&&defaultContent!==null&&type!==undefined){cellData=defaultContent;}else if(typeof cellData==='function'){// If the data source is a function, then we run it and use the return,\n// executing in the scope of the data object (for instances)\nreturn cellData.call(rowData);}if(cellData===null&&type=='display'){return'';}return cellData;}/**\r\n\t * Set the value for a specific cell, into the internal data cache\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {int} rowIdx aoData row id\r\n\t *  @param {int} colIdx Column index\r\n\t *  @param {*} val Value to set\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnSetCellData(settings,rowIdx,colIdx,val){var col=settings.aoColumns[colIdx];var rowData=settings.aoData[rowIdx]._aData;col.fnSetData(rowData,val,{settings:settings,row:rowIdx,col:colIdx});}// Private variable that is used to match action syntax in the data property object\nvar __reArray=/\\[.*?\\]$/;var __reFn=/\\(\\)$/;/**\r\n\t * Split string on periods, taking into account escaped periods\r\n\t * @param  {string} str String to split\r\n\t * @return {array} Split string\r\n\t */function _fnSplitObjNotation(str){return $.map(str.match(/(\\\\.|[^\\.])+/g)||[''],function(s){return s.replace(/\\\\\\./g,'.');});}/**\r\n\t * Return a function that can be used to get data from a source object, taking\r\n\t * into account the ability to use nested objects as a source\r\n\t *  @param {string|int|function} mSource The data source for the object\r\n\t *  @returns {function} Data get function\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnGetObjectDataFn(mSource){if($.isPlainObject(mSource)){/* Build an object of get functions, and wrap them in a single call */var o={};$.each(mSource,function(key,val){if(val){o[key]=_fnGetObjectDataFn(val);}});return function(data,type,row,meta){var t=o[type]||o._;return t!==undefined?t(data,type,row,meta):data;};}else if(mSource===null){/* Give an empty string for rendering / sorting etc */return function(data){// type, row and meta also passed, but not used\nreturn data;};}else if(typeof mSource==='function'){return function(data,type,row,meta){return mSource(data,type,row,meta);};}else if(typeof mSource==='string'&&(mSource.indexOf('.')!==-1||mSource.indexOf('[')!==-1||mSource.indexOf('(')!==-1)){/* If there is a . in the source string then the data source is in a\r\n\t\t\t * nested object so we loop over the data for each level to get the next\r\n\t\t\t * level down. On each loop we test for undefined, and if found immediately\r\n\t\t\t * return. This allows entire objects to be missing and sDefaultContent to\r\n\t\t\t * be used if defined, rather than throwing an error\r\n\t\t\t */var fetchData=function(data,type,src){var arrayNotation,funcNotation,out,innerSrc;if(src!==\"\"){var a=_fnSplitObjNotation(src);for(var i=0,iLen=a.length;i<iLen;i++){// Check if we are dealing with special notation\narrayNotation=a[i].match(__reArray);funcNotation=a[i].match(__reFn);if(arrayNotation){// Array notation\na[i]=a[i].replace(__reArray,'');// Condition allows simply [] to be passed in\nif(a[i]!==\"\"){data=data[a[i]];}out=[];// Get the remainder of the nested object to get\na.splice(0,i+1);innerSrc=a.join('.');// Traverse each entry in the array getting the properties requested\nif($.isArray(data)){for(var j=0,jLen=data.length;j<jLen;j++){out.push(fetchData(data[j],type,innerSrc));}}// If a string is given in between the array notation indicators, that\n// is used to join the strings together, otherwise an array is returned\nvar join=arrayNotation[0].substring(1,arrayNotation[0].length-1);data=join===\"\"?out:out.join(join);// The inner call to fetchData has already traversed through the remainder\n// of the source requested, so we exit from the loop\nbreak;}else if(funcNotation){// Function call\na[i]=a[i].replace(__reFn,'');data=data[a[i]]();continue;}if(data===null||data[a[i]]===undefined){return undefined;}data=data[a[i]];}}return data;};return function(data,type){// row and meta also passed, but not used\nreturn fetchData(data,type,mSource);};}else{/* Array or flat object mapping */return function(data,type){// row and meta also passed, but not used\nreturn data[mSource];};}}/**\r\n\t * Return a function that can be used to set data from a source object, taking\r\n\t * into account the ability to use nested objects as a source\r\n\t *  @param {string|int|function} mSource The data source for the object\r\n\t *  @returns {function} Data set function\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnSetObjectDataFn(mSource){if($.isPlainObject(mSource)){/* Unlike get, only the underscore (global) option is used for for\r\n\t\t\t * setting data since we don't know the type here. This is why an object\r\n\t\t\t * option is not documented for `mData` (which is read/write), but it is\r\n\t\t\t * for `mRender` which is read only.\r\n\t\t\t */return _fnSetObjectDataFn(mSource._);}else if(mSource===null){/* Nothing to do when the data source is null */return function(){};}else if(typeof mSource==='function'){return function(data,val,meta){mSource(data,'set',val,meta);};}else if(typeof mSource==='string'&&(mSource.indexOf('.')!==-1||mSource.indexOf('[')!==-1||mSource.indexOf('(')!==-1)){/* Like the get, we need to get data from a nested object */var setData=function(data,val,src){var a=_fnSplitObjNotation(src),b;var aLast=a[a.length-1];var arrayNotation,funcNotation,o,innerSrc;for(var i=0,iLen=a.length-1;i<iLen;i++){// Check if we are dealing with an array notation request\narrayNotation=a[i].match(__reArray);funcNotation=a[i].match(__reFn);if(arrayNotation){a[i]=a[i].replace(__reArray,'');data[a[i]]=[];// Get the remainder of the nested object to set so we can recurse\nb=a.slice();b.splice(0,i+1);innerSrc=b.join('.');// Traverse each entry in the array setting the properties requested\nif($.isArray(val)){for(var j=0,jLen=val.length;j<jLen;j++){o={};setData(o,val[j],innerSrc);data[a[i]].push(o);}}else{// We've been asked to save data to an array, but it\n// isn't array data to be saved. Best that can be done\n// is to just save the value.\ndata[a[i]]=val;}// The inner call to setData has already traversed through the remainder\n// of the source and has set the data, thus we can exit here\nreturn;}else if(funcNotation){// Function call\na[i]=a[i].replace(__reFn,'');data=data[a[i]](val);}// If the nested object doesn't currently exist - since we are\n// trying to set the value - create it\nif(data[a[i]]===null||data[a[i]]===undefined){data[a[i]]={};}data=data[a[i]];}// Last item in the input - i.e, the actual set\nif(aLast.match(__reFn)){// Function call\ndata=data[aLast.replace(__reFn,'')](val);}else{// If array notation is used, we just want to strip it and use the property name\n// and assign the value. If it isn't used, then we get the result we want anyway\ndata[aLast.replace(__reArray,'')]=val;}};return function(data,val){// meta is also passed in, but not used\nreturn setData(data,val,mSource);};}else{/* Array or flat object mapping */return function(data,val){// meta is also passed in, but not used\ndata[mSource]=val;};}}/**\r\n\t * Return an array with the full table data\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @returns array {array} aData Master data array\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnGetDataMaster(settings){return _pluck(settings.aoData,'_aData');}/**\r\n\t * Nuke the table\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnClearTable(settings){settings.aoData.length=0;settings.aiDisplayMaster.length=0;settings.aiDisplay.length=0;settings.aIds={};}/**\r\n\t * Take an array of integers (index array) and remove a target integer (value - not\r\n\t * the key!)\r\n\t *  @param {array} a Index array to target\r\n\t *  @param {int} iTarget value to find\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnDeleteIndex(a,iTarget,splice){var iTargetIndex=-1;for(var i=0,iLen=a.length;i<iLen;i++){if(a[i]==iTarget){iTargetIndex=i;}else if(a[i]>iTarget){a[i]--;}}if(iTargetIndex!=-1&&splice===undefined){a.splice(iTargetIndex,1);}}/**\r\n\t * Mark cached data as invalid such that a re-read of the data will occur when\r\n\t * the cached data is next requested. Also update from the data source object.\r\n\t *\r\n\t * @param {object} settings DataTables settings object\r\n\t * @param {int}    rowIdx   Row index to invalidate\r\n\t * @param {string} [src]    Source to invalidate from: undefined, 'auto', 'dom'\r\n\t *     or 'data'\r\n\t * @param {int}    [colIdx] Column index to invalidate. If undefined the whole\r\n\t *     row will be invalidated\r\n\t * @memberof DataTable#oApi\r\n\t *\r\n\t * @todo For the modularisation of v1.11 this will need to become a callback, so\r\n\t *   the sort and filter methods can subscribe to it. That will required\r\n\t *   initialisation options for sorting, which is why it is not already baked in\r\n\t */function _fnInvalidate(settings,rowIdx,src,colIdx){var row=settings.aoData[rowIdx];var i,ien;var cellWrite=function(cell,col){// This is very frustrating, but in IE if you just write directly\n// to innerHTML, and elements that are overwritten are GC'ed,\n// even if there is a reference to them elsewhere\nwhile(cell.childNodes.length){cell.removeChild(cell.firstChild);}cell.innerHTML=_fnGetCellData(settings,rowIdx,col,'display');};// Are we reading last data from DOM or the data object?\nif(src==='dom'||(!src||src==='auto')&&row.src==='dom'){// Read the data from the DOM\nrow._aData=_fnGetRowElements(settings,row,colIdx,colIdx===undefined?undefined:row._aData).data;}else{// Reading from data object, update the DOM\nvar cells=row.anCells;if(cells){if(colIdx!==undefined){cellWrite(cells[colIdx],colIdx);}else{for(i=0,ien=cells.length;i<ien;i++){cellWrite(cells[i],i);}}}}// For both row and cell invalidation, the cached data for sorting and\n// filtering is nulled out\nrow._aSortData=null;row._aFilterData=null;// Invalidate the type for a specific column (if given) or all columns since\n// the data might have changed\nvar cols=settings.aoColumns;if(colIdx!==undefined){cols[colIdx].sType=null;}else{for(i=0,ien=cols.length;i<ien;i++){cols[i].sType=null;}// Update DataTables special `DT_*` attributes for the row\n_fnRowAttributes(settings,row);}}/**\r\n\t * Build a data source object from an HTML row, reading the contents of the\r\n\t * cells that are in the row.\r\n\t *\r\n\t * @param {object} settings DataTables settings object\r\n\t * @param {node|object} TR element from which to read data or existing row\r\n\t *   object from which to re-read the data from the cells\r\n\t * @param {int} [colIdx] Optional column index\r\n\t * @param {array|object} [d] Data source object. If `colIdx` is given then this\r\n\t *   parameter should also be given and will be used to write the data into.\r\n\t *   Only the column in question will be written\r\n\t * @returns {object} Object with two parameters: `data` the data read, in\r\n\t *   document order, and `cells` and array of nodes (they can be useful to the\r\n\t *   caller, so rather than needing a second traversal to get them, just return\r\n\t *   them from here).\r\n\t * @memberof DataTable#oApi\r\n\t */function _fnGetRowElements(settings,row,colIdx,d){var tds=[],td=row.firstChild,name,col,o,i=0,contents,columns=settings.aoColumns,objectRead=settings._rowReadObject;// Allow the data object to be passed in, or construct\nd=d!==undefined?d:objectRead?{}:[];var attr=function(str,td){if(typeof str==='string'){var idx=str.indexOf('@');if(idx!==-1){var attr=str.substring(idx+1);var setter=_fnSetObjectDataFn(str);setter(d,td.getAttribute(attr));}}};// Read data from a cell and store into the data object\nvar cellProcess=function(cell){if(colIdx===undefined||colIdx===i){col=columns[i];contents=$.trim(cell.innerHTML);if(col&&col._bAttrSrc){var setter=_fnSetObjectDataFn(col.mData._);setter(d,contents);attr(col.mData.sort,cell);attr(col.mData.type,cell);attr(col.mData.filter,cell);}else{// Depending on the `data` option for the columns the data can\n// be read to either an object or an array.\nif(objectRead){if(!col._setter){// Cache the setter function\ncol._setter=_fnSetObjectDataFn(col.mData);}col._setter(d,contents);}else{d[i]=contents;}}}i++;};if(td){// `tr` element was passed in\nwhile(td){name=td.nodeName.toUpperCase();if(name==\"TD\"||name==\"TH\"){cellProcess(td);tds.push(td);}td=td.nextSibling;}}else{// Existing row object passed in\ntds=row.anCells;for(var j=0,jen=tds.length;j<jen;j++){cellProcess(tds[j]);}}// Read the ID from the DOM if present\nvar rowNode=row.firstChild?row:row.nTr;if(rowNode){var id=rowNode.getAttribute('id');if(id){_fnSetObjectDataFn(settings.rowId)(d,id);}}return{data:d,cells:tds};}/**\r\n\t * Create a new TR element (and it's TD children) for a row\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {int} iRow Row to consider\r\n\t *  @param {node} [nTrIn] TR element to add to the table - optional. If not given,\r\n\t *    DataTables will create a row automatically\r\n\t *  @param {array} [anTds] Array of TD|TH elements for the row - must be given\r\n\t *    if nTr is.\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnCreateTr(oSettings,iRow,nTrIn,anTds){var row=oSettings.aoData[iRow],rowData=row._aData,cells=[],nTr,nTd,oCol,i,iLen;if(row.nTr===null){nTr=nTrIn||document.createElement('tr');row.nTr=nTr;row.anCells=cells;/* Use a private property on the node to allow reserve mapping from the node\r\n\t\t\t * to the aoData array for fast look up\r\n\t\t\t */nTr._DT_RowIndex=iRow;/* Special parameters can be given by the data source to be used on the row */_fnRowAttributes(oSettings,row);/* Process each column */for(i=0,iLen=oSettings.aoColumns.length;i<iLen;i++){oCol=oSettings.aoColumns[i];nTd=nTrIn?anTds[i]:document.createElement(oCol.sCellType);nTd._DT_CellIndex={row:iRow,column:i};cells.push(nTd);// Need to create the HTML if new, or if a rendering function is defined\nif((!nTrIn||oCol.mRender||oCol.mData!==i)&&(!$.isPlainObject(oCol.mData)||oCol.mData._!==i+'.display')){nTd.innerHTML=_fnGetCellData(oSettings,iRow,i,'display');}/* Add user defined class */if(oCol.sClass){nTd.className+=' '+oCol.sClass;}// Visibility - add or remove as required\nif(oCol.bVisible&&!nTrIn){nTr.appendChild(nTd);}else if(!oCol.bVisible&&nTrIn){nTd.parentNode.removeChild(nTd);}if(oCol.fnCreatedCell){oCol.fnCreatedCell.call(oSettings.oInstance,nTd,_fnGetCellData(oSettings,iRow,i),rowData,iRow,i);}}_fnCallbackFire(oSettings,'aoRowCreatedCallback',null,[nTr,rowData,iRow,cells]);}// Remove once webkit bug 131819 and Chromium bug 365619 have been resolved\n// and deployed\nrow.nTr.setAttribute('role','row');}/**\r\n\t * Add attributes to a row based on the special `DT_*` parameters in a data\r\n\t * source object.\r\n\t *  @param {object} settings DataTables settings object\r\n\t *  @param {object} DataTables row object for the row to be modified\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnRowAttributes(settings,row){var tr=row.nTr;var data=row._aData;if(tr){var id=settings.rowIdFn(data);if(id){tr.id=id;}if(data.DT_RowClass){// Remove any classes added by DT_RowClass before\nvar a=data.DT_RowClass.split(' ');row.__rowc=row.__rowc?_unique(row.__rowc.concat(a)):a;$(tr).removeClass(row.__rowc.join(' ')).addClass(data.DT_RowClass);}if(data.DT_RowAttr){$(tr).attr(data.DT_RowAttr);}if(data.DT_RowData){$(tr).data(data.DT_RowData);}}}/**\r\n\t * Create the HTML header for the table\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnBuildHead(oSettings){var i,ien,cell,row,column;var thead=oSettings.nTHead;var tfoot=oSettings.nTFoot;var createHeader=$('th, td',thead).length===0;var classes=oSettings.oClasses;var columns=oSettings.aoColumns;if(createHeader){row=$('<tr/>').appendTo(thead);}for(i=0,ien=columns.length;i<ien;i++){column=columns[i];cell=$(column.nTh).addClass(column.sClass);if(createHeader){cell.appendTo(row);}// 1.11 move into sorting\nif(oSettings.oFeatures.bSort){cell.addClass(column.sSortingClass);if(column.bSortable!==false){cell.attr('tabindex',oSettings.iTabIndex).attr('aria-controls',oSettings.sTableId);_fnSortAttachListener(oSettings,column.nTh,i);}}if(column.sTitle!=cell[0].innerHTML){cell.html(column.sTitle);}_fnRenderer(oSettings,'header')(oSettings,cell,column,classes);}if(createHeader){_fnDetectHeader(oSettings.aoHeader,thead);}/* ARIA role for the rows */$(thead).find('>tr').attr('role','row');/* Deal with the footer - add classes if required */$(thead).find('>tr>th, >tr>td').addClass(classes.sHeaderTH);$(tfoot).find('>tr>th, >tr>td').addClass(classes.sFooterTH);// Cache the footer cells. Note that we only take the cells from the first\n// row in the footer. If there is more than one row the user wants to\n// interact with, they need to use the table().foot() method. Note also this\n// allows cells to be used for multiple columns using colspan\nif(tfoot!==null){var cells=oSettings.aoFooter[0];for(i=0,ien=cells.length;i<ien;i++){column=columns[i];column.nTf=cells[i].cell;if(column.sClass){$(column.nTf).addClass(column.sClass);}}}}/**\r\n\t * Draw the header (or footer) element based on the column visibility states. The\r\n\t * methodology here is to use the layout array from _fnDetectHeader, modified for\r\n\t * the instantaneous column visibility, to construct the new layout. The grid is\r\n\t * traversed over cell at a time in a rows x columns grid fashion, although each\r\n\t * cell insert can cover multiple elements in the grid - which is tracks using the\r\n\t * aApplied array. Cell inserts in the grid will only occur where there isn't\r\n\t * already a cell in that position.\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param array {objects} aoSource Layout array from _fnDetectHeader\r\n\t *  @param {boolean} [bIncludeHidden=false] If true then include the hidden columns in the calc,\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnDrawHead(oSettings,aoSource,bIncludeHidden){var i,iLen,j,jLen,k,kLen,n,nLocalTr;var aoLocal=[];var aApplied=[];var iColumns=oSettings.aoColumns.length;var iRowspan,iColspan;if(!aoSource){return;}if(bIncludeHidden===undefined){bIncludeHidden=false;}/* Make a copy of the master layout array, but without the visible columns in it */for(i=0,iLen=aoSource.length;i<iLen;i++){aoLocal[i]=aoSource[i].slice();aoLocal[i].nTr=aoSource[i].nTr;/* Remove any columns which are currently hidden */for(j=iColumns-1;j>=0;j--){if(!oSettings.aoColumns[j].bVisible&&!bIncludeHidden){aoLocal[i].splice(j,1);}}/* Prep the applied array - it needs an element for each row */aApplied.push([]);}for(i=0,iLen=aoLocal.length;i<iLen;i++){nLocalTr=aoLocal[i].nTr;/* All cells are going to be replaced, so empty out the row */if(nLocalTr){while(n=nLocalTr.firstChild){nLocalTr.removeChild(n);}}for(j=0,jLen=aoLocal[i].length;j<jLen;j++){iRowspan=1;iColspan=1;/* Check to see if there is already a cell (row/colspan) covering our target\r\n\t\t\t\t * insert point. If there is, then there is nothing to do.\r\n\t\t\t\t */if(aApplied[i][j]===undefined){nLocalTr.appendChild(aoLocal[i][j].cell);aApplied[i][j]=1;/* Expand the cell to cover as many rows as needed */while(aoLocal[i+iRowspan]!==undefined&&aoLocal[i][j].cell==aoLocal[i+iRowspan][j].cell){aApplied[i+iRowspan][j]=1;iRowspan++;}/* Expand the cell to cover as many columns as needed */while(aoLocal[i][j+iColspan]!==undefined&&aoLocal[i][j].cell==aoLocal[i][j+iColspan].cell){/* Must update the applied array over the rows for the columns */for(k=0;k<iRowspan;k++){aApplied[i+k][j+iColspan]=1;}iColspan++;}/* Do the actual expansion in the DOM */$(aoLocal[i][j].cell).attr('rowspan',iRowspan).attr('colspan',iColspan);}}}}/**\r\n\t * Insert the required TR nodes into the table for display\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnDraw(oSettings){/* Provide a pre-callback function which can be used to cancel the draw is false is returned */var aPreDraw=_fnCallbackFire(oSettings,'aoPreDrawCallback','preDraw',[oSettings]);if($.inArray(false,aPreDraw)!==-1){_fnProcessingDisplay(oSettings,false);return;}var i,iLen,n;var anRows=[];var iRowCount=0;var asStripeClasses=oSettings.asStripeClasses;var iStripes=asStripeClasses.length;var iOpenRows=oSettings.aoOpenRows.length;var oLang=oSettings.oLanguage;var iInitDisplayStart=oSettings.iInitDisplayStart;var bServerSide=_fnDataSource(oSettings)=='ssp';var aiDisplay=oSettings.aiDisplay;oSettings.bDrawing=true;/* Check and see if we have an initial draw position from state saving */if(iInitDisplayStart!==undefined&&iInitDisplayStart!==-1){oSettings._iDisplayStart=bServerSide?iInitDisplayStart:iInitDisplayStart>=oSettings.fnRecordsDisplay()?0:iInitDisplayStart;oSettings.iInitDisplayStart=-1;}var iDisplayStart=oSettings._iDisplayStart;var iDisplayEnd=oSettings.fnDisplayEnd();/* Server-side processing draw intercept */if(oSettings.bDeferLoading){oSettings.bDeferLoading=false;oSettings.iDraw++;_fnProcessingDisplay(oSettings,false);}else if(!bServerSide){oSettings.iDraw++;}else if(!oSettings.bDestroying&&!_fnAjaxUpdate(oSettings)){return;}if(aiDisplay.length!==0){var iStart=bServerSide?0:iDisplayStart;var iEnd=bServerSide?oSettings.aoData.length:iDisplayEnd;for(var j=iStart;j<iEnd;j++){var iDataIndex=aiDisplay[j];var aoData=oSettings.aoData[iDataIndex];if(aoData.nTr===null){_fnCreateTr(oSettings,iDataIndex);}var nRow=aoData.nTr;/* Remove the old striping classes and then add the new one */if(iStripes!==0){var sStripe=asStripeClasses[iRowCount%iStripes];if(aoData._sRowStripe!=sStripe){$(nRow).removeClass(aoData._sRowStripe).addClass(sStripe);aoData._sRowStripe=sStripe;}}// Row callback functions - might want to manipulate the row\n// iRowCount and j are not currently documented. Are they at all\n// useful?\n_fnCallbackFire(oSettings,'aoRowCallback',null,[nRow,aoData._aData,iRowCount,j,iDataIndex]);anRows.push(nRow);iRowCount++;}}else{/* Table is empty - create a row with an empty message in it */var sZero=oLang.sZeroRecords;if(oSettings.iDraw==1&&_fnDataSource(oSettings)=='ajax'){sZero=oLang.sLoadingRecords;}else if(oLang.sEmptyTable&&oSettings.fnRecordsTotal()===0){sZero=oLang.sEmptyTable;}anRows[0]=$('<tr/>',{'class':iStripes?asStripeClasses[0]:''}).append($('<td />',{'valign':'top','colSpan':_fnVisbleColumns(oSettings),'class':oSettings.oClasses.sRowEmpty}).html(sZero))[0];}/* Header and footer callbacks */_fnCallbackFire(oSettings,'aoHeaderCallback','header',[$(oSettings.nTHead).children('tr')[0],_fnGetDataMaster(oSettings),iDisplayStart,iDisplayEnd,aiDisplay]);_fnCallbackFire(oSettings,'aoFooterCallback','footer',[$(oSettings.nTFoot).children('tr')[0],_fnGetDataMaster(oSettings),iDisplayStart,iDisplayEnd,aiDisplay]);var body=$(oSettings.nTBody);body.children().detach();body.append($(anRows));/* Call all required callback functions for the end of a draw */_fnCallbackFire(oSettings,'aoDrawCallback','draw',[oSettings]);/* Draw is complete, sorting and filtering must be as well */oSettings.bSorted=false;oSettings.bFiltered=false;oSettings.bDrawing=false;}/**\r\n\t * Redraw the table - taking account of the various features which are enabled\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {boolean} [holdPosition] Keep the current paging position. By default\r\n\t *    the paging is reset to the first page\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnReDraw(settings,holdPosition){var features=settings.oFeatures,sort=features.bSort,filter=features.bFilter;if(sort){_fnSort(settings);}if(filter){_fnFilterComplete(settings,settings.oPreviousSearch);}else{// No filtering, so we want to just use the display master\nsettings.aiDisplay=settings.aiDisplayMaster.slice();}if(holdPosition!==true){settings._iDisplayStart=0;}// Let any modules know about the draw hold position state (used by\n// scrolling internally)\nsettings._drawHold=holdPosition;_fnDraw(settings);settings._drawHold=false;}/**\r\n\t * Add the options to the page HTML for the table\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnAddOptionsHtml(oSettings){var classes=oSettings.oClasses;var table=$(oSettings.nTable);var holding=$('<div/>').insertBefore(table);// Holding element for speed\nvar features=oSettings.oFeatures;// All DataTables are wrapped in a div\nvar insert=$('<div/>',{id:oSettings.sTableId+'_wrapper','class':classes.sWrapper+(oSettings.nTFoot?'':' '+classes.sNoFooter)});oSettings.nHolding=holding[0];oSettings.nTableWrapper=insert[0];oSettings.nTableReinsertBefore=oSettings.nTable.nextSibling;/* Loop over the user set positioning and place the elements as needed */var aDom=oSettings.sDom.split('');var featureNode,cOption,nNewNode,cNext,sAttr,j;for(var i=0;i<aDom.length;i++){featureNode=null;cOption=aDom[i];if(cOption=='<'){/* New container div */nNewNode=$('<div/>')[0];/* Check to see if we should append an id and/or a class name to the container */cNext=aDom[i+1];if(cNext==\"'\"||cNext=='\"'){sAttr=\"\";j=2;while(aDom[i+j]!=cNext){sAttr+=aDom[i+j];j++;}/* Replace jQuery UI constants @todo depreciated */if(sAttr==\"H\"){sAttr=classes.sJUIHeader;}else if(sAttr==\"F\"){sAttr=classes.sJUIFooter;}/* The attribute can be in the format of \"#id.class\", \"#id\" or \"class\" This logic\r\n\t\t\t\t\t * breaks the string into parts and applies them as needed\r\n\t\t\t\t\t */if(sAttr.indexOf('.')!=-1){var aSplit=sAttr.split('.');nNewNode.id=aSplit[0].substr(1,aSplit[0].length-1);nNewNode.className=aSplit[1];}else if(sAttr.charAt(0)==\"#\"){nNewNode.id=sAttr.substr(1,sAttr.length-1);}else{nNewNode.className=sAttr;}i+=j;/* Move along the position array */}insert.append(nNewNode);insert=$(nNewNode);}else if(cOption=='>'){/* End container div */insert=insert.parent();}// @todo Move options into their own plugins?\nelse if(cOption=='l'&&features.bPaginate&&features.bLengthChange){/* Length */featureNode=_fnFeatureHtmlLength(oSettings);}else if(cOption=='f'&&features.bFilter){/* Filter */featureNode=_fnFeatureHtmlFilter(oSettings);}else if(cOption=='r'&&features.bProcessing){/* pRocessing */featureNode=_fnFeatureHtmlProcessing(oSettings);}else if(cOption=='t'){/* Table */featureNode=_fnFeatureHtmlTable(oSettings);}else if(cOption=='i'&&features.bInfo){/* Info */featureNode=_fnFeatureHtmlInfo(oSettings);}else if(cOption=='p'&&features.bPaginate){/* Pagination */featureNode=_fnFeatureHtmlPaginate(oSettings);}else if(DataTable.ext.feature.length!==0){/* Plug-in features */var aoFeatures=DataTable.ext.feature;for(var k=0,kLen=aoFeatures.length;k<kLen;k++){if(cOption==aoFeatures[k].cFeature){featureNode=aoFeatures[k].fnInit(oSettings);break;}}}/* Add to the 2D features array */if(featureNode){var aanFeatures=oSettings.aanFeatures;if(!aanFeatures[cOption]){aanFeatures[cOption]=[];}aanFeatures[cOption].push(featureNode);insert.append(featureNode);}}/* Built our DOM structure - replace the holding div with what we want */holding.replaceWith(insert);oSettings.nHolding=null;}/**\r\n\t * Use the DOM source to create up an array of header cells. The idea here is to\r\n\t * create a layout grid (array) of rows x columns, which contains a reference\r\n\t * to the cell that that point in the grid (regardless of col/rowspan), such that\r\n\t * any column / row could be removed and the new grid constructed\r\n\t *  @param array {object} aLayout Array to store the calculated layout in\r\n\t *  @param {node} nThead The header/footer element for the table\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnDetectHeader(aLayout,nThead){var nTrs=$(nThead).children('tr');var nTr,nCell;var i,k,l,iLen,jLen,iColShifted,iColumn,iColspan,iRowspan;var bUnique;var fnShiftCol=function(a,i,j){var k=a[i];while(k[j]){j++;}return j;};aLayout.splice(0,aLayout.length);/* We know how many rows there are in the layout - so prep it */for(i=0,iLen=nTrs.length;i<iLen;i++){aLayout.push([]);}/* Calculate a layout array */for(i=0,iLen=nTrs.length;i<iLen;i++){nTr=nTrs[i];iColumn=0;/* For every cell in the row... */nCell=nTr.firstChild;while(nCell){if(nCell.nodeName.toUpperCase()==\"TD\"||nCell.nodeName.toUpperCase()==\"TH\"){/* Get the col and rowspan attributes from the DOM and sanitise them */iColspan=nCell.getAttribute('colspan')*1;iRowspan=nCell.getAttribute('rowspan')*1;iColspan=!iColspan||iColspan===0||iColspan===1?1:iColspan;iRowspan=!iRowspan||iRowspan===0||iRowspan===1?1:iRowspan;/* There might be colspan cells already in this row, so shift our target\r\n\t\t\t\t\t * accordingly\r\n\t\t\t\t\t */iColShifted=fnShiftCol(aLayout,i,iColumn);/* Cache calculation for unique columns */bUnique=iColspan===1?true:false;/* If there is col / rowspan, copy the information into the layout grid */for(l=0;l<iColspan;l++){for(k=0;k<iRowspan;k++){aLayout[i+k][iColShifted+l]={\"cell\":nCell,\"unique\":bUnique};aLayout[i+k].nTr=nTr;}}}nCell=nCell.nextSibling;}}}/**\r\n\t * Get an array of unique th elements, one for each column\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {node} nHeader automatically detect the layout from this node - optional\r\n\t *  @param {array} aLayout thead/tfoot layout from _fnDetectHeader - optional\r\n\t *  @returns array {node} aReturn list of unique th's\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnGetUniqueThs(oSettings,nHeader,aLayout){var aReturn=[];if(!aLayout){aLayout=oSettings.aoHeader;if(nHeader){aLayout=[];_fnDetectHeader(aLayout,nHeader);}}for(var i=0,iLen=aLayout.length;i<iLen;i++){for(var j=0,jLen=aLayout[i].length;j<jLen;j++){if(aLayout[i][j].unique&&(!aReturn[j]||!oSettings.bSortCellsTop)){aReturn[j]=aLayout[i][j].cell;}}}return aReturn;}/**\r\n\t * Create an Ajax call based on the table's settings, taking into account that\r\n\t * parameters can have multiple forms, and backwards compatibility.\r\n\t *\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {array} data Data to send to the server, required by\r\n\t *     DataTables - may be augmented by developer callbacks\r\n\t * @param {function} fn Callback function to run when data is obtained\r\n\t */function _fnBuildAjax(oSettings,data,fn){// Compatibility with 1.9-, allow fnServerData and event to manipulate\n_fnCallbackFire(oSettings,'aoServerParams','serverParams',[data]);// Convert to object based for 1.10+ if using the old array scheme which can\n// come from server-side processing or serverParams\nif(data&&$.isArray(data)){var tmp={};var rbracket=/(.*?)\\[\\]$/;$.each(data,function(key,val){var match=val.name.match(rbracket);if(match){// Support for arrays\nvar name=match[0];if(!tmp[name]){tmp[name]=[];}tmp[name].push(val.value);}else{tmp[val.name]=val.value;}});data=tmp;}var ajaxData;var ajax=oSettings.ajax;var instance=oSettings.oInstance;var callback=function(json){_fnCallbackFire(oSettings,null,'xhr',[oSettings,json,oSettings.jqXHR]);fn(json);};if($.isPlainObject(ajax)&&ajax.data){ajaxData=ajax.data;var newData=typeof ajaxData==='function'?ajaxData(data,oSettings):// fn can manipulate data or return\najaxData;// an object object or array to merge\n// If the function returned something, use that alone\ndata=typeof ajaxData==='function'&&newData?newData:$.extend(true,data,newData);// Remove the data property as we've resolved it already and don't want\n// jQuery to do it again (it is restored at the end of the function)\ndelete ajax.data;}var baseAjax={\"data\":data,\"success\":function(json){var error=json.error||json.sError;if(error){_fnLog(oSettings,0,error);}oSettings.json=json;callback(json);},\"dataType\":\"json\",\"cache\":false,\"type\":oSettings.sServerMethod,\"error\":function(xhr,error,thrown){var ret=_fnCallbackFire(oSettings,null,'xhr',[oSettings,null,oSettings.jqXHR]);if($.inArray(true,ret)===-1){if(error==\"parsererror\"){_fnLog(oSettings,0,'Invalid JSON response',1);}else if(xhr.readyState===4){_fnLog(oSettings,0,'Ajax error',7);}}_fnProcessingDisplay(oSettings,false);}};// Store the data submitted for the API\noSettings.oAjaxData=data;// Allow plug-ins and external processes to modify the data\n_fnCallbackFire(oSettings,null,'preXhr',[oSettings,data]);if(oSettings.fnServerData){// DataTables 1.9- compatibility\noSettings.fnServerData.call(instance,oSettings.sAjaxSource,$.map(data,function(val,key){// Need to convert back to 1.9 trad format\nreturn{name:key,value:val};}),callback,oSettings);}else if(oSettings.sAjaxSource||typeof ajax==='string'){// DataTables 1.9- compatibility\noSettings.jqXHR=$.ajax($.extend(baseAjax,{url:ajax||oSettings.sAjaxSource}));}else if(typeof ajax==='function'){// Is a function - let the caller define what needs to be done\noSettings.jqXHR=ajax.call(instance,data,callback,oSettings);}else{// Object to extend the base settings\noSettings.jqXHR=$.ajax($.extend(baseAjax,ajax));// Restore for next time around\najax.data=ajaxData;}}/**\r\n\t * Update the table using an Ajax call\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @returns {boolean} Block the table drawing or not\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnAjaxUpdate(settings){if(settings.bAjaxDataGet){settings.iDraw++;_fnProcessingDisplay(settings,true);_fnBuildAjax(settings,_fnAjaxParameters(settings),function(json){_fnAjaxUpdateDraw(settings,json);});return false;}return true;}/**\r\n\t * Build up the parameters in an object needed for a server-side processing\r\n\t * request. Note that this is basically done twice, is different ways - a modern\r\n\t * method which is used by default in DataTables 1.10 which uses objects and\r\n\t * arrays, or the 1.9- method with is name / value pairs. 1.9 method is used if\r\n\t * the sAjaxSource option is used in the initialisation, or the legacyAjax\r\n\t * option is set.\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @returns {bool} block the table drawing or not\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnAjaxParameters(settings){var columns=settings.aoColumns,columnCount=columns.length,features=settings.oFeatures,preSearch=settings.oPreviousSearch,preColSearch=settings.aoPreSearchCols,i,data=[],dataProp,column,columnSearch,sort=_fnSortFlatten(settings),displayStart=settings._iDisplayStart,displayLength=features.bPaginate!==false?settings._iDisplayLength:-1;var param=function(name,value){data.push({'name':name,'value':value});};// DataTables 1.9- compatible method\nparam('sEcho',settings.iDraw);param('iColumns',columnCount);param('sColumns',_pluck(columns,'sName').join(','));param('iDisplayStart',displayStart);param('iDisplayLength',displayLength);// DataTables 1.10+ method\nvar d={draw:settings.iDraw,columns:[],order:[],start:displayStart,length:displayLength,search:{value:preSearch.sSearch,regex:preSearch.bRegex}};for(i=0;i<columnCount;i++){column=columns[i];columnSearch=preColSearch[i];dataProp=typeof column.mData==\"function\"?'function':column.mData;d.columns.push({data:dataProp,name:column.sName,searchable:column.bSearchable,orderable:column.bSortable,search:{value:columnSearch.sSearch,regex:columnSearch.bRegex}});param(\"mDataProp_\"+i,dataProp);if(features.bFilter){param('sSearch_'+i,columnSearch.sSearch);param('bRegex_'+i,columnSearch.bRegex);param('bSearchable_'+i,column.bSearchable);}if(features.bSort){param('bSortable_'+i,column.bSortable);}}if(features.bFilter){param('sSearch',preSearch.sSearch);param('bRegex',preSearch.bRegex);}if(features.bSort){$.each(sort,function(i,val){d.order.push({column:val.col,dir:val.dir});param('iSortCol_'+i,val.col);param('sSortDir_'+i,val.dir);});param('iSortingCols',sort.length);}// If the legacy.ajax parameter is null, then we automatically decide which\n// form to use, based on sAjaxSource\nvar legacy=DataTable.ext.legacy.ajax;if(legacy===null){return settings.sAjaxSource?data:d;}// Otherwise, if legacy has been specified then we use that to decide on the\n// form\nreturn legacy?data:d;}/**\r\n\t * Data the data from the server (nuking the old) and redraw the table\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {object} json json data return from the server.\r\n\t *  @param {string} json.sEcho Tracking flag for DataTables to match requests\r\n\t *  @param {int} json.iTotalRecords Number of records in the data set, not accounting for filtering\r\n\t *  @param {int} json.iTotalDisplayRecords Number of records in the data set, accounting for filtering\r\n\t *  @param {array} json.aaData The data to display on this page\r\n\t *  @param {string} [json.sColumns] Column ordering (sName, comma separated)\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnAjaxUpdateDraw(settings,json){// v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.\n// Support both\nvar compat=function(old,modern){return json[old]!==undefined?json[old]:json[modern];};var data=_fnAjaxDataSrc(settings,json);var draw=compat('sEcho','draw');var recordsTotal=compat('iTotalRecords','recordsTotal');var recordsFiltered=compat('iTotalDisplayRecords','recordsFiltered');if(draw){// Protect against out of sequence returns\nif(draw*1<settings.iDraw){return;}settings.iDraw=draw*1;}_fnClearTable(settings);settings._iRecordsTotal=parseInt(recordsTotal,10);settings._iRecordsDisplay=parseInt(recordsFiltered,10);for(var i=0,ien=data.length;i<ien;i++){_fnAddData(settings,data[i]);}settings.aiDisplay=settings.aiDisplayMaster.slice();settings.bAjaxDataGet=false;_fnDraw(settings);if(!settings._bInitComplete){_fnInitComplete(settings,json);}settings.bAjaxDataGet=true;_fnProcessingDisplay(settings,false);}/**\r\n\t * Get the data from the JSON data source to use for drawing a table. Using\r\n\t * `_fnGetObjectDataFn` allows the data to be sourced from a property of the\r\n\t * source object, or from a processing function.\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param  {object} json Data source object / array from the server\r\n\t *  @return {array} Array of data to use\r\n\t */function _fnAjaxDataSrc(oSettings,json){var dataSrc=$.isPlainObject(oSettings.ajax)&&oSettings.ajax.dataSrc!==undefined?oSettings.ajax.dataSrc:oSettings.sAjaxDataProp;// Compatibility with 1.9-.\n// Compatibility with 1.9-. In order to read from aaData, check if the\n// default has been changed, if not, check for aaData\nif(dataSrc==='data'){return json.aaData||json[dataSrc];}return dataSrc!==\"\"?_fnGetObjectDataFn(dataSrc)(json):json;}/**\r\n\t * Generate the node required for filtering text\r\n\t *  @returns {node} Filter control element\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnFeatureHtmlFilter(settings){var classes=settings.oClasses;var tableId=settings.sTableId;var language=settings.oLanguage;var previousSearch=settings.oPreviousSearch;var features=settings.aanFeatures;var input='<input type=\"search\" class=\"'+classes.sFilterInput+'\"/>';var str=language.sSearch;str=str.match(/_INPUT_/)?str.replace('_INPUT_',input):str+input;var filter=$('<div/>',{'id':!features.f?tableId+'_filter':null,'class':classes.sFilter}).append($('<label/>').append(str));var searchFn=function(){/* Update all other filter input elements for the new display */var n=features.f;var val=!this.value?\"\":this.value;// mental IE8 fix :-(\n/* Now do the filter */if(val!=previousSearch.sSearch){_fnFilterComplete(settings,{\"sSearch\":val,\"bRegex\":previousSearch.bRegex,\"bSmart\":previousSearch.bSmart,\"bCaseInsensitive\":previousSearch.bCaseInsensitive});// Need to redraw, without resorting\nsettings._iDisplayStart=0;_fnDraw(settings);}};var searchDelay=settings.searchDelay!==null?settings.searchDelay:_fnDataSource(settings)==='ssp'?400:0;var jqFilter=$('input',filter).val(previousSearch.sSearch).attr('placeholder',language.sSearchPlaceholder).on('keyup.DT search.DT input.DT paste.DT cut.DT',searchDelay?_fnThrottle(searchFn,searchDelay):searchFn).on('keypress.DT',function(e){/* Prevent form submission */if(e.keyCode==13){return false;}}).attr('aria-controls',tableId);// Update the input elements whenever the table is filtered\n$(settings.nTable).on('search.dt.DT',function(ev,s){if(settings===s){// IE9 throws an 'unknown error' if document.activeElement is used\n// inside an iframe or frame...\ntry{if(jqFilter[0]!==document.activeElement){jqFilter.val(previousSearch.sSearch);}}catch(e){}}});return filter[0];}/**\r\n\t * Filter the table using both the global filter and column based filtering\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {object} oSearch search information\r\n\t *  @param {int} [iForce] force a research of the master array (1) or not (undefined or 0)\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnFilterComplete(oSettings,oInput,iForce){var oPrevSearch=oSettings.oPreviousSearch;var aoPrevSearch=oSettings.aoPreSearchCols;var fnSaveFilter=function(oFilter){/* Save the filtering values */oPrevSearch.sSearch=oFilter.sSearch;oPrevSearch.bRegex=oFilter.bRegex;oPrevSearch.bSmart=oFilter.bSmart;oPrevSearch.bCaseInsensitive=oFilter.bCaseInsensitive;};var fnRegex=function(o){// Backwards compatibility with the bEscapeRegex option\nreturn o.bEscapeRegex!==undefined?!o.bEscapeRegex:o.bRegex;};// Resolve any column types that are unknown due to addition or invalidation\n// @todo As per sort - can this be moved into an event handler?\n_fnColumnTypes(oSettings);/* In server-side processing all filtering is done by the server, so no point hanging around here */if(_fnDataSource(oSettings)!='ssp'){/* Global filter */_fnFilter(oSettings,oInput.sSearch,iForce,fnRegex(oInput),oInput.bSmart,oInput.bCaseInsensitive);fnSaveFilter(oInput);/* Now do the individual column filter */for(var i=0;i<aoPrevSearch.length;i++){_fnFilterColumn(oSettings,aoPrevSearch[i].sSearch,i,fnRegex(aoPrevSearch[i]),aoPrevSearch[i].bSmart,aoPrevSearch[i].bCaseInsensitive);}/* Custom filtering */_fnFilterCustom(oSettings);}else{fnSaveFilter(oInput);}/* Tell the draw function we have been filtering */oSettings.bFiltered=true;_fnCallbackFire(oSettings,null,'search',[oSettings]);}/**\r\n\t * Apply custom filtering functions\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnFilterCustom(settings){var filters=DataTable.ext.search;var displayRows=settings.aiDisplay;var row,rowIdx;for(var i=0,ien=filters.length;i<ien;i++){var rows=[];// Loop over each row and see if it should be included\nfor(var j=0,jen=displayRows.length;j<jen;j++){rowIdx=displayRows[j];row=settings.aoData[rowIdx];if(filters[i](settings,row._aFilterData,rowIdx,row._aData,j)){rows.push(rowIdx);}}// So the array reference doesn't break set the results into the\n// existing array\ndisplayRows.length=0;$.merge(displayRows,rows);}}/**\r\n\t * Filter the table on a per-column basis\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {string} sInput string to filter on\r\n\t *  @param {int} iColumn column to filter\r\n\t *  @param {bool} bRegex treat search string as a regular expression or not\r\n\t *  @param {bool} bSmart use smart filtering or not\r\n\t *  @param {bool} bCaseInsensitive Do case insenstive matching or not\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnFilterColumn(settings,searchStr,colIdx,regex,smart,caseInsensitive){if(searchStr===''){return;}var data;var out=[];var display=settings.aiDisplay;var rpSearch=_fnFilterCreateSearch(searchStr,regex,smart,caseInsensitive);for(var i=0;i<display.length;i++){data=settings.aoData[display[i]]._aFilterData[colIdx];if(rpSearch.test(data)){out.push(display[i]);}}settings.aiDisplay=out;}/**\r\n\t * Filter the data table based on user input and draw the table\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {string} input string to filter on\r\n\t *  @param {int} force optional - force a research of the master array (1) or not (undefined or 0)\r\n\t *  @param {bool} regex treat as a regular expression or not\r\n\t *  @param {bool} smart perform smart filtering or not\r\n\t *  @param {bool} caseInsensitive Do case insenstive matching or not\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnFilter(settings,input,force,regex,smart,caseInsensitive){var rpSearch=_fnFilterCreateSearch(input,regex,smart,caseInsensitive);var prevSearch=settings.oPreviousSearch.sSearch;var displayMaster=settings.aiDisplayMaster;var display,invalidated,i;var filtered=[];// Need to take account of custom filtering functions - always filter\nif(DataTable.ext.search.length!==0){force=true;}// Check if any of the rows were invalidated\ninvalidated=_fnFilterData(settings);// If the input is blank - we just want the full data set\nif(input.length<=0){settings.aiDisplay=displayMaster.slice();}else{// New search - start from the master array\nif(invalidated||force||prevSearch.length>input.length||input.indexOf(prevSearch)!==0||settings.bSorted// On resort, the display master needs to be\n// re-filtered since indexes will have changed\n){settings.aiDisplay=displayMaster.slice();}// Search the display array\ndisplay=settings.aiDisplay;for(i=0;i<display.length;i++){if(rpSearch.test(settings.aoData[display[i]]._sFilterRow)){filtered.push(display[i]);}}settings.aiDisplay=filtered;}}/**\r\n\t * Build a regular expression object suitable for searching a table\r\n\t *  @param {string} sSearch string to search for\r\n\t *  @param {bool} bRegex treat as a regular expression or not\r\n\t *  @param {bool} bSmart perform smart filtering or not\r\n\t *  @param {bool} bCaseInsensitive Do case insensitive matching or not\r\n\t *  @returns {RegExp} constructed object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnFilterCreateSearch(search,regex,smart,caseInsensitive){search=regex?search:_fnEscapeRegex(search);if(smart){/* For smart filtering we want to allow the search to work regardless of\r\n\t\t\t * word order. We also want double quoted text to be preserved, so word\r\n\t\t\t * order is important - a la google. So this is what we want to\r\n\t\t\t * generate:\r\n\t\t\t * \r\n\t\t\t * ^(?=.*?\\bone\\b)(?=.*?\\btwo three\\b)(?=.*?\\bfour\\b).*$\r\n\t\t\t */var a=$.map(search.match(/\"[^\"]+\"|[^ ]+/g)||[''],function(word){if(word.charAt(0)==='\"'){var m=word.match(/^\"(.*)\"$/);word=m?m[1]:word;}return word.replace('\"','');});search='^(?=.*?'+a.join(')(?=.*?')+').*$';}return new RegExp(search,caseInsensitive?'i':'');}/**\r\n\t * Escape a string such that it can be used in a regular expression\r\n\t *  @param {string} sVal string to escape\r\n\t *  @returns {string} escaped string\r\n\t *  @memberof DataTable#oApi\r\n\t */var _fnEscapeRegex=DataTable.util.escapeRegex;var __filter_div=$('<div>')[0];var __filter_div_textContent=__filter_div.textContent!==undefined;// Update the filtering data for each row if needed (by invalidation or first run)\nfunction _fnFilterData(settings){var columns=settings.aoColumns;var column;var i,j,ien,jen,filterData,cellData,row;var fomatters=DataTable.ext.type.search;var wasInvalidated=false;for(i=0,ien=settings.aoData.length;i<ien;i++){row=settings.aoData[i];if(!row._aFilterData){filterData=[];for(j=0,jen=columns.length;j<jen;j++){column=columns[j];if(column.bSearchable){cellData=_fnGetCellData(settings,i,j,'filter');if(fomatters[column.sType]){cellData=fomatters[column.sType](cellData);}// Search in DataTables 1.10 is string based. In 1.11 this\n// should be altered to also allow strict type checking.\nif(cellData===null){cellData='';}if(typeof cellData!=='string'&&cellData.toString){cellData=cellData.toString();}}else{cellData='';}// If it looks like there is an HTML entity in the string,\n// attempt to decode it so sorting works as expected. Note that\n// we could use a single line of jQuery to do this, but the DOM\n// method used here is much faster http://jsperf.com/html-decode\nif(cellData.indexOf&&cellData.indexOf('&')!==-1){__filter_div.innerHTML=cellData;cellData=__filter_div_textContent?__filter_div.textContent:__filter_div.innerText;}if(cellData.replace){cellData=cellData.replace(/[\\r\\n]/g,'');}filterData.push(cellData);}row._aFilterData=filterData;row._sFilterRow=filterData.join('  ');wasInvalidated=true;}}return wasInvalidated;}/**\r\n\t * Convert from the internal Hungarian notation to camelCase for external\r\n\t * interaction\r\n\t *  @param {object} obj Object to convert\r\n\t *  @returns {object} Inverted object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnSearchToCamel(obj){return{search:obj.sSearch,smart:obj.bSmart,regex:obj.bRegex,caseInsensitive:obj.bCaseInsensitive};}/**\r\n\t * Convert from camelCase notation to the internal Hungarian. We could use the\r\n\t * Hungarian convert function here, but this is cleaner\r\n\t *  @param {object} obj Object to convert\r\n\t *  @returns {object} Inverted object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnSearchToHung(obj){return{sSearch:obj.search,bSmart:obj.smart,bRegex:obj.regex,bCaseInsensitive:obj.caseInsensitive};}/**\r\n\t * Generate the node required for the info display\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @returns {node} Information element\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnFeatureHtmlInfo(settings){var tid=settings.sTableId,nodes=settings.aanFeatures.i,n=$('<div/>',{'class':settings.oClasses.sInfo,'id':!nodes?tid+'_info':null});if(!nodes){// Update display on each draw\nsettings.aoDrawCallback.push({\"fn\":_fnUpdateInfo,\"sName\":\"information\"});n.attr('role','status').attr('aria-live','polite');// Table is described by our info div\n$(settings.nTable).attr('aria-describedby',tid+'_info');}return n[0];}/**\r\n\t * Update the information elements in the display\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnUpdateInfo(settings){/* Show information about the table */var nodes=settings.aanFeatures.i;if(nodes.length===0){return;}var lang=settings.oLanguage,start=settings._iDisplayStart+1,end=settings.fnDisplayEnd(),max=settings.fnRecordsTotal(),total=settings.fnRecordsDisplay(),out=total?lang.sInfo:lang.sInfoEmpty;if(total!==max){/* Record set after filtering */out+=' '+lang.sInfoFiltered;}// Convert the macros\nout+=lang.sInfoPostFix;out=_fnInfoMacros(settings,out);var callback=lang.fnInfoCallback;if(callback!==null){out=callback.call(settings.oInstance,settings,start,end,max,total,out);}$(nodes).html(out);}function _fnInfoMacros(settings,str){// When infinite scrolling, we are always starting at 1. _iDisplayStart is used only\n// internally\nvar formatter=settings.fnFormatNumber,start=settings._iDisplayStart+1,len=settings._iDisplayLength,vis=settings.fnRecordsDisplay(),all=len===-1;return str.replace(/_START_/g,formatter.call(settings,start)).replace(/_END_/g,formatter.call(settings,settings.fnDisplayEnd())).replace(/_MAX_/g,formatter.call(settings,settings.fnRecordsTotal())).replace(/_TOTAL_/g,formatter.call(settings,vis)).replace(/_PAGE_/g,formatter.call(settings,all?1:Math.ceil(start/len))).replace(/_PAGES_/g,formatter.call(settings,all?1:Math.ceil(vis/len)));}/**\r\n\t * Draw the table for the first time, adding all required features\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnInitialise(settings){var i,iLen,iAjaxStart=settings.iInitDisplayStart;var columns=settings.aoColumns,column;var features=settings.oFeatures;var deferLoading=settings.bDeferLoading;// value modified by the draw\n/* Ensure that the table data is fully initialised */if(!settings.bInitialised){setTimeout(function(){_fnInitialise(settings);},200);return;}/* Show the display HTML options */_fnAddOptionsHtml(settings);/* Build and draw the header / footer for the table */_fnBuildHead(settings);_fnDrawHead(settings,settings.aoHeader);_fnDrawHead(settings,settings.aoFooter);/* Okay to show that something is going on now */_fnProcessingDisplay(settings,true);/* Calculate sizes for columns */if(features.bAutoWidth){_fnCalculateColumnWidths(settings);}for(i=0,iLen=columns.length;i<iLen;i++){column=columns[i];if(column.sWidth){column.nTh.style.width=_fnStringToCss(column.sWidth);}}_fnCallbackFire(settings,null,'preInit',[settings]);// If there is default sorting required - let's do it. The sort function\n// will do the drawing for us. Otherwise we draw the table regardless of the\n// Ajax source - this allows the table to look initialised for Ajax sourcing\n// data (show 'loading' message possibly)\n_fnReDraw(settings);// Server-side processing init complete is done by _fnAjaxUpdateDraw\nvar dataSrc=_fnDataSource(settings);if(dataSrc!='ssp'||deferLoading){// if there is an ajax source load the data\nif(dataSrc=='ajax'){_fnBuildAjax(settings,[],function(json){var aData=_fnAjaxDataSrc(settings,json);// Got the data - add it to the table\nfor(i=0;i<aData.length;i++){_fnAddData(settings,aData[i]);}// Reset the init display for cookie saving. We've already done\n// a filter, and therefore cleared it before. So we need to make\n// it appear 'fresh'\nsettings.iInitDisplayStart=iAjaxStart;_fnReDraw(settings);_fnProcessingDisplay(settings,false);_fnInitComplete(settings,json);},settings);}else{_fnProcessingDisplay(settings,false);_fnInitComplete(settings);}}}/**\r\n\t * Draw the table for the first time, adding all required features\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {object} [json] JSON from the server that completed the table, if using Ajax source\r\n\t *    with client-side processing (optional)\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnInitComplete(settings,json){settings._bInitComplete=true;// When data was added after the initialisation (data or Ajax) we need to\n// calculate the column sizing\nif(json||settings.oInit.aaData){_fnAdjustColumnSizing(settings);}_fnCallbackFire(settings,null,'plugin-init',[settings,json]);_fnCallbackFire(settings,'aoInitComplete','init',[settings,json]);}function _fnLengthChange(settings,val){var len=parseInt(val,10);settings._iDisplayLength=len;_fnLengthOverflow(settings);// Fire length change event\n_fnCallbackFire(settings,null,'length',[settings,len]);}/**\r\n\t * Generate the node required for user display length changing\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @returns {node} Display length feature node\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnFeatureHtmlLength(settings){var classes=settings.oClasses,tableId=settings.sTableId,menu=settings.aLengthMenu,d2=$.isArray(menu[0]),lengths=d2?menu[0]:menu,language=d2?menu[1]:menu;var select=$('<select/>',{'name':tableId+'_length','aria-controls':tableId,'class':classes.sLengthSelect});for(var i=0,ien=lengths.length;i<ien;i++){select[0][i]=new Option(typeof language[i]==='number'?settings.fnFormatNumber(language[i]):language[i],lengths[i]);}var div=$('<div><label/></div>').addClass(classes.sLength);if(!settings.aanFeatures.l){div[0].id=tableId+'_length';}div.children().append(settings.oLanguage.sLengthMenu.replace('_MENU_',select[0].outerHTML));// Can't use `select` variable as user might provide their own and the\n// reference is broken by the use of outerHTML\n$('select',div).val(settings._iDisplayLength).on('change.DT',function(e){_fnLengthChange(settings,$(this).val());_fnDraw(settings);});// Update node value whenever anything changes the table's length\n$(settings.nTable).on('length.dt.DT',function(e,s,len){if(settings===s){$('select',div).val(len);}});return div[0];}/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Note that most of the paging logic is done in\r\n\t * DataTable.ext.pager\r\n\t */ /**\r\n\t * Generate the node required for default pagination\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @returns {node} Pagination feature node\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnFeatureHtmlPaginate(settings){var type=settings.sPaginationType,plugin=DataTable.ext.pager[type],modern=typeof plugin==='function',redraw=function(settings){_fnDraw(settings);},node=$('<div/>').addClass(settings.oClasses.sPaging+type)[0],features=settings.aanFeatures;if(!modern){plugin.fnInit(settings,node,redraw);}/* Add a draw callback for the pagination on first instance, to update the paging display */if(!features.p){node.id=settings.sTableId+'_paginate';settings.aoDrawCallback.push({\"fn\":function(settings){if(modern){var start=settings._iDisplayStart,len=settings._iDisplayLength,visRecords=settings.fnRecordsDisplay(),all=len===-1,page=all?0:Math.ceil(start/len),pages=all?1:Math.ceil(visRecords/len),buttons=plugin(page,pages),i,ien;for(i=0,ien=features.p.length;i<ien;i++){_fnRenderer(settings,'pageButton')(settings,features.p[i],i,buttons,page,pages);}}else{plugin.fnUpdate(settings,redraw);}},\"sName\":\"pagination\"});}return node;}/**\r\n\t * Alter the display settings to change the page\r\n\t *  @param {object} settings DataTables settings object\r\n\t *  @param {string|int} action Paging action to take: \"first\", \"previous\",\r\n\t *    \"next\" or \"last\" or page number to jump to (integer)\r\n\t *  @param [bool] redraw Automatically draw the update or not\r\n\t *  @returns {bool} true page has changed, false - no change\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnPageChange(settings,action,redraw){var start=settings._iDisplayStart,len=settings._iDisplayLength,records=settings.fnRecordsDisplay();if(records===0||len===-1){start=0;}else if(typeof action===\"number\"){start=action*len;if(start>records){start=0;}}else if(action==\"first\"){start=0;}else if(action==\"previous\"){start=len>=0?start-len:0;if(start<0){start=0;}}else if(action==\"next\"){if(start+len<records){start+=len;}}else if(action==\"last\"){start=Math.floor((records-1)/len)*len;}else{_fnLog(settings,0,\"Unknown paging action: \"+action,5);}var changed=settings._iDisplayStart!==start;settings._iDisplayStart=start;if(changed){_fnCallbackFire(settings,null,'page',[settings]);if(redraw){_fnDraw(settings);}}return changed;}/**\r\n\t * Generate the node required for the processing node\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @returns {node} Processing element\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnFeatureHtmlProcessing(settings){return $('<div/>',{'id':!settings.aanFeatures.r?settings.sTableId+'_processing':null,'class':settings.oClasses.sProcessing}).html(settings.oLanguage.sProcessing).insertBefore(settings.nTable)[0];}/**\r\n\t * Display or hide the processing indicator\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {bool} show Show the processing indicator (true) or not (false)\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnProcessingDisplay(settings,show){if(settings.oFeatures.bProcessing){$(settings.aanFeatures.r).css('display',show?'block':'none');}_fnCallbackFire(settings,null,'processing',[settings,show]);}/**\r\n\t * Add any control elements for the table - specifically scrolling\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @returns {node} Node to add to the DOM\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnFeatureHtmlTable(settings){var table=$(settings.nTable);// Add the ARIA grid role to the table\ntable.attr('role','grid');// Scrolling from here on in\nvar scroll=settings.oScroll;if(scroll.sX===''&&scroll.sY===''){return settings.nTable;}var scrollX=scroll.sX;var scrollY=scroll.sY;var classes=settings.oClasses;var caption=table.children('caption');var captionSide=caption.length?caption[0]._captionSide:null;var headerClone=$(table[0].cloneNode(false));var footerClone=$(table[0].cloneNode(false));var footer=table.children('tfoot');var _div='<div/>';var size=function(s){return!s?null:_fnStringToCss(s);};if(!footer.length){footer=null;}/*\r\n\t\t * The HTML structure that we want to generate in this function is:\r\n\t\t *  div - scroller\r\n\t\t *    div - scroll head\r\n\t\t *      div - scroll head inner\r\n\t\t *        table - scroll head table\r\n\t\t *          thead - thead\r\n\t\t *    div - scroll body\r\n\t\t *      table - table (master table)\r\n\t\t *        thead - thead clone for sizing\r\n\t\t *        tbody - tbody\r\n\t\t *    div - scroll foot\r\n\t\t *      div - scroll foot inner\r\n\t\t *        table - scroll foot table\r\n\t\t *          tfoot - tfoot\r\n\t\t */var scroller=$(_div,{'class':classes.sScrollWrapper}).append($(_div,{'class':classes.sScrollHead}).css({overflow:'hidden',position:'relative',border:0,width:scrollX?size(scrollX):'100%'}).append($(_div,{'class':classes.sScrollHeadInner}).css({'box-sizing':'content-box',width:scroll.sXInner||'100%'}).append(headerClone.removeAttr('id').css('margin-left',0).append(captionSide==='top'?caption:null).append(table.children('thead'))))).append($(_div,{'class':classes.sScrollBody}).css({position:'relative',overflow:'auto',width:size(scrollX)}).append(table));if(footer){scroller.append($(_div,{'class':classes.sScrollFoot}).css({overflow:'hidden',border:0,width:scrollX?size(scrollX):'100%'}).append($(_div,{'class':classes.sScrollFootInner}).append(footerClone.removeAttr('id').css('margin-left',0).append(captionSide==='bottom'?caption:null).append(table.children('tfoot')))));}var children=scroller.children();var scrollHead=children[0];var scrollBody=children[1];var scrollFoot=footer?children[2]:null;// When the body is scrolled, then we also want to scroll the headers\nif(scrollX){$(scrollBody).on('scroll.DT',function(e){var scrollLeft=this.scrollLeft;scrollHead.scrollLeft=scrollLeft;if(footer){scrollFoot.scrollLeft=scrollLeft;}});}$(scrollBody).css(scrollY&&scroll.bCollapse?'max-height':'height',scrollY);settings.nScrollHead=scrollHead;settings.nScrollBody=scrollBody;settings.nScrollFoot=scrollFoot;// On redraw - align columns\nsettings.aoDrawCallback.push({\"fn\":_fnScrollDraw,\"sName\":\"scrolling\"});return scroller[0];}/**\r\n\t * Update the header, footer and body tables for resizing - i.e. column\r\n\t * alignment.\r\n\t *\r\n\t * Welcome to the most horrible function DataTables. The process that this\r\n\t * function follows is basically:\r\n\t *   1. Re-create the table inside the scrolling div\r\n\t *   2. Take live measurements from the DOM\r\n\t *   3. Apply the measurements to align the columns\r\n\t *   4. Clean up\r\n\t *\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnScrollDraw(settings){// Given that this is such a monster function, a lot of variables are use\n// to try and keep the minimised size as small as possible\nvar scroll=settings.oScroll,scrollX=scroll.sX,scrollXInner=scroll.sXInner,scrollY=scroll.sY,barWidth=scroll.iBarWidth,divHeader=$(settings.nScrollHead),divHeaderStyle=divHeader[0].style,divHeaderInner=divHeader.children('div'),divHeaderInnerStyle=divHeaderInner[0].style,divHeaderTable=divHeaderInner.children('table'),divBodyEl=settings.nScrollBody,divBody=$(divBodyEl),divBodyStyle=divBodyEl.style,divFooter=$(settings.nScrollFoot),divFooterInner=divFooter.children('div'),divFooterTable=divFooterInner.children('table'),header=$(settings.nTHead),table=$(settings.nTable),tableEl=table[0],tableStyle=tableEl.style,footer=settings.nTFoot?$(settings.nTFoot):null,browser=settings.oBrowser,ie67=browser.bScrollOversize,dtHeaderCells=_pluck(settings.aoColumns,'nTh'),headerTrgEls,footerTrgEls,headerSrcEls,footerSrcEls,headerCopy,footerCopy,headerWidths=[],footerWidths=[],headerContent=[],footerContent=[],idx,correction,sanityWidth,zeroOut=function(nSizer){var style=nSizer.style;style.paddingTop=\"0\";style.paddingBottom=\"0\";style.borderTopWidth=\"0\";style.borderBottomWidth=\"0\";style.height=0;};// If the scrollbar visibility has changed from the last draw, we need to\n// adjust the column sizes as the table width will have changed to account\n// for the scrollbar\nvar scrollBarVis=divBodyEl.scrollHeight>divBodyEl.clientHeight;if(settings.scrollBarVis!==scrollBarVis&&settings.scrollBarVis!==undefined){settings.scrollBarVis=scrollBarVis;_fnAdjustColumnSizing(settings);return;// adjust column sizing will call this function again\n}else{settings.scrollBarVis=scrollBarVis;}/*\r\n\t\t * 1. Re-create the table inside the scrolling div\r\n\t\t */ // Remove the old minimised thead and tfoot elements in the inner table\ntable.children('thead, tfoot').remove();if(footer){footerCopy=footer.clone().prependTo(table);footerTrgEls=footer.find('tr');// the original tfoot is in its own table and must be sized\nfooterSrcEls=footerCopy.find('tr');}// Clone the current header and footer elements and then place it into the inner table\nheaderCopy=header.clone().prependTo(table);headerTrgEls=header.find('tr');// original header is in its own table\nheaderSrcEls=headerCopy.find('tr');headerCopy.find('th, td').removeAttr('tabindex');/*\r\n\t\t * 2. Take live measurements from the DOM - do not alter the DOM itself!\r\n\t\t */ // Remove old sizing and apply the calculated column widths\n// Get the unique column headers in the newly created (cloned) header. We want to apply the\n// calculated sizes to this header\nif(!scrollX){divBodyStyle.width='100%';divHeader[0].style.width='100%';}$.each(_fnGetUniqueThs(settings,headerCopy),function(i,el){idx=_fnVisibleToColumnIndex(settings,i);el.style.width=settings.aoColumns[idx].sWidth;});if(footer){_fnApplyToChildren(function(n){n.style.width=\"\";},footerSrcEls);}// Size the table as a whole\nsanityWidth=table.outerWidth();if(scrollX===\"\"){// No x scrolling\ntableStyle.width=\"100%\";// IE7 will make the width of the table when 100% include the scrollbar\n// - which is shouldn't. When there is a scrollbar we need to take this\n// into account.\nif(ie67&&(table.find('tbody').height()>divBodyEl.offsetHeight||divBody.css('overflow-y')==\"scroll\")){tableStyle.width=_fnStringToCss(table.outerWidth()-barWidth);}// Recalculate the sanity width\nsanityWidth=table.outerWidth();}else if(scrollXInner!==\"\"){// legacy x scroll inner has been given - use it\ntableStyle.width=_fnStringToCss(scrollXInner);// Recalculate the sanity width\nsanityWidth=table.outerWidth();}// Hidden header should have zero height, so remove padding and borders. Then\n// set the width based on the real headers\n// Apply all styles in one pass\n_fnApplyToChildren(zeroOut,headerSrcEls);// Read all widths in next pass\n_fnApplyToChildren(function(nSizer){headerContent.push(nSizer.innerHTML);headerWidths.push(_fnStringToCss($(nSizer).css('width')));},headerSrcEls);// Apply all widths in final pass\n_fnApplyToChildren(function(nToSize,i){// Only apply widths to the DataTables detected header cells - this\n// prevents complex headers from having contradictory sizes applied\nif($.inArray(nToSize,dtHeaderCells)!==-1){nToSize.style.width=headerWidths[i];}},headerTrgEls);$(headerSrcEls).height(0);/* Same again with the footer if we have one */if(footer){_fnApplyToChildren(zeroOut,footerSrcEls);_fnApplyToChildren(function(nSizer){footerContent.push(nSizer.innerHTML);footerWidths.push(_fnStringToCss($(nSizer).css('width')));},footerSrcEls);_fnApplyToChildren(function(nToSize,i){nToSize.style.width=footerWidths[i];},footerTrgEls);$(footerSrcEls).height(0);}/*\r\n\t\t * 3. Apply the measurements\r\n\t\t */ // \"Hide\" the header and footer that we used for the sizing. We need to keep\n// the content of the cell so that the width applied to the header and body\n// both match, but we want to hide it completely. We want to also fix their\n// width to what they currently are\n_fnApplyToChildren(function(nSizer,i){nSizer.innerHTML='<div class=\"dataTables_sizing\">'+headerContent[i]+'</div>';nSizer.childNodes[0].style.height=\"0\";nSizer.childNodes[0].style.overflow=\"hidden\";nSizer.style.width=headerWidths[i];},headerSrcEls);if(footer){_fnApplyToChildren(function(nSizer,i){nSizer.innerHTML='<div class=\"dataTables_sizing\">'+footerContent[i]+'</div>';nSizer.childNodes[0].style.height=\"0\";nSizer.childNodes[0].style.overflow=\"hidden\";nSizer.style.width=footerWidths[i];},footerSrcEls);}// Sanity check that the table is of a sensible width. If not then we are going to get\n// misalignment - try to prevent this by not allowing the table to shrink below its min width\nif(table.outerWidth()<sanityWidth){// The min width depends upon if we have a vertical scrollbar visible or not */\ncorrection=divBodyEl.scrollHeight>divBodyEl.offsetHeight||divBody.css('overflow-y')==\"scroll\"?sanityWidth+barWidth:sanityWidth;// IE6/7 are a law unto themselves...\nif(ie67&&(divBodyEl.scrollHeight>divBodyEl.offsetHeight||divBody.css('overflow-y')==\"scroll\")){tableStyle.width=_fnStringToCss(correction-barWidth);}// And give the user a warning that we've stopped the table getting too small\nif(scrollX===\"\"||scrollXInner!==\"\"){_fnLog(settings,1,'Possible column misalignment',6);}}else{correction='100%';}// Apply to the container elements\ndivBodyStyle.width=_fnStringToCss(correction);divHeaderStyle.width=_fnStringToCss(correction);if(footer){settings.nScrollFoot.style.width=_fnStringToCss(correction);}/*\r\n\t\t * 4. Clean up\r\n\t\t */if(!scrollY){/* IE7< puts a vertical scrollbar in place (when it shouldn't be) due to subtracting\r\n\t\t\t * the scrollbar height from the visible display, rather than adding it on. We need to\r\n\t\t\t * set the height in order to sort this. Don't want to do it in any other browsers.\r\n\t\t\t */if(ie67){divBodyStyle.height=_fnStringToCss(tableEl.offsetHeight+barWidth);}}/* Finally set the width's of the header and footer tables */var iOuterWidth=table.outerWidth();divHeaderTable[0].style.width=_fnStringToCss(iOuterWidth);divHeaderInnerStyle.width=_fnStringToCss(iOuterWidth);// Figure out if there are scrollbar present - if so then we need a the header and footer to\n// provide a bit more space to allow \"overflow\" scrolling (i.e. past the scrollbar)\nvar bScrolling=table.height()>divBodyEl.clientHeight||divBody.css('overflow-y')==\"scroll\";var padding='padding'+(browser.bScrollbarLeft?'Left':'Right');divHeaderInnerStyle[padding]=bScrolling?barWidth+\"px\":\"0px\";if(footer){divFooterTable[0].style.width=_fnStringToCss(iOuterWidth);divFooterInner[0].style.width=_fnStringToCss(iOuterWidth);divFooterInner[0].style[padding]=bScrolling?barWidth+\"px\":\"0px\";}// Correct DOM ordering for colgroup - comes before the thead\ntable.children('colgroup').insertBefore(table.children('thead'));/* Adjust the position of the header in case we loose the y-scrollbar */divBody.scroll();// If sorting or filtering has occurred, jump the scrolling back to the top\n// only if we aren't holding the position\nif((settings.bSorted||settings.bFiltered)&&!settings._drawHold){divBodyEl.scrollTop=0;}}/**\r\n\t * Apply a given function to the display child nodes of an element array (typically\r\n\t * TD children of TR rows\r\n\t *  @param {function} fn Method to apply to the objects\r\n\t *  @param array {nodes} an1 List of elements to look through for display children\r\n\t *  @param array {nodes} an2 Another list (identical structure to the first) - optional\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnApplyToChildren(fn,an1,an2){var index=0,i=0,iLen=an1.length;var nNode1,nNode2;while(i<iLen){nNode1=an1[i].firstChild;nNode2=an2?an2[i].firstChild:null;while(nNode1){if(nNode1.nodeType===1){if(an2){fn(nNode1,nNode2,index);}else{fn(nNode1,index);}index++;}nNode1=nNode1.nextSibling;nNode2=an2?nNode2.nextSibling:null;}i++;}}var __re_html_remove=/<.*?>/g;/**\r\n\t * Calculate the width of columns for the table\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnCalculateColumnWidths(oSettings){var table=oSettings.nTable,columns=oSettings.aoColumns,scroll=oSettings.oScroll,scrollY=scroll.sY,scrollX=scroll.sX,scrollXInner=scroll.sXInner,columnCount=columns.length,visibleColumns=_fnGetColumns(oSettings,'bVisible'),headerCells=$('th',oSettings.nTHead),tableWidthAttr=table.getAttribute('width'),// from DOM element\ntableContainer=table.parentNode,userInputs=false,i,column,columnIdx,width,outerWidth,browser=oSettings.oBrowser,ie67=browser.bScrollOversize;var styleWidth=table.style.width;if(styleWidth&&styleWidth.indexOf('%')!==-1){tableWidthAttr=styleWidth;}/* Convert any user input sizes into pixel sizes */for(i=0;i<visibleColumns.length;i++){column=columns[visibleColumns[i]];if(column.sWidth!==null){column.sWidth=_fnConvertToWidth(column.sWidthOrig,tableContainer);userInputs=true;}}/* If the number of columns in the DOM equals the number that we have to\r\n\t\t * process in DataTables, then we can use the offsets that are created by\r\n\t\t * the web- browser. No custom sizes can be set in order for this to happen,\r\n\t\t * nor scrolling used\r\n\t\t */if(ie67||!userInputs&&!scrollX&&!scrollY&&columnCount==_fnVisbleColumns(oSettings)&&columnCount==headerCells.length){for(i=0;i<columnCount;i++){var colIdx=_fnVisibleToColumnIndex(oSettings,i);if(colIdx!==null){columns[colIdx].sWidth=_fnStringToCss(headerCells.eq(i).width());}}}else{// Otherwise construct a single row, worst case, table with the widest\n// node in the data, assign any user defined widths, then insert it into\n// the DOM and allow the browser to do all the hard work of calculating\n// table widths\nvar tmpTable=$(table).clone()// don't use cloneNode - IE8 will remove events on the main table\n.css('visibility','hidden').removeAttr('id');// Clean up the table body\ntmpTable.find('tbody tr').remove();var tr=$('<tr/>').appendTo(tmpTable.find('tbody'));// Clone the table header and footer - we can't use the header / footer\n// from the cloned table, since if scrolling is active, the table's\n// real header and footer are contained in different table tags\ntmpTable.find('thead, tfoot').remove();tmpTable.append($(oSettings.nTHead).clone()).append($(oSettings.nTFoot).clone());// Remove any assigned widths from the footer (from scrolling)\ntmpTable.find('tfoot th, tfoot td').css('width','');// Apply custom sizing to the cloned header\nheaderCells=_fnGetUniqueThs(oSettings,tmpTable.find('thead')[0]);for(i=0;i<visibleColumns.length;i++){column=columns[visibleColumns[i]];headerCells[i].style.width=column.sWidthOrig!==null&&column.sWidthOrig!==''?_fnStringToCss(column.sWidthOrig):'';// For scrollX we need to force the column width otherwise the\n// browser will collapse it. If this width is smaller than the\n// width the column requires, then it will have no effect\nif(column.sWidthOrig&&scrollX){$(headerCells[i]).append($('<div/>').css({width:column.sWidthOrig,margin:0,padding:0,border:0,height:1}));}}// Find the widest cell for each column and put it into the table\nif(oSettings.aoData.length){for(i=0;i<visibleColumns.length;i++){columnIdx=visibleColumns[i];column=columns[columnIdx];$(_fnGetWidestNode(oSettings,columnIdx)).clone(false).append(column.sContentPadding).appendTo(tr);}}// Tidy the temporary table - remove name attributes so there aren't\n// duplicated in the dom (radio elements for example)\n$('[name]',tmpTable).removeAttr('name');// Table has been built, attach to the document so we can work with it.\n// A holding element is used, positioned at the top of the container\n// with minimal height, so it has no effect on if the container scrolls\n// or not. Otherwise it might trigger scrolling when it actually isn't\n// needed\nvar holder=$('<div/>').css(scrollX||scrollY?{position:'absolute',top:0,left:0,height:1,right:0,overflow:'hidden'}:{}).append(tmpTable).appendTo(tableContainer);// When scrolling (X or Y) we want to set the width of the table as \n// appropriate. However, when not scrolling leave the table width as it\n// is. This results in slightly different, but I think correct behaviour\nif(scrollX&&scrollXInner){tmpTable.width(scrollXInner);}else if(scrollX){tmpTable.css('width','auto');tmpTable.removeAttr('width');// If there is no width attribute or style, then allow the table to\n// collapse\nif(tmpTable.width()<tableContainer.clientWidth&&tableWidthAttr){tmpTable.width(tableContainer.clientWidth);}}else if(scrollY){tmpTable.width(tableContainer.clientWidth);}else if(tableWidthAttr){tmpTable.width(tableWidthAttr);}// Get the width of each column in the constructed table - we need to\n// know the inner width (so it can be assigned to the other table's\n// cells) and the outer width so we can calculate the full width of the\n// table. This is safe since DataTables requires a unique cell for each\n// column, but if ever a header can span multiple columns, this will\n// need to be modified.\nvar total=0;for(i=0;i<visibleColumns.length;i++){var cell=$(headerCells[i]);var border=cell.outerWidth()-cell.width();// Use getBounding... where possible (not IE8-) because it can give\n// sub-pixel accuracy, which we then want to round up!\nvar bounding=browser.bBounding?Math.ceil(headerCells[i].getBoundingClientRect().width):cell.outerWidth();// Total is tracked to remove any sub-pixel errors as the outerWidth\n// of the table might not equal the total given here (IE!).\ntotal+=bounding;// Width for each column to use\ncolumns[visibleColumns[i]].sWidth=_fnStringToCss(bounding-border);}table.style.width=_fnStringToCss(total);// Finished with the table - ditch it\nholder.remove();}// If there is a width attr, we want to attach an event listener which\n// allows the table sizing to automatically adjust when the window is\n// resized. Use the width attr rather than CSS, since we can't know if the\n// CSS is a relative value or absolute - DOM read is always px.\nif(tableWidthAttr){table.style.width=_fnStringToCss(tableWidthAttr);}if((tableWidthAttr||scrollX)&&!oSettings._reszEvt){var bindResize=function(){$(window).on('resize.DT-'+oSettings.sInstance,_fnThrottle(function(){_fnAdjustColumnSizing(oSettings);}));};// IE6/7 will crash if we bind a resize event handler on page load.\n// To be removed in 1.11 which drops IE6/7 support\nif(ie67){setTimeout(bindResize,1000);}else{bindResize();}oSettings._reszEvt=true;}}/**\r\n\t * Throttle the calls to a function. Arguments and context are maintained for\r\n\t * the throttled function\r\n\t *  @param {function} fn Function to be called\r\n\t *  @param {int} [freq=200] call frequency in mS\r\n\t *  @returns {function} wrapped function\r\n\t *  @memberof DataTable#oApi\r\n\t */var _fnThrottle=DataTable.util.throttle;/**\r\n\t * Convert a CSS unit width to pixels (e.g. 2em)\r\n\t *  @param {string} width width to be converted\r\n\t *  @param {node} parent parent to get the with for (required for relative widths) - optional\r\n\t *  @returns {int} width in pixels\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnConvertToWidth(width,parent){if(!width){return 0;}var n=$('<div/>').css('width',_fnStringToCss(width)).appendTo(parent||document.body);var val=n[0].offsetWidth;n.remove();return val;}/**\r\n\t * Get the widest node\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {int} colIdx column of interest\r\n\t *  @returns {node} widest table node\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnGetWidestNode(settings,colIdx){var idx=_fnGetMaxLenString(settings,colIdx);if(idx<0){return null;}var data=settings.aoData[idx];return!data.nTr?// Might not have been created when deferred rendering\n$('<td/>').html(_fnGetCellData(settings,idx,colIdx,'display'))[0]:data.anCells[colIdx];}/**\r\n\t * Get the maximum strlen for each data column\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {int} colIdx column of interest\r\n\t *  @returns {string} max string length for each column\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnGetMaxLenString(settings,colIdx){var s,max=-1,maxIdx=-1;for(var i=0,ien=settings.aoData.length;i<ien;i++){s=_fnGetCellData(settings,i,colIdx,'display')+'';s=s.replace(__re_html_remove,'');s=s.replace(/&nbsp;/g,' ');if(s.length>max){max=s.length;maxIdx=i;}}return maxIdx;}/**\r\n\t * Append a CSS unit (only if required) to a string\r\n\t *  @param {string} value to css-ify\r\n\t *  @returns {string} value with css unit\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnStringToCss(s){if(s===null){return'0px';}if(typeof s=='number'){return s<0?'0px':s+'px';}// Check it has a unit character already\nreturn s.match(/\\d$/)?s+'px':s;}function _fnSortFlatten(settings){var i,iLen,k,kLen,aSort=[],aiOrig=[],aoColumns=settings.aoColumns,aDataSort,iCol,sType,srcCol,fixed=settings.aaSortingFixed,fixedObj=$.isPlainObject(fixed),nestedSort=[],add=function(a){if(a.length&&!$.isArray(a[0])){// 1D array\nnestedSort.push(a);}else{// 2D array\n$.merge(nestedSort,a);}};// Build the sort array, with pre-fix and post-fix options if they have been\n// specified\nif($.isArray(fixed)){add(fixed);}if(fixedObj&&fixed.pre){add(fixed.pre);}add(settings.aaSorting);if(fixedObj&&fixed.post){add(fixed.post);}for(i=0;i<nestedSort.length;i++){srcCol=nestedSort[i][0];aDataSort=aoColumns[srcCol].aDataSort;for(k=0,kLen=aDataSort.length;k<kLen;k++){iCol=aDataSort[k];sType=aoColumns[iCol].sType||'string';if(nestedSort[i]._idx===undefined){nestedSort[i]._idx=$.inArray(nestedSort[i][1],aoColumns[iCol].asSorting);}aSort.push({src:srcCol,col:iCol,dir:nestedSort[i][1],index:nestedSort[i]._idx,type:sType,formatter:DataTable.ext.type.order[sType+\"-pre\"]});}}return aSort;}/**\r\n\t * Change the order of the table\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t *  @todo This really needs split up!\r\n\t */function _fnSort(oSettings){var i,ien,iLen,j,jLen,k,kLen,sDataType,nTh,aiOrig=[],oExtSort=DataTable.ext.type.order,aoData=oSettings.aoData,aoColumns=oSettings.aoColumns,aDataSort,data,iCol,sType,oSort,formatters=0,sortCol,displayMaster=oSettings.aiDisplayMaster,aSort;// Resolve any column types that are unknown due to addition or invalidation\n// @todo Can this be moved into a 'data-ready' handler which is called when\n//   data is going to be used in the table?\n_fnColumnTypes(oSettings);aSort=_fnSortFlatten(oSettings);for(i=0,ien=aSort.length;i<ien;i++){sortCol=aSort[i];// Track if we can use the fast sort algorithm\nif(sortCol.formatter){formatters++;}// Load the data needed for the sort, for each cell\n_fnSortData(oSettings,sortCol.col);}/* No sorting required if server-side or no sorting array */if(_fnDataSource(oSettings)!='ssp'&&aSort.length!==0){// Create a value - key array of the current row positions such that we can use their\n// current position during the sort, if values match, in order to perform stable sorting\nfor(i=0,iLen=displayMaster.length;i<iLen;i++){aiOrig[displayMaster[i]]=i;}/* Do the sort - here we want multi-column sorting based on a given data source (column)\r\n\t\t\t * and sorting function (from oSort) in a certain direction. It's reasonably complex to\r\n\t\t\t * follow on it's own, but this is what we want (example two column sorting):\r\n\t\t\t *  fnLocalSorting = function(a,b){\r\n\t\t\t *    var iTest;\r\n\t\t\t *    iTest = oSort['string-asc']('data11', 'data12');\r\n\t\t\t *      if (iTest !== 0)\r\n\t\t\t *        return iTest;\r\n\t\t\t *    iTest = oSort['numeric-desc']('data21', 'data22');\r\n\t\t\t *    if (iTest !== 0)\r\n\t\t\t *      return iTest;\r\n\t\t\t *    return oSort['numeric-asc']( aiOrig[a], aiOrig[b] );\r\n\t\t\t *  }\r\n\t\t\t * Basically we have a test for each sorting column, if the data in that column is equal,\r\n\t\t\t * test the next column. If all columns match, then we use a numeric sort on the row\r\n\t\t\t * positions in the original data array to provide a stable sort.\r\n\t\t\t *\r\n\t\t\t * Note - I know it seems excessive to have two sorting methods, but the first is around\r\n\t\t\t * 15% faster, so the second is only maintained for backwards compatibility with sorting\r\n\t\t\t * methods which do not have a pre-sort formatting function.\r\n\t\t\t */if(formatters===aSort.length){// All sort types have formatting functions\ndisplayMaster.sort(function(a,b){var x,y,k,test,sort,len=aSort.length,dataA=aoData[a]._aSortData,dataB=aoData[b]._aSortData;for(k=0;k<len;k++){sort=aSort[k];x=dataA[sort.col];y=dataB[sort.col];test=x<y?-1:x>y?1:0;if(test!==0){return sort.dir==='asc'?test:-test;}}x=aiOrig[a];y=aiOrig[b];return x<y?-1:x>y?1:0;});}else{// Depreciated - remove in 1.11 (providing a plug-in option)\n// Not all sort types have formatting methods, so we have to call their sorting\n// methods.\ndisplayMaster.sort(function(a,b){var x,y,k,l,test,sort,fn,len=aSort.length,dataA=aoData[a]._aSortData,dataB=aoData[b]._aSortData;for(k=0;k<len;k++){sort=aSort[k];x=dataA[sort.col];y=dataB[sort.col];fn=oExtSort[sort.type+\"-\"+sort.dir]||oExtSort[\"string-\"+sort.dir];test=fn(x,y);if(test!==0){return test;}}x=aiOrig[a];y=aiOrig[b];return x<y?-1:x>y?1:0;});}}/* Tell the draw function that we have sorted the data */oSettings.bSorted=true;}function _fnSortAria(settings){var label;var nextSort;var columns=settings.aoColumns;var aSort=_fnSortFlatten(settings);var oAria=settings.oLanguage.oAria;// ARIA attributes - need to loop all columns, to update all (removing old\n// attributes as needed)\nfor(var i=0,iLen=columns.length;i<iLen;i++){var col=columns[i];var asSorting=col.asSorting;var sTitle=col.sTitle.replace(/<.*?>/g,\"\");var th=col.nTh;// IE7 is throwing an error when setting these properties with jQuery's\n// attr() and removeAttr() methods...\nth.removeAttribute('aria-sort');/* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */if(col.bSortable){if(aSort.length>0&&aSort[0].col==i){th.setAttribute('aria-sort',aSort[0].dir==\"asc\"?\"ascending\":\"descending\");nextSort=asSorting[aSort[0].index+1]||asSorting[0];}else{nextSort=asSorting[0];}label=sTitle+(nextSort===\"asc\"?oAria.sSortAscending:oAria.sSortDescending);}else{label=sTitle;}th.setAttribute('aria-label',label);}}/**\r\n\t * Function to run on user sort request\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {node} attachTo node to attach the handler to\r\n\t *  @param {int} colIdx column sorting index\r\n\t *  @param {boolean} [append=false] Append the requested sort to the existing\r\n\t *    sort if true (i.e. multi-column sort)\r\n\t *  @param {function} [callback] callback function\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnSortListener(settings,colIdx,append,callback){var col=settings.aoColumns[colIdx];var sorting=settings.aaSorting;var asSorting=col.asSorting;var nextSortIdx;var next=function(a,overflow){var idx=a._idx;if(idx===undefined){idx=$.inArray(a[1],asSorting);}return idx+1<asSorting.length?idx+1:overflow?null:0;};// Convert to 2D array if needed\nif(typeof sorting[0]==='number'){sorting=settings.aaSorting=[sorting];}// If appending the sort then we are multi-column sorting\nif(append&&settings.oFeatures.bSortMulti){// Are we already doing some kind of sort on this column?\nvar sortIdx=$.inArray(colIdx,_pluck(sorting,'0'));if(sortIdx!==-1){// Yes, modify the sort\nnextSortIdx=next(sorting[sortIdx],true);if(nextSortIdx===null&&sorting.length===1){nextSortIdx=0;// can't remove sorting completely\n}if(nextSortIdx===null){sorting.splice(sortIdx,1);}else{sorting[sortIdx][1]=asSorting[nextSortIdx];sorting[sortIdx]._idx=nextSortIdx;}}else{// No sort on this column yet\nsorting.push([colIdx,asSorting[0],0]);sorting[sorting.length-1]._idx=0;}}else if(sorting.length&&sorting[0][0]==colIdx){// Single column - already sorting on this column, modify the sort\nnextSortIdx=next(sorting[0]);sorting.length=1;sorting[0][1]=asSorting[nextSortIdx];sorting[0]._idx=nextSortIdx;}else{// Single column - sort only on this column\nsorting.length=0;sorting.push([colIdx,asSorting[0]]);sorting[0]._idx=0;}// Run the sort by calling a full redraw\n_fnReDraw(settings);// callback used for async user interaction\nif(typeof callback=='function'){callback(settings);}}/**\r\n\t * Attach a sort handler (click) to a node\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {node} attachTo node to attach the handler to\r\n\t *  @param {int} colIdx column sorting index\r\n\t *  @param {function} [callback] callback function\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnSortAttachListener(settings,attachTo,colIdx,callback){var col=settings.aoColumns[colIdx];_fnBindAction(attachTo,{},function(e){/* If the column is not sortable - don't to anything */if(col.bSortable===false){return;}// If processing is enabled use a timeout to allow the processing\n// display to be shown - otherwise to it synchronously\nif(settings.oFeatures.bProcessing){_fnProcessingDisplay(settings,true);setTimeout(function(){_fnSortListener(settings,colIdx,e.shiftKey,callback);// In server-side processing, the draw callback will remove the\n// processing display\nif(_fnDataSource(settings)!=='ssp'){_fnProcessingDisplay(settings,false);}},0);}else{_fnSortListener(settings,colIdx,e.shiftKey,callback);}});}/**\r\n\t * Set the sorting classes on table's body, Note: it is safe to call this function\r\n\t * when bSort and bSortClasses are false\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnSortingClasses(settings){var oldSort=settings.aLastSort;var sortClass=settings.oClasses.sSortColumn;var sort=_fnSortFlatten(settings);var features=settings.oFeatures;var i,ien,colIdx;if(features.bSort&&features.bSortClasses){// Remove old sorting classes\nfor(i=0,ien=oldSort.length;i<ien;i++){colIdx=oldSort[i].src;// Remove column sorting\n$(_pluck(settings.aoData,'anCells',colIdx)).removeClass(sortClass+(i<2?i+1:3));}// Add new column sorting\nfor(i=0,ien=sort.length;i<ien;i++){colIdx=sort[i].src;$(_pluck(settings.aoData,'anCells',colIdx)).addClass(sortClass+(i<2?i+1:3));}}settings.aLastSort=sort;}// Get the data to sort a column, be it from cache, fresh (populating the\n// cache), or from a sort formatter\nfunction _fnSortData(settings,idx){// Custom sorting function - provided by the sort data type\nvar column=settings.aoColumns[idx];var customSort=DataTable.ext.order[column.sSortDataType];var customData;if(customSort){customData=customSort.call(settings.oInstance,settings,idx,_fnColumnIndexToVisible(settings,idx));}// Use / populate cache\nvar row,cellData;var formatter=DataTable.ext.type.order[column.sType+\"-pre\"];for(var i=0,ien=settings.aoData.length;i<ien;i++){row=settings.aoData[i];if(!row._aSortData){row._aSortData=[];}if(!row._aSortData[idx]||customSort){cellData=customSort?customData[i]:// If there was a custom sort function, use data from there\n_fnGetCellData(settings,i,idx,'sort');row._aSortData[idx]=formatter?formatter(cellData):cellData;}}}/**\r\n\t * Save the state of a table\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnSaveState(settings){if(!settings.oFeatures.bStateSave||settings.bDestroying){return;}/* Store the interesting variables */var state={time:+new Date(),start:settings._iDisplayStart,length:settings._iDisplayLength,order:$.extend(true,[],settings.aaSorting),search:_fnSearchToCamel(settings.oPreviousSearch),columns:$.map(settings.aoColumns,function(col,i){return{visible:col.bVisible,search:_fnSearchToCamel(settings.aoPreSearchCols[i])};})};_fnCallbackFire(settings,\"aoStateSaveParams\",'stateSaveParams',[settings,state]);settings.oSavedState=state;settings.fnStateSaveCallback.call(settings.oInstance,settings,state);}/**\r\n\t * Attempt to load a saved table state\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {object} oInit DataTables init object so we can override settings\r\n\t *  @param {function} callback Callback to execute when the state has been loaded\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnLoadState(settings,oInit,callback){var i,ien;var columns=settings.aoColumns;var loaded=function(s){if(!s||!s.time){callback();return;}// Allow custom and plug-in manipulation functions to alter the saved data set and\n// cancelling of loading by returning false\nvar abStateLoad=_fnCallbackFire(settings,'aoStateLoadParams','stateLoadParams',[settings,s]);if($.inArray(false,abStateLoad)!==-1){callback();return;}// Reject old data\nvar duration=settings.iStateDuration;if(duration>0&&s.time<+new Date()-duration*1000){callback();return;}// Number of columns have changed - all bets are off, no restore of settings\nif(s.columns&&columns.length!==s.columns.length){callback();return;}// Store the saved state so it might be accessed at any time\nsettings.oLoadedState=$.extend(true,{},s);// Restore key features - todo - for 1.11 this needs to be done by\n// subscribed events\nif(s.start!==undefined){settings._iDisplayStart=s.start;settings.iInitDisplayStart=s.start;}if(s.length!==undefined){settings._iDisplayLength=s.length;}// Order\nif(s.order!==undefined){settings.aaSorting=[];$.each(s.order,function(i,col){settings.aaSorting.push(col[0]>=columns.length?[0,col[1]]:col);});}// Search\nif(s.search!==undefined){$.extend(settings.oPreviousSearch,_fnSearchToHung(s.search));}// Columns\n//\nif(s.columns){for(i=0,ien=s.columns.length;i<ien;i++){var col=s.columns[i];// Visibility\nif(col.visible!==undefined){columns[i].bVisible=col.visible;}// Search\nif(col.search!==undefined){$.extend(settings.aoPreSearchCols[i],_fnSearchToHung(col.search));}}}_fnCallbackFire(settings,'aoStateLoaded','stateLoaded',[settings,s]);callback();};if(!settings.oFeatures.bStateSave){callback();return;}var state=settings.fnStateLoadCallback.call(settings.oInstance,settings,loaded);if(state!==undefined){loaded(state);}// otherwise, wait for the loaded callback to be executed\n}/**\r\n\t * Return the settings object for a particular table\r\n\t *  @param {node} table table we are using as a dataTable\r\n\t *  @returns {object} Settings object - or null if not found\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnSettingsFromNode(table){var settings=DataTable.settings;var idx=$.inArray(table,_pluck(settings,'nTable'));return idx!==-1?settings[idx]:null;}/**\r\n\t * Log an error message\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {int} level log error messages, or display them to the user\r\n\t *  @param {string} msg error message\r\n\t *  @param {int} tn Technical note id to get more information about the error.\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnLog(settings,level,msg,tn){msg='DataTables warning: '+(settings?'table id='+settings.sTableId+' - ':'')+msg;if(tn){msg+='. For more information about this error, please see '+'http://datatables.net/tn/'+tn;}if(!level){// Backwards compatibility pre 1.10\nvar ext=DataTable.ext;var type=ext.sErrMode||ext.errMode;if(settings){_fnCallbackFire(settings,null,'error',[settings,tn,msg]);}if(type=='alert'){alert(msg);}else if(type=='throw'){throw new Error(msg);}else if(typeof type=='function'){type(settings,tn,msg);}}else if(window.console&&console.log){console.log(msg);}}/**\r\n\t * See if a property is defined on one object, if so assign it to the other object\r\n\t *  @param {object} ret target object\r\n\t *  @param {object} src source object\r\n\t *  @param {string} name property\r\n\t *  @param {string} [mappedName] name to map too - optional, name used if not given\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnMap(ret,src,name,mappedName){if($.isArray(name)){$.each(name,function(i,val){if($.isArray(val)){_fnMap(ret,src,val[0],val[1]);}else{_fnMap(ret,src,val);}});return;}if(mappedName===undefined){mappedName=name;}if(src[name]!==undefined){ret[mappedName]=src[name];}}/**\r\n\t * Extend objects - very similar to jQuery.extend, but deep copy objects, and\r\n\t * shallow copy arrays. The reason we need to do this, is that we don't want to\r\n\t * deep copy array init values (such as aaSorting) since the dev wouldn't be\r\n\t * able to override them, but we do want to deep copy arrays.\r\n\t *  @param {object} out Object to extend\r\n\t *  @param {object} extender Object from which the properties will be applied to\r\n\t *      out\r\n\t *  @param {boolean} breakRefs If true, then arrays will be sliced to take an\r\n\t *      independent copy with the exception of the `data` or `aaData` parameters\r\n\t *      if they are present. This is so you can pass in a collection to\r\n\t *      DataTables and have that used as your data source without breaking the\r\n\t *      references\r\n\t *  @returns {object} out Reference, just for convenience - out === the return.\r\n\t *  @memberof DataTable#oApi\r\n\t *  @todo This doesn't take account of arrays inside the deep copied objects.\r\n\t */function _fnExtend(out,extender,breakRefs){var val;for(var prop in extender){if(extender.hasOwnProperty(prop)){val=extender[prop];if($.isPlainObject(val)){if(!$.isPlainObject(out[prop])){out[prop]={};}$.extend(true,out[prop],val);}else if(breakRefs&&prop!=='data'&&prop!=='aaData'&&$.isArray(val)){out[prop]=val.slice();}else{out[prop]=val;}}}return out;}/**\r\n\t * Bind an event handers to allow a click or return key to activate the callback.\r\n\t * This is good for accessibility since a return on the keyboard will have the\r\n\t * same effect as a click, if the element has focus.\r\n\t *  @param {element} n Element to bind the action to\r\n\t *  @param {object} oData Data object to pass to the triggered function\r\n\t *  @param {function} fn Callback function for when the event is triggered\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnBindAction(n,oData,fn){$(n).on('click.DT',oData,function(e){$(n).blur();// Remove focus outline for mouse users\nfn(e);}).on('keypress.DT',oData,function(e){if(e.which===13){e.preventDefault();fn(e);}}).on('selectstart.DT',function(){/* Take the brutal approach to cancelling text selection */return false;});}/**\r\n\t * Register a callback function. Easily allows a callback function to be added to\r\n\t * an array store of callback functions that can then all be called together.\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {string} sStore Name of the array storage for the callbacks in oSettings\r\n\t *  @param {function} fn Function to be called back\r\n\t *  @param {string} sName Identifying name for the callback (i.e. a label)\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnCallbackReg(oSettings,sStore,fn,sName){if(fn){oSettings[sStore].push({\"fn\":fn,\"sName\":sName});}}/**\r\n\t * Fire callback functions and trigger events. Note that the loop over the\r\n\t * callback array store is done backwards! Further note that you do not want to\r\n\t * fire off triggers in time sensitive applications (for example cell creation)\r\n\t * as its slow.\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {string} callbackArr Name of the array storage for the callbacks in\r\n\t *      oSettings\r\n\t *  @param {string} eventName Name of the jQuery custom event to trigger. If\r\n\t *      null no trigger is fired\r\n\t *  @param {array} args Array of arguments to pass to the callback function /\r\n\t *      trigger\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnCallbackFire(settings,callbackArr,eventName,args){var ret=[];if(callbackArr){ret=$.map(settings[callbackArr].slice().reverse(),function(val,i){return val.fn.apply(settings.oInstance,args);});}if(eventName!==null){var e=$.Event(eventName+'.dt');$(settings.nTable).trigger(e,args);ret.push(e.result);}return ret;}function _fnLengthOverflow(settings){var start=settings._iDisplayStart,end=settings.fnDisplayEnd(),len=settings._iDisplayLength;/* If we have space to show extra rows (backing up from the end point - then do so */if(start>=end){start=end-len;}// Keep the start record on the current page\nstart-=start%len;if(len===-1||start<0){start=0;}settings._iDisplayStart=start;}function _fnRenderer(settings,type){var renderer=settings.renderer;var host=DataTable.ext.renderer[type];if($.isPlainObject(renderer)&&renderer[type]){// Specific renderer for this type. If available use it, otherwise use\n// the default.\nreturn host[renderer[type]]||host._;}else if(typeof renderer==='string'){// Common renderer - if there is one available for this type use it,\n// otherwise use the default\nreturn host[renderer]||host._;}// Use the default\nreturn host._;}/**\r\n\t * Detect the data source being used for the table. Used to simplify the code\r\n\t * a little (ajax) and to make it compress a little smaller.\r\n\t *\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @returns {string} Data source\r\n\t *  @memberof DataTable#oApi\r\n\t */function _fnDataSource(settings){if(settings.oFeatures.bServerSide){return'ssp';}else if(settings.ajax||settings.sAjaxSource){return'ajax';}return'dom';}/**\r\n\t * Computed structure of the DataTables API, defined by the options passed to\r\n\t * `DataTable.Api.register()` when building the API.\r\n\t *\r\n\t * The structure is built in order to speed creation and extension of the Api\r\n\t * objects since the extensions are effectively pre-parsed.\r\n\t *\r\n\t * The array is an array of objects with the following structure, where this\r\n\t * base array represents the Api prototype base:\r\n\t *\r\n\t *     [\r\n\t *       {\r\n\t *         name:      'data'                -- string   - Property name\r\n\t *         val:       function () {},       -- function - Api method (or undefined if just an object\r\n\t *         methodExt: [ ... ],              -- array    - Array of Api object definitions to extend the method result\r\n\t *         propExt:   [ ... ]               -- array    - Array of Api object definitions to extend the property\r\n\t *       },\r\n\t *       {\r\n\t *         name:     'row'\r\n\t *         val:       {},\r\n\t *         methodExt: [ ... ],\r\n\t *         propExt:   [\r\n\t *           {\r\n\t *             name:      'data'\r\n\t *             val:       function () {},\r\n\t *             methodExt: [ ... ],\r\n\t *             propExt:   [ ... ]\r\n\t *           },\r\n\t *           ...\r\n\t *         ]\r\n\t *       }\r\n\t *     ]\r\n\t *\r\n\t * @type {Array}\r\n\t * @ignore\r\n\t */var __apiStruct=[];/**\r\n\t * `Array.prototype` reference.\r\n\t *\r\n\t * @type object\r\n\t * @ignore\r\n\t */var __arrayProto=Array.prototype;/**\r\n\t * Abstraction for `context` parameter of the `Api` constructor to allow it to\r\n\t * take several different forms for ease of use.\r\n\t *\r\n\t * Each of the input parameter types will be converted to a DataTables settings\r\n\t * object where possible.\r\n\t *\r\n\t * @param  {string|node|jQuery|object} mixed DataTable identifier. Can be one\r\n\t *   of:\r\n\t *\r\n\t *   * `string` - jQuery selector. Any DataTables' matching the given selector\r\n\t *     with be found and used.\r\n\t *   * `node` - `TABLE` node which has already been formed into a DataTable.\r\n\t *   * `jQuery` - A jQuery object of `TABLE` nodes.\r\n\t *   * `object` - DataTables settings object\r\n\t *   * `DataTables.Api` - API instance\r\n\t * @return {array|null} Matching DataTables settings objects. `null` or\r\n\t *   `undefined` is returned if no matching DataTable is found.\r\n\t * @ignore\r\n\t */var _toSettings=function(mixed){var idx,jq;var settings=DataTable.settings;var tables=$.map(settings,function(el,i){return el.nTable;});if(!mixed){return[];}else if(mixed.nTable&&mixed.oApi){// DataTables settings object\nreturn[mixed];}else if(mixed.nodeName&&mixed.nodeName.toLowerCase()==='table'){// Table node\nidx=$.inArray(mixed,tables);return idx!==-1?[settings[idx]]:null;}else if(mixed&&typeof mixed.settings==='function'){return mixed.settings().toArray();}else if(typeof mixed==='string'){// jQuery selector\njq=$(mixed);}else if(mixed instanceof $){// jQuery object (also DataTables instance)\njq=mixed;}if(jq){return jq.map(function(i){idx=$.inArray(this,tables);return idx!==-1?settings[idx]:null;}).toArray();}};/**\r\n\t * DataTables API class - used to control and interface with  one or more\r\n\t * DataTables enhanced tables.\r\n\t *\r\n\t * The API class is heavily based on jQuery, presenting a chainable interface\r\n\t * that you can use to interact with tables. Each instance of the API class has\r\n\t * a \"context\" - i.e. the tables that it will operate on. This could be a single\r\n\t * table, all tables on a page or a sub-set thereof.\r\n\t *\r\n\t * Additionally the API is designed to allow you to easily work with the data in\r\n\t * the tables, retrieving and manipulating it as required. This is done by\r\n\t * presenting the API class as an array like interface. The contents of the\r\n\t * array depend upon the actions requested by each method (for example\r\n\t * `rows().nodes()` will return an array of nodes, while `rows().data()` will\r\n\t * return an array of objects or arrays depending upon your table's\r\n\t * configuration). The API object has a number of array like methods (`push`,\r\n\t * `pop`, `reverse` etc) as well as additional helper methods (`each`, `pluck`,\r\n\t * `unique` etc) to assist your working with the data held in a table.\r\n\t *\r\n\t * Most methods (those which return an Api instance) are chainable, which means\r\n\t * the return from a method call also has all of the methods available that the\r\n\t * top level object had. For example, these two calls are equivalent:\r\n\t *\r\n\t *     // Not chained\r\n\t *     api.row.add( {...} );\r\n\t *     api.draw();\r\n\t *\r\n\t *     // Chained\r\n\t *     api.row.add( {...} ).draw();\r\n\t *\r\n\t * @class DataTable.Api\r\n\t * @param {array|object|string|jQuery} context DataTable identifier. This is\r\n\t *   used to define which DataTables enhanced tables this API will operate on.\r\n\t *   Can be one of:\r\n\t *\r\n\t *   * `string` - jQuery selector. Any DataTables' matching the given selector\r\n\t *     with be found and used.\r\n\t *   * `node` - `TABLE` node which has already been formed into a DataTable.\r\n\t *   * `jQuery` - A jQuery object of `TABLE` nodes.\r\n\t *   * `object` - DataTables settings object\r\n\t * @param {array} [data] Data to initialise the Api instance with.\r\n\t *\r\n\t * @example\r\n\t *   // Direct initialisation during DataTables construction\r\n\t *   var api = $('#example').DataTable();\r\n\t *\r\n\t * @example\r\n\t *   // Initialisation using a DataTables jQuery object\r\n\t *   var api = $('#example').dataTable().api();\r\n\t *\r\n\t * @example\r\n\t *   // Initialisation as a constructor\r\n\t *   var api = new $.fn.DataTable.Api( 'table.dataTable' );\r\n\t */_Api=function(context,data){if(!(this instanceof _Api)){return new _Api(context,data);}var settings=[];var ctxSettings=function(o){var a=_toSettings(o);if(a){settings=settings.concat(a);}};if($.isArray(context)){for(var i=0,ien=context.length;i<ien;i++){ctxSettings(context[i]);}}else{ctxSettings(context);}// Remove duplicates\nthis.context=_unique(settings);// Initial data\nif(data){$.merge(this,data);}// selector\nthis.selector={rows:null,cols:null,opts:null};_Api.extend(this,this,__apiStruct);};DataTable.Api=_Api;// Don't destroy the existing prototype, just extend it. Required for jQuery 2's\n// isPlainObject.\n$.extend(_Api.prototype,{any:function(){return this.count()!==0;},concat:__arrayProto.concat,context:[],// array of table settings objects\ncount:function(){return this.flatten().length;},each:function(fn){for(var i=0,ien=this.length;i<ien;i++){fn.call(this,this[i],i,this);}return this;},eq:function(idx){var ctx=this.context;return ctx.length>idx?new _Api(ctx[idx],this[idx]):null;},filter:function(fn){var a=[];if(__arrayProto.filter){a=__arrayProto.filter.call(this,fn,this);}else{// Compatibility for browsers without EMCA-252-5 (JS 1.6)\nfor(var i=0,ien=this.length;i<ien;i++){if(fn.call(this,this[i],i,this)){a.push(this[i]);}}}return new _Api(this.context,a);},flatten:function(){var a=[];return new _Api(this.context,a.concat.apply(a,this.toArray()));},join:__arrayProto.join,indexOf:__arrayProto.indexOf||function(obj,start){for(var i=start||0,ien=this.length;i<ien;i++){if(this[i]===obj){return i;}}return-1;},iterator:function(flatten,type,fn,alwaysNew){var a=[],ret,i,ien,j,jen,context=this.context,rows,items,item,selector=this.selector;// Argument shifting\nif(typeof flatten==='string'){alwaysNew=fn;fn=type;type=flatten;flatten=false;}for(i=0,ien=context.length;i<ien;i++){var apiInst=new _Api(context[i]);if(type==='table'){ret=fn.call(apiInst,context[i],i);if(ret!==undefined){a.push(ret);}}else if(type==='columns'||type==='rows'){// this has same length as context - one entry for each table\nret=fn.call(apiInst,context[i],this[i],i);if(ret!==undefined){a.push(ret);}}else if(type==='column'||type==='column-rows'||type==='row'||type==='cell'){// columns and rows share the same structure.\n// 'this' is an array of column indexes for each context\nitems=this[i];if(type==='column-rows'){rows=_selector_row_indexes(context[i],selector.opts);}for(j=0,jen=items.length;j<jen;j++){item=items[j];if(type==='cell'){ret=fn.call(apiInst,context[i],item.row,item.column,i,j);}else{ret=fn.call(apiInst,context[i],item,i,j,rows);}if(ret!==undefined){a.push(ret);}}}}if(a.length||alwaysNew){var api=new _Api(context,flatten?a.concat.apply([],a):a);var apiSelector=api.selector;apiSelector.rows=selector.rows;apiSelector.cols=selector.cols;apiSelector.opts=selector.opts;return api;}return this;},lastIndexOf:__arrayProto.lastIndexOf||function(obj,start){// Bit cheeky...\nreturn this.indexOf.apply(this.toArray.reverse(),arguments);},length:0,map:function(fn){var a=[];if(__arrayProto.map){a=__arrayProto.map.call(this,fn,this);}else{// Compatibility for browsers without EMCA-252-5 (JS 1.6)\nfor(var i=0,ien=this.length;i<ien;i++){a.push(fn.call(this,this[i],i));}}return new _Api(this.context,a);},pluck:function(prop){return this.map(function(el){return el[prop];});},pop:__arrayProto.pop,push:__arrayProto.push,// Does not return an API instance\nreduce:__arrayProto.reduce||function(fn,init){return _fnReduce(this,fn,init,0,this.length,1);},reduceRight:__arrayProto.reduceRight||function(fn,init){return _fnReduce(this,fn,init,this.length-1,-1,-1);},reverse:__arrayProto.reverse,// Object with rows, columns and opts\nselector:null,shift:__arrayProto.shift,slice:function(){return new _Api(this.context,this);},sort:__arrayProto.sort,// ? name - order?\nsplice:__arrayProto.splice,toArray:function(){return __arrayProto.slice.call(this);},to$:function(){return $(this);},toJQuery:function(){return $(this);},unique:function(){return new _Api(this.context,_unique(this));},unshift:__arrayProto.unshift});_Api.extend=function(scope,obj,ext){// Only extend API instances and static properties of the API\nif(!ext.length||!obj||!(obj instanceof _Api)&&!obj.__dt_wrapper){return;}var i,ien,j,jen,struct,inner,methodScoping=function(scope,fn,struc){return function(){var ret=fn.apply(scope,arguments);// Method extension\n_Api.extend(ret,ret,struc.methodExt);return ret;};};for(i=0,ien=ext.length;i<ien;i++){struct=ext[i];// Value\nobj[struct.name]=typeof struct.val==='function'?methodScoping(scope,struct.val,struct):$.isPlainObject(struct.val)?{}:struct.val;obj[struct.name].__dt_wrapper=true;// Property extension\n_Api.extend(scope,obj[struct.name],struct.propExt);}};// @todo - Is there need for an augment function?\n// _Api.augment = function ( inst, name )\n// {\n// \t// Find src object in the structure from the name\n// \tvar parts = name.split('.');\n// \t_Api.extend( inst, obj );\n// };\n//     [\n//       {\n//         name:      'data'                -- string   - Property name\n//         val:       function () {},       -- function - Api method (or undefined if just an object\n//         methodExt: [ ... ],              -- array    - Array of Api object definitions to extend the method result\n//         propExt:   [ ... ]               -- array    - Array of Api object definitions to extend the property\n//       },\n//       {\n//         name:     'row'\n//         val:       {},\n//         methodExt: [ ... ],\n//         propExt:   [\n//           {\n//             name:      'data'\n//             val:       function () {},\n//             methodExt: [ ... ],\n//             propExt:   [ ... ]\n//           },\n//           ...\n//         ]\n//       }\n//     ]\n_Api.register=_api_register=function(name,val){if($.isArray(name)){for(var j=0,jen=name.length;j<jen;j++){_Api.register(name[j],val);}return;}var i,ien,heir=name.split('.'),struct=__apiStruct,key,method;var find=function(src,name){for(var i=0,ien=src.length;i<ien;i++){if(src[i].name===name){return src[i];}}return null;};for(i=0,ien=heir.length;i<ien;i++){method=heir[i].indexOf('()')!==-1;key=method?heir[i].replace('()',''):heir[i];var src=find(struct,key);if(!src){src={name:key,val:{},methodExt:[],propExt:[]};struct.push(src);}if(i===ien-1){src.val=val;}else{struct=method?src.methodExt:src.propExt;}}};_Api.registerPlural=_api_registerPlural=function(pluralName,singularName,val){_Api.register(pluralName,val);_Api.register(singularName,function(){var ret=val.apply(this,arguments);if(ret===this){// Returned item is the API instance that was passed in, return it\nreturn this;}else if(ret instanceof _Api){// New API instance returned, want the value from the first item\n// in the returned array for the singular result.\nreturn ret.length?$.isArray(ret[0])?new _Api(ret.context,ret[0]):// Array results are 'enhanced'\nret[0]:undefined;}// Non-API return - just fire it back\nreturn ret;});};/**\r\n\t * Selector for HTML tables. Apply the given selector to the give array of\r\n\t * DataTables settings objects.\r\n\t *\r\n\t * @param {string|integer} [selector] jQuery selector string or integer\r\n\t * @param  {array} Array of DataTables settings objects to be filtered\r\n\t * @return {array}\r\n\t * @ignore\r\n\t */var __table_selector=function(selector,a){// Integer is used to pick out a table by index\nif(typeof selector==='number'){return[a[selector]];}// Perform a jQuery selector on the table nodes\nvar nodes=$.map(a,function(el,i){return el.nTable;});return $(nodes).filter(selector).map(function(i){// Need to translate back from the table node to the settings\nvar idx=$.inArray(this,nodes);return a[idx];}).toArray();};/**\r\n\t * Context selector for the API's context (i.e. the tables the API instance\r\n\t * refers to.\r\n\t *\r\n\t * @name    DataTable.Api#tables\r\n\t * @param {string|integer} [selector] Selector to pick which tables the iterator\r\n\t *   should operate on. If not given, all tables in the current context are\r\n\t *   used. This can be given as a jQuery selector (for example `':gt(0)'`) to\r\n\t *   select multiple tables or as an integer to select a single table.\r\n\t * @returns {DataTable.Api} Returns a new API instance if a selector is given.\r\n\t */_api_register('tables()',function(selector){// A new instance is created if there was a selector specified\nreturn selector?new _Api(__table_selector(selector,this.context)):this;});_api_register('table()',function(selector){var tables=this.tables(selector);var ctx=tables.context;// Truncate to the first matched table\nreturn ctx.length?new _Api(ctx[0]):tables;});_api_registerPlural('tables().nodes()','table().node()',function(){return this.iterator('table',function(ctx){return ctx.nTable;},1);});_api_registerPlural('tables().body()','table().body()',function(){return this.iterator('table',function(ctx){return ctx.nTBody;},1);});_api_registerPlural('tables().header()','table().header()',function(){return this.iterator('table',function(ctx){return ctx.nTHead;},1);});_api_registerPlural('tables().footer()','table().footer()',function(){return this.iterator('table',function(ctx){return ctx.nTFoot;},1);});_api_registerPlural('tables().containers()','table().container()',function(){return this.iterator('table',function(ctx){return ctx.nTableWrapper;},1);});/**\r\n\t * Redraw the tables in the current context.\r\n\t */_api_register('draw()',function(paging){return this.iterator('table',function(settings){if(paging==='page'){_fnDraw(settings);}else{if(typeof paging==='string'){paging=paging==='full-hold'?false:true;}_fnReDraw(settings,paging===false);}});});/**\r\n\t * Get the current page index.\r\n\t *\r\n\t * @return {integer} Current page index (zero based)\r\n\t */ /**\r\n\t * Set the current page.\r\n\t *\r\n\t * Note that if you attempt to show a page which does not exist, DataTables will\r\n\t * not throw an error, but rather reset the paging.\r\n\t *\r\n\t * @param {integer|string} action The paging action to take. This can be one of:\r\n\t *  * `integer` - The page index to jump to\r\n\t *  * `string` - An action to take:\r\n\t *    * `first` - Jump to first page.\r\n\t *    * `next` - Jump to the next page\r\n\t *    * `previous` - Jump to previous page\r\n\t *    * `last` - Jump to the last page.\r\n\t * @returns {DataTables.Api} this\r\n\t */_api_register('page()',function(action){if(action===undefined){return this.page.info().page;// not an expensive call\n}// else, have an action to take on all tables\nreturn this.iterator('table',function(settings){_fnPageChange(settings,action);});});/**\r\n\t * Paging information for the first table in the current context.\r\n\t *\r\n\t * If you require paging information for another table, use the `table()` method\r\n\t * with a suitable selector.\r\n\t *\r\n\t * @return {object} Object with the following properties set:\r\n\t *  * `page` - Current page index (zero based - i.e. the first page is `0`)\r\n\t *  * `pages` - Total number of pages\r\n\t *  * `start` - Display index for the first record shown on the current page\r\n\t *  * `end` - Display index for the last record shown on the current page\r\n\t *  * `length` - Display length (number of records). Note that generally `start\r\n\t *    + length = end`, but this is not always true, for example if there are\r\n\t *    only 2 records to show on the final page, with a length of 10.\r\n\t *  * `recordsTotal` - Full data set length\r\n\t *  * `recordsDisplay` - Data set length once the current filtering criterion\r\n\t *    are applied.\r\n\t */_api_register('page.info()',function(action){if(this.context.length===0){return undefined;}var settings=this.context[0],start=settings._iDisplayStart,len=settings.oFeatures.bPaginate?settings._iDisplayLength:-1,visRecords=settings.fnRecordsDisplay(),all=len===-1;return{\"page\":all?0:Math.floor(start/len),\"pages\":all?1:Math.ceil(visRecords/len),\"start\":start,\"end\":settings.fnDisplayEnd(),\"length\":len,\"recordsTotal\":settings.fnRecordsTotal(),\"recordsDisplay\":visRecords,\"serverSide\":_fnDataSource(settings)==='ssp'};});/**\r\n\t * Get the current page length.\r\n\t *\r\n\t * @return {integer} Current page length. Note `-1` indicates that all records\r\n\t *   are to be shown.\r\n\t */ /**\r\n\t * Set the current page length.\r\n\t *\r\n\t * @param {integer} Page length to set. Use `-1` to show all records.\r\n\t * @returns {DataTables.Api} this\r\n\t */_api_register('page.len()',function(len){// Note that we can't call this function 'length()' because `length`\n// is a Javascript property of functions which defines how many arguments\n// the function expects.\nif(len===undefined){return this.context.length!==0?this.context[0]._iDisplayLength:undefined;}// else, set the page length\nreturn this.iterator('table',function(settings){_fnLengthChange(settings,len);});});var __reload=function(settings,holdPosition,callback){// Use the draw event to trigger a callback\nif(callback){var api=new _Api(settings);api.one('draw',function(){callback(api.ajax.json());});}if(_fnDataSource(settings)=='ssp'){_fnReDraw(settings,holdPosition);}else{_fnProcessingDisplay(settings,true);// Cancel an existing request\nvar xhr=settings.jqXHR;if(xhr&&xhr.readyState!==4){xhr.abort();}// Trigger xhr\n_fnBuildAjax(settings,[],function(json){_fnClearTable(settings);var data=_fnAjaxDataSrc(settings,json);for(var i=0,ien=data.length;i<ien;i++){_fnAddData(settings,data[i]);}_fnReDraw(settings,holdPosition);_fnProcessingDisplay(settings,false);});}};/**\r\n\t * Get the JSON response from the last Ajax request that DataTables made to the\r\n\t * server. Note that this returns the JSON from the first table in the current\r\n\t * context.\r\n\t *\r\n\t * @return {object} JSON received from the server.\r\n\t */_api_register('ajax.json()',function(){var ctx=this.context;if(ctx.length>0){return ctx[0].json;}// else return undefined;\n});/**\r\n\t * Get the data submitted in the last Ajax request\r\n\t */_api_register('ajax.params()',function(){var ctx=this.context;if(ctx.length>0){return ctx[0].oAjaxData;}// else return undefined;\n});/**\r\n\t * Reload tables from the Ajax data source. Note that this function will\r\n\t * automatically re-draw the table when the remote data has been loaded.\r\n\t *\r\n\t * @param {boolean} [reset=true] Reset (default) or hold the current paging\r\n\t *   position. A full re-sort and re-filter is performed when this method is\r\n\t *   called, which is why the pagination reset is the default action.\r\n\t * @returns {DataTables.Api} this\r\n\t */_api_register('ajax.reload()',function(callback,resetPaging){return this.iterator('table',function(settings){__reload(settings,resetPaging===false,callback);});});/**\r\n\t * Get the current Ajax URL. Note that this returns the URL from the first\r\n\t * table in the current context.\r\n\t *\r\n\t * @return {string} Current Ajax source URL\r\n\t */ /**\r\n\t * Set the Ajax URL. Note that this will set the URL for all tables in the\r\n\t * current context.\r\n\t *\r\n\t * @param {string} url URL to set.\r\n\t * @returns {DataTables.Api} this\r\n\t */_api_register('ajax.url()',function(url){var ctx=this.context;if(url===undefined){// get\nif(ctx.length===0){return undefined;}ctx=ctx[0];return ctx.ajax?$.isPlainObject(ctx.ajax)?ctx.ajax.url:ctx.ajax:ctx.sAjaxSource;}// set\nreturn this.iterator('table',function(settings){if($.isPlainObject(settings.ajax)){settings.ajax.url=url;}else{settings.ajax=url;}// No need to consider sAjaxSource here since DataTables gives priority\n// to `ajax` over `sAjaxSource`. So setting `ajax` here, renders any\n// value of `sAjaxSource` redundant.\n});});/**\r\n\t * Load data from the newly set Ajax URL. Note that this method is only\r\n\t * available when `ajax.url()` is used to set a URL. Additionally, this method\r\n\t * has the same effect as calling `ajax.reload()` but is provided for\r\n\t * convenience when setting a new URL. Like `ajax.reload()` it will\r\n\t * automatically redraw the table once the remote data has been loaded.\r\n\t *\r\n\t * @returns {DataTables.Api} this\r\n\t */_api_register('ajax.url().load()',function(callback,resetPaging){// Same as a reload, but makes sense to present it for easy access after a\n// url change\nreturn this.iterator('table',function(ctx){__reload(ctx,resetPaging===false,callback);});});var _selector_run=function(type,selector,selectFn,settings,opts){var out=[],res,a,i,ien,j,jen,selectorType=typeof selector;// Can't just check for isArray here, as an API or jQuery instance might be\n// given with their array like look\nif(!selector||selectorType==='string'||selectorType==='function'||selector.length===undefined){selector=[selector];}for(i=0,ien=selector.length;i<ien;i++){// Only split on simple strings - complex expressions will be jQuery selectors\na=selector[i]&&selector[i].split&&!selector[i].match(/[\\[\\(:]/)?selector[i].split(','):[selector[i]];for(j=0,jen=a.length;j<jen;j++){res=selectFn(typeof a[j]==='string'?$.trim(a[j]):a[j]);if(res&&res.length){out=out.concat(res);}}}// selector extensions\nvar ext=_ext.selector[type];if(ext.length){for(i=0,ien=ext.length;i<ien;i++){out=ext[i](settings,opts,out);}}return _unique(out);};var _selector_opts=function(opts){if(!opts){opts={};}// Backwards compatibility for 1.9- which used the terminology filter rather\n// than search\nif(opts.filter&&opts.search===undefined){opts.search=opts.filter;}return $.extend({search:'none',order:'current',page:'all'},opts);};var _selector_first=function(inst){// Reduce the API instance to the first item found\nfor(var i=0,ien=inst.length;i<ien;i++){if(inst[i].length>0){// Assign the first element to the first item in the instance\n// and truncate the instance and context\ninst[0]=inst[i];inst[0].length=1;inst.length=1;inst.context=[inst.context[i]];return inst;}}// Not found - return an empty instance\ninst.length=0;return inst;};var _selector_row_indexes=function(settings,opts){var i,ien,tmp,a=[],displayFiltered=settings.aiDisplay,displayMaster=settings.aiDisplayMaster;var search=opts.search,// none, applied, removed\norder=opts.order,// applied, current, index (original - compatibility with 1.9)\npage=opts.page;// all, current\nif(_fnDataSource(settings)=='ssp'){// In server-side processing mode, most options are irrelevant since\n// rows not shown don't exist and the index order is the applied order\n// Removed is a special case - for consistency just return an empty\n// array\nreturn search==='removed'?[]:_range(0,displayMaster.length);}else if(page=='current'){// Current page implies that order=current and fitler=applied, since it is\n// fairly senseless otherwise, regardless of what order and search actually\n// are\nfor(i=settings._iDisplayStart,ien=settings.fnDisplayEnd();i<ien;i++){a.push(displayFiltered[i]);}}else if(order=='current'||order=='applied'){if(search=='none'){a=displayMaster.slice();}else if(search=='applied'){a=displayFiltered.slice();}else if(search=='removed'){// O(n+m) solution by creating a hash map\nvar displayFilteredMap={};for(var i=0,ien=displayFiltered.length;i<ien;i++){displayFilteredMap[displayFiltered[i]]=null;}a=$.map(displayMaster,function(el){return!displayFilteredMap.hasOwnProperty(el)?el:null;});}}else if(order=='index'||order=='original'){for(i=0,ien=settings.aoData.length;i<ien;i++){if(search=='none'){a.push(i);}else{// applied | removed\ntmp=$.inArray(i,displayFiltered);if(tmp===-1&&search=='removed'||tmp>=0&&search=='applied'){a.push(i);}}}}return a;};/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Rows\r\n\t *\r\n\t * {}          - no selector - use all available rows\r\n\t * {integer}   - row aoData index\r\n\t * {node}      - TR node\r\n\t * {string}    - jQuery selector to apply to the TR elements\r\n\t * {array}     - jQuery array of nodes, or simply an array of TR nodes\r\n\t *\r\n\t */var __row_selector=function(settings,selector,opts){var rows;var run=function(sel){var selInt=_intVal(sel);var i,ien;var aoData=settings.aoData;// Short cut - selector is a number and no options provided (default is\n// all records, so no need to check if the index is in there, since it\n// must be - dev error if the index doesn't exist).\nif(selInt!==null&&!opts){return[selInt];}if(!rows){rows=_selector_row_indexes(settings,opts);}if(selInt!==null&&$.inArray(selInt,rows)!==-1){// Selector - integer\nreturn[selInt];}else if(sel===null||sel===undefined||sel===''){// Selector - none\nreturn rows;}// Selector - function\nif(typeof sel==='function'){return $.map(rows,function(idx){var row=aoData[idx];return sel(idx,row._aData,row.nTr)?idx:null;});}// Selector - node\nif(sel.nodeName){var rowIdx=sel._DT_RowIndex;// Property added by DT for fast lookup\nvar cellIdx=sel._DT_CellIndex;if(rowIdx!==undefined){// Make sure that the row is actually still present in the table\nreturn aoData[rowIdx]&&aoData[rowIdx].nTr===sel?[rowIdx]:[];}else if(cellIdx){return aoData[cellIdx.row]&&aoData[cellIdx.row].nTr===sel?[cellIdx.row]:[];}else{var host=$(sel).closest('*[data-dt-row]');return host.length?[host.data('dt-row')]:[];}}// ID selector. Want to always be able to select rows by id, regardless\n// of if the tr element has been created or not, so can't rely upon\n// jQuery here - hence a custom implementation. This does not match\n// Sizzle's fast selector or HTML4 - in HTML5 the ID can be anything,\n// but to select it using a CSS selector engine (like Sizzle or\n// querySelect) it would need to need to be escaped for some characters.\n// DataTables simplifies this for row selectors since you can select\n// only a row. A # indicates an id any anything that follows is the id -\n// unescaped.\nif(typeof sel==='string'&&sel.charAt(0)==='#'){// get row index from id\nvar rowObj=settings.aIds[sel.replace(/^#/,'')];if(rowObj!==undefined){return[rowObj.idx];}// need to fall through to jQuery in case there is DOM id that\n// matches\n}// Get nodes in the order from the `rows` array with null values removed\nvar nodes=_removeEmpty(_pluck_order(settings.aoData,rows,'nTr'));// Selector - jQuery selector string, array of nodes or jQuery object/\n// As jQuery's .filter() allows jQuery objects to be passed in filter,\n// it also allows arrays, so this will cope with all three options\nreturn $(nodes).filter(sel).map(function(){return this._DT_RowIndex;}).toArray();};return _selector_run('row',selector,run,settings,opts);};_api_register('rows()',function(selector,opts){// argument shifting\nif(selector===undefined){selector='';}else if($.isPlainObject(selector)){opts=selector;selector='';}opts=_selector_opts(opts);var inst=this.iterator('table',function(settings){return __row_selector(settings,selector,opts);},1);// Want argument shifting here and in __row_selector?\ninst.selector.rows=selector;inst.selector.opts=opts;return inst;});_api_register('rows().nodes()',function(){return this.iterator('row',function(settings,row){return settings.aoData[row].nTr||undefined;},1);});_api_register('rows().data()',function(){return this.iterator(true,'rows',function(settings,rows){return _pluck_order(settings.aoData,rows,'_aData');},1);});_api_registerPlural('rows().cache()','row().cache()',function(type){return this.iterator('row',function(settings,row){var r=settings.aoData[row];return type==='search'?r._aFilterData:r._aSortData;},1);});_api_registerPlural('rows().invalidate()','row().invalidate()',function(src){return this.iterator('row',function(settings,row){_fnInvalidate(settings,row,src);});});_api_registerPlural('rows().indexes()','row().index()',function(){return this.iterator('row',function(settings,row){return row;},1);});_api_registerPlural('rows().ids()','row().id()',function(hash){var a=[];var context=this.context;// `iterator` will drop undefined values, but in this case we want them\nfor(var i=0,ien=context.length;i<ien;i++){for(var j=0,jen=this[i].length;j<jen;j++){var id=context[i].rowIdFn(context[i].aoData[this[i][j]]._aData);a.push((hash===true?'#':'')+id);}}return new _Api(context,a);});_api_registerPlural('rows().remove()','row().remove()',function(){var that=this;this.iterator('row',function(settings,row,thatIdx){var data=settings.aoData;var rowData=data[row];var i,ien,j,jen;var loopRow,loopCells;data.splice(row,1);// Update the cached indexes\nfor(i=0,ien=data.length;i<ien;i++){loopRow=data[i];loopCells=loopRow.anCells;// Rows\nif(loopRow.nTr!==null){loopRow.nTr._DT_RowIndex=i;}// Cells\nif(loopCells!==null){for(j=0,jen=loopCells.length;j<jen;j++){loopCells[j]._DT_CellIndex.row=i;}}}// Delete from the display arrays\n_fnDeleteIndex(settings.aiDisplayMaster,row);_fnDeleteIndex(settings.aiDisplay,row);_fnDeleteIndex(that[thatIdx],row,false);// maintain local indexes\n// For server-side processing tables - subtract the deleted row from the count\nif(settings._iRecordsDisplay>0){settings._iRecordsDisplay--;}// Check for an 'overflow' they case for displaying the table\n_fnLengthOverflow(settings);// Remove the row's ID reference if there is one\nvar id=settings.rowIdFn(rowData._aData);if(id!==undefined){delete settings.aIds[id];}});this.iterator('table',function(settings){for(var i=0,ien=settings.aoData.length;i<ien;i++){settings.aoData[i].idx=i;}});return this;});_api_register('rows.add()',function(rows){var newRows=this.iterator('table',function(settings){var row,i,ien;var out=[];for(i=0,ien=rows.length;i<ien;i++){row=rows[i];if(row.nodeName&&row.nodeName.toUpperCase()==='TR'){out.push(_fnAddTr(settings,row)[0]);}else{out.push(_fnAddData(settings,row));}}return out;},1);// Return an Api.rows() extended instance, so rows().nodes() etc can be used\nvar modRows=this.rows(-1);modRows.pop();$.merge(modRows,newRows);return modRows;});/**\r\n\t *\r\n\t */_api_register('row()',function(selector,opts){return _selector_first(this.rows(selector,opts));});_api_register('row().data()',function(data){var ctx=this.context;if(data===undefined){// Get\nreturn ctx.length&&this.length?ctx[0].aoData[this[0]]._aData:undefined;}// Set\nvar row=ctx[0].aoData[this[0]];row._aData=data;// If the DOM has an id, and the data source is an array\nif($.isArray(data)&&row.nTr.id){_fnSetObjectDataFn(ctx[0].rowId)(data,row.nTr.id);}// Automatically invalidate\n_fnInvalidate(ctx[0],this[0],'data');return this;});_api_register('row().node()',function(){var ctx=this.context;return ctx.length&&this.length?ctx[0].aoData[this[0]].nTr||null:null;});_api_register('row.add()',function(row){// Allow a jQuery object to be passed in - only a single row is added from\n// it though - the first element in the set\nif(row instanceof $&&row.length){row=row[0];}var rows=this.iterator('table',function(settings){if(row.nodeName&&row.nodeName.toUpperCase()==='TR'){return _fnAddTr(settings,row)[0];}return _fnAddData(settings,row);});// Return an Api.rows() extended instance, with the newly added row selected\nreturn this.row(rows[0]);});var __details_add=function(ctx,row,data,klass){// Convert to array of TR elements\nvar rows=[];var addRow=function(r,k){// Recursion to allow for arrays of jQuery objects\nif($.isArray(r)||r instanceof $){for(var i=0,ien=r.length;i<ien;i++){addRow(r[i],k);}return;}// If we get a TR element, then just add it directly - up to the dev\n// to add the correct number of columns etc\nif(r.nodeName&&r.nodeName.toLowerCase()==='tr'){rows.push(r);}else{// Otherwise create a row with a wrapper\nvar created=$('<tr><td/></tr>').addClass(k);$('td',created).addClass(k).html(r)[0].colSpan=_fnVisbleColumns(ctx);rows.push(created[0]);}};addRow(data,klass);if(row._details){row._details.detach();}row._details=$(rows);// If the children were already shown, that state should be retained\nif(row._detailsShow){row._details.insertAfter(row.nTr);}};var __details_remove=function(api,idx){var ctx=api.context;if(ctx.length){var row=ctx[0].aoData[idx!==undefined?idx:api[0]];if(row&&row._details){row._details.remove();row._detailsShow=undefined;row._details=undefined;}}};var __details_display=function(api,show){var ctx=api.context;if(ctx.length&&api.length){var row=ctx[0].aoData[api[0]];if(row._details){row._detailsShow=show;if(show){row._details.insertAfter(row.nTr);}else{row._details.detach();}__details_events(ctx[0]);}}};var __details_events=function(settings){var api=new _Api(settings);var namespace='.dt.DT_details';var drawEvent='draw'+namespace;var colvisEvent='column-visibility'+namespace;var destroyEvent='destroy'+namespace;var data=settings.aoData;api.off(drawEvent+' '+colvisEvent+' '+destroyEvent);if(_pluck(data,'_details').length>0){// On each draw, insert the required elements into the document\napi.on(drawEvent,function(e,ctx){if(settings!==ctx){return;}api.rows({page:'current'}).eq(0).each(function(idx){// Internal data grab\nvar row=data[idx];if(row._detailsShow){row._details.insertAfter(row.nTr);}});});// Column visibility change - update the colspan\napi.on(colvisEvent,function(e,ctx,idx,vis){if(settings!==ctx){return;}// Update the colspan for the details rows (note, only if it already has\n// a colspan)\nvar row,visible=_fnVisbleColumns(ctx);for(var i=0,ien=data.length;i<ien;i++){row=data[i];if(row._details){row._details.children('td[colspan]').attr('colspan',visible);}}});// Table destroyed - nuke any child rows\napi.on(destroyEvent,function(e,ctx){if(settings!==ctx){return;}for(var i=0,ien=data.length;i<ien;i++){if(data[i]._details){__details_remove(api,i);}}});}};// Strings for the method names to help minification\nvar _emp='';var _child_obj=_emp+'row().child';var _child_mth=_child_obj+'()';// data can be:\n//  tr\n//  string\n//  jQuery or array of any of the above\n_api_register(_child_mth,function(data,klass){var ctx=this.context;if(data===undefined){// get\nreturn ctx.length&&this.length?ctx[0].aoData[this[0]]._details:undefined;}else if(data===true){// show\nthis.child.show();}else if(data===false){// remove\n__details_remove(this);}else if(ctx.length&&this.length){// set\n__details_add(ctx[0],ctx[0].aoData[this[0]],data,klass);}return this;});_api_register([_child_obj+'.show()',_child_mth+'.show()'// only when `child()` was called with parameters (without\n],function(show){// it returns an object and this method is not executed)\n__details_display(this,true);return this;});_api_register([_child_obj+'.hide()',_child_mth+'.hide()'// only when `child()` was called with parameters (without\n],function(){// it returns an object and this method is not executed)\n__details_display(this,false);return this;});_api_register([_child_obj+'.remove()',_child_mth+'.remove()'// only when `child()` was called with parameters (without\n],function(){// it returns an object and this method is not executed)\n__details_remove(this);return this;});_api_register(_child_obj+'.isShown()',function(){var ctx=this.context;if(ctx.length&&this.length){// _detailsShown as false or undefined will fall through to return false\nreturn ctx[0].aoData[this[0]]._detailsShow||false;}return false;});/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Columns\r\n\t *\r\n\t * {integer}           - column index (>=0 count from left, <0 count from right)\r\n\t * \"{integer}:visIdx\"  - visible column index (i.e. translate to column index)  (>=0 count from left, <0 count from right)\r\n\t * \"{integer}:visible\" - alias for {integer}:visIdx  (>=0 count from left, <0 count from right)\r\n\t * \"{string}:name\"     - column name\r\n\t * \"{string}\"          - jQuery selector on column header nodes\r\n\t *\r\n\t */ // can be an array of these items, comma separated list, or an array of comma\n// separated lists\nvar __re_column_selector=/^([^:]+):(name|visIdx|visible)$/;// r1 and r2 are redundant - but it means that the parameters match for the\n// iterator callback in columns().data()\nvar __columnData=function(settings,column,r1,r2,rows){var a=[];for(var row=0,ien=rows.length;row<ien;row++){a.push(_fnGetCellData(settings,rows[row],column));}return a;};var __column_selector=function(settings,selector,opts){var columns=settings.aoColumns,names=_pluck(columns,'sName'),nodes=_pluck(columns,'nTh');var run=function(s){var selInt=_intVal(s);// Selector - all\nif(s===''){return _range(columns.length);}// Selector - index\nif(selInt!==null){return[selInt>=0?selInt:// Count from left\ncolumns.length+selInt// Count from right (+ because its a negative value)\n];}// Selector = function\nif(typeof s==='function'){var rows=_selector_row_indexes(settings,opts);return $.map(columns,function(col,idx){return s(idx,__columnData(settings,idx,0,0,rows),nodes[idx])?idx:null;});}// jQuery or string selector\nvar match=typeof s==='string'?s.match(__re_column_selector):'';if(match){switch(match[2]){case'visIdx':case'visible':var idx=parseInt(match[1],10);// Visible index given, convert to column index\nif(idx<0){// Counting from the right\nvar visColumns=$.map(columns,function(col,i){return col.bVisible?i:null;});return[visColumns[visColumns.length+idx]];}// Counting from the left\nreturn[_fnVisibleToColumnIndex(settings,idx)];case'name':// match by name. `names` is column index complete and in order\nreturn $.map(names,function(name,i){return name===match[1]?i:null;});default:return[];}}// Cell in the table body\nif(s.nodeName&&s._DT_CellIndex){return[s._DT_CellIndex.column];}// jQuery selector on the TH elements for the columns\nvar jqResult=$(nodes).filter(s).map(function(){return $.inArray(this,nodes);// `nodes` is column index complete and in order\n}).toArray();if(jqResult.length||!s.nodeName){return jqResult;}// Otherwise a node which might have a `dt-column` data attribute, or be\n// a child or such an element\nvar host=$(s).closest('*[data-dt-column]');return host.length?[host.data('dt-column')]:[];};return _selector_run('column',selector,run,settings,opts);};var __setColumnVis=function(settings,column,vis){var cols=settings.aoColumns,col=cols[column],data=settings.aoData,row,cells,i,ien,tr;// Get\nif(vis===undefined){return col.bVisible;}// Set\n// No change\nif(col.bVisible===vis){return;}if(vis){// Insert column\n// Need to decide if we should use appendChild or insertBefore\nvar insertBefore=$.inArray(true,_pluck(cols,'bVisible'),column+1);for(i=0,ien=data.length;i<ien;i++){tr=data[i].nTr;cells=data[i].anCells;if(tr){// insertBefore can act like appendChild if 2nd arg is null\ntr.insertBefore(cells[column],cells[insertBefore]||null);}}}else{// Remove column\n$(_pluck(settings.aoData,'anCells',column)).detach();}// Common actions\ncol.bVisible=vis;_fnDrawHead(settings,settings.aoHeader);_fnDrawHead(settings,settings.aoFooter);// Update colspan for no records display. Child rows and extensions will use their own\n// listeners to do this - only need to update the empty table item here\nif(!settings.aiDisplay.length){$(settings.nTBody).find('td[colspan]').attr('colspan',_fnVisbleColumns(settings));}_fnSaveState(settings);};_api_register('columns()',function(selector,opts){// argument shifting\nif(selector===undefined){selector='';}else if($.isPlainObject(selector)){opts=selector;selector='';}opts=_selector_opts(opts);var inst=this.iterator('table',function(settings){return __column_selector(settings,selector,opts);},1);// Want argument shifting here and in _row_selector?\ninst.selector.cols=selector;inst.selector.opts=opts;return inst;});_api_registerPlural('columns().header()','column().header()',function(selector,opts){return this.iterator('column',function(settings,column){return settings.aoColumns[column].nTh;},1);});_api_registerPlural('columns().footer()','column().footer()',function(selector,opts){return this.iterator('column',function(settings,column){return settings.aoColumns[column].nTf;},1);});_api_registerPlural('columns().data()','column().data()',function(){return this.iterator('column-rows',__columnData,1);});_api_registerPlural('columns().dataSrc()','column().dataSrc()',function(){return this.iterator('column',function(settings,column){return settings.aoColumns[column].mData;},1);});_api_registerPlural('columns().cache()','column().cache()',function(type){return this.iterator('column-rows',function(settings,column,i,j,rows){return _pluck_order(settings.aoData,rows,type==='search'?'_aFilterData':'_aSortData',column);},1);});_api_registerPlural('columns().nodes()','column().nodes()',function(){return this.iterator('column-rows',function(settings,column,i,j,rows){return _pluck_order(settings.aoData,rows,'anCells',column);},1);});_api_registerPlural('columns().visible()','column().visible()',function(vis,calc){var ret=this.iterator('column',function(settings,column){if(vis===undefined){return settings.aoColumns[column].bVisible;}// else\n__setColumnVis(settings,column,vis);});// Group the column visibility changes\nif(vis!==undefined){// Second loop once the first is done for events\nthis.iterator('column',function(settings,column){_fnCallbackFire(settings,null,'column-visibility',[settings,column,vis,calc]);});if(calc===undefined||calc){this.columns.adjust();}}return ret;});_api_registerPlural('columns().indexes()','column().index()',function(type){return this.iterator('column',function(settings,column){return type==='visible'?_fnColumnIndexToVisible(settings,column):column;},1);});_api_register('columns.adjust()',function(){return this.iterator('table',function(settings){_fnAdjustColumnSizing(settings);},1);});_api_register('column.index()',function(type,idx){if(this.context.length!==0){var ctx=this.context[0];if(type==='fromVisible'||type==='toData'){return _fnVisibleToColumnIndex(ctx,idx);}else if(type==='fromData'||type==='toVisible'){return _fnColumnIndexToVisible(ctx,idx);}}});_api_register('column()',function(selector,opts){return _selector_first(this.columns(selector,opts));});var __cell_selector=function(settings,selector,opts){var data=settings.aoData;var rows=_selector_row_indexes(settings,opts);var cells=_removeEmpty(_pluck_order(data,rows,'anCells'));var allCells=$([].concat.apply([],cells));var row;var columns=settings.aoColumns.length;var a,i,ien,j,o,host;var run=function(s){var fnSelector=typeof s==='function';if(s===null||s===undefined||fnSelector){// All cells and function selectors\na=[];for(i=0,ien=rows.length;i<ien;i++){row=rows[i];for(j=0;j<columns;j++){o={row:row,column:j};if(fnSelector){// Selector - function\nhost=data[row];if(s(o,_fnGetCellData(settings,row,j),host.anCells?host.anCells[j]:null)){a.push(o);}}else{// Selector - all\na.push(o);}}}return a;}// Selector - index\nif($.isPlainObject(s)){// Valid cell index and its in the array of selectable rows\nreturn s.column!==undefined&&s.row!==undefined&&$.inArray(s.row,rows)!==-1?[s]:[];}// Selector - jQuery filtered cells\nvar jqResult=allCells.filter(s).map(function(i,el){return{// use a new object, in case someone changes the values\nrow:el._DT_CellIndex.row,column:el._DT_CellIndex.column};}).toArray();if(jqResult.length||!s.nodeName){return jqResult;}// Otherwise the selector is a node, and there is one last option - the\n// element might be a child of an element which has dt-row and dt-column\n// data attributes\nhost=$(s).closest('*[data-dt-row]');return host.length?[{row:host.data('dt-row'),column:host.data('dt-column')}]:[];};return _selector_run('cell',selector,run,settings,opts);};_api_register('cells()',function(rowSelector,columnSelector,opts){// Argument shifting\nif($.isPlainObject(rowSelector)){// Indexes\nif(rowSelector.row===undefined){// Selector options in first parameter\nopts=rowSelector;rowSelector=null;}else{// Cell index objects in first parameter\nopts=columnSelector;columnSelector=null;}}if($.isPlainObject(columnSelector)){opts=columnSelector;columnSelector=null;}// Cell selector\nif(columnSelector===null||columnSelector===undefined){return this.iterator('table',function(settings){return __cell_selector(settings,rowSelector,_selector_opts(opts));});}// Row + column selector\nvar columns=this.columns(columnSelector);var rows=this.rows(rowSelector);var a,i,ien,j,jen;this.iterator('table',function(settings,idx){a=[];for(i=0,ien=rows[idx].length;i<ien;i++){for(j=0,jen=columns[idx].length;j<jen;j++){a.push({row:rows[idx][i],column:columns[idx][j]});}}},1);// Now pass through the cell selector for options\nvar cells=this.cells(a,opts);$.extend(cells.selector,{cols:columnSelector,rows:rowSelector,opts:opts});return cells;});_api_registerPlural('cells().nodes()','cell().node()',function(){return this.iterator('cell',function(settings,row,column){var data=settings.aoData[row];return data&&data.anCells?data.anCells[column]:undefined;},1);});_api_register('cells().data()',function(){return this.iterator('cell',function(settings,row,column){return _fnGetCellData(settings,row,column);},1);});_api_registerPlural('cells().cache()','cell().cache()',function(type){type=type==='search'?'_aFilterData':'_aSortData';return this.iterator('cell',function(settings,row,column){return settings.aoData[row][type][column];},1);});_api_registerPlural('cells().render()','cell().render()',function(type){return this.iterator('cell',function(settings,row,column){return _fnGetCellData(settings,row,column,type);},1);});_api_registerPlural('cells().indexes()','cell().index()',function(){return this.iterator('cell',function(settings,row,column){return{row:row,column:column,columnVisible:_fnColumnIndexToVisible(settings,column)};},1);});_api_registerPlural('cells().invalidate()','cell().invalidate()',function(src){return this.iterator('cell',function(settings,row,column){_fnInvalidate(settings,row,src,column);});});_api_register('cell()',function(rowSelector,columnSelector,opts){return _selector_first(this.cells(rowSelector,columnSelector,opts));});_api_register('cell().data()',function(data){var ctx=this.context;var cell=this[0];if(data===undefined){// Get\nreturn ctx.length&&cell.length?_fnGetCellData(ctx[0],cell[0].row,cell[0].column):undefined;}// Set\n_fnSetCellData(ctx[0],cell[0].row,cell[0].column,data);_fnInvalidate(ctx[0],cell[0].row,'data',cell[0].column);return this;});/**\r\n\t * Get current ordering (sorting) that has been applied to the table.\r\n\t *\r\n\t * @returns {array} 2D array containing the sorting information for the first\r\n\t *   table in the current context. Each element in the parent array represents\r\n\t *   a column being sorted upon (i.e. multi-sorting with two columns would have\r\n\t *   2 inner arrays). The inner arrays may have 2 or 3 elements. The first is\r\n\t *   the column index that the sorting condition applies to, the second is the\r\n\t *   direction of the sort (`desc` or `asc`) and, optionally, the third is the\r\n\t *   index of the sorting order from the `column.sorting` initialisation array.\r\n\t */ /**\r\n\t * Set the ordering for the table.\r\n\t *\r\n\t * @param {integer} order Column index to sort upon.\r\n\t * @param {string} direction Direction of the sort to be applied (`asc` or `desc`)\r\n\t * @returns {DataTables.Api} this\r\n\t */ /**\r\n\t * Set the ordering for the table.\r\n\t *\r\n\t * @param {array} order 1D array of sorting information to be applied.\r\n\t * @param {array} [...] Optional additional sorting conditions\r\n\t * @returns {DataTables.Api} this\r\n\t */ /**\r\n\t * Set the ordering for the table.\r\n\t *\r\n\t * @param {array} order 2D array of sorting information to be applied.\r\n\t * @returns {DataTables.Api} this\r\n\t */_api_register('order()',function(order,dir){var ctx=this.context;if(order===undefined){// get\nreturn ctx.length!==0?ctx[0].aaSorting:undefined;}// set\nif(typeof order==='number'){// Simple column / direction passed in\norder=[[order,dir]];}else if(order.length&&!$.isArray(order[0])){// Arguments passed in (list of 1D arrays)\norder=Array.prototype.slice.call(arguments);}// otherwise a 2D array was passed in\nreturn this.iterator('table',function(settings){settings.aaSorting=order.slice();});});/**\r\n\t * Attach a sort listener to an element for a given column\r\n\t *\r\n\t * @param {node|jQuery|string} node Identifier for the element(s) to attach the\r\n\t *   listener to. This can take the form of a single DOM node, a jQuery\r\n\t *   collection of nodes or a jQuery selector which will identify the node(s).\r\n\t * @param {integer} column the column that a click on this node will sort on\r\n\t * @param {function} [callback] callback function when sort is run\r\n\t * @returns {DataTables.Api} this\r\n\t */_api_register('order.listener()',function(node,column,callback){return this.iterator('table',function(settings){_fnSortAttachListener(settings,node,column,callback);});});_api_register('order.fixed()',function(set){if(!set){var ctx=this.context;var fixed=ctx.length?ctx[0].aaSortingFixed:undefined;return $.isArray(fixed)?{pre:fixed}:fixed;}return this.iterator('table',function(settings){settings.aaSortingFixed=$.extend(true,{},set);});});// Order by the selected column(s)\n_api_register(['columns().order()','column().order()'],function(dir){var that=this;return this.iterator('table',function(settings,i){var sort=[];$.each(that[i],function(j,col){sort.push([col,dir]);});settings.aaSorting=sort;});});_api_register('search()',function(input,regex,smart,caseInsen){var ctx=this.context;if(input===undefined){// get\nreturn ctx.length!==0?ctx[0].oPreviousSearch.sSearch:undefined;}// set\nreturn this.iterator('table',function(settings){if(!settings.oFeatures.bFilter){return;}_fnFilterComplete(settings,$.extend({},settings.oPreviousSearch,{\"sSearch\":input+\"\",\"bRegex\":regex===null?false:regex,\"bSmart\":smart===null?true:smart,\"bCaseInsensitive\":caseInsen===null?true:caseInsen}),1);});});_api_registerPlural('columns().search()','column().search()',function(input,regex,smart,caseInsen){return this.iterator('column',function(settings,column){var preSearch=settings.aoPreSearchCols;if(input===undefined){// get\nreturn preSearch[column].sSearch;}// set\nif(!settings.oFeatures.bFilter){return;}$.extend(preSearch[column],{\"sSearch\":input+\"\",\"bRegex\":regex===null?false:regex,\"bSmart\":smart===null?true:smart,\"bCaseInsensitive\":caseInsen===null?true:caseInsen});_fnFilterComplete(settings,settings.oPreviousSearch,1);});});/*\r\n\t * State API methods\r\n\t */_api_register('state()',function(){return this.context.length?this.context[0].oSavedState:null;});_api_register('state.clear()',function(){return this.iterator('table',function(settings){// Save an empty object\nsettings.fnStateSaveCallback.call(settings.oInstance,settings,{});});});_api_register('state.loaded()',function(){return this.context.length?this.context[0].oLoadedState:null;});_api_register('state.save()',function(){return this.iterator('table',function(settings){_fnSaveState(settings);});});/**\r\n\t * Provide a common method for plug-ins to check the version of DataTables being\r\n\t * used, in order to ensure compatibility.\r\n\t *\r\n\t *  @param {string} version Version string to check for, in the format \"X.Y.Z\".\r\n\t *    Note that the formats \"X\" and \"X.Y\" are also acceptable.\r\n\t *  @returns {boolean} true if this version of DataTables is greater or equal to\r\n\t *    the required version, or false if this version of DataTales is not\r\n\t *    suitable\r\n\t *  @static\r\n\t *  @dtopt API-Static\r\n\t *\r\n\t *  @example\r\n\t *    alert( $.fn.dataTable.versionCheck( '1.9.0' ) );\r\n\t */DataTable.versionCheck=DataTable.fnVersionCheck=function(version){var aThis=DataTable.version.split('.');var aThat=version.split('.');var iThis,iThat;for(var i=0,iLen=aThat.length;i<iLen;i++){iThis=parseInt(aThis[i],10)||0;iThat=parseInt(aThat[i],10)||0;// Parts are the same, keep comparing\nif(iThis===iThat){continue;}// Parts are different, return immediately\nreturn iThis>iThat;}return true;};/**\r\n\t * Check if a `<table>` node is a DataTable table already or not.\r\n\t *\r\n\t *  @param {node|jquery|string} table Table node, jQuery object or jQuery\r\n\t *      selector for the table to test. Note that if more than more than one\r\n\t *      table is passed on, only the first will be checked\r\n\t *  @returns {boolean} true the table given is a DataTable, or false otherwise\r\n\t *  @static\r\n\t *  @dtopt API-Static\r\n\t *\r\n\t *  @example\r\n\t *    if ( ! $.fn.DataTable.isDataTable( '#example' ) ) {\r\n\t *      $('#example').dataTable();\r\n\t *    }\r\n\t */DataTable.isDataTable=DataTable.fnIsDataTable=function(table){var t=$(table).get(0);var is=false;if(table instanceof DataTable.Api){return true;}$.each(DataTable.settings,function(i,o){var head=o.nScrollHead?$('table',o.nScrollHead)[0]:null;var foot=o.nScrollFoot?$('table',o.nScrollFoot)[0]:null;if(o.nTable===t||head===t||foot===t){is=true;}});return is;};/**\r\n\t * Get all DataTable tables that have been initialised - optionally you can\r\n\t * select to get only currently visible tables.\r\n\t *\r\n\t *  @param {boolean} [visible=false] Flag to indicate if you want all (default)\r\n\t *    or visible tables only.\r\n\t *  @returns {array} Array of `table` nodes (not DataTable instances) which are\r\n\t *    DataTables\r\n\t *  @static\r\n\t *  @dtopt API-Static\r\n\t *\r\n\t *  @example\r\n\t *    $.each( $.fn.dataTable.tables(true), function () {\r\n\t *      $(table).DataTable().columns.adjust();\r\n\t *    } );\r\n\t */DataTable.tables=DataTable.fnTables=function(visible){var api=false;if($.isPlainObject(visible)){api=visible.api;visible=visible.visible;}var a=$.map(DataTable.settings,function(o){if(!visible||visible&&$(o.nTable).is(':visible')){return o.nTable;}});return api?new _Api(a):a;};/**\r\n\t * Convert from camel case parameters to Hungarian notation. This is made public\r\n\t * for the extensions to provide the same ability as DataTables core to accept\r\n\t * either the 1.9 style Hungarian notation, or the 1.10+ style camelCase\r\n\t * parameters.\r\n\t *\r\n\t *  @param {object} src The model object which holds all parameters that can be\r\n\t *    mapped.\r\n\t *  @param {object} user The object to convert from camel case to Hungarian.\r\n\t *  @param {boolean} force When set to `true`, properties which already have a\r\n\t *    Hungarian value in the `user` object will be overwritten. Otherwise they\r\n\t *    won't be.\r\n\t */DataTable.camelToHungarian=_fnCamelToHungarian;/**\r\n\t *\r\n\t */_api_register('$()',function(selector,opts){var rows=this.rows(opts).nodes(),// Get all rows\njqRows=$(rows);return $([].concat(jqRows.filter(selector).toArray(),jqRows.find(selector).toArray()));});// jQuery functions to operate on the tables\n$.each(['on','one','off'],function(i,key){_api_register(key+'()',function/* event, handler */(){var args=Array.prototype.slice.call(arguments);// Add the `dt` namespace automatically if it isn't already present\nargs[0]=$.map(args[0].split(/\\s/),function(e){return!e.match(/\\.dt\\b/)?e+'.dt':e;}).join(' ');var inst=$(this.tables().nodes());inst[key].apply(inst,args);return this;});});_api_register('clear()',function(){return this.iterator('table',function(settings){_fnClearTable(settings);});});_api_register('settings()',function(){return new _Api(this.context,this.context);});_api_register('init()',function(){var ctx=this.context;return ctx.length?ctx[0].oInit:null;});_api_register('data()',function(){return this.iterator('table',function(settings){return _pluck(settings.aoData,'_aData');}).flatten();});_api_register('destroy()',function(remove){remove=remove||false;return this.iterator('table',function(settings){var orig=settings.nTableWrapper.parentNode;var classes=settings.oClasses;var table=settings.nTable;var tbody=settings.nTBody;var thead=settings.nTHead;var tfoot=settings.nTFoot;var jqTable=$(table);var jqTbody=$(tbody);var jqWrapper=$(settings.nTableWrapper);var rows=$.map(settings.aoData,function(r){return r.nTr;});var i,ien;// Flag to note that the table is currently being destroyed - no action\n// should be taken\nsettings.bDestroying=true;// Fire off the destroy callbacks for plug-ins etc\n_fnCallbackFire(settings,\"aoDestroyCallback\",\"destroy\",[settings]);// If not being removed from the document, make all columns visible\nif(!remove){new _Api(settings).columns().visible(true);}// Blitz all `DT` namespaced events (these are internal events, the\n// lowercase, `dt` events are user subscribed and they are responsible\n// for removing them\njqWrapper.off('.DT').find(':not(tbody *)').off('.DT');$(window).off('.DT-'+settings.sInstance);// When scrolling we had to break the table up - restore it\nif(table!=thead.parentNode){jqTable.children('thead').detach();jqTable.append(thead);}if(tfoot&&table!=tfoot.parentNode){jqTable.children('tfoot').detach();jqTable.append(tfoot);}settings.aaSorting=[];settings.aaSortingFixed=[];_fnSortingClasses(settings);$(rows).removeClass(settings.asStripeClasses.join(' '));$('th, td',thead).removeClass(classes.sSortable+' '+classes.sSortableAsc+' '+classes.sSortableDesc+' '+classes.sSortableNone);// Add the TR elements back into the table in their original order\njqTbody.children().detach();jqTbody.append(rows);// Remove the DataTables generated nodes, events and classes\nvar removedMethod=remove?'remove':'detach';jqTable[removedMethod]();jqWrapper[removedMethod]();// If we need to reattach the table to the document\nif(!remove&&orig){// insertBefore acts like appendChild if !arg[1]\norig.insertBefore(table,settings.nTableReinsertBefore);// Restore the width of the original table - was read from the style property,\n// so we can restore directly to that\njqTable.css('width',settings.sDestroyWidth).removeClass(classes.sTable);// If the were originally stripe classes - then we add them back here.\n// Note this is not fool proof (for example if not all rows had stripe\n// classes - but it's a good effort without getting carried away\nien=settings.asDestroyStripes.length;if(ien){jqTbody.children().each(function(i){$(this).addClass(settings.asDestroyStripes[i%ien]);});}}/* Remove the settings object from the settings array */var idx=$.inArray(settings,DataTable.settings);if(idx!==-1){DataTable.settings.splice(idx,1);}});});// Add the `every()` method for rows, columns and cells in a compact form\n$.each(['column','row','cell'],function(i,type){_api_register(type+'s().every()',function(fn){var opts=this.selector.opts;var api=this;return this.iterator(type,function(settings,arg1,arg2,arg3,arg4){// Rows and columns:\n//  arg1 - index\n//  arg2 - table counter\n//  arg3 - loop counter\n//  arg4 - undefined\n// Cells:\n//  arg1 - row index\n//  arg2 - column index\n//  arg3 - table counter\n//  arg4 - loop counter\nfn.call(api[type](arg1,type==='cell'?arg2:opts,type==='cell'?opts:undefined),arg1,arg2,arg3,arg4);});});});// i18n method for extensions to be able to use the language object from the\n// DataTable\n_api_register('i18n()',function(token,def,plural){var ctx=this.context[0];var resolved=_fnGetObjectDataFn(token)(ctx.oLanguage);if(resolved===undefined){resolved=def;}if(plural!==undefined&&$.isPlainObject(resolved)){resolved=resolved[plural]!==undefined?resolved[plural]:resolved._;}return resolved.replace('%d',plural);// nb: plural might be undefined,\n});/**\r\n\t * Version string for plug-ins to check compatibility. Allowed format is\r\n\t * `a.b.c-d` where: a:int, b:int, c:int, d:string(dev|beta|alpha). `d` is used\r\n\t * only for non-release builds. See http://semver.org/ for more information.\r\n\t *  @member\r\n\t *  @type string\r\n\t *  @default Version number\r\n\t */DataTable.version=\"1.10.19\";/**\r\n\t * Private data store, containing all of the settings objects that are\r\n\t * created for the tables on a given page.\r\n\t *\r\n\t * Note that the `DataTable.settings` object is aliased to\r\n\t * `jQuery.fn.dataTableExt` through which it may be accessed and\r\n\t * manipulated, or `jQuery.fn.dataTable.settings`.\r\n\t *  @member\r\n\t *  @type array\r\n\t *  @default []\r\n\t *  @private\r\n\t */DataTable.settings=[];/**\r\n\t * Object models container, for the various models that DataTables has\r\n\t * available to it. These models define the objects that are used to hold\r\n\t * the active state and configuration of the table.\r\n\t *  @namespace\r\n\t */DataTable.models={};/**\r\n\t * Template object for the way in which DataTables holds information about\r\n\t * search information for the global filter and individual column filters.\r\n\t *  @namespace\r\n\t */DataTable.models.oSearch={/**\r\n\t\t * Flag to indicate if the filtering should be case insensitive or not\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t */\"bCaseInsensitive\":true,/**\r\n\t\t * Applied search term\r\n\t\t *  @type string\r\n\t\t *  @default <i>Empty string</i>\r\n\t\t */\"sSearch\":\"\",/**\r\n\t\t * Flag to indicate if the search term should be interpreted as a\r\n\t\t * regular expression (true) or not (false) and therefore and special\r\n\t\t * regex characters escaped.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t */\"bRegex\":false,/**\r\n\t\t * Flag to indicate if DataTables is to use its smart filtering or not.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t */\"bSmart\":true};/**\r\n\t * Template object for the way in which DataTables holds information about\r\n\t * each individual row. This is the object format used for the settings\r\n\t * aoData array.\r\n\t *  @namespace\r\n\t */DataTable.models.oRow={/**\r\n\t\t * TR element for the row\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\"nTr\":null,/**\r\n\t\t * Array of TD elements for each row. This is null until the row has been\r\n\t\t * created.\r\n\t\t *  @type array nodes\r\n\t\t *  @default []\r\n\t\t */\"anCells\":null,/**\r\n\t\t * Data object from the original data source for the row. This is either\r\n\t\t * an array if using the traditional form of DataTables, or an object if\r\n\t\t * using mData options. The exact type will depend on the passed in\r\n\t\t * data from the data source, or will be an array if using DOM a data\r\n\t\t * source.\r\n\t\t *  @type array|object\r\n\t\t *  @default []\r\n\t\t */\"_aData\":[],/**\r\n\t\t * Sorting data cache - this array is ostensibly the same length as the\r\n\t\t * number of columns (although each index is generated only as it is\r\n\t\t * needed), and holds the data that is used for sorting each column in the\r\n\t\t * row. We do this cache generation at the start of the sort in order that\r\n\t\t * the formatting of the sort data need be done only once for each cell\r\n\t\t * per sort. This array should not be read from or written to by anything\r\n\t\t * other than the master sorting methods.\r\n\t\t *  @type array\r\n\t\t *  @default null\r\n\t\t *  @private\r\n\t\t */\"_aSortData\":null,/**\r\n\t\t * Per cell filtering data cache. As per the sort data cache, used to\r\n\t\t * increase the performance of the filtering in DataTables\r\n\t\t *  @type array\r\n\t\t *  @default null\r\n\t\t *  @private\r\n\t\t */\"_aFilterData\":null,/**\r\n\t\t * Filtering data cache. This is the same as the cell filtering cache, but\r\n\t\t * in this case a string rather than an array. This is easily computed with\r\n\t\t * a join on `_aFilterData`, but is provided as a cache so the join isn't\r\n\t\t * needed on every search (memory traded for performance)\r\n\t\t *  @type array\r\n\t\t *  @default null\r\n\t\t *  @private\r\n\t\t */\"_sFilterRow\":null,/**\r\n\t\t * Cache of the class name that DataTables has applied to the row, so we\r\n\t\t * can quickly look at this variable rather than needing to do a DOM check\r\n\t\t * on className for the nTr property.\r\n\t\t *  @type string\r\n\t\t *  @default <i>Empty string</i>\r\n\t\t *  @private\r\n\t\t */\"_sRowStripe\":\"\",/**\r\n\t\t * Denote if the original data source was from the DOM, or the data source\r\n\t\t * object. This is used for invalidating data, so DataTables can\r\n\t\t * automatically read data from the original source, unless uninstructed\r\n\t\t * otherwise.\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t *  @private\r\n\t\t */\"src\":null,/**\r\n\t\t * Index in the aoData array. This saves an indexOf lookup when we have the\r\n\t\t * object, but want to know the index\r\n\t\t *  @type integer\r\n\t\t *  @default -1\r\n\t\t *  @private\r\n\t\t */\"idx\":-1};/**\r\n\t * Template object for the column information object in DataTables. This object\r\n\t * is held in the settings aoColumns array and contains all the information that\r\n\t * DataTables needs about each individual column.\r\n\t *\r\n\t * Note that this object is related to {@link DataTable.defaults.column}\r\n\t * but this one is the internal data store for DataTables's cache of columns.\r\n\t * It should NOT be manipulated outside of DataTables. Any configuration should\r\n\t * be done through the initialisation options.\r\n\t *  @namespace\r\n\t */DataTable.models.oColumn={/**\r\n\t\t * Column index. This could be worked out on-the-fly with $.inArray, but it\r\n\t\t * is faster to just hold it as a variable\r\n\t\t *  @type integer\r\n\t\t *  @default null\r\n\t\t */\"idx\":null,/**\r\n\t\t * A list of the columns that sorting should occur on when this column\r\n\t\t * is sorted. That this property is an array allows multi-column sorting\r\n\t\t * to be defined for a column (for example first name / last name columns\r\n\t\t * would benefit from this). The values are integers pointing to the\r\n\t\t * columns to be sorted on (typically it will be a single integer pointing\r\n\t\t * at itself, but that doesn't need to be the case).\r\n\t\t *  @type array\r\n\t\t */\"aDataSort\":null,/**\r\n\t\t * Define the sorting directions that are applied to the column, in sequence\r\n\t\t * as the column is repeatedly sorted upon - i.e. the first value is used\r\n\t\t * as the sorting direction when the column if first sorted (clicked on).\r\n\t\t * Sort it again (click again) and it will move on to the next index.\r\n\t\t * Repeat until loop.\r\n\t\t *  @type array\r\n\t\t */\"asSorting\":null,/**\r\n\t\t * Flag to indicate if the column is searchable, and thus should be included\r\n\t\t * in the filtering or not.\r\n\t\t *  @type boolean\r\n\t\t */\"bSearchable\":null,/**\r\n\t\t * Flag to indicate if the column is sortable or not.\r\n\t\t *  @type boolean\r\n\t\t */\"bSortable\":null,/**\r\n\t\t * Flag to indicate if the column is currently visible in the table or not\r\n\t\t *  @type boolean\r\n\t\t */\"bVisible\":null,/**\r\n\t\t * Store for manual type assignment using the `column.type` option. This\r\n\t\t * is held in store so we can manipulate the column's `sType` property.\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t *  @private\r\n\t\t */\"_sManualType\":null,/**\r\n\t\t * Flag to indicate if HTML5 data attributes should be used as the data\r\n\t\t * source for filtering or sorting. True is either are.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *  @private\r\n\t\t */\"_bAttrSrc\":false,/**\r\n\t\t * Developer definable function that is called whenever a cell is created (Ajax source,\r\n\t\t * etc) or processed for input (DOM source). This can be used as a compliment to mRender\r\n\t\t * allowing you to modify the DOM element (add background colour for example) when the\r\n\t\t * element is available.\r\n\t\t *  @type function\r\n\t\t *  @param {element} nTd The TD node that has been created\r\n\t\t *  @param {*} sData The Data for the cell\r\n\t\t *  @param {array|object} oData The data for the whole row\r\n\t\t *  @param {int} iRow The row index for the aoData data store\r\n\t\t *  @default null\r\n\t\t */\"fnCreatedCell\":null,/**\r\n\t\t * Function to get data from a cell in a column. You should <b>never</b>\r\n\t\t * access data directly through _aData internally in DataTables - always use\r\n\t\t * the method attached to this property. It allows mData to function as\r\n\t\t * required. This function is automatically assigned by the column\r\n\t\t * initialisation method\r\n\t\t *  @type function\r\n\t\t *  @param {array|object} oData The data array/object for the array\r\n\t\t *    (i.e. aoData[]._aData)\r\n\t\t *  @param {string} sSpecific The specific data type you want to get -\r\n\t\t *    'display', 'type' 'filter' 'sort'\r\n\t\t *  @returns {*} The data for the cell from the given row's data\r\n\t\t *  @default null\r\n\t\t */\"fnGetData\":null,/**\r\n\t\t * Function to set data for a cell in the column. You should <b>never</b>\r\n\t\t * set the data directly to _aData internally in DataTables - always use\r\n\t\t * this method. It allows mData to function as required. This function\r\n\t\t * is automatically assigned by the column initialisation method\r\n\t\t *  @type function\r\n\t\t *  @param {array|object} oData The data array/object for the array\r\n\t\t *    (i.e. aoData[]._aData)\r\n\t\t *  @param {*} sValue Value to set\r\n\t\t *  @default null\r\n\t\t */\"fnSetData\":null,/**\r\n\t\t * Property to read the value for the cells in the column from the data\r\n\t\t * source array / object. If null, then the default content is used, if a\r\n\t\t * function is given then the return from the function is used.\r\n\t\t *  @type function|int|string|null\r\n\t\t *  @default null\r\n\t\t */\"mData\":null,/**\r\n\t\t * Partner property to mData which is used (only when defined) to get\r\n\t\t * the data - i.e. it is basically the same as mData, but without the\r\n\t\t * 'set' option, and also the data fed to it is the result from mData.\r\n\t\t * This is the rendering method to match the data method of mData.\r\n\t\t *  @type function|int|string|null\r\n\t\t *  @default null\r\n\t\t */\"mRender\":null,/**\r\n\t\t * Unique header TH/TD element for this column - this is what the sorting\r\n\t\t * listener is attached to (if sorting is enabled.)\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\"nTh\":null,/**\r\n\t\t * Unique footer TH/TD element for this column (if there is one). Not used\r\n\t\t * in DataTables as such, but can be used for plug-ins to reference the\r\n\t\t * footer for each column.\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\"nTf\":null,/**\r\n\t\t * The class to apply to all TD elements in the table's TBODY for the column\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\"sClass\":null,/**\r\n\t\t * When DataTables calculates the column widths to assign to each column,\r\n\t\t * it finds the longest string in each column and then constructs a\r\n\t\t * temporary table and reads the widths from that. The problem with this\r\n\t\t * is that \"mmm\" is much wider then \"iiii\", but the latter is a longer\r\n\t\t * string - thus the calculation can go wrong (doing it properly and putting\r\n\t\t * it into an DOM object and measuring that is horribly(!) slow). Thus as\r\n\t\t * a \"work around\" we provide this option. It will append its value to the\r\n\t\t * text that is found to be the longest string for the column - i.e. padding.\r\n\t\t *  @type string\r\n\t\t */\"sContentPadding\":null,/**\r\n\t\t * Allows a default value to be given for a column's data, and will be used\r\n\t\t * whenever a null data source is encountered (this can be because mData\r\n\t\t * is set to null, or because the data source itself is null).\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\"sDefaultContent\":null,/**\r\n\t\t * Name for the column, allowing reference to the column by name as well as\r\n\t\t * by index (needs a lookup to work by name).\r\n\t\t *  @type string\r\n\t\t */\"sName\":null,/**\r\n\t\t * Custom sorting data type - defines which of the available plug-ins in\r\n\t\t * afnSortData the custom sorting will use - if any is defined.\r\n\t\t *  @type string\r\n\t\t *  @default std\r\n\t\t */\"sSortDataType\":'std',/**\r\n\t\t * Class to be applied to the header element when sorting on this column\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\"sSortingClass\":null,/**\r\n\t\t * Class to be applied to the header element when sorting on this column -\r\n\t\t * when jQuery UI theming is used.\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\"sSortingClassJUI\":null,/**\r\n\t\t * Title of the column - what is seen in the TH element (nTh).\r\n\t\t *  @type string\r\n\t\t */\"sTitle\":null,/**\r\n\t\t * Column sorting and filtering type\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\"sType\":null,/**\r\n\t\t * Width of the column\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\"sWidth\":null,/**\r\n\t\t * Width of the column when it was first \"encountered\"\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\"sWidthOrig\":null};/*\r\n\t * Developer note: The properties of the object below are given in Hungarian\r\n\t * notation, that was used as the interface for DataTables prior to v1.10, however\r\n\t * from v1.10 onwards the primary interface is camel case. In order to avoid\r\n\t * breaking backwards compatibility utterly with this change, the Hungarian\r\n\t * version is still, internally the primary interface, but is is not documented\r\n\t * - hence the @name tags in each doc comment. This allows a Javascript function\r\n\t * to create a map from Hungarian notation to camel case (going the other direction\r\n\t * would require each property to be listed, which would at around 3K to the size\r\n\t * of DataTables, while this method is about a 0.5K hit.\r\n\t *\r\n\t * Ultimately this does pave the way for Hungarian notation to be dropped\r\n\t * completely, but that is a massive amount of work and will break current\r\n\t * installs (therefore is on-hold until v2).\r\n\t */ /**\r\n\t * Initialisation options that can be given to DataTables at initialisation\r\n\t * time.\r\n\t *  @namespace\r\n\t */DataTable.defaults={/**\r\n\t\t * An array of data to use for the table, passed in at initialisation which\r\n\t\t * will be used in preference to any data which is already in the DOM. This is\r\n\t\t * particularly useful for constructing tables purely in Javascript, for\r\n\t\t * example with a custom Ajax call.\r\n\t\t *  @type array\r\n\t\t *  @default null\r\n\t\t *\r\n\t\t *  @dtopt Option\r\n\t\t *  @name DataTable.defaults.data\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using a 2D array data source\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"data\": [\r\n\t\t *          ['Trident', 'Internet Explorer 4.0', 'Win 95+', 4, 'X'],\r\n\t\t *          ['Trident', 'Internet Explorer 5.0', 'Win 95+', 5, 'C'],\r\n\t\t *        ],\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"title\": \"Engine\" },\r\n\t\t *          { \"title\": \"Browser\" },\r\n\t\t *          { \"title\": \"Platform\" },\r\n\t\t *          { \"title\": \"Version\" },\r\n\t\t *          { \"title\": \"Grade\" }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using an array of objects as a data source (`data`)\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"data\": [\r\n\t\t *          {\r\n\t\t *            \"engine\":   \"Trident\",\r\n\t\t *            \"browser\":  \"Internet Explorer 4.0\",\r\n\t\t *            \"platform\": \"Win 95+\",\r\n\t\t *            \"version\":  4,\r\n\t\t *            \"grade\":    \"X\"\r\n\t\t *          },\r\n\t\t *          {\r\n\t\t *            \"engine\":   \"Trident\",\r\n\t\t *            \"browser\":  \"Internet Explorer 5.0\",\r\n\t\t *            \"platform\": \"Win 95+\",\r\n\t\t *            \"version\":  5,\r\n\t\t *            \"grade\":    \"C\"\r\n\t\t *          }\r\n\t\t *        ],\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"title\": \"Engine\",   \"data\": \"engine\" },\r\n\t\t *          { \"title\": \"Browser\",  \"data\": \"browser\" },\r\n\t\t *          { \"title\": \"Platform\", \"data\": \"platform\" },\r\n\t\t *          { \"title\": \"Version\",  \"data\": \"version\" },\r\n\t\t *          { \"title\": \"Grade\",    \"data\": \"grade\" }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"aaData\":null,/**\r\n\t\t * If ordering is enabled, then DataTables will perform a first pass sort on\r\n\t\t * initialisation. You can define which column(s) the sort is performed\r\n\t\t * upon, and the sorting direction, with this variable. The `sorting` array\r\n\t\t * should contain an array for each column to be sorted initially containing\r\n\t\t * the column's index and a direction string ('asc' or 'desc').\r\n\t\t *  @type array\r\n\t\t *  @default [[0,'asc']]\r\n\t\t *\r\n\t\t *  @dtopt Option\r\n\t\t *  @name DataTable.defaults.order\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Sort by 3rd column first, and then 4th column\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"order\": [[2,'asc'], [3,'desc']]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *    // No initial sorting\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"order\": []\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"aaSorting\":[[0,'asc']],/**\r\n\t\t * This parameter is basically identical to the `sorting` parameter, but\r\n\t\t * cannot be overridden by user interaction with the table. What this means\r\n\t\t * is that you could have a column (visible or hidden) which the sorting\r\n\t\t * will always be forced on first - any sorting after that (from the user)\r\n\t\t * will then be performed as required. This can be useful for grouping rows\r\n\t\t * together.\r\n\t\t *  @type array\r\n\t\t *  @default null\r\n\t\t *\r\n\t\t *  @dtopt Option\r\n\t\t *  @name DataTable.defaults.orderFixed\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"orderFixed\": [[0,'asc']]\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\"aaSortingFixed\":[],/**\r\n\t\t * DataTables can be instructed to load data to display in the table from a\r\n\t\t * Ajax source. This option defines how that Ajax call is made and where to.\r\n\t\t *\r\n\t\t * The `ajax` property has three different modes of operation, depending on\r\n\t\t * how it is defined. These are:\r\n\t\t *\r\n\t\t * * `string` - Set the URL from where the data should be loaded from.\r\n\t\t * * `object` - Define properties for `jQuery.ajax`.\r\n\t\t * * `function` - Custom data get function\r\n\t\t *\r\n\t\t * `string`\r\n\t\t * --------\r\n\t\t *\r\n\t\t * As a string, the `ajax` property simply defines the URL from which\r\n\t\t * DataTables will load data.\r\n\t\t *\r\n\t\t * `object`\r\n\t\t * --------\r\n\t\t *\r\n\t\t * As an object, the parameters in the object are passed to\r\n\t\t * [jQuery.ajax](http://api.jquery.com/jQuery.ajax/) allowing fine control\r\n\t\t * of the Ajax request. DataTables has a number of default parameters which\r\n\t\t * you can override using this option. Please refer to the jQuery\r\n\t\t * documentation for a full description of the options available, although\r\n\t\t * the following parameters provide additional options in DataTables or\r\n\t\t * require special consideration:\r\n\t\t *\r\n\t\t * * `data` - As with jQuery, `data` can be provided as an object, but it\r\n\t\t *   can also be used as a function to manipulate the data DataTables sends\r\n\t\t *   to the server. The function takes a single parameter, an object of\r\n\t\t *   parameters with the values that DataTables has readied for sending. An\r\n\t\t *   object may be returned which will be merged into the DataTables\r\n\t\t *   defaults, or you can add the items to the object that was passed in and\r\n\t\t *   not return anything from the function. This supersedes `fnServerParams`\r\n\t\t *   from DataTables 1.9-.\r\n\t\t *\r\n\t\t * * `dataSrc` - By default DataTables will look for the property `data` (or\r\n\t\t *   `aaData` for compatibility with DataTables 1.9-) when obtaining data\r\n\t\t *   from an Ajax source or for server-side processing - this parameter\r\n\t\t *   allows that property to be changed. You can use Javascript dotted\r\n\t\t *   object notation to get a data source for multiple levels of nesting, or\r\n\t\t *   it my be used as a function. As a function it takes a single parameter,\r\n\t\t *   the JSON returned from the server, which can be manipulated as\r\n\t\t *   required, with the returned value being that used by DataTables as the\r\n\t\t *   data source for the table. This supersedes `sAjaxDataProp` from\r\n\t\t *   DataTables 1.9-.\r\n\t\t *\r\n\t\t * * `success` - Should not be overridden it is used internally in\r\n\t\t *   DataTables. To manipulate / transform the data returned by the server\r\n\t\t *   use `ajax.dataSrc`, or use `ajax` as a function (see below).\r\n\t\t *\r\n\t\t * `function`\r\n\t\t * ----------\r\n\t\t *\r\n\t\t * As a function, making the Ajax call is left up to yourself allowing\r\n\t\t * complete control of the Ajax request. Indeed, if desired, a method other\r\n\t\t * than Ajax could be used to obtain the required data, such as Web storage\r\n\t\t * or an AIR database.\r\n\t\t *\r\n\t\t * The function is given four parameters and no return is required. The\r\n\t\t * parameters are:\r\n\t\t *\r\n\t\t * 1. _object_ - Data to send to the server\r\n\t\t * 2. _function_ - Callback function that must be executed when the required\r\n\t\t *    data has been obtained. That data should be passed into the callback\r\n\t\t *    as the only parameter\r\n\t\t * 3. _object_ - DataTables settings object for the table\r\n\t\t *\r\n\t\t * Note that this supersedes `fnServerData` from DataTables 1.9-.\r\n\t\t *\r\n\t\t *  @type string|object|function\r\n\t\t *  @default null\r\n\t\t *\r\n\t\t *  @dtopt Option\r\n\t\t *  @name DataTable.defaults.ajax\r\n\t\t *  @since 1.10.0\r\n\t\t *\r\n\t\t * @example\r\n\t\t *   // Get JSON data from a file via Ajax.\r\n\t\t *   // Note DataTables expects data in the form `{ data: [ ...data... ] }` by default).\r\n\t\t *   $('#example').dataTable( {\r\n\t\t *     \"ajax\": \"data.json\"\r\n\t\t *   } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t *   // Get JSON data from a file via Ajax, using `dataSrc` to change\r\n\t\t *   // `data` to `tableData` (i.e. `{ tableData: [ ...data... ] }`)\r\n\t\t *   $('#example').dataTable( {\r\n\t\t *     \"ajax\": {\r\n\t\t *       \"url\": \"data.json\",\r\n\t\t *       \"dataSrc\": \"tableData\"\r\n\t\t *     }\r\n\t\t *   } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t *   // Get JSON data from a file via Ajax, using `dataSrc` to read data\r\n\t\t *   // from a plain array rather than an array in an object\r\n\t\t *   $('#example').dataTable( {\r\n\t\t *     \"ajax\": {\r\n\t\t *       \"url\": \"data.json\",\r\n\t\t *       \"dataSrc\": \"\"\r\n\t\t *     }\r\n\t\t *   } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t *   // Manipulate the data returned from the server - add a link to data\r\n\t\t *   // (note this can, should, be done using `render` for the column - this\r\n\t\t *   // is just a simple example of how the data can be manipulated).\r\n\t\t *   $('#example').dataTable( {\r\n\t\t *     \"ajax\": {\r\n\t\t *       \"url\": \"data.json\",\r\n\t\t *       \"dataSrc\": function ( json ) {\r\n\t\t *         for ( var i=0, ien=json.length ; i<ien ; i++ ) {\r\n\t\t *           json[i][0] = '<a href=\"/message/'+json[i][0]+'>View message</a>';\r\n\t\t *         }\r\n\t\t *         return json;\r\n\t\t *       }\r\n\t\t *     }\r\n\t\t *   } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t *   // Add data to the request\r\n\t\t *   $('#example').dataTable( {\r\n\t\t *     \"ajax\": {\r\n\t\t *       \"url\": \"data.json\",\r\n\t\t *       \"data\": function ( d ) {\r\n\t\t *         return {\r\n\t\t *           \"extra_search\": $('#extra').val()\r\n\t\t *         };\r\n\t\t *       }\r\n\t\t *     }\r\n\t\t *   } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t *   // Send request as POST\r\n\t\t *   $('#example').dataTable( {\r\n\t\t *     \"ajax\": {\r\n\t\t *       \"url\": \"data.json\",\r\n\t\t *       \"type\": \"POST\"\r\n\t\t *     }\r\n\t\t *   } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t *   // Get the data from localStorage (could interface with a form for\r\n\t\t *   // adding, editing and removing rows).\r\n\t\t *   $('#example').dataTable( {\r\n\t\t *     \"ajax\": function (data, callback, settings) {\r\n\t\t *       callback(\r\n\t\t *         JSON.parse( localStorage.getItem('dataTablesData') )\r\n\t\t *       );\r\n\t\t *     }\r\n\t\t *   } );\r\n\t\t */\"ajax\":null,/**\r\n\t\t * This parameter allows you to readily specify the entries in the length drop\r\n\t\t * down menu that DataTables shows when pagination is enabled. It can be\r\n\t\t * either a 1D array of options which will be used for both the displayed\r\n\t\t * option and the value, or a 2D array which will use the array in the first\r\n\t\t * position as the value, and the array in the second position as the\r\n\t\t * displayed options (useful for language strings such as 'All').\r\n\t\t *\r\n\t\t * Note that the `pageLength` property will be automatically set to the\r\n\t\t * first value given in this array, unless `pageLength` is also provided.\r\n\t\t *  @type array\r\n\t\t *  @default [ 10, 25, 50, 100 ]\r\n\t\t *\r\n\t\t *  @dtopt Option\r\n\t\t *  @name DataTable.defaults.lengthMenu\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"lengthMenu\": [[10, 25, 50, -1], [10, 25, 50, \"All\"]]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"aLengthMenu\":[10,25,50,100],/**\r\n\t\t * The `columns` option in the initialisation parameter allows you to define\r\n\t\t * details about the way individual columns behave. For a full list of\r\n\t\t * column options that can be set, please see\r\n\t\t * {@link DataTable.defaults.column}. Note that if you use `columns` to\r\n\t\t * define your columns, you must have an entry in the array for every single\r\n\t\t * column that you have in your table (these can be null if you don't which\r\n\t\t * to specify any options).\r\n\t\t *  @member\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column\r\n\t\t */\"aoColumns\":null,/**\r\n\t\t * Very similar to `columns`, `columnDefs` allows you to target a specific\r\n\t\t * column, multiple columns, or all columns, using the `targets` property of\r\n\t\t * each object in the array. This allows great flexibility when creating\r\n\t\t * tables, as the `columnDefs` arrays can be of any length, targeting the\r\n\t\t * columns you specifically want. `columnDefs` may use any of the column\r\n\t\t * options available: {@link DataTable.defaults.column}, but it _must_\r\n\t\t * have `targets` defined in each object in the array. Values in the `targets`\r\n\t\t * array may be:\r\n\t\t *   <ul>\r\n\t\t *     <li>a string - class name will be matched on the TH for the column</li>\r\n\t\t *     <li>0 or a positive integer - column index counting from the left</li>\r\n\t\t *     <li>a negative integer - column index counting from the right</li>\r\n\t\t *     <li>the string \"_all\" - all columns (i.e. assign a default)</li>\r\n\t\t *   </ul>\r\n\t\t *  @member\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.columnDefs\r\n\t\t */\"aoColumnDefs\":null,/**\r\n\t\t * Basically the same as `search`, this parameter defines the individual column\r\n\t\t * filtering state at initialisation time. The array must be of the same size\r\n\t\t * as the number of columns, and each element be an object with the parameters\r\n\t\t * `search` and `escapeRegex` (the latter is optional). 'null' is also\r\n\t\t * accepted and the default will be used.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t *\r\n\t\t *  @dtopt Option\r\n\t\t *  @name DataTable.defaults.searchCols\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"searchCols\": [\r\n\t\t *          null,\r\n\t\t *          { \"search\": \"My filter\" },\r\n\t\t *          null,\r\n\t\t *          { \"search\": \"^[0-9]\", \"escapeRegex\": false }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\"aoSearchCols\":[],/**\r\n\t\t * An array of CSS classes that should be applied to displayed rows. This\r\n\t\t * array may be of any length, and DataTables will apply each class\r\n\t\t * sequentially, looping when required.\r\n\t\t *  @type array\r\n\t\t *  @default null <i>Will take the values determined by the `oClasses.stripe*`\r\n\t\t *    options</i>\r\n\t\t *\r\n\t\t *  @dtopt Option\r\n\t\t *  @name DataTable.defaults.stripeClasses\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stripeClasses\": [ 'strip1', 'strip2', 'strip3' ]\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\"asStripeClasses\":null,/**\r\n\t\t * Enable or disable automatic column width calculation. This can be disabled\r\n\t\t * as an optimisation (it takes some time to calculate the widths) if the\r\n\t\t * tables widths are passed in using `columns`.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.autoWidth\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"autoWidth\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"bAutoWidth\":true,/**\r\n\t\t * Deferred rendering can provide DataTables with a huge speed boost when you\r\n\t\t * are using an Ajax or JS data source for the table. This option, when set to\r\n\t\t * true, will cause DataTables to defer the creation of the table elements for\r\n\t\t * each row until they are needed for a draw - saving a significant amount of\r\n\t\t * time.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.deferRender\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"ajax\": \"sources/arrays.txt\",\r\n\t\t *        \"deferRender\": true\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"bDeferRender\":false,/**\r\n\t\t * Replace a DataTable which matches the given selector and replace it with\r\n\t\t * one which has the properties of the new initialisation object passed. If no\r\n\t\t * table matches the selector, then the new DataTable will be constructed as\r\n\t\t * per normal.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.destroy\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"srollY\": \"200px\",\r\n\t\t *        \"paginate\": false\r\n\t\t *      } );\r\n\t\t *\r\n\t\t *      // Some time later....\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"filter\": false,\r\n\t\t *        \"destroy\": true\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"bDestroy\":false,/**\r\n\t\t * Enable or disable filtering of data. Filtering in DataTables is \"smart\" in\r\n\t\t * that it allows the end user to input multiple words (space separated) and\r\n\t\t * will match a row containing those words, even if not in the order that was\r\n\t\t * specified (this allow matching across multiple columns). Note that if you\r\n\t\t * wish to use filtering in DataTables this must remain 'true' - to remove the\r\n\t\t * default filtering input box and retain filtering abilities, please use\r\n\t\t * {@link DataTable.defaults.dom}.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.searching\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"searching\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"bFilter\":true,/**\r\n\t\t * Enable or disable the table information display. This shows information\r\n\t\t * about the data that is currently visible on the page, including information\r\n\t\t * about filtered data if that action is being performed.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.info\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"info\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"bInfo\":true,/**\r\n\t\t * Allows the end user to select the size of a formatted page from a select\r\n\t\t * menu (sizes are 10, 25, 50 and 100). Requires pagination (`paginate`).\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.lengthChange\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"lengthChange\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"bLengthChange\":true,/**\r\n\t\t * Enable or disable pagination.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.paging\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"paging\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"bPaginate\":true,/**\r\n\t\t * Enable or disable the display of a 'processing' indicator when the table is\r\n\t\t * being processed (e.g. a sort). This is particularly useful for tables with\r\n\t\t * large amounts of data where it can take a noticeable amount of time to sort\r\n\t\t * the entries.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.processing\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"processing\": true\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"bProcessing\":false,/**\r\n\t\t * Retrieve the DataTables object for the given selector. Note that if the\r\n\t\t * table has already been initialised, this parameter will cause DataTables\r\n\t\t * to simply return the object that has already been set up - it will not take\r\n\t\t * account of any changes you might have made to the initialisation object\r\n\t\t * passed to DataTables (setting this parameter to true is an acknowledgement\r\n\t\t * that you understand this). `destroy` can be used to reinitialise a table if\r\n\t\t * you need.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.retrieve\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      initTable();\r\n\t\t *      tableActions();\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *    function initTable ()\r\n\t\t *    {\r\n\t\t *      return $('#example').dataTable( {\r\n\t\t *        \"scrollY\": \"200px\",\r\n\t\t *        \"paginate\": false,\r\n\t\t *        \"retrieve\": true\r\n\t\t *      } );\r\n\t\t *    }\r\n\t\t *\r\n\t\t *    function tableActions ()\r\n\t\t *    {\r\n\t\t *      var table = initTable();\r\n\t\t *      // perform API operations with oTable\r\n\t\t *    }\r\n\t\t */\"bRetrieve\":false,/**\r\n\t\t * When vertical (y) scrolling is enabled, DataTables will force the height of\r\n\t\t * the table's viewport to the given height at all times (useful for layout).\r\n\t\t * However, this can look odd when filtering data down to a small data set,\r\n\t\t * and the footer is left \"floating\" further down. This parameter (when\r\n\t\t * enabled) will cause DataTables to collapse the table's viewport down when\r\n\t\t * the result set will fit within the given Y height.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.scrollCollapse\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"scrollY\": \"200\",\r\n\t\t *        \"scrollCollapse\": true\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"bScrollCollapse\":false,/**\r\n\t\t * Configure DataTables to use server-side processing. Note that the\r\n\t\t * `ajax` parameter must also be given in order to give DataTables a\r\n\t\t * source to obtain the required data for each draw.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @dtopt Server-side\r\n\t\t *  @name DataTable.defaults.serverSide\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"serverSide\": true,\r\n\t\t *        \"ajax\": \"xhr.php\"\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"bServerSide\":false,/**\r\n\t\t * Enable or disable sorting of columns. Sorting of individual columns can be\r\n\t\t * disabled by the `sortable` option for each column.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.ordering\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"ordering\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"bSort\":true,/**\r\n\t\t * Enable or display DataTables' ability to sort multiple columns at the\r\n\t\t * same time (activated by shift-click by the user).\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.orderMulti\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Disable multiple column sorting ability\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"orderMulti\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"bSortMulti\":true,/**\r\n\t\t * Allows control over whether DataTables should use the top (true) unique\r\n\t\t * cell that is found for a single column, or the bottom (false - default).\r\n\t\t * This is useful when using complex headers.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.orderCellsTop\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"orderCellsTop\": true\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"bSortCellsTop\":false,/**\r\n\t\t * Enable or disable the addition of the classes `sorting\\_1`, `sorting\\_2` and\r\n\t\t * `sorting\\_3` to the columns which are currently being sorted on. This is\r\n\t\t * presented as a feature switch as it can increase processing time (while\r\n\t\t * classes are removed and added) so for large data sets you might want to\r\n\t\t * turn this off.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.orderClasses\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"orderClasses\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"bSortClasses\":true,/**\r\n\t\t * Enable or disable state saving. When enabled HTML5 `localStorage` will be\r\n\t\t * used to save table display information such as pagination information,\r\n\t\t * display length, filtering and sorting. As such when the end user reloads\r\n\t\t * the page the display display will match what thy had previously set up.\r\n\t\t *\r\n\t\t * Due to the use of `localStorage` the default state saving is not supported\r\n\t\t * in IE6 or 7. If state saving is required in those browsers, use\r\n\t\t * `stateSaveCallback` to provide a storage solution such as cookies.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.stateSave\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateSave\": true\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"bStateSave\":false,/**\r\n\t\t * This function is called when a TR element is created (and all TD child\r\n\t\t * elements have been inserted), or registered if using a DOM source, allowing\r\n\t\t * manipulation of the TR element (adding classes etc).\r\n\t\t *  @type function\r\n\t\t *  @param {node} row \"TR\" element for the current row\r\n\t\t *  @param {array} data Raw data array for this row\r\n\t\t *  @param {int} dataIndex The index of this row in the internal aoData array\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.createdRow\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"createdRow\": function( row, data, dataIndex ) {\r\n\t\t *          // Bold the grade for all 'A' grade browsers\r\n\t\t *          if ( data[4] == \"A\" )\r\n\t\t *          {\r\n\t\t *            $('td:eq(4)', row).html( '<b>A</b>' );\r\n\t\t *          }\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"fnCreatedRow\":null,/**\r\n\t\t * This function is called on every 'draw' event, and allows you to\r\n\t\t * dynamically modify any aspect you want about the created DOM.\r\n\t\t *  @type function\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.drawCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"drawCallback\": function( settings ) {\r\n\t\t *          alert( 'DataTables has redrawn the table' );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"fnDrawCallback\":null,/**\r\n\t\t * Identical to fnHeaderCallback() but for the table footer this function\r\n\t\t * allows you to modify the table footer on every 'draw' event.\r\n\t\t *  @type function\r\n\t\t *  @param {node} foot \"TR\" element for the footer\r\n\t\t *  @param {array} data Full table data (as derived from the original HTML)\r\n\t\t *  @param {int} start Index for the current display starting point in the\r\n\t\t *    display array\r\n\t\t *  @param {int} end Index for the current display ending point in the\r\n\t\t *    display array\r\n\t\t *  @param {array int} display Index array to translate the visual position\r\n\t\t *    to the full data array\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.footerCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"footerCallback\": function( tfoot, data, start, end, display ) {\r\n\t\t *          tfoot.getElementsByTagName('th')[0].innerHTML = \"Starting index is \"+start;\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\"fnFooterCallback\":null,/**\r\n\t\t * When rendering large numbers in the information element for the table\r\n\t\t * (i.e. \"Showing 1 to 10 of 57 entries\") DataTables will render large numbers\r\n\t\t * to have a comma separator for the 'thousands' units (e.g. 1 million is\r\n\t\t * rendered as \"1,000,000\") to help readability for the end user. This\r\n\t\t * function will override the default method DataTables uses.\r\n\t\t *  @type function\r\n\t\t *  @member\r\n\t\t *  @param {int} toFormat number to be formatted\r\n\t\t *  @returns {string} formatted string for DataTables to show the number\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.formatNumber\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Format a number using a single quote for the separator (note that\r\n\t\t *    // this can also be done with the language.thousands option)\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"formatNumber\": function ( toFormat ) {\r\n\t\t *          return toFormat.toString().replace(\r\n\t\t *            /\\B(?=(\\d{3})+(?!\\d))/g, \"'\"\r\n\t\t *          );\r\n\t\t *        };\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"fnFormatNumber\":function(toFormat){return toFormat.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,this.oLanguage.sThousands);},/**\r\n\t\t * This function is called on every 'draw' event, and allows you to\r\n\t\t * dynamically modify the header row. This can be used to calculate and\r\n\t\t * display useful information about the table.\r\n\t\t *  @type function\r\n\t\t *  @param {node} head \"TR\" element for the header\r\n\t\t *  @param {array} data Full table data (as derived from the original HTML)\r\n\t\t *  @param {int} start Index for the current display starting point in the\r\n\t\t *    display array\r\n\t\t *  @param {int} end Index for the current display ending point in the\r\n\t\t *    display array\r\n\t\t *  @param {array int} display Index array to translate the visual position\r\n\t\t *    to the full data array\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.headerCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"fheaderCallback\": function( head, data, start, end, display ) {\r\n\t\t *          head.getElementsByTagName('th')[0].innerHTML = \"Displaying \"+(end-start)+\" records\";\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\"fnHeaderCallback\":null,/**\r\n\t\t * The information element can be used to convey information about the current\r\n\t\t * state of the table. Although the internationalisation options presented by\r\n\t\t * DataTables are quite capable of dealing with most customisations, there may\r\n\t\t * be times where you wish to customise the string further. This callback\r\n\t\t * allows you to do exactly that.\r\n\t\t *  @type function\r\n\t\t *  @param {object} oSettings DataTables settings object\r\n\t\t *  @param {int} start Starting position in data for the draw\r\n\t\t *  @param {int} end End position in data for the draw\r\n\t\t *  @param {int} max Total number of rows in the table (regardless of\r\n\t\t *    filtering)\r\n\t\t *  @param {int} total Total number of rows in the data set, after filtering\r\n\t\t *  @param {string} pre The string that DataTables has formatted using it's\r\n\t\t *    own rules\r\n\t\t *  @returns {string} The string to be displayed in the information element.\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.infoCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $('#example').dataTable( {\r\n\t\t *      \"infoCallback\": function( settings, start, end, max, total, pre ) {\r\n\t\t *        return start +\" to \"+ end;\r\n\t\t *      }\r\n\t\t *    } );\r\n\t\t */\"fnInfoCallback\":null,/**\r\n\t\t * Called when the table has been initialised. Normally DataTables will\r\n\t\t * initialise sequentially and there will be no need for this function,\r\n\t\t * however, this does not hold true when using external language information\r\n\t\t * since that is obtained using an async XHR call.\r\n\t\t *  @type function\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *  @param {object} json The JSON object request from the server - only\r\n\t\t *    present if client-side Ajax sourced data is used\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.initComplete\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"initComplete\": function(settings, json) {\r\n\t\t *          alert( 'DataTables has finished its initialisation.' );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\"fnInitComplete\":null,/**\r\n\t\t * Called at the very start of each table draw and can be used to cancel the\r\n\t\t * draw by returning false, any other return (including undefined) results in\r\n\t\t * the full draw occurring).\r\n\t\t *  @type function\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *  @returns {boolean} False will cancel the draw, anything else (including no\r\n\t\t *    return) will allow it to complete.\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.preDrawCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"preDrawCallback\": function( settings ) {\r\n\t\t *          if ( $('#test').val() == 1 ) {\r\n\t\t *            return false;\r\n\t\t *          }\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"fnPreDrawCallback\":null,/**\r\n\t\t * This function allows you to 'post process' each row after it have been\r\n\t\t * generated for each table draw, but before it is rendered on screen. This\r\n\t\t * function might be used for setting the row class name etc.\r\n\t\t *  @type function\r\n\t\t *  @param {node} row \"TR\" element for the current row\r\n\t\t *  @param {array} data Raw data array for this row\r\n\t\t *  @param {int} displayIndex The display index for the current table draw\r\n\t\t *  @param {int} displayIndexFull The index of the data in the full list of\r\n\t\t *    rows (after filtering)\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.rowCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"rowCallback\": function( row, data, displayIndex, displayIndexFull ) {\r\n\t\t *          // Bold the grade for all 'A' grade browsers\r\n\t\t *          if ( data[4] == \"A\" ) {\r\n\t\t *            $('td:eq(4)', row).html( '<b>A</b>' );\r\n\t\t *          }\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"fnRowCallback\":null,/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through `ajax`, which should be used instead.\r\n\t\t *\r\n\t\t * This parameter allows you to override the default function which obtains\r\n\t\t * the data from the server so something more suitable for your application.\r\n\t\t * For example you could use POST data, or pull information from a Gears or\r\n\t\t * AIR database.\r\n\t\t *  @type function\r\n\t\t *  @member\r\n\t\t *  @param {string} source HTTP source to obtain the data from (`ajax`)\r\n\t\t *  @param {array} data A key/value pair object containing the data to send\r\n\t\t *    to the server\r\n\t\t *  @param {function} callback to be called on completion of the data get\r\n\t\t *    process that will draw the data on the page.\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @dtopt Server-side\r\n\t\t *  @name DataTable.defaults.serverData\r\n\t\t *\r\n\t\t *  @deprecated 1.10. Please use `ajax` for this functionality now.\r\n\t\t */\"fnServerData\":null,/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through `ajax`, which should be used instead.\r\n\t\t *\r\n\t\t *  It is often useful to send extra data to the server when making an Ajax\r\n\t\t * request - for example custom filtering information, and this callback\r\n\t\t * function makes it trivial to send extra information to the server. The\r\n\t\t * passed in parameter is the data set that has been constructed by\r\n\t\t * DataTables, and you can add to this or modify it as you require.\r\n\t\t *  @type function\r\n\t\t *  @param {array} data Data array (array of objects which are name/value\r\n\t\t *    pairs) that has been constructed by DataTables and will be sent to the\r\n\t\t *    server. In the case of Ajax sourced data with server-side processing\r\n\t\t *    this will be an empty array, for server-side processing there will be a\r\n\t\t *    significant number of parameters!\r\n\t\t *  @returns {undefined} Ensure that you modify the data array passed in,\r\n\t\t *    as this is passed by reference.\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @dtopt Server-side\r\n\t\t *  @name DataTable.defaults.serverParams\r\n\t\t *\r\n\t\t *  @deprecated 1.10. Please use `ajax` for this functionality now.\r\n\t\t */\"fnServerParams\":null,/**\r\n\t\t * Load the table state. With this function you can define from where, and how, the\r\n\t\t * state of a table is loaded. By default DataTables will load from `localStorage`\r\n\t\t * but you might wish to use a server-side database or cookies.\r\n\t\t *  @type function\r\n\t\t *  @member\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *  @param {object} callback Callback that can be executed when done. It\r\n\t\t *    should be passed the loaded state object.\r\n\t\t *  @return {object} The DataTables state object to be loaded\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.stateLoadCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateSave\": true,\r\n\t\t *        \"stateLoadCallback\": function (settings, callback) {\r\n\t\t *          $.ajax( {\r\n\t\t *            \"url\": \"/state_load\",\r\n\t\t *            \"dataType\": \"json\",\r\n\t\t *            \"success\": function (json) {\r\n\t\t *              callback( json );\r\n\t\t *            }\r\n\t\t *          } );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"fnStateLoadCallback\":function(settings){try{return JSON.parse((settings.iStateDuration===-1?sessionStorage:localStorage).getItem('DataTables_'+settings.sInstance+'_'+location.pathname));}catch(e){}},/**\r\n\t\t * Callback which allows modification of the saved state prior to loading that state.\r\n\t\t * This callback is called when the table is loading state from the stored data, but\r\n\t\t * prior to the settings object being modified by the saved state. Note that for\r\n\t\t * plug-in authors, you should use the `stateLoadParams` event to load parameters for\r\n\t\t * a plug-in.\r\n\t\t *  @type function\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *  @param {object} data The state object that is to be loaded\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.stateLoadParams\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Remove a saved filter, so filtering is never loaded\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateSave\": true,\r\n\t\t *        \"stateLoadParams\": function (settings, data) {\r\n\t\t *          data.oSearch.sSearch = \"\";\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Disallow state loading by returning false\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateSave\": true,\r\n\t\t *        \"stateLoadParams\": function (settings, data) {\r\n\t\t *          return false;\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"fnStateLoadParams\":null,/**\r\n\t\t * Callback that is called when the state has been loaded from the state saving method\r\n\t\t * and the DataTables settings object has been modified as a result of the loaded state.\r\n\t\t *  @type function\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *  @param {object} data The state object that was loaded\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.stateLoaded\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Show an alert with the filtering value that was saved\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateSave\": true,\r\n\t\t *        \"stateLoaded\": function (settings, data) {\r\n\t\t *          alert( 'Saved filter was: '+data.oSearch.sSearch );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"fnStateLoaded\":null,/**\r\n\t\t * Save the table state. This function allows you to define where and how the state\r\n\t\t * information for the table is stored By default DataTables will use `localStorage`\r\n\t\t * but you might wish to use a server-side database or cookies.\r\n\t\t *  @type function\r\n\t\t *  @member\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *  @param {object} data The state object to be saved\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.stateSaveCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateSave\": true,\r\n\t\t *        \"stateSaveCallback\": function (settings, data) {\r\n\t\t *          // Send an Ajax request to the server with the state object\r\n\t\t *          $.ajax( {\r\n\t\t *            \"url\": \"/state_save\",\r\n\t\t *            \"data\": data,\r\n\t\t *            \"dataType\": \"json\",\r\n\t\t *            \"method\": \"POST\"\r\n\t\t *            \"success\": function () {}\r\n\t\t *          } );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"fnStateSaveCallback\":function(settings,data){try{(settings.iStateDuration===-1?sessionStorage:localStorage).setItem('DataTables_'+settings.sInstance+'_'+location.pathname,JSON.stringify(data));}catch(e){}},/**\r\n\t\t * Callback which allows modification of the state to be saved. Called when the table\r\n\t\t * has changed state a new state save is required. This method allows modification of\r\n\t\t * the state saving object prior to actually doing the save, including addition or\r\n\t\t * other state properties or modification. Note that for plug-in authors, you should\r\n\t\t * use the `stateSaveParams` event to save parameters for a plug-in.\r\n\t\t *  @type function\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *  @param {object} data The state object to be saved\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.stateSaveParams\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Remove a saved filter, so filtering is never saved\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateSave\": true,\r\n\t\t *        \"stateSaveParams\": function (settings, data) {\r\n\t\t *          data.oSearch.sSearch = \"\";\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"fnStateSaveParams\":null,/**\r\n\t\t * Duration for which the saved state information is considered valid. After this period\r\n\t\t * has elapsed the state will be returned to the default.\r\n\t\t * Value is given in seconds.\r\n\t\t *  @type int\r\n\t\t *  @default 7200 <i>(2 hours)</i>\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.stateDuration\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateDuration\": 60*60*24; // 1 day\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\"iStateDuration\":7200,/**\r\n\t\t * When enabled DataTables will not make a request to the server for the first\r\n\t\t * page draw - rather it will use the data already on the page (no sorting etc\r\n\t\t * will be applied to it), thus saving on an XHR at load time. `deferLoading`\r\n\t\t * is used to indicate that deferred loading is required, but it is also used\r\n\t\t * to tell DataTables how many records there are in the full table (allowing\r\n\t\t * the information element and pagination to be displayed correctly). In the case\r\n\t\t * where a filtering is applied to the table on initial load, this can be\r\n\t\t * indicated by giving the parameter as an array, where the first element is\r\n\t\t * the number of records available after filtering and the second element is the\r\n\t\t * number of records without filtering (allowing the table information element\r\n\t\t * to be shown correctly).\r\n\t\t *  @type int | array\r\n\t\t *  @default null\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.deferLoading\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // 57 records available in the table, no filtering applied\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"serverSide\": true,\r\n\t\t *        \"ajax\": \"scripts/server_processing.php\",\r\n\t\t *        \"deferLoading\": 57\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // 57 records after filtering, 100 without filtering (an initial filter applied)\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"serverSide\": true,\r\n\t\t *        \"ajax\": \"scripts/server_processing.php\",\r\n\t\t *        \"deferLoading\": [ 57, 100 ],\r\n\t\t *        \"search\": {\r\n\t\t *          \"search\": \"my_filter\"\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"iDeferLoading\":null,/**\r\n\t\t * Number of rows to display on a single page when using pagination. If\r\n\t\t * feature enabled (`lengthChange`) then the end user will be able to override\r\n\t\t * this to a custom setting using a pop-up menu.\r\n\t\t *  @type int\r\n\t\t *  @default 10\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.pageLength\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"pageLength\": 50\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\"iDisplayLength\":10,/**\r\n\t\t * Define the starting point for data display when using DataTables with\r\n\t\t * pagination. Note that this parameter is the number of records, rather than\r\n\t\t * the page number, so if you have 10 records per page and want to start on\r\n\t\t * the third page, it should be \"20\".\r\n\t\t *  @type int\r\n\t\t *  @default 0\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.displayStart\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"displayStart\": 20\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\"iDisplayStart\":0,/**\r\n\t\t * By default DataTables allows keyboard navigation of the table (sorting, paging,\r\n\t\t * and filtering) by adding a `tabindex` attribute to the required elements. This\r\n\t\t * allows you to tab through the controls and press the enter key to activate them.\r\n\t\t * The tabindex is default 0, meaning that the tab follows the flow of the document.\r\n\t\t * You can overrule this using this parameter if you wish. Use a value of -1 to\r\n\t\t * disable built-in keyboard navigation.\r\n\t\t *  @type int\r\n\t\t *  @default 0\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.tabIndex\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"tabIndex\": 1\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"iTabIndex\":0,/**\r\n\t\t * Classes that DataTables assigns to the various components and features\r\n\t\t * that it adds to the HTML table. This allows classes to be configured\r\n\t\t * during initialisation in addition to through the static\r\n\t\t * {@link DataTable.ext.oStdClasses} object).\r\n\t\t *  @namespace\r\n\t\t *  @name DataTable.defaults.classes\r\n\t\t */\"oClasses\":{},/**\r\n\t\t * All strings that DataTables uses in the user interface that it creates\r\n\t\t * are defined in this object, allowing you to modified them individually or\r\n\t\t * completely replace them all as required.\r\n\t\t *  @namespace\r\n\t\t *  @name DataTable.defaults.language\r\n\t\t */\"oLanguage\":{/**\r\n\t\t\t * Strings that are used for WAI-ARIA labels and controls only (these are not\r\n\t\t\t * actually visible on the page, but will be read by screenreaders, and thus\r\n\t\t\t * must be internationalised as well).\r\n\t\t\t *  @namespace\r\n\t\t\t *  @name DataTable.defaults.language.aria\r\n\t\t\t */\"oAria\":{/**\r\n\t\t\t\t * ARIA label that is added to the table headers when the column may be\r\n\t\t\t\t * sorted ascending by activing the column (click or return when focused).\r\n\t\t\t\t * Note that the column header is prefixed to this string.\r\n\t\t\t\t *  @type string\r\n\t\t\t\t *  @default : activate to sort column ascending\r\n\t\t\t\t *\r\n\t\t\t\t *  @dtopt Language\r\n\t\t\t\t *  @name DataTable.defaults.language.aria.sortAscending\r\n\t\t\t\t *\r\n\t\t\t\t *  @example\r\n\t\t\t\t *    $(document).ready( function() {\r\n\t\t\t\t *      $('#example').dataTable( {\r\n\t\t\t\t *        \"language\": {\r\n\t\t\t\t *          \"aria\": {\r\n\t\t\t\t *            \"sortAscending\": \" - click/return to sort ascending\"\r\n\t\t\t\t *          }\r\n\t\t\t\t *        }\r\n\t\t\t\t *      } );\r\n\t\t\t\t *    } );\r\n\t\t\t\t */\"sSortAscending\":\": activate to sort column ascending\",/**\r\n\t\t\t\t * ARIA label that is added to the table headers when the column may be\r\n\t\t\t\t * sorted descending by activing the column (click or return when focused).\r\n\t\t\t\t * Note that the column header is prefixed to this string.\r\n\t\t\t\t *  @type string\r\n\t\t\t\t *  @default : activate to sort column ascending\r\n\t\t\t\t *\r\n\t\t\t\t *  @dtopt Language\r\n\t\t\t\t *  @name DataTable.defaults.language.aria.sortDescending\r\n\t\t\t\t *\r\n\t\t\t\t *  @example\r\n\t\t\t\t *    $(document).ready( function() {\r\n\t\t\t\t *      $('#example').dataTable( {\r\n\t\t\t\t *        \"language\": {\r\n\t\t\t\t *          \"aria\": {\r\n\t\t\t\t *            \"sortDescending\": \" - click/return to sort descending\"\r\n\t\t\t\t *          }\r\n\t\t\t\t *        }\r\n\t\t\t\t *      } );\r\n\t\t\t\t *    } );\r\n\t\t\t\t */\"sSortDescending\":\": activate to sort column descending\"},/**\r\n\t\t\t * Pagination string used by DataTables for the built-in pagination\r\n\t\t\t * control types.\r\n\t\t\t *  @namespace\r\n\t\t\t *  @name DataTable.defaults.language.paginate\r\n\t\t\t */\"oPaginate\":{/**\r\n\t\t\t\t * Text to use when using the 'full_numbers' type of pagination for the\r\n\t\t\t\t * button to take the user to the first page.\r\n\t\t\t\t *  @type string\r\n\t\t\t\t *  @default First\r\n\t\t\t\t *\r\n\t\t\t\t *  @dtopt Language\r\n\t\t\t\t *  @name DataTable.defaults.language.paginate.first\r\n\t\t\t\t *\r\n\t\t\t\t *  @example\r\n\t\t\t\t *    $(document).ready( function() {\r\n\t\t\t\t *      $('#example').dataTable( {\r\n\t\t\t\t *        \"language\": {\r\n\t\t\t\t *          \"paginate\": {\r\n\t\t\t\t *            \"first\": \"First page\"\r\n\t\t\t\t *          }\r\n\t\t\t\t *        }\r\n\t\t\t\t *      } );\r\n\t\t\t\t *    } );\r\n\t\t\t\t */\"sFirst\":\"First\",/**\r\n\t\t\t\t * Text to use when using the 'full_numbers' type of pagination for the\r\n\t\t\t\t * button to take the user to the last page.\r\n\t\t\t\t *  @type string\r\n\t\t\t\t *  @default Last\r\n\t\t\t\t *\r\n\t\t\t\t *  @dtopt Language\r\n\t\t\t\t *  @name DataTable.defaults.language.paginate.last\r\n\t\t\t\t *\r\n\t\t\t\t *  @example\r\n\t\t\t\t *    $(document).ready( function() {\r\n\t\t\t\t *      $('#example').dataTable( {\r\n\t\t\t\t *        \"language\": {\r\n\t\t\t\t *          \"paginate\": {\r\n\t\t\t\t *            \"last\": \"Last page\"\r\n\t\t\t\t *          }\r\n\t\t\t\t *        }\r\n\t\t\t\t *      } );\r\n\t\t\t\t *    } );\r\n\t\t\t\t */\"sLast\":\"Last\",/**\r\n\t\t\t\t * Text to use for the 'next' pagination button (to take the user to the\r\n\t\t\t\t * next page).\r\n\t\t\t\t *  @type string\r\n\t\t\t\t *  @default Next\r\n\t\t\t\t *\r\n\t\t\t\t *  @dtopt Language\r\n\t\t\t\t *  @name DataTable.defaults.language.paginate.next\r\n\t\t\t\t *\r\n\t\t\t\t *  @example\r\n\t\t\t\t *    $(document).ready( function() {\r\n\t\t\t\t *      $('#example').dataTable( {\r\n\t\t\t\t *        \"language\": {\r\n\t\t\t\t *          \"paginate\": {\r\n\t\t\t\t *            \"next\": \"Next page\"\r\n\t\t\t\t *          }\r\n\t\t\t\t *        }\r\n\t\t\t\t *      } );\r\n\t\t\t\t *    } );\r\n\t\t\t\t */\"sNext\":\"Next\",/**\r\n\t\t\t\t * Text to use for the 'previous' pagination button (to take the user to\r\n\t\t\t\t * the previous page).\r\n\t\t\t\t *  @type string\r\n\t\t\t\t *  @default Previous\r\n\t\t\t\t *\r\n\t\t\t\t *  @dtopt Language\r\n\t\t\t\t *  @name DataTable.defaults.language.paginate.previous\r\n\t\t\t\t *\r\n\t\t\t\t *  @example\r\n\t\t\t\t *    $(document).ready( function() {\r\n\t\t\t\t *      $('#example').dataTable( {\r\n\t\t\t\t *        \"language\": {\r\n\t\t\t\t *          \"paginate\": {\r\n\t\t\t\t *            \"previous\": \"Previous page\"\r\n\t\t\t\t *          }\r\n\t\t\t\t *        }\r\n\t\t\t\t *      } );\r\n\t\t\t\t *    } );\r\n\t\t\t\t */\"sPrevious\":\"Previous\"},/**\r\n\t\t\t * This string is shown in preference to `zeroRecords` when the table is\r\n\t\t\t * empty of data (regardless of filtering). Note that this is an optional\r\n\t\t\t * parameter - if it is not given, the value of `zeroRecords` will be used\r\n\t\t\t * instead (either the default or given value).\r\n\t\t\t *  @type string\r\n\t\t\t *  @default No data available in table\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.emptyTable\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"emptyTable\": \"No data available in table\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\"sEmptyTable\":\"No data available in table\",/**\r\n\t\t\t * This string gives information to the end user about the information\r\n\t\t\t * that is current on display on the page. The following tokens can be\r\n\t\t\t * used in the string and will be dynamically replaced as the table\r\n\t\t\t * display updates. This tokens can be placed anywhere in the string, or\r\n\t\t\t * removed as needed by the language requires:\r\n\t\t\t *\r\n\t\t\t * * `\\_START\\_` - Display index of the first record on the current page\r\n\t\t\t * * `\\_END\\_` - Display index of the last record on the current page\r\n\t\t\t * * `\\_TOTAL\\_` - Number of records in the table after filtering\r\n\t\t\t * * `\\_MAX\\_` - Number of records in the table without filtering\r\n\t\t\t * * `\\_PAGE\\_` - Current page number\r\n\t\t\t * * `\\_PAGES\\_` - Total number of pages of data in the table\r\n\t\t\t *\r\n\t\t\t *  @type string\r\n\t\t\t *  @default Showing _START_ to _END_ of _TOTAL_ entries\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.info\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"info\": \"Showing page _PAGE_ of _PAGES_\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\"sInfo\":\"Showing _START_ to _END_ of _TOTAL_ entries\",/**\r\n\t\t\t * Display information string for when the table is empty. Typically the\r\n\t\t\t * format of this string should match `info`.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default Showing 0 to 0 of 0 entries\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.infoEmpty\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"infoEmpty\": \"No entries to show\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\"sInfoEmpty\":\"Showing 0 to 0 of 0 entries\",/**\r\n\t\t\t * When a user filters the information in a table, this string is appended\r\n\t\t\t * to the information (`info`) to give an idea of how strong the filtering\r\n\t\t\t * is. The variable _MAX_ is dynamically updated.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default (filtered from _MAX_ total entries)\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.infoFiltered\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"infoFiltered\": \" - filtering from _MAX_ records\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\"sInfoFiltered\":\"(filtered from _MAX_ total entries)\",/**\r\n\t\t\t * If can be useful to append extra information to the info string at times,\r\n\t\t\t * and this variable does exactly that. This information will be appended to\r\n\t\t\t * the `info` (`infoEmpty` and `infoFiltered` in whatever combination they are\r\n\t\t\t * being used) at all times.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default <i>Empty string</i>\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.infoPostFix\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"infoPostFix\": \"All records shown are derived from real information.\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\"sInfoPostFix\":\"\",/**\r\n\t\t\t * This decimal place operator is a little different from the other\r\n\t\t\t * language options since DataTables doesn't output floating point\r\n\t\t\t * numbers, so it won't ever use this for display of a number. Rather,\r\n\t\t\t * what this parameter does is modify the sort methods of the table so\r\n\t\t\t * that numbers which are in a format which has a character other than\r\n\t\t\t * a period (`.`) as a decimal place will be sorted numerically.\r\n\t\t\t *\r\n\t\t\t * Note that numbers with different decimal places cannot be shown in\r\n\t\t\t * the same table and still be sortable, the table must be consistent.\r\n\t\t\t * However, multiple different tables on the page can use different\r\n\t\t\t * decimal place characters.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default \r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.decimal\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"decimal\": \",\"\r\n\t\t\t *          \"thousands\": \".\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\"sDecimal\":\"\",/**\r\n\t\t\t * DataTables has a build in number formatter (`formatNumber`) which is\r\n\t\t\t * used to format large numbers that are used in the table information.\r\n\t\t\t * By default a comma is used, but this can be trivially changed to any\r\n\t\t\t * character you wish with this parameter.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default ,\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.thousands\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"thousands\": \"'\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\"sThousands\":\",\",/**\r\n\t\t\t * Detail the action that will be taken when the drop down menu for the\r\n\t\t\t * pagination length option is changed. The '_MENU_' variable is replaced\r\n\t\t\t * with a default select list of 10, 25, 50 and 100, and can be replaced\r\n\t\t\t * with a custom select box if required.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default Show _MENU_ entries\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.lengthMenu\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    // Language change only\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"lengthMenu\": \"Display _MENU_ records\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    // Language and options change\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"lengthMenu\": 'Display <select>'+\r\n\t\t\t *            '<option value=\"10\">10</option>'+\r\n\t\t\t *            '<option value=\"20\">20</option>'+\r\n\t\t\t *            '<option value=\"30\">30</option>'+\r\n\t\t\t *            '<option value=\"40\">40</option>'+\r\n\t\t\t *            '<option value=\"50\">50</option>'+\r\n\t\t\t *            '<option value=\"-1\">All</option>'+\r\n\t\t\t *            '</select> records'\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\"sLengthMenu\":\"Show _MENU_ entries\",/**\r\n\t\t\t * When using Ajax sourced data and during the first draw when DataTables is\r\n\t\t\t * gathering the data, this message is shown in an empty row in the table to\r\n\t\t\t * indicate to the end user the the data is being loaded. Note that this\r\n\t\t\t * parameter is not used when loading data by server-side processing, just\r\n\t\t\t * Ajax sourced data with client-side processing.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default Loading...\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.loadingRecords\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"loadingRecords\": \"Please wait - loading...\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\"sLoadingRecords\":\"Loading...\",/**\r\n\t\t\t * Text which is displayed when the table is processing a user action\r\n\t\t\t * (usually a sort command or similar).\r\n\t\t\t *  @type string\r\n\t\t\t *  @default Processing...\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.processing\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"processing\": \"DataTables is currently busy\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\"sProcessing\":\"Processing...\",/**\r\n\t\t\t * Details the actions that will be taken when the user types into the\r\n\t\t\t * filtering input text box. The variable \"_INPUT_\", if used in the string,\r\n\t\t\t * is replaced with the HTML text box for the filtering input allowing\r\n\t\t\t * control over where it appears in the string. If \"_INPUT_\" is not given\r\n\t\t\t * then the input box is appended to the string automatically.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default Search:\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.search\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    // Input text box will be appended at the end automatically\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"search\": \"Filter records:\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    // Specify where the filter should appear\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"search\": \"Apply filter _INPUT_ to table\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\"sSearch\":\"Search:\",/**\r\n\t\t\t * Assign a `placeholder` attribute to the search `input` element\r\n\t\t\t *  @type string\r\n\t\t\t *  @default \r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.searchPlaceholder\r\n\t\t\t */\"sSearchPlaceholder\":\"\",/**\r\n\t\t\t * All of the language information can be stored in a file on the\r\n\t\t\t * server-side, which DataTables will look up if this parameter is passed.\r\n\t\t\t * It must store the URL of the language file, which is in a JSON format,\r\n\t\t\t * and the object has the same properties as the oLanguage object in the\r\n\t\t\t * initialiser object (i.e. the above parameters). Please refer to one of\r\n\t\t\t * the example language files to see how this works in action.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default <i>Empty string - i.e. disabled</i>\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.url\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"url\": \"http://www.sprymedia.co.uk/dataTables/lang.txt\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\"sUrl\":\"\",/**\r\n\t\t\t * Text shown inside the table records when the is no information to be\r\n\t\t\t * displayed after filtering. `emptyTable` is shown when there is simply no\r\n\t\t\t * information in the table at all (regardless of filtering).\r\n\t\t\t *  @type string\r\n\t\t\t *  @default No matching records found\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.zeroRecords\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"zeroRecords\": \"No records to display\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\"sZeroRecords\":\"No matching records found\"},/**\r\n\t\t * This parameter allows you to have define the global filtering state at\r\n\t\t * initialisation time. As an object the `search` parameter must be\r\n\t\t * defined, but all other parameters are optional. When `regex` is true,\r\n\t\t * the search string will be treated as a regular expression, when false\r\n\t\t * (default) it will be treated as a straight string. When `smart`\r\n\t\t * DataTables will use it's smart filtering methods (to word match at\r\n\t\t * any point in the data), when false this will not be done.\r\n\t\t *  @namespace\r\n\t\t *  @extends DataTable.models.oSearch\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.search\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"search\": {\"search\": \"Initial search\"}\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\"oSearch\":$.extend({},DataTable.models.oSearch),/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through `ajax`, which should be used instead.\r\n\t\t *\r\n\t\t * By default DataTables will look for the property `data` (or `aaData` for\r\n\t\t * compatibility with DataTables 1.9-) when obtaining data from an Ajax\r\n\t\t * source or for server-side processing - this parameter allows that\r\n\t\t * property to be changed. You can use Javascript dotted object notation to\r\n\t\t * get a data source for multiple levels of nesting.\r\n\t\t *  @type string\r\n\t\t *  @default data\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @dtopt Server-side\r\n\t\t *  @name DataTable.defaults.ajaxDataProp\r\n\t\t *\r\n\t\t *  @deprecated 1.10. Please use `ajax` for this functionality now.\r\n\t\t */\"sAjaxDataProp\":\"data\",/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through `ajax`, which should be used instead.\r\n\t\t *\r\n\t\t * You can instruct DataTables to load data from an external\r\n\t\t * source using this parameter (use aData if you want to pass data in you\r\n\t\t * already have). Simply provide a url a JSON object can be obtained from.\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @dtopt Server-side\r\n\t\t *  @name DataTable.defaults.ajaxSource\r\n\t\t *\r\n\t\t *  @deprecated 1.10. Please use `ajax` for this functionality now.\r\n\t\t */\"sAjaxSource\":null,/**\r\n\t\t * This initialisation variable allows you to specify exactly where in the\r\n\t\t * DOM you want DataTables to inject the various controls it adds to the page\r\n\t\t * (for example you might want the pagination controls at the top of the\r\n\t\t * table). DIV elements (with or without a custom class) can also be added to\r\n\t\t * aid styling. The follow syntax is used:\r\n\t\t *   <ul>\r\n\t\t *     <li>The following options are allowed:\r\n\t\t *       <ul>\r\n\t\t *         <li>'l' - Length changing</li>\r\n\t\t *         <li>'f' - Filtering input</li>\r\n\t\t *         <li>'t' - The table!</li>\r\n\t\t *         <li>'i' - Information</li>\r\n\t\t *         <li>'p' - Pagination</li>\r\n\t\t *         <li>'r' - pRocessing</li>\r\n\t\t *       </ul>\r\n\t\t *     </li>\r\n\t\t *     <li>The following constants are allowed:\r\n\t\t *       <ul>\r\n\t\t *         <li>'H' - jQueryUI theme \"header\" classes ('fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix')</li>\r\n\t\t *         <li>'F' - jQueryUI theme \"footer\" classes ('fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix')</li>\r\n\t\t *       </ul>\r\n\t\t *     </li>\r\n\t\t *     <li>The following syntax is expected:\r\n\t\t *       <ul>\r\n\t\t *         <li>'&lt;' and '&gt;' - div elements</li>\r\n\t\t *         <li>'&lt;\"class\" and '&gt;' - div with a class</li>\r\n\t\t *         <li>'&lt;\"#id\" and '&gt;' - div with an ID</li>\r\n\t\t *       </ul>\r\n\t\t *     </li>\r\n\t\t *     <li>Examples:\r\n\t\t *       <ul>\r\n\t\t *         <li>'&lt;\"wrapper\"flipt&gt;'</li>\r\n\t\t *         <li>'&lt;lf&lt;t&gt;ip&gt;'</li>\r\n\t\t *       </ul>\r\n\t\t *     </li>\r\n\t\t *   </ul>\r\n\t\t *  @type string\r\n\t\t *  @default lfrtip <i>(when `jQueryUI` is false)</i> <b>or</b>\r\n\t\t *    <\"H\"lfr>t<\"F\"ip> <i>(when `jQueryUI` is true)</i>\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.dom\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"dom\": '&lt;\"top\"i&gt;rt&lt;\"bottom\"flp&gt;&lt;\"clear\"&gt;'\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"sDom\":\"lfrtip\",/**\r\n\t\t * Search delay option. This will throttle full table searches that use the\r\n\t\t * DataTables provided search input element (it does not effect calls to\r\n\t\t * `dt-api search()`, providing a delay before the search is made.\r\n\t\t *  @type integer\r\n\t\t *  @default 0\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.searchDelay\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"searchDelay\": 200\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\"searchDelay\":null,/**\r\n\t\t * DataTables features six different built-in options for the buttons to\r\n\t\t * display for pagination control:\r\n\t\t *\r\n\t\t * * `numbers` - Page number buttons only\r\n\t\t * * `simple` - 'Previous' and 'Next' buttons only\r\n\t\t * * 'simple_numbers` - 'Previous' and 'Next' buttons, plus page numbers\r\n\t\t * * `full` - 'First', 'Previous', 'Next' and 'Last' buttons\r\n\t\t * * `full_numbers` - 'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers\r\n\t\t * * `first_last_numbers` - 'First' and 'Last' buttons, plus page numbers\r\n\t\t *  \r\n\t\t * Further methods can be added using {@link DataTable.ext.oPagination}.\r\n\t\t *  @type string\r\n\t\t *  @default simple_numbers\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.pagingType\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"pagingType\": \"full_numbers\"\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\"sPaginationType\":\"simple_numbers\",/**\r\n\t\t * Enable horizontal scrolling. When a table is too wide to fit into a\r\n\t\t * certain layout, or you have a large number of columns in the table, you\r\n\t\t * can enable x-scrolling to show the table in a viewport, which can be\r\n\t\t * scrolled. This property can be `true` which will allow the table to\r\n\t\t * scroll horizontally when needed, or any CSS unit, or a number (in which\r\n\t\t * case it will be treated as a pixel measurement). Setting as simply `true`\r\n\t\t * is recommended.\r\n\t\t *  @type boolean|string\r\n\t\t *  @default <i>blank string - i.e. disabled</i>\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.scrollX\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"scrollX\": true,\r\n\t\t *        \"scrollCollapse\": true\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"sScrollX\":\"\",/**\r\n\t\t * This property can be used to force a DataTable to use more width than it\r\n\t\t * might otherwise do when x-scrolling is enabled. For example if you have a\r\n\t\t * table which requires to be well spaced, this parameter is useful for\r\n\t\t * \"over-sizing\" the table, and thus forcing scrolling. This property can by\r\n\t\t * any CSS unit, or a number (in which case it will be treated as a pixel\r\n\t\t * measurement).\r\n\t\t *  @type string\r\n\t\t *  @default <i>blank string - i.e. disabled</i>\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.scrollXInner\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"scrollX\": \"100%\",\r\n\t\t *        \"scrollXInner\": \"110%\"\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"sScrollXInner\":\"\",/**\r\n\t\t * Enable vertical scrolling. Vertical scrolling will constrain the DataTable\r\n\t\t * to the given height, and enable scrolling for any data which overflows the\r\n\t\t * current viewport. This can be used as an alternative to paging to display\r\n\t\t * a lot of data in a small area (although paging and scrolling can both be\r\n\t\t * enabled at the same time). This property can be any CSS unit, or a number\r\n\t\t * (in which case it will be treated as a pixel measurement).\r\n\t\t *  @type string\r\n\t\t *  @default <i>blank string - i.e. disabled</i>\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.scrollY\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"scrollY\": \"200px\",\r\n\t\t *        \"paginate\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"sScrollY\":\"\",/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through `ajax`, which should be used instead.\r\n\t\t *\r\n\t\t * Set the HTTP method that is used to make the Ajax call for server-side\r\n\t\t * processing or Ajax sourced data.\r\n\t\t *  @type string\r\n\t\t *  @default GET\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @dtopt Server-side\r\n\t\t *  @name DataTable.defaults.serverMethod\r\n\t\t *\r\n\t\t *  @deprecated 1.10. Please use `ajax` for this functionality now.\r\n\t\t */\"sServerMethod\":\"GET\",/**\r\n\t\t * DataTables makes use of renderers when displaying HTML elements for\r\n\t\t * a table. These renderers can be added or modified by plug-ins to\r\n\t\t * generate suitable mark-up for a site. For example the Bootstrap\r\n\t\t * integration plug-in for DataTables uses a paging button renderer to\r\n\t\t * display pagination buttons in the mark-up required by Bootstrap.\r\n\t\t *\r\n\t\t * For further information about the renderers available see\r\n\t\t * DataTable.ext.renderer\r\n\t\t *  @type string|object\r\n\t\t *  @default null\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.renderer\r\n\t\t *\r\n\t\t */\"renderer\":null,/**\r\n\t\t * Set the data property name that DataTables should use to get a row's id\r\n\t\t * to set as the `id` property in the node.\r\n\t\t *  @type string\r\n\t\t *  @default DT_RowId\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.rowId\r\n\t\t */\"rowId\":\"DT_RowId\"};_fnHungarianMap(DataTable.defaults);/*\r\n\t * Developer note - See note in model.defaults.js about the use of Hungarian\r\n\t * notation and camel case.\r\n\t */ /**\r\n\t * Column options that can be given to DataTables at initialisation time.\r\n\t *  @namespace\r\n\t */DataTable.defaults.column={/**\r\n\t\t * Define which column(s) an order will occur on for this column. This\r\n\t\t * allows a column's ordering to take multiple columns into account when\r\n\t\t * doing a sort or use the data from a different column. For example first\r\n\t\t * name / last name columns make sense to do a multi-column sort over the\r\n\t\t * two columns.\r\n\t\t *  @type array|int\r\n\t\t *  @default null <i>Takes the value of the column index automatically</i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.orderData\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"orderData\": [ 0, 1 ], \"targets\": [ 0 ] },\r\n\t\t *          { \"orderData\": [ 1, 0 ], \"targets\": [ 1 ] },\r\n\t\t *          { \"orderData\": 2, \"targets\": [ 2 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"orderData\": [ 0, 1 ] },\r\n\t\t *          { \"orderData\": [ 1, 0 ] },\r\n\t\t *          { \"orderData\": 2 },\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"aDataSort\":null,\"iDataSort\":-1,/**\r\n\t\t * You can control the default ordering direction, and even alter the\r\n\t\t * behaviour of the sort handler (i.e. only allow ascending ordering etc)\r\n\t\t * using this parameter.\r\n\t\t *  @type array\r\n\t\t *  @default [ 'asc', 'desc' ]\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.orderSequence\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"orderSequence\": [ \"asc\" ], \"targets\": [ 1 ] },\r\n\t\t *          { \"orderSequence\": [ \"desc\", \"asc\", \"asc\" ], \"targets\": [ 2 ] },\r\n\t\t *          { \"orderSequence\": [ \"desc\" ], \"targets\": [ 3 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          null,\r\n\t\t *          { \"orderSequence\": [ \"asc\" ] },\r\n\t\t *          { \"orderSequence\": [ \"desc\", \"asc\", \"asc\" ] },\r\n\t\t *          { \"orderSequence\": [ \"desc\" ] },\r\n\t\t *          null\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"asSorting\":['asc','desc'],/**\r\n\t\t * Enable or disable filtering on the data in this column.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.searchable\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"searchable\": false, \"targets\": [ 0 ] }\r\n\t\t *        ] } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"searchable\": false },\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ] } );\r\n\t\t *    } );\r\n\t\t */\"bSearchable\":true,/**\r\n\t\t * Enable or disable ordering on this column.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.orderable\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"orderable\": false, \"targets\": [ 0 ] }\r\n\t\t *        ] } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"orderable\": false },\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ] } );\r\n\t\t *    } );\r\n\t\t */\"bSortable\":true,/**\r\n\t\t * Enable or disable the display of this column.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.visible\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"visible\": false, \"targets\": [ 0 ] }\r\n\t\t *        ] } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"visible\": false },\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ] } );\r\n\t\t *    } );\r\n\t\t */\"bVisible\":true,/**\r\n\t\t * Developer definable function that is called whenever a cell is created (Ajax source,\r\n\t\t * etc) or processed for input (DOM source). This can be used as a compliment to mRender\r\n\t\t * allowing you to modify the DOM element (add background colour for example) when the\r\n\t\t * element is available.\r\n\t\t *  @type function\r\n\t\t *  @param {element} td The TD node that has been created\r\n\t\t *  @param {*} cellData The Data for the cell\r\n\t\t *  @param {array|object} rowData The data for the whole row\r\n\t\t *  @param {int} row The row index for the aoData data store\r\n\t\t *  @param {int} col The column index for aoColumns\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.createdCell\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [3],\r\n\t\t *          \"createdCell\": function (td, cellData, rowData, row, col) {\r\n\t\t *            if ( cellData == \"1.7\" ) {\r\n\t\t *              $(td).css('color', 'blue')\r\n\t\t *            }\r\n\t\t *          }\r\n\t\t *        } ]\r\n\t\t *      });\r\n\t\t *    } );\r\n\t\t */\"fnCreatedCell\":null,/**\r\n\t\t * This parameter has been replaced by `data` in DataTables to ensure naming\r\n\t\t * consistency. `dataProp` can still be used, as there is backwards\r\n\t\t * compatibility in DataTables for this option, but it is strongly\r\n\t\t * recommended that you use `data` in preference to `dataProp`.\r\n\t\t *  @name DataTable.defaults.column.dataProp\r\n\t\t */ /**\r\n\t\t * This property can be used to read data from any data source property,\r\n\t\t * including deeply nested objects / properties. `data` can be given in a\r\n\t\t * number of different ways which effect its behaviour:\r\n\t\t *\r\n\t\t * * `integer` - treated as an array index for the data source. This is the\r\n\t\t *   default that DataTables uses (incrementally increased for each column).\r\n\t\t * * `string` - read an object property from the data source. There are\r\n\t\t *   three 'special' options that can be used in the string to alter how\r\n\t\t *   DataTables reads the data from the source object:\r\n\t\t *    * `.` - Dotted Javascript notation. Just as you use a `.` in\r\n\t\t *      Javascript to read from nested objects, so to can the options\r\n\t\t *      specified in `data`. For example: `browser.version` or\r\n\t\t *      `browser.name`. If your object parameter name contains a period, use\r\n\t\t *      `\\\\` to escape it - i.e. `first\\\\.name`.\r\n\t\t *    * `[]` - Array notation. DataTables can automatically combine data\r\n\t\t *      from and array source, joining the data with the characters provided\r\n\t\t *      between the two brackets. For example: `name[, ]` would provide a\r\n\t\t *      comma-space separated list from the source array. If no characters\r\n\t\t *      are provided between the brackets, the original array source is\r\n\t\t *      returned.\r\n\t\t *    * `()` - Function notation. Adding `()` to the end of a parameter will\r\n\t\t *      execute a function of the name given. For example: `browser()` for a\r\n\t\t *      simple function on the data source, `browser.version()` for a\r\n\t\t *      function in a nested property or even `browser().version` to get an\r\n\t\t *      object property if the function called returns an object. Note that\r\n\t\t *      function notation is recommended for use in `render` rather than\r\n\t\t *      `data` as it is much simpler to use as a renderer.\r\n\t\t * * `null` - use the original data source for the row rather than plucking\r\n\t\t *   data directly from it. This action has effects on two other\r\n\t\t *   initialisation options:\r\n\t\t *    * `defaultContent` - When null is given as the `data` option and\r\n\t\t *      `defaultContent` is specified for the column, the value defined by\r\n\t\t *      `defaultContent` will be used for the cell.\r\n\t\t *    * `render` - When null is used for the `data` option and the `render`\r\n\t\t *      option is specified for the column, the whole data source for the\r\n\t\t *      row is used for the renderer.\r\n\t\t * * `function` - the function given will be executed whenever DataTables\r\n\t\t *   needs to set or get the data for a cell in the column. The function\r\n\t\t *   takes three parameters:\r\n\t\t *    * Parameters:\r\n\t\t *      * `{array|object}` The data source for the row\r\n\t\t *      * `{string}` The type call data requested - this will be 'set' when\r\n\t\t *        setting data or 'filter', 'display', 'type', 'sort' or undefined\r\n\t\t *        when gathering data. Note that when `undefined` is given for the\r\n\t\t *        type DataTables expects to get the raw data for the object back<\r\n\t\t *      * `{*}` Data to set when the second parameter is 'set'.\r\n\t\t *    * Return:\r\n\t\t *      * The return value from the function is not required when 'set' is\r\n\t\t *        the type of call, but otherwise the return is what will be used\r\n\t\t *        for the data requested.\r\n\t\t *\r\n\t\t * Note that `data` is a getter and setter option. If you just require\r\n\t\t * formatting of data for output, you will likely want to use `render` which\r\n\t\t * is simply a getter and thus simpler to use.\r\n\t\t *\r\n\t\t * Note that prior to DataTables 1.9.2 `data` was called `mDataProp`. The\r\n\t\t * name change reflects the flexibility of this property and is consistent\r\n\t\t * with the naming of mRender. If 'mDataProp' is given, then it will still\r\n\t\t * be used by DataTables, as it automatically maps the old name to the new\r\n\t\t * if required.\r\n\t\t *\r\n\t\t *  @type string|int|function|null\r\n\t\t *  @default null <i>Use automatically calculated column index</i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.data\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Read table data from objects\r\n\t\t *    // JSON structure for each row:\r\n\t\t *    //   {\r\n\t\t *    //      \"engine\": {value},\r\n\t\t *    //      \"browser\": {value},\r\n\t\t *    //      \"platform\": {value},\r\n\t\t *    //      \"version\": {value},\r\n\t\t *    //      \"grade\": {value}\r\n\t\t *    //   }\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"ajaxSource\": \"sources/objects.txt\",\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"data\": \"engine\" },\r\n\t\t *          { \"data\": \"browser\" },\r\n\t\t *          { \"data\": \"platform\" },\r\n\t\t *          { \"data\": \"version\" },\r\n\t\t *          { \"data\": \"grade\" }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Read information from deeply nested objects\r\n\t\t *    // JSON structure for each row:\r\n\t\t *    //   {\r\n\t\t *    //      \"engine\": {value},\r\n\t\t *    //      \"browser\": {value},\r\n\t\t *    //      \"platform\": {\r\n\t\t *    //         \"inner\": {value}\r\n\t\t *    //      },\r\n\t\t *    //      \"details\": [\r\n\t\t *    //         {value}, {value}\r\n\t\t *    //      ]\r\n\t\t *    //   }\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"ajaxSource\": \"sources/deep.txt\",\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"data\": \"engine\" },\r\n\t\t *          { \"data\": \"browser\" },\r\n\t\t *          { \"data\": \"platform.inner\" },\r\n\t\t *          { \"data\": \"details.0\" },\r\n\t\t *          { \"data\": \"details.1\" }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `data` as a function to provide different information for\r\n\t\t *    // sorting, filtering and display. In this case, currency (price)\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [ 0 ],\r\n\t\t *          \"data\": function ( source, type, val ) {\r\n\t\t *            if (type === 'set') {\r\n\t\t *              source.price = val;\r\n\t\t *              // Store the computed dislay and filter values for efficiency\r\n\t\t *              source.price_display = val==\"\" ? \"\" : \"$\"+numberFormat(val);\r\n\t\t *              source.price_filter  = val==\"\" ? \"\" : \"$\"+numberFormat(val)+\" \"+val;\r\n\t\t *              return;\r\n\t\t *            }\r\n\t\t *            else if (type === 'display') {\r\n\t\t *              return source.price_display;\r\n\t\t *            }\r\n\t\t *            else if (type === 'filter') {\r\n\t\t *              return source.price_filter;\r\n\t\t *            }\r\n\t\t *            // 'sort', 'type' and undefined all just use the integer\r\n\t\t *            return source.price;\r\n\t\t *          }\r\n\t\t *        } ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using default content\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [ 0 ],\r\n\t\t *          \"data\": null,\r\n\t\t *          \"defaultContent\": \"Click to edit\"\r\n\t\t *        } ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using array notation - outputting a list from an array\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [ 0 ],\r\n\t\t *          \"data\": \"name[, ]\"\r\n\t\t *        } ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t */\"mData\":null,/**\r\n\t\t * This property is the rendering partner to `data` and it is suggested that\r\n\t\t * when you want to manipulate data for display (including filtering,\r\n\t\t * sorting etc) without altering the underlying data for the table, use this\r\n\t\t * property. `render` can be considered to be the the read only companion to\r\n\t\t * `data` which is read / write (then as such more complex). Like `data`\r\n\t\t * this option can be given in a number of different ways to effect its\r\n\t\t * behaviour:\r\n\t\t *\r\n\t\t * * `integer` - treated as an array index for the data source. This is the\r\n\t\t *   default that DataTables uses (incrementally increased for each column).\r\n\t\t * * `string` - read an object property from the data source. There are\r\n\t\t *   three 'special' options that can be used in the string to alter how\r\n\t\t *   DataTables reads the data from the source object:\r\n\t\t *    * `.` - Dotted Javascript notation. Just as you use a `.` in\r\n\t\t *      Javascript to read from nested objects, so to can the options\r\n\t\t *      specified in `data`. For example: `browser.version` or\r\n\t\t *      `browser.name`. If your object parameter name contains a period, use\r\n\t\t *      `\\\\` to escape it - i.e. `first\\\\.name`.\r\n\t\t *    * `[]` - Array notation. DataTables can automatically combine data\r\n\t\t *      from and array source, joining the data with the characters provided\r\n\t\t *      between the two brackets. For example: `name[, ]` would provide a\r\n\t\t *      comma-space separated list from the source array. If no characters\r\n\t\t *      are provided between the brackets, the original array source is\r\n\t\t *      returned.\r\n\t\t *    * `()` - Function notation. Adding `()` to the end of a parameter will\r\n\t\t *      execute a function of the name given. For example: `browser()` for a\r\n\t\t *      simple function on the data source, `browser.version()` for a\r\n\t\t *      function in a nested property or even `browser().version` to get an\r\n\t\t *      object property if the function called returns an object.\r\n\t\t * * `object` - use different data for the different data types requested by\r\n\t\t *   DataTables ('filter', 'display', 'type' or 'sort'). The property names\r\n\t\t *   of the object is the data type the property refers to and the value can\r\n\t\t *   defined using an integer, string or function using the same rules as\r\n\t\t *   `render` normally does. Note that an `_` option _must_ be specified.\r\n\t\t *   This is the default value to use if you haven't specified a value for\r\n\t\t *   the data type requested by DataTables.\r\n\t\t * * `function` - the function given will be executed whenever DataTables\r\n\t\t *   needs to set or get the data for a cell in the column. The function\r\n\t\t *   takes three parameters:\r\n\t\t *    * Parameters:\r\n\t\t *      * {array|object} The data source for the row (based on `data`)\r\n\t\t *      * {string} The type call data requested - this will be 'filter',\r\n\t\t *        'display', 'type' or 'sort'.\r\n\t\t *      * {array|object} The full data source for the row (not based on\r\n\t\t *        `data`)\r\n\t\t *    * Return:\r\n\t\t *      * The return value from the function is what will be used for the\r\n\t\t *        data requested.\r\n\t\t *\r\n\t\t *  @type string|int|function|object|null\r\n\t\t *  @default null Use the data source value.\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.render\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Create a comma separated list from an array of objects\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"ajaxSource\": \"sources/deep.txt\",\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"data\": \"engine\" },\r\n\t\t *          { \"data\": \"browser\" },\r\n\t\t *          {\r\n\t\t *            \"data\": \"platform\",\r\n\t\t *            \"render\": \"[, ].name\"\r\n\t\t *          }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Execute a function to obtain data\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [ 0 ],\r\n\t\t *          \"data\": null, // Use the full data source object for the renderer's source\r\n\t\t *          \"render\": \"browserName()\"\r\n\t\t *        } ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // As an object, extracting different data for the different types\r\n\t\t *    // This would be used with a data source such as:\r\n\t\t *    //   { \"phone\": 5552368, \"phone_filter\": \"5552368 555-2368\", \"phone_display\": \"555-2368\" }\r\n\t\t *    // Here the `phone` integer is used for sorting and type detection, while `phone_filter`\r\n\t\t *    // (which has both forms) is used for filtering for if a user inputs either format, while\r\n\t\t *    // the formatted phone number is the one that is shown in the table.\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [ 0 ],\r\n\t\t *          \"data\": null, // Use the full data source object for the renderer's source\r\n\t\t *          \"render\": {\r\n\t\t *            \"_\": \"phone\",\r\n\t\t *            \"filter\": \"phone_filter\",\r\n\t\t *            \"display\": \"phone_display\"\r\n\t\t *          }\r\n\t\t *        } ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Use as a function to create a link from the data source\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [ 0 ],\r\n\t\t *          \"data\": \"download_link\",\r\n\t\t *          \"render\": function ( data, type, full ) {\r\n\t\t *            return '<a href=\"'+data+'\">Download</a>';\r\n\t\t *          }\r\n\t\t *        } ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"mRender\":null,/**\r\n\t\t * Change the cell type created for the column - either TD cells or TH cells. This\r\n\t\t * can be useful as TH cells have semantic meaning in the table body, allowing them\r\n\t\t * to act as a header for a row (you may wish to add scope='row' to the TH elements).\r\n\t\t *  @type string\r\n\t\t *  @default td\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.cellType\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Make the first column use TH cells\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [ 0 ],\r\n\t\t *          \"cellType\": \"th\"\r\n\t\t *        } ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"sCellType\":\"td\",/**\r\n\t\t * Class to give to each cell in this column.\r\n\t\t *  @type string\r\n\t\t *  @default <i>Empty string</i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.class\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"class\": \"my_class\", \"targets\": [ 0 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"class\": \"my_class\" },\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"sClass\":\"\",/**\r\n\t\t * When DataTables calculates the column widths to assign to each column,\r\n\t\t * it finds the longest string in each column and then constructs a\r\n\t\t * temporary table and reads the widths from that. The problem with this\r\n\t\t * is that \"mmm\" is much wider then \"iiii\", but the latter is a longer\r\n\t\t * string - thus the calculation can go wrong (doing it properly and putting\r\n\t\t * it into an DOM object and measuring that is horribly(!) slow). Thus as\r\n\t\t * a \"work around\" we provide this option. It will append its value to the\r\n\t\t * text that is found to be the longest string for the column - i.e. padding.\r\n\t\t * Generally you shouldn't need this!\r\n\t\t *  @type string\r\n\t\t *  @default <i>Empty string<i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.contentPadding\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          {\r\n\t\t *            \"contentPadding\": \"mmm\"\r\n\t\t *          }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"sContentPadding\":\"\",/**\r\n\t\t * Allows a default value to be given for a column's data, and will be used\r\n\t\t * whenever a null data source is encountered (this can be because `data`\r\n\t\t * is set to null, or because the data source itself is null).\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.defaultContent\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          {\r\n\t\t *            \"data\": null,\r\n\t\t *            \"defaultContent\": \"Edit\",\r\n\t\t *            \"targets\": [ -1 ]\r\n\t\t *          }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          {\r\n\t\t *            \"data\": null,\r\n\t\t *            \"defaultContent\": \"Edit\"\r\n\t\t *          }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"sDefaultContent\":null,/**\r\n\t\t * This parameter is only used in DataTables' server-side processing. It can\r\n\t\t * be exceptionally useful to know what columns are being displayed on the\r\n\t\t * client side, and to map these to database fields. When defined, the names\r\n\t\t * also allow DataTables to reorder information from the server if it comes\r\n\t\t * back in an unexpected order (i.e. if you switch your columns around on the\r\n\t\t * client-side, your server-side code does not also need updating).\r\n\t\t *  @type string\r\n\t\t *  @default <i>Empty string</i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.name\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"name\": \"engine\", \"targets\": [ 0 ] },\r\n\t\t *          { \"name\": \"browser\", \"targets\": [ 1 ] },\r\n\t\t *          { \"name\": \"platform\", \"targets\": [ 2 ] },\r\n\t\t *          { \"name\": \"version\", \"targets\": [ 3 ] },\r\n\t\t *          { \"name\": \"grade\", \"targets\": [ 4 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"name\": \"engine\" },\r\n\t\t *          { \"name\": \"browser\" },\r\n\t\t *          { \"name\": \"platform\" },\r\n\t\t *          { \"name\": \"version\" },\r\n\t\t *          { \"name\": \"grade\" }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"sName\":\"\",/**\r\n\t\t * Defines a data source type for the ordering which can be used to read\r\n\t\t * real-time information from the table (updating the internally cached\r\n\t\t * version) prior to ordering. This allows ordering to occur on user\r\n\t\t * editable elements such as form inputs.\r\n\t\t *  @type string\r\n\t\t *  @default std\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.orderDataType\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"orderDataType\": \"dom-text\", \"targets\": [ 2, 3 ] },\r\n\t\t *          { \"type\": \"numeric\", \"targets\": [ 3 ] },\r\n\t\t *          { \"orderDataType\": \"dom-select\", \"targets\": [ 4 ] },\r\n\t\t *          { \"orderDataType\": \"dom-checkbox\", \"targets\": [ 5 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          { \"orderDataType\": \"dom-text\" },\r\n\t\t *          { \"orderDataType\": \"dom-text\", \"type\": \"numeric\" },\r\n\t\t *          { \"orderDataType\": \"dom-select\" },\r\n\t\t *          { \"orderDataType\": \"dom-checkbox\" }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"sSortDataType\":\"std\",/**\r\n\t\t * The title of this column.\r\n\t\t *  @type string\r\n\t\t *  @default null <i>Derived from the 'TH' value for this column in the\r\n\t\t *    original HTML table.</i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.title\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"title\": \"My column title\", \"targets\": [ 0 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"title\": \"My column title\" },\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"sTitle\":null,/**\r\n\t\t * The type allows you to specify how the data for this column will be\r\n\t\t * ordered. Four types (string, numeric, date and html (which will strip\r\n\t\t * HTML tags before ordering)) are currently available. Note that only date\r\n\t\t * formats understood by Javascript's Date() object will be accepted as type\r\n\t\t * date. For example: \"Mar 26, 2008 5:03 PM\". May take the values: 'string',\r\n\t\t * 'numeric', 'date' or 'html' (by default). Further types can be adding\r\n\t\t * through plug-ins.\r\n\t\t *  @type string\r\n\t\t *  @default null <i>Auto-detected from raw data</i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.type\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"type\": \"html\", \"targets\": [ 0 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"type\": \"html\" },\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"sType\":null,/**\r\n\t\t * Defining the width of the column, this parameter may take any CSS value\r\n\t\t * (3em, 20px etc). DataTables applies 'smart' widths to columns which have not\r\n\t\t * been given a specific width through this interface ensuring that the table\r\n\t\t * remains readable.\r\n\t\t *  @type string\r\n\t\t *  @default null <i>Automatic</i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.width\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"width\": \"20%\", \"targets\": [ 0 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"width\": \"20%\" },\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\"sWidth\":null};_fnHungarianMap(DataTable.defaults.column);/**\r\n\t * DataTables settings object - this holds all the information needed for a\r\n\t * given table, including configuration, data and current application of the\r\n\t * table options. DataTables does not have a single instance for each DataTable\r\n\t * with the settings attached to that instance, but rather instances of the\r\n\t * DataTable \"class\" are created on-the-fly as needed (typically by a\r\n\t * $().dataTable() call) and the settings object is then applied to that\r\n\t * instance.\r\n\t *\r\n\t * Note that this object is related to {@link DataTable.defaults} but this\r\n\t * one is the internal data store for DataTables's cache of columns. It should\r\n\t * NOT be manipulated outside of DataTables. Any configuration should be done\r\n\t * through the initialisation options.\r\n\t *  @namespace\r\n\t *  @todo Really should attach the settings object to individual instances so we\r\n\t *    don't need to create new instances on each $().dataTable() call (if the\r\n\t *    table already exists). It would also save passing oSettings around and\r\n\t *    into every single function. However, this is a very significant\r\n\t *    architecture change for DataTables and will almost certainly break\r\n\t *    backwards compatibility with older installations. This is something that\r\n\t *    will be done in 2.0.\r\n\t */DataTable.models.oSettings={/**\r\n\t\t * Primary features of DataTables and their enablement state.\r\n\t\t *  @namespace\r\n\t\t */\"oFeatures\":{/**\r\n\t\t\t * Flag to say if DataTables should automatically try to calculate the\r\n\t\t\t * optimum table and columns widths (true) or not (false).\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\"bAutoWidth\":null,/**\r\n\t\t\t * Delay the creation of TR and TD elements until they are actually\r\n\t\t\t * needed by a driven page draw. This can give a significant speed\r\n\t\t\t * increase for Ajax source and Javascript source data, but makes no\r\n\t\t\t * difference at all fro DOM and server-side processing tables.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\"bDeferRender\":null,/**\r\n\t\t\t * Enable filtering on the table or not. Note that if this is disabled\r\n\t\t\t * then there is no filtering at all on the table, including fnFilter.\r\n\t\t\t * To just remove the filtering input use sDom and remove the 'f' option.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\"bFilter\":null,/**\r\n\t\t\t * Table information element (the 'Showing x of y records' div) enable\r\n\t\t\t * flag.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\"bInfo\":null,/**\r\n\t\t\t * Present a user control allowing the end user to change the page size\r\n\t\t\t * when pagination is enabled.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\"bLengthChange\":null,/**\r\n\t\t\t * Pagination enabled or not. Note that if this is disabled then length\r\n\t\t\t * changing must also be disabled.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\"bPaginate\":null,/**\r\n\t\t\t * Processing indicator enable flag whenever DataTables is enacting a\r\n\t\t\t * user request - typically an Ajax request for server-side processing.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\"bProcessing\":null,/**\r\n\t\t\t * Server-side processing enabled flag - when enabled DataTables will\r\n\t\t\t * get all data from the server for every draw - there is no filtering,\r\n\t\t\t * sorting or paging done on the client-side.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\"bServerSide\":null,/**\r\n\t\t\t * Sorting enablement flag.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\"bSort\":null,/**\r\n\t\t\t * Multi-column sorting\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\"bSortMulti\":null,/**\r\n\t\t\t * Apply a class to the columns which are being sorted to provide a\r\n\t\t\t * visual highlight or not. This can slow things down when enabled since\r\n\t\t\t * there is a lot of DOM interaction.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\"bSortClasses\":null,/**\r\n\t\t\t * State saving enablement flag.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\"bStateSave\":null},/**\r\n\t\t * Scrolling settings for a table.\r\n\t\t *  @namespace\r\n\t\t */\"oScroll\":{/**\r\n\t\t\t * When the table is shorter in height than sScrollY, collapse the\r\n\t\t\t * table container down to the height of the table (when true).\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\"bCollapse\":null,/**\r\n\t\t\t * Width of the scrollbar for the web-browser's platform. Calculated\r\n\t\t\t * during table initialisation.\r\n\t\t\t *  @type int\r\n\t\t\t *  @default 0\r\n\t\t\t */\"iBarWidth\":0,/**\r\n\t\t\t * Viewport width for horizontal scrolling. Horizontal scrolling is\r\n\t\t\t * disabled if an empty string.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type string\r\n\t\t\t */\"sX\":null,/**\r\n\t\t\t * Width to expand the table to when using x-scrolling. Typically you\r\n\t\t\t * should not need to use this.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type string\r\n\t\t\t *  @deprecated\r\n\t\t\t */\"sXInner\":null,/**\r\n\t\t\t * Viewport height for vertical scrolling. Vertical scrolling is disabled\r\n\t\t\t * if an empty string.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type string\r\n\t\t\t */\"sY\":null},/**\r\n\t\t * Language information for the table.\r\n\t\t *  @namespace\r\n\t\t *  @extends DataTable.defaults.oLanguage\r\n\t\t */\"oLanguage\":{/**\r\n\t\t\t * Information callback function. See\r\n\t\t\t * {@link DataTable.defaults.fnInfoCallback}\r\n\t\t\t *  @type function\r\n\t\t\t *  @default null\r\n\t\t\t */\"fnInfoCallback\":null},/**\r\n\t\t * Browser support parameters\r\n\t\t *  @namespace\r\n\t\t */\"oBrowser\":{/**\r\n\t\t\t * Indicate if the browser incorrectly calculates width:100% inside a\r\n\t\t\t * scrolling element (IE6/7)\r\n\t\t\t *  @type boolean\r\n\t\t\t *  @default false\r\n\t\t\t */\"bScrollOversize\":false,/**\r\n\t\t\t * Determine if the vertical scrollbar is on the right or left of the\r\n\t\t\t * scrolling container - needed for rtl language layout, although not\r\n\t\t\t * all browsers move the scrollbar (Safari).\r\n\t\t\t *  @type boolean\r\n\t\t\t *  @default false\r\n\t\t\t */\"bScrollbarLeft\":false,/**\r\n\t\t\t * Flag for if `getBoundingClientRect` is fully supported or not\r\n\t\t\t *  @type boolean\r\n\t\t\t *  @default false\r\n\t\t\t */\"bBounding\":false,/**\r\n\t\t\t * Browser scrollbar width\r\n\t\t\t *  @type integer\r\n\t\t\t *  @default 0\r\n\t\t\t */\"barWidth\":0},\"ajax\":null,/**\r\n\t\t * Array referencing the nodes which are used for the features. The\r\n\t\t * parameters of this object match what is allowed by sDom - i.e.\r\n\t\t *   <ul>\r\n\t\t *     <li>'l' - Length changing</li>\r\n\t\t *     <li>'f' - Filtering input</li>\r\n\t\t *     <li>'t' - The table!</li>\r\n\t\t *     <li>'i' - Information</li>\r\n\t\t *     <li>'p' - Pagination</li>\r\n\t\t *     <li>'r' - pRocessing</li>\r\n\t\t *   </ul>\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aanFeatures\":[],/**\r\n\t\t * Store data information - see {@link DataTable.models.oRow} for detailed\r\n\t\t * information.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoData\":[],/**\r\n\t\t * Array of indexes which are in the current display (after filtering etc)\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aiDisplay\":[],/**\r\n\t\t * Array of indexes for display - no filtering\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aiDisplayMaster\":[],/**\r\n\t\t * Map of row ids to data indexes\r\n\t\t *  @type object\r\n\t\t *  @default {}\r\n\t\t */\"aIds\":{},/**\r\n\t\t * Store information about each column that is in use\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoColumns\":[],/**\r\n\t\t * Store information about the table's header\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoHeader\":[],/**\r\n\t\t * Store information about the table's footer\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoFooter\":[],/**\r\n\t\t * Store the applied global search information in case we want to force a\r\n\t\t * research or compare the old search to a new one.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @namespace\r\n\t\t *  @extends DataTable.models.oSearch\r\n\t\t */\"oPreviousSearch\":{},/**\r\n\t\t * Store the applied search for each column - see\r\n\t\t * {@link DataTable.models.oSearch} for the format that is used for the\r\n\t\t * filtering information for each column.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoPreSearchCols\":[],/**\r\n\t\t * Sorting that is applied to the table. Note that the inner arrays are\r\n\t\t * used in the following manner:\r\n\t\t * <ul>\r\n\t\t *   <li>Index 0 - column number</li>\r\n\t\t *   <li>Index 1 - current sorting direction</li>\r\n\t\t * </ul>\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type array\r\n\t\t *  @todo These inner arrays should really be objects\r\n\t\t */\"aaSorting\":null,/**\r\n\t\t * Sorting that is always applied to the table (i.e. prefixed in front of\r\n\t\t * aaSorting).\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aaSortingFixed\":[],/**\r\n\t\t * Classes to use for the striping of a table.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"asStripeClasses\":null,/**\r\n\t\t * If restoring a table - we should restore its striping classes as well\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"asDestroyStripes\":[],/**\r\n\t\t * If restoring a table - we should restore its width\r\n\t\t *  @type int\r\n\t\t *  @default 0\r\n\t\t */\"sDestroyWidth\":0,/**\r\n\t\t * Callback functions array for every time a row is inserted (i.e. on a draw).\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoRowCallback\":[],/**\r\n\t\t * Callback functions for the header on each draw.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoHeaderCallback\":[],/**\r\n\t\t * Callback function for the footer on each draw.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoFooterCallback\":[],/**\r\n\t\t * Array of callback functions for draw callback functions\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoDrawCallback\":[],/**\r\n\t\t * Array of callback functions for row created function\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoRowCreatedCallback\":[],/**\r\n\t\t * Callback functions for just before the table is redrawn. A return of\r\n\t\t * false will be used to cancel the draw.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoPreDrawCallback\":[],/**\r\n\t\t * Callback functions for when the table has been initialised.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoInitComplete\":[],/**\r\n\t\t * Callbacks for modifying the settings to be stored for state saving, prior to\r\n\t\t * saving state.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoStateSaveParams\":[],/**\r\n\t\t * Callbacks for modifying the settings that have been stored for state saving\r\n\t\t * prior to using the stored values to restore the state.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoStateLoadParams\":[],/**\r\n\t\t * Callbacks for operating on the settings object once the saved state has been\r\n\t\t * loaded\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoStateLoaded\":[],/**\r\n\t\t * Cache the table ID for quick access\r\n\t\t *  @type string\r\n\t\t *  @default <i>Empty string</i>\r\n\t\t */\"sTableId\":\"\",/**\r\n\t\t * The TABLE node for the main table\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\"nTable\":null,/**\r\n\t\t * Permanent ref to the thead element\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\"nTHead\":null,/**\r\n\t\t * Permanent ref to the tfoot element - if it exists\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\"nTFoot\":null,/**\r\n\t\t * Permanent ref to the tbody element\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\"nTBody\":null,/**\r\n\t\t * Cache the wrapper node (contains all DataTables controlled elements)\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\"nTableWrapper\":null,/**\r\n\t\t * Indicate if when using server-side processing the loading of data\r\n\t\t * should be deferred until the second draw.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t */\"bDeferLoading\":false,/**\r\n\t\t * Indicate if all required information has been read in\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t */\"bInitialised\":false,/**\r\n\t\t * Information about open rows. Each object in the array has the parameters\r\n\t\t * 'nTr' and 'nParent'\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoOpenRows\":[],/**\r\n\t\t * Dictate the positioning of DataTables' control elements - see\r\n\t\t * {@link DataTable.model.oInit.sDom}.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\"sDom\":null,/**\r\n\t\t * Search delay (in mS)\r\n\t\t *  @type integer\r\n\t\t *  @default null\r\n\t\t */\"searchDelay\":null,/**\r\n\t\t * Which type of pagination should be used.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type string\r\n\t\t *  @default two_button\r\n\t\t */\"sPaginationType\":\"two_button\",/**\r\n\t\t * The state duration (for `stateSave`) in seconds.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type int\r\n\t\t *  @default 0\r\n\t\t */\"iStateDuration\":0,/**\r\n\t\t * Array of callback functions for state saving. Each array element is an\r\n\t\t * object with the following parameters:\r\n\t\t *   <ul>\r\n\t\t *     <li>function:fn - function to call. Takes two parameters, oSettings\r\n\t\t *       and the JSON string to save that has been thus far created. Returns\r\n\t\t *       a JSON string to be inserted into a json object\r\n\t\t *       (i.e. '\"param\": [ 0, 1, 2]')</li>\r\n\t\t *     <li>string:sName - name of callback</li>\r\n\t\t *   </ul>\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoStateSave\":[],/**\r\n\t\t * Array of callback functions for state loading. Each array element is an\r\n\t\t * object with the following parameters:\r\n\t\t *   <ul>\r\n\t\t *     <li>function:fn - function to call. Takes two parameters, oSettings\r\n\t\t *       and the object stored. May return false to cancel state loading</li>\r\n\t\t *     <li>string:sName - name of callback</li>\r\n\t\t *   </ul>\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoStateLoad\":[],/**\r\n\t\t * State that was saved. Useful for back reference\r\n\t\t *  @type object\r\n\t\t *  @default null\r\n\t\t */\"oSavedState\":null,/**\r\n\t\t * State that was loaded. Useful for back reference\r\n\t\t *  @type object\r\n\t\t *  @default null\r\n\t\t */\"oLoadedState\":null,/**\r\n\t\t * Source url for AJAX data for the table.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\"sAjaxSource\":null,/**\r\n\t\t * Property from a given object from which to read the table data from. This\r\n\t\t * can be an empty string (when not server-side processing), in which case\r\n\t\t * it is  assumed an an array is given directly.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type string\r\n\t\t */\"sAjaxDataProp\":null,/**\r\n\t\t * Note if draw should be blocked while getting data\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t */\"bAjaxDataGet\":true,/**\r\n\t\t * The last jQuery XHR object that was used for server-side data gathering.\r\n\t\t * This can be used for working with the XHR information in one of the\r\n\t\t * callbacks\r\n\t\t *  @type object\r\n\t\t *  @default null\r\n\t\t */\"jqXHR\":null,/**\r\n\t\t * JSON returned from the server in the last Ajax request\r\n\t\t *  @type object\r\n\t\t *  @default undefined\r\n\t\t */\"json\":undefined,/**\r\n\t\t * Data submitted as part of the last Ajax request\r\n\t\t *  @type object\r\n\t\t *  @default undefined\r\n\t\t */\"oAjaxData\":undefined,/**\r\n\t\t * Function to get the server-side data.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type function\r\n\t\t */\"fnServerData\":null,/**\r\n\t\t * Functions which are called prior to sending an Ajax request so extra\r\n\t\t * parameters can easily be sent to the server\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoServerParams\":[],/**\r\n\t\t * Send the XHR HTTP method - GET or POST (could be PUT or DELETE if\r\n\t\t * required).\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type string\r\n\t\t */\"sServerMethod\":null,/**\r\n\t\t * Format numbers for display.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type function\r\n\t\t */\"fnFormatNumber\":null,/**\r\n\t\t * List of options that can be used for the user selectable length menu.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aLengthMenu\":null,/**\r\n\t\t * Counter for the draws that the table does. Also used as a tracker for\r\n\t\t * server-side processing\r\n\t\t *  @type int\r\n\t\t *  @default 0\r\n\t\t */\"iDraw\":0,/**\r\n\t\t * Indicate if a redraw is being done - useful for Ajax\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t */\"bDrawing\":false,/**\r\n\t\t * Draw index (iDraw) of the last error when parsing the returned data\r\n\t\t *  @type int\r\n\t\t *  @default -1\r\n\t\t */\"iDrawError\":-1,/**\r\n\t\t * Paging display length\r\n\t\t *  @type int\r\n\t\t *  @default 10\r\n\t\t */\"_iDisplayLength\":10,/**\r\n\t\t * Paging start point - aiDisplay index\r\n\t\t *  @type int\r\n\t\t *  @default 0\r\n\t\t */\"_iDisplayStart\":0,/**\r\n\t\t * Server-side processing - number of records in the result set\r\n\t\t * (i.e. before filtering), Use fnRecordsTotal rather than\r\n\t\t * this property to get the value of the number of records, regardless of\r\n\t\t * the server-side processing setting.\r\n\t\t *  @type int\r\n\t\t *  @default 0\r\n\t\t *  @private\r\n\t\t */\"_iRecordsTotal\":0,/**\r\n\t\t * Server-side processing - number of records in the current display set\r\n\t\t * (i.e. after filtering). Use fnRecordsDisplay rather than\r\n\t\t * this property to get the value of the number of records, regardless of\r\n\t\t * the server-side processing setting.\r\n\t\t *  @type boolean\r\n\t\t *  @default 0\r\n\t\t *  @private\r\n\t\t */\"_iRecordsDisplay\":0,/**\r\n\t\t * The classes to use for the table\r\n\t\t *  @type object\r\n\t\t *  @default {}\r\n\t\t */\"oClasses\":{},/**\r\n\t\t * Flag attached to the settings object so you can check in the draw\r\n\t\t * callback if filtering has been done in the draw. Deprecated in favour of\r\n\t\t * events.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *  @deprecated\r\n\t\t */\"bFiltered\":false,/**\r\n\t\t * Flag attached to the settings object so you can check in the draw\r\n\t\t * callback if sorting has been done in the draw. Deprecated in favour of\r\n\t\t * events.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *  @deprecated\r\n\t\t */\"bSorted\":false,/**\r\n\t\t * Indicate that if multiple rows are in the header and there is more than\r\n\t\t * one unique cell per column, if the top one (true) or bottom one (false)\r\n\t\t * should be used for sorting / title by DataTables.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type boolean\r\n\t\t */\"bSortCellsTop\":null,/**\r\n\t\t * Initialisation object that is used for the table\r\n\t\t *  @type object\r\n\t\t *  @default null\r\n\t\t */\"oInit\":null,/**\r\n\t\t * Destroy callback functions - for plug-ins to attach themselves to the\r\n\t\t * destroy so they can clean up markup and events.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aoDestroyCallback\":[],/**\r\n\t\t * Get the number of records in the current record set, before filtering\r\n\t\t *  @type function\r\n\t\t */\"fnRecordsTotal\":function(){return _fnDataSource(this)=='ssp'?this._iRecordsTotal*1:this.aiDisplayMaster.length;},/**\r\n\t\t * Get the number of records in the current record set, after filtering\r\n\t\t *  @type function\r\n\t\t */\"fnRecordsDisplay\":function(){return _fnDataSource(this)=='ssp'?this._iRecordsDisplay*1:this.aiDisplay.length;},/**\r\n\t\t * Get the display end point - aiDisplay index\r\n\t\t *  @type function\r\n\t\t */\"fnDisplayEnd\":function(){var len=this._iDisplayLength,start=this._iDisplayStart,calc=start+len,records=this.aiDisplay.length,features=this.oFeatures,paginate=features.bPaginate;if(features.bServerSide){return paginate===false||len===-1?start+records:Math.min(start+len,this._iRecordsDisplay);}else{return!paginate||calc>records||len===-1?records:calc;}},/**\r\n\t\t * The DataTables object for this table\r\n\t\t *  @type object\r\n\t\t *  @default null\r\n\t\t */\"oInstance\":null,/**\r\n\t\t * Unique identifier for each instance of the DataTables object. If there\r\n\t\t * is an ID on the table node, then it takes that value, otherwise an\r\n\t\t * incrementing internal counter is used.\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\"sInstance\":null,/**\r\n\t\t * tabindex attribute value that is added to DataTables control elements, allowing\r\n\t\t * keyboard navigation of the table and its controls.\r\n\t\t */\"iTabIndex\":0,/**\r\n\t\t * DIV container for the footer scrolling table if scrolling\r\n\t\t */\"nScrollHead\":null,/**\r\n\t\t * DIV container for the footer scrolling table if scrolling\r\n\t\t */\"nScrollFoot\":null,/**\r\n\t\t * Last applied sort\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\"aLastSort\":[],/**\r\n\t\t * Stored plug-in instances\r\n\t\t *  @type object\r\n\t\t *  @default {}\r\n\t\t */\"oPlugins\":{},/**\r\n\t\t * Function used to get a row's id from the row's data\r\n\t\t *  @type function\r\n\t\t *  @default null\r\n\t\t */\"rowIdFn\":null,/**\r\n\t\t * Data location where to store a row's id\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\"rowId\":null};/**\r\n\t * Extension object for DataTables that is used to provide all extension\r\n\t * options.\r\n\t *\r\n\t * Note that the `DataTable.ext` object is available through\r\n\t * `jQuery.fn.dataTable.ext` where it may be accessed and manipulated. It is\r\n\t * also aliased to `jQuery.fn.dataTableExt` for historic reasons.\r\n\t *  @namespace\r\n\t *  @extends DataTable.models.ext\r\n\t */ /**\r\n\t * DataTables extensions\r\n\t * \r\n\t * This namespace acts as a collection area for plug-ins that can be used to\r\n\t * extend DataTables capabilities. Indeed many of the build in methods\r\n\t * use this method to provide their own capabilities (sorting methods for\r\n\t * example).\r\n\t *\r\n\t * Note that this namespace is aliased to `jQuery.fn.dataTableExt` for legacy\r\n\t * reasons\r\n\t *\r\n\t *  @namespace\r\n\t */DataTable.ext=_ext={/**\r\n\t\t * Buttons. For use with the Buttons extension for DataTables. This is\r\n\t\t * defined here so other extensions can define buttons regardless of load\r\n\t\t * order. It is _not_ used by DataTables core.\r\n\t\t *\r\n\t\t *  @type object\r\n\t\t *  @default {}\r\n\t\t */buttons:{},/**\r\n\t\t * Element class names\r\n\t\t *\r\n\t\t *  @type object\r\n\t\t *  @default {}\r\n\t\t */classes:{},/**\r\n\t\t * DataTables build type (expanded by the download builder)\r\n\t\t *\r\n\t\t *  @type string\r\n\t\t */builder:\"-source-\",/**\r\n\t\t * Error reporting.\r\n\t\t * \r\n\t\t * How should DataTables report an error. Can take the value 'alert',\r\n\t\t * 'throw', 'none' or a function.\r\n\t\t *\r\n\t\t *  @type string|function\r\n\t\t *  @default alert\r\n\t\t */errMode:\"alert\",/**\r\n\t\t * Feature plug-ins.\r\n\t\t * \r\n\t\t * This is an array of objects which describe the feature plug-ins that are\r\n\t\t * available to DataTables. These feature plug-ins are then available for\r\n\t\t * use through the `dom` initialisation option.\r\n\t\t * \r\n\t\t * Each feature plug-in is described by an object which must have the\r\n\t\t * following properties:\r\n\t\t * \r\n\t\t * * `fnInit` - function that is used to initialise the plug-in,\r\n\t\t * * `cFeature` - a character so the feature can be enabled by the `dom`\r\n\t\t *   instillation option. This is case sensitive.\r\n\t\t *\r\n\t\t * The `fnInit` function has the following input parameters:\r\n\t\t *\r\n\t\t * 1. `{object}` DataTables settings object: see\r\n\t\t *    {@link DataTable.models.oSettings}\r\n\t\t *\r\n\t\t * And the following return is expected:\r\n\t\t * \r\n\t\t * * {node|null} The element which contains your feature. Note that the\r\n\t\t *   return may also be void if your plug-in does not require to inject any\r\n\t\t *   DOM elements into DataTables control (`dom`) - for example this might\r\n\t\t *   be useful when developing a plug-in which allows table control via\r\n\t\t *   keyboard entry\r\n\t\t *\r\n\t\t *  @type array\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $.fn.dataTable.ext.features.push( {\r\n\t\t *      \"fnInit\": function( oSettings ) {\r\n\t\t *        return new TableTools( { \"oDTSettings\": oSettings } );\r\n\t\t *      },\r\n\t\t *      \"cFeature\": \"T\"\r\n\t\t *    } );\r\n\t\t */feature:[],/**\r\n\t\t * Row searching.\r\n\t\t * \r\n\t\t * This method of searching is complimentary to the default type based\r\n\t\t * searching, and a lot more comprehensive as it allows you complete control\r\n\t\t * over the searching logic. Each element in this array is a function\r\n\t\t * (parameters described below) that is called for every row in the table,\r\n\t\t * and your logic decides if it should be included in the searching data set\r\n\t\t * or not.\r\n\t\t *\r\n\t\t * Searching functions have the following input parameters:\r\n\t\t *\r\n\t\t * 1. `{object}` DataTables settings object: see\r\n\t\t *    {@link DataTable.models.oSettings}\r\n\t\t * 2. `{array|object}` Data for the row to be processed (same as the\r\n\t\t *    original format that was passed in as the data source, or an array\r\n\t\t *    from a DOM data source\r\n\t\t * 3. `{int}` Row index ({@link DataTable.models.oSettings.aoData}), which\r\n\t\t *    can be useful to retrieve the `TR` element if you need DOM interaction.\r\n\t\t *\r\n\t\t * And the following return is expected:\r\n\t\t *\r\n\t\t * * {boolean} Include the row in the searched result set (true) or not\r\n\t\t *   (false)\r\n\t\t *\r\n\t\t * Note that as with the main search ability in DataTables, technically this\r\n\t\t * is \"filtering\", since it is subtractive. However, for consistency in\r\n\t\t * naming we call it searching here.\r\n\t\t *\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // The following example shows custom search being applied to the\r\n\t\t *    // fourth column (i.e. the data[3] index) based on two input values\r\n\t\t *    // from the end-user, matching the data in a certain range.\r\n\t\t *    $.fn.dataTable.ext.search.push(\r\n\t\t *      function( settings, data, dataIndex ) {\r\n\t\t *        var min = document.getElementById('min').value * 1;\r\n\t\t *        var max = document.getElementById('max').value * 1;\r\n\t\t *        var version = data[3] == \"-\" ? 0 : data[3]*1;\r\n\t\t *\r\n\t\t *        if ( min == \"\" && max == \"\" ) {\r\n\t\t *          return true;\r\n\t\t *        }\r\n\t\t *        else if ( min == \"\" && version < max ) {\r\n\t\t *          return true;\r\n\t\t *        }\r\n\t\t *        else if ( min < version && \"\" == max ) {\r\n\t\t *          return true;\r\n\t\t *        }\r\n\t\t *        else if ( min < version && version < max ) {\r\n\t\t *          return true;\r\n\t\t *        }\r\n\t\t *        return false;\r\n\t\t *      }\r\n\t\t *    );\r\n\t\t */search:[],/**\r\n\t\t * Selector extensions\r\n\t\t *\r\n\t\t * The `selector` option can be used to extend the options available for the\r\n\t\t * selector modifier options (`selector-modifier` object data type) that\r\n\t\t * each of the three built in selector types offer (row, column and cell +\r\n\t\t * their plural counterparts). For example the Select extension uses this\r\n\t\t * mechanism to provide an option to select only rows, columns and cells\r\n\t\t * that have been marked as selected by the end user (`{selected: true}`),\r\n\t\t * which can be used in conjunction with the existing built in selector\r\n\t\t * options.\r\n\t\t *\r\n\t\t * Each property is an array to which functions can be pushed. The functions\r\n\t\t * take three attributes:\r\n\t\t *\r\n\t\t * * Settings object for the host table\r\n\t\t * * Options object (`selector-modifier` object type)\r\n\t\t * * Array of selected item indexes\r\n\t\t *\r\n\t\t * The return is an array of the resulting item indexes after the custom\r\n\t\t * selector has been applied.\r\n\t\t *\r\n\t\t *  @type object\r\n\t\t */selector:{cell:[],column:[],row:[]},/**\r\n\t\t * Internal functions, exposed for used in plug-ins.\r\n\t\t * \r\n\t\t * Please note that you should not need to use the internal methods for\r\n\t\t * anything other than a plug-in (and even then, try to avoid if possible).\r\n\t\t * The internal function may change between releases.\r\n\t\t *\r\n\t\t *  @type object\r\n\t\t *  @default {}\r\n\t\t */internal:{},/**\r\n\t\t * Legacy configuration options. Enable and disable legacy options that\r\n\t\t * are available in DataTables.\r\n\t\t *\r\n\t\t *  @type object\r\n\t\t */legacy:{/**\r\n\t\t\t * Enable / disable DataTables 1.9 compatible server-side processing\r\n\t\t\t * requests\r\n\t\t\t *\r\n\t\t\t *  @type boolean\r\n\t\t\t *  @default null\r\n\t\t\t */ajax:null},/**\r\n\t\t * Pagination plug-in methods.\r\n\t\t * \r\n\t\t * Each entry in this object is a function and defines which buttons should\r\n\t\t * be shown by the pagination rendering method that is used for the table:\r\n\t\t * {@link DataTable.ext.renderer.pageButton}. The renderer addresses how the\r\n\t\t * buttons are displayed in the document, while the functions here tell it\r\n\t\t * what buttons to display. This is done by returning an array of button\r\n\t\t * descriptions (what each button will do).\r\n\t\t *\r\n\t\t * Pagination types (the four built in options and any additional plug-in\r\n\t\t * options defined here) can be used through the `paginationType`\r\n\t\t * initialisation parameter.\r\n\t\t *\r\n\t\t * The functions defined take two parameters:\r\n\t\t *\r\n\t\t * 1. `{int} page` The current page index\r\n\t\t * 2. `{int} pages` The number of pages in the table\r\n\t\t *\r\n\t\t * Each function is expected to return an array where each element of the\r\n\t\t * array can be one of:\r\n\t\t *\r\n\t\t * * `first` - Jump to first page when activated\r\n\t\t * * `last` - Jump to last page when activated\r\n\t\t * * `previous` - Show previous page when activated\r\n\t\t * * `next` - Show next page when activated\r\n\t\t * * `{int}` - Show page of the index given\r\n\t\t * * `{array}` - A nested array containing the above elements to add a\r\n\t\t *   containing 'DIV' element (might be useful for styling).\r\n\t\t *\r\n\t\t * Note that DataTables v1.9- used this object slightly differently whereby\r\n\t\t * an object with two functions would be defined for each plug-in. That\r\n\t\t * ability is still supported by DataTables 1.10+ to provide backwards\r\n\t\t * compatibility, but this option of use is now decremented and no longer\r\n\t\t * documented in DataTables 1.10+.\r\n\t\t *\r\n\t\t *  @type object\r\n\t\t *  @default {}\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Show previous, next and current page buttons only\r\n\t\t *    $.fn.dataTableExt.oPagination.current = function ( page, pages ) {\r\n\t\t *      return [ 'previous', page, 'next' ];\r\n\t\t *    };\r\n\t\t */pager:{},renderer:{pageButton:{},header:{}},/**\r\n\t\t * Ordering plug-ins - custom data source\r\n\t\t * \r\n\t\t * The extension options for ordering of data available here is complimentary\r\n\t\t * to the default type based ordering that DataTables typically uses. It\r\n\t\t * allows much greater control over the the data that is being used to\r\n\t\t * order a column, but is necessarily therefore more complex.\r\n\t\t * \r\n\t\t * This type of ordering is useful if you want to do ordering based on data\r\n\t\t * live from the DOM (for example the contents of an 'input' element) rather\r\n\t\t * than just the static string that DataTables knows of.\r\n\t\t * \r\n\t\t * The way these plug-ins work is that you create an array of the values you\r\n\t\t * wish to be ordering for the column in question and then return that\r\n\t\t * array. The data in the array much be in the index order of the rows in\r\n\t\t * the table (not the currently ordering order!). Which order data gathering\r\n\t\t * function is run here depends on the `dt-init columns.orderDataType`\r\n\t\t * parameter that is used for the column (if any).\r\n\t\t *\r\n\t\t * The functions defined take two parameters:\r\n\t\t *\r\n\t\t * 1. `{object}` DataTables settings object: see\r\n\t\t *    {@link DataTable.models.oSettings}\r\n\t\t * 2. `{int}` Target column index\r\n\t\t *\r\n\t\t * Each function is expected to return an array:\r\n\t\t *\r\n\t\t * * `{array}` Data for the column to be ordering upon\r\n\t\t *\r\n\t\t *  @type array\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Ordering using `input` node values\r\n\t\t *    $.fn.dataTable.ext.order['dom-text'] = function  ( settings, col )\r\n\t\t *    {\r\n\t\t *      return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {\r\n\t\t *        return $('input', td).val();\r\n\t\t *      } );\r\n\t\t *    }\r\n\t\t */order:{},/**\r\n\t\t * Type based plug-ins.\r\n\t\t *\r\n\t\t * Each column in DataTables has a type assigned to it, either by automatic\r\n\t\t * detection or by direct assignment using the `type` option for the column.\r\n\t\t * The type of a column will effect how it is ordering and search (plug-ins\r\n\t\t * can also make use of the column type if required).\r\n\t\t *\r\n\t\t * @namespace\r\n\t\t */type:{/**\r\n\t\t\t * Type detection functions.\r\n\t\t\t *\r\n\t\t\t * The functions defined in this object are used to automatically detect\r\n\t\t\t * a column's type, making initialisation of DataTables super easy, even\r\n\t\t\t * when complex data is in the table.\r\n\t\t\t *\r\n\t\t\t * The functions defined take two parameters:\r\n\t\t\t *\r\n\t\t     *  1. `{*}` Data from the column cell to be analysed\r\n\t\t     *  2. `{settings}` DataTables settings object. This can be used to\r\n\t\t     *     perform context specific type detection - for example detection\r\n\t\t     *     based on language settings such as using a comma for a decimal\r\n\t\t     *     place. Generally speaking the options from the settings will not\r\n\t\t     *     be required\r\n\t\t\t *\r\n\t\t\t * Each function is expected to return:\r\n\t\t\t *\r\n\t\t\t * * `{string|null}` Data type detected, or null if unknown (and thus\r\n\t\t\t *   pass it on to the other type detection functions.\r\n\t\t\t *\r\n\t\t\t *  @type array\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    // Currency type detection plug-in:\r\n\t\t\t *    $.fn.dataTable.ext.type.detect.push(\r\n\t\t\t *      function ( data, settings ) {\r\n\t\t\t *        // Check the numeric part\r\n\t\t\t *        if ( ! data.substring(1).match(/[0-9]/) ) {\r\n\t\t\t *          return null;\r\n\t\t\t *        }\r\n\t\t\t *\r\n\t\t\t *        // Check prefixed by currency\r\n\t\t\t *        if ( data.charAt(0) == '$' || data.charAt(0) == '&pound;' ) {\r\n\t\t\t *          return 'currency';\r\n\t\t\t *        }\r\n\t\t\t *        return null;\r\n\t\t\t *      }\r\n\t\t\t *    );\r\n\t\t\t */detect:[],/**\r\n\t\t\t * Type based search formatting.\r\n\t\t\t *\r\n\t\t\t * The type based searching functions can be used to pre-format the\r\n\t\t\t * data to be search on. For example, it can be used to strip HTML\r\n\t\t\t * tags or to de-format telephone numbers for numeric only searching.\r\n\t\t\t *\r\n\t\t\t * Note that is a search is not defined for a column of a given type,\r\n\t\t\t * no search formatting will be performed.\r\n\t\t\t * \r\n\t\t\t * Pre-processing of searching data plug-ins - When you assign the sType\r\n\t\t\t * for a column (or have it automatically detected for you by DataTables\r\n\t\t\t * or a type detection plug-in), you will typically be using this for\r\n\t\t\t * custom sorting, but it can also be used to provide custom searching\r\n\t\t\t * by allowing you to pre-processing the data and returning the data in\r\n\t\t\t * the format that should be searched upon. This is done by adding\r\n\t\t\t * functions this object with a parameter name which matches the sType\r\n\t\t\t * for that target column. This is the corollary of <i>afnSortData</i>\r\n\t\t\t * for searching data.\r\n\t\t\t *\r\n\t\t\t * The functions defined take a single parameter:\r\n\t\t\t *\r\n\t\t     *  1. `{*}` Data from the column cell to be prepared for searching\r\n\t\t\t *\r\n\t\t\t * Each function is expected to return:\r\n\t\t\t *\r\n\t\t\t * * `{string|null}` Formatted string that will be used for the searching.\r\n\t\t\t *\r\n\t\t\t *  @type object\r\n\t\t\t *  @default {}\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $.fn.dataTable.ext.type.search['title-numeric'] = function ( d ) {\r\n\t\t\t *      return d.replace(/\\n/g,\" \").replace( /<.*?>/g, \"\" );\r\n\t\t\t *    }\r\n\t\t\t */search:{},/**\r\n\t\t\t * Type based ordering.\r\n\t\t\t *\r\n\t\t\t * The column type tells DataTables what ordering to apply to the table\r\n\t\t\t * when a column is sorted upon. The order for each type that is defined,\r\n\t\t\t * is defined by the functions available in this object.\r\n\t\t\t *\r\n\t\t\t * Each ordering option can be described by three properties added to\r\n\t\t\t * this object:\r\n\t\t\t *\r\n\t\t\t * * `{type}-pre` - Pre-formatting function\r\n\t\t\t * * `{type}-asc` - Ascending order function\r\n\t\t\t * * `{type}-desc` - Descending order function\r\n\t\t\t *\r\n\t\t\t * All three can be used together, only `{type}-pre` or only\r\n\t\t\t * `{type}-asc` and `{type}-desc` together. It is generally recommended\r\n\t\t\t * that only `{type}-pre` is used, as this provides the optimal\r\n\t\t\t * implementation in terms of speed, although the others are provided\r\n\t\t\t * for compatibility with existing Javascript sort functions.\r\n\t\t\t *\r\n\t\t\t * `{type}-pre`: Functions defined take a single parameter:\r\n\t\t\t *\r\n\t\t     *  1. `{*}` Data from the column cell to be prepared for ordering\r\n\t\t\t *\r\n\t\t\t * And return:\r\n\t\t\t *\r\n\t\t\t * * `{*}` Data to be sorted upon\r\n\t\t\t *\r\n\t\t\t * `{type}-asc` and `{type}-desc`: Functions are typical Javascript sort\r\n\t\t\t * functions, taking two parameters:\r\n\t\t\t *\r\n\t\t     *  1. `{*}` Data to compare to the second parameter\r\n\t\t     *  2. `{*}` Data to compare to the first parameter\r\n\t\t\t *\r\n\t\t\t * And returning:\r\n\t\t\t *\r\n\t\t\t * * `{*}` Ordering match: <0 if first parameter should be sorted lower\r\n\t\t\t *   than the second parameter, ===0 if the two parameters are equal and\r\n\t\t\t *   >0 if the first parameter should be sorted height than the second\r\n\t\t\t *   parameter.\r\n\t\t\t * \r\n\t\t\t *  @type object\r\n\t\t\t *  @default {}\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    // Numeric ordering of formatted numbers with a pre-formatter\r\n\t\t\t *    $.extend( $.fn.dataTable.ext.type.order, {\r\n\t\t\t *      \"string-pre\": function(x) {\r\n\t\t\t *        a = (a === \"-\" || a === \"\") ? 0 : a.replace( /[^\\d\\-\\.]/g, \"\" );\r\n\t\t\t *        return parseFloat( a );\r\n\t\t\t *      }\r\n\t\t\t *    } );\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    // Case-sensitive string ordering, with no pre-formatting method\r\n\t\t\t *    $.extend( $.fn.dataTable.ext.order, {\r\n\t\t\t *      \"string-case-asc\": function(x,y) {\r\n\t\t\t *        return ((x < y) ? -1 : ((x > y) ? 1 : 0));\r\n\t\t\t *      },\r\n\t\t\t *      \"string-case-desc\": function(x,y) {\r\n\t\t\t *        return ((x < y) ? 1 : ((x > y) ? -1 : 0));\r\n\t\t\t *      }\r\n\t\t\t *    } );\r\n\t\t\t */order:{}},/**\r\n\t\t * Unique DataTables instance counter\r\n\t\t *\r\n\t\t * @type int\r\n\t\t * @private\r\n\t\t */_unique:0,//\n// Depreciated\n// The following properties are retained for backwards compatiblity only.\n// The should not be used in new projects and will be removed in a future\n// version\n//\n/**\r\n\t\t * Version check function.\r\n\t\t *  @type function\r\n\t\t *  @depreciated Since 1.10\r\n\t\t */fnVersionCheck:DataTable.fnVersionCheck,/**\r\n\t\t * Index for what 'this' index API functions should use\r\n\t\t *  @type int\r\n\t\t *  @deprecated Since v1.10\r\n\t\t */iApiIndex:0,/**\r\n\t\t * jQuery UI class container\r\n\t\t *  @type object\r\n\t\t *  @deprecated Since v1.10\r\n\t\t */oJUIClasses:{},/**\r\n\t\t * Software version\r\n\t\t *  @type string\r\n\t\t *  @deprecated Since v1.10\r\n\t\t */sVersion:DataTable.version};//\n// Backwards compatibility. Alias to pre 1.10 Hungarian notation counter parts\n//\n$.extend(_ext,{afnFiltering:_ext.search,aTypes:_ext.type.detect,ofnSearch:_ext.type.search,oSort:_ext.type.order,afnSortData:_ext.order,aoFeatures:_ext.feature,oApi:_ext.internal,oStdClasses:_ext.classes,oPagination:_ext.pager});$.extend(DataTable.ext.classes,{\"sTable\":\"dataTable\",\"sNoFooter\":\"no-footer\",/* Paging buttons */\"sPageButton\":\"paginate_button\",\"sPageButtonActive\":\"current\",\"sPageButtonDisabled\":\"disabled\",/* Striping classes */\"sStripeOdd\":\"odd\",\"sStripeEven\":\"even\",/* Empty row */\"sRowEmpty\":\"dataTables_empty\",/* Features */\"sWrapper\":\"dataTables_wrapper\",\"sFilter\":\"dataTables_filter\",\"sInfo\":\"dataTables_info\",\"sPaging\":\"dataTables_paginate paging_\",/* Note that the type is postfixed */\"sLength\":\"dataTables_length\",\"sProcessing\":\"dataTables_processing\",/* Sorting */\"sSortAsc\":\"sorting_asc\",\"sSortDesc\":\"sorting_desc\",\"sSortable\":\"sorting\",/* Sortable in both directions */\"sSortableAsc\":\"sorting_asc_disabled\",\"sSortableDesc\":\"sorting_desc_disabled\",\"sSortableNone\":\"sorting_disabled\",\"sSortColumn\":\"sorting_\",/* Note that an int is postfixed for the sorting order */ /* Filtering */\"sFilterInput\":\"\",/* Page length */\"sLengthSelect\":\"\",/* Scrolling */\"sScrollWrapper\":\"dataTables_scroll\",\"sScrollHead\":\"dataTables_scrollHead\",\"sScrollHeadInner\":\"dataTables_scrollHeadInner\",\"sScrollBody\":\"dataTables_scrollBody\",\"sScrollFoot\":\"dataTables_scrollFoot\",\"sScrollFootInner\":\"dataTables_scrollFootInner\",/* Misc */\"sHeaderTH\":\"\",\"sFooterTH\":\"\",// Deprecated\n\"sSortJUIAsc\":\"\",\"sSortJUIDesc\":\"\",\"sSortJUI\":\"\",\"sSortJUIAscAllowed\":\"\",\"sSortJUIDescAllowed\":\"\",\"sSortJUIWrapper\":\"\",\"sSortIcon\":\"\",\"sJUIHeader\":\"\",\"sJUIFooter\":\"\"});var extPagination=DataTable.ext.pager;function _numbers(page,pages){var numbers=[],buttons=extPagination.numbers_length,half=Math.floor(buttons/2),i=1;if(pages<=buttons){numbers=_range(0,pages);}else if(page<=half){numbers=_range(0,buttons-2);numbers.push('ellipsis');numbers.push(pages-1);}else if(page>=pages-1-half){numbers=_range(pages-(buttons-2),pages);numbers.splice(0,0,'ellipsis');// no unshift in ie6\nnumbers.splice(0,0,0);}else{numbers=_range(page-half+2,page+half-1);numbers.push('ellipsis');numbers.push(pages-1);numbers.splice(0,0,'ellipsis');numbers.splice(0,0,0);}numbers.DT_el='span';return numbers;}$.extend(extPagination,{simple:function(page,pages){return['previous','next'];},full:function(page,pages){return['first','previous','next','last'];},numbers:function(page,pages){return[_numbers(page,pages)];},simple_numbers:function(page,pages){return['previous',_numbers(page,pages),'next'];},full_numbers:function(page,pages){return['first','previous',_numbers(page,pages),'next','last'];},first_last_numbers:function(page,pages){return['first',_numbers(page,pages),'last'];},// For testing and plug-ins to use\n_numbers:_numbers,// Number of number buttons (including ellipsis) to show. _Must be odd!_\nnumbers_length:7});$.extend(true,DataTable.ext.renderer,{pageButton:{_:function(settings,host,idx,buttons,page,pages){var classes=settings.oClasses;var lang=settings.oLanguage.oPaginate;var aria=settings.oLanguage.oAria.paginate||{};var btnDisplay,btnClass,counter=0;var attach=function(container,buttons){var i,ien,node,button;var clickHandler=function(e){_fnPageChange(settings,e.data.action,true);};for(i=0,ien=buttons.length;i<ien;i++){button=buttons[i];if($.isArray(button)){var inner=$('<'+(button.DT_el||'div')+'/>').appendTo(container);attach(inner,button);}else{btnDisplay=null;btnClass='';switch(button){case'ellipsis':container.append('<span class=\"ellipsis\">&#x2026;</span>');break;case'first':btnDisplay=lang.sFirst;btnClass=button+(page>0?'':' '+classes.sPageButtonDisabled);break;case'previous':btnDisplay=lang.sPrevious;btnClass=button+(page>0?'':' '+classes.sPageButtonDisabled);break;case'next':btnDisplay=lang.sNext;btnClass=button+(page<pages-1?'':' '+classes.sPageButtonDisabled);break;case'last':btnDisplay=lang.sLast;btnClass=button+(page<pages-1?'':' '+classes.sPageButtonDisabled);break;default:btnDisplay=button+1;btnClass=page===button?classes.sPageButtonActive:'';break;}if(btnDisplay!==null){node=$('<a>',{'class':classes.sPageButton+' '+btnClass,'aria-controls':settings.sTableId,'aria-label':aria[button],'data-dt-idx':counter,'tabindex':settings.iTabIndex,'id':idx===0&&typeof button==='string'?settings.sTableId+'_'+button:null}).html(btnDisplay).appendTo(container);_fnBindAction(node,{action:button},clickHandler);counter++;}}}};// IE9 throws an 'unknown error' if document.activeElement is used\n// inside an iframe or frame. Try / catch the error. Not good for\n// accessibility, but neither are frames.\nvar activeEl;try{// Because this approach is destroying and recreating the paging\n// elements, focus is lost on the select button which is bad for\n// accessibility. So we want to restore focus once the draw has\n// completed\nactiveEl=$(host).find(document.activeElement).data('dt-idx');}catch(e){}attach($(host).empty(),buttons);if(activeEl!==undefined){$(host).find('[data-dt-idx='+activeEl+']').focus();}}}});// Built in type detection. See model.ext.aTypes for information about\n// what is required from this methods.\n$.extend(DataTable.ext.type.detect,[// Plain numbers - first since V8 detects some plain numbers as dates\n// e.g. Date.parse('55') (but not all, e.g. Date.parse('22')...).\nfunction(d,settings){var decimal=settings.oLanguage.sDecimal;return _isNumber(d,decimal)?'num'+decimal:null;},// Dates (only those recognised by the browser's Date.parse)\nfunction(d,settings){// V8 tries _very_ hard to make a string passed into `Date.parse()`\n// valid, so we need to use a regex to restrict date formats. Use a\n// plug-in for anything other than ISO8601 style strings\nif(d&&!(d instanceof Date)&&!_re_date.test(d)){return null;}var parsed=Date.parse(d);return parsed!==null&&!isNaN(parsed)||_empty(d)?'date':null;},// Formatted numbers\nfunction(d,settings){var decimal=settings.oLanguage.sDecimal;return _isNumber(d,decimal,true)?'num-fmt'+decimal:null;},// HTML numeric\nfunction(d,settings){var decimal=settings.oLanguage.sDecimal;return _htmlNumeric(d,decimal)?'html-num'+decimal:null;},// HTML numeric, formatted\nfunction(d,settings){var decimal=settings.oLanguage.sDecimal;return _htmlNumeric(d,decimal,true)?'html-num-fmt'+decimal:null;},// HTML (this is strict checking - there must be html)\nfunction(d,settings){return _empty(d)||typeof d==='string'&&d.indexOf('<')!==-1?'html':null;}]);// Filter formatting functions. See model.ext.ofnSearch for information about\n// what is required from these methods.\n// \n// Note that additional search methods are added for the html numbers and\n// html formatted numbers by `_addNumericSort()` when we know what the decimal\n// place is\n$.extend(DataTable.ext.type.search,{html:function(data){return _empty(data)?data:typeof data==='string'?data.replace(_re_new_lines,\" \").replace(_re_html,\"\"):'';},string:function(data){return _empty(data)?data:typeof data==='string'?data.replace(_re_new_lines,\" \"):data;}});var __numericReplace=function(d,decimalPlace,re1,re2){if(d!==0&&(!d||d==='-')){return-Infinity;}// If a decimal place other than `.` is used, it needs to be given to the\n// function so we can detect it and replace with a `.` which is the only\n// decimal place Javascript recognises - it is not locale aware.\nif(decimalPlace){d=_numToDecimal(d,decimalPlace);}if(d.replace){if(re1){d=d.replace(re1,'');}if(re2){d=d.replace(re2,'');}}return d*1;};// Add the numeric 'deformatting' functions for sorting and search. This is done\n// in a function to provide an easy ability for the language options to add\n// additional methods if a non-period decimal place is used.\nfunction _addNumericSort(decimalPlace){$.each({// Plain numbers\n\"num\":function(d){return __numericReplace(d,decimalPlace);},// Formatted numbers\n\"num-fmt\":function(d){return __numericReplace(d,decimalPlace,_re_formatted_numeric);},// HTML numeric\n\"html-num\":function(d){return __numericReplace(d,decimalPlace,_re_html);},// HTML numeric, formatted\n\"html-num-fmt\":function(d){return __numericReplace(d,decimalPlace,_re_html,_re_formatted_numeric);}},function(key,fn){// Add the ordering method\n_ext.type.order[key+decimalPlace+'-pre']=fn;// For HTML types add a search formatter that will strip the HTML\nif(key.match(/^html\\-/)){_ext.type.search[key+decimalPlace]=_ext.type.search.html;}});}// Default sort methods\n$.extend(_ext.type.order,{// Dates\n\"date-pre\":function(d){var ts=Date.parse(d);return isNaN(ts)?-Infinity:ts;},// html\n\"html-pre\":function(a){return _empty(a)?'':a.replace?a.replace(/<.*?>/g,\"\").toLowerCase():a+'';},// string\n\"string-pre\":function(a){// This is a little complex, but faster than always calling toString,\n// http://jsperf.com/tostring-v-check\nreturn _empty(a)?'':typeof a==='string'?a.toLowerCase():!a.toString?'':a.toString();},// string-asc and -desc are retained only for compatibility with the old\n// sort methods\n\"string-asc\":function(x,y){return x<y?-1:x>y?1:0;},\"string-desc\":function(x,y){return x<y?1:x>y?-1:0;}});// Numeric sorting types - order doesn't matter here\n_addNumericSort('');$.extend(true,DataTable.ext.renderer,{header:{_:function(settings,cell,column,classes){// No additional mark-up required\n// Attach a sort listener to update on sort - note that using the\n// `DT` namespace will allow the event to be removed automatically\n// on destroy, while the `dt` namespaced event is the one we are\n// listening for\n$(settings.nTable).on('order.dt.DT',function(e,ctx,sorting,columns){if(settings!==ctx){// need to check this this is the host\nreturn;// table, not a nested one\n}var colIdx=column.idx;cell.removeClass(column.sSortingClass+' '+classes.sSortAsc+' '+classes.sSortDesc).addClass(columns[colIdx]=='asc'?classes.sSortAsc:columns[colIdx]=='desc'?classes.sSortDesc:column.sSortingClass);});},jqueryui:function(settings,cell,column,classes){$('<div/>').addClass(classes.sSortJUIWrapper).append(cell.contents()).append($('<span/>').addClass(classes.sSortIcon+' '+column.sSortingClassJUI)).appendTo(cell);// Attach a sort listener to update on sort\n$(settings.nTable).on('order.dt.DT',function(e,ctx,sorting,columns){if(settings!==ctx){return;}var colIdx=column.idx;cell.removeClass(classes.sSortAsc+\" \"+classes.sSortDesc).addClass(columns[colIdx]=='asc'?classes.sSortAsc:columns[colIdx]=='desc'?classes.sSortDesc:column.sSortingClass);cell.find('span.'+classes.sSortIcon).removeClass(classes.sSortJUIAsc+\" \"+classes.sSortJUIDesc+\" \"+classes.sSortJUI+\" \"+classes.sSortJUIAscAllowed+\" \"+classes.sSortJUIDescAllowed).addClass(columns[colIdx]=='asc'?classes.sSortJUIAsc:columns[colIdx]=='desc'?classes.sSortJUIDesc:column.sSortingClassJUI);});}}});/*\r\n\t * Public helper functions. These aren't used internally by DataTables, or\r\n\t * called by any of the options passed into DataTables, but they can be used\r\n\t * externally by developers working with DataTables. They are helper functions\r\n\t * to make working with DataTables a little bit easier.\r\n\t */var __htmlEscapeEntities=function(d){return typeof d==='string'?d.replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/\"/g,'&quot;'):d;};/**\r\n\t * Helpers for `columns.render`.\r\n\t *\r\n\t * The options defined here can be used with the `columns.render` initialisation\r\n\t * option to provide a display renderer. The following functions are defined:\r\n\t *\r\n\t * * `number` - Will format numeric data (defined by `columns.data`) for\r\n\t *   display, retaining the original unformatted data for sorting and filtering.\r\n\t *   It takes 5 parameters:\r\n\t *   * `string` - Thousands grouping separator\r\n\t *   * `string` - Decimal point indicator\r\n\t *   * `integer` - Number of decimal points to show\r\n\t *   * `string` (optional) - Prefix.\r\n\t *   * `string` (optional) - Postfix (/suffix).\r\n\t * * `text` - Escape HTML to help prevent XSS attacks. It has no optional\r\n\t *   parameters.\r\n\t *\r\n\t * @example\r\n\t *   // Column definition using the number renderer\r\n\t *   {\r\n\t *     data: \"salary\",\r\n\t *     render: $.fn.dataTable.render.number( '\\'', '.', 0, '$' )\r\n\t *   }\r\n\t *\r\n\t * @namespace\r\n\t */DataTable.render={number:function(thousands,decimal,precision,prefix,postfix){return{display:function(d){if(typeof d!=='number'&&typeof d!=='string'){return d;}var negative=d<0?'-':'';var flo=parseFloat(d);// If NaN then there isn't much formatting that we can do - just\n// return immediately, escaping any HTML (this was supposed to\n// be a number after all)\nif(isNaN(flo)){return __htmlEscapeEntities(d);}flo=flo.toFixed(precision);d=Math.abs(flo);var intPart=parseInt(d,10);var floatPart=precision?decimal+(d-intPart).toFixed(precision).substring(2):'';return negative+(prefix||'')+intPart.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,thousands)+floatPart+(postfix||'');}};},text:function(){return{display:__htmlEscapeEntities,filter:__htmlEscapeEntities};}};/*\r\n\t * This is really a good bit rubbish this method of exposing the internal methods\r\n\t * publicly... - To be fixed in 2.0 using methods on the prototype\r\n\t */ /**\r\n\t * Create a wrapper function for exporting an internal functions to an external API.\r\n\t *  @param {string} fn API function name\r\n\t *  @returns {function} wrapped function\r\n\t *  @memberof DataTable#internal\r\n\t */function _fnExternApiFunc(fn){return function(){var args=[_fnSettingsFromNode(this[DataTable.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return DataTable.ext.internal[fn].apply(this,args);};}/**\r\n\t * Reference to internal functions for use by plug-in developers. Note that\r\n\t * these methods are references to internal functions and are considered to be\r\n\t * private. If you use these methods, be aware that they are liable to change\r\n\t * between versions.\r\n\t *  @namespace\r\n\t */$.extend(DataTable.ext.internal,{_fnExternApiFunc:_fnExternApiFunc,_fnBuildAjax:_fnBuildAjax,_fnAjaxUpdate:_fnAjaxUpdate,_fnAjaxParameters:_fnAjaxParameters,_fnAjaxUpdateDraw:_fnAjaxUpdateDraw,_fnAjaxDataSrc:_fnAjaxDataSrc,_fnAddColumn:_fnAddColumn,_fnColumnOptions:_fnColumnOptions,_fnAdjustColumnSizing:_fnAdjustColumnSizing,_fnVisibleToColumnIndex:_fnVisibleToColumnIndex,_fnColumnIndexToVisible:_fnColumnIndexToVisible,_fnVisbleColumns:_fnVisbleColumns,_fnGetColumns:_fnGetColumns,_fnColumnTypes:_fnColumnTypes,_fnApplyColumnDefs:_fnApplyColumnDefs,_fnHungarianMap:_fnHungarianMap,_fnCamelToHungarian:_fnCamelToHungarian,_fnLanguageCompat:_fnLanguageCompat,_fnBrowserDetect:_fnBrowserDetect,_fnAddData:_fnAddData,_fnAddTr:_fnAddTr,_fnNodeToDataIndex:_fnNodeToDataIndex,_fnNodeToColumnIndex:_fnNodeToColumnIndex,_fnGetCellData:_fnGetCellData,_fnSetCellData:_fnSetCellData,_fnSplitObjNotation:_fnSplitObjNotation,_fnGetObjectDataFn:_fnGetObjectDataFn,_fnSetObjectDataFn:_fnSetObjectDataFn,_fnGetDataMaster:_fnGetDataMaster,_fnClearTable:_fnClearTable,_fnDeleteIndex:_fnDeleteIndex,_fnInvalidate:_fnInvalidate,_fnGetRowElements:_fnGetRowElements,_fnCreateTr:_fnCreateTr,_fnBuildHead:_fnBuildHead,_fnDrawHead:_fnDrawHead,_fnDraw:_fnDraw,_fnReDraw:_fnReDraw,_fnAddOptionsHtml:_fnAddOptionsHtml,_fnDetectHeader:_fnDetectHeader,_fnGetUniqueThs:_fnGetUniqueThs,_fnFeatureHtmlFilter:_fnFeatureHtmlFilter,_fnFilterComplete:_fnFilterComplete,_fnFilterCustom:_fnFilterCustom,_fnFilterColumn:_fnFilterColumn,_fnFilter:_fnFilter,_fnFilterCreateSearch:_fnFilterCreateSearch,_fnEscapeRegex:_fnEscapeRegex,_fnFilterData:_fnFilterData,_fnFeatureHtmlInfo:_fnFeatureHtmlInfo,_fnUpdateInfo:_fnUpdateInfo,_fnInfoMacros:_fnInfoMacros,_fnInitialise:_fnInitialise,_fnInitComplete:_fnInitComplete,_fnLengthChange:_fnLengthChange,_fnFeatureHtmlLength:_fnFeatureHtmlLength,_fnFeatureHtmlPaginate:_fnFeatureHtmlPaginate,_fnPageChange:_fnPageChange,_fnFeatureHtmlProcessing:_fnFeatureHtmlProcessing,_fnProcessingDisplay:_fnProcessingDisplay,_fnFeatureHtmlTable:_fnFeatureHtmlTable,_fnScrollDraw:_fnScrollDraw,_fnApplyToChildren:_fnApplyToChildren,_fnCalculateColumnWidths:_fnCalculateColumnWidths,_fnThrottle:_fnThrottle,_fnConvertToWidth:_fnConvertToWidth,_fnGetWidestNode:_fnGetWidestNode,_fnGetMaxLenString:_fnGetMaxLenString,_fnStringToCss:_fnStringToCss,_fnSortFlatten:_fnSortFlatten,_fnSort:_fnSort,_fnSortAria:_fnSortAria,_fnSortListener:_fnSortListener,_fnSortAttachListener:_fnSortAttachListener,_fnSortingClasses:_fnSortingClasses,_fnSortData:_fnSortData,_fnSaveState:_fnSaveState,_fnLoadState:_fnLoadState,_fnSettingsFromNode:_fnSettingsFromNode,_fnLog:_fnLog,_fnMap:_fnMap,_fnBindAction:_fnBindAction,_fnCallbackReg:_fnCallbackReg,_fnCallbackFire:_fnCallbackFire,_fnLengthOverflow:_fnLengthOverflow,_fnRenderer:_fnRenderer,_fnDataSource:_fnDataSource,_fnRowAttributes:_fnRowAttributes,_fnExtend:_fnExtend,_fnCalculateEnd:function(){}// Used by a lot of plug-ins, but redundant\n// in 1.10, so this dead-end function is\n// added to prevent errors\n});// jQuery access\n$.fn.dataTable=DataTable;// Provide access to the host jQuery object (circular reference)\nDataTable.$=$;// Legacy aliases\n$.fn.dataTableSettings=DataTable.settings;$.fn.dataTableExt=DataTable.ext;// With a capital `D` we return a DataTables API instance rather than a\n// jQuery object\n$.fn.DataTable=function(opts){return $(this).dataTable(opts).api();};// All properties that are available to $.fn.dataTable should also be\n// available on $.fn.DataTable\n$.each(DataTable,function(prop,val){$.fn.DataTable[prop]=val;});// Information about events fired by DataTables - for documentation.\n/**\r\n\t * Draw event, fired whenever the table is redrawn on the page, at the same\r\n\t * point as fnDrawCallback. This may be useful for binding events or\r\n\t * performing calculations when the table is altered at all.\r\n\t *  @name DataTable#draw.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */ /**\r\n\t * Search event, fired when the searching applied to the table (using the\r\n\t * built-in global search, or column filters) is altered.\r\n\t *  @name DataTable#search.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */ /**\r\n\t * Page change event, fired when the paging of the table is altered.\r\n\t *  @name DataTable#page.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */ /**\r\n\t * Order event, fired when the ordering applied to the table is altered.\r\n\t *  @name DataTable#order.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */ /**\r\n\t * DataTables initialisation complete event, fired when the table is fully\r\n\t * drawn, including Ajax data loaded, if Ajax data is required.\r\n\t *  @name DataTable#init.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} oSettings DataTables settings object\r\n\t *  @param {object} json The JSON object request from the server - only\r\n\t *    present if client-side Ajax sourced data is used</li></ol>\r\n\t */ /**\r\n\t * State save event, fired when the table has changed state a new state save\r\n\t * is required. This event allows modification of the state saving object\r\n\t * prior to actually doing the save, including addition or other state\r\n\t * properties (for plug-ins) or modification of a DataTables core property.\r\n\t *  @name DataTable#stateSaveParams.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} oSettings DataTables settings object\r\n\t *  @param {object} json The state information to be saved\r\n\t */ /**\r\n\t * State load event, fired when the table is loading state from the stored\r\n\t * data, but prior to the settings object being modified by the saved state\r\n\t * - allowing modification of the saved state is required or loading of\r\n\t * state for a plug-in.\r\n\t *  @name DataTable#stateLoadParams.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} oSettings DataTables settings object\r\n\t *  @param {object} json The saved state information\r\n\t */ /**\r\n\t * State loaded event, fired when state has been loaded from stored data and\r\n\t * the settings object has been modified by the loaded data.\r\n\t *  @name DataTable#stateLoaded.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} oSettings DataTables settings object\r\n\t *  @param {object} json The saved state information\r\n\t */ /**\r\n\t * Processing event, fired when DataTables is doing some kind of processing\r\n\t * (be it, order, searcg or anything else). It can be used to indicate to\r\n\t * the end user that there is something happening, or that something has\r\n\t * finished.\r\n\t *  @name DataTable#processing.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} oSettings DataTables settings object\r\n\t *  @param {boolean} bShow Flag for if DataTables is doing processing or not\r\n\t */ /**\r\n\t * Ajax (XHR) event, fired whenever an Ajax request is completed from a\r\n\t * request to made to the server for new data. This event is called before\r\n\t * DataTables processed the returned data, so it can also be used to pre-\r\n\t * process the data returned from the server, if needed.\r\n\t *\r\n\t * Note that this trigger is called in `fnServerData`, if you override\r\n\t * `fnServerData` and which to use this event, you need to trigger it in you\r\n\t * success function.\r\n\t *  @name DataTable#xhr.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t *  @param {object} json JSON returned from the server\r\n\t *\r\n\t *  @example\r\n\t *     // Use a custom property returned from the server in another DOM element\r\n\t *     $('#table').dataTable().on('xhr.dt', function (e, settings, json) {\r\n\t *       $('#status').html( json.status );\r\n\t *     } );\r\n\t *\r\n\t *  @example\r\n\t *     // Pre-process the data returned from the server\r\n\t *     $('#table').dataTable().on('xhr.dt', function (e, settings, json) {\r\n\t *       for ( var i=0, ien=json.aaData.length ; i<ien ; i++ ) {\r\n\t *         json.aaData[i].sum = json.aaData[i].one + json.aaData[i].two;\r\n\t *       }\r\n\t *       // Note no return - manipulate the data directly in the JSON object.\r\n\t *     } );\r\n\t */ /**\r\n\t * Destroy event, fired when the DataTable is destroyed by calling fnDestroy\r\n\t * or passing the bDestroy:true parameter in the initialisation object. This\r\n\t * can be used to remove bound events, added DOM nodes, etc.\r\n\t *  @name DataTable#destroy.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */ /**\r\n\t * Page length change event, fired when number of records to show on each\r\n\t * page (the length) is changed.\r\n\t *  @name DataTable#length.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t *  @param {integer} len New length\r\n\t */ /**\r\n\t * Column sizing has changed.\r\n\t *  @name DataTable#column-sizing.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */ /**\r\n\t * Column visibility has changed.\r\n\t *  @name DataTable#column-visibility.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t *  @param {int} column Column index\r\n\t *  @param {bool} vis `false` if column now hidden, or `true` if visible\r\n\t */return $.fn.dataTable;});/*! DataTables Bootstrap 4 integration\r\n * ©2011-2017 SpryMedia Ltd - datatables.net/license\r\n */ /**\r\n * DataTables integration for Bootstrap 4. This requires Bootstrap 4 and\r\n * DataTables 1.10 or newer.\r\n *\r\n * This file sets the defaults and adds options to DataTables to style its\r\n * controls using Bootstrap. See http://datatables.net/manual/styling/bootstrap\r\n * for further information.\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;/* Set the defaults for DataTables initialisation */$.extend(true,DataTable.defaults,{dom:\"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>>\"+\"<'row'<'col-sm-12'tr>>\"+\"<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>\",renderer:'bootstrap'});/* Default class modification */$.extend(DataTable.ext.classes,{sWrapper:\"dataTables_wrapper dt-bootstrap4\",sFilterInput:\"form-control form-control-sm\",sLengthSelect:\"custom-select custom-select-sm form-control form-control-sm\",sProcessing:\"dataTables_processing card\",sPageButton:\"paginate_button page-item\"});/* Bootstrap paging button renderer */DataTable.ext.renderer.pageButton.bootstrap=function(settings,host,idx,buttons,page,pages){var api=new DataTable.Api(settings);var classes=settings.oClasses;var lang=settings.oLanguage.oPaginate;var aria=settings.oLanguage.oAria.paginate||{};var btnDisplay,btnClass,counter=0;var attach=function(container,buttons){var i,ien,node,button;var clickHandler=function(e){e.preventDefault();if(!$(e.currentTarget).hasClass('disabled')&&api.page()!=e.data.action){api.page(e.data.action).draw('page');}};for(i=0,ien=buttons.length;i<ien;i++){button=buttons[i];if($.isArray(button)){attach(container,button);}else{btnDisplay='';btnClass='';switch(button){case'ellipsis':btnDisplay='&#x2026;';btnClass='disabled';break;case'first':btnDisplay=lang.sFirst;btnClass=button+(page>0?'':' disabled');break;case'previous':btnDisplay=lang.sPrevious;btnClass=button+(page>0?'':' disabled');break;case'next':btnDisplay=lang.sNext;btnClass=button+(page<pages-1?'':' disabled');break;case'last':btnDisplay=lang.sLast;btnClass=button+(page<pages-1?'':' disabled');break;default:btnDisplay=button+1;btnClass=page===button?'active':'';break;}if(btnDisplay){node=$('<li>',{'class':classes.sPageButton+' '+btnClass,'id':idx===0&&typeof button==='string'?settings.sTableId+'_'+button:null}).append($('<a>',{'href':'#','aria-controls':settings.sTableId,'aria-label':aria[button],'data-dt-idx':counter,'tabindex':settings.iTabIndex,'class':'page-link'}).html(btnDisplay)).appendTo(container);settings.oApi._fnBindAction(node,{action:button},clickHandler);counter++;}}}};// IE9 throws an 'unknown error' if document.activeElement is used\n// inside an iframe or frame. \nvar activeEl;try{// Because this approach is destroying and recreating the paging\n// elements, focus is lost on the select button which is bad for\n// accessibility. So we want to restore focus once the draw has\n// completed\nactiveEl=$(host).find(document.activeElement).data('dt-idx');}catch(e){}attach($(host).empty().html('<ul class=\"pagination\"/>').children('ul'),buttons);if(activeEl!==undefined){$(host).find('[data-dt-idx='+activeEl+']').focus();}};return DataTable;});/* Set the defaults for DataTables extended classes */$.extend(true,$.fn.dataTableExt.oStdClasses,{\"sFilterInput\":\"form-control border-top-left-radius-0 border-bottom-left-radius-0 ml-0 width-lg shadow-inset-1\",\"sLengthSelect\":\"form-control custom-select\"});/* Set the defaults for DataTables initialisation */$.extend(true,$.fn.dataTable.defaults,{/*\t--- Layout Structure \r\n\t\t--- Options\r\n\t\tl\t-\tlength changing input control\r\n\t\tf\t-\tfiltering input\r\n\t\tt\t-\tThe table!\r\n\t\ti\t-\tTable information summary\r\n\t\tp\t-\tpagination control\r\n\t\tr\t-\tprocessing display element\r\n\t\tB\t-\tbuttons\r\n\t\tR\t-\tColReorder\r\n\t\tS\t-\tSelect\r\n\r\n\t\t--- Markup\r\n\t\t< and >\t\t\t\t- div element\r\n\t\t<\"class\" and >\t\t- div with a class\r\n\t\t<\"#id\" and >\t\t- div with an ID\r\n\t\t<\"#id.class\" and >\t- div with an ID and a class\r\n\r\n\t\t--- Further reading\r\n\t\thttps://datatables.net/reference/option/dom\r\n\t\t--------------------------------------\r\n\t*/dom:\"<'row mb-3'<'col-sm-12 col-md-6 d-flex align-items-center justify-content-start'f><'col-sm-12 col-md-6 d-flex align-items-center justify-content-end'l>>\"+\"<'row'<'col-sm-12'tr>>\"+\"<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>\",lengthMenu:[[10,15,25,50,100,-1],[10,15,25,50,100,\"All\"]],language:{/* change the default text for 'next' and 'previous' with icons */paginate:{previous:\"<i class='fal fa-chevron-left'></i>\",next:\"<i class='fal fa-chevron-right'></i>\"},processing:'<div class=\"d-flex align-items-center justify-content-center fs-lg\"><div class=\"spinner-border spinner-border-sm text-primary mr-2\" role=\"status\"><span class=\"sr-only\"> Loading...</span></div> Processing...</div>',/* replace the default search lable text with a nice icon */search:'<div class=\"input-group-text d-inline-flex width-3 align-items-center justify-content-center border-bottom-right-radius-0 border-top-right-radius-0 border-right-0\"><i class=\"fal fa-search\"></i></div>',/* add search filter */searchPlaceholder:\"Search\",/* change text for zero records */zeroRecords:\"No records to display\"},initComplete:function(settings,json){initApp.appForms('.dataTables_filter','has-length','has-disabled');}});/*! AutoFill 2.3.4\r\n * ©2008-2019 SpryMedia Ltd - datatables.net/license\r\n */ /**\r\n * @summary     AutoFill\r\n * @description Add Excel like click and drag auto-fill options to DataTables\r\n * @version     2.3.4\r\n * @file        dataTables.autoFill.js\r\n * @author      SpryMedia Ltd (www.sprymedia.co.uk)\r\n * @contact     www.sprymedia.co.uk/contact\r\n * @copyright   Copyright 2010-2019 SpryMedia Ltd.\r\n *\r\n * This source file is free software, available under the following license:\r\n *   MIT license - http://datatables.net/license/mit\r\n *\r\n * This source file is distributed in the hope that it will be useful, but\r\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\r\n *\r\n * For details please refer to: http://www.datatables.net\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;var _instance=0;/** \r\n * AutoFill provides Excel like auto-fill features for a DataTable\r\n *\r\n * @class AutoFill\r\n * @constructor\r\n * @param {object} oTD DataTables settings object\r\n * @param {object} oConfig Configuration object for AutoFill\r\n */var AutoFill=function(dt,opts){if(!DataTable.versionCheck||!DataTable.versionCheck('1.10.8')){throw\"Warning: AutoFill requires DataTables 1.10.8 or greater\";}// User and defaults configuration object\nthis.c=$.extend(true,{},DataTable.defaults.autoFill,AutoFill.defaults,opts);/**\r\n\t * @namespace Settings object which contains customisable information for AutoFill instance\r\n\t */this.s={/** @type {DataTable.Api} DataTables' API instance */dt:new DataTable.Api(dt),/** @type {String} Unique namespace for events attached to the document */namespace:'.autoFill'+_instance++,/** @type {Object} Cached dimension information for use in the mouse move event handler */scroll:{},/** @type {integer} Interval object used for smooth scrolling */scrollInterval:null,handle:{height:0,width:0},/**\r\n\t\t * Enabled setting\r\n\t\t * @type {Boolean}\r\n\t\t */enabled:false};/**\r\n\t * @namespace Common and useful DOM elements for the class instance\r\n\t */this.dom={/** @type {jQuery} AutoFill handle */handle:$('<div class=\"dt-autofill-handle\"/>'),/**\r\n\t\t * @type {Object} Selected cells outline - Need to use 4 elements,\r\n\t\t *   otherwise the mouse over if you back into the selected rectangle\r\n\t\t *   will be over that element, rather than the cells!\r\n\t\t */select:{top:$('<div class=\"dt-autofill-select top\"/>'),right:$('<div class=\"dt-autofill-select right\"/>'),bottom:$('<div class=\"dt-autofill-select bottom\"/>'),left:$('<div class=\"dt-autofill-select left\"/>')},/** @type {jQuery} Fill type chooser background */background:$('<div class=\"dt-autofill-background\"/>'),/** @type {jQuery} Fill type chooser */list:$('<div class=\"dt-autofill-list\">'+this.s.dt.i18n('autoFill.info','')+'<ul/></div>'),/** @type {jQuery} DataTables scrolling container */dtScroll:null,/** @type {jQuery} Offset parent element */offsetParent:null};/* Constructor logic */this._constructor();};$.extend(AutoFill.prototype,{/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Public methods (exposed via the DataTables API below)\r\n\t */enabled:function(){return this.s.enabled;},enable:function(flag){var that=this;if(flag===false){return this.disable();}this.s.enabled=true;this._focusListener();this.dom.handle.on('mousedown',function(e){that._mousedown(e);return false;});return this;},disable:function(){this.s.enabled=false;this._focusListenerRemove();return this;},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Constructor\r\n\t */ /**\r\n\t * Initialise the RowReorder instance\r\n\t *\r\n\t * @private\r\n\t */_constructor:function(){var that=this;var dt=this.s.dt;var dtScroll=$('div.dataTables_scrollBody',this.s.dt.table().container());// Make the instance accessible to the API\ndt.settings()[0].autoFill=this;if(dtScroll.length){this.dom.dtScroll=dtScroll;// Need to scroll container to be the offset parent\nif(dtScroll.css('position')==='static'){dtScroll.css('position','relative');}}if(this.c.enable!==false){this.enable();}dt.on('destroy.autoFill',function(){that._focusListenerRemove();});},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Private methods\r\n\t */ /**\r\n\t * Display the AutoFill drag handle by appending it to a table cell. This\r\n\t * is the opposite of the _detach method.\r\n\t *\r\n\t * @param  {node} node TD/TH cell to insert the handle into\r\n\t * @private\r\n\t */_attach:function(node){var dt=this.s.dt;var idx=dt.cell(node).index();var handle=this.dom.handle;var handleDim=this.s.handle;if(!idx||dt.columns(this.c.columns).indexes().indexOf(idx.column)===-1){this._detach();return;}if(!this.dom.offsetParent){// We attach to the table's offset parent\nthis.dom.offsetParent=$(dt.table().node()).offsetParent();}if(!handleDim.height||!handleDim.width){// Append to document so we can get its size. Not expecting it to\n// change during the life time of the page\nhandle.appendTo('body');handleDim.height=handle.outerHeight();handleDim.width=handle.outerWidth();}// Might need to go through multiple offset parents\nvar offset=this._getPosition(node,this.dom.offsetParent);this.dom.attachedTo=node;handle.css({top:offset.top+node.offsetHeight-handleDim.height,left:offset.left+node.offsetWidth-handleDim.width}).appendTo(this.dom.offsetParent);},/**\r\n\t * Determine can the fill type should be. This can be automatic, or ask the\r\n\t * end user.\r\n\t *\r\n\t * @param {array} cells Information about the selected cells from the key\r\n\t *     up function\r\n\t * @private\r\n\t */_actionSelector:function(cells){var that=this;var dt=this.s.dt;var actions=AutoFill.actions;var available=[];// \"Ask\" each plug-in if it wants to handle this data\n$.each(actions,function(key,action){if(action.available(dt,cells)){available.push(key);}});if(available.length===1&&this.c.alwaysAsk===false){// Only one action available - enact it immediately\nvar result=actions[available[0]].execute(dt,cells);this._update(result,cells);}else{// Multiple actions available - ask the end user what they want to do\nvar list=this.dom.list.children('ul').empty();// Add a cancel option\navailable.push('cancel');$.each(available,function(i,name){list.append($('<li/>').append('<div class=\"dt-autofill-question\">'+actions[name].option(dt,cells)+'<div>').append($('<div class=\"dt-autofill-button\">').append($('<button class=\"'+AutoFill.classes.btn+'\">'+dt.i18n('autoFill.button','&gt;')+'</button>').on('click',function(){var result=actions[name].execute(dt,cells,$(this).closest('li'));that._update(result,cells);that.dom.background.remove();that.dom.list.remove();}))));});this.dom.background.appendTo('body');this.dom.list.appendTo('body');this.dom.list.css('margin-top',this.dom.list.outerHeight()/2*-1);}},/**\r\n\t * Remove the AutoFill handle from the document\r\n\t *\r\n\t * @private\r\n\t */_detach:function(){this.dom.attachedTo=null;this.dom.handle.detach();},/**\r\n\t * Draw the selection outline by calculating the range between the start\r\n\t * and end cells, then placing the highlighting elements to draw a rectangle\r\n\t *\r\n\t * @param  {node}   target End cell\r\n\t * @param  {object} e      Originating event\r\n\t * @private\r\n\t */_drawSelection:function(target,e){// Calculate boundary for start cell to this one\nvar dt=this.s.dt;var start=this.s.start;var startCell=$(this.dom.start);var end={row:this.c.vertical?dt.rows({page:'current'}).nodes().indexOf(target.parentNode):start.row,column:this.c.horizontal?$(target).index():start.column};var colIndx=dt.column.index('toData',end.column);var endRow=dt.row(':eq('+end.row+')',{page:'current'});// Workaround for M581\nvar endCell=$(dt.cell(endRow.index(),colIndx).node());// Be sure that is a DataTables controlled cell\nif(!dt.cell(endCell).any()){return;}// if target is not in the columns available - do nothing\nif(dt.columns(this.c.columns).indexes().indexOf(colIndx)===-1){return;}this.s.end=end;var top,bottom,left,right,height,width;top=start.row<end.row?startCell:endCell;bottom=start.row<end.row?endCell:startCell;left=start.column<end.column?startCell:endCell;right=start.column<end.column?endCell:startCell;top=this._getPosition(top.get(0)).top;left=this._getPosition(left.get(0)).left;height=this._getPosition(bottom.get(0)).top+bottom.outerHeight()-top;width=this._getPosition(right.get(0)).left+right.outerWidth()-left;var select=this.dom.select;select.top.css({top:top,left:left,width:width});select.left.css({top:top,left:left,height:height});select.bottom.css({top:top+height,left:left,width:width});select.right.css({top:top,left:left+width,height:height});},/**\r\n\t * Use the Editor API to perform an update based on the new data for the\r\n\t * cells\r\n\t *\r\n\t * @param {array} cells Information about the selected cells from the key\r\n\t *     up function\r\n\t * @private\r\n\t */_editor:function(cells){var dt=this.s.dt;var editor=this.c.editor;if(!editor){return;}// Build the object structure for Editor's multi-row editing\nvar idValues={};var nodes=[];var fields=editor.fields();for(var i=0,ien=cells.length;i<ien;i++){for(var j=0,jen=cells[i].length;j<jen;j++){var cell=cells[i][j];// Determine the field name for the cell being edited\nvar col=dt.settings()[0].aoColumns[cell.index.column];var fieldName=col.editField;if(fieldName===undefined){var dataSrc=col.mData;// dataSrc is the `field.data` property, but we need to set\n// using the field name, so we need to translate from the\n// data to the name\nfor(var k=0,ken=fields.length;k<ken;k++){var field=editor.field(fields[k]);if(field.dataSrc()===dataSrc){fieldName=field.name();break;}}}if(!fieldName){throw'Could not automatically determine field data. '+'Please see https://datatables.net/tn/11';}if(!idValues[fieldName]){idValues[fieldName]={};}var id=dt.row(cell.index.row).id();idValues[fieldName][id]=cell.set;// Keep a list of cells so we can activate the bubble editing\n// with them\nnodes.push(cell.index);}}// Perform the edit using bubble editing as it allows us to specify\n// the cells to be edited, rather than using full rows\neditor.bubble(nodes,false).multiSet(idValues).submit();},/**\r\n\t * Emit an event on the DataTable for listeners\r\n\t *\r\n\t * @param  {string} name Event name\r\n\t * @param  {array} args Event arguments\r\n\t * @private\r\n\t */_emitEvent:function(name,args){this.s.dt.iterator('table',function(ctx,i){$(ctx.nTable).triggerHandler(name+'.dt',args);});},/**\r\n\t * Attach suitable listeners (based on the configuration) that will attach\r\n\t * and detach the AutoFill handle in the document.\r\n\t *\r\n\t * @private\r\n\t */_focusListener:function(){var that=this;var dt=this.s.dt;var namespace=this.s.namespace;var focus=this.c.focus!==null?this.c.focus:dt.init().keys||dt.settings()[0].keytable?'focus':'hover';// All event listeners attached here are removed in the `destroy`\n// callback in the constructor\nif(focus==='focus'){dt.on('key-focus.autoFill',function(e,dt,cell){that._attach(cell.node());}).on('key-blur.autoFill',function(e,dt,cell){that._detach();});}else if(focus==='click'){$(dt.table().body()).on('click'+namespace,'td, th',function(e){that._attach(this);});$(document.body).on('click'+namespace,function(e){if(!$(e.target).parents().filter(dt.table().body()).length){that._detach();}});}else{$(dt.table().body()).on('mouseenter'+namespace,'td, th',function(e){that._attach(this);}).on('mouseleave'+namespace,function(e){if($(e.relatedTarget).hasClass('dt-autofill-handle')){return;}that._detach();});}},_focusListenerRemove:function(){var dt=this.s.dt;dt.off('.autoFill');$(dt.table().body()).off(this.s.namespace);$(document.body).off(this.s.namespace);},/**\r\n\t * Get the position of a node, relative to another, including any scrolling\r\n\t * offsets.\r\n\t * @param  {Node}   node         Node to get the position of\r\n\t * @param  {jQuery} targetParent Node to use as the parent\r\n\t * @return {object}              Offset calculation\r\n\t * @private\r\n\t */_getPosition:function(node,targetParent){var currNode=node,currOffsetParent,top=0,left=0;if(!targetParent){targetParent=$($(this.s.dt.table().node())[0].offsetParent);}do{// Don't use jQuery().position() the behaviour changes between 1.x and 3.x for\n// tables\nvar positionTop=currNode.offsetTop;var positionLeft=currNode.offsetLeft;// jQuery doesn't give a `table` as the offset parent oddly, so use DOM directly\ncurrOffsetParent=$(currNode.offsetParent);top+=positionTop+parseInt(currOffsetParent.css('border-top-width'))*1;left+=positionLeft+parseInt(currOffsetParent.css('border-left-width'))*1;// Emergency fall back. Shouldn't happen, but just in case!\nif(currNode.nodeName.toLowerCase()==='body'){break;}currNode=currOffsetParent.get(0);// for next loop\n}while(currOffsetParent.get(0)!==targetParent.get(0));return{top:top,left:left};},/**\r\n\t * Start mouse drag - selects the start cell\r\n\t *\r\n\t * @param  {object} e Mouse down event\r\n\t * @private\r\n\t */_mousedown:function(e){var that=this;var dt=this.s.dt;this.dom.start=this.dom.attachedTo;this.s.start={row:dt.rows({page:'current'}).nodes().indexOf($(this.dom.start).parent()[0]),column:$(this.dom.start).index()};$(document.body).on('mousemove.autoFill',function(e){that._mousemove(e);}).on('mouseup.autoFill',function(e){that._mouseup(e);});var select=this.dom.select;var offsetParent=$(dt.table().node()).offsetParent();select.top.appendTo(offsetParent);select.left.appendTo(offsetParent);select.right.appendTo(offsetParent);select.bottom.appendTo(offsetParent);this._drawSelection(this.dom.start,e);this.dom.handle.css('display','none');// Cache scrolling information so mouse move doesn't need to read.\n// This assumes that the window and DT scroller will not change size\n// during an AutoFill drag, which I think is a fair assumption\nvar scrollWrapper=this.dom.dtScroll;this.s.scroll={windowHeight:$(window).height(),windowWidth:$(window).width(),dtTop:scrollWrapper?scrollWrapper.offset().top:null,dtLeft:scrollWrapper?scrollWrapper.offset().left:null,dtHeight:scrollWrapper?scrollWrapper.outerHeight():null,dtWidth:scrollWrapper?scrollWrapper.outerWidth():null};},/**\r\n\t * Mouse drag - selects the end cell and update the selection display for\r\n\t * the end user\r\n\t *\r\n\t * @param  {object} e Mouse move event\r\n\t * @private\r\n\t */_mousemove:function(e){var that=this;var dt=this.s.dt;var name=e.target.nodeName.toLowerCase();if(name!=='td'&&name!=='th'){return;}this._drawSelection(e.target,e);this._shiftScroll(e);},/**\r\n\t * End mouse drag - perform the update actions\r\n\t *\r\n\t * @param  {object} e Mouse up event\r\n\t * @private\r\n\t */_mouseup:function(e){$(document.body).off('.autoFill');var that=this;var dt=this.s.dt;var select=this.dom.select;select.top.remove();select.left.remove();select.right.remove();select.bottom.remove();this.dom.handle.css('display','block');// Display complete - now do something useful with the selection!\nvar start=this.s.start;var end=this.s.end;// Haven't selected multiple cells, so nothing to do\nif(start.row===end.row&&start.column===end.column){return;}var startDt=dt.cell(':eq('+start.row+')',start.column+':visible',{page:'current'});// If Editor is active inside this cell (inline editing) we need to wait for Editor to\n// submit and then we can loop back and trigger the fill.\nif($('div.DTE',startDt.node()).length){var editor=dt.editor();editor.on('submitSuccess.dtaf close.dtaf',function(){editor.off('.dtaf');setTimeout(function(){that._mouseup(e);},100);}).on('submitComplete.dtaf preSubmitCancelled.dtaf close.dtaf',function(){editor.off('.dtaf');});// Make the current input submit\neditor.submit();return;}// Build a matrix representation of the selected rows\nvar rows=this._range(start.row,end.row);var columns=this._range(start.column,end.column);var selected=[];var dtSettings=dt.settings()[0];var dtColumns=dtSettings.aoColumns;var enabledColumns=dt.columns(this.c.columns).indexes();// Can't use Array.prototype.map as IE8 doesn't support it\n// Can't use $.map as jQuery flattens 2D arrays\n// Need to use a good old fashioned for loop\nfor(var rowIdx=0;rowIdx<rows.length;rowIdx++){selected.push($.map(columns,function(column){var row=dt.row(':eq('+rows[rowIdx]+')',{page:'current'});// Workaround for M581\nvar cell=dt.cell(row.index(),column+':visible');var data=cell.data();var cellIndex=cell.index();var editField=dtColumns[cellIndex.column].editField;if(editField!==undefined){data=dtSettings.oApi._fnGetObjectDataFn(editField)(dt.row(cellIndex.row).data());}if(enabledColumns.indexOf(cellIndex.column)===-1){return;}return{cell:cell,data:data,label:cell.data(),index:cellIndex};}));}this._actionSelector(selected);// Stop shiftScroll\nclearInterval(this.s.scrollInterval);this.s.scrollInterval=null;},/**\r\n\t * Create an array with a range of numbers defined by the start and end\r\n\t * parameters passed in (inclusive!).\r\n\t * \r\n\t * @param  {integer} start Start\r\n\t * @param  {integer} end   End\r\n\t * @private\r\n\t */_range:function(start,end){var out=[];var i;if(start<=end){for(i=start;i<=end;i++){out.push(i);}}else{for(i=start;i>=end;i--){out.push(i);}}return out;},/**\r\n\t * Move the window and DataTables scrolling during a drag to scroll new\r\n\t * content into view. This is done by proximity to the edge of the scrolling\r\n\t * container of the mouse - for example near the top edge of the window\r\n\t * should scroll up. This is a little complicated as there are two elements\r\n\t * that can be scrolled - the window and the DataTables scrolling view port\r\n\t * (if scrollX and / or scrollY is enabled).\r\n\t *\r\n\t * @param  {object} e Mouse move event object\r\n\t * @private\r\n\t */_shiftScroll:function(e){var that=this;var dt=this.s.dt;var scroll=this.s.scroll;var runInterval=false;var scrollSpeed=5;var buffer=65;var windowY=e.pageY-document.body.scrollTop,windowX=e.pageX-document.body.scrollLeft,windowVert,windowHoriz,dtVert,dtHoriz;// Window calculations - based on the mouse position in the window,\n// regardless of scrolling\nif(windowY<buffer){windowVert=scrollSpeed*-1;}else if(windowY>scroll.windowHeight-buffer){windowVert=scrollSpeed;}if(windowX<buffer){windowHoriz=scrollSpeed*-1;}else if(windowX>scroll.windowWidth-buffer){windowHoriz=scrollSpeed;}// DataTables scrolling calculations - based on the table's position in\n// the document and the mouse position on the page\nif(scroll.dtTop!==null&&e.pageY<scroll.dtTop+buffer){dtVert=scrollSpeed*-1;}else if(scroll.dtTop!==null&&e.pageY>scroll.dtTop+scroll.dtHeight-buffer){dtVert=scrollSpeed;}if(scroll.dtLeft!==null&&e.pageX<scroll.dtLeft+buffer){dtHoriz=scrollSpeed*-1;}else if(scroll.dtLeft!==null&&e.pageX>scroll.dtLeft+scroll.dtWidth-buffer){dtHoriz=scrollSpeed;}// This is where it gets interesting. We want to continue scrolling\n// without requiring a mouse move, so we need an interval to be\n// triggered. The interval should continue until it is no longer needed,\n// but it must also use the latest scroll commands (for example consider\n// that the mouse might move from scrolling up to scrolling left, all\n// with the same interval running. We use the `scroll` object to \"pass\"\n// this information to the interval. Can't use local variables as they\n// wouldn't be the ones that are used by an already existing interval!\nif(windowVert||windowHoriz||dtVert||dtHoriz){scroll.windowVert=windowVert;scroll.windowHoriz=windowHoriz;scroll.dtVert=dtVert;scroll.dtHoriz=dtHoriz;runInterval=true;}else if(this.s.scrollInterval){// Don't need to scroll - remove any existing timer\nclearInterval(this.s.scrollInterval);this.s.scrollInterval=null;}// If we need to run the interval to scroll and there is no existing\n// interval (if there is an existing one, it will continue to run)\nif(!this.s.scrollInterval&&runInterval){this.s.scrollInterval=setInterval(function(){// Don't need to worry about setting scroll <0 or beyond the\n// scroll bound as the browser will just reject that.\nif(scroll.windowVert){document.body.scrollTop+=scroll.windowVert;}if(scroll.windowHoriz){document.body.scrollLeft+=scroll.windowHoriz;}// DataTables scrolling\nif(scroll.dtVert||scroll.dtHoriz){var scroller=that.dom.dtScroll[0];if(scroll.dtVert){scroller.scrollTop+=scroll.dtVert;}if(scroll.dtHoriz){scroller.scrollLeft+=scroll.dtHoriz;}}},20);}},/**\r\n\t * Update the DataTable after the user has selected what they want to do\r\n\t *\r\n\t * @param  {false|undefined} result Return from the `execute` method - can\r\n\t *   be false internally to do nothing. This is not documented for plug-ins\r\n\t *   and is used only by the cancel option.\r\n\t * @param {array} cells Information about the selected cells from the key\r\n\t *     up function, argumented with the set values\r\n\t * @private\r\n\t */_update:function(result,cells){// Do nothing on `false` return from an execute function\nif(result===false){return;}var dt=this.s.dt;var cell;var columns=dt.columns(this.c.columns).indexes();// Potentially allow modifications to the cells matrix\nthis._emitEvent('preAutoFill',[dt,cells]);this._editor(cells);// Automatic updates are not performed if `update` is null and the\n// `editor` parameter is passed in - the reason being that Editor will\n// update the data once submitted\nvar update=this.c.update!==null?this.c.update:this.c.editor?false:true;if(update){for(var i=0,ien=cells.length;i<ien;i++){for(var j=0,jen=cells[i].length;j<jen;j++){cell=cells[i][j];if(columns.indexOf(cell.index.column)!==-1){cell.cell.data(cell.set);}}}dt.draw(false);}this._emitEvent('autoFill',[dt,cells]);}});/**\r\n * AutoFill actions. The options here determine how AutoFill will fill the data\r\n * in the table when the user has selected a range of cells. Please see the\r\n * documentation on the DataTables site for full details on how to create plug-\r\n * ins.\r\n *\r\n * @type {Object}\r\n */AutoFill.actions={increment:{available:function(dt,cells){var d=cells[0][0].label;// is numeric test based on jQuery's old `isNumeric` function\nreturn!isNaN(d-parseFloat(d));},option:function(dt,cells){return dt.i18n('autoFill.increment','Increment / decrement each cell by: <input type=\"number\" value=\"1\">');},execute:function(dt,cells,node){var value=cells[0][0].data*1;var increment=$('input',node).val()*1;for(var i=0,ien=cells.length;i<ien;i++){for(var j=0,jen=cells[i].length;j<jen;j++){cells[i][j].set=value;value+=increment;}}}},fill:{available:function(dt,cells){return true;},option:function(dt,cells){return dt.i18n('autoFill.fill','Fill all cells with <i>'+cells[0][0].label+'</i>');},execute:function(dt,cells,node){var value=cells[0][0].data;for(var i=0,ien=cells.length;i<ien;i++){for(var j=0,jen=cells[i].length;j<jen;j++){cells[i][j].set=value;}}}},fillHorizontal:{available:function(dt,cells){return cells.length>1&&cells[0].length>1;},option:function(dt,cells){return dt.i18n('autoFill.fillHorizontal','Fill cells horizontally');},execute:function(dt,cells,node){for(var i=0,ien=cells.length;i<ien;i++){for(var j=0,jen=cells[i].length;j<jen;j++){cells[i][j].set=cells[i][0].data;}}}},fillVertical:{available:function(dt,cells){return cells.length>1&&cells[0].length>1;},option:function(dt,cells){return dt.i18n('autoFill.fillVertical','Fill cells vertically');},execute:function(dt,cells,node){for(var i=0,ien=cells.length;i<ien;i++){for(var j=0,jen=cells[i].length;j<jen;j++){cells[i][j].set=cells[0][j].data;}}}},// Special type that does not make itself available, but is added\n// automatically by AutoFill if a multi-choice list is shown. This allows\n// sensible code reuse\ncancel:{available:function(){return false;},option:function(dt){return dt.i18n('autoFill.cancel','Cancel');},execute:function(){return false;}}};/**\r\n * AutoFill version\r\n * \r\n * @static\r\n * @type      String\r\n */AutoFill.version='2.3.4';/**\r\n * AutoFill defaults\r\n * \r\n * @namespace\r\n */AutoFill.defaults={/** @type {Boolean} Ask user what they want to do, even for a single option */alwaysAsk:false,/** @type {string|null} What will trigger a focus */focus:null,// focus, click, hover\n/** @type {column-selector} Columns to provide auto fill for */columns:'',// all\n/** @type {Boolean} Enable AutoFill on load */enable:true,/** @type {boolean|null} Update the cells after a drag */update:null,// false is editor given, true otherwise\n/** @type {DataTable.Editor} Editor instance for automatic submission */editor:null,/** @type {boolean} Enable vertical fill */vertical:true,/** @type {boolean} Enable horizontal fill */horizontal:true};/**\r\n * Classes used by AutoFill that are configurable\r\n * \r\n * @namespace\r\n */AutoFill.classes={/** @type {String} Class used by the selection button */btn:'btn'};/*\r\n * API\r\n */var Api=$.fn.dataTable.Api;// Doesn't do anything - Not documented\nApi.register('autoFill()',function(){return this;});Api.register('autoFill().enabled()',function(){var ctx=this.context[0];return ctx.autoFill?ctx.autoFill.enabled():false;});Api.register('autoFill().enable()',function(flag){return this.iterator('table',function(ctx){if(ctx.autoFill){ctx.autoFill.enable(flag);}});});Api.register('autoFill().disable()',function(){return this.iterator('table',function(ctx){if(ctx.autoFill){ctx.autoFill.disable();}});});// Attach a listener to the document which listens for DataTables initialisation\n// events so we can automatically initialise\n$(document).on('preInit.dt.autofill',function(e,settings,json){if(e.namespace!=='dt'){return;}var init=settings.oInit.autoFill;var defaults=DataTable.defaults.autoFill;if(init||defaults){var opts=$.extend({},init,defaults);if(init!==false){new AutoFill(settings,opts);}}});// Alias for access\nDataTable.AutoFill=AutoFill;DataTable.AutoFill=AutoFill;return AutoFill;});/*! Bootstrap integration for DataTables' AutoFill\r\n * ©2015 SpryMedia Ltd - datatables.net/license\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-bs4'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-autofill'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;DataTable.AutoFill.classes.btn='btn btn-primary';return DataTable;});/*! Buttons for DataTables 1.6.1\r\n * ©2016-2019 SpryMedia Ltd - datatables.net/license\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;// Used for namespacing events added to the document by each instance, so they\n// can be removed on destroy\nvar _instCounter=0;// Button namespacing counter for namespacing events on individual buttons\nvar _buttonCounter=0;var _dtButtons=DataTable.ext.buttons;/**\r\n * [Buttons description]\r\n * @param {[type]}\r\n * @param {[type]}\r\n */var Buttons=function(dt,config){// If not created with a `new` keyword then we return a wrapper function that\n// will take the settings object for a DT. This allows easy use of new instances\n// with the `layout` option - e.g. `topLeft: $.fn.dataTable.Buttons( ... )`.\nif(!(this instanceof Buttons)){return function(settings){return new Buttons(settings,dt).container();};}// If there is no config set it to an empty object\nif(typeof config==='undefined'){config={};}// Allow a boolean true for defaults\nif(config===true){config={};}// For easy configuration of buttons an array can be given\nif($.isArray(config)){config={buttons:config};}this.c=$.extend(true,{},Buttons.defaults,config);// Don't want a deep copy for the buttons\nif(config.buttons){this.c.buttons=config.buttons;}this.s={dt:new DataTable.Api(dt),buttons:[],listenKeys:'',namespace:'dtb'+_instCounter++};this.dom={container:$('<'+this.c.dom.container.tag+'/>').addClass(this.c.dom.container.className)};this._constructor();};$.extend(Buttons.prototype,{/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Public methods\r\n\t */ /**\r\n\t * Get the action of a button\r\n\t * @param  {int|string} Button index\r\n\t * @return {function}\r\n\t */ /**\r\n\t * Set the action of a button\r\n\t * @param  {node} node Button element\r\n\t * @param  {function} action Function to set\r\n\t * @return {Buttons} Self for chaining\r\n\t */action:function(node,action){var button=this._nodeToButton(node);if(action===undefined){return button.conf.action;}button.conf.action=action;return this;},/**\r\n\t * Add an active class to the button to make to look active or get current\r\n\t * active state.\r\n\t * @param  {node} node Button element\r\n\t * @param  {boolean} [flag] Enable / disable flag\r\n\t * @return {Buttons} Self for chaining or boolean for getter\r\n\t */active:function(node,flag){var button=this._nodeToButton(node);var klass=this.c.dom.button.active;var jqNode=$(button.node);if(flag===undefined){return jqNode.hasClass(klass);}jqNode.toggleClass(klass,flag===undefined?true:flag);return this;},/**\r\n\t * Add a new button\r\n\t * @param {object} config Button configuration object, base string name or function\r\n\t * @param {int|string} [idx] Button index for where to insert the button\r\n\t * @return {Buttons} Self for chaining\r\n\t */add:function(config,idx){var buttons=this.s.buttons;if(typeof idx==='string'){var split=idx.split('-');var base=this.s;for(var i=0,ien=split.length-1;i<ien;i++){base=base.buttons[split[i]*1];}buttons=base.buttons;idx=split[split.length-1]*1;}this._expandButton(buttons,config,base!==undefined,idx);this._draw();return this;},/**\r\n\t * Get the container node for the buttons\r\n\t * @return {jQuery} Buttons node\r\n\t */container:function(){return this.dom.container;},/**\r\n\t * Disable a button\r\n\t * @param  {node} node Button node\r\n\t * @return {Buttons} Self for chaining\r\n\t */disable:function(node){var button=this._nodeToButton(node);$(button.node).addClass(this.c.dom.button.disabled);return this;},/**\r\n\t * Destroy the instance, cleaning up event handlers and removing DOM\r\n\t * elements\r\n\t * @return {Buttons} Self for chaining\r\n\t */destroy:function(){// Key event listener\n$('body').off('keyup.'+this.s.namespace);// Individual button destroy (so they can remove their own events if\n// needed). Take a copy as the array is modified by `remove`\nvar buttons=this.s.buttons.slice();var i,ien;for(i=0,ien=buttons.length;i<ien;i++){this.remove(buttons[i].node);}// Container\nthis.dom.container.remove();// Remove from the settings object collection\nvar buttonInsts=this.s.dt.settings()[0];for(i=0,ien=buttonInsts.length;i<ien;i++){if(buttonInsts.inst===this){buttonInsts.splice(i,1);break;}}return this;},/**\r\n\t * Enable / disable a button\r\n\t * @param  {node} node Button node\r\n\t * @param  {boolean} [flag=true] Enable / disable flag\r\n\t * @return {Buttons} Self for chaining\r\n\t */enable:function(node,flag){if(flag===false){return this.disable(node);}var button=this._nodeToButton(node);$(button.node).removeClass(this.c.dom.button.disabled);return this;},/**\r\n\t * Get the instance name for the button set selector\r\n\t * @return {string} Instance name\r\n\t */name:function(){return this.c.name;},/**\r\n\t * Get a button's node of the buttons container if no button is given\r\n\t * @param  {node} [node] Button node\r\n\t * @return {jQuery} Button element, or container\r\n\t */node:function(node){if(!node){return this.dom.container;}var button=this._nodeToButton(node);return $(button.node);},/**\r\n\t * Set / get a processing class on the selected button\r\n\t * @param {element} node Triggering button node\r\n\t * @param  {boolean} flag true to add, false to remove, undefined to get\r\n\t * @return {boolean|Buttons} Getter value or this if a setter.\r\n\t */processing:function(node,flag){var dt=this.s.dt;var button=this._nodeToButton(node);if(flag===undefined){return $(button.node).hasClass('processing');}$(button.node).toggleClass('processing',flag);$(dt.table().node()).triggerHandler('buttons-processing.dt',[flag,dt.button(node),dt,$(node),button.conf]);return this;},/**\r\n\t * Remove a button.\r\n\t * @param  {node} node Button node\r\n\t * @return {Buttons} Self for chaining\r\n\t */remove:function(node){var button=this._nodeToButton(node);var host=this._nodeToHost(node);var dt=this.s.dt;// Remove any child buttons first\nif(button.buttons.length){for(var i=button.buttons.length-1;i>=0;i--){this.remove(button.buttons[i].node);}}// Allow the button to remove event handlers, etc\nif(button.conf.destroy){button.conf.destroy.call(dt.button(node),dt,$(node),button.conf);}this._removeKey(button.conf);$(button.node).remove();var idx=$.inArray(button,host);host.splice(idx,1);return this;},/**\r\n\t * Get the text for a button\r\n\t * @param  {int|string} node Button index\r\n\t * @return {string} Button text\r\n\t */ /**\r\n\t * Set the text for a button\r\n\t * @param  {int|string|function} node Button index\r\n\t * @param  {string} label Text\r\n\t * @return {Buttons} Self for chaining\r\n\t */text:function(node,label){var button=this._nodeToButton(node);var buttonLiner=this.c.dom.collection.buttonLiner;var linerTag=button.inCollection&&buttonLiner&&buttonLiner.tag?buttonLiner.tag:this.c.dom.buttonLiner.tag;var dt=this.s.dt;var jqNode=$(button.node);var text=function(opt){return typeof opt==='function'?opt(dt,jqNode,button.conf):opt;};if(label===undefined){return text(button.conf.text);}button.conf.text=label;if(linerTag){jqNode.children(linerTag).html(text(label));}else{jqNode.html(text(label));}return this;},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Constructor\r\n\t */ /**\r\n\t * Buttons constructor\r\n\t * @private\r\n\t */_constructor:function(){var that=this;var dt=this.s.dt;var dtSettings=dt.settings()[0];var buttons=this.c.buttons;if(!dtSettings._buttons){dtSettings._buttons=[];}dtSettings._buttons.push({inst:this,name:this.c.name});for(var i=0,ien=buttons.length;i<ien;i++){this.add(buttons[i]);}dt.on('destroy',function(e,settings){if(settings===dtSettings){that.destroy();}});// Global key event binding to listen for button keys\n$('body').on('keyup.'+this.s.namespace,function(e){if(!document.activeElement||document.activeElement===document.body){// SUse a string of characters for fast lookup of if we need to\n// handle this\nvar character=String.fromCharCode(e.keyCode).toLowerCase();if(that.s.listenKeys.toLowerCase().indexOf(character)!==-1){that._keypress(character,e);}}});},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Private methods\r\n\t */ /**\r\n\t * Add a new button to the key press listener\r\n\t * @param {object} conf Resolved button configuration object\r\n\t * @private\r\n\t */_addKey:function(conf){if(conf.key){this.s.listenKeys+=$.isPlainObject(conf.key)?conf.key.key:conf.key;}},/**\r\n\t * Insert the buttons into the container. Call without parameters!\r\n\t * @param  {node} [container] Recursive only - Insert point\r\n\t * @param  {array} [buttons] Recursive only - Buttons array\r\n\t * @private\r\n\t */_draw:function(container,buttons){if(!container){container=this.dom.container;buttons=this.s.buttons;}container.children().detach();for(var i=0,ien=buttons.length;i<ien;i++){container.append(buttons[i].inserter);container.append(' ');if(buttons[i].buttons&&buttons[i].buttons.length){this._draw(buttons[i].collection,buttons[i].buttons);}}},/**\r\n\t * Create buttons from an array of buttons\r\n\t * @param  {array} attachTo Buttons array to attach to\r\n\t * @param  {object} button Button definition\r\n\t * @param  {boolean} inCollection true if the button is in a collection\r\n\t * @private\r\n\t */_expandButton:function(attachTo,button,inCollection,attachPoint){var dt=this.s.dt;var buttonCounter=0;var buttons=!$.isArray(button)?[button]:button;for(var i=0,ien=buttons.length;i<ien;i++){var conf=this._resolveExtends(buttons[i]);if(!conf){continue;}// If the configuration is an array, then expand the buttons at this\n// point\nif($.isArray(conf)){this._expandButton(attachTo,conf,inCollection,attachPoint);continue;}var built=this._buildButton(conf,inCollection);if(!built){continue;}if(attachPoint!==undefined){attachTo.splice(attachPoint,0,built);attachPoint++;}else{attachTo.push(built);}if(built.conf.buttons){built.collection=$('<'+this.c.dom.collection.tag+'/>');built.conf._collection=built.collection;this._expandButton(built.buttons,built.conf.buttons,true,attachPoint);}// init call is made here, rather than buildButton as it needs to\n// be selectable, and for that it needs to be in the buttons array\nif(conf.init){conf.init.call(dt.button(built.node),dt,$(built.node),conf);}buttonCounter++;}},/**\r\n\t * Create an individual button\r\n\t * @param  {object} config            Resolved button configuration\r\n\t * @param  {boolean} inCollection `true` if a collection button\r\n\t * @return {jQuery} Created button node (jQuery)\r\n\t * @private\r\n\t */_buildButton:function(config,inCollection){var buttonDom=this.c.dom.button;var linerDom=this.c.dom.buttonLiner;var collectionDom=this.c.dom.collection;var dt=this.s.dt;var text=function(opt){return typeof opt==='function'?opt(dt,button,config):opt;};if(inCollection&&collectionDom.button){buttonDom=collectionDom.button;}if(inCollection&&collectionDom.buttonLiner){linerDom=collectionDom.buttonLiner;}// Make sure that the button is available based on whatever requirements\n// it has. For example, Flash buttons require Flash\nif(config.available&&!config.available(dt,config)){return false;}var action=function(e,dt,button,config){config.action.call(dt.button(button),e,dt,button,config);$(dt.table().node()).triggerHandler('buttons-action.dt',[dt.button(button),dt,button,config]);};var tag=config.tag||buttonDom.tag;var clickBlurs=config.clickBlurs===undefined?true:config.clickBlurs;var button=$('<'+tag+'/>').addClass(buttonDom.className).attr('tabindex',this.s.dt.settings()[0].iTabIndex).attr('aria-controls',this.s.dt.table().node().id).on('click.dtb',function(e){e.preventDefault();if(!button.hasClass(buttonDom.disabled)&&config.action){action(e,dt,button,config);}if(clickBlurs){button.blur();}}).on('keyup.dtb',function(e){if(e.keyCode===13){if(!button.hasClass(buttonDom.disabled)&&config.action){action(e,dt,button,config);}}});// Make `a` tags act like a link\nif(tag.toLowerCase()==='a'){button.attr('href','#');}// Button tags should have `type=button` so they don't have any default behaviour\nif(tag.toLowerCase()==='button'){button.attr('type','button');}if(linerDom.tag){var liner=$('<'+linerDom.tag+'/>').html(text(config.text)).addClass(linerDom.className);if(linerDom.tag.toLowerCase()==='a'){liner.attr('href','#');}button.append(liner);}else{button.html(text(config.text));}if(config.enabled===false){button.addClass(buttonDom.disabled);}if(config.className){button.addClass(config.className);}if(config.titleAttr){button.attr('title',text(config.titleAttr));}if(config.attr){button.attr(config.attr);}if(!config.namespace){config.namespace='.dt-button-'+_buttonCounter++;}var buttonContainer=this.c.dom.buttonContainer;var inserter;if(buttonContainer&&buttonContainer.tag){inserter=$('<'+buttonContainer.tag+'/>').addClass(buttonContainer.className).append(button);}else{inserter=button;}this._addKey(config);// Style integration callback for DOM manipulation\n// Note that this is _not_ documented. It is currently\n// for style integration only\nif(this.c.buttonCreated){inserter=this.c.buttonCreated(config,inserter);}return{conf:config,node:button.get(0),inserter:inserter,buttons:[],inCollection:inCollection,collection:null};},/**\r\n\t * Get the button object from a node (recursive)\r\n\t * @param  {node} node Button node\r\n\t * @param  {array} [buttons] Button array, uses base if not defined\r\n\t * @return {object} Button object\r\n\t * @private\r\n\t */_nodeToButton:function(node,buttons){if(!buttons){buttons=this.s.buttons;}for(var i=0,ien=buttons.length;i<ien;i++){if(buttons[i].node===node){return buttons[i];}if(buttons[i].buttons.length){var ret=this._nodeToButton(node,buttons[i].buttons);if(ret){return ret;}}}},/**\r\n\t * Get container array for a button from a button node (recursive)\r\n\t * @param  {node} node Button node\r\n\t * @param  {array} [buttons] Button array, uses base if not defined\r\n\t * @return {array} Button's host array\r\n\t * @private\r\n\t */_nodeToHost:function(node,buttons){if(!buttons){buttons=this.s.buttons;}for(var i=0,ien=buttons.length;i<ien;i++){if(buttons[i].node===node){return buttons;}if(buttons[i].buttons.length){var ret=this._nodeToHost(node,buttons[i].buttons);if(ret){return ret;}}}},/**\r\n\t * Handle a key press - determine if any button's key configured matches\r\n\t * what was typed and trigger the action if so.\r\n\t * @param  {string} character The character pressed\r\n\t * @param  {object} e Key event that triggered this call\r\n\t * @private\r\n\t */_keypress:function(character,e){// Check if this button press already activated on another instance of Buttons\nif(e._buttonsHandled){return;}var run=function(conf,node){if(!conf.key){return;}if(conf.key===character){e._buttonsHandled=true;$(node).click();}else if($.isPlainObject(conf.key)){if(conf.key.key!==character){return;}if(conf.key.shiftKey&&!e.shiftKey){return;}if(conf.key.altKey&&!e.altKey){return;}if(conf.key.ctrlKey&&!e.ctrlKey){return;}if(conf.key.metaKey&&!e.metaKey){return;}// Made it this far - it is good\ne._buttonsHandled=true;$(node).click();}};var recurse=function(a){for(var i=0,ien=a.length;i<ien;i++){run(a[i].conf,a[i].node);if(a[i].buttons.length){recurse(a[i].buttons);}}};recurse(this.s.buttons);},/**\r\n\t * Remove a key from the key listener for this instance (to be used when a\r\n\t * button is removed)\r\n\t * @param  {object} conf Button configuration\r\n\t * @private\r\n\t */_removeKey:function(conf){if(conf.key){var character=$.isPlainObject(conf.key)?conf.key.key:conf.key;// Remove only one character, as multiple buttons could have the\n// same listening key\nvar a=this.s.listenKeys.split('');var idx=$.inArray(character,a);a.splice(idx,1);this.s.listenKeys=a.join('');}},/**\r\n\t * Resolve a button configuration\r\n\t * @param  {string|function|object} conf Button config to resolve\r\n\t * @return {object} Button configuration\r\n\t * @private\r\n\t */_resolveExtends:function(conf){var dt=this.s.dt;var i,ien;var toConfObject=function(base){var loop=0;// Loop until we have resolved to a button configuration, or an\n// array of button configurations (which will be iterated\n// separately)\nwhile(!$.isPlainObject(base)&&!$.isArray(base)){if(base===undefined){return;}if(typeof base==='function'){base=base(dt,conf);if(!base){return false;}}else if(typeof base==='string'){if(!_dtButtons[base]){throw'Unknown button type: '+base;}base=_dtButtons[base];}loop++;if(loop>30){// Protect against misconfiguration killing the browser\nthrow'Buttons: Too many iterations';}}return $.isArray(base)?base:$.extend({},base);};conf=toConfObject(conf);while(conf&&conf.extend){// Use `toConfObject` in case the button definition being extended\n// is itself a string or a function\nif(!_dtButtons[conf.extend]){throw'Cannot extend unknown button type: '+conf.extend;}var objArray=toConfObject(_dtButtons[conf.extend]);if($.isArray(objArray)){return objArray;}else if(!objArray){// This is a little brutal as it might be possible to have a\n// valid button without the extend, but if there is no extend\n// then the host button would be acting in an undefined state\nreturn false;}// Stash the current class name\nvar originalClassName=objArray.className;conf=$.extend({},objArray,conf);// The extend will have overwritten the original class name if the\n// `conf` object also assigned a class, but we want to concatenate\n// them so they are list that is combined from all extended buttons\nif(originalClassName&&conf.className!==originalClassName){conf.className=originalClassName+' '+conf.className;}// Buttons to be added to a collection  -gives the ability to define\n// if buttons should be added to the start or end of a collection\nvar postfixButtons=conf.postfixButtons;if(postfixButtons){if(!conf.buttons){conf.buttons=[];}for(i=0,ien=postfixButtons.length;i<ien;i++){conf.buttons.push(postfixButtons[i]);}conf.postfixButtons=null;}var prefixButtons=conf.prefixButtons;if(prefixButtons){if(!conf.buttons){conf.buttons=[];}for(i=0,ien=prefixButtons.length;i<ien;i++){conf.buttons.splice(i,0,prefixButtons[i]);}conf.prefixButtons=null;}// Although we want the `conf` object to overwrite almost all of\n// the properties of the object being extended, the `extend`\n// property should come from the object being extended\nconf.extend=objArray.extend;}return conf;},/**\r\n\t * Display (and replace if there is an existing one) a popover attached to a button\r\n\t * @param {string|node} content Content to show\r\n\t * @param {DataTable.Api} hostButton DT API instance of the button\r\n\t * @param {object} inOpts Options (see object below for all options)\r\n\t */_popover:function(content,hostButton,inOpts){var dt=hostButton;var buttonsSettings=this.c;var options=$.extend({align:'button-left',// button-right, dt-container\nautoClose:false,background:true,backgroundClassName:'dt-button-background',contentClassName:buttonsSettings.dom.collection.className,collectionLayout:'',collectionTitle:'',dropup:false,fade:400,rightAlignClassName:'dt-button-right',tag:buttonsSettings.dom.collection.tag},inOpts);var hostNode=hostButton.node();var close=function(){$('.dt-button-collection').stop().fadeOut(options.fade,function(){$(this).detach();});$(dt.buttons('[aria-haspopup=\"true\"][aria-expanded=\"true\"]').nodes()).attr('aria-expanded','false');$('div.dt-button-background').off('click.dtb-collection');Buttons.background(false,options.backgroundClassName,options.fade,hostNode);$('body').off('.dtb-collection');dt.off('buttons-action.b-internal');};if(content===false){close();}var existingExpanded=$(dt.buttons('[aria-haspopup=\"true\"][aria-expanded=\"true\"]').nodes());if(existingExpanded.length){hostNode=existingExpanded.eq(0);close();}var display=$('<div/>').addClass('dt-button-collection').addClass(options.collectionLayout).css('display','none');content=$(content).addClass(options.contentClassName).attr('role','menu').appendTo(display);hostNode.attr('aria-expanded','true');if(hostNode.parents('body')[0]!==document.body){hostNode=document.body.lastChild;}if(options.collectionTitle){display.prepend('<div class=\"dt-button-collection-title\">'+options.collectionTitle+'</div>');}display.insertAfter(hostNode).fadeIn(options.fade);var tableContainer=$(hostButton.table().container());var position=display.css('position');if(options.align==='dt-container'){hostNode=hostNode.parent();display.css('width',tableContainer.width());}if(position==='absolute'){var hostPosition=hostNode.position();display.css({top:hostPosition.top+hostNode.outerHeight(),left:hostPosition.left});// calculate overflow when positioned beneath\nvar collectionHeight=display.outerHeight();var collectionWidth=display.outerWidth();var tableBottom=tableContainer.offset().top+tableContainer.height();var listBottom=hostPosition.top+hostNode.outerHeight()+collectionHeight;var bottomOverflow=listBottom-tableBottom;// calculate overflow when positioned above\nvar listTop=hostPosition.top-collectionHeight;var tableTop=tableContainer.offset().top;var topOverflow=tableTop-listTop;// if bottom overflow is larger, move to the top because it fits better, or if dropup is requested\nvar moveTop=hostPosition.top-collectionHeight-5;if((bottomOverflow>topOverflow||options.dropup)&&-moveTop<tableTop){display.css('top',moveTop);}// Right alignment is enabled on a class, e.g. bootstrap:\n// $.fn.dataTable.Buttons.defaults.dom.collection.className += \" dropdown-menu-right\"; \nif(display.hasClass(options.rightAlignClassName)||options.align==='button-right'){display.css('left',hostPosition.left+hostNode.outerWidth()-collectionWidth);}// Right alignment in table container\nvar listRight=hostPosition.left+collectionWidth;var tableRight=tableContainer.offset().left+tableContainer.width();if(listRight>tableRight){display.css('left',hostPosition.left-(listRight-tableRight));}// Right alignment to window\nvar listOffsetRight=hostNode.offset().left+collectionWidth;if(listOffsetRight>$(window).width()){display.css('left',hostPosition.left-(listOffsetRight-$(window).width()));}}else{// Fix position - centre on screen\nvar top=display.height()/2;if(top>$(window).height()/2){top=$(window).height()/2;}display.css('marginTop',top*-1);}if(options.background){Buttons.background(true,options.backgroundClassName,options.fade,hostNode);}// This is bonkers, but if we don't have a click listener on the\n// background element, iOS Safari will ignore the body click\n// listener below. An empty function here is all that is\n// required to make it work...\n$('div.dt-button-background').on('click.dtb-collection',function(){});$('body').on('click.dtb-collection',function(e){// andSelf is deprecated in jQ1.8, but we want 1.7 compat\nvar back=$.fn.addBack?'addBack':'andSelf';if(!$(e.target).parents()[back]().filter(content).length){close();}}).on('keyup.dtb-collection',function(e){if(e.keyCode===27){close();}});if(options.autoClose){setTimeout(function(){dt.on('buttons-action.b-internal',function(e,btn,dt,node){if(node[0]===hostNode[0]){return;}close();});},0);}}});/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Statics\r\n */ /**\r\n * Show / hide a background layer behind a collection\r\n * @param  {boolean} Flag to indicate if the background should be shown or\r\n *   hidden \r\n * @param  {string} Class to assign to the background\r\n * @static\r\n */Buttons.background=function(show,className,fade,insertPoint){if(fade===undefined){fade=400;}if(!insertPoint){insertPoint=document.body;}if(show){$('<div/>').addClass(className).css('display','none').insertAfter(insertPoint).stop().fadeIn(fade);}else{$('div.'+className).stop().fadeOut(fade,function(){$(this).removeClass(className).remove();});}};/**\r\n * Instance selector - select Buttons instances based on an instance selector\r\n * value from the buttons assigned to a DataTable. This is only useful if\r\n * multiple instances are attached to a DataTable.\r\n * @param  {string|int|array} Instance selector - see `instance-selector`\r\n *   documentation on the DataTables site\r\n * @param  {array} Button instance array that was attached to the DataTables\r\n *   settings object\r\n * @return {array} Buttons instances\r\n * @static\r\n */Buttons.instanceSelector=function(group,buttons){if(group===undefined||group===null){return $.map(buttons,function(v){return v.inst;});}var ret=[];var names=$.map(buttons,function(v){return v.name;});// Flatten the group selector into an array of single options\nvar process=function(input){if($.isArray(input)){for(var i=0,ien=input.length;i<ien;i++){process(input[i]);}return;}if(typeof input==='string'){if(input.indexOf(',')!==-1){// String selector, list of names\nprocess(input.split(','));}else{// String selector individual name\nvar idx=$.inArray($.trim(input),names);if(idx!==-1){ret.push(buttons[idx].inst);}}}else if(typeof input==='number'){// Index selector\nret.push(buttons[input].inst);}};process(group);return ret;};/**\r\n * Button selector - select one or more buttons from a selector input so some\r\n * operation can be performed on them.\r\n * @param  {array} Button instances array that the selector should operate on\r\n * @param  {string|int|node|jQuery|array} Button selector - see\r\n *   `button-selector` documentation on the DataTables site\r\n * @return {array} Array of objects containing `inst` and `idx` properties of\r\n *   the selected buttons so you know which instance each button belongs to.\r\n * @static\r\n */Buttons.buttonSelector=function(insts,selector){var ret=[];var nodeBuilder=function(a,buttons,baseIdx){var button;var idx;for(var i=0,ien=buttons.length;i<ien;i++){button=buttons[i];if(button){idx=baseIdx!==undefined?baseIdx+i:i+'';a.push({node:button.node,name:button.conf.name,idx:idx});if(button.buttons){nodeBuilder(a,button.buttons,idx+'-');}}}};var run=function(selector,inst){var i,ien;var buttons=[];nodeBuilder(buttons,inst.s.buttons);var nodes=$.map(buttons,function(v){return v.node;});if($.isArray(selector)||selector instanceof $){for(i=0,ien=selector.length;i<ien;i++){run(selector[i],inst);}return;}if(selector===null||selector===undefined||selector==='*'){// Select all\nfor(i=0,ien=buttons.length;i<ien;i++){ret.push({inst:inst,node:buttons[i].node});}}else if(typeof selector==='number'){// Main button index selector\nret.push({inst:inst,node:inst.s.buttons[selector].node});}else if(typeof selector==='string'){if(selector.indexOf(',')!==-1){// Split\nvar a=selector.split(',');for(i=0,ien=a.length;i<ien;i++){run($.trim(a[i]),inst);}}else if(selector.match(/^\\d+(\\-\\d+)*$/)){// Sub-button index selector\nvar indexes=$.map(buttons,function(v){return v.idx;});ret.push({inst:inst,node:buttons[$.inArray(selector,indexes)].node});}else if(selector.indexOf(':name')!==-1){// Button name selector\nvar name=selector.replace(':name','');for(i=0,ien=buttons.length;i<ien;i++){if(buttons[i].name===name){ret.push({inst:inst,node:buttons[i].node});}}}else{// jQuery selector on the nodes\n$(nodes).filter(selector).each(function(){ret.push({inst:inst,node:this});});}}else if(typeof selector==='object'&&selector.nodeName){// Node selector\nvar idx=$.inArray(selector,nodes);if(idx!==-1){ret.push({inst:inst,node:nodes[idx]});}}};for(var i=0,ien=insts.length;i<ien;i++){var inst=insts[i];run(selector,inst);}return ret;};/**\r\n * Buttons defaults. For full documentation, please refer to the docs/option\r\n * directory or the DataTables site.\r\n * @type {Object}\r\n * @static\r\n */Buttons.defaults={buttons:['copy','excel','csv','pdf','print'],name:'main',tabIndex:0,dom:{container:{tag:'div',className:'dt-buttons'},collection:{tag:'div',className:''},button:{// Flash buttons will not work with `<button>` in IE - it has to be `<a>`\ntag:'ActiveXObject'in window?'a':'button',className:'dt-button',active:'active',disabled:'disabled'},buttonLiner:{tag:'span',className:''}}};/**\r\n * Version information\r\n * @type {string}\r\n * @static\r\n */Buttons.version='1.6.1';$.extend(_dtButtons,{collection:{text:function(dt){return dt.i18n('buttons.collection','Collection');},className:'buttons-collection',init:function(dt,button,config){button.attr('aria-expanded',false);},action:function(e,dt,button,config){e.stopPropagation();if(config._collection.parents('body').length){this.popover(false,config);}else{this.popover(config._collection,config);}},attr:{'aria-haspopup':true}// Also the popover options, defined in Buttons.popover\n},copy:function(dt,conf){if(_dtButtons.copyHtml5){return'copyHtml5';}if(_dtButtons.copyFlash&&_dtButtons.copyFlash.available(dt,conf)){return'copyFlash';}},csv:function(dt,conf){// Common option that will use the HTML5 or Flash export buttons\nif(_dtButtons.csvHtml5&&_dtButtons.csvHtml5.available(dt,conf)){return'csvHtml5';}if(_dtButtons.csvFlash&&_dtButtons.csvFlash.available(dt,conf)){return'csvFlash';}},excel:function(dt,conf){// Common option that will use the HTML5 or Flash export buttons\nif(_dtButtons.excelHtml5&&_dtButtons.excelHtml5.available(dt,conf)){return'excelHtml5';}if(_dtButtons.excelFlash&&_dtButtons.excelFlash.available(dt,conf)){return'excelFlash';}},pdf:function(dt,conf){// Common option that will use the HTML5 or Flash export buttons\nif(_dtButtons.pdfHtml5&&_dtButtons.pdfHtml5.available(dt,conf)){return'pdfHtml5';}if(_dtButtons.pdfFlash&&_dtButtons.pdfFlash.available(dt,conf)){return'pdfFlash';}},pageLength:function(dt){var lengthMenu=dt.settings()[0].aLengthMenu;var vals=$.isArray(lengthMenu[0])?lengthMenu[0]:lengthMenu;var lang=$.isArray(lengthMenu[0])?lengthMenu[1]:lengthMenu;var text=function(dt){return dt.i18n('buttons.pageLength',{\"-1\":'Show all rows',_:'Show %d rows'},dt.page.len());};return{extend:'collection',text:text,className:'buttons-page-length',autoClose:true,buttons:$.map(vals,function(val,i){return{text:lang[i],className:'button-page-length',action:function(e,dt){dt.page.len(val).draw();},init:function(dt,node,conf){var that=this;var fn=function(){that.active(dt.page.len()===val);};dt.on('length.dt'+conf.namespace,fn);fn();},destroy:function(dt,node,conf){dt.off('length.dt'+conf.namespace);}};}),init:function(dt,node,conf){var that=this;dt.on('length.dt'+conf.namespace,function(){that.text(conf.text);});},destroy:function(dt,node,conf){dt.off('length.dt'+conf.namespace);}};}});/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * DataTables API\r\n *\r\n * For complete documentation, please refer to the docs/api directory or the\r\n * DataTables site\r\n */ // Buttons group and individual button selector\nDataTable.Api.register('buttons()',function(group,selector){// Argument shifting\nif(selector===undefined){selector=group;group=undefined;}this.selector.buttonGroup=group;var res=this.iterator(true,'table',function(ctx){if(ctx._buttons){return Buttons.buttonSelector(Buttons.instanceSelector(group,ctx._buttons),selector);}},true);res._groupSelector=group;return res;});// Individual button selector\nDataTable.Api.register('button()',function(group,selector){// just run buttons() and truncate\nvar buttons=this.buttons(group,selector);if(buttons.length>1){buttons.splice(1,buttons.length);}return buttons;});// Active buttons\nDataTable.Api.registerPlural('buttons().active()','button().active()',function(flag){if(flag===undefined){return this.map(function(set){return set.inst.active(set.node);});}return this.each(function(set){set.inst.active(set.node,flag);});});// Get / set button action\nDataTable.Api.registerPlural('buttons().action()','button().action()',function(action){if(action===undefined){return this.map(function(set){return set.inst.action(set.node);});}return this.each(function(set){set.inst.action(set.node,action);});});// Enable / disable buttons\nDataTable.Api.register(['buttons().enable()','button().enable()'],function(flag){return this.each(function(set){set.inst.enable(set.node,flag);});});// Disable buttons\nDataTable.Api.register(['buttons().disable()','button().disable()'],function(){return this.each(function(set){set.inst.disable(set.node);});});// Get button nodes\nDataTable.Api.registerPlural('buttons().nodes()','button().node()',function(){var jq=$();// jQuery will automatically reduce duplicates to a single entry\n$(this.each(function(set){jq=jq.add(set.inst.node(set.node));}));return jq;});// Get / set button processing state\nDataTable.Api.registerPlural('buttons().processing()','button().processing()',function(flag){if(flag===undefined){return this.map(function(set){return set.inst.processing(set.node);});}return this.each(function(set){set.inst.processing(set.node,flag);});});// Get / set button text (i.e. the button labels)\nDataTable.Api.registerPlural('buttons().text()','button().text()',function(label){if(label===undefined){return this.map(function(set){return set.inst.text(set.node);});}return this.each(function(set){set.inst.text(set.node,label);});});// Trigger a button's action\nDataTable.Api.registerPlural('buttons().trigger()','button().trigger()',function(){return this.each(function(set){set.inst.node(set.node).trigger('click');});});// Button resolver to the popover\nDataTable.Api.register('button().popover()',function(content,options){return this.map(function(set){return set.inst._popover(content,this.button(this[0].node),options);});});// Get the container elements\nDataTable.Api.register('buttons().containers()',function(){var jq=$();var groupSelector=this._groupSelector;// We need to use the group selector directly, since if there are no buttons\n// the result set will be empty\nthis.iterator(true,'table',function(ctx){if(ctx._buttons){var insts=Buttons.instanceSelector(groupSelector,ctx._buttons);for(var i=0,ien=insts.length;i<ien;i++){jq=jq.add(insts[i].container());}}});return jq;});DataTable.Api.register('buttons().container()',function(){// API level of nesting is `buttons()` so we can zip into the containers method\nreturn this.containers().eq(0);});// Add a new button\nDataTable.Api.register('button().add()',function(idx,conf){var ctx=this.context;// Don't use `this` as it could be empty - select the instances directly\nif(ctx.length){var inst=Buttons.instanceSelector(this._groupSelector,ctx[0]._buttons);if(inst.length){inst[0].add(conf,idx);}}return this.button(this._groupSelector,idx);});// Destroy the button sets selected\nDataTable.Api.register('buttons().destroy()',function(){this.pluck('inst').unique().each(function(inst){inst.destroy();});return this;});// Remove a button\nDataTable.Api.registerPlural('buttons().remove()','buttons().remove()',function(){this.each(function(set){set.inst.remove(set.node);});return this;});// Information box that can be used by buttons\nvar _infoTimer;DataTable.Api.register('buttons.info()',function(title,message,time){var that=this;if(title===false){this.off('destroy.btn-info');$('#datatables_buttons_info').fadeOut(function(){$(this).remove();});clearTimeout(_infoTimer);_infoTimer=null;return this;}if(_infoTimer){clearTimeout(_infoTimer);}if($('#datatables_buttons_info').length){$('#datatables_buttons_info').remove();}title=title?'<h2>'+title+'</h2>':'';$('<div id=\"datatables_buttons_info\" class=\"dt-button-info\"/>').html(title).append($('<div/>')[typeof message==='string'?'html':'append'](message)).css('display','none').appendTo('body').fadeIn();if(time!==undefined&&time!==0){_infoTimer=setTimeout(function(){that.buttons.info(false);},time);}this.on('destroy.btn-info',function(){that.buttons.info(false);});return this;});// Get data from the table for export - this is common to a number of plug-in\n// buttons so it is included in the Buttons core library\nDataTable.Api.register('buttons.exportData()',function(options){if(this.context.length){return _exportData(new DataTable.Api(this.context[0]),options);}});// Get information about the export that is common to many of the export data\n// types (DRY)\nDataTable.Api.register('buttons.exportInfo()',function(conf){if(!conf){conf={};}return{filename:_filename(conf),title:_title(conf),messageTop:_message(this,conf.message||conf.messageTop,'top'),messageBottom:_message(this,conf.messageBottom,'bottom')};});/**\r\n * Get the file name for an exported file.\r\n *\r\n * @param {object}\tconfig Button configuration\r\n * @param {boolean} incExtension Include the file name extension\r\n */var _filename=function(config){// Backwards compatibility\nvar filename=config.filename==='*'&&config.title!=='*'&&config.title!==undefined&&config.title!==null&&config.title!==''?config.title:config.filename;if(typeof filename==='function'){filename=filename();}if(filename===undefined||filename===null){return null;}if(filename.indexOf('*')!==-1){filename=$.trim(filename.replace('*',$('head > title').text()));}// Strip characters which the OS will object to\nfilename=filename.replace(/[^a-zA-Z0-9_\\u00A1-\\uFFFF\\.,\\-_ !\\(\\)]/g,\"\");var extension=_stringOrFunction(config.extension);if(!extension){extension='';}return filename+extension;};/**\r\n * Simply utility method to allow parameters to be given as a function\r\n *\r\n * @param {undefined|string|function} option Option\r\n * @return {null|string} Resolved value\r\n */var _stringOrFunction=function(option){if(option===null||option===undefined){return null;}else if(typeof option==='function'){return option();}return option;};/**\r\n * Get the title for an exported file.\r\n *\r\n * @param {object} config\tButton configuration\r\n */var _title=function(config){var title=_stringOrFunction(config.title);return title===null?null:title.indexOf('*')!==-1?title.replace('*',$('head > title').text()||'Exported data'):title;};var _message=function(dt,option,position){var message=_stringOrFunction(option);if(message===null){return null;}var caption=$('caption',dt.table().container()).eq(0);if(message==='*'){var side=caption.css('caption-side');if(side!==position){return null;}return caption.length?caption.text():'';}return message;};var _exportTextarea=$('<textarea/>')[0];var _exportData=function(dt,inOpts){var config=$.extend(true,{},{rows:null,columns:'',modifier:{search:'applied',order:'applied'},orthogonal:'display',stripHtml:true,stripNewlines:true,decodeEntities:true,trim:true,format:{header:function(d){return strip(d);},footer:function(d){return strip(d);},body:function(d){return strip(d);}},customizeData:null},inOpts);var strip=function(str){if(typeof str!=='string'){return str;}// Always remove script tags\nstr=str.replace(/<script\\b[^<]*(?:(?!<\\/script>)<[^<]*)*<\\/script>/gi,'');// Always remove comments\nstr=str.replace(/<!\\-\\-.*?\\-\\->/g,'');if(config.stripHtml){str=str.replace(/<[^>]*>/g,'');}if(config.trim){str=str.replace(/^\\s+|\\s+$/g,'');}if(config.stripNewlines){str=str.replace(/\\n/g,' ');}if(config.decodeEntities){_exportTextarea.innerHTML=str;str=_exportTextarea.value;}return str;};var header=dt.columns(config.columns).indexes().map(function(idx){var el=dt.column(idx).header();return config.format.header(el.innerHTML,idx,el);}).toArray();var footer=dt.table().footer()?dt.columns(config.columns).indexes().map(function(idx){var el=dt.column(idx).footer();return config.format.footer(el?el.innerHTML:'',idx,el);}).toArray():null;// If Select is available on this table, and any rows are selected, limit the export\n// to the selected rows. If no rows are selected, all rows will be exported. Specify\n// a `selected` modifier to control directly.\nvar modifier=$.extend({},config.modifier);if(dt.select&&typeof dt.select.info==='function'&&modifier.selected===undefined){if(dt.rows(config.rows,$.extend({selected:true},modifier)).any()){$.extend(modifier,{selected:true});}}var rowIndexes=dt.rows(config.rows,modifier).indexes().toArray();var selectedCells=dt.cells(rowIndexes,config.columns);var cells=selectedCells.render(config.orthogonal).toArray();var cellNodes=selectedCells.nodes().toArray();var columns=header.length;var rows=columns>0?cells.length/columns:0;var body=[];var cellCounter=0;for(var i=0,ien=rows;i<ien;i++){var row=[columns];for(var j=0;j<columns;j++){row[j]=config.format.body(cells[cellCounter],i,j,cellNodes[cellCounter]);cellCounter++;}body[i]=row;}var data={header:header,footer:footer,body:body};if(config.customizeData){config.customizeData(data);}return data;};/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * DataTables interface\r\n */ // Attach to DataTables objects for global access\n$.fn.dataTable.Buttons=Buttons;$.fn.DataTable.Buttons=Buttons;// DataTables creation - check if the buttons have been defined for this table,\n// they will have been if the `B` option was used in `dom`, otherwise we should\n// create the buttons instance here so they can be inserted into the document\n// using the API. Listen for `init` for compatibility with pre 1.10.10, but to\n// be removed in future.\n$(document).on('init.dt plugin-init.dt',function(e,settings){if(e.namespace!=='dt'){return;}var opts=settings.oInit.buttons||DataTable.defaults.buttons;if(opts&&!settings._buttons){new Buttons(settings,opts).container();}});function _init(settings){var api=new DataTable.Api(settings);var opts=api.init().buttons||DataTable.defaults.buttons;return new Buttons(api,opts).container();}// DataTables `dom` feature option\nDataTable.ext.feature.push({fnInit:_init,cFeature:\"B\"});// DataTables 2 layout feature\nif(DataTable.ext.features){DataTable.ext.features.register('buttons',_init);}return Buttons;});/*! Bootstrap integration for DataTables' Buttons\r\n * ©2016 SpryMedia Ltd - datatables.net/license\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-bs4'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-buttons'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;$.extend(true,DataTable.Buttons.defaults,{dom:{container:{className:'dt-buttons btn-group flex-wrap'},button:{className:'btn btn-secondary'},collection:{tag:'div',className:'dropdown-menu',button:{tag:'a',className:'dt-button dropdown-item',active:'active',disabled:'disabled'}}},buttonCreated:function(config,button){return config.buttons?$('<div class=\"btn-group\"/>').append(button):button;}});DataTable.ext.buttons.collection.className+=' dropdown-toggle';DataTable.ext.buttons.collection.rightAlignClassName='dropdown-menu-right';return DataTable.Buttons;});/*!\r\n * HTML5 export buttons for Buttons and DataTables.\r\n * 2016 SpryMedia Ltd - datatables.net/license\r\n *\r\n * FileSaver.js (1.3.3) - MIT license\r\n * Copyright © 2016 Eli Grey - http://eligrey.com\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-buttons'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,jszip,pdfmake,undefined){'use strict';var DataTable=$.fn.dataTable;// Allow the constructor to pass in JSZip and PDFMake from external requires.\n// Otherwise, use globally defined variables, if they are available.\nfunction _jsZip(){return jszip||window.JSZip;}function _pdfMake(){return pdfmake||window.pdfMake;}DataTable.Buttons.pdfMake=function(_){if(!_){return _pdfMake();}pdfmake=m_ake;};DataTable.Buttons.jszip=function(_){if(!_){return _jsZip();}jszip=_;};/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * FileSaver.js dependency\r\n */ /*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */var _saveAs=function(view){\"use strict\";// IE <10 is explicitly unsupported\nif(typeof view===\"undefined\"||typeof navigator!==\"undefined\"&&/MSIE [1-9]\\./.test(navigator.userAgent)){return;}var doc=view.document// only get URL when necessary in case Blob.js hasn't overridden it yet\n,get_URL=function(){return view.URL||view.webkitURL||view;},save_link=doc.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),can_use_save_link=(\"download\"in save_link),click=function(node){var event=new MouseEvent(\"click\");node.dispatchEvent(event);},is_safari=/constructor/i.test(view.HTMLElement)||view.safari,is_chrome_ios=/CriOS\\/[\\d]+/.test(navigator.userAgent),throw_outside=function(ex){(view.setImmediate||view.setTimeout)(function(){throw ex;},0);},force_saveable_type=\"application/octet-stream\"// the Blob API is fundamentally broken as there is no \"downloadfinished\" event to subscribe to\n,arbitrary_revoke_timeout=1000*40// in ms\n,revoke=function(file){var revoker=function(){if(typeof file===\"string\"){// file is an object URL\nget_URL().revokeObjectURL(file);}else{// file is a File\nfile.remove();}};setTimeout(revoker,arbitrary_revoke_timeout);},dispatch=function(filesaver,event_types,event){event_types=[].concat(event_types);var i=event_types.length;while(i--){var listener=filesaver[\"on\"+event_types[i]];if(typeof listener===\"function\"){try{listener.call(filesaver,event||filesaver);}catch(ex){throw_outside(ex);}}}},auto_bom=function(blob){// prepend BOM for UTF-8 XML and text/* types (including HTML)\n// note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF\nif(/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(blob.type)){return new Blob([String.fromCharCode(0xFEFF),blob],{type:blob.type});}return blob;},FileSaver=function(blob,name,no_auto_bom){if(!no_auto_bom){blob=auto_bom(blob);}// First try a.download, then web filesystem, then object URLs\nvar filesaver=this,type=blob.type,force=type===force_saveable_type,object_url,dispatch_all=function(){dispatch(filesaver,\"writestart progress write writeend\".split(\" \"));}// on any filesys errors revert to saving with object URLs\n,fs_error=function(){if((is_chrome_ios||force&&is_safari)&&view.FileReader){// Safari doesn't allow downloading of blob urls\nvar reader=new FileReader();reader.onloadend=function(){var url=is_chrome_ios?reader.result:reader.result.replace(/^data:[^;]*;/,'data:attachment/file;');var popup=view.open(url,'_blank');if(!popup)view.location.href=url;url=undefined;// release reference before dispatching\nfilesaver.readyState=filesaver.DONE;dispatch_all();};reader.readAsDataURL(blob);filesaver.readyState=filesaver.INIT;return;}// don't create more object URLs than needed\nif(!object_url){object_url=get_URL().createObjectURL(blob);}if(force){view.location.href=object_url;}else{var opened=view.open(object_url,\"_blank\");if(!opened){// Apple does not allow window.open, see https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/WorkingwithWindowsandTabs/WorkingwithWindowsandTabs.html\nview.location.href=object_url;}}filesaver.readyState=filesaver.DONE;dispatch_all();revoke(object_url);};filesaver.readyState=filesaver.INIT;if(can_use_save_link){object_url=get_URL().createObjectURL(blob);setTimeout(function(){save_link.href=object_url;save_link.download=name;click(save_link);dispatch_all();revoke(object_url);filesaver.readyState=filesaver.DONE;});return;}fs_error();},FS_proto=FileSaver.prototype,saveAs=function(blob,name,no_auto_bom){return new FileSaver(blob,name||blob.name||\"download\",no_auto_bom);};// IE 10+ (native saveAs)\nif(typeof navigator!==\"undefined\"&&navigator.msSaveOrOpenBlob){return function(blob,name,no_auto_bom){name=name||blob.name||\"download\";if(!no_auto_bom){blob=auto_bom(blob);}return navigator.msSaveOrOpenBlob(blob,name);};}FS_proto.abort=function(){};FS_proto.readyState=FS_proto.INIT=0;FS_proto.WRITING=1;FS_proto.DONE=2;FS_proto.error=FS_proto.onwritestart=FS_proto.onprogress=FS_proto.onwrite=FS_proto.onabort=FS_proto.onerror=FS_proto.onwriteend=null;return saveAs;}(typeof self!==\"undefined\"&&self||typeof window!==\"undefined\"&&window||this.content);// Expose file saver on the DataTables API. Can't attach to `DataTables.Buttons`\n// since this file can be loaded before Button's core!\nDataTable.fileSave=_saveAs;/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Local (private) functions\r\n */ /**\r\n * Get the sheet name for Excel exports.\r\n *\r\n * @param {object}\tconfig Button configuration\r\n */var _sheetname=function(config){var sheetName='Sheet1';if(config.sheetName){sheetName=config.sheetName.replace(/[\\[\\]\\*\\/\\\\\\?\\:]/g,'');}return sheetName;};/**\r\n * Get the newline character(s)\r\n *\r\n * @param {object}\tconfig Button configuration\r\n * @return {string}\t\t\t\tNewline character\r\n */var _newLine=function(config){return config.newline?config.newline:navigator.userAgent.match(/Windows/)?'\\r\\n':'\\n';};/**\r\n * Combine the data from the `buttons.exportData` method into a string that\r\n * will be used in the export file.\r\n *\r\n * @param\t{DataTable.Api} dt\t\t DataTables API instance\r\n * @param\t{object}\t\t\t\tconfig Button configuration\r\n * @return {object}\t\t\t\t\t\t\t The data to export\r\n */var _exportData=function(dt,config){var newLine=_newLine(config);var data=dt.buttons.exportData(config.exportOptions);var boundary=config.fieldBoundary;var separator=config.fieldSeparator;var reBoundary=new RegExp(boundary,'g');var escapeChar=config.escapeChar!==undefined?config.escapeChar:'\\\\';var join=function(a){var s='';// If there is a field boundary, then we might need to escape it in\n// the source data\nfor(var i=0,ien=a.length;i<ien;i++){if(i>0){s+=separator;}s+=boundary?boundary+(''+a[i]).replace(reBoundary,escapeChar+boundary)+boundary:a[i];}return s;};var header=config.header?join(data.header)+newLine:'';var footer=config.footer&&data.footer?newLine+join(data.footer):'';var body=[];for(var i=0,ien=data.body.length;i<ien;i++){body.push(join(data.body[i]));}return{str:header+body.join(newLine)+footer,rows:body.length};};/**\r\n * Older versions of Safari (prior to tech preview 18) don't support the\r\n * download option required.\r\n *\r\n * @return {Boolean} `true` if old Safari\r\n */var _isDuffSafari=function(){var safari=navigator.userAgent.indexOf('Safari')!==-1&&navigator.userAgent.indexOf('Chrome')===-1&&navigator.userAgent.indexOf('Opera')===-1;if(!safari){return false;}var version=navigator.userAgent.match(/AppleWebKit\\/(\\d+\\.\\d+)/);if(version&&version.length>1&&version[1]*1<603.1){return true;}return false;};/**\r\n * Convert from numeric position to letter for column names in Excel\r\n * @param  {int} n Column number\r\n * @return {string} Column letter(s) name\r\n */function createCellPos(n){var ordA='A'.charCodeAt(0);var ordZ='Z'.charCodeAt(0);var len=ordZ-ordA+1;var s=\"\";while(n>=0){s=String.fromCharCode(n%len+ordA)+s;n=Math.floor(n/len)-1;}return s;}try{var _serialiser=new XMLSerializer();var _ieExcel;}catch(t){}/**\r\n * Recursively add XML files from an object's structure to a ZIP file. This\r\n * allows the XSLX file to be easily defined with an object's structure matching\r\n * the files structure.\r\n *\r\n * @param {JSZip} zip ZIP package\r\n * @param {object} obj Object to add (recursive)\r\n */function _addToZip(zip,obj){if(_ieExcel===undefined){// Detect if we are dealing with IE's _awful_ serialiser by seeing if it\n// drop attributes\n_ieExcel=_serialiser.serializeToString($.parseXML(excelStrings['xl/worksheets/sheet1.xml'])).indexOf('xmlns:r')===-1;}$.each(obj,function(name,val){if($.isPlainObject(val)){var newDir=zip.folder(name);_addToZip(newDir,val);}else{if(_ieExcel){// IE's XML serialiser will drop some name space attributes from\n// from the root node, so we need to save them. Do this by\n// replacing the namespace nodes with a regular attribute that\n// we convert back when serialised. Edge does not have this\n// issue\nvar worksheet=val.childNodes[0];var i,ien;var attrs=[];for(i=worksheet.attributes.length-1;i>=0;i--){var attrName=worksheet.attributes[i].nodeName;var attrValue=worksheet.attributes[i].nodeValue;if(attrName.indexOf(':')!==-1){attrs.push({name:attrName,value:attrValue});worksheet.removeAttribute(attrName);}}for(i=0,ien=attrs.length;i<ien;i++){var attr=val.createAttribute(attrs[i].name.replace(':','_dt_b_namespace_token_'));attr.value=attrs[i].value;worksheet.setAttributeNode(attr);}}var str=_serialiser.serializeToString(val);// Fix IE's XML\nif(_ieExcel){// IE doesn't include the XML declaration\nif(str.indexOf('<?xml')===-1){str='<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+str;}// Return namespace attributes to being as such\nstr=str.replace(/_dt_b_namespace_token_/g,':');// Remove testing name space that IE puts into the space preserve attr\nstr=str.replace(/xmlns:NS[\\d]+=\"\" NS[\\d]+:/g,'');}// Safari, IE and Edge will put empty name space attributes onto\n// various elements making them useless. This strips them out\nstr=str.replace(/<([^<>]*?) xmlns=\"\"([^<>]*?)>/g,'<$1 $2>');zip.file(name,str);}});}/**\r\n * Create an XML node and add any children, attributes, etc without needing to\r\n * be verbose in the DOM.\r\n *\r\n * @param  {object} doc      XML document\r\n * @param  {string} nodeName Node name\r\n * @param  {object} opts     Options - can be `attr` (attributes), `children`\r\n *   (child nodes) and `text` (text content)\r\n * @return {node}            Created node\r\n */function _createNode(doc,nodeName,opts){var tempNode=doc.createElement(nodeName);if(opts){if(opts.attr){$(tempNode).attr(opts.attr);}if(opts.children){$.each(opts.children,function(key,value){tempNode.appendChild(value);});}if(opts.text!==null&&opts.text!==undefined){tempNode.appendChild(doc.createTextNode(opts.text));}}return tempNode;}/**\r\n * Get the width for an Excel column based on the contents of that column\r\n * @param  {object} data Data for export\r\n * @param  {int}    col  Column index\r\n * @return {int}         Column width\r\n */function _excelColWidth(data,col){var max=data.header[col].length;var len,lineSplit,str;if(data.footer&&data.footer[col].length>max){max=data.footer[col].length;}for(var i=0,ien=data.body.length;i<ien;i++){var point=data.body[i][col];str=point!==null&&point!==undefined?point.toString():'';// If there is a newline character, workout the width of the column\n// based on the longest line in the string\nif(str.indexOf('\\n')!==-1){lineSplit=str.split('\\n');lineSplit.sort(function(a,b){return b.length-a.length;});len=lineSplit[0].length;}else{len=str.length;}if(len>max){max=len;}// Max width rather than having potentially massive column widths\nif(max>40){return 54;// 40 * 1.35\n}}max*=1.35;// And a min width\nreturn max>6?max:6;}// Excel - Pre-defined strings to build a basic XLSX file\nvar excelStrings={\"_rels/.rels\":'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+'<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">'+'<Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\" Target=\"xl/workbook.xml\"/>'+'</Relationships>',\"xl/_rels/workbook.xml.rels\":'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+'<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">'+'<Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet\" Target=\"worksheets/sheet1.xml\"/>'+'<Relationship Id=\"rId2\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles\" Target=\"styles.xml\"/>'+'</Relationships>',\"[Content_Types].xml\":'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+'<Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\">'+'<Default Extension=\"xml\" ContentType=\"application/xml\" />'+'<Default Extension=\"rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\" />'+'<Default Extension=\"jpeg\" ContentType=\"image/jpeg\" />'+'<Override PartName=\"/xl/workbook.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml\" />'+'<Override PartName=\"/xl/worksheets/sheet1.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml\" />'+'<Override PartName=\"/xl/styles.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml\" />'+'</Types>',\"xl/workbook.xml\":'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+'<workbook xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\">'+'<fileVersion appName=\"xl\" lastEdited=\"5\" lowestEdited=\"5\" rupBuild=\"24816\"/>'+'<workbookPr showInkAnnotation=\"0\" autoCompressPictures=\"0\"/>'+'<bookViews>'+'<workbookView xWindow=\"0\" yWindow=\"0\" windowWidth=\"25600\" windowHeight=\"19020\" tabRatio=\"500\"/>'+'</bookViews>'+'<sheets>'+'<sheet name=\"Sheet1\" sheetId=\"1\" r:id=\"rId1\"/>'+'</sheets>'+'<definedNames/>'+'</workbook>',\"xl/worksheets/sheet1.xml\":'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+'<worksheet xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\" mc:Ignorable=\"x14ac\" xmlns:x14ac=\"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac\">'+'<sheetData/>'+'<mergeCells count=\"0\"/>'+'</worksheet>',\"xl/styles.xml\":'<?xml version=\"1.0\" encoding=\"UTF-8\"?>'+'<styleSheet xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\" xmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\" mc:Ignorable=\"x14ac\" xmlns:x14ac=\"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac\">'+'<numFmts count=\"6\">'+'<numFmt numFmtId=\"164\" formatCode=\"#,##0.00_-\\ [$$-45C]\"/>'+'<numFmt numFmtId=\"165\" formatCode=\"&quot;£&quot;#,##0.00\"/>'+'<numFmt numFmtId=\"166\" formatCode=\"[$€-2]\\ #,##0.00\"/>'+'<numFmt numFmtId=\"167\" formatCode=\"0.0%\"/>'+'<numFmt numFmtId=\"168\" formatCode=\"#,##0;(#,##0)\"/>'+'<numFmt numFmtId=\"169\" formatCode=\"#,##0.00;(#,##0.00)\"/>'+'</numFmts>'+'<fonts count=\"5\" x14ac:knownFonts=\"1\">'+'<font>'+'<sz val=\"11\" />'+'<name val=\"Calibri\" />'+'</font>'+'<font>'+'<sz val=\"11\" />'+'<name val=\"Calibri\" />'+'<color rgb=\"FFFFFFFF\" />'+'</font>'+'<font>'+'<sz val=\"11\" />'+'<name val=\"Calibri\" />'+'<b />'+'</font>'+'<font>'+'<sz val=\"11\" />'+'<name val=\"Calibri\" />'+'<i />'+'</font>'+'<font>'+'<sz val=\"11\" />'+'<name val=\"Calibri\" />'+'<u />'+'</font>'+'</fonts>'+'<fills count=\"6\">'+'<fill>'+'<patternFill patternType=\"none\" />'+'</fill>'+'<fill>'+// Excel appears to use this as a dotted background regardless of values but\n'<patternFill patternType=\"none\" />'+// to be valid to the schema, use a patternFill\n'</fill>'+'<fill>'+'<patternFill patternType=\"solid\">'+'<fgColor rgb=\"FFD9D9D9\" />'+'<bgColor indexed=\"64\" />'+'</patternFill>'+'</fill>'+'<fill>'+'<patternFill patternType=\"solid\">'+'<fgColor rgb=\"FFD99795\" />'+'<bgColor indexed=\"64\" />'+'</patternFill>'+'</fill>'+'<fill>'+'<patternFill patternType=\"solid\">'+'<fgColor rgb=\"ffc6efce\" />'+'<bgColor indexed=\"64\" />'+'</patternFill>'+'</fill>'+'<fill>'+'<patternFill patternType=\"solid\">'+'<fgColor rgb=\"ffc6cfef\" />'+'<bgColor indexed=\"64\" />'+'</patternFill>'+'</fill>'+'</fills>'+'<borders count=\"2\">'+'<border>'+'<left />'+'<right />'+'<top />'+'<bottom />'+'<diagonal />'+'</border>'+'<border diagonalUp=\"false\" diagonalDown=\"false\">'+'<left style=\"thin\">'+'<color auto=\"1\" />'+'</left>'+'<right style=\"thin\">'+'<color auto=\"1\" />'+'</right>'+'<top style=\"thin\">'+'<color auto=\"1\" />'+'</top>'+'<bottom style=\"thin\">'+'<color auto=\"1\" />'+'</bottom>'+'<diagonal />'+'</border>'+'</borders>'+'<cellStyleXfs count=\"1\">'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" />'+'</cellStyleXfs>'+'<cellXfs count=\"67\">'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"2\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"2\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"2\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"2\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"2\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"3\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"3\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"3\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"3\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"3\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"4\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"4\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"4\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"4\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"4\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"5\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"5\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"5\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"5\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"5\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"0\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"0\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"0\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"0\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"2\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"2\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"2\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"2\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"2\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"3\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"3\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"3\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"3\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"3\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"4\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"4\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"4\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"4\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"4\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"5\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"5\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"5\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"5\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"5\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+'<alignment horizontal=\"left\"/>'+'</xf>'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+'<alignment horizontal=\"center\"/>'+'</xf>'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+'<alignment horizontal=\"right\"/>'+'</xf>'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+'<alignment horizontal=\"fill\"/>'+'</xf>'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+'<alignment textRotation=\"90\"/>'+'</xf>'+'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+'<alignment wrapText=\"1\"/>'+'</xf>'+'<xf numFmtId=\"9\"   fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+'<xf numFmtId=\"164\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+'<xf numFmtId=\"165\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+'<xf numFmtId=\"166\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+'<xf numFmtId=\"167\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+'<xf numFmtId=\"168\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+'<xf numFmtId=\"169\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+'<xf numFmtId=\"3\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+'<xf numFmtId=\"4\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+'<xf numFmtId=\"1\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+'<xf numFmtId=\"2\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+'</cellXfs>'+'<cellStyles count=\"1\">'+'<cellStyle name=\"Normal\" xfId=\"0\" builtinId=\"0\" />'+'</cellStyles>'+'<dxfs count=\"0\" />'+'<tableStyles count=\"0\" defaultTableStyle=\"TableStyleMedium9\" defaultPivotStyle=\"PivotStyleMedium4\" />'+'</styleSheet>'};// Note we could use 3 `for` loops for the styles, but when gzipped there is\n// virtually no difference in size, since the above can be easily compressed\n// Pattern matching for special number formats. Perhaps this should be exposed\n// via an API in future?\n// Ref: section 3.8.30 - built in formatters in open spreadsheet\n//   https://www.ecma-international.org/news/TC45_current_work/Office%20Open%20XML%20Part%204%20-%20Markup%20Language%20Reference.pdf\nvar _excelSpecials=[{match:/^\\-?\\d+\\.\\d%$/,style:60,fmt:function(d){return d/100;}},// Precent with d.p.\n{match:/^\\-?\\d+\\.?\\d*%$/,style:56,fmt:function(d){return d/100;}},// Percent\n{match:/^\\-?\\$[\\d,]+.?\\d*$/,style:57},// Dollars\n{match:/^\\-?£[\\d,]+.?\\d*$/,style:58},// Pounds\n{match:/^\\-?€[\\d,]+.?\\d*$/,style:59},// Euros\n{match:/^\\-?\\d+$/,style:65},// Numbers without thousand separators\n{match:/^\\-?\\d+\\.\\d{2}$/,style:66},// Numbers 2 d.p. without thousands separators\n{match:/^\\([\\d,]+\\)$/,style:61,fmt:function(d){return-1*d.replace(/[\\(\\)]/g,'');}},// Negative numbers indicated by brackets\n{match:/^\\([\\d,]+\\.\\d{2}\\)$/,style:62,fmt:function(d){return-1*d.replace(/[\\(\\)]/g,'');}},// Negative numbers indicated by brackets - 2d.p.\n{match:/^\\-?[\\d,]+$/,style:63},// Numbers with thousand separators\n{match:/^\\-?[\\d,]+\\.\\d{2}$/,style:64}// Numbers with 2 d.p. and thousands separators\n];/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Buttons\r\n */ //\n// Copy to clipboard\n//\nDataTable.ext.buttons.copyHtml5={className:'buttons-copy buttons-html5',text:function(dt){return dt.i18n('buttons.copy','Copy');},action:function(e,dt,button,config){this.processing(true);var that=this;var exportData=_exportData(dt,config);var info=dt.buttons.exportInfo(config);var newline=_newLine(config);var output=exportData.str;var hiddenDiv=$('<div/>').css({height:1,width:1,overflow:'hidden',position:'fixed',top:0,left:0});if(info.title){output=info.title+newline+newline+output;}if(info.messageTop){output=info.messageTop+newline+newline+output;}if(info.messageBottom){output=output+newline+newline+info.messageBottom;}if(config.customize){output=config.customize(output,config,dt);}var textarea=$('<textarea readonly/>').val(output).appendTo(hiddenDiv);// For browsers that support the copy execCommand, try to use it\nif(document.queryCommandSupported('copy')){hiddenDiv.appendTo(dt.table().container());textarea[0].focus();textarea[0].select();try{var successful=document.execCommand('copy');hiddenDiv.remove();if(successful){dt.buttons.info(dt.i18n('buttons.copyTitle','Copy to clipboard'),dt.i18n('buttons.copySuccess',{1:'Copied one row to clipboard',_:'Copied %d rows to clipboard'},exportData.rows),2000);this.processing(false);return;}}catch(t){}}// Otherwise we show the text box and instruct the user to use it\nvar message=$('<span>'+dt.i18n('buttons.copyKeys','Press <i>ctrl</i> or <i>\\u2318</i> + <i>C</i> to copy the table data<br>to your system clipboard.<br><br>'+'To cancel, click this message or press escape.')+'</span>').append(hiddenDiv);dt.buttons.info(dt.i18n('buttons.copyTitle','Copy to clipboard'),message,0);// Select the text so when the user activates their system clipboard\n// it will copy that text\ntextarea[0].focus();textarea[0].select();// Event to hide the message when the user is done\nvar container=$(message).closest('.dt-button-info');var close=function(){container.off('click.buttons-copy');$(document).off('.buttons-copy');dt.buttons.info(false);};container.on('click.buttons-copy',close);$(document).on('keydown.buttons-copy',function(e){if(e.keyCode===27){// esc\nclose();that.processing(false);}}).on('copy.buttons-copy cut.buttons-copy',function(){close();that.processing(false);});},exportOptions:{},fieldSeparator:'\\t',fieldBoundary:'',header:true,footer:false,title:'*',messageTop:'*',messageBottom:'*'};//\n// CSV export\n//\nDataTable.ext.buttons.csvHtml5={bom:false,className:'buttons-csv buttons-html5',available:function(){return window.FileReader!==undefined&&window.Blob;},text:function(dt){return dt.i18n('buttons.csv','CSV');},action:function(e,dt,button,config){this.processing(true);// Set the text\nvar output=_exportData(dt,config).str;var info=dt.buttons.exportInfo(config);var charset=config.charset;if(config.customize){output=config.customize(output,config,dt);}if(charset!==false){if(!charset){charset=document.characterSet||document.charset;}if(charset){charset=';charset='+charset;}}else{charset='';}if(config.bom){output='\\ufeff'+output;}_saveAs(new Blob([output],{type:'text/csv'+charset}),info.filename,true);this.processing(false);},filename:'*',extension:'.csv',exportOptions:{},fieldSeparator:',',fieldBoundary:'\"',escapeChar:'\"',charset:null,header:true,footer:false};//\n// Excel (xlsx) export\n//\nDataTable.ext.buttons.excelHtml5={className:'buttons-excel buttons-html5',available:function(){return window.FileReader!==undefined&&_jsZip()!==undefined&&!_isDuffSafari()&&_serialiser;},text:function(dt){return dt.i18n('buttons.excel','Excel');},action:function(e,dt,button,config){this.processing(true);var that=this;var rowPos=0;var dataStartRow,dataEndRow;var getXml=function(type){var str=excelStrings[type];//str = str.replace( /xmlns:/g, 'xmlns_' ).replace( /mc:/g, 'mc_' );\nreturn $.parseXML(str);};var rels=getXml('xl/worksheets/sheet1.xml');var relsGet=rels.getElementsByTagName(\"sheetData\")[0];var xlsx={_rels:{\".rels\":getXml('_rels/.rels')},xl:{_rels:{\"workbook.xml.rels\":getXml('xl/_rels/workbook.xml.rels')},\"workbook.xml\":getXml('xl/workbook.xml'),\"styles.xml\":getXml('xl/styles.xml'),\"worksheets\":{\"sheet1.xml\":rels}},\"[Content_Types].xml\":getXml('[Content_Types].xml')};var data=dt.buttons.exportData(config.exportOptions);var currentRow,rowNode;var addRow=function(row){currentRow=rowPos+1;rowNode=_createNode(rels,\"row\",{attr:{r:currentRow}});for(var i=0,ien=row.length;i<ien;i++){// Concat both the Cell Columns as a letter and the Row of the cell.\nvar cellId=createCellPos(i)+''+currentRow;var cell=null;// For null, undefined of blank cell, continue so it doesn't create the _createNode\nif(row[i]===null||row[i]===undefined||row[i]===''){if(config.createEmptyCells===true){row[i]='';}else{continue;}}var originalContent=row[i];row[i]=$.trim(row[i]);// Special number formatting options\nfor(var j=0,jen=_excelSpecials.length;j<jen;j++){var special=_excelSpecials[j];// TODO Need to provide the ability for the specials to say\n// if they are returning a string, since at the moment it is\n// assumed to be a number\nif(row[i].match&&!row[i].match(/^0\\d+/)&&row[i].match(special.match)){var val=row[i].replace(/[^\\d\\.\\-]/g,'');if(special.fmt){val=special.fmt(val);}cell=_createNode(rels,'c',{attr:{r:cellId,s:special.style},children:[_createNode(rels,'v',{text:val})]});break;}}if(!cell){if(typeof row[i]==='number'||row[i].match&&row[i].match(/^-?\\d+(\\.\\d+)?$/)&&!row[i].match(/^0\\d+/)){// Detect numbers - don't match numbers with leading zeros\n// or a negative anywhere but the start\ncell=_createNode(rels,'c',{attr:{t:'n',r:cellId},children:[_createNode(rels,'v',{text:row[i]})]});}else{// String output - replace non standard characters for text output\nvar text=!originalContent.replace?originalContent:originalContent.replace(/[\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F-\\x9F]/g,'');cell=_createNode(rels,'c',{attr:{t:'inlineStr',r:cellId},children:{row:_createNode(rels,'is',{children:{row:_createNode(rels,'t',{text:text,attr:{'xml:space':'preserve'}})}})}});}}rowNode.appendChild(cell);}relsGet.appendChild(rowNode);rowPos++;};if(config.customizeData){config.customizeData(data);}var mergeCells=function(row,colspan){var mergeCells=$('mergeCells',rels);mergeCells[0].appendChild(_createNode(rels,'mergeCell',{attr:{ref:'A'+row+':'+createCellPos(colspan)+row}}));mergeCells.attr('count',parseFloat(mergeCells.attr('count'))+1);$('row:eq('+(row-1)+') c',rels).attr('s','51');// centre\n};// Title and top messages\nvar exportInfo=dt.buttons.exportInfo(config);if(exportInfo.title){addRow([exportInfo.title],rowPos);mergeCells(rowPos,data.header.length-1);}if(exportInfo.messageTop){addRow([exportInfo.messageTop],rowPos);mergeCells(rowPos,data.header.length-1);}// Table itself\nif(config.header){addRow(data.header,rowPos);$('row:last c',rels).attr('s','2');// bold\n}dataStartRow=rowPos;for(var n=0,ie=data.body.length;n<ie;n++){addRow(data.body[n],rowPos);}dataEndRow=rowPos;if(config.footer&&data.footer){addRow(data.footer,rowPos);$('row:last c',rels).attr('s','2');// bold\n}// Below the table\nif(exportInfo.messageBottom){addRow([exportInfo.messageBottom],rowPos);mergeCells(rowPos,data.header.length-1);}// Set column widths\nvar cols=_createNode(rels,'cols');$('worksheet',rels).prepend(cols);for(var i=0,ien=data.header.length;i<ien;i++){cols.appendChild(_createNode(rels,'col',{attr:{min:i+1,max:i+1,width:_excelColWidth(data,i),customWidth:1}}));}// Workbook modifications\nvar workbook=xlsx.xl['workbook.xml'];$('sheets sheet',workbook).attr('name',_sheetname(config));// Auto filter for columns\nif(config.autoFilter){$('mergeCells',rels).before(_createNode(rels,'autoFilter',{attr:{ref:'A'+dataStartRow+':'+createCellPos(data.header.length-1)+dataEndRow}}));$('definedNames',workbook).append(_createNode(workbook,'definedName',{attr:{name:'_xlnm._FilterDatabase',localSheetId:'0',hidden:1},text:_sheetname(config)+'!$A$'+dataStartRow+':'+createCellPos(data.header.length-1)+dataEndRow}));}// Let the developer customise the document if they want to\nif(config.customize){config.customize(xlsx,config,dt);}// Excel doesn't like an empty mergeCells tag\nif($('mergeCells',rels).children().length===0){$('mergeCells',rels).remove();}var jszip=_jsZip();var zip=new jszip();var zipConfig={type:'blob',mimeType:'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'};_addToZip(zip,xlsx);if(zip.generateAsync){// JSZip 3+\nzip.generateAsync(zipConfig).then(function(blob){_saveAs(blob,exportInfo.filename);that.processing(false);});}else{// JSZip 2.5\n_saveAs(zip.generate(zipConfig),exportInfo.filename);this.processing(false);}},filename:'*',extension:'.xlsx',exportOptions:{},header:true,footer:false,title:'*',messageTop:'*',messageBottom:'*',createEmptyCells:false,autoFilter:false,sheetName:''};//\n// PDF export - using pdfMake - http://pdfmake.org\n//\nDataTable.ext.buttons.pdfHtml5={className:'buttons-pdf buttons-html5',available:function(){return window.FileReader!==undefined&&_pdfMake();},text:function(dt){return dt.i18n('buttons.pdf','PDF');},action:function(e,dt,button,config){this.processing(true);var that=this;var data=dt.buttons.exportData(config.exportOptions);var info=dt.buttons.exportInfo(config);var rows=[];if(config.header){rows.push($.map(data.header,function(d){return{text:typeof d==='string'?d:d+'',style:'tableHeader'};}));}for(var i=0,ien=data.body.length;i<ien;i++){rows.push($.map(data.body[i],function(d){if(d===null||d===undefined){d='';}return{text:typeof d==='string'?d:d+'',style:i%2?'tableBodyEven':'tableBodyOdd'};}));}if(config.footer&&data.footer){rows.push($.map(data.footer,function(d){return{text:typeof d==='string'?d:d+'',style:'tableFooter'};}));}var doc={pageSize:config.pageSize,pageOrientation:config.orientation,content:[{table:{headerRows:1,body:rows},layout:'noBorders'}],styles:{tableHeader:{bold:true,fontSize:11,color:'white',fillColor:'#2d4154',alignment:'center'},tableBodyEven:{},tableBodyOdd:{fillColor:'#f3f3f3'},tableFooter:{bold:true,fontSize:11,color:'white',fillColor:'#2d4154'},title:{alignment:'center',fontSize:15},message:{}},defaultStyle:{fontSize:10}};if(info.messageTop){doc.content.unshift({text:info.messageTop,style:'message',margin:[0,0,0,12]});}if(info.messageBottom){doc.content.push({text:info.messageBottom,style:'message',margin:[0,0,0,12]});}if(info.title){doc.content.unshift({text:info.title,style:'title',margin:[0,0,0,12]});}if(config.customize){config.customize(doc,config,dt);}var pdf=_pdfMake().createPdf(doc);if(config.download==='open'&&!_isDuffSafari()){pdf.open();}else{pdf.download(info.filename);}this.processing(false);},title:'*',filename:'*',extension:'.pdf',exportOptions:{},orientation:'portrait',pageSize:'A4',header:true,footer:false,messageTop:'*',messageBottom:'*',customize:null,download:'download'};return DataTable.Buttons;});/*!\r\n * Print button for Buttons and DataTables.\r\n * 2016 SpryMedia Ltd - datatables.net/license\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-buttons'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;var _link=document.createElement('a');/**\r\n * Clone link and style tags, taking into account the need to change the source\r\n * path.\r\n *\r\n * @param  {node}     el Element to convert\r\n */var _styleToAbs=function(el){var url;var clone=$(el).clone()[0];var linkHost;if(clone.nodeName.toLowerCase()==='link'){clone.href=_relToAbs(clone.href);}return clone.outerHTML;};/**\r\n * Convert a URL from a relative to an absolute address so it will work\r\n * correctly in the popup window which has no base URL.\r\n *\r\n * @param  {string} href URL\r\n */var _relToAbs=function(href){// Assign to a link on the original page so the browser will do all the\n// hard work of figuring out where the file actually is\n_link.href=href;var linkHost=_link.host;// IE doesn't have a trailing slash on the host\n// Chrome has it on the pathname\nif(linkHost.indexOf('/')===-1&&_link.pathname.indexOf('/')!==0){linkHost+='/';}return _link.protocol+\"//\"+linkHost+_link.pathname+_link.search;};DataTable.ext.buttons.print={className:'buttons-print',text:function(dt){return dt.i18n('buttons.print','Print');},action:function(e,dt,button,config){var data=dt.buttons.exportData($.extend({decodeEntities:false},config.exportOptions)// XSS protection\n);var exportInfo=dt.buttons.exportInfo(config);var columnClasses=dt.columns(config.exportOptions.columns).flatten().map(function(idx){return dt.settings()[0].aoColumns[dt.column(idx).index()].sClass;}).toArray();var addRow=function(d,tag){var str='<tr>';for(var i=0,ien=d.length;i<ien;i++){// null and undefined aren't useful in the print output\nvar dataOut=d[i]===null||d[i]===undefined?'':d[i];var classAttr=columnClasses[i]?'class=\"'+columnClasses[i]+'\"':'';str+='<'+tag+' '+classAttr+'>'+dataOut+'</'+tag+'>';}return str+'</tr>';};// Construct a table for printing\nvar html='<table class=\"'+dt.table().node().className+'\">';if(config.header){html+='<thead>'+addRow(data.header,'th')+'</thead>';}html+='<tbody>';for(var i=0,ien=data.body.length;i<ien;i++){html+=addRow(data.body[i],'td');}html+='</tbody>';if(config.footer&&data.footer){html+='<tfoot>'+addRow(data.footer,'th')+'</tfoot>';}html+='</table>';// Open a new window for the printable table\nvar win=window.open('','');win.document.close();// Inject the title and also a copy of the style and link tags from this\n// document so the table can retain its base styling. Note that we have\n// to use string manipulation as IE won't allow elements to be created\n// in the host document and then appended to the new window.\nvar head='<title>'+exportInfo.title+'</title>';$('style, link').each(function(){head+=_styleToAbs(this);});try{win.document.head.innerHTML=head;// Work around for Edge\n}catch(e){$(win.document.head).html(head);// Old IE\n}// Inject the table and other surrounding information\nwin.document.body.innerHTML='<h1>'+exportInfo.title+'</h1>'+'<div>'+(exportInfo.messageTop||'')+'</div>'+html+'<div>'+(exportInfo.messageBottom||'')+'</div>';$(win.document.body).addClass('dt-print-view');$('img',win.document.body).each(function(i,img){img.setAttribute('src',_relToAbs(img.getAttribute('src')));});if(config.customize){config.customize(win,config,dt);}// Allow stylesheets time to load\nvar autoPrint=function(){if(config.autoPrint){win.print();// blocking - so close will not\nwin.close();// execute until this is done\n}};if(navigator.userAgent.match(/Trident\\/\\d.\\d/)){// IE needs to call this without a setTimeout\nautoPrint();}else{win.setTimeout(autoPrint,1000);}},title:'*',messageTop:'*',messageBottom:'*',exportOptions:{},header:true,footer:false,autoPrint:true,customize:null};return DataTable.Buttons;});/*!\r\n * Column visibility buttons for Buttons and DataTables.\r\n * 2016 SpryMedia Ltd - datatables.net/license\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-buttons'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;$.extend(DataTable.ext.buttons,{// A collection of column visibility buttons\ncolvis:function(dt,conf){return{extend:'collection',text:function(dt){return dt.i18n('buttons.colvis','Column visibility');},className:'buttons-colvis',buttons:[{extend:'columnsToggle',columns:conf.columns,columnText:conf.columnText}]};},// Selected columns with individual buttons - toggle column visibility\ncolumnsToggle:function(dt,conf){var columns=dt.columns(conf.columns).indexes().map(function(idx){return{extend:'columnToggle',columns:idx,columnText:conf.columnText};}).toArray();return columns;},// Single button to toggle column visibility\ncolumnToggle:function(dt,conf){return{extend:'columnVisibility',columns:conf.columns,columnText:conf.columnText};},// Selected columns with individual buttons - set column visibility\ncolumnsVisibility:function(dt,conf){var columns=dt.columns(conf.columns).indexes().map(function(idx){return{extend:'columnVisibility',columns:idx,visibility:conf.visibility,columnText:conf.columnText};}).toArray();return columns;},// Single button to set column visibility\ncolumnVisibility:{columns:undefined,// column selector\ntext:function(dt,button,conf){return conf._columnText(dt,conf);},className:'buttons-columnVisibility',action:function(e,dt,button,conf){var col=dt.columns(conf.columns);var curr=col.visible();col.visible(conf.visibility!==undefined?conf.visibility:!(curr.length?curr[0]:false));},init:function(dt,button,conf){var that=this;button.attr('data-cv-idx',conf.columns);dt.on('column-visibility.dt'+conf.namespace,function(e,settings){if(!settings.bDestroying&&settings.nTable==dt.settings()[0].nTable){that.active(dt.column(conf.columns).visible());}}).on('column-reorder.dt'+conf.namespace,function(e,settings,details){if(dt.columns(conf.columns).count()!==1){return;}// This button controls the same column index but the text for the column has\n// changed\nbutton.text(conf._columnText(dt,conf));// Since its a different column, we need to check its visibility\nthat.active(dt.column(conf.columns).visible());});this.active(dt.column(conf.columns).visible());},destroy:function(dt,button,conf){dt.off('column-visibility.dt'+conf.namespace).off('column-reorder.dt'+conf.namespace);},_columnText:function(dt,conf){// Use DataTables' internal data structure until this is presented\n// is a public API. The other option is to use\n// `$( column(col).node() ).text()` but the node might not have been\n// populated when Buttons is constructed.\nvar idx=dt.column(conf.columns).index();var title=dt.settings()[0].aoColumns[idx].sTitle.replace(/\\n/g,\" \")// remove new lines\n.replace(/<br\\s*\\/?>/gi,\" \")// replace line breaks with spaces\n.replace(/<select(.*?)<\\/select>/g,\"\")// remove select tags, including options text\n.replace(/<!\\-\\-.*?\\-\\->/g,\"\")// strip HTML comments\n.replace(/<.*?>/g,\"\")// strip HTML\n.replace(/^\\s+|\\s+$/g,\"\");// trim\nreturn conf.columnText?conf.columnText(dt,idx,title):title;}},colvisRestore:{className:'buttons-colvisRestore',text:function(dt){return dt.i18n('buttons.colvisRestore','Restore visibility');},init:function(dt,button,conf){conf._visOriginal=dt.columns().indexes().map(function(idx){return dt.column(idx).visible();}).toArray();},action:function(e,dt,button,conf){dt.columns().every(function(i){// Take into account that ColReorder might have disrupted our\n// indexes\nvar idx=dt.colReorder&&dt.colReorder.transpose?dt.colReorder.transpose(i,'toOriginal'):i;this.visible(conf._visOriginal[idx]);});}},colvisGroup:{className:'buttons-colvisGroup',action:function(e,dt,button,conf){dt.columns(conf.show).visible(true,false);dt.columns(conf.hide).visible(false,false);dt.columns.adjust();},show:[],hide:[]}});return DataTable.Buttons;});/* Set the defaults for DataTables buttons */$.extend(true,$.fn.dataTable.Buttons.defaults,{dom:{container:{className:'dt-buttons'},button:{className:'btn'}}});/* auto fill button class on popup */$.fn.dataTable.AutoFill.classes.btn='btn btn-primary';/*! ColReorder 1.5.2\r\n * ©2010-2019 SpryMedia Ltd - datatables.net/license\r\n */ /**\r\n * @summary     ColReorder\r\n * @description Provide the ability to reorder columns in a DataTable\r\n * @version     1.5.2\r\n * @file        dataTables.colReorder.js\r\n * @author      SpryMedia Ltd (www.sprymedia.co.uk)\r\n * @contact     www.sprymedia.co.uk/contact\r\n * @copyright   Copyright 2010-2019 SpryMedia Ltd.\r\n *\r\n * This source file is free software, available under the following license:\r\n *   MIT license - http://datatables.net/license/mit\r\n *\r\n * This source file is distributed in the hope that it will be useful, but\r\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\r\n *\r\n * For details please refer to: http://www.datatables.net\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;/**\r\n * Switch the key value pairing of an index array to be value key (i.e. the old value is now the\r\n * key). For example consider [ 2, 0, 1 ] this would be returned as [ 1, 2, 0 ].\r\n *  @method  fnInvertKeyValues\r\n *  @param   array aIn Array to switch around\r\n *  @returns array\r\n */function fnInvertKeyValues(aIn){var aRet=[];for(var i=0,iLen=aIn.length;i<iLen;i++){aRet[aIn[i]]=i;}return aRet;}/**\r\n * Modify an array by switching the position of two elements\r\n *  @method  fnArraySwitch\r\n *  @param   array aArray Array to consider, will be modified by reference (i.e. no return)\r\n *  @param   int iFrom From point\r\n *  @param   int iTo Insert point\r\n *  @returns void\r\n */function fnArraySwitch(aArray,iFrom,iTo){var mStore=aArray.splice(iFrom,1)[0];aArray.splice(iTo,0,mStore);}/**\r\n * Switch the positions of nodes in a parent node (note this is specifically designed for\r\n * table rows). Note this function considers all element nodes under the parent!\r\n *  @method  fnDomSwitch\r\n *  @param   string sTag Tag to consider\r\n *  @param   int iFrom Element to move\r\n *  @param   int Point to element the element to (before this point), can be null for append\r\n *  @returns void\r\n */function fnDomSwitch(nParent,iFrom,iTo){var anTags=[];for(var i=0,iLen=nParent.childNodes.length;i<iLen;i++){if(nParent.childNodes[i].nodeType==1){anTags.push(nParent.childNodes[i]);}}var nStore=anTags[iFrom];if(iTo!==null){nParent.insertBefore(nStore,anTags[iTo]);}else{nParent.appendChild(nStore);}}/**\r\n * Plug-in for DataTables which will reorder the internal column structure by taking the column\r\n * from one position (iFrom) and insert it into a given point (iTo).\r\n *  @method  $.fn.dataTableExt.oApi.fnColReorder\r\n *  @param   object oSettings DataTables settings object - automatically added by DataTables!\r\n *  @param   int iFrom Take the column to be repositioned from this point\r\n *  @param   int iTo and insert it into this point\r\n *  @param   bool drop Indicate if the reorder is the final one (i.e. a drop)\r\n *    not a live reorder\r\n *  @param   bool invalidateRows speeds up processing if false passed\r\n *  @returns void\r\n */$.fn.dataTableExt.oApi.fnColReorder=function(oSettings,iFrom,iTo,drop,invalidateRows){var i,iLen,j,jLen,jen,iCols=oSettings.aoColumns.length,nTrs,oCol;var attrMap=function(obj,prop,mapping){if(!obj[prop]||typeof obj[prop]==='function'){return;}var a=obj[prop].split('.');var num=a.shift();if(isNaN(num*1)){return;}obj[prop]=mapping[num*1]+'.'+a.join('.');};/* Sanity check in the input */if(iFrom==iTo){/* Pointless reorder */return;}if(iFrom<0||iFrom>=iCols){this.oApi._fnLog(oSettings,1,\"ColReorder 'from' index is out of bounds: \"+iFrom);return;}if(iTo<0||iTo>=iCols){this.oApi._fnLog(oSettings,1,\"ColReorder 'to' index is out of bounds: \"+iTo);return;}/*\r\n\t * Calculate the new column array index, so we have a mapping between the old and new\r\n\t */var aiMapping=[];for(i=0,iLen=iCols;i<iLen;i++){aiMapping[i]=i;}fnArraySwitch(aiMapping,iFrom,iTo);var aiInvertMapping=fnInvertKeyValues(aiMapping);/*\r\n\t * Convert all internal indexing to the new column order indexes\r\n\t */ /* Sorting */for(i=0,iLen=oSettings.aaSorting.length;i<iLen;i++){oSettings.aaSorting[i][0]=aiInvertMapping[oSettings.aaSorting[i][0]];}/* Fixed sorting */if(oSettings.aaSortingFixed!==null){for(i=0,iLen=oSettings.aaSortingFixed.length;i<iLen;i++){oSettings.aaSortingFixed[i][0]=aiInvertMapping[oSettings.aaSortingFixed[i][0]];}}/* Data column sorting (the column which the sort for a given column should take place on) */for(i=0,iLen=iCols;i<iLen;i++){oCol=oSettings.aoColumns[i];for(j=0,jLen=oCol.aDataSort.length;j<jLen;j++){oCol.aDataSort[j]=aiInvertMapping[oCol.aDataSort[j]];}// Update the column indexes\noCol.idx=aiInvertMapping[oCol.idx];}// Update 1.10 optimised sort class removal variable\n$.each(oSettings.aLastSort,function(i,val){oSettings.aLastSort[i].src=aiInvertMapping[val.src];});/* Update the Get and Set functions for each column */for(i=0,iLen=iCols;i<iLen;i++){oCol=oSettings.aoColumns[i];if(typeof oCol.mData=='number'){oCol.mData=aiInvertMapping[oCol.mData];}else if($.isPlainObject(oCol.mData)){// HTML5 data sourced\nattrMap(oCol.mData,'_',aiInvertMapping);attrMap(oCol.mData,'filter',aiInvertMapping);attrMap(oCol.mData,'sort',aiInvertMapping);attrMap(oCol.mData,'type',aiInvertMapping);}}/*\r\n\t * Move the DOM elements\r\n\t */if(oSettings.aoColumns[iFrom].bVisible){/* Calculate the current visible index and the point to insert the node before. The insert\r\n\t\t * before needs to take into account that there might not be an element to insert before,\r\n\t\t * in which case it will be null, and an appendChild should be used\r\n\t\t */var iVisibleIndex=this.oApi._fnColumnIndexToVisible(oSettings,iFrom);var iInsertBeforeIndex=null;i=iTo<iFrom?iTo:iTo+1;while(iInsertBeforeIndex===null&&i<iCols){iInsertBeforeIndex=this.oApi._fnColumnIndexToVisible(oSettings,i);i++;}/* Header */nTrs=oSettings.nTHead.getElementsByTagName('tr');for(i=0,iLen=nTrs.length;i<iLen;i++){fnDomSwitch(nTrs[i],iVisibleIndex,iInsertBeforeIndex);}/* Footer */if(oSettings.nTFoot!==null){nTrs=oSettings.nTFoot.getElementsByTagName('tr');for(i=0,iLen=nTrs.length;i<iLen;i++){fnDomSwitch(nTrs[i],iVisibleIndex,iInsertBeforeIndex);}}/* Body */for(i=0,iLen=oSettings.aoData.length;i<iLen;i++){if(oSettings.aoData[i].nTr!==null){fnDomSwitch(oSettings.aoData[i].nTr,iVisibleIndex,iInsertBeforeIndex);}}}/*\r\n\t * Move the internal array elements\r\n\t */ /* Columns */fnArraySwitch(oSettings.aoColumns,iFrom,iTo);// regenerate the get / set functions\nfor(i=0,iLen=iCols;i<iLen;i++){oSettings.oApi._fnColumnOptions(oSettings,i,{});}/* Search columns */fnArraySwitch(oSettings.aoPreSearchCols,iFrom,iTo);/* Array array - internal data anodes cache */for(i=0,iLen=oSettings.aoData.length;i<iLen;i++){var data=oSettings.aoData[i];var cells=data.anCells;if(cells){fnArraySwitch(cells,iFrom,iTo);// Longer term, should this be moved into the DataTables' invalidate\n// methods?\nfor(j=0,jen=cells.length;j<jen;j++){if(cells[j]&&cells[j]._DT_CellIndex){cells[j]._DT_CellIndex.column=j;}}}// For DOM sourced data, the invalidate will reread the cell into\n// the data array, but for data sources as an array, they need to\n// be flipped\nif(data.src!=='dom'&&$.isArray(data._aData)){fnArraySwitch(data._aData,iFrom,iTo);}}/* Reposition the header elements in the header layout array */for(i=0,iLen=oSettings.aoHeader.length;i<iLen;i++){fnArraySwitch(oSettings.aoHeader[i],iFrom,iTo);}if(oSettings.aoFooter!==null){for(i=0,iLen=oSettings.aoFooter.length;i<iLen;i++){fnArraySwitch(oSettings.aoFooter[i],iFrom,iTo);}}if(invalidateRows||invalidateRows===undefined){$.fn.dataTable.Api(oSettings).rows().invalidate();}/*\r\n\t * Update DataTables' event handlers\r\n\t */ /* Sort listener */for(i=0,iLen=iCols;i<iLen;i++){$(oSettings.aoColumns[i].nTh).off('.DT');this.oApi._fnSortAttachListener(oSettings,oSettings.aoColumns[i].nTh,i);}/* Fire an event so other plug-ins can update */$(oSettings.oInstance).trigger('column-reorder.dt',[oSettings,{from:iFrom,to:iTo,mapping:aiInvertMapping,drop:drop,// Old style parameters for compatibility\niFrom:iFrom,iTo:iTo,aiInvertMapping:aiInvertMapping}]);};/**\r\n * ColReorder provides column visibility control for DataTables\r\n * @class ColReorder\r\n * @constructor\r\n * @param {object} dt DataTables settings object\r\n * @param {object} opts ColReorder options\r\n */var ColReorder=function(dt,opts){var settings=new $.fn.dataTable.Api(dt).settings()[0];// Ensure that we can't initialise on the same table twice\nif(settings._colReorder){return settings._colReorder;}// Allow the options to be a boolean for defaults\nif(opts===true){opts={};}// Convert from camelCase to Hungarian, just as DataTables does\nvar camelToHungarian=$.fn.dataTable.camelToHungarian;if(camelToHungarian){camelToHungarian(ColReorder.defaults,ColReorder.defaults,true);camelToHungarian(ColReorder.defaults,opts||{});}/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Public class variables\r\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /**\r\n\t * @namespace Settings object which contains customisable information for ColReorder instance\r\n\t */this.s={/**\r\n\t\t * DataTables settings object\r\n\t\t *  @property dt\r\n\t\t *  @type     Object\r\n\t\t *  @default  null\r\n\t\t */\"dt\":null,/**\r\n\t\t * Enable flag\r\n\t\t *  @property dt\r\n\t\t *  @type     Object\r\n\t\t *  @default  null\r\n\t\t */\"enable\":null,/**\r\n\t\t * Initialisation object used for this instance\r\n\t\t *  @property init\r\n\t\t *  @type     object\r\n\t\t *  @default  {}\r\n\t\t */\"init\":$.extend(true,{},ColReorder.defaults,opts),/**\r\n\t\t * Number of columns to fix (not allow to be reordered)\r\n\t\t *  @property fixed\r\n\t\t *  @type     int\r\n\t\t *  @default  0\r\n\t\t */\"fixed\":0,/**\r\n\t\t * Number of columns to fix counting from right (not allow to be reordered)\r\n\t\t *  @property fixedRight\r\n\t\t *  @type     int\r\n\t\t *  @default  0\r\n\t\t */\"fixedRight\":0,/**\r\n\t\t * Callback function for once the reorder has been done\r\n\t\t *  @property reorderCallback\r\n\t\t *  @type     function\r\n\t\t *  @default  null\r\n\t\t */\"reorderCallback\":null,/**\r\n\t\t * @namespace Information used for the mouse drag\r\n\t\t */\"mouse\":{\"startX\":-1,\"startY\":-1,\"offsetX\":-1,\"offsetY\":-1,\"target\":-1,\"targetIndex\":-1,\"fromIndex\":-1},/**\r\n\t\t * Information which is used for positioning the insert cusor and knowing where to do the\r\n\t\t * insert. Array of objects with the properties:\r\n\t\t *   x: x-axis position\r\n\t\t *   to: insert point\r\n\t\t *  @property aoTargets\r\n\t\t *  @type     array\r\n\t\t *  @default  []\r\n\t\t */\"aoTargets\":[]};/**\r\n\t * @namespace Common and useful DOM elements for the class instance\r\n\t */this.dom={/**\r\n\t\t * Dragging element (the one the mouse is moving)\r\n\t\t *  @property drag\r\n\t\t *  @type     element\r\n\t\t *  @default  null\r\n\t\t */\"drag\":null,/**\r\n\t\t * The insert cursor\r\n\t\t *  @property pointer\r\n\t\t *  @type     element\r\n\t\t *  @default  null\r\n\t\t */\"pointer\":null};/* Constructor logic */this.s.enable=this.s.init.bEnable;this.s.dt=settings;this.s.dt._colReorder=this;this._fnConstruct();return this;};$.extend(ColReorder.prototype,{/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Public methods\r\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /**\r\n\t * Enable / disable end user interaction\r\n\t */fnEnable:function(flag){if(flag===false){return fnDisable();}this.s.enable=true;},/**\r\n\t * Disable end user interaction\r\n\t */fnDisable:function(){this.s.enable=false;},/**\r\n\t * Reset the column ordering to the original ordering that was detected on\r\n\t * start up.\r\n\t *  @return {this} Returns `this` for chaining.\r\n\t *\r\n\t *  @example\r\n\t *    // DataTables initialisation with ColReorder\r\n\t *    var table = $('#example').dataTable( {\r\n\t *        \"sDom\": 'Rlfrtip'\r\n\t *    } );\r\n\t *\r\n\t *    // Add click event to a button to reset the ordering\r\n\t *    $('#resetOrdering').click( function (e) {\r\n\t *        e.preventDefault();\r\n\t *        $.fn.dataTable.ColReorder( table ).fnReset();\r\n\t *    } );\r\n\t */\"fnReset\":function(){this._fnOrderColumns(this.fnOrder());return this;},/**\r\n\t * `Deprecated` - Get the current order of the columns, as an array.\r\n\t *  @return {array} Array of column identifiers\r\n\t *  @deprecated `fnOrder` should be used in preference to this method.\r\n\t *      `fnOrder` acts as a getter/setter.\r\n\t */\"fnGetCurrentOrder\":function(){return this.fnOrder();},/**\r\n\t * Get the current order of the columns, as an array. Note that the values\r\n\t * given in the array are unique identifiers for each column. Currently\r\n\t * these are the original ordering of the columns that was detected on\r\n\t * start up, but this could potentially change in future.\r\n\t *  @return {array} Array of column identifiers\r\n\t *\r\n\t *  @example\r\n\t *    // Get column ordering for the table\r\n\t *    var order = $.fn.dataTable.ColReorder( dataTable ).fnOrder();\r\n\t */ /**\r\n\t * Set the order of the columns, from the positions identified in the\r\n\t * ordering array given. Note that ColReorder takes a brute force approach\r\n\t * to reordering, so it is possible multiple reordering events will occur\r\n\t * before the final order is settled upon.\r\n\t *  @param {array} [set] Array of column identifiers in the new order. Note\r\n\t *    that every column must be included, uniquely, in this array.\r\n\t *  @return {this} Returns `this` for chaining.\r\n\t *\r\n\t *  @example\r\n\t *    // Swap the first and second columns\r\n\t *    $.fn.dataTable.ColReorder( dataTable ).fnOrder( [1, 0, 2, 3, 4] );\r\n\t *\r\n\t *  @example\r\n\t *    // Move the first column to the end for the table `#example`\r\n\t *    var curr = $.fn.dataTable.ColReorder( '#example' ).fnOrder();\r\n\t *    var first = curr.shift();\r\n\t *    curr.push( first );\r\n\t *    $.fn.dataTable.ColReorder( '#example' ).fnOrder( curr );\r\n\t *\r\n\t *  @example\r\n\t *    // Reverse the table's order\r\n\t *    $.fn.dataTable.ColReorder( '#example' ).fnOrder(\r\n\t *      $.fn.dataTable.ColReorder( '#example' ).fnOrder().reverse()\r\n\t *    );\r\n\t */\"fnOrder\":function(set,original){var a=[],i,ien,j,jen;var columns=this.s.dt.aoColumns;if(set===undefined){for(i=0,ien=columns.length;i<ien;i++){a.push(columns[i]._ColReorder_iOrigCol);}return a;}// The order given is based on the original indexes, rather than the\n// existing ones, so we need to translate from the original to current\n// before then doing the order\nif(original){var order=this.fnOrder();for(i=0,ien=set.length;i<ien;i++){a.push($.inArray(set[i],order));}set=a;}this._fnOrderColumns(fnInvertKeyValues(set));return this;},/**\r\n\t * Convert from the original column index, to the original\r\n\t *\r\n\t * @param  {int|array} idx Index(es) to convert\r\n\t * @param  {string} dir Transpose direction - `fromOriginal` / `toCurrent`\r\n\t *   or `'toOriginal` / `fromCurrent`\r\n\t * @return {int|array}     Converted values\r\n\t */fnTranspose:function(idx,dir){if(!dir){dir='toCurrent';}var order=this.fnOrder();var columns=this.s.dt.aoColumns;if(dir==='toCurrent'){// Given an original index, want the current\nreturn!$.isArray(idx)?$.inArray(idx,order):$.map(idx,function(index){return $.inArray(index,order);});}else{// Given a current index, want the original\nreturn!$.isArray(idx)?columns[idx]._ColReorder_iOrigCol:$.map(idx,function(index){return columns[index]._ColReorder_iOrigCol;});}},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Private methods (they are of course public in JS, but recommended as private)\r\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /**\r\n\t * Constructor logic\r\n\t *  @method  _fnConstruct\r\n\t *  @returns void\r\n\t *  @private\r\n\t */\"_fnConstruct\":function(){var that=this;var iLen=this.s.dt.aoColumns.length;var table=this.s.dt.nTable;var i;/* Columns discounted from reordering - counting left to right */if(this.s.init.iFixedColumns){this.s.fixed=this.s.init.iFixedColumns;}if(this.s.init.iFixedColumnsLeft){this.s.fixed=this.s.init.iFixedColumnsLeft;}/* Columns discounted from reordering - counting right to left */this.s.fixedRight=this.s.init.iFixedColumnsRight?this.s.init.iFixedColumnsRight:0;/* Drop callback initialisation option */if(this.s.init.fnReorderCallback){this.s.reorderCallback=this.s.init.fnReorderCallback;}/* Add event handlers for the drag and drop, and also mark the original column order */for(i=0;i<iLen;i++){if(i>this.s.fixed-1&&i<iLen-this.s.fixedRight){this._fnMouseListener(i,this.s.dt.aoColumns[i].nTh);}/* Mark the original column order for later reference */this.s.dt.aoColumns[i]._ColReorder_iOrigCol=i;}/* State saving */this.s.dt.oApi._fnCallbackReg(this.s.dt,'aoStateSaveParams',function(oS,oData){that._fnStateSave.call(that,oData);},\"ColReorder_State\");/* An initial column order has been specified */var aiOrder=null;if(this.s.init.aiOrder){aiOrder=this.s.init.aiOrder.slice();}/* State loading, overrides the column order given */if(this.s.dt.oLoadedState&&typeof this.s.dt.oLoadedState.ColReorder!='undefined'&&this.s.dt.oLoadedState.ColReorder.length==this.s.dt.aoColumns.length){aiOrder=this.s.dt.oLoadedState.ColReorder;}/* If we have an order to apply - do so */if(aiOrder){/* We might be called during or after the DataTables initialisation. If before, then we need\r\n\t\t\t * to wait until the draw is done, if after, then do what we need to do right away\r\n\t\t\t */if(!that.s.dt._bInitComplete){var bDone=false;$(table).on('draw.dt.colReorder',function(){if(!that.s.dt._bInitComplete&&!bDone){bDone=true;var resort=fnInvertKeyValues(aiOrder);that._fnOrderColumns.call(that,resort);}});}else{var resort=fnInvertKeyValues(aiOrder);that._fnOrderColumns.call(that,resort);}}else{this._fnSetColumnIndexes();}// Destroy clean up\n$(table).on('destroy.dt.colReorder',function(){$(table).off('destroy.dt.colReorder draw.dt.colReorder');$.each(that.s.dt.aoColumns,function(i,column){$(column.nTh).off('.ColReorder');$(column.nTh).removeAttr('data-column-index');});that.s.dt._colReorder=null;that.s=null;});},/**\r\n\t * Set the column order from an array\r\n\t *  @method  _fnOrderColumns\r\n\t *  @param   array a An array of integers which dictate the column order that should be applied\r\n\t *  @returns void\r\n\t *  @private\r\n\t */\"_fnOrderColumns\":function(a){var changed=false;if(a.length!=this.s.dt.aoColumns.length){this.s.dt.oInstance.oApi._fnLog(this.s.dt,1,\"ColReorder - array reorder does not \"+\"match known number of columns. Skipping.\");return;}for(var i=0,iLen=a.length;i<iLen;i++){var currIndex=$.inArray(i,a);if(i!=currIndex){/* Reorder our switching array */fnArraySwitch(a,currIndex,i);/* Do the column reorder in the table */this.s.dt.oInstance.fnColReorder(currIndex,i,true,false);changed=true;}}this._fnSetColumnIndexes();// Has anything actually changed? If not, then nothing else to do\nif(!changed){return;}$.fn.dataTable.Api(this.s.dt).rows().invalidate();/* When scrolling we need to recalculate the column sizes to allow for the shift */if(this.s.dt.oScroll.sX!==\"\"||this.s.dt.oScroll.sY!==\"\"){this.s.dt.oInstance.fnAdjustColumnSizing(false);}/* Save the state */this.s.dt.oInstance.oApi._fnSaveState(this.s.dt);if(this.s.reorderCallback!==null){this.s.reorderCallback.call(this);}},/**\r\n\t * Because we change the indexes of columns in the table, relative to their starting point\r\n\t * we need to reorder the state columns to what they are at the starting point so we can\r\n\t * then rearrange them again on state load!\r\n\t *  @method  _fnStateSave\r\n\t *  @param   object oState DataTables state\r\n\t *  @returns string JSON encoded cookie string for DataTables\r\n\t *  @private\r\n\t */\"_fnStateSave\":function(oState){var i,iLen,aCopy,iOrigColumn;var oSettings=this.s.dt;var columns=oSettings.aoColumns;oState.ColReorder=[];/* Sorting */if(oState.aaSorting){// 1.10.0-\nfor(i=0;i<oState.aaSorting.length;i++){oState.aaSorting[i][0]=columns[oState.aaSorting[i][0]]._ColReorder_iOrigCol;}var aSearchCopy=$.extend(true,[],oState.aoSearchCols);for(i=0,iLen=columns.length;i<iLen;i++){iOrigColumn=columns[i]._ColReorder_iOrigCol;/* Column filter */oState.aoSearchCols[iOrigColumn]=aSearchCopy[i];/* Visibility */oState.abVisCols[iOrigColumn]=columns[i].bVisible;/* Column reordering */oState.ColReorder.push(iOrigColumn);}}else if(oState.order){// 1.10.1+\nfor(i=0;i<oState.order.length;i++){oState.order[i][0]=columns[oState.order[i][0]]._ColReorder_iOrigCol;}var stateColumnsCopy=$.extend(true,[],oState.columns);for(i=0,iLen=columns.length;i<iLen;i++){iOrigColumn=columns[i]._ColReorder_iOrigCol;/* Columns */oState.columns[iOrigColumn]=stateColumnsCopy[i];/* Column reordering */oState.ColReorder.push(iOrigColumn);}}},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Mouse drop and drag\r\n\t */ /**\r\n\t * Add a mouse down listener to a particluar TH element\r\n\t *  @method  _fnMouseListener\r\n\t *  @param   int i Column index\r\n\t *  @param   element nTh TH element clicked on\r\n\t *  @returns void\r\n\t *  @private\r\n\t */\"_fnMouseListener\":function(i,nTh){var that=this;$(nTh).on('mousedown.ColReorder',function(e){if(that.s.enable&&e.which===1){that._fnMouseDown.call(that,e,nTh);}}).on('touchstart.ColReorder',function(e){if(that.s.enable){that._fnMouseDown.call(that,e,nTh);}});},/**\r\n\t * Mouse down on a TH element in the table header\r\n\t *  @method  _fnMouseDown\r\n\t *  @param   event e Mouse event\r\n\t *  @param   element nTh TH element to be dragged\r\n\t *  @returns void\r\n\t *  @private\r\n\t */\"_fnMouseDown\":function(e,nTh){var that=this;/* Store information about the mouse position */var target=$(e.target).closest('th, td');var offset=target.offset();var idx=parseInt($(nTh).attr('data-column-index'),10);if(idx===undefined){return;}this.s.mouse.startX=this._fnCursorPosition(e,'pageX');this.s.mouse.startY=this._fnCursorPosition(e,'pageY');this.s.mouse.offsetX=this._fnCursorPosition(e,'pageX')-offset.left;this.s.mouse.offsetY=this._fnCursorPosition(e,'pageY')-offset.top;this.s.mouse.target=this.s.dt.aoColumns[idx].nTh;//target[0];\nthis.s.mouse.targetIndex=idx;this.s.mouse.fromIndex=idx;this._fnRegions();/* Add event handlers to the document */$(document).on('mousemove.ColReorder touchmove.ColReorder',function(e){that._fnMouseMove.call(that,e);}).on('mouseup.ColReorder touchend.ColReorder',function(e){that._fnMouseUp.call(that,e);});},/**\r\n\t * Deal with a mouse move event while dragging a node\r\n\t *  @method  _fnMouseMove\r\n\t *  @param   event e Mouse event\r\n\t *  @returns void\r\n\t *  @private\r\n\t */\"_fnMouseMove\":function(e){var that=this;if(this.dom.drag===null){/* Only create the drag element if the mouse has moved a specific distance from the start\r\n\t\t\t * point - this allows the user to make small mouse movements when sorting and not have a\r\n\t\t\t * possibly confusing drag element showing up\r\n\t\t\t */if(Math.pow(Math.pow(this._fnCursorPosition(e,'pageX')-this.s.mouse.startX,2)+Math.pow(this._fnCursorPosition(e,'pageY')-this.s.mouse.startY,2),0.5)<5){return;}this._fnCreateDragNode();}/* Position the element - we respect where in the element the click occured */this.dom.drag.css({left:this._fnCursorPosition(e,'pageX')-this.s.mouse.offsetX,top:this._fnCursorPosition(e,'pageY')-this.s.mouse.offsetY});/* Based on the current mouse position, calculate where the insert should go */var target;var lastToIndex=this.s.mouse.toIndex;var cursorXPosiotion=this._fnCursorPosition(e,'pageX');var targetsPrev=function(i){while(i>=0){i--;if(i<=0){return null;}if(that.s.aoTargets[i+1].x!==that.s.aoTargets[i].x){return that.s.aoTargets[i];}}};var firstNotHidden=function(){for(var i=0;i<that.s.aoTargets.length-1;i++){if(that.s.aoTargets[i].x!==that.s.aoTargets[i+1].x){return that.s.aoTargets[i];}}};var lastNotHidden=function(){for(var i=that.s.aoTargets.length-1;i>0;i--){if(that.s.aoTargets[i].x!==that.s.aoTargets[i-1].x){return that.s.aoTargets[i];}}};for(var i=1;i<this.s.aoTargets.length;i++){var prevTarget=targetsPrev(i);if(!prevTarget){prevTarget=firstNotHidden();}var prevTargetMiddle=prevTarget.x+(this.s.aoTargets[i].x-prevTarget.x)/2;if(this._fnIsLtr()){if(cursorXPosiotion<prevTargetMiddle){target=prevTarget;break;}}else{if(cursorXPosiotion>prevTargetMiddle){target=prevTarget;break;}}}if(target){this.dom.pointer.css('left',target.x);this.s.mouse.toIndex=target.to;}else{// The insert element wasn't positioned in the array (less than\n// operator), so we put it at the end\nthis.dom.pointer.css('left',lastNotHidden().x);this.s.mouse.toIndex=lastNotHidden().to;}// Perform reordering if realtime updating is on and the column has moved\nif(this.s.init.bRealtime&&lastToIndex!==this.s.mouse.toIndex){this.s.dt.oInstance.fnColReorder(this.s.mouse.fromIndex,this.s.mouse.toIndex);this.s.mouse.fromIndex=this.s.mouse.toIndex;// Not great for performance, but required to keep everything in alignment\nif(this.s.dt.oScroll.sX!==\"\"||this.s.dt.oScroll.sY!==\"\"){this.s.dt.oInstance.fnAdjustColumnSizing(false);}this._fnRegions();}},/**\r\n\t * Finish off the mouse drag and insert the column where needed\r\n\t *  @method  _fnMouseUp\r\n\t *  @param   event e Mouse event\r\n\t *  @returns void\r\n\t *  @private\r\n\t */\"_fnMouseUp\":function(e){var that=this;$(document).off('.ColReorder');if(this.dom.drag!==null){/* Remove the guide elements */this.dom.drag.remove();this.dom.pointer.remove();this.dom.drag=null;this.dom.pointer=null;/* Actually do the reorder */this.s.dt.oInstance.fnColReorder(this.s.mouse.fromIndex,this.s.mouse.toIndex,true);this._fnSetColumnIndexes();/* When scrolling we need to recalculate the column sizes to allow for the shift */if(this.s.dt.oScroll.sX!==\"\"||this.s.dt.oScroll.sY!==\"\"){this.s.dt.oInstance.fnAdjustColumnSizing(false);}/* Save the state */this.s.dt.oInstance.oApi._fnSaveState(this.s.dt);if(this.s.reorderCallback!==null){this.s.reorderCallback.call(this);}}},/**\r\n\t * Calculate a cached array with the points of the column inserts, and the\r\n\t * 'to' points\r\n\t *  @method  _fnRegions\r\n\t *  @returns void\r\n\t *  @private\r\n\t */\"_fnRegions\":function(){var aoColumns=this.s.dt.aoColumns;var isLTR=this._fnIsLtr();this.s.aoTargets.splice(0,this.s.aoTargets.length);var lastBound=$(this.s.dt.nTable).offset().left;var aoColumnBounds=[];$.each(aoColumns,function(i,column){if(column.bVisible&&column.nTh.style.display!=='none'){var nth=$(column.nTh);var bound=nth.offset().left;if(isLTR){bound+=nth.outerWidth();}aoColumnBounds.push({index:i,bound:bound});lastBound=bound;}else{aoColumnBounds.push({index:i,bound:lastBound});}});var firstColumn=aoColumnBounds[0];var firstColumnWidth=$(aoColumns[firstColumn.index].nTh).outerWidth();this.s.aoTargets.push({to:0,x:firstColumn.bound-firstColumnWidth});for(var i=0;i<aoColumnBounds.length;i++){var columnBound=aoColumnBounds[i];var iToPoint=columnBound.index;/* For the column / header in question, we want it's position to remain the same if the\r\n            * position is just to it's immediate left or right, so we only increment the counter for\r\n            * other columns\r\n            */if(columnBound.index<this.s.mouse.fromIndex){iToPoint++;}this.s.aoTargets.push({to:iToPoint,x:columnBound.bound});}/* Disallow columns for being reordered by drag and drop, counting right to left */if(this.s.fixedRight!==0){this.s.aoTargets.splice(this.s.aoTargets.length-this.s.fixedRight);}/* Disallow columns for being reordered by drag and drop, counting left to right */if(this.s.fixed!==0){this.s.aoTargets.splice(0,this.s.fixed);}},/**\r\n\t * Copy the TH element that is being drags so the user has the idea that they are actually\r\n\t * moving it around the page.\r\n\t *  @method  _fnCreateDragNode\r\n\t *  @returns void\r\n\t *  @private\r\n\t */\"_fnCreateDragNode\":function(){var scrolling=this.s.dt.oScroll.sX!==\"\"||this.s.dt.oScroll.sY!==\"\";var origCell=this.s.dt.aoColumns[this.s.mouse.targetIndex].nTh;var origTr=origCell.parentNode;var origThead=origTr.parentNode;var origTable=origThead.parentNode;var cloneCell=$(origCell).clone();// This is a slightly odd combination of jQuery and DOM, but it is the\n// fastest and least resource intensive way I could think of cloning\n// the table with just a single header cell in it.\nthis.dom.drag=$(origTable.cloneNode(false)).addClass('DTCR_clonedTable').append($(origThead.cloneNode(false)).append($(origTr.cloneNode(false)).append(cloneCell[0]))).css({position:'absolute',top:0,left:0,width:$(origCell).outerWidth(),height:$(origCell).outerHeight()}).appendTo('body');this.dom.pointer=$('<div></div>').addClass('DTCR_pointer').css({position:'absolute',top:scrolling?$('div.dataTables_scroll',this.s.dt.nTableWrapper).offset().top:$(this.s.dt.nTable).offset().top,height:scrolling?$('div.dataTables_scroll',this.s.dt.nTableWrapper).height():$(this.s.dt.nTable).height()}).appendTo('body');},/**\r\n\t * Add a data attribute to the column headers, so we know the index of\r\n\t * the row to be reordered. This allows fast detection of the index, and\r\n\t * for this plug-in to work with FixedHeader which clones the nodes.\r\n\t *  @private\r\n\t */\"_fnSetColumnIndexes\":function(){$.each(this.s.dt.aoColumns,function(i,column){$(column.nTh).attr('data-column-index',i);});},/**\r\n\t * Get cursor position regardless of mouse or touch input\r\n\t * @param  {Event}  e    jQuery Event\r\n\t * @param  {string} prop Property to get\r\n\t * @return {number}      Value\r\n\t */_fnCursorPosition:function(e,prop){if(e.type.indexOf('touch')!==-1){return e.originalEvent.touches[0][prop];}return e[prop];},_fnIsLtr:function(){return $(this.s.dt.nTable).css('direction')!==\"rtl\";}});/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Static parameters\r\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /**\r\n * ColReorder default settings for initialisation\r\n *  @namespace\r\n *  @static\r\n */ColReorder.defaults={/**\r\n\t * Predefined ordering for the columns that will be applied automatically\r\n\t * on initialisation. If not specified then the order that the columns are\r\n\t * found to be in the HTML is the order used.\r\n\t *  @type array\r\n\t *  @default null\r\n\t *  @static\r\n\t */aiOrder:null,/**\r\n\t * ColReorder enable on initialisation\r\n\t *  @type boolean\r\n\t *  @default true\r\n\t *  @static\r\n\t */bEnable:true,/**\r\n\t * Redraw the table's column ordering as the end user draws the column\r\n\t * (`true`) or wait until the mouse is released (`false` - default). Note\r\n\t * that this will perform a redraw on each reordering, which involves an\r\n\t * Ajax request each time if you are using server-side processing in\r\n\t * DataTables.\r\n\t *  @type boolean\r\n\t *  @default false\r\n\t *  @static\r\n\t */bRealtime:true,/**\r\n\t * Indicate how many columns should be fixed in position (counting from the\r\n\t * left). This will typically be 1 if used, but can be as high as you like.\r\n\t *  @type int\r\n\t *  @default 0\r\n\t *  @static\r\n\t */iFixedColumnsLeft:0,/**\r\n\t * As `iFixedColumnsRight` but counting from the right.\r\n\t *  @type int\r\n\t *  @default 0\r\n\t *  @static\r\n\t */iFixedColumnsRight:0,/**\r\n\t * Callback function that is fired when columns are reordered. The `column-\r\n\t * reorder` event is preferred over this callback\r\n\t *  @type function():void\r\n\t *  @default null\r\n\t *  @static\r\n\t */fnReorderCallback:null};/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Constants\r\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /**\r\n * ColReorder version\r\n *  @constant  version\r\n *  @type      String\r\n *  @default   As code\r\n */ColReorder.version=\"1.5.2\";/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * DataTables interfaces\r\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ // Expose\n$.fn.dataTable.ColReorder=ColReorder;$.fn.DataTable.ColReorder=ColReorder;// Register a new feature with DataTables\nif(typeof $.fn.dataTable==\"function\"&&typeof $.fn.dataTableExt.fnVersionCheck==\"function\"&&$.fn.dataTableExt.fnVersionCheck('1.10.8')){$.fn.dataTableExt.aoFeatures.push({\"fnInit\":function(settings){var table=settings.oInstance;if(!settings._colReorder){var dtInit=settings.oInit;var opts=dtInit.colReorder||dtInit.oColReorder||{};new ColReorder(settings,opts);}else{table.oApi._fnLog(settings,1,\"ColReorder attempted to initialise twice. Ignoring second\");}return null;/* No node for DataTables to insert */},\"cFeature\":\"R\",\"sFeature\":\"ColReorder\"});}else{alert(\"Warning: ColReorder requires DataTables 1.10.8 or greater - www.datatables.net/download\");}// Attach a listener to the document which listens for DataTables initialisation\n// events so we can automatically initialise\n$(document).on('preInit.dt.colReorder',function(e,settings){if(e.namespace!=='dt'){return;}var init=settings.oInit.colReorder;var defaults=DataTable.defaults.colReorder;if(init||defaults){var opts=$.extend({},init,defaults);if(init!==false){new ColReorder(settings,opts);}}});// API augmentation\n$.fn.dataTable.Api.register('colReorder.reset()',function(){return this.iterator('table',function(ctx){ctx._colReorder.fnReset();});});$.fn.dataTable.Api.register('colReorder.order()',function(set,original){if(set){return this.iterator('table',function(ctx){ctx._colReorder.fnOrder(set,original);});}return this.context.length?this.context[0]._colReorder.fnOrder():null;});$.fn.dataTable.Api.register('colReorder.transpose()',function(idx,dir){return this.context.length&&this.context[0]._colReorder?this.context[0]._colReorder.fnTranspose(idx,dir):idx;});$.fn.dataTable.Api.register('colReorder.move()',function(from,to,drop,invalidateRows){if(this.context.length){this.context[0]._colReorder.s.dt.oInstance.fnColReorder(from,to,drop,invalidateRows);this.context[0]._colReorder._fnSetColumnIndexes();}return this;});$.fn.dataTable.Api.register('colReorder.enable()',function(flag){return this.iterator('table',function(ctx){if(ctx._colReorder){ctx._colReorder.fnEnable(flag);}});});$.fn.dataTable.Api.register('colReorder.disable()',function(){return this.iterator('table',function(ctx){if(ctx._colReorder){ctx._colReorder.fnDisable();}});});return ColReorder;});/*! Bootstrap 4 styling wrapper for ColReorder\r\n * ©2018 SpryMedia Ltd - datatables.net/license\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-bs4'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-colreorder'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){return $.fn.dataTable;});/*! FixedColumns 3.8.0\r\n * ©2010-2018 SpryMedia Ltd - datatables.net/license\r\n */ /**\r\n * @summary     FixedColumns\r\n * @description Freeze columns in place on a scrolling DataTable\r\n * @version     3.8.0\r\n * @file        dataTables.fixedColumns.js\r\n * @author      SpryMedia Ltd (www.sprymedia.co.uk)\r\n * @contact     www.sprymedia.co.uk/contact\r\n * @copyright   Copyright 2010-2018 SpryMedia Ltd.\r\n *\r\n * This source file is free software, available under the following license:\r\n *   MIT license - http://datatables.net/license/mit\r\n *\r\n * This source file is distributed in the hope that it will be useful, but\r\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\r\n *\r\n * For details please refer to: http://www.datatables.net\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;var _firefoxScroll;/**\r\n * When making use of DataTables' x-axis scrolling feature, you may wish to\r\n * fix the left most column in place. This plug-in for DataTables provides\r\n * exactly this option (note for non-scrolling tables, please use the\r\n * FixedHeader plug-in, which can fix headers and footers). Key\r\n * features include:\r\n *\r\n * * Freezes the left or right most columns to the side of the table\r\n * * Option to freeze two or more columns\r\n * * Full integration with DataTables' scrolling options\r\n * * Speed - FixedColumns is fast in its operation\r\n *\r\n *  @class\r\n *  @constructor\r\n *  @global\r\n *  @param {object} dt DataTables instance. With DataTables 1.10 this can also\r\n *    be a jQuery collection, a jQuery selector, DataTables API instance or\r\n *    settings object.\r\n *  @param {object} [init={}] Configuration object for FixedColumns. Options are\r\n *    defined by {@link FixedColumns.defaults}\r\n *\r\n *  @requires jQuery 1.7+\r\n *  @requires DataTables 1.8.0+\r\n *\r\n *  @example\r\n *      var table = $('#example').dataTable( {\r\n *        \"scrollX\": \"100%\"\r\n *      } );\r\n *      new $.fn.dataTable.fixedColumns( table );\r\n */var FixedColumns=function(dt,init){var that=this;/* Sanity check - you just know it will happen */if(!(this instanceof FixedColumns)){alert(\"FixedColumns warning: FixedColumns must be initialised with the 'new' keyword.\");return;}if(init===undefined||init===true){init={};}// Use the DataTables Hungarian notation mapping method, if it exists to\n// provide forwards compatibility for camel case variables\nvar camelToHungarian=$.fn.dataTable.camelToHungarian;if(camelToHungarian){camelToHungarian(FixedColumns.defaults,FixedColumns.defaults,true);camelToHungarian(FixedColumns.defaults,init);}// v1.10 allows the settings object to be got form a number of sources\nvar dtSettings=new $.fn.dataTable.Api(dt).settings()[0];/**\r\n\t * Settings object which contains customisable information for FixedColumns instance\r\n\t * @namespace\r\n\t * @extends FixedColumns.defaults\r\n\t * @private\r\n\t */this.s={/**\r\n\t\t * DataTables settings objects\r\n\t\t *  @type     object\r\n\t\t *  @default  Obtained from DataTables instance\r\n\t\t */\"dt\":dtSettings,/**\r\n\t\t * Number of columns in the DataTable - stored for quick access\r\n\t\t *  @type     int\r\n\t\t *  @default  Obtained from DataTables instance\r\n\t\t */\"iTableColumns\":dtSettings.aoColumns.length,/**\r\n\t\t * Original outer widths of the columns as rendered by DataTables - used to calculate\r\n\t\t * the FixedColumns grid bounding box\r\n\t\t *  @type     array.<int>\r\n\t\t *  @default  []\r\n\t\t */\"aiOuterWidths\":[],/**\r\n\t\t * Original inner widths of the columns as rendered by DataTables - used to apply widths\r\n\t\t * to the columns\r\n\t\t *  @type     array.<int>\r\n\t\t *  @default  []\r\n\t\t */\"aiInnerWidths\":[],/**\r\n\t\t * Is the document layout right-to-left\r\n\t\t * @type boolean\r\n\t\t */rtl:$(dtSettings.nTable).css('direction')==='rtl'};/**\r\n\t * DOM elements used by the class instance\r\n\t * @namespace\r\n\t * @private\r\n\t *\r\n\t */this.dom={/**\r\n\t\t * DataTables scrolling element\r\n\t\t *  @type     node\r\n\t\t *  @default  null\r\n\t\t */\"scroller\":null,/**\r\n\t\t * DataTables header table\r\n\t\t *  @type     node\r\n\t\t *  @default  null\r\n\t\t */\"header\":null,/**\r\n\t\t * DataTables body table\r\n\t\t *  @type     node\r\n\t\t *  @default  null\r\n\t\t */\"body\":null,/**\r\n\t\t * DataTables footer table\r\n\t\t *  @type     node\r\n\t\t *  @default  null\r\n\t\t */\"footer\":null,/**\r\n\t\t * Display grid elements\r\n\t\t * @namespace\r\n\t\t */\"grid\":{/**\r\n\t\t\t * Grid wrapper. This is the container element for the 3x3 grid\r\n\t\t\t *  @type     node\r\n\t\t\t *  @default  null\r\n\t\t\t */\"wrapper\":null,/**\r\n\t\t\t * DataTables scrolling element. This element is the DataTables\r\n\t\t\t * component in the display grid (making up the main table - i.e.\r\n\t\t\t * not the fixed columns).\r\n\t\t\t *  @type     node\r\n\t\t\t *  @default  null\r\n\t\t\t */\"dt\":null,/**\r\n\t\t\t * Left fixed column grid components\r\n\t\t\t * @namespace\r\n\t\t\t */\"left\":{\"wrapper\":null,\"head\":null,\"body\":null,\"foot\":null},/**\r\n\t\t\t * Right fixed column grid components\r\n\t\t\t * @namespace\r\n\t\t\t */\"right\":{\"wrapper\":null,\"head\":null,\"body\":null,\"foot\":null}},/**\r\n\t\t * Cloned table nodes\r\n\t\t * @namespace\r\n\t\t */\"clone\":{/**\r\n\t\t\t * Left column cloned table nodes\r\n\t\t\t * @namespace\r\n\t\t\t */\"left\":{/**\r\n\t\t\t\t * Cloned header table\r\n\t\t\t\t *  @type     node\r\n\t\t\t\t *  @default  null\r\n\t\t\t\t */\"header\":null,/**\r\n\t\t\t\t * Cloned body table\r\n\t\t\t\t *  @type     node\r\n\t\t\t\t *  @default  null\r\n\t\t\t\t */\"body\":null,/**\r\n\t\t\t\t * Cloned footer table\r\n\t\t\t\t *  @type     node\r\n\t\t\t\t *  @default  null\r\n\t\t\t\t */\"footer\":null},/**\r\n\t\t\t * Right column cloned table nodes\r\n\t\t\t * @namespace\r\n\t\t\t */\"right\":{/**\r\n\t\t\t\t * Cloned header table\r\n\t\t\t\t *  @type     node\r\n\t\t\t\t *  @default  null\r\n\t\t\t\t */\"header\":null,/**\r\n\t\t\t\t * Cloned body table\r\n\t\t\t\t *  @type     node\r\n\t\t\t\t *  @default  null\r\n\t\t\t\t */\"body\":null,/**\r\n\t\t\t\t * Cloned footer table\r\n\t\t\t\t *  @type     node\r\n\t\t\t\t *  @default  null\r\n\t\t\t\t */\"footer\":null}}};if(dtSettings._oFixedColumns){throw'FixedColumns already initialised on this table';}/* Attach the instance to the DataTables instance so it can be accessed easily */dtSettings._oFixedColumns=this;/* Let's do it */if(!dtSettings._bInitComplete){dtSettings.oApi._fnCallbackReg(dtSettings,'aoInitComplete',function(){that._fnConstruct(init);},'FixedColumns');}else{this._fnConstruct(init);}};$.extend(FixedColumns.prototype,{/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Public methods\r\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /**\r\n\t * Update the fixed columns - including headers and footers. Note that FixedColumns will\r\n\t * automatically update the display whenever the host DataTable redraws.\r\n\t *  @returns {void}\r\n\t *  @example\r\n\t *      var table = $('#example').dataTable( {\r\n\t *          \"scrollX\": \"100%\"\r\n\t *      } );\r\n\t *      var fc = new $.fn.dataTable.fixedColumns( table );\r\n\t *\r\n\t *      // at some later point when the table has been manipulated....\r\n\t *      fc.fnUpdate();\r\n\t */\"fnUpdate\":function(){this._fnDraw(true);},/**\r\n\t * Recalculate the resizes of the 3x3 grid that FixedColumns uses for display of the table.\r\n\t * This is useful if you update the width of the table container. Note that FixedColumns will\r\n\t * perform this function automatically when the window.resize event is fired.\r\n\t *  @returns {void}\r\n\t *  @example\r\n\t *      var table = $('#example').dataTable( {\r\n\t *          \"scrollX\": \"100%\"\r\n\t *      } );\r\n\t *      var fc = new $.fn.dataTable.fixedColumns( table );\r\n\t *\r\n\t *      // Resize the table container and then have FixedColumns adjust its layout....\r\n\t *      $('#content').width( 1200 );\r\n\t *      fc.fnRedrawLayout();\r\n\t */\"fnRedrawLayout\":function(){this._fnColCalc();this._fnGridLayout();this.fnUpdate();},/**\r\n\t * Mark a row such that it's height should be recalculated when using 'semiauto' row\r\n\t * height matching. This function will have no effect when 'none' or 'auto' row height\r\n\t * matching is used.\r\n\t *  @param   {Node} nTr TR element that should have it's height recalculated\r\n\t *  @returns {void}\r\n\t *  @example\r\n\t *      var table = $('#example').dataTable( {\r\n\t *          \"scrollX\": \"100%\"\r\n\t *      } );\r\n\t *      var fc = new $.fn.dataTable.fixedColumns( table );\r\n\t *\r\n\t *      // manipulate the table - mark the row as needing an update then update the table\r\n\t *      // this allows the redraw performed by DataTables fnUpdate to recalculate the row\r\n\t *      // height\r\n\t *      fc.fnRecalculateHeight();\r\n\t *      table.fnUpdate( $('#example tbody tr:eq(0)')[0], [\"insert date\", 1, 2, 3 ... ]);\r\n\t */\"fnRecalculateHeight\":function(nTr){delete nTr._DTTC_iHeight;nTr.style.height='auto';},/**\r\n\t * Set the height of a given row - provides cross browser compatibility\r\n\t *  @param   {Node} nTarget TR element that should have it's height recalculated\r\n\t *  @param   {int} iHeight Height in pixels to set\r\n\t *  @returns {void}\r\n\t *  @example\r\n\t *      var table = $('#example').dataTable( {\r\n\t *          \"scrollX\": \"100%\"\r\n\t *      } );\r\n\t *      var fc = new $.fn.dataTable.fixedColumns( table );\r\n\t *\r\n\t *      // You may want to do this after manipulating a row in the fixed column\r\n\t *      fc.fnSetRowHeight( $('#example tbody tr:eq(0)')[0], 50 );\r\n\t */\"fnSetRowHeight\":function(nTarget,iHeight){nTarget.style.height=iHeight+\"px\";},/**\r\n\t * Get data index information about a row or cell in the table body.\r\n\t * This function is functionally identical to fnGetPosition in DataTables,\r\n\t * taking the same parameter (TH, TD or TR node) and returning exactly the\r\n\t * the same information (data index information). THe difference between\r\n\t * the two is that this method takes into account the fixed columns in the\r\n\t * table, so you can pass in nodes from the master table, or the cloned\r\n\t * tables and get the index position for the data in the main table.\r\n\t *  @param {node} node TR, TH or TD element to get the information about\r\n\t *  @returns {int} If nNode is given as a TR, then a single index is \r\n\t *    returned, or if given as a cell, an array of [row index, column index\r\n\t *    (visible), column index (all)] is given.\r\n\t */\"fnGetPosition\":function(node){var idx;var inst=this.s.dt.oInstance;if(!$(node).parents('.DTFC_Cloned').length){// Not in a cloned table\nreturn inst.fnGetPosition(node);}else{// Its in the cloned table, so need to look up position\nif(node.nodeName.toLowerCase()==='tr'){idx=$(node).index();return inst.fnGetPosition($('tr',this.s.dt.nTBody)[idx]);}else{var colIdx=$(node).index();idx=$(node.parentNode).index();var row=inst.fnGetPosition($('tr',this.s.dt.nTBody)[idx]);return[row,colIdx,inst.oApi._fnVisibleToColumnIndex(this.s.dt,colIdx)];}}},fnToFixedNode:function(rowIdx,colIdx){var found;if(colIdx<this.s.iLeftColumns){found=$(this.dom.clone.left.body).find('[data-dt-row='+rowIdx+'][data-dt-column='+colIdx+']');}else if(colIdx>=this.s.iRightColumns){found=$(this.dom.clone.right.body).find('[data-dt-row='+rowIdx+'][data-dt-column='+colIdx+']');}if(found&&found.length){return found[0];}// Fallback - non-fixed node\nvar table=new $.fn.dataTable.Api(this.s.dt);return table.cell(rowIdx,colIdx).node();},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Private methods (they are of course public in JS, but recommended as private)\r\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /**\r\n\t * Initialisation for FixedColumns\r\n\t *  @param   {Object} oInit User settings for initialisation\r\n\t *  @returns {void}\r\n\t *  @private\r\n\t */\"_fnConstruct\":function(oInit){var i,iLen,iWidth,that=this;/* Sanity checking */if(typeof this.s.dt.oInstance.fnVersionCheck!='function'||this.s.dt.oInstance.fnVersionCheck('1.8.0')!==true){alert(\"FixedColumns \"+FixedColumns.VERSION+\" required DataTables 1.8.0 or later. \"+\"Please upgrade your DataTables installation\");return;}if(this.s.dt.oScroll.sX===\"\"){this.s.dt.oInstance.oApi._fnLog(this.s.dt,1,\"FixedColumns is not needed (no \"+\"x-scrolling in DataTables enabled), so no action will be taken. Use 'FixedHeader' for \"+\"column fixing when scrolling is not enabled\");return;}/* Apply the settings from the user / defaults */this.s=$.extend(true,this.s,FixedColumns.defaults,oInit);/* Set up the DOM as we need it and cache nodes */var classes=this.s.dt.oClasses;this.dom.grid.dt=$(this.s.dt.nTable).parents('div.'+classes.sScrollWrapper)[0];this.dom.scroller=$('div.'+classes.sScrollBody,this.dom.grid.dt)[0];/* Set up the DOM that we want for the fixed column layout grid */this._fnColCalc();this._fnGridSetup();/* Event handlers */var mouseController;var mouseDown=false;// When the mouse is down (drag scroll) the mouse controller cannot\n// change, as the browser keeps the original element as the scrolling one\n$(this.s.dt.nTableWrapper).on('mousedown.DTFC',function(e){if(e.button===0){mouseDown=true;$(document).one('mouseup',function(){mouseDown=false;});}});// When the body is scrolled - scroll the left and right columns\n$(this.dom.scroller).on('mouseover.DTFC touchstart.DTFC',function(){if(!mouseDown){mouseController='main';}}).on('scroll.DTFC',function(e){if(!mouseController&&e.originalEvent){mouseController='main';}if(mouseController==='main'){if(that.s.iLeftColumns>0){that.dom.grid.left.liner.scrollTop=that.dom.scroller.scrollTop;}if(that.s.iRightColumns>0){that.dom.grid.right.liner.scrollTop=that.dom.scroller.scrollTop;}}});var wheelType='onwheel'in document.createElement('div')?'wheel.DTFC':'mousewheel.DTFC';if(that.s.iLeftColumns>0){// When scrolling the left column, scroll the body and right column\n$(that.dom.grid.left.liner).on('mouseover.DTFC touchstart.DTFC',function(){if(!mouseDown){mouseController='left';}}).on('scroll.DTFC',function(e){if(!mouseController&&e.originalEvent){mouseController='left';}if(mouseController==='left'){that.dom.scroller.scrollTop=that.dom.grid.left.liner.scrollTop;if(that.s.iRightColumns>0){that.dom.grid.right.liner.scrollTop=that.dom.grid.left.liner.scrollTop;}}}).on(wheelType,function(e){// Pass horizontal scrolling through\nvar xDelta=e.type==='wheel'?-e.originalEvent.deltaX:e.originalEvent.wheelDeltaX;that.dom.scroller.scrollLeft-=xDelta;});}if(that.s.iRightColumns>0){// When scrolling the right column, scroll the body and the left column\n$(that.dom.grid.right.liner).on('mouseover.DTFC touchstart.DTFC',function(){if(!mouseDown){mouseController='right';}}).on('scroll.DTFC',function(e){if(!mouseController&&e.originalEvent){mouseController='right';}if(mouseController==='right'){that.dom.scroller.scrollTop=that.dom.grid.right.liner.scrollTop;if(that.s.iLeftColumns>0){that.dom.grid.left.liner.scrollTop=that.dom.grid.right.liner.scrollTop;}}}).on(wheelType,function(e){// Pass horizontal scrolling through\nvar xDelta=e.type==='wheel'?-e.originalEvent.deltaX:e.originalEvent.wheelDeltaX;that.dom.scroller.scrollLeft-=xDelta;});}$(window).on('resize.DTFC',function(){that._fnGridLayout.call(that);});var bFirstDraw=true;var jqTable=$(this.s.dt.nTable);jqTable.on('draw.dt.DTFC',function(){that._fnColCalc();that._fnDraw.call(that,bFirstDraw);bFirstDraw=false;}).on('column-sizing.dt.DTFC',function(){that._fnColCalc();that._fnGridLayout(that);}).on('column-visibility.dt.DTFC',function(e,settings,column,vis,recalc){if(recalc===undefined||recalc){that._fnColCalc();that._fnGridLayout(that);that._fnDraw(true);}}).on('select.dt.DTFC deselect.dt.DTFC',function(e,dt,type,indexes){if(e.namespace==='dt'){that._fnDraw(false);}}).on('destroy.dt.DTFC',function(){jqTable.off('.DTFC');$(that.dom.scroller).off('.DTFC');$(window).off('.DTFC');$(that.s.dt.nTableWrapper).off('.DTFC');$(that.dom.grid.left.liner).off('.DTFC '+wheelType);$(that.dom.grid.left.wrapper).remove();$(that.dom.grid.right.liner).off('.DTFC '+wheelType);$(that.dom.grid.right.wrapper).remove();});/* Get things right to start with - note that due to adjusting the columns, there must be\r\n\t\t * another redraw of the main table. It doesn't need to be a full redraw however.\r\n\t\t */this._fnGridLayout();this.s.dt.oInstance.fnDraw(false);},/**\r\n\t * Calculate the column widths for the grid layout\r\n\t *  @returns {void}\r\n\t *  @private\r\n\t */\"_fnColCalc\":function(){var that=this;var iLeftWidth=0;var iRightWidth=0;this.s.aiInnerWidths=[];this.s.aiOuterWidths=[];$.each(this.s.dt.aoColumns,function(i,col){var th=$(col.nTh);var border;if(!th.filter(':visible').length){that.s.aiInnerWidths.push(0);that.s.aiOuterWidths.push(0);}else{// Inner width is used to assign widths to cells\n// Outer width is used to calculate the container\nvar iWidth=th.outerWidth();// When working with the left most-cell, need to add on the\n// table's border to the outerWidth, since we need to take\n// account of it, but it isn't in any cell\nif(that.s.aiOuterWidths.length===0){border=$(that.s.dt.nTable).css('border-left-width');iWidth+=typeof border==='string'&&border.indexOf('px')===-1?1:parseInt(border,10);}// Likewise with the final column on the right\nif(that.s.aiOuterWidths.length===that.s.dt.aoColumns.length-1){border=$(that.s.dt.nTable).css('border-right-width');iWidth+=typeof border==='string'&&border.indexOf('px')===-1?1:parseInt(border,10);}that.s.aiOuterWidths.push(iWidth);that.s.aiInnerWidths.push(th.width());if(i<that.s.iLeftColumns){iLeftWidth+=iWidth;}if(that.s.iTableColumns-that.s.iRightColumns<=i){iRightWidth+=iWidth;}}});this.s.iLeftWidth=iLeftWidth;this.s.iRightWidth=iRightWidth;},/**\r\n\t * Set up the DOM for the fixed column. The way the layout works is to create a 1x3 grid\r\n\t * for the left column, the DataTable (for which we just reuse the scrolling element DataTable\r\n\t * puts into the DOM) and the right column. In each of he two fixed column elements there is a\r\n\t * grouping wrapper element and then a head, body and footer wrapper. In each of these we then\r\n\t * place the cloned header, body or footer tables. This effectively gives as 3x3 grid structure.\r\n\t *  @returns {void}\r\n\t *  @private\r\n\t */\"_fnGridSetup\":function(){var that=this;var oOverflow=this._fnDTOverflow();var block;this.dom.body=this.s.dt.nTable;this.dom.header=this.s.dt.nTHead.parentNode;this.dom.header.parentNode.parentNode.style.position=\"relative\";var nSWrapper=$('<div class=\"DTFC_ScrollWrapper\" style=\"position:relative; clear:both;\">'+'<div class=\"DTFC_LeftWrapper\" style=\"position:absolute; top:0; left:0;\" aria-hidden=\"true\">'+'<div class=\"DTFC_LeftHeadWrapper\" style=\"position:relative; top:0; left:0; overflow:hidden;\"></div>'+'<div class=\"DTFC_LeftBodyWrapper\" style=\"position:relative; top:0; left:0; height:0; overflow:hidden;\">'+'<div class=\"DTFC_LeftBodyLiner\" style=\"position:relative; top:0; left:0; overflow-y:scroll;\"></div>'+'</div>'+'<div class=\"DTFC_LeftFootWrapper\" style=\"position:relative; top:0; left:0; overflow:hidden;\"></div>'+'</div>'+'<div class=\"DTFC_RightWrapper\" style=\"position:absolute; top:0; right:0;\" aria-hidden=\"true\">'+'<div class=\"DTFC_RightHeadWrapper\" style=\"position:relative; top:0; left:0;\">'+'<div class=\"DTFC_RightHeadBlocker DTFC_Blocker\" style=\"position:absolute; top:0; bottom:0;\"></div>'+'</div>'+'<div class=\"DTFC_RightBodyWrapper\" style=\"position:relative; top:0; left:0; height:0; overflow:hidden;\">'+'<div class=\"DTFC_RightBodyLiner\" style=\"position:relative; top:0; left:0; overflow-y:scroll;\"></div>'+'</div>'+'<div class=\"DTFC_RightFootWrapper\" style=\"position:relative; top:0; left:0;\">'+'<div class=\"DTFC_RightFootBlocker DTFC_Blocker\" style=\"position:absolute; top:0; bottom:0;\"></div>'+'</div>'+'</div>'+'</div>')[0];var nLeft=nSWrapper.childNodes[0];var nRight=nSWrapper.childNodes[1];this.dom.grid.dt.parentNode.insertBefore(nSWrapper,this.dom.grid.dt);nSWrapper.appendChild(this.dom.grid.dt);this.dom.grid.wrapper=nSWrapper;if(this.s.iLeftColumns>0){this.dom.grid.left.wrapper=nLeft;this.dom.grid.left.head=nLeft.childNodes[0];this.dom.grid.left.body=nLeft.childNodes[1];this.dom.grid.left.liner=$('div.DTFC_LeftBodyLiner',nSWrapper)[0];nSWrapper.appendChild(nLeft);}if(this.s.iRightColumns>0){this.dom.grid.right.wrapper=nRight;this.dom.grid.right.head=nRight.childNodes[0];this.dom.grid.right.body=nRight.childNodes[1];this.dom.grid.right.liner=$('div.DTFC_RightBodyLiner',nSWrapper)[0];nRight.style.right=oOverflow.bar+\"px\";block=$('div.DTFC_RightHeadBlocker',nSWrapper)[0];block.style.width=oOverflow.bar+\"px\";block.style.right=-oOverflow.bar+\"px\";this.dom.grid.right.headBlock=block;block=$('div.DTFC_RightFootBlocker',nSWrapper)[0];block.style.width=oOverflow.bar+\"px\";block.style.right=-oOverflow.bar+\"px\";this.dom.grid.right.footBlock=block;nSWrapper.appendChild(nRight);}if(this.s.dt.nTFoot){this.dom.footer=this.s.dt.nTFoot.parentNode;if(this.s.iLeftColumns>0){this.dom.grid.left.foot=nLeft.childNodes[2];}if(this.s.iRightColumns>0){this.dom.grid.right.foot=nRight.childNodes[2];}}// RTL support - swap the position of the left and right columns (#48)\nif(this.s.rtl){$('div.DTFC_RightHeadBlocker',nSWrapper).css({left:-oOverflow.bar+'px',right:''});}},/**\r\n\t * Style and position the grid used for the FixedColumns layout\r\n\t *  @returns {void}\r\n\t *  @private\r\n\t */\"_fnGridLayout\":function(){var that=this;var oGrid=this.dom.grid;var iWidth=$(oGrid.wrapper).width();var iBodyHeight=this.s.dt.nTable.parentNode.offsetHeight;var iFullHeight=this.s.dt.nTable.parentNode.parentNode.offsetHeight;var oOverflow=this._fnDTOverflow();var iLeftWidth=this.s.iLeftWidth;var iRightWidth=this.s.iRightWidth;var rtl=$(this.dom.body).css('direction')==='rtl';var wrapper;var scrollbarAdjust=function(node,width){if(!oOverflow.bar){// If there is no scrollbar (Macs) we need to hide the auto scrollbar\nnode.style.width=width+20+\"px\";node.style.paddingRight=\"20px\";node.style.boxSizing=\"border-box\";}else if(that._firefoxScrollError()){// See the above function for why this is required\nif($(node).height()>34){node.style.width=width+oOverflow.bar+\"px\";}}else{// Otherwise just overflow by the scrollbar\nnode.style.width=width+oOverflow.bar+\"px\";}};// When x scrolling - don't paint the fixed columns over the x scrollbar\nif(oOverflow.x){iBodyHeight-=oOverflow.bar;}oGrid.wrapper.style.height=iFullHeight+\"px\";if(this.s.iLeftColumns>0){wrapper=oGrid.left.wrapper;wrapper.style.width=iLeftWidth+'px';wrapper.style.height='1px';// Swap the position of the left and right columns for rtl (#48)\n// This is always up against the edge, scrollbar on the far side\nif(rtl){wrapper.style.left='';wrapper.style.right=0;}else{wrapper.style.left=0;wrapper.style.right='';}oGrid.left.body.style.height=iBodyHeight+\"px\";if(oGrid.left.foot){oGrid.left.foot.style.top=(oOverflow.x?oOverflow.bar:0)+\"px\";// shift footer for scrollbar\n}scrollbarAdjust(oGrid.left.liner,iLeftWidth);oGrid.left.liner.style.height=iBodyHeight+\"px\";oGrid.left.liner.style.maxHeight=iBodyHeight+\"px\";}if(this.s.iRightColumns>0){wrapper=oGrid.right.wrapper;wrapper.style.width=iRightWidth+'px';wrapper.style.height='1px';// Need to take account of the vertical scrollbar\nif(this.s.rtl){wrapper.style.left=oOverflow.y?oOverflow.bar+'px':0;wrapper.style.right='';}else{wrapper.style.left='';wrapper.style.right=oOverflow.y?oOverflow.bar+'px':0;}oGrid.right.body.style.height=iBodyHeight+\"px\";if(oGrid.right.foot){oGrid.right.foot.style.top=(oOverflow.x?oOverflow.bar:0)+\"px\";}scrollbarAdjust(oGrid.right.liner,iRightWidth);oGrid.right.liner.style.height=iBodyHeight+\"px\";oGrid.right.liner.style.maxHeight=iBodyHeight+\"px\";oGrid.right.headBlock.style.display=oOverflow.y?'block':'none';oGrid.right.footBlock.style.display=oOverflow.y?'block':'none';}},/**\r\n\t * Get information about the DataTable's scrolling state - specifically if the table is scrolling\r\n\t * on either the x or y axis, and also the scrollbar width.\r\n\t *  @returns {object} Information about the DataTables scrolling state with the properties:\r\n\t *    'x', 'y' and 'bar'\r\n\t *  @private\r\n\t */\"_fnDTOverflow\":function(){var nTable=this.s.dt.nTable;var nTableScrollBody=nTable.parentNode;var out={\"x\":false,\"y\":false,\"bar\":this.s.dt.oScroll.iBarWidth};if(nTable.offsetWidth>nTableScrollBody.clientWidth){out.x=true;}if(nTable.offsetHeight>nTableScrollBody.clientHeight){out.y=true;}return out;},/**\r\n\t * Clone and position the fixed columns\r\n\t *  @returns {void}\r\n\t *  @param   {Boolean} bAll Indicate if the header and footer should be updated as well (true)\r\n\t *  @private\r\n\t */\"_fnDraw\":function(bAll){this._fnGridLayout();this._fnCloneLeft(bAll);this._fnCloneRight(bAll);/* Draw callback function */if(this.s.fnDrawCallback!==null){this.s.fnDrawCallback.call(this,this.dom.clone.left,this.dom.clone.right);}/* Event triggering */$(this).trigger('draw.dtfc',{\"leftClone\":this.dom.clone.left,\"rightClone\":this.dom.clone.right});},/**\r\n\t * Clone the right columns\r\n\t *  @returns {void}\r\n\t *  @param   {Boolean} bAll Indicate if the header and footer should be updated as well (true)\r\n\t *  @private\r\n\t */\"_fnCloneRight\":function(bAll){if(this.s.iRightColumns<=0){return;}var that=this,i,jq,aiColumns=[];for(i=this.s.iTableColumns-this.s.iRightColumns;i<this.s.iTableColumns;i++){if(this.s.dt.aoColumns[i].bVisible){aiColumns.push(i);}}this._fnClone(this.dom.clone.right,this.dom.grid.right,aiColumns,bAll);},/**\r\n\t * Clone the left columns\r\n\t *  @returns {void}\r\n\t *  @param   {Boolean} bAll Indicate if the header and footer should be updated as well (true)\r\n\t *  @private\r\n\t */\"_fnCloneLeft\":function(bAll){if(this.s.iLeftColumns<=0){return;}var that=this,i,jq,aiColumns=[];for(i=0;i<this.s.iLeftColumns;i++){if(this.s.dt.aoColumns[i].bVisible){aiColumns.push(i);}}this._fnClone(this.dom.clone.left,this.dom.grid.left,aiColumns,bAll);},/**\r\n\t * Make a copy of the layout object for a header or footer element from DataTables. Note that\r\n\t * this method will clone the nodes in the layout object.\r\n\t *  @returns {Array} Copy of the layout array\r\n\t *  @param   {Object} aoOriginal Layout array from DataTables (aoHeader or aoFooter)\r\n\t *  @param   {Object} aiColumns Columns to copy\r\n\t *  @param   {boolean} events Copy cell events or not\r\n\t *  @private\r\n\t */\"_fnCopyLayout\":function(aoOriginal,aiColumns,events){var aReturn=[];var aClones=[];var aCloned=[];for(var i=0,iLen=aoOriginal.length;i<iLen;i++){var aRow=[];aRow.nTr=$(aoOriginal[i].nTr).clone(events,false)[0];for(var j=0,jLen=this.s.iTableColumns;j<jLen;j++){if($.inArray(j,aiColumns)===-1){continue;}var iCloned=$.inArray(aoOriginal[i][j].cell,aCloned);if(iCloned===-1){var nClone=$(aoOriginal[i][j].cell).clone(events,false)[0];aClones.push(nClone);aCloned.push(aoOriginal[i][j].cell);aRow.push({\"cell\":nClone,\"unique\":aoOriginal[i][j].unique});}else{aRow.push({\"cell\":aClones[iCloned],\"unique\":aoOriginal[i][j].unique});}}aReturn.push(aRow);}return aReturn;},/**\r\n\t * Clone the DataTable nodes and place them in the DOM (sized correctly)\r\n\t *  @returns {void}\r\n\t *  @param   {Object} oClone Object containing the header, footer and body cloned DOM elements\r\n\t *  @param   {Object} oGrid Grid object containing the display grid elements for the cloned\r\n\t *                    column (left or right)\r\n\t *  @param   {Array} aiColumns Column indexes which should be operated on from the DataTable\r\n\t *  @param   {Boolean} bAll Indicate if the header and footer should be updated as well (true)\r\n\t *  @private\r\n\t */\"_fnClone\":function(oClone,oGrid,aiColumns,bAll){var that=this,i,iLen,j,jLen,jq,nTarget,iColumn,nClone,iIndex,aoCloneLayout,jqCloneThead,aoFixedHeader,dt=this.s.dt;/*\r\n\t\t * Header\r\n\t\t */if(bAll){$(oClone.header).remove();oClone.header=$(this.dom.header).clone(true,false)[0];oClone.header.className+=\" DTFC_Cloned\";oClone.header.style.width=\"100%\";oGrid.head.appendChild(oClone.header);/* Copy the DataTables layout cache for the header for our floating column */aoCloneLayout=this._fnCopyLayout(dt.aoHeader,aiColumns,true);jqCloneThead=$('>thead',oClone.header);jqCloneThead.empty();/* Add the created cloned TR elements to the table */for(i=0,iLen=aoCloneLayout.length;i<iLen;i++){jqCloneThead[0].appendChild(aoCloneLayout[i].nTr);}/* Use the handy _fnDrawHead function in DataTables to do the rowspan/colspan\r\n\t\t\t * calculations for us\r\n\t\t\t */dt.oApi._fnDrawHead(dt,aoCloneLayout,true);}else{/* To ensure that we copy cell classes exactly, regardless of colspan, multiple rows\r\n\t\t\t * etc, we make a copy of the header from the DataTable again, but don't insert the\r\n\t\t\t * cloned cells, just copy the classes across. To get the matching layout for the\r\n\t\t\t * fixed component, we use the DataTables _fnDetectHeader method, allowing 1:1 mapping\r\n\t\t\t */aoCloneLayout=this._fnCopyLayout(dt.aoHeader,aiColumns,false);aoFixedHeader=[];dt.oApi._fnDetectHeader(aoFixedHeader,$('>thead',oClone.header)[0]);for(i=0,iLen=aoCloneLayout.length;i<iLen;i++){for(j=0,jLen=aoCloneLayout[i].length;j<jLen;j++){aoFixedHeader[i][j].cell.className=aoCloneLayout[i][j].cell.className;// If jQuery UI theming is used we need to copy those elements as well\n$('span.DataTables_sort_icon',aoFixedHeader[i][j].cell).each(function(){this.className=$('span.DataTables_sort_icon',aoCloneLayout[i][j].cell)[0].className;});}}}this._fnEqualiseHeights('thead',this.dom.header,oClone.header);/*\r\n\t\t * Body\r\n\t\t */if(this.s.sHeightMatch=='auto'){/* Remove any heights which have been applied already and let the browser figure it out */$('>tbody>tr',that.dom.body).css('height','auto');}if(oClone.body!==null){$(oClone.body).remove();oClone.body=null;}oClone.body=$(this.dom.body).clone(true)[0];oClone.body.className+=\" DTFC_Cloned\";oClone.body.style.paddingBottom=dt.oScroll.iBarWidth+\"px\";oClone.body.style.marginBottom=dt.oScroll.iBarWidth*2+\"px\";/* For IE */if(oClone.body.getAttribute('id')!==null){oClone.body.removeAttribute('id');}$('>thead>tr',oClone.body).empty();$('>tfoot',oClone.body).remove();var nBody=$('tbody',oClone.body)[0];$(nBody).empty();if(dt.aiDisplay.length>0){/* Copy the DataTables' header elements to force the column width in exactly the\r\n\t\t\t * same way that DataTables does it - have the header element, apply the width and\r\n\t\t\t * colapse it down\r\n\t\t\t */var nInnerThead=$('>thead>tr',oClone.body)[0];for(iIndex=0;iIndex<aiColumns.length;iIndex++){iColumn=aiColumns[iIndex];nClone=$(dt.aoColumns[iColumn].nTh).clone(true)[0];nClone.innerHTML=\"\";var oStyle=nClone.style;oStyle.paddingTop=\"0\";oStyle.paddingBottom=\"0\";oStyle.borderTopWidth=\"0\";oStyle.borderBottomWidth=\"0\";oStyle.height=0;oStyle.width=that.s.aiInnerWidths[iColumn]+\"px\";nInnerThead.appendChild(nClone);}/* Add in the tbody elements, cloning form the master table */$('>tbody>tr',that.dom.body).each(function(z){var i=that.s.dt.oFeatures.bServerSide===false?that.s.dt.aiDisplay[that.s.dt._iDisplayStart+z]:z;var aTds=that.s.dt.aoData[i].anCells||$(this).children('td, th');var n=this.cloneNode(false);n.removeAttribute('id');n.setAttribute('data-dt-row',i);for(iIndex=0;iIndex<aiColumns.length;iIndex++){iColumn=aiColumns[iIndex];if(aTds.length>0){nClone=$(aTds[iColumn]).clone(true,true)[0];nClone.removeAttribute('id');nClone.setAttribute('data-dt-row',i);nClone.setAttribute('data-dt-column',iColumn);n.appendChild(nClone);}}nBody.appendChild(n);});}else{$('>tbody>tr',that.dom.body).each(function(z){nClone=this.cloneNode(true);nClone.className+=' DTFC_NoData';$('td',nClone).html('');nBody.appendChild(nClone);});}oClone.body.style.width=\"100%\";oClone.body.style.margin=\"0\";oClone.body.style.padding=\"0\";// Interop with Scroller - need to use a height forcing element in the\n// scrolling area in the same way that Scroller does in the body scroll.\nif(dt.oScroller!==undefined){var scrollerForcer=dt.oScroller.dom.force;if(!oGrid.forcer){oGrid.forcer=scrollerForcer.cloneNode(true);oGrid.liner.appendChild(oGrid.forcer);}else{oGrid.forcer.style.height=scrollerForcer.style.height;}}oGrid.liner.appendChild(oClone.body);this._fnEqualiseHeights('tbody',that.dom.body,oClone.body);/*\r\n\t\t * Footer\r\n\t\t */if(dt.nTFoot!==null){if(bAll){if(oClone.footer!==null){oClone.footer.parentNode.removeChild(oClone.footer);}oClone.footer=$(this.dom.footer).clone(true,true)[0];oClone.footer.className+=\" DTFC_Cloned\";oClone.footer.style.width=\"100%\";oGrid.foot.appendChild(oClone.footer);/* Copy the footer just like we do for the header */aoCloneLayout=this._fnCopyLayout(dt.aoFooter,aiColumns,true);var jqCloneTfoot=$('>tfoot',oClone.footer);jqCloneTfoot.empty();for(i=0,iLen=aoCloneLayout.length;i<iLen;i++){jqCloneTfoot[0].appendChild(aoCloneLayout[i].nTr);}dt.oApi._fnDrawHead(dt,aoCloneLayout,true);}else{aoCloneLayout=this._fnCopyLayout(dt.aoFooter,aiColumns,false);var aoCurrFooter=[];dt.oApi._fnDetectHeader(aoCurrFooter,$('>tfoot',oClone.footer)[0]);for(i=0,iLen=aoCloneLayout.length;i<iLen;i++){for(j=0,jLen=aoCloneLayout[i].length;j<jLen;j++){aoCurrFooter[i][j].cell.className=aoCloneLayout[i][j].cell.className;}}}this._fnEqualiseHeights('tfoot',this.dom.footer,oClone.footer);}/* Equalise the column widths between the header footer and body - body get's priority */var anUnique=dt.oApi._fnGetUniqueThs(dt,$('>thead',oClone.header)[0]);$(anUnique).each(function(i){iColumn=aiColumns[i];this.style.width=that.s.aiInnerWidths[iColumn]+\"px\";});if(that.s.dt.nTFoot!==null){anUnique=dt.oApi._fnGetUniqueThs(dt,$('>tfoot',oClone.footer)[0]);$(anUnique).each(function(i){iColumn=aiColumns[i];this.style.width=that.s.aiInnerWidths[iColumn]+\"px\";});}},/**\r\n\t * From a given table node (THEAD etc), get a list of TR direct child elements\r\n\t *  @param   {Node} nIn Table element to search for TR elements (THEAD, TBODY or TFOOT element)\r\n\t *  @returns {Array} List of TR elements found\r\n\t *  @private\r\n\t */\"_fnGetTrNodes\":function(nIn){var aOut=[];for(var i=0,iLen=nIn.childNodes.length;i<iLen;i++){if(nIn.childNodes[i].nodeName.toUpperCase()==\"TR\"){aOut.push(nIn.childNodes[i]);}}return aOut;},/**\r\n\t * Equalise the heights of the rows in a given table node in a cross browser way\r\n\t *  @returns {void}\r\n\t *  @param   {String} nodeName Node type - thead, tbody or tfoot\r\n\t *  @param   {Node} original Original node to take the heights from\r\n\t *  @param   {Node} clone Copy the heights to\r\n\t *  @private\r\n\t */\"_fnEqualiseHeights\":function(nodeName,original,clone){if(this.s.sHeightMatch=='none'&&nodeName!=='thead'&&nodeName!=='tfoot'){return;}var that=this,i,iLen,iHeight,iHeight2,iHeightOriginal,iHeightClone,rootOriginal=original.getElementsByTagName(nodeName)[0],rootClone=clone.getElementsByTagName(nodeName)[0],jqBoxHack=$('>'+nodeName+'>tr:eq(0)',original).children(':first'),iBoxHack=jqBoxHack.outerHeight()-jqBoxHack.height(),anOriginal=this._fnGetTrNodes(rootOriginal),anClone=this._fnGetTrNodes(rootClone),heights=[];for(i=0,iLen=anClone.length;i<iLen;i++){iHeightOriginal=anOriginal[i].offsetHeight;iHeightClone=anClone[i].offsetHeight;iHeight=iHeightClone>iHeightOriginal?iHeightClone:iHeightOriginal;if(this.s.sHeightMatch=='semiauto'){anOriginal[i]._DTTC_iHeight=iHeight;}heights.push(iHeight);}for(i=0,iLen=anClone.length;i<iLen;i++){anClone[i].style.height=heights[i]+\"px\";anOriginal[i].style.height=heights[i]+\"px\";}},/**\r\n\t * Determine if the UA suffers from Firefox's overflow:scroll scrollbars\r\n\t * not being shown bug.\r\n\t *\r\n\t * Firefox doesn't draw scrollbars, even if it is told to using\r\n\t * overflow:scroll, if the div is less than 34px height. See bugs 292284 and\r\n\t * 781885. Using UA detection here since this is particularly hard to detect\r\n\t * using objects - its a straight up rendering error in Firefox.\r\n\t *\r\n\t * @return {boolean} True if Firefox error is present, false otherwise\r\n\t */_firefoxScrollError:function(){if(_firefoxScroll===undefined){var test=$('<div/>').css({position:'absolute',top:0,left:0,height:10,width:50,overflow:'scroll'}).appendTo('body');// Make sure this doesn't apply on Macs with 0 width scrollbars\n_firefoxScroll=test[0].clientWidth===test[0].offsetWidth&&this._fnDTOverflow().bar!==0;test.remove();}return _firefoxScroll;}});/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Statics\r\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /**\r\n * FixedColumns default settings for initialisation\r\n *  @name FixedColumns.defaults\r\n *  @namespace\r\n *  @static\r\n */FixedColumns.defaults=/** @lends FixedColumns.defaults */{/**\r\n\t * Number of left hand columns to fix in position\r\n\t *  @type     int\r\n\t *  @default  1\r\n\t *  @static\r\n\t *  @example\r\n\t *      var  = $('#example').dataTable( {\r\n\t *          \"scrollX\": \"100%\"\r\n\t *      } );\r\n\t *      new $.fn.dataTable.fixedColumns( table, {\r\n\t *          \"leftColumns\": 2\r\n\t *      } );\r\n\t */\"iLeftColumns\":1,/**\r\n\t * Number of right hand columns to fix in position\r\n\t *  @type     int\r\n\t *  @default  0\r\n\t *  @static\r\n\t *  @example\r\n\t *      var table = $('#example').dataTable( {\r\n\t *          \"scrollX\": \"100%\"\r\n\t *      } );\r\n\t *      new $.fn.dataTable.fixedColumns( table, {\r\n\t *          \"rightColumns\": 1\r\n\t *      } );\r\n\t */\"iRightColumns\":0,/**\r\n\t * Draw callback function which is called when FixedColumns has redrawn the fixed assets\r\n\t *  @type     function(object, object):void\r\n\t *  @default  null\r\n\t *  @static\r\n\t *  @example\r\n\t *      var table = $('#example').dataTable( {\r\n\t *          \"scrollX\": \"100%\"\r\n\t *      } );\r\n\t *      new $.fn.dataTable.fixedColumns( table, {\r\n\t *          \"drawCallback\": function () {\r\n\t *\t            alert( \"FixedColumns redraw\" );\r\n\t *\t        }\r\n\t *      } );\r\n\t */\"fnDrawCallback\":null,/**\r\n\t * Height matching algorthim to use. This can be \"none\" which will result in no height\r\n\t * matching being applied by FixedColumns (height matching could be forced by CSS in this\r\n\t * case), \"semiauto\" whereby the height calculation will be performed once, and the result\r\n\t * cached to be used again (fnRecalculateHeight can be used to force recalculation), or\r\n\t * \"auto\" when height matching is performed on every draw (slowest but must accurate)\r\n\t *  @type     string\r\n\t *  @default  semiauto\r\n\t *  @static\r\n\t *  @example\r\n\t *      var table = $('#example').dataTable( {\r\n\t *          \"scrollX\": \"100%\"\r\n\t *      } );\r\n\t *      new $.fn.dataTable.fixedColumns( table, {\r\n\t *          \"heightMatch\": \"auto\"\r\n\t *      } );\r\n\t */\"sHeightMatch\":\"semiauto\"};/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Constants\r\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /**\r\n * FixedColumns version\r\n *  @name      FixedColumns.version\r\n *  @type      String\r\n *  @default   See code\r\n *  @static\r\n */FixedColumns.version=\"3.8.0\";/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * DataTables API integration\r\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */DataTable.Api.register('fixedColumns()',function(){return this;});DataTable.Api.register('fixedColumns().update()',function(){return this.iterator('table',function(ctx){if(ctx._oFixedColumns){ctx._oFixedColumns.fnUpdate();}});});DataTable.Api.register('fixedColumns().relayout()',function(){return this.iterator('table',function(ctx){if(ctx._oFixedColumns){ctx._oFixedColumns.fnRedrawLayout();}});});DataTable.Api.register('rows().recalcHeight()',function(){return this.iterator('row',function(ctx,idx){if(ctx._oFixedColumns){ctx._oFixedColumns.fnRecalculateHeight(this.row(idx).node());}});});DataTable.Api.register('fixedColumns().rowIndex()',function(row){row=$(row);return row.parents('.DTFC_Cloned').length?this.rows({page:'current'}).indexes()[row.index()]:this.row(row).index();});DataTable.Api.register('fixedColumns().cellIndex()',function(cell){cell=$(cell);if(cell.parents('.DTFC_Cloned').length){var rowClonedIdx=cell.parent().index();var rowIdx=this.rows({page:'current'}).indexes()[rowClonedIdx];var columnIdx;if(cell.parents('.DTFC_LeftWrapper').length){columnIdx=cell.index();}else{var columns=this.columns().flatten().length;columnIdx=columns-this.context[0]._oFixedColumns.s.iRightColumns+cell.index();}return{row:rowIdx,column:this.column.index('toData',columnIdx),columnVisible:columnIdx};}else{return this.cell(cell).index();}});DataTable.Api.registerPlural('cells().fixedNodes()','cell().fixedNode()',function(){return this.iterator('cell',function(settings,row,column){return settings._oFixedColumns?settings._oFixedColumns.fnToFixedNode(row,column):this.node();},1);});/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Initialisation\r\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ // Attach a listener to the document which listens for DataTables initialisation\n// events so we can automatically initialise\n$(document).on('init.dt.fixedColumns',function(e,settings){if(e.namespace!=='dt'){return;}var init=settings.oInit.fixedColumns;var defaults=DataTable.defaults.fixedColumns;if(init||defaults){var opts=$.extend({},init,defaults);if(init!==false){new FixedColumns(settings,opts);}}});// Make FixedColumns accessible from the DataTables instance\n$.fn.dataTable.FixedColumns=FixedColumns;$.fn.DataTable.FixedColumns=FixedColumns;return FixedColumns;});/*! Bootstrap 4 styling wrapper for FixedColumns\r\n * ©2018 SpryMedia Ltd - datatables.net/license\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-bs4'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-fixedcolumns'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){return $.fn.dataTable;});/*! FixedHeader 3.1.6-dev\r\n * ©2009-2018 SpryMedia Ltd - datatables.net/license\r\n */ /**\r\n * @summary     FixedHeader\r\n * @description Fix a table's header or footer, so it is always visible while\r\n *              scrolling\r\n * @version     3.1.6-dev\r\n * @file        dataTables.fixedHeader.js\r\n * @author      SpryMedia Ltd (www.sprymedia.co.uk)\r\n * @contact     www.sprymedia.co.uk/contact\r\n * @copyright   Copyright 2009-2018 SpryMedia Ltd.\r\n *\r\n * This source file is free software, available under the following license:\r\n *   MIT license - http://datatables.net/license/mit\r\n *\r\n * This source file is distributed in the hope that it will be useful, but\r\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\r\n *\r\n * For details please refer to: http://www.datatables.net\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;var _instCounter=0;var FixedHeader=function(dt,config){// Sanity check - you just know it will happen\nif(!(this instanceof FixedHeader)){throw\"FixedHeader must be initialised with the 'new' keyword.\";}// Allow a boolean true for defaults\nif(config===true){config={};}dt=new DataTable.Api(dt);this.c=$.extend(true,{},FixedHeader.defaults,config);this.s={dt:dt,position:{theadTop:0,tbodyTop:0,tfootTop:0,tfootBottom:0,width:0,left:0,tfootHeight:0,theadHeight:0,windowHeight:$(window).height(),visible:true},headerMode:null,footerMode:null,autoWidth:dt.settings()[0].oFeatures.bAutoWidth,namespace:'.dtfc'+_instCounter++,scrollLeft:{header:-1,footer:-1},enable:true};this.dom={floatingHeader:null,thead:$(dt.table().header()),tbody:$(dt.table().body()),tfoot:$(dt.table().footer()),header:{host:null,floating:null,placeholder:null},footer:{host:null,floating:null,placeholder:null}};this.dom.header.host=this.dom.thead.parent();this.dom.footer.host=this.dom.tfoot.parent();var dtSettings=dt.settings()[0];if(dtSettings._fixedHeader){throw\"FixedHeader already initialised on table \"+dtSettings.nTable.id;}dtSettings._fixedHeader=this;this._constructor();};/*\r\n * Variable: FixedHeader\r\n * Purpose:  Prototype for FixedHeader\r\n * Scope:    global\r\n */$.extend(FixedHeader.prototype,{/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * API methods\r\n\t */ /**\r\n\t * Kill off FH and any events\r\n\t */destroy:function(){this.s.dt.off('.dtfc');$(window).off(this.s.namespace);if(this.c.header){this._modeChange('in-place','header',true);}if(this.c.footer&&this.dom.tfoot.length){this._modeChange('in-place','footer',true);}},/**\r\n\t * Enable / disable the fixed elements\r\n\t *\r\n\t * @param  {boolean} enable `true` to enable, `false` to disable\r\n\t */enable:function(enable,update){this.s.enable=enable;if(update||update===undefined){this._positions();this._scroll(true);}},/**\r\n\t * Get enabled status\r\n\t */enabled:function(){return this.s.enable;},/**\r\n\t * Set header offset \r\n\t *\r\n\t * @param  {int} new value for headerOffset\r\n\t */headerOffset:function(offset){if(offset!==undefined){this.c.headerOffset=offset;this.update();}return this.c.headerOffset;},/**\r\n\t * Set footer offset\r\n\t *\r\n\t * @param  {int} new value for footerOffset\r\n\t */footerOffset:function(offset){if(offset!==undefined){this.c.footerOffset=offset;this.update();}return this.c.footerOffset;},/**\r\n\t * Recalculate the position of the fixed elements and force them into place\r\n\t */update:function(){var table=this.s.dt.table().node();if($(table).is(':visible')){this.enable(true,false);}else{this.enable(false,false);}this._positions();this._scroll(true);},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Constructor\r\n\t */ /**\r\n\t * FixedHeader constructor - adding the required event listeners and\r\n\t * simple initialisation\r\n\t *\r\n\t * @private\r\n\t */_constructor:function(){var that=this;var dt=this.s.dt;$(window).on('scroll'+this.s.namespace,function(){that._scroll();}).on('resize'+this.s.namespace,DataTable.util.throttle(function(){that.s.position.windowHeight=$(window).height();that.update();},50));var autoHeader=$('.fh-fixedHeader');if(!this.c.headerOffset&&autoHeader.length){this.c.headerOffset=autoHeader.outerHeight();}var autoFooter=$('.fh-fixedFooter');if(!this.c.footerOffset&&autoFooter.length){this.c.footerOffset=autoFooter.outerHeight();}dt.on('column-reorder.dt.dtfc column-visibility.dt.dtfc draw.dt.dtfc column-sizing.dt.dtfc responsive-display.dt.dtfc',function(){that.update();});dt.on('destroy.dtfc',function(){that.destroy();});this._positions();this._scroll();},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Private methods\r\n\t */ /**\r\n\t * Clone a fixed item to act as a place holder for the original element\r\n\t * which is moved into a clone of the table element, and moved around the\r\n\t * document to give the fixed effect.\r\n\t *\r\n\t * @param  {string}  item  'header' or 'footer'\r\n\t * @param  {boolean} force Force the clone to happen, or allow automatic\r\n\t *   decision (reuse existing if available)\r\n\t * @private\r\n\t */_clone:function(item,force){var dt=this.s.dt;var itemDom=this.dom[item];var itemElement=item==='header'?this.dom.thead:this.dom.tfoot;if(!force&&itemDom.floating){// existing floating element - reuse it\nitemDom.floating.removeClass('fixedHeader-floating fixedHeader-locked');}else{if(itemDom.floating){itemDom.placeholder.remove();this._unsize(item);itemDom.floating.children().detach();itemDom.floating.remove();}itemDom.floating=$(dt.table().node().cloneNode(false)).css('table-layout','fixed').attr('aria-hidden','true').removeAttr('id').append(itemElement).appendTo('body');// Insert a fake thead/tfoot into the DataTable to stop it jumping around\nitemDom.placeholder=itemElement.clone(false);itemDom.placeholder.find('*[id]').removeAttr('id');itemDom.host.prepend(itemDom.placeholder);// Clone widths\nthis._matchWidths(itemDom.placeholder,itemDom.floating);}},/**\r\n\t * Copy widths from the cells in one element to another. This is required\r\n\t * for the footer as the footer in the main table takes its sizes from the\r\n\t * header columns. That isn't present in the footer so to have it still\r\n\t * align correctly, the sizes need to be copied over. It is also required\r\n\t * for the header when auto width is not enabled\r\n\t *\r\n\t * @param  {jQuery} from Copy widths from\r\n\t * @param  {jQuery} to   Copy widths to\r\n\t * @private\r\n\t */_matchWidths:function(from,to){var get=function(name){return $(name,from).map(function(){return $(this).width();}).toArray();};var set=function(name,toWidths){$(name,to).each(function(i){$(this).css({width:toWidths[i],minWidth:toWidths[i]});});};var thWidths=get('th');var tdWidths=get('td');set('th',thWidths);set('td',tdWidths);},/**\r\n\t * Remove assigned widths from the cells in an element. This is required\r\n\t * when inserting the footer back into the main table so the size is defined\r\n\t * by the header columns and also when auto width is disabled in the\r\n\t * DataTable.\r\n\t *\r\n\t * @param  {string} item The `header` or `footer`\r\n\t * @private\r\n\t */_unsize:function(item){var el=this.dom[item].floating;if(el&&(item==='footer'||item==='header'&&!this.s.autoWidth)){$('th, td',el).css({width:'',minWidth:''});}else if(el&&item==='header'){$('th, td',el).css('min-width','');}},/**\r\n\t * Reposition the floating elements to take account of horizontal page\r\n\t * scroll\r\n\t *\r\n\t * @param  {string} item       The `header` or `footer`\r\n\t * @param  {int}    scrollLeft Document scrollLeft\r\n\t * @private\r\n\t */_horizontal:function(item,scrollLeft){var itemDom=this.dom[item];var position=this.s.position;var lastScrollLeft=this.s.scrollLeft;if(itemDom.floating&&lastScrollLeft[item]!==scrollLeft){itemDom.floating.css('left',position.left-scrollLeft);lastScrollLeft[item]=scrollLeft;}},/**\r\n\t * Change from one display mode to another. Each fixed item can be in one\r\n\t * of:\r\n\t *\r\n\t * * `in-place` - In the main DataTable\r\n\t * * `in` - Floating over the DataTable\r\n\t * * `below` - (Header only) Fixed to the bottom of the table body\r\n\t * * `above` - (Footer only) Fixed to the top of the table body\r\n\t * \r\n\t * @param  {string}  mode        Mode that the item should be shown in\r\n\t * @param  {string}  item        'header' or 'footer'\r\n\t * @param  {boolean} forceChange Force a redraw of the mode, even if already\r\n\t *     in that mode.\r\n\t * @private\r\n\t */_modeChange:function(mode,item,forceChange){var dt=this.s.dt;var itemDom=this.dom[item];var position=this.s.position;// Record focus. Browser's will cause input elements to loose focus if\n// they are inserted else where in the doc\nvar tablePart=this.dom[item==='footer'?'tfoot':'thead'];var focus=$.contains(tablePart[0],document.activeElement)?document.activeElement:null;if(focus){focus.blur();}if(mode==='in-place'){// Insert the header back into the table's real header\nif(itemDom.placeholder){itemDom.placeholder.remove();itemDom.placeholder=null;}this._unsize(item);if(item==='header'){itemDom.host.prepend(tablePart);}else{itemDom.host.append(tablePart);}if(itemDom.floating){itemDom.floating.remove();itemDom.floating=null;}}else if(mode==='in'){// Remove the header from the read header and insert into a fixed\n// positioned floating table clone\nthis._clone(item,forceChange);itemDom.floating.addClass('fixedHeader-floating').css(item==='header'?'top':'bottom',this.c[item+'Offset']).css('left',position.left+'px').css('width',position.width+'px');if(item==='footer'){itemDom.floating.css('top','');}}else if(mode==='below'){// only used for the header\n// Fix the position of the floating header at base of the table body\nthis._clone(item,forceChange);itemDom.floating.addClass('fixedHeader-locked').css('top',position.tfootTop-position.theadHeight).css('left',position.left+'px').css('width',position.width+'px');}else if(mode==='above'){// only used for the footer\n// Fix the position of the floating footer at top of the table body\nthis._clone(item,forceChange);itemDom.floating.addClass('fixedHeader-locked').css('top',position.tbodyTop).css('left',position.left+'px').css('width',position.width+'px');}// Restore focus if it was lost\nif(focus&&focus!==document.activeElement){setTimeout(function(){focus.focus();},10);}this.s.scrollLeft.header=-1;this.s.scrollLeft.footer=-1;this.s[item+'Mode']=mode;},/**\r\n\t * Cache the positional information that is required for the mode\r\n\t * calculations that FixedHeader performs.\r\n\t *\r\n\t * @private\r\n\t */_positions:function(){var dt=this.s.dt;var table=dt.table();var position=this.s.position;var dom=this.dom;var tableNode=$(table.node());// Need to use the header and footer that are in the main table,\n// regardless of if they are clones, since they hold the positions we\n// want to measure from\nvar thead=tableNode.children('thead');var tfoot=tableNode.children('tfoot');var tbody=dom.tbody;position.visible=tableNode.is(':visible');position.width=tableNode.outerWidth();position.left=tableNode.offset().left;position.theadTop=thead.offset().top;position.tbodyTop=tbody.offset().top;position.tbodyHeight=tbody.outerHeight();position.theadHeight=position.tbodyTop-position.theadTop;if(tfoot.length){position.tfootTop=tfoot.offset().top;position.tfootBottom=position.tfootTop+tfoot.outerHeight();position.tfootHeight=position.tfootBottom-position.tfootTop;}else{position.tfootTop=position.tbodyTop+tbody.outerHeight();position.tfootBottom=position.tfootTop;position.tfootHeight=position.tfootTop;}},/**\r\n\t * Mode calculation - determine what mode the fixed items should be placed\r\n\t * into.\r\n\t *\r\n\t * @param  {boolean} forceChange Force a redraw of the mode, even if already\r\n\t *     in that mode.\r\n\t * @private\r\n\t */_scroll:function(forceChange){var windowTop=$(document).scrollTop();var windowLeft=$(document).scrollLeft();var position=this.s.position;var headerMode,footerMode;if(this.c.header){if(!this.s.enable){headerMode='in-place';}else if(!position.visible||windowTop<=position.theadTop-this.c.headerOffset){headerMode='in-place';}else if(windowTop<=position.tfootTop-position.theadHeight-this.c.headerOffset){headerMode='in';}else{headerMode='below';}if(forceChange||headerMode!==this.s.headerMode){this._modeChange(headerMode,'header',forceChange);}this._horizontal('header',windowLeft);}if(this.c.footer&&this.dom.tfoot.length){if(!this.s.enable){headerMode='in-place';}else if(!position.visible||windowTop+position.windowHeight>=position.tfootBottom+this.c.footerOffset){footerMode='in-place';}else if(position.windowHeight+windowTop>position.tbodyTop+position.tfootHeight+this.c.footerOffset){footerMode='in';}else{footerMode='above';}if(forceChange||footerMode!==this.s.footerMode){this._modeChange(footerMode,'footer',forceChange);}this._horizontal('footer',windowLeft);}}});/**\r\n * Version\r\n * @type {String}\r\n * @static\r\n */FixedHeader.version=\"3.1.6-dev\";/**\r\n * Defaults\r\n * @type {Object}\r\n * @static\r\n */FixedHeader.defaults={header:true,footer:false,headerOffset:0,footerOffset:0};/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * DataTables interfaces\r\n */ // Attach for constructor access\n$.fn.dataTable.FixedHeader=FixedHeader;$.fn.DataTable.FixedHeader=FixedHeader;// DataTables creation - check if the FixedHeader option has been defined on the\n// table and if so, initialise\n$(document).on('init.dt.dtfh',function(e,settings,json){if(e.namespace!=='dt'){return;}var init=settings.oInit.fixedHeader;var defaults=DataTable.defaults.fixedHeader;if((init||defaults)&&!settings._fixedHeader){var opts=$.extend({},defaults,init);if(init!==false){new FixedHeader(settings,opts);}}});// DataTables API methods\nDataTable.Api.register('fixedHeader()',function(){});DataTable.Api.register('fixedHeader.adjust()',function(){return this.iterator('table',function(ctx){var fh=ctx._fixedHeader;if(fh){fh.update();}});});DataTable.Api.register('fixedHeader.enable()',function(flag){return this.iterator('table',function(ctx){var fh=ctx._fixedHeader;flag=flag!==undefined?flag:true;if(fh&&flag!==fh.enabled()){fh.enable(flag);}});});DataTable.Api.register('fixedHeader.enabled()',function(){if(this.context.length){var fx=this.content[0]._fixedHeader;if(fh){return fh.enabled();}}return false;});DataTable.Api.register('fixedHeader.disable()',function(){return this.iterator('table',function(ctx){var fh=ctx._fixedHeader;if(fh&&fh.enabled()){fh.enable(false);}});});$.each(['header','footer'],function(i,el){DataTable.Api.register('fixedHeader.'+el+'Offset()',function(offset){var ctx=this.context;if(offset===undefined){return ctx.length&&ctx[0]._fixedHeader?ctx[0]._fixedHeader[el+'Offset']():undefined;}return this.iterator('table',function(ctx){var fh=ctx._fixedHeader;if(fh){fh[el+'Offset'](offset);}});});});return FixedHeader;});/*! Bootstrap 4 styling wrapper for FixedHeader\r\n * ©2018 SpryMedia Ltd - datatables.net/license\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-bs4'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-fixedheader'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){return $.fn.dataTable;});/*! KeyTable 2.5.1\r\n * ©2009-2019 SpryMedia Ltd - datatables.net/license\r\n */ /**\r\n * @summary     KeyTable\r\n * @description Spreadsheet like keyboard navigation for DataTables\r\n * @version     2.5.1\r\n * @file        dataTables.keyTable.js\r\n * @author      SpryMedia Ltd (www.sprymedia.co.uk)\r\n * @contact     www.sprymedia.co.uk/contact\r\n * @copyright   Copyright 2009-2019 SpryMedia Ltd.\r\n *\r\n * This source file is free software, available under the following license:\r\n *   MIT license - http://datatables.net/license/mit\r\n *\r\n * This source file is distributed in the hope that it will be useful, but\r\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\r\n *\r\n * For details please refer to: http://www.datatables.net\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;var namespaceCounter=0;var KeyTable=function(dt,opts){// Sanity check that we are using DataTables 1.10 or newer\nif(!DataTable.versionCheck||!DataTable.versionCheck('1.10.8')){throw'KeyTable requires DataTables 1.10.8 or newer';}// User and defaults configuration object\nthis.c=$.extend(true,{},DataTable.defaults.keyTable,KeyTable.defaults,opts);// Internal settings\nthis.s={/** @type {DataTable.Api} DataTables' API instance */dt:new DataTable.Api(dt),enable:true,/** @type {bool} Flag for if a draw is triggered by focus */focusDraw:false,/** @type {bool} Flag to indicate when waiting for a draw to happen.\r\n\t\t  *   Will ignore key presses at this point\r\n\t\t  */waitingForDraw:false,/** @type {object} Information about the last cell that was focused */lastFocus:null,/** @type {string} Unique namespace per instance */namespace:'.keyTable-'+namespaceCounter++};// DOM items\nthis.dom={};// Check if row reorder has already been initialised on this table\nvar settings=this.s.dt.settings()[0];var exisiting=settings.keytable;if(exisiting){return exisiting;}settings.keytable=this;this._constructor();};$.extend(KeyTable.prototype,{/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * API methods for DataTables API interface\r\n\t */ /**\r\n\t * Blur the table's cell focus\r\n\t */blur:function(){this._blur();},/**\r\n\t * Enable cell focus for the table\r\n\t *\r\n\t * @param  {string} state Can be `true`, `false` or `-string navigation-only`\r\n\t */enable:function(state){this.s.enable=state;},/**\r\n\t * Focus on a cell\r\n\t * @param  {integer} row    Row index\r\n\t * @param  {integer} column Column index\r\n\t */focus:function(row,column){this._focus(this.s.dt.cell(row,column));},/**\r\n\t * Is the cell focused\r\n\t * @param  {object} cell Cell index to check\r\n\t * @returns {boolean} true if focused, false otherwise\r\n\t */focused:function(cell){var lastFocus=this.s.lastFocus;if(!lastFocus){return false;}var lastIdx=this.s.lastFocus.cell.index();return cell.row===lastIdx.row&&cell.column===lastIdx.column;},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Constructor\r\n\t */ /**\r\n\t * Initialise the KeyTable instance\r\n\t *\r\n\t * @private\r\n\t */_constructor:function(){this._tabInput();var that=this;var dt=this.s.dt;var table=$(dt.table().node());var namespace=this.s.namespace;var editorBlock=false;// Need to be able to calculate the cell positions relative to the table\nif(table.css('position')==='static'){table.css('position','relative');}// Click to focus\n$(dt.table().body()).on('click'+namespace,'th, td',function(e){if(that.s.enable===false){return;}var cell=dt.cell(this);if(!cell.any()){return;}that._focus(cell,null,false,e);});// Key events\n$(document).on('keydown'+namespace,function(e){if(!editorBlock){that._key(e);}});// Click blur\nif(this.c.blurable){$(document).on('mousedown'+namespace,function(e){// Click on the search input will blur focus\nif($(e.target).parents('.dataTables_filter').length){that._blur();}// If the click was inside the DataTables container, don't blur\nif($(e.target).parents().filter(dt.table().container()).length){return;}// Don't blur in Editor form\nif($(e.target).parents('div.DTE').length){return;}// Or an Editor date input\nif($(e.target).parents('div.editor-datetime').length){return;}//If the click was inside the fixed columns container, don't blur\nif($(e.target).parents().filter('.DTFC_Cloned').length){return;}that._blur();});}if(this.c.editor){var editor=this.c.editor;// Need to disable KeyTable when the main editor is shown\neditor.on('open.keyTableMain',function(e,mode,action){if(mode!=='inline'&&that.s.enable){that.enable(false);editor.one('close'+namespace,function(){that.enable(true);});}});if(this.c.editOnFocus){dt.on('key-focus'+namespace+' key-refocus'+namespace,function(e,dt,cell,orig){that._editor(null,orig,true);});}// Activate Editor when a key is pressed (will be ignored, if\n// already active).\ndt.on('key'+namespace,function(e,dt,key,cell,orig){that._editor(key,orig,false);});// Active editing on double click - it will already have focus from\n// the click event handler above\n$(dt.table().body()).on('dblclick'+namespace,'th, td',function(e){if(that.s.enable===false){return;}var cell=dt.cell(this);if(!cell.any()){return;}that._editor(null,e,true);});// While Editor is busy processing, we don't want to process any key events\neditor.on('preSubmit',function(){editorBlock=true;}).on('preSubmitCancelled',function(){editorBlock=false;}).on('submitComplete',function(){editorBlock=false;});}// Stave saving\nif(dt.settings()[0].oFeatures.bStateSave){dt.on('stateSaveParams'+namespace,function(e,s,d){d.keyTable=that.s.lastFocus?that.s.lastFocus.cell.index():null;});}// Redraw - retain focus on the current cell\ndt.on('draw'+namespace,function(e){if(that.s.focusDraw){return;}var lastFocus=that.s.lastFocus;if(lastFocus&&lastFocus.node&&$(lastFocus.node).closest('body')===document.body){var relative=that.s.lastFocus.relative;var info=dt.page.info();var row=relative.row+info.start;if(info.recordsDisplay===0){return;}// Reverse if needed\nif(row>=info.recordsDisplay){row=info.recordsDisplay-1;}that._focus(row,relative.column,true,e);}});// Clipboard support\nif(this.c.clipboard){this._clipboard();}dt.on('destroy'+namespace,function(){that._blur(true);// Event tidy up\ndt.off(namespace);$(dt.table().body()).off('click'+namespace,'th, td').off('dblclick'+namespace,'th, td');$(document).off('mousedown'+namespace).off('keydown'+namespace).off('copy'+namespace).off('paste'+namespace);});// Initial focus comes from state or options\nvar state=dt.state.loaded();if(state&&state.keyTable){// Wait until init is done\ndt.one('init',function(){var cell=dt.cell(state.keyTable);// Ensure that the saved cell still exists\nif(cell.any()){cell.focus();}});}else if(this.c.focus){dt.cell(this.c.focus).focus();}},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Private methods\r\n\t */ /**\r\n\t * Blur the control\r\n\t *\r\n\t * @param {boolean} [noEvents=false] Don't trigger updates / events (for destroying)\r\n\t * @private\r\n\t */_blur:function(noEvents){if(!this.s.enable||!this.s.lastFocus){return;}var cell=this.s.lastFocus.cell;$(cell.node()).removeClass(this.c.className);this.s.lastFocus=null;if(!noEvents){this._updateFixedColumns(cell.index().column);this._emitEvent('key-blur',[this.s.dt,cell]);}},/**\r\n\t * Clipboard interaction handlers\r\n\t *\r\n\t * @private\r\n\t */_clipboard:function(){var dt=this.s.dt;var that=this;var namespace=this.s.namespace;// IE8 doesn't support getting selected text\nif(!window.getSelection){return;}$(document).on('copy'+namespace,function(ejq){var e=ejq.originalEvent;var selection=window.getSelection().toString();var focused=that.s.lastFocus;// Only copy cell text to clipboard if there is no other selection\n// and there is a focused cell\nif(!selection&&focused){e.clipboardData.setData('text/plain',focused.cell.render(that.c.clipboardOrthogonal));e.preventDefault();}});$(document).on('paste'+namespace,function(ejq){var e=ejq.originalEvent;var focused=that.s.lastFocus;var activeEl=document.activeElement;var editor=that.c.editor;var pastedText;if(focused&&(!activeEl||activeEl.nodeName.toLowerCase()==='body')){e.preventDefault();if(window.clipboardData&&window.clipboardData.getData){// IE\npastedText=window.clipboardData.getData('Text');}else if(e.clipboardData&&e.clipboardData.getData){// Everything else\npastedText=e.clipboardData.getData('text/plain');}if(editor){// Got Editor - need to activate inline editing,\n// set the value and submit\neditor.inline(focused.cell.index()).set(editor.displayed()[0],pastedText).submit();}else{// No editor, so just dump the data in\nfocused.cell.data(pastedText);dt.draw(false);}}});},/**\r\n\t * Get an array of the column indexes that KeyTable can operate on. This\r\n\t * is a merge of the user supplied columns and the visible columns.\r\n\t *\r\n\t * @private\r\n\t */_columns:function(){var dt=this.s.dt;var user=dt.columns(this.c.columns).indexes();var out=[];dt.columns(':visible').every(function(i){if(user.indexOf(i)!==-1){out.push(i);}});return out;},/**\r\n\t * Perform excel like navigation for Editor by triggering an edit on key\r\n\t * press\r\n\t *\r\n\t * @param  {integer} key Key code for the pressed key\r\n\t * @param  {object} orig Original event\r\n\t * @private\r\n\t */_editor:function(key,orig,hardEdit){var that=this;var dt=this.s.dt;var editor=this.c.editor;var editCell=this.s.lastFocus.cell;var namespace=this.s.namespace;// Do nothing if there is already an inline edit in this cell\nif($('div.DTE',editCell.node()).length){return;}// Don't activate Editor on control key presses\nif(key!==null&&(key>=0x00&&key<=0x09||key===0x0b||key===0x0c||key>=0x0e&&key<=0x1f||key>=0x70&&key<=0x7b||key>=0x7f&&key<=0x9f)){return;}orig.stopPropagation();// Return key should do nothing - for textareas it would empty the\n// contents\nif(key===13){orig.preventDefault();}var editInline=function(){editor.one('open'+namespace,function(){// Remove cancel open\neditor.off('cancelOpen'+namespace);// Excel style - select all text\nif(!hardEdit){$('div.DTE_Field_InputControl input, div.DTE_Field_InputControl textarea').select();}// Reduce the keys the Keys listens for\ndt.keys.enable(hardEdit?'tab-only':'navigation-only');// On blur of the navigation submit\ndt.on('key-blur.editor',function(e,dt,cell){if(editor.displayed()&&cell.node()===editCell.node()){editor.submit();}});// Highlight the cell a different colour on full edit\nif(hardEdit){$(dt.table().container()).addClass('dtk-focus-alt');}// If the dev cancels the submit, we need to return focus\neditor.on('preSubmitCancelled'+namespace,function(){setTimeout(function(){that._focus(editCell,null,false);},50);});editor.on('submitUnsuccessful'+namespace,function(){that._focus(editCell,null,false);});// Restore full key navigation on close\neditor.one('close',function(){dt.keys.enable(true);dt.off('key-blur.editor');editor.off(namespace);$(dt.table().container()).removeClass('dtk-focus-alt');});}).one('cancelOpen'+namespace,function(){// `preOpen` can cancel the display of the form, so it\n// might be that the open event handler isn't needed\neditor.off(namespace);}).inline(editCell.index());};// Editor 1.7 listens for `return` on keyup, so if return is the trigger\n// key, we need to wait for `keyup` otherwise Editor would just submit\n// the content triggered by this keypress.\nif(key===13){hardEdit=true;$(document).one('keyup',function(){// immediately removed\neditInline();});}else{editInline();}},/**\r\n\t * Emit an event on the DataTable for listeners\r\n\t *\r\n\t * @param  {string} name Event name\r\n\t * @param  {array} args Event arguments\r\n\t * @private\r\n\t */_emitEvent:function(name,args){this.s.dt.iterator('table',function(ctx,i){$(ctx.nTable).triggerHandler(name,args);});},/**\r\n\t * Focus on a particular cell, shifting the table's paging if required\r\n\t *\r\n\t * @param  {DataTables.Api|integer} row Can be given as an API instance that\r\n\t *   contains the cell to focus or as an integer. As the latter it is the\r\n\t *   visible row index (from the whole data set) - NOT the data index\r\n\t * @param  {integer} [column] Not required if a cell is given as the first\r\n\t *   parameter. Otherwise this is the column data index for the cell to\r\n\t *   focus on\r\n\t * @param {boolean} [shift=true] Should the viewport be moved to show cell\r\n\t * @private\r\n\t */_focus:function(row,column,shift,originalEvent){var that=this;var dt=this.s.dt;var pageInfo=dt.page.info();var lastFocus=this.s.lastFocus;if(!originalEvent){originalEvent=null;}if(!this.s.enable){return;}if(typeof row!=='number'){// Its an API instance - check that there is actually a row\nif(!row.any()){return;}// Convert the cell to a row and column\nvar index=row.index();column=index.column;row=dt.rows({filter:'applied',order:'applied'}).indexes().indexOf(index.row);// Don't focus rows that were filtered out.\nif(row<0){return;}// For server-side processing normalise the row by adding the start\n// point, since `rows().indexes()` includes only rows that are\n// available at the client-side\nif(pageInfo.serverSide){row+=pageInfo.start;}}// Is the row on the current page? If not, we need to redraw to show the\n// page\nif(pageInfo.length!==-1&&(row<pageInfo.start||row>=pageInfo.start+pageInfo.length)){this.s.focusDraw=true;this.s.waitingForDraw=true;dt.one('draw',function(){that.s.focusDraw=false;that.s.waitingForDraw=false;that._focus(row,column,undefined,originalEvent);}).page(Math.floor(row/pageInfo.length)).draw(false);return;}// In the available columns?\nif($.inArray(column,this._columns())===-1){return;}// De-normalise the server-side processing row, so we select the row\n// in its displayed position\nif(pageInfo.serverSide){row-=pageInfo.start;}// Get the cell from the current position - ignoring any cells which might\n// not have been rendered (therefore can't use `:eq()` selector).\nvar cells=dt.cells(null,column,{search:'applied',order:'applied'}).flatten();var cell=dt.cell(cells[row]);if(lastFocus){// Don't trigger a refocus on the same cell\nif(lastFocus.node===cell.node()){this._emitEvent('key-refocus',[this.s.dt,cell,originalEvent||null]);return;}// Otherwise blur the old focus\nthis._blur();}// Clear focus from other tables\nthis._removeOtherFocus();var node=$(cell.node());node.addClass(this.c.className);this._updateFixedColumns(column);// Shift viewpoint and page to make cell visible\nif(shift===undefined||shift===true){this._scroll($(window),$(document.body),node,'offset');var bodyParent=dt.table().body().parentNode;if(bodyParent!==dt.table().header().parentNode){var parent=$(bodyParent.parentNode);this._scroll(parent,parent,node,'position');}}// Event and finish\nthis.s.lastFocus={cell:cell,node:cell.node(),relative:{row:dt.rows({page:'current'}).indexes().indexOf(cell.index().row),column:cell.index().column}};this._emitEvent('key-focus',[this.s.dt,cell,originalEvent||null]);dt.state.save();},/**\r\n\t * Handle key press\r\n\t *\r\n\t * @param  {object} e Event\r\n\t * @private\r\n\t */_key:function(e){// If we are waiting for a draw to happen from another key event, then\n// do nothing for this new key press.\nif(this.s.waitingForDraw){e.preventDefault();return;}var enable=this.s.enable;var navEnable=enable===true||enable==='navigation-only';if(!enable){return;}if((e.keyCode===0||e.ctrlKey||e.metaKey||e.altKey)&&!(e.ctrlKey&&e.altKey)){return;}// If not focused, then there is no key action to take\nvar lastFocus=this.s.lastFocus;if(!lastFocus){return;}// And the last focus still exists!\nif(!this.s.dt.cell(lastFocus.node).any()){this.s.lastFocus=null;return;}var that=this;var dt=this.s.dt;var scrolling=this.s.dt.settings()[0].oScroll.sY?true:false;// If we are not listening for this key, do nothing\nif(this.c.keys&&$.inArray(e.keyCode,this.c.keys)===-1){return;}switch(e.keyCode){case 9:// tab\n// `enable` can be tab-only\nthis._shift(e,e.shiftKey?'left':'right',true);break;case 27:// esc\nif(this.s.blurable&&enable===true){this._blur();}break;case 33:// page up (previous page)\ncase 34:// page down (next page)\nif(navEnable&&!scrolling){e.preventDefault();dt.page(e.keyCode===33?'previous':'next').draw(false);}break;case 35:// end (end of current page)\ncase 36:// home (start of current page)\nif(navEnable){e.preventDefault();var indexes=dt.cells({page:'current'}).indexes();var colIndexes=this._columns();this._focus(dt.cell(indexes[e.keyCode===35?indexes.length-1:colIndexes[0]]),null,true,e);}break;case 37:// left arrow\nif(navEnable){this._shift(e,'left');}break;case 38:// up arrow\nif(navEnable){this._shift(e,'up');}break;case 39:// right arrow\nif(navEnable){this._shift(e,'right');}break;case 40:// down arrow\nif(navEnable){this._shift(e,'down');}break;case 113:// F2 - Excel like hard edit\nif(this.c.editor){this._editor(null,e,true);break;}// else fallthrough\ndefault:// Everything else - pass through only when fully enabled\nif(enable===true){this._emitEvent('key',[dt,e.keyCode,this.s.lastFocus.cell,e]);}break;}},/**\r\n\t * Remove focus from all tables other than this one\r\n\t */_removeOtherFocus:function(){var thisTable=this.s.dt.table().node();$.fn.dataTable.tables({api:true}).iterator('table',function(settings){if(this.table().node()!==thisTable){this.cell.blur();}});},/**\r\n\t * Scroll a container to make a cell visible in it. This can be used for\r\n\t * both DataTables scrolling and native window scrolling.\r\n\t *\r\n\t * @param  {jQuery} container Scrolling container\r\n\t * @param  {jQuery} scroller  Item being scrolled\r\n\t * @param  {jQuery} cell      Cell in the scroller\r\n\t * @param  {string} posOff    `position` or `offset` - which to use for the\r\n\t *   calculation. `offset` for the document, otherwise `position`\r\n\t * @private\r\n\t */_scroll:function(container,scroller,cell,posOff){var offset=cell[posOff]();var height=cell.outerHeight();var width=cell.outerWidth();var scrollTop=scroller.scrollTop();var scrollLeft=scroller.scrollLeft();var containerHeight=container.height();var containerWidth=container.width();// If Scroller is being used, the table can be `position: absolute` and that\n// needs to be taken account of in the offset. If no Scroller, this will be 0\nif(posOff==='position'){offset.top+=parseInt(cell.closest('table').css('top'),10);}// Top correction\nif(offset.top<scrollTop){scroller.scrollTop(offset.top);}// Left correction\nif(offset.left<scrollLeft){scroller.scrollLeft(offset.left);}// Bottom correction\nif(offset.top+height>scrollTop+containerHeight&&height<containerHeight){scroller.scrollTop(offset.top+height-containerHeight);}// Right correction\nif(offset.left+width>scrollLeft+containerWidth&&width<containerWidth){scroller.scrollLeft(offset.left+width-containerWidth);}},/**\r\n\t * Calculate a single offset movement in the table - up, down, left and\r\n\t * right and then perform the focus if possible\r\n\t *\r\n\t * @param  {object}  e           Event object\r\n\t * @param  {string}  direction   Movement direction\r\n\t * @param  {boolean} keyBlurable `true` if the key press can result in the\r\n\t *   table being blurred. This is so arrow keys won't blur the table, but\r\n\t *   tab will.\r\n\t * @private\r\n\t */_shift:function(e,direction,keyBlurable){var that=this;var dt=this.s.dt;var pageInfo=dt.page.info();var rows=pageInfo.recordsDisplay;var currentCell=this.s.lastFocus.cell;var columns=this._columns();if(!currentCell){return;}var currRow=dt.rows({filter:'applied',order:'applied'}).indexes().indexOf(currentCell.index().row);// When server-side processing, `rows().indexes()` only gives the rows\n// that are available at the client-side, so we need to normalise the\n// row's current position by the display start point\nif(pageInfo.serverSide){currRow+=pageInfo.start;}var currCol=dt.columns(columns).indexes().indexOf(currentCell.index().column);var row=currRow,column=columns[currCol];// row is the display, column is an index\nif(direction==='right'){if(currCol>=columns.length-1){row++;column=columns[0];}else{column=columns[currCol+1];}}else if(direction==='left'){if(currCol===0){row--;column=columns[columns.length-1];}else{column=columns[currCol-1];}}else if(direction==='up'){row--;}else if(direction==='down'){row++;}if(row>=0&&row<rows&&$.inArray(column,columns)!==-1){if(e){e.preventDefault();}this._focus(row,column,true,e);}else if(!keyBlurable||!this.c.blurable){// No new focus, but if the table isn't blurable, then don't loose\n// focus\nif(e){e.preventDefault();}}else{this._blur();}},/**\r\n\t * Create a hidden input element that can receive focus on behalf of the\r\n\t * table\r\n\t *\r\n\t * @private\r\n\t */_tabInput:function(){var that=this;var dt=this.s.dt;var tabIndex=this.c.tabIndex!==null?this.c.tabIndex:dt.settings()[0].iTabIndex;if(tabIndex==-1){return;}var div=$('<div><input type=\"text\" tabindex=\"'+tabIndex+'\"/></div>').css({position:'absolute',height:1,width:0,overflow:'hidden'}).insertBefore(dt.table().node());div.children().on('focus',function(e){var cell=dt.cell(':eq(0)',that._columns(),{page:'current'});if(cell.any()){that._focus(cell,null,true,e);}});},/**\r\n\t * Update fixed columns if they are enabled and if the cell we are\r\n\t * focusing is inside a fixed column\r\n\t * @param  {integer} column Index of the column being changed\r\n\t * @private\r\n\t */_updateFixedColumns:function(column){var dt=this.s.dt;var settings=dt.settings()[0];if(settings._oFixedColumns){var leftCols=settings._oFixedColumns.s.iLeftColumns;var rightCols=settings.aoColumns.length-settings._oFixedColumns.s.iRightColumns;if(column<leftCols||column>=rightCols){dt.fixedColumns().update();}}}});/**\r\n * KeyTable default settings for initialisation\r\n *\r\n * @namespace\r\n * @name KeyTable.defaults\r\n * @static\r\n */KeyTable.defaults={/**\r\n\t * Can focus be removed from the table\r\n\t * @type {Boolean}\r\n\t */blurable:true,/**\r\n\t * Class to give to the focused cell\r\n\t * @type {String}\r\n\t */className:'focus',/**\r\n\t * Enable or disable clipboard support\r\n\t * @type {Boolean}\r\n\t */clipboard:true,/**\r\n\t * Orthogonal data that should be copied to clipboard\r\n\t * @type {string}\r\n\t */clipboardOrthogonal:'display',/**\r\n\t * Columns that can be focused. This is automatically merged with the\r\n\t * visible columns as only visible columns can gain focus.\r\n\t * @type {String}\r\n\t */columns:'',// all\n/**\r\n\t * Editor instance to automatically perform Excel like navigation\r\n\t * @type {Editor}\r\n\t */editor:null,/**\r\n\t * Trigger editing immediately on focus\r\n\t * @type {boolean}\r\n\t */editOnFocus:false,/**\r\n\t * Select a cell to automatically select on start up. `null` for no\r\n\t * automatic selection\r\n\t * @type {cell-selector}\r\n\t */focus:null,/**\r\n\t * Array of keys to listen for\r\n\t * @type {null|array}\r\n\t */keys:null,/**\r\n\t * Tab index for where the table should sit in the document's tab flow\r\n\t * @type {integer|null}\r\n\t */tabIndex:null};KeyTable.version=\"2.5.1\";$.fn.dataTable.KeyTable=KeyTable;$.fn.DataTable.KeyTable=KeyTable;DataTable.Api.register('cell.blur()',function(){return this.iterator('table',function(ctx){if(ctx.keytable){ctx.keytable.blur();}});});DataTable.Api.register('cell().focus()',function(){return this.iterator('cell',function(ctx,row,column){if(ctx.keytable){ctx.keytable.focus(row,column);}});});DataTable.Api.register('keys.disable()',function(){return this.iterator('table',function(ctx){if(ctx.keytable){ctx.keytable.enable(false);}});});DataTable.Api.register('keys.enable()',function(opts){return this.iterator('table',function(ctx){if(ctx.keytable){ctx.keytable.enable(opts===undefined?true:opts);}});});DataTable.Api.register('keys.move()',function(dir){return this.iterator('table',function(ctx){if(ctx.keytable){ctx.keytable._shift(null,dir,false);}});});// Cell selector\nDataTable.ext.selector.cell.push(function(settings,opts,cells){var focused=opts.focused;var kt=settings.keytable;var out=[];if(!kt||focused===undefined){return cells;}for(var i=0,ien=cells.length;i<ien;i++){if(focused===true&&kt.focused(cells[i])||focused===false&&!kt.focused(cells[i])){out.push(cells[i]);}}return out;});// Attach a listener to the document which listens for DataTables initialisation\n// events so we can automatically initialise\n$(document).on('preInit.dt.dtk',function(e,settings,json){if(e.namespace!=='dt'){return;}var init=settings.oInit.keys;var defaults=DataTable.defaults.keys;if(init||defaults){var opts=$.extend({},defaults,init);if(init!==false){new KeyTable(settings,opts);}}});return KeyTable;});/*! Bootstrap 4 styling wrapper for KeyTable\r\n * ©2018 SpryMedia Ltd - datatables.net/license\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-bs4'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-keytable'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){return $.fn.dataTable;});/*! Responsive 2.2.3\r\n * 2014-2018 SpryMedia Ltd - datatables.net/license\r\n */ /**\r\n * @summary     Responsive\r\n * @description Responsive tables plug-in for DataTables\r\n * @version     2.2.3\r\n * @file        dataTables.responsive.js\r\n * @author      SpryMedia Ltd (www.sprymedia.co.uk)\r\n * @contact     www.sprymedia.co.uk/contact\r\n * @copyright   Copyright 2014-2018 SpryMedia Ltd.\r\n *\r\n * This source file is free software, available under the following license:\r\n *   MIT license - http://datatables.net/license/mit\r\n *\r\n * This source file is distributed in the hope that it will be useful, but\r\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\r\n *\r\n * For details please refer to: http://www.datatables.net\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;/**\r\n * Responsive is a plug-in for the DataTables library that makes use of\r\n * DataTables' ability to change the visibility of columns, changing the\r\n * visibility of columns so the displayed columns fit into the table container.\r\n * The end result is that complex tables will be dynamically adjusted to fit\r\n * into the viewport, be it on a desktop, tablet or mobile browser.\r\n *\r\n * Responsive for DataTables has two modes of operation, which can used\r\n * individually or combined:\r\n *\r\n * * Class name based control - columns assigned class names that match the\r\n *   breakpoint logic can be shown / hidden as required for each breakpoint.\r\n * * Automatic control - columns are automatically hidden when there is no\r\n *   room left to display them. Columns removed from the right.\r\n *\r\n * In additional to column visibility control, Responsive also has built into\r\n * options to use DataTables' child row display to show / hide the information\r\n * from the table that has been hidden. There are also two modes of operation\r\n * for this child row display:\r\n *\r\n * * Inline - when the control element that the user can use to show / hide\r\n *   child rows is displayed inside the first column of the table.\r\n * * Column - where a whole column is dedicated to be the show / hide control.\r\n *\r\n * Initialisation of Responsive is performed by:\r\n *\r\n * * Adding the class `responsive` or `dt-responsive` to the table. In this case\r\n *   Responsive will automatically be initialised with the default configuration\r\n *   options when the DataTable is created.\r\n * * Using the `responsive` option in the DataTables configuration options. This\r\n *   can also be used to specify the configuration options, or simply set to\r\n *   `true` to use the defaults.\r\n *\r\n *  @class\r\n *  @param {object} settings DataTables settings object for the host table\r\n *  @param {object} [opts] Configuration options\r\n *  @requires jQuery 1.7+\r\n *  @requires DataTables 1.10.3+\r\n *\r\n *  @example\r\n *      $('#example').DataTable( {\r\n *        responsive: true\r\n *      } );\r\n *    } );\r\n */var Responsive=function(settings,opts){// Sanity check that we are using DataTables 1.10 or newer\nif(!DataTable.versionCheck||!DataTable.versionCheck('1.10.10')){throw'DataTables Responsive requires DataTables 1.10.10 or newer';}this.s={dt:new DataTable.Api(settings),columns:[],current:[]};// Check if responsive has already been initialised on this table\nif(this.s.dt.settings()[0].responsive){return;}// details is an object, but for simplicity the user can give it as a string\n// or a boolean\nif(opts&&typeof opts.details==='string'){opts.details={type:opts.details};}else if(opts&&opts.details===false){opts.details={type:false};}else if(opts&&opts.details===true){opts.details={type:'inline'};}this.c=$.extend(true,{},Responsive.defaults,DataTable.defaults.responsive,opts);settings.responsive=this;this._constructor();};$.extend(Responsive.prototype,{/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Constructor\r\n\t */ /**\r\n\t * Initialise the Responsive instance\r\n\t *\r\n\t * @private\r\n\t */_constructor:function(){var that=this;var dt=this.s.dt;var dtPrivateSettings=dt.settings()[0];var oldWindowWidth=$(window).width();dt.settings()[0]._responsive=this;// Use DataTables' throttle function to avoid processor thrashing on\n// resize\n$(window).on('resize.dtr orientationchange.dtr',DataTable.util.throttle(function(){// iOS has a bug whereby resize can fire when only scrolling\n// See: http://stackoverflow.com/questions/8898412\nvar width=$(window).width();if(width!==oldWindowWidth){that._resize();oldWindowWidth=width;}}));// DataTables doesn't currently trigger an event when a row is added, so\n// we need to hook into its private API to enforce the hidden rows when\n// new data is added\ndtPrivateSettings.oApi._fnCallbackReg(dtPrivateSettings,'aoRowCreatedCallback',function(tr,data,idx){if($.inArray(false,that.s.current)!==-1){$('>td, >th',tr).each(function(i){var idx=dt.column.index('toData',i);if(that.s.current[idx]===false){$(this).css('display','none');}});}});// Destroy event handler\ndt.on('destroy.dtr',function(){dt.off('.dtr');$(dt.table().body()).off('.dtr');$(window).off('resize.dtr orientationchange.dtr');// Restore the columns that we've hidden\n$.each(that.s.current,function(i,val){if(val===false){that._setColumnVis(i,true);}});});// Reorder the breakpoints array here in case they have been added out\n// of order\nthis.c.breakpoints.sort(function(a,b){return a.width<b.width?1:a.width>b.width?-1:0;});this._classLogic();this._resizeAuto();// Details handler\nvar details=this.c.details;if(details.type!==false){that._detailsInit();// DataTables will trigger this event on every column it shows and\n// hides individually\ndt.on('column-visibility.dtr',function(){// Use a small debounce to allow multiple columns to be set together\nif(that._timer){clearTimeout(that._timer);}that._timer=setTimeout(function(){that._timer=null;that._classLogic();that._resizeAuto();that._resize();that._redrawChildren();},100);});// Redraw the details box on each draw which will happen if the data\n// has changed. This is used until DataTables implements a native\n// `updated` event for rows\ndt.on('draw.dtr',function(){that._redrawChildren();});$(dt.table().node()).addClass('dtr-'+details.type);}dt.on('column-reorder.dtr',function(e,settings,details){that._classLogic();that._resizeAuto();that._resize();});// Change in column sizes means we need to calc\ndt.on('column-sizing.dtr',function(){that._resizeAuto();that._resize();});// On Ajax reload we want to reopen any child rows which are displayed\n// by responsive\ndt.on('preXhr.dtr',function(){var rowIds=[];dt.rows().every(function(){if(this.child.isShown()){rowIds.push(this.id(true));}});dt.one('draw.dtr',function(){that._resizeAuto();that._resize();dt.rows(rowIds).every(function(){that._detailsDisplay(this,false);});});});dt.on('init.dtr',function(e,settings,details){that._resizeAuto();that._resize();// If columns were hidden, then DataTables needs to adjust the\n// column sizing\nif($.inArray(false,that.s.current)){dt.columns.adjust();}});// First pass - draw the table for the current viewport size\nthis._resize();},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Private methods\r\n\t */ /**\r\n\t * Calculate the visibility for the columns in a table for a given\r\n\t * breakpoint. The result is pre-determined based on the class logic if\r\n\t * class names are used to control all columns, but the width of the table\r\n\t * is also used if there are columns which are to be automatically shown\r\n\t * and hidden.\r\n\t *\r\n\t * @param  {string} breakpoint Breakpoint name to use for the calculation\r\n\t * @return {array} Array of boolean values initiating the visibility of each\r\n\t *   column.\r\n\t *  @private\r\n\t */_columnsVisiblity:function(breakpoint){var dt=this.s.dt;var columns=this.s.columns;var i,ien;// Create an array that defines the column ordering based first on the\n// column's priority, and secondly the column index. This allows the\n// columns to be removed from the right if the priority matches\nvar order=columns.map(function(col,idx){return{columnIdx:idx,priority:col.priority};}).sort(function(a,b){if(a.priority!==b.priority){return a.priority-b.priority;}return a.columnIdx-b.columnIdx;});// Class logic - determine which columns are in this breakpoint based\n// on the classes. If no class control (i.e. `auto`) then `-` is used\n// to indicate this to the rest of the function\nvar display=$.map(columns,function(col,i){if(dt.column(i).visible()===false){return'not-visible';}return col.auto&&col.minWidth===null?false:col.auto===true?'-':$.inArray(breakpoint,col.includeIn)!==-1;});// Auto column control - first pass: how much width is taken by the\n// ones that must be included from the non-auto columns\nvar requiredWidth=0;for(i=0,ien=display.length;i<ien;i++){if(display[i]===true){requiredWidth+=columns[i].minWidth;}}// Second pass, use up any remaining width for other columns. For\n// scrolling tables we need to subtract the width of the scrollbar. It\n// may not be requires which makes this sub-optimal, but it would\n// require another full redraw to make complete use of those extra few\n// pixels\nvar scrolling=dt.settings()[0].oScroll;var bar=scrolling.sY||scrolling.sX?scrolling.iBarWidth:0;var widthAvailable=dt.table().container().offsetWidth-bar;var usedWidth=widthAvailable-requiredWidth;// Control column needs to always be included. This makes it sub-\n// optimal in terms of using the available with, but to stop layout\n// thrashing or overflow. Also we need to account for the control column\n// width first so we know how much width is available for the other\n// columns, since the control column might not be the first one shown\nfor(i=0,ien=display.length;i<ien;i++){if(columns[i].control){usedWidth-=columns[i].minWidth;}}// Allow columns to be shown (counting by priority and then right to\n// left) until we run out of room\nvar empty=false;for(i=0,ien=order.length;i<ien;i++){var colIdx=order[i].columnIdx;if(display[colIdx]==='-'&&!columns[colIdx].control&&columns[colIdx].minWidth){// Once we've found a column that won't fit we don't let any\n// others display either, or columns might disappear in the\n// middle of the table\nif(empty||usedWidth-columns[colIdx].minWidth<0){empty=true;display[colIdx]=false;}else{display[colIdx]=true;}usedWidth-=columns[colIdx].minWidth;}}// Determine if the 'control' column should be shown (if there is one).\n// This is the case when there is a hidden column (that is not the\n// control column). The two loops look inefficient here, but they are\n// trivial and will fly through. We need to know the outcome from the\n// first , before the action in the second can be taken\nvar showControl=false;for(i=0,ien=columns.length;i<ien;i++){if(!columns[i].control&&!columns[i].never&&display[i]===false){showControl=true;break;}}for(i=0,ien=columns.length;i<ien;i++){if(columns[i].control){display[i]=showControl;}// Replace not visible string with false from the control column detection above\nif(display[i]==='not-visible'){display[i]=false;}}// Finally we need to make sure that there is at least one column that\n// is visible\nif($.inArray(true,display)===-1){display[0]=true;}return display;},/**\r\n\t * Create the internal `columns` array with information about the columns\r\n\t * for the table. This includes determining which breakpoints the column\r\n\t * will appear in, based upon class names in the column, which makes up the\r\n\t * vast majority of this method.\r\n\t *\r\n\t * @private\r\n\t */_classLogic:function(){var that=this;var calc={};var breakpoints=this.c.breakpoints;var dt=this.s.dt;var columns=dt.columns().eq(0).map(function(i){var column=this.column(i);var className=column.header().className;var priority=dt.settings()[0].aoColumns[i].responsivePriority;if(priority===undefined){var dataPriority=$(column.header()).data('priority');priority=dataPriority!==undefined?dataPriority*1:10000;}return{className:className,includeIn:[],auto:false,control:false,never:className.match(/\\bnever\\b/)?true:false,priority:priority};});// Simply add a breakpoint to `includeIn` array, ensuring that there are\n// no duplicates\nvar add=function(colIdx,name){var includeIn=columns[colIdx].includeIn;if($.inArray(name,includeIn)===-1){includeIn.push(name);}};var column=function(colIdx,name,operator,matched){var size,i,ien;if(!operator){columns[colIdx].includeIn.push(name);}else if(operator==='max-'){// Add this breakpoint and all smaller\nsize=that._find(name).width;for(i=0,ien=breakpoints.length;i<ien;i++){if(breakpoints[i].width<=size){add(colIdx,breakpoints[i].name);}}}else if(operator==='min-'){// Add this breakpoint and all larger\nsize=that._find(name).width;for(i=0,ien=breakpoints.length;i<ien;i++){if(breakpoints[i].width>=size){add(colIdx,breakpoints[i].name);}}}else if(operator==='not-'){// Add all but this breakpoint\nfor(i=0,ien=breakpoints.length;i<ien;i++){if(breakpoints[i].name.indexOf(matched)===-1){add(colIdx,breakpoints[i].name);}}}};// Loop over each column and determine if it has a responsive control\n// class\ncolumns.each(function(col,i){var classNames=col.className.split(' ');var hasClass=false;// Split the class name up so multiple rules can be applied if needed\nfor(var k=0,ken=classNames.length;k<ken;k++){var className=$.trim(classNames[k]);if(className==='all'){// Include in all\nhasClass=true;col.includeIn=$.map(breakpoints,function(a){return a.name;});return;}else if(className==='none'||col.never){// Include in none (default) and no auto\nhasClass=true;return;}else if(className==='control'){// Special column that is only visible, when one of the other\n// columns is hidden. This is used for the details control\nhasClass=true;col.control=true;return;}$.each(breakpoints,function(j,breakpoint){// Does this column have a class that matches this breakpoint?\nvar brokenPoint=breakpoint.name.split('-');var re=new RegExp('(min\\\\-|max\\\\-|not\\\\-)?('+brokenPoint[0]+')(\\\\-[_a-zA-Z0-9])?');var match=className.match(re);if(match){hasClass=true;if(match[2]===brokenPoint[0]&&match[3]==='-'+brokenPoint[1]){// Class name matches breakpoint name fully\ncolumn(i,breakpoint.name,match[1],match[2]+match[3]);}else if(match[2]===brokenPoint[0]&&!match[3]){// Class name matched primary breakpoint name with no qualifier\ncolumn(i,breakpoint.name,match[1],match[2]);}}});}// If there was no control class, then automatic sizing is used\nif(!hasClass){col.auto=true;}});this.s.columns=columns;},/**\r\n\t * Show the details for the child row\r\n\t *\r\n\t * @param  {DataTables.Api} row    API instance for the row\r\n\t * @param  {boolean}        update Update flag\r\n\t * @private\r\n\t */_detailsDisplay:function(row,update){var that=this;var dt=this.s.dt;var details=this.c.details;if(details&&details.type!==false){var res=details.display(row,update,function(){return details.renderer(dt,row[0],that._detailsObj(row[0]));});if(res===true||res===false){$(dt.table().node()).triggerHandler('responsive-display.dt',[dt,row,res,update]);}}},/**\r\n\t * Initialisation for the details handler\r\n\t *\r\n\t * @private\r\n\t */_detailsInit:function(){var that=this;var dt=this.s.dt;var details=this.c.details;// The inline type always uses the first child as the target\nif(details.type==='inline'){details.target='td:first-child, th:first-child';}// Keyboard accessibility\ndt.on('draw.dtr',function(){that._tabIndexes();});that._tabIndexes();// Initial draw has already happened\n$(dt.table().body()).on('keyup.dtr','td, th',function(e){if(e.keyCode===13&&$(this).data('dtr-keyboard')){$(this).click();}});// type.target can be a string jQuery selector or a column index\nvar target=details.target;var selector=typeof target==='string'?target:'td, th';// Click handler to show / hide the details rows when they are available\n$(dt.table().body()).on('click.dtr mousedown.dtr mouseup.dtr',selector,function(e){// If the table is not collapsed (i.e. there is no hidden columns)\n// then take no action\nif(!$(dt.table().node()).hasClass('collapsed')){return;}// Check that the row is actually a DataTable's controlled node\nif($.inArray($(this).closest('tr').get(0),dt.rows().nodes().toArray())===-1){return;}// For column index, we determine if we should act or not in the\n// handler - otherwise it is already okay\nif(typeof target==='number'){var targetIdx=target<0?dt.columns().eq(0).length+target:target;if(dt.cell(this).index().column!==targetIdx){return;}}// $().closest() includes itself in its check\nvar row=dt.row($(this).closest('tr'));// Check event type to do an action\nif(e.type==='click'){// The renderer is given as a function so the caller can execute it\n// only when they need (i.e. if hiding there is no point is running\n// the renderer)\nthat._detailsDisplay(row,false);}else if(e.type==='mousedown'){// For mouse users, prevent the focus ring from showing\n$(this).css('outline','none');}else if(e.type==='mouseup'){// And then re-allow at the end of the click\n$(this).blur().css('outline','');}});},/**\r\n\t * Get the details to pass to a renderer for a row\r\n\t * @param  {int} rowIdx Row index\r\n\t * @private\r\n\t */_detailsObj:function(rowIdx){var that=this;var dt=this.s.dt;return $.map(this.s.columns,function(col,i){// Never and control columns should not be passed to the renderer\nif(col.never||col.control){return;}return{title:dt.settings()[0].aoColumns[i].sTitle,data:dt.cell(rowIdx,i).render(that.c.orthogonal),hidden:dt.column(i).visible()&&!that.s.current[i],columnIndex:i,rowIndex:rowIdx};});},/**\r\n\t * Find a breakpoint object from a name\r\n\t *\r\n\t * @param  {string} name Breakpoint name to find\r\n\t * @return {object}      Breakpoint description object\r\n\t * @private\r\n\t */_find:function(name){var breakpoints=this.c.breakpoints;for(var i=0,ien=breakpoints.length;i<ien;i++){if(breakpoints[i].name===name){return breakpoints[i];}}},/**\r\n\t * Re-create the contents of the child rows as the display has changed in\r\n\t * some way.\r\n\t *\r\n\t * @private\r\n\t */_redrawChildren:function(){var that=this;var dt=this.s.dt;dt.rows({page:'current'}).iterator('row',function(settings,idx){var row=dt.row(idx);that._detailsDisplay(dt.row(idx),true);});},/**\r\n\t * Alter the table display for a resized viewport. This involves first\r\n\t * determining what breakpoint the window currently is in, getting the\r\n\t * column visibilities to apply and then setting them.\r\n\t *\r\n\t * @private\r\n\t */_resize:function(){var that=this;var dt=this.s.dt;var width=$(window).width();var breakpoints=this.c.breakpoints;var breakpoint=breakpoints[0].name;var columns=this.s.columns;var i,ien;var oldVis=this.s.current.slice();// Determine what breakpoint we are currently at\nfor(i=breakpoints.length-1;i>=0;i--){if(width<=breakpoints[i].width){breakpoint=breakpoints[i].name;break;}}// Show the columns for that break point\nvar columnsVis=this._columnsVisiblity(breakpoint);this.s.current=columnsVis;// Set the class before the column visibility is changed so event\n// listeners know what the state is. Need to determine if there are\n// any columns that are not visible but can be shown\nvar collapsedClass=false;for(i=0,ien=columns.length;i<ien;i++){if(columnsVis[i]===false&&!columns[i].never&&!columns[i].control&&!dt.column(i).visible()===false){collapsedClass=true;break;}}$(dt.table().node()).toggleClass('collapsed',collapsedClass);var changed=false;var visible=0;dt.columns().eq(0).each(function(colIdx,i){if(columnsVis[i]===true){visible++;}if(columnsVis[i]!==oldVis[i]){changed=true;that._setColumnVis(colIdx,columnsVis[i]);}});if(changed){this._redrawChildren();// Inform listeners of the change\n$(dt.table().node()).trigger('responsive-resize.dt',[dt,this.s.current]);// If no records, update the \"No records\" display element\nif(dt.page.info().recordsDisplay===0){$('td',dt.table().body()).eq(0).attr('colspan',visible);}}},/**\r\n\t * Determine the width of each column in the table so the auto column hiding\r\n\t * has that information to work with. This method is never going to be 100%\r\n\t * perfect since column widths can change slightly per page, but without\r\n\t * seriously compromising performance this is quite effective.\r\n\t *\r\n\t * @private\r\n\t */_resizeAuto:function(){var dt=this.s.dt;var columns=this.s.columns;// Are we allowed to do auto sizing?\nif(!this.c.auto){return;}// Are there any columns that actually need auto-sizing, or do they all\n// have classes defined\nif($.inArray(true,$.map(columns,function(c){return c.auto;}))===-1){return;}// Need to restore all children. They will be reinstated by a re-render\nif(!$.isEmptyObject(_childNodeStore)){$.each(_childNodeStore,function(key){var idx=key.split('-');_childNodesRestore(dt,idx[0]*1,idx[1]*1);});}// Clone the table with the current data in it\nvar tableWidth=dt.table().node().offsetWidth;var columnWidths=dt.columns;var clonedTable=dt.table().node().cloneNode(false);var clonedHeader=$(dt.table().header().cloneNode(false)).appendTo(clonedTable);var clonedBody=$(dt.table().body()).clone(false,false).empty().appendTo(clonedTable);// use jQuery because of IE8\n// Header\nvar headerCells=dt.columns().header().filter(function(idx){return dt.column(idx).visible();}).to$().clone(false).css('display','table-cell').css('min-width',0);// Body rows - we don't need to take account of DataTables' column\n// visibility since we implement our own here (hence the `display` set)\n$(clonedBody).append($(dt.rows({page:'current'}).nodes()).clone(false)).find('th, td').css('display','');// Footer\nvar footer=dt.table().footer();if(footer){var clonedFooter=$(footer.cloneNode(false)).appendTo(clonedTable);var footerCells=dt.columns().footer().filter(function(idx){return dt.column(idx).visible();}).to$().clone(false).css('display','table-cell');$('<tr/>').append(footerCells).appendTo(clonedFooter);}$('<tr/>').append(headerCells).appendTo(clonedHeader);// In the inline case extra padding is applied to the first column to\n// give space for the show / hide icon. We need to use this in the\n// calculation\nif(this.c.details.type==='inline'){$(clonedTable).addClass('dtr-inline collapsed');}// It is unsafe to insert elements with the same name into the DOM\n// multiple times. For example, cloning and inserting a checked radio\n// clears the chcecked state of the original radio.\n$(clonedTable).find('[name]').removeAttr('name');// A position absolute table would take the table out of the flow of\n// our container element, bypassing the height and width (Scroller)\n$(clonedTable).css('position','relative');var inserted=$('<div/>').css({width:1,height:1,overflow:'hidden',clear:'both'}).append(clonedTable);inserted.insertBefore(dt.table().node());// The cloned header now contains the smallest that each column can be\nheaderCells.each(function(i){var idx=dt.column.index('fromVisible',i);columns[idx].minWidth=this.offsetWidth||0;});inserted.remove();},/**\r\n\t * Set a column's visibility.\r\n\t *\r\n\t * We don't use DataTables' column visibility controls in order to ensure\r\n\t * that column visibility can Responsive can no-exist. Since only IE8+ is\r\n\t * supported (and all evergreen browsers of course) the control of the\r\n\t * display attribute works well.\r\n\t *\r\n\t * @param {integer} col      Column index\r\n\t * @param {boolean} showHide Show or hide (true or false)\r\n\t * @private\r\n\t */_setColumnVis:function(col,showHide){var dt=this.s.dt;var display=showHide?'':'none';// empty string will remove the attr\n$(dt.column(col).header()).css('display',display);$(dt.column(col).footer()).css('display',display);dt.column(col).nodes().to$().css('display',display);// If the are child nodes stored, we might need to reinsert them\nif(!$.isEmptyObject(_childNodeStore)){dt.cells(null,col).indexes().each(function(idx){_childNodesRestore(dt,idx.row,idx.column);});}},/**\r\n\t * Update the cell tab indexes for keyboard accessibility. This is called on\r\n\t * every table draw - that is potentially inefficient, but also the least\r\n\t * complex option given that column visibility can change on the fly. Its a\r\n\t * shame user-focus was removed from CSS 3 UI, as it would have solved this\r\n\t * issue with a single CSS statement.\r\n\t *\r\n\t * @private\r\n\t */_tabIndexes:function(){var dt=this.s.dt;var cells=dt.cells({page:'current'}).nodes().to$();var ctx=dt.settings()[0];var target=this.c.details.target;cells.filter('[data-dtr-keyboard]').removeData('[data-dtr-keyboard]');if(typeof target==='number'){dt.cells(null,target,{page:'current'}).nodes().to$().attr('tabIndex',ctx.iTabIndex).data('dtr-keyboard',1);}else{// This is a bit of a hack - we need to limit the selected nodes to just\n// those of this table\nif(target==='td:first-child, th:first-child'){target='>td:first-child, >th:first-child';}$(target,dt.rows({page:'current'}).nodes()).attr('tabIndex',ctx.iTabIndex).data('dtr-keyboard',1);}}});/**\r\n * List of default breakpoints. Each item in the array is an object with two\r\n * properties:\r\n *\r\n * * `name` - the breakpoint name.\r\n * * `width` - the breakpoint width\r\n *\r\n * @name Responsive.breakpoints\r\n * @static\r\n */Responsive.breakpoints=[{name:'desktop',width:Infinity},{name:'tablet-l',width:1024},{name:'tablet-p',width:768},{name:'mobile-l',width:480},{name:'mobile-p',width:320}];/**\r\n * Display methods - functions which define how the hidden data should be shown\r\n * in the table.\r\n *\r\n * @namespace\r\n * @name Responsive.defaults\r\n * @static\r\n */Responsive.display={childRow:function(row,update,render){if(update){if($(row.node()).hasClass('parent')){row.child(render(),'child').show();return true;}}else{if(!row.child.isShown()){row.child(render(),'child').show();$(row.node()).addClass('parent');return true;}else{row.child(false);$(row.node()).removeClass('parent');return false;}}},childRowImmediate:function(row,update,render){if(!update&&row.child.isShown()||!row.responsive.hasHidden()){// User interaction and the row is show, or nothing to show\nrow.child(false);$(row.node()).removeClass('parent');return false;}else{// Display\nrow.child(render(),'child').show();$(row.node()).addClass('parent');return true;}},// This is a wrapper so the modal options for Bootstrap and jQuery UI can\n// have options passed into them. This specific one doesn't need to be a\n// function but it is for consistency in the `modal` name\nmodal:function(options){return function(row,update,render){if(!update){// Show a modal\nvar close=function(){modal.remove();// will tidy events for us\n$(document).off('keypress.dtr');};var modal=$('<div class=\"dtr-modal\"/>').append($('<div class=\"dtr-modal-display\"/>').append($('<div class=\"dtr-modal-content\"/>').append(render())).append($('<div class=\"dtr-modal-close\">&times;</div>').click(function(){close();}))).append($('<div class=\"dtr-modal-background\"/>').click(function(){close();})).appendTo('body');$(document).on('keyup.dtr',function(e){if(e.keyCode===27){e.stopPropagation();close();}});}else{$('div.dtr-modal-content').empty().append(render());}if(options&&options.header){$('div.dtr-modal-content').prepend('<h2>'+options.header(row)+'</h2>');}};}};var _childNodeStore={};function _childNodes(dt,row,col){var name=row+'-'+col;if(_childNodeStore[name]){return _childNodeStore[name];}// https://jsperf.com/childnodes-array-slice-vs-loop\nvar nodes=[];var children=dt.cell(row,col).node().childNodes;for(var i=0,ien=children.length;i<ien;i++){nodes.push(children[i]);}_childNodeStore[name]=nodes;return nodes;}function _childNodesRestore(dt,row,col){var name=row+'-'+col;if(!_childNodeStore[name]){return;}var node=dt.cell(row,col).node();var store=_childNodeStore[name];var parent=store[0].parentNode;var parentChildren=parent.childNodes;var a=[];for(var i=0,ien=parentChildren.length;i<ien;i++){a.push(parentChildren[i]);}for(var j=0,jen=a.length;j<jen;j++){node.appendChild(a[j]);}_childNodeStore[name]=undefined;}/**\r\n * Display methods - functions which define how the hidden data should be shown\r\n * in the table.\r\n *\r\n * @namespace\r\n * @name Responsive.defaults\r\n * @static\r\n */Responsive.renderer={listHiddenNodes:function(){return function(api,rowIdx,columns){var ul=$('<ul data-dtr-index=\"'+rowIdx+'\" class=\"dtr-details\"/>');var found=false;var data=$.each(columns,function(i,col){if(col.hidden){$('<li data-dtr-index=\"'+col.columnIndex+'\" data-dt-row=\"'+col.rowIndex+'\" data-dt-column=\"'+col.columnIndex+'\">'+'<span class=\"dtr-title\">'+col.title+'</span> '+'</li>').append($('<span class=\"dtr-data\"/>').append(_childNodes(api,col.rowIndex,col.columnIndex)))// api.cell( col.rowIndex, col.columnIndex ).node().childNodes ) )\n.appendTo(ul);found=true;}});return found?ul:false;};},listHidden:function(){return function(api,rowIdx,columns){var data=$.map(columns,function(col){return col.hidden?'<li data-dtr-index=\"'+col.columnIndex+'\" data-dt-row=\"'+col.rowIndex+'\" data-dt-column=\"'+col.columnIndex+'\">'+'<span class=\"dtr-title\">'+col.title+'</span> '+'<span class=\"dtr-data\">'+col.data+'</span>'+'</li>':'';}).join('');return data?$('<ul data-dtr-index=\"'+rowIdx+'\" class=\"dtr-details\"/>').append(data):false;};},tableAll:function(options){options=$.extend({tableClass:''},options);return function(api,rowIdx,columns){var data=$.map(columns,function(col){return'<tr data-dt-row=\"'+col.rowIndex+'\" data-dt-column=\"'+col.columnIndex+'\">'+'<td>'+col.title+':'+'</td> '+'<td>'+col.data+'</td>'+'</tr>';}).join('');return $('<table class=\"'+options.tableClass+' dtr-details\" width=\"100%\"/>').append(data);};}};/**\r\n * Responsive default settings for initialisation\r\n *\r\n * @namespace\r\n * @name Responsive.defaults\r\n * @static\r\n */Responsive.defaults={/**\r\n\t * List of breakpoints for the instance. Note that this means that each\r\n\t * instance can have its own breakpoints. Additionally, the breakpoints\r\n\t * cannot be changed once an instance has been creased.\r\n\t *\r\n\t * @type {Array}\r\n\t * @default Takes the value of `Responsive.breakpoints`\r\n\t */breakpoints:Responsive.breakpoints,/**\r\n\t * Enable / disable auto hiding calculations. It can help to increase\r\n\t * performance slightly if you disable this option, but all columns would\r\n\t * need to have breakpoint classes assigned to them\r\n\t *\r\n\t * @type {Boolean}\r\n\t * @default  `true`\r\n\t */auto:true,/**\r\n\t * Details control. If given as a string value, the `type` property of the\r\n\t * default object is set to that value, and the defaults used for the rest\r\n\t * of the object - this is for ease of implementation.\r\n\t *\r\n\t * The object consists of the following properties:\r\n\t *\r\n\t * * `display` - A function that is used to show and hide the hidden details\r\n\t * * `renderer` - function that is called for display of the child row data.\r\n\t *   The default function will show the data from the hidden columns\r\n\t * * `target` - Used as the selector for what objects to attach the child\r\n\t *   open / close to\r\n\t * * `type` - `false` to disable the details display, `inline` or `column`\r\n\t *   for the two control types\r\n\t *\r\n\t * @type {Object|string}\r\n\t */details:{display:Responsive.display.childRow,renderer:Responsive.renderer.listHidden(),target:0,type:'inline'},/**\r\n\t * Orthogonal data request option. This is used to define the data type\r\n\t * requested when Responsive gets the data to show in the child row.\r\n\t *\r\n\t * @type {String}\r\n\t */orthogonal:'display'};/*\r\n * API\r\n */var Api=$.fn.dataTable.Api;// Doesn't do anything - work around for a bug in DT... Not documented\nApi.register('responsive()',function(){return this;});Api.register('responsive.index()',function(li){li=$(li);return{column:li.data('dtr-index'),row:li.parent().data('dtr-index')};});Api.register('responsive.rebuild()',function(){return this.iterator('table',function(ctx){if(ctx._responsive){ctx._responsive._classLogic();}});});Api.register('responsive.recalc()',function(){return this.iterator('table',function(ctx){if(ctx._responsive){ctx._responsive._resizeAuto();ctx._responsive._resize();}});});Api.register('responsive.hasHidden()',function(){var ctx=this.context[0];return ctx._responsive?$.inArray(false,ctx._responsive.s.current)!==-1:false;});Api.registerPlural('columns().responsiveHidden()','column().responsiveHidden()',function(){return this.iterator('column',function(settings,column){return settings._responsive?settings._responsive.s.current[column]:false;},1);});/**\r\n * Version information\r\n *\r\n * @name Responsive.version\r\n * @static\r\n */Responsive.version='2.2.3';$.fn.dataTable.Responsive=Responsive;$.fn.DataTable.Responsive=Responsive;// Attach a listener to the document which listens for DataTables initialisation\n// events so we can automatically initialise\n$(document).on('preInit.dt.dtr',function(e,settings,json){if(e.namespace!=='dt'){return;}if($(settings.nTable).hasClass('responsive')||$(settings.nTable).hasClass('dt-responsive')||settings.oInit.responsive||DataTable.defaults.responsive){var init=settings.oInit.responsive;if(init!==false){new Responsive(settings,$.isPlainObject(init)?init:{});}}});return Responsive;});/*! Bootstrap 4 integration for DataTables' Responsive\r\n * ©2016 SpryMedia Ltd - datatables.net/license\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-bs4'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-responsive'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;var _display=DataTable.Responsive.display;var _original=_display.modal;var _modal=$('<div class=\"modal fade dtr-bs-modal\" role=\"dialog\">'+'<div class=\"modal-dialog\" role=\"document\">'+'<div class=\"modal-content\">'+'<div class=\"modal-header\">'+'<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>'+'</div>'+'<div class=\"modal-body\"/>'+'</div>'+'</div>'+'</div>');_display.modal=function(options){return function(row,update,render){if(!$.fn.modal){_original(row,update,render);}else{if(!update){if(options&&options.header){var header=_modal.find('div.modal-header');var button=header.find('button').detach();header.empty().append('<h4 class=\"modal-title\">'+options.header(row)+'</h4>').append(button);}_modal.find('div.modal-body').empty().append(render());_modal.appendTo('body').modal();}}};};return DataTable.Responsive;});/*! RowGroup 1.1.1\r\n * ©2017-2019 SpryMedia Ltd - datatables.net/license\r\n */ /**\r\n * @summary     RowGroup\r\n * @description RowGrouping for DataTables\r\n * @version     1.1.1\r\n * @file        dataTables.rowGroup.js\r\n * @author      SpryMedia Ltd (www.sprymedia.co.uk)\r\n * @contact     datatables.net\r\n * @copyright   Copyright 2017-2019 SpryMedia Ltd.\r\n *\r\n * This source file is free software, available under the following license:\r\n *   MIT license - http://datatables.net/license/mit\r\n *\r\n * This source file is distributed in the hope that it will be useful, but\r\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\r\n *\r\n * For details please refer to: http://www.datatables.net\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;var RowGroup=function(dt,opts){// Sanity check that we are using DataTables 1.10 or newer\nif(!DataTable.versionCheck||!DataTable.versionCheck('1.10.8')){throw'RowGroup requires DataTables 1.10.8 or newer';}// User and defaults configuration object\nthis.c=$.extend(true,{},DataTable.defaults.rowGroup,RowGroup.defaults,opts);// Internal settings\nthis.s={dt:new DataTable.Api(dt)};// DOM items\nthis.dom={};// Check if row grouping has already been initialised on this table\nvar settings=this.s.dt.settings()[0];var existing=settings.rowGroup;if(existing){return existing;}settings.rowGroup=this;this._constructor();};$.extend(RowGroup.prototype,{/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * API methods for DataTables API interface\r\n\t */ /**\r\n\t * Get/set the grouping data source - need to call draw after this is\r\n\t * executed as a setter\r\n\t * @returns string~RowGroup\r\n\t */dataSrc:function(val){if(val===undefined){return this.c.dataSrc;}var dt=this.s.dt;this.c.dataSrc=val;$(dt.table().node()).triggerHandler('rowgroup-datasrc.dt',[dt,val]);return this;},/**\r\n\t * Disable - need to call draw after this is executed\r\n\t * @returns RowGroup\r\n\t */disable:function(){this.c.enable=false;return this;},/**\r\n\t * Enable - need to call draw after this is executed\r\n\t * @returns RowGroup\r\n\t */enable:function(flag){if(flag===false){return this.disable();}this.c.enable=true;return this;},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Constructor\r\n\t */_constructor:function(){var that=this;var dt=this.s.dt;dt.on('draw.dtrg',function(){if(that.c.enable){that._draw();}});dt.on('column-visibility.dt.dtrg responsive-resize.dt.dtrg',function(){that._adjustColspan();});dt.on('destroy',function(){dt.off('.dtrg');});dt.on('responsive-resize.dt',function(){that._adjustColspan();});},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Private methods\r\n\t */ /**\r\n\t * Adjust column span when column visibility changes\r\n\t * @private\r\n\t */_adjustColspan:function(){$('tr.'+this.c.className,this.s.dt.table().body()).find('td').attr('colspan',this._colspan());},/**\r\n\t * Get the number of columns that a grouping row should span\r\n\t * @private\r\n\t */_colspan:function(){return this.s.dt.columns().visible().reduce(function(a,b){return a+b;},0);},/**\r\n\t * Update function that is called whenever we need to draw the grouping rows.\r\n\t * This is basically a bootstrap for the self iterative _group and _groupDisplay\r\n\t * methods\r\n\t * @private\r\n\t */_draw:function(){var dt=this.s.dt;var groupedRows=this._group(0,dt.rows({page:'current'}).indexes());this._groupDisplay(0,groupedRows);},/**\r\n\t * Get the grouping information from a data set (index) of rows\r\n\t * @param {number} level Nesting level\r\n\t * @param {DataTables.Api} rows API of the rows to consider for this group\r\n\t * @returns {object[]} Nested grouping information - it is structured like this:\r\n\t *\t{\r\n\t *\t\tdataPoint: 'Edinburgh',\r\n\t *\t\trows: [ 1,2,3,4,5,6,7 ],\r\n\t *\t\tchildren: [ {\r\n\t *\t\t\tdataPoint: 'developer'\r\n\t *\t\t\trows: [ 1, 2, 3 ]\r\n\t *\t\t},\r\n\t *\t\t{\r\n\t *\t\t\tdataPoint: 'support',\r\n\t *\t\t\trows: [ 4, 5, 6, 7 ]\r\n\t *\t\t} ]\r\n\t *\t}\r\n\t * @private\r\n\t */_group:function(level,rows){var fns=$.isArray(this.c.dataSrc)?this.c.dataSrc:[this.c.dataSrc];var fn=DataTable.ext.oApi._fnGetObjectDataFn(fns[level]);var dt=this.s.dt;var group,last;var data=[];var that=this;for(var i=0,ien=rows.length;i<ien;i++){var rowIndex=rows[i];var rowData=dt.row(rowIndex).data();var group=fn(rowData);if(group===null||group===undefined){group=that.c.emptyDataGroup;}if(last===undefined||group!==last){data.push({dataPoint:group,rows:[]});last=group;}data[data.length-1].rows.push(rowIndex);}if(fns[level+1]!==undefined){for(var i=0,ien=data.length;i<ien;i++){data[i].children=this._group(level+1,data[i].rows);}}return data;},/**\r\n\t * Row group display - insert the rows into the document\r\n\t * @param {number} level Nesting level\r\n\t * @param {object[]} groups Takes the nested array from `_group`\r\n\t * @private\r\n\t */_groupDisplay:function(level,groups){var dt=this.s.dt;var display;for(var i=0,ien=groups.length;i<ien;i++){var group=groups[i];var groupName=group.dataPoint;var row;var rows=group.rows;if(this.c.startRender){display=this.c.startRender.call(this,dt.rows(rows),groupName,level);row=this._rowWrap(display,this.c.startClassName,level);if(row){row.insertBefore(dt.row(rows[0]).node());}}if(this.c.endRender){display=this.c.endRender.call(this,dt.rows(rows),groupName,level);row=this._rowWrap(display,this.c.endClassName,level);if(row){row.insertAfter(dt.row(rows[rows.length-1]).node());}}if(group.children){this._groupDisplay(level+1,group.children);}}},/**\r\n\t * Take a rendered value from an end user and make it suitable for display\r\n\t * as a row, by wrapping it in a row, or detecting that it is a row.\r\n\t * @param {node|jQuery|string} display Display value\r\n\t * @param {string} className Class to add to the row\r\n\t * @param {array} group\r\n\t * @param {number} group level\r\n\t * @private\r\n\t */_rowWrap:function(display,className,level){var row;if(display===null||display===''){display=this.c.emptyDataGroup;}if(display===undefined||display===null){return null;}if(typeof display==='object'&&display.nodeName&&display.nodeName.toLowerCase()==='tr'){row=$(display);}else if(display instanceof $&&display.length&&display[0].nodeName.toLowerCase()==='tr'){row=display;}else{row=$('<tr/>').append($('<td/>').attr('colspan',this._colspan()).append(display));}return row.addClass(this.c.className).addClass(className).addClass('dtrg-level-'+level);}});/**\r\n * RowGroup default settings for initialisation\r\n *\r\n * @namespace\r\n * @name RowGroup.defaults\r\n * @static\r\n */RowGroup.defaults={/**\r\n\t * Class to apply to grouping rows - applied to both the start and\r\n\t * end grouping rows.\r\n\t * @type string\r\n\t */className:'dtrg-group',/**\r\n\t * Data property from which to read the grouping information\r\n\t * @type string|integer|array\r\n\t */dataSrc:0,/**\r\n\t * Text to show if no data is found for a group\r\n\t * @type string\r\n\t */emptyDataGroup:'No group',/**\r\n\t * Initial enablement state\r\n\t * @boolean\r\n\t */enable:true,/**\r\n\t * Class name to give to the end grouping row\r\n\t * @type string\r\n\t */endClassName:'dtrg-end',/**\r\n\t * End grouping label function\r\n\t * @function\r\n\t */endRender:null,/**\r\n\t * Class name to give to the start grouping row\r\n\t * @type string\r\n\t */startClassName:'dtrg-start',/**\r\n\t * Start grouping label function\r\n\t * @function\r\n\t */startRender:function(rows,group){return group;}};RowGroup.version=\"1.1.1\";$.fn.dataTable.RowGroup=RowGroup;$.fn.DataTable.RowGroup=RowGroup;DataTable.Api.register('rowGroup()',function(){return this;});DataTable.Api.register('rowGroup().disable()',function(){return this.iterator('table',function(ctx){if(ctx.rowGroup){ctx.rowGroup.enable(false);}});});DataTable.Api.register('rowGroup().enable()',function(opts){return this.iterator('table',function(ctx){if(ctx.rowGroup){ctx.rowGroup.enable(opts===undefined?true:opts);}});});DataTable.Api.register('rowGroup().dataSrc()',function(val){if(val===undefined){return this.context[0].rowGroup.dataSrc();}return this.iterator('table',function(ctx){if(ctx.rowGroup){ctx.rowGroup.dataSrc(val);}});});// Attach a listener to the document which listens for DataTables initialisation\n// events so we can automatically initialise\n$(document).on('preInit.dt.dtrg',function(e,settings,json){if(e.namespace!=='dt'){return;}var init=settings.oInit.rowGroup;var defaults=DataTable.defaults.rowGroup;if(init||defaults){var opts=$.extend({},defaults,init);if(init!==false){new RowGroup(settings,opts);}}});return RowGroup;});/*! Bootstrap 4 styling wrapper for RowGroup\r\n * ©2018 SpryMedia Ltd - datatables.net/license\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-bs4'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-rowgroup'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){return $.fn.dataTable;});/*! RowReorder 1.2.6\r\n * 2015-2019 SpryMedia Ltd - datatables.net/license\r\n */ /**\r\n * @summary     RowReorder\r\n * @description Row reordering extension for DataTables\r\n * @version     1.2.6\r\n * @file        dataTables.rowReorder.js\r\n * @author      SpryMedia Ltd (www.sprymedia.co.uk)\r\n * @contact     www.sprymedia.co.uk/contact\r\n * @copyright   Copyright 2015-2019 SpryMedia Ltd.\r\n *\r\n * This source file is free software, available under the following license:\r\n *   MIT license - http://datatables.net/license/mit\r\n *\r\n * This source file is distributed in the hope that it will be useful, but\r\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\r\n *\r\n * For details please refer to: http://www.datatables.net\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;/**\r\n * RowReorder provides the ability in DataTables to click and drag rows to\r\n * reorder them. When a row is dropped the data for the rows effected will be\r\n * updated to reflect the change. Normally this data point should also be the\r\n * column being sorted upon in the DataTable but this does not need to be the\r\n * case. RowReorder implements a \"data swap\" method - so the rows being\r\n * reordered take the value of the data point from the row that used to occupy\r\n * the row's new position.\r\n *\r\n * Initialisation is done by either:\r\n *\r\n * * `rowReorder` parameter in the DataTable initialisation object\r\n * * `new $.fn.dataTable.RowReorder( table, opts )` after DataTables\r\n *   initialisation.\r\n * \r\n *  @class\r\n *  @param {object} settings DataTables settings object for the host table\r\n *  @param {object} [opts] Configuration options\r\n *  @requires jQuery 1.7+\r\n *  @requires DataTables 1.10.7+\r\n */var RowReorder=function(dt,opts){// Sanity check that we are using DataTables 1.10 or newer\nif(!DataTable.versionCheck||!DataTable.versionCheck('1.10.8')){throw'DataTables RowReorder requires DataTables 1.10.8 or newer';}// User and defaults configuration object\nthis.c=$.extend(true,{},DataTable.defaults.rowReorder,RowReorder.defaults,opts);// Internal settings\nthis.s={/** @type {integer} Scroll body top cache */bodyTop:null,/** @type {DataTable.Api} DataTables' API instance */dt:new DataTable.Api(dt),/** @type {function} Data fetch function */getDataFn:DataTable.ext.oApi._fnGetObjectDataFn(this.c.dataSrc),/** @type {array} Pixel positions for row insertion calculation */middles:null,/** @type {Object} Cached dimension information for use in the mouse move event handler */scroll:{},/** @type {integer} Interval object used for smooth scrolling */scrollInterval:null,/** @type {function} Data set function */setDataFn:DataTable.ext.oApi._fnSetObjectDataFn(this.c.dataSrc),/** @type {Object} Mouse down information */start:{top:0,left:0,offsetTop:0,offsetLeft:0,nodes:[]},/** @type {integer} Window height cached value */windowHeight:0,/** @type {integer} Document outer height cached value */documentOuterHeight:0,/** @type {integer} DOM clone outer height cached value */domCloneOuterHeight:0};// DOM items\nthis.dom={/** @type {jQuery} Cloned row being moved around */clone:null,/** @type {jQuery} DataTables scrolling container */dtScroll:$('div.dataTables_scrollBody',this.s.dt.table().container())};// Check if row reorder has already been initialised on this table\nvar settings=this.s.dt.settings()[0];var exisiting=settings.rowreorder;if(exisiting){return exisiting;}settings.rowreorder=this;this._constructor();};$.extend(RowReorder.prototype,{/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Constructor\r\n\t */ /**\r\n\t * Initialise the RowReorder instance\r\n\t *\r\n\t * @private\r\n\t */_constructor:function(){var that=this;var dt=this.s.dt;var table=$(dt.table().node());// Need to be able to calculate the row positions relative to the table\nif(table.css('position')==='static'){table.css('position','relative');}// listen for mouse down on the target column - we have to implement\n// this rather than using HTML5 drag and drop as drag and drop doesn't\n// appear to work on table rows at this time. Also mobile browsers are\n// not supported.\n// Use `table().container()` rather than just the table node for IE8 -\n// otherwise it only works once...\n$(dt.table().container()).on('mousedown.rowReorder touchstart.rowReorder',this.c.selector,function(e){if(!that.c.enable){return;}// Ignore excluded children of the selector\nif($(e.target).is(that.c.excludedChildren)){return true;}var tr=$(this).closest('tr');var row=dt.row(tr);// Double check that it is a DataTable row\nif(row.any()){that._emitEvent('pre-row-reorder',{node:row.node(),index:row.index()});that._mouseDown(e,tr);return false;}});dt.on('destroy.rowReorder',function(){$(dt.table().container()).off('.rowReorder');dt.off('.rowReorder');});},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Private methods\r\n\t */ /**\r\n\t * Cache the measurements that RowReorder needs in the mouse move handler\r\n\t * to attempt to speed things up, rather than reading from the DOM.\r\n\t *\r\n\t * @private\r\n\t */_cachePositions:function(){var dt=this.s.dt;// Frustratingly, if we add `position:relative` to the tbody, the\n// position is still relatively to the parent. So we need to adjust\n// for that\nvar headerHeight=$(dt.table().node()).find('thead').outerHeight();// Need to pass the nodes through jQuery to get them in document order,\n// not what DataTables thinks it is, since we have been altering the\n// order\nvar nodes=$.unique(dt.rows({page:'current'}).nodes().toArray());var tops=$.map(nodes,function(node,i){return $(node).position().top-headerHeight;});var middles=$.map(tops,function(top,i){return tops.length<i-1?(top+tops[i+1])/2:(top+top+$(dt.row(':last-child').node()).outerHeight())/2;});this.s.middles=middles;this.s.bodyTop=$(dt.table().body()).offset().top;this.s.windowHeight=$(window).height();this.s.documentOuterHeight=$(document).outerHeight();},/**\r\n\t * Clone a row so it can be floated around the screen\r\n\t *\r\n\t * @param  {jQuery} target Node to be cloned\r\n\t * @private\r\n\t */_clone:function(target){var dt=this.s.dt;var clone=$(dt.table().node().cloneNode(false)).addClass('dt-rowReorder-float').append('<tbody/>').append(target.clone(false));// Match the table and column widths - read all sizes before setting\n// to reduce reflows\nvar tableWidth=target.outerWidth();var tableHeight=target.outerHeight();var sizes=target.children().map(function(){return $(this).width();});clone.width(tableWidth).height(tableHeight).find('tr').children().each(function(i){this.style.width=sizes[i]+'px';});// Insert into the document to have it floating around\nclone.appendTo('body');this.dom.clone=clone;this.s.domCloneOuterHeight=clone.outerHeight();},/**\r\n\t * Update the cloned item's position in the document\r\n\t *\r\n\t * @param  {object} e Event giving the mouse's position\r\n\t * @private\r\n\t */_clonePosition:function(e){var start=this.s.start;var topDiff=this._eventToPage(e,'Y')-start.top;var leftDiff=this._eventToPage(e,'X')-start.left;var snap=this.c.snapX;var left;var top=topDiff+start.offsetTop;if(snap===true){left=start.offsetLeft;}else if(typeof snap==='number'){left=start.offsetLeft+snap;}else{left=leftDiff+start.offsetLeft;}if(top<0){top=0;}else if(top+this.s.domCloneOuterHeight>this.s.documentOuterHeight){top=this.s.documentOuterHeight-this.s.domCloneOuterHeight;}this.dom.clone.css({top:top,left:left});},/**\r\n\t * Emit an event on the DataTable for listeners\r\n\t *\r\n\t * @param  {string} name Event name\r\n\t * @param  {array} args Event arguments\r\n\t * @private\r\n\t */_emitEvent:function(name,args){this.s.dt.iterator('table',function(ctx,i){$(ctx.nTable).triggerHandler(name+'.dt',args);});},/**\r\n\t * Get pageX/Y position from an event, regardless of if it is a mouse or\r\n\t * touch event.\r\n\t *\r\n\t * @param  {object} e Event\r\n\t * @param  {string} pos X or Y (must be a capital)\r\n\t * @private\r\n\t */_eventToPage:function(e,pos){if(e.type.indexOf('touch')!==-1){return e.originalEvent.touches[0]['page'+pos];}return e['page'+pos];},/**\r\n\t * Mouse down event handler. Read initial positions and add event handlers\r\n\t * for the move.\r\n\t *\r\n\t * @param  {object} e      Mouse event\r\n\t * @param  {jQuery} target TR element that is to be moved\r\n\t * @private\r\n\t */_mouseDown:function(e,target){var that=this;var dt=this.s.dt;var start=this.s.start;var offset=target.offset();start.top=this._eventToPage(e,'Y');start.left=this._eventToPage(e,'X');start.offsetTop=offset.top;start.offsetLeft=offset.left;start.nodes=$.unique(dt.rows({page:'current'}).nodes().toArray());this._cachePositions();this._clone(target);this._clonePosition(e);this.dom.target=target;target.addClass('dt-rowReorder-moving');$(document).on('mouseup.rowReorder touchend.rowReorder',function(e){that._mouseUp(e);}).on('mousemove.rowReorder touchmove.rowReorder',function(e){that._mouseMove(e);});// Check if window is x-scrolling - if not, disable it for the duration\n// of the drag\nif($(window).width()===$(document).width()){$(document.body).addClass('dt-rowReorder-noOverflow');}// Cache scrolling information so mouse move doesn't need to read.\n// This assumes that the window and DT scroller will not change size\n// during an row drag, which I think is a fair assumption\nvar scrollWrapper=this.dom.dtScroll;this.s.scroll={windowHeight:$(window).height(),windowWidth:$(window).width(),dtTop:scrollWrapper.length?scrollWrapper.offset().top:null,dtLeft:scrollWrapper.length?scrollWrapper.offset().left:null,dtHeight:scrollWrapper.length?scrollWrapper.outerHeight():null,dtWidth:scrollWrapper.length?scrollWrapper.outerWidth():null};},/**\r\n\t * Mouse move event handler - move the cloned row and shuffle the table's\r\n\t * rows if required.\r\n\t *\r\n\t * @param  {object} e Mouse event\r\n\t * @private\r\n\t */_mouseMove:function(e){this._clonePosition(e);// Transform the mouse position into a position in the table's body\nvar bodyY=this._eventToPage(e,'Y')-this.s.bodyTop;var middles=this.s.middles;var insertPoint=null;var dt=this.s.dt;var body=dt.table().body();// Determine where the row should be inserted based on the mouse\n// position\nfor(var i=0,ien=middles.length;i<ien;i++){if(bodyY<middles[i]){insertPoint=i;break;}}if(insertPoint===null){insertPoint=middles.length;}// Perform the DOM shuffle if it has changed from last time\nif(this.s.lastInsert===null||this.s.lastInsert!==insertPoint){if(insertPoint===0){this.dom.target.prependTo(body);}else{var nodes=$.unique(dt.rows({page:'current'}).nodes().toArray());if(insertPoint>this.s.lastInsert){this.dom.target.insertAfter(nodes[insertPoint-1]);}else{this.dom.target.insertBefore(nodes[insertPoint]);}}this._cachePositions();this.s.lastInsert=insertPoint;}this._shiftScroll(e);},/**\r\n\t * Mouse up event handler - release the event handlers and perform the\r\n\t * table updates\r\n\t *\r\n\t * @param  {object} e Mouse event\r\n\t * @private\r\n\t */_mouseUp:function(e){var that=this;var dt=this.s.dt;var i,ien;var dataSrc=this.c.dataSrc;this.dom.clone.remove();this.dom.clone=null;this.dom.target.removeClass('dt-rowReorder-moving');//this.dom.target = null;\n$(document).off('.rowReorder');$(document.body).removeClass('dt-rowReorder-noOverflow');clearInterval(this.s.scrollInterval);this.s.scrollInterval=null;// Calculate the difference\nvar startNodes=this.s.start.nodes;var endNodes=$.unique(dt.rows({page:'current'}).nodes().toArray());var idDiff={};var fullDiff=[];var diffNodes=[];var getDataFn=this.s.getDataFn;var setDataFn=this.s.setDataFn;for(i=0,ien=startNodes.length;i<ien;i++){if(startNodes[i]!==endNodes[i]){var id=dt.row(endNodes[i]).id();var endRowData=dt.row(endNodes[i]).data();var startRowData=dt.row(startNodes[i]).data();if(id){idDiff[id]=getDataFn(startRowData);}fullDiff.push({node:endNodes[i],oldData:getDataFn(endRowData),newData:getDataFn(startRowData),newPosition:i,oldPosition:$.inArray(endNodes[i],startNodes)});diffNodes.push(endNodes[i]);}}// Create event args\nvar eventArgs=[fullDiff,{dataSrc:dataSrc,nodes:diffNodes,values:idDiff,triggerRow:dt.row(this.dom.target),originalEvent:e}];// Emit event\nthis._emitEvent('row-reorder',eventArgs);var update=function(){if(that.c.update){for(i=0,ien=fullDiff.length;i<ien;i++){var row=dt.row(fullDiff[i].node);var rowData=row.data();setDataFn(rowData,fullDiff[i].newData);// Invalidate the cell that has the same data source as the dataSrc\ndt.columns().every(function(){if(this.dataSrc()===dataSrc){dt.cell(fullDiff[i].node,this.index()).invalidate('data');}});}// Trigger row reordered event\nthat._emitEvent('row-reordered',eventArgs);dt.draw(false);}};// Editor interface\nif(this.c.editor){// Disable user interaction while Editor is submitting\nthis.c.enable=false;this.c.editor.edit(diffNodes,false,$.extend({submit:'changed'},this.c.formOptions)).multiSet(dataSrc,idDiff).one('preSubmitCancelled.rowReorder',function(){that.c.enable=true;that.c.editor.off('.rowReorder');dt.draw(false);}).one('submitUnsuccessful.rowReorder',function(){dt.draw(false);}).one('submitSuccess.rowReorder',function(){update();}).one('submitComplete',function(){that.c.enable=true;that.c.editor.off('.rowReorder');}).submit();}else{update();}},/**\r\n\t * Move the window and DataTables scrolling during a drag to scroll new\r\n\t * content into view.\r\n\t *\r\n\t * This matches the `_shiftScroll` method used in AutoFill, but only\r\n\t * horizontal scrolling is considered here.\r\n\t *\r\n\t * @param  {object} e Mouse move event object\r\n\t * @private\r\n\t */_shiftScroll:function(e){var that=this;var dt=this.s.dt;var scroll=this.s.scroll;var runInterval=false;var scrollSpeed=5;var buffer=65;var windowY=e.pageY-document.body.scrollTop,windowVert,dtVert;// Window calculations - based on the mouse position in the window,\n// regardless of scrolling\nif(windowY<buffer){windowVert=scrollSpeed*-1;}else if(windowY>scroll.windowHeight-buffer){windowVert=scrollSpeed;}// DataTables scrolling calculations - based on the table's position in\n// the document and the mouse position on the page\nif(scroll.dtTop!==null&&e.pageY<scroll.dtTop+buffer){dtVert=scrollSpeed*-1;}else if(scroll.dtTop!==null&&e.pageY>scroll.dtTop+scroll.dtHeight-buffer){dtVert=scrollSpeed;}// This is where it gets interesting. We want to continue scrolling\n// without requiring a mouse move, so we need an interval to be\n// triggered. The interval should continue until it is no longer needed,\n// but it must also use the latest scroll commands (for example consider\n// that the mouse might move from scrolling up to scrolling left, all\n// with the same interval running. We use the `scroll` object to \"pass\"\n// this information to the interval. Can't use local variables as they\n// wouldn't be the ones that are used by an already existing interval!\nif(windowVert||dtVert){scroll.windowVert=windowVert;scroll.dtVert=dtVert;runInterval=true;}else if(this.s.scrollInterval){// Don't need to scroll - remove any existing timer\nclearInterval(this.s.scrollInterval);this.s.scrollInterval=null;}// If we need to run the interval to scroll and there is no existing\n// interval (if there is an existing one, it will continue to run)\nif(!this.s.scrollInterval&&runInterval){this.s.scrollInterval=setInterval(function(){// Don't need to worry about setting scroll <0 or beyond the\n// scroll bound as the browser will just reject that.\nif(scroll.windowVert){document.body.scrollTop+=scroll.windowVert;}// DataTables scrolling\nif(scroll.dtVert){var scroller=that.dom.dtScroll[0];if(scroll.dtVert){scroller.scrollTop+=scroll.dtVert;}}},20);}}});/**\r\n * RowReorder default settings for initialisation\r\n *\r\n * @namespace\r\n * @name RowReorder.defaults\r\n * @static\r\n */RowReorder.defaults={/**\r\n\t * Data point in the host row's data source object for where to get and set\r\n\t * the data to reorder. This will normally also be the sorting column.\r\n\t *\r\n\t * @type {Number}\r\n\t */dataSrc:0,/**\r\n\t * Editor instance that will be used to perform the update\r\n\t *\r\n\t * @type {DataTable.Editor}\r\n\t */editor:null,/**\r\n\t * Enable / disable RowReorder's user interaction\r\n\t * @type {Boolean}\r\n\t */enable:true,/**\r\n\t * Form options to pass to Editor when submitting a change in the row order.\r\n\t * See the Editor `from-options` object for details of the options\r\n\t * available.\r\n\t * @type {Object}\r\n\t */formOptions:{},/**\r\n\t * Drag handle selector. This defines the element that when dragged will\r\n\t * reorder a row.\r\n\t *\r\n\t * @type {String}\r\n\t */selector:'td:first-child',/**\r\n\t * Optionally lock the dragged row's x-position. This can be `true` to\r\n\t * fix the position match the host table's, `false` to allow free movement\r\n\t * of the row, or a number to define an offset from the host table.\r\n\t *\r\n\t * @type {Boolean|number}\r\n\t */snapX:false,/**\r\n\t * Update the table's data on drop\r\n\t *\r\n\t * @type {Boolean}\r\n\t */update:true,/**\r\n\t * Selector for children of the drag handle selector that mouseDown events\r\n\t * will be passed through to and drag will not activate\r\n\t *\r\n\t * @type {String}\r\n\t */excludedChildren:'a'};/*\r\n * API\r\n */var Api=$.fn.dataTable.Api;// Doesn't do anything - work around for a bug in DT... Not documented\nApi.register('rowReorder()',function(){return this;});Api.register('rowReorder.enable()',function(toggle){if(toggle===undefined){toggle=true;}return this.iterator('table',function(ctx){if(ctx.rowreorder){ctx.rowreorder.c.enable=toggle;}});});Api.register('rowReorder.disable()',function(){return this.iterator('table',function(ctx){if(ctx.rowreorder){ctx.rowreorder.c.enable=false;}});});/**\r\n * Version information\r\n *\r\n * @name RowReorder.version\r\n * @static\r\n */RowReorder.version='1.2.6';$.fn.dataTable.RowReorder=RowReorder;$.fn.DataTable.RowReorder=RowReorder;// Attach a listener to the document which listens for DataTables initialisation\n// events so we can automatically initialise\n$(document).on('init.dt.dtr',function(e,settings,json){if(e.namespace!=='dt'){return;}var init=settings.oInit.rowReorder;var defaults=DataTable.defaults.rowReorder;if(init||defaults){var opts=$.extend({},init,defaults);if(init!==false){new RowReorder(settings,opts);}}});return RowReorder;});/*! Bootstrap 4 styling wrapper for RowReorder\r\n * ©2018 SpryMedia Ltd - datatables.net/license\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-bs4'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-rowreorder'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){return $.fn.dataTable;});/*! Scroller 2.0.1\r\n * ©2011-2019 SpryMedia Ltd - datatables.net/license\r\n */ /**\r\n * @summary     Scroller\r\n * @description Virtual rendering for DataTables\r\n * @version     2.0.1\r\n * @file        dataTables.scroller.js\r\n * @author      SpryMedia Ltd (www.sprymedia.co.uk)\r\n * @contact     www.sprymedia.co.uk/contact\r\n * @copyright   Copyright 2011-2019 SpryMedia Ltd.\r\n *\r\n * This source file is free software, available under the following license:\r\n *   MIT license - http://datatables.net/license/mit\r\n *\r\n * This source file is distributed in the hope that it will be useful, but\r\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\r\n *\r\n * For details please refer to: http://www.datatables.net\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;/**\r\n * Scroller is a virtual rendering plug-in for DataTables which allows large\r\n * datasets to be drawn on screen every quickly. What the virtual rendering means\r\n * is that only the visible portion of the table (and a bit to either side to make\r\n * the scrolling smooth) is drawn, while the scrolling container gives the\r\n * visual impression that the whole table is visible. This is done by making use\r\n * of the pagination abilities of DataTables and moving the table around in the\r\n * scrolling container DataTables adds to the page. The scrolling container is\r\n * forced to the height it would be for the full table display using an extra\r\n * element.\r\n *\r\n * Note that rows in the table MUST all be the same height. Information in a cell\r\n * which expands on to multiple lines will cause some odd behaviour in the scrolling.\r\n *\r\n * Scroller is initialised by simply including the letter 'S' in the sDom for the\r\n * table you want to have this feature enabled on. Note that the 'S' must come\r\n * AFTER the 't' parameter in `dom`.\r\n *\r\n * Key features include:\r\n *   <ul class=\"limit_length\">\r\n *     <li>Speed! The aim of Scroller for DataTables is to make rendering large data sets fast</li>\r\n *     <li>Full compatibility with deferred rendering in DataTables for maximum speed</li>\r\n *     <li>Display millions of rows</li>\r\n *     <li>Integration with state saving in DataTables (scrolling position is saved)</li>\r\n *     <li>Easy to use</li>\r\n *   </ul>\r\n *\r\n *  @class\r\n *  @constructor\r\n *  @global\r\n *  @param {object} dt DataTables settings object or API instance\r\n *  @param {object} [opts={}] Configuration object for FixedColumns. Options \r\n *    are defined by {@link Scroller.defaults}\r\n *\r\n *  @requires jQuery 1.7+\r\n *  @requires DataTables 1.10.0+\r\n *\r\n *  @example\r\n *    $(document).ready(function() {\r\n *        $('#example').DataTable( {\r\n *            \"scrollY\": \"200px\",\r\n *            \"ajax\": \"media/dataset/large.txt\",\r\n *            \"scroller\": true,\r\n *            \"deferRender\": true\r\n *        } );\r\n *    } );\r\n */var Scroller=function(dt,opts){/* Sanity check - you just know it will happen */if(!(this instanceof Scroller)){alert(\"Scroller warning: Scroller must be initialised with the 'new' keyword.\");return;}if(opts===undefined){opts={};}var dtApi=$.fn.dataTable.Api(dt);/**\r\n\t * Settings object which contains customisable information for the Scroller instance\r\n\t * @namespace\r\n\t * @private\r\n\t * @extends Scroller.defaults\r\n\t */this.s={/**\r\n\t\t * DataTables settings object\r\n\t\t *  @type     object\r\n\t\t *  @default  Passed in as first parameter to constructor\r\n\t\t */dt:dtApi.settings()[0],/**\r\n\t\t * DataTables API instance\r\n\t\t *  @type     DataTable.Api\r\n\t\t */dtApi:dtApi,/**\r\n\t\t * Pixel location of the top of the drawn table in the viewport\r\n\t\t *  @type     int\r\n\t\t *  @default  0\r\n\t\t */tableTop:0,/**\r\n\t\t * Pixel location of the bottom of the drawn table in the viewport\r\n\t\t *  @type     int\r\n\t\t *  @default  0\r\n\t\t */tableBottom:0,/**\r\n\t\t * Pixel location of the boundary for when the next data set should be loaded and drawn\r\n\t\t * when scrolling up the way.\r\n\t\t *  @type     int\r\n\t\t *  @default  0\r\n\t\t *  @private\r\n\t\t */redrawTop:0,/**\r\n\t\t * Pixel location of the boundary for when the next data set should be loaded and drawn\r\n\t\t * when scrolling down the way. Note that this is actually calculated as the offset from\r\n\t\t * the top.\r\n\t\t *  @type     int\r\n\t\t *  @default  0\r\n\t\t *  @private\r\n\t\t */redrawBottom:0,/**\r\n\t\t * Auto row height or not indicator\r\n\t\t *  @type     bool\r\n\t\t *  @default  0\r\n\t\t */autoHeight:true,/**\r\n\t\t * Number of rows calculated as visible in the visible viewport\r\n\t\t *  @type     int\r\n\t\t *  @default  0\r\n\t\t */viewportRows:0,/**\r\n\t\t * setTimeout reference for state saving, used when state saving is enabled in the DataTable\r\n\t\t * and when the user scrolls the viewport in order to stop the cookie set taking too much\r\n\t\t * CPU!\r\n\t\t *  @type     int\r\n\t\t *  @default  0\r\n\t\t */stateTO:null,/**\r\n\t\t * setTimeout reference for the redraw, used when server-side processing is enabled in the\r\n\t\t * DataTables in order to prevent DoSing the server\r\n\t\t *  @type     int\r\n\t\t *  @default  null\r\n\t\t */drawTO:null,heights:{jump:null,page:null,virtual:null,scroll:null,/**\r\n\t\t\t * Height of rows in the table\r\n\t\t\t *  @type     int\r\n\t\t\t *  @default  0\r\n\t\t\t */row:null,/**\r\n\t\t\t * Pixel height of the viewport\r\n\t\t\t *  @type     int\r\n\t\t\t *  @default  0\r\n\t\t\t */viewport:null,labelFactor:1},topRowFloat:0,scrollDrawDiff:null,loaderVisible:false,forceReposition:false,baseRowTop:0,baseScrollTop:0,mousedown:false,lastScrollTop:0};// @todo The defaults should extend a `c` property and the internal settings\n// only held in the `s` property. At the moment they are mixed\nthis.s=$.extend(this.s,Scroller.oDefaults,opts);// Workaround for row height being read from height object (see above comment)\nthis.s.heights.row=this.s.rowHeight;/**\r\n\t * DOM elements used by the class instance\r\n\t * @private\r\n\t * @namespace\r\n\t *\r\n\t */this.dom={\"force\":document.createElement('div'),\"label\":$('<div class=\"dts_label\">0</div>'),\"scroller\":null,\"table\":null,\"loader\":null};// Attach the instance to the DataTables instance so it can be accessed in\n// future. Don't initialise Scroller twice on the same table\nif(this.s.dt.oScroller){return;}this.s.dt.oScroller=this;/* Let's do it */this.construct();};$.extend(Scroller.prototype,{/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Public methods - to be exposed via the DataTables API\r\n\t */ /**\r\n\t * Calculate and store information about how many rows are to be displayed\r\n\t * in the scrolling viewport, based on current dimensions in the browser's\r\n\t * rendering. This can be particularly useful if the table is initially\r\n\t * drawn in a hidden element - for example in a tab.\r\n\t *  @param {bool} [redraw=true] Redraw the table automatically after the recalculation, with\r\n\t *    the new dimensions forming the basis for the draw.\r\n\t *  @returns {void}\r\n\t */measure:function(redraw){if(this.s.autoHeight){this._calcRowHeight();}var heights=this.s.heights;if(heights.row){heights.viewport=$.contains(document,this.dom.scroller)?this.dom.scroller.clientHeight:this._parseHeight($(this.dom.scroller).css('height'));// If collapsed (no height) use the max-height parameter\nif(!heights.viewport){heights.viewport=this._parseHeight($(this.dom.scroller).css('max-height'));}this.s.viewportRows=parseInt(heights.viewport/heights.row,10)+1;this.s.dt._iDisplayLength=this.s.viewportRows*this.s.displayBuffer;}var label=this.dom.label.outerHeight();heights.labelFactor=(heights.viewport-label)/heights.scroll;if(redraw===undefined||redraw){this.s.dt.oInstance.fnDraw(false);}},/**\r\n\t * Get information about current displayed record range. This corresponds to\r\n\t * the information usually displayed in the \"Info\" block of the table.\r\n\t *\r\n\t * @returns {object} info as an object:\r\n\t *  {\r\n\t *      start: {int}, // the 0-indexed record at the top of the viewport\r\n\t *      end:   {int}, // the 0-indexed record at the bottom of the viewport\r\n\t *  }\r\n\t*/pageInfo:function(){var dt=this.s.dt,iScrollTop=this.dom.scroller.scrollTop,iTotal=dt.fnRecordsDisplay(),iPossibleEnd=Math.ceil(this.pixelsToRow(iScrollTop+this.s.heights.viewport,false,this.s.ani));return{start:Math.floor(this.pixelsToRow(iScrollTop,false,this.s.ani)),end:iTotal<iPossibleEnd?iTotal-1:iPossibleEnd-1};},/**\r\n\t * Calculate the row number that will be found at the given pixel position\r\n\t * (y-scroll).\r\n\t *\r\n\t * Please note that when the height of the full table exceeds 1 million\r\n\t * pixels, Scroller switches into a non-linear mode for the scrollbar to fit\r\n\t * all of the records into a finite area, but this function returns a linear\r\n\t * value (relative to the last non-linear positioning).\r\n\t *  @param {int} pixels Offset from top to calculate the row number of\r\n\t *  @param {int} [intParse=true] If an integer value should be returned\r\n\t *  @param {int} [virtual=false] Perform the calculations in the virtual domain\r\n\t *  @returns {int} Row index\r\n\t */pixelsToRow:function(pixels,intParse,virtual){var diff=pixels-this.s.baseScrollTop;var row=virtual?(this._domain('physicalToVirtual',this.s.baseScrollTop)+diff)/this.s.heights.row:diff/this.s.heights.row+this.s.baseRowTop;return intParse||intParse===undefined?parseInt(row,10):row;},/**\r\n\t * Calculate the pixel position from the top of the scrolling container for\r\n\t * a given row\r\n\t *  @param {int} iRow Row number to calculate the position of\r\n\t *  @returns {int} Pixels\r\n\t */rowToPixels:function(rowIdx,intParse,virtual){var pixels;var diff=rowIdx-this.s.baseRowTop;if(virtual){pixels=this._domain('virtualToPhysical',this.s.baseScrollTop);pixels+=diff*this.s.heights.row;}else{pixels=this.s.baseScrollTop;pixels+=diff*this.s.heights.row;}return intParse||intParse===undefined?parseInt(pixels,10):pixels;},/**\r\n\t * Calculate the row number that will be found at the given pixel position (y-scroll)\r\n\t *  @param {int} row Row index to scroll to\r\n\t *  @param {bool} [animate=true] Animate the transition or not\r\n\t *  @returns {void}\r\n\t */scrollToRow:function(row,animate){var that=this;var ani=false;var px=this.rowToPixels(row);// We need to know if the table will redraw or not before doing the\n// scroll. If it will not redraw, then we need to use the currently\n// displayed table, and scroll with the physical pixels. Otherwise, we\n// need to calculate the table's new position from the virtual\n// transform.\nvar preRows=(this.s.displayBuffer-1)/2*this.s.viewportRows;var drawRow=row-preRows;if(drawRow<0){drawRow=0;}if((px>this.s.redrawBottom||px<this.s.redrawTop)&&this.s.dt._iDisplayStart!==drawRow){ani=true;px=this._domain('virtualToPhysical',row*this.s.heights.row);// If we need records outside the current draw region, but the new\n// scrolling position is inside that (due to the non-linear nature\n// for larger numbers of records), we need to force position update.\nif(this.s.redrawTop<px&&px<this.s.redrawBottom){this.s.forceReposition=true;animate=false;}}if(animate===undefined||animate){this.s.ani=ani;$(this.dom.scroller).animate({\"scrollTop\":px},function(){// This needs to happen after the animation has completed and\n// the final scroll event fired\nsetTimeout(function(){that.s.ani=false;},250);});}else{$(this.dom.scroller).scrollTop(px);}},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Constructor\r\n\t */ /**\r\n\t * Initialisation for Scroller\r\n\t *  @returns {void}\r\n\t *  @private\r\n\t */construct:function(){var that=this;var dt=this.s.dtApi;/* Sanity check */if(!this.s.dt.oFeatures.bPaginate){this.s.dt.oApi._fnLog(this.s.dt,0,'Pagination must be enabled for Scroller');return;}/* Insert a div element that we can use to force the DT scrolling container to\r\n\t\t * the height that would be required if the whole table was being displayed\r\n\t\t */this.dom.force.style.position=\"relative\";this.dom.force.style.top=\"0px\";this.dom.force.style.left=\"0px\";this.dom.force.style.width=\"1px\";this.dom.scroller=$('div.'+this.s.dt.oClasses.sScrollBody,this.s.dt.nTableWrapper)[0];this.dom.scroller.appendChild(this.dom.force);this.dom.scroller.style.position=\"relative\";this.dom.table=$('>table',this.dom.scroller)[0];this.dom.table.style.position=\"absolute\";this.dom.table.style.top=\"0px\";this.dom.table.style.left=\"0px\";// Add class to 'announce' that we are a Scroller table\n$(dt.table().container()).addClass('dts DTS');// Add a 'loading' indicator\nif(this.s.loadingIndicator){this.dom.loader=$('<div class=\"dataTables_processing dts_loading\">'+this.s.dt.oLanguage.sLoadingRecords+'</div>').css('display','none');$(this.dom.scroller.parentNode).css('position','relative').append(this.dom.loader);}this.dom.label.appendTo(this.dom.scroller);/* Initial size calculations */if(this.s.heights.row&&this.s.heights.row!='auto'){this.s.autoHeight=false;}this.measure(false);// Scrolling callback to see if a page change is needed - use a throttled\n// function for the save save callback so we aren't hitting it on every\n// scroll\nthis.s.ingnoreScroll=true;this.s.stateSaveThrottle=this.s.dt.oApi._fnThrottle(function(){that.s.dtApi.state.save();},500);$(this.dom.scroller).on('scroll.dt-scroller',function(e){that._scroll.call(that);});// In iOS we catch the touchstart event in case the user tries to scroll\n// while the display is already scrolling\n$(this.dom.scroller).on('touchstart.dt-scroller',function(){that._scroll.call(that);});$(this.dom.scroller).on('mousedown.dt-scroller',function(){that.s.mousedown=true;}).on('mouseup.dt-scroller',function(){that.s.mouseup=false;that.dom.label.css('display','none');});// On resize, update the information element, since the number of rows shown might change\n$(window).on('resize.dt-scroller',function(){that.measure(false);that._info();});// Add a state saving parameter to the DT state saving so we can restore the exact\n// position of the scrolling. Slightly surprisingly the scroll position isn't actually\n// stored, but rather tha base units which are needed to calculate it. This allows for\n// virtual scrolling as well.\nvar initialStateSave=true;var loadedState=dt.state.loaded();dt.on('stateSaveParams.scroller',function(e,settings,data){// Need to used the saved position on init\ndata.scroller={topRow:initialStateSave&&loadedState&&loadedState.scroller?loadedState.scroller.topRow:that.s.topRowFloat,baseScrollTop:that.s.baseScrollTop,baseRowTop:that.s.baseRowTop};initialStateSave=false;});if(loadedState&&loadedState.scroller){this.s.topRowFloat=loadedState.scroller.topRow;this.s.baseScrollTop=loadedState.scroller.baseScrollTop;this.s.baseRowTop=loadedState.scroller.baseRowTop;}dt.on('init.scroller',function(){that.measure(false);// Setting to `jump` will instruct _draw to calculate the scroll top\n// position\nthat.s.scrollType='jump';that._draw();// Update the scroller when the DataTable is redrawn\ndt.on('draw.scroller',function(){that._draw();});});// Set height before the draw happens, allowing everything else to update\n// on draw complete without worry for roder.\ndt.on('preDraw.dt.scroller',function(){that._scrollForce();});// Destructor\ndt.on('destroy.scroller',function(){$(window).off('resize.dt-scroller');$(that.dom.scroller).off('.dt-scroller');$(that.s.dt.nTable).off('.scroller');$(that.s.dt.nTableWrapper).removeClass('DTS');$('div.DTS_Loading',that.dom.scroller.parentNode).remove();that.dom.table.style.position=\"\";that.dom.table.style.top=\"\";that.dom.table.style.left=\"\";});},/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Private methods\r\n\t */ /**\r\n\t * Automatic calculation of table row height. This is just a little tricky here as using\r\n\t * initialisation DataTables has tale the table out of the document, so we need to create\r\n\t * a new table and insert it into the document, calculate the row height and then whip the\r\n\t * table out.\r\n\t *  @returns {void}\r\n\t *  @private\r\n\t */_calcRowHeight:function(){var dt=this.s.dt;var origTable=dt.nTable;var nTable=origTable.cloneNode(false);var tbody=$('<tbody/>').appendTo(nTable);var container=$('<div class=\"'+dt.oClasses.sWrapper+' DTS\">'+'<div class=\"'+dt.oClasses.sScrollWrapper+'\">'+'<div class=\"'+dt.oClasses.sScrollBody+'\"></div>'+'</div>'+'</div>');// Want 3 rows in the sizing table so :first-child and :last-child\n// CSS styles don't come into play - take the size of the middle row\n$('tbody tr:lt(4)',origTable).clone().appendTo(tbody);var rowsCount=$('tr',tbody).length;if(rowsCount===1){tbody.prepend('<tr><td>&#160;</td></tr>');tbody.append('<tr><td>&#160;</td></tr>');}else{for(;rowsCount<3;rowsCount++){tbody.append('<tr><td>&#160;</td></tr>');}}$('div.'+dt.oClasses.sScrollBody,container).append(nTable);// If initialised using `dom`, use the holding element as the insert point\nvar insertEl=this.s.dt.nHolding||origTable.parentNode;if(!$(insertEl).is(':visible')){insertEl='body';}container.appendTo(insertEl);this.s.heights.row=$('tr',tbody).eq(1).outerHeight();container.remove();},/**\r\n\t * Draw callback function which is fired when the DataTable is redrawn. The main function of\r\n\t * this method is to position the drawn table correctly the scrolling container for the rows\r\n\t * that is displays as a result of the scrolling position.\r\n\t *  @returns {void}\r\n\t *  @private\r\n\t */_draw:function(){var that=this,heights=this.s.heights,iScrollTop=this.dom.scroller.scrollTop,iTableHeight=$(this.s.dt.nTable).height(),displayStart=this.s.dt._iDisplayStart,displayLen=this.s.dt._iDisplayLength,displayEnd=this.s.dt.fnRecordsDisplay();// Disable the scroll event listener while we are updating the DOM\nthis.s.skip=true;// If paging is reset\nif((this.s.dt.bSorted||this.s.dt.bFiltered)&&displayStart===0&&!this.s.dt._drawHold){this.s.topRowFloat=0;}iScrollTop=this.s.scrollType==='jump'?this._domain('virtualToPhysical',this.s.topRowFloat*heights.row):iScrollTop;// Store positional information so positional calculations can be based\n// upon the current table draw position\nthis.s.baseScrollTop=iScrollTop;this.s.baseRowTop=this.s.topRowFloat;// Position the table in the virtual scroller\nvar tableTop=iScrollTop-(this.s.topRowFloat-displayStart)*heights.row;if(displayStart===0){tableTop=0;}else if(displayStart+displayLen>=displayEnd){tableTop=heights.scroll-iTableHeight;}this.dom.table.style.top=tableTop+'px';/* Cache some information for the scroller */this.s.tableTop=tableTop;this.s.tableBottom=iTableHeight+this.s.tableTop;// Calculate the boundaries for where a redraw will be triggered by the\n// scroll event listener\nvar boundaryPx=(iScrollTop-this.s.tableTop)*this.s.boundaryScale;this.s.redrawTop=iScrollTop-boundaryPx;this.s.redrawBottom=iScrollTop+boundaryPx>heights.scroll-heights.viewport-heights.row?heights.scroll-heights.viewport-heights.row:iScrollTop+boundaryPx;this.s.skip=false;// Restore the scrolling position that was saved by DataTable's state\n// saving Note that this is done on the second draw when data is Ajax\n// sourced, and the first draw when DOM soured\nif(this.s.dt.oFeatures.bStateSave&&this.s.dt.oLoadedState!==null&&typeof this.s.dt.oLoadedState.iScroller!='undefined'){// A quirk of DataTables is that the draw callback will occur on an\n// empty set if Ajax sourced, but not if server-side processing.\nvar ajaxSourced=(this.s.dt.sAjaxSource||that.s.dt.ajax)&&!this.s.dt.oFeatures.bServerSide?true:false;if(ajaxSourced&&this.s.dt.iDraw==2||!ajaxSourced&&this.s.dt.iDraw==1){setTimeout(function(){$(that.dom.scroller).scrollTop(that.s.dt.oLoadedState.iScroller);that.s.redrawTop=that.s.dt.oLoadedState.iScroller-heights.viewport/2;// In order to prevent layout thrashing we need another\n// small delay\nsetTimeout(function(){that.s.ingnoreScroll=false;},0);},0);}}else{that.s.ingnoreScroll=false;}// Because of the order of the DT callbacks, the info update will\n// take precedence over the one we want here. So a 'thread' break is\n// needed.  Only add the thread break if bInfo is set\nif(this.s.dt.oFeatures.bInfo){setTimeout(function(){that._info.call(that);},0);}// Hide the loading indicator\nif(this.dom.loader&&this.s.loaderVisible){this.dom.loader.css('display','none');this.s.loaderVisible=false;}},/**\r\n\t * Convert from one domain to another. The physical domain is the actual\r\n\t * pixel count on the screen, while the virtual is if we had browsers which\r\n\t * had scrolling containers of infinite height (i.e. the absolute value)\r\n\t *\r\n\t *  @param {string} dir Domain transform direction, `virtualToPhysical` or\r\n\t *    `physicalToVirtual` \r\n\t *  @returns {number} Calculated transform\r\n\t *  @private\r\n\t */_domain:function(dir,val){var heights=this.s.heights;var diff;var magic=10000;// the point at which the non-linear calculations start to happen\n// If the virtual and physical height match, then we use a linear\n// transform between the two, allowing the scrollbar to be linear\nif(heights.virtual===heights.scroll){return val;}// In the first 10k pixels and the last 10k pixels, we want the scrolling\n// to be linear. After that it can be non-linear. It would be unusual for\n// anyone to mouse wheel through that much.\nif(val<magic){return val;}else if(dir==='virtualToPhysical'&&val>=heights.virtual-magic){diff=heights.virtual-val;return heights.scroll-diff;}else if(dir==='physicalToVirtual'&&val>=heights.scroll-magic){diff=heights.scroll-val;return heights.virtual-diff;}// Otherwise, we want a non-linear scrollbar to take account of the\n// redrawing regions at the start and end of the table, otherwise these\n// can stutter badly - on large tables 30px (for example) scroll might\n// be hundreds of rows, so the table would be redrawing every few px at\n// the start and end. Use a simple linear eq. to stop this, effectively\n// causing a kink in the scrolling ratio. It does mean the scrollbar is\n// non-linear, but with such massive data sets, the scrollbar is going\n// to be a best guess anyway\nvar m=(heights.virtual-magic-magic)/(heights.scroll-magic-magic);var c=magic-m*magic;return dir==='virtualToPhysical'?(val-c)/m:m*val+c;},/**\r\n\t * Update any information elements that are controlled by the DataTable based on the scrolling\r\n\t * viewport and what rows are visible in it. This function basically acts in the same way as\r\n\t * _fnUpdateInfo in DataTables, and effectively replaces that function.\r\n\t *  @returns {void}\r\n\t *  @private\r\n\t */_info:function(){if(!this.s.dt.oFeatures.bInfo){return;}var dt=this.s.dt,language=dt.oLanguage,iScrollTop=this.dom.scroller.scrollTop,iStart=Math.floor(this.pixelsToRow(iScrollTop,false,this.s.ani)+1),iMax=dt.fnRecordsTotal(),iTotal=dt.fnRecordsDisplay(),iPossibleEnd=Math.ceil(this.pixelsToRow(iScrollTop+this.s.heights.viewport,false,this.s.ani)),iEnd=iTotal<iPossibleEnd?iTotal:iPossibleEnd,sStart=dt.fnFormatNumber(iStart),sEnd=dt.fnFormatNumber(iEnd),sMax=dt.fnFormatNumber(iMax),sTotal=dt.fnFormatNumber(iTotal),sOut;if(dt.fnRecordsDisplay()===0&&dt.fnRecordsDisplay()==dt.fnRecordsTotal()){/* Empty record set */sOut=language.sInfoEmpty+language.sInfoPostFix;}else if(dt.fnRecordsDisplay()===0){/* Empty record set after filtering */sOut=language.sInfoEmpty+' '+language.sInfoFiltered.replace('_MAX_',sMax)+language.sInfoPostFix;}else if(dt.fnRecordsDisplay()==dt.fnRecordsTotal()){/* Normal record set */sOut=language.sInfo.replace('_START_',sStart).replace('_END_',sEnd).replace('_MAX_',sMax).replace('_TOTAL_',sTotal)+language.sInfoPostFix;}else{/* Record set after filtering */sOut=language.sInfo.replace('_START_',sStart).replace('_END_',sEnd).replace('_MAX_',sMax).replace('_TOTAL_',sTotal)+' '+language.sInfoFiltered.replace('_MAX_',dt.fnFormatNumber(dt.fnRecordsTotal()))+language.sInfoPostFix;}var callback=language.fnInfoCallback;if(callback){sOut=callback.call(dt.oInstance,dt,iStart,iEnd,iMax,iTotal,sOut);}var n=dt.aanFeatures.i;if(typeof n!='undefined'){for(var i=0,iLen=n.length;i<iLen;i++){$(n[i]).html(sOut);}}// DT doesn't actually (yet) trigger this event, but it will in future\n$(dt.nTable).triggerHandler('info.dt');},/**\r\n\t * Parse CSS height property string as number\r\n\t *\r\n\t * An attempt is made to parse the string as a number. Currently supported units are 'px',\r\n\t * 'vh', and 'rem'. 'em' is partially supported; it works as long as the parent element's\r\n\t * font size matches the body element. Zero is returned for unrecognized strings.\r\n\t *  @param {string} cssHeight CSS height property string\r\n\t *  @returns {number} height\r\n\t *  @private\r\n\t */_parseHeight:function(cssHeight){var height;var matches=/^([+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+))(px|em|rem|vh)$/.exec(cssHeight);if(matches===null){return 0;}var value=parseFloat(matches[1]);var unit=matches[2];if(unit==='px'){height=value;}else if(unit==='vh'){height=value/100*$(window).height();}else if(unit==='rem'){height=value*parseFloat($(':root').css('font-size'));}else if(unit==='em'){height=value*parseFloat($('body').css('font-size'));}return height?height:0;},/**\r\n\t * Scrolling function - fired whenever the scrolling position is changed.\r\n\t * This method needs to use the stored values to see if the table should be\r\n\t * redrawn as we are moving towards the end of the information that is\r\n\t * currently drawn or not. If needed, then it will redraw the table based on\r\n\t * the new position.\r\n\t *  @returns {void}\r\n\t *  @private\r\n\t */_scroll:function(){var that=this,heights=this.s.heights,iScrollTop=this.dom.scroller.scrollTop,iTopRow;if(this.s.skip){return;}if(this.s.ingnoreScroll){return;}if(iScrollTop===this.s.lastScrollTop){return;}/* If the table has been sorted or filtered, then we use the redraw that\r\n\t\t * DataTables as done, rather than performing our own\r\n\t\t */if(this.s.dt.bFiltered||this.s.dt.bSorted){this.s.lastScrollTop=0;return;}/* Update the table's information display for what is now in the viewport */this._info();/* We don't want to state save on every scroll event - that's heavy\r\n\t\t * handed, so use a timeout to update the state saving only when the\r\n\t\t * scrolling has finished\r\n\t\t */clearTimeout(this.s.stateTO);this.s.stateTO=setTimeout(function(){that.s.dtApi.state.save();},250);this.s.scrollType=Math.abs(iScrollTop-this.s.lastScrollTop)>heights.viewport?'jump':'cont';this.s.topRowFloat=this.s.scrollType==='cont'?this.pixelsToRow(iScrollTop,false,false):this._domain('physicalToVirtual',iScrollTop)/heights.row;if(this.s.topRowFloat<0){this.s.topRowFloat=0;}/* Check if the scroll point is outside the trigger boundary which would required\r\n\t\t * a DataTables redraw\r\n\t\t */if(this.s.forceReposition||iScrollTop<this.s.redrawTop||iScrollTop>this.s.redrawBottom){var preRows=Math.ceil((this.s.displayBuffer-1)/2*this.s.viewportRows);iTopRow=parseInt(this.s.topRowFloat,10)-preRows;this.s.forceReposition=false;if(iTopRow<=0){/* At the start of the table */iTopRow=0;}else if(iTopRow+this.s.dt._iDisplayLength>this.s.dt.fnRecordsDisplay()){/* At the end of the table */iTopRow=this.s.dt.fnRecordsDisplay()-this.s.dt._iDisplayLength;if(iTopRow<0){iTopRow=0;}}else if(iTopRow%2!==0){// For the row-striping classes (odd/even) we want only to start\n// on evens otherwise the stripes will change between draws and\n// look rubbish\niTopRow++;}if(iTopRow!=this.s.dt._iDisplayStart){/* Cache the new table position for quick lookups */this.s.tableTop=$(this.s.dt.nTable).offset().top;this.s.tableBottom=$(this.s.dt.nTable).height()+this.s.tableTop;var draw=function(){if(that.s.scrollDrawReq===null){that.s.scrollDrawReq=iScrollTop;}that.s.dt._iDisplayStart=iTopRow;that.s.dt.oApi._fnDraw(that.s.dt);};/* Do the DataTables redraw based on the calculated start point - note that when\r\n\t\t\t\t * using server-side processing we introduce a small delay to not DoS the server...\r\n\t\t\t\t */if(this.s.dt.oFeatures.bServerSide){clearTimeout(this.s.drawTO);this.s.drawTO=setTimeout(draw,this.s.serverWait);}else{draw();}if(this.dom.loader&&!this.s.loaderVisible){this.dom.loader.css('display','block');this.s.loaderVisible=true;}}}else{this.s.topRowFloat=this.pixelsToRow(iScrollTop,false,true);}this.s.lastScrollTop=iScrollTop;this.s.stateSaveThrottle();if(this.s.scrollType==='jump'&&this.s.mousedown){this.dom.label.html(this.s.dt.fnFormatNumber(parseInt(this.s.topRowFloat,10)+1)).css('top',iScrollTop+iScrollTop*heights.labelFactor).css('display','block');}},/**\r\n\t * Force the scrolling container to have height beyond that of just the\r\n\t * table that has been drawn so the user can scroll the whole data set.\r\n\t *\r\n\t * Note that if the calculated required scrolling height exceeds a maximum\r\n\t * value (1 million pixels - hard-coded) the forcing element will be set\r\n\t * only to that maximum value and virtual / physical domain transforms will\r\n\t * be used to allow Scroller to display tables of any number of records.\r\n\t *  @returns {void}\r\n\t *  @private\r\n\t */_scrollForce:function(){var heights=this.s.heights;var max=1000000;heights.virtual=heights.row*this.s.dt.fnRecordsDisplay();heights.scroll=heights.virtual;if(heights.scroll>max){heights.scroll=max;}// Minimum height so there is always a row visible (the 'no rows found'\n// if reduced to zero filtering)\nthis.dom.force.style.height=heights.scroll>this.s.heights.row?heights.scroll+'px':this.s.heights.row+'px';}});/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Statics\r\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /**\r\n * Scroller default settings for initialisation\r\n *  @namespace\r\n *  @name Scroller.defaults\r\n *  @static\r\n */Scroller.defaults={/**\r\n\t * Scroller uses the boundary scaling factor to decide when to redraw the table - which it\r\n\t * typically does before you reach the end of the currently loaded data set (in order to\r\n\t * allow the data to look continuous to a user scrolling through the data). If given as 0\r\n\t * then the table will be redrawn whenever the viewport is scrolled, while 1 would not\r\n\t * redraw the table until the currently loaded data has all been shown. You will want\r\n\t * something in the middle - the default factor of 0.5 is usually suitable.\r\n\t *  @type     float\r\n\t *  @default  0.5\r\n\t *  @static\r\n\t */boundaryScale:0.5,/**\r\n\t * The display buffer is what Scroller uses to calculate how many rows it should pre-fetch\r\n\t * for scrolling. Scroller automatically adjusts DataTables' display length to pre-fetch\r\n\t * rows that will be shown in \"near scrolling\" (i.e. just beyond the current display area).\r\n\t * The value is based upon the number of rows that can be displayed in the viewport (i.e.\r\n\t * a value of 1), and will apply the display range to records before before and after the\r\n\t * current viewport - i.e. a factor of 3 will allow Scroller to pre-fetch 1 viewport's worth\r\n\t * of rows before the current viewport, the current viewport's rows and 1 viewport's worth\r\n\t * of rows after the current viewport. Adjusting this value can be useful for ensuring\r\n\t * smooth scrolling based on your data set.\r\n\t *  @type     int\r\n\t *  @default  7\r\n\t *  @static\r\n\t */displayBuffer:9,/**\r\n\t * Show (or not) the loading element in the background of the table. Note that you should\r\n\t * include the dataTables.scroller.css file for this to be displayed correctly.\r\n\t *  @type     boolean\r\n\t *  @default  false\r\n\t *  @static\r\n\t */loadingIndicator:false,/**\r\n\t * Scroller will attempt to automatically calculate the height of rows for it's internal\r\n\t * calculations. However the height that is used can be overridden using this parameter.\r\n\t *  @type     int|string\r\n\t *  @default  auto\r\n\t *  @static\r\n\t */rowHeight:\"auto\",/**\r\n\t * When using server-side processing, Scroller will wait a small amount of time to allow\r\n\t * the scrolling to finish before requesting more data from the server. This prevents\r\n\t * you from DoSing your own server! The wait time can be configured by this parameter.\r\n\t *  @type     int\r\n\t *  @default  200\r\n\t *  @static\r\n\t */serverWait:200};Scroller.oDefaults=Scroller.defaults;/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Constants\r\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /**\r\n * Scroller version\r\n *  @type      String\r\n *  @default   See code\r\n *  @name      Scroller.version\r\n *  @static\r\n */Scroller.version=\"2.0.1\";/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Initialisation\r\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ // Attach a listener to the document which listens for DataTables initialisation\n// events so we can automatically initialise\n$(document).on('preInit.dt.dtscroller',function(e,settings){if(e.namespace!=='dt'){return;}var init=settings.oInit.scroller;var defaults=DataTable.defaults.scroller;if(init||defaults){var opts=$.extend({},init,defaults);if(init!==false){new Scroller(settings,opts);}}});// Attach Scroller to DataTables so it can be accessed as an 'extra'\n$.fn.dataTable.Scroller=Scroller;$.fn.DataTable.Scroller=Scroller;// DataTables 1.10 API method aliases\nvar Api=$.fn.dataTable.Api;Api.register('scroller()',function(){return this;});// Undocumented and deprecated - is it actually useful at all?\nApi.register('scroller().rowToPixels()',function(rowIdx,intParse,virtual){var ctx=this.context;if(ctx.length&&ctx[0].oScroller){return ctx[0].oScroller.rowToPixels(rowIdx,intParse,virtual);}// undefined\n});// Undocumented and deprecated - is it actually useful at all?\nApi.register('scroller().pixelsToRow()',function(pixels,intParse,virtual){var ctx=this.context;if(ctx.length&&ctx[0].oScroller){return ctx[0].oScroller.pixelsToRow(pixels,intParse,virtual);}// undefined\n});// `scroller().scrollToRow()` is undocumented and deprecated. Use `scroller.toPosition()\nApi.register(['scroller().scrollToRow()','scroller.toPosition()'],function(idx,ani){this.iterator('table',function(ctx){if(ctx.oScroller){ctx.oScroller.scrollToRow(idx,ani);}});return this;});Api.register('row().scrollTo()',function(ani){var that=this;this.iterator('row',function(ctx,rowIdx){if(ctx.oScroller){var displayIdx=that.rows({order:'applied',search:'applied'}).indexes().indexOf(rowIdx);ctx.oScroller.scrollToRow(displayIdx,ani);}});return this;});Api.register('scroller.measure()',function(redraw){this.iterator('table',function(ctx){if(ctx.oScroller){ctx.oScroller.measure(redraw);}});return this;});Api.register('scroller.page()',function(){var ctx=this.context;if(ctx.length&&ctx[0].oScroller){return ctx[0].oScroller.pageInfo();}// undefined\n});return Scroller;});/*! Bootstrap 4 styling wrapper for Scroller\r\n * ©2018 SpryMedia Ltd - datatables.net/license\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-bs4'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-scroller'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){return $.fn.dataTable;});/*! Select for DataTables 1.3.1\r\n * 2015-2019 SpryMedia Ltd - datatables.net/license/mit\r\n */ /**\r\n * @summary     Select for DataTables\r\n * @description A collection of API methods, events and buttons for DataTables\r\n *   that provides selection options of the items in a DataTable\r\n * @version     1.3.1\r\n * @file        dataTables.select.js\r\n * @author      SpryMedia Ltd (www.sprymedia.co.uk)\r\n * @contact     datatables.net/forums\r\n * @copyright   Copyright 2015-2019 SpryMedia Ltd.\r\n *\r\n * This source file is free software, available under the following license:\r\n *   MIT license - http://datatables.net/license/mit\r\n *\r\n * This source file is distributed in the hope that it will be useful, but\r\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\r\n *\r\n * For details please refer to: http://www.datatables.net/extensions/select\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;// Version information for debugger\nDataTable.select={};DataTable.select.version='1.3.1';DataTable.select.init=function(dt){var ctx=dt.settings()[0];var init=ctx.oInit.select;var defaults=DataTable.defaults.select;var opts=init===undefined?defaults:init;// Set defaults\nvar items='row';var style='api';var blurable=false;var toggleable=true;var info=true;var selector='td, th';var className='selected';var setStyle=false;ctx._select={};// Initialisation customisations\nif(opts===true){style='os';setStyle=true;}else if(typeof opts==='string'){style=opts;setStyle=true;}else if($.isPlainObject(opts)){if(opts.blurable!==undefined){blurable=opts.blurable;}if(opts.toggleable!==undefined){toggleable=opts.toggleable;}if(opts.info!==undefined){info=opts.info;}if(opts.items!==undefined){items=opts.items;}if(opts.style!==undefined){style=opts.style;setStyle=true;}else{style='os';setStyle=true;}if(opts.selector!==undefined){selector=opts.selector;}if(opts.className!==undefined){className=opts.className;}}dt.select.selector(selector);dt.select.items(items);dt.select.style(style);dt.select.blurable(blurable);dt.select.toggleable(toggleable);dt.select.info(info);ctx._select.className=className;// Sort table based on selected rows. Requires Select Datatables extension\n$.fn.dataTable.ext.order['select-checkbox']=function(settings,col){return this.api().column(col,{order:'index'}).nodes().map(function(td){if(settings._select.items==='row'){return $(td).parent().hasClass(settings._select.className);}else if(settings._select.items==='cell'){return $(td).hasClass(settings._select.className);}return false;});};// If the init options haven't enabled select, but there is a selectable\n// class name, then enable\nif(!setStyle&&$(dt.table().node()).hasClass('selectable')){dt.select.style('os');}};/*\r\n\r\nSelect is a collection of API methods, event handlers, event emitters and\r\nbuttons (for the `Buttons` extension) for DataTables. It provides the following\r\nfeatures, with an overview of how they are implemented:\r\n\r\n## Selection of rows, columns and cells. Whether an item is selected or not is\r\n   stored in:\r\n\r\n* rows: a `_select_selected` property which contains a boolean value of the\r\n  DataTables' `aoData` object for each row\r\n* columns: a `_select_selected` property which contains a boolean value of the\r\n  DataTables' `aoColumns` object for each column\r\n* cells: a `_selected_cells` property which contains an array of boolean values\r\n  of the `aoData` object for each row. The array is the same length as the\r\n  columns array, with each element of it representing a cell.\r\n\r\nThis method of using boolean flags allows Select to operate when nodes have not\r\nbeen created for rows / cells (DataTables' defer rendering feature).\r\n\r\n## API methods\r\n\r\nA range of API methods are available for triggering selection and de-selection\r\nof rows. Methods are also available to configure the selection events that can\r\nbe triggered by an end user (such as which items are to be selected). To a large\r\nextent, these of API methods *is* Select. It is basically a collection of helper\r\nfunctions that can be used to select items in a DataTable.\r\n\r\nConfiguration of select is held in the object `_select` which is attached to the\r\nDataTables settings object on initialisation. Select being available on a table\r\nis not optional when Select is loaded, but its default is for selection only to\r\nbe available via the API - so the end user wouldn't be able to select rows\r\nwithout additional configuration.\r\n\r\nThe `_select` object contains the following properties:\r\n\r\n```\r\n{\r\n\titems:string       - Can be `rows`, `columns` or `cells`. Defines what item \r\n\t                     will be selected if the user is allowed to activate row\r\n\t                     selection using the mouse.\r\n\tstyle:string       - Can be `none`, `single`, `multi` or `os`. Defines the\r\n\t                     interaction style when selecting items\r\n\tblurable:boolean   - If row selection can be cleared by clicking outside of\r\n\t                     the table\r\n\ttoggleable:boolean - If row selection can be cancelled by repeated clicking\r\n\t                     on the row\r\n\tinfo:boolean       - If the selection summary should be shown in the table\r\n\t                     information elements\r\n}\r\n```\r\n\r\nIn addition to the API methods, Select also extends the DataTables selector\r\noptions for rows, columns and cells adding a `selected` option to the selector\r\noptions object, allowing the developer to select only selected items or\r\nunselected items.\r\n\r\n## Mouse selection of items\r\n\r\nClicking on items can be used to select items. This is done by a simple event\r\nhandler that will select the items using the API methods.\r\n\r\n */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Local functions\r\n */ /**\r\n * Add one or more cells to the selection when shift clicking in OS selection\r\n * style cell selection.\r\n *\r\n * Cell range is more complicated than row and column as we want to select\r\n * in the visible grid rather than by index in sequence. For example, if you\r\n * click first in cell 1-1 and then shift click in 2-2 - cells 1-2 and 2-1\r\n * should also be selected (and not 1-3, 1-4. etc)\r\n * \r\n * @param  {DataTable.Api} dt   DataTable\r\n * @param  {object}        idx  Cell index to select to\r\n * @param  {object}        last Cell index to select from\r\n * @private\r\n */function cellRange(dt,idx,last){var indexes;var columnIndexes;var rowIndexes;var selectColumns=function(start,end){if(start>end){var tmp=end;end=start;start=tmp;}var record=false;return dt.columns(':visible').indexes().filter(function(i){if(i===start){record=true;}if(i===end){// not else if, as start might === end\nrecord=false;return true;}return record;});};var selectRows=function(start,end){var indexes=dt.rows({search:'applied'}).indexes();// Which comes first - might need to swap\nif(indexes.indexOf(start)>indexes.indexOf(end)){var tmp=end;end=start;start=tmp;}var record=false;return indexes.filter(function(i){if(i===start){record=true;}if(i===end){record=false;return true;}return record;});};if(!dt.cells({selected:true}).any()&&!last){// select from the top left cell to this one\ncolumnIndexes=selectColumns(0,idx.column);rowIndexes=selectRows(0,idx.row);}else{// Get column indexes between old and new\ncolumnIndexes=selectColumns(last.column,idx.column);rowIndexes=selectRows(last.row,idx.row);}indexes=dt.cells(rowIndexes,columnIndexes).flatten();if(!dt.cells(idx,{selected:true}).any()){// Select range\ndt.cells(indexes).select();}else{// Deselect range\ndt.cells(indexes).deselect();}}/**\r\n * Disable mouse selection by removing the selectors\r\n *\r\n * @param {DataTable.Api} dt DataTable to remove events from\r\n * @private\r\n */function disableMouseSelection(dt){var ctx=dt.settings()[0];var selector=ctx._select.selector;$(dt.table().container()).off('mousedown.dtSelect',selector).off('mouseup.dtSelect',selector).off('click.dtSelect',selector);$('body').off('click.dtSelect'+_safeId(dt.table().node()));}/**\r\n * Attach mouse listeners to the table to allow mouse selection of items\r\n *\r\n * @param {DataTable.Api} dt DataTable to remove events from\r\n * @private\r\n */function enableMouseSelection(dt){var container=$(dt.table().container());var ctx=dt.settings()[0];var selector=ctx._select.selector;var matchSelection;container.on('mousedown.dtSelect',selector,function(e){// Disallow text selection for shift clicking on the table so multi\n// element selection doesn't look terrible!\nif(e.shiftKey||e.metaKey||e.ctrlKey){container.css('-moz-user-select','none').one('selectstart.dtSelect',selector,function(){return false;});}if(window.getSelection){matchSelection=window.getSelection();}}).on('mouseup.dtSelect',selector,function(){// Allow text selection to occur again, Mozilla style (tested in FF\n// 35.0.1 - still required)\ncontainer.css('-moz-user-select','');}).on('click.dtSelect',selector,function(e){var items=dt.select.items();var idx;// If text was selected (click and drag), then we shouldn't change\n// the row's selected state\nif(matchSelection){var selection=window.getSelection();// If the element that contains the selection is not in the table, we can ignore it\n// This can happen if the developer selects text from the click event\nif(!selection.anchorNode||$(selection.anchorNode).closest('table')[0]===dt.table().node()){if(selection!==matchSelection){return;}}}var ctx=dt.settings()[0];var wrapperClass=$.trim(dt.settings()[0].oClasses.sWrapper).replace(/ +/g,'.');// Ignore clicks inside a sub-table\nif($(e.target).closest('div.'+wrapperClass)[0]!=dt.table().container()){return;}var cell=dt.cell($(e.target).closest('td, th'));// Check the cell actually belongs to the host DataTable (so child\n// rows, etc, are ignored)\nif(!cell.any()){return;}var event=$.Event('user-select.dt');eventTrigger(dt,event,[items,cell,e]);if(event.isDefaultPrevented()){return;}var cellIndex=cell.index();if(items==='row'){idx=cellIndex.row;typeSelect(e,dt,ctx,'row',idx);}else if(items==='column'){idx=cell.index().column;typeSelect(e,dt,ctx,'column',idx);}else if(items==='cell'){idx=cell.index();typeSelect(e,dt,ctx,'cell',idx);}ctx._select_lastCell=cellIndex;});// Blurable\n$('body').on('click.dtSelect'+_safeId(dt.table().node()),function(e){if(ctx._select.blurable){// If the click was inside the DataTables container, don't blur\nif($(e.target).parents().filter(dt.table().container()).length){return;}// Ignore elements which have been removed from the DOM (i.e. paging\n// buttons)\nif($(e.target).parents('html').length===0){return;}// Don't blur in Editor form\nif($(e.target).parents('div.DTE').length){return;}clear(ctx,true);}});}/**\r\n * Trigger an event on a DataTable\r\n *\r\n * @param {DataTable.Api} api      DataTable to trigger events on\r\n * @param  {boolean}      selected true if selected, false if deselected\r\n * @param  {string}       type     Item type acting on\r\n * @param  {boolean}      any      Require that there are values before\r\n *     triggering\r\n * @private\r\n */function eventTrigger(api,type,args,any){if(any&&!api.flatten().length){return;}if(typeof type==='string'){type=type+'.dt';}args.unshift(api);$(api.table().node()).trigger(type,args);}/**\r\n * Update the information element of the DataTable showing information about the\r\n * items selected. This is done by adding tags to the existing text\r\n * \r\n * @param {DataTable.Api} api DataTable to update\r\n * @private\r\n */function info(api){var ctx=api.settings()[0];if(!ctx._select.info||!ctx.aanFeatures.i){return;}if(api.select.style()==='api'){return;}var rows=api.rows({selected:true}).flatten().length;var columns=api.columns({selected:true}).flatten().length;var cells=api.cells({selected:true}).flatten().length;var add=function(el,name,num){el.append($('<span class=\"select-item\"/>').append(api.i18n('select.'+name+'s',{_:'%d '+name+'s selected',0:'',1:'1 '+name+' selected'},num)));};// Internal knowledge of DataTables to loop over all information elements\n$.each(ctx.aanFeatures.i,function(i,el){el=$(el);var output=$('<span class=\"select-info\"/>');add(output,'row',rows);add(output,'column',columns);add(output,'cell',cells);var exisiting=el.children('span.select-info');if(exisiting.length){exisiting.remove();}if(output.text()!==''){el.append(output);}});}/**\r\n * Initialisation of a new table. Attach event handlers and callbacks to allow\r\n * Select to operate correctly.\r\n *\r\n * This will occur _after_ the initial DataTables initialisation, although\r\n * before Ajax data is rendered, if there is ajax data\r\n *\r\n * @param  {DataTable.settings} ctx Settings object to operate on\r\n * @private\r\n */function init(ctx){var api=new DataTable.Api(ctx);// Row callback so that classes can be added to rows and cells if the item\n// was selected before the element was created. This will happen with the\n// `deferRender` option enabled.\n// \n// This method of attaching to `aoRowCreatedCallback` is a hack until\n// DataTables has proper events for row manipulation If you are reviewing\n// this code to create your own plug-ins, please do not do this!\nctx.aoRowCreatedCallback.push({fn:function(row,data,index){var i,ien;var d=ctx.aoData[index];// Row\nif(d._select_selected){$(row).addClass(ctx._select.className);}// Cells and columns - if separated out, we would need to do two\n// loops, so it makes sense to combine them into a single one\nfor(i=0,ien=ctx.aoColumns.length;i<ien;i++){if(ctx.aoColumns[i]._select_selected||d._selected_cells&&d._selected_cells[i]){$(d.anCells[i]).addClass(ctx._select.className);}}},sName:'select-deferRender'});// On Ajax reload we want to reselect all rows which are currently selected,\n// if there is an rowId (i.e. a unique value to identify each row with)\napi.on('preXhr.dt.dtSelect',function(){// note that column selection doesn't need to be cached and then\n// reselected, as they are already selected\nvar rows=api.rows({selected:true}).ids(true).filter(function(d){return d!==undefined;});var cells=api.cells({selected:true}).eq(0).map(function(cellIdx){var id=api.row(cellIdx.row).id(true);return id?{row:id,column:cellIdx.column}:undefined;}).filter(function(d){return d!==undefined;});// On the next draw, reselect the currently selected items\napi.one('draw.dt.dtSelect',function(){api.rows(rows).select();// `cells` is not a cell index selector, so it needs a loop\nif(cells.any()){cells.each(function(id){api.cells(id.row,id.column).select();});}});});// Update the table information element with selected item summary\napi.on('draw.dtSelect.dt select.dtSelect.dt deselect.dtSelect.dt info.dt',function(){info(api);});// Clean up and release\napi.on('destroy.dtSelect',function(){disableMouseSelection(api);api.off('.dtSelect');});}/**\r\n * Add one or more items (rows or columns) to the selection when shift clicking\r\n * in OS selection style\r\n *\r\n * @param  {DataTable.Api} dt   DataTable\r\n * @param  {string}        type Row or column range selector\r\n * @param  {object}        idx  Item index to select to\r\n * @param  {object}        last Item index to select from\r\n * @private\r\n */function rowColumnRange(dt,type,idx,last){// Add a range of rows from the last selected row to this one\nvar indexes=dt[type+'s']({search:'applied'}).indexes();var idx1=$.inArray(last,indexes);var idx2=$.inArray(idx,indexes);if(!dt[type+'s']({selected:true}).any()&&idx1===-1){// select from top to here - slightly odd, but both Windows and Mac OS\n// do this\nindexes.splice($.inArray(idx,indexes)+1,indexes.length);}else{// reverse so we can shift click 'up' as well as down\nif(idx1>idx2){var tmp=idx2;idx2=idx1;idx1=tmp;}indexes.splice(idx2+1,indexes.length);indexes.splice(0,idx1);}if(!dt[type](idx,{selected:true}).any()){// Select range\ndt[type+'s'](indexes).select();}else{// Deselect range - need to keep the clicked on row selected\nindexes.splice($.inArray(idx,indexes),1);dt[type+'s'](indexes).deselect();}}/**\r\n * Clear all selected items\r\n *\r\n * @param  {DataTable.settings} ctx Settings object of the host DataTable\r\n * @param  {boolean} [force=false] Force the de-selection to happen, regardless\r\n *     of selection style\r\n * @private\r\n */function clear(ctx,force){if(force||ctx._select.style==='single'){var api=new DataTable.Api(ctx);api.rows({selected:true}).deselect();api.columns({selected:true}).deselect();api.cells({selected:true}).deselect();}}/**\r\n * Select items based on the current configuration for style and items.\r\n *\r\n * @param  {object}             e    Mouse event object\r\n * @param  {DataTables.Api}     dt   DataTable\r\n * @param  {DataTable.settings} ctx  Settings object of the host DataTable\r\n * @param  {string}             type Items to select\r\n * @param  {int|object}         idx  Index of the item to select\r\n * @private\r\n */function typeSelect(e,dt,ctx,type,idx){var style=dt.select.style();var toggleable=dt.select.toggleable();var isSelected=dt[type](idx,{selected:true}).any();if(isSelected&&!toggleable){return;}if(style==='os'){if(e.ctrlKey||e.metaKey){// Add or remove from the selection\ndt[type](idx).select(!isSelected);}else if(e.shiftKey){if(type==='cell'){cellRange(dt,idx,ctx._select_lastCell||null);}else{rowColumnRange(dt,type,idx,ctx._select_lastCell?ctx._select_lastCell[type]:null);}}else{// No cmd or shift click - deselect if selected, or select\n// this row only\nvar selected=dt[type+'s']({selected:true});if(isSelected&&selected.flatten().length===1){dt[type](idx).deselect();}else{selected.deselect();dt[type](idx).select();}}}else if(style=='multi+shift'){if(e.shiftKey){if(type==='cell'){cellRange(dt,idx,ctx._select_lastCell||null);}else{rowColumnRange(dt,type,idx,ctx._select_lastCell?ctx._select_lastCell[type]:null);}}else{dt[type](idx).select(!isSelected);}}else{dt[type](idx).select(!isSelected);}}function _safeId(node){return node.id.replace(/[^a-zA-Z0-9\\-\\_]/g,'-');}/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * DataTables selectors\r\n */ // row and column are basically identical just assigned to different properties\n// and checking a different array, so we can dynamically create the functions to\n// reduce the code size\n$.each([{type:'row',prop:'aoData'},{type:'column',prop:'aoColumns'}],function(i,o){DataTable.ext.selector[o.type].push(function(settings,opts,indexes){var selected=opts.selected;var data;var out=[];if(selected!==true&&selected!==false){return indexes;}for(var i=0,ien=indexes.length;i<ien;i++){data=settings[o.prop][indexes[i]];if(selected===true&&data._select_selected===true||selected===false&&!data._select_selected){out.push(indexes[i]);}}return out;});});DataTable.ext.selector.cell.push(function(settings,opts,cells){var selected=opts.selected;var rowData;var out=[];if(selected===undefined){return cells;}for(var i=0,ien=cells.length;i<ien;i++){rowData=settings.aoData[cells[i].row];if(selected===true&&rowData._selected_cells&&rowData._selected_cells[cells[i].column]===true||selected===false&&(!rowData._selected_cells||!rowData._selected_cells[cells[i].column])){out.push(cells[i]);}}return out;});/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * DataTables API\r\n *\r\n * For complete documentation, please refer to the docs/api directory or the\r\n * DataTables site\r\n */ // Local variables to improve compression\nvar apiRegister=DataTable.Api.register;var apiRegisterPlural=DataTable.Api.registerPlural;apiRegister('select()',function(){return this.iterator('table',function(ctx){DataTable.select.init(new DataTable.Api(ctx));});});apiRegister('select.blurable()',function(flag){if(flag===undefined){return this.context[0]._select.blurable;}return this.iterator('table',function(ctx){ctx._select.blurable=flag;});});apiRegister('select.toggleable()',function(flag){if(flag===undefined){return this.context[0]._select.toggleable;}return this.iterator('table',function(ctx){ctx._select.toggleable=flag;});});apiRegister('select.info()',function(flag){if(info===undefined){return this.context[0]._select.info;}return this.iterator('table',function(ctx){ctx._select.info=flag;});});apiRegister('select.items()',function(items){if(items===undefined){return this.context[0]._select.items;}return this.iterator('table',function(ctx){ctx._select.items=items;eventTrigger(new DataTable.Api(ctx),'selectItems',[items]);});});// Takes effect from the _next_ selection. None disables future selection, but\n// does not clear the current selection. Use the `deselect` methods for that\napiRegister('select.style()',function(style){if(style===undefined){return this.context[0]._select.style;}return this.iterator('table',function(ctx){ctx._select.style=style;if(!ctx._select_init){init(ctx);}// Add / remove mouse event handlers. They aren't required when only\n// API selection is available\nvar dt=new DataTable.Api(ctx);disableMouseSelection(dt);if(style!=='api'){enableMouseSelection(dt);}eventTrigger(new DataTable.Api(ctx),'selectStyle',[style]);});});apiRegister('select.selector()',function(selector){if(selector===undefined){return this.context[0]._select.selector;}return this.iterator('table',function(ctx){disableMouseSelection(new DataTable.Api(ctx));ctx._select.selector=selector;if(ctx._select.style!=='api'){enableMouseSelection(new DataTable.Api(ctx));}});});apiRegisterPlural('rows().select()','row().select()',function(select){var api=this;if(select===false){return this.deselect();}this.iterator('row',function(ctx,idx){clear(ctx);ctx.aoData[idx]._select_selected=true;$(ctx.aoData[idx].nTr).addClass(ctx._select.className);});this.iterator('table',function(ctx,i){eventTrigger(api,'select',['row',api[i]],true);});return this;});apiRegisterPlural('columns().select()','column().select()',function(select){var api=this;if(select===false){return this.deselect();}this.iterator('column',function(ctx,idx){clear(ctx);ctx.aoColumns[idx]._select_selected=true;var column=new DataTable.Api(ctx).column(idx);$(column.header()).addClass(ctx._select.className);$(column.footer()).addClass(ctx._select.className);column.nodes().to$().addClass(ctx._select.className);});this.iterator('table',function(ctx,i){eventTrigger(api,'select',['column',api[i]],true);});return this;});apiRegisterPlural('cells().select()','cell().select()',function(select){var api=this;if(select===false){return this.deselect();}this.iterator('cell',function(ctx,rowIdx,colIdx){clear(ctx);var data=ctx.aoData[rowIdx];if(data._selected_cells===undefined){data._selected_cells=[];}data._selected_cells[colIdx]=true;if(data.anCells){$(data.anCells[colIdx]).addClass(ctx._select.className);}});this.iterator('table',function(ctx,i){eventTrigger(api,'select',['cell',api[i]],true);});return this;});apiRegisterPlural('rows().deselect()','row().deselect()',function(){var api=this;this.iterator('row',function(ctx,idx){ctx.aoData[idx]._select_selected=false;$(ctx.aoData[idx].nTr).removeClass(ctx._select.className);});this.iterator('table',function(ctx,i){eventTrigger(api,'deselect',['row',api[i]],true);});return this;});apiRegisterPlural('columns().deselect()','column().deselect()',function(){var api=this;this.iterator('column',function(ctx,idx){ctx.aoColumns[idx]._select_selected=false;var api=new DataTable.Api(ctx);var column=api.column(idx);$(column.header()).removeClass(ctx._select.className);$(column.footer()).removeClass(ctx._select.className);// Need to loop over each cell, rather than just using\n// `column().nodes()` as cells which are individually selected should\n// not have the `selected` class removed from them\napi.cells(null,idx).indexes().each(function(cellIdx){var data=ctx.aoData[cellIdx.row];var cellSelected=data._selected_cells;if(data.anCells&&(!cellSelected||!cellSelected[cellIdx.column])){$(data.anCells[cellIdx.column]).removeClass(ctx._select.className);}});});this.iterator('table',function(ctx,i){eventTrigger(api,'deselect',['column',api[i]],true);});return this;});apiRegisterPlural('cells().deselect()','cell().deselect()',function(){var api=this;this.iterator('cell',function(ctx,rowIdx,colIdx){var data=ctx.aoData[rowIdx];data._selected_cells[colIdx]=false;// Remove class only if the cells exist, and the cell is not column\n// selected, in which case the class should remain (since it is selected\n// in the column)\nif(data.anCells&&!ctx.aoColumns[colIdx]._select_selected){$(data.anCells[colIdx]).removeClass(ctx._select.className);}});this.iterator('table',function(ctx,i){eventTrigger(api,'deselect',['cell',api[i]],true);});return this;});/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Buttons\r\n */function i18n(label,def){return function(dt){return dt.i18n('buttons.'+label,def);};}// Common events with suitable namespaces\nfunction namespacedEvents(config){var unique=config._eventNamespace;return'draw.dt.DT'+unique+' select.dt.DT'+unique+' deselect.dt.DT'+unique;}function enabled(dt,config){if($.inArray('rows',config.limitTo)!==-1&&dt.rows({selected:true}).any()){return true;}if($.inArray('columns',config.limitTo)!==-1&&dt.columns({selected:true}).any()){return true;}if($.inArray('cells',config.limitTo)!==-1&&dt.cells({selected:true}).any()){return true;}return false;}var _buttonNamespace=0;$.extend(DataTable.ext.buttons,{selected:{text:i18n('selected','Selected'),className:'buttons-selected',limitTo:['rows','columns','cells'],init:function(dt,node,config){var that=this;config._eventNamespace='.select'+_buttonNamespace++;// .DT namespace listeners are removed by DataTables automatically\n// on table destroy\ndt.on(namespacedEvents(config),function(){that.enable(enabled(dt,config));});this.disable();},destroy:function(dt,node,config){dt.off(config._eventNamespace);}},selectedSingle:{text:i18n('selectedSingle','Selected single'),className:'buttons-selected-single',init:function(dt,node,config){var that=this;config._eventNamespace='.select'+_buttonNamespace++;dt.on(namespacedEvents(config),function(){var count=dt.rows({selected:true}).flatten().length+dt.columns({selected:true}).flatten().length+dt.cells({selected:true}).flatten().length;that.enable(count===1);});this.disable();},destroy:function(dt,node,config){dt.off(config._eventNamespace);}},selectAll:{text:i18n('selectAll','Select all'),className:'buttons-select-all',action:function(){var items=this.select.items();this[items+'s']().select();}},selectNone:{text:i18n('selectNone','Deselect all'),className:'buttons-select-none',action:function(){clear(this.settings()[0],true);},init:function(dt,node,config){var that=this;config._eventNamespace='.select'+_buttonNamespace++;dt.on(namespacedEvents(config),function(){var count=dt.rows({selected:true}).flatten().length+dt.columns({selected:true}).flatten().length+dt.cells({selected:true}).flatten().length;that.enable(count>0);});this.disable();},destroy:function(dt,node,config){dt.off(config._eventNamespace);}}});$.each(['Row','Column','Cell'],function(i,item){var lc=item.toLowerCase();DataTable.ext.buttons['select'+item+'s']={text:i18n('select'+item+'s','Select '+lc+'s'),className:'buttons-select-'+lc+'s',action:function(){this.select.items(lc);},init:function(dt){var that=this;dt.on('selectItems.dt.DT',function(e,ctx,items){that.active(items===lc);});}};});/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Initialisation\r\n */ // DataTables creation - check if select has been defined in the options. Note\n// this required that the table be in the document! If it isn't then something\n// needs to trigger this method unfortunately. The next major release of\n// DataTables will rework the events and address this.\n$(document).on('preInit.dt.dtSelect',function(e,ctx){if(e.namespace!=='dt'){return;}DataTable.select.init(new DataTable.Api(ctx));});return DataTable.select;});/*! Bootstrap 4 styling wrapper for Select\r\n * ©2018 SpryMedia Ltd - datatables.net/license\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-bs4'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net-select'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){return $.fn.dataTable;});/**\r\n * @summary altEditor\r\n * @description Lightweight editor for DataTables\r\n * @version 3.0\r\n * @copyright Copyright 2016 Kingkode & Gotbootstrap.com\r\n */(function(factory){if(true){// AMD\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'jquery'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()),Object(function webpackMissingModule() { var e = new Error(\"Cannot find module 'datatables.net'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())], __WEBPACK_AMD_DEFINE_RESULT__ = (function($){return factory($,window,document);}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else {}})(function($,window,document,undefined){'use strict';var DataTable=$.fn.dataTable;var _instance=0;/**\r\n\t * altEditor provides modal editing of records for Datatables\r\n\t *\r\n\t * @class altEditor\r\n\t * @constructor\r\n\t * @param {object}\r\n\t *            oTD DataTables settings object\r\n\t * @param {object}\r\n\t *            oConfig Configuration object for altEditor\r\n\t */var altEditor=function(dt,opts){if(!DataTable.versionCheck||!DataTable.versionCheck('1.10.8')){throw\"Warning: altEditor requires DataTables 1.10.8 or greater\";}// User and defaults configuration object\nthis.c=$.extend(true,{},DataTable.defaults.altEditor,altEditor.defaults,opts);/**\r\n\t\t * @namespace Settings object which contains customisable information\r\n\t\t *            for altEditor instance\r\n\t\t */this.s={/** @type {DataTable.Api} DataTables' API instance */dt:new DataTable.Api(dt),/** @type {String} Unique namespace for events attached to the document */namespace:'.altEditor'+_instance++};/**\r\n\t\t * @namespace Common and useful DOM elements for the class instance\r\n\t\t */this.dom={/** @type {jQuery} altEditor handle */modal:$('<div class=\"dt-altEditor-handle\"/>')};/* Constructor logic */this._constructor();};$.extend(altEditor.prototype,{/***************************************************************\r\n\t\t\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t\t\t * Constructor * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t\t\t */ /**\r\n\t\t\t * Initialise the RowReorder instance\r\n\t\t\t *\r\n\t\t\t * @private\r\n\t\t\t */_constructor:function(){var that=this;var dt=this.s.dt;if(dt.settings()[0].oInit.onAddRow)that.onAddRow=dt.settings()[0].oInit.onAddRow;if(dt.settings()[0].oInit.onDeleteRow)that.onDeleteRow=dt.settings()[0].oInit.onDeleteRow;if(dt.settings()[0].oInit.onEditRow)that.onEditRow=dt.settings()[0].oInit.onEditRow;this._setup();dt.on('destroy.altEditor',function(){dt.off('.altEditor');$(dt.table().body()).off(that.s.namespace);$(document.body).off(that.s.namespace);});},/***************************************************************\r\n\t\t\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t\t\t * Private methods * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t\t\t */ /**\r\n\t\t\t * Setup dom and bind button actions\r\n\t\t\t *\r\n\t\t\t * @private\r\n\t\t\t */_setup:function(){var that=this;var dt=this.s.dt;var modal_id='altEditor-modal-'+(\"\"+Math.random()).replace(\".\",\"\");this.modal_selector='#'+modal_id;var modal='<div class=\"modal fade\" id=\"'+modal_id+'\" tabindex=\"-1\" role=\"dialog\">'+'<div class=\"modal-dialog\">'+'<div class=\"modal-content\">'+'<div class=\"modal-header\">'+'<h5 class=\"modal-title\"></h5>'+'<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\"><i class=\"fal fa-times\"></i></span></button>'+'</div>'+'<div class=\"modal-body\">'+'<p></p>'+'</div>'+'<div class=\"modal-footer\">'+'<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Cancel</button>'+//FIXME need i18n\n'<input type=\"submit\" form=\"altEditor-form\" class=\"btn btn-primary\"></input>'+'</div>'+'</div>'+'</div>'+'</div>';// add modal\n$('body').append(modal);// add Edit Button\nif(dt.button('edit:name')){dt.button('edit:name').action(function(e,dt,node,config){that._openEditModal();});$(this.modal_selector).on('click','#editRowBtn',function(e){if(that._inputValidation()){e.preventDefault();e.stopPropagation();that._editRowData();}});}// add Delete Button\nif(dt.button('delete:name')){dt.button('delete:name').action(function(e,dt,node,config){that._openDeleteModal();});$(this.modal_selector).on('click','#deleteRowBtn',function(e){e.preventDefault();e.stopPropagation();that._deleteRow();$(this).prop('disabled',true);});}// add Add Button\nif(dt.button('add:name')){dt.button('add:name').action(function(e,dt,node,config){that._openAddModal();});$(this.modal_selector).on('click','#addRowBtn',function(e){if(that._inputValidation()){e.preventDefault();e.stopPropagation();that._addRowData();}});}// add Refresh button\nif(this.s.dt.button('refresh:name')){this.s.dt.button('refresh:name').action(function(e,dt,node,config){if(dt.ajax&&dt.ajax.url()){dt.ajax.reload();}});}},/**\r\n\t\t\t * Emit an event on the DataTable for listeners\r\n\t\t\t *\r\n\t\t\t * @param {string}\r\n\t\t\t *            name Event name\r\n\t\t\t * @param {array}\r\n\t\t\t *            args Event arguments\r\n\t\t\t * @private\r\n\t\t\t */_emitEvent:function(name,args){this.s.dt.iterator('table',function(ctx,i){$(ctx.nTable).triggerHandler(name+'.dt',args);});},/**\r\n\t\t\t * Open Edit Modal for selected row\r\n\t\t\t *\r\n\t\t\t * @private\r\n\t\t\t */_openEditModal:function(){var that=this;var dt=this.s.dt;var columnDefs=[];// Adding column attributes to object.\n// Please set the ID as readonly.\nfor(var i in dt.context[0].aoColumns){var obj=dt.context[0].aoColumns[i];columnDefs[i]={title:obj.sTitle,name:obj.data?obj.data:obj.mData,type:obj.type?obj.type:'text',options:obj.options?obj.options:[],msg:obj.errorMsg?obj.errorMsg:'',hoverMsg:obj.hoverMsg?obj.hoverMsg:'',pattern:obj.pattern?obj.pattern:'.*',special:obj.special?obj.special:'',unique:obj.unique?obj.unique:false,uniqueMsg:obj.uniqueMsg?obj.uniqueMsg:'',placeholderMsg:obj.placeholderMsg?obj.placeholderMsg:'',maxLength:obj.maxLength?obj.maxLength:false,multiple:obj.multiple?obj.multiple:false,select2:obj.select2?obj.select2:false,datepicker:obj.datepicker?obj.datepicker:false};}var adata=dt.rows({selected:true});// Building edit-form\nvar data=\"\";data+=\"<form name='altEditor-form' role='form' novalidate>\";for(var j in columnDefs){// handle hidden fields\nif(columnDefs[j].type.indexOf(\"hidden\")>=0){data+=\"<input type='hidden' id='\"+columnDefs[j].name+\"' value='\"+adata.data()[0][columnDefs[j].name]+\"'></input>\";}else{// handle fields that are visible to the user\ndata+=\"<div class='form-group row'>\";data+=\"<label for='\"+columnDefs[j].name+\"' class='col-lg-3 col-form-label form-label text-left text-lg-right'>\"+columnDefs[j].title+\":</label>\";data+=\"<div class='col-lg-9'>\";// Adding text-inputs and errorlabels\nif(columnDefs[j].type.indexOf(\"text\")>=0||columnDefs[j].type.indexOf(\"date\")>=0||columnDefs[j].type.indexOf(\"email\")>=0||columnDefs[j].type.indexOf(\"password\")>=0||columnDefs[j].type.indexOf(\"number\")>=0||columnDefs[j].type.indexOf(\"time\")>=0){data+=\"<input type='\"+that._quoteattr(columnDefs[j].type)+\"' id='\"+that._quoteattr(columnDefs[j].name)+\"'  pattern='\"+that._quoteattr(columnDefs[j].pattern)+\"'  title='\"+that._quoteattr(columnDefs[j].hoverMsg)+\"' name='\"+that._quoteattr(columnDefs[j].title)+\"' placeholder='\"+that._quoteattr(columnDefs[j].placeholderMsg)+\"' data-special='\"+that._quoteattr(columnDefs[j].special)+\"' data-errorMsg='\"+that._quoteattr(columnDefs[j].msg)+\"' data-uniqueMsg='\"+that._quoteattr(columnDefs[j].uniqueMsg)+\"' data-unique='\"+columnDefs[j].unique+\"'\"+(columnDefs[j].maxLength==false?\"\":\" maxlength='\"+columnDefs[j].maxLength+\"'\")+\" style='overflow:hidden' class='form-control' value='\"+that._quoteattr(adata.data()[0][columnDefs[j].name])+\"'>\";data+=\"<label id='\"+columnDefs[j].name+\"label\"+\"' class='errorLabel help-block text-danger' style='display: none'></label>\";}// Adding readonly-fields\nif(columnDefs[j].type.indexOf(\"readonly\")>=0){data+=\"<input type='text' readonly  id='\"+columnDefs[j].name+\"' name='\"+columnDefs[j].title+\"' placeholder='\"+columnDefs[j].placeholderMsg+\"' style='overflow:hidden' class='form-control' value='\"+adata.data()[0][columnDefs[j].name]+\"'>\";}// Adding select-fields\nif(columnDefs[j].type.indexOf(\"select\")>=0){var options=\"\";for(var i=0;i<columnDefs[j].options.length;i++){// Assigning the selected value of the <selected> option\nif(adata.data()[0][columnDefs[j].name].indexOf(columnDefs[j].options[i])>=0){options+=\"<option value='\"+columnDefs[j].options[i]+\"'selected>\"+columnDefs[j].options[i]+\"</option>\";}else{options+=\"<option value='\"+columnDefs[j].options[i]+\"'>\"+columnDefs[j].options[i]+\"</option>\";}}data+=\"<select class='custom-select form-control\"+(columnDefs[j].select2?' select2':'')+\"' id='\"+columnDefs[j].name+\"' name='\"+columnDefs[j].title+\"' \"+(columnDefs[j].multiple?'multiple':'')+\">\"+options+\"</select>\";}data+=\"</div><div style='clear:both;'></div></div>\";}}// close form\ndata+=\"</form>\";var selector=this.modal_selector;$(selector).on('show.bs.modal',function(){var btns='<button type=\"button\" data-content=\"remove\" class=\"btn btn-default\" data-dismiss=\"modal\">Cancel</button>'+'<button type=\"button\" data-content=\"remove\" class=\"btn btn-primary\" id=\"editRowBtn\">Save</button>';$(selector).find('.modal-title').html('Edit Record');$(selector).find('.modal-body').html(data);$(selector).find('.modal-footer').html(btns);});$(selector).modal('show');$(selector+' input[0]').focus();// enable select 2 items\nfor(var j in columnDefs){if(columnDefs[j].select2){// require select2\n$(selector).find(\"select#\"+columnDefs[j].name).select2(columnDefs[j].select2);}}// enable datepicker\nfor(var j in columnDefs){if(columnDefs[j].datepicker){// Require jquery-ui\n$(selector).find(\"#\"+columnDefs[j].name).datepicker(columnDefs[j].datepicker);}}},/**\r\n\t\t\t * Callback for \"Edit\" button\r\n\t\t\t */_editRowData:function(){var that=this;var dt=this.s.dt;// Complete new row data\nvar rowDataArray={};var adata=dt.rows({selected:true});// Getting the inputs from the edit-modal\n$('form[name=\"altEditor-form\"] *').filter(':input').each(function(i){rowDataArray[$(this).attr('id')]=$(this).val();});console.log(rowDataArray);//DEBUG\nthat.onEditRow(that,rowDataArray,function(data,b,c,d,e){that._editRowCallback(data,b,c,d,e);},function(data){that._errorCallback(data);});},/**\r\n\t\t\t * Open Delete Modal for selected row\r\n\t\t\t *\r\n\t\t\t * @private\r\n\t\t\t */_openDeleteModal:function(){var that=this;var dt=this.s.dt;var columnDefs=[];// Adding attribute IDs and values to object\nfor(var i in dt.context[0].aoColumns){columnDefs.push({title:dt.context[0].aoColumns[i].sTitle,type:dt.context[0].aoColumns[i].type?dt.context[0].aoColumns[i].type:'text',name:dt.context[0].aoColumns[i].data?dt.context[0].aoColumns[i].data:dt.context[0].aoColumns[i].mData});}var adata=dt.rows({selected:true});// Building delete-modal\nvar data=\"\";data+=\"<form name='altEditor-form' role='form'><div class='row'>\";for(var j in columnDefs){if(columnDefs[j].type.indexOf(\"hidden\")>=0){data+=\"<input type='hidden' id='\"+columnDefs[j].title+\"' value='\"+adata.data()[0][columnDefs[j].name]+\"' readonly></input>\";}else{data+=\"<div class='col-12 mb-2'><label class='form-label' for='\"+that._quoteattr(columnDefs[j].name)+\"'>\"+columnDefs[j].title+\":&nbsp</label> <input  type='hidden'  id='\"+that._quoteattr(columnDefs[j].title)+\"' name='\"+that._quoteattr(columnDefs[j].title)+\"' placeholder='\"+that._quoteattr(columnDefs[j].placeholderMsg)+\"' style='overflow:hidden'  class='form-control' value='\"+that._quoteattr(adata.data()[0][columnDefs[j].name])+\"' >\"+adata.data()[0][columnDefs[j].name]+\"</input></div>\";}}// close the form\ndata+=\"</div></form>\";var selector=this.modal_selector;$(selector).on('show.bs.modal',function(){var btns='<button type=\"button\" data-content=\"remove\" class=\"btn btn-default\" data-dismiss=\"modal\">Cancel</button>'+'<button type=\"button\"  data-content=\"remove\" class=\"btn btn-danger\" id=\"deleteRowBtn\"><i class=\"fal fa-times\"></i> Delete</button>';$(selector).find('.modal-title').html('Delete Record');$(selector).find('.modal-body').html(data);$(selector).find('.modal-footer').html(btns);});$(selector).modal('show');$(selector+' input[0]').focus();},/**\r\n\t\t\t * Callback for \"Delete\" button\r\n\t\t\t */_deleteRow:function(){var that=this;var dt=this.s.dt;var jsonDataArray={};var adata=dt.rows({selected:true});// Getting the IDs and Values of the tablerow\nfor(var i=0;i<dt.context[0].aoColumns.length;i++){// .data is the attribute name, if any; .idx is the column index, so it should always exists \nvar name=dt.context[0].aoColumns[i].data?dt.context[0].aoColumns[i].data:dt.context[0].aoColumns[i].mData?dt.context[0].aoColumns[i].mData:dt.context[0].aoColumns[i].idx;jsonDataArray[name]=adata.data()[0][name];}that.onDeleteRow(that,jsonDataArray,function(data){that._deleteRowCallback(data);},function(data){that._errorCallback(data);});},/**\r\n\t\t\t * Open Add Modal for selected row\r\n\t\t\t *\r\n\t\t\t * @private\r\n\t\t\t */_openAddModal:function(){var that=this;var dt=this.s.dt;var columnDefs=[];// Adding column attributes to object.\nfor(var i in dt.context[0].aoColumns){var obj=dt.context[0].aoColumns[i];columnDefs[i]={title:obj.sTitle,name:obj.data?obj.data:obj.mData,type:obj.type?obj.type:'text',defaultValue:obj.defaultValue?obj.defaultValue:'',options:obj.options?obj.options:[],msg:obj.errorMsg?obj.errorMsg:'',hoverMsg:obj.hoverMsg?obj.hoverMsg:'',pattern:obj.pattern?obj.pattern:'.*',special:obj.special?obj.special:'',placeholderMsg:obj.placeholderMsg?obj.placeholderMsg:'',unique:obj.unique?obj.unique:false,uniqueMsg:obj.uniqueMsg?obj.uniqueMsg:'',maxLength:obj.maxLength?obj.maxLength:false,multiple:obj.multiple?obj.multiple:false,select2:obj.select2?obj.select2:false};}// Building add-form\nvar data=\"\";data+=\"<form name='altEditor-form' role='form' class='needs-validation' novalidate=''>\";for(var j in columnDefs){if(columnDefs[j].type.indexOf(\"hidden\")>=0){// just do nothing for hidden fields!\n}else{data+=\"<div class='form-group row'>\"+\"<label class='form-label col-sm-3 col-form-label text-left text-sm-right' for='\"+columnDefs[j].name+\"'>\"+columnDefs[j].title+\":</label><div class='col-lg-9'>\";// Adding text-inputs and errorlabels\nif(columnDefs[j].type.indexOf(\"text\")>=0||columnDefs[j].type.indexOf(\"date\")>=0||columnDefs[j].type.indexOf(\"email\")>=0||columnDefs[j].type.indexOf(\"password\")>=0||columnDefs[j].type.indexOf(\"number\")>=0||columnDefs[j].type.indexOf(\"time\")>=0){data+=\"<input type='\"+that._quoteattr(columnDefs[j].type)+\"' id='\"+that._quoteattr(columnDefs[j].name)+\"'  pattern='\"+that._quoteattr(columnDefs[j].pattern)+\"'  title='\"+that._quoteattr(columnDefs[j].hoverMsg)+\"' name='\"+that._quoteattr(columnDefs[j].title)+\"' placeholder='\"+that._quoteattr(columnDefs[j].placeholderMsg)+\"' value='\"+that._quoteattr(columnDefs[j].defaultValue)+\"' data-special='\"+columnDefs[j].special+\"' data-errorMsg='\"+that._quoteattr(columnDefs[j].msg)+\"' data-uniqueMsg='\"+that._quoteattr(columnDefs[j].uniqueMsg)+\"' data-unique='\"+columnDefs[j].unique+\"'\"+(columnDefs[j].maxLength==false?\"\":\" maxlength='\"+columnDefs[j].maxLength+\"'\")+\" style='overflow:hidden' class='form-control' value=''>\";data+=\"<label id='\"+that._quoteattr(columnDefs[j].name)+\"label\"+\"' class='errorLabel help-block text-danger' style='display:none'></label>\";}// Adding readonly-fields\nif(columnDefs[j].type.indexOf(\"readonly\")>=0){data+=\"<input type='text' readonly  id='\"+that._quoteattr(columnDefs[j].name)+\"' name='\"+that._quoteattr(columnDefs[j].title)+\"' placeholder='\"+that._quoteattr(columnDefs[j].placeholderMsg)+\"' style='overflow:hidden' class='form-control' value=''>\";}// Adding select-fields\nif(columnDefs[j].type.indexOf(\"select\")>=0){var options=\"\";for(var i=0;i<columnDefs[j].options.length;i++){options+=\"<option value='\"+that._quoteattr(columnDefs[j].options[i])+\"'>\"+columnDefs[j].options[i]+\"</option>\";}data+=\"<select class='custom-select form-control\"+(columnDefs[j].select2?' select2':'')+\"' id='\"+that._quoteattr(columnDefs[j].name)+\"' name='\"+that._quoteattr(columnDefs[j].title)+\"' \"+(columnDefs[j].multiple?'multiple':'')+\">\"+options+\"</select>\";}data+=\"</div><div style='clear:both;'></div></div>\";}}data+=\"</form>\";var selector=this.modal_selector;$(selector).on('show.bs.modal',function(){var btns='<button type=\"button\" data-content=\"remove\" class=\"btn btn-default\" data-dismiss=\"modal\">Cancel</button>'+'<button type=\"button\"  data-content=\"remove\" class=\"btn btn-primary\" id=\"addRowBtn\">Add</button>';$(selector).find('.modal-title').html('Add Record');$(selector).find('.modal-body').html(data);$(selector).find('.modal-footer').html(btns);});$(selector).modal('show');$(selector+' input[0]').focus();// enable select 2 items\nfor(var j in columnDefs){if(columnDefs[j].select2){$(selector).find(\"select#\"+columnDefs[j].name).select2(columnDefs[j].select2);}}},/**\r\n\t\t\t * Callback for \"Add\" button\r\n\t\t\t */_addRowData:function(){var that=this;var dt=this.s.dt;var rowDataArray={};// Getting the inputs from the modal\n$('form[name=\"altEditor-form\"] *').filter(':input').each(function(i){rowDataArray[$(this).attr('id')]=$(this).val();});//console.log(rowDataArray); //DEBUG\nthat.onAddRow(that,rowDataArray,function(data){that._addRowCallback(data);},function(data){that._errorCallback(data);});},/**\r\n\t\t\t * Called after a row has been deleted on server\r\n\t\t\t */_deleteRowCallback:function(response,status,more){var selector=this.modal_selector;$(selector+' .modal-body .alert').remove();var message='<div class=\"alert alert-success\" role=\"alert\">'+'<strong>Success!</strong>'+'</div>';$(selector+' .modal-body').append(message);this.s.dt.row({selected:true}).remove();this.s.dt.draw();// Disabling submit button\n$(\"div\"+selector).find(\"button#addRowBtn\").prop('disabled',true);$(\"div\"+selector).find(\"button#editRowBtn\").prop('disabled',true);$(\"div\"+selector).find(\"button#deleteRowBtn\").prop('disabled',true);//hide modal\n//$(this.modal_selector).modal('hide');\n$(selector).modal('hide');},/**\r\n\t\t\t * Called after a row has been inserted on server\r\n\t\t\t */_addRowCallback:function(response,status,more){//TODO should honor dt.ajax().dataSrc\nvar data=typeof response===\"string\"?JSON.parse(response):response;var selector=this.modal_selector;$(selector+' .modal-body .alert').remove();var message='<div class=\"alert alert-success\" role=\"alert\">'+'<strong>Success!</strong>'+'</div>';$(selector+' .modal-body').append(message);this.s.dt.row.add(data).draw(false);// Disabling submit button\n$(\"div\"+selector).find(\"button#addRowBtn\").prop('disabled',true);$(\"div\"+selector).find(\"button#editRowBtn\").prop('disabled',true);$(\"div\"+selector).find(\"button#deleteRowBtn\").prop('disabled',true);//hide modal\n//$(this.modal_selector).modal('hide');\n$(selector).modal('hide');},/**\r\n\t\t\t * Called after a row has been updated on server\r\n\t\t\t */_editRowCallback:function(response,status,more){//TODO should honor dt.ajax().dataSrc\nvar data=typeof response===\"string\"?JSON.parse(response):response;var selector=this.modal_selector;$(selector+' .modal-body .alert').remove();var message='<div class=\"alert alert-success\" role=\"alert\">'+'<strong>Success!</strong>'+'</div>';$(selector+' .modal-body').prepend(message);this.s.dt.row({selected:true}).data(data);this.s.dt.draw();// Disabling submit button\n$(\"div\"+selector).find(\"button#addRowBtn\").prop('disabled',true);$(\"div\"+selector).find(\"button#editRowBtn\").prop('disabled',true);$(\"div\"+selector).find(\"button#deleteRowBtn\").prop('disabled',true);//hide modal\n//$(this.modal_selector).modal('hide');\n$(selector).modal('hide');},/**\r\n\t\t\t * Called after AJAX server returned an error\r\n\t\t\t */_errorCallback:function(response,status,more){var error=response;var selector=this.modal_selector;$(selector+' .modal-body .alert').remove();var errstr=\"There was an unknown error!\";if(error.responseJSON&&error.responseJSON.errors){errstr=\"\";for(var key in error.responseJSON.errors){errstr+=error.responseJSON.errors[key][0];}}var message='<div class=\"alert alert-danger\" role=\"alert\">'+'<strong>Error!</strong> '+(error.status==null?\"\":'Response code: '+error.status)+\" \"+errstr+'</div>';$(selector+' .modal-body').append(message);},/**\r\n\t\t\t * Default callback for insertion: mock webservice, always success.\r\n\t\t\t */onAddRow:function(dt,rowdata,success,error){console.log(\"Missing AJAX configuration for INSERT\");success(rowdata);},/**\r\n\t\t\t * Default callback for editing: mock webservice, always success.\r\n\t\t\t */onEditRow:function(dt,rowdata,success,error){console.log(\"Missing AJAX configuration for UPDATE\");success(rowdata);},/**\r\n\t\t\t * Default callback for deletion: mock webservice, always success.\r\n\t\t\t */onDeleteRow:function(dt,rowdata,success,error){console.log(\"Missing AJAX configuration for DELETE\");success(rowdata);},/**\r\n\t\t\t * Validates input\r\n\t\t\t * @returns {boolean}\r\n\t\t\t * @private\r\n\t\t\t */_inputValidation:function(){var that=this;var dt=this.s.dt;var isValid=false;var errorcount=0;// Looping through all text fields\n$('form[name=\"altEditor-form\"] *').filter(':text').each(function(i){var errorLabel=\"#\"+$(this).attr(\"id\")+\"label\";// reset error display\n$(errorLabel).hide();$(errorLabel).empty();if(!$(this).val().match($(this).attr(\"pattern\"))){$(errorLabel).html($(this).attr(\"data-errorMsg\"));$(errorLabel).show();errorcount++;}// now check if its should be unique\nelse if($(this).attr(\"data-unique\")==\"true\"){// go through each item in this column\nvar colData=dt.column(\"th:contains('\"+$(this).attr(\"name\")+\"')\").data();var selectedCellData=null;if(dt.row({selected:true}).index()!=null)selectedCellData=dt.cell(dt.row({selected:true}).index(),dt.column(\"th:contains('\"+$(this).attr(\"name\")+\"')\").index()).data();for(var j in colData){// if the element is in the column and its not the selected one then its not unique\nif($(this).val()==colData[j]&&colData[j]!=selectedCellData){$(errorLabel).html($(this).attr(\"data-uniqueMsg\"));$(errorLabel).show();errorcount++;}}}});if(errorcount==0){isValid=true;}return isValid;},/**\r\n\t\t\t * Sanitizes input for use in HTML\r\n\t\t\t * @param s\r\n\t\t\t * @param preserveCR\r\n\t\t\t * @returns {string}\r\n\t\t\t * @private\r\n\t\t\t */_quoteattr:function(s,preserveCR){if(s==null)return\"\";preserveCR=preserveCR?'&#13;':'\\n';return(''+s/* Forces the conversion to string. */).replace(/&/g,'&amp;')/* This MUST be the 1st replacement. */.replace(/'/g,'&apos;')/* The 4 other predefined entities, required. */.replace(/\"/g,'&quot;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/\\r\\n/g,preserveCR)/* Must be before the next replacement. */.replace(/[\\r\\n]/g,preserveCR);}});/**\r\n\t * altEditor version\r\n\t *\r\n\t * @static\r\n\t * @type String\r\n\t */altEditor.version='2.0';/**\r\n\t * altEditor defaults\r\n\t *\r\n\t * @namespace\r\n\t */altEditor.defaults={/**\r\n\t\t * @type {Boolean} Ask user what they want to do, even for a single\r\n\t\t *       option\r\n\t\t */alwaysAsk:false,/** @type {string|null} What will trigger a focus */focus:null,// focus, click, hover\n/** @type {column-selector} Columns to provide auto fill for */columns:'',// all\n/** @type {boolean|null} Update the cells after a drag */update:null,// false is editor given, true otherwise\n/** @type {DataTable.Editor} Editor instance for automatic submission */editor:null};/**\r\n\t * Classes used by altEditor that are configurable\r\n\t *\r\n\t * @namespace\r\n\t */altEditor.classes={/** @type {String} Class used by the selection button */btn:'btn'};// Attach a listener to the document which listens for DataTables\n// initialisation\n// events so we can automatically initialise\n$(document).on('preInit.dt.altEditor',function(e,settings,json){if(e.namespace!=='dt'){return;}var init=settings.oInit.altEditor;var defaults=DataTable.defaults.altEditor;if(init||defaults){var opts=$.extend({},init,defaults);if(init!==false){new altEditor(settings,opts);}}});// Alias for access\nDataTable.altEditor=altEditor;return altEditor;});// ----------- datatables.bundle.js END -------------\n// ----------- datatables.export.js START -------------\n/*!\r\n\r\nJSZip v3.2.1 - A JavaScript class for generating and reading zip files\r\n<http://stuartk.com/jszip>\r\n\r\n(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>\r\nDual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.\r\n\r\nJSZip uses the library pako released under the MIT license :\r\nhttps://github.com/nodeca/pako/blob/master/LICENSE\r\n*/(function(f){if(true){module.exports=f();}else { var g; }})(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=undefined;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f;}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e);},l,l.exports,e,t,n,r);}return n[o].exports;}var i=undefined;for(var o=0;o<r.length;o++)s(r[o]);return s;}({1:[function(require,module,exports){'use strict';var utils=require('./utils');var support=require('./support');// private property\nvar _keyStr=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";// public method for encoding\nexports.encode=function(input){var output=[];var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0,len=input.length,remainingBytes=len;var isArray=utils.getTypeOf(input)!==\"string\";while(i<input.length){remainingBytes=len-i;if(!isArray){chr1=input.charCodeAt(i++);chr2=i<len?input.charCodeAt(i++):0;chr3=i<len?input.charCodeAt(i++):0;}else{chr1=input[i++];chr2=i<len?input[i++]:0;chr3=i<len?input[i++]:0;}enc1=chr1>>2;enc2=(chr1&3)<<4|chr2>>4;enc3=remainingBytes>1?(chr2&15)<<2|chr3>>6:64;enc4=remainingBytes>2?chr3&63:64;output.push(_keyStr.charAt(enc1)+_keyStr.charAt(enc2)+_keyStr.charAt(enc3)+_keyStr.charAt(enc4));}return output.join(\"\");};// public method for decoding\nexports.decode=function(input){var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0,resultIndex=0;var dataUrlPrefix=\"data:\";if(input.substr(0,dataUrlPrefix.length)===dataUrlPrefix){// This is a common error: people give a data url\n// (data:image/png;base64,iVBOR...) with a {base64: true} and\n// wonders why things don't work.\n// We can detect that the string input looks like a data url but we\n// *can't* be sure it is one: removing everything up to the comma would\n// be too dangerous.\nthrow new Error(\"Invalid base64 input, it looks like a data url.\");}input=input.replace(/[^A-Za-z0-9\\+\\/\\=]/g,\"\");var totalLength=input.length*3/4;if(input.charAt(input.length-1)===_keyStr.charAt(64)){totalLength--;}if(input.charAt(input.length-2)===_keyStr.charAt(64)){totalLength--;}if(totalLength%1!==0){// totalLength is not an integer, the length does not match a valid\n// base64 content. That can happen if:\n// - the input is not a base64 content\n// - the input is *almost* a base64 content, with a extra chars at the\n//   beginning or at the end\n// - the input uses a base64 variant (base64url for example)\nthrow new Error(\"Invalid base64 input, bad content length.\");}var output;if(support.uint8array){output=new Uint8Array(totalLength|0);}else{output=new Array(totalLength|0);}while(i<input.length){enc1=_keyStr.indexOf(input.charAt(i++));enc2=_keyStr.indexOf(input.charAt(i++));enc3=_keyStr.indexOf(input.charAt(i++));enc4=_keyStr.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output[resultIndex++]=chr1;if(enc3!==64){output[resultIndex++]=chr2;}if(enc4!==64){output[resultIndex++]=chr3;}}return output;};},{\"./support\":30,\"./utils\":32}],2:[function(require,module,exports){'use strict';var external=require(\"./external\");var DataWorker=require('./stream/DataWorker');var DataLengthProbe=require('./stream/DataLengthProbe');var Crc32Probe=require('./stream/Crc32Probe');var DataLengthProbe=require('./stream/DataLengthProbe');/**\r\n     * Represent a compressed object, with everything needed to decompress it.\r\n     * @constructor\r\n     * @param {number} compressedSize the size of the data compressed.\r\n     * @param {number} uncompressedSize the size of the data after decompression.\r\n     * @param {number} crc32 the crc32 of the decompressed file.\r\n     * @param {object} compression the type of compression, see lib/compressions.js.\r\n     * @param {String|ArrayBuffer|Uint8Array|Buffer} data the compressed data.\r\n     */function CompressedObject(compressedSize,uncompressedSize,crc32,compression,data){this.compressedSize=compressedSize;this.uncompressedSize=uncompressedSize;this.crc32=crc32;this.compression=compression;this.compressedContent=data;}CompressedObject.prototype={/**\r\n         * Create a worker to get the uncompressed content.\r\n         * @return {GenericWorker} the worker.\r\n         */getContentWorker:function(){var worker=new DataWorker(external.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new DataLengthProbe(\"data_length\"));var that=this;worker.on(\"end\",function(){if(this.streamInfo['data_length']!==that.uncompressedSize){throw new Error(\"Bug : uncompressed data size mismatch\");}});return worker;},/**\r\n         * Create a worker to get the compressed content.\r\n         * @return {GenericWorker} the worker.\r\n         */getCompressedWorker:function(){return new DataWorker(external.Promise.resolve(this.compressedContent)).withStreamInfo(\"compressedSize\",this.compressedSize).withStreamInfo(\"uncompressedSize\",this.uncompressedSize).withStreamInfo(\"crc32\",this.crc32).withStreamInfo(\"compression\",this.compression);}};/**\r\n     * Chain the given worker with other workers to compress the content with the\r\n     * given compresion.\r\n     * @param {GenericWorker} uncompressedWorker the worker to pipe.\r\n     * @param {Object} compression the compression object.\r\n     * @param {Object} compressionOptions the options to use when compressing.\r\n     * @return {GenericWorker} the new worker compressing the content.\r\n     */CompressedObject.createWorkerFrom=function(uncompressedWorker,compression,compressionOptions){return uncompressedWorker.pipe(new Crc32Probe()).pipe(new DataLengthProbe(\"uncompressedSize\")).pipe(compression.compressWorker(compressionOptions)).pipe(new DataLengthProbe(\"compressedSize\")).withStreamInfo(\"compression\",compression);};module.exports=CompressedObject;},{\"./external\":6,\"./stream/Crc32Probe\":25,\"./stream/DataLengthProbe\":26,\"./stream/DataWorker\":27}],3:[function(require,module,exports){'use strict';var GenericWorker=require(\"./stream/GenericWorker\");exports.STORE={magic:\"\\x00\\x00\",compressWorker:function(compressionOptions){return new GenericWorker(\"STORE compression\");},uncompressWorker:function(){return new GenericWorker(\"STORE decompression\");}};exports.DEFLATE=require('./flate');},{\"./flate\":7,\"./stream/GenericWorker\":28}],4:[function(require,module,exports){'use strict';var utils=require('./utils');/**\r\n     * The following functions come from pako, from pako/lib/zlib/crc32.js\r\n     * released under the MIT license, see pako https://github.com/nodeca/pako/\r\n     */ // Use ordinary array, since untyped makes no boost here\nfunction makeTable(){var c,table=[];for(var n=0;n<256;n++){c=n;for(var k=0;k<8;k++){c=c&1?0xEDB88320^c>>>1:c>>>1;}table[n]=c;}return table;}// Create table on load. Just 255 signed longs. Not a problem.\nvar crcTable=makeTable();function crc32(crc,buf,len,pos){var t=crcTable,end=pos+len;crc=crc^-1;for(var i=pos;i<end;i++){crc=crc>>>8^t[(crc^buf[i])&0xFF];}return crc^-1;// >>> 0;\n}// That's all for the pako functions.\n/**\r\n     * Compute the crc32 of a string.\r\n     * This is almost the same as the function crc32, but for strings. Using the\r\n     * same function for the two use cases leads to horrible performances.\r\n     * @param {Number} crc the starting value of the crc.\r\n     * @param {String} str the string to use.\r\n     * @param {Number} len the length of the string.\r\n     * @param {Number} pos the starting position for the crc32 computation.\r\n     * @return {Number} the computed crc32.\r\n     */function crc32str(crc,str,len,pos){var t=crcTable,end=pos+len;crc=crc^-1;for(var i=pos;i<end;i++){crc=crc>>>8^t[(crc^str.charCodeAt(i))&0xFF];}return crc^-1;// >>> 0;\n}module.exports=function crc32wrapper(input,crc){if(typeof input===\"undefined\"||!input.length){return 0;}var isArray=utils.getTypeOf(input)!==\"string\";if(isArray){return crc32(crc|0,input,input.length,0);}else{return crc32str(crc|0,input,input.length,0);}};},{\"./utils\":32}],5:[function(require,module,exports){'use strict';exports.base64=false;exports.binary=false;exports.dir=false;exports.createFolders=true;exports.date=null;exports.compression=null;exports.compressionOptions=null;exports.comment=null;exports.unixPermissions=null;exports.dosPermissions=null;},{}],6:[function(require,module,exports){/* global Promise */'use strict';// load the global object first:\n// - it should be better integrated in the system (unhandledRejection in node)\n// - the environment may have a custom Promise implementation (see zone.js)\nvar ES6Promise=null;if(typeof Promise!==\"undefined\"){ES6Promise=Promise;}else{ES6Promise=require(\"lie\");}/**\r\n     * Let the user use/change some implementations.\r\n     */module.exports={Promise:ES6Promise};},{\"lie\":37}],7:[function(require,module,exports){'use strict';var USE_TYPEDARRAY=typeof Uint8Array!=='undefined'&&typeof Uint16Array!=='undefined'&&typeof Uint32Array!=='undefined';var pako=require(\"pako\");var utils=require(\"./utils\");var GenericWorker=require(\"./stream/GenericWorker\");var ARRAY_TYPE=USE_TYPEDARRAY?\"uint8array\":\"array\";exports.magic=\"\\x08\\x00\";/**\r\n     * Create a worker that uses pako to inflate/deflate.\r\n     * @constructor\r\n     * @param {String} action the name of the pako function to call : either \"Deflate\" or \"Inflate\".\r\n     * @param {Object} options the options to use when (de)compressing.\r\n     */function FlateWorker(action,options){GenericWorker.call(this,\"FlateWorker/\"+action);this._pako=null;this._pakoAction=action;this._pakoOptions=options;// the `meta` object from the last chunk received\n// this allow this worker to pass around metadata\nthis.meta={};}utils.inherits(FlateWorker,GenericWorker);/**\r\n     * @see GenericWorker.processChunk\r\n     */FlateWorker.prototype.processChunk=function(chunk){this.meta=chunk.meta;if(this._pako===null){this._createPako();}this._pako.push(utils.transformTo(ARRAY_TYPE,chunk.data),false);};/**\r\n     * @see GenericWorker.flush\r\n     */FlateWorker.prototype.flush=function(){GenericWorker.prototype.flush.call(this);if(this._pako===null){this._createPako();}this._pako.push([],true);};/**\r\n     * @see GenericWorker.cleanUp\r\n     */FlateWorker.prototype.cleanUp=function(){GenericWorker.prototype.cleanUp.call(this);this._pako=null;};/**\r\n     * Create the _pako object.\r\n     * TODO: lazy-loading this object isn't the best solution but it's the\r\n     * quickest. The best solution is to lazy-load the worker list. See also the\r\n     * issue #446.\r\n     */FlateWorker.prototype._createPako=function(){this._pako=new pako[this._pakoAction]({raw:true,level:this._pakoOptions.level||-1// default compression\n});var self=this;this._pako.onData=function(data){self.push({data:data,meta:self.meta});};};exports.compressWorker=function(compressionOptions){return new FlateWorker(\"Deflate\",compressionOptions);};exports.uncompressWorker=function(){return new FlateWorker(\"Inflate\",{});};},{\"./stream/GenericWorker\":28,\"./utils\":32,\"pako\":38}],8:[function(require,module,exports){'use strict';var utils=require('../utils');var GenericWorker=require('../stream/GenericWorker');var utf8=require('../utf8');var crc32=require('../crc32');var signature=require('../signature');/**\r\n     * Transform an integer into a string in hexadecimal.\r\n     * @private\r\n     * @param {number} dec the number to convert.\r\n     * @param {number} bytes the number of bytes to generate.\r\n     * @returns {string} the result.\r\n     */var decToHex=function(dec,bytes){var hex=\"\",i;for(i=0;i<bytes;i++){hex+=String.fromCharCode(dec&0xff);dec=dec>>>8;}return hex;};/**\r\n     * Generate the UNIX part of the external file attributes.\r\n     * @param {Object} unixPermissions the unix permissions or null.\r\n     * @param {Boolean} isDir true if the entry is a directory, false otherwise.\r\n     * @return {Number} a 32 bit integer.\r\n     *\r\n     * adapted from http://unix.stackexchange.com/questions/14705/the-zip-formats-external-file-attribute :\r\n     *\r\n     * TTTTsstrwxrwxrwx0000000000ADVSHR\r\n     * ^^^^____________________________ file type, see zipinfo.c (UNX_*)\r\n     *     ^^^_________________________ setuid, setgid, sticky\r\n     *        ^^^^^^^^^________________ permissions\r\n     *                 ^^^^^^^^^^______ not used ?\r\n     *                           ^^^^^^ DOS attribute bits : Archive, Directory, Volume label, System file, Hidden, Read only\r\n     */var generateUnixExternalFileAttr=function(unixPermissions,isDir){var result=unixPermissions;if(!unixPermissions){// I can't use octal values in strict mode, hence the hexa.\n//  040775 => 0x41fd\n// 0100664 => 0x81b4\nresult=isDir?0x41fd:0x81b4;}return(result&0xFFFF)<<16;};/**\r\n     * Generate the DOS part of the external file attributes.\r\n     * @param {Object} dosPermissions the dos permissions or null.\r\n     * @param {Boolean} isDir true if the entry is a directory, false otherwise.\r\n     * @return {Number} a 32 bit integer.\r\n     *\r\n     * Bit 0     Read-Only\r\n     * Bit 1     Hidden\r\n     * Bit 2     System\r\n     * Bit 3     Volume Label\r\n     * Bit 4     Directory\r\n     * Bit 5     Archive\r\n     */var generateDosExternalFileAttr=function(dosPermissions,isDir){// the dir flag is already set for compatibility\nreturn(dosPermissions||0)&0x3F;};/**\r\n     * Generate the various parts used in the construction of the final zip file.\r\n     * @param {Object} streamInfo the hash with informations about the compressed file.\r\n     * @param {Boolean} streamedContent is the content streamed ?\r\n     * @param {Boolean} streamingEnded is the stream finished ?\r\n     * @param {number} offset the current offset from the start of the zip file.\r\n     * @param {String} platform let's pretend we are this platform (change platform dependents fields)\r\n     * @param {Function} encodeFileName the function to encode the file name / comment.\r\n     * @return {Object} the zip parts.\r\n     */var generateZipParts=function(streamInfo,streamedContent,streamingEnded,offset,platform,encodeFileName){var file=streamInfo['file'],compression=streamInfo['compression'],useCustomEncoding=encodeFileName!==utf8.utf8encode,encodedFileName=utils.transformTo(\"string\",encodeFileName(file.name)),utfEncodedFileName=utils.transformTo(\"string\",utf8.utf8encode(file.name)),comment=file.comment,encodedComment=utils.transformTo(\"string\",encodeFileName(comment)),utfEncodedComment=utils.transformTo(\"string\",utf8.utf8encode(comment)),useUTF8ForFileName=utfEncodedFileName.length!==file.name.length,useUTF8ForComment=utfEncodedComment.length!==comment.length,dosTime,dosDate,extraFields=\"\",unicodePathExtraField=\"\",unicodeCommentExtraField=\"\",dir=file.dir,date=file.date;var dataInfo={crc32:0,compressedSize:0,uncompressedSize:0};// if the content is streamed, the sizes/crc32 are only available AFTER\n// the end of the stream.\nif(!streamedContent||streamingEnded){dataInfo.crc32=streamInfo['crc32'];dataInfo.compressedSize=streamInfo['compressedSize'];dataInfo.uncompressedSize=streamInfo['uncompressedSize'];}var bitflag=0;if(streamedContent){// Bit 3: the sizes/crc32 are set to zero in the local header.\n// The correct values are put in the data descriptor immediately\n// following the compressed data.\nbitflag|=0x0008;}if(!useCustomEncoding&&(useUTF8ForFileName||useUTF8ForComment)){// Bit 11: Language encoding flag (EFS).\nbitflag|=0x0800;}var extFileAttr=0;var versionMadeBy=0;if(dir){// dos or unix, we set the dos dir flag\nextFileAttr|=0x00010;}if(platform===\"UNIX\"){versionMadeBy=0x031E;// UNIX, version 3.0\nextFileAttr|=generateUnixExternalFileAttr(file.unixPermissions,dir);}else{// DOS or other, fallback to DOS\nversionMadeBy=0x0014;// DOS, version 2.0\nextFileAttr|=generateDosExternalFileAttr(file.dosPermissions,dir);}// date\n// @see http://www.delorie.com/djgpp/doc/rbinter/it/52/13.html\n// @see http://www.delorie.com/djgpp/doc/rbinter/it/65/16.html\n// @see http://www.delorie.com/djgpp/doc/rbinter/it/66/16.html\ndosTime=date.getUTCHours();dosTime=dosTime<<6;dosTime=dosTime|date.getUTCMinutes();dosTime=dosTime<<5;dosTime=dosTime|date.getUTCSeconds()/2;dosDate=date.getUTCFullYear()-1980;dosDate=dosDate<<4;dosDate=dosDate|date.getUTCMonth()+1;dosDate=dosDate<<5;dosDate=dosDate|date.getUTCDate();if(useUTF8ForFileName){// set the unicode path extra field. unzip needs at least one extra\n// field to correctly handle unicode path, so using the path is as good\n// as any other information. This could improve the situation with\n// other archive managers too.\n// This field is usually used without the utf8 flag, with a non\n// unicode path in the header (winrar, winzip). This helps (a bit)\n// with the messy Windows' default compressed folders feature but\n// breaks on p7zip which doesn't seek the unicode path extra field.\n// So for now, UTF-8 everywhere !\nunicodePathExtraField=// Version\ndecToHex(1,1)+// NameCRC32\ndecToHex(crc32(encodedFileName),4)+// UnicodeName\nutfEncodedFileName;extraFields+=// Info-ZIP Unicode Path Extra Field\n\"\\x75\\x70\"+// size\ndecToHex(unicodePathExtraField.length,2)+// content\nunicodePathExtraField;}if(useUTF8ForComment){unicodeCommentExtraField=// Version\ndecToHex(1,1)+// CommentCRC32\ndecToHex(crc32(encodedComment),4)+// UnicodeName\nutfEncodedComment;extraFields+=// Info-ZIP Unicode Path Extra Field\n\"\\x75\\x63\"+// size\ndecToHex(unicodeCommentExtraField.length,2)+// content\nunicodeCommentExtraField;}var header=\"\";// version needed to extract\nheader+=\"\\x0A\\x00\";// general purpose bit flag\nheader+=decToHex(bitflag,2);// compression method\nheader+=compression.magic;// last mod file time\nheader+=decToHex(dosTime,2);// last mod file date\nheader+=decToHex(dosDate,2);// crc-32\nheader+=decToHex(dataInfo.crc32,4);// compressed size\nheader+=decToHex(dataInfo.compressedSize,4);// uncompressed size\nheader+=decToHex(dataInfo.uncompressedSize,4);// file name length\nheader+=decToHex(encodedFileName.length,2);// extra field length\nheader+=decToHex(extraFields.length,2);var fileRecord=signature.LOCAL_FILE_HEADER+header+encodedFileName+extraFields;var dirRecord=signature.CENTRAL_FILE_HEADER+// version made by (00: DOS)\ndecToHex(versionMadeBy,2)+// file header (common to file and central directory)\nheader+// file comment length\ndecToHex(encodedComment.length,2)+// disk number start\n\"\\x00\\x00\"+// internal file attributes TODO\n\"\\x00\\x00\"+// external file attributes\ndecToHex(extFileAttr,4)+// relative offset of local header\ndecToHex(offset,4)+// file name\nencodedFileName+// extra field\nextraFields+// file comment\nencodedComment;return{fileRecord:fileRecord,dirRecord:dirRecord};};/**\r\n     * Generate the EOCD record.\r\n     * @param {Number} entriesCount the number of entries in the zip file.\r\n     * @param {Number} centralDirLength the length (in bytes) of the central dir.\r\n     * @param {Number} localDirLength the length (in bytes) of the local dir.\r\n     * @param {String} comment the zip file comment as a binary string.\r\n     * @param {Function} encodeFileName the function to encode the comment.\r\n     * @return {String} the EOCD record.\r\n     */var generateCentralDirectoryEnd=function(entriesCount,centralDirLength,localDirLength,comment,encodeFileName){var dirEnd=\"\";var encodedComment=utils.transformTo(\"string\",encodeFileName(comment));// end of central dir signature\ndirEnd=signature.CENTRAL_DIRECTORY_END+// number of this disk\n\"\\x00\\x00\"+// number of the disk with the start of the central directory\n\"\\x00\\x00\"+// total number of entries in the central directory on this disk\ndecToHex(entriesCount,2)+// total number of entries in the central directory\ndecToHex(entriesCount,2)+// size of the central directory   4 bytes\ndecToHex(centralDirLength,4)+// offset of start of central directory with respect to the starting disk number\ndecToHex(localDirLength,4)+// .ZIP file comment length\ndecToHex(encodedComment.length,2)+// .ZIP file comment\nencodedComment;return dirEnd;};/**\r\n     * Generate data descriptors for a file entry.\r\n     * @param {Object} streamInfo the hash generated by a worker, containing informations\r\n     * on the file entry.\r\n     * @return {String} the data descriptors.\r\n     */var generateDataDescriptors=function(streamInfo){var descriptor=\"\";descriptor=signature.DATA_DESCRIPTOR+// crc-32                          4 bytes\ndecToHex(streamInfo['crc32'],4)+// compressed size                 4 bytes\ndecToHex(streamInfo['compressedSize'],4)+// uncompressed size               4 bytes\ndecToHex(streamInfo['uncompressedSize'],4);return descriptor;};/**\r\n     * A worker to concatenate other workers to create a zip file.\r\n     * @param {Boolean} streamFiles `true` to stream the content of the files,\r\n     * `false` to accumulate it.\r\n     * @param {String} comment the comment to use.\r\n     * @param {String} platform the platform to use, \"UNIX\" or \"DOS\".\r\n     * @param {Function} encodeFileName the function to encode file names and comments.\r\n     */function ZipFileWorker(streamFiles,comment,platform,encodeFileName){GenericWorker.call(this,\"ZipFileWorker\");// The number of bytes written so far. This doesn't count accumulated chunks.\nthis.bytesWritten=0;// The comment of the zip file\nthis.zipComment=comment;// The platform \"generating\" the zip file.\nthis.zipPlatform=platform;// the function to encode file names and comments.\nthis.encodeFileName=encodeFileName;// Should we stream the content of the files ?\nthis.streamFiles=streamFiles;// If `streamFiles` is false, we will need to accumulate the content of the\n// files to calculate sizes / crc32 (and write them *before* the content).\n// This boolean indicates if we are accumulating chunks (it will change a lot\n// during the lifetime of this worker).\nthis.accumulate=false;// The buffer receiving chunks when accumulating content.\nthis.contentBuffer=[];// The list of generated directory records.\nthis.dirRecords=[];// The offset (in bytes) from the beginning of the zip file for the current source.\nthis.currentSourceOffset=0;// The total number of entries in this zip file.\nthis.entriesCount=0;// the name of the file currently being added, null when handling the end of the zip file.\n// Used for the emited metadata.\nthis.currentFile=null;this._sources=[];}utils.inherits(ZipFileWorker,GenericWorker);/**\r\n     * @see GenericWorker.push\r\n     */ZipFileWorker.prototype.push=function(chunk){var currentFilePercent=chunk.meta.percent||0;var entriesCount=this.entriesCount;var remainingFiles=this._sources.length;if(this.accumulate){this.contentBuffer.push(chunk);}else{this.bytesWritten+=chunk.data.length;GenericWorker.prototype.push.call(this,{data:chunk.data,meta:{currentFile:this.currentFile,percent:entriesCount?(currentFilePercent+100*(entriesCount-remainingFiles-1))/entriesCount:100}});}};/**\r\n     * The worker started a new source (an other worker).\r\n     * @param {Object} streamInfo the streamInfo object from the new source.\r\n     */ZipFileWorker.prototype.openedSource=function(streamInfo){this.currentSourceOffset=this.bytesWritten;this.currentFile=streamInfo['file'].name;var streamedContent=this.streamFiles&&!streamInfo['file'].dir;// don't stream folders (because they don't have any content)\nif(streamedContent){var record=generateZipParts(streamInfo,streamedContent,false,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:record.fileRecord,meta:{percent:0}});}else{// we need to wait for the whole file before pushing anything\nthis.accumulate=true;}};/**\r\n     * The worker finished a source (an other worker).\r\n     * @param {Object} streamInfo the streamInfo object from the finished source.\r\n     */ZipFileWorker.prototype.closedSource=function(streamInfo){this.accumulate=false;var streamedContent=this.streamFiles&&!streamInfo['file'].dir;var record=generateZipParts(streamInfo,streamedContent,true,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.dirRecords.push(record.dirRecord);if(streamedContent){// after the streamed file, we put data descriptors\nthis.push({data:generateDataDescriptors(streamInfo),meta:{percent:100}});}else{// the content wasn't streamed, we need to push everything now\n// first the file record, then the content\nthis.push({data:record.fileRecord,meta:{percent:0}});while(this.contentBuffer.length){this.push(this.contentBuffer.shift());}}this.currentFile=null;};/**\r\n     * @see GenericWorker.flush\r\n     */ZipFileWorker.prototype.flush=function(){var localDirLength=this.bytesWritten;for(var i=0;i<this.dirRecords.length;i++){this.push({data:this.dirRecords[i],meta:{percent:100}});}var centralDirLength=this.bytesWritten-localDirLength;var dirEnd=generateCentralDirectoryEnd(this.dirRecords.length,centralDirLength,localDirLength,this.zipComment,this.encodeFileName);this.push({data:dirEnd,meta:{percent:100}});};/**\r\n     * Prepare the next source to be read.\r\n     */ZipFileWorker.prototype.prepareNextSource=function(){this.previous=this._sources.shift();this.openedSource(this.previous.streamInfo);if(this.isPaused){this.previous.pause();}else{this.previous.resume();}};/**\r\n     * @see GenericWorker.registerPrevious\r\n     */ZipFileWorker.prototype.registerPrevious=function(previous){this._sources.push(previous);var self=this;previous.on('data',function(chunk){self.processChunk(chunk);});previous.on('end',function(){self.closedSource(self.previous.streamInfo);if(self._sources.length){self.prepareNextSource();}else{self.end();}});previous.on('error',function(e){self.error(e);});return this;};/**\r\n     * @see GenericWorker.resume\r\n     */ZipFileWorker.prototype.resume=function(){if(!GenericWorker.prototype.resume.call(this)){return false;}if(!this.previous&&this._sources.length){this.prepareNextSource();return true;}if(!this.previous&&!this._sources.length&&!this.generatedError){this.end();return true;}};/**\r\n     * @see GenericWorker.error\r\n     */ZipFileWorker.prototype.error=function(e){var sources=this._sources;if(!GenericWorker.prototype.error.call(this,e)){return false;}for(var i=0;i<sources.length;i++){try{sources[i].error(e);}catch(e){// the `error` exploded, nothing to do\n}}return true;};/**\r\n     * @see GenericWorker.lock\r\n     */ZipFileWorker.prototype.lock=function(){GenericWorker.prototype.lock.call(this);var sources=this._sources;for(var i=0;i<sources.length;i++){sources[i].lock();}};module.exports=ZipFileWorker;},{\"../crc32\":4,\"../signature\":23,\"../stream/GenericWorker\":28,\"../utf8\":31,\"../utils\":32}],9:[function(require,module,exports){'use strict';var compressions=require('../compressions');var ZipFileWorker=require('./ZipFileWorker');/**\r\n     * Find the compression to use.\r\n     * @param {String} fileCompression the compression defined at the file level, if any.\r\n     * @param {String} zipCompression the compression defined at the load() level.\r\n     * @return {Object} the compression object to use.\r\n     */var getCompression=function(fileCompression,zipCompression){var compressionName=fileCompression||zipCompression;var compression=compressions[compressionName];if(!compression){throw new Error(compressionName+\" is not a valid compression method !\");}return compression;};/**\r\n     * Create a worker to generate a zip file.\r\n     * @param {JSZip} zip the JSZip instance at the right root level.\r\n     * @param {Object} options to generate the zip file.\r\n     * @param {String} comment the comment to use.\r\n     */exports.generateWorker=function(zip,options,comment){var zipFileWorker=new ZipFileWorker(options.streamFiles,comment,options.platform,options.encodeFileName);var entriesCount=0;try{zip.forEach(function(relativePath,file){entriesCount++;var compression=getCompression(file.options.compression,options.compression);var compressionOptions=file.options.compressionOptions||options.compressionOptions||{};var dir=file.dir,date=file.date;file._compressWorker(compression,compressionOptions).withStreamInfo(\"file\",{name:relativePath,dir:dir,date:date,comment:file.comment||\"\",unixPermissions:file.unixPermissions,dosPermissions:file.dosPermissions}).pipe(zipFileWorker);});zipFileWorker.entriesCount=entriesCount;}catch(e){zipFileWorker.error(e);}return zipFileWorker;};},{\"../compressions\":3,\"./ZipFileWorker\":8}],10:[function(require,module,exports){'use strict';/**\r\n     * Representation a of zip file in js\r\n     * @constructor\r\n     */function JSZip(){// if this constructor is used without `new`, it adds `new` before itself:\nif(!(this instanceof JSZip)){return new JSZip();}if(arguments.length){throw new Error(\"The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.\");}// object containing the files :\n// {\n//   \"folder/\" : {...},\n//   \"folder/data.txt\" : {...}\n// }\nthis.files={};this.comment=null;// Where we are in the hierarchy\nthis.root=\"\";this.clone=function(){var newObj=new JSZip();for(var i in this){if(typeof this[i]!==\"function\"){newObj[i]=this[i];}}return newObj;};}JSZip.prototype=require('./object');JSZip.prototype.loadAsync=require('./load');JSZip.support=require('./support');JSZip.defaults=require('./defaults');// TODO find a better way to handle this version,\n// a require('package.json').version doesn't work with webpack, see #327\nJSZip.version=\"3.2.0\";JSZip.loadAsync=function(content,options){return new JSZip().loadAsync(content,options);};JSZip.external=require(\"./external\");module.exports=JSZip;},{\"./defaults\":5,\"./external\":6,\"./load\":11,\"./object\":15,\"./support\":30}],11:[function(require,module,exports){'use strict';var utils=require('./utils');var external=require(\"./external\");var utf8=require('./utf8');var utils=require('./utils');var ZipEntries=require('./zipEntries');var Crc32Probe=require('./stream/Crc32Probe');var nodejsUtils=require(\"./nodejsUtils\");/**\r\n     * Check the CRC32 of an entry.\r\n     * @param {ZipEntry} zipEntry the zip entry to check.\r\n     * @return {Promise} the result.\r\n     */function checkEntryCRC32(zipEntry){return new external.Promise(function(resolve,reject){var worker=zipEntry.decompressed.getContentWorker().pipe(new Crc32Probe());worker.on(\"error\",function(e){reject(e);}).on(\"end\",function(){if(worker.streamInfo.crc32!==zipEntry.decompressed.crc32){reject(new Error(\"Corrupted zip : CRC32 mismatch\"));}else{resolve();}}).resume();});}module.exports=function(data,options){var zip=this;options=utils.extend(options||{},{base64:false,checkCRC32:false,optimizedBinaryString:false,createFolders:false,decodeFileName:utf8.utf8decode});if(nodejsUtils.isNode&&nodejsUtils.isStream(data)){return external.Promise.reject(new Error(\"JSZip can't accept a stream when loading a zip file.\"));}return utils.prepareContent(\"the loaded zip file\",data,true,options.optimizedBinaryString,options.base64).then(function(data){var zipEntries=new ZipEntries(options);zipEntries.load(data);return zipEntries;}).then(function checkCRC32(zipEntries){var promises=[external.Promise.resolve(zipEntries)];var files=zipEntries.files;if(options.checkCRC32){for(var i=0;i<files.length;i++){promises.push(checkEntryCRC32(files[i]));}}return external.Promise.all(promises);}).then(function addFiles(results){var zipEntries=results.shift();var files=zipEntries.files;for(var i=0;i<files.length;i++){var input=files[i];zip.file(input.fileNameStr,input.decompressed,{binary:true,optimizedBinaryString:true,date:input.date,dir:input.dir,comment:input.fileCommentStr.length?input.fileCommentStr:null,unixPermissions:input.unixPermissions,dosPermissions:input.dosPermissions,createFolders:options.createFolders});}if(zipEntries.zipComment.length){zip.comment=zipEntries.zipComment;}return zip;});};},{\"./external\":6,\"./nodejsUtils\":14,\"./stream/Crc32Probe\":25,\"./utf8\":31,\"./utils\":32,\"./zipEntries\":33}],12:[function(require,module,exports){\"use strict\";var utils=require('../utils');var GenericWorker=require('../stream/GenericWorker');/**\r\n     * A worker that use a nodejs stream as source.\r\n     * @constructor\r\n     * @param {String} filename the name of the file entry for this stream.\r\n     * @param {Readable} stream the nodejs stream.\r\n     */function NodejsStreamInputAdapter(filename,stream){GenericWorker.call(this,\"Nodejs stream input adapter for \"+filename);this._upstreamEnded=false;this._bindStream(stream);}utils.inherits(NodejsStreamInputAdapter,GenericWorker);/**\r\n     * Prepare the stream and bind the callbacks on it.\r\n     * Do this ASAP on node 0.10 ! A lazy binding doesn't always work.\r\n     * @param {Stream} stream the nodejs stream to use.\r\n     */NodejsStreamInputAdapter.prototype._bindStream=function(stream){var self=this;this._stream=stream;stream.pause();stream.on(\"data\",function(chunk){self.push({data:chunk,meta:{percent:0}});}).on(\"error\",function(e){if(self.isPaused){this.generatedError=e;}else{self.error(e);}}).on(\"end\",function(){if(self.isPaused){self._upstreamEnded=true;}else{self.end();}});};NodejsStreamInputAdapter.prototype.pause=function(){if(!GenericWorker.prototype.pause.call(this)){return false;}this._stream.pause();return true;};NodejsStreamInputAdapter.prototype.resume=function(){if(!GenericWorker.prototype.resume.call(this)){return false;}if(this._upstreamEnded){this.end();}else{this._stream.resume();}return true;};module.exports=NodejsStreamInputAdapter;},{\"../stream/GenericWorker\":28,\"../utils\":32}],13:[function(require,module,exports){'use strict';var Readable=require('readable-stream').Readable;var utils=require('../utils');utils.inherits(NodejsStreamOutputAdapter,Readable);/**\r\n    * A nodejs stream using a worker as source.\r\n    * @see the SourceWrapper in http://nodejs.org/api/stream.html\r\n    * @constructor\r\n    * @param {StreamHelper} helper the helper wrapping the worker\r\n    * @param {Object} options the nodejs stream options\r\n    * @param {Function} updateCb the update callback.\r\n    */function NodejsStreamOutputAdapter(helper,options,updateCb){Readable.call(this,options);this._helper=helper;var self=this;helper.on(\"data\",function(data,meta){if(!self.push(data)){self._helper.pause();}if(updateCb){updateCb(meta);}}).on(\"error\",function(e){self.emit('error',e);}).on(\"end\",function(){self.push(null);});}NodejsStreamOutputAdapter.prototype._read=function(){this._helper.resume();};module.exports=NodejsStreamOutputAdapter;},{\"../utils\":32,\"readable-stream\":16}],14:[function(require,module,exports){'use strict';module.exports={/**\r\n         * True if this is running in Nodejs, will be undefined in a browser.\r\n         * In a browser, browserify won't include this file and the whole module\r\n         * will be resolved an empty object.\r\n         */isNode:typeof Buffer!==\"undefined\",/**\r\n         * Create a new nodejs Buffer from an existing content.\r\n         * @param {Object} data the data to pass to the constructor.\r\n         * @param {String} encoding the encoding to use.\r\n         * @return {Buffer} a new Buffer.\r\n         */newBufferFrom:function(data,encoding){if(Buffer.from&&Buffer.from!==Uint8Array.from){return Buffer.from(data,encoding);}else{if(typeof data===\"number\"){// Safeguard for old Node.js versions. On newer versions,\n// Buffer.from(number) / Buffer(number, encoding) already throw.\nthrow new Error(\"The \\\"data\\\" argument must not be a number\");}return new Buffer(data,encoding);}},/**\r\n         * Create a new nodejs Buffer with the specified size.\r\n         * @param {Integer} size the size of the buffer.\r\n         * @return {Buffer} a new Buffer.\r\n         */allocBuffer:function(size){if(Buffer.alloc){return Buffer.alloc(size);}else{var buf=new Buffer(size);buf.fill(0);return buf;}},/**\r\n         * Find out if an object is a Buffer.\r\n         * @param {Object} b the object to test.\r\n         * @return {Boolean} true if the object is a Buffer, false otherwise.\r\n         */isBuffer:function(b){return Buffer.isBuffer(b);},isStream:function(obj){return obj&&typeof obj.on===\"function\"&&typeof obj.pause===\"function\"&&typeof obj.resume===\"function\";}};},{}],15:[function(require,module,exports){'use strict';var utf8=require('./utf8');var utils=require('./utils');var GenericWorker=require('./stream/GenericWorker');var StreamHelper=require('./stream/StreamHelper');var defaults=require('./defaults');var CompressedObject=require('./compressedObject');var ZipObject=require('./zipObject');var generate=require(\"./generate\");var nodejsUtils=require(\"./nodejsUtils\");var NodejsStreamInputAdapter=require(\"./nodejs/NodejsStreamInputAdapter\");/**\r\n     * Add a file in the current folder.\r\n     * @private\r\n     * @param {string} name the name of the file\r\n     * @param {String|ArrayBuffer|Uint8Array|Buffer} data the data of the file\r\n     * @param {Object} originalOptions the options of the file\r\n     * @return {Object} the new file.\r\n     */var fileAdd=function(name,data,originalOptions){// be sure sub folders exist\nvar dataType=utils.getTypeOf(data),parent;/*\r\n         * Correct options.\r\n         */var o=utils.extend(originalOptions||{},defaults);o.date=o.date||new Date();if(o.compression!==null){o.compression=o.compression.toUpperCase();}if(typeof o.unixPermissions===\"string\"){o.unixPermissions=parseInt(o.unixPermissions,8);}// UNX_IFDIR  0040000 see zipinfo.c\nif(o.unixPermissions&&o.unixPermissions&0x4000){o.dir=true;}// Bit 4    Directory\nif(o.dosPermissions&&o.dosPermissions&0x0010){o.dir=true;}if(o.dir){name=forceTrailingSlash(name);}if(o.createFolders&&(parent=parentFolder(name))){folderAdd.call(this,parent,true);}var isUnicodeString=dataType===\"string\"&&o.binary===false&&o.base64===false;if(!originalOptions||typeof originalOptions.binary===\"undefined\"){o.binary=!isUnicodeString;}var isCompressedEmpty=data instanceof CompressedObject&&data.uncompressedSize===0;if(isCompressedEmpty||o.dir||!data||data.length===0){o.base64=false;o.binary=true;data=\"\";o.compression=\"STORE\";dataType=\"string\";}/*\r\n         * Convert content to fit.\r\n         */var zipObjectContent=null;if(data instanceof CompressedObject||data instanceof GenericWorker){zipObjectContent=data;}else if(nodejsUtils.isNode&&nodejsUtils.isStream(data)){zipObjectContent=new NodejsStreamInputAdapter(name,data);}else{zipObjectContent=utils.prepareContent(name,data,o.binary,o.optimizedBinaryString,o.base64);}var object=new ZipObject(name,zipObjectContent,o);this.files[name]=object;/*\r\n        TODO: we can't throw an exception because we have async promises\r\n        (we can have a promise of a Date() for example) but returning a\r\n        promise is useless because file(name, data) returns the JSZip\r\n        object for chaining. Should we break that to allow the user\r\n        to catch the error ?\r\n    \r\n        return external.Promise.resolve(zipObjectContent)\r\n        .then(function () {\r\n            return object;\r\n        });\r\n        */};/**\r\n     * Find the parent folder of the path.\r\n     * @private\r\n     * @param {string} path the path to use\r\n     * @return {string} the parent folder, or \"\"\r\n     */var parentFolder=function(path){if(path.slice(-1)==='/'){path=path.substring(0,path.length-1);}var lastSlash=path.lastIndexOf('/');return lastSlash>0?path.substring(0,lastSlash):\"\";};/**\r\n     * Returns the path with a slash at the end.\r\n     * @private\r\n     * @param {String} path the path to check.\r\n     * @return {String} the path with a trailing slash.\r\n     */var forceTrailingSlash=function(path){// Check the name ends with a /\nif(path.slice(-1)!==\"/\"){path+=\"/\";// IE doesn't like substr(-1)\n}return path;};/**\r\n     * Add a (sub) folder in the current folder.\r\n     * @private\r\n     * @param {string} name the folder's name\r\n     * @param {boolean=} [createFolders] If true, automatically create sub\r\n     *  folders. Defaults to false.\r\n     * @return {Object} the new folder.\r\n     */var folderAdd=function(name,createFolders){createFolders=typeof createFolders!=='undefined'?createFolders:defaults.createFolders;name=forceTrailingSlash(name);// Does this folder already exist?\nif(!this.files[name]){fileAdd.call(this,name,null,{dir:true,createFolders:createFolders});}return this.files[name];};/**\r\n    * Cross-window, cross-Node-context regular expression detection\r\n    * @param  {Object}  object Anything\r\n    * @return {Boolean}        true if the object is a regular expression,\r\n    * false otherwise\r\n    */function isRegExp(object){return Object.prototype.toString.call(object)===\"[object RegExp]\";}// return the actual prototype of JSZip\nvar out={/**\r\n         * @see loadAsync\r\n         */load:function(){throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\");},/**\r\n         * Call a callback function for each entry at this folder level.\r\n         * @param {Function} cb the callback function:\r\n         * function (relativePath, file) {...}\r\n         * It takes 2 arguments : the relative path and the file.\r\n         */forEach:function(cb){var filename,relativePath,file;for(filename in this.files){if(!this.files.hasOwnProperty(filename)){continue;}file=this.files[filename];relativePath=filename.slice(this.root.length,filename.length);if(relativePath&&filename.slice(0,this.root.length)===this.root){// the file is in the current root\ncb(relativePath,file);// TODO reverse the parameters ? need to be clean AND consistent with the filter search fn...\n}}},/**\r\n         * Filter nested files/folders with the specified function.\r\n         * @param {Function} search the predicate to use :\r\n         * function (relativePath, file) {...}\r\n         * It takes 2 arguments : the relative path and the file.\r\n         * @return {Array} An array of matching elements.\r\n         */filter:function(search){var result=[];this.forEach(function(relativePath,entry){if(search(relativePath,entry)){// the file matches the function\nresult.push(entry);}});return result;},/**\r\n         * Add a file to the zip file, or search a file.\r\n         * @param   {string|RegExp} name The name of the file to add (if data is defined),\r\n         * the name of the file to find (if no data) or a regex to match files.\r\n         * @param   {String|ArrayBuffer|Uint8Array|Buffer} data  The file data, either raw or base64 encoded\r\n         * @param   {Object} o     File options\r\n         * @return  {JSZip|Object|Array} this JSZip object (when adding a file),\r\n         * a file (when searching by string) or an array of files (when searching by regex).\r\n         */file:function(name,data,o){if(arguments.length===1){if(isRegExp(name)){var regexp=name;return this.filter(function(relativePath,file){return!file.dir&&regexp.test(relativePath);});}else{// text\nvar obj=this.files[this.root+name];if(obj&&!obj.dir){return obj;}else{return null;}}}else{// more than one argument : we have data !\nname=this.root+name;fileAdd.call(this,name,data,o);}return this;},/**\r\n         * Add a directory to the zip file, or search.\r\n         * @param   {String|RegExp} arg The name of the directory to add, or a regex to search folders.\r\n         * @return  {JSZip} an object with the new directory as the root, or an array containing matching folders.\r\n         */folder:function(arg){if(!arg){return this;}if(isRegExp(arg)){return this.filter(function(relativePath,file){return file.dir&&arg.test(relativePath);});}// else, name is a new folder\nvar name=this.root+arg;var newFolder=folderAdd.call(this,name);// Allow chaining by returning a new object with this folder as the root\nvar ret=this.clone();ret.root=newFolder.name;return ret;},/**\r\n         * Delete a file, or a directory and all sub-files, from the zip\r\n         * @param {string} name the name of the file to delete\r\n         * @return {JSZip} this JSZip object\r\n         */remove:function(name){name=this.root+name;var file=this.files[name];if(!file){// Look for any folders\nif(name.slice(-1)!==\"/\"){name+=\"/\";}file=this.files[name];}if(file&&!file.dir){// file\ndelete this.files[name];}else{// maybe a folder, delete recursively\nvar kids=this.filter(function(relativePath,file){return file.name.slice(0,name.length)===name;});for(var i=0;i<kids.length;i++){delete this.files[kids[i].name];}}return this;},/**\r\n         * Generate the complete zip file\r\n         * @param {Object} options the options to generate the zip file :\r\n         * - compression, \"STORE\" by default.\r\n         * - type, \"base64\" by default. Values are : string, base64, uint8array, arraybuffer, blob.\r\n         * @return {String|Uint8Array|ArrayBuffer|Buffer|Blob} the zip file\r\n         */generate:function(options){throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\");},/**\r\n         * Generate the complete zip file as an internal stream.\r\n         * @param {Object} options the options to generate the zip file :\r\n         * - compression, \"STORE\" by default.\r\n         * - type, \"base64\" by default. Values are : string, base64, uint8array, arraybuffer, blob.\r\n         * @return {StreamHelper} the streamed zip file.\r\n         */generateInternalStream:function(options){var worker,opts={};try{opts=utils.extend(options||{},{streamFiles:false,compression:\"STORE\",compressionOptions:null,type:\"\",platform:\"DOS\",comment:null,mimeType:'application/zip',encodeFileName:utf8.utf8encode});opts.type=opts.type.toLowerCase();opts.compression=opts.compression.toUpperCase();// \"binarystring\" is prefered but the internals use \"string\".\nif(opts.type===\"binarystring\"){opts.type=\"string\";}if(!opts.type){throw new Error(\"No output type specified.\");}utils.checkSupport(opts.type);// accept nodejs `process.platform`\nif(opts.platform==='darwin'||opts.platform==='freebsd'||opts.platform==='linux'||opts.platform==='sunos'){opts.platform=\"UNIX\";}if(opts.platform==='win32'){opts.platform=\"DOS\";}var comment=opts.comment||this.comment||\"\";worker=generate.generateWorker(this,opts,comment);}catch(e){worker=new GenericWorker(\"error\");worker.error(e);}return new StreamHelper(worker,opts.type||\"string\",opts.mimeType);},/**\r\n         * Generate the complete zip file asynchronously.\r\n         * @see generateInternalStream\r\n         */generateAsync:function(options,onUpdate){return this.generateInternalStream(options).accumulate(onUpdate);},/**\r\n         * Generate the complete zip file asynchronously.\r\n         * @see generateInternalStream\r\n         */generateNodeStream:function(options,onUpdate){options=options||{};if(!options.type){options.type=\"nodebuffer\";}return this.generateInternalStream(options).toNodejsStream(onUpdate);}};module.exports=out;},{\"./compressedObject\":2,\"./defaults\":5,\"./generate\":9,\"./nodejs/NodejsStreamInputAdapter\":12,\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./stream/StreamHelper\":29,\"./utf8\":31,\"./utils\":32,\"./zipObject\":35}],16:[function(require,module,exports){/*\r\n     * This file is used by module bundlers (browserify/webpack/etc) when\r\n     * including a stream implementation. We use \"readable-stream\" to get a\r\n     * consistent behavior between nodejs versions but bundlers often have a shim\r\n     * for \"stream\". Using this shim greatly improve the compatibility and greatly\r\n     * reduce the final size of the bundle (only one stream implementation, not\r\n     * two).\r\n     */module.exports=require(\"stream\");},{\"stream\":undefined}],17:[function(require,module,exports){'use strict';var DataReader=require('./DataReader');var utils=require('../utils');function ArrayReader(data){DataReader.call(this,data);for(var i=0;i<this.data.length;i++){data[i]=data[i]&0xFF;}}utils.inherits(ArrayReader,DataReader);/**\r\n     * @see DataReader.byteAt\r\n     */ArrayReader.prototype.byteAt=function(i){return this.data[this.zero+i];};/**\r\n     * @see DataReader.lastIndexOfSignature\r\n     */ArrayReader.prototype.lastIndexOfSignature=function(sig){var sig0=sig.charCodeAt(0),sig1=sig.charCodeAt(1),sig2=sig.charCodeAt(2),sig3=sig.charCodeAt(3);for(var i=this.length-4;i>=0;--i){if(this.data[i]===sig0&&this.data[i+1]===sig1&&this.data[i+2]===sig2&&this.data[i+3]===sig3){return i-this.zero;}}return-1;};/**\r\n     * @see DataReader.readAndCheckSignature\r\n     */ArrayReader.prototype.readAndCheckSignature=function(sig){var sig0=sig.charCodeAt(0),sig1=sig.charCodeAt(1),sig2=sig.charCodeAt(2),sig3=sig.charCodeAt(3),data=this.readData(4);return sig0===data[0]&&sig1===data[1]&&sig2===data[2]&&sig3===data[3];};/**\r\n     * @see DataReader.readData\r\n     */ArrayReader.prototype.readData=function(size){this.checkOffset(size);if(size===0){return[];}var result=this.data.slice(this.zero+this.index,this.zero+this.index+size);this.index+=size;return result;};module.exports=ArrayReader;},{\"../utils\":32,\"./DataReader\":18}],18:[function(require,module,exports){'use strict';var utils=require('../utils');function DataReader(data){this.data=data;// type : see implementation\nthis.length=data.length;this.index=0;this.zero=0;}DataReader.prototype={/**\r\n         * Check that the offset will not go too far.\r\n         * @param {string} offset the additional offset to check.\r\n         * @throws {Error} an Error if the offset is out of bounds.\r\n         */checkOffset:function(offset){this.checkIndex(this.index+offset);},/**\r\n         * Check that the specified index will not be too far.\r\n         * @param {string} newIndex the index to check.\r\n         * @throws {Error} an Error if the index is out of bounds.\r\n         */checkIndex:function(newIndex){if(this.length<this.zero+newIndex||newIndex<0){throw new Error(\"End of data reached (data length = \"+this.length+\", asked index = \"+newIndex+\"). Corrupted zip ?\");}},/**\r\n         * Change the index.\r\n         * @param {number} newIndex The new index.\r\n         * @throws {Error} if the new index is out of the data.\r\n         */setIndex:function(newIndex){this.checkIndex(newIndex);this.index=newIndex;},/**\r\n         * Skip the next n bytes.\r\n         * @param {number} n the number of bytes to skip.\r\n         * @throws {Error} if the new index is out of the data.\r\n         */skip:function(n){this.setIndex(this.index+n);},/**\r\n         * Get the byte at the specified index.\r\n         * @param {number} i the index to use.\r\n         * @return {number} a byte.\r\n         */byteAt:function(i){// see implementations\n},/**\r\n         * Get the next number with a given byte size.\r\n         * @param {number} size the number of bytes to read.\r\n         * @return {number} the corresponding number.\r\n         */readInt:function(size){var result=0,i;this.checkOffset(size);for(i=this.index+size-1;i>=this.index;i--){result=(result<<8)+this.byteAt(i);}this.index+=size;return result;},/**\r\n         * Get the next string with a given byte size.\r\n         * @param {number} size the number of bytes to read.\r\n         * @return {string} the corresponding string.\r\n         */readString:function(size){return utils.transformTo(\"string\",this.readData(size));},/**\r\n         * Get raw data without conversion, <size> bytes.\r\n         * @param {number} size the number of bytes to read.\r\n         * @return {Object} the raw data, implementation specific.\r\n         */readData:function(size){// see implementations\n},/**\r\n         * Find the last occurence of a zip signature (4 bytes).\r\n         * @param {string} sig the signature to find.\r\n         * @return {number} the index of the last occurence, -1 if not found.\r\n         */lastIndexOfSignature:function(sig){// see implementations\n},/**\r\n         * Read the signature (4 bytes) at the current position and compare it with sig.\r\n         * @param {string} sig the expected signature\r\n         * @return {boolean} true if the signature matches, false otherwise.\r\n         */readAndCheckSignature:function(sig){// see implementations\n},/**\r\n         * Get the next date.\r\n         * @return {Date} the date.\r\n         */readDate:function(){var dostime=this.readInt(4);return new Date(Date.UTC((dostime>>25&0x7f)+1980,// year\n(dostime>>21&0x0f)-1,// month\ndostime>>16&0x1f,// day\ndostime>>11&0x1f,// hour\ndostime>>5&0x3f,// minute\n(dostime&0x1f)<<1));// second\n}};module.exports=DataReader;},{\"../utils\":32}],19:[function(require,module,exports){'use strict';var Uint8ArrayReader=require('./Uint8ArrayReader');var utils=require('../utils');function NodeBufferReader(data){Uint8ArrayReader.call(this,data);}utils.inherits(NodeBufferReader,Uint8ArrayReader);/**\r\n     * @see DataReader.readData\r\n     */NodeBufferReader.prototype.readData=function(size){this.checkOffset(size);var result=this.data.slice(this.zero+this.index,this.zero+this.index+size);this.index+=size;return result;};module.exports=NodeBufferReader;},{\"../utils\":32,\"./Uint8ArrayReader\":21}],20:[function(require,module,exports){'use strict';var DataReader=require('./DataReader');var utils=require('../utils');function StringReader(data){DataReader.call(this,data);}utils.inherits(StringReader,DataReader);/**\r\n     * @see DataReader.byteAt\r\n     */StringReader.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i);};/**\r\n     * @see DataReader.lastIndexOfSignature\r\n     */StringReader.prototype.lastIndexOfSignature=function(sig){return this.data.lastIndexOf(sig)-this.zero;};/**\r\n     * @see DataReader.readAndCheckSignature\r\n     */StringReader.prototype.readAndCheckSignature=function(sig){var data=this.readData(4);return sig===data;};/**\r\n     * @see DataReader.readData\r\n     */StringReader.prototype.readData=function(size){this.checkOffset(size);// this will work because the constructor applied the \"& 0xff\" mask.\nvar result=this.data.slice(this.zero+this.index,this.zero+this.index+size);this.index+=size;return result;};module.exports=StringReader;},{\"../utils\":32,\"./DataReader\":18}],21:[function(require,module,exports){'use strict';var ArrayReader=require('./ArrayReader');var utils=require('../utils');function Uint8ArrayReader(data){ArrayReader.call(this,data);}utils.inherits(Uint8ArrayReader,ArrayReader);/**\r\n     * @see DataReader.readData\r\n     */Uint8ArrayReader.prototype.readData=function(size){this.checkOffset(size);if(size===0){// in IE10, when using subarray(idx, idx), we get the array [0x00] instead of [].\nreturn new Uint8Array(0);}var result=this.data.subarray(this.zero+this.index,this.zero+this.index+size);this.index+=size;return result;};module.exports=Uint8ArrayReader;},{\"../utils\":32,\"./ArrayReader\":17}],22:[function(require,module,exports){'use strict';var utils=require('../utils');var support=require('../support');var ArrayReader=require('./ArrayReader');var StringReader=require('./StringReader');var NodeBufferReader=require('./NodeBufferReader');var Uint8ArrayReader=require('./Uint8ArrayReader');/**\r\n     * Create a reader adapted to the data.\r\n     * @param {String|ArrayBuffer|Uint8Array|Buffer} data the data to read.\r\n     * @return {DataReader} the data reader.\r\n     */module.exports=function(data){var type=utils.getTypeOf(data);utils.checkSupport(type);if(type===\"string\"&&!support.uint8array){return new StringReader(data);}if(type===\"nodebuffer\"){return new NodeBufferReader(data);}if(support.uint8array){return new Uint8ArrayReader(utils.transformTo(\"uint8array\",data));}return new ArrayReader(utils.transformTo(\"array\",data));};},{\"../support\":30,\"../utils\":32,\"./ArrayReader\":17,\"./NodeBufferReader\":19,\"./StringReader\":20,\"./Uint8ArrayReader\":21}],23:[function(require,module,exports){'use strict';exports.LOCAL_FILE_HEADER=\"PK\\x03\\x04\";exports.CENTRAL_FILE_HEADER=\"PK\\x01\\x02\";exports.CENTRAL_DIRECTORY_END=\"PK\\x05\\x06\";exports.ZIP64_CENTRAL_DIRECTORY_LOCATOR=\"PK\\x06\\x07\";exports.ZIP64_CENTRAL_DIRECTORY_END=\"PK\\x06\\x06\";exports.DATA_DESCRIPTOR=\"PK\\x07\\x08\";},{}],24:[function(require,module,exports){'use strict';var GenericWorker=require('./GenericWorker');var utils=require('../utils');/**\r\n     * A worker which convert chunks to a specified type.\r\n     * @constructor\r\n     * @param {String} destType the destination type.\r\n     */function ConvertWorker(destType){GenericWorker.call(this,\"ConvertWorker to \"+destType);this.destType=destType;}utils.inherits(ConvertWorker,GenericWorker);/**\r\n     * @see GenericWorker.processChunk\r\n     */ConvertWorker.prototype.processChunk=function(chunk){this.push({data:utils.transformTo(this.destType,chunk.data),meta:chunk.meta});};module.exports=ConvertWorker;},{\"../utils\":32,\"./GenericWorker\":28}],25:[function(require,module,exports){'use strict';var GenericWorker=require('./GenericWorker');var crc32=require('../crc32');var utils=require('../utils');/**\r\n     * A worker which calculate the crc32 of the data flowing through.\r\n     * @constructor\r\n     */function Crc32Probe(){GenericWorker.call(this,\"Crc32Probe\");this.withStreamInfo(\"crc32\",0);}utils.inherits(Crc32Probe,GenericWorker);/**\r\n     * @see GenericWorker.processChunk\r\n     */Crc32Probe.prototype.processChunk=function(chunk){this.streamInfo.crc32=crc32(chunk.data,this.streamInfo.crc32||0);this.push(chunk);};module.exports=Crc32Probe;},{\"../crc32\":4,\"../utils\":32,\"./GenericWorker\":28}],26:[function(require,module,exports){'use strict';var utils=require('../utils');var GenericWorker=require('./GenericWorker');/**\r\n     * A worker which calculate the total length of the data flowing through.\r\n     * @constructor\r\n     * @param {String} propName the name used to expose the length\r\n     */function DataLengthProbe(propName){GenericWorker.call(this,\"DataLengthProbe for \"+propName);this.propName=propName;this.withStreamInfo(propName,0);}utils.inherits(DataLengthProbe,GenericWorker);/**\r\n     * @see GenericWorker.processChunk\r\n     */DataLengthProbe.prototype.processChunk=function(chunk){if(chunk){var length=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=length+chunk.data.length;}GenericWorker.prototype.processChunk.call(this,chunk);};module.exports=DataLengthProbe;},{\"../utils\":32,\"./GenericWorker\":28}],27:[function(require,module,exports){'use strict';var utils=require('../utils');var GenericWorker=require('./GenericWorker');// the size of the generated chunks\n// TODO expose this as a public variable\nvar DEFAULT_BLOCK_SIZE=16*1024;/**\r\n     * A worker that reads a content and emits chunks.\r\n     * @constructor\r\n     * @param {Promise} dataP the promise of the data to split\r\n     */function DataWorker(dataP){GenericWorker.call(this,\"DataWorker\");var self=this;this.dataIsReady=false;this.index=0;this.max=0;this.data=null;this.type=\"\";this._tickScheduled=false;dataP.then(function(data){self.dataIsReady=true;self.data=data;self.max=data&&data.length||0;self.type=utils.getTypeOf(data);if(!self.isPaused){self._tickAndRepeat();}},function(e){self.error(e);});}utils.inherits(DataWorker,GenericWorker);/**\r\n     * @see GenericWorker.cleanUp\r\n     */DataWorker.prototype.cleanUp=function(){GenericWorker.prototype.cleanUp.call(this);this.data=null;};/**\r\n     * @see GenericWorker.resume\r\n     */DataWorker.prototype.resume=function(){if(!GenericWorker.prototype.resume.call(this)){return false;}if(!this._tickScheduled&&this.dataIsReady){this._tickScheduled=true;utils.delay(this._tickAndRepeat,[],this);}return true;};/**\r\n     * Trigger a tick a schedule an other call to this function.\r\n     */DataWorker.prototype._tickAndRepeat=function(){this._tickScheduled=false;if(this.isPaused||this.isFinished){return;}this._tick();if(!this.isFinished){utils.delay(this._tickAndRepeat,[],this);this._tickScheduled=true;}};/**\r\n     * Read and push a chunk.\r\n     */DataWorker.prototype._tick=function(){if(this.isPaused||this.isFinished){return false;}var size=DEFAULT_BLOCK_SIZE;var data=null,nextIndex=Math.min(this.max,this.index+size);if(this.index>=this.max){// EOF\nreturn this.end();}else{switch(this.type){case\"string\":data=this.data.substring(this.index,nextIndex);break;case\"uint8array\":data=this.data.subarray(this.index,nextIndex);break;case\"array\":case\"nodebuffer\":data=this.data.slice(this.index,nextIndex);break;}this.index=nextIndex;return this.push({data:data,meta:{percent:this.max?this.index/this.max*100:0}});}};module.exports=DataWorker;},{\"../utils\":32,\"./GenericWorker\":28}],28:[function(require,module,exports){'use strict';/**\r\n     * A worker that does nothing but passing chunks to the next one. This is like\r\n     * a nodejs stream but with some differences. On the good side :\r\n     * - it works on IE 6-9 without any issue / polyfill\r\n     * - it weights less than the full dependencies bundled with browserify\r\n     * - it forwards errors (no need to declare an error handler EVERYWHERE)\r\n     *\r\n     * A chunk is an object with 2 attributes : `meta` and `data`. The former is an\r\n     * object containing anything (`percent` for example), see each worker for more\r\n     * details. The latter is the real data (String, Uint8Array, etc).\r\n     *\r\n     * @constructor\r\n     * @param {String} name the name of the stream (mainly used for debugging purposes)\r\n     */function GenericWorker(name){// the name of the worker\nthis.name=name||\"default\";// an object containing metadata about the workers chain\nthis.streamInfo={};// an error which happened when the worker was paused\nthis.generatedError=null;// an object containing metadata to be merged by this worker into the general metadata\nthis.extraStreamInfo={};// true if the stream is paused (and should not do anything), false otherwise\nthis.isPaused=true;// true if the stream is finished (and should not do anything), false otherwise\nthis.isFinished=false;// true if the stream is locked to prevent further structure updates (pipe), false otherwise\nthis.isLocked=false;// the event listeners\nthis._listeners={'data':[],'end':[],'error':[]};// the previous worker, if any\nthis.previous=null;}GenericWorker.prototype={/**\r\n         * Push a chunk to the next workers.\r\n         * @param {Object} chunk the chunk to push\r\n         */push:function(chunk){this.emit(\"data\",chunk);},/**\r\n         * End the stream.\r\n         * @return {Boolean} true if this call ended the worker, false otherwise.\r\n         */end:function(){if(this.isFinished){return false;}this.flush();try{this.emit(\"end\");this.cleanUp();this.isFinished=true;}catch(e){this.emit(\"error\",e);}return true;},/**\r\n         * End the stream with an error.\r\n         * @param {Error} e the error which caused the premature end.\r\n         * @return {Boolean} true if this call ended the worker with an error, false otherwise.\r\n         */error:function(e){if(this.isFinished){return false;}if(this.isPaused){this.generatedError=e;}else{this.isFinished=true;this.emit(\"error\",e);// in the workers chain exploded in the middle of the chain,\n// the error event will go downward but we also need to notify\n// workers upward that there has been an error.\nif(this.previous){this.previous.error(e);}this.cleanUp();}return true;},/**\r\n         * Add a callback on an event.\r\n         * @param {String} name the name of the event (data, end, error)\r\n         * @param {Function} listener the function to call when the event is triggered\r\n         * @return {GenericWorker} the current object for chainability\r\n         */on:function(name,listener){this._listeners[name].push(listener);return this;},/**\r\n         * Clean any references when a worker is ending.\r\n         */cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null;this._listeners=[];},/**\r\n         * Trigger an event. This will call registered callback with the provided arg.\r\n         * @param {String} name the name of the event (data, end, error)\r\n         * @param {Object} arg the argument to call the callback with.\r\n         */emit:function(name,arg){if(this._listeners[name]){for(var i=0;i<this._listeners[name].length;i++){this._listeners[name][i].call(this,arg);}}},/**\r\n         * Chain a worker with an other.\r\n         * @param {Worker} next the worker receiving events from the current one.\r\n         * @return {worker} the next worker for chainability\r\n         */pipe:function(next){return next.registerPrevious(this);},/**\r\n         * Same as `pipe` in the other direction.\r\n         * Using an API with `pipe(next)` is very easy.\r\n         * Implementing the API with the point of view of the next one registering\r\n         * a source is easier, see the ZipFileWorker.\r\n         * @param {Worker} previous the previous worker, sending events to this one\r\n         * @return {Worker} the current worker for chainability\r\n         */registerPrevious:function(previous){if(this.isLocked){throw new Error(\"The stream '\"+this+\"' has already been used.\");}// sharing the streamInfo...\nthis.streamInfo=previous.streamInfo;// ... and adding our own bits\nthis.mergeStreamInfo();this.previous=previous;var self=this;previous.on('data',function(chunk){self.processChunk(chunk);});previous.on('end',function(){self.end();});previous.on('error',function(e){self.error(e);});return this;},/**\r\n         * Pause the stream so it doesn't send events anymore.\r\n         * @return {Boolean} true if this call paused the worker, false otherwise.\r\n         */pause:function(){if(this.isPaused||this.isFinished){return false;}this.isPaused=true;if(this.previous){this.previous.pause();}return true;},/**\r\n         * Resume a paused stream.\r\n         * @return {Boolean} true if this call resumed the worker, false otherwise.\r\n         */resume:function(){if(!this.isPaused||this.isFinished){return false;}this.isPaused=false;// if true, the worker tried to resume but failed\nvar withError=false;if(this.generatedError){this.error(this.generatedError);withError=true;}if(this.previous){this.previous.resume();}return!withError;},/**\r\n         * Flush any remaining bytes as the stream is ending.\r\n         */flush:function(){},/**\r\n         * Process a chunk. This is usually the method overridden.\r\n         * @param {Object} chunk the chunk to process.\r\n         */processChunk:function(chunk){this.push(chunk);},/**\r\n         * Add a key/value to be added in the workers chain streamInfo once activated.\r\n         * @param {String} key the key to use\r\n         * @param {Object} value the associated value\r\n         * @return {Worker} the current worker for chainability\r\n         */withStreamInfo:function(key,value){this.extraStreamInfo[key]=value;this.mergeStreamInfo();return this;},/**\r\n         * Merge this worker's streamInfo into the chain's streamInfo.\r\n         */mergeStreamInfo:function(){for(var key in this.extraStreamInfo){if(!this.extraStreamInfo.hasOwnProperty(key)){continue;}this.streamInfo[key]=this.extraStreamInfo[key];}},/**\r\n         * Lock the stream to prevent further updates on the workers chain.\r\n         * After calling this method, all calls to pipe will fail.\r\n         */lock:function(){if(this.isLocked){throw new Error(\"The stream '\"+this+\"' has already been used.\");}this.isLocked=true;if(this.previous){this.previous.lock();}},/**\r\n         *\r\n         * Pretty print the workers chain.\r\n         */toString:function(){var me=\"Worker \"+this.name;if(this.previous){return this.previous+\" -> \"+me;}else{return me;}}};module.exports=GenericWorker;},{}],29:[function(require,module,exports){'use strict';var utils=require('../utils');var ConvertWorker=require('./ConvertWorker');var GenericWorker=require('./GenericWorker');var base64=require('../base64');var support=require(\"../support\");var external=require(\"../external\");var NodejsStreamOutputAdapter=null;if(support.nodestream){try{NodejsStreamOutputAdapter=require('../nodejs/NodejsStreamOutputAdapter');}catch(e){}}/**\r\n     * Apply the final transformation of the data. If the user wants a Blob for\r\n     * example, it's easier to work with an U8intArray and finally do the\r\n     * ArrayBuffer/Blob conversion.\r\n     * @param {String} type the name of the final type\r\n     * @param {String|Uint8Array|Buffer} content the content to transform\r\n     * @param {String} mimeType the mime type of the content, if applicable.\r\n     * @return {String|Uint8Array|ArrayBuffer|Buffer|Blob} the content in the right format.\r\n     */function transformZipOutput(type,content,mimeType){switch(type){case\"blob\":return utils.newBlob(utils.transformTo(\"arraybuffer\",content),mimeType);case\"base64\":return base64.encode(content);default:return utils.transformTo(type,content);}}/**\r\n     * Concatenate an array of data of the given type.\r\n     * @param {String} type the type of the data in the given array.\r\n     * @param {Array} dataArray the array containing the data chunks to concatenate\r\n     * @return {String|Uint8Array|Buffer} the concatenated data\r\n     * @throws Error if the asked type is unsupported\r\n     */function concat(type,dataArray){var i,index=0,res=null,totalLength=0;for(i=0;i<dataArray.length;i++){totalLength+=dataArray[i].length;}switch(type){case\"string\":return dataArray.join(\"\");case\"array\":return Array.prototype.concat.apply([],dataArray);case\"uint8array\":res=new Uint8Array(totalLength);for(i=0;i<dataArray.length;i++){res.set(dataArray[i],index);index+=dataArray[i].length;}return res;case\"nodebuffer\":return Buffer.concat(dataArray);default:throw new Error(\"concat : unsupported type '\"+type+\"'\");}}/**\r\n     * Listen a StreamHelper, accumulate its content and concatenate it into a\r\n     * complete block.\r\n     * @param {StreamHelper} helper the helper to use.\r\n     * @param {Function} updateCallback a callback called on each update. Called\r\n     * with one arg :\r\n     * - the metadata linked to the update received.\r\n     * @return Promise the promise for the accumulation.\r\n     */function accumulate(helper,updateCallback){return new external.Promise(function(resolve,reject){var dataArray=[];var chunkType=helper._internalType,resultType=helper._outputType,mimeType=helper._mimeType;helper.on('data',function(data,meta){dataArray.push(data);if(updateCallback){updateCallback(meta);}}).on('error',function(err){dataArray=[];reject(err);}).on('end',function(){try{var result=transformZipOutput(resultType,concat(chunkType,dataArray),mimeType);resolve(result);}catch(e){reject(e);}dataArray=[];}).resume();});}/**\r\n     * An helper to easily use workers outside of JSZip.\r\n     * @constructor\r\n     * @param {Worker} worker the worker to wrap\r\n     * @param {String} outputType the type of data expected by the use\r\n     * @param {String} mimeType the mime type of the content, if applicable.\r\n     */function StreamHelper(worker,outputType,mimeType){var internalType=outputType;switch(outputType){case\"blob\":case\"arraybuffer\":internalType=\"uint8array\";break;case\"base64\":internalType=\"string\";break;}try{// the type used internally\nthis._internalType=internalType;// the type used to output results\nthis._outputType=outputType;// the mime type\nthis._mimeType=mimeType;utils.checkSupport(internalType);this._worker=worker.pipe(new ConvertWorker(internalType));// the last workers can be rewired without issues but we need to\n// prevent any updates on previous workers.\nworker.lock();}catch(e){this._worker=new GenericWorker(\"error\");this._worker.error(e);}}StreamHelper.prototype={/**\r\n         * Listen a StreamHelper, accumulate its content and concatenate it into a\r\n         * complete block.\r\n         * @param {Function} updateCb the update callback.\r\n         * @return Promise the promise for the accumulation.\r\n         */accumulate:function(updateCb){return accumulate(this,updateCb);},/**\r\n         * Add a listener on an event triggered on a stream.\r\n         * @param {String} evt the name of the event\r\n         * @param {Function} fn the listener\r\n         * @return {StreamHelper} the current helper.\r\n         */on:function(evt,fn){var self=this;if(evt===\"data\"){this._worker.on(evt,function(chunk){fn.call(self,chunk.data,chunk.meta);});}else{this._worker.on(evt,function(){utils.delay(fn,arguments,self);});}return this;},/**\r\n         * Resume the flow of chunks.\r\n         * @return {StreamHelper} the current helper.\r\n         */resume:function(){utils.delay(this._worker.resume,[],this._worker);return this;},/**\r\n         * Pause the flow of chunks.\r\n         * @return {StreamHelper} the current helper.\r\n         */pause:function(){this._worker.pause();return this;},/**\r\n         * Return a nodejs stream for this helper.\r\n         * @param {Function} updateCb the update callback.\r\n         * @return {NodejsStreamOutputAdapter} the nodejs stream.\r\n         */toNodejsStream:function(updateCb){utils.checkSupport(\"nodestream\");if(this._outputType!==\"nodebuffer\"){// an object stream containing blob/arraybuffer/uint8array/string\n// is strange and I don't know if it would be useful.\n// I you find this comment and have a good usecase, please open a\n// bug report !\nthrow new Error(this._outputType+\" is not supported by this method\");}return new NodejsStreamOutputAdapter(this,{objectMode:this._outputType!==\"nodebuffer\"},updateCb);}};module.exports=StreamHelper;},{\"../base64\":1,\"../external\":6,\"../nodejs/NodejsStreamOutputAdapter\":13,\"../support\":30,\"../utils\":32,\"./ConvertWorker\":24,\"./GenericWorker\":28}],30:[function(require,module,exports){'use strict';exports.base64=true;exports.array=true;exports.string=true;exports.arraybuffer=typeof ArrayBuffer!==\"undefined\"&&typeof Uint8Array!==\"undefined\";exports.nodebuffer=typeof Buffer!==\"undefined\";// contains true if JSZip can read/generate Uint8Array, false otherwise.\nexports.uint8array=typeof Uint8Array!==\"undefined\";if(typeof ArrayBuffer===\"undefined\"){exports.blob=false;}else{var buffer=new ArrayBuffer(0);try{exports.blob=new Blob([buffer],{type:\"application/zip\"}).size===0;}catch(e){try{var Builder=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder;var builder=new Builder();builder.append(buffer);exports.blob=builder.getBlob('application/zip').size===0;}catch(e){exports.blob=false;}}}try{exports.nodestream=!!require('readable-stream').Readable;}catch(e){exports.nodestream=false;}},{\"readable-stream\":16}],31:[function(require,module,exports){'use strict';var utils=require('./utils');var support=require('./support');var nodejsUtils=require('./nodejsUtils');var GenericWorker=require('./stream/GenericWorker');/**\r\n     * The following functions come from pako, from pako/lib/utils/strings\r\n     * released under the MIT license, see pako https://github.com/nodeca/pako/\r\n     */ // Table with utf8 lengths (calculated by first byte of sequence)\n// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS,\n// because max possible codepoint is 0x10ffff\nvar _utf8len=new Array(256);for(var i=0;i<256;i++){_utf8len[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;}_utf8len[254]=_utf8len[254]=1;// Invalid sequence start\n// convert string to array (typed, when possible)\nvar string2buf=function(str){var buf,c,c2,m_pos,i,str_len=str.length,buf_len=0;// count binary size\nfor(m_pos=0;m_pos<str_len;m_pos++){c=str.charCodeAt(m_pos);if((c&0xfc00)===0xd800&&m_pos+1<str_len){c2=str.charCodeAt(m_pos+1);if((c2&0xfc00)===0xdc00){c=0x10000+(c-0xd800<<10)+(c2-0xdc00);m_pos++;}}buf_len+=c<0x80?1:c<0x800?2:c<0x10000?3:4;}// allocate buffer\nif(support.uint8array){buf=new Uint8Array(buf_len);}else{buf=new Array(buf_len);}// convert\nfor(i=0,m_pos=0;i<buf_len;m_pos++){c=str.charCodeAt(m_pos);if((c&0xfc00)===0xd800&&m_pos+1<str_len){c2=str.charCodeAt(m_pos+1);if((c2&0xfc00)===0xdc00){c=0x10000+(c-0xd800<<10)+(c2-0xdc00);m_pos++;}}if(c<0x80){/* one byte */buf[i++]=c;}else if(c<0x800){/* two bytes */buf[i++]=0xC0|c>>>6;buf[i++]=0x80|c&0x3f;}else if(c<0x10000){/* three bytes */buf[i++]=0xE0|c>>>12;buf[i++]=0x80|c>>>6&0x3f;buf[i++]=0x80|c&0x3f;}else{/* four bytes */buf[i++]=0xf0|c>>>18;buf[i++]=0x80|c>>>12&0x3f;buf[i++]=0x80|c>>>6&0x3f;buf[i++]=0x80|c&0x3f;}}return buf;};// Calculate max possible position in utf8 buffer,\n// that will not break sequence. If that's not possible\n// - (very small limits) return max size as is.\n//\n// buf[] - utf8 bytes array\n// max   - length limit (mandatory);\nvar utf8border=function(buf,max){var pos;max=max||buf.length;if(max>buf.length){max=buf.length;}// go back from last position, until start of sequence found\npos=max-1;while(pos>=0&&(buf[pos]&0xC0)===0x80){pos--;}// Fuckup - very small and broken sequence,\n// return max, because we should return something anyway.\nif(pos<0){return max;}// If we came to start of buffer - that means vuffer is too small,\n// return max too.\nif(pos===0){return max;}return pos+_utf8len[buf[pos]]>max?pos:max;};// convert array to string\nvar buf2string=function(buf){var str,i,out,c,c_len;var len=buf.length;// Reserve max possible length (2 words per char)\n// NB: by unknown reasons, Array is significantly faster for\n//     String.fromCharCode.apply than Uint16Array.\nvar utf16buf=new Array(len*2);for(out=0,i=0;i<len;){c=buf[i++];// quick process ascii\nif(c<0x80){utf16buf[out++]=c;continue;}c_len=_utf8len[c];// skip 5 & 6 byte codes\nif(c_len>4){utf16buf[out++]=0xfffd;i+=c_len-1;continue;}// apply mask on first byte\nc&=c_len===2?0x1f:c_len===3?0x0f:0x07;// join the rest\nwhile(c_len>1&&i<len){c=c<<6|buf[i++]&0x3f;c_len--;}// terminated by end of string?\nif(c_len>1){utf16buf[out++]=0xfffd;continue;}if(c<0x10000){utf16buf[out++]=c;}else{c-=0x10000;utf16buf[out++]=0xd800|c>>10&0x3ff;utf16buf[out++]=0xdc00|c&0x3ff;}}// shrinkBuf(utf16buf, out)\nif(utf16buf.length!==out){if(utf16buf.subarray){utf16buf=utf16buf.subarray(0,out);}else{utf16buf.length=out;}}// return String.fromCharCode.apply(null, utf16buf);\nreturn utils.applyFromCharCode(utf16buf);};// That's all for the pako functions.\n/**\r\n     * Transform a javascript string into an array (typed if possible) of bytes,\r\n     * UTF-8 encoded.\r\n     * @param {String} str the string to encode\r\n     * @return {Array|Uint8Array|Buffer} the UTF-8 encoded string.\r\n     */exports.utf8encode=function utf8encode(str){if(support.nodebuffer){return nodejsUtils.newBufferFrom(str,\"utf-8\");}return string2buf(str);};/**\r\n     * Transform a bytes array (or a representation) representing an UTF-8 encoded\r\n     * string into a javascript string.\r\n     * @param {Array|Uint8Array|Buffer} buf the data de decode\r\n     * @return {String} the decoded string.\r\n     */exports.utf8decode=function utf8decode(buf){if(support.nodebuffer){return utils.transformTo(\"nodebuffer\",buf).toString(\"utf-8\");}buf=utils.transformTo(support.uint8array?\"uint8array\":\"array\",buf);return buf2string(buf);};/**\r\n     * A worker to decode utf8 encoded binary chunks into string chunks.\r\n     * @constructor\r\n     */function Utf8DecodeWorker(){GenericWorker.call(this,\"utf-8 decode\");// the last bytes if a chunk didn't end with a complete codepoint.\nthis.leftOver=null;}utils.inherits(Utf8DecodeWorker,GenericWorker);/**\r\n     * @see GenericWorker.processChunk\r\n     */Utf8DecodeWorker.prototype.processChunk=function(chunk){var data=utils.transformTo(support.uint8array?\"uint8array\":\"array\",chunk.data);// 1st step, re-use what's left of the previous chunk\nif(this.leftOver&&this.leftOver.length){if(support.uint8array){var previousData=data;data=new Uint8Array(previousData.length+this.leftOver.length);data.set(this.leftOver,0);data.set(previousData,this.leftOver.length);}else{data=this.leftOver.concat(data);}this.leftOver=null;}var nextBoundary=utf8border(data);var usableData=data;if(nextBoundary!==data.length){if(support.uint8array){usableData=data.subarray(0,nextBoundary);this.leftOver=data.subarray(nextBoundary,data.length);}else{usableData=data.slice(0,nextBoundary);this.leftOver=data.slice(nextBoundary,data.length);}}this.push({data:exports.utf8decode(usableData),meta:chunk.meta});};/**\r\n     * @see GenericWorker.flush\r\n     */Utf8DecodeWorker.prototype.flush=function(){if(this.leftOver&&this.leftOver.length){this.push({data:exports.utf8decode(this.leftOver),meta:{}});this.leftOver=null;}};exports.Utf8DecodeWorker=Utf8DecodeWorker;/**\r\n     * A worker to endcode string chunks into utf8 encoded binary chunks.\r\n     * @constructor\r\n     */function Utf8EncodeWorker(){GenericWorker.call(this,\"utf-8 encode\");}utils.inherits(Utf8EncodeWorker,GenericWorker);/**\r\n     * @see GenericWorker.processChunk\r\n     */Utf8EncodeWorker.prototype.processChunk=function(chunk){this.push({data:exports.utf8encode(chunk.data),meta:chunk.meta});};exports.Utf8EncodeWorker=Utf8EncodeWorker;},{\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./support\":30,\"./utils\":32}],32:[function(require,module,exports){'use strict';var support=require('./support');var base64=require('./base64');var nodejsUtils=require('./nodejsUtils');var setImmediate=require('set-immediate-shim');var external=require(\"./external\");/**\r\n     * Convert a string that pass as a \"binary string\": it should represent a byte\r\n     * array but may have > 255 char codes. Be sure to take only the first byte\r\n     * and returns the byte array.\r\n     * @param {String} str the string to transform.\r\n     * @return {Array|Uint8Array} the string in a binary format.\r\n     */function string2binary(str){var result=null;if(support.uint8array){result=new Uint8Array(str.length);}else{result=new Array(str.length);}return stringToArrayLike(str,result);}/**\r\n     * Create a new blob with the given content and the given type.\r\n     * @param {String|ArrayBuffer} part the content to put in the blob. DO NOT use\r\n     * an Uint8Array because the stock browser of android 4 won't accept it (it\r\n     * will be silently converted to a string, \"[object Uint8Array]\").\r\n     *\r\n     * Use only ONE part to build the blob to avoid a memory leak in IE11 / Edge:\r\n     * when a large amount of Array is used to create the Blob, the amount of\r\n     * memory consumed is nearly 100 times the original data amount.\r\n     *\r\n     * @param {String} type the mime type of the blob.\r\n     * @return {Blob} the created blob.\r\n     */exports.newBlob=function(part,type){exports.checkSupport(\"blob\");try{// Blob constructor\nreturn new Blob([part],{type:type});}catch(e){try{// deprecated, browser only, old way\nvar Builder=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder;var builder=new Builder();builder.append(part);return builder.getBlob(type);}catch(e){// well, fuck ?!\nthrow new Error(\"Bug : can't construct the Blob.\");}}};/**\r\n     * The identity function.\r\n     * @param {Object} input the input.\r\n     * @return {Object} the same input.\r\n     */function identity(input){return input;}/**\r\n     * Fill in an array with a string.\r\n     * @param {String} str the string to use.\r\n     * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to fill in (will be mutated).\r\n     * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated array.\r\n     */function stringToArrayLike(str,array){for(var i=0;i<str.length;++i){array[i]=str.charCodeAt(i)&0xFF;}return array;}/**\r\n     * An helper for the function arrayLikeToString.\r\n     * This contains static informations and functions that\r\n     * can be optimized by the browser JIT compiler.\r\n     */var arrayToStringHelper={/**\r\n         * Transform an array of int into a string, chunk by chunk.\r\n         * See the performances notes on arrayLikeToString.\r\n         * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform.\r\n         * @param {String} type the type of the array.\r\n         * @param {Integer} chunk the chunk size.\r\n         * @return {String} the resulting string.\r\n         * @throws Error if the chunk is too big for the stack.\r\n         */stringifyByChunk:function(array,type,chunk){var result=[],k=0,len=array.length;// shortcut\nif(len<=chunk){return String.fromCharCode.apply(null,array);}while(k<len){if(type===\"array\"||type===\"nodebuffer\"){result.push(String.fromCharCode.apply(null,array.slice(k,Math.min(k+chunk,len))));}else{result.push(String.fromCharCode.apply(null,array.subarray(k,Math.min(k+chunk,len))));}k+=chunk;}return result.join(\"\");},/**\r\n         * Call String.fromCharCode on every item in the array.\r\n         * This is the naive implementation, which generate A LOT of intermediate string.\r\n         * This should be used when everything else fail.\r\n         * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform.\r\n         * @return {String} the result.\r\n         */stringifyByChar:function(array){var resultStr=\"\";for(var i=0;i<array.length;i++){resultStr+=String.fromCharCode(array[i]);}return resultStr;},applyCanBeUsed:{/**\r\n             * true if the browser accepts to use String.fromCharCode on Uint8Array\r\n             */uint8array:function(){try{return support.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1;}catch(e){return false;}}(),/**\r\n             * true if the browser accepts to use String.fromCharCode on nodejs Buffer.\r\n             */nodebuffer:function(){try{return support.nodebuffer&&String.fromCharCode.apply(null,nodejsUtils.allocBuffer(1)).length===1;}catch(e){return false;}}()}};/**\r\n     * Transform an array-like object to a string.\r\n     * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform.\r\n     * @return {String} the result.\r\n     */function arrayLikeToString(array){// Performances notes :\n// --------------------\n// String.fromCharCode.apply(null, array) is the fastest, see\n// see http://jsperf.com/converting-a-uint8array-to-a-string/2\n// but the stack is limited (and we can get huge arrays !).\n//\n// result += String.fromCharCode(array[i]); generate too many strings !\n//\n// This code is inspired by http://jsperf.com/arraybuffer-to-string-apply-performance/2\n// TODO : we now have workers that split the work. Do we still need that ?\nvar chunk=65536,type=exports.getTypeOf(array),canUseApply=true;if(type===\"uint8array\"){canUseApply=arrayToStringHelper.applyCanBeUsed.uint8array;}else if(type===\"nodebuffer\"){canUseApply=arrayToStringHelper.applyCanBeUsed.nodebuffer;}if(canUseApply){while(chunk>1){try{return arrayToStringHelper.stringifyByChunk(array,type,chunk);}catch(e){chunk=Math.floor(chunk/2);}}}// no apply or chunk error : slow and painful algorithm\n// default browser on android 4.*\nreturn arrayToStringHelper.stringifyByChar(array);}exports.applyFromCharCode=arrayLikeToString;/**\r\n     * Copy the data from an array-like to an other array-like.\r\n     * @param {Array|ArrayBuffer|Uint8Array|Buffer} arrayFrom the origin array.\r\n     * @param {Array|ArrayBuffer|Uint8Array|Buffer} arrayTo the destination array which will be mutated.\r\n     * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated destination array.\r\n     */function arrayLikeToArrayLike(arrayFrom,arrayTo){for(var i=0;i<arrayFrom.length;i++){arrayTo[i]=arrayFrom[i];}return arrayTo;}// a matrix containing functions to transform everything into everything.\nvar transform={};// string to ?\ntransform[\"string\"]={\"string\":identity,\"array\":function(input){return stringToArrayLike(input,new Array(input.length));},\"arraybuffer\":function(input){return transform[\"string\"][\"uint8array\"](input).buffer;},\"uint8array\":function(input){return stringToArrayLike(input,new Uint8Array(input.length));},\"nodebuffer\":function(input){return stringToArrayLike(input,nodejsUtils.allocBuffer(input.length));}};// array to ?\ntransform[\"array\"]={\"string\":arrayLikeToString,\"array\":identity,\"arraybuffer\":function(input){return new Uint8Array(input).buffer;},\"uint8array\":function(input){return new Uint8Array(input);},\"nodebuffer\":function(input){return nodejsUtils.newBufferFrom(input);}};// arraybuffer to ?\ntransform[\"arraybuffer\"]={\"string\":function(input){return arrayLikeToString(new Uint8Array(input));},\"array\":function(input){return arrayLikeToArrayLike(new Uint8Array(input),new Array(input.byteLength));},\"arraybuffer\":identity,\"uint8array\":function(input){return new Uint8Array(input);},\"nodebuffer\":function(input){return nodejsUtils.newBufferFrom(new Uint8Array(input));}};// uint8array to ?\ntransform[\"uint8array\"]={\"string\":arrayLikeToString,\"array\":function(input){return arrayLikeToArrayLike(input,new Array(input.length));},\"arraybuffer\":function(input){return input.buffer;},\"uint8array\":identity,\"nodebuffer\":function(input){return nodejsUtils.newBufferFrom(input);}};// nodebuffer to ?\ntransform[\"nodebuffer\"]={\"string\":arrayLikeToString,\"array\":function(input){return arrayLikeToArrayLike(input,new Array(input.length));},\"arraybuffer\":function(input){return transform[\"nodebuffer\"][\"uint8array\"](input).buffer;},\"uint8array\":function(input){return arrayLikeToArrayLike(input,new Uint8Array(input.length));},\"nodebuffer\":identity};/**\r\n     * Transform an input into any type.\r\n     * The supported output type are : string, array, uint8array, arraybuffer, nodebuffer.\r\n     * If no output type is specified, the unmodified input will be returned.\r\n     * @param {String} outputType the output type.\r\n     * @param {String|Array|ArrayBuffer|Uint8Array|Buffer} input the input to convert.\r\n     * @throws {Error} an Error if the browser doesn't support the requested output type.\r\n     */exports.transformTo=function(outputType,input){if(!input){// undefined, null, etc\n// an empty string won't harm.\ninput=\"\";}if(!outputType){return input;}exports.checkSupport(outputType);var inputType=exports.getTypeOf(input);var result=transform[inputType][outputType](input);return result;};/**\r\n     * Return the type of the input.\r\n     * The type will be in a format valid for JSZip.utils.transformTo : string, array, uint8array, arraybuffer.\r\n     * @param {Object} input the input to identify.\r\n     * @return {String} the (lowercase) type of the input.\r\n     */exports.getTypeOf=function(input){if(typeof input===\"string\"){return\"string\";}if(Object.prototype.toString.call(input)===\"[object Array]\"){return\"array\";}if(support.nodebuffer&&nodejsUtils.isBuffer(input)){return\"nodebuffer\";}if(support.uint8array&&input instanceof Uint8Array){return\"uint8array\";}if(support.arraybuffer&&input instanceof ArrayBuffer){return\"arraybuffer\";}};/**\r\n     * Throw an exception if the type is not supported.\r\n     * @param {String} type the type to check.\r\n     * @throws {Error} an Error if the browser doesn't support the requested type.\r\n     */exports.checkSupport=function(type){var supported=support[type.toLowerCase()];if(!supported){throw new Error(type+\" is not supported by this platform\");}};exports.MAX_VALUE_16BITS=65535;exports.MAX_VALUE_32BITS=-1;// well, \"\\xFF\\xFF\\xFF\\xFF\\xFF\\xFF\\xFF\\xFF\" is parsed as -1\n/**\r\n     * Prettify a string read as binary.\r\n     * @param {string} str the string to prettify.\r\n     * @return {string} a pretty string.\r\n     */exports.pretty=function(str){var res='',code,i;for(i=0;i<(str||\"\").length;i++){code=str.charCodeAt(i);res+='\\\\x'+(code<16?\"0\":\"\")+code.toString(16).toUpperCase();}return res;};/**\r\n     * Defer the call of a function.\r\n     * @param {Function} callback the function to call asynchronously.\r\n     * @param {Array} args the arguments to give to the callback.\r\n     */exports.delay=function(callback,args,self){setImmediate(function(){callback.apply(self||null,args||[]);});};/**\r\n     * Extends a prototype with an other, without calling a constructor with\r\n     * side effects. Inspired by nodejs' `utils.inherits`\r\n     * @param {Function} ctor the constructor to augment\r\n     * @param {Function} superCtor the parent constructor to use\r\n     */exports.inherits=function(ctor,superCtor){var Obj=function(){};Obj.prototype=superCtor.prototype;ctor.prototype=new Obj();};/**\r\n     * Merge the objects passed as parameters into a new one.\r\n     * @private\r\n     * @param {...Object} var_args All objects to merge.\r\n     * @return {Object} a new object with the data of the others.\r\n     */exports.extend=function(){var result={},i,attr;for(i=0;i<arguments.length;i++){// arguments is not enumerable in some browsers\nfor(attr in arguments[i]){if(arguments[i].hasOwnProperty(attr)&&typeof result[attr]===\"undefined\"){result[attr]=arguments[i][attr];}}}return result;};/**\r\n     * Transform arbitrary content into a Promise.\r\n     * @param {String} name a name for the content being processed.\r\n     * @param {Object} inputData the content to process.\r\n     * @param {Boolean} isBinary true if the content is not an unicode string\r\n     * @param {Boolean} isOptimizedBinaryString true if the string content only has one byte per character.\r\n     * @param {Boolean} isBase64 true if the string content is encoded with base64.\r\n     * @return {Promise} a promise in a format usable by JSZip.\r\n     */exports.prepareContent=function(name,inputData,isBinary,isOptimizedBinaryString,isBase64){// if inputData is already a promise, this flatten it.\nvar promise=external.Promise.resolve(inputData).then(function(data){var isBlob=support.blob&&(data instanceof Blob||['[object File]','[object Blob]'].indexOf(Object.prototype.toString.call(data))!==-1);if(isBlob&&typeof FileReader!==\"undefined\"){return new external.Promise(function(resolve,reject){var reader=new FileReader();reader.onload=function(e){resolve(e.target.result);};reader.onerror=function(e){reject(e.target.error);};reader.readAsArrayBuffer(data);});}else{return data;}});return promise.then(function(data){var dataType=exports.getTypeOf(data);if(!dataType){return external.Promise.reject(new Error(\"Can't read the data of '\"+name+\"'. Is it \"+\"in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?\"));}// special case : it's way easier to work with Uint8Array than with ArrayBuffer\nif(dataType===\"arraybuffer\"){data=exports.transformTo(\"uint8array\",data);}else if(dataType===\"string\"){if(isBase64){data=base64.decode(data);}else if(isBinary){// optimizedBinaryString === true means that the file has already been filtered with a 0xFF mask\nif(isOptimizedBinaryString!==true){// this is a string, not in a base64 format.\n// Be sure that this is a correct \"binary string\"\ndata=string2binary(data);}}}return data;});};},{\"./base64\":1,\"./external\":6,\"./nodejsUtils\":14,\"./support\":30,\"set-immediate-shim\":54}],33:[function(require,module,exports){'use strict';var readerFor=require('./reader/readerFor');var utils=require('./utils');var sig=require('./signature');var ZipEntry=require('./zipEntry');var utf8=require('./utf8');var support=require('./support');//  class ZipEntries {{{\n/**\r\n     * All the entries in the zip file.\r\n     * @constructor\r\n     * @param {Object} loadOptions Options for loading the stream.\r\n     */function ZipEntries(loadOptions){this.files=[];this.loadOptions=loadOptions;}ZipEntries.prototype={/**\r\n         * Check that the reader is on the specified signature.\r\n         * @param {string} expectedSignature the expected signature.\r\n         * @throws {Error} if it is an other signature.\r\n         */checkSignature:function(expectedSignature){if(!this.reader.readAndCheckSignature(expectedSignature)){this.reader.index-=4;var signature=this.reader.readString(4);throw new Error(\"Corrupted zip or bug: unexpected signature \"+\"(\"+utils.pretty(signature)+\", expected \"+utils.pretty(expectedSignature)+\")\");}},/**\r\n         * Check if the given signature is at the given index.\r\n         * @param {number} askedIndex the index to check.\r\n         * @param {string} expectedSignature the signature to expect.\r\n         * @return {boolean} true if the signature is here, false otherwise.\r\n         */isSignature:function(askedIndex,expectedSignature){var currentIndex=this.reader.index;this.reader.setIndex(askedIndex);var signature=this.reader.readString(4);var result=signature===expectedSignature;this.reader.setIndex(currentIndex);return result;},/**\r\n         * Read the end of the central directory.\r\n         */readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2);this.diskWithCentralDirStart=this.reader.readInt(2);this.centralDirRecordsOnThisDisk=this.reader.readInt(2);this.centralDirRecords=this.reader.readInt(2);this.centralDirSize=this.reader.readInt(4);this.centralDirOffset=this.reader.readInt(4);this.zipCommentLength=this.reader.readInt(2);// warning : the encoding depends of the system locale\n// On a linux machine with LANG=en_US.utf8, this field is utf8 encoded.\n// On a windows machine, this field is encoded with the localized windows code page.\nvar zipComment=this.reader.readData(this.zipCommentLength);var decodeParamType=support.uint8array?\"uint8array\":\"array\";// To get consistent behavior with the generation part, we will assume that\n// this is utf8 encoded unless specified otherwise.\nvar decodeContent=utils.transformTo(decodeParamType,zipComment);this.zipComment=this.loadOptions.decodeFileName(decodeContent);},/**\r\n         * Read the end of the Zip 64 central directory.\r\n         * Not merged with the method readEndOfCentral :\r\n         * The end of central can coexist with its Zip64 brother,\r\n         * I don't want to read the wrong number of bytes !\r\n         */readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8);this.reader.skip(4);// this.versionMadeBy = this.reader.readString(2);\n// this.versionNeeded = this.reader.readInt(2);\nthis.diskNumber=this.reader.readInt(4);this.diskWithCentralDirStart=this.reader.readInt(4);this.centralDirRecordsOnThisDisk=this.reader.readInt(8);this.centralDirRecords=this.reader.readInt(8);this.centralDirSize=this.reader.readInt(8);this.centralDirOffset=this.reader.readInt(8);this.zip64ExtensibleData={};var extraDataSize=this.zip64EndOfCentralSize-44,index=0,extraFieldId,extraFieldLength,extraFieldValue;while(index<extraDataSize){extraFieldId=this.reader.readInt(2);extraFieldLength=this.reader.readInt(4);extraFieldValue=this.reader.readData(extraFieldLength);this.zip64ExtensibleData[extraFieldId]={id:extraFieldId,length:extraFieldLength,value:extraFieldValue};}},/**\r\n         * Read the end of the Zip 64 central directory locator.\r\n         */readBlockZip64EndOfCentralLocator:function(){this.diskWithZip64CentralDirStart=this.reader.readInt(4);this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8);this.disksCount=this.reader.readInt(4);if(this.disksCount>1){throw new Error(\"Multi-volumes zip are not supported\");}},/**\r\n         * Read the local files, based on the offset read in the central part.\r\n         */readLocalFiles:function(){var i,file;for(i=0;i<this.files.length;i++){file=this.files[i];this.reader.setIndex(file.localHeaderOffset);this.checkSignature(sig.LOCAL_FILE_HEADER);file.readLocalPart(this.reader);file.handleUTF8();file.processAttributes();}},/**\r\n         * Read the central directory.\r\n         */readCentralDir:function(){var file;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(sig.CENTRAL_FILE_HEADER)){file=new ZipEntry({zip64:this.zip64},this.loadOptions);file.readCentralPart(this.reader);this.files.push(file);}if(this.centralDirRecords!==this.files.length){if(this.centralDirRecords!==0&&this.files.length===0){// We expected some records but couldn't find ANY.\n// This is really suspicious, as if something went wrong.\nthrow new Error(\"Corrupted zip or bug: expected \"+this.centralDirRecords+\" records in central dir, got \"+this.files.length);}else{// We found some records but not all.\n// Something is wrong but we got something for the user: no error here.\n// console.warn(\"expected\", this.centralDirRecords, \"records in central dir, got\", this.files.length);\n}}},/**\r\n         * Read the end of central directory.\r\n         */readEndOfCentral:function(){var offset=this.reader.lastIndexOfSignature(sig.CENTRAL_DIRECTORY_END);if(offset<0){// Check if the content is a truncated zip or complete garbage.\n// A \"LOCAL_FILE_HEADER\" is not required at the beginning (auto\n// extractible zip for example) but it can give a good hint.\n// If an ajax request was used without responseType, we will also\n// get unreadable data.\nvar isGarbage=!this.isSignature(0,sig.LOCAL_FILE_HEADER);if(isGarbage){throw new Error(\"Can't find end of central directory : is this a zip file ? \"+\"If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html\");}else{throw new Error(\"Corrupted zip: can't find end of central directory\");}}this.reader.setIndex(offset);var endOfCentralDirOffset=offset;this.checkSignature(sig.CENTRAL_DIRECTORY_END);this.readBlockEndOfCentral();/* extract from the zip spec :\r\n                4)  If one of the fields in the end of central directory\r\n                    record is too small to hold required data, the field\r\n                    should be set to -1 (0xFFFF or 0xFFFFFFFF) and the\r\n                    ZIP64 format record should be created.\r\n                5)  The end of central directory record and the\r\n                    Zip64 end of central directory locator record must\r\n                    reside on the same disk when splitting or spanning\r\n                    an archive.\r\n             */if(this.diskNumber===utils.MAX_VALUE_16BITS||this.diskWithCentralDirStart===utils.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===utils.MAX_VALUE_16BITS||this.centralDirRecords===utils.MAX_VALUE_16BITS||this.centralDirSize===utils.MAX_VALUE_32BITS||this.centralDirOffset===utils.MAX_VALUE_32BITS){this.zip64=true;/*\r\n                Warning : the zip64 extension is supported, but ONLY if the 64bits integer read from\r\n                the zip file can fit into a 32bits integer. This cannot be solved : JavaScript represents\r\n                all numbers as 64-bit double precision IEEE 754 floating point numbers.\r\n                So, we have 53bits for integers and bitwise operations treat everything as 32bits.\r\n                see https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/Bitwise_Operators\r\n                and http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf section 8.5\r\n                */ // should look for a zip64 EOCD locator\noffset=this.reader.lastIndexOfSignature(sig.ZIP64_CENTRAL_DIRECTORY_LOCATOR);if(offset<0){throw new Error(\"Corrupted zip: can't find the ZIP64 end of central directory locator\");}this.reader.setIndex(offset);this.checkSignature(sig.ZIP64_CENTRAL_DIRECTORY_LOCATOR);this.readBlockZip64EndOfCentralLocator();// now the zip64 EOCD record\nif(!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,sig.ZIP64_CENTRAL_DIRECTORY_END)){// console.warn(\"ZIP64 end of central directory not where expected.\");\nthis.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(sig.ZIP64_CENTRAL_DIRECTORY_END);if(this.relativeOffsetEndOfZip64CentralDir<0){throw new Error(\"Corrupted zip: can't find the ZIP64 end of central directory\");}}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir);this.checkSignature(sig.ZIP64_CENTRAL_DIRECTORY_END);this.readBlockZip64EndOfCentral();}var expectedEndOfCentralDirOffset=this.centralDirOffset+this.centralDirSize;if(this.zip64){expectedEndOfCentralDirOffset+=20;// end of central dir 64 locator\nexpectedEndOfCentralDirOffset+=12/* should not include the leading 12 bytes */+this.zip64EndOfCentralSize;}var extraBytes=endOfCentralDirOffset-expectedEndOfCentralDirOffset;if(extraBytes>0){// console.warn(extraBytes, \"extra bytes at beginning or within zipfile\");\nif(this.isSignature(endOfCentralDirOffset,sig.CENTRAL_FILE_HEADER)){// The offsets seem wrong, but we have something at the specified offset.\n// So… we keep it.\n}else{// the offset is wrong, update the \"zero\" of the reader\n// this happens if data has been prepended (crx files for example)\nthis.reader.zero=extraBytes;}}else if(extraBytes<0){throw new Error(\"Corrupted zip: missing \"+Math.abs(extraBytes)+\" bytes.\");}},prepareReader:function(data){this.reader=readerFor(data);},/**\r\n         * Read a zip file and create ZipEntries.\r\n         * @param {String|ArrayBuffer|Uint8Array|Buffer} data the binary string representing a zip file.\r\n         */load:function(data){this.prepareReader(data);this.readEndOfCentral();this.readCentralDir();this.readLocalFiles();}};// }}} end of ZipEntries\nmodule.exports=ZipEntries;},{\"./reader/readerFor\":22,\"./signature\":23,\"./support\":30,\"./utf8\":31,\"./utils\":32,\"./zipEntry\":34}],34:[function(require,module,exports){'use strict';var readerFor=require('./reader/readerFor');var utils=require('./utils');var CompressedObject=require('./compressedObject');var crc32fn=require('./crc32');var utf8=require('./utf8');var compressions=require('./compressions');var support=require('./support');var MADE_BY_DOS=0x00;var MADE_BY_UNIX=0x03;/**\r\n     * Find a compression registered in JSZip.\r\n     * @param {string} compressionMethod the method magic to find.\r\n     * @return {Object|null} the JSZip compression object, null if none found.\r\n     */var findCompression=function(compressionMethod){for(var method in compressions){if(!compressions.hasOwnProperty(method)){continue;}if(compressions[method].magic===compressionMethod){return compressions[method];}}return null;};// class ZipEntry {{{\n/**\r\n     * An entry in the zip file.\r\n     * @constructor\r\n     * @param {Object} options Options of the current file.\r\n     * @param {Object} loadOptions Options for loading the stream.\r\n     */function ZipEntry(options,loadOptions){this.options=options;this.loadOptions=loadOptions;}ZipEntry.prototype={/**\r\n         * say if the file is encrypted.\r\n         * @return {boolean} true if the file is encrypted, false otherwise.\r\n         */isEncrypted:function(){// bit 1 is set\nreturn(this.bitFlag&0x0001)===0x0001;},/**\r\n         * say if the file has utf-8 filename/comment.\r\n         * @return {boolean} true if the filename/comment is in utf-8, false otherwise.\r\n         */useUTF8:function(){// bit 11 is set\nreturn(this.bitFlag&0x0800)===0x0800;},/**\r\n         * Read the local part of a zip file and add the info in this object.\r\n         * @param {DataReader} reader the reader to use.\r\n         */readLocalPart:function(reader){var compression,localExtraFieldsLength;// we already know everything from the central dir !\n// If the central dir data are false, we are doomed.\n// On the bright side, the local part is scary  : zip64, data descriptors, both, etc.\n// The less data we get here, the more reliable this should be.\n// Let's skip the whole header and dash to the data !\nreader.skip(22);// in some zip created on windows, the filename stored in the central dir contains \\ instead of /.\n// Strangely, the filename here is OK.\n// I would love to treat these zip files as corrupted (see http://www.info-zip.org/FAQ.html#backslashes\n// or APPNOTE#4.4.17.1, \"All slashes MUST be forward slashes '/'\") but there are a lot of bad zip generators...\n// Search \"unzip mismatching \"local\" filename continuing with \"central\" filename version\" on\n// the internet.\n//\n// I think I see the logic here : the central directory is used to display\n// content and the local directory is used to extract the files. Mixing / and \\\n// may be used to display \\ to windows users and use / when extracting the files.\n// Unfortunately, this lead also to some issues : http://seclists.org/fulldisclosure/2009/Sep/394\nthis.fileNameLength=reader.readInt(2);localExtraFieldsLength=reader.readInt(2);// can't be sure this will be the same as the central dir\n// the fileName is stored as binary data, the handleUTF8 method will take care of the encoding.\nthis.fileName=reader.readData(this.fileNameLength);reader.skip(localExtraFieldsLength);if(this.compressedSize===-1||this.uncompressedSize===-1){throw new Error(\"Bug or corrupted zip : didn't get enough informations from the central directory \"+\"(compressedSize === -1 || uncompressedSize === -1)\");}compression=findCompression(this.compressionMethod);if(compression===null){// no compression found\nthrow new Error(\"Corrupted zip : compression \"+utils.pretty(this.compressionMethod)+\" unknown (inner file : \"+utils.transformTo(\"string\",this.fileName)+\")\");}this.decompressed=new CompressedObject(this.compressedSize,this.uncompressedSize,this.crc32,compression,reader.readData(this.compressedSize));},/**\r\n         * Read the central part of a zip file and add the info in this object.\r\n         * @param {DataReader} reader the reader to use.\r\n         */readCentralPart:function(reader){this.versionMadeBy=reader.readInt(2);reader.skip(2);// this.versionNeeded = reader.readInt(2);\nthis.bitFlag=reader.readInt(2);this.compressionMethod=reader.readString(2);this.date=reader.readDate();this.crc32=reader.readInt(4);this.compressedSize=reader.readInt(4);this.uncompressedSize=reader.readInt(4);var fileNameLength=reader.readInt(2);this.extraFieldsLength=reader.readInt(2);this.fileCommentLength=reader.readInt(2);this.diskNumberStart=reader.readInt(2);this.internalFileAttributes=reader.readInt(2);this.externalFileAttributes=reader.readInt(4);this.localHeaderOffset=reader.readInt(4);if(this.isEncrypted()){throw new Error(\"Encrypted zip are not supported\");}// will be read in the local part, see the comments there\nreader.skip(fileNameLength);this.readExtraFields(reader);this.parseZIP64ExtraField(reader);this.fileComment=reader.readData(this.fileCommentLength);},/**\r\n         * Parse the external file attributes and get the unix/dos permissions.\r\n         */processAttributes:function(){this.unixPermissions=null;this.dosPermissions=null;var madeBy=this.versionMadeBy>>8;// Check if we have the DOS directory flag set.\n// We look for it in the DOS and UNIX permissions\n// but some unknown platform could set it as a compatibility flag.\nthis.dir=this.externalFileAttributes&0x0010?true:false;if(madeBy===MADE_BY_DOS){// first 6 bits (0 to 5)\nthis.dosPermissions=this.externalFileAttributes&0x3F;}if(madeBy===MADE_BY_UNIX){this.unixPermissions=this.externalFileAttributes>>16&0xFFFF;// the octal permissions are in (this.unixPermissions & 0x01FF).toString(8);\n}// fail safe : if the name ends with a / it probably means a folder\nif(!this.dir&&this.fileNameStr.slice(-1)==='/'){this.dir=true;}},/**\r\n         * Parse the ZIP64 extra field and merge the info in the current ZipEntry.\r\n         * @param {DataReader} reader the reader to use.\r\n         */parseZIP64ExtraField:function(reader){if(!this.extraFields[0x0001]){return;}// should be something, preparing the extra reader\nvar extraReader=readerFor(this.extraFields[0x0001].value);// I really hope that these 64bits integer can fit in 32 bits integer, because js\n// won't let us have more.\nif(this.uncompressedSize===utils.MAX_VALUE_32BITS){this.uncompressedSize=extraReader.readInt(8);}if(this.compressedSize===utils.MAX_VALUE_32BITS){this.compressedSize=extraReader.readInt(8);}if(this.localHeaderOffset===utils.MAX_VALUE_32BITS){this.localHeaderOffset=extraReader.readInt(8);}if(this.diskNumberStart===utils.MAX_VALUE_32BITS){this.diskNumberStart=extraReader.readInt(4);}},/**\r\n         * Read the central part of a zip file and add the info in this object.\r\n         * @param {DataReader} reader the reader to use.\r\n         */readExtraFields:function(reader){var end=reader.index+this.extraFieldsLength,extraFieldId,extraFieldLength,extraFieldValue;if(!this.extraFields){this.extraFields={};}while(reader.index<end){extraFieldId=reader.readInt(2);extraFieldLength=reader.readInt(2);extraFieldValue=reader.readData(extraFieldLength);this.extraFields[extraFieldId]={id:extraFieldId,length:extraFieldLength,value:extraFieldValue};}},/**\r\n         * Apply an UTF8 transformation if needed.\r\n         */handleUTF8:function(){var decodeParamType=support.uint8array?\"uint8array\":\"array\";if(this.useUTF8()){this.fileNameStr=utf8.utf8decode(this.fileName);this.fileCommentStr=utf8.utf8decode(this.fileComment);}else{var upath=this.findExtraFieldUnicodePath();if(upath!==null){this.fileNameStr=upath;}else{// ASCII text or unsupported code page\nvar fileNameByteArray=utils.transformTo(decodeParamType,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(fileNameByteArray);}var ucomment=this.findExtraFieldUnicodeComment();if(ucomment!==null){this.fileCommentStr=ucomment;}else{// ASCII text or unsupported code page\nvar commentByteArray=utils.transformTo(decodeParamType,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(commentByteArray);}}},/**\r\n         * Find the unicode path declared in the extra field, if any.\r\n         * @return {String} the unicode path, null otherwise.\r\n         */findExtraFieldUnicodePath:function(){var upathField=this.extraFields[0x7075];if(upathField){var extraReader=readerFor(upathField.value);// wrong version\nif(extraReader.readInt(1)!==1){return null;}// the crc of the filename changed, this field is out of date.\nif(crc32fn(this.fileName)!==extraReader.readInt(4)){return null;}return utf8.utf8decode(extraReader.readData(upathField.length-5));}return null;},/**\r\n         * Find the unicode comment declared in the extra field, if any.\r\n         * @return {String} the unicode comment, null otherwise.\r\n         */findExtraFieldUnicodeComment:function(){var ucommentField=this.extraFields[0x6375];if(ucommentField){var extraReader=readerFor(ucommentField.value);// wrong version\nif(extraReader.readInt(1)!==1){return null;}// the crc of the comment changed, this field is out of date.\nif(crc32fn(this.fileComment)!==extraReader.readInt(4)){return null;}return utf8.utf8decode(extraReader.readData(ucommentField.length-5));}return null;}};module.exports=ZipEntry;},{\"./compressedObject\":2,\"./compressions\":3,\"./crc32\":4,\"./reader/readerFor\":22,\"./support\":30,\"./utf8\":31,\"./utils\":32}],35:[function(require,module,exports){'use strict';var StreamHelper=require('./stream/StreamHelper');var DataWorker=require('./stream/DataWorker');var utf8=require('./utf8');var CompressedObject=require('./compressedObject');var GenericWorker=require('./stream/GenericWorker');/**\r\n     * A simple object representing a file in the zip file.\r\n     * @constructor\r\n     * @param {string} name the name of the file\r\n     * @param {String|ArrayBuffer|Uint8Array|Buffer} data the data\r\n     * @param {Object} options the options of the file\r\n     */var ZipObject=function(name,data,options){this.name=name;this.dir=options.dir;this.date=options.date;this.comment=options.comment;this.unixPermissions=options.unixPermissions;this.dosPermissions=options.dosPermissions;this._data=data;this._dataBinary=options.binary;// keep only the compression\nthis.options={compression:options.compression,compressionOptions:options.compressionOptions};};ZipObject.prototype={/**\r\n         * Create an internal stream for the content of this object.\r\n         * @param {String} type the type of each chunk.\r\n         * @return StreamHelper the stream.\r\n         */internalStream:function(type){var result=null,outputType=\"string\";try{if(!type){throw new Error(\"No output type specified.\");}outputType=type.toLowerCase();var askUnicodeString=outputType===\"string\"||outputType===\"text\";if(outputType===\"binarystring\"||outputType===\"text\"){outputType=\"string\";}result=this._decompressWorker();var isUnicodeString=!this._dataBinary;if(isUnicodeString&&!askUnicodeString){result=result.pipe(new utf8.Utf8EncodeWorker());}if(!isUnicodeString&&askUnicodeString){result=result.pipe(new utf8.Utf8DecodeWorker());}}catch(e){result=new GenericWorker(\"error\");result.error(e);}return new StreamHelper(result,outputType,\"\");},/**\r\n         * Prepare the content in the asked type.\r\n         * @param {String} type the type of the result.\r\n         * @param {Function} onUpdate a function to call on each internal update.\r\n         * @return Promise the promise of the result.\r\n         */async:function(type,onUpdate){return this.internalStream(type).accumulate(onUpdate);},/**\r\n         * Prepare the content as a nodejs stream.\r\n         * @param {String} type the type of each chunk.\r\n         * @param {Function} onUpdate a function to call on each internal update.\r\n         * @return Stream the stream.\r\n         */nodeStream:function(type,onUpdate){return this.internalStream(type||\"nodebuffer\").toNodejsStream(onUpdate);},/**\r\n         * Return a worker for the compressed content.\r\n         * @private\r\n         * @param {Object} compression the compression object to use.\r\n         * @param {Object} compressionOptions the options to use when compressing.\r\n         * @return Worker the worker.\r\n         */_compressWorker:function(compression,compressionOptions){if(this._data instanceof CompressedObject&&this._data.compression.magic===compression.magic){return this._data.getCompressedWorker();}else{var result=this._decompressWorker();if(!this._dataBinary){result=result.pipe(new utf8.Utf8EncodeWorker());}return CompressedObject.createWorkerFrom(result,compression,compressionOptions);}},/**\r\n         * Return a worker for the decompressed content.\r\n         * @private\r\n         * @return Worker the worker.\r\n         */_decompressWorker:function(){if(this._data instanceof CompressedObject){return this._data.getContentWorker();}else if(this._data instanceof GenericWorker){return this._data;}else{return new DataWorker(this._data);}}};var removedMethods=[\"asText\",\"asBinary\",\"asNodeBuffer\",\"asUint8Array\",\"asArrayBuffer\"];var removedFn=function(){throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\");};for(var i=0;i<removedMethods.length;i++){ZipObject.prototype[removedMethods[i]]=removedFn;}module.exports=ZipObject;},{\"./compressedObject\":2,\"./stream/DataWorker\":27,\"./stream/GenericWorker\":28,\"./stream/StreamHelper\":29,\"./utf8\":31}],36:[function(require,module,exports){(function(global){'use strict';var Mutation=global.MutationObserver||global.WebKitMutationObserver;var scheduleDrain;{if(Mutation){var called=0;var observer=new Mutation(nextTick);var element=global.document.createTextNode('');observer.observe(element,{characterData:true});scheduleDrain=function(){element.data=called=++called%2;};}else if(!global.setImmediate&&typeof global.MessageChannel!=='undefined'){var channel=new global.MessageChannel();channel.port1.onmessage=nextTick;scheduleDrain=function(){channel.port2.postMessage(0);};}else if('document'in global&&'onreadystatechange'in global.document.createElement('script')){scheduleDrain=function(){// Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted\n// into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.\nvar scriptEl=global.document.createElement('script');scriptEl.onreadystatechange=function(){nextTick();scriptEl.onreadystatechange=null;scriptEl.parentNode.removeChild(scriptEl);scriptEl=null;};global.document.documentElement.appendChild(scriptEl);};}else{scheduleDrain=function(){setTimeout(nextTick,0);};}}var draining;var queue=[];//named nextTick for less confusing stack traces\nfunction nextTick(){draining=true;var i,oldQueue;var len=queue.length;while(len){oldQueue=queue;queue=[];i=-1;while(++i<len){oldQueue[i]();}len=queue.length;}draining=false;}module.exports=immediate;function immediate(task){if(queue.push(task)===1&&!draining){scheduleDrain();}}}).call(this,typeof __webpack_require__.g!==\"undefined\"?__webpack_require__.g:typeof self!==\"undefined\"?self:typeof window!==\"undefined\"?window:{});},{}],37:[function(require,module,exports){'use strict';var immediate=require('immediate');/* istanbul ignore next */function INTERNAL(){}var handlers={};var REJECTED=['REJECTED'];var FULFILLED=['FULFILLED'];var PENDING=['PENDING'];module.exports=Promise;function Promise(resolver){if(typeof resolver!=='function'){throw new TypeError('resolver must be a function');}this.state=PENDING;this.queue=[];this.outcome=void 0;if(resolver!==INTERNAL){safelyResolveThenable(this,resolver);}}Promise.prototype[\"finally\"]=function(callback){if(typeof callback!=='function'){return this;}var p=this.constructor;return this.then(resolve,reject);function resolve(value){function yes(){return value;}return p.resolve(callback()).then(yes);}function reject(reason){function no(){throw reason;}return p.resolve(callback()).then(no);}};Promise.prototype[\"catch\"]=function(onRejected){return this.then(null,onRejected);};Promise.prototype.then=function(onFulfilled,onRejected){if(typeof onFulfilled!=='function'&&this.state===FULFILLED||typeof onRejected!=='function'&&this.state===REJECTED){return this;}var promise=new this.constructor(INTERNAL);if(this.state!==PENDING){var resolver=this.state===FULFILLED?onFulfilled:onRejected;unwrap(promise,resolver,this.outcome);}else{this.queue.push(new QueueItem(promise,onFulfilled,onRejected));}return promise;};function QueueItem(promise,onFulfilled,onRejected){this.promise=promise;if(typeof onFulfilled==='function'){this.onFulfilled=onFulfilled;this.callFulfilled=this.otherCallFulfilled;}if(typeof onRejected==='function'){this.onRejected=onRejected;this.callRejected=this.otherCallRejected;}}QueueItem.prototype.callFulfilled=function(value){handlers.resolve(this.promise,value);};QueueItem.prototype.otherCallFulfilled=function(value){unwrap(this.promise,this.onFulfilled,value);};QueueItem.prototype.callRejected=function(value){handlers.reject(this.promise,value);};QueueItem.prototype.otherCallRejected=function(value){unwrap(this.promise,this.onRejected,value);};function unwrap(promise,func,value){immediate(function(){var returnValue;try{returnValue=func(value);}catch(e){return handlers.reject(promise,e);}if(returnValue===promise){handlers.reject(promise,new TypeError('Cannot resolve promise with itself'));}else{handlers.resolve(promise,returnValue);}});}handlers.resolve=function(self,value){var result=tryCatch(getThen,value);if(result.status==='error'){return handlers.reject(self,result.value);}var thenable=result.value;if(thenable){safelyResolveThenable(self,thenable);}else{self.state=FULFILLED;self.outcome=value;var i=-1;var len=self.queue.length;while(++i<len){self.queue[i].callFulfilled(value);}}return self;};handlers.reject=function(self,error){self.state=REJECTED;self.outcome=error;var i=-1;var len=self.queue.length;while(++i<len){self.queue[i].callRejected(error);}return self;};function getThen(obj){// Make sure we only access the accessor once as required by the spec\nvar then=obj&&obj.then;if(obj&&(typeof obj==='object'||typeof obj==='function')&&typeof then==='function'){return function appyThen(){then.apply(obj,arguments);};}}function safelyResolveThenable(self,thenable){// Either fulfill, reject or reject with error\nvar called=false;function onError(value){if(called){return;}called=true;handlers.reject(self,value);}function onSuccess(value){if(called){return;}called=true;handlers.resolve(self,value);}function tryToUnwrap(){thenable(onSuccess,onError);}var result=tryCatch(tryToUnwrap);if(result.status==='error'){onError(result.value);}}function tryCatch(func,value){var out={};try{out.value=func(value);out.status='success';}catch(e){out.status='error';out.value=e;}return out;}Promise.resolve=resolve;function resolve(value){if(value instanceof this){return value;}return handlers.resolve(new this(INTERNAL),value);}Promise.reject=reject;function reject(reason){var promise=new this(INTERNAL);return handlers.reject(promise,reason);}Promise.all=all;function all(iterable){var self=this;if(Object.prototype.toString.call(iterable)!=='[object Array]'){return this.reject(new TypeError('must be an array'));}var len=iterable.length;var called=false;if(!len){return this.resolve([]);}var values=new Array(len);var resolved=0;var i=-1;var promise=new this(INTERNAL);while(++i<len){allResolver(iterable[i],i);}return promise;function allResolver(value,i){self.resolve(value).then(resolveFromAll,function(error){if(!called){called=true;handlers.reject(promise,error);}});function resolveFromAll(outValue){values[i]=outValue;if(++resolved===len&&!called){called=true;handlers.resolve(promise,values);}}}}Promise.race=race;function race(iterable){var self=this;if(Object.prototype.toString.call(iterable)!=='[object Array]'){return this.reject(new TypeError('must be an array'));}var len=iterable.length;var called=false;if(!len){return this.resolve([]);}var i=-1;var promise=new this(INTERNAL);while(++i<len){resolver(iterable[i]);}return promise;function resolver(value){self.resolve(value).then(function(response){if(!called){called=true;handlers.resolve(promise,response);}},function(error){if(!called){called=true;handlers.reject(promise,error);}});}}},{\"immediate\":36}],38:[function(require,module,exports){// Top level file is just a mixin of submodules & constants\n'use strict';var assign=require('./lib/utils/common').assign;var deflate=require('./lib/deflate');var inflate=require('./lib/inflate');var constants=require('./lib/zlib/constants');var pako={};assign(pako,deflate,inflate,constants);module.exports=pako;},{\"./lib/deflate\":39,\"./lib/inflate\":40,\"./lib/utils/common\":41,\"./lib/zlib/constants\":44}],39:[function(require,module,exports){'use strict';var zlib_deflate=require('./zlib/deflate');var utils=require('./utils/common');var strings=require('./utils/strings');var msg=require('./zlib/messages');var ZStream=require('./zlib/zstream');var toString=Object.prototype.toString;/* Public constants ==========================================================*/ /* ===========================================================================*/var Z_NO_FLUSH=0;var Z_FINISH=4;var Z_OK=0;var Z_STREAM_END=1;var Z_SYNC_FLUSH=2;var Z_DEFAULT_COMPRESSION=-1;var Z_DEFAULT_STRATEGY=0;var Z_DEFLATED=8;/* ===========================================================================*/ /**\r\n     * class Deflate\r\n     *\r\n     * Generic JS-style wrapper for zlib calls. If you don't need\r\n     * streaming behaviour - use more simple functions: [[deflate]],\r\n     * [[deflateRaw]] and [[gzip]].\r\n     **/ /* internal\r\n     * Deflate.chunks -> Array\r\n     *\r\n     * Chunks of output data, if [[Deflate#onData]] not overriden.\r\n     **/ /**\r\n     * Deflate.result -> Uint8Array|Array\r\n     *\r\n     * Compressed result, generated by default [[Deflate#onData]]\r\n     * and [[Deflate#onEnd]] handlers. Filled after you push last chunk\r\n     * (call [[Deflate#push]] with `Z_FINISH` / `true` param)  or if you\r\n     * push a chunk with explicit flush (call [[Deflate#push]] with\r\n     * `Z_SYNC_FLUSH` param).\r\n     **/ /**\r\n     * Deflate.err -> Number\r\n     *\r\n     * Error code after deflate finished. 0 (Z_OK) on success.\r\n     * You will not need it in real life, because deflate errors\r\n     * are possible only on wrong options or bad `onData` / `onEnd`\r\n     * custom handlers.\r\n     **/ /**\r\n     * Deflate.msg -> String\r\n     *\r\n     * Error message, if [[Deflate.err]] != 0\r\n     **/ /**\r\n     * new Deflate(options)\r\n     * - options (Object): zlib deflate options.\r\n     *\r\n     * Creates new deflator instance with specified params. Throws exception\r\n     * on bad params. Supported options:\r\n     *\r\n     * - `level`\r\n     * - `windowBits`\r\n     * - `memLevel`\r\n     * - `strategy`\r\n     * - `dictionary`\r\n     *\r\n     * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\r\n     * for more information on these.\r\n     *\r\n     * Additional options, for internal needs:\r\n     *\r\n     * - `chunkSize` - size of generated data chunks (16K by default)\r\n     * - `raw` (Boolean) - do raw deflate\r\n     * - `gzip` (Boolean) - create gzip wrapper\r\n     * - `to` (String) - if equal to 'string', then result will be \"binary string\"\r\n     *    (each char code [0..255])\r\n     * - `header` (Object) - custom header for gzip\r\n     *   - `text` (Boolean) - true if compressed data believed to be text\r\n     *   - `time` (Number) - modification time, unix timestamp\r\n     *   - `os` (Number) - operation system code\r\n     *   - `extra` (Array) - array of bytes with extra data (max 65536)\r\n     *   - `name` (String) - file name (binary string)\r\n     *   - `comment` (String) - comment (binary string)\r\n     *   - `hcrc` (Boolean) - true if header crc should be added\r\n     *\r\n     * ##### Example:\r\n     *\r\n     * ```javascript\r\n     * var pako = require('pako')\r\n     *   , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])\r\n     *   , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);\r\n     *\r\n     * var deflate = new pako.Deflate({ level: 3});\r\n     *\r\n     * deflate.push(chunk1, false);\r\n     * deflate.push(chunk2, true);  // true -> last chunk\r\n     *\r\n     * if (deflate.err) { throw new Error(deflate.err); }\r\n     *\r\n     * console.log(deflate.result);\r\n     * ```\r\n     **/function Deflate(options){if(!(this instanceof Deflate))return new Deflate(options);this.options=utils.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY,to:''},options||{});var opt=this.options;if(opt.raw&&opt.windowBits>0){opt.windowBits=-opt.windowBits;}else if(opt.gzip&&opt.windowBits>0&&opt.windowBits<16){opt.windowBits+=16;}this.err=0;// error code, if happens (0 = Z_OK)\nthis.msg='';// error message\nthis.ended=false;// used to avoid multiple onEnd() calls\nthis.chunks=[];// chunks of compressed data\nthis.strm=new ZStream();this.strm.avail_out=0;var status=zlib_deflate.deflateInit2(this.strm,opt.level,opt.method,opt.windowBits,opt.memLevel,opt.strategy);if(status!==Z_OK){throw new Error(msg[status]);}if(opt.header){zlib_deflate.deflateSetHeader(this.strm,opt.header);}if(opt.dictionary){var dict;// Convert data if needed\nif(typeof opt.dictionary==='string'){// If we need to compress text, change encoding to utf8.\ndict=strings.string2buf(opt.dictionary);}else if(toString.call(opt.dictionary)==='[object ArrayBuffer]'){dict=new Uint8Array(opt.dictionary);}else{dict=opt.dictionary;}status=zlib_deflate.deflateSetDictionary(this.strm,dict);if(status!==Z_OK){throw new Error(msg[status]);}this._dict_set=true;}}/**\r\n     * Deflate#push(data[, mode]) -> Boolean\r\n     * - data (Uint8Array|Array|ArrayBuffer|String): input data. Strings will be\r\n     *   converted to utf8 byte sequence.\r\n     * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.\r\n     *   See constants. Skipped or `false` means Z_NO_FLUSH, `true` meansh Z_FINISH.\r\n     *\r\n     * Sends input data to deflate pipe, generating [[Deflate#onData]] calls with\r\n     * new compressed chunks. Returns `true` on success. The last data block must have\r\n     * mode Z_FINISH (or `true`). That will flush internal pending buffers and call\r\n     * [[Deflate#onEnd]]. For interim explicit flushes (without ending the stream) you\r\n     * can use mode Z_SYNC_FLUSH, keeping the compression context.\r\n     *\r\n     * On fail call [[Deflate#onEnd]] with error code and return false.\r\n     *\r\n     * We strongly recommend to use `Uint8Array` on input for best speed (output\r\n     * array format is detected automatically). Also, don't skip last param and always\r\n     * use the same type in your code (boolean or number). That will improve JS speed.\r\n     *\r\n     * For regular `Array`-s make sure all elements are [0..255].\r\n     *\r\n     * ##### Example\r\n     *\r\n     * ```javascript\r\n     * push(chunk, false); // push one of data chunks\r\n     * ...\r\n     * push(chunk, true);  // push last chunk\r\n     * ```\r\n     **/Deflate.prototype.push=function(data,mode){var strm=this.strm;var chunkSize=this.options.chunkSize;var status,_mode;if(this.ended){return false;}_mode=mode===~~mode?mode:mode===true?Z_FINISH:Z_NO_FLUSH;// Convert data if needed\nif(typeof data==='string'){// If we need to compress text, change encoding to utf8.\nstrm.input=strings.string2buf(data);}else if(toString.call(data)==='[object ArrayBuffer]'){strm.input=new Uint8Array(data);}else{strm.input=data;}strm.next_in=0;strm.avail_in=strm.input.length;do{if(strm.avail_out===0){strm.output=new utils.Buf8(chunkSize);strm.next_out=0;strm.avail_out=chunkSize;}status=zlib_deflate.deflate(strm,_mode);/* no bad return value */if(status!==Z_STREAM_END&&status!==Z_OK){this.onEnd(status);this.ended=true;return false;}if(strm.avail_out===0||strm.avail_in===0&&(_mode===Z_FINISH||_mode===Z_SYNC_FLUSH)){if(this.options.to==='string'){this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output,strm.next_out)));}else{this.onData(utils.shrinkBuf(strm.output,strm.next_out));}}}while((strm.avail_in>0||strm.avail_out===0)&&status!==Z_STREAM_END);// Finalize on the last chunk.\nif(_mode===Z_FINISH){status=zlib_deflate.deflateEnd(this.strm);this.onEnd(status);this.ended=true;return status===Z_OK;}// callback interim results if Z_SYNC_FLUSH.\nif(_mode===Z_SYNC_FLUSH){this.onEnd(Z_OK);strm.avail_out=0;return true;}return true;};/**\r\n     * Deflate#onData(chunk) -> Void\r\n     * - chunk (Uint8Array|Array|String): ouput data. Type of array depends\r\n     *   on js engine support. When string output requested, each chunk\r\n     *   will be string.\r\n     *\r\n     * By default, stores data blocks in `chunks[]` property and glue\r\n     * those in `onEnd`. Override this handler, if you need another behaviour.\r\n     **/Deflate.prototype.onData=function(chunk){this.chunks.push(chunk);};/**\r\n     * Deflate#onEnd(status) -> Void\r\n     * - status (Number): deflate status. 0 (Z_OK) on success,\r\n     *   other if not.\r\n     *\r\n     * Called once after you tell deflate that the input stream is\r\n     * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)\r\n     * or if an error happened. By default - join collected chunks,\r\n     * free memory and fill `results` / `err` properties.\r\n     **/Deflate.prototype.onEnd=function(status){// On success - join\nif(status===Z_OK){if(this.options.to==='string'){this.result=this.chunks.join('');}else{this.result=utils.flattenChunks(this.chunks);}}this.chunks=[];this.err=status;this.msg=this.strm.msg;};/**\r\n     * deflate(data[, options]) -> Uint8Array|Array|String\r\n     * - data (Uint8Array|Array|String): input data to compress.\r\n     * - options (Object): zlib deflate options.\r\n     *\r\n     * Compress `data` with deflate algorithm and `options`.\r\n     *\r\n     * Supported options are:\r\n     *\r\n     * - level\r\n     * - windowBits\r\n     * - memLevel\r\n     * - strategy\r\n     * - dictionary\r\n     *\r\n     * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\r\n     * for more information on these.\r\n     *\r\n     * Sugar (options):\r\n     *\r\n     * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify\r\n     *   negative windowBits implicitly.\r\n     * - `to` (String) - if equal to 'string', then result will be \"binary string\"\r\n     *    (each char code [0..255])\r\n     *\r\n     * ##### Example:\r\n     *\r\n     * ```javascript\r\n     * var pako = require('pako')\r\n     *   , data = Uint8Array([1,2,3,4,5,6,7,8,9]);\r\n     *\r\n     * console.log(pako.deflate(data));\r\n     * ```\r\n     **/function deflate(input,options){var deflator=new Deflate(options);deflator.push(input,true);// That will never happens, if you don't cheat with options :)\nif(deflator.err){throw deflator.msg||msg[deflator.err];}return deflator.result;}/**\r\n     * deflateRaw(data[, options]) -> Uint8Array|Array|String\r\n     * - data (Uint8Array|Array|String): input data to compress.\r\n     * - options (Object): zlib deflate options.\r\n     *\r\n     * The same as [[deflate]], but creates raw data, without wrapper\r\n     * (header and adler32 crc).\r\n     **/function deflateRaw(input,options){options=options||{};options.raw=true;return deflate(input,options);}/**\r\n     * gzip(data[, options]) -> Uint8Array|Array|String\r\n     * - data (Uint8Array|Array|String): input data to compress.\r\n     * - options (Object): zlib deflate options.\r\n     *\r\n     * The same as [[deflate]], but create gzip wrapper instead of\r\n     * deflate one.\r\n     **/function gzip(input,options){options=options||{};options.gzip=true;return deflate(input,options);}exports.Deflate=Deflate;exports.deflate=deflate;exports.deflateRaw=deflateRaw;exports.gzip=gzip;},{\"./utils/common\":41,\"./utils/strings\":42,\"./zlib/deflate\":46,\"./zlib/messages\":51,\"./zlib/zstream\":53}],40:[function(require,module,exports){'use strict';var zlib_inflate=require('./zlib/inflate');var utils=require('./utils/common');var strings=require('./utils/strings');var c=require('./zlib/constants');var msg=require('./zlib/messages');var ZStream=require('./zlib/zstream');var GZheader=require('./zlib/gzheader');var toString=Object.prototype.toString;/**\r\n     * class Inflate\r\n     *\r\n     * Generic JS-style wrapper for zlib calls. If you don't need\r\n     * streaming behaviour - use more simple functions: [[inflate]]\r\n     * and [[inflateRaw]].\r\n     **/ /* internal\r\n     * inflate.chunks -> Array\r\n     *\r\n     * Chunks of output data, if [[Inflate#onData]] not overriden.\r\n     **/ /**\r\n     * Inflate.result -> Uint8Array|Array|String\r\n     *\r\n     * Uncompressed result, generated by default [[Inflate#onData]]\r\n     * and [[Inflate#onEnd]] handlers. Filled after you push last chunk\r\n     * (call [[Inflate#push]] with `Z_FINISH` / `true` param) or if you\r\n     * push a chunk with explicit flush (call [[Inflate#push]] with\r\n     * `Z_SYNC_FLUSH` param).\r\n     **/ /**\r\n     * Inflate.err -> Number\r\n     *\r\n     * Error code after inflate finished. 0 (Z_OK) on success.\r\n     * Should be checked if broken data possible.\r\n     **/ /**\r\n     * Inflate.msg -> String\r\n     *\r\n     * Error message, if [[Inflate.err]] != 0\r\n     **/ /**\r\n     * new Inflate(options)\r\n     * - options (Object): zlib inflate options.\r\n     *\r\n     * Creates new inflator instance with specified params. Throws exception\r\n     * on bad params. Supported options:\r\n     *\r\n     * - `windowBits`\r\n     * - `dictionary`\r\n     *\r\n     * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\r\n     * for more information on these.\r\n     *\r\n     * Additional options, for internal needs:\r\n     *\r\n     * - `chunkSize` - size of generated data chunks (16K by default)\r\n     * - `raw` (Boolean) - do raw inflate\r\n     * - `to` (String) - if equal to 'string', then result will be converted\r\n     *   from utf8 to utf16 (javascript) string. When string output requested,\r\n     *   chunk length can differ from `chunkSize`, depending on content.\r\n     *\r\n     * By default, when no options set, autodetect deflate/gzip data format via\r\n     * wrapper header.\r\n     *\r\n     * ##### Example:\r\n     *\r\n     * ```javascript\r\n     * var pako = require('pako')\r\n     *   , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])\r\n     *   , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);\r\n     *\r\n     * var inflate = new pako.Inflate({ level: 3});\r\n     *\r\n     * inflate.push(chunk1, false);\r\n     * inflate.push(chunk2, true);  // true -> last chunk\r\n     *\r\n     * if (inflate.err) { throw new Error(inflate.err); }\r\n     *\r\n     * console.log(inflate.result);\r\n     * ```\r\n     **/function Inflate(options){if(!(this instanceof Inflate))return new Inflate(options);this.options=utils.assign({chunkSize:16384,windowBits:0,to:''},options||{});var opt=this.options;// Force window size for `raw` data, if not set directly,\n// because we have no header for autodetect.\nif(opt.raw&&opt.windowBits>=0&&opt.windowBits<16){opt.windowBits=-opt.windowBits;if(opt.windowBits===0){opt.windowBits=-15;}}// If `windowBits` not defined (and mode not raw) - set autodetect flag for gzip/deflate\nif(opt.windowBits>=0&&opt.windowBits<16&&!(options&&options.windowBits)){opt.windowBits+=32;}// Gzip header has no info about windows size, we can do autodetect only\n// for deflate. So, if window size not set, force it to max when gzip possible\nif(opt.windowBits>15&&opt.windowBits<48){// bit 3 (16) -> gzipped data\n// bit 4 (32) -> autodetect gzip/deflate\nif((opt.windowBits&15)===0){opt.windowBits|=15;}}this.err=0;// error code, if happens (0 = Z_OK)\nthis.msg='';// error message\nthis.ended=false;// used to avoid multiple onEnd() calls\nthis.chunks=[];// chunks of compressed data\nthis.strm=new ZStream();this.strm.avail_out=0;var status=zlib_inflate.inflateInit2(this.strm,opt.windowBits);if(status!==c.Z_OK){throw new Error(msg[status]);}this.header=new GZheader();zlib_inflate.inflateGetHeader(this.strm,this.header);}/**\r\n     * Inflate#push(data[, mode]) -> Boolean\r\n     * - data (Uint8Array|Array|ArrayBuffer|String): input data\r\n     * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.\r\n     *   See constants. Skipped or `false` means Z_NO_FLUSH, `true` meansh Z_FINISH.\r\n     *\r\n     * Sends input data to inflate pipe, generating [[Inflate#onData]] calls with\r\n     * new output chunks. Returns `true` on success. The last data block must have\r\n     * mode Z_FINISH (or `true`). That will flush internal pending buffers and call\r\n     * [[Inflate#onEnd]]. For interim explicit flushes (without ending the stream) you\r\n     * can use mode Z_SYNC_FLUSH, keeping the decompression context.\r\n     *\r\n     * On fail call [[Inflate#onEnd]] with error code and return false.\r\n     *\r\n     * We strongly recommend to use `Uint8Array` on input for best speed (output\r\n     * format is detected automatically). Also, don't skip last param and always\r\n     * use the same type in your code (boolean or number). That will improve JS speed.\r\n     *\r\n     * For regular `Array`-s make sure all elements are [0..255].\r\n     *\r\n     * ##### Example\r\n     *\r\n     * ```javascript\r\n     * push(chunk, false); // push one of data chunks\r\n     * ...\r\n     * push(chunk, true);  // push last chunk\r\n     * ```\r\n     **/Inflate.prototype.push=function(data,mode){var strm=this.strm;var chunkSize=this.options.chunkSize;var dictionary=this.options.dictionary;var status,_mode;var next_out_utf8,tail,utf8str;var dict;// Flag to properly process Z_BUF_ERROR on testing inflate call\n// when we check that all output data was flushed.\nvar allowBufError=false;if(this.ended){return false;}_mode=mode===~~mode?mode:mode===true?c.Z_FINISH:c.Z_NO_FLUSH;// Convert data if needed\nif(typeof data==='string'){// Only binary strings can be decompressed on practice\nstrm.input=strings.binstring2buf(data);}else if(toString.call(data)==='[object ArrayBuffer]'){strm.input=new Uint8Array(data);}else{strm.input=data;}strm.next_in=0;strm.avail_in=strm.input.length;do{if(strm.avail_out===0){strm.output=new utils.Buf8(chunkSize);strm.next_out=0;strm.avail_out=chunkSize;}status=zlib_inflate.inflate(strm,c.Z_NO_FLUSH);/* no bad return value */if(status===c.Z_NEED_DICT&&dictionary){// Convert data if needed\nif(typeof dictionary==='string'){dict=strings.string2buf(dictionary);}else if(toString.call(dictionary)==='[object ArrayBuffer]'){dict=new Uint8Array(dictionary);}else{dict=dictionary;}status=zlib_inflate.inflateSetDictionary(this.strm,dict);}if(status===c.Z_BUF_ERROR&&allowBufError===true){status=c.Z_OK;allowBufError=false;}if(status!==c.Z_STREAM_END&&status!==c.Z_OK){this.onEnd(status);this.ended=true;return false;}if(strm.next_out){if(strm.avail_out===0||status===c.Z_STREAM_END||strm.avail_in===0&&(_mode===c.Z_FINISH||_mode===c.Z_SYNC_FLUSH)){if(this.options.to==='string'){next_out_utf8=strings.utf8border(strm.output,strm.next_out);tail=strm.next_out-next_out_utf8;utf8str=strings.buf2string(strm.output,next_out_utf8);// move tail\nstrm.next_out=tail;strm.avail_out=chunkSize-tail;if(tail){utils.arraySet(strm.output,strm.output,next_out_utf8,tail,0);}this.onData(utf8str);}else{this.onData(utils.shrinkBuf(strm.output,strm.next_out));}}}// When no more input data, we should check that internal inflate buffers\n// are flushed. The only way to do it when avail_out = 0 - run one more\n// inflate pass. But if output data not exists, inflate return Z_BUF_ERROR.\n// Here we set flag to process this error properly.\n//\n// NOTE. Deflate does not return error in this case and does not needs such\n// logic.\nif(strm.avail_in===0&&strm.avail_out===0){allowBufError=true;}}while((strm.avail_in>0||strm.avail_out===0)&&status!==c.Z_STREAM_END);if(status===c.Z_STREAM_END){_mode=c.Z_FINISH;}// Finalize on the last chunk.\nif(_mode===c.Z_FINISH){status=zlib_inflate.inflateEnd(this.strm);this.onEnd(status);this.ended=true;return status===c.Z_OK;}// callback interim results if Z_SYNC_FLUSH.\nif(_mode===c.Z_SYNC_FLUSH){this.onEnd(c.Z_OK);strm.avail_out=0;return true;}return true;};/**\r\n     * Inflate#onData(chunk) -> Void\r\n     * - chunk (Uint8Array|Array|String): ouput data. Type of array depends\r\n     *   on js engine support. When string output requested, each chunk\r\n     *   will be string.\r\n     *\r\n     * By default, stores data blocks in `chunks[]` property and glue\r\n     * those in `onEnd`. Override this handler, if you need another behaviour.\r\n     **/Inflate.prototype.onData=function(chunk){this.chunks.push(chunk);};/**\r\n     * Inflate#onEnd(status) -> Void\r\n     * - status (Number): inflate status. 0 (Z_OK) on success,\r\n     *   other if not.\r\n     *\r\n     * Called either after you tell inflate that the input stream is\r\n     * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)\r\n     * or if an error happened. By default - join collected chunks,\r\n     * free memory and fill `results` / `err` properties.\r\n     **/Inflate.prototype.onEnd=function(status){// On success - join\nif(status===c.Z_OK){if(this.options.to==='string'){// Glue & convert here, until we teach pako to send\n// utf8 alligned strings to onData\nthis.result=this.chunks.join('');}else{this.result=utils.flattenChunks(this.chunks);}}this.chunks=[];this.err=status;this.msg=this.strm.msg;};/**\r\n     * inflate(data[, options]) -> Uint8Array|Array|String\r\n     * - data (Uint8Array|Array|String): input data to decompress.\r\n     * - options (Object): zlib inflate options.\r\n     *\r\n     * Decompress `data` with inflate/ungzip and `options`. Autodetect\r\n     * format via wrapper header by default. That's why we don't provide\r\n     * separate `ungzip` method.\r\n     *\r\n     * Supported options are:\r\n     *\r\n     * - windowBits\r\n     *\r\n     * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\r\n     * for more information.\r\n     *\r\n     * Sugar (options):\r\n     *\r\n     * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify\r\n     *   negative windowBits implicitly.\r\n     * - `to` (String) - if equal to 'string', then result will be converted\r\n     *   from utf8 to utf16 (javascript) string. When string output requested,\r\n     *   chunk length can differ from `chunkSize`, depending on content.\r\n     *\r\n     *\r\n     * ##### Example:\r\n     *\r\n     * ```javascript\r\n     * var pako = require('pako')\r\n     *   , input = pako.deflate([1,2,3,4,5,6,7,8,9])\r\n     *   , output;\r\n     *\r\n     * try {\r\n     *   output = pako.inflate(input);\r\n     * } catch (err)\r\n     *   console.log(err);\r\n     * }\r\n     * ```\r\n     **/function inflate(input,options){var inflator=new Inflate(options);inflator.push(input,true);// That will never happens, if you don't cheat with options :)\nif(inflator.err){throw inflator.msg||msg[inflator.err];}return inflator.result;}/**\r\n     * inflateRaw(data[, options]) -> Uint8Array|Array|String\r\n     * - data (Uint8Array|Array|String): input data to decompress.\r\n     * - options (Object): zlib inflate options.\r\n     *\r\n     * The same as [[inflate]], but creates raw data, without wrapper\r\n     * (header and adler32 crc).\r\n     **/function inflateRaw(input,options){options=options||{};options.raw=true;return inflate(input,options);}/**\r\n     * ungzip(data[, options]) -> Uint8Array|Array|String\r\n     * - data (Uint8Array|Array|String): input data to decompress.\r\n     * - options (Object): zlib inflate options.\r\n     *\r\n     * Just shortcut to [[inflate]], because it autodetects format\r\n     * by header.content. Done for convenience.\r\n     **/exports.Inflate=Inflate;exports.inflate=inflate;exports.inflateRaw=inflateRaw;exports.ungzip=inflate;},{\"./utils/common\":41,\"./utils/strings\":42,\"./zlib/constants\":44,\"./zlib/gzheader\":47,\"./zlib/inflate\":49,\"./zlib/messages\":51,\"./zlib/zstream\":53}],41:[function(require,module,exports){'use strict';var TYPED_OK=typeof Uint8Array!=='undefined'&&typeof Uint16Array!=='undefined'&&typeof Int32Array!=='undefined';exports.assign=function(obj/*from1, from2, from3, ...*/){var sources=Array.prototype.slice.call(arguments,1);while(sources.length){var source=sources.shift();if(!source){continue;}if(typeof source!=='object'){throw new TypeError(source+'must be non-object');}for(var p in source){if(source.hasOwnProperty(p)){obj[p]=source[p];}}}return obj;};// reduce buffer size, avoiding mem copy\nexports.shrinkBuf=function(buf,size){if(buf.length===size){return buf;}if(buf.subarray){return buf.subarray(0,size);}buf.length=size;return buf;};var fnTyped={arraySet:function(dest,src,src_offs,len,dest_offs){if(src.subarray&&dest.subarray){dest.set(src.subarray(src_offs,src_offs+len),dest_offs);return;}// Fallback to ordinary array\nfor(var i=0;i<len;i++){dest[dest_offs+i]=src[src_offs+i];}},// Join array of chunks to single array.\nflattenChunks:function(chunks){var i,l,len,pos,chunk,result;// calculate data length\nlen=0;for(i=0,l=chunks.length;i<l;i++){len+=chunks[i].length;}// join chunks\nresult=new Uint8Array(len);pos=0;for(i=0,l=chunks.length;i<l;i++){chunk=chunks[i];result.set(chunk,pos);pos+=chunk.length;}return result;}};var fnUntyped={arraySet:function(dest,src,src_offs,len,dest_offs){for(var i=0;i<len;i++){dest[dest_offs+i]=src[src_offs+i];}},// Join array of chunks to single array.\nflattenChunks:function(chunks){return[].concat.apply([],chunks);}};// Enable/Disable typed arrays use, for testing\n//\nexports.setTyped=function(on){if(on){exports.Buf8=Uint8Array;exports.Buf16=Uint16Array;exports.Buf32=Int32Array;exports.assign(exports,fnTyped);}else{exports.Buf8=Array;exports.Buf16=Array;exports.Buf32=Array;exports.assign(exports,fnUntyped);}};exports.setTyped(TYPED_OK);},{}],42:[function(require,module,exports){// String encode/decode helpers\n'use strict';var utils=require('./common');// Quick check if we can use fast array to bin string conversion\n//\n// - apply(Array) can fail on Android 2.2\n// - apply(Uint8Array) can fail on iOS 5.1 Safary\n//\nvar STR_APPLY_OK=true;var STR_APPLY_UIA_OK=true;try{String.fromCharCode.apply(null,[0]);}catch(__){STR_APPLY_OK=false;}try{String.fromCharCode.apply(null,new Uint8Array(1));}catch(__){STR_APPLY_UIA_OK=false;}// Table with utf8 lengths (calculated by first byte of sequence)\n// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS,\n// because max possible codepoint is 0x10ffff\nvar _utf8len=new utils.Buf8(256);for(var q=0;q<256;q++){_utf8len[q]=q>=252?6:q>=248?5:q>=240?4:q>=224?3:q>=192?2:1;}_utf8len[254]=_utf8len[254]=1;// Invalid sequence start\n// convert string to array (typed, when possible)\nexports.string2buf=function(str){var buf,c,c2,m_pos,i,str_len=str.length,buf_len=0;// count binary size\nfor(m_pos=0;m_pos<str_len;m_pos++){c=str.charCodeAt(m_pos);if((c&0xfc00)===0xd800&&m_pos+1<str_len){c2=str.charCodeAt(m_pos+1);if((c2&0xfc00)===0xdc00){c=0x10000+(c-0xd800<<10)+(c2-0xdc00);m_pos++;}}buf_len+=c<0x80?1:c<0x800?2:c<0x10000?3:4;}// allocate buffer\nbuf=new utils.Buf8(buf_len);// convert\nfor(i=0,m_pos=0;i<buf_len;m_pos++){c=str.charCodeAt(m_pos);if((c&0xfc00)===0xd800&&m_pos+1<str_len){c2=str.charCodeAt(m_pos+1);if((c2&0xfc00)===0xdc00){c=0x10000+(c-0xd800<<10)+(c2-0xdc00);m_pos++;}}if(c<0x80){/* one byte */buf[i++]=c;}else if(c<0x800){/* two bytes */buf[i++]=0xC0|c>>>6;buf[i++]=0x80|c&0x3f;}else if(c<0x10000){/* three bytes */buf[i++]=0xE0|c>>>12;buf[i++]=0x80|c>>>6&0x3f;buf[i++]=0x80|c&0x3f;}else{/* four bytes */buf[i++]=0xf0|c>>>18;buf[i++]=0x80|c>>>12&0x3f;buf[i++]=0x80|c>>>6&0x3f;buf[i++]=0x80|c&0x3f;}}return buf;};// Helper (used in 2 places)\nfunction buf2binstring(buf,len){// use fallback for big arrays to avoid stack overflow\nif(len<65537){if(buf.subarray&&STR_APPLY_UIA_OK||!buf.subarray&&STR_APPLY_OK){return String.fromCharCode.apply(null,utils.shrinkBuf(buf,len));}}var result='';for(var i=0;i<len;i++){result+=String.fromCharCode(buf[i]);}return result;}// Convert byte array to binary string\nexports.buf2binstring=function(buf){return buf2binstring(buf,buf.length);};// Convert binary string (typed, when possible)\nexports.binstring2buf=function(str){var buf=new utils.Buf8(str.length);for(var i=0,len=buf.length;i<len;i++){buf[i]=str.charCodeAt(i);}return buf;};// convert array to string\nexports.buf2string=function(buf,max){var i,out,c,c_len;var len=max||buf.length;// Reserve max possible length (2 words per char)\n// NB: by unknown reasons, Array is significantly faster for\n//     String.fromCharCode.apply than Uint16Array.\nvar utf16buf=new Array(len*2);for(out=0,i=0;i<len;){c=buf[i++];// quick process ascii\nif(c<0x80){utf16buf[out++]=c;continue;}c_len=_utf8len[c];// skip 5 & 6 byte codes\nif(c_len>4){utf16buf[out++]=0xfffd;i+=c_len-1;continue;}// apply mask on first byte\nc&=c_len===2?0x1f:c_len===3?0x0f:0x07;// join the rest\nwhile(c_len>1&&i<len){c=c<<6|buf[i++]&0x3f;c_len--;}// terminated by end of string?\nif(c_len>1){utf16buf[out++]=0xfffd;continue;}if(c<0x10000){utf16buf[out++]=c;}else{c-=0x10000;utf16buf[out++]=0xd800|c>>10&0x3ff;utf16buf[out++]=0xdc00|c&0x3ff;}}return buf2binstring(utf16buf,out);};// Calculate max possible position in utf8 buffer,\n// that will not break sequence. If that's not possible\n// - (very small limits) return max size as is.\n//\n// buf[] - utf8 bytes array\n// max   - length limit (mandatory);\nexports.utf8border=function(buf,max){var pos;max=max||buf.length;if(max>buf.length){max=buf.length;}// go back from last position, until start of sequence found\npos=max-1;while(pos>=0&&(buf[pos]&0xC0)===0x80){pos--;}// Fuckup - very small and broken sequence,\n// return max, because we should return something anyway.\nif(pos<0){return max;}// If we came to start of buffer - that means vuffer is too small,\n// return max too.\nif(pos===0){return max;}return pos+_utf8len[buf[pos]]>max?pos:max;};},{\"./common\":41}],43:[function(require,module,exports){'use strict';// Note: adler32 takes 12% for level 0 and 2% for level 6.\n// It doesn't worth to make additional optimizationa as in original.\n// Small size is preferable.\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nfunction adler32(adler,buf,len,pos){var s1=adler&0xffff|0,s2=adler>>>16&0xffff|0,n=0;while(len!==0){// Set limit ~ twice less than 5552, to keep\n// s2 in 31-bits, because we force signed ints.\n// in other case %= will fail.\nn=len>2000?2000:len;len-=n;do{s1=s1+buf[pos++]|0;s2=s2+s1|0;}while(--n);s1%=65521;s2%=65521;}return s1|s2<<16|0;}module.exports=adler32;},{}],44:[function(require,module,exports){'use strict';// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nmodule.exports={/* Allowed flush values; see deflate() and inflate() below for details */Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,/* Return codes for the compression/decompression functions. Negative values\r\n      * are errors, positive values are used for special but normal events.\r\n      */Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,//Z_MEM_ERROR:     -4,\nZ_BUF_ERROR:-5,//Z_VERSION_ERROR: -6,\n/* compression levels */Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,/* Possible values of the data_type field (though see inflate()) */Z_BINARY:0,Z_TEXT:1,//Z_ASCII:                1, // = Z_TEXT (deprecated)\nZ_UNKNOWN:2,/* The deflate compression method */Z_DEFLATED:8//Z_NULL:                 null // Use -1 or null inline, depending on var type\n};},{}],45:[function(require,module,exports){'use strict';// Note: we can't get significant speed boost here.\n// So write code to minimize size - no pregenerated tables\n// and array tools dependencies.\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n// Use ordinary array, since untyped makes no boost here\nfunction makeTable(){var c,table=[];for(var n=0;n<256;n++){c=n;for(var k=0;k<8;k++){c=c&1?0xEDB88320^c>>>1:c>>>1;}table[n]=c;}return table;}// Create table on load. Just 255 signed longs. Not a problem.\nvar crcTable=makeTable();function crc32(crc,buf,len,pos){var t=crcTable,end=pos+len;crc^=-1;for(var i=pos;i<end;i++){crc=crc>>>8^t[(crc^buf[i])&0xFF];}return crc^-1;// >>> 0;\n}module.exports=crc32;},{}],46:[function(require,module,exports){'use strict';// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nvar utils=require('../utils/common');var trees=require('./trees');var adler32=require('./adler32');var crc32=require('./crc32');var msg=require('./messages');/* Public constants ==========================================================*/ /* ===========================================================================*/ /* Allowed flush values; see deflate() and inflate() below for details */var Z_NO_FLUSH=0;var Z_PARTIAL_FLUSH=1;//var Z_SYNC_FLUSH    = 2;\nvar Z_FULL_FLUSH=3;var Z_FINISH=4;var Z_BLOCK=5;//var Z_TREES         = 6;\n/* Return codes for the compression/decompression functions. Negative values\r\n     * are errors, positive values are used for special but normal events.\r\n     */var Z_OK=0;var Z_STREAM_END=1;//var Z_NEED_DICT     = 2;\n//var Z_ERRNO         = -1;\nvar Z_STREAM_ERROR=-2;var Z_DATA_ERROR=-3;//var Z_MEM_ERROR     = -4;\nvar Z_BUF_ERROR=-5;//var Z_VERSION_ERROR = -6;\n/* compression levels */ //var Z_NO_COMPRESSION      = 0;\n//var Z_BEST_SPEED          = 1;\n//var Z_BEST_COMPRESSION    = 9;\nvar Z_DEFAULT_COMPRESSION=-1;var Z_FILTERED=1;var Z_HUFFMAN_ONLY=2;var Z_RLE=3;var Z_FIXED=4;var Z_DEFAULT_STRATEGY=0;/* Possible values of the data_type field (though see inflate()) */ //var Z_BINARY              = 0;\n//var Z_TEXT                = 1;\n//var Z_ASCII               = 1; // = Z_TEXT\nvar Z_UNKNOWN=2;/* The deflate compression method */var Z_DEFLATED=8;/*============================================================================*/var MAX_MEM_LEVEL=9;/* Maximum value for memLevel in deflateInit2 */var MAX_WBITS=15;/* 32K LZ77 window */var DEF_MEM_LEVEL=8;var LENGTH_CODES=29;/* number of length codes, not counting the special END_BLOCK code */var LITERALS=256;/* number of literal bytes 0..255 */var L_CODES=LITERALS+1+LENGTH_CODES;/* number of Literal or Length codes, including the END_BLOCK code */var D_CODES=30;/* number of distance codes */var BL_CODES=19;/* number of codes used to transfer the bit lengths */var HEAP_SIZE=2*L_CODES+1;/* maximum heap size */var MAX_BITS=15;/* All codes must not exceed MAX_BITS bits */var MIN_MATCH=3;var MAX_MATCH=258;var MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1;var PRESET_DICT=0x20;var INIT_STATE=42;var EXTRA_STATE=69;var NAME_STATE=73;var COMMENT_STATE=91;var HCRC_STATE=103;var BUSY_STATE=113;var FINISH_STATE=666;var BS_NEED_MORE=1;/* block not completed, need more input or more output */var BS_BLOCK_DONE=2;/* block flush performed */var BS_FINISH_STARTED=3;/* finish started, need only more output at next deflate */var BS_FINISH_DONE=4;/* finish done, accept no more input or output */var OS_CODE=0x03;// Unix :) . Don't detect, use this default.\nfunction err(strm,errorCode){strm.msg=msg[errorCode];return errorCode;}function rank(f){return(f<<1)-(f>4?9:0);}function zero(buf){var len=buf.length;while(--len>=0){buf[len]=0;}}/* =========================================================================\r\n     * Flush as much pending output as possible. All deflate() output goes\r\n     * through this function so some applications may wish to modify it\r\n     * to avoid allocating a large strm->output buffer and copying into it.\r\n     * (See also read_buf()).\r\n     */function flush_pending(strm){var s=strm.state;//_tr_flush_bits(s);\nvar len=s.pending;if(len>strm.avail_out){len=strm.avail_out;}if(len===0){return;}utils.arraySet(strm.output,s.pending_buf,s.pending_out,len,strm.next_out);strm.next_out+=len;s.pending_out+=len;strm.total_out+=len;strm.avail_out-=len;s.pending-=len;if(s.pending===0){s.pending_out=0;}}function flush_block_only(s,last){trees._tr_flush_block(s,s.block_start>=0?s.block_start:-1,s.strstart-s.block_start,last);s.block_start=s.strstart;flush_pending(s.strm);}function put_byte(s,b){s.pending_buf[s.pending++]=b;}/* =========================================================================\r\n     * Put a short in the pending buffer. The 16-bit value is put in MSB order.\r\n     * IN assertion: the stream state is correct and there is enough room in\r\n     * pending_buf.\r\n     */function putShortMSB(s,b){//  put_byte(s, (Byte)(b >> 8));\n//  put_byte(s, (Byte)(b & 0xff));\ns.pending_buf[s.pending++]=b>>>8&0xff;s.pending_buf[s.pending++]=b&0xff;}/* ===========================================================================\r\n     * Read a new buffer from the current input stream, update the adler32\r\n     * and total number of bytes read.  All deflate() input goes through\r\n     * this function so some applications may wish to modify it to avoid\r\n     * allocating a large strm->input buffer and copying from it.\r\n     * (See also flush_pending()).\r\n     */function read_buf(strm,buf,start,size){var len=strm.avail_in;if(len>size){len=size;}if(len===0){return 0;}strm.avail_in-=len;// zmemcpy(buf, strm->next_in, len);\nutils.arraySet(buf,strm.input,strm.next_in,len,start);if(strm.state.wrap===1){strm.adler=adler32(strm.adler,buf,len,start);}else if(strm.state.wrap===2){strm.adler=crc32(strm.adler,buf,len,start);}strm.next_in+=len;strm.total_in+=len;return len;}/* ===========================================================================\r\n     * Set match_start to the longest match starting at the given string and\r\n     * return its length. Matches shorter or equal to prev_length are discarded,\r\n     * in which case the result is equal to prev_length and match_start is\r\n     * garbage.\r\n     * IN assertions: cur_match is the head of the hash chain for the current\r\n     *   string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1\r\n     * OUT assertion: the match length is not greater than s->lookahead.\r\n     */function longest_match(s,cur_match){var chain_length=s.max_chain_length;/* max hash chain length */var scan=s.strstart;/* current string */var match;/* matched string */var len;/* length of current match */var best_len=s.prev_length;/* best match length so far */var nice_match=s.nice_match;/* stop if match long enough */var limit=s.strstart>s.w_size-MIN_LOOKAHEAD?s.strstart-(s.w_size-MIN_LOOKAHEAD):0/*NIL*/;var _win=s.window;// shortcut\nvar wmask=s.w_mask;var prev=s.prev;/* Stop when cur_match becomes <= limit. To simplify the code,\r\n       * we prevent matches with the string of window index 0.\r\n       */var strend=s.strstart+MAX_MATCH;var scan_end1=_win[scan+best_len-1];var scan_end=_win[scan+best_len];/* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.\r\n       * It is easy to get rid of this optimization if necessary.\r\n       */ // Assert(s->hash_bits >= 8 && MAX_MATCH == 258, \"Code too clever\");\n/* Do not waste too much time if we already have a good match: */if(s.prev_length>=s.good_match){chain_length>>=2;}/* Do not look for matches beyond the end of the input. This is necessary\r\n       * to make deflate deterministic.\r\n       */if(nice_match>s.lookahead){nice_match=s.lookahead;}// Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, \"need lookahead\");\ndo{// Assert(cur_match < s->strstart, \"no future\");\nmatch=cur_match;/* Skip to next match if the match length cannot increase\r\n         * or if the match length is less than 2.  Note that the checks below\r\n         * for insufficient lookahead only occur occasionally for performance\r\n         * reasons.  Therefore uninitialized memory will be accessed, and\r\n         * conditional jumps will be made that depend on those values.\r\n         * However the length of the match is limited to the lookahead, so\r\n         * the output of deflate is not affected by the uninitialized values.\r\n         */if(_win[match+best_len]!==scan_end||_win[match+best_len-1]!==scan_end1||_win[match]!==_win[scan]||_win[++match]!==_win[scan+1]){continue;}/* The check at best_len-1 can be removed because it will be made\r\n         * again later. (This heuristic is not always a win.)\r\n         * It is not necessary to compare scan[2] and match[2] since they\r\n         * are always equal when the other bytes match, given that\r\n         * the hash keys are equal and that HASH_BITS >= 8.\r\n         */scan+=2;match++;// Assert(*scan == *match, \"match[2]?\");\n/* We check for insufficient lookahead only every 8th comparison;\r\n         * the 256th check will be made at strstart+258.\r\n         */do{/*jshint noempty:false*/}while(_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&scan<strend);// Assert(scan <= s->window+(unsigned)(s->window_size-1), \"wild scan\");\nlen=MAX_MATCH-(strend-scan);scan=strend-MAX_MATCH;if(len>best_len){s.match_start=cur_match;best_len=len;if(len>=nice_match){break;}scan_end1=_win[scan+best_len-1];scan_end=_win[scan+best_len];}}while((cur_match=prev[cur_match&wmask])>limit&&--chain_length!==0);if(best_len<=s.lookahead){return best_len;}return s.lookahead;}/* ===========================================================================\r\n     * Fill the window when the lookahead becomes insufficient.\r\n     * Updates strstart and lookahead.\r\n     *\r\n     * IN assertion: lookahead < MIN_LOOKAHEAD\r\n     * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD\r\n     *    At least one byte has been read, or avail_in == 0; reads are\r\n     *    performed for at least two bytes (required for the zip translate_eol\r\n     *    option -- not supported here).\r\n     */function fill_window(s){var _w_size=s.w_size;var p,n,m,more,str;//Assert(s->lookahead < MIN_LOOKAHEAD, \"already enough lookahead\");\ndo{more=s.window_size-s.lookahead-s.strstart;// JS ints have 32 bit, block below not needed\n/* Deal with !@#$% 64K limit: */ //if (sizeof(int) <= 2) {\n//    if (more == 0 && s->strstart == 0 && s->lookahead == 0) {\n//        more = wsize;\n//\n//  } else if (more == (unsigned)(-1)) {\n//        /* Very unlikely, but possible on 16 bit machine if\n//         * strstart == 0 && lookahead == 1 (input done a byte at time)\n//         */\n//        more--;\n//    }\n//}\n/* If the window is almost full and there is insufficient lookahead,\r\n         * move the upper half to the lower one to make room in the upper half.\r\n         */if(s.strstart>=_w_size+(_w_size-MIN_LOOKAHEAD)){utils.arraySet(s.window,s.window,_w_size,_w_size,0);s.match_start-=_w_size;s.strstart-=_w_size;/* we now have strstart >= MAX_DIST */s.block_start-=_w_size;/* Slide the hash table (could be avoided with 32 bit values\r\n           at the expense of memory usage). We slide even when level == 0\r\n           to keep the hash table consistent if we switch back to level > 0\r\n           later. (Using level 0 permanently is not an optimal usage of\r\n           zlib, so we don't care about this pathological case.)\r\n           */n=s.hash_size;p=n;do{m=s.head[--p];s.head[p]=m>=_w_size?m-_w_size:0;}while(--n);n=_w_size;p=n;do{m=s.prev[--p];s.prev[p]=m>=_w_size?m-_w_size:0;/* If n is not on any hash chain, prev[n] is garbage but\r\n             * its value will never be used.\r\n             */}while(--n);more+=_w_size;}if(s.strm.avail_in===0){break;}/* If there was no sliding:\r\n         *    strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&\r\n         *    more == window_size - lookahead - strstart\r\n         * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)\r\n         * => more >= window_size - 2*WSIZE + 2\r\n         * In the BIG_MEM or MMAP case (not yet supported),\r\n         *   window_size == input_size + MIN_LOOKAHEAD  &&\r\n         *   strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.\r\n         * Otherwise, window_size == 2*WSIZE so more >= 2.\r\n         * If there was sliding, more >= WSIZE. So in all cases, more >= 2.\r\n         */ //Assert(more >= 2, \"more < 2\");\nn=read_buf(s.strm,s.window,s.strstart+s.lookahead,more);s.lookahead+=n;/* Initialize the hash value now that we have some input: */if(s.lookahead+s.insert>=MIN_MATCH){str=s.strstart-s.insert;s.ins_h=s.window[str];/* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */s.ins_h=(s.ins_h<<s.hash_shift^s.window[str+1])&s.hash_mask;//#if MIN_MATCH != 3\n//        Call update_hash() MIN_MATCH-3 more times\n//#endif\nwhile(s.insert){/* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */s.ins_h=(s.ins_h<<s.hash_shift^s.window[str+MIN_MATCH-1])&s.hash_mask;s.prev[str&s.w_mask]=s.head[s.ins_h];s.head[s.ins_h]=str;str++;s.insert--;if(s.lookahead+s.insert<MIN_MATCH){break;}}}/* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,\r\n         * but this is not important since only literal bytes will be emitted.\r\n         */}while(s.lookahead<MIN_LOOKAHEAD&&s.strm.avail_in!==0);/* If the WIN_INIT bytes after the end of the current data have never been\r\n       * written, then zero those bytes in order to avoid memory check reports of\r\n       * the use of uninitialized (or uninitialised as Julian writes) bytes by\r\n       * the longest match routines.  Update the high water mark for the next\r\n       * time through here.  WIN_INIT is set to MAX_MATCH since the longest match\r\n       * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.\r\n       */ //  if (s.high_water < s.window_size) {\n//    var curr = s.strstart + s.lookahead;\n//    var init = 0;\n//\n//    if (s.high_water < curr) {\n//      /* Previous high water mark below current data -- zero WIN_INIT\n//       * bytes or up to end of window, whichever is less.\n//       */\n//      init = s.window_size - curr;\n//      if (init > WIN_INIT)\n//        init = WIN_INIT;\n//      zmemzero(s->window + curr, (unsigned)init);\n//      s->high_water = curr + init;\n//    }\n//    else if (s->high_water < (ulg)curr + WIN_INIT) {\n//      /* High water mark at or above current data, but below current data\n//       * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up\n//       * to end of window, whichever is less.\n//       */\n//      init = (ulg)curr + WIN_INIT - s->high_water;\n//      if (init > s->window_size - s->high_water)\n//        init = s->window_size - s->high_water;\n//      zmemzero(s->window + s->high_water, (unsigned)init);\n//      s->high_water += init;\n//    }\n//  }\n//\n//  Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,\n//    \"not enough room for search\");\n}/* ===========================================================================\r\n     * Copy without compression as much as possible from the input stream, return\r\n     * the current block state.\r\n     * This function does not insert new strings in the dictionary since\r\n     * uncompressible data is probably not useful. This function is used\r\n     * only for the level=0 compression option.\r\n     * NOTE: this function should be optimized to avoid extra copying from\r\n     * window to pending_buf.\r\n     */function deflate_stored(s,flush){/* Stored blocks are limited to 0xffff bytes, pending_buf is limited\r\n       * to pending_buf_size, and each stored block has a 5 byte header:\r\n       */var max_block_size=0xffff;if(max_block_size>s.pending_buf_size-5){max_block_size=s.pending_buf_size-5;}/* Copy as much as possible from input to output: */for(;;){/* Fill the window as much as possible: */if(s.lookahead<=1){//Assert(s->strstart < s->w_size+MAX_DIST(s) ||\n//  s->block_start >= (long)s->w_size, \"slide too late\");\n//      if (!(s.strstart < s.w_size + (s.w_size - MIN_LOOKAHEAD) ||\n//        s.block_start >= s.w_size)) {\n//        throw  new Error(\"slide too late\");\n//      }\nfill_window(s);if(s.lookahead===0&&flush===Z_NO_FLUSH){return BS_NEED_MORE;}if(s.lookahead===0){break;}/* flush the current block */}//Assert(s->block_start >= 0L, \"block gone\");\n//    if (s.block_start < 0) throw new Error(\"block gone\");\ns.strstart+=s.lookahead;s.lookahead=0;/* Emit a stored block if pending_buf will be full: */var max_start=s.block_start+max_block_size;if(s.strstart===0||s.strstart>=max_start){/* strstart == 0 is possible when wraparound on 16-bit machine */s.lookahead=s.strstart-max_start;s.strstart=max_start;/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}/* Flush if we may have to slide, otherwise block_start may become\r\n         * negative and the data will be gone:\r\n         */if(s.strstart-s.block_start>=s.w_size-MIN_LOOKAHEAD){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}}s.insert=0;if(flush===Z_FINISH){/*** FLUSH_BLOCK(s, 1); ***/flush_block_only(s,true);if(s.strm.avail_out===0){return BS_FINISH_STARTED;}/***/return BS_FINISH_DONE;}if(s.strstart>s.block_start){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}return BS_NEED_MORE;}/* ===========================================================================\r\n     * Compress as much as possible from the input stream, return the current\r\n     * block state.\r\n     * This function does not perform lazy evaluation of matches and inserts\r\n     * new strings in the dictionary only for unmatched strings or for short\r\n     * matches. It is used only for the fast compression options.\r\n     */function deflate_fast(s,flush){var hash_head;/* head of the hash chain */var bflush;/* set if current block must be flushed */for(;;){/* Make sure that we always have enough lookahead, except\r\n         * at the end of the input file. We need MAX_MATCH bytes\r\n         * for the next match, plus MIN_MATCH bytes to insert the\r\n         * string following the next match.\r\n         */if(s.lookahead<MIN_LOOKAHEAD){fill_window(s);if(s.lookahead<MIN_LOOKAHEAD&&flush===Z_NO_FLUSH){return BS_NEED_MORE;}if(s.lookahead===0){break;/* flush the current block */}}/* Insert the string window[strstart .. strstart+2] in the\r\n         * dictionary, and set hash_head to the head of the hash chain:\r\n         */hash_head=0/*NIL*/;if(s.lookahead>=MIN_MATCH){/*** INSERT_STRING(s, s.strstart, hash_head); ***/s.ins_h=(s.ins_h<<s.hash_shift^s.window[s.strstart+MIN_MATCH-1])&s.hash_mask;hash_head=s.prev[s.strstart&s.w_mask]=s.head[s.ins_h];s.head[s.ins_h]=s.strstart;/***/}/* Find the longest match, discarding those <= prev_length.\r\n         * At this point we have always match_length < MIN_MATCH\r\n         */if(hash_head!==0/*NIL*/&&s.strstart-hash_head<=s.w_size-MIN_LOOKAHEAD){/* To simplify the code, we prevent matches with the string\r\n           * of window index 0 (in particular we have to avoid a match\r\n           * of the string with itself at the start of the input file).\r\n           */s.match_length=longest_match(s,hash_head);/* longest_match() sets match_start */}if(s.match_length>=MIN_MATCH){// check_match(s, s.strstart, s.match_start, s.match_length); // for debug only\n/*** _tr_tally_dist(s, s.strstart - s.match_start,\r\n                         s.match_length - MIN_MATCH, bflush); ***/bflush=trees._tr_tally(s,s.strstart-s.match_start,s.match_length-MIN_MATCH);s.lookahead-=s.match_length;/* Insert new strings in the hash table only if the match length\r\n           * is not too large. This saves time but degrades compression.\r\n           */if(s.match_length<=s.max_lazy_match/*max_insert_length*/&&s.lookahead>=MIN_MATCH){s.match_length--;/* string at strstart already in table */do{s.strstart++;/*** INSERT_STRING(s, s.strstart, hash_head); ***/s.ins_h=(s.ins_h<<s.hash_shift^s.window[s.strstart+MIN_MATCH-1])&s.hash_mask;hash_head=s.prev[s.strstart&s.w_mask]=s.head[s.ins_h];s.head[s.ins_h]=s.strstart;/***/ /* strstart never exceeds WSIZE-MAX_MATCH, so there are\r\n               * always MIN_MATCH bytes ahead.\r\n               */}while(--s.match_length!==0);s.strstart++;}else{s.strstart+=s.match_length;s.match_length=0;s.ins_h=s.window[s.strstart];/* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */s.ins_h=(s.ins_h<<s.hash_shift^s.window[s.strstart+1])&s.hash_mask;//#if MIN_MATCH != 3\n//                Call UPDATE_HASH() MIN_MATCH-3 more times\n//#endif\n/* If lookahead < MIN_MATCH, ins_h is garbage, but it does not\r\n             * matter since it will be recomputed at next deflate call.\r\n             */}}else{/* No match, output a literal byte */ //Tracevv((stderr,\"%c\", s.window[s.strstart]));\n/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/bflush=trees._tr_tally(s,0,s.window[s.strstart]);s.lookahead--;s.strstart++;}if(bflush){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}}s.insert=s.strstart<MIN_MATCH-1?s.strstart:MIN_MATCH-1;if(flush===Z_FINISH){/*** FLUSH_BLOCK(s, 1); ***/flush_block_only(s,true);if(s.strm.avail_out===0){return BS_FINISH_STARTED;}/***/return BS_FINISH_DONE;}if(s.last_lit){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}return BS_BLOCK_DONE;}/* ===========================================================================\r\n     * Same as above, but achieves better compression. We use a lazy\r\n     * evaluation for matches: a match is finally adopted only if there is\r\n     * no better match at the next window position.\r\n     */function deflate_slow(s,flush){var hash_head;/* head of hash chain */var bflush;/* set if current block must be flushed */var max_insert;/* Process the input block. */for(;;){/* Make sure that we always have enough lookahead, except\r\n         * at the end of the input file. We need MAX_MATCH bytes\r\n         * for the next match, plus MIN_MATCH bytes to insert the\r\n         * string following the next match.\r\n         */if(s.lookahead<MIN_LOOKAHEAD){fill_window(s);if(s.lookahead<MIN_LOOKAHEAD&&flush===Z_NO_FLUSH){return BS_NEED_MORE;}if(s.lookahead===0){break;}/* flush the current block */}/* Insert the string window[strstart .. strstart+2] in the\r\n         * dictionary, and set hash_head to the head of the hash chain:\r\n         */hash_head=0/*NIL*/;if(s.lookahead>=MIN_MATCH){/*** INSERT_STRING(s, s.strstart, hash_head); ***/s.ins_h=(s.ins_h<<s.hash_shift^s.window[s.strstart+MIN_MATCH-1])&s.hash_mask;hash_head=s.prev[s.strstart&s.w_mask]=s.head[s.ins_h];s.head[s.ins_h]=s.strstart;/***/}/* Find the longest match, discarding those <= prev_length.\r\n         */s.prev_length=s.match_length;s.prev_match=s.match_start;s.match_length=MIN_MATCH-1;if(hash_head!==0/*NIL*/&&s.prev_length<s.max_lazy_match&&s.strstart-hash_head<=s.w_size-MIN_LOOKAHEAD/*MAX_DIST(s)*/){/* To simplify the code, we prevent matches with the string\r\n           * of window index 0 (in particular we have to avoid a match\r\n           * of the string with itself at the start of the input file).\r\n           */s.match_length=longest_match(s,hash_head);/* longest_match() sets match_start */if(s.match_length<=5&&(s.strategy===Z_FILTERED||s.match_length===MIN_MATCH&&s.strstart-s.match_start>4096/*TOO_FAR*/)){/* If prev_match is also MIN_MATCH, match_start is garbage\r\n             * but we will ignore the current match anyway.\r\n             */s.match_length=MIN_MATCH-1;}}/* If there was a match at the previous step and the current\r\n         * match is not better, output the previous match:\r\n         */if(s.prev_length>=MIN_MATCH&&s.match_length<=s.prev_length){max_insert=s.strstart+s.lookahead-MIN_MATCH;/* Do not insert strings in hash table beyond this. */ //check_match(s, s.strstart-1, s.prev_match, s.prev_length);\n/***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,\r\n                         s.prev_length - MIN_MATCH, bflush);***/bflush=trees._tr_tally(s,s.strstart-1-s.prev_match,s.prev_length-MIN_MATCH);/* Insert in hash table all strings up to the end of the match.\r\n           * strstart-1 and strstart are already inserted. If there is not\r\n           * enough lookahead, the last two strings are not inserted in\r\n           * the hash table.\r\n           */s.lookahead-=s.prev_length-1;s.prev_length-=2;do{if(++s.strstart<=max_insert){/*** INSERT_STRING(s, s.strstart, hash_head); ***/s.ins_h=(s.ins_h<<s.hash_shift^s.window[s.strstart+MIN_MATCH-1])&s.hash_mask;hash_head=s.prev[s.strstart&s.w_mask]=s.head[s.ins_h];s.head[s.ins_h]=s.strstart;/***/}}while(--s.prev_length!==0);s.match_available=0;s.match_length=MIN_MATCH-1;s.strstart++;if(bflush){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}}else if(s.match_available){/* If there was no match at the previous position, output a\r\n           * single literal. If there was a match but the current match\r\n           * is longer, truncate the previous match to a single literal.\r\n           */ //Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\n/*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/bflush=trees._tr_tally(s,0,s.window[s.strstart-1]);if(bflush){/*** FLUSH_BLOCK_ONLY(s, 0) ***/flush_block_only(s,false);/***/}s.strstart++;s.lookahead--;if(s.strm.avail_out===0){return BS_NEED_MORE;}}else{/* There is no previous match to compare with, wait for\r\n           * the next step to decide.\r\n           */s.match_available=1;s.strstart++;s.lookahead--;}}//Assert (flush != Z_NO_FLUSH, \"no flush?\");\nif(s.match_available){//Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\n/*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/bflush=trees._tr_tally(s,0,s.window[s.strstart-1]);s.match_available=0;}s.insert=s.strstart<MIN_MATCH-1?s.strstart:MIN_MATCH-1;if(flush===Z_FINISH){/*** FLUSH_BLOCK(s, 1); ***/flush_block_only(s,true);if(s.strm.avail_out===0){return BS_FINISH_STARTED;}/***/return BS_FINISH_DONE;}if(s.last_lit){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}return BS_BLOCK_DONE;}/* ===========================================================================\r\n     * For Z_RLE, simply look for runs of bytes, generate matches only of distance\r\n     * one.  Do not maintain a hash table.  (It will be regenerated if this run of\r\n     * deflate switches away from Z_RLE.)\r\n     */function deflate_rle(s,flush){var bflush;/* set if current block must be flushed */var prev;/* byte at distance one to match */var scan,strend;/* scan goes up to strend for length of run */var _win=s.window;for(;;){/* Make sure that we always have enough lookahead, except\r\n         * at the end of the input file. We need MAX_MATCH bytes\r\n         * for the longest run, plus one for the unrolled loop.\r\n         */if(s.lookahead<=MAX_MATCH){fill_window(s);if(s.lookahead<=MAX_MATCH&&flush===Z_NO_FLUSH){return BS_NEED_MORE;}if(s.lookahead===0){break;}/* flush the current block */}/* See how many times the previous byte repeats */s.match_length=0;if(s.lookahead>=MIN_MATCH&&s.strstart>0){scan=s.strstart-1;prev=_win[scan];if(prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]){strend=s.strstart+MAX_MATCH;do{/*jshint noempty:false*/}while(prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&scan<strend);s.match_length=MAX_MATCH-(strend-scan);if(s.match_length>s.lookahead){s.match_length=s.lookahead;}}//Assert(scan <= s->window+(uInt)(s->window_size-1), \"wild scan\");\n}/* Emit match if have run of MIN_MATCH or longer, else emit literal */if(s.match_length>=MIN_MATCH){//check_match(s, s.strstart, s.strstart - 1, s.match_length);\n/*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/bflush=trees._tr_tally(s,1,s.match_length-MIN_MATCH);s.lookahead-=s.match_length;s.strstart+=s.match_length;s.match_length=0;}else{/* No match, output a literal byte */ //Tracevv((stderr,\"%c\", s->window[s->strstart]));\n/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/bflush=trees._tr_tally(s,0,s.window[s.strstart]);s.lookahead--;s.strstart++;}if(bflush){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}}s.insert=0;if(flush===Z_FINISH){/*** FLUSH_BLOCK(s, 1); ***/flush_block_only(s,true);if(s.strm.avail_out===0){return BS_FINISH_STARTED;}/***/return BS_FINISH_DONE;}if(s.last_lit){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}return BS_BLOCK_DONE;}/* ===========================================================================\r\n     * For Z_HUFFMAN_ONLY, do not look for matches.  Do not maintain a hash table.\r\n     * (It will be regenerated if this run of deflate switches away from Huffman.)\r\n     */function deflate_huff(s,flush){var bflush;/* set if current block must be flushed */for(;;){/* Make sure that we have a literal to write. */if(s.lookahead===0){fill_window(s);if(s.lookahead===0){if(flush===Z_NO_FLUSH){return BS_NEED_MORE;}break;/* flush the current block */}}/* Output a literal byte */s.match_length=0;//Tracevv((stderr,\"%c\", s->window[s->strstart]));\n/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/bflush=trees._tr_tally(s,0,s.window[s.strstart]);s.lookahead--;s.strstart++;if(bflush){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}}s.insert=0;if(flush===Z_FINISH){/*** FLUSH_BLOCK(s, 1); ***/flush_block_only(s,true);if(s.strm.avail_out===0){return BS_FINISH_STARTED;}/***/return BS_FINISH_DONE;}if(s.last_lit){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}return BS_BLOCK_DONE;}/* Values for max_lazy_match, good_match and max_chain_length, depending on\r\n     * the desired pack level (0..9). The values given below have been tuned to\r\n     * exclude worst case performance for pathological files. Better values may be\r\n     * found for specific files.\r\n     */function Config(good_length,max_lazy,nice_length,max_chain,func){this.good_length=good_length;this.max_lazy=max_lazy;this.nice_length=nice_length;this.max_chain=max_chain;this.func=func;}var configuration_table;configuration_table=[/*      good lazy nice chain */new Config(0,0,0,0,deflate_stored),/* 0 store only */new Config(4,4,8,4,deflate_fast),/* 1 max speed, no lazy matches */new Config(4,5,16,8,deflate_fast),/* 2 */new Config(4,6,32,32,deflate_fast),/* 3 */new Config(4,4,16,16,deflate_slow),/* 4 lazy matches */new Config(8,16,32,32,deflate_slow),/* 5 */new Config(8,16,128,128,deflate_slow),/* 6 */new Config(8,32,128,256,deflate_slow),/* 7 */new Config(32,128,258,1024,deflate_slow),/* 8 */new Config(32,258,258,4096,deflate_slow)/* 9 max compression */];/* ===========================================================================\r\n     * Initialize the \"longest match\" routines for a new zlib stream\r\n     */function lm_init(s){s.window_size=2*s.w_size;/*** CLEAR_HASH(s); ***/zero(s.head);// Fill with NIL (= 0);\n/* Set the default configuration parameters:\r\n       */s.max_lazy_match=configuration_table[s.level].max_lazy;s.good_match=configuration_table[s.level].good_length;s.nice_match=configuration_table[s.level].nice_length;s.max_chain_length=configuration_table[s.level].max_chain;s.strstart=0;s.block_start=0;s.lookahead=0;s.insert=0;s.match_length=s.prev_length=MIN_MATCH-1;s.match_available=0;s.ins_h=0;}function DeflateState(){this.strm=null;/* pointer back to this zlib stream */this.status=0;/* as the name implies */this.pending_buf=null;/* output still pending */this.pending_buf_size=0;/* size of pending_buf */this.pending_out=0;/* next pending byte to output to the stream */this.pending=0;/* nb of bytes in the pending buffer */this.wrap=0;/* bit 0 true for zlib, bit 1 true for gzip */this.gzhead=null;/* gzip header information to write */this.gzindex=0;/* where in extra, name, or comment */this.method=Z_DEFLATED;/* can only be DEFLATED */this.last_flush=-1;/* value of flush param for previous deflate call */this.w_size=0;/* LZ77 window size (32K by default) */this.w_bits=0;/* log2(w_size)  (8..16) */this.w_mask=0;/* w_size - 1 */this.window=null;/* Sliding window. Input bytes are read into the second half of the window,\r\n       * and move to the first half later to keep a dictionary of at least wSize\r\n       * bytes. With this organization, matches are limited to a distance of\r\n       * wSize-MAX_MATCH bytes, but this ensures that IO is always\r\n       * performed with a length multiple of the block size.\r\n       */this.window_size=0;/* Actual size of window: 2*wSize, except when the user input buffer\r\n       * is directly used as sliding window.\r\n       */this.prev=null;/* Link to older string with same hash index. To limit the size of this\r\n       * array to 64K, this link is maintained only for the last 32K strings.\r\n       * An index in this array is thus a window index modulo 32K.\r\n       */this.head=null;/* Heads of the hash chains or NIL. */this.ins_h=0;/* hash index of string to be inserted */this.hash_size=0;/* number of elements in hash table */this.hash_bits=0;/* log2(hash_size) */this.hash_mask=0;/* hash_size-1 */this.hash_shift=0;/* Number of bits by which ins_h must be shifted at each input\r\n       * step. It must be such that after MIN_MATCH steps, the oldest\r\n       * byte no longer takes part in the hash key, that is:\r\n       *   hash_shift * MIN_MATCH >= hash_bits\r\n       */this.block_start=0;/* Window position at the beginning of the current output block. Gets\r\n       * negative when the window is moved backwards.\r\n       */this.match_length=0;/* length of best match */this.prev_match=0;/* previous match */this.match_available=0;/* set if previous match exists */this.strstart=0;/* start of string to insert */this.match_start=0;/* start of matching string */this.lookahead=0;/* number of valid bytes ahead in window */this.prev_length=0;/* Length of the best match at previous step. Matches not greater than this\r\n       * are discarded. This is used in the lazy match evaluation.\r\n       */this.max_chain_length=0;/* To speed up deflation, hash chains are never searched beyond this\r\n       * length.  A higher limit improves compression ratio but degrades the\r\n       * speed.\r\n       */this.max_lazy_match=0;/* Attempt to find a better match only when the current match is strictly\r\n       * smaller than this value. This mechanism is used only for compression\r\n       * levels >= 4.\r\n       */ // That's alias to max_lazy_match, don't use directly\n//this.max_insert_length = 0;\n/* Insert new strings in the hash table only if the match length is not\r\n       * greater than this length. This saves time but degrades compression.\r\n       * max_insert_length is used only for compression levels <= 3.\r\n       */this.level=0;/* compression level (1..9) */this.strategy=0;/* favor or force Huffman coding*/this.good_match=0;/* Use a faster search when the previous match is longer than this */this.nice_match=0;/* Stop searching when current match exceeds this */ /* used by trees.c: */ /* Didn't use ct_data typedef below to suppress compiler warning */ // struct ct_data_s dyn_ltree[HEAP_SIZE];   /* literal and length tree */\n// struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */\n// struct ct_data_s bl_tree[2*BL_CODES+1];  /* Huffman tree for bit lengths */\n// Use flat array of DOUBLE size, with interleaved fata,\n// because JS does not support effective\nthis.dyn_ltree=new utils.Buf16(HEAP_SIZE*2);this.dyn_dtree=new utils.Buf16((2*D_CODES+1)*2);this.bl_tree=new utils.Buf16((2*BL_CODES+1)*2);zero(this.dyn_ltree);zero(this.dyn_dtree);zero(this.bl_tree);this.l_desc=null;/* desc. for literal tree */this.d_desc=null;/* desc. for distance tree */this.bl_desc=null;/* desc. for bit length tree */ //ush bl_count[MAX_BITS+1];\nthis.bl_count=new utils.Buf16(MAX_BITS+1);/* number of codes at each bit length for an optimal tree */ //int heap[2*L_CODES+1];      /* heap used to build the Huffman trees */\nthis.heap=new utils.Buf16(2*L_CODES+1);/* heap used to build the Huffman trees */zero(this.heap);this.heap_len=0;/* number of elements in the heap */this.heap_max=0;/* element of largest frequency */ /* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.\r\n       * The same heap array is used to build all trees.\r\n       */this.depth=new utils.Buf16(2*L_CODES+1);//uch depth[2*L_CODES+1];\nzero(this.depth);/* Depth of each subtree used as tie breaker for trees of equal frequency\r\n       */this.l_buf=0;/* buffer index for literals or lengths */this.lit_bufsize=0;/* Size of match buffer for literals/lengths.  There are 4 reasons for\r\n       * limiting lit_bufsize to 64K:\r\n       *   - frequencies can be kept in 16 bit counters\r\n       *   - if compression is not successful for the first block, all input\r\n       *     data is still in the window so we can still emit a stored block even\r\n       *     when input comes from standard input.  (This can also be done for\r\n       *     all blocks if lit_bufsize is not greater than 32K.)\r\n       *   - if compression is not successful for a file smaller than 64K, we can\r\n       *     even emit a stored file instead of a stored block (saving 5 bytes).\r\n       *     This is applicable only for zip (not gzip or zlib).\r\n       *   - creating new Huffman trees less frequently may not provide fast\r\n       *     adaptation to changes in the input data statistics. (Take for\r\n       *     example a binary file with poorly compressible code followed by\r\n       *     a highly compressible string table.) Smaller buffer sizes give\r\n       *     fast adaptation but have of course the overhead of transmitting\r\n       *     trees more frequently.\r\n       *   - I can't count above 4\r\n       */this.last_lit=0;/* running index in l_buf */this.d_buf=0;/* Buffer index for distances. To simplify the code, d_buf and l_buf have\r\n       * the same number of elements. To use different lengths, an extra flag\r\n       * array would be necessary.\r\n       */this.opt_len=0;/* bit length of current block with optimal trees */this.static_len=0;/* bit length of current block with static trees */this.matches=0;/* number of string matches in current block */this.insert=0;/* bytes at end of window left to insert */this.bi_buf=0;/* Output buffer. bits are inserted starting at the bottom (least\r\n       * significant bits).\r\n       */this.bi_valid=0;/* Number of valid bits in bi_buf.  All bits above the last valid bit\r\n       * are always zero.\r\n       */ // Used for window memory init. We safely ignore it for JS. That makes\n// sense only for pointers and memory check tools.\n//this.high_water = 0;\n/* High water mark offset in window for initialized bytes -- bytes above\r\n       * this are set to zero in order to avoid memory check warnings when\r\n       * longest match routines access bytes past the input.  This is then\r\n       * updated to the new high water mark.\r\n       */}function deflateResetKeep(strm){var s;if(!strm||!strm.state){return err(strm,Z_STREAM_ERROR);}strm.total_in=strm.total_out=0;strm.data_type=Z_UNKNOWN;s=strm.state;s.pending=0;s.pending_out=0;if(s.wrap<0){s.wrap=-s.wrap;/* was made negative by deflate(..., Z_FINISH); */}s.status=s.wrap?INIT_STATE:BUSY_STATE;strm.adler=s.wrap===2?0// crc32(0, Z_NULL, 0)\n:1;// adler32(0, Z_NULL, 0)\ns.last_flush=Z_NO_FLUSH;trees._tr_init(s);return Z_OK;}function deflateReset(strm){var ret=deflateResetKeep(strm);if(ret===Z_OK){lm_init(strm.state);}return ret;}function deflateSetHeader(strm,head){if(!strm||!strm.state){return Z_STREAM_ERROR;}if(strm.state.wrap!==2){return Z_STREAM_ERROR;}strm.state.gzhead=head;return Z_OK;}function deflateInit2(strm,level,method,windowBits,memLevel,strategy){if(!strm){// === Z_NULL\nreturn Z_STREAM_ERROR;}var wrap=1;if(level===Z_DEFAULT_COMPRESSION){level=6;}if(windowBits<0){/* suppress zlib wrapper */wrap=0;windowBits=-windowBits;}else if(windowBits>15){wrap=2;/* write gzip wrapper instead */windowBits-=16;}if(memLevel<1||memLevel>MAX_MEM_LEVEL||method!==Z_DEFLATED||windowBits<8||windowBits>15||level<0||level>9||strategy<0||strategy>Z_FIXED){return err(strm,Z_STREAM_ERROR);}if(windowBits===8){windowBits=9;}/* until 256-byte window bug fixed */var s=new DeflateState();strm.state=s;s.strm=strm;s.wrap=wrap;s.gzhead=null;s.w_bits=windowBits;s.w_size=1<<s.w_bits;s.w_mask=s.w_size-1;s.hash_bits=memLevel+7;s.hash_size=1<<s.hash_bits;s.hash_mask=s.hash_size-1;s.hash_shift=~~((s.hash_bits+MIN_MATCH-1)/MIN_MATCH);s.window=new utils.Buf8(s.w_size*2);s.head=new utils.Buf16(s.hash_size);s.prev=new utils.Buf16(s.w_size);// Don't need mem init magic for JS.\n//s.high_water = 0;  /* nothing written to s->window yet */\ns.lit_bufsize=1<<memLevel+6;/* 16K elements by default */s.pending_buf_size=s.lit_bufsize*4;//overlay = (ushf *) ZALLOC(strm, s->lit_bufsize, sizeof(ush)+2);\n//s->pending_buf = (uchf *) overlay;\ns.pending_buf=new utils.Buf8(s.pending_buf_size);// It is offset from `s.pending_buf` (size is `s.lit_bufsize * 2`)\n//s->d_buf = overlay + s->lit_bufsize/sizeof(ush);\ns.d_buf=1*s.lit_bufsize;//s->l_buf = s->pending_buf + (1+sizeof(ush))*s->lit_bufsize;\ns.l_buf=(1+2)*s.lit_bufsize;s.level=level;s.strategy=strategy;s.method=method;return deflateReset(strm);}function deflateInit(strm,level){return deflateInit2(strm,level,Z_DEFLATED,MAX_WBITS,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY);}function deflate(strm,flush){var old_flush,s;var beg,val;// for gzip header write only\nif(!strm||!strm.state||flush>Z_BLOCK||flush<0){return strm?err(strm,Z_STREAM_ERROR):Z_STREAM_ERROR;}s=strm.state;if(!strm.output||!strm.input&&strm.avail_in!==0||s.status===FINISH_STATE&&flush!==Z_FINISH){return err(strm,strm.avail_out===0?Z_BUF_ERROR:Z_STREAM_ERROR);}s.strm=strm;/* just in case */old_flush=s.last_flush;s.last_flush=flush;/* Write the header */if(s.status===INIT_STATE){if(s.wrap===2){// GZIP header\nstrm.adler=0;//crc32(0L, Z_NULL, 0);\nput_byte(s,31);put_byte(s,139);put_byte(s,8);if(!s.gzhead){// s->gzhead == Z_NULL\nput_byte(s,0);put_byte(s,0);put_byte(s,0);put_byte(s,0);put_byte(s,0);put_byte(s,s.level===9?2:s.strategy>=Z_HUFFMAN_ONLY||s.level<2?4:0);put_byte(s,OS_CODE);s.status=BUSY_STATE;}else{put_byte(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(!s.gzhead.extra?0:4)+(!s.gzhead.name?0:8)+(!s.gzhead.comment?0:16));put_byte(s,s.gzhead.time&0xff);put_byte(s,s.gzhead.time>>8&0xff);put_byte(s,s.gzhead.time>>16&0xff);put_byte(s,s.gzhead.time>>24&0xff);put_byte(s,s.level===9?2:s.strategy>=Z_HUFFMAN_ONLY||s.level<2?4:0);put_byte(s,s.gzhead.os&0xff);if(s.gzhead.extra&&s.gzhead.extra.length){put_byte(s,s.gzhead.extra.length&0xff);put_byte(s,s.gzhead.extra.length>>8&0xff);}if(s.gzhead.hcrc){strm.adler=crc32(strm.adler,s.pending_buf,s.pending,0);}s.gzindex=0;s.status=EXTRA_STATE;}}else// DEFLATE header\n{var header=Z_DEFLATED+(s.w_bits-8<<4)<<8;var level_flags=-1;if(s.strategy>=Z_HUFFMAN_ONLY||s.level<2){level_flags=0;}else if(s.level<6){level_flags=1;}else if(s.level===6){level_flags=2;}else{level_flags=3;}header|=level_flags<<6;if(s.strstart!==0){header|=PRESET_DICT;}header+=31-header%31;s.status=BUSY_STATE;putShortMSB(s,header);/* Save the adler32 of the preset dictionary: */if(s.strstart!==0){putShortMSB(s,strm.adler>>>16);putShortMSB(s,strm.adler&0xffff);}strm.adler=1;// adler32(0L, Z_NULL, 0);\n}}//#ifdef GZIP\nif(s.status===EXTRA_STATE){if(s.gzhead.extra/* != Z_NULL*/){beg=s.pending;/* start of bytes to update crc */while(s.gzindex<(s.gzhead.extra.length&0xffff)){if(s.pending===s.pending_buf_size){if(s.gzhead.hcrc&&s.pending>beg){strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg);}flush_pending(strm);beg=s.pending;if(s.pending===s.pending_buf_size){break;}}put_byte(s,s.gzhead.extra[s.gzindex]&0xff);s.gzindex++;}if(s.gzhead.hcrc&&s.pending>beg){strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg);}if(s.gzindex===s.gzhead.extra.length){s.gzindex=0;s.status=NAME_STATE;}}else{s.status=NAME_STATE;}}if(s.status===NAME_STATE){if(s.gzhead.name/* != Z_NULL*/){beg=s.pending;/* start of bytes to update crc */ //int val;\ndo{if(s.pending===s.pending_buf_size){if(s.gzhead.hcrc&&s.pending>beg){strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg);}flush_pending(strm);beg=s.pending;if(s.pending===s.pending_buf_size){val=1;break;}}// JS specific: little magic to add zero terminator to end of string\nif(s.gzindex<s.gzhead.name.length){val=s.gzhead.name.charCodeAt(s.gzindex++)&0xff;}else{val=0;}put_byte(s,val);}while(val!==0);if(s.gzhead.hcrc&&s.pending>beg){strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg);}if(val===0){s.gzindex=0;s.status=COMMENT_STATE;}}else{s.status=COMMENT_STATE;}}if(s.status===COMMENT_STATE){if(s.gzhead.comment/* != Z_NULL*/){beg=s.pending;/* start of bytes to update crc */ //int val;\ndo{if(s.pending===s.pending_buf_size){if(s.gzhead.hcrc&&s.pending>beg){strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg);}flush_pending(strm);beg=s.pending;if(s.pending===s.pending_buf_size){val=1;break;}}// JS specific: little magic to add zero terminator to end of string\nif(s.gzindex<s.gzhead.comment.length){val=s.gzhead.comment.charCodeAt(s.gzindex++)&0xff;}else{val=0;}put_byte(s,val);}while(val!==0);if(s.gzhead.hcrc&&s.pending>beg){strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg);}if(val===0){s.status=HCRC_STATE;}}else{s.status=HCRC_STATE;}}if(s.status===HCRC_STATE){if(s.gzhead.hcrc){if(s.pending+2>s.pending_buf_size){flush_pending(strm);}if(s.pending+2<=s.pending_buf_size){put_byte(s,strm.adler&0xff);put_byte(s,strm.adler>>8&0xff);strm.adler=0;//crc32(0L, Z_NULL, 0);\ns.status=BUSY_STATE;}}else{s.status=BUSY_STATE;}}//#endif\n/* Flush as much pending output as possible */if(s.pending!==0){flush_pending(strm);if(strm.avail_out===0){/* Since avail_out is 0, deflate will be called again with\r\n           * more output space, but possibly with both pending and\r\n           * avail_in equal to zero. There won't be anything to do,\r\n           * but this is not an error situation so make sure we\r\n           * return OK instead of BUF_ERROR at next call of deflate:\r\n           */s.last_flush=-1;return Z_OK;}/* Make sure there is something to do and avoid duplicate consecutive\r\n         * flushes. For repeated and useless calls with Z_FINISH, we keep\r\n         * returning Z_STREAM_END instead of Z_BUF_ERROR.\r\n         */}else if(strm.avail_in===0&&rank(flush)<=rank(old_flush)&&flush!==Z_FINISH){return err(strm,Z_BUF_ERROR);}/* User must not provide more input after the first FINISH: */if(s.status===FINISH_STATE&&strm.avail_in!==0){return err(strm,Z_BUF_ERROR);}/* Start a new block or continue the current one.\r\n       */if(strm.avail_in!==0||s.lookahead!==0||flush!==Z_NO_FLUSH&&s.status!==FINISH_STATE){var bstate=s.strategy===Z_HUFFMAN_ONLY?deflate_huff(s,flush):s.strategy===Z_RLE?deflate_rle(s,flush):configuration_table[s.level].func(s,flush);if(bstate===BS_FINISH_STARTED||bstate===BS_FINISH_DONE){s.status=FINISH_STATE;}if(bstate===BS_NEED_MORE||bstate===BS_FINISH_STARTED){if(strm.avail_out===0){s.last_flush=-1;/* avoid BUF_ERROR next call, see above */}return Z_OK;/* If flush != Z_NO_FLUSH && avail_out == 0, the next call\r\n           * of deflate should use the same flush parameter to make sure\r\n           * that the flush is complete. So we don't have to output an\r\n           * empty block here, this will be done at next call. This also\r\n           * ensures that for a very small output buffer, we emit at most\r\n           * one empty block.\r\n           */}if(bstate===BS_BLOCK_DONE){if(flush===Z_PARTIAL_FLUSH){trees._tr_align(s);}else if(flush!==Z_BLOCK){/* FULL_FLUSH or SYNC_FLUSH */trees._tr_stored_block(s,0,0,false);/* For a full flush, this empty block will be recognized\r\n             * as a special marker by inflate_sync().\r\n             */if(flush===Z_FULL_FLUSH){/*** CLEAR_HASH(s); ***/ /* forget history */zero(s.head);// Fill with NIL (= 0);\nif(s.lookahead===0){s.strstart=0;s.block_start=0;s.insert=0;}}}flush_pending(strm);if(strm.avail_out===0){s.last_flush=-1;/* avoid BUF_ERROR at next call, see above */return Z_OK;}}}//Assert(strm->avail_out > 0, \"bug2\");\n//if (strm.avail_out <= 0) { throw new Error(\"bug2\");}\nif(flush!==Z_FINISH){return Z_OK;}if(s.wrap<=0){return Z_STREAM_END;}/* Write the trailer */if(s.wrap===2){put_byte(s,strm.adler&0xff);put_byte(s,strm.adler>>8&0xff);put_byte(s,strm.adler>>16&0xff);put_byte(s,strm.adler>>24&0xff);put_byte(s,strm.total_in&0xff);put_byte(s,strm.total_in>>8&0xff);put_byte(s,strm.total_in>>16&0xff);put_byte(s,strm.total_in>>24&0xff);}else{putShortMSB(s,strm.adler>>>16);putShortMSB(s,strm.adler&0xffff);}flush_pending(strm);/* If avail_out is zero, the application will call deflate again\r\n       * to flush the rest.\r\n       */if(s.wrap>0){s.wrap=-s.wrap;}/* write the trailer only once! */return s.pending!==0?Z_OK:Z_STREAM_END;}function deflateEnd(strm){var status;if(!strm/*== Z_NULL*/||!strm.state/*== Z_NULL*/){return Z_STREAM_ERROR;}status=strm.state.status;if(status!==INIT_STATE&&status!==EXTRA_STATE&&status!==NAME_STATE&&status!==COMMENT_STATE&&status!==HCRC_STATE&&status!==BUSY_STATE&&status!==FINISH_STATE){return err(strm,Z_STREAM_ERROR);}strm.state=null;return status===BUSY_STATE?err(strm,Z_DATA_ERROR):Z_OK;}/* =========================================================================\r\n     * Initializes the compression dictionary from the given byte\r\n     * sequence without producing any compressed output.\r\n     */function deflateSetDictionary(strm,dictionary){var dictLength=dictionary.length;var s;var str,n;var wrap;var avail;var next;var input;var tmpDict;if(!strm/*== Z_NULL*/||!strm.state/*== Z_NULL*/){return Z_STREAM_ERROR;}s=strm.state;wrap=s.wrap;if(wrap===2||wrap===1&&s.status!==INIT_STATE||s.lookahead){return Z_STREAM_ERROR;}/* when using zlib wrappers, compute Adler-32 for provided dictionary */if(wrap===1){/* adler32(strm->adler, dictionary, dictLength); */strm.adler=adler32(strm.adler,dictionary,dictLength,0);}s.wrap=0;/* avoid computing Adler-32 in read_buf */ /* if dictionary would fill window, just replace the history */if(dictLength>=s.w_size){if(wrap===0){/* already empty otherwise */ /*** CLEAR_HASH(s); ***/zero(s.head);// Fill with NIL (= 0);\ns.strstart=0;s.block_start=0;s.insert=0;}/* use the tail */ // dictionary = dictionary.slice(dictLength - s.w_size);\ntmpDict=new utils.Buf8(s.w_size);utils.arraySet(tmpDict,dictionary,dictLength-s.w_size,s.w_size,0);dictionary=tmpDict;dictLength=s.w_size;}/* insert dictionary into window and hash */avail=strm.avail_in;next=strm.next_in;input=strm.input;strm.avail_in=dictLength;strm.next_in=0;strm.input=dictionary;fill_window(s);while(s.lookahead>=MIN_MATCH){str=s.strstart;n=s.lookahead-(MIN_MATCH-1);do{/* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */s.ins_h=(s.ins_h<<s.hash_shift^s.window[str+MIN_MATCH-1])&s.hash_mask;s.prev[str&s.w_mask]=s.head[s.ins_h];s.head[s.ins_h]=str;str++;}while(--n);s.strstart=str;s.lookahead=MIN_MATCH-1;fill_window(s);}s.strstart+=s.lookahead;s.block_start=s.strstart;s.insert=s.lookahead;s.lookahead=0;s.match_length=s.prev_length=MIN_MATCH-1;s.match_available=0;strm.next_in=next;strm.input=input;strm.avail_in=avail;s.wrap=wrap;return Z_OK;}exports.deflateInit=deflateInit;exports.deflateInit2=deflateInit2;exports.deflateReset=deflateReset;exports.deflateResetKeep=deflateResetKeep;exports.deflateSetHeader=deflateSetHeader;exports.deflate=deflate;exports.deflateEnd=deflateEnd;exports.deflateSetDictionary=deflateSetDictionary;exports.deflateInfo='pako deflate (from Nodeca project)';/* Not implemented\r\n    exports.deflateBound = deflateBound;\r\n    exports.deflateCopy = deflateCopy;\r\n    exports.deflateParams = deflateParams;\r\n    exports.deflatePending = deflatePending;\r\n    exports.deflatePrime = deflatePrime;\r\n    exports.deflateTune = deflateTune;\r\n    */},{\"../utils/common\":41,\"./adler32\":43,\"./crc32\":45,\"./messages\":51,\"./trees\":52}],47:[function(require,module,exports){'use strict';// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nfunction GZheader(){/* true if compressed data believed to be text */this.text=0;/* modification time */this.time=0;/* extra flags (not used when writing a gzip file) */this.xflags=0;/* operating system */this.os=0;/* pointer to extra field or Z_NULL if none */this.extra=null;/* extra field length (valid if extra != Z_NULL) */this.extra_len=0;// Actually, we don't need it in JS,\n// but leave for few code modifications\n//\n// Setup limits is not necessary because in js we should not preallocate memory\n// for inflate use constant limit in 65536 bytes\n//\n/* space at extra (only when reading header) */ // this.extra_max  = 0;\n/* pointer to zero-terminated file name or Z_NULL */this.name='';/* space at name (only when reading header) */ // this.name_max   = 0;\n/* pointer to zero-terminated comment or Z_NULL */this.comment='';/* space at comment (only when reading header) */ // this.comm_max   = 0;\n/* true if there was or will be a header crc */this.hcrc=0;/* true when done reading gzip header (not used when writing a gzip file) */this.done=false;}module.exports=GZheader;},{}],48:[function(require,module,exports){'use strict';// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n// See state defs from inflate.js\nvar BAD=30;/* got a data error -- remain here until reset */var TYPE=12;/* i: waiting for type bits, including last-flag bit */ /*\r\n       Decode literal, length, and distance codes and write out the resulting\r\n       literal and match bytes until either not enough input or output is\r\n       available, an end-of-block is encountered, or a data error is encountered.\r\n       When large enough input and output buffers are supplied to inflate(), for\r\n       example, a 16K input buffer and a 64K output buffer, more than 95% of the\r\n       inflate execution time is spent in this routine.\r\n    \r\n       Entry assumptions:\r\n    \r\n            state.mode === LEN\r\n            strm.avail_in >= 6\r\n            strm.avail_out >= 258\r\n            start >= strm.avail_out\r\n            state.bits < 8\r\n    \r\n       On return, state.mode is one of:\r\n    \r\n            LEN -- ran out of enough output space or enough available input\r\n            TYPE -- reached end of block code, inflate() to interpret next block\r\n            BAD -- error in block data\r\n    \r\n       Notes:\r\n    \r\n        - The maximum input bits used by a length/distance pair is 15 bits for the\r\n          length code, 5 bits for the length extra, 15 bits for the distance code,\r\n          and 13 bits for the distance extra.  This totals 48 bits, or six bytes.\r\n          Therefore if strm.avail_in >= 6, then there is enough input to avoid\r\n          checking for available input while decoding.\r\n    \r\n        - The maximum bytes that a single length/distance pair can output is 258\r\n          bytes, which is the maximum length that can be coded.  inflate_fast()\r\n          requires strm.avail_out >= 258 for each loop to avoid checking for\r\n          output space.\r\n     */module.exports=function inflate_fast(strm,start){var state;var _in;/* local strm.input */var last;/* have enough input while in < last */var _out;/* local strm.output */var beg;/* inflate()'s initial strm.output */var end;/* while out < end, enough space available */ //#ifdef INFLATE_STRICT\nvar dmax;/* maximum distance from zlib header */ //#endif\nvar wsize;/* window size or zero if not using window */var whave;/* valid bytes in the window */var wnext;/* window write index */ // Use `s_window` instead `window`, avoid conflict with instrumentation tools\nvar s_window;/* allocated sliding window, if wsize != 0 */var hold;/* local strm.hold */var bits;/* local strm.bits */var lcode;/* local strm.lencode */var dcode;/* local strm.distcode */var lmask;/* mask for first level of length codes */var dmask;/* mask for first level of distance codes */var here;/* retrieved table entry */var op;/* code bits, operation, extra bits, or */ /*  window position, window bytes to copy */var len;/* match length, unused bytes */var dist;/* match distance */var from;/* where to copy match from */var from_source;var input,output;// JS specific, because we have no pointers\n/* copy state to local variables */state=strm.state;//here = state.here;\n_in=strm.next_in;input=strm.input;last=_in+(strm.avail_in-5);_out=strm.next_out;output=strm.output;beg=_out-(start-strm.avail_out);end=_out+(strm.avail_out-257);//#ifdef INFLATE_STRICT\ndmax=state.dmax;//#endif\nwsize=state.wsize;whave=state.whave;wnext=state.wnext;s_window=state.window;hold=state.hold;bits=state.bits;lcode=state.lencode;dcode=state.distcode;lmask=(1<<state.lenbits)-1;dmask=(1<<state.distbits)-1;/* decode literals and length/distances until end-of-block or not enough\r\n         input data or output space */top:do{if(bits<15){hold+=input[_in++]<<bits;bits+=8;hold+=input[_in++]<<bits;bits+=8;}here=lcode[hold&lmask];dolen:for(;;){// Goto emulation\nop=here>>>24/*here.bits*/;hold>>>=op;bits-=op;op=here>>>16&0xff/*here.op*/;if(op===0){/* literal */ //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n//        \"inflate:         literal '%c'\\n\" :\n//        \"inflate:         literal 0x%02x\\n\", here.val));\noutput[_out++]=here&0xffff/*here.val*/;}else if(op&16){/* length base */len=here&0xffff/*here.val*/;op&=15;/* number of extra bits */if(op){if(bits<op){hold+=input[_in++]<<bits;bits+=8;}len+=hold&(1<<op)-1;hold>>>=op;bits-=op;}//Tracevv((stderr, \"inflate:         length %u\\n\", len));\nif(bits<15){hold+=input[_in++]<<bits;bits+=8;hold+=input[_in++]<<bits;bits+=8;}here=dcode[hold&dmask];dodist:for(;;){// goto emulation\nop=here>>>24/*here.bits*/;hold>>>=op;bits-=op;op=here>>>16&0xff/*here.op*/;if(op&16){/* distance base */dist=here&0xffff/*here.val*/;op&=15;/* number of extra bits */if(bits<op){hold+=input[_in++]<<bits;bits+=8;if(bits<op){hold+=input[_in++]<<bits;bits+=8;}}dist+=hold&(1<<op)-1;//#ifdef INFLATE_STRICT\nif(dist>dmax){strm.msg='invalid distance too far back';state.mode=BAD;break top;}//#endif\nhold>>>=op;bits-=op;//Tracevv((stderr, \"inflate:         distance %u\\n\", dist));\nop=_out-beg;/* max distance in output */if(dist>op){/* see if copy from window */op=dist-op;/* distance back in window */if(op>whave){if(state.sane){strm.msg='invalid distance too far back';state.mode=BAD;break top;}// (!) This block is disabled in zlib defailts,\n// don't enable it for binary compatibility\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n//                if (len <= op - whave) {\n//                  do {\n//                    output[_out++] = 0;\n//                  } while (--len);\n//                  continue top;\n//                }\n//                len -= op - whave;\n//                do {\n//                  output[_out++] = 0;\n//                } while (--op > whave);\n//                if (op === 0) {\n//                  from = _out - dist;\n//                  do {\n//                    output[_out++] = output[from++];\n//                  } while (--len);\n//                  continue top;\n//                }\n//#endif\n}from=0;// window index\nfrom_source=s_window;if(wnext===0){/* very common case */from+=wsize-op;if(op<len){/* some from window */len-=op;do{output[_out++]=s_window[from++];}while(--op);from=_out-dist;/* rest from output */from_source=output;}}else if(wnext<op){/* wrap around window */from+=wsize+wnext-op;op-=wnext;if(op<len){/* some from end of window */len-=op;do{output[_out++]=s_window[from++];}while(--op);from=0;if(wnext<len){/* some from start of window */op=wnext;len-=op;do{output[_out++]=s_window[from++];}while(--op);from=_out-dist;/* rest from output */from_source=output;}}}else{/* contiguous in window */from+=wnext-op;if(op<len){/* some from window */len-=op;do{output[_out++]=s_window[from++];}while(--op);from=_out-dist;/* rest from output */from_source=output;}}while(len>2){output[_out++]=from_source[from++];output[_out++]=from_source[from++];output[_out++]=from_source[from++];len-=3;}if(len){output[_out++]=from_source[from++];if(len>1){output[_out++]=from_source[from++];}}}else{from=_out-dist;/* copy direct from output */do{/* minimum length is three */output[_out++]=output[from++];output[_out++]=output[from++];output[_out++]=output[from++];len-=3;}while(len>2);if(len){output[_out++]=output[from++];if(len>1){output[_out++]=output[from++];}}}}else if((op&64)===0){/* 2nd level distance code */here=dcode[(here&0xffff/*here.val*/)+(hold&(1<<op)-1)];continue dodist;}else{strm.msg='invalid distance code';state.mode=BAD;break top;}break;// need to emulate goto via \"continue\"\n}}else if((op&64)===0){/* 2nd level length code */here=lcode[(here&0xffff/*here.val*/)+(hold&(1<<op)-1)];continue dolen;}else if(op&32){/* end-of-block */ //Tracevv((stderr, \"inflate:         end of block\\n\"));\nstate.mode=TYPE;break top;}else{strm.msg='invalid literal/length code';state.mode=BAD;break top;}break;// need to emulate goto via \"continue\"\n}}while(_in<last&&_out<end);/* return unused bytes (on entry, bits < 8, so in won't go too far back) */len=bits>>3;_in-=len;bits-=len<<3;hold&=(1<<bits)-1;/* update state and return */strm.next_in=_in;strm.next_out=_out;strm.avail_in=_in<last?5+(last-_in):5-(_in-last);strm.avail_out=_out<end?257+(end-_out):257-(_out-end);state.hold=hold;state.bits=bits;return;};},{}],49:[function(require,module,exports){'use strict';// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nvar utils=require('../utils/common');var adler32=require('./adler32');var crc32=require('./crc32');var inflate_fast=require('./inffast');var inflate_table=require('./inftrees');var CODES=0;var LENS=1;var DISTS=2;/* Public constants ==========================================================*/ /* ===========================================================================*/ /* Allowed flush values; see deflate() and inflate() below for details */ //var Z_NO_FLUSH      = 0;\n//var Z_PARTIAL_FLUSH = 1;\n//var Z_SYNC_FLUSH    = 2;\n//var Z_FULL_FLUSH    = 3;\nvar Z_FINISH=4;var Z_BLOCK=5;var Z_TREES=6;/* Return codes for the compression/decompression functions. Negative values\r\n     * are errors, positive values are used for special but normal events.\r\n     */var Z_OK=0;var Z_STREAM_END=1;var Z_NEED_DICT=2;//var Z_ERRNO         = -1;\nvar Z_STREAM_ERROR=-2;var Z_DATA_ERROR=-3;var Z_MEM_ERROR=-4;var Z_BUF_ERROR=-5;//var Z_VERSION_ERROR = -6;\n/* The deflate compression method */var Z_DEFLATED=8;/* STATES ====================================================================*/ /* ===========================================================================*/var HEAD=1;/* i: waiting for magic header */var FLAGS=2;/* i: waiting for method and flags (gzip) */var TIME=3;/* i: waiting for modification time (gzip) */var OS=4;/* i: waiting for extra flags and operating system (gzip) */var EXLEN=5;/* i: waiting for extra length (gzip) */var EXTRA=6;/* i: waiting for extra bytes (gzip) */var NAME=7;/* i: waiting for end of file name (gzip) */var COMMENT=8;/* i: waiting for end of comment (gzip) */var HCRC=9;/* i: waiting for header crc (gzip) */var DICTID=10;/* i: waiting for dictionary check value */var DICT=11;/* waiting for inflateSetDictionary() call */var TYPE=12;/* i: waiting for type bits, including last-flag bit */var TYPEDO=13;/* i: same, but skip check to exit inflate on new block */var STORED=14;/* i: waiting for stored size (length and complement) */var COPY_=15;/* i/o: same as COPY below, but only first time in */var COPY=16;/* i/o: waiting for input or output to copy stored block */var TABLE=17;/* i: waiting for dynamic block table lengths */var LENLENS=18;/* i: waiting for code length code lengths */var CODELENS=19;/* i: waiting for length/lit and distance code lengths */var LEN_=20;/* i: same as LEN below, but only first time in */var LEN=21;/* i: waiting for length/lit/eob code */var LENEXT=22;/* i: waiting for length extra bits */var DIST=23;/* i: waiting for distance code */var DISTEXT=24;/* i: waiting for distance extra bits */var MATCH=25;/* o: waiting for output space to copy string */var LIT=26;/* o: waiting for output space to write literal */var CHECK=27;/* i: waiting for 32-bit check value */var LENGTH=28;/* i: waiting for 32-bit length (gzip) */var DONE=29;/* finished check, done -- remain here until reset */var BAD=30;/* got a data error -- remain here until reset */var MEM=31;/* got an inflate() memory error -- remain here until reset */var SYNC=32;/* looking for synchronization bytes to restart inflate() */ /* ===========================================================================*/var ENOUGH_LENS=852;var ENOUGH_DISTS=592;//var ENOUGH =  (ENOUGH_LENS+ENOUGH_DISTS);\nvar MAX_WBITS=15;/* 32K LZ77 window */var DEF_WBITS=MAX_WBITS;function zswap32(q){return(q>>>24&0xff)+(q>>>8&0xff00)+((q&0xff00)<<8)+((q&0xff)<<24);}function InflateState(){this.mode=0;/* current inflate mode */this.last=false;/* true if processing last block */this.wrap=0;/* bit 0 true for zlib, bit 1 true for gzip */this.havedict=false;/* true if dictionary provided */this.flags=0;/* gzip header method and flags (0 if zlib) */this.dmax=0;/* zlib header max distance (INFLATE_STRICT) */this.check=0;/* protected copy of check value */this.total=0;/* protected copy of output count */ // TODO: may be {}\nthis.head=null;/* where to save gzip header information */ /* sliding window */this.wbits=0;/* log base 2 of requested window size */this.wsize=0;/* window size or zero if not using window */this.whave=0;/* valid bytes in the window */this.wnext=0;/* window write index */this.window=null;/* allocated sliding window, if needed */ /* bit accumulator */this.hold=0;/* input bit accumulator */this.bits=0;/* number of bits in \"in\" */ /* for string and stored block copying */this.length=0;/* literal or length of data to copy */this.offset=0;/* distance back to copy string from */ /* for table and code decoding */this.extra=0;/* extra bits needed */ /* fixed and dynamic code tables */this.lencode=null;/* starting table for length/literal codes */this.distcode=null;/* starting table for distance codes */this.lenbits=0;/* index bits for lencode */this.distbits=0;/* index bits for distcode */ /* dynamic table building */this.ncode=0;/* number of code length code lengths */this.nlen=0;/* number of length code lengths */this.ndist=0;/* number of distance code lengths */this.have=0;/* number of code lengths in lens[] */this.next=null;/* next available space in codes[] */this.lens=new utils.Buf16(320);/* temporary storage for code lengths */this.work=new utils.Buf16(288);/* work area for code table building */ /*\r\n       because we don't have pointers in js, we use lencode and distcode directly\r\n       as buffers so we don't need codes\r\n      */ //this.codes = new utils.Buf32(ENOUGH);       /* space for code tables */\nthis.lendyn=null;/* dynamic table for length/literal codes (JS specific) */this.distdyn=null;/* dynamic table for distance codes (JS specific) */this.sane=0;/* if false, allow invalid distance too far */this.back=0;/* bits back of last unprocessed length/lit */this.was=0;/* initial length of match */}function inflateResetKeep(strm){var state;if(!strm||!strm.state){return Z_STREAM_ERROR;}state=strm.state;strm.total_in=strm.total_out=state.total=0;strm.msg='';/*Z_NULL*/if(state.wrap){/* to support ill-conceived Java test suite */strm.adler=state.wrap&1;}state.mode=HEAD;state.last=0;state.havedict=0;state.dmax=32768;state.head=null/*Z_NULL*/;state.hold=0;state.bits=0;//state.lencode = state.distcode = state.next = state.codes;\nstate.lencode=state.lendyn=new utils.Buf32(ENOUGH_LENS);state.distcode=state.distdyn=new utils.Buf32(ENOUGH_DISTS);state.sane=1;state.back=-1;//Tracev((stderr, \"inflate: reset\\n\"));\nreturn Z_OK;}function inflateReset(strm){var state;if(!strm||!strm.state){return Z_STREAM_ERROR;}state=strm.state;state.wsize=0;state.whave=0;state.wnext=0;return inflateResetKeep(strm);}function inflateReset2(strm,windowBits){var wrap;var state;/* get the state */if(!strm||!strm.state){return Z_STREAM_ERROR;}state=strm.state;/* extract wrap request from windowBits parameter */if(windowBits<0){wrap=0;windowBits=-windowBits;}else{wrap=(windowBits>>4)+1;if(windowBits<48){windowBits&=15;}}/* set number of window bits, free window if different */if(windowBits&&(windowBits<8||windowBits>15)){return Z_STREAM_ERROR;}if(state.window!==null&&state.wbits!==windowBits){state.window=null;}/* update state and reset the rest of it */state.wrap=wrap;state.wbits=windowBits;return inflateReset(strm);}function inflateInit2(strm,windowBits){var ret;var state;if(!strm){return Z_STREAM_ERROR;}//strm.msg = Z_NULL;                 /* in case we return an error */\nstate=new InflateState();//if (state === Z_NULL) return Z_MEM_ERROR;\n//Tracev((stderr, \"inflate: allocated\\n\"));\nstrm.state=state;state.window=null/*Z_NULL*/;ret=inflateReset2(strm,windowBits);if(ret!==Z_OK){strm.state=null/*Z_NULL*/;}return ret;}function inflateInit(strm){return inflateInit2(strm,DEF_WBITS);}/*\r\n     Return state with length and distance decoding tables and index sizes set to\r\n     fixed code decoding.  Normally this returns fixed tables from inffixed.h.\r\n     If BUILDFIXED is defined, then instead this routine builds the tables the\r\n     first time it's called, and returns those tables the first time and\r\n     thereafter.  This reduces the size of the code by about 2K bytes, in\r\n     exchange for a little execution time.  However, BUILDFIXED should not be\r\n     used for threaded applications, since the rewriting of the tables and virgin\r\n     may not be thread-safe.\r\n     */var virgin=true;var lenfix,distfix;// We have no pointers in JS, so keep tables separate\nfunction fixedtables(state){/* build fixed huffman tables if first call (may not be thread safe) */if(virgin){var sym;lenfix=new utils.Buf32(512);distfix=new utils.Buf32(32);/* literal/length table */sym=0;while(sym<144){state.lens[sym++]=8;}while(sym<256){state.lens[sym++]=9;}while(sym<280){state.lens[sym++]=7;}while(sym<288){state.lens[sym++]=8;}inflate_table(LENS,state.lens,0,288,lenfix,0,state.work,{bits:9});/* distance table */sym=0;while(sym<32){state.lens[sym++]=5;}inflate_table(DISTS,state.lens,0,32,distfix,0,state.work,{bits:5});/* do this just once */virgin=false;}state.lencode=lenfix;state.lenbits=9;state.distcode=distfix;state.distbits=5;}/*\r\n     Update the window with the last wsize (normally 32K) bytes written before\r\n     returning.  If window does not exist yet, create it.  This is only called\r\n     when a window is already in use, or when output has been written during this\r\n     inflate call, but the end of the deflate stream has not been reached yet.\r\n     It is also called to create a window for dictionary data when a dictionary\r\n     is loaded.\r\n    \r\n     Providing output buffers larger than 32K to inflate() should provide a speed\r\n     advantage, since only the last 32K of output is copied to the sliding window\r\n     upon return from inflate(), and since all distances after the first 32K of\r\n     output will fall in the output data, making match copies simpler and faster.\r\n     The advantage may be dependent on the size of the processor's data caches.\r\n     */function updatewindow(strm,src,end,copy){var dist;var state=strm.state;/* if it hasn't been done already, allocate space for the window */if(state.window===null){state.wsize=1<<state.wbits;state.wnext=0;state.whave=0;state.window=new utils.Buf8(state.wsize);}/* copy state->wsize or less output bytes into the circular window */if(copy>=state.wsize){utils.arraySet(state.window,src,end-state.wsize,state.wsize,0);state.wnext=0;state.whave=state.wsize;}else{dist=state.wsize-state.wnext;if(dist>copy){dist=copy;}//zmemcpy(state->window + state->wnext, end - copy, dist);\nutils.arraySet(state.window,src,end-copy,dist,state.wnext);copy-=dist;if(copy){//zmemcpy(state->window, end - copy, copy);\nutils.arraySet(state.window,src,end-copy,copy,0);state.wnext=copy;state.whave=state.wsize;}else{state.wnext+=dist;if(state.wnext===state.wsize){state.wnext=0;}if(state.whave<state.wsize){state.whave+=dist;}}}return 0;}function inflate(strm,flush){var state;var input,output;// input/output buffers\nvar next;/* next input INDEX */var put;/* next output INDEX */var have,left;/* available input and output */var hold;/* bit buffer */var bits;/* bits in bit buffer */var _in,_out;/* save starting available input and output */var copy;/* number of stored or match bytes to copy */var from;/* where to copy match bytes from */var from_source;var here=0;/* current decoding table entry */var here_bits,here_op,here_val;// paked \"here\" denormalized (JS specific)\n//var last;                   /* parent table entry */\nvar last_bits,last_op,last_val;// paked \"last\" denormalized (JS specific)\nvar len;/* length to copy for repeats, bits to drop */var ret;/* return code */var hbuf=new utils.Buf8(4);/* buffer for gzip header crc calculation */var opts;var n;// temporary var for NEED_BITS\nvar order=/* permutation of code lengths */[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!strm||!strm.state||!strm.output||!strm.input&&strm.avail_in!==0){return Z_STREAM_ERROR;}state=strm.state;if(state.mode===TYPE){state.mode=TYPEDO;}/* skip check */ //--- LOAD() ---\nput=strm.next_out;output=strm.output;left=strm.avail_out;next=strm.next_in;input=strm.input;have=strm.avail_in;hold=state.hold;bits=state.bits;//---\n_in=have;_out=left;ret=Z_OK;inf_leave:// goto emulation\nfor(;;){switch(state.mode){case HEAD:if(state.wrap===0){state.mode=TYPEDO;break;}//=== NEEDBITS(16);\nwhile(bits<16){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nif(state.wrap&2&&hold===0x8b1f){/* gzip header */state.check=0/*crc32(0L, Z_NULL, 0)*/;//=== CRC2(state.check, hold);\nhbuf[0]=hold&0xff;hbuf[1]=hold>>>8&0xff;state.check=crc32(state.check,hbuf,2,0);//===//\n//=== INITBITS();\nhold=0;bits=0;//===//\nstate.mode=FLAGS;break;}state.flags=0;/* expect zlib header */if(state.head){state.head.done=false;}if(!(state.wrap&1)||/* check if zlib header allowed */(((hold&0xff/*BITS(8)*/)<<8)+(hold>>8))%31){strm.msg='incorrect header check';state.mode=BAD;break;}if((hold&0x0f/*BITS(4)*/)!==Z_DEFLATED){strm.msg='unknown compression method';state.mode=BAD;break;}//--- DROPBITS(4) ---//\nhold>>>=4;bits-=4;//---//\nlen=(hold&0x0f/*BITS(4)*/)+8;if(state.wbits===0){state.wbits=len;}else if(len>state.wbits){strm.msg='invalid window size';state.mode=BAD;break;}state.dmax=1<<len;//Tracev((stderr, \"inflate:   zlib header ok\\n\"));\nstrm.adler=state.check=1/*adler32(0L, Z_NULL, 0)*/;state.mode=hold&0x200?DICTID:TYPE;//=== INITBITS();\nhold=0;bits=0;//===//\nbreak;case FLAGS://=== NEEDBITS(16); */\nwhile(bits<16){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstate.flags=hold;if((state.flags&0xff)!==Z_DEFLATED){strm.msg='unknown compression method';state.mode=BAD;break;}if(state.flags&0xe000){strm.msg='unknown header flags set';state.mode=BAD;break;}if(state.head){state.head.text=hold>>8&1;}if(state.flags&0x0200){//=== CRC2(state.check, hold);\nhbuf[0]=hold&0xff;hbuf[1]=hold>>>8&0xff;state.check=crc32(state.check,hbuf,2,0);//===//\n}//=== INITBITS();\nhold=0;bits=0;//===//\nstate.mode=TIME;/* falls through */case TIME://=== NEEDBITS(32); */\nwhile(bits<32){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nif(state.head){state.head.time=hold;}if(state.flags&0x0200){//=== CRC4(state.check, hold)\nhbuf[0]=hold&0xff;hbuf[1]=hold>>>8&0xff;hbuf[2]=hold>>>16&0xff;hbuf[3]=hold>>>24&0xff;state.check=crc32(state.check,hbuf,4,0);//===\n}//=== INITBITS();\nhold=0;bits=0;//===//\nstate.mode=OS;/* falls through */case OS://=== NEEDBITS(16); */\nwhile(bits<16){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nif(state.head){state.head.xflags=hold&0xff;state.head.os=hold>>8;}if(state.flags&0x0200){//=== CRC2(state.check, hold);\nhbuf[0]=hold&0xff;hbuf[1]=hold>>>8&0xff;state.check=crc32(state.check,hbuf,2,0);//===//\n}//=== INITBITS();\nhold=0;bits=0;//===//\nstate.mode=EXLEN;/* falls through */case EXLEN:if(state.flags&0x0400){//=== NEEDBITS(16); */\nwhile(bits<16){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstate.length=hold;if(state.head){state.head.extra_len=hold;}if(state.flags&0x0200){//=== CRC2(state.check, hold);\nhbuf[0]=hold&0xff;hbuf[1]=hold>>>8&0xff;state.check=crc32(state.check,hbuf,2,0);//===//\n}//=== INITBITS();\nhold=0;bits=0;//===//\n}else if(state.head){state.head.extra=null/*Z_NULL*/;}state.mode=EXTRA;/* falls through */case EXTRA:if(state.flags&0x0400){copy=state.length;if(copy>have){copy=have;}if(copy){if(state.head){len=state.head.extra_len-state.length;if(!state.head.extra){// Use untyped array for more conveniend processing later\nstate.head.extra=new Array(state.head.extra_len);}utils.arraySet(state.head.extra,input,next,// extra field is limited to 65536 bytes\n// - no need for additional size check\ncopy,/*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/len);//zmemcpy(state.head.extra + len, next,\n//        len + copy > state.head.extra_max ?\n//        state.head.extra_max - len : copy);\n}if(state.flags&0x0200){state.check=crc32(state.check,input,copy,next);}have-=copy;next+=copy;state.length-=copy;}if(state.length){break inf_leave;}}state.length=0;state.mode=NAME;/* falls through */case NAME:if(state.flags&0x0800){if(have===0){break inf_leave;}copy=0;do{// TODO: 2 or 1 bytes?\nlen=input[next+copy++];/* use constant limit because in js we should not preallocate memory */if(state.head&&len&&state.length<65536/*state.head.name_max*/){state.head.name+=String.fromCharCode(len);}}while(len&&copy<have);if(state.flags&0x0200){state.check=crc32(state.check,input,copy,next);}have-=copy;next+=copy;if(len){break inf_leave;}}else if(state.head){state.head.name=null;}state.length=0;state.mode=COMMENT;/* falls through */case COMMENT:if(state.flags&0x1000){if(have===0){break inf_leave;}copy=0;do{len=input[next+copy++];/* use constant limit because in js we should not preallocate memory */if(state.head&&len&&state.length<65536/*state.head.comm_max*/){state.head.comment+=String.fromCharCode(len);}}while(len&&copy<have);if(state.flags&0x0200){state.check=crc32(state.check,input,copy,next);}have-=copy;next+=copy;if(len){break inf_leave;}}else if(state.head){state.head.comment=null;}state.mode=HCRC;/* falls through */case HCRC:if(state.flags&0x0200){//=== NEEDBITS(16); */\nwhile(bits<16){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nif(hold!==(state.check&0xffff)){strm.msg='header crc mismatch';state.mode=BAD;break;}//=== INITBITS();\nhold=0;bits=0;//===//\n}if(state.head){state.head.hcrc=state.flags>>9&1;state.head.done=true;}strm.adler=state.check=0;state.mode=TYPE;break;case DICTID://=== NEEDBITS(32); */\nwhile(bits<32){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstrm.adler=state.check=zswap32(hold);//=== INITBITS();\nhold=0;bits=0;//===//\nstate.mode=DICT;/* falls through */case DICT:if(state.havedict===0){//--- RESTORE() ---\nstrm.next_out=put;strm.avail_out=left;strm.next_in=next;strm.avail_in=have;state.hold=hold;state.bits=bits;//---\nreturn Z_NEED_DICT;}strm.adler=state.check=1/*adler32(0L, Z_NULL, 0)*/;state.mode=TYPE;/* falls through */case TYPE:if(flush===Z_BLOCK||flush===Z_TREES){break inf_leave;}/* falls through */case TYPEDO:if(state.last){//--- BYTEBITS() ---//\nhold>>>=bits&7;bits-=bits&7;//---//\nstate.mode=CHECK;break;}//=== NEEDBITS(3); */\nwhile(bits<3){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstate.last=hold&0x01/*BITS(1)*/;//--- DROPBITS(1) ---//\nhold>>>=1;bits-=1;//---//\nswitch(hold&0x03/*BITS(2)*/){case 0:/* stored block */ //Tracev((stderr, \"inflate:     stored block%s\\n\",\n//        state.last ? \" (last)\" : \"\"));\nstate.mode=STORED;break;case 1:/* fixed block */fixedtables(state);//Tracev((stderr, \"inflate:     fixed codes block%s\\n\",\n//        state.last ? \" (last)\" : \"\"));\nstate.mode=LEN_;/* decode codes */if(flush===Z_TREES){//--- DROPBITS(2) ---//\nhold>>>=2;bits-=2;//---//\nbreak inf_leave;}break;case 2:/* dynamic block */ //Tracev((stderr, \"inflate:     dynamic codes block%s\\n\",\n//        state.last ? \" (last)\" : \"\"));\nstate.mode=TABLE;break;case 3:strm.msg='invalid block type';state.mode=BAD;}//--- DROPBITS(2) ---//\nhold>>>=2;bits-=2;//---//\nbreak;case STORED://--- BYTEBITS() ---// /* go to byte boundary */\nhold>>>=bits&7;bits-=bits&7;//---//\n//=== NEEDBITS(32); */\nwhile(bits<32){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nif((hold&0xffff)!==(hold>>>16^0xffff)){strm.msg='invalid stored block lengths';state.mode=BAD;break;}state.length=hold&0xffff;//Tracev((stderr, \"inflate:       stored length %u\\n\",\n//        state.length));\n//=== INITBITS();\nhold=0;bits=0;//===//\nstate.mode=COPY_;if(flush===Z_TREES){break inf_leave;}/* falls through */case COPY_:state.mode=COPY;/* falls through */case COPY:copy=state.length;if(copy){if(copy>have){copy=have;}if(copy>left){copy=left;}if(copy===0){break inf_leave;}//--- zmemcpy(put, next, copy); ---\nutils.arraySet(output,input,next,copy,put);//---//\nhave-=copy;next+=copy;left-=copy;put+=copy;state.length-=copy;break;}//Tracev((stderr, \"inflate:       stored end\\n\"));\nstate.mode=TYPE;break;case TABLE://=== NEEDBITS(14); */\nwhile(bits<14){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstate.nlen=(hold&0x1f/*BITS(5)*/)+257;//--- DROPBITS(5) ---//\nhold>>>=5;bits-=5;//---//\nstate.ndist=(hold&0x1f/*BITS(5)*/)+1;//--- DROPBITS(5) ---//\nhold>>>=5;bits-=5;//---//\nstate.ncode=(hold&0x0f/*BITS(4)*/)+4;//--- DROPBITS(4) ---//\nhold>>>=4;bits-=4;//---//\n//#ifndef PKZIP_BUG_WORKAROUND\nif(state.nlen>286||state.ndist>30){strm.msg='too many length or distance symbols';state.mode=BAD;break;}//#endif\n//Tracev((stderr, \"inflate:       table sizes ok\\n\"));\nstate.have=0;state.mode=LENLENS;/* falls through */case LENLENS:while(state.have<state.ncode){//=== NEEDBITS(3);\nwhile(bits<3){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstate.lens[order[state.have++]]=hold&0x07;//BITS(3);\n//--- DROPBITS(3) ---//\nhold>>>=3;bits-=3;//---//\n}while(state.have<19){state.lens[order[state.have++]]=0;}// We have separate tables & no pointers. 2 commented lines below not needed.\n//state.next = state.codes;\n//state.lencode = state.next;\n// Switch to use dynamic table\nstate.lencode=state.lendyn;state.lenbits=7;opts={bits:state.lenbits};ret=inflate_table(CODES,state.lens,0,19,state.lencode,0,state.work,opts);state.lenbits=opts.bits;if(ret){strm.msg='invalid code lengths set';state.mode=BAD;break;}//Tracev((stderr, \"inflate:       code lengths ok\\n\"));\nstate.have=0;state.mode=CODELENS;/* falls through */case CODELENS:while(state.have<state.nlen+state.ndist){for(;;){here=state.lencode[hold&(1<<state.lenbits)-1];/*BITS(state.lenbits)*/here_bits=here>>>24;here_op=here>>>16&0xff;here_val=here&0xffff;if(here_bits<=bits){break;}//--- PULLBYTE() ---//\nif(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;//---//\n}if(here_val<16){//--- DROPBITS(here.bits) ---//\nhold>>>=here_bits;bits-=here_bits;//---//\nstate.lens[state.have++]=here_val;}else{if(here_val===16){//=== NEEDBITS(here.bits + 2);\nn=here_bits+2;while(bits<n){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\n//--- DROPBITS(here.bits) ---//\nhold>>>=here_bits;bits-=here_bits;//---//\nif(state.have===0){strm.msg='invalid bit length repeat';state.mode=BAD;break;}len=state.lens[state.have-1];copy=3+(hold&0x03);//BITS(2);\n//--- DROPBITS(2) ---//\nhold>>>=2;bits-=2;//---//\n}else if(here_val===17){//=== NEEDBITS(here.bits + 3);\nn=here_bits+3;while(bits<n){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\n//--- DROPBITS(here.bits) ---//\nhold>>>=here_bits;bits-=here_bits;//---//\nlen=0;copy=3+(hold&0x07);//BITS(3);\n//--- DROPBITS(3) ---//\nhold>>>=3;bits-=3;//---//\n}else{//=== NEEDBITS(here.bits + 7);\nn=here_bits+7;while(bits<n){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\n//--- DROPBITS(here.bits) ---//\nhold>>>=here_bits;bits-=here_bits;//---//\nlen=0;copy=11+(hold&0x7f);//BITS(7);\n//--- DROPBITS(7) ---//\nhold>>>=7;bits-=7;//---//\n}if(state.have+copy>state.nlen+state.ndist){strm.msg='invalid bit length repeat';state.mode=BAD;break;}while(copy--){state.lens[state.have++]=len;}}}/* handle error breaks in while */if(state.mode===BAD){break;}/* check for end-of-block code (better have one) */if(state.lens[256]===0){strm.msg='invalid code -- missing end-of-block';state.mode=BAD;break;}/* build code tables -- note: do not change the lenbits or distbits\r\n             values here (9 and 6) without reading the comments in inftrees.h\r\n             concerning the ENOUGH constants, which depend on those values */state.lenbits=9;opts={bits:state.lenbits};ret=inflate_table(LENS,state.lens,0,state.nlen,state.lencode,0,state.work,opts);// We have separate tables & no pointers. 2 commented lines below not needed.\n// state.next_index = opts.table_index;\nstate.lenbits=opts.bits;// state.lencode = state.next;\nif(ret){strm.msg='invalid literal/lengths set';state.mode=BAD;break;}state.distbits=6;//state.distcode.copy(state.codes);\n// Switch to use dynamic table\nstate.distcode=state.distdyn;opts={bits:state.distbits};ret=inflate_table(DISTS,state.lens,state.nlen,state.ndist,state.distcode,0,state.work,opts);// We have separate tables & no pointers. 2 commented lines below not needed.\n// state.next_index = opts.table_index;\nstate.distbits=opts.bits;// state.distcode = state.next;\nif(ret){strm.msg='invalid distances set';state.mode=BAD;break;}//Tracev((stderr, 'inflate:       codes ok\\n'));\nstate.mode=LEN_;if(flush===Z_TREES){break inf_leave;}/* falls through */case LEN_:state.mode=LEN;/* falls through */case LEN:if(have>=6&&left>=258){//--- RESTORE() ---\nstrm.next_out=put;strm.avail_out=left;strm.next_in=next;strm.avail_in=have;state.hold=hold;state.bits=bits;//---\ninflate_fast(strm,_out);//--- LOAD() ---\nput=strm.next_out;output=strm.output;left=strm.avail_out;next=strm.next_in;input=strm.input;have=strm.avail_in;hold=state.hold;bits=state.bits;//---\nif(state.mode===TYPE){state.back=-1;}break;}state.back=0;for(;;){here=state.lencode[hold&(1<<state.lenbits)-1];/*BITS(state.lenbits)*/here_bits=here>>>24;here_op=here>>>16&0xff;here_val=here&0xffff;if(here_bits<=bits){break;}//--- PULLBYTE() ---//\nif(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;//---//\n}if(here_op&&(here_op&0xf0)===0){last_bits=here_bits;last_op=here_op;last_val=here_val;for(;;){here=state.lencode[last_val+((hold&(1<<last_bits+last_op)-1/*BITS(last.bits + last.op)*/)>>last_bits)];here_bits=here>>>24;here_op=here>>>16&0xff;here_val=here&0xffff;if(last_bits+here_bits<=bits){break;}//--- PULLBYTE() ---//\nif(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;//---//\n}//--- DROPBITS(last.bits) ---//\nhold>>>=last_bits;bits-=last_bits;//---//\nstate.back+=last_bits;}//--- DROPBITS(here.bits) ---//\nhold>>>=here_bits;bits-=here_bits;//---//\nstate.back+=here_bits;state.length=here_val;if(here_op===0){//Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n//        \"inflate:         literal '%c'\\n\" :\n//        \"inflate:         literal 0x%02x\\n\", here.val));\nstate.mode=LIT;break;}if(here_op&32){//Tracevv((stderr, \"inflate:         end of block\\n\"));\nstate.back=-1;state.mode=TYPE;break;}if(here_op&64){strm.msg='invalid literal/length code';state.mode=BAD;break;}state.extra=here_op&15;state.mode=LENEXT;/* falls through */case LENEXT:if(state.extra){//=== NEEDBITS(state.extra);\nn=state.extra;while(bits<n){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstate.length+=hold&(1<<state.extra)-1/*BITS(state.extra)*/;//--- DROPBITS(state.extra) ---//\nhold>>>=state.extra;bits-=state.extra;//---//\nstate.back+=state.extra;}//Tracevv((stderr, \"inflate:         length %u\\n\", state.length));\nstate.was=state.length;state.mode=DIST;/* falls through */case DIST:for(;;){here=state.distcode[hold&(1<<state.distbits)-1];/*BITS(state.distbits)*/here_bits=here>>>24;here_op=here>>>16&0xff;here_val=here&0xffff;if(here_bits<=bits){break;}//--- PULLBYTE() ---//\nif(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;//---//\n}if((here_op&0xf0)===0){last_bits=here_bits;last_op=here_op;last_val=here_val;for(;;){here=state.distcode[last_val+((hold&(1<<last_bits+last_op)-1/*BITS(last.bits + last.op)*/)>>last_bits)];here_bits=here>>>24;here_op=here>>>16&0xff;here_val=here&0xffff;if(last_bits+here_bits<=bits){break;}//--- PULLBYTE() ---//\nif(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;//---//\n}//--- DROPBITS(last.bits) ---//\nhold>>>=last_bits;bits-=last_bits;//---//\nstate.back+=last_bits;}//--- DROPBITS(here.bits) ---//\nhold>>>=here_bits;bits-=here_bits;//---//\nstate.back+=here_bits;if(here_op&64){strm.msg='invalid distance code';state.mode=BAD;break;}state.offset=here_val;state.extra=here_op&15;state.mode=DISTEXT;/* falls through */case DISTEXT:if(state.extra){//=== NEEDBITS(state.extra);\nn=state.extra;while(bits<n){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstate.offset+=hold&(1<<state.extra)-1/*BITS(state.extra)*/;//--- DROPBITS(state.extra) ---//\nhold>>>=state.extra;bits-=state.extra;//---//\nstate.back+=state.extra;}//#ifdef INFLATE_STRICT\nif(state.offset>state.dmax){strm.msg='invalid distance too far back';state.mode=BAD;break;}//#endif\n//Tracevv((stderr, \"inflate:         distance %u\\n\", state.offset));\nstate.mode=MATCH;/* falls through */case MATCH:if(left===0){break inf_leave;}copy=_out-left;if(state.offset>copy){/* copy from window */copy=state.offset-copy;if(copy>state.whave){if(state.sane){strm.msg='invalid distance too far back';state.mode=BAD;break;}// (!) This block is disabled in zlib defailts,\n// don't enable it for binary compatibility\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n//          Trace((stderr, \"inflate.c too far\\n\"));\n//          copy -= state.whave;\n//          if (copy > state.length) { copy = state.length; }\n//          if (copy > left) { copy = left; }\n//          left -= copy;\n//          state.length -= copy;\n//          do {\n//            output[put++] = 0;\n//          } while (--copy);\n//          if (state.length === 0) { state.mode = LEN; }\n//          break;\n//#endif\n}if(copy>state.wnext){copy-=state.wnext;from=state.wsize-copy;}else{from=state.wnext-copy;}if(copy>state.length){copy=state.length;}from_source=state.window;}else{/* copy from output */from_source=output;from=put-state.offset;copy=state.length;}if(copy>left){copy=left;}left-=copy;state.length-=copy;do{output[put++]=from_source[from++];}while(--copy);if(state.length===0){state.mode=LEN;}break;case LIT:if(left===0){break inf_leave;}output[put++]=state.length;left--;state.mode=LEN;break;case CHECK:if(state.wrap){//=== NEEDBITS(32);\nwhile(bits<32){if(have===0){break inf_leave;}have--;// Use '|' insdead of '+' to make sure that result is signed\nhold|=input[next++]<<bits;bits+=8;}//===//\n_out-=left;strm.total_out+=_out;state.total+=_out;if(_out){strm.adler=state.check=/*UPDATE(state.check, put - _out, _out);*/state.flags?crc32(state.check,output,_out,put-_out):adler32(state.check,output,_out,put-_out);}_out=left;// NB: crc32 stored as signed 32-bit int, zswap32 returns signed too\nif((state.flags?hold:zswap32(hold))!==state.check){strm.msg='incorrect data check';state.mode=BAD;break;}//=== INITBITS();\nhold=0;bits=0;//===//\n//Tracev((stderr, \"inflate:   check matches trailer\\n\"));\n}state.mode=LENGTH;/* falls through */case LENGTH:if(state.wrap&&state.flags){//=== NEEDBITS(32);\nwhile(bits<32){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nif(hold!==(state.total&0xffffffff)){strm.msg='incorrect length check';state.mode=BAD;break;}//=== INITBITS();\nhold=0;bits=0;//===//\n//Tracev((stderr, \"inflate:   length matches trailer\\n\"));\n}state.mode=DONE;/* falls through */case DONE:ret=Z_STREAM_END;break inf_leave;case BAD:ret=Z_DATA_ERROR;break inf_leave;case MEM:return Z_MEM_ERROR;case SYNC:/* falls through */default:return Z_STREAM_ERROR;}}// inf_leave <- here is real place for \"goto inf_leave\", emulated via \"break inf_leave\"\n/*\r\n         Return from inflate(), updating the total counts and the check value.\r\n         If there was no progress during the inflate() call, return a buffer\r\n         error.  Call updatewindow() to create and/or update the window state.\r\n         Note: a memory error from inflate() is non-recoverable.\r\n       */ //--- RESTORE() ---\nstrm.next_out=put;strm.avail_out=left;strm.next_in=next;strm.avail_in=have;state.hold=hold;state.bits=bits;//---\nif(state.wsize||_out!==strm.avail_out&&state.mode<BAD&&(state.mode<CHECK||flush!==Z_FINISH)){if(updatewindow(strm,strm.output,strm.next_out,_out-strm.avail_out)){state.mode=MEM;return Z_MEM_ERROR;}}_in-=strm.avail_in;_out-=strm.avail_out;strm.total_in+=_in;strm.total_out+=_out;state.total+=_out;if(state.wrap&&_out){strm.adler=state.check=/*UPDATE(state.check, strm.next_out - _out, _out);*/state.flags?crc32(state.check,output,_out,strm.next_out-_out):adler32(state.check,output,_out,strm.next_out-_out);}strm.data_type=state.bits+(state.last?64:0)+(state.mode===TYPE?128:0)+(state.mode===LEN_||state.mode===COPY_?256:0);if((_in===0&&_out===0||flush===Z_FINISH)&&ret===Z_OK){ret=Z_BUF_ERROR;}return ret;}function inflateEnd(strm){if(!strm||!strm.state/*|| strm->zfree == (free_func)0*/){return Z_STREAM_ERROR;}var state=strm.state;if(state.window){state.window=null;}strm.state=null;return Z_OK;}function inflateGetHeader(strm,head){var state;/* check state */if(!strm||!strm.state){return Z_STREAM_ERROR;}state=strm.state;if((state.wrap&2)===0){return Z_STREAM_ERROR;}/* save header structure */state.head=head;head.done=false;return Z_OK;}function inflateSetDictionary(strm,dictionary){var dictLength=dictionary.length;var state;var dictid;var ret;/* check state */if(!strm/* == Z_NULL */||!strm.state/* == Z_NULL */){return Z_STREAM_ERROR;}state=strm.state;if(state.wrap!==0&&state.mode!==DICT){return Z_STREAM_ERROR;}/* check for correct dictionary identifier */if(state.mode===DICT){dictid=1;/* adler32(0, null, 0)*/ /* dictid = adler32(dictid, dictionary, dictLength); */dictid=adler32(dictid,dictionary,dictLength,0);if(dictid!==state.check){return Z_DATA_ERROR;}}/* copy dictionary to window using updatewindow(), which will amend the\r\n       existing dictionary if appropriate */ret=updatewindow(strm,dictionary,dictLength,dictLength);if(ret){state.mode=MEM;return Z_MEM_ERROR;}state.havedict=1;// Tracev((stderr, \"inflate:   dictionary set\\n\"));\nreturn Z_OK;}exports.inflateReset=inflateReset;exports.inflateReset2=inflateReset2;exports.inflateResetKeep=inflateResetKeep;exports.inflateInit=inflateInit;exports.inflateInit2=inflateInit2;exports.inflate=inflate;exports.inflateEnd=inflateEnd;exports.inflateGetHeader=inflateGetHeader;exports.inflateSetDictionary=inflateSetDictionary;exports.inflateInfo='pako inflate (from Nodeca project)';/* Not implemented\r\n    exports.inflateCopy = inflateCopy;\r\n    exports.inflateGetDictionary = inflateGetDictionary;\r\n    exports.inflateMark = inflateMark;\r\n    exports.inflatePrime = inflatePrime;\r\n    exports.inflateSync = inflateSync;\r\n    exports.inflateSyncPoint = inflateSyncPoint;\r\n    exports.inflateUndermine = inflateUndermine;\r\n    */},{\"../utils/common\":41,\"./adler32\":43,\"./crc32\":45,\"./inffast\":48,\"./inftrees\":50}],50:[function(require,module,exports){'use strict';// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nvar utils=require('../utils/common');var MAXBITS=15;var ENOUGH_LENS=852;var ENOUGH_DISTS=592;//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\nvar CODES=0;var LENS=1;var DISTS=2;var lbase=[/* Length codes 257..285 base */3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0];var lext=[/* Length codes 257..285 extra */16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78];var dbase=[/* Distance codes 0..29 base */1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0];var dext=[/* Distance codes 0..29 extra */16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];module.exports=function inflate_table(type,lens,lens_index,codes,table,table_index,work,opts){var bits=opts.bits;//here = opts.here; /* table entry for duplication */\nvar len=0;/* a code's length in bits */var sym=0;/* index of code symbols */var min=0,max=0;/* minimum and maximum code lengths */var root=0;/* number of index bits for root table */var curr=0;/* number of index bits for current table */var drop=0;/* code bits to drop for sub-table */var left=0;/* number of prefix codes available */var used=0;/* code entries in table used */var huff=0;/* Huffman code */var incr;/* for incrementing code, index */var fill;/* index for replicating entries */var low;/* low bits for current root entry */var mask;/* mask for low root bits */var next;/* next available space in table */var base=null;/* base value table to use */var base_index=0;//  var shoextra;    /* extra bits table to use */\nvar end;/* use base and extra for symbol > end */var count=new utils.Buf16(MAXBITS+1);//[MAXBITS+1];    /* number of codes of each length */\nvar offs=new utils.Buf16(MAXBITS+1);//[MAXBITS+1];     /* offsets in table for each length */\nvar extra=null;var extra_index=0;var here_bits,here_op,here_val;/*\r\n       Process a set of code lengths to create a canonical Huffman code.  The\r\n       code lengths are lens[0..codes-1].  Each length corresponds to the\r\n       symbols 0..codes-1.  The Huffman code is generated by first sorting the\r\n       symbols by length from short to long, and retaining the symbol order\r\n       for codes with equal lengths.  Then the code starts with all zero bits\r\n       for the first code of the shortest length, and the codes are integer\r\n       increments for the same length, and zeros are appended as the length\r\n       increases.  For the deflate format, these bits are stored backwards\r\n       from their more natural integer increment ordering, and so when the\r\n       decoding tables are built in the large loop below, the integer codes\r\n       are incremented backwards.\r\n    \r\n       This routine assumes, but does not check, that all of the entries in\r\n       lens[] are in the range 0..MAXBITS.  The caller must assure this.\r\n       1..MAXBITS is interpreted as that code length.  zero means that that\r\n       symbol does not occur in this code.\r\n    \r\n       The codes are sorted by computing a count of codes for each length,\r\n       creating from that a table of starting indices for each length in the\r\n       sorted table, and then entering the symbols in order in the sorted\r\n       table.  The sorted table is work[], with that space being provided by\r\n       the caller.\r\n    \r\n       The length counts are used for other purposes as well, i.e. finding\r\n       the minimum and maximum length codes, determining if there are any\r\n       codes at all, checking for a valid set of lengths, and looking ahead\r\n       at length counts to determine sub-table sizes when building the\r\n       decoding tables.\r\n       */ /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */for(len=0;len<=MAXBITS;len++){count[len]=0;}for(sym=0;sym<codes;sym++){count[lens[lens_index+sym]]++;}/* bound code lengths, force root to be within code lengths */root=bits;for(max=MAXBITS;max>=1;max--){if(count[max]!==0){break;}}if(root>max){root=max;}if(max===0){/* no symbols to code at all */ //table.op[opts.table_index] = 64;  //here.op = (var char)64;    /* invalid code marker */\n//table.bits[opts.table_index] = 1;   //here.bits = (var char)1;\n//table.val[opts.table_index++] = 0;   //here.val = (var short)0;\ntable[table_index++]=1<<24|64<<16|0;//table.op[opts.table_index] = 64;\n//table.bits[opts.table_index] = 1;\n//table.val[opts.table_index++] = 0;\ntable[table_index++]=1<<24|64<<16|0;opts.bits=1;return 0;/* no symbols, but wait for decoding to report error */}for(min=1;min<max;min++){if(count[min]!==0){break;}}if(root<min){root=min;}/* check for an over-subscribed or incomplete set of lengths */left=1;for(len=1;len<=MAXBITS;len++){left<<=1;left-=count[len];if(left<0){return-1;}/* over-subscribed */}if(left>0&&(type===CODES||max!==1)){return-1;/* incomplete set */}/* generate offsets into symbol table for each length for sorting */offs[1]=0;for(len=1;len<MAXBITS;len++){offs[len+1]=offs[len]+count[len];}/* sort symbols by length, by symbol order within each length */for(sym=0;sym<codes;sym++){if(lens[lens_index+sym]!==0){work[offs[lens[lens_index+sym]]++]=sym;}}/*\r\n       Create and fill in decoding tables.  In this loop, the table being\r\n       filled is at next and has curr index bits.  The code being used is huff\r\n       with length len.  That code is converted to an index by dropping drop\r\n       bits off of the bottom.  For codes where len is less than drop + curr,\r\n       those top drop + curr - len bits are incremented through all values to\r\n       fill the table with replicated entries.\r\n    \r\n       root is the number of index bits for the root table.  When len exceeds\r\n       root, sub-tables are created pointed to by the root entry with an index\r\n       of the low root bits of huff.  This is saved in low to check for when a\r\n       new sub-table should be started.  drop is zero when the root table is\r\n       being filled, and drop is root when sub-tables are being filled.\r\n    \r\n       When a new sub-table is needed, it is necessary to look ahead in the\r\n       code lengths to determine what size sub-table is needed.  The length\r\n       counts are used for this, and so count[] is decremented as codes are\r\n       entered in the tables.\r\n    \r\n       used keeps track of how many table entries have been allocated from the\r\n       provided *table space.  It is checked for LENS and DIST tables against\r\n       the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in\r\n       the initial root table size constants.  See the comments in inftrees.h\r\n       for more information.\r\n    \r\n       sym increments through all symbols, and the loop terminates when\r\n       all codes of length max, i.e. all codes, have been processed.  This\r\n       routine permits incomplete codes, so another loop after this one fills\r\n       in the rest of the decoding tables with invalid code markers.\r\n       */ /* set up for code type */ // poor man optimization - use if-else instead of switch,\n// to avoid deopts in old v8\nif(type===CODES){base=extra=work;/* dummy value--not used */end=19;}else if(type===LENS){base=lbase;base_index-=257;extra=lext;extra_index-=257;end=256;}else{/* DISTS */base=dbase;extra=dext;end=-1;}/* initialize opts for loop */huff=0;/* starting code */sym=0;/* starting code symbol */len=min;/* starting code length */next=table_index;/* current table to fill in */curr=root;/* current table index bits */drop=0;/* current bits to drop from code for index */low=-1;/* trigger new sub-table when len > root */used=1<<root;/* use root table entries */mask=used-1;/* mask for comparing low */ /* check available table space */if(type===LENS&&used>ENOUGH_LENS||type===DISTS&&used>ENOUGH_DISTS){return 1;}/* process all codes and make table entries */for(;;){/* create table entry */here_bits=len-drop;if(work[sym]<end){here_op=0;here_val=work[sym];}else if(work[sym]>end){here_op=extra[extra_index+work[sym]];here_val=base[base_index+work[sym]];}else{here_op=32+64;/* end of block */here_val=0;}/* replicate for those indices with low len bits equal to huff */incr=1<<len-drop;fill=1<<curr;min=fill;/* save offset to next table */do{fill-=incr;table[next+(huff>>drop)+fill]=here_bits<<24|here_op<<16|here_val|0;}while(fill!==0);/* backwards increment the len-bit code huff */incr=1<<len-1;while(huff&incr){incr>>=1;}if(incr!==0){huff&=incr-1;huff+=incr;}else{huff=0;}/* go to next symbol, update count, len */sym++;if(--count[len]===0){if(len===max){break;}len=lens[lens_index+work[sym]];}/* create new sub-table if needed */if(len>root&&(huff&mask)!==low){/* if first time, transition to sub-tables */if(drop===0){drop=root;}/* increment past last table */next+=min;/* here min is 1 << curr */ /* determine length of next table */curr=len-drop;left=1<<curr;while(curr+drop<max){left-=count[curr+drop];if(left<=0){break;}curr++;left<<=1;}/* check for enough space */used+=1<<curr;if(type===LENS&&used>ENOUGH_LENS||type===DISTS&&used>ENOUGH_DISTS){return 1;}/* point entry in root table to sub-table */low=huff&mask;/*table.op[low] = curr;\r\n          table.bits[low] = root;\r\n          table.val[low] = next - opts.table_index;*/table[low]=root<<24|curr<<16|next-table_index|0;}}/* fill in remaining table entry if code is incomplete (guaranteed to have\r\n       at most one remaining entry, since if the code is incomplete, the\r\n       maximum code length that was allowed to get this far is one bit) */if(huff!==0){//table.op[next + huff] = 64;            /* invalid code marker */\n//table.bits[next + huff] = len - drop;\n//table.val[next + huff] = 0;\ntable[next+huff]=len-drop<<24|64<<16|0;}/* set return parameters */ //opts.table_index += used;\nopts.bits=root;return 0;};},{\"../utils/common\":41}],51:[function(require,module,exports){'use strict';// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nmodule.exports={2:'need dictionary',/* Z_NEED_DICT       2  */1:'stream end',/* Z_STREAM_END      1  */0:'',/* Z_OK              0  */'-1':'file error',/* Z_ERRNO         (-1) */'-2':'stream error',/* Z_STREAM_ERROR  (-2) */'-3':'data error',/* Z_DATA_ERROR    (-3) */'-4':'insufficient memory',/* Z_MEM_ERROR     (-4) */'-5':'buffer error',/* Z_BUF_ERROR     (-5) */'-6':'incompatible version'/* Z_VERSION_ERROR (-6) */};},{}],52:[function(require,module,exports){'use strict';// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nvar utils=require('../utils/common');/* Public constants ==========================================================*/ /* ===========================================================================*/ //var Z_FILTERED          = 1;\n//var Z_HUFFMAN_ONLY      = 2;\n//var Z_RLE               = 3;\nvar Z_FIXED=4;//var Z_DEFAULT_STRATEGY  = 0;\n/* Possible values of the data_type field (though see inflate()) */var Z_BINARY=0;var Z_TEXT=1;//var Z_ASCII             = 1; // = Z_TEXT\nvar Z_UNKNOWN=2;/*============================================================================*/function zero(buf){var len=buf.length;while(--len>=0){buf[len]=0;}}// From zutil.h\nvar STORED_BLOCK=0;var STATIC_TREES=1;var DYN_TREES=2;/* The three kinds of block type */var MIN_MATCH=3;var MAX_MATCH=258;/* The minimum and maximum match lengths */ // From deflate.h\n/* ===========================================================================\r\n     * Internal compression state.\r\n     */var LENGTH_CODES=29;/* number of length codes, not counting the special END_BLOCK code */var LITERALS=256;/* number of literal bytes 0..255 */var L_CODES=LITERALS+1+LENGTH_CODES;/* number of Literal or Length codes, including the END_BLOCK code */var D_CODES=30;/* number of distance codes */var BL_CODES=19;/* number of codes used to transfer the bit lengths */var HEAP_SIZE=2*L_CODES+1;/* maximum heap size */var MAX_BITS=15;/* All codes must not exceed MAX_BITS bits */var Buf_size=16;/* size of bit buffer in bi_buf */ /* ===========================================================================\r\n     * Constants\r\n     */var MAX_BL_BITS=7;/* Bit length codes must not exceed MAX_BL_BITS bits */var END_BLOCK=256;/* end of block literal code */var REP_3_6=16;/* repeat previous bit length 3-6 times (2 bits of repeat count) */var REPZ_3_10=17;/* repeat a zero length 3-10 times  (3 bits of repeat count) */var REPZ_11_138=18;/* repeat a zero length 11-138 times  (7 bits of repeat count) */ /* eslint-disable comma-spacing,array-bracket-spacing */var extra_lbits=/* extra bits for each length code */[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];var extra_dbits=/* extra bits for each distance code */[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];var extra_blbits=/* extra bits for each bit length code */[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];var bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];/* eslint-enable comma-spacing,array-bracket-spacing */ /* The lengths of the bit length codes are sent in order of decreasing\r\n     * probability, to avoid transmitting the lengths for unused bit length codes.\r\n     */ /* ===========================================================================\r\n     * Local data. These are initialized only once.\r\n     */ // We pre-fill arrays with 0 to avoid uninitialized gaps\nvar DIST_CODE_LEN=512;/* see definition of array dist_code below */ // !!!! Use flat array insdead of structure, Freq = i*2, Len = i*2+1\nvar static_ltree=new Array((L_CODES+2)*2);zero(static_ltree);/* The static literal tree. Since the bit lengths are imposed, there is no\r\n     * need for the L_CODES extra codes used during heap construction. However\r\n     * The codes 286 and 287 are needed to build a canonical tree (see _tr_init\r\n     * below).\r\n     */var static_dtree=new Array(D_CODES*2);zero(static_dtree);/* The static distance tree. (Actually a trivial tree since all codes use\r\n     * 5 bits.)\r\n     */var _dist_code=new Array(DIST_CODE_LEN);zero(_dist_code);/* Distance codes. The first 256 values correspond to the distances\r\n     * 3 .. 258, the last 256 values correspond to the top 8 bits of\r\n     * the 15 bit distances.\r\n     */var _length_code=new Array(MAX_MATCH-MIN_MATCH+1);zero(_length_code);/* length code for each normalized match length (0 == MIN_MATCH) */var base_length=new Array(LENGTH_CODES);zero(base_length);/* First normalized length for each code (0 = MIN_MATCH) */var base_dist=new Array(D_CODES);zero(base_dist);/* First normalized distance for each code (0 = distance of 1) */function StaticTreeDesc(static_tree,extra_bits,extra_base,elems,max_length){this.static_tree=static_tree;/* static tree or NULL */this.extra_bits=extra_bits;/* extra bits for each code or NULL */this.extra_base=extra_base;/* base index for extra_bits */this.elems=elems;/* max number of elements in the tree */this.max_length=max_length;/* max bit length for the codes */ // show if `static_tree` has data or dummy - needed for monomorphic objects\nthis.has_stree=static_tree&&static_tree.length;}var static_l_desc;var static_d_desc;var static_bl_desc;function TreeDesc(dyn_tree,stat_desc){this.dyn_tree=dyn_tree;/* the dynamic tree */this.max_code=0;/* largest code with non zero frequency */this.stat_desc=stat_desc;/* the corresponding static tree */}function d_code(dist){return dist<256?_dist_code[dist]:_dist_code[256+(dist>>>7)];}/* ===========================================================================\r\n     * Output a short LSB first on the stream.\r\n     * IN assertion: there is enough room in pendingBuf.\r\n     */function put_short(s,w){//    put_byte(s, (uch)((w) & 0xff));\n//    put_byte(s, (uch)((ush)(w) >> 8));\ns.pending_buf[s.pending++]=w&0xff;s.pending_buf[s.pending++]=w>>>8&0xff;}/* ===========================================================================\r\n     * Send a value on a given number of bits.\r\n     * IN assertion: length <= 16 and value fits in length bits.\r\n     */function send_bits(s,value,length){if(s.bi_valid>Buf_size-length){s.bi_buf|=value<<s.bi_valid&0xffff;put_short(s,s.bi_buf);s.bi_buf=value>>Buf_size-s.bi_valid;s.bi_valid+=length-Buf_size;}else{s.bi_buf|=value<<s.bi_valid&0xffff;s.bi_valid+=length;}}function send_code(s,c,tree){send_bits(s,tree[c*2]/*.Code*/,tree[c*2+1]/*.Len*/);}/* ===========================================================================\r\n     * Reverse the first len bits of a code, using straightforward code (a faster\r\n     * method would use a table)\r\n     * IN assertion: 1 <= len <= 15\r\n     */function bi_reverse(code,len){var res=0;do{res|=code&1;code>>>=1;res<<=1;}while(--len>0);return res>>>1;}/* ===========================================================================\r\n     * Flush the bit buffer, keeping at most 7 bits in it.\r\n     */function bi_flush(s){if(s.bi_valid===16){put_short(s,s.bi_buf);s.bi_buf=0;s.bi_valid=0;}else if(s.bi_valid>=8){s.pending_buf[s.pending++]=s.bi_buf&0xff;s.bi_buf>>=8;s.bi_valid-=8;}}/* ===========================================================================\r\n     * Compute the optimal bit lengths for a tree and update the total bit length\r\n     * for the current block.\r\n     * IN assertion: the fields freq and dad are set, heap[heap_max] and\r\n     *    above are the tree nodes sorted by increasing frequency.\r\n     * OUT assertions: the field len is set to the optimal bit length, the\r\n     *     array bl_count contains the frequencies for each bit length.\r\n     *     The length opt_len is updated; static_len is also updated if stree is\r\n     *     not null.\r\n     */function gen_bitlen(s,desc)//    deflate_state *s;\n//    tree_desc *desc;    /* the tree descriptor */\n{var tree=desc.dyn_tree;var max_code=desc.max_code;var stree=desc.stat_desc.static_tree;var has_stree=desc.stat_desc.has_stree;var extra=desc.stat_desc.extra_bits;var base=desc.stat_desc.extra_base;var max_length=desc.stat_desc.max_length;var h;/* heap index */var n,m;/* iterate over the tree elements */var bits;/* bit length */var xbits;/* extra bits */var f;/* frequency */var overflow=0;/* number of elements with bit length too large */for(bits=0;bits<=MAX_BITS;bits++){s.bl_count[bits]=0;}/* In a first pass, compute the optimal bit lengths (which may\r\n       * overflow in the case of the bit length tree).\r\n       */tree[s.heap[s.heap_max]*2+1]/*.Len*/=0;/* root of the heap */for(h=s.heap_max+1;h<HEAP_SIZE;h++){n=s.heap[h];bits=tree[tree[n*2+1]/*.Dad*/*2+1]/*.Len*/+1;if(bits>max_length){bits=max_length;overflow++;}tree[n*2+1]/*.Len*/=bits;/* We overwrite tree[n].Dad which is no longer needed */if(n>max_code){continue;}/* not a leaf node */s.bl_count[bits]++;xbits=0;if(n>=base){xbits=extra[n-base];}f=tree[n*2]/*.Freq*/;s.opt_len+=f*(bits+xbits);if(has_stree){s.static_len+=f*(stree[n*2+1]/*.Len*/+xbits);}}if(overflow===0){return;}// Trace((stderr,\"\\nbit length overflow\\n\"));\n/* This happens for example on obj2 and pic of the Calgary corpus */ /* Find the first bit length which could increase: */do{bits=max_length-1;while(s.bl_count[bits]===0){bits--;}s.bl_count[bits]--;/* move one leaf down the tree */s.bl_count[bits+1]+=2;/* move one overflow item as its brother */s.bl_count[max_length]--;/* The brother of the overflow item also moves one step up,\r\n         * but this does not affect bl_count[max_length]\r\n         */overflow-=2;}while(overflow>0);/* Now recompute all bit lengths, scanning in increasing frequency.\r\n       * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all\r\n       * lengths instead of fixing only the wrong ones. This idea is taken\r\n       * from 'ar' written by Haruhiko Okumura.)\r\n       */for(bits=max_length;bits!==0;bits--){n=s.bl_count[bits];while(n!==0){m=s.heap[--h];if(m>max_code){continue;}if(tree[m*2+1]/*.Len*/!==bits){// Trace((stderr,\"code %d bits %d->%d\\n\", m, tree[m].Len, bits));\ns.opt_len+=(bits-tree[m*2+1]/*.Len*/)*tree[m*2]/*.Freq*/;tree[m*2+1]/*.Len*/=bits;}n--;}}}/* ===========================================================================\r\n     * Generate the codes for a given tree and bit counts (which need not be\r\n     * optimal).\r\n     * IN assertion: the array bl_count contains the bit length statistics for\r\n     * the given tree and the field len is set for all tree elements.\r\n     * OUT assertion: the field code is set for all tree elements of non\r\n     *     zero code length.\r\n     */function gen_codes(tree,max_code,bl_count)//    ct_data *tree;             /* the tree to decorate */\n//    int max_code;              /* largest code with non zero frequency */\n//    ushf *bl_count;            /* number of codes at each bit length */\n{var next_code=new Array(MAX_BITS+1);/* next code value for each bit length */var code=0;/* running code value */var bits;/* bit index */var n;/* code index */ /* The distribution counts are first used to generate the code values\r\n       * without bit reversal.\r\n       */for(bits=1;bits<=MAX_BITS;bits++){next_code[bits]=code=code+bl_count[bits-1]<<1;}/* Check that the bit counts in bl_count are consistent. The last code\r\n       * must be all ones.\r\n       */ //Assert (code + bl_count[MAX_BITS]-1 == (1<<MAX_BITS)-1,\n//        \"inconsistent bit counts\");\n//Tracev((stderr,\"\\ngen_codes: max_code %d \", max_code));\nfor(n=0;n<=max_code;n++){var len=tree[n*2+1]/*.Len*/;if(len===0){continue;}/* Now reverse the bits */tree[n*2]/*.Code*/=bi_reverse(next_code[len]++,len);//Tracecv(tree != static_ltree, (stderr,\"\\nn %3d %c l %2d c %4x (%x) \",\n//     n, (isgraph(n) ? n : ' '), len, tree[n].Code, next_code[len]-1));\n}}/* ===========================================================================\r\n     * Initialize the various 'constant' tables.\r\n     */function tr_static_init(){var n;/* iterates over tree elements */var bits;/* bit counter */var length;/* length value */var code;/* code value */var dist;/* distance index */var bl_count=new Array(MAX_BITS+1);/* number of codes at each bit length for an optimal tree */ // do check in _tr_init()\n//if (static_init_done) return;\n/* For some embedded targets, global variables are not initialized: */ /*#ifdef NO_INIT_GLOBAL_POINTERS\r\n      static_l_desc.static_tree = static_ltree;\r\n      static_l_desc.extra_bits = extra_lbits;\r\n      static_d_desc.static_tree = static_dtree;\r\n      static_d_desc.extra_bits = extra_dbits;\r\n      static_bl_desc.extra_bits = extra_blbits;\r\n    #endif*/ /* Initialize the mapping length (0..255) -> length code (0..28) */length=0;for(code=0;code<LENGTH_CODES-1;code++){base_length[code]=length;for(n=0;n<1<<extra_lbits[code];n++){_length_code[length++]=code;}}//Assert (length == 256, \"tr_static_init: length != 256\");\n/* Note that the length 255 (match length 258) can be represented\r\n       * in two different ways: code 284 + 5 bits or code 285, so we\r\n       * overwrite length_code[255] to use the best encoding:\r\n       */_length_code[length-1]=code;/* Initialize the mapping dist (0..32K) -> dist code (0..29) */dist=0;for(code=0;code<16;code++){base_dist[code]=dist;for(n=0;n<1<<extra_dbits[code];n++){_dist_code[dist++]=code;}}//Assert (dist == 256, \"tr_static_init: dist != 256\");\ndist>>=7;/* from now on, all distances are divided by 128 */for(;code<D_CODES;code++){base_dist[code]=dist<<7;for(n=0;n<1<<extra_dbits[code]-7;n++){_dist_code[256+dist++]=code;}}//Assert (dist == 256, \"tr_static_init: 256+dist != 512\");\n/* Construct the codes of the static literal tree */for(bits=0;bits<=MAX_BITS;bits++){bl_count[bits]=0;}n=0;while(n<=143){static_ltree[n*2+1]/*.Len*/=8;n++;bl_count[8]++;}while(n<=255){static_ltree[n*2+1]/*.Len*/=9;n++;bl_count[9]++;}while(n<=279){static_ltree[n*2+1]/*.Len*/=7;n++;bl_count[7]++;}while(n<=287){static_ltree[n*2+1]/*.Len*/=8;n++;bl_count[8]++;}/* Codes 286 and 287 do not exist, but we must include them in the\r\n       * tree construction to get a canonical Huffman tree (longest code\r\n       * all ones)\r\n       */gen_codes(static_ltree,L_CODES+1,bl_count);/* The static distance tree is trivial: */for(n=0;n<D_CODES;n++){static_dtree[n*2+1]/*.Len*/=5;static_dtree[n*2]/*.Code*/=bi_reverse(n,5);}// Now data ready and we can init static trees\nstatic_l_desc=new StaticTreeDesc(static_ltree,extra_lbits,LITERALS+1,L_CODES,MAX_BITS);static_d_desc=new StaticTreeDesc(static_dtree,extra_dbits,0,D_CODES,MAX_BITS);static_bl_desc=new StaticTreeDesc(new Array(0),extra_blbits,0,BL_CODES,MAX_BL_BITS);//static_init_done = true;\n}/* ===========================================================================\r\n     * Initialize a new block.\r\n     */function init_block(s){var n;/* iterates over tree elements */ /* Initialize the trees. */for(n=0;n<L_CODES;n++){s.dyn_ltree[n*2]/*.Freq*/=0;}for(n=0;n<D_CODES;n++){s.dyn_dtree[n*2]/*.Freq*/=0;}for(n=0;n<BL_CODES;n++){s.bl_tree[n*2]/*.Freq*/=0;}s.dyn_ltree[END_BLOCK*2]/*.Freq*/=1;s.opt_len=s.static_len=0;s.last_lit=s.matches=0;}/* ===========================================================================\r\n     * Flush the bit buffer and align the output on a byte boundary\r\n     */function bi_windup(s){if(s.bi_valid>8){put_short(s,s.bi_buf);}else if(s.bi_valid>0){//put_byte(s, (Byte)s->bi_buf);\ns.pending_buf[s.pending++]=s.bi_buf;}s.bi_buf=0;s.bi_valid=0;}/* ===========================================================================\r\n     * Copy a stored block, storing first the length and its\r\n     * one's complement if requested.\r\n     */function copy_block(s,buf,len,header)//DeflateState *s;\n//charf    *buf;    /* the input data */\n//unsigned len;     /* its length */\n//int      header;  /* true if block header must be written */\n{bi_windup(s);/* align on byte boundary */if(header){put_short(s,len);put_short(s,~len);}//  while (len--) {\n//    put_byte(s, *buf++);\n//  }\nutils.arraySet(s.pending_buf,s.window,buf,len,s.pending);s.pending+=len;}/* ===========================================================================\r\n     * Compares to subtrees, using the tree depth as tie breaker when\r\n     * the subtrees have equal frequency. This minimizes the worst case length.\r\n     */function smaller(tree,n,m,depth){var _n2=n*2;var _m2=m*2;return tree[_n2]/*.Freq*/<tree[_m2]/*.Freq*/||tree[_n2]/*.Freq*/===tree[_m2]/*.Freq*/&&depth[n]<=depth[m];}/* ===========================================================================\r\n     * Restore the heap property by moving down the tree starting at node k,\r\n     * exchanging a node with the smallest of its two sons if necessary, stopping\r\n     * when the heap property is re-established (each father smaller than its\r\n     * two sons).\r\n     */function pqdownheap(s,tree,k)//    deflate_state *s;\n//    ct_data *tree;  /* the tree to restore */\n//    int k;               /* node to move down */\n{var v=s.heap[k];var j=k<<1;/* left son of k */while(j<=s.heap_len){/* Set j to the smallest of the two sons: */if(j<s.heap_len&&smaller(tree,s.heap[j+1],s.heap[j],s.depth)){j++;}/* Exit if v is smaller than both sons */if(smaller(tree,v,s.heap[j],s.depth)){break;}/* Exchange v with the smallest son */s.heap[k]=s.heap[j];k=j;/* And continue down the tree, setting j to the left son of k */j<<=1;}s.heap[k]=v;}// inlined manually\n// var SMALLEST = 1;\n/* ===========================================================================\r\n     * Send the block data compressed using the given Huffman trees\r\n     */function compress_block(s,ltree,dtree)//    deflate_state *s;\n//    const ct_data *ltree; /* literal tree */\n//    const ct_data *dtree; /* distance tree */\n{var dist;/* distance of matched string */var lc;/* match length or unmatched char (if dist == 0) */var lx=0;/* running index in l_buf */var code;/* the code to send */var extra;/* number of extra bits to send */if(s.last_lit!==0){do{dist=s.pending_buf[s.d_buf+lx*2]<<8|s.pending_buf[s.d_buf+lx*2+1];lc=s.pending_buf[s.l_buf+lx];lx++;if(dist===0){send_code(s,lc,ltree);/* send a literal byte */ //Tracecv(isgraph(lc), (stderr,\" '%c' \", lc));\n}else{/* Here, lc is the match length - MIN_MATCH */code=_length_code[lc];send_code(s,code+LITERALS+1,ltree);/* send the length code */extra=extra_lbits[code];if(extra!==0){lc-=base_length[code];send_bits(s,lc,extra);/* send the extra length bits */}dist--;/* dist is now the match distance - 1 */code=d_code(dist);//Assert (code < D_CODES, \"bad d_code\");\nsend_code(s,code,dtree);/* send the distance code */extra=extra_dbits[code];if(extra!==0){dist-=base_dist[code];send_bits(s,dist,extra);/* send the extra distance bits */}}/* literal or match pair ? */ /* Check that the overlay between pending_buf and d_buf+l_buf is ok: */ //Assert((uInt)(s->pending) < s->lit_bufsize + 2*lx,\n//       \"pendingBuf overflow\");\n}while(lx<s.last_lit);}send_code(s,END_BLOCK,ltree);}/* ===========================================================================\r\n     * Construct one Huffman tree and assigns the code bit strings and lengths.\r\n     * Update the total bit length for the current block.\r\n     * IN assertion: the field freq is set for all tree elements.\r\n     * OUT assertions: the fields len and code are set to the optimal bit length\r\n     *     and corresponding code. The length opt_len is updated; static_len is\r\n     *     also updated if stree is not null. The field max_code is set.\r\n     */function build_tree(s,desc)//    deflate_state *s;\n//    tree_desc *desc; /* the tree descriptor */\n{var tree=desc.dyn_tree;var stree=desc.stat_desc.static_tree;var has_stree=desc.stat_desc.has_stree;var elems=desc.stat_desc.elems;var n,m;/* iterate over heap elements */var max_code=-1;/* largest code with non zero frequency */var node;/* new node being created */ /* Construct the initial heap, with least frequent element in\r\n       * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1].\r\n       * heap[0] is not used.\r\n       */s.heap_len=0;s.heap_max=HEAP_SIZE;for(n=0;n<elems;n++){if(tree[n*2]/*.Freq*/!==0){s.heap[++s.heap_len]=max_code=n;s.depth[n]=0;}else{tree[n*2+1]/*.Len*/=0;}}/* The pkzip format requires that at least one distance code exists,\r\n       * and that at least one bit should be sent even if there is only one\r\n       * possible code. So to avoid special checks later on we force at least\r\n       * two codes of non zero frequency.\r\n       */while(s.heap_len<2){node=s.heap[++s.heap_len]=max_code<2?++max_code:0;tree[node*2]/*.Freq*/=1;s.depth[node]=0;s.opt_len--;if(has_stree){s.static_len-=stree[node*2+1]/*.Len*/;}/* node is 0 or 1 so it does not have extra bits */}desc.max_code=max_code;/* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,\r\n       * establish sub-heaps of increasing lengths:\r\n       */for(n=s.heap_len>>1/*int /2*/;n>=1;n--){pqdownheap(s,tree,n);}/* Construct the Huffman tree by repeatedly combining the least two\r\n       * frequent nodes.\r\n       */node=elems;/* next internal node of the tree */do{//pqremove(s, tree, n);  /* n = node of least frequency */\n/*** pqremove ***/n=s.heap[1/*SMALLEST*/];s.heap[1/*SMALLEST*/]=s.heap[s.heap_len--];pqdownheap(s,tree,1/*SMALLEST*/);/***/m=s.heap[1/*SMALLEST*/];/* m = node of next least frequency */s.heap[--s.heap_max]=n;/* keep the nodes sorted by frequency */s.heap[--s.heap_max]=m;/* Create a new node father of n and m */tree[node*2]/*.Freq*/=tree[n*2]/*.Freq*/+tree[m*2]/*.Freq*/;s.depth[node]=(s.depth[n]>=s.depth[m]?s.depth[n]:s.depth[m])+1;tree[n*2+1]/*.Dad*/=tree[m*2+1]/*.Dad*/=node;/* and insert the new node in the heap */s.heap[1/*SMALLEST*/]=node++;pqdownheap(s,tree,1/*SMALLEST*/);}while(s.heap_len>=2);s.heap[--s.heap_max]=s.heap[1/*SMALLEST*/];/* At this point, the fields freq and dad are set. We can now\r\n       * generate the bit lengths.\r\n       */gen_bitlen(s,desc);/* The field len is now set, we can generate the bit codes */gen_codes(tree,max_code,s.bl_count);}/* ===========================================================================\r\n     * Scan a literal or distance tree to determine the frequencies of the codes\r\n     * in the bit length tree.\r\n     */function scan_tree(s,tree,max_code)//    deflate_state *s;\n//    ct_data *tree;   /* the tree to be scanned */\n//    int max_code;    /* and its largest code of non zero frequency */\n{var n;/* iterates over all tree elements */var prevlen=-1;/* last emitted length */var curlen;/* length of current code */var nextlen=tree[0*2+1]/*.Len*/;/* length of next code */var count=0;/* repeat count of the current code */var max_count=7;/* max repeat count */var min_count=4;/* min repeat count */if(nextlen===0){max_count=138;min_count=3;}tree[(max_code+1)*2+1]/*.Len*/=0xffff;/* guard */for(n=0;n<=max_code;n++){curlen=nextlen;nextlen=tree[(n+1)*2+1]/*.Len*/;if(++count<max_count&&curlen===nextlen){continue;}else if(count<min_count){s.bl_tree[curlen*2]/*.Freq*/+=count;}else if(curlen!==0){if(curlen!==prevlen){s.bl_tree[curlen*2]/*.Freq*/++;}s.bl_tree[REP_3_6*2]/*.Freq*/++;}else if(count<=10){s.bl_tree[REPZ_3_10*2]/*.Freq*/++;}else{s.bl_tree[REPZ_11_138*2]/*.Freq*/++;}count=0;prevlen=curlen;if(nextlen===0){max_count=138;min_count=3;}else if(curlen===nextlen){max_count=6;min_count=3;}else{max_count=7;min_count=4;}}}/* ===========================================================================\r\n     * Send a literal or distance tree in compressed form, using the codes in\r\n     * bl_tree.\r\n     */function send_tree(s,tree,max_code)//    deflate_state *s;\n//    ct_data *tree; /* the tree to be scanned */\n//    int max_code;       /* and its largest code of non zero frequency */\n{var n;/* iterates over all tree elements */var prevlen=-1;/* last emitted length */var curlen;/* length of current code */var nextlen=tree[0*2+1]/*.Len*/;/* length of next code */var count=0;/* repeat count of the current code */var max_count=7;/* max repeat count */var min_count=4;/* min repeat count */ /* tree[max_code+1].Len = -1; */ /* guard already set */if(nextlen===0){max_count=138;min_count=3;}for(n=0;n<=max_code;n++){curlen=nextlen;nextlen=tree[(n+1)*2+1]/*.Len*/;if(++count<max_count&&curlen===nextlen){continue;}else if(count<min_count){do{send_code(s,curlen,s.bl_tree);}while(--count!==0);}else if(curlen!==0){if(curlen!==prevlen){send_code(s,curlen,s.bl_tree);count--;}//Assert(count >= 3 && count <= 6, \" 3_6?\");\nsend_code(s,REP_3_6,s.bl_tree);send_bits(s,count-3,2);}else if(count<=10){send_code(s,REPZ_3_10,s.bl_tree);send_bits(s,count-3,3);}else{send_code(s,REPZ_11_138,s.bl_tree);send_bits(s,count-11,7);}count=0;prevlen=curlen;if(nextlen===0){max_count=138;min_count=3;}else if(curlen===nextlen){max_count=6;min_count=3;}else{max_count=7;min_count=4;}}}/* ===========================================================================\r\n     * Construct the Huffman tree for the bit lengths and return the index in\r\n     * bl_order of the last bit length code to send.\r\n     */function build_bl_tree(s){var max_blindex;/* index of last bit length code of non zero freq */ /* Determine the bit length frequencies for literal and distance trees */scan_tree(s,s.dyn_ltree,s.l_desc.max_code);scan_tree(s,s.dyn_dtree,s.d_desc.max_code);/* Build the bit length tree: */build_tree(s,s.bl_desc);/* opt_len now includes the length of the tree representations, except\r\n       * the lengths of the bit lengths codes and the 5+5+4 bits for the counts.\r\n       */ /* Determine the number of bit length codes to send. The pkzip format\r\n       * requires that at least 4 bit length codes be sent. (appnote.txt says\r\n       * 3 but the actual value used is 4.)\r\n       */for(max_blindex=BL_CODES-1;max_blindex>=3;max_blindex--){if(s.bl_tree[bl_order[max_blindex]*2+1]/*.Len*/!==0){break;}}/* Update opt_len to include the bit length tree and counts */s.opt_len+=3*(max_blindex+1)+5+5+4;//Tracev((stderr, \"\\ndyn trees: dyn %ld, stat %ld\",\n//        s->opt_len, s->static_len));\nreturn max_blindex;}/* ===========================================================================\r\n     * Send the header for a block using dynamic Huffman trees: the counts, the\r\n     * lengths of the bit length codes, the literal tree and the distance tree.\r\n     * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.\r\n     */function send_all_trees(s,lcodes,dcodes,blcodes)//    deflate_state *s;\n//    int lcodes, dcodes, blcodes; /* number of codes for each tree */\n{var rank;/* index in bl_order */ //Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, \"not enough codes\");\n//Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES,\n//        \"too many codes\");\n//Tracev((stderr, \"\\nbl counts: \"));\nsend_bits(s,lcodes-257,5);/* not +255 as stated in appnote.txt */send_bits(s,dcodes-1,5);send_bits(s,blcodes-4,4);/* not -3 as stated in appnote.txt */for(rank=0;rank<blcodes;rank++){//Tracev((stderr, \"\\nbl code %2d \", bl_order[rank]));\nsend_bits(s,s.bl_tree[bl_order[rank]*2+1]/*.Len*/,3);}//Tracev((stderr, \"\\nbl tree: sent %ld\", s->bits_sent));\nsend_tree(s,s.dyn_ltree,lcodes-1);/* literal tree */ //Tracev((stderr, \"\\nlit tree: sent %ld\", s->bits_sent));\nsend_tree(s,s.dyn_dtree,dcodes-1);/* distance tree */ //Tracev((stderr, \"\\ndist tree: sent %ld\", s->bits_sent));\n}/* ===========================================================================\r\n     * Check if the data type is TEXT or BINARY, using the following algorithm:\r\n     * - TEXT if the two conditions below are satisfied:\r\n     *    a) There are no non-portable control characters belonging to the\r\n     *       \"black list\" (0..6, 14..25, 28..31).\r\n     *    b) There is at least one printable character belonging to the\r\n     *       \"white list\" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).\r\n     * - BINARY otherwise.\r\n     * - The following partially-portable control characters form a\r\n     *   \"gray list\" that is ignored in this detection algorithm:\r\n     *   (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).\r\n     * IN assertion: the fields Freq of dyn_ltree are set.\r\n     */function detect_data_type(s){/* black_mask is the bit mask of black-listed bytes\r\n       * set bits 0..6, 14..25, and 28..31\r\n       * 0xf3ffc07f = binary 11110011111111111100000001111111\r\n       */var black_mask=0xf3ffc07f;var n;/* Check for non-textual (\"black-listed\") bytes. */for(n=0;n<=31;n++,black_mask>>>=1){if(black_mask&1&&s.dyn_ltree[n*2]/*.Freq*/!==0){return Z_BINARY;}}/* Check for textual (\"white-listed\") bytes. */if(s.dyn_ltree[9*2]/*.Freq*/!==0||s.dyn_ltree[10*2]/*.Freq*/!==0||s.dyn_ltree[13*2]/*.Freq*/!==0){return Z_TEXT;}for(n=32;n<LITERALS;n++){if(s.dyn_ltree[n*2]/*.Freq*/!==0){return Z_TEXT;}}/* There are no \"black-listed\" or \"white-listed\" bytes:\r\n       * this stream either is empty or has tolerated (\"gray-listed\") bytes only.\r\n       */return Z_BINARY;}var static_init_done=false;/* ===========================================================================\r\n     * Initialize the tree data structures for a new zlib stream.\r\n     */function _tr_init(s){if(!static_init_done){tr_static_init();static_init_done=true;}s.l_desc=new TreeDesc(s.dyn_ltree,static_l_desc);s.d_desc=new TreeDesc(s.dyn_dtree,static_d_desc);s.bl_desc=new TreeDesc(s.bl_tree,static_bl_desc);s.bi_buf=0;s.bi_valid=0;/* Initialize the first block of the first file: */init_block(s);}/* ===========================================================================\r\n     * Send a stored block\r\n     */function _tr_stored_block(s,buf,stored_len,last)//DeflateState *s;\n//charf *buf;       /* input block */\n//ulg stored_len;   /* length of input block */\n//int last;         /* one if this is the last block for a file */\n{send_bits(s,(STORED_BLOCK<<1)+(last?1:0),3);/* send block type */copy_block(s,buf,stored_len,true);/* with header */}/* ===========================================================================\r\n     * Send one empty static block to give enough lookahead for inflate.\r\n     * This takes 10 bits, of which 7 may remain in the bit buffer.\r\n     */function _tr_align(s){send_bits(s,STATIC_TREES<<1,3);send_code(s,END_BLOCK,static_ltree);bi_flush(s);}/* ===========================================================================\r\n     * Determine the best encoding for the current block: dynamic trees, static\r\n     * trees or store, and output the encoded block to the zip file.\r\n     */function _tr_flush_block(s,buf,stored_len,last)//DeflateState *s;\n//charf *buf;       /* input block, or NULL if too old */\n//ulg stored_len;   /* length of input block */\n//int last;         /* one if this is the last block for a file */\n{var opt_lenb,static_lenb;/* opt_len and static_len in bytes */var max_blindex=0;/* index of last bit length code of non zero freq */ /* Build the Huffman trees unless a stored block is forced */if(s.level>0){/* Check if the file is binary or text */if(s.strm.data_type===Z_UNKNOWN){s.strm.data_type=detect_data_type(s);}/* Construct the literal and distance trees */build_tree(s,s.l_desc);// Tracev((stderr, \"\\nlit data: dyn %ld, stat %ld\", s->opt_len,\n//        s->static_len));\nbuild_tree(s,s.d_desc);// Tracev((stderr, \"\\ndist data: dyn %ld, stat %ld\", s->opt_len,\n//        s->static_len));\n/* At this point, opt_len and static_len are the total bit lengths of\r\n         * the compressed block data, excluding the tree representations.\r\n         */ /* Build the bit length tree for the above two trees, and get the index\r\n         * in bl_order of the last bit length code to send.\r\n         */max_blindex=build_bl_tree(s);/* Determine the best encoding. Compute the block lengths in bytes. */opt_lenb=s.opt_len+3+7>>>3;static_lenb=s.static_len+3+7>>>3;// Tracev((stderr, \"\\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u \",\n//        opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,\n//        s->last_lit));\nif(static_lenb<=opt_lenb){opt_lenb=static_lenb;}}else{// Assert(buf != (char*)0, \"lost buf\");\nopt_lenb=static_lenb=stored_len+5;/* force a stored block */}if(stored_len+4<=opt_lenb&&buf!==-1){/* 4: two words for the lengths */ /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.\r\n         * Otherwise we can't have processed more than WSIZE input bytes since\r\n         * the last block flush, because compression would have been\r\n         * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to\r\n         * transform a block into a stored block.\r\n         */_tr_stored_block(s,buf,stored_len,last);}else if(s.strategy===Z_FIXED||static_lenb===opt_lenb){send_bits(s,(STATIC_TREES<<1)+(last?1:0),3);compress_block(s,static_ltree,static_dtree);}else{send_bits(s,(DYN_TREES<<1)+(last?1:0),3);send_all_trees(s,s.l_desc.max_code+1,s.d_desc.max_code+1,max_blindex+1);compress_block(s,s.dyn_ltree,s.dyn_dtree);}// Assert (s->compressed_len == s->bits_sent, \"bad compressed size\");\n/* The above check is made mod 2^32, for files larger than 512 MB\r\n       * and uLong implemented on 32 bits.\r\n       */init_block(s);if(last){bi_windup(s);}// Tracev((stderr,\"\\ncomprlen %lu(%lu) \", s->compressed_len>>3,\n//       s->compressed_len-7*last));\n}/* ===========================================================================\r\n     * Save the match info and tally the frequency counts. Return true if\r\n     * the current block must be flushed.\r\n     */function _tr_tally(s,dist,lc)//    deflate_state *s;\n//    unsigned dist;  /* distance of matched string */\n//    unsigned lc;    /* match length-MIN_MATCH or unmatched char (if dist==0) */\n{//var out_length, in_length, dcode;\ns.pending_buf[s.d_buf+s.last_lit*2]=dist>>>8&0xff;s.pending_buf[s.d_buf+s.last_lit*2+1]=dist&0xff;s.pending_buf[s.l_buf+s.last_lit]=lc&0xff;s.last_lit++;if(dist===0){/* lc is the unmatched char */s.dyn_ltree[lc*2]/*.Freq*/++;}else{s.matches++;/* Here, lc is the match length - MIN_MATCH */dist--;/* dist = match distance - 1 */ //Assert((ush)dist < (ush)MAX_DIST(s) &&\n//       (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&\n//       (ush)d_code(dist) < (ush)D_CODES,  \"_tr_tally: bad match\");\ns.dyn_ltree[(_length_code[lc]+LITERALS+1)*2]/*.Freq*/++;s.dyn_dtree[d_code(dist)*2]/*.Freq*/++;}// (!) This block is disabled in zlib defailts,\n// don't enable it for binary compatibility\n//#ifdef TRUNCATE_BLOCK\n//  /* Try to guess if it is profitable to stop the current block here */\n//  if ((s.last_lit & 0x1fff) === 0 && s.level > 2) {\n//    /* Compute an upper bound for the compressed length */\n//    out_length = s.last_lit*8;\n//    in_length = s.strstart - s.block_start;\n//\n//    for (dcode = 0; dcode < D_CODES; dcode++) {\n//      out_length += s.dyn_dtree[dcode*2]/*.Freq*/ * (5 + extra_dbits[dcode]);\n//    }\n//    out_length >>>= 3;\n//    //Tracev((stderr,\"\\nlast_lit %u, in %ld, out ~%ld(%ld%%) \",\n//    //       s->last_lit, in_length, out_length,\n//    //       100L - out_length*100L/in_length));\n//    if (s.matches < (s.last_lit>>1)/*int /2*/ && out_length < (in_length>>1)/*int /2*/) {\n//      return true;\n//    }\n//  }\n//#endif\nreturn s.last_lit===s.lit_bufsize-1;/* We avoid equality with lit_bufsize because of wraparound at 64K\r\n       * on 16 bit machines and because stored blocks are restricted to\r\n       * 64K-1 bytes.\r\n       */}exports._tr_init=_tr_init;exports._tr_stored_block=_tr_stored_block;exports._tr_flush_block=_tr_flush_block;exports._tr_tally=_tr_tally;exports._tr_align=_tr_align;},{\"../utils/common\":41}],53:[function(require,module,exports){'use strict';// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nfunction ZStream(){/* next input byte */this.input=null;// JS specific, because we have no pointers\nthis.next_in=0;/* number of bytes available at input */this.avail_in=0;/* total number of input bytes read so far */this.total_in=0;/* next output byte should be put there */this.output=null;// JS specific, because we have no pointers\nthis.next_out=0;/* remaining free space at output */this.avail_out=0;/* total number of bytes output so far */this.total_out=0;/* last error message, NULL if no error */this.msg=''/*Z_NULL*/;/* not visible by applications */this.state=null;/* best guess about the data type: binary or text */this.data_type=2/*Z_UNKNOWN*/;/* adler32 value of the uncompressed data */this.adler=0;}module.exports=ZStream;},{}],54:[function(require,module,exports){'use strict';module.exports=typeof setImmediate==='function'?setImmediate:function setImmediate(){var args=[].slice.apply(arguments);args.splice(1,0,0);setTimeout.apply(null,args);};},{}]},{},[10])(10);});/*! pdfmake v0.1.64, @license MIT, @link http://pdfmake.org */(function webpackUniversalModuleDefinition(root,factory){if(true)module.exports=factory();else { var i, a; }})(typeof self!=='undefined'?self:this,function(){return(/******/function(modules){// webpackBootstrap\n/******/ // The module cache\n/******/var installedModules={};/******/ /******/ // The require function\n/******/function __nested_webpack_require_2899591__(moduleId){/******/ /******/ // Check if module is in cache\n/******/if(installedModules[moduleId]){/******/return installedModules[moduleId].exports;/******/}/******/ // Create a new module (and put it into the cache)\n/******/var module=installedModules[moduleId]={/******/i:moduleId,/******/l:false,/******/exports:{}/******/};/******/ /******/ // Execute the module function\n/******/modules[moduleId].call(module.exports,module,module.exports,__nested_webpack_require_2899591__);/******/ /******/ // Flag the module as loaded\n/******/module.l=true;/******/ /******/ // Return the exports of the module\n/******/return module.exports;/******/}/******/ /******/ /******/ // expose the modules object (__webpack_modules__)\n/******/__nested_webpack_require_2899591__.m=modules;/******/ /******/ // expose the module cache\n/******/__nested_webpack_require_2899591__.c=installedModules;/******/ /******/ // define getter function for harmony exports\n/******/__nested_webpack_require_2899591__.d=function(exports,name,getter){/******/if(!__nested_webpack_require_2899591__.o(exports,name)){/******/Object.defineProperty(exports,name,{enumerable:true,get:getter});/******/}/******/};/******/ /******/ // define __esModule on exports\n/******/__nested_webpack_require_2899591__.r=function(exports){/******/if(typeof Symbol!=='undefined'&&Symbol.toStringTag){/******/Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});/******/}/******/Object.defineProperty(exports,'__esModule',{value:true});/******/};/******/ /******/ // create a fake namespace object\n/******/ // mode & 1: value is a module id, require it\n/******/ // mode & 2: merge all properties of value into the ns\n/******/ // mode & 4: return value when already ns object\n/******/ // mode & 8|1: behave like require\n/******/__nested_webpack_require_2899591__.t=function(value,mode){/******/if(mode&1)value=__nested_webpack_require_2899591__(value);/******/if(mode&8)return value;/******/if(mode&4&&typeof value==='object'&&value&&value.__esModule)return value;/******/var ns=Object.create(null);/******/__nested_webpack_require_2899591__.r(ns);/******/Object.defineProperty(ns,'default',{enumerable:true,value:value});/******/if(mode&2&&typeof value!='string')for(var key in value)__nested_webpack_require_2899591__.d(ns,key,function(key){return value[key];}.bind(null,key));/******/return ns;/******/};/******/ /******/ // getDefaultExport function for compatibility with non-harmony modules\n/******/__nested_webpack_require_2899591__.n=function(module){/******/var getter=module&&module.__esModule?/******/function getDefault(){return module['default'];}:/******/function getModuleExports(){return module;};/******/__nested_webpack_require_2899591__.d(getter,'a',getter);/******/return getter;/******/};/******/ /******/ // Object.prototype.hasOwnProperty.call\n/******/__nested_webpack_require_2899591__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};/******/ /******/ // __webpack_public_path__\n/******/__nested_webpack_require_2899591__.p=\"\";/******/ /******/ /******/ // Load entry module and return exports\n/******/return __nested_webpack_require_2899591__(__nested_webpack_require_2899591__.s=214);/******/}/************************************************************************/ /******/([/* 0 */ /***/function(module,exports,__webpack_require__){\"use strict\";function isString(variable){return typeof variable==='string'||variable instanceof String;}function isNumber(variable){return typeof variable==='number'||variable instanceof Number;}function isBoolean(variable){return typeof variable==='boolean';}function isArray(variable){return Array.isArray(variable);}function isFunction(variable){return typeof variable==='function';}function isObject(variable){return variable!==null&&typeof variable==='object';}function isNull(variable){return variable===null;}function isUndefined(variable){return variable===undefined;}function pack(){var result={};for(var i=0,l=arguments.length;i<l;i++){var obj=arguments[i];if(obj){for(var key in obj){if(obj.hasOwnProperty(key)){result[key]=obj[key];}}}}return result;}function offsetVector(vector,x,y){switch(vector.type){case'ellipse':case'rect':vector.x+=x;vector.y+=y;break;case'line':vector.x1+=x;vector.x2+=x;vector.y1+=y;vector.y2+=y;break;case'polyline':for(var i=0,l=vector.points.length;i<l;i++){vector.points[i].x+=x;vector.points[i].y+=y;}break;}}function fontStringify(key,val){if(key==='font'){return'font';}return val;}function getNodeId(node){if(node.id){return node.id;}if(isArray(node.text)){for(var i=0,l=node.text.length;i<l;i++){var n=node.text[i];var nodeId=getNodeId(n);if(nodeId){return nodeId;}}}return null;}module.exports={isString:isString,isNumber:isNumber,isBoolean:isBoolean,isArray:isArray,isFunction:isFunction,isObject:isObject,isNull:isNull,isUndefined:isUndefined,pack:pack,fontStringify:fontStringify,offsetVector:offsetVector,getNodeId:getNodeId};/***/},/* 1 */ /***/function(module,exports,__webpack_require__){;(function(root,factory){if(true){// CommonJS\nmodule.exports=exports=factory();}else{}})(this,function(){/**\r\n         * CryptoJS core components.\r\n         */var CryptoJS=CryptoJS||function(Math,undefined){/*\r\n             * Local polyfil of Object.create\r\n             */var create=Object.create||function(){function F(){};return function(obj){var subtype;F.prototype=obj;subtype=new F();F.prototype=null;return subtype;};}();/**\r\n             * CryptoJS namespace.\r\n             */var C={};/**\r\n             * Library namespace.\r\n             */var C_lib=C.lib={};/**\r\n             * Base object for prototypal inheritance.\r\n             */var Base=C_lib.Base=function(){return{/**\r\n                     * Creates a new object that inherits from this object.\r\n                     *\r\n                     * @param {Object} overrides Properties to copy into the new object.\r\n                     *\r\n                     * @return {Object} The new object.\r\n                     *\r\n                     * @static\r\n                     *\r\n                     * @example\r\n                     *\r\n                     *     var MyType = CryptoJS.lib.Base.extend({\r\n                     *         field: 'value',\r\n                     *\r\n                     *         method: function () {\r\n                     *         }\r\n                     *     });\r\n                     */extend:function(overrides){// Spawn\nvar subtype=create(this);// Augment\nif(overrides){subtype.mixIn(overrides);}// Create default initializer\nif(!subtype.hasOwnProperty('init')||this.init===subtype.init){subtype.init=function(){subtype.$super.init.apply(this,arguments);};}// Initializer's prototype is the subtype object\nsubtype.init.prototype=subtype;// Reference supertype\nsubtype.$super=this;return subtype;},/**\r\n                     * Extends this object and runs the init method.\r\n                     * Arguments to create() will be passed to init().\r\n                     *\r\n                     * @return {Object} The new object.\r\n                     *\r\n                     * @static\r\n                     *\r\n                     * @example\r\n                     *\r\n                     *     var instance = MyType.create();\r\n                     */create:function(){var instance=this.extend();instance.init.apply(instance,arguments);return instance;},/**\r\n                     * Initializes a newly created object.\r\n                     * Override this method to add some logic when your objects are created.\r\n                     *\r\n                     * @example\r\n                     *\r\n                     *     var MyType = CryptoJS.lib.Base.extend({\r\n                     *         init: function () {\r\n                     *             // ...\r\n                     *         }\r\n                     *     });\r\n                     */init:function(){},/**\r\n                     * Copies properties into this object.\r\n                     *\r\n                     * @param {Object} properties The properties to mix in.\r\n                     *\r\n                     * @example\r\n                     *\r\n                     *     MyType.mixIn({\r\n                     *         field: 'value'\r\n                     *     });\r\n                     */mixIn:function(properties){for(var propertyName in properties){if(properties.hasOwnProperty(propertyName)){this[propertyName]=properties[propertyName];}}// IE won't copy toString using the loop above\nif(properties.hasOwnProperty('toString')){this.toString=properties.toString;}},/**\r\n                     * Creates a copy of this object.\r\n                     *\r\n                     * @return {Object} The clone.\r\n                     *\r\n                     * @example\r\n                     *\r\n                     *     var clone = instance.clone();\r\n                     */clone:function(){return this.init.prototype.extend(this);}};}();/**\r\n             * An array of 32-bit words.\r\n             *\r\n             * @property {Array} words The array of 32-bit words.\r\n             * @property {number} sigBytes The number of significant bytes in this word array.\r\n             */var WordArray=C_lib.WordArray=Base.extend({/**\r\n                 * Initializes a newly created word array.\r\n                 *\r\n                 * @param {Array} words (Optional) An array of 32-bit words.\r\n                 * @param {number} sigBytes (Optional) The number of significant bytes in the words.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var wordArray = CryptoJS.lib.WordArray.create();\r\n                 *     var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);\r\n                 *     var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);\r\n                 */init:function(words,sigBytes){words=this.words=words||[];if(sigBytes!=undefined){this.sigBytes=sigBytes;}else{this.sigBytes=words.length*4;}},/**\r\n                 * Converts this word array to a string.\r\n                 *\r\n                 * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex\r\n                 *\r\n                 * @return {string} The stringified word array.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var string = wordArray + '';\r\n                 *     var string = wordArray.toString();\r\n                 *     var string = wordArray.toString(CryptoJS.enc.Utf8);\r\n                 */toString:function(encoder){return(encoder||Hex).stringify(this);},/**\r\n                 * Concatenates a word array to this word array.\r\n                 *\r\n                 * @param {WordArray} wordArray The word array to append.\r\n                 *\r\n                 * @return {WordArray} This word array.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     wordArray1.concat(wordArray2);\r\n                 */concat:function(wordArray){// Shortcuts\nvar thisWords=this.words;var thatWords=wordArray.words;var thisSigBytes=this.sigBytes;var thatSigBytes=wordArray.sigBytes;// Clamp excess bits\nthis.clamp();// Concat\nif(thisSigBytes%4){// Copy one byte at a time\nfor(var i=0;i<thatSigBytes;i++){var thatByte=thatWords[i>>>2]>>>24-i%4*8&0xff;thisWords[thisSigBytes+i>>>2]|=thatByte<<24-(thisSigBytes+i)%4*8;}}else{// Copy one word at a time\nfor(var i=0;i<thatSigBytes;i+=4){thisWords[thisSigBytes+i>>>2]=thatWords[i>>>2];}}this.sigBytes+=thatSigBytes;// Chainable\nreturn this;},/**\r\n                 * Removes insignificant bits.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     wordArray.clamp();\r\n                 */clamp:function(){// Shortcuts\nvar words=this.words;var sigBytes=this.sigBytes;// Clamp\nwords[sigBytes>>>2]&=0xffffffff<<32-sigBytes%4*8;words.length=Math.ceil(sigBytes/4);},/**\r\n                 * Creates a copy of this word array.\r\n                 *\r\n                 * @return {WordArray} The clone.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var clone = wordArray.clone();\r\n                 */clone:function(){var clone=Base.clone.call(this);clone.words=this.words.slice(0);return clone;},/**\r\n                 * Creates a word array filled with random bytes.\r\n                 *\r\n                 * @param {number} nBytes The number of random bytes to generate.\r\n                 *\r\n                 * @return {WordArray} The random word array.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var wordArray = CryptoJS.lib.WordArray.random(16);\r\n                 */random:function(nBytes){var words=[];var r=function(m_w){var m_w=m_w;var m_z=0x3ade68b1;var mask=0xffffffff;return function(){m_z=0x9069*(m_z&0xFFFF)+(m_z>>0x10)&mask;m_w=0x4650*(m_w&0xFFFF)+(m_w>>0x10)&mask;var result=(m_z<<0x10)+m_w&mask;result/=0x100000000;result+=0.5;return result*(Math.random()>.5?1:-1);};};for(var i=0,rcache;i<nBytes;i+=4){var _r=r((rcache||Math.random())*0x100000000);rcache=_r()*0x3ade67b7;words.push(_r()*0x100000000|0);}return new WordArray.init(words,nBytes);}});/**\r\n             * Encoder namespace.\r\n             */var C_enc=C.enc={};/**\r\n             * Hex encoding strategy.\r\n             */var Hex=C_enc.Hex={/**\r\n                 * Converts a word array to a hex string.\r\n                 *\r\n                 * @param {WordArray} wordArray The word array.\r\n                 *\r\n                 * @return {string} The hex string.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var hexString = CryptoJS.enc.Hex.stringify(wordArray);\r\n                 */stringify:function(wordArray){// Shortcuts\nvar words=wordArray.words;var sigBytes=wordArray.sigBytes;// Convert\nvar hexChars=[];for(var i=0;i<sigBytes;i++){var bite=words[i>>>2]>>>24-i%4*8&0xff;hexChars.push((bite>>>4).toString(16));hexChars.push((bite&0x0f).toString(16));}return hexChars.join('');},/**\r\n                 * Converts a hex string to a word array.\r\n                 *\r\n                 * @param {string} hexStr The hex string.\r\n                 *\r\n                 * @return {WordArray} The word array.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var wordArray = CryptoJS.enc.Hex.parse(hexString);\r\n                 */parse:function(hexStr){// Shortcut\nvar hexStrLength=hexStr.length;// Convert\nvar words=[];for(var i=0;i<hexStrLength;i+=2){words[i>>>3]|=parseInt(hexStr.substr(i,2),16)<<24-i%8*4;}return new WordArray.init(words,hexStrLength/2);}};/**\r\n             * Latin1 encoding strategy.\r\n             */var Latin1=C_enc.Latin1={/**\r\n                 * Converts a word array to a Latin1 string.\r\n                 *\r\n                 * @param {WordArray} wordArray The word array.\r\n                 *\r\n                 * @return {string} The Latin1 string.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);\r\n                 */stringify:function(wordArray){// Shortcuts\nvar words=wordArray.words;var sigBytes=wordArray.sigBytes;// Convert\nvar latin1Chars=[];for(var i=0;i<sigBytes;i++){var bite=words[i>>>2]>>>24-i%4*8&0xff;latin1Chars.push(String.fromCharCode(bite));}return latin1Chars.join('');},/**\r\n                 * Converts a Latin1 string to a word array.\r\n                 *\r\n                 * @param {string} latin1Str The Latin1 string.\r\n                 *\r\n                 * @return {WordArray} The word array.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var wordArray = CryptoJS.enc.Latin1.parse(latin1String);\r\n                 */parse:function(latin1Str){// Shortcut\nvar latin1StrLength=latin1Str.length;// Convert\nvar words=[];for(var i=0;i<latin1StrLength;i++){words[i>>>2]|=(latin1Str.charCodeAt(i)&0xff)<<24-i%4*8;}return new WordArray.init(words,latin1StrLength);}};/**\r\n             * UTF-8 encoding strategy.\r\n             */var Utf8=C_enc.Utf8={/**\r\n                 * Converts a word array to a UTF-8 string.\r\n                 *\r\n                 * @param {WordArray} wordArray The word array.\r\n                 *\r\n                 * @return {string} The UTF-8 string.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);\r\n                 */stringify:function(wordArray){try{return decodeURIComponent(escape(Latin1.stringify(wordArray)));}catch(e){throw new Error('Malformed UTF-8 data');}},/**\r\n                 * Converts a UTF-8 string to a word array.\r\n                 *\r\n                 * @param {string} utf8Str The UTF-8 string.\r\n                 *\r\n                 * @return {WordArray} The word array.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var wordArray = CryptoJS.enc.Utf8.parse(utf8String);\r\n                 */parse:function(utf8Str){return Latin1.parse(unescape(encodeURIComponent(utf8Str)));}};/**\r\n             * Abstract buffered block algorithm template.\r\n             *\r\n             * The property blockSize must be implemented in a concrete subtype.\r\n             *\r\n             * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0\r\n             */var BufferedBlockAlgorithm=C_lib.BufferedBlockAlgorithm=Base.extend({/**\r\n                 * Resets this block algorithm's data buffer to its initial state.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     bufferedBlockAlgorithm.reset();\r\n                 */reset:function(){// Initial values\nthis._data=new WordArray.init();this._nDataBytes=0;},/**\r\n                 * Adds new data to this block algorithm's buffer.\r\n                 *\r\n                 * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     bufferedBlockAlgorithm._append('data');\r\n                 *     bufferedBlockAlgorithm._append(wordArray);\r\n                 */_append:function(data){// Convert string to WordArray, else assume WordArray already\nif(typeof data=='string'){data=Utf8.parse(data);}// Append\nthis._data.concat(data);this._nDataBytes+=data.sigBytes;},/**\r\n                 * Processes available data blocks.\r\n                 *\r\n                 * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.\r\n                 *\r\n                 * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.\r\n                 *\r\n                 * @return {WordArray} The processed data.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var processedData = bufferedBlockAlgorithm._process();\r\n                 *     var processedData = bufferedBlockAlgorithm._process(!!'flush');\r\n                 */_process:function(doFlush){// Shortcuts\nvar data=this._data;var dataWords=data.words;var dataSigBytes=data.sigBytes;var blockSize=this.blockSize;var blockSizeBytes=blockSize*4;// Count blocks ready\nvar nBlocksReady=dataSigBytes/blockSizeBytes;if(doFlush){// Round up to include partial blocks\nnBlocksReady=Math.ceil(nBlocksReady);}else{// Round down to include only full blocks,\n// less the number of blocks that must remain in the buffer\nnBlocksReady=Math.max((nBlocksReady|0)-this._minBufferSize,0);}// Count words ready\nvar nWordsReady=nBlocksReady*blockSize;// Count bytes ready\nvar nBytesReady=Math.min(nWordsReady*4,dataSigBytes);// Process blocks\nif(nWordsReady){for(var offset=0;offset<nWordsReady;offset+=blockSize){// Perform concrete-algorithm logic\nthis._doProcessBlock(dataWords,offset);}// Remove processed words\nvar processedWords=dataWords.splice(0,nWordsReady);data.sigBytes-=nBytesReady;}// Return processed words\nreturn new WordArray.init(processedWords,nBytesReady);},/**\r\n                 * Creates a copy of this object.\r\n                 *\r\n                 * @return {Object} The clone.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var clone = bufferedBlockAlgorithm.clone();\r\n                 */clone:function(){var clone=Base.clone.call(this);clone._data=this._data.clone();return clone;},_minBufferSize:0});/**\r\n             * Abstract hasher template.\r\n             *\r\n             * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)\r\n             */var Hasher=C_lib.Hasher=BufferedBlockAlgorithm.extend({/**\r\n                 * Configuration options.\r\n                 */cfg:Base.extend(),/**\r\n                 * Initializes a newly created hasher.\r\n                 *\r\n                 * @param {Object} cfg (Optional) The configuration options to use for this hash computation.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var hasher = CryptoJS.algo.SHA256.create();\r\n                 */init:function(cfg){// Apply config defaults\nthis.cfg=this.cfg.extend(cfg);// Set initial values\nthis.reset();},/**\r\n                 * Resets this hasher to its initial state.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     hasher.reset();\r\n                 */reset:function(){// Reset data buffer\nBufferedBlockAlgorithm.reset.call(this);// Perform concrete-hasher logic\nthis._doReset();},/**\r\n                 * Updates this hasher with a message.\r\n                 *\r\n                 * @param {WordArray|string} messageUpdate The message to append.\r\n                 *\r\n                 * @return {Hasher} This hasher.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     hasher.update('message');\r\n                 *     hasher.update(wordArray);\r\n                 */update:function(messageUpdate){// Append\nthis._append(messageUpdate);// Update the hash\nthis._process();// Chainable\nreturn this;},/**\r\n                 * Finalizes the hash computation.\r\n                 * Note that the finalize operation is effectively a destructive, read-once operation.\r\n                 *\r\n                 * @param {WordArray|string} messageUpdate (Optional) A final message update.\r\n                 *\r\n                 * @return {WordArray} The hash.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var hash = hasher.finalize();\r\n                 *     var hash = hasher.finalize('message');\r\n                 *     var hash = hasher.finalize(wordArray);\r\n                 */finalize:function(messageUpdate){// Final message update\nif(messageUpdate){this._append(messageUpdate);}// Perform concrete-hasher logic\nvar hash=this._doFinalize();return hash;},blockSize:512/32,/**\r\n                 * Creates a shortcut function to a hasher's object interface.\r\n                 *\r\n                 * @param {Hasher} hasher The hasher to create a helper for.\r\n                 *\r\n                 * @return {Function} The shortcut function.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);\r\n                 */_createHelper:function(hasher){return function(message,cfg){return new hasher.init(cfg).finalize(message);};},/**\r\n                 * Creates a shortcut function to the HMAC's object interface.\r\n                 *\r\n                 * @param {Hasher} hasher The hasher to use in this HMAC helper.\r\n                 *\r\n                 * @return {Function} The shortcut function.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);\r\n                 */_createHmacHelper:function(hasher){return function(message,key){return new C_algo.HMAC.init(hasher,key).finalize(message);};}});/**\r\n             * Algorithm namespace.\r\n             */var C_algo=C.algo={};return C;}(Math);return CryptoJS;});/***/},/* 2 */ /***/function(module,exports){var core=module.exports={version:'2.6.11'};if(typeof __e=='number')__e=core;// eslint-disable-line no-undef\n/***/},/* 3 */ /***/function(module,exports,__nested_webpack_require_2924245__){var store=__nested_webpack_require_2924245__(61)('wks');var uid=__nested_webpack_require_2924245__(29);var Symbol=__nested_webpack_require_2924245__(8).Symbol;var USE_SYMBOL=typeof Symbol=='function';var $exports=module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)('Symbol.'+name));};$exports.store=store;/***/},/* 4 */ /***/function(module,exports,__nested_webpack_require_2924631__){\"use strict\";/* WEBPACK VAR INJECTION */(function(global){/*!\r\n     * The buffer module from node.js, for the browser.\r\n     *\r\n     * @author   Feross Aboukhadijeh <http://feross.org>\r\n     * @license  MIT\r\n     */ /* eslint-disable no-proto */var base64=__nested_webpack_require_2924631__(216);var ieee754=__nested_webpack_require_2924631__(217);var isArray=__nested_webpack_require_2924631__(132);exports.Buffer=Buffer;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;/**\r\n     * If `Buffer.TYPED_ARRAY_SUPPORT`:\r\n     *   === true    Use Uint8Array implementation (fastest)\r\n     *   === false   Use Object implementation (most compatible, even IE6)\r\n     *\r\n     * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\r\n     * Opera 11.6+, iOS 4.2+.\r\n     *\r\n     * Due to various browser bugs, sometimes the Object implementation will be used even\r\n     * when the browser supports typed arrays.\r\n     *\r\n     * Note:\r\n     *\r\n     *   - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\r\n     *     See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\r\n     *\r\n     *   - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\r\n     *\r\n     *   - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\r\n     *     incorrect length in some situations.\r\n    \r\n     * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\r\n     * get the Object implementation, which is slower but behaves correctly.\r\n     */Buffer.TYPED_ARRAY_SUPPORT=global.TYPED_ARRAY_SUPPORT!==undefined?global.TYPED_ARRAY_SUPPORT:typedArraySupport();/*\r\n     * Export kMaxLength after typed array support is determined.\r\n     */exports.kMaxLength=kMaxLength();function typedArraySupport(){try{var arr=new Uint8Array(1);arr.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42;}};return arr.foo()===42&&// typed array instances can be augmented\ntypeof arr.subarray==='function'&&// chrome 9-10 lack `subarray`\narr.subarray(1,1).byteLength===0;// ie10 has broken `subarray`\n}catch(e){return false;}}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?0x7fffffff:0x3fffffff;}function createBuffer(that,length){if(kMaxLength()<length){throw new RangeError('Invalid typed array length');}if(Buffer.TYPED_ARRAY_SUPPORT){// Return an augmented `Uint8Array` instance, for best performance\nthat=new Uint8Array(length);that.__proto__=Buffer.prototype;}else{// Fallback: Return an object instance of the Buffer class\nif(that===null){that=new Buffer(length);}that.length=length;}return that;}/**\r\n     * The Buffer constructor returns instances of `Uint8Array` that have their\r\n     * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\r\n     * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\r\n     * and the `Uint8Array` methods. Square bracket notation works as expected -- it\r\n     * returns a single octet.\r\n     *\r\n     * The `Uint8Array` prototype remains unmodified.\r\n     */function Buffer(arg,encodingOrOffset,length){if(!Buffer.TYPED_ARRAY_SUPPORT&&!(this instanceof Buffer)){return new Buffer(arg,encodingOrOffset,length);}// Common case.\nif(typeof arg==='number'){if(typeof encodingOrOffset==='string'){throw new Error('If encoding is specified then the first argument must be a string');}return allocUnsafe(this,arg);}return from(this,arg,encodingOrOffset,length);}Buffer.poolSize=8192;// not used by this implementation\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment=function(arr){arr.__proto__=Buffer.prototype;return arr;};function from(that,value,encodingOrOffset,length){if(typeof value==='number'){throw new TypeError('\"value\" argument must not be a number');}if(typeof ArrayBuffer!=='undefined'&&value instanceof ArrayBuffer){return fromArrayBuffer(that,value,encodingOrOffset,length);}if(typeof value==='string'){return fromString(that,value,encodingOrOffset);}return fromObject(that,value);}/**\r\n     * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\r\n     * if value is a number.\r\n     * Buffer.from(str[, encoding])\r\n     * Buffer.from(array)\r\n     * Buffer.from(buffer)\r\n     * Buffer.from(arrayBuffer[, byteOffset[, length]])\r\n     **/Buffer.from=function(value,encodingOrOffset,length){return from(null,value,encodingOrOffset,length);};if(Buffer.TYPED_ARRAY_SUPPORT){Buffer.prototype.__proto__=Uint8Array.prototype;Buffer.__proto__=Uint8Array;if(typeof Symbol!=='undefined'&&Symbol.species&&Buffer[Symbol.species]===Buffer){// Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\nObject.defineProperty(Buffer,Symbol.species,{value:null,configurable:true});}}function assertSize(size){if(typeof size!=='number'){throw new TypeError('\"size\" argument must be a number');}else if(size<0){throw new RangeError('\"size\" argument must not be negative');}}function alloc(that,size,fill,encoding){assertSize(size);if(size<=0){return createBuffer(that,size);}if(fill!==undefined){// Only pay attention to encoding if it's a string. This\n// prevents accidentally sending in a number that would\n// be interpretted as a start offset.\nreturn typeof encoding==='string'?createBuffer(that,size).fill(fill,encoding):createBuffer(that,size).fill(fill);}return createBuffer(that,size);}/**\r\n     * Creates a new filled Buffer instance.\r\n     * alloc(size[, fill[, encoding]])\r\n     **/Buffer.alloc=function(size,fill,encoding){return alloc(null,size,fill,encoding);};function allocUnsafe(that,size){assertSize(size);that=createBuffer(that,size<0?0:checked(size)|0);if(!Buffer.TYPED_ARRAY_SUPPORT){for(var i=0;i<size;++i){that[i]=0;}}return that;}/**\r\n     * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\r\n     * */Buffer.allocUnsafe=function(size){return allocUnsafe(null,size);};/**\r\n     * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\r\n     */Buffer.allocUnsafeSlow=function(size){return allocUnsafe(null,size);};function fromString(that,string,encoding){if(typeof encoding!=='string'||encoding===''){encoding='utf8';}if(!Buffer.isEncoding(encoding)){throw new TypeError('\"encoding\" must be a valid string encoding');}var length=byteLength(string,encoding)|0;that=createBuffer(that,length);var actual=that.write(string,encoding);if(actual!==length){// Writing a hex string, for example, that contains invalid characters will\n// cause everything after the first invalid character to be ignored. (e.g.\n// 'abxxcd' will be treated as 'ab')\nthat=that.slice(0,actual);}return that;}function fromArrayLike(that,array){var length=array.length<0?0:checked(array.length)|0;that=createBuffer(that,length);for(var i=0;i<length;i+=1){that[i]=array[i]&255;}return that;}function fromArrayBuffer(that,array,byteOffset,length){array.byteLength;// this throws if `array` is not a valid ArrayBuffer\nif(byteOffset<0||array.byteLength<byteOffset){throw new RangeError('\\'offset\\' is out of bounds');}if(array.byteLength<byteOffset+(length||0)){throw new RangeError('\\'length\\' is out of bounds');}if(byteOffset===undefined&&length===undefined){array=new Uint8Array(array);}else if(length===undefined){array=new Uint8Array(array,byteOffset);}else{array=new Uint8Array(array,byteOffset,length);}if(Buffer.TYPED_ARRAY_SUPPORT){// Return an augmented `Uint8Array` instance, for best performance\nthat=array;that.__proto__=Buffer.prototype;}else{// Fallback: Return an object instance of the Buffer class\nthat=fromArrayLike(that,array);}return that;}function fromObject(that,obj){if(Buffer.isBuffer(obj)){var len=checked(obj.length)|0;that=createBuffer(that,len);if(that.length===0){return that;}obj.copy(that,0,0,len);return that;}if(obj){if(typeof ArrayBuffer!=='undefined'&&obj.buffer instanceof ArrayBuffer||'length'in obj){if(typeof obj.length!=='number'||isnan(obj.length)){return createBuffer(that,0);}return fromArrayLike(that,obj);}if(obj.type==='Buffer'&&isArray(obj.data)){return fromArrayLike(that,obj.data);}}throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.');}function checked(length){// Note: cannot use `length < kMaxLength()` here because that fails when\n// length is NaN (which is otherwise coerced to zero.)\nif(length>=kMaxLength()){throw new RangeError('Attempt to allocate Buffer larger than maximum '+'size: 0x'+kMaxLength().toString(16)+' bytes');}return length|0;}function SlowBuffer(length){if(+length!=length){// eslint-disable-line eqeqeq\nlength=0;}return Buffer.alloc(+length);}Buffer.isBuffer=function isBuffer(b){return!!(b!=null&&b._isBuffer);};Buffer.compare=function compare(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b)){throw new TypeError('Arguments must be Buffers');}if(a===b)return 0;var x=a.length;var y=b.length;for(var i=0,len=Math.min(x,y);i<len;++i){if(a[i]!==b[i]){x=a[i];y=b[i];break;}}if(x<y)return-1;if(y<x)return 1;return 0;};Buffer.isEncoding=function isEncoding(encoding){switch(String(encoding).toLowerCase()){case'hex':case'utf8':case'utf-8':case'ascii':case'latin1':case'binary':case'base64':case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return true;default:return false;}};Buffer.concat=function concat(list,length){if(!isArray(list)){throw new TypeError('\"list\" argument must be an Array of Buffers');}if(list.length===0){return Buffer.alloc(0);}var i;if(length===undefined){length=0;for(i=0;i<list.length;++i){length+=list[i].length;}}var buffer=Buffer.allocUnsafe(length);var pos=0;for(i=0;i<list.length;++i){var buf=list[i];if(!Buffer.isBuffer(buf)){throw new TypeError('\"list\" argument must be an Array of Buffers');}buf.copy(buffer,pos);pos+=buf.length;}return buffer;};function byteLength(string,encoding){if(Buffer.isBuffer(string)){return string.length;}if(typeof ArrayBuffer!=='undefined'&&typeof ArrayBuffer.isView==='function'&&(ArrayBuffer.isView(string)||string instanceof ArrayBuffer)){return string.byteLength;}if(typeof string!=='string'){string=''+string;}var len=string.length;if(len===0)return 0;// Use a for loop to avoid recursion\nvar loweredCase=false;for(;;){switch(encoding){case'ascii':case'latin1':case'binary':return len;case'utf8':case'utf-8':case undefined:return utf8ToBytes(string).length;case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return len*2;case'hex':return len>>>1;case'base64':return base64ToBytes(string).length;default:if(loweredCase)return utf8ToBytes(string).length;// assume utf8\nencoding=(''+encoding).toLowerCase();loweredCase=true;}}}Buffer.byteLength=byteLength;function slowToString(encoding,start,end){var loweredCase=false;// No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n// property of a typed array.\n// This behaves neither like String nor Uint8Array in that we set start/end\n// to their upper/lower bounds if the value passed is out of range.\n// undefined is handled specially as per ECMA-262 6th Edition,\n// Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\nif(start===undefined||start<0){start=0;}// Return early if start > this.length. Done here to prevent potential uint32\n// coercion fail below.\nif(start>this.length){return'';}if(end===undefined||end>this.length){end=this.length;}if(end<=0){return'';}// Force coersion to uint32. This will also coerce falsey/NaN values to 0.\nend>>>=0;start>>>=0;if(end<=start){return'';}if(!encoding)encoding='utf8';while(true){switch(encoding){case'hex':return hexSlice(this,start,end);case'utf8':case'utf-8':return utf8Slice(this,start,end);case'ascii':return asciiSlice(this,start,end);case'latin1':case'binary':return latin1Slice(this,start,end);case'base64':return base64Slice(this,start,end);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError('Unknown encoding: '+encoding);encoding=(encoding+'').toLowerCase();loweredCase=true;}}}// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer=true;function swap(b,n,m){var i=b[n];b[n]=b[m];b[m]=i;}Buffer.prototype.swap16=function swap16(){var len=this.length;if(len%2!==0){throw new RangeError('Buffer size must be a multiple of 16-bits');}for(var i=0;i<len;i+=2){swap(this,i,i+1);}return this;};Buffer.prototype.swap32=function swap32(){var len=this.length;if(len%4!==0){throw new RangeError('Buffer size must be a multiple of 32-bits');}for(var i=0;i<len;i+=4){swap(this,i,i+3);swap(this,i+1,i+2);}return this;};Buffer.prototype.swap64=function swap64(){var len=this.length;if(len%8!==0){throw new RangeError('Buffer size must be a multiple of 64-bits');}for(var i=0;i<len;i+=8){swap(this,i,i+7);swap(this,i+1,i+6);swap(this,i+2,i+5);swap(this,i+3,i+4);}return this;};Buffer.prototype.toString=function toString(){var length=this.length|0;if(length===0)return'';if(arguments.length===0)return utf8Slice(this,0,length);return slowToString.apply(this,arguments);};Buffer.prototype.equals=function equals(b){if(!Buffer.isBuffer(b))throw new TypeError('Argument must be a Buffer');if(this===b)return true;return Buffer.compare(this,b)===0;};Buffer.prototype.inspect=function inspect(){var str='';var max=exports.INSPECT_MAX_BYTES;if(this.length>0){str=this.toString('hex',0,max).match(/.{2}/g).join(' ');if(this.length>max)str+=' ... ';}return'<Buffer '+str+'>';};Buffer.prototype.compare=function compare(target,start,end,thisStart,thisEnd){if(!Buffer.isBuffer(target)){throw new TypeError('Argument must be a Buffer');}if(start===undefined){start=0;}if(end===undefined){end=target?target.length:0;}if(thisStart===undefined){thisStart=0;}if(thisEnd===undefined){thisEnd=this.length;}if(start<0||end>target.length||thisStart<0||thisEnd>this.length){throw new RangeError('out of range index');}if(thisStart>=thisEnd&&start>=end){return 0;}if(thisStart>=thisEnd){return-1;}if(start>=end){return 1;}start>>>=0;end>>>=0;thisStart>>>=0;thisEnd>>>=0;if(this===target)return 0;var x=thisEnd-thisStart;var y=end-start;var len=Math.min(x,y);var thisCopy=this.slice(thisStart,thisEnd);var targetCopy=target.slice(start,end);for(var i=0;i<len;++i){if(thisCopy[i]!==targetCopy[i]){x=thisCopy[i];y=targetCopy[i];break;}}if(x<y)return-1;if(y<x)return 1;return 0;};// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf(buffer,val,byteOffset,encoding,dir){// Empty buffer means no match\nif(buffer.length===0)return-1;// Normalize byteOffset\nif(typeof byteOffset==='string'){encoding=byteOffset;byteOffset=0;}else if(byteOffset>0x7fffffff){byteOffset=0x7fffffff;}else if(byteOffset<-0x80000000){byteOffset=-0x80000000;}byteOffset=+byteOffset;// Coerce to Number.\nif(isNaN(byteOffset)){// byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\nbyteOffset=dir?0:buffer.length-1;}// Normalize byteOffset: negative offsets start from the end of the buffer\nif(byteOffset<0)byteOffset=buffer.length+byteOffset;if(byteOffset>=buffer.length){if(dir)return-1;else byteOffset=buffer.length-1;}else if(byteOffset<0){if(dir)byteOffset=0;else return-1;}// Normalize val\nif(typeof val==='string'){val=Buffer.from(val,encoding);}// Finally, search either indexOf (if dir is true) or lastIndexOf\nif(Buffer.isBuffer(val)){// Special case: looking for empty string/buffer always fails\nif(val.length===0){return-1;}return arrayIndexOf(buffer,val,byteOffset,encoding,dir);}else if(typeof val==='number'){val=val&0xFF;// Search for a byte value [0-255]\nif(Buffer.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==='function'){if(dir){return Uint8Array.prototype.indexOf.call(buffer,val,byteOffset);}else{return Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset);}}return arrayIndexOf(buffer,[val],byteOffset,encoding,dir);}throw new TypeError('val must be string, number or Buffer');}function arrayIndexOf(arr,val,byteOffset,encoding,dir){var indexSize=1;var arrLength=arr.length;var valLength=val.length;if(encoding!==undefined){encoding=String(encoding).toLowerCase();if(encoding==='ucs2'||encoding==='ucs-2'||encoding==='utf16le'||encoding==='utf-16le'){if(arr.length<2||val.length<2){return-1;}indexSize=2;arrLength/=2;valLength/=2;byteOffset/=2;}}function read(buf,i){if(indexSize===1){return buf[i];}else{return buf.readUInt16BE(i*indexSize);}}var i;if(dir){var foundIndex=-1;for(i=byteOffset;i<arrLength;i++){if(read(arr,i)===read(val,foundIndex===-1?0:i-foundIndex)){if(foundIndex===-1)foundIndex=i;if(i-foundIndex+1===valLength)return foundIndex*indexSize;}else{if(foundIndex!==-1)i-=i-foundIndex;foundIndex=-1;}}}else{if(byteOffset+valLength>arrLength)byteOffset=arrLength-valLength;for(i=byteOffset;i>=0;i--){var found=true;for(var j=0;j<valLength;j++){if(read(arr,i+j)!==read(val,j)){found=false;break;}}if(found)return i;}}return-1;}Buffer.prototype.includes=function includes(val,byteOffset,encoding){return this.indexOf(val,byteOffset,encoding)!==-1;};Buffer.prototype.indexOf=function indexOf(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,true);};Buffer.prototype.lastIndexOf=function lastIndexOf(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,false);};function hexWrite(buf,string,offset,length){offset=Number(offset)||0;var remaining=buf.length-offset;if(!length){length=remaining;}else{length=Number(length);if(length>remaining){length=remaining;}}// must be an even number of digits\nvar strLen=string.length;if(strLen%2!==0)throw new TypeError('Invalid hex string');if(length>strLen/2){length=strLen/2;}for(var i=0;i<length;++i){var parsed=parseInt(string.substr(i*2,2),16);if(isNaN(parsed))return i;buf[offset+i]=parsed;}return i;}function utf8Write(buf,string,offset,length){return blitBuffer(utf8ToBytes(string,buf.length-offset),buf,offset,length);}function asciiWrite(buf,string,offset,length){return blitBuffer(asciiToBytes(string),buf,offset,length);}function latin1Write(buf,string,offset,length){return asciiWrite(buf,string,offset,length);}function base64Write(buf,string,offset,length){return blitBuffer(base64ToBytes(string),buf,offset,length);}function ucs2Write(buf,string,offset,length){return blitBuffer(utf16leToBytes(string,buf.length-offset),buf,offset,length);}Buffer.prototype.write=function write(string,offset,length,encoding){// Buffer#write(string)\nif(offset===undefined){encoding='utf8';length=this.length;offset=0;// Buffer#write(string, encoding)\n}else if(length===undefined&&typeof offset==='string'){encoding=offset;length=this.length;offset=0;// Buffer#write(string, offset[, length][, encoding])\n}else if(isFinite(offset)){offset=offset|0;if(isFinite(length)){length=length|0;if(encoding===undefined)encoding='utf8';}else{encoding=length;length=undefined;}// legacy write(string, encoding, offset, length) - remove in v0.13\n}else{throw new Error('Buffer.write(string, encoding, offset[, length]) is no longer supported');}var remaining=this.length-offset;if(length===undefined||length>remaining)length=remaining;if(string.length>0&&(length<0||offset<0)||offset>this.length){throw new RangeError('Attempt to write outside buffer bounds');}if(!encoding)encoding='utf8';var loweredCase=false;for(;;){switch(encoding){case'hex':return hexWrite(this,string,offset,length);case'utf8':case'utf-8':return utf8Write(this,string,offset,length);case'ascii':return asciiWrite(this,string,offset,length);case'latin1':case'binary':return latin1Write(this,string,offset,length);case'base64':// Warning: maxLength not taken into account in base64Write\nreturn base64Write(this,string,offset,length);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError('Unknown encoding: '+encoding);encoding=(''+encoding).toLowerCase();loweredCase=true;}}};Buffer.prototype.toJSON=function toJSON(){return{type:'Buffer',data:Array.prototype.slice.call(this._arr||this,0)};};function base64Slice(buf,start,end){if(start===0&&end===buf.length){return base64.fromByteArray(buf);}else{return base64.fromByteArray(buf.slice(start,end));}}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);var res=[];var i=start;while(i<end){var firstByte=buf[i];var codePoint=null;var bytesPerSequence=firstByte>0xEF?4:firstByte>0xDF?3:firstByte>0xBF?2:1;if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:if(firstByte<0x80){codePoint=firstByte;}break;case 2:secondByte=buf[i+1];if((secondByte&0xC0)===0x80){tempCodePoint=(firstByte&0x1F)<<0x6|secondByte&0x3F;if(tempCodePoint>0x7F){codePoint=tempCodePoint;}}break;case 3:secondByte=buf[i+1];thirdByte=buf[i+2];if((secondByte&0xC0)===0x80&&(thirdByte&0xC0)===0x80){tempCodePoint=(firstByte&0xF)<<0xC|(secondByte&0x3F)<<0x6|thirdByte&0x3F;if(tempCodePoint>0x7FF&&(tempCodePoint<0xD800||tempCodePoint>0xDFFF)){codePoint=tempCodePoint;}}break;case 4:secondByte=buf[i+1];thirdByte=buf[i+2];fourthByte=buf[i+3];if((secondByte&0xC0)===0x80&&(thirdByte&0xC0)===0x80&&(fourthByte&0xC0)===0x80){tempCodePoint=(firstByte&0xF)<<0x12|(secondByte&0x3F)<<0xC|(thirdByte&0x3F)<<0x6|fourthByte&0x3F;if(tempCodePoint>0xFFFF&&tempCodePoint<0x110000){codePoint=tempCodePoint;}}}}if(codePoint===null){// we did not generate a valid codePoint so insert a\n// replacement char (U+FFFD) and advance only 1 byte\ncodePoint=0xFFFD;bytesPerSequence=1;}else if(codePoint>0xFFFF){// encode to utf16 (surrogate pair dance)\ncodePoint-=0x10000;res.push(codePoint>>>10&0x3FF|0xD800);codePoint=0xDC00|codePoint&0x3FF;}res.push(codePoint);i+=bytesPerSequence;}return decodeCodePointsArray(res);}// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH=0x1000;function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH){return String.fromCharCode.apply(String,codePoints);// avoid extra slice()\n}// Decode in chunks to avoid \"call stack size exceeded\".\nvar res='';var i=0;while(i<len){res+=String.fromCharCode.apply(String,codePoints.slice(i,i+=MAX_ARGUMENTS_LENGTH));}return res;}function asciiSlice(buf,start,end){var ret='';end=Math.min(buf.length,end);for(var i=start;i<end;++i){ret+=String.fromCharCode(buf[i]&0x7F);}return ret;}function latin1Slice(buf,start,end){var ret='';end=Math.min(buf.length,end);for(var i=start;i<end;++i){ret+=String.fromCharCode(buf[i]);}return ret;}function hexSlice(buf,start,end){var len=buf.length;if(!start||start<0)start=0;if(!end||end<0||end>len)end=len;var out='';for(var i=start;i<end;++i){out+=toHex(buf[i]);}return out;}function utf16leSlice(buf,start,end){var bytes=buf.slice(start,end);var res='';for(var i=0;i<bytes.length;i+=2){res+=String.fromCharCode(bytes[i]+bytes[i+1]*256);}return res;}Buffer.prototype.slice=function slice(start,end){var len=this.length;start=~~start;end=end===undefined?len:~~end;if(start<0){start+=len;if(start<0)start=0;}else if(start>len){start=len;}if(end<0){end+=len;if(end<0)end=0;}else if(end>len){end=len;}if(end<start)end=start;var newBuf;if(Buffer.TYPED_ARRAY_SUPPORT){newBuf=this.subarray(start,end);newBuf.__proto__=Buffer.prototype;}else{var sliceLen=end-start;newBuf=new Buffer(sliceLen,undefined);for(var i=0;i<sliceLen;++i){newBuf[i]=this[i+start];}}return newBuf;};/*\r\n     * Need to make sure that buffer isn't trying to write out of bounds.\r\n     */function checkOffset(offset,ext,length){if(offset%1!==0||offset<0)throw new RangeError('offset is not uint');if(offset+ext>length)throw new RangeError('Trying to access beyond buffer length');}Buffer.prototype.readUIntLE=function readUIntLE(offset,byteLength,noAssert){offset=offset|0;byteLength=byteLength|0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i<byteLength&&(mul*=0x100)){val+=this[offset+i]*mul;}return val;};Buffer.prototype.readUIntBE=function readUIntBE(offset,byteLength,noAssert){offset=offset|0;byteLength=byteLength|0;if(!noAssert){checkOffset(offset,byteLength,this.length);}var val=this[offset+--byteLength];var mul=1;while(byteLength>0&&(mul*=0x100)){val+=this[offset+--byteLength]*mul;}return val;};Buffer.prototype.readUInt8=function readUInt8(offset,noAssert){if(!noAssert)checkOffset(offset,1,this.length);return this[offset];};Buffer.prototype.readUInt16LE=function readUInt16LE(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]|this[offset+1]<<8;};Buffer.prototype.readUInt16BE=function readUInt16BE(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]<<8|this[offset+1];};Buffer.prototype.readUInt32LE=function readUInt32LE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*0x1000000;};Buffer.prototype.readUInt32BE=function readUInt32BE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]*0x1000000+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3]);};Buffer.prototype.readIntLE=function readIntLE(offset,byteLength,noAssert){offset=offset|0;byteLength=byteLength|0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i<byteLength&&(mul*=0x100)){val+=this[offset+i]*mul;}mul*=0x80;if(val>=mul)val-=Math.pow(2,8*byteLength);return val;};Buffer.prototype.readIntBE=function readIntBE(offset,byteLength,noAssert){offset=offset|0;byteLength=byteLength|0;if(!noAssert)checkOffset(offset,byteLength,this.length);var i=byteLength;var mul=1;var val=this[offset+--i];while(i>0&&(mul*=0x100)){val+=this[offset+--i]*mul;}mul*=0x80;if(val>=mul)val-=Math.pow(2,8*byteLength);return val;};Buffer.prototype.readInt8=function readInt8(offset,noAssert){if(!noAssert)checkOffset(offset,1,this.length);if(!(this[offset]&0x80))return this[offset];return(0xff-this[offset]+1)*-1;};Buffer.prototype.readInt16LE=function readInt16LE(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return val&0x8000?val|0xFFFF0000:val;};Buffer.prototype.readInt16BE=function readInt16BE(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return val&0x8000?val|0xFFFF0000:val;};Buffer.prototype.readInt32LE=function readInt32LE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24;};Buffer.prototype.readInt32BE=function readInt32BE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3];};Buffer.prototype.readFloatLE=function readFloatLE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,true,23,4);};Buffer.prototype.readFloatBE=function readFloatBE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,false,23,4);};Buffer.prototype.readDoubleLE=function readDoubleLE(offset,noAssert){if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,true,52,8);};Buffer.prototype.readDoubleBE=function readDoubleBE(offset,noAssert){if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,false,52,8);};function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(value>max||value<min)throw new RangeError('\"value\" argument is out of bounds');if(offset+ext>buf.length)throw new RangeError('Index out of range');}Buffer.prototype.writeUIntLE=function writeUIntLE(value,offset,byteLength,noAssert){value=+value;offset=offset|0;byteLength=byteLength|0;if(!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0);}var mul=1;var i=0;this[offset]=value&0xFF;while(++i<byteLength&&(mul*=0x100)){this[offset+i]=value/mul&0xFF;}return offset+byteLength;};Buffer.prototype.writeUIntBE=function writeUIntBE(value,offset,byteLength,noAssert){value=+value;offset=offset|0;byteLength=byteLength|0;if(!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0);}var i=byteLength-1;var mul=1;this[offset+i]=value&0xFF;while(--i>=0&&(mul*=0x100)){this[offset+i]=value/mul&0xFF;}return offset+byteLength;};Buffer.prototype.writeUInt8=function writeUInt8(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,1,0xff,0);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);this[offset]=value&0xff;return offset+1;};function objectWriteUInt16(buf,value,offset,littleEndian){if(value<0)value=0xffff+value+1;for(var i=0,j=Math.min(buf.length-offset,2);i<j;++i){buf[offset+i]=(value&0xff<<8*(littleEndian?i:1-i))>>>(littleEndian?i:1-i)*8;}}Buffer.prototype.writeUInt16LE=function writeUInt16LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,2,0xffff,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value&0xff;this[offset+1]=value>>>8;}else{objectWriteUInt16(this,value,offset,true);}return offset+2;};Buffer.prototype.writeUInt16BE=function writeUInt16BE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,2,0xffff,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value&0xff;}else{objectWriteUInt16(this,value,offset,false);}return offset+2;};function objectWriteUInt32(buf,value,offset,littleEndian){if(value<0)value=0xffffffff+value+1;for(var i=0,j=Math.min(buf.length-offset,4);i<j;++i){buf[offset+i]=value>>>(littleEndian?i:3-i)*8&0xff;}}Buffer.prototype.writeUInt32LE=function writeUInt32LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,4,0xffffffff,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset+3]=value>>>24;this[offset+2]=value>>>16;this[offset+1]=value>>>8;this[offset]=value&0xff;}else{objectWriteUInt32(this,value,offset,true);}return offset+4;};Buffer.prototype.writeUInt32BE=function writeUInt32BE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,4,0xffffffff,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value&0xff;}else{objectWriteUInt32(this,value,offset,false);}return offset+4;};Buffer.prototype.writeIntLE=function writeIntLE(value,offset,byteLength,noAssert){value=+value;offset=offset|0;if(!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit);}var i=0;var mul=1;var sub=0;this[offset]=value&0xFF;while(++i<byteLength&&(mul*=0x100)){if(value<0&&sub===0&&this[offset+i-1]!==0){sub=1;}this[offset+i]=(value/mul>>0)-sub&0xFF;}return offset+byteLength;};Buffer.prototype.writeIntBE=function writeIntBE(value,offset,byteLength,noAssert){value=+value;offset=offset|0;if(!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit);}var i=byteLength-1;var mul=1;var sub=0;this[offset+i]=value&0xFF;while(--i>=0&&(mul*=0x100)){if(value<0&&sub===0&&this[offset+i+1]!==0){sub=1;}this[offset+i]=(value/mul>>0)-sub&0xFF;}return offset+byteLength;};Buffer.prototype.writeInt8=function writeInt8(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,1,0x7f,-0x80);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);if(value<0)value=0xff+value+1;this[offset]=value&0xff;return offset+1;};Buffer.prototype.writeInt16LE=function writeInt16LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,2,0x7fff,-0x8000);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value&0xff;this[offset+1]=value>>>8;}else{objectWriteUInt16(this,value,offset,true);}return offset+2;};Buffer.prototype.writeInt16BE=function writeInt16BE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,2,0x7fff,-0x8000);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value&0xff;}else{objectWriteUInt16(this,value,offset,false);}return offset+2;};Buffer.prototype.writeInt32LE=function writeInt32LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,4,0x7fffffff,-0x80000000);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value&0xff;this[offset+1]=value>>>8;this[offset+2]=value>>>16;this[offset+3]=value>>>24;}else{objectWriteUInt32(this,value,offset,true);}return offset+4;};Buffer.prototype.writeInt32BE=function writeInt32BE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,4,0x7fffffff,-0x80000000);if(value<0)value=0xffffffff+value+1;if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value&0xff;}else{objectWriteUInt32(this,value,offset,false);}return offset+4;};function checkIEEE754(buf,value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError('Index out of range');if(offset<0)throw new RangeError('Index out of range');}function writeFloat(buf,value,offset,littleEndian,noAssert){if(!noAssert){checkIEEE754(buf,value,offset,4,3.4028234663852886e+38,-3.4028234663852886e+38);}ieee754.write(buf,value,offset,littleEndian,23,4);return offset+4;}Buffer.prototype.writeFloatLE=function writeFloatLE(value,offset,noAssert){return writeFloat(this,value,offset,true,noAssert);};Buffer.prototype.writeFloatBE=function writeFloatBE(value,offset,noAssert){return writeFloat(this,value,offset,false,noAssert);};function writeDouble(buf,value,offset,littleEndian,noAssert){if(!noAssert){checkIEEE754(buf,value,offset,8,1.7976931348623157E+308,-1.7976931348623157E+308);}ieee754.write(buf,value,offset,littleEndian,52,8);return offset+8;}Buffer.prototype.writeDoubleLE=function writeDoubleLE(value,offset,noAssert){return writeDouble(this,value,offset,true,noAssert);};Buffer.prototype.writeDoubleBE=function writeDoubleBE(value,offset,noAssert){return writeDouble(this,value,offset,false,noAssert);};// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy=function copy(target,targetStart,start,end){if(!start)start=0;if(!end&&end!==0)end=this.length;if(targetStart>=target.length)targetStart=target.length;if(!targetStart)targetStart=0;if(end>0&&end<start)end=start;// Copy 0 bytes; we're done\nif(end===start)return 0;if(target.length===0||this.length===0)return 0;// Fatal error conditions\nif(targetStart<0){throw new RangeError('targetStart out of bounds');}if(start<0||start>=this.length)throw new RangeError('sourceStart out of bounds');if(end<0)throw new RangeError('sourceEnd out of bounds');// Are we oob?\nif(end>this.length)end=this.length;if(target.length-targetStart<end-start){end=target.length-targetStart+start;}var len=end-start;var i;if(this===target&&start<targetStart&&targetStart<end){// descending copy from end\nfor(i=len-1;i>=0;--i){target[i+targetStart]=this[i+start];}}else if(len<1000||!Buffer.TYPED_ARRAY_SUPPORT){// ascending copy from start\nfor(i=0;i<len;++i){target[i+targetStart]=this[i+start];}}else{Uint8Array.prototype.set.call(target,this.subarray(start,start+len),targetStart);}return len;};// Usage:\n//    buffer.fill(number[, offset[, end]])\n//    buffer.fill(buffer[, offset[, end]])\n//    buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill=function fill(val,start,end,encoding){// Handle string cases:\nif(typeof val==='string'){if(typeof start==='string'){encoding=start;start=0;end=this.length;}else if(typeof end==='string'){encoding=end;end=this.length;}if(val.length===1){var code=val.charCodeAt(0);if(code<256){val=code;}}if(encoding!==undefined&&typeof encoding!=='string'){throw new TypeError('encoding must be a string');}if(typeof encoding==='string'&&!Buffer.isEncoding(encoding)){throw new TypeError('Unknown encoding: '+encoding);}}else if(typeof val==='number'){val=val&255;}// Invalid ranges are not set to a default, so can range check early.\nif(start<0||this.length<start||this.length<end){throw new RangeError('Out of range index');}if(end<=start){return this;}start=start>>>0;end=end===undefined?this.length:end>>>0;if(!val)val=0;var i;if(typeof val==='number'){for(i=start;i<end;++i){this[i]=val;}}else{var bytes=Buffer.isBuffer(val)?val:utf8ToBytes(new Buffer(val,encoding).toString());var len=bytes.length;for(i=0;i<end-start;++i){this[i+start]=bytes[i%len];}}return this;};// HELPER FUNCTIONS\n// ================\nvar INVALID_BASE64_RE=/[^+\\/0-9A-Za-z-_]/g;function base64clean(str){// Node strips out invalid characters like \\n and \\t from the string, base64-js does not\nstr=stringtrim(str).replace(INVALID_BASE64_RE,'');// Node converts strings with length < 2 to ''\nif(str.length<2)return'';// Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\nwhile(str.length%4!==0){str=str+'=';}return str;}function stringtrim(str){if(str.trim)return str.trim();return str.replace(/^\\s+|\\s+$/g,'');}function toHex(n){if(n<16)return'0'+n.toString(16);return n.toString(16);}function utf8ToBytes(string,units){units=units||Infinity;var codePoint;var length=string.length;var leadSurrogate=null;var bytes=[];for(var i=0;i<length;++i){codePoint=string.charCodeAt(i);// is surrogate component\nif(codePoint>0xD7FF&&codePoint<0xE000){// last char was a lead\nif(!leadSurrogate){// no lead yet\nif(codePoint>0xDBFF){// unexpected trail\nif((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD);continue;}else if(i+1===length){// unpaired lead\nif((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD);continue;}// valid lead\nleadSurrogate=codePoint;continue;}// 2 leads in a row\nif(codePoint<0xDC00){if((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD);leadSurrogate=codePoint;continue;}// valid surrogate pair\ncodePoint=(leadSurrogate-0xD800<<10|codePoint-0xDC00)+0x10000;}else if(leadSurrogate){// valid bmp char, but last char was a lead\nif((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD);}leadSurrogate=null;// encode utf8\nif(codePoint<0x80){if((units-=1)<0)break;bytes.push(codePoint);}else if(codePoint<0x800){if((units-=2)<0)break;bytes.push(codePoint>>0x6|0xC0,codePoint&0x3F|0x80);}else if(codePoint<0x10000){if((units-=3)<0)break;bytes.push(codePoint>>0xC|0xE0,codePoint>>0x6&0x3F|0x80,codePoint&0x3F|0x80);}else if(codePoint<0x110000){if((units-=4)<0)break;bytes.push(codePoint>>0x12|0xF0,codePoint>>0xC&0x3F|0x80,codePoint>>0x6&0x3F|0x80,codePoint&0x3F|0x80);}else{throw new Error('Invalid code point');}}return bytes;}function asciiToBytes(str){var byteArray=[];for(var i=0;i<str.length;++i){// Node's code seems to be doing this and not & 0x7F..\nbyteArray.push(str.charCodeAt(i)&0xFF);}return byteArray;}function utf16leToBytes(str,units){var c,hi,lo;var byteArray=[];for(var i=0;i<str.length;++i){if((units-=2)<0)break;c=str.charCodeAt(i);hi=c>>8;lo=c%256;byteArray.push(lo);byteArray.push(hi);}return byteArray;}function base64ToBytes(str){return base64.toByteArray(base64clean(str));}function blitBuffer(src,dst,offset,length){for(var i=0;i<length;++i){if(i+offset>=dst.length||i>=src.length)break;dst[i+offset]=src[i];}return i;}function isnan(val){return val!==val;// eslint-disable-line no-self-compare\n}/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_2924631__(22));/***/},/* 5 */ /***/function(module,exports,__nested_webpack_require_2964192__){var global=__nested_webpack_require_2964192__(8);var core=__nested_webpack_require_2964192__(39);var hide=__nested_webpack_require_2964192__(15);var redefine=__nested_webpack_require_2964192__(23);var ctx=__nested_webpack_require_2964192__(52);var PROTOTYPE='prototype';var $export=function(type,name,source){var IS_FORCED=type&$export.F;var IS_GLOBAL=type&$export.G;var IS_STATIC=type&$export.S;var IS_PROTO=type&$export.P;var IS_BIND=type&$export.B;var target=IS_GLOBAL?global:IS_STATIC?global[name]||(global[name]={}):(global[name]||{})[PROTOTYPE];var exports=IS_GLOBAL?core:core[name]||(core[name]={});var expProto=exports[PROTOTYPE]||(exports[PROTOTYPE]={});var key,own,out,exp;if(IS_GLOBAL)source=name;for(key in source){// contains in native\nown=!IS_FORCED&&target&&target[key]!==undefined;// export native or passed\nout=(own?target:source)[key];// bind timers to global for call from export context\nexp=IS_BIND&&own?ctx(out,global):IS_PROTO&&typeof out=='function'?ctx(Function.call,out):out;// extend global\nif(target)redefine(target,key,out,type&$export.U);// export\nif(exports[key]!=out)hide(exports,key,exp);if(IS_PROTO&&expProto[key]!=out)expProto[key]=out;}};global.core=core;// type bitmap\n$export.F=1;// forced\n$export.G=2;// global\n$export.S=4;// static\n$export.P=8;// proto\n$export.B=16;// bind\n$export.W=32;// wrap\n$export.U=64;// safe\n$export.R=128;// real proto method for `library`\nmodule.exports=$export;/***/},/* 6 */ /***/function(module,exports,__nested_webpack_require_2965609__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_2965609__(1),__nested_webpack_require_2965609__(33));}else{}})(this,function(CryptoJS){/**\r\n         * Cipher core components.\r\n         */CryptoJS.lib.Cipher||function(undefined){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var Base=C_lib.Base;var WordArray=C_lib.WordArray;var BufferedBlockAlgorithm=C_lib.BufferedBlockAlgorithm;var C_enc=C.enc;var Utf8=C_enc.Utf8;var Base64=C_enc.Base64;var C_algo=C.algo;var EvpKDF=C_algo.EvpKDF;/**\r\n             * Abstract base cipher template.\r\n             *\r\n             * @property {number} keySize This cipher's key size. Default: 4 (128 bits)\r\n             * @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)\r\n             * @property {number} _ENC_XFORM_MODE A constant representing encryption mode.\r\n             * @property {number} _DEC_XFORM_MODE A constant representing decryption mode.\r\n             */var Cipher=C_lib.Cipher=BufferedBlockAlgorithm.extend({/**\r\n                 * Configuration options.\r\n                 *\r\n                 * @property {WordArray} iv The IV to use for this operation.\r\n                 */cfg:Base.extend(),/**\r\n                 * Creates this cipher in encryption mode.\r\n                 *\r\n                 * @param {WordArray} key The key.\r\n                 * @param {Object} cfg (Optional) The configuration options to use for this operation.\r\n                 *\r\n                 * @return {Cipher} A cipher instance.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });\r\n                 */createEncryptor:function(key,cfg){return this.create(this._ENC_XFORM_MODE,key,cfg);},/**\r\n                 * Creates this cipher in decryption mode.\r\n                 *\r\n                 * @param {WordArray} key The key.\r\n                 * @param {Object} cfg (Optional) The configuration options to use for this operation.\r\n                 *\r\n                 * @return {Cipher} A cipher instance.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });\r\n                 */createDecryptor:function(key,cfg){return this.create(this._DEC_XFORM_MODE,key,cfg);},/**\r\n                 * Initializes a newly created cipher.\r\n                 *\r\n                 * @param {number} xformMode Either the encryption or decryption transormation mode constant.\r\n                 * @param {WordArray} key The key.\r\n                 * @param {Object} cfg (Optional) The configuration options to use for this operation.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });\r\n                 */init:function(xformMode,key,cfg){// Apply config defaults\nthis.cfg=this.cfg.extend(cfg);// Store transform mode and key\nthis._xformMode=xformMode;this._key=key;// Set initial values\nthis.reset();},/**\r\n                 * Resets this cipher to its initial state.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     cipher.reset();\r\n                 */reset:function(){// Reset data buffer\nBufferedBlockAlgorithm.reset.call(this);// Perform concrete-cipher logic\nthis._doReset();},/**\r\n                 * Adds data to be encrypted or decrypted.\r\n                 *\r\n                 * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.\r\n                 *\r\n                 * @return {WordArray} The data after processing.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var encrypted = cipher.process('data');\r\n                 *     var encrypted = cipher.process(wordArray);\r\n                 */process:function(dataUpdate){// Append\nthis._append(dataUpdate);// Process available blocks\nreturn this._process();},/**\r\n                 * Finalizes the encryption or decryption process.\r\n                 * Note that the finalize operation is effectively a destructive, read-once operation.\r\n                 *\r\n                 * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.\r\n                 *\r\n                 * @return {WordArray} The data after final processing.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var encrypted = cipher.finalize();\r\n                 *     var encrypted = cipher.finalize('data');\r\n                 *     var encrypted = cipher.finalize(wordArray);\r\n                 */finalize:function(dataUpdate){// Final data update\nif(dataUpdate){this._append(dataUpdate);}// Perform concrete-cipher logic\nvar finalProcessedData=this._doFinalize();return finalProcessedData;},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,/**\r\n                 * Creates shortcut functions to a cipher's object interface.\r\n                 *\r\n                 * @param {Cipher} cipher The cipher to create a helper for.\r\n                 *\r\n                 * @return {Object} An object with encrypt and decrypt shortcut functions.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);\r\n                 */_createHelper:function(){function selectCipherStrategy(key){if(typeof key=='string'){return PasswordBasedCipher;}else{return SerializableCipher;}}return function(cipher){return{encrypt:function(message,key,cfg){return selectCipherStrategy(key).encrypt(cipher,message,key,cfg);},decrypt:function(ciphertext,key,cfg){return selectCipherStrategy(key).decrypt(cipher,ciphertext,key,cfg);}};};}()});/**\r\n             * Abstract base stream cipher template.\r\n             *\r\n             * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)\r\n             */var StreamCipher=C_lib.StreamCipher=Cipher.extend({_doFinalize:function(){// Process partial blocks\nvar finalProcessedBlocks=this._process(!!'flush');return finalProcessedBlocks;},blockSize:1});/**\r\n             * Mode namespace.\r\n             */var C_mode=C.mode={};/**\r\n             * Abstract base block cipher mode template.\r\n             */var BlockCipherMode=C_lib.BlockCipherMode=Base.extend({/**\r\n                 * Creates this mode for encryption.\r\n                 *\r\n                 * @param {Cipher} cipher A block cipher instance.\r\n                 * @param {Array} iv The IV words.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);\r\n                 */createEncryptor:function(cipher,iv){return this.Encryptor.create(cipher,iv);},/**\r\n                 * Creates this mode for decryption.\r\n                 *\r\n                 * @param {Cipher} cipher A block cipher instance.\r\n                 * @param {Array} iv The IV words.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);\r\n                 */createDecryptor:function(cipher,iv){return this.Decryptor.create(cipher,iv);},/**\r\n                 * Initializes a newly created mode.\r\n                 *\r\n                 * @param {Cipher} cipher A block cipher instance.\r\n                 * @param {Array} iv The IV words.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);\r\n                 */init:function(cipher,iv){this._cipher=cipher;this._iv=iv;}});/**\r\n             * Cipher Block Chaining mode.\r\n             */var CBC=C_mode.CBC=function(){/**\r\n                 * Abstract base CBC mode.\r\n                 */var CBC=BlockCipherMode.extend();/**\r\n                 * CBC encryptor.\r\n                 */CBC.Encryptor=CBC.extend({/**\r\n                     * Processes the data block at offset.\r\n                     *\r\n                     * @param {Array} words The data words to operate on.\r\n                     * @param {number} offset The offset where the block starts.\r\n                     *\r\n                     * @example\r\n                     *\r\n                     *     mode.processBlock(data.words, offset);\r\n                     */processBlock:function(words,offset){// Shortcuts\nvar cipher=this._cipher;var blockSize=cipher.blockSize;// XOR and encrypt\nxorBlock.call(this,words,offset,blockSize);cipher.encryptBlock(words,offset);// Remember this block to use with next block\nthis._prevBlock=words.slice(offset,offset+blockSize);}});/**\r\n                 * CBC decryptor.\r\n                 */CBC.Decryptor=CBC.extend({/**\r\n                     * Processes the data block at offset.\r\n                     *\r\n                     * @param {Array} words The data words to operate on.\r\n                     * @param {number} offset The offset where the block starts.\r\n                     *\r\n                     * @example\r\n                     *\r\n                     *     mode.processBlock(data.words, offset);\r\n                     */processBlock:function(words,offset){// Shortcuts\nvar cipher=this._cipher;var blockSize=cipher.blockSize;// Remember this block to use with next block\nvar thisBlock=words.slice(offset,offset+blockSize);// Decrypt and XOR\ncipher.decryptBlock(words,offset);xorBlock.call(this,words,offset,blockSize);// This block becomes the previous block\nthis._prevBlock=thisBlock;}});function xorBlock(words,offset,blockSize){// Shortcut\nvar iv=this._iv;// Choose mixing block\nif(iv){var block=iv;// Remove IV for subsequent blocks\nthis._iv=undefined;}else{var block=this._prevBlock;}// XOR blocks\nfor(var i=0;i<blockSize;i++){words[offset+i]^=block[i];}}return CBC;}();/**\r\n             * Padding namespace.\r\n             */var C_pad=C.pad={};/**\r\n             * PKCS #5/7 padding strategy.\r\n             */var Pkcs7=C_pad.Pkcs7={/**\r\n                 * Pads data using the algorithm defined in PKCS #5/7.\r\n                 *\r\n                 * @param {WordArray} data The data to pad.\r\n                 * @param {number} blockSize The multiple that the data should be padded to.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     CryptoJS.pad.Pkcs7.pad(wordArray, 4);\r\n                 */pad:function(data,blockSize){// Shortcut\nvar blockSizeBytes=blockSize*4;// Count padding bytes\nvar nPaddingBytes=blockSizeBytes-data.sigBytes%blockSizeBytes;// Create padding word\nvar paddingWord=nPaddingBytes<<24|nPaddingBytes<<16|nPaddingBytes<<8|nPaddingBytes;// Create padding\nvar paddingWords=[];for(var i=0;i<nPaddingBytes;i+=4){paddingWords.push(paddingWord);}var padding=WordArray.create(paddingWords,nPaddingBytes);// Add padding\ndata.concat(padding);},/**\r\n                 * Unpads data that had been padded using the algorithm defined in PKCS #5/7.\r\n                 *\r\n                 * @param {WordArray} data The data to unpad.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     CryptoJS.pad.Pkcs7.unpad(wordArray);\r\n                 */unpad:function(data){// Get number of padding bytes from last byte\nvar nPaddingBytes=data.words[data.sigBytes-1>>>2]&0xff;// Remove padding\ndata.sigBytes-=nPaddingBytes;}};/**\r\n             * Abstract base block cipher template.\r\n             *\r\n             * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)\r\n             */var BlockCipher=C_lib.BlockCipher=Cipher.extend({/**\r\n                 * Configuration options.\r\n                 *\r\n                 * @property {Mode} mode The block mode to use. Default: CBC\r\n                 * @property {Padding} padding The padding strategy to use. Default: Pkcs7\r\n                 */cfg:Cipher.cfg.extend({mode:CBC,padding:Pkcs7}),reset:function(){// Reset cipher\nCipher.reset.call(this);// Shortcuts\nvar cfg=this.cfg;var iv=cfg.iv;var mode=cfg.mode;// Reset block mode\nif(this._xformMode==this._ENC_XFORM_MODE){var modeCreator=mode.createEncryptor;}else/* if (this._xformMode == this._DEC_XFORM_MODE) */{var modeCreator=mode.createDecryptor;// Keep at least one block in the buffer for unpadding\nthis._minBufferSize=1;}if(this._mode&&this._mode.__creator==modeCreator){this._mode.init(this,iv&&iv.words);}else{this._mode=modeCreator.call(mode,this,iv&&iv.words);this._mode.__creator=modeCreator;}},_doProcessBlock:function(words,offset){this._mode.processBlock(words,offset);},_doFinalize:function(){// Shortcut\nvar padding=this.cfg.padding;// Finalize\nif(this._xformMode==this._ENC_XFORM_MODE){// Pad data\npadding.pad(this._data,this.blockSize);// Process final blocks\nvar finalProcessedBlocks=this._process(!!'flush');}else/* if (this._xformMode == this._DEC_XFORM_MODE) */{// Process final blocks\nvar finalProcessedBlocks=this._process(!!'flush');// Unpad data\npadding.unpad(finalProcessedBlocks);}return finalProcessedBlocks;},blockSize:128/32});/**\r\n             * A collection of cipher parameters.\r\n             *\r\n             * @property {WordArray} ciphertext The raw ciphertext.\r\n             * @property {WordArray} key The key to this ciphertext.\r\n             * @property {WordArray} iv The IV used in the ciphering operation.\r\n             * @property {WordArray} salt The salt used with a key derivation function.\r\n             * @property {Cipher} algorithm The cipher algorithm.\r\n             * @property {Mode} mode The block mode used in the ciphering operation.\r\n             * @property {Padding} padding The padding scheme used in the ciphering operation.\r\n             * @property {number} blockSize The block size of the cipher.\r\n             * @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.\r\n             */var CipherParams=C_lib.CipherParams=Base.extend({/**\r\n                 * Initializes a newly created cipher params object.\r\n                 *\r\n                 * @param {Object} cipherParams An object with any of the possible cipher parameters.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var cipherParams = CryptoJS.lib.CipherParams.create({\r\n                 *         ciphertext: ciphertextWordArray,\r\n                 *         key: keyWordArray,\r\n                 *         iv: ivWordArray,\r\n                 *         salt: saltWordArray,\r\n                 *         algorithm: CryptoJS.algo.AES,\r\n                 *         mode: CryptoJS.mode.CBC,\r\n                 *         padding: CryptoJS.pad.PKCS7,\r\n                 *         blockSize: 4,\r\n                 *         formatter: CryptoJS.format.OpenSSL\r\n                 *     });\r\n                 */init:function(cipherParams){this.mixIn(cipherParams);},/**\r\n                 * Converts this cipher params object to a string.\r\n                 *\r\n                 * @param {Format} formatter (Optional) The formatting strategy to use.\r\n                 *\r\n                 * @return {string} The stringified cipher params.\r\n                 *\r\n                 * @throws Error If neither the formatter nor the default formatter is set.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var string = cipherParams + '';\r\n                 *     var string = cipherParams.toString();\r\n                 *     var string = cipherParams.toString(CryptoJS.format.OpenSSL);\r\n                 */toString:function(formatter){return(formatter||this.formatter).stringify(this);}});/**\r\n             * Format namespace.\r\n             */var C_format=C.format={};/**\r\n             * OpenSSL formatting strategy.\r\n             */var OpenSSLFormatter=C_format.OpenSSL={/**\r\n                 * Converts a cipher params object to an OpenSSL-compatible string.\r\n                 *\r\n                 * @param {CipherParams} cipherParams The cipher params object.\r\n                 *\r\n                 * @return {string} The OpenSSL-compatible string.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);\r\n                 */stringify:function(cipherParams){// Shortcuts\nvar ciphertext=cipherParams.ciphertext;var salt=cipherParams.salt;// Format\nif(salt){var wordArray=WordArray.create([0x53616c74,0x65645f5f]).concat(salt).concat(ciphertext);}else{var wordArray=ciphertext;}return wordArray.toString(Base64);},/**\r\n                 * Converts an OpenSSL-compatible string to a cipher params object.\r\n                 *\r\n                 * @param {string} openSSLStr The OpenSSL-compatible string.\r\n                 *\r\n                 * @return {CipherParams} The cipher params object.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);\r\n                 */parse:function(openSSLStr){// Parse base64\nvar ciphertext=Base64.parse(openSSLStr);// Shortcut\nvar ciphertextWords=ciphertext.words;// Test for salt\nif(ciphertextWords[0]==0x53616c74&&ciphertextWords[1]==0x65645f5f){// Extract salt\nvar salt=WordArray.create(ciphertextWords.slice(2,4));// Remove salt from ciphertext\nciphertextWords.splice(0,4);ciphertext.sigBytes-=16;}return CipherParams.create({ciphertext:ciphertext,salt:salt});}};/**\r\n             * A cipher wrapper that returns ciphertext as a serializable cipher params object.\r\n             */var SerializableCipher=C_lib.SerializableCipher=Base.extend({/**\r\n                 * Configuration options.\r\n                 *\r\n                 * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL\r\n                 */cfg:Base.extend({format:OpenSSLFormatter}),/**\r\n                 * Encrypts a message.\r\n                 *\r\n                 * @param {Cipher} cipher The cipher algorithm to use.\r\n                 * @param {WordArray|string} message The message to encrypt.\r\n                 * @param {WordArray} key The key.\r\n                 * @param {Object} cfg (Optional) The configuration options to use for this operation.\r\n                 *\r\n                 * @return {CipherParams} A cipher params object.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);\r\n                 *     var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });\r\n                 *     var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });\r\n                 */encrypt:function(cipher,message,key,cfg){// Apply config defaults\ncfg=this.cfg.extend(cfg);// Encrypt\nvar encryptor=cipher.createEncryptor(key,cfg);var ciphertext=encryptor.finalize(message);// Shortcut\nvar cipherCfg=encryptor.cfg;// Create and return serializable cipher params\nreturn CipherParams.create({ciphertext:ciphertext,key:key,iv:cipherCfg.iv,algorithm:cipher,mode:cipherCfg.mode,padding:cipherCfg.padding,blockSize:cipher.blockSize,formatter:cfg.format});},/**\r\n                 * Decrypts serialized ciphertext.\r\n                 *\r\n                 * @param {Cipher} cipher The cipher algorithm to use.\r\n                 * @param {CipherParams|string} ciphertext The ciphertext to decrypt.\r\n                 * @param {WordArray} key The key.\r\n                 * @param {Object} cfg (Optional) The configuration options to use for this operation.\r\n                 *\r\n                 * @return {WordArray} The plaintext.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });\r\n                 *     var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });\r\n                 */decrypt:function(cipher,ciphertext,key,cfg){// Apply config defaults\ncfg=this.cfg.extend(cfg);// Convert string to CipherParams\nciphertext=this._parse(ciphertext,cfg.format);// Decrypt\nvar plaintext=cipher.createDecryptor(key,cfg).finalize(ciphertext.ciphertext);return plaintext;},/**\r\n                 * Converts serialized ciphertext to CipherParams,\r\n                 * else assumed CipherParams already and returns ciphertext unchanged.\r\n                 *\r\n                 * @param {CipherParams|string} ciphertext The ciphertext.\r\n                 * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.\r\n                 *\r\n                 * @return {CipherParams} The unserialized ciphertext.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);\r\n                 */_parse:function(ciphertext,format){if(typeof ciphertext=='string'){return format.parse(ciphertext,this);}else{return ciphertext;}}});/**\r\n             * Key derivation function namespace.\r\n             */var C_kdf=C.kdf={};/**\r\n             * OpenSSL key derivation function.\r\n             */var OpenSSLKdf=C_kdf.OpenSSL={/**\r\n                 * Derives a key and IV from a password.\r\n                 *\r\n                 * @param {string} password The password to derive from.\r\n                 * @param {number} keySize The size in words of the key to generate.\r\n                 * @param {number} ivSize The size in words of the IV to generate.\r\n                 * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.\r\n                 *\r\n                 * @return {CipherParams} A cipher params object with the key, IV, and salt.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);\r\n                 *     var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');\r\n                 */execute:function(password,keySize,ivSize,salt){// Generate random salt\nif(!salt){salt=WordArray.random(64/8);}// Derive key and IV\nvar key=EvpKDF.create({keySize:keySize+ivSize}).compute(password,salt);// Separate key and IV\nvar iv=WordArray.create(key.words.slice(keySize),ivSize*4);key.sigBytes=keySize*4;// Return params\nreturn CipherParams.create({key:key,iv:iv,salt:salt});}};/**\r\n             * A serializable cipher wrapper that derives the key from a password,\r\n             * and returns ciphertext as a serializable cipher params object.\r\n             */var PasswordBasedCipher=C_lib.PasswordBasedCipher=SerializableCipher.extend({/**\r\n                 * Configuration options.\r\n                 *\r\n                 * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL\r\n                 */cfg:SerializableCipher.cfg.extend({kdf:OpenSSLKdf}),/**\r\n                 * Encrypts a message using a password.\r\n                 *\r\n                 * @param {Cipher} cipher The cipher algorithm to use.\r\n                 * @param {WordArray|string} message The message to encrypt.\r\n                 * @param {string} password The password.\r\n                 * @param {Object} cfg (Optional) The configuration options to use for this operation.\r\n                 *\r\n                 * @return {CipherParams} A cipher params object.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');\r\n                 *     var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });\r\n                 */encrypt:function(cipher,message,password,cfg){// Apply config defaults\ncfg=this.cfg.extend(cfg);// Derive key and other params\nvar derivedParams=cfg.kdf.execute(password,cipher.keySize,cipher.ivSize);// Add IV to config\ncfg.iv=derivedParams.iv;// Encrypt\nvar ciphertext=SerializableCipher.encrypt.call(this,cipher,message,derivedParams.key,cfg);// Mix in derived params\nciphertext.mixIn(derivedParams);return ciphertext;},/**\r\n                 * Decrypts serialized ciphertext using a password.\r\n                 *\r\n                 * @param {Cipher} cipher The cipher algorithm to use.\r\n                 * @param {CipherParams|string} ciphertext The ciphertext to decrypt.\r\n                 * @param {string} password The password.\r\n                 * @param {Object} cfg (Optional) The configuration options to use for this operation.\r\n                 *\r\n                 * @return {WordArray} The plaintext.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });\r\n                 *     var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });\r\n                 */decrypt:function(cipher,ciphertext,password,cfg){// Apply config defaults\ncfg=this.cfg.extend(cfg);// Convert string to CipherParams\nciphertext=this._parse(ciphertext,cfg.format);// Derive key and other params\nvar derivedParams=cfg.kdf.execute(password,cipher.keySize,cipher.ivSize,ciphertext.salt);// Add IV to config\ncfg.iv=derivedParams.iv;// Decrypt\nvar plaintext=SerializableCipher.decrypt.call(this,cipher,ciphertext,derivedParams.key,cfg);return plaintext;}});}();});/***/},/* 7 */ /***/function(module,exports,__nested_webpack_require_2992488__){var global=__nested_webpack_require_2992488__(21);var core=__nested_webpack_require_2992488__(2);var ctx=__nested_webpack_require_2992488__(38);var hide=__nested_webpack_require_2992488__(27);var has=__nested_webpack_require_2992488__(36);var PROTOTYPE='prototype';var $export=function(type,name,source){var IS_FORCED=type&$export.F;var IS_GLOBAL=type&$export.G;var IS_STATIC=type&$export.S;var IS_PROTO=type&$export.P;var IS_BIND=type&$export.B;var IS_WRAP=type&$export.W;var exports=IS_GLOBAL?core:core[name]||(core[name]={});var expProto=exports[PROTOTYPE];var target=IS_GLOBAL?global:IS_STATIC?global[name]:(global[name]||{})[PROTOTYPE];var key,own,out;if(IS_GLOBAL)source=name;for(key in source){// contains in native\nown=!IS_FORCED&&target&&target[key]!==undefined;if(own&&has(exports,key))continue;// export native or passed\nout=own?target[key]:source[key];// prevent global pollution for namespaces\nexports[key]=IS_GLOBAL&&typeof target[key]!='function'?source[key]// bind timers to global for call from export context\n:IS_BIND&&own?ctx(out,global)// wrap global constructors for prevent change them in library\n:IS_WRAP&&target[key]==out?function(C){var F=function(a,b,c){if(this instanceof C){switch(arguments.length){case 0:return new C();case 1:return new C(a);case 2:return new C(a,b);}return new C(a,b,c);}return C.apply(this,arguments);};F[PROTOTYPE]=C[PROTOTYPE];return F;// make static versions for prototype methods\n}(out):IS_PROTO&&typeof out=='function'?ctx(Function.call,out):out;// export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\nif(IS_PROTO){(exports.virtual||(exports.virtual={}))[key]=out;// export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\nif(type&$export.R&&expProto&&!expProto[key])hide(expProto,key,out);}}};// type bitmap\n$export.F=1;// forced\n$export.G=2;// global\n$export.S=4;// static\n$export.P=8;// proto\n$export.B=16;// bind\n$export.W=32;// wrap\n$export.U=64;// safe\n$export.R=128;// real proto method for `library`\nmodule.exports=$export;/***/},/* 8 */ /***/function(module,exports){// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global=module.exports=typeof window!='undefined'&&window.Math==Math?window:typeof self!='undefined'&&self.Math==Math?self// eslint-disable-next-line no-new-func\n:Function('return this')();if(typeof __g=='number')__g=global;// eslint-disable-line no-undef\n/***/},/* 9 */ /***/function(module,exports,__nested_webpack_require_2994848__){// Thank's IE8 for his funny defineProperty\nmodule.exports=!__nested_webpack_require_2994848__(10)(function(){return Object.defineProperty({},'a',{get:function(){return 7;}}).a!=7;});/***/},/* 10 */ /***/function(module,exports){module.exports=function(exec){try{return!!exec();}catch(e){return true;}};/***/},/* 11 */ /***/function(module,exports,__nested_webpack_require_2995202__){var anObject=__nested_webpack_require_2995202__(12);var IE8_DOM_DEFINE=__nested_webpack_require_2995202__(134);var toPrimitive=__nested_webpack_require_2995202__(51);var dP=Object.defineProperty;exports.f=__nested_webpack_require_2995202__(9)?Object.defineProperty:function defineProperty(O,P,Attributes){anObject(O);P=toPrimitive(P,true);anObject(Attributes);if(IE8_DOM_DEFINE)try{return dP(O,P,Attributes);}catch(e){/* empty */}if('get'in Attributes||'set'in Attributes)throw TypeError('Accessors not supported!');if('value'in Attributes)O[P]=Attributes.value;return O;};/***/},/* 12 */ /***/function(module,exports,__nested_webpack_require_2995781__){var isObject=__nested_webpack_require_2995781__(18);module.exports=function(it){if(!isObject(it))throw TypeError(it+' is not an object!');return it;};/***/},/* 13 */ /***/function(module,exports,__nested_webpack_require_2995982__){// Thank's IE8 for his funny defineProperty\nmodule.exports=!__nested_webpack_require_2995982__(37)(function(){return Object.defineProperty({},'a',{get:function(){return 7;}}).a!=7;});/***/},/* 14 */ /***/function(module,exports,__nested_webpack_require_2996216__){var store=__nested_webpack_require_2996216__(119)('wks');var uid=__nested_webpack_require_2996216__(78);var Symbol=__nested_webpack_require_2996216__(21).Symbol;var USE_SYMBOL=typeof Symbol=='function';var $exports=module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)('Symbol.'+name));};$exports.store=store;/***/},/* 15 */ /***/function(module,exports,__nested_webpack_require_2996605__){var dP=__nested_webpack_require_2996605__(11);var createDesc=__nested_webpack_require_2996605__(40);module.exports=__nested_webpack_require_2996605__(9)?function(object,key,value){return dP.f(object,key,createDesc(1,value));}:function(object,key,value){object[key]=value;return object;};/***/},/* 16 */ /***/function(module,exports,__nested_webpack_require_2996913__){// 7.1.15 ToLength\nvar toInteger=__nested_webpack_require_2996913__(31);var min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),0x1fffffffffffff):0;// pow(2, 53) - 1 == 9007199254740991\n};/***/},/* 17 */ /***/function(module,exports,__nested_webpack_require_2997171__){var anObject=__nested_webpack_require_2997171__(28);var IE8_DOM_DEFINE=__nested_webpack_require_2997171__(180);var toPrimitive=__nested_webpack_require_2997171__(114);var dP=Object.defineProperty;exports.f=__nested_webpack_require_2997171__(13)?Object.defineProperty:function defineProperty(O,P,Attributes){anObject(O);P=toPrimitive(P,true);anObject(Attributes);if(IE8_DOM_DEFINE)try{return dP(O,P,Attributes);}catch(e){/* empty */}if('get'in Attributes||'set'in Attributes)throw TypeError('Accessors not supported!');if('value'in Attributes)O[P]=Attributes.value;return O;};/***/},/* 18 */ /***/function(module,exports){module.exports=function(it){return typeof it==='object'?it!==null:typeof it==='function';};/***/},/* 19 */ /***/function(module,exports,__nested_webpack_require_2997889__){// 7.1.13 ToObject(argument)\nvar defined=__nested_webpack_require_2997889__(30);module.exports=function(it){return Object(defined(it));};/***/},/* 20 */ /***/function(module,exports){module.exports=function(it){return typeof it==='object'?it!==null:typeof it==='function';};/***/},/* 21 */ /***/function(module,exports){// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global=module.exports=typeof window!='undefined'&&window.Math==Math?window:typeof self!='undefined'&&self.Math==Math?self// eslint-disable-next-line no-new-func\n:Function('return this')();if(typeof __g=='number')__g=global;// eslint-disable-line no-undef\n/***/},/* 22 */ /***/function(module,exports){var g;// This works in non-strict mode\ng=function(){return this;}();try{// This works if eval is allowed (see CSP)\ng=g||new Function(\"return this\")();}catch(e){// This works if the window reference is available\nif(typeof window===\"object\")g=window;}// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\nmodule.exports=g;/***/},/* 23 */ /***/function(module,exports,__nested_webpack_require_2999069__){var global=__nested_webpack_require_2999069__(8);var hide=__nested_webpack_require_2999069__(15);var has=__nested_webpack_require_2999069__(24);var SRC=__nested_webpack_require_2999069__(29)('src');var $toString=__nested_webpack_require_2999069__(223);var TO_STRING='toString';var TPL=(''+$toString).split(TO_STRING);__nested_webpack_require_2999069__(39).inspectSource=function(it){return $toString.call(it);};(module.exports=function(O,key,val,safe){var isFunction=typeof val=='function';if(isFunction)has(val,'name')||hide(val,'name',key);if(O[key]===val)return;if(isFunction)has(val,SRC)||hide(val,SRC,O[key]?''+O[key]:TPL.join(String(key)));if(O===global){O[key]=val;}else if(!safe){delete O[key];hide(O,key,val);}else if(O[key]){O[key]=val;}else{hide(O,key,val);}// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype,TO_STRING,function toString(){return typeof this=='function'&&this[SRC]||$toString.call(this);});/***/},/* 24 */ /***/function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key);};/***/},/* 25 */ /***/function(module,exports){// shim for using process in browser\nvar process=module.exports={};// cached from whatever global is present so that test runners that stub it\n// don't break things.  But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals.  It's inside a\n// function because try/catches deoptimize in certain engines.\nvar cachedSetTimeout;var cachedClearTimeout;function defaultSetTimout(){throw new Error('setTimeout has not been defined');}function defaultClearTimeout(){throw new Error('clearTimeout has not been defined');}(function(){try{if(typeof setTimeout==='function'){cachedSetTimeout=setTimeout;}else{cachedSetTimeout=defaultSetTimout;}}catch(e){cachedSetTimeout=defaultSetTimout;}try{if(typeof clearTimeout==='function'){cachedClearTimeout=clearTimeout;}else{cachedClearTimeout=defaultClearTimeout;}}catch(e){cachedClearTimeout=defaultClearTimeout;}})();function runTimeout(fun){if(cachedSetTimeout===setTimeout){//normal enviroments in sane situations\nreturn setTimeout(fun,0);}// if setTimeout wasn't available but was latter defined\nif((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(fun,0);}try{// when when somebody has screwed with setTimeout but no I.E. maddness\nreturn cachedSetTimeout(fun,0);}catch(e){try{// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\nreturn cachedSetTimeout.call(null,fun,0);}catch(e){// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\nreturn cachedSetTimeout.call(this,fun,0);}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout){//normal enviroments in sane situations\nreturn clearTimeout(marker);}// if clearTimeout wasn't available but was latter defined\nif((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(marker);}try{// when when somebody has screwed with setTimeout but no I.E. maddness\nreturn cachedClearTimeout(marker);}catch(e){try{// When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally\nreturn cachedClearTimeout.call(null,marker);}catch(e){// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n// Some versions of I.E. have different rules for clearTimeout vs setTimeout\nreturn cachedClearTimeout.call(this,marker);}}}var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return;}draining=false;if(currentQueue.length){queue=currentQueue.concat(queue);}else{queueIndex=-1;}if(queue.length){drainQueue();}}function drainQueue(){if(draining){return;}var timeout=runTimeout(cleanUpNextTick);draining=true;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex<len){if(currentQueue){currentQueue[queueIndex].run();}}queueIndex=-1;len=queue.length;}currentQueue=null;draining=false;runClearTimeout(timeout);}process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1){for(var i=1;i<arguments.length;i++){args[i-1]=arguments[i];}}queue.push(new Item(fun,args));if(queue.length===1&&!draining){runTimeout(drainQueue);}};// v8 likes predictible objects\nfunction Item(fun,array){this.fun=fun;this.array=array;}Item.prototype.run=function(){this.fun.apply(null,this.array);};process.title='browser';process.browser=true;process.env={};process.argv=[];process.version='';// empty string to avoid regexp issues\nprocess.versions={};function noop(){}process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.prependListener=noop;process.prependOnceListener=noop;process.listeners=function(name){return[];};process.binding=function(name){throw new Error('process.binding is not supported');};process.cwd=function(){return'/';};process.chdir=function(dir){throw new Error('process.chdir is not supported');};process.umask=function(){return 0;};/***/},/* 26 */ /***/function(module,exports,__nested_webpack_require_3004516__){// Generated by CoffeeScript 1.7.1\n(function(){var NumberT,PropertyDescriptor;NumberT=__nested_webpack_require_3004516__(49).Number;exports.resolveLength=function(length,stream,parent){var res;if(typeof length==='number'){res=length;}else if(typeof length==='function'){res=length.call(parent,parent);}else if(parent&&typeof length==='string'){res=parent[length];}else if(stream&&length instanceof NumberT){res=length.decode(stream);}if(isNaN(res)){throw new Error('Not a fixed size');}return res;};PropertyDescriptor=function(){function PropertyDescriptor(opts){var key,val;if(opts==null){opts={};}this.enumerable=true;this.configurable=true;for(key in opts){val=opts[key];this[key]=val;}}return PropertyDescriptor;}();exports.PropertyDescriptor=PropertyDescriptor;}).call(this);/***/},/* 27 */ /***/function(module,exports,__nested_webpack_require_3005347__){var dP=__nested_webpack_require_3005347__(17);var createDesc=__nested_webpack_require_3005347__(57);module.exports=__nested_webpack_require_3005347__(13)?function(object,key,value){return dP.f(object,key,createDesc(1,value));}:function(object,key,value){object[key]=value;return object;};/***/},/* 28 */ /***/function(module,exports,__nested_webpack_require_3005656__){var isObject=__nested_webpack_require_3005656__(20);module.exports=function(it){if(!isObject(it))throw TypeError(it+' is not an object!');return it;};/***/},/* 29 */ /***/function(module,exports){var id=0;var px=Math.random();module.exports=function(key){return'Symbol('.concat(key===undefined?'':key,')_',(++id+px).toString(36));};/***/},/* 30 */ /***/function(module,exports){// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports=function(it){if(it==undefined)throw TypeError(\"Can't call method on  \"+it);return it;};/***/},/* 31 */ /***/function(module,exports){// 7.1.4 ToInteger\nvar ceil=Math.ceil;var floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it);};/***/},/* 32 */ /***/function(module,exports,__nested_webpack_require_3006409__){\"use strict\";// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n/*<replacement>*/var pna=__nested_webpack_require_3006409__(69);/*</replacement>*/ /*<replacement>*/var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj){keys.push(key);}return keys;};/*</replacement>*/module.exports=Duplex;/*<replacement>*/var util=__nested_webpack_require_3006409__(56);util.inherits=__nested_webpack_require_3006409__(46);/*</replacement>*/var Readable=__nested_webpack_require_3006409__(166);var Writable=__nested_webpack_require_3006409__(102);util.inherits(Duplex,Readable);{// avoid scope creep, the keys array can then be collected\nvar keys=objectKeys(Writable.prototype);for(var v=0;v<keys.length;v++){var method=keys[v];if(!Duplex.prototype[method])Duplex.prototype[method]=Writable.prototype[method];}}function Duplex(options){if(!(this instanceof Duplex))return new Duplex(options);Readable.call(this,options);Writable.call(this,options);if(options&&options.readable===false)this.readable=false;if(options&&options.writable===false)this.writable=false;this.allowHalfOpen=true;if(options&&options.allowHalfOpen===false)this.allowHalfOpen=false;this.once('end',onend);}Object.defineProperty(Duplex.prototype,'writableHighWaterMark',{// making it explicit this property is not enumerable\n// because otherwise some prototype manipulation in\n// userland will fail\nenumerable:false,get:function(){return this._writableState.highWaterMark;}});// the no-half-open enforcer\nfunction onend(){// if we allow half-open state, or if the writable side ended,\n// then we're ok.\nif(this.allowHalfOpen||this._writableState.ended)return;// no more data can be written.\n// But allow more writes to happen in this tick.\npna.nextTick(onEndNT,this);}function onEndNT(self){self.end();}Object.defineProperty(Duplex.prototype,'destroyed',{get:function(){if(this._readableState===undefined||this._writableState===undefined){return false;}return this._readableState.destroyed&&this._writableState.destroyed;},set:function(value){// we ignore the value if the stream\n// has not been initialized yet\nif(this._readableState===undefined||this._writableState===undefined){return;}// backward compatibility, the user is explicitly\n// managing destroyed\nthis._readableState.destroyed=value;this._writableState.destroyed=value;}});Duplex.prototype._destroy=function(err,cb){this.push(null);this.end();pna.nextTick(cb,err);};/***/},/* 33 */ /***/function(module,exports,__nested_webpack_require_3010107__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3010107__(1),__nested_webpack_require_3010107__(105),__nested_webpack_require_3010107__(106));}else{}})(this,function(CryptoJS){(function(){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var Base=C_lib.Base;var WordArray=C_lib.WordArray;var C_algo=C.algo;var MD5=C_algo.MD5;/**\r\n             * This key derivation function is meant to conform with EVP_BytesToKey.\r\n             * www.openssl.org/docs/crypto/EVP_BytesToKey.html\r\n             */var EvpKDF=C_algo.EvpKDF=Base.extend({/**\r\n                 * Configuration options.\r\n                 *\r\n                 * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)\r\n                 * @property {Hasher} hasher The hash algorithm to use. Default: MD5\r\n                 * @property {number} iterations The number of iterations to perform. Default: 1\r\n                 */cfg:Base.extend({keySize:128/32,hasher:MD5,iterations:1}),/**\r\n                 * Initializes a newly created key derivation function.\r\n                 *\r\n                 * @param {Object} cfg (Optional) The configuration options to use for the derivation.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var kdf = CryptoJS.algo.EvpKDF.create();\r\n                 *     var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });\r\n                 *     var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });\r\n                 */init:function(cfg){this.cfg=this.cfg.extend(cfg);},/**\r\n                 * Derives a key from a password.\r\n                 *\r\n                 * @param {WordArray|string} password The password.\r\n                 * @param {WordArray|string} salt A salt.\r\n                 *\r\n                 * @return {WordArray} The derived key.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var key = kdf.compute(password, salt);\r\n                 */compute:function(password,salt){// Shortcut\nvar cfg=this.cfg;// Init hasher\nvar hasher=cfg.hasher.create();// Initial values\nvar derivedKey=WordArray.create();// Shortcuts\nvar derivedKeyWords=derivedKey.words;var keySize=cfg.keySize;var iterations=cfg.iterations;// Generate key\nwhile(derivedKeyWords.length<keySize){if(block){hasher.update(block);}var block=hasher.update(password).finalize(salt);hasher.reset();// Iterations\nfor(var i=1;i<iterations;i++){block=hasher.finalize(block);hasher.reset();}derivedKey.concat(block);}derivedKey.sigBytes=keySize*4;return derivedKey;}});/**\r\n             * Derives a key from a password.\r\n             *\r\n             * @param {WordArray|string} password The password.\r\n             * @param {WordArray|string} salt A salt.\r\n             * @param {Object} cfg (Optional) The configuration options to use for this computation.\r\n             *\r\n             * @return {WordArray} The derived key.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var key = CryptoJS.EvpKDF(password, salt);\r\n             *     var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });\r\n             *     var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });\r\n             */C.EvpKDF=function(password,salt,cfg){return EvpKDF.create(cfg).compute(password,salt);};})();return CryptoJS.EvpKDF;});/***/},/* 34 */ /***/function(module,exports,__nested_webpack_require_3013571__){\"use strict\";/* WEBPACK VAR INJECTION */(function(process){/* eslint-disable node/no-deprecated-api */var buffer=__nested_webpack_require_3013571__(4);var Buffer=buffer.Buffer;var safer={};var key;for(key in buffer){if(!buffer.hasOwnProperty(key))continue;if(key==='SlowBuffer'||key==='Buffer')continue;safer[key]=buffer[key];}var Safer=safer.Buffer={};for(key in Buffer){if(!Buffer.hasOwnProperty(key))continue;if(key==='allocUnsafe'||key==='allocUnsafeSlow')continue;Safer[key]=Buffer[key];}safer.Buffer.prototype=Buffer.prototype;if(!Safer.from||Safer.from===Uint8Array.from){Safer.from=function(value,encodingOrOffset,length){if(typeof value==='number'){throw new TypeError('The \"value\" argument must not be of type number. Received type '+typeof value);}if(value&&typeof value.length==='undefined'){throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type '+typeof value);}return Buffer(value,encodingOrOffset,length);};}if(!Safer.alloc){Safer.alloc=function(size,fill,encoding){if(typeof size!=='number'){throw new TypeError('The \"size\" argument must be of type number. Received type '+typeof size);}if(size<0||size>=2*(1<<30)){throw new RangeError('The value \"'+size+'\" is invalid for option \"size\"');}var buf=Buffer(size);if(!fill||fill.length===0){buf.fill(0);}else if(typeof encoding==='string'){buf.fill(fill,encoding);}else{buf.fill(fill);}return buf;};}if(!safer.kStringMaxLength){try{safer.kStringMaxLength=process.binding('buffer').kStringMaxLength;}catch(e){// we can't determine kStringMaxLength in environments where process.binding\n// is unsupported, so let's not set it\n}}if(!safer.constants){safer.constants={MAX_LENGTH:safer.kMaxLength};if(safer.kStringMaxLength){safer.constants.MAX_STRING_LENGTH=safer.kStringMaxLength;}}module.exports=safer;/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3013571__(25));/***/},/* 35 */ /***/function(module,exports,__nested_webpack_require_3015528__){// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject=__nested_webpack_require_3015528__(110);var defined=__nested_webpack_require_3015528__(112);module.exports=function(it){return IObject(defined(it));};/***/},/* 36 */ /***/function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key);};/***/},/* 37 */ /***/function(module,exports){module.exports=function(exec){try{return!!exec();}catch(e){return true;}};/***/},/* 38 */ /***/function(module,exports,__nested_webpack_require_3016074__){// optional / simple context binding\nvar aFunction=__nested_webpack_require_3016074__(182);module.exports=function(fn,that,length){aFunction(fn);if(that===undefined)return fn;switch(length){case 1:return function(a){return fn.call(that,a);};case 2:return function(a,b){return fn.call(that,a,b);};case 3:return function(a,b,c){return fn.call(that,a,b,c);};}return function/* ...args */(){return fn.apply(that,arguments);};};/***/},/* 39 */ /***/function(module,exports){var core=module.exports={version:'2.6.11'};if(typeof __e=='number')__e=core;// eslint-disable-line no-undef\n/***/},/* 40 */ /***/function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value};};/***/},/* 41 */ /***/function(module,exports){module.exports=false;/***/},/* 42 */ /***/function(module,exports,__nested_webpack_require_3016944__){// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys=__nested_webpack_require_3016944__(138);var enumBugKeys=__nested_webpack_require_3016944__(88);module.exports=Object.keys||function keys(O){return $keys(O,enumBugKeys);};/***/},/* 43 */ /***/function(module,exports,__nested_webpack_require_3017200__){// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject=__nested_webpack_require_3017200__(85);var defined=__nested_webpack_require_3017200__(30);module.exports=function(it){return IObject(defined(it));};/***/},/* 44 */ /***/function(module,exports,__nested_webpack_require_3017472__){__nested_webpack_require_3017472__(140)('Uint8',1,function(init){return function Uint8Array(data,byteOffset,length){return init(this,data,byteOffset,length);};});/***/},/* 45 */ /***/function(module,exports){module.exports={};/***/},/* 46 */ /***/function(module,exports){if(typeof Object.create==='function'){// implementation from standard node.js 'util' module\nmodule.exports=function inherits(ctor,superCtor){if(superCtor){ctor.super_=superCtor;ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}});}};}else{// old school shim for old browsers\nmodule.exports=function inherits(ctor,superCtor){if(superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor();ctor.prototype.constructor=ctor;}};}/***/},/* 47 */ /***/function(module,exports,__nested_webpack_require_3018359__){;(function(root,factory){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3018359__(1));}else{}})(this,function(CryptoJS){(function(){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var WordArray=C_lib.WordArray;var C_enc=C.enc;/**\r\n             * Base64 encoding strategy.\r\n             */var Base64=C_enc.Base64={/**\r\n                 * Converts a word array to a Base64 string.\r\n                 *\r\n                 * @param {WordArray} wordArray The word array.\r\n                 *\r\n                 * @return {string} The Base64 string.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var base64String = CryptoJS.enc.Base64.stringify(wordArray);\r\n                 */stringify:function(wordArray){// Shortcuts\nvar words=wordArray.words;var sigBytes=wordArray.sigBytes;var map=this._map;// Clamp excess bits\nwordArray.clamp();// Convert\nvar base64Chars=[];for(var i=0;i<sigBytes;i+=3){var byte1=words[i>>>2]>>>24-i%4*8&0xff;var byte2=words[i+1>>>2]>>>24-(i+1)%4*8&0xff;var byte3=words[i+2>>>2]>>>24-(i+2)%4*8&0xff;var triplet=byte1<<16|byte2<<8|byte3;for(var j=0;j<4&&i+j*0.75<sigBytes;j++){base64Chars.push(map.charAt(triplet>>>6*(3-j)&0x3f));}}// Add padding\nvar paddingChar=map.charAt(64);if(paddingChar){while(base64Chars.length%4){base64Chars.push(paddingChar);}}return base64Chars.join('');},/**\r\n                 * Converts a Base64 string to a word array.\r\n                 *\r\n                 * @param {string} base64Str The Base64 string.\r\n                 *\r\n                 * @return {WordArray} The word array.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var wordArray = CryptoJS.enc.Base64.parse(base64String);\r\n                 */parse:function(base64Str){// Shortcuts\nvar base64StrLength=base64Str.length;var map=this._map;var reverseMap=this._reverseMap;if(!reverseMap){reverseMap=this._reverseMap=[];for(var j=0;j<map.length;j++){reverseMap[map.charCodeAt(j)]=j;}}// Ignore padding\nvar paddingChar=map.charAt(64);if(paddingChar){var paddingIndex=base64Str.indexOf(paddingChar);if(paddingIndex!==-1){base64StrLength=paddingIndex;}}// Convert\nreturn parseLoop(base64Str,base64StrLength,reverseMap);},_map:'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='};function parseLoop(base64Str,base64StrLength,reverseMap){var words=[];var nBytes=0;for(var i=0;i<base64StrLength;i++){if(i%4){var bits1=reverseMap[base64Str.charCodeAt(i-1)]<<i%4*2;var bits2=reverseMap[base64Str.charCodeAt(i)]>>>6-i%4*2;words[nBytes>>>2]|=(bits1|bits2)<<24-nBytes%4*8;nBytes++;}}return WordArray.create(words,nBytes);}})();return CryptoJS.enc.Base64;});/***/},/* 48 */ /***/function(module,exports,__nested_webpack_require_3021188__){;(function(root,factory){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3021188__(1));}else{}})(this,function(CryptoJS){(function(Math){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var WordArray=C_lib.WordArray;var Hasher=C_lib.Hasher;var C_algo=C.algo;// Constants table\nvar T=[];// Compute constants\n(function(){for(var i=0;i<64;i++){T[i]=Math.abs(Math.sin(i+1))*0x100000000|0;}})();/**\r\n             * MD5 hash algorithm.\r\n             */var MD5=C_algo.MD5=Hasher.extend({_doReset:function(){this._hash=new WordArray.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},_doProcessBlock:function(M,offset){// Swap endian\nfor(var i=0;i<16;i++){// Shortcuts\nvar offset_i=offset+i;var M_offset_i=M[offset_i];M[offset_i]=(M_offset_i<<8|M_offset_i>>>24)&0x00ff00ff|(M_offset_i<<24|M_offset_i>>>8)&0xff00ff00;}// Shortcuts\nvar H=this._hash.words;var M_offset_0=M[offset+0];var M_offset_1=M[offset+1];var M_offset_2=M[offset+2];var M_offset_3=M[offset+3];var M_offset_4=M[offset+4];var M_offset_5=M[offset+5];var M_offset_6=M[offset+6];var M_offset_7=M[offset+7];var M_offset_8=M[offset+8];var M_offset_9=M[offset+9];var M_offset_10=M[offset+10];var M_offset_11=M[offset+11];var M_offset_12=M[offset+12];var M_offset_13=M[offset+13];var M_offset_14=M[offset+14];var M_offset_15=M[offset+15];// Working varialbes\nvar a=H[0];var b=H[1];var c=H[2];var d=H[3];// Computation\na=FF(a,b,c,d,M_offset_0,7,T[0]);d=FF(d,a,b,c,M_offset_1,12,T[1]);c=FF(c,d,a,b,M_offset_2,17,T[2]);b=FF(b,c,d,a,M_offset_3,22,T[3]);a=FF(a,b,c,d,M_offset_4,7,T[4]);d=FF(d,a,b,c,M_offset_5,12,T[5]);c=FF(c,d,a,b,M_offset_6,17,T[6]);b=FF(b,c,d,a,M_offset_7,22,T[7]);a=FF(a,b,c,d,M_offset_8,7,T[8]);d=FF(d,a,b,c,M_offset_9,12,T[9]);c=FF(c,d,a,b,M_offset_10,17,T[10]);b=FF(b,c,d,a,M_offset_11,22,T[11]);a=FF(a,b,c,d,M_offset_12,7,T[12]);d=FF(d,a,b,c,M_offset_13,12,T[13]);c=FF(c,d,a,b,M_offset_14,17,T[14]);b=FF(b,c,d,a,M_offset_15,22,T[15]);a=GG(a,b,c,d,M_offset_1,5,T[16]);d=GG(d,a,b,c,M_offset_6,9,T[17]);c=GG(c,d,a,b,M_offset_11,14,T[18]);b=GG(b,c,d,a,M_offset_0,20,T[19]);a=GG(a,b,c,d,M_offset_5,5,T[20]);d=GG(d,a,b,c,M_offset_10,9,T[21]);c=GG(c,d,a,b,M_offset_15,14,T[22]);b=GG(b,c,d,a,M_offset_4,20,T[23]);a=GG(a,b,c,d,M_offset_9,5,T[24]);d=GG(d,a,b,c,M_offset_14,9,T[25]);c=GG(c,d,a,b,M_offset_3,14,T[26]);b=GG(b,c,d,a,M_offset_8,20,T[27]);a=GG(a,b,c,d,M_offset_13,5,T[28]);d=GG(d,a,b,c,M_offset_2,9,T[29]);c=GG(c,d,a,b,M_offset_7,14,T[30]);b=GG(b,c,d,a,M_offset_12,20,T[31]);a=HH(a,b,c,d,M_offset_5,4,T[32]);d=HH(d,a,b,c,M_offset_8,11,T[33]);c=HH(c,d,a,b,M_offset_11,16,T[34]);b=HH(b,c,d,a,M_offset_14,23,T[35]);a=HH(a,b,c,d,M_offset_1,4,T[36]);d=HH(d,a,b,c,M_offset_4,11,T[37]);c=HH(c,d,a,b,M_offset_7,16,T[38]);b=HH(b,c,d,a,M_offset_10,23,T[39]);a=HH(a,b,c,d,M_offset_13,4,T[40]);d=HH(d,a,b,c,M_offset_0,11,T[41]);c=HH(c,d,a,b,M_offset_3,16,T[42]);b=HH(b,c,d,a,M_offset_6,23,T[43]);a=HH(a,b,c,d,M_offset_9,4,T[44]);d=HH(d,a,b,c,M_offset_12,11,T[45]);c=HH(c,d,a,b,M_offset_15,16,T[46]);b=HH(b,c,d,a,M_offset_2,23,T[47]);a=II(a,b,c,d,M_offset_0,6,T[48]);d=II(d,a,b,c,M_offset_7,10,T[49]);c=II(c,d,a,b,M_offset_14,15,T[50]);b=II(b,c,d,a,M_offset_5,21,T[51]);a=II(a,b,c,d,M_offset_12,6,T[52]);d=II(d,a,b,c,M_offset_3,10,T[53]);c=II(c,d,a,b,M_offset_10,15,T[54]);b=II(b,c,d,a,M_offset_1,21,T[55]);a=II(a,b,c,d,M_offset_8,6,T[56]);d=II(d,a,b,c,M_offset_15,10,T[57]);c=II(c,d,a,b,M_offset_6,15,T[58]);b=II(b,c,d,a,M_offset_13,21,T[59]);a=II(a,b,c,d,M_offset_4,6,T[60]);d=II(d,a,b,c,M_offset_11,10,T[61]);c=II(c,d,a,b,M_offset_2,15,T[62]);b=II(b,c,d,a,M_offset_9,21,T[63]);// Intermediate hash value\nH[0]=H[0]+a|0;H[1]=H[1]+b|0;H[2]=H[2]+c|0;H[3]=H[3]+d|0;},_doFinalize:function(){// Shortcuts\nvar data=this._data;var dataWords=data.words;var nBitsTotal=this._nDataBytes*8;var nBitsLeft=data.sigBytes*8;// Add padding\ndataWords[nBitsLeft>>>5]|=0x80<<24-nBitsLeft%32;var nBitsTotalH=Math.floor(nBitsTotal/0x100000000);var nBitsTotalL=nBitsTotal;dataWords[(nBitsLeft+64>>>9<<4)+15]=(nBitsTotalH<<8|nBitsTotalH>>>24)&0x00ff00ff|(nBitsTotalH<<24|nBitsTotalH>>>8)&0xff00ff00;dataWords[(nBitsLeft+64>>>9<<4)+14]=(nBitsTotalL<<8|nBitsTotalL>>>24)&0x00ff00ff|(nBitsTotalL<<24|nBitsTotalL>>>8)&0xff00ff00;data.sigBytes=(dataWords.length+1)*4;// Hash final blocks\nthis._process();// Shortcuts\nvar hash=this._hash;var H=hash.words;// Swap endian\nfor(var i=0;i<4;i++){// Shortcut\nvar H_i=H[i];H[i]=(H_i<<8|H_i>>>24)&0x00ff00ff|(H_i<<24|H_i>>>8)&0xff00ff00;}// Return final computed hash\nreturn hash;},clone:function(){var clone=Hasher.clone.call(this);clone._hash=this._hash.clone();return clone;}});function FF(a,b,c,d,x,s,t){var n=a+(b&c|~b&d)+x+t;return(n<<s|n>>>32-s)+b;}function GG(a,b,c,d,x,s,t){var n=a+(b&d|c&~d)+x+t;return(n<<s|n>>>32-s)+b;}function HH(a,b,c,d,x,s,t){var n=a+(b^c^d)+x+t;return(n<<s|n>>>32-s)+b;}function II(a,b,c,d,x,s,t){var n=a+(c^(b|~d))+x+t;return(n<<s|n>>>32-s)+b;}/**\r\n             * Shortcut function to the hasher's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             *\r\n             * @return {WordArray} The hash.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hash = CryptoJS.MD5('message');\r\n             *     var hash = CryptoJS.MD5(wordArray);\r\n             */C.MD5=Hasher._createHelper(MD5);/**\r\n             * Shortcut function to the HMAC's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             * @param {WordArray|string} key The secret key.\r\n             *\r\n             * @return {WordArray} The HMAC.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hmac = CryptoJS.HmacMD5(message, key);\r\n             */C.HmacMD5=Hasher._createHmacHelper(MD5);})(Math);return CryptoJS.MD5;});/***/},/* 49 */ /***/function(module,exports,__nested_webpack_require_3027124__){// Generated by CoffeeScript 1.7.1\n(function(){var DecodeStream,Fixed,NumberT,__hasProp={}.hasOwnProperty,__extends=function(child,parent){for(var key in parent){if(__hasProp.call(parent,key))child[key]=parent[key];}function ctor(){this.constructor=child;}ctor.prototype=parent.prototype;child.prototype=new ctor();child.__super__=parent.prototype;return child;};DecodeStream=__nested_webpack_require_3027124__(107);NumberT=function(){function NumberT(type,endian){this.type=type;this.endian=endian!=null?endian:'BE';this.fn=this.type;if(this.type[this.type.length-1]!=='8'){this.fn+=this.endian;}}NumberT.prototype.size=function(){return DecodeStream.TYPES[this.type];};NumberT.prototype.decode=function(stream){return stream['read'+this.fn]();};NumberT.prototype.encode=function(stream,val){return stream['write'+this.fn](val);};return NumberT;}();exports.Number=NumberT;exports.uint8=new NumberT('UInt8');exports.uint16be=exports.uint16=new NumberT('UInt16','BE');exports.uint16le=new NumberT('UInt16','LE');exports.uint24be=exports.uint24=new NumberT('UInt24','BE');exports.uint24le=new NumberT('UInt24','LE');exports.uint32be=exports.uint32=new NumberT('UInt32','BE');exports.uint32le=new NumberT('UInt32','LE');exports.int8=new NumberT('Int8');exports.int16be=exports.int16=new NumberT('Int16','BE');exports.int16le=new NumberT('Int16','LE');exports.int24be=exports.int24=new NumberT('Int24','BE');exports.int24le=new NumberT('Int24','LE');exports.int32be=exports.int32=new NumberT('Int32','BE');exports.int32le=new NumberT('Int32','LE');exports.floatbe=exports.float=new NumberT('Float','BE');exports.floatle=new NumberT('Float','LE');exports.doublebe=exports.double=new NumberT('Double','BE');exports.doublele=new NumberT('Double','LE');Fixed=function(_super){__extends(Fixed,_super);function Fixed(size,endian,fracBits){if(fracBits==null){fracBits=size>>1;}Fixed.__super__.constructor.call(this,\"Int\"+size,endian);this._point=1<<fracBits;}Fixed.prototype.decode=function(stream){return Fixed.__super__.decode.call(this,stream)/this._point;};Fixed.prototype.encode=function(stream,val){return Fixed.__super__.encode.call(this,stream,val*this._point|0);};return Fixed;}(NumberT);exports.Fixed=Fixed;exports.fixed16be=exports.fixed16=new Fixed(16,'BE');exports.fixed16le=new Fixed(16,'LE');exports.fixed32be=exports.fixed32=new Fixed(32,'BE');exports.fixed32le=new Fixed(32,'LE');}).call(this);/***/},/* 50 */ /***/function(module,exports,__nested_webpack_require_3029575__){// 7.1.13 ToObject(argument)\nvar defined=__nested_webpack_require_3029575__(112);module.exports=function(it){return Object(defined(it));};/***/},/* 51 */ /***/function(module,exports,__nested_webpack_require_3029764__){// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject=__nested_webpack_require_3029764__(18);// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports=function(it,S){if(!isObject(it))return it;var fn,val;if(S&&typeof(fn=it.toString)=='function'&&!isObject(val=fn.call(it)))return val;if(typeof(fn=it.valueOf)=='function'&&!isObject(val=fn.call(it)))return val;if(!S&&typeof(fn=it.toString)=='function'&&!isObject(val=fn.call(it)))return val;throw TypeError(\"Can't convert object to primitive value\");};/***/},/* 52 */ /***/function(module,exports,__nested_webpack_require_3030417__){// optional / simple context binding\nvar aFunction=__nested_webpack_require_3030417__(136);module.exports=function(fn,that,length){aFunction(fn);if(that===undefined)return fn;switch(length){case 1:return function(a){return fn.call(that,a);};case 2:return function(a,b){return fn.call(that,a,b);};case 3:return function(a,b,c){return fn.call(that,a,b,c);};}return function/* ...args */(){return fn.apply(that,arguments);};};/***/},/* 53 */ /***/function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1);};/***/},/* 54 */ /***/function(module,exports,__nested_webpack_require_3031029__){var toInteger=__nested_webpack_require_3031029__(31);var max=Math.max;var min=Math.min;module.exports=function(index,length){index=toInteger(index);return index<0?max(index+length,0):min(index,length);};/***/},/* 55 */ /***/function(module,exports,__nested_webpack_require_3031283__){// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys=__nested_webpack_require_3031283__(138);var hiddenKeys=__nested_webpack_require_3031283__(88).concat('length','prototype');exports.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return $keys(O,hiddenKeys);};/***/},/* 56 */ /***/function(module,exports,__nested_webpack_require_3031604__){/* WEBPACK VAR INJECTION */(function(Buffer){// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nfunction isArray(arg){if(Array.isArray){return Array.isArray(arg);}return objectToString(arg)==='[object Array]';}exports.isArray=isArray;function isBoolean(arg){return typeof arg==='boolean';}exports.isBoolean=isBoolean;function isNull(arg){return arg===null;}exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null;}exports.isNullOrUndefined=isNullOrUndefined;function isNumber(arg){return typeof arg==='number';}exports.isNumber=isNumber;function isString(arg){return typeof arg==='string';}exports.isString=isString;function isSymbol(arg){return typeof arg==='symbol';}exports.isSymbol=isSymbol;function isUndefined(arg){return arg===void 0;}exports.isUndefined=isUndefined;function isRegExp(re){return objectToString(re)==='[object RegExp]';}exports.isRegExp=isRegExp;function isObject(arg){return typeof arg==='object'&&arg!==null;}exports.isObject=isObject;function isDate(d){return objectToString(d)==='[object Date]';}exports.isDate=isDate;function isError(e){return objectToString(e)==='[object Error]'||e instanceof Error;}exports.isError=isError;function isFunction(arg){return typeof arg==='function';}exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==='boolean'||typeof arg==='number'||typeof arg==='string'||typeof arg==='symbol'||// ES6 symbol\ntypeof arg==='undefined';}exports.isPrimitive=isPrimitive;exports.isBuffer=Buffer.isBuffer;function objectToString(o){return Object.prototype.toString.call(o);}/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3031604__(4).Buffer);/***/},/* 57 */ /***/function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value};};/***/},/* 58 */ /***/function(module,exports){module.exports={};/***/},/* 59 */ /***/function(module,exports,__nested_webpack_require_3034779__){// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys=__nested_webpack_require_3034779__(186);var enumBugKeys=__nested_webpack_require_3034779__(120);module.exports=Object.keys||function keys(O){return $keys(O,enumBugKeys);};/***/},/* 60 */ /***/function(module,exports,__nested_webpack_require_3035036__){\"use strict\";var $at=__nested_webpack_require_3035036__(343)(true);// 21.1.3.27 String.prototype[@@iterator]()\n__nested_webpack_require_3035036__(116)(String,'String',function(iterated){this._t=String(iterated);// target\nthis._i=0;// next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n},function(){var O=this._t;var index=this._i;var point;if(index>=O.length)return{value:undefined,done:true};point=$at(O,index);this._i+=point.length;return{value:point,done:false};});/***/},/* 61 */ /***/function(module,exports,__nested_webpack_require_3035547__){var core=__nested_webpack_require_3035547__(39);var global=__nested_webpack_require_3035547__(8);var SHARED='__core-js_shared__';var store=global[SHARED]||(global[SHARED]={});(module.exports=function(key,value){return store[key]||(store[key]=value!==undefined?value:{});})('versions',[]).push({version:core.version,mode:__nested_webpack_require_3035547__(41)?'pure':'global',copyright:'© 2019 Denis Pushkarev (zloirock.ru)'});/***/},/* 62 */ /***/function(module,exports){exports.f={}.propertyIsEnumerable;/***/},/* 63 */ /***/function(module,exports,__nested_webpack_require_3036074__){var def=__nested_webpack_require_3036074__(11).f;var has=__nested_webpack_require_3036074__(24);var TAG=__nested_webpack_require_3036074__(3)('toStringTag');module.exports=function(it,tag,stat){if(it&&!has(it=stat?it:it.prototype,TAG))def(it,TAG,{configurable:true,value:tag});};/***/},/* 64 */ /***/function(module,exports,__nested_webpack_require_3036374__){// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof=__nested_webpack_require_3036374__(53);var TAG=__nested_webpack_require_3036374__(3)('toStringTag');// ES3 wrong here\nvar ARG=cof(function(){return arguments;}())=='Arguments';// fallback for IE11 Script Access Denied error\nvar tryGet=function(it,key){try{return it[key];}catch(e){/* empty */}};module.exports=function(it){var O,T,B;return it===undefined?'Undefined':it===null?'Null'// @@toStringTag case\n:typeof(T=tryGet(O=Object(it),TAG))=='string'?T// builtinTag case\n:ARG?cof(O)// ES3 arguments fallback\n:(B=cof(O))=='Object'&&typeof O.callee=='function'?'Arguments':B;};/***/},/* 65 */ /***/function(module,exports,__nested_webpack_require_3037050__){// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject=__nested_webpack_require_3037050__(12);var dPs=__nested_webpack_require_3037050__(227);var enumBugKeys=__nested_webpack_require_3037050__(88);var IE_PROTO=__nested_webpack_require_3037050__(87)('IE_PROTO');var Empty=function(){/* empty */};var PROTOTYPE='prototype';// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict=function(){// Thrash, waste and sodomy: IE GC bug\nvar iframe=__nested_webpack_require_3037050__(135)('iframe');var i=enumBugKeys.length;var lt='<';var gt='>';var iframeDocument;iframe.style.display='none';__nested_webpack_require_3037050__(228).appendChild(iframe);iframe.src='javascript:';// eslint-disable-line no-script-url\n// createDict = iframe.contentWindow.Object;\n// html.removeChild(iframe);\niframeDocument=iframe.contentWindow.document;iframeDocument.open();iframeDocument.write(lt+'script'+gt+'document.F=Object'+lt+'/script'+gt);iframeDocument.close();createDict=iframeDocument.F;while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];return createDict();};module.exports=Object.create||function create(O,Properties){var result;if(O!==null){Empty[PROTOTYPE]=anObject(O);result=new Empty();Empty[PROTOTYPE]=null;// add \"__proto__\" for Object.getPrototypeOf polyfill\nresult[IE_PROTO]=O;}else result=createDict();return Properties===undefined?result:dPs(result,Properties);};/***/},/* 66 */ /***/function(module,exports,__nested_webpack_require_3038445__){\"use strict\";var addToUnscopables=__nested_webpack_require_3038445__(91);var step=__nested_webpack_require_3038445__(232);var Iterators=__nested_webpack_require_3038445__(45);var toIObject=__nested_webpack_require_3038445__(43);// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports=__nested_webpack_require_3038445__(150)(Array,'Array',function(iterated,kind){this._t=toIObject(iterated);// target\nthis._i=0;// next index\nthis._k=kind;// kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n},function(){var O=this._t;var kind=this._k;var index=this._i++;if(!O||index>=O.length){this._t=undefined;return step(1);}if(kind=='keys')return step(0,index);if(kind=='values')return step(0,O[index]);return step(0,[index,O[index]]);},'values');// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments=Iterators.Array;addToUnscopables('keys');addToUnscopables('values');addToUnscopables('entries');/***/},/* 67 */ /***/function(module,exports,__nested_webpack_require_3039473__){var pIE=__nested_webpack_require_3039473__(62);var createDesc=__nested_webpack_require_3039473__(40);var toIObject=__nested_webpack_require_3039473__(43);var toPrimitive=__nested_webpack_require_3039473__(51);var has=__nested_webpack_require_3039473__(24);var IE8_DOM_DEFINE=__nested_webpack_require_3039473__(134);var gOPD=Object.getOwnPropertyDescriptor;exports.f=__nested_webpack_require_3039473__(9)?gOPD:function getOwnPropertyDescriptor(O,P){O=toIObject(O);P=toPrimitive(P,true);if(IE8_DOM_DEFINE)try{return gOPD(O,P);}catch(e){/* empty */}if(has(O,P))return createDesc(!pIE.f.call(O,P),O[P]);};/***/},/* 68 */ /***/function(module,exports,__webpack_require__){\"use strict\";// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\nvar R=typeof Reflect==='object'?Reflect:null;var ReflectApply=R&&typeof R.apply==='function'?R.apply:function ReflectApply(target,receiver,args){return Function.prototype.apply.call(target,receiver,args);};var ReflectOwnKeys;if(R&&typeof R.ownKeys==='function'){ReflectOwnKeys=R.ownKeys;}else if(Object.getOwnPropertySymbols){ReflectOwnKeys=function ReflectOwnKeys(target){return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));};}else{ReflectOwnKeys=function ReflectOwnKeys(target){return Object.getOwnPropertyNames(target);};}function ProcessEmitWarning(warning){if(console&&console.warn)console.warn(warning);}var NumberIsNaN=Number.isNaN||function NumberIsNaN(value){return value!==value;};function EventEmitter(){EventEmitter.init.call(this);}module.exports=EventEmitter;// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=undefined;EventEmitter.prototype._eventsCount=0;EventEmitter.prototype._maxListeners=undefined;// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners=10;Object.defineProperty(EventEmitter,'defaultMaxListeners',{enumerable:true,get:function(){return defaultMaxListeners;},set:function(arg){if(typeof arg!=='number'||arg<0||NumberIsNaN(arg)){throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received '+arg+'.');}defaultMaxListeners=arg;}});EventEmitter.init=function(){if(this._events===undefined||this._events===Object.getPrototypeOf(this)._events){this._events=Object.create(null);this._eventsCount=0;}this._maxListeners=this._maxListeners||undefined;};// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners=function setMaxListeners(n){if(typeof n!=='number'||n<0||NumberIsNaN(n)){throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received '+n+'.');}this._maxListeners=n;return this;};function $getMaxListeners(that){if(that._maxListeners===undefined)return EventEmitter.defaultMaxListeners;return that._maxListeners;}EventEmitter.prototype.getMaxListeners=function getMaxListeners(){return $getMaxListeners(this);};EventEmitter.prototype.emit=function emit(type){var args=[];for(var i=1;i<arguments.length;i++)args.push(arguments[i]);var doError=type==='error';var events=this._events;if(events!==undefined)doError=doError&&events.error===undefined;else if(!doError)return false;// If there is no 'error' event listener then throw.\nif(doError){var er;if(args.length>0)er=args[0];if(er instanceof Error){// Note: The comments on the `throw` lines are intentional, they show\n// up in Node's output if this results in an unhandled exception.\nthrow er;// Unhandled 'error' event\n}// At least give some kind of context to the user\nvar err=new Error('Unhandled error.'+(er?' ('+er.message+')':''));err.context=er;throw err;// Unhandled 'error' event\n}var handler=events[type];if(handler===undefined)return false;if(typeof handler==='function'){ReflectApply(handler,this,args);}else{var len=handler.length;var listeners=arrayClone(handler,len);for(var i=0;i<len;++i)ReflectApply(listeners[i],this,args);}return true;};function _addListener(target,type,listener,prepend){var m;var events;var existing;if(typeof listener!=='function'){throw new TypeError('The \"listener\" argument must be of type Function. Received type '+typeof listener);}events=target._events;if(events===undefined){events=target._events=Object.create(null);target._eventsCount=0;}else{// To avoid recursion in the case that type === \"newListener\"! Before\n// adding it to the listeners, first emit \"newListener\".\nif(events.newListener!==undefined){target.emit('newListener',type,listener.listener?listener.listener:listener);// Re-assign `events` because a newListener handler could have caused the\n// this._events to be assigned to a new object\nevents=target._events;}existing=events[type];}if(existing===undefined){// Optimize the case of one listener. Don't need the extra array object.\nexisting=events[type]=listener;++target._eventsCount;}else{if(typeof existing==='function'){// Adding the second element, need to change to array.\nexisting=events[type]=prepend?[listener,existing]:[existing,listener];// If we've already got an array, just append.\n}else if(prepend){existing.unshift(listener);}else{existing.push(listener);}// Check for listener leak\nm=$getMaxListeners(target);if(m>0&&existing.length>m&&!existing.warned){existing.warned=true;// No error code for this since it is a Warning\n// eslint-disable-next-line no-restricted-syntax\nvar w=new Error('Possible EventEmitter memory leak detected. '+existing.length+' '+String(type)+' listeners '+'added. Use emitter.setMaxListeners() to '+'increase limit');w.name='MaxListenersExceededWarning';w.emitter=target;w.type=type;w.count=existing.length;ProcessEmitWarning(w);}}return target;}EventEmitter.prototype.addListener=function addListener(type,listener){return _addListener(this,type,listener,false);};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function prependListener(type,listener){return _addListener(this,type,listener,true);};function onceWrapper(){var args=[];for(var i=0;i<arguments.length;i++)args.push(arguments[i]);if(!this.fired){this.target.removeListener(this.type,this.wrapFn);this.fired=true;ReflectApply(this.listener,this.target,args);}}function _onceWrap(target,type,listener){var state={fired:false,wrapFn:undefined,target:target,type:type,listener:listener};var wrapped=onceWrapper.bind(state);wrapped.listener=listener;state.wrapFn=wrapped;return wrapped;}EventEmitter.prototype.once=function once(type,listener){if(typeof listener!=='function'){throw new TypeError('The \"listener\" argument must be of type Function. Received type '+typeof listener);}this.on(type,_onceWrap(this,type,listener));return this;};EventEmitter.prototype.prependOnceListener=function prependOnceListener(type,listener){if(typeof listener!=='function'){throw new TypeError('The \"listener\" argument must be of type Function. Received type '+typeof listener);}this.prependListener(type,_onceWrap(this,type,listener));return this;};// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener=function removeListener(type,listener){var list,events,position,i,originalListener;if(typeof listener!=='function'){throw new TypeError('The \"listener\" argument must be of type Function. Received type '+typeof listener);}events=this._events;if(events===undefined)return this;list=events[type];if(list===undefined)return this;if(list===listener||list.listener===listener){if(--this._eventsCount===0)this._events=Object.create(null);else{delete events[type];if(events.removeListener)this.emit('removeListener',type,list.listener||listener);}}else if(typeof list!=='function'){position=-1;for(i=list.length-1;i>=0;i--){if(list[i]===listener||list[i].listener===listener){originalListener=list[i].listener;position=i;break;}}if(position<0)return this;if(position===0)list.shift();else{spliceOne(list,position);}if(list.length===1)events[type]=list[0];if(events.removeListener!==undefined)this.emit('removeListener',type,originalListener||listener);}return this;};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.removeAllListeners=function removeAllListeners(type){var listeners,events,i;events=this._events;if(events===undefined)return this;// not listening for removeListener, no need to emit\nif(events.removeListener===undefined){if(arguments.length===0){this._events=Object.create(null);this._eventsCount=0;}else if(events[type]!==undefined){if(--this._eventsCount===0)this._events=Object.create(null);else delete events[type];}return this;}// emit removeListener for all listeners on all events\nif(arguments.length===0){var keys=Object.keys(events);var key;for(i=0;i<keys.length;++i){key=keys[i];if(key==='removeListener')continue;this.removeAllListeners(key);}this.removeAllListeners('removeListener');this._events=Object.create(null);this._eventsCount=0;return this;}listeners=events[type];if(typeof listeners==='function'){this.removeListener(type,listeners);}else if(listeners!==undefined){// LIFO order\nfor(i=listeners.length-1;i>=0;i--){this.removeListener(type,listeners[i]);}}return this;};function _listeners(target,type,unwrap){var events=target._events;if(events===undefined)return[];var evlistener=events[type];if(evlistener===undefined)return[];if(typeof evlistener==='function')return unwrap?[evlistener.listener||evlistener]:[evlistener];return unwrap?unwrapListeners(evlistener):arrayClone(evlistener,evlistener.length);}EventEmitter.prototype.listeners=function listeners(type){return _listeners(this,type,true);};EventEmitter.prototype.rawListeners=function rawListeners(type){return _listeners(this,type,false);};EventEmitter.listenerCount=function(emitter,type){if(typeof emitter.listenerCount==='function'){return emitter.listenerCount(type);}else{return listenerCount.call(emitter,type);}};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(type){var events=this._events;if(events!==undefined){var evlistener=events[type];if(typeof evlistener==='function'){return 1;}else if(evlistener!==undefined){return evlistener.length;}}return 0;}EventEmitter.prototype.eventNames=function eventNames(){return this._eventsCount>0?ReflectOwnKeys(this._events):[];};function arrayClone(arr,n){var copy=new Array(n);for(var i=0;i<n;++i)copy[i]=arr[i];return copy;}function spliceOne(list,index){for(;index+1<list.length;index++)list[index]=list[index+1];list.pop();}function unwrapListeners(arr){var ret=new Array(arr.length);for(var i=0;i<ret.length;++i){ret[i]=arr[i].listener||arr[i];}return ret;}/***/},/* 69 */ /***/function(module,exports,__nested_webpack_require_3051189__){\"use strict\";/* WEBPACK VAR INJECTION */(function(process){if(typeof process==='undefined'||!process.version||process.version.indexOf('v0.')===0||process.version.indexOf('v1.')===0&&process.version.indexOf('v1.8.')!==0){module.exports={nextTick:nextTick};}else{module.exports=process;}function nextTick(fn,arg1,arg2,arg3){if(typeof fn!=='function'){throw new TypeError('\"callback\" argument must be a function');}var len=arguments.length;var args,i;switch(len){case 0:case 1:return process.nextTick(fn);case 2:return process.nextTick(function afterTickOne(){fn.call(null,arg1);});case 3:return process.nextTick(function afterTickTwo(){fn.call(null,arg1,arg2);});case 4:return process.nextTick(function afterTickThree(){fn.call(null,arg1,arg2,arg3);});default:args=new Array(len-1);i=0;while(i<args.length){args[i++]=arguments[i];}return process.nextTick(function afterTick(){fn.apply(null,args);});}}/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3051189__(25));/***/},/* 70 */ /***/function(module,exports,__nested_webpack_require_3052219__){/* eslint-disable node/no-deprecated-api */var buffer=__nested_webpack_require_3052219__(4);var Buffer=buffer.Buffer;// alternative to using Object.keys for old browsers\nfunction copyProps(src,dst){for(var key in src){dst[key]=src[key];}}if(Buffer.from&&Buffer.alloc&&Buffer.allocUnsafe&&Buffer.allocUnsafeSlow){module.exports=buffer;}else{// Copy properties from require('buffer')\ncopyProps(buffer,exports);exports.Buffer=SafeBuffer;}function SafeBuffer(arg,encodingOrOffset,length){return Buffer(arg,encodingOrOffset,length);}// Copy static methods from Buffer\ncopyProps(Buffer,SafeBuffer);SafeBuffer.from=function(arg,encodingOrOffset,length){if(typeof arg==='number'){throw new TypeError('Argument must not be a number');}return Buffer(arg,encodingOrOffset,length);};SafeBuffer.alloc=function(size,fill,encoding){if(typeof size!=='number'){throw new TypeError('Argument must be a number');}var buf=Buffer(size);if(fill!==undefined){if(typeof encoding==='string'){buf.fill(fill,encoding);}else{buf.fill(fill);}}else{buf.fill(0);}return buf;};SafeBuffer.allocUnsafe=function(size){if(typeof size!=='number'){throw new TypeError('Argument must be a number');}return Buffer(size);};SafeBuffer.allocUnsafeSlow=function(size){if(typeof size!=='number'){throw new TypeError('Argument must be a number');}return buffer.SlowBuffer(size);};/***/},/* 71 */ /***/function(module,exports,__webpack_require__){\"use strict\";var TYPED_OK=typeof Uint8Array!=='undefined'&&typeof Uint16Array!=='undefined'&&typeof Int32Array!=='undefined';function _has(obj,key){return Object.prototype.hasOwnProperty.call(obj,key);}exports.assign=function(obj/*from1, from2, from3, ...*/){var sources=Array.prototype.slice.call(arguments,1);while(sources.length){var source=sources.shift();if(!source){continue;}if(typeof source!=='object'){throw new TypeError(source+'must be non-object');}for(var p in source){if(_has(source,p)){obj[p]=source[p];}}}return obj;};// reduce buffer size, avoiding mem copy\nexports.shrinkBuf=function(buf,size){if(buf.length===size){return buf;}if(buf.subarray){return buf.subarray(0,size);}buf.length=size;return buf;};var fnTyped={arraySet:function(dest,src,src_offs,len,dest_offs){if(src.subarray&&dest.subarray){dest.set(src.subarray(src_offs,src_offs+len),dest_offs);return;}// Fallback to ordinary array\nfor(var i=0;i<len;i++){dest[dest_offs+i]=src[src_offs+i];}},// Join array of chunks to single array.\nflattenChunks:function(chunks){var i,l,len,pos,chunk,result;// calculate data length\nlen=0;for(i=0,l=chunks.length;i<l;i++){len+=chunks[i].length;}// join chunks\nresult=new Uint8Array(len);pos=0;for(i=0,l=chunks.length;i<l;i++){chunk=chunks[i];result.set(chunk,pos);pos+=chunk.length;}return result;}};var fnUntyped={arraySet:function(dest,src,src_offs,len,dest_offs){for(var i=0;i<len;i++){dest[dest_offs+i]=src[src_offs+i];}},// Join array of chunks to single array.\nflattenChunks:function(chunks){return[].concat.apply([],chunks);}};// Enable/Disable typed arrays use, for testing\n//\nexports.setTyped=function(on){if(on){exports.Buf8=Uint8Array;exports.Buf16=Uint16Array;exports.Buf32=Int32Array;exports.assign(exports,fnTyped);}else{exports.Buf8=Array;exports.Buf16=Array;exports.Buf32=Array;exports.assign(exports,fnUntyped);}};exports.setTyped(TYPED_OK);/***/},/* 72 */ /***/function(module,exports,__nested_webpack_require_3055542__){;(function(root,factory){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3055542__(1));}else{}})(this,function(CryptoJS){(function(undefined){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var Base=C_lib.Base;var X32WordArray=C_lib.WordArray;/**\r\n             * x64 namespace.\r\n             */var C_x64=C.x64={};/**\r\n             * A 64-bit word.\r\n             */var X64Word=C_x64.Word=Base.extend({/**\r\n                 * Initializes a newly created 64-bit word.\r\n                 *\r\n                 * @param {number} high The high 32 bits.\r\n                 * @param {number} low The low 32 bits.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);\r\n                 */init:function(high,low){this.high=high;this.low=low;}/**\r\n                 * Bitwise NOTs this word.\r\n                 *\r\n                 * @return {X64Word} A new x64-Word object after negating.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var negated = x64Word.not();\r\n                 */ // not: function () {\n// var high = ~this.high;\n// var low = ~this.low;\n// return X64Word.create(high, low);\n// },\n/**\r\n                 * Bitwise ANDs this word with the passed word.\r\n                 *\r\n                 * @param {X64Word} word The x64-Word to AND with this word.\r\n                 *\r\n                 * @return {X64Word} A new x64-Word object after ANDing.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var anded = x64Word.and(anotherX64Word);\r\n                 */ // and: function (word) {\n// var high = this.high & word.high;\n// var low = this.low & word.low;\n// return X64Word.create(high, low);\n// },\n/**\r\n                 * Bitwise ORs this word with the passed word.\r\n                 *\r\n                 * @param {X64Word} word The x64-Word to OR with this word.\r\n                 *\r\n                 * @return {X64Word} A new x64-Word object after ORing.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var ored = x64Word.or(anotherX64Word);\r\n                 */ // or: function (word) {\n// var high = this.high | word.high;\n// var low = this.low | word.low;\n// return X64Word.create(high, low);\n// },\n/**\r\n                 * Bitwise XORs this word with the passed word.\r\n                 *\r\n                 * @param {X64Word} word The x64-Word to XOR with this word.\r\n                 *\r\n                 * @return {X64Word} A new x64-Word object after XORing.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var xored = x64Word.xor(anotherX64Word);\r\n                 */ // xor: function (word) {\n// var high = this.high ^ word.high;\n// var low = this.low ^ word.low;\n// return X64Word.create(high, low);\n// },\n/**\r\n                 * Shifts this word n bits to the left.\r\n                 *\r\n                 * @param {number} n The number of bits to shift.\r\n                 *\r\n                 * @return {X64Word} A new x64-Word object after shifting.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var shifted = x64Word.shiftL(25);\r\n                 */ // shiftL: function (n) {\n// if (n < 32) {\n// var high = (this.high << n) | (this.low >>> (32 - n));\n// var low = this.low << n;\n// } else {\n// var high = this.low << (n - 32);\n// var low = 0;\n// }\n// return X64Word.create(high, low);\n// },\n/**\r\n                 * Shifts this word n bits to the right.\r\n                 *\r\n                 * @param {number} n The number of bits to shift.\r\n                 *\r\n                 * @return {X64Word} A new x64-Word object after shifting.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var shifted = x64Word.shiftR(7);\r\n                 */ // shiftR: function (n) {\n// if (n < 32) {\n// var low = (this.low >>> n) | (this.high << (32 - n));\n// var high = this.high >>> n;\n// } else {\n// var low = this.high >>> (n - 32);\n// var high = 0;\n// }\n// return X64Word.create(high, low);\n// },\n/**\r\n                 * Rotates this word n bits to the left.\r\n                 *\r\n                 * @param {number} n The number of bits to rotate.\r\n                 *\r\n                 * @return {X64Word} A new x64-Word object after rotating.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var rotated = x64Word.rotL(25);\r\n                 */ // rotL: function (n) {\n// return this.shiftL(n).or(this.shiftR(64 - n));\n// },\n/**\r\n                 * Rotates this word n bits to the right.\r\n                 *\r\n                 * @param {number} n The number of bits to rotate.\r\n                 *\r\n                 * @return {X64Word} A new x64-Word object after rotating.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var rotated = x64Word.rotR(7);\r\n                 */ // rotR: function (n) {\n// return this.shiftR(n).or(this.shiftL(64 - n));\n// },\n/**\r\n                 * Adds this word with the passed word.\r\n                 *\r\n                 * @param {X64Word} word The x64-Word to add with this word.\r\n                 *\r\n                 * @return {X64Word} A new x64-Word object after adding.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var added = x64Word.add(anotherX64Word);\r\n                 */ // add: function (word) {\n// var low = (this.low + word.low) | 0;\n// var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;\n// var high = (this.high + word.high + carry) | 0;\n// return X64Word.create(high, low);\n// }\n});/**\r\n             * An array of 64-bit words.\r\n             *\r\n             * @property {Array} words The array of CryptoJS.x64.Word objects.\r\n             * @property {number} sigBytes The number of significant bytes in this word array.\r\n             */var X64WordArray=C_x64.WordArray=Base.extend({/**\r\n                 * Initializes a newly created word array.\r\n                 *\r\n                 * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.\r\n                 * @param {number} sigBytes (Optional) The number of significant bytes in the words.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var wordArray = CryptoJS.x64.WordArray.create();\r\n                 *\r\n                 *     var wordArray = CryptoJS.x64.WordArray.create([\r\n                 *         CryptoJS.x64.Word.create(0x00010203, 0x04050607),\r\n                 *         CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)\r\n                 *     ]);\r\n                 *\r\n                 *     var wordArray = CryptoJS.x64.WordArray.create([\r\n                 *         CryptoJS.x64.Word.create(0x00010203, 0x04050607),\r\n                 *         CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)\r\n                 *     ], 10);\r\n                 */init:function(words,sigBytes){words=this.words=words||[];if(sigBytes!=undefined){this.sigBytes=sigBytes;}else{this.sigBytes=words.length*8;}},/**\r\n                 * Converts this 64-bit word array to a 32-bit word array.\r\n                 *\r\n                 * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var x32WordArray = x64WordArray.toX32();\r\n                 */toX32:function(){// Shortcuts\nvar x64Words=this.words;var x64WordsLength=x64Words.length;// Convert\nvar x32Words=[];for(var i=0;i<x64WordsLength;i++){var x64Word=x64Words[i];x32Words.push(x64Word.high);x32Words.push(x64Word.low);}return X32WordArray.create(x32Words,this.sigBytes);},/**\r\n                 * Creates a copy of this word array.\r\n                 *\r\n                 * @return {X64WordArray} The clone.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var clone = x64WordArray.clone();\r\n                 */clone:function(){var clone=Base.clone.call(this);// Clone \"words\" array\nvar words=clone.words=this.words.slice(0);// Clone each X64Word object\nvar wordsLength=words.length;for(var i=0;i<wordsLength;i++){words[i]=words[i].clone();}return clone;}});})();return CryptoJS;});/***/},/* 73 */ /***/function(module,exports){exports.f={}.propertyIsEnumerable;/***/},/* 74 */ /***/function(module,exports,__nested_webpack_require_3064055__){__nested_webpack_require_3064055__(337);var global=__nested_webpack_require_3064055__(21);var hide=__nested_webpack_require_3064055__(27);var Iterators=__nested_webpack_require_3064055__(58);var TO_STRING_TAG=__nested_webpack_require_3064055__(14)('toStringTag');var DOMIterables=('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,'+'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,'+'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,'+'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,'+'TextTrackList,TouchList').split(',');for(var i=0;i<DOMIterables.length;i++){var NAME=DOMIterables[i];var Collection=global[NAME];var proto=Collection&&Collection.prototype;if(proto&&!proto[TO_STRING_TAG])hide(proto,TO_STRING_TAG,NAME);Iterators[NAME]=Iterators.Array;}/***/},/* 75 */ /***/function(module,exports){module.exports=true;/***/},/* 76 */ /***/function(module,exports,__nested_webpack_require_3065088__){// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject=__nested_webpack_require_3065088__(28);var dPs=__nested_webpack_require_3065088__(185);var enumBugKeys=__nested_webpack_require_3065088__(120);var IE_PROTO=__nested_webpack_require_3065088__(118)('IE_PROTO');var Empty=function(){/* empty */};var PROTOTYPE='prototype';// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict=function(){// Thrash, waste and sodomy: IE GC bug\nvar iframe=__nested_webpack_require_3065088__(181)('iframe');var i=enumBugKeys.length;var lt='<';var gt='>';var iframeDocument;iframe.style.display='none';__nested_webpack_require_3065088__(341).appendChild(iframe);iframe.src='javascript:';// eslint-disable-line no-script-url\n// createDict = iframe.contentWindow.Object;\n// html.removeChild(iframe);\niframeDocument=iframe.contentWindow.document;iframeDocument.open();iframeDocument.write(lt+'script'+gt+'document.F=Object'+lt+'/script'+gt);iframeDocument.close();createDict=iframeDocument.F;while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];return createDict();};module.exports=Object.create||function create(O,Properties){var result;if(O!==null){Empty[PROTOTYPE]=anObject(O);result=new Empty();Empty[PROTOTYPE]=null;// add \"__proto__\" for Object.getPrototypeOf polyfill\nresult[IE_PROTO]=O;}else result=createDict();return Properties===undefined?result:dPs(result,Properties);};/***/},/* 77 */ /***/function(module,exports,__nested_webpack_require_3066485__){// 7.1.15 ToLength\nvar toInteger=__nested_webpack_require_3066485__(117);var min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),0x1fffffffffffff):0;// pow(2, 53) - 1 == 9007199254740991\n};/***/},/* 78 */ /***/function(module,exports){var id=0;var px=Math.random();module.exports=function(key){return'Symbol('.concat(key===undefined?'':key,')_',(++id+px).toString(36));};/***/},/* 79 */ /***/function(module,exports,__nested_webpack_require_3066926__){var def=__nested_webpack_require_3066926__(17).f;var has=__nested_webpack_require_3066926__(36);var TAG=__nested_webpack_require_3066926__(14)('toStringTag');module.exports=function(it,tag,stat){if(it&&!has(it=stat?it:it.prototype,TAG))def(it,TAG,{configurable:true,value:tag});};/***/},/* 80 */ /***/function(module,exports,__nested_webpack_require_3067227__){var META=__nested_webpack_require_3067227__(78)('meta');var isObject=__nested_webpack_require_3067227__(20);var has=__nested_webpack_require_3067227__(36);var setDesc=__nested_webpack_require_3067227__(17).f;var id=0;var isExtensible=Object.isExtensible||function(){return true;};var FREEZE=!__nested_webpack_require_3067227__(37)(function(){return isExtensible(Object.preventExtensions({}));});var setMeta=function(it){setDesc(it,META,{value:{i:'O'+ ++id,// object ID\nw:{}// weak collections IDs\n}});};var fastKey=function(it,create){// return primitive with prefix\nif(!isObject(it))return typeof it=='symbol'?it:(typeof it=='string'?'S':'P')+it;if(!has(it,META)){// can't set metadata to uncaught frozen object\nif(!isExtensible(it))return'F';// not necessary to add metadata\nif(!create)return'E';// add missing metadata\nsetMeta(it);// return object ID\n}return it[META].i;};var getWeak=function(it,create){if(!has(it,META)){// can't set metadata to uncaught frozen object\nif(!isExtensible(it))return true;// not necessary to add metadata\nif(!create)return false;// add missing metadata\nsetMeta(it);// return hash weak collections IDs\n}return it[META].w;};// add metadata on freeze-family methods calling\nvar onFreeze=function(it){if(FREEZE&&meta.NEED&&isExtensible(it)&&!has(it,META))setMeta(it);return it;};var meta=module.exports={KEY:META,NEED:false,fastKey:fastKey,getWeak:getWeak,onFreeze:onFreeze};/***/},/* 81 */ /***/function(module,exports,__nested_webpack_require_3068623__){var ctx=__nested_webpack_require_3068623__(38);var call=__nested_webpack_require_3068623__(195);var isArrayIter=__nested_webpack_require_3068623__(196);var anObject=__nested_webpack_require_3068623__(28);var toLength=__nested_webpack_require_3068623__(77);var getIterFn=__nested_webpack_require_3068623__(121);var BREAK={};var RETURN={};var exports=module.exports=function(iterable,entries,fn,that,ITERATOR){var iterFn=ITERATOR?function(){return iterable;}:getIterFn(iterable);var f=ctx(fn,that,entries?2:1);var index=0;var length,step,iterator,result;if(typeof iterFn!='function')throw TypeError(iterable+' is not iterable!');// fast case for arrays with default iterator\nif(isArrayIter(iterFn))for(length=toLength(iterable.length);length>index;index++){result=entries?f(anObject(step=iterable[index])[0],step[1]):f(iterable[index]);if(result===BREAK||result===RETURN)return result;}else for(iterator=iterFn.call(iterable);!(step=iterator.next()).done;){result=call(iterator,f,step.value,entries);if(result===BREAK||result===RETURN)return result;}};exports.BREAK=BREAK;exports.RETURN=RETURN;/***/},/* 82 */ /***/function(module,exports,__nested_webpack_require_3069691__){__nested_webpack_require_3069691__(140)('Uint32',4,function(init){return function Uint32Array(data,byteOffset,length){return init(this,data,byteOffset,length);};});/***/},/* 83 */ /***/function(module,exports){var TINF_OK=0;var TINF_DATA_ERROR=-3;function Tree(){this.table=new Uint16Array(16);/* table of code length counts */this.trans=new Uint16Array(288);/* code -> symbol translation table */}function Data(source,dest){this.source=source;this.sourceIndex=0;this.tag=0;this.bitcount=0;this.dest=dest;this.destLen=0;this.ltree=new Tree();/* dynamic length/symbol tree */this.dtree=new Tree();/* dynamic distance tree */}/* --------------------------------------------------- *\r\n     * -- uninitialized global data (static structures) -- *\r\n     * --------------------------------------------------- */var sltree=new Tree();var sdtree=new Tree();/* extra bits and base tables for length codes */var length_bits=new Uint8Array(30);var length_base=new Uint16Array(30);/* extra bits and base tables for distance codes */var dist_bits=new Uint8Array(30);var dist_base=new Uint16Array(30);/* special ordering of code length codes */var clcidx=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);/* used by tinf_decode_trees, avoids allocations every call */var code_tree=new Tree();var lengths=new Uint8Array(288+32);/* ----------------------- *\r\n     * -- utility functions -- *\r\n     * ----------------------- */ /* build extra bits and base tables */function tinf_build_bits_base(bits,base,delta,first){var i,sum;/* build bits table */for(i=0;i<delta;++i)bits[i]=0;for(i=0;i<30-delta;++i)bits[i+delta]=i/delta|0;/* build base table */for(sum=first,i=0;i<30;++i){base[i]=sum;sum+=1<<bits[i];}}/* build the fixed huffman trees */function tinf_build_fixed_trees(lt,dt){var i;/* build fixed length tree */for(i=0;i<7;++i)lt.table[i]=0;lt.table[7]=24;lt.table[8]=152;lt.table[9]=112;for(i=0;i<24;++i)lt.trans[i]=256+i;for(i=0;i<144;++i)lt.trans[24+i]=i;for(i=0;i<8;++i)lt.trans[24+144+i]=280+i;for(i=0;i<112;++i)lt.trans[24+144+8+i]=144+i;/* build fixed distance tree */for(i=0;i<5;++i)dt.table[i]=0;dt.table[5]=32;for(i=0;i<32;++i)dt.trans[i]=i;}/* given an array of code lengths, build a tree */var offs=new Uint16Array(16);function tinf_build_tree(t,lengths,off,num){var i,sum;/* clear code length count table */for(i=0;i<16;++i)t.table[i]=0;/* scan symbol lengths, and sum code length counts */for(i=0;i<num;++i)t.table[lengths[off+i]]++;t.table[0]=0;/* compute offset table for distribution sort */for(sum=0,i=0;i<16;++i){offs[i]=sum;sum+=t.table[i];}/* create code->symbol translation table (symbols sorted by code) */for(i=0;i<num;++i){if(lengths[off+i])t.trans[offs[lengths[off+i]]++]=i;}}/* ---------------------- *\r\n     * -- decode functions -- *\r\n     * ---------------------- */ /* get one bit from source stream */function tinf_getbit(d){/* check if tag is empty */if(!d.bitcount--){/* load next tag */d.tag=d.source[d.sourceIndex++];d.bitcount=7;}/* shift bit out of tag */var bit=d.tag&1;d.tag>>>=1;return bit;}/* read a num bit value from a stream and add base */function tinf_read_bits(d,num,base){if(!num)return base;while(d.bitcount<24){d.tag|=d.source[d.sourceIndex++]<<d.bitcount;d.bitcount+=8;}var val=d.tag&0xffff>>>16-num;d.tag>>>=num;d.bitcount-=num;return val+base;}/* given a data stream and a tree, decode a symbol */function tinf_decode_symbol(d,t){while(d.bitcount<24){d.tag|=d.source[d.sourceIndex++]<<d.bitcount;d.bitcount+=8;}var sum=0,cur=0,len=0;var tag=d.tag;/* get more bits while code value is above sum */do{cur=2*cur+(tag&1);tag>>>=1;++len;sum+=t.table[len];cur-=t.table[len];}while(cur>=0);d.tag=tag;d.bitcount-=len;return t.trans[sum+cur];}/* given a data stream, decode dynamic trees from it */function tinf_decode_trees(d,lt,dt){var hlit,hdist,hclen;var i,num,length;/* get 5 bits HLIT (257-286) */hlit=tinf_read_bits(d,5,257);/* get 5 bits HDIST (1-32) */hdist=tinf_read_bits(d,5,1);/* get 4 bits HCLEN (4-19) */hclen=tinf_read_bits(d,4,4);for(i=0;i<19;++i)lengths[i]=0;/* read code lengths for code length alphabet */for(i=0;i<hclen;++i){/* get 3 bits code length (0-7) */var clen=tinf_read_bits(d,3,0);lengths[clcidx[i]]=clen;}/* build code length tree */tinf_build_tree(code_tree,lengths,0,19);/* decode code lengths for the dynamic trees */for(num=0;num<hlit+hdist;){var sym=tinf_decode_symbol(d,code_tree);switch(sym){case 16:/* copy previous code length 3-6 times (read 2 bits) */var prev=lengths[num-1];for(length=tinf_read_bits(d,2,3);length;--length){lengths[num++]=prev;}break;case 17:/* repeat code length 0 for 3-10 times (read 3 bits) */for(length=tinf_read_bits(d,3,3);length;--length){lengths[num++]=0;}break;case 18:/* repeat code length 0 for 11-138 times (read 7 bits) */for(length=tinf_read_bits(d,7,11);length;--length){lengths[num++]=0;}break;default:/* values 0-15 represent the actual code lengths */lengths[num++]=sym;break;}}/* build dynamic trees */tinf_build_tree(lt,lengths,0,hlit);tinf_build_tree(dt,lengths,hlit,hdist);}/* ----------------------------- *\r\n     * -- block inflate functions -- *\r\n     * ----------------------------- */ /* given a stream and two trees, inflate a block of data */function tinf_inflate_block_data(d,lt,dt){while(1){var sym=tinf_decode_symbol(d,lt);/* check for end of block */if(sym===256){return TINF_OK;}if(sym<256){d.dest[d.destLen++]=sym;}else{var length,dist,offs;var i;sym-=257;/* possibly get more bits from length code */length=tinf_read_bits(d,length_bits[sym],length_base[sym]);dist=tinf_decode_symbol(d,dt);/* possibly get more bits from distance code */offs=d.destLen-tinf_read_bits(d,dist_bits[dist],dist_base[dist]);/* copy match */for(i=offs;i<offs+length;++i){d.dest[d.destLen++]=d.dest[i];}}}}/* inflate an uncompressed block of data */function tinf_inflate_uncompressed_block(d){var length,invlength;var i;/* unread from bitbuffer */while(d.bitcount>8){d.sourceIndex--;d.bitcount-=8;}/* get length */length=d.source[d.sourceIndex+1];length=256*length+d.source[d.sourceIndex];/* get one's complement of length */invlength=d.source[d.sourceIndex+3];invlength=256*invlength+d.source[d.sourceIndex+2];/* check length */if(length!==(~invlength&0x0000ffff))return TINF_DATA_ERROR;d.sourceIndex+=4;/* copy block */for(i=length;i;--i)d.dest[d.destLen++]=d.source[d.sourceIndex++];/* make sure we start next block on a byte boundary */d.bitcount=0;return TINF_OK;}/* inflate stream from source to dest */function tinf_uncompress(source,dest){var d=new Data(source,dest);var bfinal,btype,res;do{/* read final block flag */bfinal=tinf_getbit(d);/* read block type (2 bits) */btype=tinf_read_bits(d,2,0);/* decompress block */switch(btype){case 0:/* decompress uncompressed block */res=tinf_inflate_uncompressed_block(d);break;case 1:/* decompress block with fixed huffman trees */res=tinf_inflate_block_data(d,sltree,sdtree);break;case 2:/* decompress block with dynamic huffman trees */tinf_decode_trees(d,d.ltree,d.dtree);res=tinf_inflate_block_data(d,d.ltree,d.dtree);break;default:res=TINF_DATA_ERROR;}if(res!==TINF_OK)throw new Error('Data error');}while(!bfinal);if(d.destLen<d.dest.length){if(typeof d.dest.slice==='function')return d.dest.slice(0,d.destLen);else return d.dest.subarray(0,d.destLen);}return d.dest;}/* -------------------- *\r\n     * -- initialization -- *\r\n     * -------------------- */ /* build fixed huffman trees */tinf_build_fixed_trees(sltree,sdtree);/* build extra bits and base tables */tinf_build_bits_base(length_bits,length_base,4,3);tinf_build_bits_base(dist_bits,dist_base,2,1);/* fix a special case */length_bits[28]=0;length_base[28]=258;module.exports=tinf_uncompress;/***/},/* 84 */ /***/function(module,exports,__nested_webpack_require_3077373__){\"use strict\";/* WEBPACK VAR INJECTION */(function(Buffer,__dirname){function VirtualFileSystem(){this.fileSystem={};this.dataSystem={};}VirtualFileSystem.prototype.readFileSync=function(filename,options){filename=fixFilename(filename);var dataContent=this.dataSystem[filename];if(typeof dataContent==='string'&&options==='utf8'){return dataContent;}if(dataContent){return new Buffer(dataContent,typeof dataContent==='string'?'base64':undefined);}var content=this.fileSystem[filename];if(content){return content;}throw'File \\''+filename+'\\' not found in virtual file system';};VirtualFileSystem.prototype.writeFileSync=function(filename,content){this.fileSystem[fixFilename(filename)]=content;};VirtualFileSystem.prototype.bindFS=function(data){this.dataSystem=data||{};};function fixFilename(filename){if(filename.indexOf(__dirname)===0){filename=filename.substring(__dirname.length);}if(filename.indexOf('/')===0){filename=filename.substring(1);}return filename;}module.exports=new VirtualFileSystem();/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3077373__(4).Buffer,\"/\");/***/},/* 85 */ /***/function(module,exports,__nested_webpack_require_3078517__){// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof=__nested_webpack_require_3078517__(53);// eslint-disable-next-line no-prototype-builtins\nmodule.exports=Object('z').propertyIsEnumerable(0)?Object:function(it){return cof(it)=='String'?it.split(''):Object(it);};/***/},/* 86 */ /***/function(module,exports,__nested_webpack_require_3078856__){// false -> Array#indexOf\n// true  -> Array#includes\nvar toIObject=__nested_webpack_require_3078856__(43);var toLength=__nested_webpack_require_3078856__(16);var toAbsoluteIndex=__nested_webpack_require_3078856__(54);module.exports=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIObject($this);var length=toLength(O.length);var index=toAbsoluteIndex(fromIndex,length);var value;// Array#includes uses SameValueZero equality algorithm\n// eslint-disable-next-line no-self-compare\nif(IS_INCLUDES&&el!=el)while(length>index){value=O[index++];// eslint-disable-next-line no-self-compare\nif(value!=value)return true;// Array#indexOf ignores holes, Array#includes - not\n}else for(;length>index;index++)if(IS_INCLUDES||index in O){if(O[index]===el)return IS_INCLUDES||index||0;}return!IS_INCLUDES&&-1;};};/***/},/* 87 */ /***/function(module,exports,__nested_webpack_require_3079693__){var shared=__nested_webpack_require_3079693__(61)('keys');var uid=__nested_webpack_require_3079693__(29);module.exports=function(key){return shared[key]||(shared[key]=uid(key));};/***/},/* 88 */ /***/function(module,exports){// IE 8- don't enum bug keys\nmodule.exports='constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(',');/***/},/* 89 */ /***/function(module,exports){exports.f=Object.getOwnPropertySymbols;/***/},/* 90 */ /***/function(module,exports,__nested_webpack_require_3080190__){\"use strict\";// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)\nvar toObject=__nested_webpack_require_3080190__(19);var toAbsoluteIndex=__nested_webpack_require_3080190__(54);var toLength=__nested_webpack_require_3080190__(16);module.exports=function fill(value/* , start = 0, end = @length */){var O=toObject(this);var length=toLength(O.length);var aLen=arguments.length;var index=toAbsoluteIndex(aLen>1?arguments[1]:undefined,length);var end=aLen>2?arguments[2]:undefined;var endPos=end===undefined?length:toAbsoluteIndex(end,length);while(endPos>index)O[index++]=value;return O;};/***/},/* 91 */ /***/function(module,exports,__nested_webpack_require_3080813__){// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES=__nested_webpack_require_3080813__(3)('unscopables');var ArrayProto=Array.prototype;if(ArrayProto[UNSCOPABLES]==undefined)__nested_webpack_require_3080813__(15)(ArrayProto,UNSCOPABLES,{});module.exports=function(key){ArrayProto[UNSCOPABLES][key]=true;};/***/},/* 92 */ /***/function(module,exports,__nested_webpack_require_3081162__){\"use strict\";var anObject=__nested_webpack_require_3081162__(12);var toLength=__nested_webpack_require_3081162__(16);var advanceStringIndex=__nested_webpack_require_3081162__(93);var regExpExec=__nested_webpack_require_3081162__(95);// @@match logic\n__nested_webpack_require_3081162__(96)('match',1,function(defined,MATCH,$match,maybeCallNative){return[// `String.prototype.match` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.match\nfunction match(regexp){var O=defined(this);var fn=regexp==undefined?undefined:regexp[MATCH];return fn!==undefined?fn.call(regexp,O):new RegExp(regexp)[MATCH](String(O));},// `RegExp.prototype[@@match]` method\n// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match\nfunction(regexp){var res=maybeCallNative($match,regexp,this);if(res.done)return res.value;var rx=anObject(regexp);var S=String(this);if(!rx.global)return regExpExec(rx,S);var fullUnicode=rx.unicode;rx.lastIndex=0;var A=[];var n=0;var result;while((result=regExpExec(rx,S))!==null){var matchStr=String(result[0]);A[n]=matchStr;if(matchStr==='')rx.lastIndex=advanceStringIndex(S,toLength(rx.lastIndex),fullUnicode);n++;}return n===0?null:A;}];});/***/},/* 93 */ /***/function(module,exports,__nested_webpack_require_3082320__){\"use strict\";var at=__nested_webpack_require_3082320__(94)(true);// `AdvanceStringIndex` abstract operation\n// https://tc39.github.io/ecma262/#sec-advancestringindex\nmodule.exports=function(S,index,unicode){return index+(unicode?at(S,index).length:1);};/***/},/* 94 */ /***/function(module,exports,__nested_webpack_require_3082624__){var toInteger=__nested_webpack_require_3082624__(31);var defined=__nested_webpack_require_3082624__(30);// true  -> String#at\n// false -> String#codePointAt\nmodule.exports=function(TO_STRING){return function(that,pos){var s=String(defined(that));var i=toInteger(pos);var l=s.length;var a,b;if(i<0||i>=l)return TO_STRING?'':undefined;a=s.charCodeAt(i);return a<0xd800||a>0xdbff||i+1===l||(b=s.charCodeAt(i+1))<0xdc00||b>0xdfff?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):(a-0xd800<<10)+(b-0xdc00)+0x10000;};};/***/},/* 95 */ /***/function(module,exports,__nested_webpack_require_3083173__){\"use strict\";var classof=__nested_webpack_require_3083173__(64);var builtinExec=RegExp.prototype.exec;// `RegExpExec` abstract operation\n// https://tc39.github.io/ecma262/#sec-regexpexec\nmodule.exports=function(R,S){var exec=R.exec;if(typeof exec==='function'){var result=exec.call(R,S);if(typeof result!=='object'){throw new TypeError('RegExp exec method returned something other than an Object or null');}return result;}if(classof(R)!=='RegExp'){throw new TypeError('RegExp#exec called on incompatible receiver');}return builtinExec.call(R,S);};/***/},/* 96 */ /***/function(module,exports,__nested_webpack_require_3083771__){\"use strict\";__nested_webpack_require_3083771__(236);var redefine=__nested_webpack_require_3083771__(23);var hide=__nested_webpack_require_3083771__(15);var fails=__nested_webpack_require_3083771__(10);var defined=__nested_webpack_require_3083771__(30);var wks=__nested_webpack_require_3083771__(3);var regexpExec=__nested_webpack_require_3083771__(97);var SPECIES=wks('species');var REPLACE_SUPPORTS_NAMED_GROUPS=!fails(function(){// #replace needs built-in support for named groups.\n// #match works fine because it just return the exec results, even if it has\n// a \"grops\" property.\nvar re=/./;re.exec=function(){var result=[];result.groups={a:'7'};return result;};return''.replace(re,'$<a>')!=='7';});var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=function(){// Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\nvar re=/(?:)/;var originalExec=re.exec;re.exec=function(){return originalExec.apply(this,arguments);};var result='ab'.split(re);return result.length===2&&result[0]==='a'&&result[1]==='b';}();module.exports=function(KEY,length,exec){var SYMBOL=wks(KEY);var DELEGATES_TO_SYMBOL=!fails(function(){// String methods call symbol-named RegEp methods\nvar O={};O[SYMBOL]=function(){return 7;};return''[KEY](O)!=7;});var DELEGATES_TO_EXEC=DELEGATES_TO_SYMBOL?!fails(function(){// Symbol-named RegExp methods call .exec\nvar execCalled=false;var re=/a/;re.exec=function(){execCalled=true;return null;};if(KEY==='split'){// RegExp[@@split] doesn't call the regex's exec method, but first creates\n// a new one. We need to return the patched regex when creating the new one.\nre.constructor={};re.constructor[SPECIES]=function(){return re;};}re[SYMBOL]('');return!execCalled;}):undefined;if(!DELEGATES_TO_SYMBOL||!DELEGATES_TO_EXEC||KEY==='replace'&&!REPLACE_SUPPORTS_NAMED_GROUPS||KEY==='split'&&!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC){var nativeRegExpMethod=/./[SYMBOL];var fns=exec(defined,SYMBOL,''[KEY],function maybeCallNative(nativeMethod,regexp,str,arg2,forceStringMethod){if(regexp.exec===regexpExec){if(DELEGATES_TO_SYMBOL&&!forceStringMethod){// The native String method already delegates to @@method (this\n// polyfilled function), leasing to infinite recursion.\n// We avoid it by directly calling the native @@method method.\nreturn{done:true,value:nativeRegExpMethod.call(regexp,str,arg2)};}return{done:true,value:nativeMethod.call(str,regexp,arg2)};}return{done:false};});var strfn=fns[0];var rxfn=fns[1];redefine(String.prototype,KEY,strfn);hide(RegExp.prototype,SYMBOL,length==2// 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n// 21.2.5.11 RegExp.prototype[@@split](string, limit)\n?function(string,arg){return rxfn.call(string,this,arg);}// 21.2.5.6 RegExp.prototype[@@match](string)\n// 21.2.5.9 RegExp.prototype[@@search](string)\n:function(string){return rxfn.call(string,this);});}};/***/},/* 97 */ /***/function(module,exports,__nested_webpack_require_3086559__){\"use strict\";var regexpFlags=__nested_webpack_require_3086559__(98);var nativeExec=RegExp.prototype.exec;// This always refers to the native implementation, because the\n// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,\n// which loads this file before patching the method.\nvar nativeReplace=String.prototype.replace;var patchedExec=nativeExec;var LAST_INDEX='lastIndex';var UPDATES_LAST_INDEX_WRONG=function(){var re1=/a/,re2=/b*/g;nativeExec.call(re1,'a');nativeExec.call(re2,'a');return re1[LAST_INDEX]!==0||re2[LAST_INDEX]!==0;}();// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED=/()??/.exec('')[1]!==undefined;var PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED;if(PATCH){patchedExec=function exec(str){var re=this;var lastIndex,reCopy,match,i;if(NPCG_INCLUDED){reCopy=new RegExp('^'+re.source+'$(?!\\\\s)',regexpFlags.call(re));}if(UPDATES_LAST_INDEX_WRONG)lastIndex=re[LAST_INDEX];match=nativeExec.call(re,str);if(UPDATES_LAST_INDEX_WRONG&&match){re[LAST_INDEX]=re.global?match.index+match[0].length:lastIndex;}if(NPCG_INCLUDED&&match&&match.length>1){// Fix browsers whose `exec` methods don't consistently return `undefined`\n// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/\n// eslint-disable-next-line no-loop-func\nnativeReplace.call(match[0],reCopy,function(){for(i=1;i<arguments.length-2;i++){if(arguments[i]===undefined)match[i]=undefined;}});}return match;};}module.exports=patchedExec;/***/},/* 98 */ /***/function(module,exports,__nested_webpack_require_3088084__){\"use strict\";// 21.2.5.3 get RegExp.prototype.flags\nvar anObject=__nested_webpack_require_3088084__(12);module.exports=function(){var that=anObject(this);var result='';if(that.global)result+='g';if(that.ignoreCase)result+='i';if(that.multiline)result+='m';if(that.unicode)result+='u';if(that.sticky)result+='y';return result;};/***/},/* 99 */ /***/function(module,exports,__nested_webpack_require_3088462__){var $iterators=__nested_webpack_require_3088462__(66);var getKeys=__nested_webpack_require_3088462__(42);var redefine=__nested_webpack_require_3088462__(23);var global=__nested_webpack_require_3088462__(8);var hide=__nested_webpack_require_3088462__(15);var Iterators=__nested_webpack_require_3088462__(45);var wks=__nested_webpack_require_3088462__(3);var ITERATOR=wks('iterator');var TO_STRING_TAG=wks('toStringTag');var ArrayValues=Iterators.Array;var DOMIterables={CSSRuleList:true,// TODO: Not spec compliant, should be false.\nCSSStyleDeclaration:false,CSSValueList:false,ClientRectList:false,DOMRectList:false,DOMStringList:false,DOMTokenList:true,DataTransferItemList:false,FileList:false,HTMLAllCollection:false,HTMLCollection:false,HTMLFormElement:false,HTMLSelectElement:false,MediaList:true,// TODO: Not spec compliant, should be false.\nMimeTypeArray:false,NamedNodeMap:false,NodeList:true,PaintRequestList:false,Plugin:false,PluginArray:false,SVGLengthList:false,SVGNumberList:false,SVGPathSegList:false,SVGPointList:false,SVGStringList:false,SVGTransformList:false,SourceBufferList:false,StyleSheetList:true,// TODO: Not spec compliant, should be false.\nTextTrackCueList:false,TextTrackList:false,TouchList:false};for(var collections=getKeys(DOMIterables),i=0;i<collections.length;i++){var NAME=collections[i];var explicit=DOMIterables[NAME];var Collection=global[NAME];var proto=Collection&&Collection.prototype;var key;if(proto){if(!proto[ITERATOR])hide(proto,ITERATOR,ArrayValues);if(!proto[TO_STRING_TAG])hide(proto,TO_STRING_TAG,NAME);Iterators[NAME]=ArrayValues;if(explicit)for(key in $iterators)if(!proto[key])redefine(proto,key,$iterators[key],true);}}/***/},/* 100 */ /***/function(module,exports,__nested_webpack_require_3090097__){// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\nmodule.exports=Stream;var EE=__nested_webpack_require_3090097__(68).EventEmitter;var inherits=__nested_webpack_require_3090097__(46);inherits(Stream,EE);Stream.Readable=__nested_webpack_require_3090097__(101);Stream.Writable=__nested_webpack_require_3090097__(261);Stream.Duplex=__nested_webpack_require_3090097__(262);Stream.Transform=__nested_webpack_require_3090097__(263);Stream.PassThrough=__nested_webpack_require_3090097__(264);// Backwards-compat with node 0.4.x\nStream.Stream=Stream;// old-style streams.  Note that the pipe method (the only relevant\n// part of this class) is overridden in the Readable class.\nfunction Stream(){EE.call(this);}Stream.prototype.pipe=function(dest,options){var source=this;function ondata(chunk){if(dest.writable){if(false===dest.write(chunk)&&source.pause){source.pause();}}}source.on('data',ondata);function ondrain(){if(source.readable&&source.resume){source.resume();}}dest.on('drain',ondrain);// If the 'end' option is not supplied, dest.end() will be called when\n// source gets the 'end' or 'close' events.  Only dest.end() once.\nif(!dest._isStdio&&(!options||options.end!==false)){source.on('end',onend);source.on('close',onclose);}var didOnEnd=false;function onend(){if(didOnEnd)return;didOnEnd=true;dest.end();}function onclose(){if(didOnEnd)return;didOnEnd=true;if(typeof dest.destroy==='function')dest.destroy();}// don't leave dangling pipes when there are errors.\nfunction onerror(er){cleanup();if(EE.listenerCount(this,'error')===0){throw er;// Unhandled stream error in pipe.\n}}source.on('error',onerror);dest.on('error',onerror);// remove all the event listeners that were added.\nfunction cleanup(){source.removeListener('data',ondata);dest.removeListener('drain',ondrain);source.removeListener('end',onend);source.removeListener('close',onclose);source.removeListener('error',onerror);dest.removeListener('error',onerror);source.removeListener('end',cleanup);source.removeListener('close',cleanup);dest.removeListener('close',cleanup);}source.on('end',cleanup);source.on('close',cleanup);dest.on('close',cleanup);dest.emit('pipe',source);// Allow for unix-like usage: A.pipe(B).pipe(C)\nreturn dest;};/***/},/* 101 */ /***/function(module,exports,__nested_webpack_require_3093350__){exports=module.exports=__nested_webpack_require_3093350__(166);exports.Stream=exports;exports.Readable=exports;exports.Writable=__nested_webpack_require_3093350__(102);exports.Duplex=__nested_webpack_require_3093350__(32);exports.Transform=__nested_webpack_require_3093350__(169);exports.PassThrough=__nested_webpack_require_3093350__(260);/***/},/* 102 */ /***/function(module,exports,__nested_webpack_require_3093682__){\"use strict\";/* WEBPACK VAR INJECTION */(function(process,global){// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n/*<replacement>*/var pna=__nested_webpack_require_3093682__(69);/*</replacement>*/module.exports=Writable;/* <replacement> */function WriteReq(chunk,encoding,cb){this.chunk=chunk;this.encoding=encoding;this.callback=cb;this.next=null;}// It seems a linked list but it is not\n// there will be only 2 of these for each stream\nfunction CorkedRequest(state){var _this=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(_this,state);};}/* </replacement> */ /*<replacement>*/var asyncWrite=!process.browser&&['v0.10','v0.9.'].indexOf(process.version.slice(0,5))>-1?setImmediate:pna.nextTick;/*</replacement>*/ /*<replacement>*/var Duplex;/*</replacement>*/Writable.WritableState=WritableState;/*<replacement>*/var util=__nested_webpack_require_3093682__(56);util.inherits=__nested_webpack_require_3093682__(46);/*</replacement>*/ /*<replacement>*/var internalUtil={deprecate:__nested_webpack_require_3093682__(259)};/*</replacement>*/ /*<replacement>*/var Stream=__nested_webpack_require_3093682__(167);/*</replacement>*/ /*<replacement>*/var Buffer=__nested_webpack_require_3093682__(70).Buffer;var OurUint8Array=global.Uint8Array||function(){};function _uint8ArrayToBuffer(chunk){return Buffer.from(chunk);}function _isUint8Array(obj){return Buffer.isBuffer(obj)||obj instanceof OurUint8Array;}/*</replacement>*/var destroyImpl=__nested_webpack_require_3093682__(168);util.inherits(Writable,Stream);function nop(){}function WritableState(options,stream){Duplex=Duplex||__nested_webpack_require_3093682__(32);options=options||{};// Duplex streams are both readable and writable, but share\n// the same options object.\n// However, some cases require setting options to different\n// values for the readable and the writable sides of the duplex stream.\n// These options can be provided separately as readableXXX and writableXXX.\nvar isDuplex=stream instanceof Duplex;// object stream flag to indicate whether or not this stream\n// contains buffers or objects.\nthis.objectMode=!!options.objectMode;if(isDuplex)this.objectMode=this.objectMode||!!options.writableObjectMode;// the point at which write() starts returning false\n// Note: 0 is a valid value, means that we always return false if\n// the entire buffer is not flushed immediately on write()\nvar hwm=options.highWaterMark;var writableHwm=options.writableHighWaterMark;var defaultHwm=this.objectMode?16:16*1024;if(hwm||hwm===0)this.highWaterMark=hwm;else if(isDuplex&&(writableHwm||writableHwm===0))this.highWaterMark=writableHwm;else this.highWaterMark=defaultHwm;// cast to ints.\nthis.highWaterMark=Math.floor(this.highWaterMark);// if _final has been called\nthis.finalCalled=false;// drain event flag.\nthis.needDrain=false;// at the start of calling end()\nthis.ending=false;// when end() has been called, and returned\nthis.ended=false;// when 'finish' is emitted\nthis.finished=false;// has it been destroyed\nthis.destroyed=false;// should we decode strings into buffers before passing to _write?\n// this is here so that some node-core streams can optimize string\n// handling at a lower level.\nvar noDecode=options.decodeStrings===false;this.decodeStrings=!noDecode;// Crypto is kind of old and crusty.  Historically, its default string\n// encoding is 'binary' so we have to make this configurable.\n// Everything else in the universe uses 'utf8', though.\nthis.defaultEncoding=options.defaultEncoding||'utf8';// not an actual buffer we keep track of, but a measurement\n// of how much we're waiting to get pushed to some underlying\n// socket or file.\nthis.length=0;// a flag to see when we're in the middle of a write.\nthis.writing=false;// when true all writes will be buffered until .uncork() call\nthis.corked=0;// a flag to be able to tell if the onwrite cb is called immediately,\n// or on a later tick.  We set this to true at first, because any\n// actions that shouldn't happen until \"later\" should generally also\n// not happen before the first write call.\nthis.sync=true;// a flag to know if we're processing previously buffered items, which\n// may call the _write() callback in the same tick, so that we don't\n// end up in an overlapped onwrite situation.\nthis.bufferProcessing=false;// the callback that's passed to _write(chunk,cb)\nthis.onwrite=function(er){onwrite(stream,er);};// the callback that the user supplies to write(chunk,encoding,cb)\nthis.writecb=null;// the amount that is being written when _write is called.\nthis.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;// number of pending user-supplied write callbacks\n// this must be 0 before 'finish' can be emitted\nthis.pendingcb=0;// emit prefinish if the only thing we're waiting for is _write cbs\n// This is relevant for synchronous Transform streams\nthis.prefinished=false;// True if the error was already emitted and should not be thrown again\nthis.errorEmitted=false;// count buffered requests\nthis.bufferedRequestCount=0;// allocate the first CorkedRequest, there is always\n// one allocated and free to use, and we maintain at most two\nthis.corkedRequestsFree=new CorkedRequest(this);}WritableState.prototype.getBuffer=function getBuffer(){var current=this.bufferedRequest;var out=[];while(current){out.push(current);current=current.next;}return out;};(function(){try{Object.defineProperty(WritableState.prototype,'buffer',{get:internalUtil.deprecate(function(){return this.getBuffer();},'_writableState.buffer is deprecated. Use _writableState.getBuffer '+'instead.','DEP0003')});}catch(_){}})();// Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\nvar realHasInstance;if(typeof Symbol==='function'&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==='function'){realHasInstance=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(object){if(realHasInstance.call(this,object))return true;if(this!==Writable)return false;return object&&object._writableState instanceof WritableState;}});}else{realHasInstance=function(object){return object instanceof this;};}function Writable(options){Duplex=Duplex||__nested_webpack_require_3093682__(32);// Writable ctor is applied to Duplexes, too.\n// `realHasInstance` is necessary because using plain `instanceof`\n// would return false, as no `_writableState` property is attached.\n// Trying to use the custom `instanceof` for Writable here will also break the\n// Node.js LazyTransform implementation, which has a non-trivial getter for\n// `_writableState` that would lead to infinite recursion.\nif(!realHasInstance.call(Writable,this)&&!(this instanceof Duplex)){return new Writable(options);}this._writableState=new WritableState(options,this);// legacy.\nthis.writable=true;if(options){if(typeof options.write==='function')this._write=options.write;if(typeof options.writev==='function')this._writev=options.writev;if(typeof options.destroy==='function')this._destroy=options.destroy;if(typeof options.final==='function')this._final=options.final;}Stream.call(this);}// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe=function(){this.emit('error',new Error('Cannot pipe, not readable'));};function writeAfterEnd(stream,cb){var er=new Error('write after end');// TODO: defer error events consistently everywhere, not just the cb\nstream.emit('error',er);pna.nextTick(cb,er);}// Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\nfunction validChunk(stream,state,chunk,cb){var valid=true;var er=false;if(chunk===null){er=new TypeError('May not write null values to stream');}else if(typeof chunk!=='string'&&chunk!==undefined&&!state.objectMode){er=new TypeError('Invalid non-string/buffer chunk');}if(er){stream.emit('error',er);pna.nextTick(cb,er);valid=false;}return valid;}Writable.prototype.write=function(chunk,encoding,cb){var state=this._writableState;var ret=false;var isBuf=!state.objectMode&&_isUint8Array(chunk);if(isBuf&&!Buffer.isBuffer(chunk)){chunk=_uint8ArrayToBuffer(chunk);}if(typeof encoding==='function'){cb=encoding;encoding=null;}if(isBuf)encoding='buffer';else if(!encoding)encoding=state.defaultEncoding;if(typeof cb!=='function')cb=nop;if(state.ended)writeAfterEnd(this,cb);else if(isBuf||validChunk(this,state,chunk,cb)){state.pendingcb++;ret=writeOrBuffer(this,state,isBuf,chunk,encoding,cb);}return ret;};Writable.prototype.cork=function(){var state=this._writableState;state.corked++;};Writable.prototype.uncork=function(){var state=this._writableState;if(state.corked){state.corked--;if(!state.writing&&!state.corked&&!state.finished&&!state.bufferProcessing&&state.bufferedRequest)clearBuffer(this,state);}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(encoding){// node::ParseEncoding() requires lower case.\nif(typeof encoding==='string')encoding=encoding.toLowerCase();if(!(['hex','utf8','utf-8','ascii','binary','base64','ucs2','ucs-2','utf16le','utf-16le','raw'].indexOf((encoding+'').toLowerCase())>-1))throw new TypeError('Unknown encoding: '+encoding);this._writableState.defaultEncoding=encoding;return this;};function decodeChunk(state,chunk,encoding){if(!state.objectMode&&state.decodeStrings!==false&&typeof chunk==='string'){chunk=Buffer.from(chunk,encoding);}return chunk;}Object.defineProperty(Writable.prototype,'writableHighWaterMark',{// making it explicit this property is not enumerable\n// because otherwise some prototype manipulation in\n// userland will fail\nenumerable:false,get:function(){return this._writableState.highWaterMark;}});// if we're already writing something, then just put this\n// in the queue, and wait our turn.  Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream,state,isBuf,chunk,encoding,cb){if(!isBuf){var newChunk=decodeChunk(state,chunk,encoding);if(chunk!==newChunk){isBuf=true;encoding='buffer';chunk=newChunk;}}var len=state.objectMode?1:chunk.length;state.length+=len;var ret=state.length<state.highWaterMark;// we must ensure that previous needDrain will not be reset to false.\nif(!ret)state.needDrain=true;if(state.writing||state.corked){var last=state.lastBufferedRequest;state.lastBufferedRequest={chunk:chunk,encoding:encoding,isBuf:isBuf,callback:cb,next:null};if(last){last.next=state.lastBufferedRequest;}else{state.bufferedRequest=state.lastBufferedRequest;}state.bufferedRequestCount+=1;}else{doWrite(stream,state,false,len,chunk,encoding,cb);}return ret;}function doWrite(stream,state,writev,len,chunk,encoding,cb){state.writelen=len;state.writecb=cb;state.writing=true;state.sync=true;if(writev)stream._writev(chunk,state.onwrite);else stream._write(chunk,encoding,state.onwrite);state.sync=false;}function onwriteError(stream,state,sync,er,cb){--state.pendingcb;if(sync){// defer the callback if we are being called synchronously\n// to avoid piling up things on the stack\npna.nextTick(cb,er);// this can emit finish, and it will always happen\n// after error\npna.nextTick(finishMaybe,stream,state);stream._writableState.errorEmitted=true;stream.emit('error',er);}else{// the caller expect this to happen before if\n// it is async\ncb(er);stream._writableState.errorEmitted=true;stream.emit('error',er);// this can emit finish, but finish must\n// always follow error\nfinishMaybe(stream,state);}}function onwriteStateUpdate(state){state.writing=false;state.writecb=null;state.length-=state.writelen;state.writelen=0;}function onwrite(stream,er){var state=stream._writableState;var sync=state.sync;var cb=state.writecb;onwriteStateUpdate(state);if(er)onwriteError(stream,state,sync,er,cb);else{// Check if we're actually ready to finish, but don't emit yet\nvar finished=needFinish(state);if(!finished&&!state.corked&&!state.bufferProcessing&&state.bufferedRequest){clearBuffer(stream,state);}if(sync){/*<replacement>*/asyncWrite(afterWrite,stream,state,finished,cb);/*</replacement>*/}else{afterWrite(stream,state,finished,cb);}}}function afterWrite(stream,state,finished,cb){if(!finished)onwriteDrain(stream,state);state.pendingcb--;cb();finishMaybe(stream,state);}// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream,state){if(state.length===0&&state.needDrain){state.needDrain=false;stream.emit('drain');}}// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream,state){state.bufferProcessing=true;var entry=state.bufferedRequest;if(stream._writev&&entry&&entry.next){// Fast case, write everything using _writev()\nvar l=state.bufferedRequestCount;var buffer=new Array(l);var holder=state.corkedRequestsFree;holder.entry=entry;var count=0;var allBuffers=true;while(entry){buffer[count]=entry;if(!entry.isBuf)allBuffers=false;entry=entry.next;count+=1;}buffer.allBuffers=allBuffers;doWrite(stream,state,true,state.length,buffer,'',holder.finish);// doWrite is almost always async, defer these to save a bit of time\n// as the hot path ends with doWrite\nstate.pendingcb++;state.lastBufferedRequest=null;if(holder.next){state.corkedRequestsFree=holder.next;holder.next=null;}else{state.corkedRequestsFree=new CorkedRequest(state);}state.bufferedRequestCount=0;}else{// Slow case, write chunks one-by-one\nwhile(entry){var chunk=entry.chunk;var encoding=entry.encoding;var cb=entry.callback;var len=state.objectMode?1:chunk.length;doWrite(stream,state,false,len,chunk,encoding,cb);entry=entry.next;state.bufferedRequestCount--;// if we didn't call the onwrite immediately, then\n// it means that we need to wait until it does.\n// also, that means that the chunk and cb are currently\n// being processed, so move the buffer counter past them.\nif(state.writing){break;}}if(entry===null)state.lastBufferedRequest=null;}state.bufferedRequest=entry;state.bufferProcessing=false;}Writable.prototype._write=function(chunk,encoding,cb){cb(new Error('_write() is not implemented'));};Writable.prototype._writev=null;Writable.prototype.end=function(chunk,encoding,cb){var state=this._writableState;if(typeof chunk==='function'){cb=chunk;chunk=null;encoding=null;}else if(typeof encoding==='function'){cb=encoding;encoding=null;}if(chunk!==null&&chunk!==undefined)this.write(chunk,encoding);// .end() fully uncorks\nif(state.corked){state.corked=1;this.uncork();}// ignore unnecessary end() calls.\nif(!state.ending&&!state.finished)endWritable(this,state,cb);};function needFinish(state){return state.ending&&state.length===0&&state.bufferedRequest===null&&!state.finished&&!state.writing;}function callFinal(stream,state){stream._final(function(err){state.pendingcb--;if(err){stream.emit('error',err);}state.prefinished=true;stream.emit('prefinish');finishMaybe(stream,state);});}function prefinish(stream,state){if(!state.prefinished&&!state.finalCalled){if(typeof stream._final==='function'){state.pendingcb++;state.finalCalled=true;pna.nextTick(callFinal,stream,state);}else{state.prefinished=true;stream.emit('prefinish');}}}function finishMaybe(stream,state){var need=needFinish(state);if(need){prefinish(stream,state);if(state.pendingcb===0){state.finished=true;stream.emit('finish');}}return need;}function endWritable(stream,state,cb){state.ending=true;finishMaybe(stream,state);if(cb){if(state.finished)pna.nextTick(cb);else stream.once('finish',cb);}state.ended=true;stream.writable=false;}function onCorkedFinish(corkReq,state,err){var entry=corkReq.entry;corkReq.entry=null;while(entry){var cb=entry.callback;state.pendingcb--;cb(err);entry=entry.next;}if(state.corkedRequestsFree){state.corkedRequestsFree.next=corkReq;}else{state.corkedRequestsFree=corkReq;}}Object.defineProperty(Writable.prototype,'destroyed',{get:function(){if(this._writableState===undefined){return false;}return this._writableState.destroyed;},set:function(value){// we ignore the value if the stream\n// has not been initialized yet\nif(!this._writableState){return;}// backward compatibility, the user is explicitly\n// managing destroyed\nthis._writableState.destroyed=value;}});Writable.prototype.destroy=destroyImpl.destroy;Writable.prototype._undestroy=destroyImpl.undestroy;Writable.prototype._destroy=function(err,cb){this.end();cb(err);};/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3093682__(25),__nested_webpack_require_3093682__(22));/***/},/* 103 */ /***/function(module,exports,__nested_webpack_require_3111403__){\"use strict\";// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n/*<replacement>*/var Buffer=__nested_webpack_require_3111403__(70).Buffer;/*</replacement>*/var isEncoding=Buffer.isEncoding||function(encoding){encoding=''+encoding;switch(encoding&&encoding.toLowerCase()){case'hex':case'utf8':case'utf-8':case'ascii':case'binary':case'base64':case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':case'raw':return true;default:return false;}};function _normalizeEncoding(enc){if(!enc)return'utf8';var retried;while(true){switch(enc){case'utf8':case'utf-8':return'utf8';case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return'utf16le';case'latin1':case'binary':return'latin1';case'base64':case'ascii':case'hex':return enc;default:if(retried)return;// undefined\nenc=(''+enc).toLowerCase();retried=true;}}};// Do not cache `Buffer.isEncoding` when checking encoding names as some\n// modules monkey-patch it to support additional encodings\nfunction normalizeEncoding(enc){var nenc=_normalizeEncoding(enc);if(typeof nenc!=='string'&&(Buffer.isEncoding===isEncoding||!isEncoding(enc)))throw new Error('Unknown encoding: '+enc);return nenc||enc;}// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters.\nexports.StringDecoder=StringDecoder;function StringDecoder(encoding){this.encoding=normalizeEncoding(encoding);var nb;switch(this.encoding){case'utf16le':this.text=utf16Text;this.end=utf16End;nb=4;break;case'utf8':this.fillLast=utf8FillLast;nb=4;break;case'base64':this.text=base64Text;this.end=base64End;nb=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return;}this.lastNeed=0;this.lastTotal=0;this.lastChar=Buffer.allocUnsafe(nb);}StringDecoder.prototype.write=function(buf){if(buf.length===0)return'';var r;var i;if(this.lastNeed){r=this.fillLast(buf);if(r===undefined)return'';i=this.lastNeed;this.lastNeed=0;}else{i=0;}if(i<buf.length)return r?r+this.text(buf,i):this.text(buf,i);return r||'';};StringDecoder.prototype.end=utf8End;// Returns only complete characters in a Buffer\nStringDecoder.prototype.text=utf8Text;// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\nStringDecoder.prototype.fillLast=function(buf){if(this.lastNeed<=buf.length){buf.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal);}buf.copy(this.lastChar,this.lastTotal-this.lastNeed,0,buf.length);this.lastNeed-=buf.length;};// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\n// continuation byte. If an invalid byte is detected, -2 is returned.\nfunction utf8CheckByte(byte){if(byte<=0x7F)return 0;else if(byte>>5===0x06)return 2;else if(byte>>4===0x0E)return 3;else if(byte>>3===0x1E)return 4;return byte>>6===0x02?-1:-2;}// Checks at most 3 bytes at the end of a Buffer in order to detect an\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\n// needed to complete the UTF-8 character (if applicable) are returned.\nfunction utf8CheckIncomplete(self,buf,i){var j=buf.length-1;if(j<i)return 0;var nb=utf8CheckByte(buf[j]);if(nb>=0){if(nb>0)self.lastNeed=nb-1;return nb;}if(--j<i||nb===-2)return 0;nb=utf8CheckByte(buf[j]);if(nb>=0){if(nb>0)self.lastNeed=nb-2;return nb;}if(--j<i||nb===-2)return 0;nb=utf8CheckByte(buf[j]);if(nb>=0){if(nb>0){if(nb===2)nb=0;else self.lastNeed=nb-3;}return nb;}return 0;}// Validates as many continuation bytes for a multi-byte UTF-8 character as\n// needed or are available. If we see a non-continuation byte where we expect\n// one, we \"replace\" the validated continuation bytes we've seen so far with\n// a single UTF-8 replacement character ('\\ufffd'), to match v8's UTF-8 decoding\n// behavior. The continuation byte check is included three times in the case\n// where all of the continuation bytes for a character exist in the same buffer.\n// It is also done this way as a slight performance increase instead of using a\n// loop.\nfunction utf8CheckExtraBytes(self,buf,p){if((buf[0]&0xC0)!==0x80){self.lastNeed=0;return'\\ufffd';}if(self.lastNeed>1&&buf.length>1){if((buf[1]&0xC0)!==0x80){self.lastNeed=1;return'\\ufffd';}if(self.lastNeed>2&&buf.length>2){if((buf[2]&0xC0)!==0x80){self.lastNeed=2;return'\\ufffd';}}}}// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\nfunction utf8FillLast(buf){var p=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,buf,p);if(r!==undefined)return r;if(this.lastNeed<=buf.length){buf.copy(this.lastChar,p,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal);}buf.copy(this.lastChar,p,0,buf.length);this.lastNeed-=buf.length;}// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\n// partial character, the character's bytes are buffered until the required\n// number of bytes are available.\nfunction utf8Text(buf,i){var total=utf8CheckIncomplete(this,buf,i);if(!this.lastNeed)return buf.toString('utf8',i);this.lastTotal=total;var end=buf.length-(total-this.lastNeed);buf.copy(this.lastChar,0,end);return buf.toString('utf8',i,end);}// For UTF-8, a replacement character is added when ending on a partial\n// character.\nfunction utf8End(buf){var r=buf&&buf.length?this.write(buf):'';if(this.lastNeed)return r+'\\ufffd';return r;}// UTF-16LE typically needs two bytes per character, but even if we have an even\n// number of bytes available, we need to check if we end on a leading/high\n// surrogate. In that case, we need to wait for the next two bytes in order to\n// decode the last character properly.\nfunction utf16Text(buf,i){if((buf.length-i)%2===0){var r=buf.toString('utf16le',i);if(r){var c=r.charCodeAt(r.length-1);if(c>=0xD800&&c<=0xDBFF){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=buf[buf.length-2];this.lastChar[1]=buf[buf.length-1];return r.slice(0,-1);}}return r;}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=buf[buf.length-1];return buf.toString('utf16le',i,buf.length-1);}// For UTF-16LE we do not explicitly append special replacement characters if we\n// end on a partial character, we simply let v8 handle that.\nfunction utf16End(buf){var r=buf&&buf.length?this.write(buf):'';if(this.lastNeed){var end=this.lastTotal-this.lastNeed;return r+this.lastChar.toString('utf16le',0,end);}return r;}function base64Text(buf,i){var n=(buf.length-i)%3;if(n===0)return buf.toString('base64',i);this.lastNeed=3-n;this.lastTotal=3;if(n===1){this.lastChar[0]=buf[buf.length-1];}else{this.lastChar[0]=buf[buf.length-2];this.lastChar[1]=buf[buf.length-1];}return buf.toString('base64',i,buf.length-n);}function base64End(buf){var r=buf&&buf.length?this.write(buf):'';if(this.lastNeed)return r+this.lastChar.toString('base64',0,3-this.lastNeed);return r;}// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\nfunction simpleWrite(buf){return buf.toString(this.encoding);}function simpleEnd(buf){return buf&&buf.length?this.write(buf):'';}/***/},/* 104 */ /***/function(module,exports,__nested_webpack_require_3119508__){/* WEBPACK VAR INJECTION */(function(process){// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\nvar getOwnPropertyDescriptors=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(obj){var keys=Object.keys(obj);var descriptors={};for(var i=0;i<keys.length;i++){descriptors[keys[i]]=Object.getOwnPropertyDescriptor(obj,keys[i]);}return descriptors;};var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){var objects=[];for(var i=0;i<arguments.length;i++){objects.push(inspect(arguments[i]));}return objects.join(' ');}var i=1;var args=arguments;var len=args.length;var str=String(f).replace(formatRegExp,function(x){if(x==='%%')return'%';if(i>=len)return x;switch(x){case'%s':return String(args[i++]);case'%d':return Number(args[i++]);case'%j':try{return JSON.stringify(args[i++]);}catch(_){return'[Circular]';}default:return x;}});for(var x=args[i];i<len;x=args[++i]){if(isNull(x)||!isObject(x)){str+=' '+x;}else{str+=' '+inspect(x);}}return str;};// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate=function(fn,msg){if(typeof process!=='undefined'&&process.noDeprecation===true){return fn;}// Allow for deprecating things in the process of starting up.\nif(typeof process==='undefined'){return function(){return exports.deprecate(fn,msg).apply(this,arguments);};}var warned=false;function deprecated(){if(!warned){if(process.throwDeprecation){throw new Error(msg);}else if(process.traceDeprecation){console.trace(msg);}else{console.error(msg);}warned=true;}return fn.apply(this,arguments);}return deprecated;};var debugs={};var debugEnviron;exports.debuglog=function(set){if(isUndefined(debugEnviron))debugEnviron=process.env.NODE_DEBUG||'';set=set.toUpperCase();if(!debugs[set]){if(new RegExp('\\\\b'+set+'\\\\b','i').test(debugEnviron)){var pid=process.pid;debugs[set]=function(){var msg=exports.format.apply(exports,arguments);console.error('%s %d: %s',set,pid,msg);};}else{debugs[set]=function(){};}}return debugs[set];};/**\r\n     * Echos the value of a value. Trys to print the value out\r\n     * in the best way possible given the different types.\r\n     *\r\n     * @param {Object} obj The object to print out.\r\n     * @param {Object} opts Optional options object that alters the output.\r\n     */ /* legacy: obj, showHidden, depth, colors*/function inspect(obj,opts){// default options\nvar ctx={seen:[],stylize:stylizeNoColor};// legacy...\nif(arguments.length>=3)ctx.depth=arguments[2];if(arguments.length>=4)ctx.colors=arguments[3];if(isBoolean(opts)){// legacy...\nctx.showHidden=opts;}else if(opts){// got an \"options\" object\nexports._extend(ctx,opts);}// set default options\nif(isUndefined(ctx.showHidden))ctx.showHidden=false;if(isUndefined(ctx.depth))ctx.depth=2;if(isUndefined(ctx.colors))ctx.colors=false;if(isUndefined(ctx.customInspect))ctx.customInspect=true;if(ctx.colors)ctx.stylize=stylizeWithColor;return formatValue(ctx,obj,ctx.depth);}exports.inspect=inspect;// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors={'bold':[1,22],'italic':[3,23],'underline':[4,24],'inverse':[7,27],'white':[37,39],'grey':[90,39],'black':[30,39],'blue':[34,39],'cyan':[36,39],'green':[32,39],'magenta':[35,39],'red':[31,39],'yellow':[33,39]};// Don't use 'blue' not visible on cmd.exe\ninspect.styles={'special':'cyan','number':'yellow','boolean':'yellow','undefined':'grey','null':'bold','string':'green','date':'magenta',// \"name\": intentionally not styling\n'regexp':'red'};function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];if(style){return'\\u001b['+inspect.colors[style][0]+'m'+str+'\\u001b['+inspect.colors[style][1]+'m';}else{return str;}}function stylizeNoColor(str,styleType){return str;}function arrayToHash(array){var hash={};array.forEach(function(val,idx){hash[val]=true;});return hash;}function formatValue(ctx,value,recurseTimes){// Provide a hook for user-specified inspect functions.\n// Check that value is an object with an inspect function on it\nif(ctx.customInspect&&value&&isFunction(value.inspect)&&// Filter out the util module, it's inspect function is special\nvalue.inspect!==exports.inspect&&// Also filter out any prototype objects using the circular check.\n!(value.constructor&&value.constructor.prototype===value)){var ret=value.inspect(recurseTimes,ctx);if(!isString(ret)){ret=formatValue(ctx,ret,recurseTimes);}return ret;}// Primitive types cannot have properties\nvar primitive=formatPrimitive(ctx,value);if(primitive){return primitive;}// Look up the keys of the object.\nvar keys=Object.keys(value);var visibleKeys=arrayToHash(keys);if(ctx.showHidden){keys=Object.getOwnPropertyNames(value);}// IE doesn't make error fields non-enumerable\n// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\nif(isError(value)&&(keys.indexOf('message')>=0||keys.indexOf('description')>=0)){return formatError(value);}// Some type of object without properties can be shortcutted.\nif(keys.length===0){if(isFunction(value)){var name=value.name?': '+value.name:'';return ctx.stylize('[Function'+name+']','special');}if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),'regexp');}if(isDate(value)){return ctx.stylize(Date.prototype.toString.call(value),'date');}if(isError(value)){return formatError(value);}}var base='',array=false,braces=['{','}'];// Make Array say that they are Array\nif(isArray(value)){array=true;braces=['[',']'];}// Make functions say that they are functions\nif(isFunction(value)){var n=value.name?': '+value.name:'';base=' [Function'+n+']';}// Make RegExps say that they are RegExps\nif(isRegExp(value)){base=' '+RegExp.prototype.toString.call(value);}// Make dates with properties first say the date\nif(isDate(value)){base=' '+Date.prototype.toUTCString.call(value);}// Make error with message first say the error\nif(isError(value)){base=' '+formatError(value);}if(keys.length===0&&(!array||value.length==0)){return braces[0]+base+braces[1];}if(recurseTimes<0){if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),'regexp');}else{return ctx.stylize('[Object]','special');}}ctx.seen.push(value);var output;if(array){output=formatArray(ctx,value,recurseTimes,visibleKeys,keys);}else{output=keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array);});}ctx.seen.pop();return reduceToSingleString(output,base,braces);}function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize('undefined','undefined');if(isString(value)){var simple='\\''+JSON.stringify(value).replace(/^\"|\"$/g,'').replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+'\\'';return ctx.stylize(simple,'string');}if(isNumber(value))return ctx.stylize(''+value,'number');if(isBoolean(value))return ctx.stylize(''+value,'boolean');// For some reason typeof null is \"object\", so special case here.\nif(isNull(value))return ctx.stylize('null','null');}function formatError(value){return'['+Error.prototype.toString.call(value)+']';}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){var output=[];for(var i=0,l=value.length;i<l;++i){if(hasOwnProperty(value,String(i))){output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,String(i),true));}else{output.push('');}}keys.forEach(function(key){if(!key.match(/^\\d+$/)){output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,key,true));}});return output;}function formatProperty(ctx,value,recurseTimes,visibleKeys,key,array){var name,str,desc;desc=Object.getOwnPropertyDescriptor(value,key)||{value:value[key]};if(desc.get){if(desc.set){str=ctx.stylize('[Getter/Setter]','special');}else{str=ctx.stylize('[Getter]','special');}}else{if(desc.set){str=ctx.stylize('[Setter]','special');}}if(!hasOwnProperty(visibleKeys,key)){name='['+key+']';}if(!str){if(ctx.seen.indexOf(desc.value)<0){if(isNull(recurseTimes)){str=formatValue(ctx,desc.value,null);}else{str=formatValue(ctx,desc.value,recurseTimes-1);}if(str.indexOf('\\n')>-1){if(array){str=str.split('\\n').map(function(line){return'  '+line;}).join('\\n').substr(2);}else{str='\\n'+str.split('\\n').map(function(line){return'   '+line;}).join('\\n');}}}else{str=ctx.stylize('[Circular]','special');}}if(isUndefined(name)){if(array&&key.match(/^\\d+$/)){return str;}name=JSON.stringify(''+key);if(name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)){name=name.substr(1,name.length-2);name=ctx.stylize(name,'name');}else{name=name.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\");name=ctx.stylize(name,'string');}}return name+': '+str;}function reduceToSingleString(output,base,braces){var numLinesEst=0;var length=output.reduce(function(prev,cur){numLinesEst++;if(cur.indexOf('\\n')>=0)numLinesEst++;return prev+cur.replace(/\\u001b\\[\\d\\d?m/g,'').length+1;},0);if(length>60){return braces[0]+(base===''?'':base+'\\n ')+' '+output.join(',\\n  ')+' '+braces[1];}return braces[0]+base+' '+output.join(', ')+' '+braces[1];}// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nfunction isArray(ar){return Array.isArray(ar);}exports.isArray=isArray;function isBoolean(arg){return typeof arg==='boolean';}exports.isBoolean=isBoolean;function isNull(arg){return arg===null;}exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null;}exports.isNullOrUndefined=isNullOrUndefined;function isNumber(arg){return typeof arg==='number';}exports.isNumber=isNumber;function isString(arg){return typeof arg==='string';}exports.isString=isString;function isSymbol(arg){return typeof arg==='symbol';}exports.isSymbol=isSymbol;function isUndefined(arg){return arg===void 0;}exports.isUndefined=isUndefined;function isRegExp(re){return isObject(re)&&objectToString(re)==='[object RegExp]';}exports.isRegExp=isRegExp;function isObject(arg){return typeof arg==='object'&&arg!==null;}exports.isObject=isObject;function isDate(d){return isObject(d)&&objectToString(d)==='[object Date]';}exports.isDate=isDate;function isError(e){return isObject(e)&&(objectToString(e)==='[object Error]'||e instanceof Error);}exports.isError=isError;function isFunction(arg){return typeof arg==='function';}exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==='boolean'||typeof arg==='number'||typeof arg==='string'||typeof arg==='symbol'||// ES6 symbol\ntypeof arg==='undefined';}exports.isPrimitive=isPrimitive;exports.isBuffer=__nested_webpack_require_3119508__(267);function objectToString(o){return Object.prototype.toString.call(o);}function pad(n){return n<10?'0'+n.toString(10):n.toString(10);}var months=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];// 26 Feb 16:19:34\nfunction timestamp(){var d=new Date();var time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(':');return[d.getDate(),months[d.getMonth()],time].join(' ');}// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log=function(){console.log('%s - %s',timestamp(),exports.format.apply(exports,arguments));};/**\r\n     * Inherit the prototype methods from one constructor into another.\r\n     *\r\n     * The Function.prototype.inherits from lang.js rewritten as a standalone\r\n     * function (not on Function.prototype). NOTE: If this file is to be loaded\r\n     * during bootstrapping this function needs to be rewritten using some native\r\n     * functions as prototype setup using normal JavaScript does not work as\r\n     * expected during bootstrapping (see mirror.js in r114903).\r\n     *\r\n     * @param {function} ctor Constructor function which needs to inherit the\r\n     *     prototype.\r\n     * @param {function} superCtor Constructor function to inherit prototype from.\r\n     */exports.inherits=__nested_webpack_require_3119508__(268);exports._extend=function(origin,add){// Don't do anything if add isn't an object\nif(!add||!isObject(add))return origin;var keys=Object.keys(add);var i=keys.length;while(i--){origin[keys[i]]=add[keys[i]];}return origin;};function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop);}var kCustomPromisifiedSymbol=typeof Symbol!=='undefined'?Symbol('util.promisify.custom'):undefined;exports.promisify=function promisify(original){if(typeof original!=='function')throw new TypeError('The \"original\" argument must be of type Function');if(kCustomPromisifiedSymbol&&original[kCustomPromisifiedSymbol]){var fn=original[kCustomPromisifiedSymbol];if(typeof fn!=='function'){throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');}Object.defineProperty(fn,kCustomPromisifiedSymbol,{value:fn,enumerable:false,writable:false,configurable:true});return fn;}function fn(){var promiseResolve,promiseReject;var promise=new Promise(function(resolve,reject){promiseResolve=resolve;promiseReject=reject;});var args=[];for(var i=0;i<arguments.length;i++){args.push(arguments[i]);}args.push(function(err,value){if(err){promiseReject(err);}else{promiseResolve(value);}});try{original.apply(this,args);}catch(err){promiseReject(err);}return promise;}Object.setPrototypeOf(fn,Object.getPrototypeOf(original));if(kCustomPromisifiedSymbol)Object.defineProperty(fn,kCustomPromisifiedSymbol,{value:fn,enumerable:false,writable:false,configurable:true});return Object.defineProperties(fn,getOwnPropertyDescriptors(original));};exports.promisify.custom=kCustomPromisifiedSymbol;function callbackifyOnRejected(reason,cb){// `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).\n// Because `null` is a special error value in callbacks which means \"no error\n// occurred\", we error-wrap so the callback consumer can distinguish between\n// \"the promise rejected with null\" or \"the promise fulfilled with undefined\".\nif(!reason){var newReason=new Error('Promise was rejected with a falsy value');newReason.reason=reason;reason=newReason;}return cb(reason);}function callbackify(original){if(typeof original!=='function'){throw new TypeError('The \"original\" argument must be of type Function');}// We DO NOT return the promise as it gives the user a false sense that\n// the promise is actually somehow related to the callback's execution\n// and that the callback throwing will reject the promise.\nfunction callbackified(){var args=[];for(var i=0;i<arguments.length;i++){args.push(arguments[i]);}var maybeCb=args.pop();if(typeof maybeCb!=='function'){throw new TypeError('The last argument must be of type Function');}var self=this;var cb=function(){return maybeCb.apply(self,arguments);};// In true node style we process the callback on `nextTick` with all the\n// implications (stack, `uncaughtException`, `async_hooks`)\noriginal.apply(this,args).then(function(ret){process.nextTick(cb,null,ret);},function(rej){process.nextTick(callbackifyOnRejected,rej,cb);});}Object.setPrototypeOf(callbackified,Object.getPrototypeOf(original));Object.defineProperties(callbackified,getOwnPropertyDescriptors(original));return callbackified;}exports.callbackify=callbackify;/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3119508__(25));/***/},/* 105 */ /***/function(module,exports,__nested_webpack_require_3135669__){;(function(root,factory){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3135669__(1));}else{}})(this,function(CryptoJS){(function(){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var WordArray=C_lib.WordArray;var Hasher=C_lib.Hasher;var C_algo=C.algo;// Reusable object\nvar W=[];/**\r\n             * SHA-1 hash algorithm.\r\n             */var SHA1=C_algo.SHA1=Hasher.extend({_doReset:function(){this._hash=new WordArray.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},_doProcessBlock:function(M,offset){// Shortcut\nvar H=this._hash.words;// Working variables\nvar a=H[0];var b=H[1];var c=H[2];var d=H[3];var e=H[4];// Computation\nfor(var i=0;i<80;i++){if(i<16){W[i]=M[offset+i]|0;}else{var n=W[i-3]^W[i-8]^W[i-14]^W[i-16];W[i]=n<<1|n>>>31;}var t=(a<<5|a>>>27)+e+W[i];if(i<20){t+=(b&c|~b&d)+0x5a827999;}else if(i<40){t+=(b^c^d)+0x6ed9eba1;}else if(i<60){t+=(b&c|b&d|c&d)-0x70e44324;}else/* if (i < 80) */{t+=(b^c^d)-0x359d3e2a;}e=d;d=c;c=b<<30|b>>>2;b=a;a=t;}// Intermediate hash value\nH[0]=H[0]+a|0;H[1]=H[1]+b|0;H[2]=H[2]+c|0;H[3]=H[3]+d|0;H[4]=H[4]+e|0;},_doFinalize:function(){// Shortcuts\nvar data=this._data;var dataWords=data.words;var nBitsTotal=this._nDataBytes*8;var nBitsLeft=data.sigBytes*8;// Add padding\ndataWords[nBitsLeft>>>5]|=0x80<<24-nBitsLeft%32;dataWords[(nBitsLeft+64>>>9<<4)+14]=Math.floor(nBitsTotal/0x100000000);dataWords[(nBitsLeft+64>>>9<<4)+15]=nBitsTotal;data.sigBytes=dataWords.length*4;// Hash final blocks\nthis._process();// Return final computed hash\nreturn this._hash;},clone:function(){var clone=Hasher.clone.call(this);clone._hash=this._hash.clone();return clone;}});/**\r\n             * Shortcut function to the hasher's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             *\r\n             * @return {WordArray} The hash.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hash = CryptoJS.SHA1('message');\r\n             *     var hash = CryptoJS.SHA1(wordArray);\r\n             */C.SHA1=Hasher._createHelper(SHA1);/**\r\n             * Shortcut function to the HMAC's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             * @param {WordArray|string} key The secret key.\r\n             *\r\n             * @return {WordArray} The HMAC.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hmac = CryptoJS.HmacSHA1(message, key);\r\n             */C.HmacSHA1=Hasher._createHmacHelper(SHA1);})();return CryptoJS.SHA1;});/***/},/* 106 */ /***/function(module,exports,__nested_webpack_require_3138375__){;(function(root,factory){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3138375__(1));}else{}})(this,function(CryptoJS){(function(){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var Base=C_lib.Base;var C_enc=C.enc;var Utf8=C_enc.Utf8;var C_algo=C.algo;/**\r\n             * HMAC algorithm.\r\n             */var HMAC=C_algo.HMAC=Base.extend({/**\r\n                 * Initializes a newly created HMAC.\r\n                 *\r\n                 * @param {Hasher} hasher The hash algorithm to use.\r\n                 * @param {WordArray|string} key The secret key.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);\r\n                 */init:function(hasher,key){// Init hasher\nhasher=this._hasher=new hasher.init();// Convert string to WordArray, else assume WordArray already\nif(typeof key=='string'){key=Utf8.parse(key);}// Shortcuts\nvar hasherBlockSize=hasher.blockSize;var hasherBlockSizeBytes=hasherBlockSize*4;// Allow arbitrary length keys\nif(key.sigBytes>hasherBlockSizeBytes){key=hasher.finalize(key);}// Clamp excess bits\nkey.clamp();// Clone key for inner and outer pads\nvar oKey=this._oKey=key.clone();var iKey=this._iKey=key.clone();// Shortcuts\nvar oKeyWords=oKey.words;var iKeyWords=iKey.words;// XOR keys with pad constants\nfor(var i=0;i<hasherBlockSize;i++){oKeyWords[i]^=0x5c5c5c5c;iKeyWords[i]^=0x36363636;}oKey.sigBytes=iKey.sigBytes=hasherBlockSizeBytes;// Set initial values\nthis.reset();},/**\r\n                 * Resets this HMAC to its initial state.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     hmacHasher.reset();\r\n                 */reset:function(){// Shortcut\nvar hasher=this._hasher;// Reset\nhasher.reset();hasher.update(this._iKey);},/**\r\n                 * Updates this HMAC with a message.\r\n                 *\r\n                 * @param {WordArray|string} messageUpdate The message to append.\r\n                 *\r\n                 * @return {HMAC} This HMAC instance.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     hmacHasher.update('message');\r\n                 *     hmacHasher.update(wordArray);\r\n                 */update:function(messageUpdate){this._hasher.update(messageUpdate);// Chainable\nreturn this;},/**\r\n                 * Finalizes the HMAC computation.\r\n                 * Note that the finalize operation is effectively a destructive, read-once operation.\r\n                 *\r\n                 * @param {WordArray|string} messageUpdate (Optional) A final message update.\r\n                 *\r\n                 * @return {WordArray} The HMAC.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var hmac = hmacHasher.finalize();\r\n                 *     var hmac = hmacHasher.finalize('message');\r\n                 *     var hmac = hmacHasher.finalize(wordArray);\r\n                 */finalize:function(messageUpdate){// Shortcut\nvar hasher=this._hasher;// Compute HMAC\nvar innerHash=hasher.finalize(messageUpdate);hasher.reset();var hmac=hasher.finalize(this._oKey.clone().concat(innerHash));return hmac;}});})();});/***/},/* 107 */ /***/function(module,exports,__nested_webpack_require_3141652__){/* WEBPACK VAR INJECTION */(function(Buffer){// Generated by CoffeeScript 1.7.1\n(function(){var DecodeStream,iconv;try{iconv=__nested_webpack_require_3141652__(108);}catch(_error){}DecodeStream=function(){var key;function DecodeStream(buffer){this.buffer=buffer;this.pos=0;this.length=this.buffer.length;}DecodeStream.TYPES={UInt8:1,UInt16:2,UInt24:3,UInt32:4,Int8:1,Int16:2,Int24:3,Int32:4,Float:4,Double:8};for(key in Buffer.prototype){if(key.slice(0,4)==='read'){(function(key){var bytes;bytes=DecodeStream.TYPES[key.replace(/read|[BL]E/g,'')];return DecodeStream.prototype[key]=function(){var ret;ret=this.buffer[key](this.pos);this.pos+=bytes;return ret;};})(key);}}DecodeStream.prototype.readString=function(length,encoding){var buf,byte,i,_i,_ref;if(encoding==null){encoding='ascii';}switch(encoding){case'utf16le':case'ucs2':case'utf8':case'ascii':return this.buffer.toString(encoding,this.pos,this.pos+=length);case'utf16be':buf=new Buffer(this.readBuffer(length));for(i=_i=0,_ref=buf.length-1;_i<_ref;i=_i+=2){byte=buf[i];buf[i]=buf[i+1];buf[i+1]=byte;}return buf.toString('utf16le');default:buf=this.readBuffer(length);if(iconv){try{return iconv.decode(buf,encoding);}catch(_error){}}return buf;}};DecodeStream.prototype.readBuffer=function(length){return this.buffer.slice(this.pos,this.pos+=length);};DecodeStream.prototype.readUInt24BE=function(){return(this.readUInt16BE()<<8)+this.readUInt8();};DecodeStream.prototype.readUInt24LE=function(){return this.readUInt16LE()+(this.readUInt8()<<16);};DecodeStream.prototype.readInt24BE=function(){return(this.readInt16BE()<<8)+this.readUInt8();};DecodeStream.prototype.readInt24LE=function(){return this.readUInt16LE()+(this.readInt8()<<16);};return DecodeStream;}();module.exports=DecodeStream;}).call(this);/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3141652__(4).Buffer);/***/},/* 108 */ /***/function(module,exports,__nested_webpack_require_3143543__){\"use strict\";/* WEBPACK VAR INJECTION */(function(process){// Some environments don't have global Buffer (e.g. React Native).\n// Solution would be installing npm modules \"buffer\" and \"stream\" explicitly.\nvar Buffer=__nested_webpack_require_3143543__(34).Buffer;var bomHandling=__nested_webpack_require_3143543__(304),iconv=module.exports;// All codecs and aliases are kept here, keyed by encoding name/alias.\n// They are lazy loaded in `iconv.getCodec` from `encodings/index.js`.\niconv.encodings=null;// Characters emitted in case of error.\niconv.defaultCharUnicode='�';iconv.defaultCharSingleByte='?';// Public API.\niconv.encode=function encode(str,encoding,options){str=\"\"+(str||\"\");// Ensure string.\nvar encoder=iconv.getEncoder(encoding,options);var res=encoder.write(str);var trail=encoder.end();return trail&&trail.length>0?Buffer.concat([res,trail]):res;};iconv.decode=function decode(buf,encoding,options){if(typeof buf==='string'){if(!iconv.skipDecodeWarning){console.error('Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding');iconv.skipDecodeWarning=true;}buf=Buffer.from(\"\"+(buf||\"\"),\"binary\");// Ensure buffer.\n}var decoder=iconv.getDecoder(encoding,options);var res=decoder.write(buf);var trail=decoder.end();return trail?res+trail:res;};iconv.encodingExists=function encodingExists(enc){try{iconv.getCodec(enc);return true;}catch(e){return false;}};// Legacy aliases to convert functions\niconv.toEncoding=iconv.encode;iconv.fromEncoding=iconv.decode;// Search for a codec in iconv.encodings. Cache codec data in iconv._codecDataCache.\niconv._codecDataCache={};iconv.getCodec=function getCodec(encoding){if(!iconv.encodings)iconv.encodings=__nested_webpack_require_3143543__(305);// Lazy load all encoding definitions.\n// Canonicalize encoding name: strip all non-alphanumeric chars and appended year.\nvar enc=iconv._canonicalizeEncoding(encoding);// Traverse iconv.encodings to find actual codec.\nvar codecOptions={};while(true){var codec=iconv._codecDataCache[enc];if(codec)return codec;var codecDef=iconv.encodings[enc];switch(typeof codecDef){case\"string\":// Direct alias to other encoding.\nenc=codecDef;break;case\"object\":// Alias with options. Can be layered.\nfor(var key in codecDef)codecOptions[key]=codecDef[key];if(!codecOptions.encodingName)codecOptions.encodingName=enc;enc=codecDef.type;break;case\"function\":// Codec itself.\nif(!codecOptions.encodingName)codecOptions.encodingName=enc;// The codec function must load all tables and return object with .encoder and .decoder methods.\n// It'll be called only once (for each different options object).\ncodec=new codecDef(codecOptions,iconv);iconv._codecDataCache[codecOptions.encodingName]=codec;// Save it to be reused later.\nreturn codec;default:throw new Error(\"Encoding not recognized: '\"+encoding+\"' (searched as: '\"+enc+\"')\");}}};iconv._canonicalizeEncoding=function(encoding){// Canonicalize encoding name: strip all non-alphanumeric chars and appended year.\nreturn(''+encoding).toLowerCase().replace(/:\\d{4}$|[^0-9a-z]/g,\"\");};iconv.getEncoder=function getEncoder(encoding,options){var codec=iconv.getCodec(encoding),encoder=new codec.encoder(options,codec);if(codec.bomAware&&options&&options.addBOM)encoder=new bomHandling.PrependBOM(encoder,options);return encoder;};iconv.getDecoder=function getDecoder(encoding,options){var codec=iconv.getCodec(encoding),decoder=new codec.decoder(options,codec);if(codec.bomAware&&!(options&&options.stripBOM===false))decoder=new bomHandling.StripBOM(decoder,options);return decoder;};// Load extensions in Node. All of them are omitted in Browserify build via 'browser' field in package.json.\nvar nodeVer=typeof process!=='undefined'&&process.versions&&process.versions.node;if(nodeVer){// Load streaming support in Node v0.10+\nvar nodeVerArr=nodeVer.split(\".\").map(Number);if(nodeVerArr[0]>0||nodeVerArr[1]>=10){__nested_webpack_require_3143543__(320)(iconv);}// Load Node primitive extensions.\n__nested_webpack_require_3143543__(321)(iconv);}if(false){}/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3143543__(25));/***/},/* 109 */ /***/function(module){module.exports=JSON.parse(\"[[\\\"0\\\",\\\"\\\\u0000\\\",127,\\\"€\\\"],[\\\"8140\\\",\\\"丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪\\\",5,\\\"乲乴\\\",9,\\\"乿\\\",6,\\\"亇亊\\\"],[\\\"8180\\\",\\\"亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂\\\",6,\\\"伋伌伒\\\",4,\\\"伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾\\\",4,\\\"佄佅佇\\\",5,\\\"佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢\\\"],[\\\"8240\\\",\\\"侤侫侭侰\\\",4,\\\"侶\\\",8,\\\"俀俁係俆俇俈俉俋俌俍俒\\\",4,\\\"俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿\\\",11],[\\\"8280\\\",\\\"個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯\\\",10,\\\"倻倽倿偀偁偂偄偅偆偉偊偋偍偐\\\",4,\\\"偖偗偘偙偛偝\\\",7,\\\"偦\\\",5,\\\"偭\\\",8,\\\"偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎\\\",20,\\\"傤傦傪傫傭\\\",4,\\\"傳\\\",6,\\\"傼\\\"],[\\\"8340\\\",\\\"傽\\\",17,\\\"僐\\\",5,\\\"僗僘僙僛\\\",10,\\\"僨僩僪僫僯僰僱僲僴僶\\\",4,\\\"僼\\\",9,\\\"儈\\\"],[\\\"8380\\\",\\\"儉儊儌\\\",5,\\\"儓\\\",13,\\\"儢\\\",28,\\\"兂兇兊兌兎兏児兒兓兗兘兙兛兝\\\",4,\\\"兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦\\\",4,\\\"冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒\\\",5],[\\\"8440\\\",\\\"凘凙凚凜凞凟凢凣凥\\\",5,\\\"凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄\\\",5,\\\"剋剎剏剒剓剕剗剘\\\"],[\\\"8480\\\",\\\"剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳\\\",9,\\\"剾劀劃\\\",4,\\\"劉\\\",6,\\\"劑劒劔\\\",6,\\\"劜劤劥劦劧劮劯劰労\\\",9,\\\"勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務\\\",5,\\\"勠勡勢勣勥\\\",10,\\\"勱\\\",7,\\\"勻勼勽匁匂匃匄匇匉匊匋匌匎\\\"],[\\\"8540\\\",\\\"匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯\\\",9,\\\"匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏\\\"],[\\\"8580\\\",\\\"厐\\\",4,\\\"厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯\\\",6,\\\"厷厸厹厺厼厽厾叀參\\\",4,\\\"収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝\\\",4,\\\"呣呥呧呩\\\",7,\\\"呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡\\\"],[\\\"8640\\\",\\\"咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠\\\",4,\\\"哫哬哯哰哱哴\\\",5,\\\"哻哾唀唂唃唄唅唈唊\\\",4,\\\"唒唓唕\\\",5,\\\"唜唝唞唟唡唥唦\\\"],[\\\"8680\\\",\\\"唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋\\\",4,\\\"啑啒啓啔啗\\\",4,\\\"啝啞啟啠啢啣啨啩啫啯\\\",5,\\\"啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠\\\",6,\\\"喨\\\",8,\\\"喲喴営喸喺喼喿\\\",4,\\\"嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗\\\",4,\\\"嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸\\\",4,\\\"嗿嘂嘃嘄嘅\\\"],[\\\"8740\\\",\\\"嘆嘇嘊嘋嘍嘐\\\",7,\\\"嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀\\\",11,\\\"噏\\\",4,\\\"噕噖噚噛噝\\\",4],[\\\"8780\\\",\\\"噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽\\\",7,\\\"嚇\\\",6,\\\"嚐嚑嚒嚔\\\",14,\\\"嚤\\\",10,\\\"嚰\\\",6,\\\"嚸嚹嚺嚻嚽\\\",12,\\\"囋\\\",8,\\\"囕囖囘囙囜団囥\\\",5,\\\"囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國\\\",6],[\\\"8840\\\",\\\"園\\\",9,\\\"圝圞圠圡圢圤圥圦圧圫圱圲圴\\\",4,\\\"圼圽圿坁坃坄坅坆坈坉坋坒\\\",4,\\\"坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀\\\"],[\\\"8880\\\",\\\"垁垇垈垉垊垍\\\",4,\\\"垔\\\",6,\\\"垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹\\\",8,\\\"埄\\\",6,\\\"埌埍埐埑埓埖埗埛埜埞埡埢埣埥\\\",7,\\\"埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥\\\",4,\\\"堫\\\",4,\\\"報堲堳場堶\\\",7],[\\\"8940\\\",\\\"堾\\\",5,\\\"塅\\\",6,\\\"塎塏塐塒塓塕塖塗塙\\\",4,\\\"塟\\\",5,\\\"塦\\\",4,\\\"塭\\\",16,\\\"塿墂墄墆墇墈墊墋墌\\\"],[\\\"8980\\\",\\\"墍\\\",4,\\\"墔\\\",4,\\\"墛墜墝墠\\\",7,\\\"墪\\\",17,\\\"墽墾墿壀壂壃壄壆\\\",10,\\\"壒壓壔壖\\\",13,\\\"壥\\\",5,\\\"壭壯壱売壴壵壷壸壺\\\",7,\\\"夃夅夆夈\\\",4,\\\"夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻\\\"],[\\\"8a40\\\",\\\"夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛\\\",4,\\\"奡奣奤奦\\\",12,\\\"奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦\\\"],[\\\"8a80\\\",\\\"妧妬妭妰妱妳\\\",5,\\\"妺妼妽妿\\\",6,\\\"姇姈姉姌姍姎姏姕姖姙姛姞\\\",4,\\\"姤姦姧姩姪姫姭\\\",11,\\\"姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪\\\",6,\\\"娳娵娷\\\",4,\\\"娽娾娿婁\\\",4,\\\"婇婈婋\\\",9,\\\"婖婗婘婙婛\\\",5],[\\\"8b40\\\",\\\"婡婣婤婥婦婨婩婫\\\",8,\\\"婸婹婻婼婽婾媀\\\",17,\\\"媓\\\",6,\\\"媜\\\",13,\\\"媫媬\\\"],[\\\"8b80\\\",\\\"媭\\\",4,\\\"媴媶媷媹\\\",4,\\\"媿嫀嫃\\\",5,\\\"嫊嫋嫍\\\",4,\\\"嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬\\\",4,\\\"嫲\\\",22,\\\"嬊\\\",11,\\\"嬘\\\",25,\\\"嬳嬵嬶嬸\\\",7,\\\"孁\\\",6],[\\\"8c40\\\",\\\"孈\\\",7,\\\"孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏\\\"],[\\\"8c80\\\",\\\"寑寔\\\",8,\\\"寠寢寣實寧審\\\",4,\\\"寯寱\\\",6,\\\"寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧\\\",6,\\\"屰屲\\\",6,\\\"屻屼屽屾岀岃\\\",4,\\\"岉岊岋岎岏岒岓岕岝\\\",4,\\\"岤\\\",4],[\\\"8d40\\\",\\\"岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅\\\",5,\\\"峌\\\",5,\\\"峓\\\",5,\\\"峚\\\",6,\\\"峢峣峧峩峫峬峮峯峱\\\",9,\\\"峼\\\",4],[\\\"8d80\\\",\\\"崁崄崅崈\\\",5,\\\"崏\\\",4,\\\"崕崗崘崙崚崜崝崟\\\",4,\\\"崥崨崪崫崬崯\\\",4,\\\"崵\\\",7,\\\"崿\\\",7,\\\"嵈嵉嵍\\\",10,\\\"嵙嵚嵜嵞\\\",10,\\\"嵪嵭嵮嵰嵱嵲嵳嵵\\\",12,\\\"嶃\\\",21,\\\"嶚嶛嶜嶞嶟嶠\\\"],[\\\"8e40\\\",\\\"嶡\\\",21,\\\"嶸\\\",12,\\\"巆\\\",6,\\\"巎\\\",12,\\\"巜巟巠巣巤巪巬巭\\\"],[\\\"8e80\\\",\\\"巰巵巶巸\\\",4,\\\"巿帀帄帇帉帊帋帍帎帒帓帗帞\\\",7,\\\"帨\\\",4,\\\"帯帰帲\\\",4,\\\"帹帺帾帿幀幁幃幆\\\",5,\\\"幍\\\",6,\\\"幖\\\",4,\\\"幜幝幟幠幣\\\",14,\\\"幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨\\\",4,\\\"庮\\\",4,\\\"庴庺庻庼庽庿\\\",6],[\\\"8f40\\\",\\\"廆廇廈廋\\\",5,\\\"廔廕廗廘廙廚廜\\\",11,\\\"廩廫\\\",8,\\\"廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤\\\"],[\\\"8f80\\\",\\\"弨弫弬弮弰弲\\\",6,\\\"弻弽弾弿彁\\\",14,\\\"彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢\\\",5,\\\"復徫徬徯\\\",5,\\\"徶徸徹徺徻徾\\\",4,\\\"忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇\\\"],[\\\"9040\\\",\\\"怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰\\\",4,\\\"怶\\\",4,\\\"怽怾恀恄\\\",6,\\\"恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀\\\"],[\\\"9080\\\",\\\"悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽\\\",7,\\\"惇惈惉惌\\\",4,\\\"惒惓惔惖惗惙惛惞惡\\\",4,\\\"惪惱惲惵惷惸惻\\\",4,\\\"愂愃愄愅愇愊愋愌愐\\\",4,\\\"愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬\\\",18,\\\"慀\\\",6],[\\\"9140\\\",\\\"慇慉態慍慏慐慒慓慔慖\\\",6,\\\"慞慟慠慡慣慤慥慦慩\\\",6,\\\"慱慲慳慴慶慸\\\",18,\\\"憌憍憏\\\",4,\\\"憕\\\"],[\\\"9180\\\",\\\"憖\\\",6,\\\"憞\\\",8,\\\"憪憫憭\\\",9,\\\"憸\\\",5,\\\"憿懀懁懃\\\",4,\\\"應懌\\\",4,\\\"懓懕\\\",16,\\\"懧\\\",13,\\\"懶\\\",8,\\\"戀\\\",5,\\\"戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸\\\",4,\\\"扂扄扅扆扊\\\"],[\\\"9240\\\",\\\"扏扐払扖扗扙扚扜\\\",6,\\\"扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋\\\",5,\\\"抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁\\\"],[\\\"9280\\\",\\\"拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳\\\",5,\\\"挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖\\\",7,\\\"捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙\\\",6,\\\"採掤掦掫掯掱掲掵掶掹掻掽掿揀\\\"],[\\\"9340\\\",\\\"揁揂揃揅揇揈揊揋揌揑揓揔揕揗\\\",6,\\\"揟揢揤\\\",4,\\\"揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆\\\",4,\\\"損搎搑搒搕\\\",5,\\\"搝搟搢搣搤\\\"],[\\\"9380\\\",\\\"搥搧搨搩搫搮\\\",5,\\\"搵\\\",4,\\\"搻搼搾摀摂摃摉摋\\\",6,\\\"摓摕摖摗摙\\\",4,\\\"摟\\\",7,\\\"摨摪摫摬摮\\\",9,\\\"摻\\\",6,\\\"撃撆撈\\\",8,\\\"撓撔撗撘撚撛撜撝撟\\\",4,\\\"撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆\\\",6,\\\"擏擑擓擔擕擖擙據\\\"],[\\\"9440\\\",\\\"擛擜擝擟擠擡擣擥擧\\\",24,\\\"攁\\\",7,\\\"攊\\\",7,\\\"攓\\\",4,\\\"攙\\\",8],[\\\"9480\\\",\\\"攢攣攤攦\\\",4,\\\"攬攭攰攱攲攳攷攺攼攽敀\\\",4,\\\"敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數\\\",14,\\\"斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱\\\",7,\\\"斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘\\\",7,\\\"旡旣旤旪旫\\\"],[\\\"9540\\\",\\\"旲旳旴旵旸旹旻\\\",4,\\\"昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷\\\",4,\\\"昽昿晀時晄\\\",6,\\\"晍晎晐晑晘\\\"],[\\\"9580\\\",\\\"晙晛晜晝晞晠晢晣晥晧晩\\\",4,\\\"晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘\\\",4,\\\"暞\\\",8,\\\"暩\\\",4,\\\"暯\\\",4,\\\"暵暶暷暸暺暻暼暽暿\\\",25,\\\"曚曞\\\",7,\\\"曧曨曪\\\",5,\\\"曱曵曶書曺曻曽朁朂會\\\"],[\\\"9640\\\",\\\"朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠\\\",5,\\\"朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗\\\",4,\\\"杝杢杣杤杦杧杫杬杮東杴杶\\\"],[\\\"9680\\\",\\\"杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹\\\",7,\\\"柂柅\\\",9,\\\"柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵\\\",7,\\\"柾栁栂栃栄栆栍栐栒栔栕栘\\\",4,\\\"栞栟栠栢\\\",6,\\\"栫\\\",6,\\\"栴栵栶栺栻栿桇桋桍桏桒桖\\\",5],[\\\"9740\\\",\\\"桜桝桞桟桪桬\\\",7,\\\"桵桸\\\",8,\\\"梂梄梇\\\",7,\\\"梐梑梒梔梕梖梘\\\",9,\\\"梣梤梥梩梪梫梬梮梱梲梴梶梷梸\\\"],[\\\"9780\\\",\\\"梹\\\",6,\\\"棁棃\\\",5,\\\"棊棌棎棏棐棑棓棔棖棗棙棛\\\",4,\\\"棡棢棤\\\",9,\\\"棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆\\\",4,\\\"椌椏椑椓\\\",11,\\\"椡椢椣椥\\\",7,\\\"椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃\\\",16,\\\"楕楖楘楙楛楜楟\\\"],[\\\"9840\\\",\\\"楡楢楤楥楧楨楩楪楬業楯楰楲\\\",4,\\\"楺楻楽楾楿榁榃榅榊榋榌榎\\\",5,\\\"榖榗榙榚榝\\\",9,\\\"榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽\\\"],[\\\"9880\\\",\\\"榾榿槀槂\\\",7,\\\"構槍槏槑槒槓槕\\\",5,\\\"槜槝槞槡\\\",11,\\\"槮槯槰槱槳\\\",9,\\\"槾樀\\\",9,\\\"樋\\\",11,\\\"標\\\",5,\\\"樠樢\\\",5,\\\"権樫樬樭樮樰樲樳樴樶\\\",6,\\\"樿\\\",4,\\\"橅橆橈\\\",7,\\\"橑\\\",6,\\\"橚\\\"],[\\\"9940\\\",\\\"橜\\\",4,\\\"橢橣橤橦\\\",10,\\\"橲\\\",6,\\\"橺橻橽橾橿檁檂檃檅\\\",8,\\\"檏檒\\\",4,\\\"檘\\\",7,\\\"檡\\\",5],[\\\"9980\\\",\\\"檧檨檪檭\\\",114,\\\"欥欦欨\\\",6],[\\\"9a40\\\",\\\"欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍\\\",11,\\\"歚\\\",7,\\\"歨歩歫\\\",13,\\\"歺歽歾歿殀殅殈\\\"],[\\\"9a80\\\",\\\"殌殎殏殐殑殔殕殗殘殙殜\\\",4,\\\"殢\\\",7,\\\"殫\\\",7,\\\"殶殸\\\",6,\\\"毀毃毄毆\\\",4,\\\"毌毎毐毑毘毚毜\\\",4,\\\"毢\\\",7,\\\"毬毭毮毰毱毲毴毶毷毸毺毻毼毾\\\",6,\\\"氈\\\",4,\\\"氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋\\\",4,\\\"汑汒汓汖汘\\\"],[\\\"9b40\\\",\\\"汙汚汢汣汥汦汧汫\\\",4,\\\"汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘\\\"],[\\\"9b80\\\",\\\"泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟\\\",5,\\\"洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽\\\",4,\\\"涃涄涆涇涊涋涍涏涐涒涖\\\",4,\\\"涜涢涥涬涭涰涱涳涴涶涷涹\\\",5,\\\"淁淂淃淈淉淊\\\"],[\\\"9c40\\\",\\\"淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽\\\",7,\\\"渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵\\\"],[\\\"9c80\\\",\\\"渶渷渹渻\\\",7,\\\"湅\\\",7,\\\"湏湐湑湒湕湗湙湚湜湝湞湠\\\",10,\\\"湬湭湯\\\",14,\\\"満溁溂溄溇溈溊\\\",4,\\\"溑\\\",6,\\\"溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪\\\",5],[\\\"9d40\\\",\\\"滰滱滲滳滵滶滷滸滺\\\",7,\\\"漃漄漅漇漈漊\\\",4,\\\"漐漑漒漖\\\",9,\\\"漡漢漣漥漦漧漨漬漮漰漲漴漵漷\\\",6,\\\"漿潀潁潂\\\"],[\\\"9d80\\\",\\\"潃潄潅潈潉潊潌潎\\\",9,\\\"潙潚潛潝潟潠潡潣潤潥潧\\\",5,\\\"潯潰潱潳潵潶潷潹潻潽\\\",6,\\\"澅澆澇澊澋澏\\\",12,\\\"澝澞澟澠澢\\\",4,\\\"澨\\\",10,\\\"澴澵澷澸澺\\\",5,\\\"濁濃\\\",5,\\\"濊\\\",6,\\\"濓\\\",10,\\\"濟濢濣濤濥\\\"],[\\\"9e40\\\",\\\"濦\\\",7,\\\"濰\\\",32,\\\"瀒\\\",7,\\\"瀜\\\",6,\\\"瀤\\\",6],[\\\"9e80\\\",\\\"瀫\\\",9,\\\"瀶瀷瀸瀺\\\",17,\\\"灍灎灐\\\",13,\\\"灟\\\",11,\\\"灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞\\\",12,\\\"炰炲炴炵炶為炾炿烄烅烆烇烉烋\\\",12,\\\"烚\\\"],[\\\"9f40\\\",\\\"烜烝烞烠烡烢烣烥烪烮烰\\\",6,\\\"烸烺烻烼烾\\\",10,\\\"焋\\\",4,\\\"焑焒焔焗焛\\\",10,\\\"焧\\\",7,\\\"焲焳焴\\\"],[\\\"9f80\\\",\\\"焵焷\\\",13,\\\"煆煇煈煉煋煍煏\\\",12,\\\"煝煟\\\",4,\\\"煥煩\\\",4,\\\"煯煰煱煴煵煶煷煹煻煼煾\\\",5,\\\"熅\\\",4,\\\"熋熌熍熎熐熑熒熓熕熖熗熚\\\",4,\\\"熡\\\",6,\\\"熩熪熫熭\\\",5,\\\"熴熶熷熸熺\\\",8,\\\"燄\\\",9,\\\"燏\\\",4],[\\\"a040\\\",\\\"燖\\\",9,\\\"燡燢燣燤燦燨\\\",5,\\\"燯\\\",9,\\\"燺\\\",11,\\\"爇\\\",19],[\\\"a080\\\",\\\"爛爜爞\\\",9,\\\"爩爫爭爮爯爲爳爴爺爼爾牀\\\",6,\\\"牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅\\\",4,\\\"犌犎犐犑犓\\\",11,\\\"犠\\\",11,\\\"犮犱犲犳犵犺\\\",6,\\\"狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛\\\"],[\\\"a1a1\\\",\\\"　、。·ˉˇ¨〃々—～‖…‘’“”〔〕〈\\\",7,\\\"〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃＄¤￠￡‰§№☆★○●◎◇◆□■△▲※→←↑↓〓\\\"],[\\\"a2a1\\\",\\\"ⅰ\\\",9],[\\\"a2b1\\\",\\\"⒈\\\",19,\\\"⑴\\\",19,\\\"①\\\",9],[\\\"a2e5\\\",\\\"㈠\\\",9],[\\\"a2f1\\\",\\\"Ⅰ\\\",11],[\\\"a3a1\\\",\\\"！＂＃￥％\\\",88,\\\"￣\\\"],[\\\"a4a1\\\",\\\"ぁ\\\",82],[\\\"a5a1\\\",\\\"ァ\\\",85],[\\\"a6a1\\\",\\\"Α\\\",16,\\\"Σ\\\",6],[\\\"a6c1\\\",\\\"α\\\",16,\\\"σ\\\",6],[\\\"a6e0\\\",\\\"︵︶︹︺︿﹀︽︾﹁﹂﹃﹄\\\"],[\\\"a6ee\\\",\\\"︻︼︷︸︱\\\"],[\\\"a6f4\\\",\\\"︳︴\\\"],[\\\"a7a1\\\",\\\"А\\\",5,\\\"ЁЖ\\\",25],[\\\"a7d1\\\",\\\"а\\\",5,\\\"ёж\\\",25],[\\\"a840\\\",\\\"ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═\\\",35,\\\"▁\\\",6],[\\\"a880\\\",\\\"█\\\",7,\\\"▓▔▕▼▽◢◣◤◥☉⊕〒〝〞\\\"],[\\\"a8a1\\\",\\\"āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ\\\"],[\\\"a8bd\\\",\\\"ńň\\\"],[\\\"a8c0\\\",\\\"ɡ\\\"],[\\\"a8c5\\\",\\\"ㄅ\\\",36],[\\\"a940\\\",\\\"〡\\\",8,\\\"㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰￢￤\\\"],[\\\"a959\\\",\\\"℡㈱\\\"],[\\\"a95c\\\",\\\"‐\\\"],[\\\"a960\\\",\\\"ー゛゜ヽヾ〆ゝゞ﹉\\\",9,\\\"﹔﹕﹖﹗﹙\\\",8],[\\\"a980\\\",\\\"﹢\\\",4,\\\"﹨﹩﹪﹫\\\"],[\\\"a996\\\",\\\"〇\\\"],[\\\"a9a4\\\",\\\"─\\\",75],[\\\"aa40\\\",\\\"狜狝狟狢\\\",5,\\\"狪狫狵狶狹狽狾狿猀猂猄\\\",5,\\\"猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀\\\",8],[\\\"aa80\\\",\\\"獉獊獋獌獎獏獑獓獔獕獖獘\\\",7,\\\"獡\\\",10,\\\"獮獰獱\\\"],[\\\"ab40\\\",\\\"獲\\\",11,\\\"獿\\\",4,\\\"玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣\\\",5,\\\"玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃\\\",4],[\\\"ab80\\\",\\\"珋珌珎珒\\\",6,\\\"珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳\\\",4],[\\\"ac40\\\",\\\"珸\\\",10,\\\"琄琇琈琋琌琍琎琑\\\",8,\\\"琜\\\",5,\\\"琣琤琧琩琫琭琯琱琲琷\\\",4,\\\"琽琾琿瑀瑂\\\",11],[\\\"ac80\\\",\\\"瑎\\\",6,\\\"瑖瑘瑝瑠\\\",12,\\\"瑮瑯瑱\\\",4,\\\"瑸瑹瑺\\\"],[\\\"ad40\\\",\\\"瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑\\\",10,\\\"璝璟\\\",7,\\\"璪\\\",15,\\\"璻\\\",12],[\\\"ad80\\\",\\\"瓈\\\",9,\\\"瓓\\\",8,\\\"瓝瓟瓡瓥瓧\\\",6,\\\"瓰瓱瓲\\\"],[\\\"ae40\\\",\\\"瓳瓵瓸\\\",6,\\\"甀甁甂甃甅\\\",7,\\\"甎甐甒甔甕甖甗甛甝甞甠\\\",4,\\\"甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘\\\"],[\\\"ae80\\\",\\\"畝\\\",7,\\\"畧畨畩畫\\\",6,\\\"畳畵當畷畺\\\",4,\\\"疀疁疂疄疅疇\\\"],[\\\"af40\\\",\\\"疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦\\\",4,\\\"疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇\\\"],[\\\"af80\\\",\\\"瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄\\\"],[\\\"b040\\\",\\\"癅\\\",6,\\\"癎\\\",5,\\\"癕癗\\\",4,\\\"癝癟癠癡癢癤\\\",6,\\\"癬癭癮癰\\\",7,\\\"癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛\\\"],[\\\"b080\\\",\\\"皜\\\",7,\\\"皥\\\",8,\\\"皯皰皳皵\\\",9,\\\"盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥\\\"],[\\\"b140\\\",\\\"盄盇盉盋盌盓盕盙盚盜盝盞盠\\\",4,\\\"盦\\\",7,\\\"盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎\\\",10,\\\"眛眜眝眞眡眣眤眥眧眪眫\\\"],[\\\"b180\\\",\\\"眬眮眰\\\",4,\\\"眹眻眽眾眿睂睄睅睆睈\\\",7,\\\"睒\\\",7,\\\"睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳\\\"],[\\\"b240\\\",\\\"睝睞睟睠睤睧睩睪睭\\\",11,\\\"睺睻睼瞁瞂瞃瞆\\\",5,\\\"瞏瞐瞓\\\",11,\\\"瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶\\\",4],[\\\"b280\\\",\\\"瞼瞾矀\\\",12,\\\"矎\\\",8,\\\"矘矙矚矝\\\",4,\\\"矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖\\\"],[\\\"b340\\\",\\\"矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃\\\",5,\\\"砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚\\\"],[\\\"b380\\\",\\\"硛硜硞\\\",11,\\\"硯\\\",7,\\\"硸硹硺硻硽\\\",6,\\\"场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚\\\"],[\\\"b440\\\",\\\"碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨\\\",7,\\\"碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚\\\",9],[\\\"b480\\\",\\\"磤磥磦磧磩磪磫磭\\\",4,\\\"磳磵磶磸磹磻\\\",5,\\\"礂礃礄礆\\\",6,\\\"础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮\\\"],[\\\"b540\\\",\\\"礍\\\",5,\\\"礔\\\",9,\\\"礟\\\",4,\\\"礥\\\",14,\\\"礵\\\",4,\\\"礽礿祂祃祄祅祇祊\\\",8,\\\"祔祕祘祙祡祣\\\"],[\\\"b580\\\",\\\"祤祦祩祪祫祬祮祰\\\",6,\\\"祹祻\\\",4,\\\"禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠\\\"],[\\\"b640\\\",\\\"禓\\\",6,\\\"禛\\\",11,\\\"禨\\\",10,\\\"禴\\\",4,\\\"禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙\\\",5,\\\"秠秡秢秥秨秪\\\"],[\\\"b680\\\",\\\"秬秮秱\\\",6,\\\"秹秺秼秾秿稁稄稅稇稈稉稊稌稏\\\",4,\\\"稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二\\\"],[\\\"b740\\\",\\\"稝稟稡稢稤\\\",14,\\\"稴稵稶稸稺稾穀\\\",5,\\\"穇\\\",9,\\\"穒\\\",4,\\\"穘\\\",16],[\\\"b780\\\",\\\"穩\\\",6,\\\"穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服\\\"],[\\\"b840\\\",\\\"窣窤窧窩窪窫窮\\\",4,\\\"窴\\\",10,\\\"竀\\\",10,\\\"竌\\\",9,\\\"竗竘竚竛竜竝竡竢竤竧\\\",5,\\\"竮竰竱竲竳\\\"],[\\\"b880\\\",\\\"竴\\\",4,\\\"竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹\\\"],[\\\"b940\\\",\\\"笯笰笲笴笵笶笷笹笻笽笿\\\",5,\\\"筆筈筊筍筎筓筕筗筙筜筞筟筡筣\\\",10,\\\"筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆\\\",6,\\\"箎箏\\\"],[\\\"b980\\\",\\\"箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹\\\",7,\\\"篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈\\\"],[\\\"ba40\\\",\\\"篅篈築篊篋篍篎篏篐篒篔\\\",4,\\\"篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲\\\",4,\\\"篸篹篺篻篽篿\\\",7,\\\"簈簉簊簍簎簐\\\",5,\\\"簗簘簙\\\"],[\\\"ba80\\\",\\\"簚\\\",4,\\\"簠\\\",5,\\\"簨簩簫\\\",12,\\\"簹\\\",5,\\\"籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖\\\"],[\\\"bb40\\\",\\\"籃\\\",9,\\\"籎\\\",36,\\\"籵\\\",5,\\\"籾\\\",9],[\\\"bb80\\\",\\\"粈粊\\\",6,\\\"粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴\\\",4,\\\"粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕\\\"],[\\\"bc40\\\",\\\"粿糀糂糃糄糆糉糋糎\\\",6,\\\"糘糚糛糝糞糡\\\",6,\\\"糩\\\",5,\\\"糰\\\",7,\\\"糹糺糼\\\",13,\\\"紋\\\",5],[\\\"bc80\\\",\\\"紑\\\",14,\\\"紡紣紤紥紦紨紩紪紬紭紮細\\\",6,\\\"肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件\\\"],[\\\"bd40\\\",\\\"紷\\\",54,\\\"絯\\\",7],[\\\"bd80\\\",\\\"絸\\\",32,\\\"健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸\\\"],[\\\"be40\\\",\\\"継\\\",12,\\\"綧\\\",6,\\\"綯\\\",42],[\\\"be80\\\",\\\"線\\\",32,\\\"尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻\\\"],[\\\"bf40\\\",\\\"緻\\\",62],[\\\"bf80\\\",\\\"縺縼\\\",4,\\\"繂\\\",4,\\\"繈\\\",21,\\\"俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀\\\"],[\\\"c040\\\",\\\"繞\\\",35,\\\"纃\\\",23,\\\"纜纝纞\\\"],[\\\"c080\\\",\\\"纮纴纻纼绖绤绬绹缊缐缞缷缹缻\\\",6,\\\"罃罆\\\",9,\\\"罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐\\\"],[\\\"c140\\\",\\\"罖罙罛罜罝罞罠罣\\\",4,\\\"罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂\\\",7,\\\"羋羍羏\\\",4,\\\"羕\\\",4,\\\"羛羜羠羢羣羥羦羨\\\",6,\\\"羱\\\"],[\\\"c180\\\",\\\"羳\\\",4,\\\"羺羻羾翀翂翃翄翆翇翈翉翋翍翏\\\",4,\\\"翖翗翙\\\",5,\\\"翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿\\\"],[\\\"c240\\\",\\\"翤翧翨翪翫翬翭翯翲翴\\\",6,\\\"翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫\\\",5,\\\"耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗\\\"],[\\\"c280\\\",\\\"聙聛\\\",13,\\\"聫\\\",5,\\\"聲\\\",11,\\\"隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫\\\"],[\\\"c340\\\",\\\"聾肁肂肅肈肊肍\\\",5,\\\"肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇\\\",4,\\\"胏\\\",6,\\\"胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋\\\"],[\\\"c380\\\",\\\"脌脕脗脙脛脜脝脟\\\",12,\\\"脭脮脰脳脴脵脷脹\\\",4,\\\"脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸\\\"],[\\\"c440\\\",\\\"腀\\\",5,\\\"腇腉腍腎腏腒腖腗腘腛\\\",4,\\\"腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃\\\",4,\\\"膉膋膌膍膎膐膒\\\",5,\\\"膙膚膞\\\",4,\\\"膤膥\\\"],[\\\"c480\\\",\\\"膧膩膫\\\",7,\\\"膴\\\",5,\\\"膼膽膾膿臄臅臇臈臉臋臍\\\",6,\\\"摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁\\\"],[\\\"c540\\\",\\\"臔\\\",14,\\\"臤臥臦臨臩臫臮\\\",4,\\\"臵\\\",5,\\\"臽臿舃與\\\",4,\\\"舎舏舑舓舕\\\",5,\\\"舝舠舤舥舦舧舩舮舲舺舼舽舿\\\"],[\\\"c580\\\",\\\"艀艁艂艃艅艆艈艊艌艍艎艐\\\",7,\\\"艙艛艜艝艞艠\\\",7,\\\"艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗\\\"],[\\\"c640\\\",\\\"艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸\\\"],[\\\"c680\\\",\\\"苺苼\\\",4,\\\"茊茋茍茐茒茓茖茘茙茝\\\",9,\\\"茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐\\\"],[\\\"c740\\\",\\\"茾茿荁荂荄荅荈荊\\\",4,\\\"荓荕\\\",4,\\\"荝荢荰\\\",6,\\\"荹荺荾\\\",6,\\\"莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡\\\",6,\\\"莬莭莮\\\"],[\\\"c780\\\",\\\"莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠\\\"],[\\\"c840\\\",\\\"菮華菳\\\",4,\\\"菺菻菼菾菿萀萂萅萇萈萉萊萐萒\\\",5,\\\"萙萚萛萞\\\",5,\\\"萩\\\",7,\\\"萲\\\",5,\\\"萹萺萻萾\\\",7,\\\"葇葈葉\\\"],[\\\"c880\\\",\\\"葊\\\",6,\\\"葒\\\",4,\\\"葘葝葞葟葠葢葤\\\",4,\\\"葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁\\\"],[\\\"c940\\\",\\\"葽\\\",4,\\\"蒃蒄蒅蒆蒊蒍蒏\\\",7,\\\"蒘蒚蒛蒝蒞蒟蒠蒢\\\",12,\\\"蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗\\\"],[\\\"c980\\\",\\\"蓘\\\",4,\\\"蓞蓡蓢蓤蓧\\\",4,\\\"蓭蓮蓯蓱\\\",10,\\\"蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳\\\"],[\\\"ca40\\\",\\\"蔃\\\",8,\\\"蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢\\\",8,\\\"蔭\\\",9,\\\"蔾\\\",4,\\\"蕄蕅蕆蕇蕋\\\",10],[\\\"ca80\\\",\\\"蕗蕘蕚蕛蕜蕝蕟\\\",4,\\\"蕥蕦蕧蕩\\\",8,\\\"蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱\\\"],[\\\"cb40\\\",\\\"薂薃薆薈\\\",6,\\\"薐\\\",10,\\\"薝\\\",6,\\\"薥薦薧薩薫薬薭薱\\\",5,\\\"薸薺\\\",6,\\\"藂\\\",6,\\\"藊\\\",4,\\\"藑藒\\\"],[\\\"cb80\\\",\\\"藔藖\\\",5,\\\"藝\\\",6,\\\"藥藦藧藨藪\\\",14,\\\"恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔\\\"],[\\\"cc40\\\",\\\"藹藺藼藽藾蘀\\\",4,\\\"蘆\\\",10,\\\"蘒蘓蘔蘕蘗\\\",15,\\\"蘨蘪\\\",13,\\\"蘹蘺蘻蘽蘾蘿虀\\\"],[\\\"cc80\\\",\\\"虁\\\",11,\\\"虒虓處\\\",4,\\\"虛虜虝號虠虡虣\\\",7,\\\"獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃\\\"],[\\\"cd40\\\",\\\"虭虯虰虲\\\",6,\\\"蚃\\\",6,\\\"蚎\\\",4,\\\"蚔蚖\\\",5,\\\"蚞\\\",4,\\\"蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻\\\",4,\\\"蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜\\\"],[\\\"cd80\\\",\\\"蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威\\\"],[\\\"ce40\\\",\\\"蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀\\\",6,\\\"蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚\\\",5,\\\"蝡蝢蝦\\\",7,\\\"蝯蝱蝲蝳蝵\\\"],[\\\"ce80\\\",\\\"蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎\\\",4,\\\"螔螕螖螘\\\",6,\\\"螠\\\",4,\\\"巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺\\\"],[\\\"cf40\\\",\\\"螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁\\\",4,\\\"蟇蟈蟉蟌\\\",4,\\\"蟔\\\",6,\\\"蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯\\\",9],[\\\"cf80\\\",\\\"蟺蟻蟼蟽蟿蠀蠁蠂蠄\\\",5,\\\"蠋\\\",7,\\\"蠔蠗蠘蠙蠚蠜\\\",4,\\\"蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓\\\"],[\\\"d040\\\",\\\"蠤\\\",13,\\\"蠳\\\",5,\\\"蠺蠻蠽蠾蠿衁衂衃衆\\\",5,\\\"衎\\\",5,\\\"衕衖衘衚\\\",6,\\\"衦衧衪衭衯衱衳衴衵衶衸衹衺\\\"],[\\\"d080\\\",\\\"衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗\\\",4,\\\"袝\\\",4,\\\"袣袥\\\",5,\\\"小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄\\\"],[\\\"d140\\\",\\\"袬袮袯袰袲\\\",4,\\\"袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚\\\",4,\\\"裠裡裦裧裩\\\",6,\\\"裲裵裶裷裺裻製裿褀褁褃\\\",5],[\\\"d180\\\",\\\"褉褋\\\",4,\\\"褑褔\\\",4,\\\"褜\\\",4,\\\"褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶\\\"],[\\\"d240\\\",\\\"褸\\\",8,\\\"襂襃襅\\\",24,\\\"襠\\\",5,\\\"襧\\\",19,\\\"襼\\\"],[\\\"d280\\\",\\\"襽襾覀覂覄覅覇\\\",26,\\\"摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐\\\"],[\\\"d340\\\",\\\"覢\\\",30,\\\"觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴\\\",6],[\\\"d380\\\",\\\"觻\\\",4,\\\"訁\\\",5,\\\"計\\\",21,\\\"印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉\\\"],[\\\"d440\\\",\\\"訞\\\",31,\\\"訿\\\",8,\\\"詉\\\",21],[\\\"d480\\\",\\\"詟\\\",25,\\\"詺\\\",6,\\\"浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧\\\"],[\\\"d540\\\",\\\"誁\\\",7,\\\"誋\\\",7,\\\"誔\\\",46],[\\\"d580\\\",\\\"諃\\\",32,\\\"铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政\\\"],[\\\"d640\\\",\\\"諤\\\",34,\\\"謈\\\",27],[\\\"d680\\\",\\\"謤謥謧\\\",30,\\\"帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑\\\"],[\\\"d740\\\",\\\"譆\\\",31,\\\"譧\\\",4,\\\"譭\\\",25],[\\\"d780\\\",\\\"讇\\\",24,\\\"讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座\\\"],[\\\"d840\\\",\\\"谸\\\",8,\\\"豂豃豄豅豈豊豋豍\\\",7,\\\"豖豗豘豙豛\\\",5,\\\"豣\\\",6,\\\"豬\\\",6,\\\"豴豵豶豷豻\\\",6,\\\"貃貄貆貇\\\"],[\\\"d880\\\",\\\"貈貋貍\\\",6,\\\"貕貖貗貙\\\",20,\\\"亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝\\\"],[\\\"d940\\\",\\\"貮\\\",62],[\\\"d980\\\",\\\"賭\\\",32,\\\"佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼\\\"],[\\\"da40\\\",\\\"贎\\\",14,\\\"贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸\\\",8,\\\"趂趃趆趇趈趉趌\\\",4,\\\"趒趓趕\\\",9,\\\"趠趡\\\"],[\\\"da80\\\",\\\"趢趤\\\",12,\\\"趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺\\\"],[\\\"db40\\\",\\\"跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾\\\",6,\\\"踆踇踈踋踍踎踐踑踒踓踕\\\",7,\\\"踠踡踤\\\",4,\\\"踫踭踰踲踳踴踶踷踸踻踼踾\\\"],[\\\"db80\\\",\\\"踿蹃蹅蹆蹌\\\",4,\\\"蹓\\\",5,\\\"蹚\\\",11,\\\"蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝\\\"],[\\\"dc40\\\",\\\"蹳蹵蹷\\\",4,\\\"蹽蹾躀躂躃躄躆躈\\\",6,\\\"躑躒躓躕\\\",6,\\\"躝躟\\\",11,\\\"躭躮躰躱躳\\\",6,\\\"躻\\\",7],[\\\"dc80\\\",\\\"軃\\\",10,\\\"軏\\\",21,\\\"堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥\\\"],[\\\"dd40\\\",\\\"軥\\\",62],[\\\"dd80\\\",\\\"輤\\\",32,\\\"荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺\\\"],[\\\"de40\\\",\\\"轅\\\",32,\\\"轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆\\\"],[\\\"de80\\\",\\\"迉\\\",4,\\\"迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖\\\"],[\\\"df40\\\",\\\"這逜連逤逥逧\\\",5,\\\"逰\\\",4,\\\"逷逹逺逽逿遀遃遅遆遈\\\",4,\\\"過達違遖遙遚遜\\\",5,\\\"遤遦遧適遪遫遬遯\\\",4,\\\"遶\\\",6,\\\"遾邁\\\"],[\\\"df80\\\",\\\"還邅邆邇邉邊邌\\\",4,\\\"邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼\\\"],[\\\"e040\\\",\\\"郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅\\\",19,\\\"鄚鄛鄜\\\"],[\\\"e080\\\",\\\"鄝鄟鄠鄡鄤\\\",10,\\\"鄰鄲\\\",6,\\\"鄺\\\",8,\\\"酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼\\\"],[\\\"e140\\\",\\\"酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀\\\",4,\\\"醆醈醊醎醏醓\\\",6,\\\"醜\\\",5,\\\"醤\\\",5,\\\"醫醬醰醱醲醳醶醷醸醹醻\\\"],[\\\"e180\\\",\\\"醼\\\",10,\\\"釈釋釐釒\\\",9,\\\"針\\\",8,\\\"帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺\\\"],[\\\"e240\\\",\\\"釦\\\",62],[\\\"e280\\\",\\\"鈥\\\",32,\\\"狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧\\\",5,\\\"饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂\\\"],[\\\"e340\\\",\\\"鉆\\\",45,\\\"鉵\\\",16],[\\\"e380\\\",\\\"銆\\\",7,\\\"銏\\\",24,\\\"恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾\\\"],[\\\"e440\\\",\\\"銨\\\",5,\\\"銯\\\",24,\\\"鋉\\\",31],[\\\"e480\\\",\\\"鋩\\\",32,\\\"洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑\\\"],[\\\"e540\\\",\\\"錊\\\",51,\\\"錿\\\",10],[\\\"e580\\\",\\\"鍊\\\",31,\\\"鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣\\\"],[\\\"e640\\\",\\\"鍬\\\",34,\\\"鎐\\\",27],[\\\"e680\\\",\\\"鎬\\\",29,\\\"鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩\\\"],[\\\"e740\\\",\\\"鏎\\\",7,\\\"鏗\\\",54],[\\\"e780\\\",\\\"鐎\\\",32,\\\"纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡\\\",6,\\\"缪缫缬缭缯\\\",4,\\\"缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬\\\"],[\\\"e840\\\",\\\"鐯\\\",14,\\\"鐿\\\",43,\\\"鑬鑭鑮鑯\\\"],[\\\"e880\\\",\\\"鑰\\\",20,\\\"钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹\\\"],[\\\"e940\\\",\\\"锧锳锽镃镈镋镕镚镠镮镴镵長\\\",7,\\\"門\\\",42],[\\\"e980\\\",\\\"閫\\\",32,\\\"椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋\\\"],[\\\"ea40\\\",\\\"闌\\\",27,\\\"闬闿阇阓阘阛阞阠阣\\\",6,\\\"阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗\\\"],[\\\"ea80\\\",\\\"陘陙陚陜陝陞陠陣陥陦陫陭\\\",4,\\\"陳陸\\\",12,\\\"隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰\\\"],[\\\"eb40\\\",\\\"隌階隑隒隓隕隖隚際隝\\\",9,\\\"隨\\\",7,\\\"隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖\\\",9,\\\"雡\\\",6,\\\"雫\\\"],[\\\"eb80\\\",\\\"雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗\\\",4,\\\"霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻\\\"],[\\\"ec40\\\",\\\"霡\\\",8,\\\"霫霬霮霯霱霳\\\",4,\\\"霺霻霼霽霿\\\",18,\\\"靔靕靗靘靚靜靝靟靣靤靦靧靨靪\\\",7],[\\\"ec80\\\",\\\"靲靵靷\\\",4,\\\"靽\\\",7,\\\"鞆\\\",4,\\\"鞌鞎鞏鞐鞓鞕鞖鞗鞙\\\",4,\\\"臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐\\\"],[\\\"ed40\\\",\\\"鞞鞟鞡鞢鞤\\\",6,\\\"鞬鞮鞰鞱鞳鞵\\\",46],[\\\"ed80\\\",\\\"韤韥韨韮\\\",4,\\\"韴韷\\\",23,\\\"怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨\\\"],[\\\"ee40\\\",\\\"頏\\\",62],[\\\"ee80\\\",\\\"顎\\\",32,\\\"睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶\\\",4,\\\"钼钽钿铄铈\\\",6,\\\"铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪\\\"],[\\\"ef40\\\",\\\"顯\\\",5,\\\"颋颎颒颕颙颣風\\\",37,\\\"飏飐飔飖飗飛飜飝飠\\\",4],[\\\"ef80\\\",\\\"飥飦飩\\\",30,\\\"铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒\\\",4,\\\"锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤\\\",8,\\\"镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔\\\"],[\\\"f040\\\",\\\"餈\\\",4,\\\"餎餏餑\\\",28,\\\"餯\\\",26],[\\\"f080\\\",\\\"饊\\\",9,\\\"饖\\\",12,\\\"饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨\\\",4,\\\"鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦\\\",6,\\\"鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙\\\"],[\\\"f140\\\",\\\"馌馎馚\\\",10,\\\"馦馧馩\\\",47],[\\\"f180\\\",\\\"駙\\\",32,\\\"瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃\\\"],[\\\"f240\\\",\\\"駺\\\",62],[\\\"f280\\\",\\\"騹\\\",32,\\\"颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒\\\"],[\\\"f340\\\",\\\"驚\\\",17,\\\"驲骃骉骍骎骔骕骙骦骩\\\",6,\\\"骲骳骴骵骹骻骽骾骿髃髄髆\\\",4,\\\"髍髎髏髐髒體髕髖髗髙髚髛髜\\\"],[\\\"f380\\\",\\\"髝髞髠髢髣髤髥髧髨髩髪髬髮髰\\\",8,\\\"髺髼\\\",6,\\\"鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋\\\"],[\\\"f440\\\",\\\"鬇鬉\\\",5,\\\"鬐鬑鬒鬔\\\",10,\\\"鬠鬡鬢鬤\\\",10,\\\"鬰鬱鬳\\\",7,\\\"鬽鬾鬿魀魆魊魋魌魎魐魒魓魕\\\",5],[\\\"f480\\\",\\\"魛\\\",32,\\\"簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤\\\"],[\\\"f540\\\",\\\"魼\\\",62],[\\\"f580\\\",\\\"鮻\\\",32,\\\"酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜\\\"],[\\\"f640\\\",\\\"鯜\\\",62],[\\\"f680\\\",\\\"鰛\\\",32,\\\"觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅\\\",5,\\\"龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞\\\",5,\\\"鲥\\\",4,\\\"鲫鲭鲮鲰\\\",7,\\\"鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋\\\"],[\\\"f740\\\",\\\"鰼\\\",62],[\\\"f780\\\",\\\"鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾\\\",4,\\\"鳈鳉鳑鳒鳚鳛鳠鳡鳌\\\",4,\\\"鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄\\\"],[\\\"f840\\\",\\\"鳣\\\",62],[\\\"f880\\\",\\\"鴢\\\",32],[\\\"f940\\\",\\\"鵃\\\",62],[\\\"f980\\\",\\\"鶂\\\",32],[\\\"fa40\\\",\\\"鶣\\\",62],[\\\"fa80\\\",\\\"鷢\\\",32],[\\\"fb40\\\",\\\"鸃\\\",27,\\\"鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴\\\",9,\\\"麀\\\"],[\\\"fb80\\\",\\\"麁麃麄麅麆麉麊麌\\\",5,\\\"麔\\\",8,\\\"麞麠\\\",5,\\\"麧麨麩麪\\\"],[\\\"fc40\\\",\\\"麫\\\",8,\\\"麵麶麷麹麺麼麿\\\",4,\\\"黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰\\\",8,\\\"黺黽黿\\\",6],[\\\"fc80\\\",\\\"鼆\\\",4,\\\"鼌鼏鼑鼒鼔鼕鼖鼘鼚\\\",5,\\\"鼡鼣\\\",8,\\\"鼭鼮鼰鼱\\\"],[\\\"fd40\\\",\\\"鼲\\\",4,\\\"鼸鼺鼼鼿\\\",4,\\\"齅\\\",10,\\\"齒\\\",38],[\\\"fd80\\\",\\\"齹\\\",5,\\\"龁龂龍\\\",11,\\\"龜龝龞龡\\\",4,\\\"郎凉秊裏隣\\\"],[\\\"fe40\\\",\\\"兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩\\\"]]\");/***/},/* 110 */ /***/function(module,exports,__nested_webpack_require_3170801__){// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof=__nested_webpack_require_3170801__(111);// eslint-disable-next-line no-prototype-builtins\nmodule.exports=Object('z').propertyIsEnumerable(0)?Object:function(it){return cof(it)=='String'?it.split(''):Object(it);};/***/},/* 111 */ /***/function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1);};/***/},/* 112 */ /***/function(module,exports){// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports=function(it){if(it==undefined)throw TypeError(\"Can't call method on  \"+it);return it;};/***/},/* 113 */ /***/function(module,exports,__nested_webpack_require_3171472__){var pIE=__nested_webpack_require_3171472__(73);var createDesc=__nested_webpack_require_3171472__(57);var toIObject=__nested_webpack_require_3171472__(35);var toPrimitive=__nested_webpack_require_3171472__(114);var has=__nested_webpack_require_3171472__(36);var IE8_DOM_DEFINE=__nested_webpack_require_3171472__(180);var gOPD=Object.getOwnPropertyDescriptor;exports.f=__nested_webpack_require_3171472__(13)?gOPD:function getOwnPropertyDescriptor(O,P){O=toIObject(O);P=toPrimitive(P,true);if(IE8_DOM_DEFINE)try{return gOPD(O,P);}catch(e){/* empty */}if(has(O,P))return createDesc(!pIE.f.call(O,P),O[P]);};/***/},/* 114 */ /***/function(module,exports,__nested_webpack_require_3172037__){// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject=__nested_webpack_require_3172037__(20);// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports=function(it,S){if(!isObject(it))return it;var fn,val;if(S&&typeof(fn=it.toString)=='function'&&!isObject(val=fn.call(it)))return val;if(typeof(fn=it.valueOf)=='function'&&!isObject(val=fn.call(it)))return val;if(!S&&typeof(fn=it.toString)=='function'&&!isObject(val=fn.call(it)))return val;throw TypeError(\"Can't convert object to primitive value\");};/***/},/* 115 */ /***/function(module,exports,__nested_webpack_require_3172691__){// most Object methods by ES6 should accept primitives\nvar $export=__nested_webpack_require_3172691__(7);var core=__nested_webpack_require_3172691__(2);var fails=__nested_webpack_require_3172691__(37);module.exports=function(KEY,exec){var fn=(core.Object||{})[KEY]||Object[KEY];var exp={};exp[KEY]=exec(fn);$export($export.S+$export.F*fails(function(){fn(1);}),'Object',exp);};/***/},/* 116 */ /***/function(module,exports,__nested_webpack_require_3173090__){\"use strict\";var LIBRARY=__nested_webpack_require_3173090__(75);var $export=__nested_webpack_require_3173090__(7);var redefine=__nested_webpack_require_3173090__(184);var hide=__nested_webpack_require_3173090__(27);var Iterators=__nested_webpack_require_3173090__(58);var $iterCreate=__nested_webpack_require_3173090__(339);var setToStringTag=__nested_webpack_require_3173090__(79);var getPrototypeOf=__nested_webpack_require_3173090__(342);var ITERATOR=__nested_webpack_require_3173090__(14)('iterator');var BUGGY=!([].keys&&'next'in[].keys());// Safari has buggy iterators w/o `next`\nvar FF_ITERATOR='@@iterator';var KEYS='keys';var VALUES='values';var returnThis=function(){return this;};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next);var getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case KEYS:return function keys(){return new Constructor(this,kind);};case VALUES:return function values(){return new Constructor(this,kind);};}return function entries(){return new Constructor(this,kind);};};var TAG=NAME+' Iterator';var DEF_VALUES=DEFAULT==VALUES;var VALUES_BUG=false;var proto=Base.prototype;var $native=proto[ITERATOR]||proto[FF_ITERATOR]||DEFAULT&&proto[DEFAULT];var $default=$native||getMethod(DEFAULT);var $entries=DEFAULT?!DEF_VALUES?$default:getMethod('entries'):undefined;var $anyNative=NAME=='Array'?proto.entries||$native:$native;var methods,key,IteratorPrototype;// Fix native\nif($anyNative){IteratorPrototype=getPrototypeOf($anyNative.call(new Base()));if(IteratorPrototype!==Object.prototype&&IteratorPrototype.next){// Set @@toStringTag to native iterators\nsetToStringTag(IteratorPrototype,TAG,true);// fix for some old engines\nif(!LIBRARY&&typeof IteratorPrototype[ITERATOR]!='function')hide(IteratorPrototype,ITERATOR,returnThis);}}// fix Array#{values, @@iterator}.name in V8 / FF\nif(DEF_VALUES&&$native&&$native.name!==VALUES){VALUES_BUG=true;$default=function values(){return $native.call(this);};}// Define iterator\nif((!LIBRARY||FORCED)&&(BUGGY||VALUES_BUG||!proto[ITERATOR])){hide(proto,ITERATOR,$default);}// Plug for library\nIterators[NAME]=$default;Iterators[TAG]=returnThis;if(DEFAULT){methods={values:DEF_VALUES?$default:getMethod(VALUES),keys:IS_SET?$default:getMethod(KEYS),entries:$entries};if(FORCED)for(key in methods){if(!(key in proto))redefine(proto,key,methods[key]);}else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods);}return methods;};/***/},/* 117 */ /***/function(module,exports){// 7.1.4 ToInteger\nvar ceil=Math.ceil;var floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it);};/***/},/* 118 */ /***/function(module,exports,__nested_webpack_require_3175694__){var shared=__nested_webpack_require_3175694__(119)('keys');var uid=__nested_webpack_require_3175694__(78);module.exports=function(key){return shared[key]||(shared[key]=uid(key));};/***/},/* 119 */ /***/function(module,exports,__nested_webpack_require_3175911__){var core=__nested_webpack_require_3175911__(2);var global=__nested_webpack_require_3175911__(21);var SHARED='__core-js_shared__';var store=global[SHARED]||(global[SHARED]={});(module.exports=function(key,value){return store[key]||(store[key]=value!==undefined?value:{});})('versions',[]).push({version:core.version,mode:__nested_webpack_require_3175911__(75)?'pure':'global',copyright:'© 2019 Denis Pushkarev (zloirock.ru)'});/***/},/* 120 */ /***/function(module,exports){// IE 8- don't enum bug keys\nmodule.exports='constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(',');/***/},/* 121 */ /***/function(module,exports,__nested_webpack_require_3176557__){var classof=__nested_webpack_require_3176557__(188);var ITERATOR=__nested_webpack_require_3176557__(14)('iterator');var Iterators=__nested_webpack_require_3176557__(58);module.exports=__nested_webpack_require_3176557__(2).getIteratorMethod=function(it){if(it!=undefined)return it[ITERATOR]||it['@@iterator']||Iterators[classof(it)];};/***/},/* 122 */ /***/function(module,exports,__nested_webpack_require_3176898__){\"use strict\";exports.__esModule=true;var _iterator=__nested_webpack_require_3176898__(348);var _iterator2=_interopRequireDefault(_iterator);var _symbol=__nested_webpack_require_3176898__(350);var _symbol2=_interopRequireDefault(_symbol);var _typeof=typeof _symbol2.default===\"function\"&&typeof _iterator2.default===\"symbol\"?function(obj){return typeof obj;}:function(obj){return obj&&typeof _symbol2.default===\"function\"&&obj.constructor===_symbol2.default&&obj!==_symbol2.default.prototype?\"symbol\":typeof obj;};function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=typeof _symbol2.default===\"function\"&&_typeof(_iterator2.default)===\"symbol\"?function(obj){return typeof obj===\"undefined\"?\"undefined\":_typeof(obj);}:function(obj){return obj&&typeof _symbol2.default===\"function\"&&obj.constructor===_symbol2.default&&obj!==_symbol2.default.prototype?\"symbol\":typeof obj===\"undefined\"?\"undefined\":_typeof(obj);};/***/},/* 123 */ /***/function(module,exports,__nested_webpack_require_3177891__){exports.f=__nested_webpack_require_3177891__(14);/***/},/* 124 */ /***/function(module,exports,__nested_webpack_require_3177992__){var global=__nested_webpack_require_3177992__(21);var core=__nested_webpack_require_3177992__(2);var LIBRARY=__nested_webpack_require_3177992__(75);var wksExt=__nested_webpack_require_3177992__(123);var defineProperty=__nested_webpack_require_3177992__(17).f;module.exports=function(name){var $Symbol=core.Symbol||(core.Symbol=LIBRARY?{}:global.Symbol||{});if(name.charAt(0)!='_'&&!(name in $Symbol))defineProperty($Symbol,name,{value:wksExt.f(name)});};/***/},/* 125 */ /***/function(module,exports){exports.f=Object.getOwnPropertySymbols;/***/},/* 126 */ /***/function(module,exports){/***/},/* 127 */ /***/function(module,exports,__nested_webpack_require_3178571__){var isObject=__nested_webpack_require_3178571__(20);module.exports=function(it,TYPE){if(!isObject(it)||it._t!==TYPE)throw TypeError('Incompatible receiver, '+TYPE+' required!');return it;};/***/},/* 128 */ /***/function(module,exports,__nested_webpack_require_3178812__){\"use strict\";var implementation=__nested_webpack_require_3178812__(393);module.exports=Function.prototype.bind||implementation;/***/},/* 129 */ /***/function(module,exports,__nested_webpack_require_3178991__){\"use strict\";var keys=__nested_webpack_require_3178991__(201);var hasSymbols=typeof Symbol==='function'&&typeof Symbol('foo')==='symbol';var toStr=Object.prototype.toString;var concat=Array.prototype.concat;var origDefineProperty=Object.defineProperty;var isFunction=function(fn){return typeof fn==='function'&&toStr.call(fn)==='[object Function]';};var arePropertyDescriptorsSupported=function(){var obj={};try{origDefineProperty(obj,'x',{enumerable:false,value:obj});// eslint-disable-next-line no-unused-vars, no-restricted-syntax\nfor(var _ in obj){// jscs:ignore disallowUnusedVariables\nreturn false;}return obj.x===obj;}catch(e){/* this is IE 8. */return false;}};var supportsDescriptors=origDefineProperty&&arePropertyDescriptorsSupported();var defineProperty=function(object,name,value,predicate){if(name in object&&(!isFunction(predicate)||!predicate())){return;}if(supportsDescriptors){origDefineProperty(object,name,{configurable:true,enumerable:false,value:value,writable:true});}else{object[name]=value;}};var defineProperties=function(object,map){var predicates=arguments.length>2?arguments[2]:{};var props=keys(map);if(hasSymbols){props=concat.call(props,Object.getOwnPropertySymbols(map));}for(var i=0;i<props.length;i+=1){defineProperty(object,props[i],map[props[i]],predicates[props[i]]);}};defineProperties.supportsDescriptors=!!supportsDescriptors;module.exports=defineProperties;/***/},/* 130 */ /***/function(module,exports,__nested_webpack_require_3180442__){\"use strict\";var isString=__nested_webpack_require_3180442__(0).isString;var isNumber=__nested_webpack_require_3180442__(0).isNumber;var isObject=__nested_webpack_require_3180442__(0).isObject;var isArray=__nested_webpack_require_3180442__(0).isArray;var isUndefined=__nested_webpack_require_3180442__(0).isUndefined;var LineBreaker=__nested_webpack_require_3180442__(209);var LEADING=/^(\\s)+/g;var TRAILING=/(\\s)+$/g;/**\r\n     * Creates an instance of TextTools - text measurement utility\r\n     *\r\n     * @constructor\r\n     * @param {FontProvider} fontProvider\r\n     */function TextTools(fontProvider){this.fontProvider=fontProvider;}/**\r\n     * Converts an array of strings (or inline-definition-objects) into a collection\r\n     * of inlines and calculated minWidth/maxWidth.\r\n     * and their min/max widths\r\n     * @param  {Object} textArray - an array of inline-definition-objects (or strings)\r\n     * @param  {Object} styleContextStack current style stack\r\n     * @return {Object}                   collection of inlines, minWidth, maxWidth\r\n     */TextTools.prototype.buildInlines=function(textArray,styleContextStack){var measured=measure(this.fontProvider,textArray,styleContextStack);var minWidth=0,maxWidth=0,currentLineWidth;measured.forEach(function(inline){minWidth=Math.max(minWidth,inline.width-inline.leadingCut-inline.trailingCut);if(!currentLineWidth){currentLineWidth={width:0,leadingCut:inline.leadingCut,trailingCut:0};}currentLineWidth.width+=inline.width;currentLineWidth.trailingCut=inline.trailingCut;maxWidth=Math.max(maxWidth,getTrimmedWidth(currentLineWidth));if(inline.lineEnd){currentLineWidth=null;}});if(getStyleProperty({},styleContextStack,'noWrap',false)){minWidth=maxWidth;}return{items:measured,minWidth:minWidth,maxWidth:maxWidth};function getTrimmedWidth(item){return Math.max(0,item.width-item.leadingCut-item.trailingCut);}};/**\r\n     * Returns size of the specified string (without breaking it) using the current style\r\n     * @param  {String} text              text to be measured\r\n     * @param  {Object} styleContextStack current style stack\r\n     * @return {Object}                   size of the specified string\r\n     */TextTools.prototype.sizeOfString=function(text,styleContextStack){text=text?text.toString().replace(/\\t/g,'    '):'';//TODO: refactor - extract from measure\nvar fontName=getStyleProperty({},styleContextStack,'font','Roboto');var fontSize=getStyleProperty({},styleContextStack,'fontSize',12);var fontFeatures=getStyleProperty({},styleContextStack,'fontFeatures',null);var bold=getStyleProperty({},styleContextStack,'bold',false);var italics=getStyleProperty({},styleContextStack,'italics',false);var lineHeight=getStyleProperty({},styleContextStack,'lineHeight',1);var characterSpacing=getStyleProperty({},styleContextStack,'characterSpacing',0);var font=this.fontProvider.provideFont(fontName,bold,italics);return{width:widthOfString(text,font,fontSize,characterSpacing,fontFeatures),height:font.lineHeight(fontSize)*lineHeight,fontSize:fontSize,lineHeight:lineHeight,ascender:font.ascender/1000*fontSize,descender:font.descender/1000*fontSize};};/**\r\n     * Returns size of the specified rotated string (without breaking it) using the current style\r\n     *\r\n     * @param  {string} text text to be measured\r\n     * @param  {number} angle\r\n     * @param  {object} styleContextStack current style stack\r\n     * @returns {object} size of the specified string\r\n     */TextTools.prototype.sizeOfRotatedText=function(text,angle,styleContextStack){var angleRad=angle*Math.PI/-180;var size=this.sizeOfString(text,styleContextStack);return{width:Math.abs(size.height*Math.sin(angleRad))+Math.abs(size.width*Math.cos(angleRad)),height:Math.abs(size.width*Math.sin(angleRad))+Math.abs(size.height*Math.cos(angleRad))};};TextTools.prototype.widthOfString=function(text,font,fontSize,characterSpacing,fontFeatures){return widthOfString(text,font,fontSize,characterSpacing,fontFeatures);};function splitWords(text,noWrap){var results=[];text=text.replace(/\\t/g,'    ');if(noWrap){results.push({text:text});return results;}var breaker=new LineBreaker(text);var last=0;var bk;while(bk=breaker.nextBreak()){var word=text.slice(last,bk.position);if(bk.required||word.match(/\\r?\\n$|\\r$/)){// new line\nword=word.replace(/\\r?\\n$|\\r$/,'');results.push({text:word,lineEnd:true});}else{results.push({text:word});}last=bk.position;}return results;}function copyStyle(source,destination){destination=destination||{};source=source||{};//TODO: default style\nfor(var key in source){if(key!='text'&&source.hasOwnProperty(key)){destination[key]=source[key];}}return destination;}function normalizeTextArray(array,styleContextStack){function flatten(array){return array.reduce(function(prev,cur){var current=isArray(cur.text)?flatten(cur.text):cur;var more=[].concat(current).some(Array.isArray);return prev.concat(more?flatten(current):current);},[]);}function getOneWord(index,words,noWrap){if(isUndefined(words[index])){return null;}if(words[index].lineEnd){return null;}var word=words[index].text;if(noWrap){var tmpWords=splitWords(normalizeString(word),false);if(isUndefined(tmpWords[tmpWords.length-1])){return null;}word=tmpWords[tmpWords.length-1].text;}return word;}var results=[];if(!isArray(array)){array=[array];}array=flatten(array);var lastWord=null;for(var i=0,l=array.length;i<l;i++){var item=array[i];var style=null;var words;var noWrap=getStyleProperty(item||{},styleContextStack,'noWrap',false);if(isObject(item)){if(item._textRef&&item._textRef._textNodeRef.text){item.text=item._textRef._textNodeRef.text;}words=splitWords(normalizeString(item.text),noWrap);style=copyStyle(item);}else{words=splitWords(normalizeString(item),noWrap);}if(lastWord&&words.length){var firstWord=getOneWord(0,words,noWrap);var wrapWords=splitWords(normalizeString(lastWord+firstWord),false);if(wrapWords.length===1){results[results.length-1].noNewLine=true;}}for(var i2=0,l2=words.length;i2<l2;i2++){var result={text:words[i2].text};if(words[i2].lineEnd){result.lineEnd=true;}copyStyle(style,result);results.push(result);}lastWord=null;if(i+1<l){lastWord=getOneWord(words.length-1,words,noWrap);}}return results;}function normalizeString(value){if(value===undefined||value===null){return'';}else if(isNumber(value)){return value.toString();}else if(isString(value)){return value;}else{return value.toString();}}function getStyleProperty(item,styleContextStack,property,defaultValue){var value;if(item[property]!==undefined&&item[property]!==null){// item defines this property\nreturn item[property];}if(!styleContextStack){return defaultValue;}styleContextStack.auto(item,function(){value=styleContextStack.getProperty(property);});if(value!==null&&value!==undefined){return value;}else{return defaultValue;}}function measure(fontProvider,textArray,styleContextStack){var normalized=normalizeTextArray(textArray,styleContextStack);if(normalized.length){var leadingIndent=getStyleProperty(normalized[0],styleContextStack,'leadingIndent',0);if(leadingIndent){normalized[0].leadingCut=-leadingIndent;normalized[0].leadingIndent=leadingIndent;}}normalized.forEach(function(item){var fontName=getStyleProperty(item,styleContextStack,'font','Roboto');var fontSize=getStyleProperty(item,styleContextStack,'fontSize',12);var fontFeatures=getStyleProperty(item,styleContextStack,'fontFeatures',null);var bold=getStyleProperty(item,styleContextStack,'bold',false);var italics=getStyleProperty(item,styleContextStack,'italics',false);var color=getStyleProperty(item,styleContextStack,'color','black');var decoration=getStyleProperty(item,styleContextStack,'decoration',null);var decorationColor=getStyleProperty(item,styleContextStack,'decorationColor',null);var decorationStyle=getStyleProperty(item,styleContextStack,'decorationStyle',null);var background=getStyleProperty(item,styleContextStack,'background',null);var lineHeight=getStyleProperty(item,styleContextStack,'lineHeight',1);var characterSpacing=getStyleProperty(item,styleContextStack,'characterSpacing',0);var link=getStyleProperty(item,styleContextStack,'link',null);var linkToPage=getStyleProperty(item,styleContextStack,'linkToPage',null);var linkToDestination=getStyleProperty(item,styleContextStack,'linkToDestination',null);var noWrap=getStyleProperty(item,styleContextStack,'noWrap',null);var preserveLeadingSpaces=getStyleProperty(item,styleContextStack,'preserveLeadingSpaces',false);var preserveTrailingSpaces=getStyleProperty(item,styleContextStack,'preserveTrailingSpaces',false);var opacity=getStyleProperty(item,styleContextStack,'opacity',1);var font=fontProvider.provideFont(fontName,bold,italics);item.width=widthOfString(item.text,font,fontSize,characterSpacing,fontFeatures);item.height=font.lineHeight(fontSize)*lineHeight;if(!item.leadingCut){item.leadingCut=0;}var leadingSpaces;if(!preserveLeadingSpaces&&(leadingSpaces=item.text.match(LEADING))){item.leadingCut+=widthOfString(leadingSpaces[0],font,fontSize,characterSpacing,fontFeatures);}var trailingSpaces;if(!preserveTrailingSpaces&&(trailingSpaces=item.text.match(TRAILING))){item.trailingCut=widthOfString(trailingSpaces[0],font,fontSize,characterSpacing,fontFeatures);}else{item.trailingCut=0;}item.alignment=getStyleProperty(item,styleContextStack,'alignment','left');item.font=font;item.fontSize=fontSize;item.fontFeatures=fontFeatures;item.characterSpacing=characterSpacing;item.color=color;item.decoration=decoration;item.decorationColor=decorationColor;item.decorationStyle=decorationStyle;item.background=background;item.link=link;item.linkToPage=linkToPage;item.linkToDestination=linkToDestination;item.noWrap=noWrap;item.opacity=opacity;});return normalized;}function widthOfString(text,font,fontSize,characterSpacing,fontFeatures){return font.widthOfString(text,fontSize,fontFeatures)+(characterSpacing||0)*(text.length-1);}module.exports=TextTools;/***/},/* 131 */ /***/function(module,exports,__nested_webpack_require_3190249__){\"use strict\";var isString=__nested_webpack_require_3190249__(0).isString;function buildColumnWidths(columns,availableWidth){var autoColumns=[],autoMin=0,autoMax=0,starColumns=[],starMaxMin=0,starMaxMax=0,fixedColumns=[],initial_availableWidth=availableWidth;columns.forEach(function(column){if(isAutoColumn(column)){autoColumns.push(column);autoMin+=column._minWidth;autoMax+=column._maxWidth;}else if(isStarColumn(column)){starColumns.push(column);starMaxMin=Math.max(starMaxMin,column._minWidth);starMaxMax=Math.max(starMaxMax,column._maxWidth);}else{fixedColumns.push(column);}});fixedColumns.forEach(function(col){// width specified as %\nif(isString(col.width)&&/\\d+%/.test(col.width)){col.width=parseFloat(col.width)*initial_availableWidth/100;}if(col.width<col._minWidth&&col.elasticWidth){col._calcWidth=col._minWidth;}else{col._calcWidth=col.width;}availableWidth-=col._calcWidth;});// http://www.freesoft.org/CIE/RFC/1942/18.htm\n// http://www.w3.org/TR/CSS2/tables.html#width-layout\n// http://dev.w3.org/csswg/css3-tables-algorithms/Overview.src.htm\nvar minW=autoMin+starMaxMin*starColumns.length;var maxW=autoMax+starMaxMax*starColumns.length;if(minW>=availableWidth){// case 1 - there's no way to fit all columns within available width\n// that's actually pretty bad situation with PDF as we have no horizontal scroll\n// no easy workaround (unless we decide, in the future, to split single words)\n// currently we simply use minWidths for all columns\nautoColumns.forEach(function(col){col._calcWidth=col._minWidth;});starColumns.forEach(function(col){col._calcWidth=starMaxMin;// starMaxMin already contains padding\n});}else{if(maxW<availableWidth){// case 2 - we can fit rest of the table within available space\nautoColumns.forEach(function(col){col._calcWidth=col._maxWidth;availableWidth-=col._calcWidth;});}else{// maxW is too large, but minW fits within available width\nvar W=availableWidth-minW;var D=maxW-minW;autoColumns.forEach(function(col){var d=col._maxWidth-col._minWidth;col._calcWidth=col._minWidth+d*W/D;availableWidth-=col._calcWidth;});}if(starColumns.length>0){var starSize=availableWidth/starColumns.length;starColumns.forEach(function(col){col._calcWidth=starSize;});}}}function isAutoColumn(column){return column.width==='auto';}function isStarColumn(column){return column.width===null||column.width===undefined||column.width==='*'||column.width==='star';}//TODO: refactor and reuse in measureTable\nfunction measureMinMax(columns){var result={min:0,max:0};var maxStar={min:0,max:0};var starCount=0;for(var i=0,l=columns.length;i<l;i++){var c=columns[i];if(isStarColumn(c)){maxStar.min=Math.max(maxStar.min,c._minWidth);maxStar.max=Math.max(maxStar.max,c._maxWidth);starCount++;}else if(isAutoColumn(c)){result.min+=c._minWidth;result.max+=c._maxWidth;}else{result.min+=c.width!==undefined&&c.width||c._minWidth;result.max+=c.width!==undefined&&c.width||c._maxWidth;}}if(starCount){result.min+=starCount*maxStar.min;result.max+=starCount*maxStar.max;}return result;}/**\r\n     * Calculates column widths\r\n     * @private\r\n     */module.exports={buildColumnWidths:buildColumnWidths,measureMinMax:measureMinMax,isAutoColumn:isAutoColumn,isStarColumn:isStarColumn};/***/},/* 132 */ /***/function(module,exports){var toString={}.toString;module.exports=Array.isArray||function(arr){return toString.call(arr)=='[object Array]';};/***/},/* 133 */ /***/function(module,exports,__nested_webpack_require_3193654__){var $export=__nested_webpack_require_3193654__(5);var fails=__nested_webpack_require_3193654__(10);var defined=__nested_webpack_require_3193654__(30);var quot=/\"/g;// B.2.3.2.1 CreateHTML(string, tag, attribute, value)\nvar createHTML=function(string,tag,attribute,value){var S=String(defined(string));var p1='<'+tag;if(attribute!=='')p1+=' '+attribute+'=\"'+String(value).replace(quot,'&quot;')+'\"';return p1+'>'+S+'</'+tag+'>';};module.exports=function(NAME,exec){var O={};O[NAME]=exec(createHTML);$export($export.P+$export.F*fails(function(){var test=''[NAME]('\"');return test!==test.toLowerCase()||test.split('\"').length>3;}),'String',O);};/***/},/* 134 */ /***/function(module,exports,__nested_webpack_require_3194318__){module.exports=!__nested_webpack_require_3194318__(9)&&!__nested_webpack_require_3194318__(10)(function(){return Object.defineProperty(__nested_webpack_require_3194318__(135)('div'),'a',{get:function(){return 7;}}).a!=7;});/***/},/* 135 */ /***/function(module,exports,__nested_webpack_require_3194563__){var isObject=__nested_webpack_require_3194563__(18);var document=__nested_webpack_require_3194563__(8).document;// typeof document.createElement is 'object' in old IE\nvar is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{};};/***/},/* 136 */ /***/function(module,exports){module.exports=function(it){if(typeof it!='function')throw TypeError(it+' is not a function!');return it;};/***/},/* 137 */ /***/function(module,exports,__nested_webpack_require_3195051__){\"use strict\";// B.2.3.10 String.prototype.link(url)\n__nested_webpack_require_3195051__(133)('link',function(createHTML){return function link(url){return createHTML(this,'a','href',url);};});/***/},/* 138 */ /***/function(module,exports,__nested_webpack_require_3195293__){var has=__nested_webpack_require_3195293__(24);var toIObject=__nested_webpack_require_3195293__(43);var arrayIndexOf=__nested_webpack_require_3195293__(86)(false);var IE_PROTO=__nested_webpack_require_3195293__(87)('IE_PROTO');module.exports=function(object,names){var O=toIObject(object);var i=0;var result=[];var key;for(key in O)if(key!=IE_PROTO)has(O,key)&&result.push(key);// Don't enum bug & hidden keys\nwhile(names.length>i)if(has(O,key=names[i++])){~arrayIndexOf(result,key)||result.push(key);}return result;};/***/},/* 139 */ /***/function(module,exports,__nested_webpack_require_3195818__){// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)\nvar $export=__nested_webpack_require_3195818__(5);$export($export.P,'Array',{fill:__nested_webpack_require_3195818__(90)});__nested_webpack_require_3195818__(91)('fill');/***/},/* 140 */ /***/function(module,exports,__nested_webpack_require_3196080__){\"use strict\";if(__nested_webpack_require_3196080__(9)){var LIBRARY=__nested_webpack_require_3196080__(41);var global=__nested_webpack_require_3196080__(8);var fails=__nested_webpack_require_3196080__(10);var $export=__nested_webpack_require_3196080__(5);var $typed=__nested_webpack_require_3196080__(141);var $buffer=__nested_webpack_require_3196080__(226);var ctx=__nested_webpack_require_3196080__(52);var anInstance=__nested_webpack_require_3196080__(143);var propertyDesc=__nested_webpack_require_3196080__(40);var hide=__nested_webpack_require_3196080__(15);var redefineAll=__nested_webpack_require_3196080__(142);var toInteger=__nested_webpack_require_3196080__(31);var toLength=__nested_webpack_require_3196080__(16);var toIndex=__nested_webpack_require_3196080__(144);var toAbsoluteIndex=__nested_webpack_require_3196080__(54);var toPrimitive=__nested_webpack_require_3196080__(51);var has=__nested_webpack_require_3196080__(24);var classof=__nested_webpack_require_3196080__(64);var isObject=__nested_webpack_require_3196080__(18);var toObject=__nested_webpack_require_3196080__(19);var isArrayIter=__nested_webpack_require_3196080__(145);var create=__nested_webpack_require_3196080__(65);var getPrototypeOf=__nested_webpack_require_3196080__(146);var gOPN=__nested_webpack_require_3196080__(55).f;var getIterFn=__nested_webpack_require_3196080__(147);var uid=__nested_webpack_require_3196080__(29);var wks=__nested_webpack_require_3196080__(3);var createArrayMethod=__nested_webpack_require_3196080__(229);var createArrayIncludes=__nested_webpack_require_3196080__(86);var speciesConstructor=__nested_webpack_require_3196080__(149);var ArrayIterators=__nested_webpack_require_3196080__(66);var Iterators=__nested_webpack_require_3196080__(45);var $iterDetect=__nested_webpack_require_3196080__(151);var setSpecies=__nested_webpack_require_3196080__(234);var arrayFill=__nested_webpack_require_3196080__(90);var arrayCopyWithin=__nested_webpack_require_3196080__(235);var $DP=__nested_webpack_require_3196080__(11);var $GOPD=__nested_webpack_require_3196080__(67);var dP=$DP.f;var gOPD=$GOPD.f;var RangeError=global.RangeError;var TypeError=global.TypeError;var Uint8Array=global.Uint8Array;var ARRAY_BUFFER='ArrayBuffer';var SHARED_BUFFER='Shared'+ARRAY_BUFFER;var BYTES_PER_ELEMENT='BYTES_PER_ELEMENT';var PROTOTYPE='prototype';var ArrayProto=Array[PROTOTYPE];var $ArrayBuffer=$buffer.ArrayBuffer;var $DataView=$buffer.DataView;var arrayForEach=createArrayMethod(0);var arrayFilter=createArrayMethod(2);var arraySome=createArrayMethod(3);var arrayEvery=createArrayMethod(4);var arrayFind=createArrayMethod(5);var arrayFindIndex=createArrayMethod(6);var arrayIncludes=createArrayIncludes(true);var arrayIndexOf=createArrayIncludes(false);var arrayValues=ArrayIterators.values;var arrayKeys=ArrayIterators.keys;var arrayEntries=ArrayIterators.entries;var arrayLastIndexOf=ArrayProto.lastIndexOf;var arrayReduce=ArrayProto.reduce;var arrayReduceRight=ArrayProto.reduceRight;var arrayJoin=ArrayProto.join;var arraySort=ArrayProto.sort;var arraySlice=ArrayProto.slice;var arrayToString=ArrayProto.toString;var arrayToLocaleString=ArrayProto.toLocaleString;var ITERATOR=wks('iterator');var TAG=wks('toStringTag');var TYPED_CONSTRUCTOR=uid('typed_constructor');var DEF_CONSTRUCTOR=uid('def_constructor');var ALL_CONSTRUCTORS=$typed.CONSTR;var TYPED_ARRAY=$typed.TYPED;var VIEW=$typed.VIEW;var WRONG_LENGTH='Wrong length!';var $map=createArrayMethod(1,function(O,length){return allocate(speciesConstructor(O,O[DEF_CONSTRUCTOR]),length);});var LITTLE_ENDIAN=fails(function(){// eslint-disable-next-line no-undef\nreturn new Uint8Array(new Uint16Array([1]).buffer)[0]===1;});var FORCED_SET=!!Uint8Array&&!!Uint8Array[PROTOTYPE].set&&fails(function(){new Uint8Array(1).set({});});var toOffset=function(it,BYTES){var offset=toInteger(it);if(offset<0||offset%BYTES)throw RangeError('Wrong offset!');return offset;};var validate=function(it){if(isObject(it)&&TYPED_ARRAY in it)return it;throw TypeError(it+' is not a typed array!');};var allocate=function(C,length){if(!(isObject(C)&&TYPED_CONSTRUCTOR in C)){throw TypeError('It is not a typed array constructor!');}return new C(length);};var speciesFromList=function(O,list){return fromList(speciesConstructor(O,O[DEF_CONSTRUCTOR]),list);};var fromList=function(C,list){var index=0;var length=list.length;var result=allocate(C,length);while(length>index)result[index]=list[index++];return result;};var addGetter=function(it,key,internal){dP(it,key,{get:function(){return this._d[internal];}});};var $from=function from(source/* , mapfn, thisArg */){var O=toObject(source);var aLen=arguments.length;var mapfn=aLen>1?arguments[1]:undefined;var mapping=mapfn!==undefined;var iterFn=getIterFn(O);var i,length,values,result,step,iterator;if(iterFn!=undefined&&!isArrayIter(iterFn)){for(iterator=iterFn.call(O),values=[],i=0;!(step=iterator.next()).done;i++){values.push(step.value);}O=values;}if(mapping&&aLen>2)mapfn=ctx(mapfn,arguments[2],2);for(i=0,length=toLength(O.length),result=allocate(this,length);length>i;i++){result[i]=mapping?mapfn(O[i],i):O[i];}return result;};var $of=function of(/* ...items */){var index=0;var length=arguments.length;var result=allocate(this,length);while(length>index)result[index]=arguments[index++];return result;};// iOS Safari 6.x fails here\nvar TO_LOCALE_BUG=!!Uint8Array&&fails(function(){arrayToLocaleString.call(new Uint8Array(1));});var $toLocaleString=function toLocaleString(){return arrayToLocaleString.apply(TO_LOCALE_BUG?arraySlice.call(validate(this)):validate(this),arguments);};var proto={copyWithin:function copyWithin(target,start/* , end */){return arrayCopyWithin.call(validate(this),target,start,arguments.length>2?arguments[2]:undefined);},every:function every(callbackfn/* , thisArg */){return arrayEvery(validate(this),callbackfn,arguments.length>1?arguments[1]:undefined);},fill:function fill(value/* , start, end */){// eslint-disable-line no-unused-vars\nreturn arrayFill.apply(validate(this),arguments);},filter:function filter(callbackfn/* , thisArg */){return speciesFromList(this,arrayFilter(validate(this),callbackfn,arguments.length>1?arguments[1]:undefined));},find:function find(predicate/* , thisArg */){return arrayFind(validate(this),predicate,arguments.length>1?arguments[1]:undefined);},findIndex:function findIndex(predicate/* , thisArg */){return arrayFindIndex(validate(this),predicate,arguments.length>1?arguments[1]:undefined);},forEach:function forEach(callbackfn/* , thisArg */){arrayForEach(validate(this),callbackfn,arguments.length>1?arguments[1]:undefined);},indexOf:function indexOf(searchElement/* , fromIndex */){return arrayIndexOf(validate(this),searchElement,arguments.length>1?arguments[1]:undefined);},includes:function includes(searchElement/* , fromIndex */){return arrayIncludes(validate(this),searchElement,arguments.length>1?arguments[1]:undefined);},join:function join(separator){// eslint-disable-line no-unused-vars\nreturn arrayJoin.apply(validate(this),arguments);},lastIndexOf:function lastIndexOf(searchElement/* , fromIndex */){// eslint-disable-line no-unused-vars\nreturn arrayLastIndexOf.apply(validate(this),arguments);},map:function map(mapfn/* , thisArg */){return $map(validate(this),mapfn,arguments.length>1?arguments[1]:undefined);},reduce:function reduce(callbackfn/* , initialValue */){// eslint-disable-line no-unused-vars\nreturn arrayReduce.apply(validate(this),arguments);},reduceRight:function reduceRight(callbackfn/* , initialValue */){// eslint-disable-line no-unused-vars\nreturn arrayReduceRight.apply(validate(this),arguments);},reverse:function reverse(){var that=this;var length=validate(that).length;var middle=Math.floor(length/2);var index=0;var value;while(index<middle){value=that[index];that[index++]=that[--length];that[length]=value;}return that;},some:function some(callbackfn/* , thisArg */){return arraySome(validate(this),callbackfn,arguments.length>1?arguments[1]:undefined);},sort:function sort(comparefn){return arraySort.call(validate(this),comparefn);},subarray:function subarray(begin,end){var O=validate(this);var length=O.length;var $begin=toAbsoluteIndex(begin,length);return new(speciesConstructor(O,O[DEF_CONSTRUCTOR]))(O.buffer,O.byteOffset+$begin*O.BYTES_PER_ELEMENT,toLength((end===undefined?length:toAbsoluteIndex(end,length))-$begin));}};var $slice=function slice(start,end){return speciesFromList(this,arraySlice.call(validate(this),start,end));};var $set=function set(arrayLike/* , offset */){validate(this);var offset=toOffset(arguments[1],1);var length=this.length;var src=toObject(arrayLike);var len=toLength(src.length);var index=0;if(len+offset>length)throw RangeError(WRONG_LENGTH);while(index<len)this[offset+index]=src[index++];};var $iterators={entries:function entries(){return arrayEntries.call(validate(this));},keys:function keys(){return arrayKeys.call(validate(this));},values:function values(){return arrayValues.call(validate(this));}};var isTAIndex=function(target,key){return isObject(target)&&target[TYPED_ARRAY]&&typeof key!='symbol'&&key in target&&String(+key)==String(key);};var $getDesc=function getOwnPropertyDescriptor(target,key){return isTAIndex(target,key=toPrimitive(key,true))?propertyDesc(2,target[key]):gOPD(target,key);};var $setDesc=function defineProperty(target,key,desc){if(isTAIndex(target,key=toPrimitive(key,true))&&isObject(desc)&&has(desc,'value')&&!has(desc,'get')&&!has(desc,'set')// TODO: add validation descriptor w/o calling accessors\n&&!desc.configurable&&(!has(desc,'writable')||desc.writable)&&(!has(desc,'enumerable')||desc.enumerable)){target[key]=desc.value;return target;}return dP(target,key,desc);};if(!ALL_CONSTRUCTORS){$GOPD.f=$getDesc;$DP.f=$setDesc;}$export($export.S+$export.F*!ALL_CONSTRUCTORS,'Object',{getOwnPropertyDescriptor:$getDesc,defineProperty:$setDesc});if(fails(function(){arrayToString.call({});})){arrayToString=arrayToLocaleString=function toString(){return arrayJoin.call(this);};}var $TypedArrayPrototype$=redefineAll({},proto);redefineAll($TypedArrayPrototype$,$iterators);hide($TypedArrayPrototype$,ITERATOR,$iterators.values);redefineAll($TypedArrayPrototype$,{slice:$slice,set:$set,constructor:function(){/* noop */},toString:arrayToString,toLocaleString:$toLocaleString});addGetter($TypedArrayPrototype$,'buffer','b');addGetter($TypedArrayPrototype$,'byteOffset','o');addGetter($TypedArrayPrototype$,'byteLength','l');addGetter($TypedArrayPrototype$,'length','e');dP($TypedArrayPrototype$,TAG,{get:function(){return this[TYPED_ARRAY];}});// eslint-disable-next-line max-statements\nmodule.exports=function(KEY,BYTES,wrapper,CLAMPED){CLAMPED=!!CLAMPED;var NAME=KEY+(CLAMPED?'Clamped':'')+'Array';var GETTER='get'+KEY;var SETTER='set'+KEY;var TypedArray=global[NAME];var Base=TypedArray||{};var TAC=TypedArray&&getPrototypeOf(TypedArray);var FORCED=!TypedArray||!$typed.ABV;var O={};var TypedArrayPrototype=TypedArray&&TypedArray[PROTOTYPE];var getter=function(that,index){var data=that._d;return data.v[GETTER](index*BYTES+data.o,LITTLE_ENDIAN);};var setter=function(that,index,value){var data=that._d;if(CLAMPED)value=(value=Math.round(value))<0?0:value>0xff?0xff:value&0xff;data.v[SETTER](index*BYTES+data.o,value,LITTLE_ENDIAN);};var addElement=function(that,index){dP(that,index,{get:function(){return getter(this,index);},set:function(value){return setter(this,index,value);},enumerable:true});};if(FORCED){TypedArray=wrapper(function(that,data,$offset,$length){anInstance(that,TypedArray,NAME,'_d');var index=0;var offset=0;var buffer,byteLength,length,klass;if(!isObject(data)){length=toIndex(data);byteLength=length*BYTES;buffer=new $ArrayBuffer(byteLength);}else if(data instanceof $ArrayBuffer||(klass=classof(data))==ARRAY_BUFFER||klass==SHARED_BUFFER){buffer=data;offset=toOffset($offset,BYTES);var $len=data.byteLength;if($length===undefined){if($len%BYTES)throw RangeError(WRONG_LENGTH);byteLength=$len-offset;if(byteLength<0)throw RangeError(WRONG_LENGTH);}else{byteLength=toLength($length)*BYTES;if(byteLength+offset>$len)throw RangeError(WRONG_LENGTH);}length=byteLength/BYTES;}else if(TYPED_ARRAY in data){return fromList(TypedArray,data);}else{return $from.call(TypedArray,data);}hide(that,'_d',{b:buffer,o:offset,l:byteLength,e:length,v:new $DataView(buffer)});while(index<length)addElement(that,index++);});TypedArrayPrototype=TypedArray[PROTOTYPE]=create($TypedArrayPrototype$);hide(TypedArrayPrototype,'constructor',TypedArray);}else if(!fails(function(){TypedArray(1);})||!fails(function(){new TypedArray(-1);// eslint-disable-line no-new\n})||!$iterDetect(function(iter){new TypedArray();// eslint-disable-line no-new\nnew TypedArray(null);// eslint-disable-line no-new\nnew TypedArray(1.5);// eslint-disable-line no-new\nnew TypedArray(iter);// eslint-disable-line no-new\n},true)){TypedArray=wrapper(function(that,data,$offset,$length){anInstance(that,TypedArray,NAME);var klass;// `ws` module bug, temporarily remove validation length for Uint8Array\n// https://github.com/websockets/ws/pull/645\nif(!isObject(data))return new Base(toIndex(data));if(data instanceof $ArrayBuffer||(klass=classof(data))==ARRAY_BUFFER||klass==SHARED_BUFFER){return $length!==undefined?new Base(data,toOffset($offset,BYTES),$length):$offset!==undefined?new Base(data,toOffset($offset,BYTES)):new Base(data);}if(TYPED_ARRAY in data)return fromList(TypedArray,data);return $from.call(TypedArray,data);});arrayForEach(TAC!==Function.prototype?gOPN(Base).concat(gOPN(TAC)):gOPN(Base),function(key){if(!(key in TypedArray))hide(TypedArray,key,Base[key]);});TypedArray[PROTOTYPE]=TypedArrayPrototype;if(!LIBRARY)TypedArrayPrototype.constructor=TypedArray;}var $nativeIterator=TypedArrayPrototype[ITERATOR];var CORRECT_ITER_NAME=!!$nativeIterator&&($nativeIterator.name=='values'||$nativeIterator.name==undefined);var $iterator=$iterators.values;hide(TypedArray,TYPED_CONSTRUCTOR,true);hide(TypedArrayPrototype,TYPED_ARRAY,NAME);hide(TypedArrayPrototype,VIEW,true);hide(TypedArrayPrototype,DEF_CONSTRUCTOR,TypedArray);if(CLAMPED?new TypedArray(1)[TAG]!=NAME:!(TAG in TypedArrayPrototype)){dP(TypedArrayPrototype,TAG,{get:function(){return NAME;}});}O[NAME]=TypedArray;$export($export.G+$export.W+$export.F*(TypedArray!=Base),O);$export($export.S,NAME,{BYTES_PER_ELEMENT:BYTES});$export($export.S+$export.F*fails(function(){Base.of.call(TypedArray,1);}),NAME,{from:$from,of:$of});if(!(BYTES_PER_ELEMENT in TypedArrayPrototype))hide(TypedArrayPrototype,BYTES_PER_ELEMENT,BYTES);$export($export.P,NAME,proto);setSpecies(NAME);$export($export.P+$export.F*FORCED_SET,NAME,{set:$set});$export($export.P+$export.F*!CORRECT_ITER_NAME,NAME,$iterators);if(!LIBRARY&&TypedArrayPrototype.toString!=arrayToString)TypedArrayPrototype.toString=arrayToString;$export($export.P+$export.F*fails(function(){new TypedArray(1).slice();}),NAME,{slice:$slice});$export($export.P+$export.F*(fails(function(){return[1,2].toLocaleString()!=new TypedArray([1,2]).toLocaleString();})||!fails(function(){TypedArrayPrototype.toLocaleString.call([1,2]);})),NAME,{toLocaleString:$toLocaleString});Iterators[NAME]=CORRECT_ITER_NAME?$nativeIterator:$iterator;if(!LIBRARY&&!CORRECT_ITER_NAME)hide(TypedArrayPrototype,ITERATOR,$iterator);};}else module.exports=function(){/* empty */};/***/},/* 141 */ /***/function(module,exports,__nested_webpack_require_3210787__){var global=__nested_webpack_require_3210787__(8);var hide=__nested_webpack_require_3210787__(15);var uid=__nested_webpack_require_3210787__(29);var TYPED=uid('typed_array');var VIEW=uid('view');var ABV=!!(global.ArrayBuffer&&global.DataView);var CONSTR=ABV;var i=0;var l=9;var Typed;var TypedArrayConstructors='Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array'.split(',');while(i<l){if(Typed=global[TypedArrayConstructors[i++]]){hide(Typed.prototype,TYPED,true);hide(Typed.prototype,VIEW,true);}else CONSTR=false;}module.exports={ABV:ABV,CONSTR:CONSTR,TYPED:TYPED,VIEW:VIEW};/***/},/* 142 */ /***/function(module,exports,__nested_webpack_require_3211446__){var redefine=__nested_webpack_require_3211446__(23);module.exports=function(target,src,safe){for(var key in src)redefine(target,key,src[key],safe);return target;};/***/},/* 143 */ /***/function(module,exports){module.exports=function(it,Constructor,name,forbiddenField){if(!(it instanceof Constructor)||forbiddenField!==undefined&&forbiddenField in it){throw TypeError(name+': incorrect invocation!');}return it;};/***/},/* 144 */ /***/function(module,exports,__nested_webpack_require_3211912__){// https://tc39.github.io/ecma262/#sec-toindex\nvar toInteger=__nested_webpack_require_3211912__(31);var toLength=__nested_webpack_require_3211912__(16);module.exports=function(it){if(it===undefined)return 0;var number=toInteger(it);var length=toLength(number);if(number!==length)throw RangeError('Wrong length!');return length;};/***/},/* 145 */ /***/function(module,exports,__nested_webpack_require_3212278__){// check on default Array iterator\nvar Iterators=__nested_webpack_require_3212278__(45);var ITERATOR=__nested_webpack_require_3212278__(3)('iterator');var ArrayProto=Array.prototype;module.exports=function(it){return it!==undefined&&(Iterators.Array===it||ArrayProto[ITERATOR]===it);};/***/},/* 146 */ /***/function(module,exports,__nested_webpack_require_3212600__){// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has=__nested_webpack_require_3212600__(24);var toObject=__nested_webpack_require_3212600__(19);var IE_PROTO=__nested_webpack_require_3212600__(87)('IE_PROTO');var ObjectProto=Object.prototype;module.exports=Object.getPrototypeOf||function(O){O=toObject(O);if(has(O,IE_PROTO))return O[IE_PROTO];if(typeof O.constructor=='function'&&O instanceof O.constructor){return O.constructor.prototype;}return O instanceof Object?ObjectProto:null;};/***/},/* 147 */ /***/function(module,exports,__nested_webpack_require_3213111__){var classof=__nested_webpack_require_3213111__(64);var ITERATOR=__nested_webpack_require_3213111__(3)('iterator');var Iterators=__nested_webpack_require_3213111__(45);module.exports=__nested_webpack_require_3213111__(39).getIteratorMethod=function(it){if(it!=undefined)return it[ITERATOR]||it['@@iterator']||Iterators[classof(it)];};/***/},/* 148 */ /***/function(module,exports,__nested_webpack_require_3213451__){// 7.2.2 IsArray(argument)\nvar cof=__nested_webpack_require_3213451__(53);module.exports=Array.isArray||function isArray(arg){return cof(arg)=='Array';};/***/},/* 149 */ /***/function(module,exports,__nested_webpack_require_3213656__){// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject=__nested_webpack_require_3213656__(12);var aFunction=__nested_webpack_require_3213656__(136);var SPECIES=__nested_webpack_require_3213656__(3)('species');module.exports=function(O,D){var C=anObject(O).constructor;var S;return C===undefined||(S=anObject(C)[SPECIES])==undefined?D:aFunction(S);};/***/},/* 150 */ /***/function(module,exports,__nested_webpack_require_3214037__){\"use strict\";var LIBRARY=__nested_webpack_require_3214037__(41);var $export=__nested_webpack_require_3214037__(5);var redefine=__nested_webpack_require_3214037__(23);var hide=__nested_webpack_require_3214037__(15);var Iterators=__nested_webpack_require_3214037__(45);var $iterCreate=__nested_webpack_require_3214037__(233);var setToStringTag=__nested_webpack_require_3214037__(63);var getPrototypeOf=__nested_webpack_require_3214037__(146);var ITERATOR=__nested_webpack_require_3214037__(3)('iterator');var BUGGY=!([].keys&&'next'in[].keys());// Safari has buggy iterators w/o `next`\nvar FF_ITERATOR='@@iterator';var KEYS='keys';var VALUES='values';var returnThis=function(){return this;};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next);var getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case KEYS:return function keys(){return new Constructor(this,kind);};case VALUES:return function values(){return new Constructor(this,kind);};}return function entries(){return new Constructor(this,kind);};};var TAG=NAME+' Iterator';var DEF_VALUES=DEFAULT==VALUES;var VALUES_BUG=false;var proto=Base.prototype;var $native=proto[ITERATOR]||proto[FF_ITERATOR]||DEFAULT&&proto[DEFAULT];var $default=$native||getMethod(DEFAULT);var $entries=DEFAULT?!DEF_VALUES?$default:getMethod('entries'):undefined;var $anyNative=NAME=='Array'?proto.entries||$native:$native;var methods,key,IteratorPrototype;// Fix native\nif($anyNative){IteratorPrototype=getPrototypeOf($anyNative.call(new Base()));if(IteratorPrototype!==Object.prototype&&IteratorPrototype.next){// Set @@toStringTag to native iterators\nsetToStringTag(IteratorPrototype,TAG,true);// fix for some old engines\nif(!LIBRARY&&typeof IteratorPrototype[ITERATOR]!='function')hide(IteratorPrototype,ITERATOR,returnThis);}}// fix Array#{values, @@iterator}.name in V8 / FF\nif(DEF_VALUES&&$native&&$native.name!==VALUES){VALUES_BUG=true;$default=function values(){return $native.call(this);};}// Define iterator\nif((!LIBRARY||FORCED)&&(BUGGY||VALUES_BUG||!proto[ITERATOR])){hide(proto,ITERATOR,$default);}// Plug for library\nIterators[NAME]=$default;Iterators[TAG]=returnThis;if(DEFAULT){methods={values:DEF_VALUES?$default:getMethod(VALUES),keys:IS_SET?$default:getMethod(KEYS),entries:$entries};if(FORCED)for(key in methods){if(!(key in proto))redefine(proto,key,methods[key]);}else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods);}return methods;};/***/},/* 151 */ /***/function(module,exports,__nested_webpack_require_3216458__){var ITERATOR=__nested_webpack_require_3216458__(3)('iterator');var SAFE_CLOSING=false;try{var riter=[7][ITERATOR]();riter['return']=function(){SAFE_CLOSING=true;};// eslint-disable-next-line no-throw-literal\nArray.from(riter,function(){throw 2;});}catch(e){/* empty */}module.exports=function(exec,skipClosing){if(!skipClosing&&!SAFE_CLOSING)return false;var safe=false;try{var arr=[7];var iter=arr[ITERATOR]();iter.next=function(){return{done:safe=true};};arr[ITERATOR]=function(){return iter;};exec(arr);}catch(e){/* empty */}return safe;};/***/},/* 152 */ /***/function(module,exports,__nested_webpack_require_3217052__){var dP=__nested_webpack_require_3217052__(11).f;var FProto=Function.prototype;var nameRE=/^\\s*function ([^ (]*)/;var NAME='name';// 19.2.4.2 name\nNAME in FProto||__nested_webpack_require_3217052__(9)&&dP(FProto,NAME,{configurable:true,get:function(){try{return(''+this).match(nameRE)[1];}catch(e){return'';}}});/***/},/* 153 */ /***/function(module,exports,__nested_webpack_require_3217400__){\"use strict\";var isRegExp=__nested_webpack_require_3217400__(154);var anObject=__nested_webpack_require_3217400__(12);var speciesConstructor=__nested_webpack_require_3217400__(149);var advanceStringIndex=__nested_webpack_require_3217400__(93);var toLength=__nested_webpack_require_3217400__(16);var callRegExpExec=__nested_webpack_require_3217400__(95);var regexpExec=__nested_webpack_require_3217400__(97);var fails=__nested_webpack_require_3217400__(10);var $min=Math.min;var $push=[].push;var $SPLIT='split';var LENGTH='length';var LAST_INDEX='lastIndex';var MAX_UINT32=0xffffffff;// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError\nvar SUPPORTS_Y=!fails(function(){RegExp(MAX_UINT32,'y');});// @@split logic\n__nested_webpack_require_3217400__(96)('split',2,function(defined,SPLIT,$split,maybeCallNative){var internalSplit;if('abbc'[$SPLIT](/(b)*/)[1]=='c'||'test'[$SPLIT](/(?:)/,-1)[LENGTH]!=4||'ab'[$SPLIT](/(?:ab)*/)[LENGTH]!=2||'.'[$SPLIT](/(.?)(.?)/)[LENGTH]!=4||'.'[$SPLIT](/()()/)[LENGTH]>1||''[$SPLIT](/.?/)[LENGTH]){// based on es5-shim implementation, need to rework it\ninternalSplit=function(separator,limit){var string=String(this);if(separator===undefined&&limit===0)return[];// If `separator` is not a regex, use native split\nif(!isRegExp(separator))return $split.call(string,separator,limit);var output=[];var flags=(separator.ignoreCase?'i':'')+(separator.multiline?'m':'')+(separator.unicode?'u':'')+(separator.sticky?'y':'');var lastLastIndex=0;var splitLimit=limit===undefined?MAX_UINT32:limit>>>0;// Make `global` and avoid `lastIndex` issues by working with a copy\nvar separatorCopy=new RegExp(separator.source,flags+'g');var match,lastIndex,lastLength;while(match=regexpExec.call(separatorCopy,string)){lastIndex=separatorCopy[LAST_INDEX];if(lastIndex>lastLastIndex){output.push(string.slice(lastLastIndex,match.index));if(match[LENGTH]>1&&match.index<string[LENGTH])$push.apply(output,match.slice(1));lastLength=match[0][LENGTH];lastLastIndex=lastIndex;if(output[LENGTH]>=splitLimit)break;}if(separatorCopy[LAST_INDEX]===match.index)separatorCopy[LAST_INDEX]++;// Avoid an infinite loop\n}if(lastLastIndex===string[LENGTH]){if(lastLength||!separatorCopy.test(''))output.push('');}else output.push(string.slice(lastLastIndex));return output[LENGTH]>splitLimit?output.slice(0,splitLimit):output;};// Chakra, V8\n}else if('0'[$SPLIT](undefined,0)[LENGTH]){internalSplit=function(separator,limit){return separator===undefined&&limit===0?[]:$split.call(this,separator,limit);};}else{internalSplit=$split;}return[// `String.prototype.split` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.split\nfunction split(separator,limit){var O=defined(this);var splitter=separator==undefined?undefined:separator[SPLIT];return splitter!==undefined?splitter.call(separator,O,limit):internalSplit.call(String(O),separator,limit);},// `RegExp.prototype[@@split]` method\n// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split\n//\n// NOTE: This cannot be properly polyfilled in engines that don't support\n// the 'y' flag.\nfunction(regexp,limit){var res=maybeCallNative(internalSplit,regexp,this,limit,internalSplit!==$split);if(res.done)return res.value;var rx=anObject(regexp);var S=String(this);var C=speciesConstructor(rx,RegExp);var unicodeMatching=rx.unicode;var flags=(rx.ignoreCase?'i':'')+(rx.multiline?'m':'')+(rx.unicode?'u':'')+(SUPPORTS_Y?'y':'g');// ^(? + rx + ) is needed, in combination with some S slicing, to\n// simulate the 'y' flag.\nvar splitter=new C(SUPPORTS_Y?rx:'^(?:'+rx.source+')',flags);var lim=limit===undefined?MAX_UINT32:limit>>>0;if(lim===0)return[];if(S.length===0)return callRegExpExec(splitter,S)===null?[S]:[];var p=0;var q=0;var A=[];while(q<S.length){splitter.lastIndex=SUPPORTS_Y?q:0;var z=callRegExpExec(splitter,SUPPORTS_Y?S:S.slice(q));var e;if(z===null||(e=$min(toLength(splitter.lastIndex+(SUPPORTS_Y?0:q)),S.length))===p){q=advanceStringIndex(S,q,unicodeMatching);}else{A.push(S.slice(p,q));if(A.length===lim)return A;for(var i=1;i<=z.length-1;i++){A.push(z[i]);if(A.length===lim)return A;}q=p=e;}}A.push(S.slice(p));return A;}];});/***/},/* 154 */ /***/function(module,exports,__nested_webpack_require_3221457__){// 7.2.8 IsRegExp(argument)\nvar isObject=__nested_webpack_require_3221457__(18);var cof=__nested_webpack_require_3221457__(53);var MATCH=__nested_webpack_require_3221457__(3)('match');module.exports=function(it){var isRegExp;return isObject(it)&&((isRegExp=it[MATCH])!==undefined?!!isRegExp:cof(it)=='RegExp');};/***/},/* 155 */ /***/function(module,exports,__nested_webpack_require_3221791__){\"use strict\";var global=__nested_webpack_require_3221791__(8);var has=__nested_webpack_require_3221791__(24);var cof=__nested_webpack_require_3221791__(53);var inheritIfRequired=__nested_webpack_require_3221791__(237);var toPrimitive=__nested_webpack_require_3221791__(51);var fails=__nested_webpack_require_3221791__(10);var gOPN=__nested_webpack_require_3221791__(55).f;var gOPD=__nested_webpack_require_3221791__(67).f;var dP=__nested_webpack_require_3221791__(11).f;var $trim=__nested_webpack_require_3221791__(238).trim;var NUMBER='Number';var $Number=global[NUMBER];var Base=$Number;var proto=$Number.prototype;// Opera ~12 has broken Object#toString\nvar BROKEN_COF=cof(__nested_webpack_require_3221791__(65)(proto))==NUMBER;var TRIM=('trim'in String.prototype);// 7.1.3 ToNumber(argument)\nvar toNumber=function(argument){var it=toPrimitive(argument,false);if(typeof it=='string'&&it.length>2){it=TRIM?it.trim():$trim(it,3);var first=it.charCodeAt(0);var third,radix,maxCode;if(first===43||first===45){third=it.charCodeAt(2);if(third===88||third===120)return NaN;// Number('+0x1') should be NaN, old V8 fix\n}else if(first===48){switch(it.charCodeAt(1)){case 66:case 98:radix=2;maxCode=49;break;// fast equal /^0b[01]+$/i\ncase 79:case 111:radix=8;maxCode=55;break;// fast equal /^0o[0-7]+$/i\ndefault:return+it;}for(var digits=it.slice(2),i=0,l=digits.length,code;i<l;i++){code=digits.charCodeAt(i);// parseInt parses a string to a first unavailable symbol\n// but ToNumber should return NaN if a string contains unavailable symbols\nif(code<48||code>maxCode)return NaN;}return parseInt(digits,radix);}}return+it;};if(!$Number(' 0o1')||!$Number('0b1')||$Number('+0x1')){$Number=function Number(value){var it=arguments.length<1?0:value;var that=this;return that instanceof $Number// check on 1..constructor(foo) case\n&&(BROKEN_COF?fails(function(){proto.valueOf.call(that);}):cof(that)!=NUMBER)?inheritIfRequired(new Base(toNumber(it)),that,$Number):toNumber(it);};for(var keys=__nested_webpack_require_3221791__(9)?gOPN(Base):(// ES3:\n'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,'+// ES6 (in case, if modules with ES6 Number statics required before):\n'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,'+'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger').split(','),j=0,key;keys.length>j;j++){if(has(Base,key=keys[j])&&!has($Number,key)){dP($Number,key,gOPD(Base,key));}}$Number.prototype=proto;proto.constructor=$Number;__nested_webpack_require_3221791__(23)(global,NUMBER,$Number);}/***/},/* 156 */ /***/function(module,exports,__nested_webpack_require_3224179__){// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */var isObject=__nested_webpack_require_3224179__(18);var anObject=__nested_webpack_require_3224179__(12);var check=function(O,proto){anObject(O);if(!isObject(proto)&&proto!==null)throw TypeError(proto+\": can't set as prototype!\");};module.exports={set:Object.setPrototypeOf||('__proto__'in{}?// eslint-disable-line\nfunction(test,buggy,set){try{set=__nested_webpack_require_3224179__(52)(Function.call,__nested_webpack_require_3224179__(67).f(Object.prototype,'__proto__').set,2);set(test,[]);buggy=!(test instanceof Array);}catch(e){buggy=true;}return function setPrototypeOf(O,proto){check(O,proto);if(buggy)O.__proto__=proto;else set(O,proto);return O;};}({},false):undefined),check:check};/***/},/* 157 */ /***/function(module,exports,__nested_webpack_require_3224979__){\"use strict\";// https://github.com/tc39/Array.prototype.includes\nvar $export=__nested_webpack_require_3224979__(5);var $includes=__nested_webpack_require_3224979__(86)(true);$export($export.P,'Array',{includes:function includes(el/* , fromIndex = 0 */){return $includes(this,el,arguments.length>1?arguments[1]:undefined);}});__nested_webpack_require_3224979__(91)('includes');/***/},/* 158 */ /***/function(module,exports,__nested_webpack_require_3225377__){\"use strict\";// 21.1.3.7 String.prototype.includes(searchString, position = 0)\nvar $export=__nested_webpack_require_3225377__(5);var context=__nested_webpack_require_3225377__(241);var INCLUDES='includes';$export($export.P+$export.F*__nested_webpack_require_3225377__(242)(INCLUDES),'String',{includes:function includes(searchString/* , position = 0 */){return!!~context(this,searchString,INCLUDES).indexOf(searchString,arguments.length>1?arguments[1]:undefined);}});/***/},/* 159 */ /***/function(module,exports,__nested_webpack_require_3225866__){\"use strict\";var anObject=__nested_webpack_require_3225866__(12);var toObject=__nested_webpack_require_3225866__(19);var toLength=__nested_webpack_require_3225866__(16);var toInteger=__nested_webpack_require_3225866__(31);var advanceStringIndex=__nested_webpack_require_3225866__(93);var regExpExec=__nested_webpack_require_3225866__(95);var max=Math.max;var min=Math.min;var floor=Math.floor;var SUBSTITUTION_SYMBOLS=/\\$([$&`']|\\d\\d?|<[^>]*>)/g;var SUBSTITUTION_SYMBOLS_NO_NAMED=/\\$([$&`']|\\d\\d?)/g;var maybeToString=function(it){return it===undefined?it:String(it);};// @@replace logic\n__nested_webpack_require_3225866__(96)('replace',2,function(defined,REPLACE,$replace,maybeCallNative){return[// `String.prototype.replace` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.replace\nfunction replace(searchValue,replaceValue){var O=defined(this);var fn=searchValue==undefined?undefined:searchValue[REPLACE];return fn!==undefined?fn.call(searchValue,O,replaceValue):$replace.call(String(O),searchValue,replaceValue);},// `RegExp.prototype[@@replace]` method\n// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace\nfunction(regexp,replaceValue){var res=maybeCallNative($replace,regexp,this,replaceValue);if(res.done)return res.value;var rx=anObject(regexp);var S=String(this);var functionalReplace=typeof replaceValue==='function';if(!functionalReplace)replaceValue=String(replaceValue);var global=rx.global;if(global){var fullUnicode=rx.unicode;rx.lastIndex=0;}var results=[];while(true){var result=regExpExec(rx,S);if(result===null)break;results.push(result);if(!global)break;var matchStr=String(result[0]);if(matchStr==='')rx.lastIndex=advanceStringIndex(S,toLength(rx.lastIndex),fullUnicode);}var accumulatedResult='';var nextSourcePosition=0;for(var i=0;i<results.length;i++){result=results[i];var matched=String(result[0]);var position=max(min(toInteger(result.index),S.length),0);var captures=[];// NOTE: This is equivalent to\n//   captures = result.slice(1).map(maybeToString)\n// but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n// the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\nfor(var j=1;j<result.length;j++)captures.push(maybeToString(result[j]));var namedCaptures=result.groups;if(functionalReplace){var replacerArgs=[matched].concat(captures,position,S);if(namedCaptures!==undefined)replacerArgs.push(namedCaptures);var replacement=String(replaceValue.apply(undefined,replacerArgs));}else{replacement=getSubstitution(matched,S,position,captures,namedCaptures,replaceValue);}if(position>=nextSourcePosition){accumulatedResult+=S.slice(nextSourcePosition,position)+replacement;nextSourcePosition=position+matched.length;}}return accumulatedResult+S.slice(nextSourcePosition);}];// https://tc39.github.io/ecma262/#sec-getsubstitution\nfunction getSubstitution(matched,str,position,captures,namedCaptures,replacement){var tailPos=position+matched.length;var m=captures.length;var symbols=SUBSTITUTION_SYMBOLS_NO_NAMED;if(namedCaptures!==undefined){namedCaptures=toObject(namedCaptures);symbols=SUBSTITUTION_SYMBOLS;}return $replace.call(replacement,symbols,function(match,ch){var capture;switch(ch.charAt(0)){case'$':return'$';case'&':return matched;case'`':return str.slice(0,position);case\"'\":return str.slice(tailPos);case'<':capture=namedCaptures[ch.slice(1,-1)];break;default:// \\d\\d?\nvar n=+ch;if(n===0)return match;if(n>m){var f=floor(n/10);if(f===0)return match;if(f<=m)return captures[f-1]===undefined?ch.charAt(1):captures[f-1]+ch.charAt(1);return match;}capture=captures[n-1];}return capture===undefined?'':capture;});}});/***/},/* 160 */ /***/function(module,exports,__nested_webpack_require_3229526__){// 19.1.2.14 Object.keys(O)\nvar toObject=__nested_webpack_require_3229526__(19);var $keys=__nested_webpack_require_3229526__(42);__nested_webpack_require_3229526__(245)('keys',function(){return function keys(it){return $keys(toObject(it));};});/***/},/* 161 */ /***/function(module,exports,__nested_webpack_require_3229792__){\"use strict\";// 19.1.3.6 Object.prototype.toString()\nvar classof=__nested_webpack_require_3229792__(64);var test={};test[__nested_webpack_require_3229792__(3)('toStringTag')]='z';if(test+''!='[object z]'){__nested_webpack_require_3229792__(23)(Object.prototype,'toString',function toString(){return'[object '+classof(this)+']';},true);}/***/},/* 162 */ /***/function(module,exports,__nested_webpack_require_3230150__){__nested_webpack_require_3230150__(163)('asyncIterator');/***/},/* 163 */ /***/function(module,exports,__nested_webpack_require_3230259__){var global=__nested_webpack_require_3230259__(8);var core=__nested_webpack_require_3230259__(39);var LIBRARY=__nested_webpack_require_3230259__(41);var wksExt=__nested_webpack_require_3230259__(164);var defineProperty=__nested_webpack_require_3230259__(11).f;module.exports=function(name){var $Symbol=core.Symbol||(core.Symbol=LIBRARY?{}:global.Symbol||{});if(name.charAt(0)!='_'&&!(name in $Symbol))defineProperty($Symbol,name,{value:wksExt.f(name)});};/***/},/* 164 */ /***/function(module,exports,__nested_webpack_require_3230705__){exports.f=__nested_webpack_require_3230705__(3);/***/},/* 165 */ /***/function(module,exports,__nested_webpack_require_3230805__){\"use strict\";// ECMAScript 6 symbols shim\nvar global=__nested_webpack_require_3230805__(8);var has=__nested_webpack_require_3230805__(24);var DESCRIPTORS=__nested_webpack_require_3230805__(9);var $export=__nested_webpack_require_3230805__(5);var redefine=__nested_webpack_require_3230805__(23);var META=__nested_webpack_require_3230805__(252).KEY;var $fails=__nested_webpack_require_3230805__(10);var shared=__nested_webpack_require_3230805__(61);var setToStringTag=__nested_webpack_require_3230805__(63);var uid=__nested_webpack_require_3230805__(29);var wks=__nested_webpack_require_3230805__(3);var wksExt=__nested_webpack_require_3230805__(164);var wksDefine=__nested_webpack_require_3230805__(163);var enumKeys=__nested_webpack_require_3230805__(253);var isArray=__nested_webpack_require_3230805__(148);var anObject=__nested_webpack_require_3230805__(12);var isObject=__nested_webpack_require_3230805__(18);var toObject=__nested_webpack_require_3230805__(19);var toIObject=__nested_webpack_require_3230805__(43);var toPrimitive=__nested_webpack_require_3230805__(51);var createDesc=__nested_webpack_require_3230805__(40);var _create=__nested_webpack_require_3230805__(65);var gOPNExt=__nested_webpack_require_3230805__(254);var $GOPD=__nested_webpack_require_3230805__(67);var $GOPS=__nested_webpack_require_3230805__(89);var $DP=__nested_webpack_require_3230805__(11);var $keys=__nested_webpack_require_3230805__(42);var gOPD=$GOPD.f;var dP=$DP.f;var gOPN=gOPNExt.f;var $Symbol=global.Symbol;var $JSON=global.JSON;var _stringify=$JSON&&$JSON.stringify;var PROTOTYPE='prototype';var HIDDEN=wks('_hidden');var TO_PRIMITIVE=wks('toPrimitive');var isEnum={}.propertyIsEnumerable;var SymbolRegistry=shared('symbol-registry');var AllSymbols=shared('symbols');var OPSymbols=shared('op-symbols');var ObjectProto=Object[PROTOTYPE];var USE_NATIVE=typeof $Symbol=='function'&&!!$GOPS.f;var QObject=global.QObject;// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild;// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc=DESCRIPTORS&&$fails(function(){return _create(dP({},'a',{get:function(){return dP(this,'a',{value:7}).a;}})).a!=7;})?function(it,key,D){var protoDesc=gOPD(ObjectProto,key);if(protoDesc)delete ObjectProto[key];dP(it,key,D);if(protoDesc&&it!==ObjectProto)dP(ObjectProto,key,protoDesc);}:dP;var wrap=function(tag){var sym=AllSymbols[tag]=_create($Symbol[PROTOTYPE]);sym._k=tag;return sym;};var isSymbol=USE_NATIVE&&typeof $Symbol.iterator=='symbol'?function(it){return typeof it=='symbol';}:function(it){return it instanceof $Symbol;};var $defineProperty=function defineProperty(it,key,D){if(it===ObjectProto)$defineProperty(OPSymbols,key,D);anObject(it);key=toPrimitive(key,true);anObject(D);if(has(AllSymbols,key)){if(!D.enumerable){if(!has(it,HIDDEN))dP(it,HIDDEN,createDesc(1,{}));it[HIDDEN][key]=true;}else{if(has(it,HIDDEN)&&it[HIDDEN][key])it[HIDDEN][key]=false;D=_create(D,{enumerable:createDesc(0,false)});}return setSymbolDesc(it,key,D);}return dP(it,key,D);};var $defineProperties=function defineProperties(it,P){anObject(it);var keys=enumKeys(P=toIObject(P));var i=0;var l=keys.length;var key;while(l>i)$defineProperty(it,key=keys[i++],P[key]);return it;};var $create=function create(it,P){return P===undefined?_create(it):$defineProperties(_create(it),P);};var $propertyIsEnumerable=function propertyIsEnumerable(key){var E=isEnum.call(this,key=toPrimitive(key,true));if(this===ObjectProto&&has(AllSymbols,key)&&!has(OPSymbols,key))return false;return E||!has(this,key)||!has(AllSymbols,key)||has(this,HIDDEN)&&this[HIDDEN][key]?E:true;};var $getOwnPropertyDescriptor=function getOwnPropertyDescriptor(it,key){it=toIObject(it);key=toPrimitive(key,true);if(it===ObjectProto&&has(AllSymbols,key)&&!has(OPSymbols,key))return;var D=gOPD(it,key);if(D&&has(AllSymbols,key)&&!(has(it,HIDDEN)&&it[HIDDEN][key]))D.enumerable=true;return D;};var $getOwnPropertyNames=function getOwnPropertyNames(it){var names=gOPN(toIObject(it));var result=[];var i=0;var key;while(names.length>i){if(!has(AllSymbols,key=names[i++])&&key!=HIDDEN&&key!=META)result.push(key);}return result;};var $getOwnPropertySymbols=function getOwnPropertySymbols(it){var IS_OP=it===ObjectProto;var names=gOPN(IS_OP?OPSymbols:toIObject(it));var result=[];var i=0;var key;while(names.length>i){if(has(AllSymbols,key=names[i++])&&(IS_OP?has(ObjectProto,key):true))result.push(AllSymbols[key]);}return result;};// 19.4.1.1 Symbol([description])\nif(!USE_NATIVE){$Symbol=function Symbol(){if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!');var tag=uid(arguments.length>0?arguments[0]:undefined);var $set=function(value){if(this===ObjectProto)$set.call(OPSymbols,value);if(has(this,HIDDEN)&&has(this[HIDDEN],tag))this[HIDDEN][tag]=false;setSymbolDesc(this,tag,createDesc(1,value));};if(DESCRIPTORS&&setter)setSymbolDesc(ObjectProto,tag,{configurable:true,set:$set});return wrap(tag);};redefine($Symbol[PROTOTYPE],'toString',function toString(){return this._k;});$GOPD.f=$getOwnPropertyDescriptor;$DP.f=$defineProperty;__nested_webpack_require_3230805__(55).f=gOPNExt.f=$getOwnPropertyNames;__nested_webpack_require_3230805__(62).f=$propertyIsEnumerable;$GOPS.f=$getOwnPropertySymbols;if(DESCRIPTORS&&!__nested_webpack_require_3230805__(41)){redefine(ObjectProto,'propertyIsEnumerable',$propertyIsEnumerable,true);}wksExt.f=function(name){return wrap(wks(name));};}$export($export.G+$export.W+$export.F*!USE_NATIVE,{Symbol:$Symbol});for(var es6Symbols=// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split(','),j=0;es6Symbols.length>j;)wks(es6Symbols[j++]);for(var wellKnownSymbols=$keys(wks.store),k=0;wellKnownSymbols.length>k;)wksDefine(wellKnownSymbols[k++]);$export($export.S+$export.F*!USE_NATIVE,'Symbol',{// 19.4.2.1 Symbol.for(key)\n'for':function(key){return has(SymbolRegistry,key+='')?SymbolRegistry[key]:SymbolRegistry[key]=$Symbol(key);},// 19.4.2.5 Symbol.keyFor(sym)\nkeyFor:function keyFor(sym){if(!isSymbol(sym))throw TypeError(sym+' is not a symbol!');for(var key in SymbolRegistry)if(SymbolRegistry[key]===sym)return key;},useSetter:function(){setter=true;},useSimple:function(){setter=false;}});$export($export.S+$export.F*!USE_NATIVE,'Object',{// 19.1.2.2 Object.create(O [, Properties])\ncreate:$create,// 19.1.2.4 Object.defineProperty(O, P, Attributes)\ndefineProperty:$defineProperty,// 19.1.2.3 Object.defineProperties(O, Properties)\ndefineProperties:$defineProperties,// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\ngetOwnPropertyDescriptor:$getOwnPropertyDescriptor,// 19.1.2.7 Object.getOwnPropertyNames(O)\ngetOwnPropertyNames:$getOwnPropertyNames,// 19.1.2.8 Object.getOwnPropertySymbols(O)\ngetOwnPropertySymbols:$getOwnPropertySymbols});// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\nvar FAILS_ON_PRIMITIVES=$fails(function(){$GOPS.f(1);});$export($export.S+$export.F*FAILS_ON_PRIMITIVES,'Object',{getOwnPropertySymbols:function getOwnPropertySymbols(it){return $GOPS.f(toObject(it));}});// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON&&$export($export.S+$export.F*(!USE_NATIVE||$fails(function(){var S=$Symbol();// MS Edge converts symbol values to JSON as {}\n// WebKit converts symbol values to JSON as null\n// V8 throws on boxed symbols\nreturn _stringify([S])!='[null]'||_stringify({a:S})!='{}'||_stringify(Object(S))!='{}';})),'JSON',{stringify:function stringify(it){var args=[it];var i=1;var replacer,$replacer;while(arguments.length>i)args.push(arguments[i++]);$replacer=replacer=args[1];if(!isObject(replacer)&&it===undefined||isSymbol(it))return;// IE8 returns string on undefined\nif(!isArray(replacer))replacer=function(key,value){if(typeof $replacer=='function')value=$replacer.call(this,key,value);if(!isSymbol(value))return value;};args[1]=replacer;return _stringify.apply($JSON,args);}});// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE]||__nested_webpack_require_3230805__(15)($Symbol[PROTOTYPE],TO_PRIMITIVE,$Symbol[PROTOTYPE].valueOf);// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol,'Symbol');// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math,'Math',true);// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON,'JSON',true);/***/},/* 166 */ /***/function(module,exports,__nested_webpack_require_3238954__){\"use strict\";/* WEBPACK VAR INJECTION */(function(global,process){// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n/*<replacement>*/var pna=__nested_webpack_require_3238954__(69);/*</replacement>*/module.exports=Readable;/*<replacement>*/var isArray=__nested_webpack_require_3238954__(132);/*</replacement>*/ /*<replacement>*/var Duplex;/*</replacement>*/Readable.ReadableState=ReadableState;/*<replacement>*/var EE=__nested_webpack_require_3238954__(68).EventEmitter;var EElistenerCount=function(emitter,type){return emitter.listeners(type).length;};/*</replacement>*/ /*<replacement>*/var Stream=__nested_webpack_require_3238954__(167);/*</replacement>*/ /*<replacement>*/var Buffer=__nested_webpack_require_3238954__(70).Buffer;var OurUint8Array=global.Uint8Array||function(){};function _uint8ArrayToBuffer(chunk){return Buffer.from(chunk);}function _isUint8Array(obj){return Buffer.isBuffer(obj)||obj instanceof OurUint8Array;}/*</replacement>*/ /*<replacement>*/var util=__nested_webpack_require_3238954__(56);util.inherits=__nested_webpack_require_3238954__(46);/*</replacement>*/ /*<replacement>*/var debugUtil=__nested_webpack_require_3238954__(256);var debug=void 0;if(debugUtil&&debugUtil.debuglog){debug=debugUtil.debuglog('stream');}else{debug=function(){};}/*</replacement>*/var BufferList=__nested_webpack_require_3238954__(257);var destroyImpl=__nested_webpack_require_3238954__(168);var StringDecoder;util.inherits(Readable,Stream);var kProxyEvents=['error','close','destroy','pause','resume'];function prependListener(emitter,event,fn){// Sadly this is not cacheable as some libraries bundle their own\n// event emitter implementation with them.\nif(typeof emitter.prependListener==='function')return emitter.prependListener(event,fn);// This is a hack to make sure that our error handler is attached before any\n// userland ones.  NEVER DO THIS. This is here only because this code needs\n// to continue to work with older versions of Node.js that do not include\n// the prependListener() method. The goal is to eventually remove this hack.\nif(!emitter._events||!emitter._events[event])emitter.on(event,fn);else if(isArray(emitter._events[event]))emitter._events[event].unshift(fn);else emitter._events[event]=[fn,emitter._events[event]];}function ReadableState(options,stream){Duplex=Duplex||__nested_webpack_require_3238954__(32);options=options||{};// Duplex streams are both readable and writable, but share\n// the same options object.\n// However, some cases require setting options to different\n// values for the readable and the writable sides of the duplex stream.\n// These options can be provided separately as readableXXX and writableXXX.\nvar isDuplex=stream instanceof Duplex;// object stream flag. Used to make read(n) ignore n and to\n// make all the buffer merging and length checks go away\nthis.objectMode=!!options.objectMode;if(isDuplex)this.objectMode=this.objectMode||!!options.readableObjectMode;// the point at which it stops calling _read() to fill the buffer\n// Note: 0 is a valid value, means \"don't call _read preemptively ever\"\nvar hwm=options.highWaterMark;var readableHwm=options.readableHighWaterMark;var defaultHwm=this.objectMode?16:16*1024;if(hwm||hwm===0)this.highWaterMark=hwm;else if(isDuplex&&(readableHwm||readableHwm===0))this.highWaterMark=readableHwm;else this.highWaterMark=defaultHwm;// cast to ints.\nthis.highWaterMark=Math.floor(this.highWaterMark);// A linked list is used to store data chunks instead of an array because the\n// linked list can remove elements from the beginning faster than\n// array.shift()\nthis.buffer=new BufferList();this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;// a flag to be able to tell if the event 'readable'/'data' is emitted\n// immediately, or on a later tick.  We set this to true at first, because\n// any actions that shouldn't happen until \"later\" should generally also\n// not happen before the first read call.\nthis.sync=true;// whenever we return null, then we set a flag to say\n// that we're awaiting a 'readable' event emission.\nthis.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;// has it been destroyed\nthis.destroyed=false;// Crypto is kind of old and crusty.  Historically, its default string\n// encoding is 'binary' so we have to make this configurable.\n// Everything else in the universe uses 'utf8', though.\nthis.defaultEncoding=options.defaultEncoding||'utf8';// the number of writers that are awaiting a drain event in .pipe()s\nthis.awaitDrain=0;// if true, a maybeReadMore has been scheduled\nthis.readingMore=false;this.decoder=null;this.encoding=null;if(options.encoding){if(!StringDecoder)StringDecoder=__nested_webpack_require_3238954__(103).StringDecoder;this.decoder=new StringDecoder(options.encoding);this.encoding=options.encoding;}}function Readable(options){Duplex=Duplex||__nested_webpack_require_3238954__(32);if(!(this instanceof Readable))return new Readable(options);this._readableState=new ReadableState(options,this);// legacy\nthis.readable=true;if(options){if(typeof options.read==='function')this._read=options.read;if(typeof options.destroy==='function')this._destroy=options.destroy;}Stream.call(this);}Object.defineProperty(Readable.prototype,'destroyed',{get:function(){if(this._readableState===undefined){return false;}return this._readableState.destroyed;},set:function(value){// we ignore the value if the stream\n// has not been initialized yet\nif(!this._readableState){return;}// backward compatibility, the user is explicitly\n// managing destroyed\nthis._readableState.destroyed=value;}});Readable.prototype.destroy=destroyImpl.destroy;Readable.prototype._undestroy=destroyImpl.undestroy;Readable.prototype._destroy=function(err,cb){this.push(null);cb(err);};// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push=function(chunk,encoding){var state=this._readableState;var skipChunkCheck;if(!state.objectMode){if(typeof chunk==='string'){encoding=encoding||state.defaultEncoding;if(encoding!==state.encoding){chunk=Buffer.from(chunk,encoding);encoding='';}skipChunkCheck=true;}}else{skipChunkCheck=true;}return readableAddChunk(this,chunk,encoding,false,skipChunkCheck);};// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift=function(chunk){return readableAddChunk(this,chunk,null,true,false);};function readableAddChunk(stream,chunk,encoding,addToFront,skipChunkCheck){var state=stream._readableState;if(chunk===null){state.reading=false;onEofChunk(stream,state);}else{var er;if(!skipChunkCheck)er=chunkInvalid(state,chunk);if(er){stream.emit('error',er);}else if(state.objectMode||chunk&&chunk.length>0){if(typeof chunk!=='string'&&!state.objectMode&&Object.getPrototypeOf(chunk)!==Buffer.prototype){chunk=_uint8ArrayToBuffer(chunk);}if(addToFront){if(state.endEmitted)stream.emit('error',new Error('stream.unshift() after end event'));else addChunk(stream,state,chunk,true);}else if(state.ended){stream.emit('error',new Error('stream.push() after EOF'));}else{state.reading=false;if(state.decoder&&!encoding){chunk=state.decoder.write(chunk);if(state.objectMode||chunk.length!==0)addChunk(stream,state,chunk,false);else maybeReadMore(stream,state);}else{addChunk(stream,state,chunk,false);}}}else if(!addToFront){state.reading=false;}}return needMoreData(state);}function addChunk(stream,state,chunk,addToFront){if(state.flowing&&state.length===0&&!state.sync){stream.emit('data',chunk);stream.read(0);}else{// update the buffer info.\nstate.length+=state.objectMode?1:chunk.length;if(addToFront)state.buffer.unshift(chunk);else state.buffer.push(chunk);if(state.needReadable)emitReadable(stream);}maybeReadMore(stream,state);}function chunkInvalid(state,chunk){var er;if(!_isUint8Array(chunk)&&typeof chunk!=='string'&&chunk!==undefined&&!state.objectMode){er=new TypeError('Invalid non-string/buffer chunk');}return er;}// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes.  This is to work around cases where hwm=0,\n// such as the repl.  Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state){return!state.ended&&(state.needReadable||state.length<state.highWaterMark||state.length===0);}Readable.prototype.isPaused=function(){return this._readableState.flowing===false;};// backwards compatibility.\nReadable.prototype.setEncoding=function(enc){if(!StringDecoder)StringDecoder=__nested_webpack_require_3238954__(103).StringDecoder;this._readableState.decoder=new StringDecoder(enc);this._readableState.encoding=enc;return this;};// Don't raise the hwm > 8MB\nvar MAX_HWM=0x800000;function computeNewHighWaterMark(n){if(n>=MAX_HWM){n=MAX_HWM;}else{// Get the next highest power of 2 to prevent increasing hwm excessively in\n// tiny amounts\nn--;n|=n>>>1;n|=n>>>2;n|=n>>>4;n|=n>>>8;n|=n>>>16;n++;}return n;}// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction howMuchToRead(n,state){if(n<=0||state.length===0&&state.ended)return 0;if(state.objectMode)return 1;if(n!==n){// Only flow one buffer at a time\nif(state.flowing&&state.length)return state.buffer.head.data.length;else return state.length;}// If we're asking for more than the current hwm, then raise the hwm.\nif(n>state.highWaterMark)state.highWaterMark=computeNewHighWaterMark(n);if(n<=state.length)return n;// Don't have enough\nif(!state.ended){state.needReadable=true;return 0;}return state.length;}// you can override either this method, or the async _read(n) below.\nReadable.prototype.read=function(n){debug('read',n);n=parseInt(n,10);var state=this._readableState;var nOrig=n;if(n!==0)state.emittedReadable=false;// if we're doing read(0) to trigger a readable event, but we\n// already have a bunch of data in the buffer, then just trigger\n// the 'readable' event and move on.\nif(n===0&&state.needReadable&&(state.length>=state.highWaterMark||state.ended)){debug('read: emitReadable',state.length,state.ended);if(state.length===0&&state.ended)endReadable(this);else emitReadable(this);return null;}n=howMuchToRead(n,state);// if we've ended, and we're now clear, then finish it up.\nif(n===0&&state.ended){if(state.length===0)endReadable(this);return null;}// All the actual chunk generation logic needs to be\n// *below* the call to _read.  The reason is that in certain\n// synthetic stream cases, such as passthrough streams, _read\n// may be a completely synchronous operation which may change\n// the state of the read buffer, providing enough data when\n// before there was *not* enough.\n//\n// So, the steps are:\n// 1. Figure out what the state of things will be after we do\n// a read from the buffer.\n//\n// 2. If that resulting state will trigger a _read, then call _read.\n// Note that this may be asynchronous, or synchronous.  Yes, it is\n// deeply ugly to write APIs this way, but that still doesn't mean\n// that the Readable class should behave improperly, as streams are\n// designed to be sync/async agnostic.\n// Take note if the _read call is sync or async (ie, if the read call\n// has returned yet), so that we know whether or not it's safe to emit\n// 'readable' etc.\n//\n// 3. Actually pull the requested chunks out of the buffer and return.\n// if we need a readable event, then we need to do some reading.\nvar doRead=state.needReadable;debug('need readable',doRead);// if we currently have less than the highWaterMark, then also read some\nif(state.length===0||state.length-n<state.highWaterMark){doRead=true;debug('length less than watermark',doRead);}// however, if we've ended, then there's no point, and if we're already\n// reading, then it's unnecessary.\nif(state.ended||state.reading){doRead=false;debug('reading or ended',doRead);}else if(doRead){debug('do read');state.reading=true;state.sync=true;// if the length is currently zero, then we *need* a readable event.\nif(state.length===0)state.needReadable=true;// call internal read method\nthis._read(state.highWaterMark);state.sync=false;// If _read pushed data synchronously, then `reading` will be false,\n// and we need to re-evaluate how much data we can return to the user.\nif(!state.reading)n=howMuchToRead(nOrig,state);}var ret;if(n>0)ret=fromList(n,state);else ret=null;if(ret===null){state.needReadable=true;n=0;}else{state.length-=n;}if(state.length===0){// If we have nothing in the buffer, then we want to know\n// as soon as we *do* get something into the buffer.\nif(!state.ended)state.needReadable=true;// If we tried to read() past the EOF, then emit end on the next tick.\nif(nOrig!==n&&state.ended)endReadable(this);}if(ret!==null)this.emit('data',ret);return ret;};function onEofChunk(stream,state){if(state.ended)return;if(state.decoder){var chunk=state.decoder.end();if(chunk&&chunk.length){state.buffer.push(chunk);state.length+=state.objectMode?1:chunk.length;}}state.ended=true;// emit 'readable' now to make sure it gets picked up.\nemitReadable(stream);}// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow.  This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream){var state=stream._readableState;state.needReadable=false;if(!state.emittedReadable){debug('emitReadable',state.flowing);state.emittedReadable=true;if(state.sync)pna.nextTick(emitReadable_,stream);else emitReadable_(stream);}}function emitReadable_(stream){debug('emit readable');stream.emit('readable');flow(stream);}// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data.  that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream,state){if(!state.readingMore){state.readingMore=true;pna.nextTick(maybeReadMore_,stream,state);}}function maybeReadMore_(stream,state){var len=state.length;while(!state.reading&&!state.flowing&&!state.ended&&state.length<state.highWaterMark){debug('maybeReadMore read 0');stream.read(0);if(len===state.length)// didn't get any data, stop spinning.\nbreak;else len=state.length;}state.readingMore=false;}// abstract method.  to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read=function(n){this.emit('error',new Error('_read() is not implemented'));};Readable.prototype.pipe=function(dest,pipeOpts){var src=this;var state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest);break;}state.pipesCount+=1;debug('pipe count=%d opts=%j',state.pipesCount,pipeOpts);var doEnd=(!pipeOpts||pipeOpts.end!==false)&&dest!==process.stdout&&dest!==process.stderr;var endFn=doEnd?onend:unpipe;if(state.endEmitted)pna.nextTick(endFn);else src.once('end',endFn);dest.on('unpipe',onunpipe);function onunpipe(readable,unpipeInfo){debug('onunpipe');if(readable===src){if(unpipeInfo&&unpipeInfo.hasUnpiped===false){unpipeInfo.hasUnpiped=true;cleanup();}}}function onend(){debug('onend');dest.end();}// when the dest drains, it reduces the awaitDrain counter\n// on the source.  This would be more elegant with a .once()\n// handler in flow(), but adding and removing repeatedly is\n// too slow.\nvar ondrain=pipeOnDrain(src);dest.on('drain',ondrain);var cleanedUp=false;function cleanup(){debug('cleanup');// cleanup event handlers once the pipe is broken\ndest.removeListener('close',onclose);dest.removeListener('finish',onfinish);dest.removeListener('drain',ondrain);dest.removeListener('error',onerror);dest.removeListener('unpipe',onunpipe);src.removeListener('end',onend);src.removeListener('end',unpipe);src.removeListener('data',ondata);cleanedUp=true;// if the reader is waiting for a drain event from this\n// specific writer, then it would cause it to never start\n// flowing again.\n// So, if this is awaiting a drain, then we just call it now.\n// If we don't know, then assume that we are waiting for one.\nif(state.awaitDrain&&(!dest._writableState||dest._writableState.needDrain))ondrain();}// If the user pushes more data while we're writing to dest then we'll end up\n// in ondata again. However, we only want to increase awaitDrain once because\n// dest will only emit one 'drain' event for the multiple writes.\n// => Introduce a guard on increasing awaitDrain.\nvar increasedAwaitDrain=false;src.on('data',ondata);function ondata(chunk){debug('ondata');increasedAwaitDrain=false;var ret=dest.write(chunk);if(false===ret&&!increasedAwaitDrain){// If the user unpiped during `dest.write()`, it is possible\n// to get stuck in a permanently paused state if that write\n// also returned false.\n// => Check whether `dest` is still a piping destination.\nif((state.pipesCount===1&&state.pipes===dest||state.pipesCount>1&&indexOf(state.pipes,dest)!==-1)&&!cleanedUp){debug('false write response, pause',src._readableState.awaitDrain);src._readableState.awaitDrain++;increasedAwaitDrain=true;}src.pause();}}// if the dest has an error, then stop piping into it.\n// however, don't suppress the throwing behavior for this.\nfunction onerror(er){debug('onerror',er);unpipe();dest.removeListener('error',onerror);if(EElistenerCount(dest,'error')===0)dest.emit('error',er);}// Make sure our error handler is attached before userland ones.\nprependListener(dest,'error',onerror);// Both close and finish should trigger unpipe, but only once.\nfunction onclose(){dest.removeListener('finish',onfinish);unpipe();}dest.once('close',onclose);function onfinish(){debug('onfinish');dest.removeListener('close',onclose);unpipe();}dest.once('finish',onfinish);function unpipe(){debug('unpipe');src.unpipe(dest);}// tell the dest that it's being piped to\ndest.emit('pipe',src);// start the flow if it hasn't been started already.\nif(!state.flowing){debug('pipe resume');src.resume();}return dest;};function pipeOnDrain(src){return function(){var state=src._readableState;debug('pipeOnDrain',state.awaitDrain);if(state.awaitDrain)state.awaitDrain--;if(state.awaitDrain===0&&EElistenerCount(src,'data')){state.flowing=true;flow(src);}};}Readable.prototype.unpipe=function(dest){var state=this._readableState;var unpipeInfo={hasUnpiped:false};// if we're not piping anywhere, then do nothing.\nif(state.pipesCount===0)return this;// just one destination.  most common case.\nif(state.pipesCount===1){// passed in one, but it's not the right one.\nif(dest&&dest!==state.pipes)return this;if(!dest)dest=state.pipes;// got a match.\nstate.pipes=null;state.pipesCount=0;state.flowing=false;if(dest)dest.emit('unpipe',this,unpipeInfo);return this;}// slow case. multiple pipe destinations.\nif(!dest){// remove all.\nvar dests=state.pipes;var len=state.pipesCount;state.pipes=null;state.pipesCount=0;state.flowing=false;for(var i=0;i<len;i++){dests[i].emit('unpipe',this,unpipeInfo);}return this;}// try to find the right one.\nvar index=indexOf(state.pipes,dest);if(index===-1)return this;state.pipes.splice(index,1);state.pipesCount-=1;if(state.pipesCount===1)state.pipes=state.pipes[0];dest.emit('unpipe',this,unpipeInfo);return this;};// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on=function(ev,fn){var res=Stream.prototype.on.call(this,ev,fn);if(ev==='data'){// Start flowing on next tick if stream isn't explicitly paused\nif(this._readableState.flowing!==false)this.resume();}else if(ev==='readable'){var state=this._readableState;if(!state.endEmitted&&!state.readableListening){state.readableListening=state.needReadable=true;state.emittedReadable=false;if(!state.reading){pna.nextTick(nReadingNextTick,this);}else if(state.length){emitReadable(this);}}}return res;};Readable.prototype.addListener=Readable.prototype.on;function nReadingNextTick(self){debug('readable nexttick read 0');self.read(0);}// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume=function(){var state=this._readableState;if(!state.flowing){debug('resume');state.flowing=true;resume(this,state);}return this;};function resume(stream,state){if(!state.resumeScheduled){state.resumeScheduled=true;pna.nextTick(resume_,stream,state);}}function resume_(stream,state){if(!state.reading){debug('resume read 0');stream.read(0);}state.resumeScheduled=false;state.awaitDrain=0;stream.emit('resume');flow(stream);if(state.flowing&&!state.reading)stream.read(0);}Readable.prototype.pause=function(){debug('call pause flowing=%j',this._readableState.flowing);if(false!==this._readableState.flowing){debug('pause');this._readableState.flowing=false;this.emit('pause');}return this;};function flow(stream){var state=stream._readableState;debug('flow',state.flowing);while(state.flowing&&stream.read()!==null){}}// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap=function(stream){var _this=this;var state=this._readableState;var paused=false;stream.on('end',function(){debug('wrapped end');if(state.decoder&&!state.ended){var chunk=state.decoder.end();if(chunk&&chunk.length)_this.push(chunk);}_this.push(null);});stream.on('data',function(chunk){debug('wrapped data');if(state.decoder)chunk=state.decoder.write(chunk);// don't skip over falsy values in objectMode\nif(state.objectMode&&(chunk===null||chunk===undefined))return;else if(!state.objectMode&&(!chunk||!chunk.length))return;var ret=_this.push(chunk);if(!ret){paused=true;stream.pause();}});// proxy all the other methods.\n// important when wrapping filters and duplexes.\nfor(var i in stream){if(this[i]===undefined&&typeof stream[i]==='function'){this[i]=function(method){return function(){return stream[method].apply(stream,arguments);};}(i);}}// proxy certain important events.\nfor(var n=0;n<kProxyEvents.length;n++){stream.on(kProxyEvents[n],this.emit.bind(this,kProxyEvents[n]));}// when we try to consume some more bytes, simply unpause the\n// underlying stream.\nthis._read=function(n){debug('wrapped _read',n);if(paused){paused=false;stream.resume();}};return this;};Object.defineProperty(Readable.prototype,'readableHighWaterMark',{// making it explicit this property is not enumerable\n// because otherwise some prototype manipulation in\n// userland will fail\nenumerable:false,get:function(){return this._readableState.highWaterMark;}});// exposed for testing purposes only.\nReadable._fromList=fromList;// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromList(n,state){// nothing buffered\nif(state.length===0)return null;var ret;if(state.objectMode)ret=state.buffer.shift();else if(!n||n>=state.length){// read it all, truncate the list\nif(state.decoder)ret=state.buffer.join('');else if(state.buffer.length===1)ret=state.buffer.head.data;else ret=state.buffer.concat(state.length);state.buffer.clear();}else{// read part of list\nret=fromListPartial(n,state.buffer,state.decoder);}return ret;}// Extracts only enough buffered data to satisfy the amount requested.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromListPartial(n,list,hasStrings){var ret;if(n<list.head.data.length){// slice is the same for buffers and strings\nret=list.head.data.slice(0,n);list.head.data=list.head.data.slice(n);}else if(n===list.head.data.length){// first chunk is a perfect match\nret=list.shift();}else{// result spans more than one buffer\nret=hasStrings?copyFromBufferString(n,list):copyFromBuffer(n,list);}return ret;}// Copies a specified amount of characters from the list of buffered data\n// chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBufferString(n,list){var p=list.head;var c=1;var ret=p.data;n-=ret.length;while(p=p.next){var str=p.data;var nb=n>str.length?str.length:n;if(nb===str.length)ret+=str;else ret+=str.slice(0,n);n-=nb;if(n===0){if(nb===str.length){++c;if(p.next)list.head=p.next;else list.head=list.tail=null;}else{list.head=p;p.data=str.slice(nb);}break;}++c;}list.length-=c;return ret;}// Copies a specified amount of bytes from the list of buffered data chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBuffer(n,list){var ret=Buffer.allocUnsafe(n);var p=list.head;var c=1;p.data.copy(ret);n-=p.data.length;while(p=p.next){var buf=p.data;var nb=n>buf.length?buf.length:n;buf.copy(ret,ret.length-n,0,nb);n-=nb;if(n===0){if(nb===buf.length){++c;if(p.next)list.head=p.next;else list.head=list.tail=null;}else{list.head=p;p.data=buf.slice(nb);}break;}++c;}list.length-=c;return ret;}function endReadable(stream){var state=stream._readableState;// If we get here before consuming all the bytes, then that is a\n// bug in node.  Should never happen.\nif(state.length>0)throw new Error('\"endReadable()\" called on non-empty stream');if(!state.endEmitted){state.ended=true;pna.nextTick(endReadableNT,state,stream);}}function endReadableNT(state,stream){// Check that we didn't get one last unshift.\nif(!state.endEmitted&&state.length===0){state.endEmitted=true;stream.readable=false;stream.emit('end');}}function indexOf(xs,x){for(var i=0,l=xs.length;i<l;i++){if(xs[i]===x)return i;}return-1;}/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3238954__(22),__nested_webpack_require_3238954__(25));/***/},/* 167 */ /***/function(module,exports,__nested_webpack_require_3266092__){module.exports=__nested_webpack_require_3266092__(68).EventEmitter;/***/},/* 168 */ /***/function(module,exports,__nested_webpack_require_3266211__){\"use strict\";/*<replacement>*/var pna=__nested_webpack_require_3266211__(69);/*</replacement>*/ // undocumented cb() API, needed for core, not for public API\nfunction destroy(err,cb){var _this=this;var readableDestroyed=this._readableState&&this._readableState.destroyed;var writableDestroyed=this._writableState&&this._writableState.destroyed;if(readableDestroyed||writableDestroyed){if(cb){cb(err);}else if(err&&(!this._writableState||!this._writableState.errorEmitted)){pna.nextTick(emitErrorNT,this,err);}return this;}// we set destroyed to true before firing error callbacks in order\n// to make it re-entrance safe in case destroy() is called within callbacks\nif(this._readableState){this._readableState.destroyed=true;}// if this is a duplex stream mark the writable part as destroyed as well\nif(this._writableState){this._writableState.destroyed=true;}this._destroy(err||null,function(err){if(!cb&&err){pna.nextTick(emitErrorNT,_this,err);if(_this._writableState){_this._writableState.errorEmitted=true;}}else if(cb){cb(err);}});return this;}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false;}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finished=false;this._writableState.errorEmitted=false;}}function emitErrorNT(self,err){self.emit('error',err);}module.exports={destroy:destroy,undestroy:undestroy};/***/},/* 169 */ /***/function(module,exports,__nested_webpack_require_3267806__){\"use strict\";// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a transform stream is a readable/writable stream where you do\n// something with the data.  Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored.  (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation.  For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes.  When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up.  When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer.  When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks.  If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk.  However,\n// a pathological inflate type of transform can cause excessive buffering\n// here.  For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output.  Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output.  In this case, you could write a very small\n// amount of input, and end up with a very large amount of output.  In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform.  A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\nmodule.exports=Transform;var Duplex=__nested_webpack_require_3267806__(32);/*<replacement>*/var util=__nested_webpack_require_3267806__(56);util.inherits=__nested_webpack_require_3267806__(46);/*</replacement>*/util.inherits(Transform,Duplex);function afterTransform(er,data){var ts=this._transformState;ts.transforming=false;var cb=ts.writecb;if(!cb){return this.emit('error',new Error('write callback called multiple times'));}ts.writechunk=null;ts.writecb=null;if(data!=null)// single equals check for both `null` and `undefined`\nthis.push(data);cb(er);var rs=this._readableState;rs.reading=false;if(rs.needReadable||rs.length<rs.highWaterMark){this._read(rs.highWaterMark);}}function Transform(options){if(!(this instanceof Transform))return new Transform(options);Duplex.call(this,options);this._transformState={afterTransform:afterTransform.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};// start out asking for a readable event once data is transformed.\nthis._readableState.needReadable=true;// we have implemented the _read method, and done the other things\n// that Readable wants before the first _read call, so unset the\n// sync guard flag.\nthis._readableState.sync=false;if(options){if(typeof options.transform==='function')this._transform=options.transform;if(typeof options.flush==='function')this._flush=options.flush;}// When the writable side finishes, then flush out anything remaining.\nthis.on('prefinish',prefinish);}function prefinish(){var _this=this;if(typeof this._flush==='function'){this._flush(function(er,data){done(_this,er,data);});}else{done(this,null,null);}}Transform.prototype.push=function(chunk,encoding){this._transformState.needTransform=false;return Duplex.prototype.push.call(this,chunk,encoding);};// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side.  You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk.  If you pass\n// an error, then that'll put the hurt on the whole operation.  If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform=function(chunk,encoding,cb){throw new Error('_transform() is not implemented');};Transform.prototype._write=function(chunk,encoding,cb){var ts=this._transformState;ts.writecb=cb;ts.writechunk=chunk;ts.writeencoding=encoding;if(!ts.transforming){var rs=this._readableState;if(ts.needTransform||rs.needReadable||rs.length<rs.highWaterMark)this._read(rs.highWaterMark);}};// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read=function(n){var ts=this._transformState;if(ts.writechunk!==null&&ts.writecb&&!ts.transforming){ts.transforming=true;this._transform(ts.writechunk,ts.writeencoding,ts.afterTransform);}else{// mark that we need a transform, so that any data that comes in\n// will get processed, now that we've asked for it.\nts.needTransform=true;}};Transform.prototype._destroy=function(err,cb){var _this2=this;Duplex.prototype._destroy.call(this,err,function(err2){cb(err2);_this2.emit('close');});};function done(stream,er,data){if(er)return stream.emit('error',er);if(data!=null)// single equals check for both `null` and `undefined`\nstream.push(data);// if there's nothing in the write buffer, then that means\n// that nothing more will ever be provided\nif(stream._writableState.length)throw new Error('Calling transform done when ws.length != 0');if(stream._transformState.transforming)throw new Error('Calling transform done when still transforming');return stream.push(null);}/***/},/* 170 */ /***/function(module,exports,__nested_webpack_require_3275089__){\"use strict\";/* WEBPACK VAR INJECTION */(function(process){var Buffer=__nested_webpack_require_3275089__(4).Buffer;var Transform=__nested_webpack_require_3275089__(100).Transform;var binding=__nested_webpack_require_3275089__(265);var util=__nested_webpack_require_3275089__(104);var assert=__nested_webpack_require_3275089__(171).ok;var kMaxLength=__nested_webpack_require_3275089__(4).kMaxLength;var kRangeErrorMessage='Cannot create final Buffer. It would be larger '+'than 0x'+kMaxLength.toString(16)+' bytes';// zlib doesn't provide these, so kludge them in following the same\n// const naming scheme zlib uses.\nbinding.Z_MIN_WINDOWBITS=8;binding.Z_MAX_WINDOWBITS=15;binding.Z_DEFAULT_WINDOWBITS=15;// fewer than 64 bytes per chunk is stupid.\n// technically it could work with as few as 8, but even 64 bytes\n// is absurdly low.  Usually a MB or more is best.\nbinding.Z_MIN_CHUNK=64;binding.Z_MAX_CHUNK=Infinity;binding.Z_DEFAULT_CHUNK=16*1024;binding.Z_MIN_MEMLEVEL=1;binding.Z_MAX_MEMLEVEL=9;binding.Z_DEFAULT_MEMLEVEL=8;binding.Z_MIN_LEVEL=-1;binding.Z_MAX_LEVEL=9;binding.Z_DEFAULT_LEVEL=binding.Z_DEFAULT_COMPRESSION;// expose all the zlib constants\nvar bkeys=Object.keys(binding);for(var bk=0;bk<bkeys.length;bk++){var bkey=bkeys[bk];if(bkey.match(/^Z/)){Object.defineProperty(exports,bkey,{enumerable:true,value:binding[bkey],writable:false});}}// translation table for return codes.\nvar codes={Z_OK:binding.Z_OK,Z_STREAM_END:binding.Z_STREAM_END,Z_NEED_DICT:binding.Z_NEED_DICT,Z_ERRNO:binding.Z_ERRNO,Z_STREAM_ERROR:binding.Z_STREAM_ERROR,Z_DATA_ERROR:binding.Z_DATA_ERROR,Z_MEM_ERROR:binding.Z_MEM_ERROR,Z_BUF_ERROR:binding.Z_BUF_ERROR,Z_VERSION_ERROR:binding.Z_VERSION_ERROR};var ckeys=Object.keys(codes);for(var ck=0;ck<ckeys.length;ck++){var ckey=ckeys[ck];codes[codes[ckey]]=ckey;}Object.defineProperty(exports,'codes',{enumerable:true,value:Object.freeze(codes),writable:false});exports.Deflate=Deflate;exports.Inflate=Inflate;exports.Gzip=Gzip;exports.Gunzip=Gunzip;exports.DeflateRaw=DeflateRaw;exports.InflateRaw=InflateRaw;exports.Unzip=Unzip;exports.createDeflate=function(o){return new Deflate(o);};exports.createInflate=function(o){return new Inflate(o);};exports.createDeflateRaw=function(o){return new DeflateRaw(o);};exports.createInflateRaw=function(o){return new InflateRaw(o);};exports.createGzip=function(o){return new Gzip(o);};exports.createGunzip=function(o){return new Gunzip(o);};exports.createUnzip=function(o){return new Unzip(o);};// Convenience methods.\n// compress/decompress a string or buffer in one step.\nexports.deflate=function(buffer,opts,callback){if(typeof opts==='function'){callback=opts;opts={};}return zlibBuffer(new Deflate(opts),buffer,callback);};exports.deflateSync=function(buffer,opts){return zlibBufferSync(new Deflate(opts),buffer);};exports.gzip=function(buffer,opts,callback){if(typeof opts==='function'){callback=opts;opts={};}return zlibBuffer(new Gzip(opts),buffer,callback);};exports.gzipSync=function(buffer,opts){return zlibBufferSync(new Gzip(opts),buffer);};exports.deflateRaw=function(buffer,opts,callback){if(typeof opts==='function'){callback=opts;opts={};}return zlibBuffer(new DeflateRaw(opts),buffer,callback);};exports.deflateRawSync=function(buffer,opts){return zlibBufferSync(new DeflateRaw(opts),buffer);};exports.unzip=function(buffer,opts,callback){if(typeof opts==='function'){callback=opts;opts={};}return zlibBuffer(new Unzip(opts),buffer,callback);};exports.unzipSync=function(buffer,opts){return zlibBufferSync(new Unzip(opts),buffer);};exports.inflate=function(buffer,opts,callback){if(typeof opts==='function'){callback=opts;opts={};}return zlibBuffer(new Inflate(opts),buffer,callback);};exports.inflateSync=function(buffer,opts){return zlibBufferSync(new Inflate(opts),buffer);};exports.gunzip=function(buffer,opts,callback){if(typeof opts==='function'){callback=opts;opts={};}return zlibBuffer(new Gunzip(opts),buffer,callback);};exports.gunzipSync=function(buffer,opts){return zlibBufferSync(new Gunzip(opts),buffer);};exports.inflateRaw=function(buffer,opts,callback){if(typeof opts==='function'){callback=opts;opts={};}return zlibBuffer(new InflateRaw(opts),buffer,callback);};exports.inflateRawSync=function(buffer,opts){return zlibBufferSync(new InflateRaw(opts),buffer);};function zlibBuffer(engine,buffer,callback){var buffers=[];var nread=0;engine.on('error',onError);engine.on('end',onEnd);engine.end(buffer);flow();function flow(){var chunk;while(null!==(chunk=engine.read())){buffers.push(chunk);nread+=chunk.length;}engine.once('readable',flow);}function onError(err){engine.removeListener('end',onEnd);engine.removeListener('readable',flow);callback(err);}function onEnd(){var buf;var err=null;if(nread>=kMaxLength){err=new RangeError(kRangeErrorMessage);}else{buf=Buffer.concat(buffers,nread);}buffers=[];engine.close();callback(err,buf);}}function zlibBufferSync(engine,buffer){if(typeof buffer==='string')buffer=Buffer.from(buffer);if(!Buffer.isBuffer(buffer))throw new TypeError('Not a string or buffer');var flushFlag=engine._finishFlushFlag;return engine._processChunk(buffer,flushFlag);}// generic zlib\n// minimal 2-byte header\nfunction Deflate(opts){if(!(this instanceof Deflate))return new Deflate(opts);Zlib.call(this,opts,binding.DEFLATE);}function Inflate(opts){if(!(this instanceof Inflate))return new Inflate(opts);Zlib.call(this,opts,binding.INFLATE);}// gzip - bigger header, same deflate compression\nfunction Gzip(opts){if(!(this instanceof Gzip))return new Gzip(opts);Zlib.call(this,opts,binding.GZIP);}function Gunzip(opts){if(!(this instanceof Gunzip))return new Gunzip(opts);Zlib.call(this,opts,binding.GUNZIP);}// raw - no header\nfunction DeflateRaw(opts){if(!(this instanceof DeflateRaw))return new DeflateRaw(opts);Zlib.call(this,opts,binding.DEFLATERAW);}function InflateRaw(opts){if(!(this instanceof InflateRaw))return new InflateRaw(opts);Zlib.call(this,opts,binding.INFLATERAW);}// auto-detect header.\nfunction Unzip(opts){if(!(this instanceof Unzip))return new Unzip(opts);Zlib.call(this,opts,binding.UNZIP);}function isValidFlushFlag(flag){return flag===binding.Z_NO_FLUSH||flag===binding.Z_PARTIAL_FLUSH||flag===binding.Z_SYNC_FLUSH||flag===binding.Z_FULL_FLUSH||flag===binding.Z_FINISH||flag===binding.Z_BLOCK;}// the Zlib class they all inherit from\n// This thing manages the queue of requests, and returns\n// true or false if there is anything in the queue when\n// you call the .write() method.\nfunction Zlib(opts,mode){var _this=this;this._opts=opts=opts||{};this._chunkSize=opts.chunkSize||exports.Z_DEFAULT_CHUNK;Transform.call(this,opts);if(opts.flush&&!isValidFlushFlag(opts.flush)){throw new Error('Invalid flush flag: '+opts.flush);}if(opts.finishFlush&&!isValidFlushFlag(opts.finishFlush)){throw new Error('Invalid flush flag: '+opts.finishFlush);}this._flushFlag=opts.flush||binding.Z_NO_FLUSH;this._finishFlushFlag=typeof opts.finishFlush!=='undefined'?opts.finishFlush:binding.Z_FINISH;if(opts.chunkSize){if(opts.chunkSize<exports.Z_MIN_CHUNK||opts.chunkSize>exports.Z_MAX_CHUNK){throw new Error('Invalid chunk size: '+opts.chunkSize);}}if(opts.windowBits){if(opts.windowBits<exports.Z_MIN_WINDOWBITS||opts.windowBits>exports.Z_MAX_WINDOWBITS){throw new Error('Invalid windowBits: '+opts.windowBits);}}if(opts.level){if(opts.level<exports.Z_MIN_LEVEL||opts.level>exports.Z_MAX_LEVEL){throw new Error('Invalid compression level: '+opts.level);}}if(opts.memLevel){if(opts.memLevel<exports.Z_MIN_MEMLEVEL||opts.memLevel>exports.Z_MAX_MEMLEVEL){throw new Error('Invalid memLevel: '+opts.memLevel);}}if(opts.strategy){if(opts.strategy!=exports.Z_FILTERED&&opts.strategy!=exports.Z_HUFFMAN_ONLY&&opts.strategy!=exports.Z_RLE&&opts.strategy!=exports.Z_FIXED&&opts.strategy!=exports.Z_DEFAULT_STRATEGY){throw new Error('Invalid strategy: '+opts.strategy);}}if(opts.dictionary){if(!Buffer.isBuffer(opts.dictionary)){throw new Error('Invalid dictionary: it should be a Buffer instance');}}this._handle=new binding.Zlib(mode);var self=this;this._hadError=false;this._handle.onerror=function(message,errno){// there is no way to cleanly recover.\n// continuing only obscures problems.\n_close(self);self._hadError=true;var error=new Error(message);error.errno=errno;error.code=exports.codes[errno];self.emit('error',error);};var level=exports.Z_DEFAULT_COMPRESSION;if(typeof opts.level==='number')level=opts.level;var strategy=exports.Z_DEFAULT_STRATEGY;if(typeof opts.strategy==='number')strategy=opts.strategy;this._handle.init(opts.windowBits||exports.Z_DEFAULT_WINDOWBITS,level,opts.memLevel||exports.Z_DEFAULT_MEMLEVEL,strategy,opts.dictionary);this._buffer=Buffer.allocUnsafe(this._chunkSize);this._offset=0;this._level=level;this._strategy=strategy;this.once('end',this.close);Object.defineProperty(this,'_closed',{get:function(){return!_this._handle;},configurable:true,enumerable:true});}util.inherits(Zlib,Transform);Zlib.prototype.params=function(level,strategy,callback){if(level<exports.Z_MIN_LEVEL||level>exports.Z_MAX_LEVEL){throw new RangeError('Invalid compression level: '+level);}if(strategy!=exports.Z_FILTERED&&strategy!=exports.Z_HUFFMAN_ONLY&&strategy!=exports.Z_RLE&&strategy!=exports.Z_FIXED&&strategy!=exports.Z_DEFAULT_STRATEGY){throw new TypeError('Invalid strategy: '+strategy);}if(this._level!==level||this._strategy!==strategy){var self=this;this.flush(binding.Z_SYNC_FLUSH,function(){assert(self._handle,'zlib binding closed');self._handle.params(level,strategy);if(!self._hadError){self._level=level;self._strategy=strategy;if(callback)callback();}});}else{process.nextTick(callback);}};Zlib.prototype.reset=function(){assert(this._handle,'zlib binding closed');return this._handle.reset();};// This is the _flush function called by the transform class,\n// internally, when the last chunk has been written.\nZlib.prototype._flush=function(callback){this._transform(Buffer.alloc(0),'',callback);};Zlib.prototype.flush=function(kind,callback){var _this2=this;var ws=this._writableState;if(typeof kind==='function'||kind===undefined&&!callback){callback=kind;kind=binding.Z_FULL_FLUSH;}if(ws.ended){if(callback)process.nextTick(callback);}else if(ws.ending){if(callback)this.once('end',callback);}else if(ws.needDrain){if(callback){this.once('drain',function(){return _this2.flush(kind,callback);});}}else{this._flushFlag=kind;this.write(Buffer.alloc(0),'',callback);}};Zlib.prototype.close=function(callback){_close(this,callback);process.nextTick(emitCloseNT,this);};function _close(engine,callback){if(callback)process.nextTick(callback);// Caller may invoke .close after a zlib error (which will null _handle).\nif(!engine._handle)return;engine._handle.close();engine._handle=null;}function emitCloseNT(self){self.emit('close');}Zlib.prototype._transform=function(chunk,encoding,cb){var flushFlag;var ws=this._writableState;var ending=ws.ending||ws.ended;var last=ending&&(!chunk||ws.length===chunk.length);if(chunk!==null&&!Buffer.isBuffer(chunk))return cb(new Error('invalid input'));if(!this._handle)return cb(new Error('zlib binding closed'));// If it's the last chunk, or a final flush, we use the Z_FINISH flush flag\n// (or whatever flag was provided using opts.finishFlush).\n// If it's explicitly flushing at some other time, then we use\n// Z_FULL_FLUSH. Otherwise, use Z_NO_FLUSH for maximum compression\n// goodness.\nif(last)flushFlag=this._finishFlushFlag;else{flushFlag=this._flushFlag;// once we've flushed the last of the queue, stop flushing and\n// go back to the normal behavior.\nif(chunk.length>=ws.length){this._flushFlag=this._opts.flush||binding.Z_NO_FLUSH;}}this._processChunk(chunk,flushFlag,cb);};Zlib.prototype._processChunk=function(chunk,flushFlag,cb){var availInBefore=chunk&&chunk.length;var availOutBefore=this._chunkSize-this._offset;var inOff=0;var self=this;var async=typeof cb==='function';if(!async){var buffers=[];var nread=0;var error;this.on('error',function(er){error=er;});assert(this._handle,'zlib binding closed');do{var res=this._handle.writeSync(flushFlag,chunk,// in\ninOff,// in_off\navailInBefore,// in_len\nthis._buffer,// out\nthis._offset,//out_off\navailOutBefore);// out_len\n}while(!this._hadError&&callback(res[0],res[1]));if(this._hadError){throw error;}if(nread>=kMaxLength){_close(this);throw new RangeError(kRangeErrorMessage);}var buf=Buffer.concat(buffers,nread);_close(this);return buf;}assert(this._handle,'zlib binding closed');var req=this._handle.write(flushFlag,chunk,// in\ninOff,// in_off\navailInBefore,// in_len\nthis._buffer,// out\nthis._offset,//out_off\navailOutBefore);// out_len\nreq.buffer=chunk;req.callback=callback;function callback(availInAfter,availOutAfter){// When the callback is used in an async write, the callback's\n// context is the `req` object that was created. The req object\n// is === this._handle, and that's why it's important to null\n// out the values after they are done being used. `this._handle`\n// can stay in memory longer than the callback and buffer are needed.\nif(this){this.buffer=null;this.callback=null;}if(self._hadError)return;var have=availOutBefore-availOutAfter;assert(have>=0,'have should not go down');if(have>0){var out=self._buffer.slice(self._offset,self._offset+have);self._offset+=have;// serve some output to the consumer.\nif(async){self.push(out);}else{buffers.push(out);nread+=out.length;}}// exhausted the output buffer, or used all the input create a new one.\nif(availOutAfter===0||self._offset>=self._chunkSize){availOutBefore=self._chunkSize;self._offset=0;self._buffer=Buffer.allocUnsafe(self._chunkSize);}if(availOutAfter===0){// Not actually done.  Need to reprocess.\n// Also, update the availInBefore to the availInAfter value,\n// so that if we have to hit it a third (fourth, etc.) time,\n// it'll have the correct byte counts.\ninOff+=availInBefore-availInAfter;availInBefore=availInAfter;if(!async)return true;var newReq=self._handle.write(flushFlag,chunk,inOff,availInBefore,self._buffer,self._offset,self._chunkSize);newReq.callback=callback;// this same function\nnewReq.buffer=chunk;return;}if(!async)return false;// finished with the chunk.\ncb();}};util.inherits(Deflate,Zlib);util.inherits(Inflate,Zlib);util.inherits(Gzip,Zlib);util.inherits(Gunzip,Zlib);util.inherits(DeflateRaw,Zlib);util.inherits(InflateRaw,Zlib);util.inherits(Unzip,Zlib);/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3275089__(25));/***/},/* 171 */ /***/function(module,exports,__nested_webpack_require_3289367__){\"use strict\";/* WEBPACK VAR INJECTION */(function(global){var objectAssign=__nested_webpack_require_3289367__(266);// compare and isBuffer taken from https://github.com/feross/buffer/blob/680e9e5e488f22aac27599a57dc844a6315928dd/index.js\n// original notice:\n/*!\r\n     * The buffer module from node.js, for the browser.\r\n     *\r\n     * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>\r\n     * @license  MIT\r\n     */function compare(a,b){if(a===b){return 0;}var x=a.length;var y=b.length;for(var i=0,len=Math.min(x,y);i<len;++i){if(a[i]!==b[i]){x=a[i];y=b[i];break;}}if(x<y){return-1;}if(y<x){return 1;}return 0;}function isBuffer(b){if(global.Buffer&&typeof global.Buffer.isBuffer==='function'){return global.Buffer.isBuffer(b);}return!!(b!=null&&b._isBuffer);}// based on node assert, original notice:\n// NB: The URL to the CommonJS spec is kept just for tradition.\n//     node-assert has evolved a lot since then, both in API and behavior.\n// http://wiki.commonjs.org/wiki/Unit_Testing/1.0\n//\n// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!\n//\n// Originally from narwhal.js (http://narwhaljs.org)\n// Copyright (c) 2009 Thomas Robinson <280north.com>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the 'Software'), to\n// deal in the Software without restriction, including without limitation the\n// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n// sell copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\nvar util=__nested_webpack_require_3289367__(104);var hasOwn=Object.prototype.hasOwnProperty;var pSlice=Array.prototype.slice;var functionsHaveNames=function(){return function foo(){}.name==='foo';}();function pToString(obj){return Object.prototype.toString.call(obj);}function isView(arrbuf){if(isBuffer(arrbuf)){return false;}if(typeof global.ArrayBuffer!=='function'){return false;}if(typeof ArrayBuffer.isView==='function'){return ArrayBuffer.isView(arrbuf);}if(!arrbuf){return false;}if(arrbuf instanceof DataView){return true;}if(arrbuf.buffer&&arrbuf.buffer instanceof ArrayBuffer){return true;}return false;}// 1. The assert module provides functions that throw\n// AssertionError's when particular conditions are not met. The\n// assert module must conform to the following interface.\nvar assert=module.exports=ok;// 2. The AssertionError is defined in assert.\n// new assert.AssertionError({ message: message,\n//                             actual: actual,\n//                             expected: expected })\nvar regex=/\\s*function\\s+([^\\(\\s]*)\\s*/;// based on https://github.com/ljharb/function.prototype.name/blob/adeeeec8bfcc6068b187d7d9fb3d5bb1d3a30899/implementation.js\nfunction getName(func){if(!util.isFunction(func)){return;}if(functionsHaveNames){return func.name;}var str=func.toString();var match=str.match(regex);return match&&match[1];}assert.AssertionError=function AssertionError(options){this.name='AssertionError';this.actual=options.actual;this.expected=options.expected;this.operator=options.operator;if(options.message){this.message=options.message;this.generatedMessage=false;}else{this.message=getMessage(this);this.generatedMessage=true;}var stackStartFunction=options.stackStartFunction||fail;if(Error.captureStackTrace){Error.captureStackTrace(this,stackStartFunction);}else{// non v8 browsers so we can have a stacktrace\nvar err=new Error();if(err.stack){var out=err.stack;// try to strip useless frames\nvar fn_name=getName(stackStartFunction);var idx=out.indexOf('\\n'+fn_name);if(idx>=0){// once we have located the function frame\n// we need to strip out everything before it (and its line)\nvar next_line=out.indexOf('\\n',idx+1);out=out.substring(next_line+1);}this.stack=out;}}};// assert.AssertionError instanceof Error\nutil.inherits(assert.AssertionError,Error);function truncate(s,n){if(typeof s==='string'){return s.length<n?s:s.slice(0,n);}else{return s;}}function inspect(something){if(functionsHaveNames||!util.isFunction(something)){return util.inspect(something);}var rawname=getName(something);var name=rawname?': '+rawname:'';return'[Function'+name+']';}function getMessage(self){return truncate(inspect(self.actual),128)+' '+self.operator+' '+truncate(inspect(self.expected),128);}// At present only the three keys mentioned above are used and\n// understood by the spec. Implementations or sub modules can pass\n// other keys to the AssertionError's constructor - they will be\n// ignored.\n// 3. All of the following functions must throw an AssertionError\n// when a corresponding condition is not met, with a message that\n// may be undefined if not provided.  All assertion methods provide\n// both the actual and expected values to the assertion error for\n// display purposes.\nfunction fail(actual,expected,message,operator,stackStartFunction){throw new assert.AssertionError({message:message,actual:actual,expected:expected,operator:operator,stackStartFunction:stackStartFunction});}// EXTENSION! allows for well behaved errors defined elsewhere.\nassert.fail=fail;// 4. Pure assertion tests whether a value is truthy, as determined\n// by !!guard.\n// assert.ok(guard, message_opt);\n// This statement is equivalent to assert.equal(true, !!guard,\n// message_opt);. To test strictly for the value true, use\n// assert.strictEqual(true, guard, message_opt);.\nfunction ok(value,message){if(!value)fail(value,true,message,'==',assert.ok);}assert.ok=ok;// 5. The equality assertion tests shallow, coercive equality with\n// ==.\n// assert.equal(actual, expected, message_opt);\nassert.equal=function equal(actual,expected,message){if(actual!=expected)fail(actual,expected,message,'==',assert.equal);};// 6. The non-equality assertion tests for whether two objects are not equal\n// with != assert.notEqual(actual, expected, message_opt);\nassert.notEqual=function notEqual(actual,expected,message){if(actual==expected){fail(actual,expected,message,'!=',assert.notEqual);}};// 7. The equivalence assertion tests a deep equality relation.\n// assert.deepEqual(actual, expected, message_opt);\nassert.deepEqual=function deepEqual(actual,expected,message){if(!_deepEqual(actual,expected,false)){fail(actual,expected,message,'deepEqual',assert.deepEqual);}};assert.deepStrictEqual=function deepStrictEqual(actual,expected,message){if(!_deepEqual(actual,expected,true)){fail(actual,expected,message,'deepStrictEqual',assert.deepStrictEqual);}};function _deepEqual(actual,expected,strict,memos){// 7.1. All identical values are equivalent, as determined by ===.\nif(actual===expected){return true;}else if(isBuffer(actual)&&isBuffer(expected)){return compare(actual,expected)===0;// 7.2. If the expected value is a Date object, the actual value is\n// equivalent if it is also a Date object that refers to the same time.\n}else if(util.isDate(actual)&&util.isDate(expected)){return actual.getTime()===expected.getTime();// 7.3 If the expected value is a RegExp object, the actual value is\n// equivalent if it is also a RegExp object with the same source and\n// properties (`global`, `multiline`, `lastIndex`, `ignoreCase`).\n}else if(util.isRegExp(actual)&&util.isRegExp(expected)){return actual.source===expected.source&&actual.global===expected.global&&actual.multiline===expected.multiline&&actual.lastIndex===expected.lastIndex&&actual.ignoreCase===expected.ignoreCase;// 7.4. Other pairs that do not both pass typeof value == 'object',\n// equivalence is determined by ==.\n}else if((actual===null||typeof actual!=='object')&&(expected===null||typeof expected!=='object')){return strict?actual===expected:actual==expected;// If both values are instances of typed arrays, wrap their underlying\n// ArrayBuffers in a Buffer each to increase performance\n// This optimization requires the arrays to have the same type as checked by\n// Object.prototype.toString (aka pToString). Never perform binary\n// comparisons for Float*Arrays, though, since e.g. +0 === -0 but their\n// bit patterns are not identical.\n}else if(isView(actual)&&isView(expected)&&pToString(actual)===pToString(expected)&&!(actual instanceof Float32Array||actual instanceof Float64Array)){return compare(new Uint8Array(actual.buffer),new Uint8Array(expected.buffer))===0;// 7.5 For all other Object pairs, including Array objects, equivalence is\n// determined by having the same number of owned properties (as verified\n// with Object.prototype.hasOwnProperty.call), the same set of keys\n// (although not necessarily the same order), equivalent values for every\n// corresponding key, and an identical 'prototype' property. Note: this\n// accounts for both named and indexed properties on Arrays.\n}else if(isBuffer(actual)!==isBuffer(expected)){return false;}else{memos=memos||{actual:[],expected:[]};var actualIndex=memos.actual.indexOf(actual);if(actualIndex!==-1){if(actualIndex===memos.expected.indexOf(expected)){return true;}}memos.actual.push(actual);memos.expected.push(expected);return objEquiv(actual,expected,strict,memos);}}function isArguments(object){return Object.prototype.toString.call(object)=='[object Arguments]';}function objEquiv(a,b,strict,actualVisitedObjects){if(a===null||a===undefined||b===null||b===undefined)return false;// if one is a primitive, the other must be same\nif(util.isPrimitive(a)||util.isPrimitive(b))return a===b;if(strict&&Object.getPrototypeOf(a)!==Object.getPrototypeOf(b))return false;var aIsArgs=isArguments(a);var bIsArgs=isArguments(b);if(aIsArgs&&!bIsArgs||!aIsArgs&&bIsArgs)return false;if(aIsArgs){a=pSlice.call(a);b=pSlice.call(b);return _deepEqual(a,b,strict);}var ka=objectKeys(a);var kb=objectKeys(b);var key,i;// having the same number of owned properties (keys incorporates\n// hasOwnProperty)\nif(ka.length!==kb.length)return false;//the same set of keys (although not necessarily the same order),\nka.sort();kb.sort();//~~~cheap key test\nfor(i=ka.length-1;i>=0;i--){if(ka[i]!==kb[i])return false;}//equivalent values for every corresponding key, and\n//~~~possibly expensive deep test\nfor(i=ka.length-1;i>=0;i--){key=ka[i];if(!_deepEqual(a[key],b[key],strict,actualVisitedObjects))return false;}return true;}// 8. The non-equivalence assertion tests for any deep inequality.\n// assert.notDeepEqual(actual, expected, message_opt);\nassert.notDeepEqual=function notDeepEqual(actual,expected,message){if(_deepEqual(actual,expected,false)){fail(actual,expected,message,'notDeepEqual',assert.notDeepEqual);}};assert.notDeepStrictEqual=notDeepStrictEqual;function notDeepStrictEqual(actual,expected,message){if(_deepEqual(actual,expected,true)){fail(actual,expected,message,'notDeepStrictEqual',notDeepStrictEqual);}}// 9. The strict equality assertion tests strict equality, as determined by ===.\n// assert.strictEqual(actual, expected, message_opt);\nassert.strictEqual=function strictEqual(actual,expected,message){if(actual!==expected){fail(actual,expected,message,'===',assert.strictEqual);}};// 10. The strict non-equality assertion tests for strict inequality, as\n// determined by !==.  assert.notStrictEqual(actual, expected, message_opt);\nassert.notStrictEqual=function notStrictEqual(actual,expected,message){if(actual===expected){fail(actual,expected,message,'!==',assert.notStrictEqual);}};function expectedException(actual,expected){if(!actual||!expected){return false;}if(Object.prototype.toString.call(expected)=='[object RegExp]'){return expected.test(actual);}try{if(actual instanceof expected){return true;}}catch(e){// Ignore.  The instanceof check doesn't work for arrow functions.\n}if(Error.isPrototypeOf(expected)){return false;}return expected.call({},actual)===true;}function _tryBlock(block){var error;try{block();}catch(e){error=e;}return error;}function _throws(shouldThrow,block,expected,message){var actual;if(typeof block!=='function'){throw new TypeError('\"block\" argument must be a function');}if(typeof expected==='string'){message=expected;expected=null;}actual=_tryBlock(block);message=(expected&&expected.name?' ('+expected.name+').':'.')+(message?' '+message:'.');if(shouldThrow&&!actual){fail(actual,expected,'Missing expected exception'+message);}var userProvidedMessage=typeof message==='string';var isUnwantedException=!shouldThrow&&util.isError(actual);var isUnexpectedException=!shouldThrow&&actual&&!expected;if(isUnwantedException&&userProvidedMessage&&expectedException(actual,expected)||isUnexpectedException){fail(actual,expected,'Got unwanted exception'+message);}if(shouldThrow&&actual&&expected&&!expectedException(actual,expected)||!shouldThrow&&actual){throw actual;}}// 11. Expected to throw an error:\n// assert.throws(block, Error_opt, message_opt);\nassert.throws=function(block,/*optional*/error,/*optional*/message){_throws(true,block,error,message);};// EXTENSION! This is annoying to write outside this module.\nassert.doesNotThrow=function(block,/*optional*/error,/*optional*/message){_throws(false,block,error,message);};assert.ifError=function(err){if(err)throw err;};// Expose a strict only variant of assert\nfunction strict(value,message){if(!value)fail(value,true,message,'==',strict);}assert.strict=objectAssign(strict,assert,{equal:assert.strictEqual,deepEqual:assert.deepStrictEqual,notEqual:assert.notStrictEqual,notDeepEqual:assert.notDeepStrictEqual});assert.strict.strict=assert.strict;var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj){if(hasOwn.call(obj,key))keys.push(key);}return keys;};/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3289367__(22));/***/},/* 172 */ /***/function(module,exports,__webpack_require__){\"use strict\";// Note: adler32 takes 12% for level 0 and 2% for level 6.\n// It isn't worth it to make additional optimizations as in original.\n// Small size is preferable.\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nfunction adler32(adler,buf,len,pos){var s1=adler&0xffff|0,s2=adler>>>16&0xffff|0,n=0;while(len!==0){// Set limit ~ twice less than 5552, to keep\n// s2 in 31-bits, because we force signed ints.\n// in other case %= will fail.\nn=len>2000?2000:len;len-=n;do{s1=s1+buf[pos++]|0;s2=s2+s1|0;}while(--n);s1%=65521;s2%=65521;}return s1|s2<<16|0;}module.exports=adler32;/***/},/* 173 */ /***/function(module,exports,__webpack_require__){\"use strict\";// Note: we can't get significant speed boost here.\n// So write code to minimize size - no pregenerated tables\n// and array tools dependencies.\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n// Use ordinary array, since untyped makes no boost here\nfunction makeTable(){var c,table=[];for(var n=0;n<256;n++){c=n;for(var k=0;k<8;k++){c=c&1?0xEDB88320^c>>>1:c>>>1;}table[n]=c;}return table;}// Create table on load. Just 255 signed longs. Not a problem.\nvar crcTable=makeTable();function crc32(crc,buf,len,pos){var t=crcTable,end=pos+len;crc^=-1;for(var i=pos;i<end;i++){crc=crc>>>8^t[(crc^buf[i])&0xFF];}return crc^-1;// >>> 0;\n}module.exports=crc32;/***/},/* 174 */ /***/function(module,exports,__nested_webpack_require_3306712__){;(function(root,factory){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3306712__(1));}else{}})(this,function(CryptoJS){(function(Math){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var WordArray=C_lib.WordArray;var Hasher=C_lib.Hasher;var C_algo=C.algo;// Initialization and round constants tables\nvar H=[];var K=[];// Compute constants\n(function(){function isPrime(n){var sqrtN=Math.sqrt(n);for(var factor=2;factor<=sqrtN;factor++){if(!(n%factor)){return false;}}return true;}function getFractionalBits(n){return(n-(n|0))*0x100000000|0;}var n=2;var nPrime=0;while(nPrime<64){if(isPrime(n)){if(nPrime<8){H[nPrime]=getFractionalBits(Math.pow(n,1/2));}K[nPrime]=getFractionalBits(Math.pow(n,1/3));nPrime++;}n++;}})();// Reusable object\nvar W=[];/**\r\n             * SHA-256 hash algorithm.\r\n             */var SHA256=C_algo.SHA256=Hasher.extend({_doReset:function(){this._hash=new WordArray.init(H.slice(0));},_doProcessBlock:function(M,offset){// Shortcut\nvar H=this._hash.words;// Working variables\nvar a=H[0];var b=H[1];var c=H[2];var d=H[3];var e=H[4];var f=H[5];var g=H[6];var h=H[7];// Computation\nfor(var i=0;i<64;i++){if(i<16){W[i]=M[offset+i]|0;}else{var gamma0x=W[i-15];var gamma0=(gamma0x<<25|gamma0x>>>7)^(gamma0x<<14|gamma0x>>>18)^gamma0x>>>3;var gamma1x=W[i-2];var gamma1=(gamma1x<<15|gamma1x>>>17)^(gamma1x<<13|gamma1x>>>19)^gamma1x>>>10;W[i]=gamma0+W[i-7]+gamma1+W[i-16];}var ch=e&f^~e&g;var maj=a&b^a&c^b&c;var sigma0=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22);var sigma1=(e<<26|e>>>6)^(e<<21|e>>>11)^(e<<7|e>>>25);var t1=h+sigma1+ch+K[i]+W[i];var t2=sigma0+maj;h=g;g=f;f=e;e=d+t1|0;d=c;c=b;b=a;a=t1+t2|0;}// Intermediate hash value\nH[0]=H[0]+a|0;H[1]=H[1]+b|0;H[2]=H[2]+c|0;H[3]=H[3]+d|0;H[4]=H[4]+e|0;H[5]=H[5]+f|0;H[6]=H[6]+g|0;H[7]=H[7]+h|0;},_doFinalize:function(){// Shortcuts\nvar data=this._data;var dataWords=data.words;var nBitsTotal=this._nDataBytes*8;var nBitsLeft=data.sigBytes*8;// Add padding\ndataWords[nBitsLeft>>>5]|=0x80<<24-nBitsLeft%32;dataWords[(nBitsLeft+64>>>9<<4)+14]=Math.floor(nBitsTotal/0x100000000);dataWords[(nBitsLeft+64>>>9<<4)+15]=nBitsTotal;data.sigBytes=dataWords.length*4;// Hash final blocks\nthis._process();// Return final computed hash\nreturn this._hash;},clone:function(){var clone=Hasher.clone.call(this);clone._hash=this._hash.clone();return clone;}});/**\r\n             * Shortcut function to the hasher's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             *\r\n             * @return {WordArray} The hash.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hash = CryptoJS.SHA256('message');\r\n             *     var hash = CryptoJS.SHA256(wordArray);\r\n             */C.SHA256=Hasher._createHelper(SHA256);/**\r\n             * Shortcut function to the HMAC's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             * @param {WordArray|string} key The secret key.\r\n             *\r\n             * @return {WordArray} The HMAC.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hmac = CryptoJS.HmacSHA256(message, key);\r\n             */C.HmacSHA256=Hasher._createHmacHelper(SHA256);})(Math);return CryptoJS.SHA256;});/***/},/* 175 */ /***/function(module,exports,__nested_webpack_require_3310131__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3310131__(1),__nested_webpack_require_3310131__(72));}else{}})(this,function(CryptoJS){(function(){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var Hasher=C_lib.Hasher;var C_x64=C.x64;var X64Word=C_x64.Word;var X64WordArray=C_x64.WordArray;var C_algo=C.algo;function X64Word_create(){return X64Word.create.apply(X64Word,arguments);}// Constants\nvar K=[X64Word_create(0x428a2f98,0xd728ae22),X64Word_create(0x71374491,0x23ef65cd),X64Word_create(0xb5c0fbcf,0xec4d3b2f),X64Word_create(0xe9b5dba5,0x8189dbbc),X64Word_create(0x3956c25b,0xf348b538),X64Word_create(0x59f111f1,0xb605d019),X64Word_create(0x923f82a4,0xaf194f9b),X64Word_create(0xab1c5ed5,0xda6d8118),X64Word_create(0xd807aa98,0xa3030242),X64Word_create(0x12835b01,0x45706fbe),X64Word_create(0x243185be,0x4ee4b28c),X64Word_create(0x550c7dc3,0xd5ffb4e2),X64Word_create(0x72be5d74,0xf27b896f),X64Word_create(0x80deb1fe,0x3b1696b1),X64Word_create(0x9bdc06a7,0x25c71235),X64Word_create(0xc19bf174,0xcf692694),X64Word_create(0xe49b69c1,0x9ef14ad2),X64Word_create(0xefbe4786,0x384f25e3),X64Word_create(0x0fc19dc6,0x8b8cd5b5),X64Word_create(0x240ca1cc,0x77ac9c65),X64Word_create(0x2de92c6f,0x592b0275),X64Word_create(0x4a7484aa,0x6ea6e483),X64Word_create(0x5cb0a9dc,0xbd41fbd4),X64Word_create(0x76f988da,0x831153b5),X64Word_create(0x983e5152,0xee66dfab),X64Word_create(0xa831c66d,0x2db43210),X64Word_create(0xb00327c8,0x98fb213f),X64Word_create(0xbf597fc7,0xbeef0ee4),X64Word_create(0xc6e00bf3,0x3da88fc2),X64Word_create(0xd5a79147,0x930aa725),X64Word_create(0x06ca6351,0xe003826f),X64Word_create(0x14292967,0x0a0e6e70),X64Word_create(0x27b70a85,0x46d22ffc),X64Word_create(0x2e1b2138,0x5c26c926),X64Word_create(0x4d2c6dfc,0x5ac42aed),X64Word_create(0x53380d13,0x9d95b3df),X64Word_create(0x650a7354,0x8baf63de),X64Word_create(0x766a0abb,0x3c77b2a8),X64Word_create(0x81c2c92e,0x47edaee6),X64Word_create(0x92722c85,0x1482353b),X64Word_create(0xa2bfe8a1,0x4cf10364),X64Word_create(0xa81a664b,0xbc423001),X64Word_create(0xc24b8b70,0xd0f89791),X64Word_create(0xc76c51a3,0x0654be30),X64Word_create(0xd192e819,0xd6ef5218),X64Word_create(0xd6990624,0x5565a910),X64Word_create(0xf40e3585,0x5771202a),X64Word_create(0x106aa070,0x32bbd1b8),X64Word_create(0x19a4c116,0xb8d2d0c8),X64Word_create(0x1e376c08,0x5141ab53),X64Word_create(0x2748774c,0xdf8eeb99),X64Word_create(0x34b0bcb5,0xe19b48a8),X64Word_create(0x391c0cb3,0xc5c95a63),X64Word_create(0x4ed8aa4a,0xe3418acb),X64Word_create(0x5b9cca4f,0x7763e373),X64Word_create(0x682e6ff3,0xd6b2b8a3),X64Word_create(0x748f82ee,0x5defb2fc),X64Word_create(0x78a5636f,0x43172f60),X64Word_create(0x84c87814,0xa1f0ab72),X64Word_create(0x8cc70208,0x1a6439ec),X64Word_create(0x90befffa,0x23631e28),X64Word_create(0xa4506ceb,0xde82bde9),X64Word_create(0xbef9a3f7,0xb2c67915),X64Word_create(0xc67178f2,0xe372532b),X64Word_create(0xca273ece,0xea26619c),X64Word_create(0xd186b8c7,0x21c0c207),X64Word_create(0xeada7dd6,0xcde0eb1e),X64Word_create(0xf57d4f7f,0xee6ed178),X64Word_create(0x06f067aa,0x72176fba),X64Word_create(0x0a637dc5,0xa2c898a6),X64Word_create(0x113f9804,0xbef90dae),X64Word_create(0x1b710b35,0x131c471b),X64Word_create(0x28db77f5,0x23047d84),X64Word_create(0x32caab7b,0x40c72493),X64Word_create(0x3c9ebe0a,0x15c9bebc),X64Word_create(0x431d67c4,0x9c100d4c),X64Word_create(0x4cc5d4be,0xcb3e42b6),X64Word_create(0x597f299c,0xfc657e2a),X64Word_create(0x5fcb6fab,0x3ad6faec),X64Word_create(0x6c44198c,0x4a475817)];// Reusable objects\nvar W=[];(function(){for(var i=0;i<80;i++){W[i]=X64Word_create();}})();/**\r\n             * SHA-512 hash algorithm.\r\n             */var SHA512=C_algo.SHA512=Hasher.extend({_doReset:function(){this._hash=new X64WordArray.init([new X64Word.init(0x6a09e667,0xf3bcc908),new X64Word.init(0xbb67ae85,0x84caa73b),new X64Word.init(0x3c6ef372,0xfe94f82b),new X64Word.init(0xa54ff53a,0x5f1d36f1),new X64Word.init(0x510e527f,0xade682d1),new X64Word.init(0x9b05688c,0x2b3e6c1f),new X64Word.init(0x1f83d9ab,0xfb41bd6b),new X64Word.init(0x5be0cd19,0x137e2179)]);},_doProcessBlock:function(M,offset){// Shortcuts\nvar H=this._hash.words;var H0=H[0];var H1=H[1];var H2=H[2];var H3=H[3];var H4=H[4];var H5=H[5];var H6=H[6];var H7=H[7];var H0h=H0.high;var H0l=H0.low;var H1h=H1.high;var H1l=H1.low;var H2h=H2.high;var H2l=H2.low;var H3h=H3.high;var H3l=H3.low;var H4h=H4.high;var H4l=H4.low;var H5h=H5.high;var H5l=H5.low;var H6h=H6.high;var H6l=H6.low;var H7h=H7.high;var H7l=H7.low;// Working variables\nvar ah=H0h;var al=H0l;var bh=H1h;var bl=H1l;var ch=H2h;var cl=H2l;var dh=H3h;var dl=H3l;var eh=H4h;var el=H4l;var fh=H5h;var fl=H5l;var gh=H6h;var gl=H6l;var hh=H7h;var hl=H7l;// Rounds\nfor(var i=0;i<80;i++){// Shortcut\nvar Wi=W[i];// Extend message\nif(i<16){var Wih=Wi.high=M[offset+i*2]|0;var Wil=Wi.low=M[offset+i*2+1]|0;}else{// Gamma0\nvar gamma0x=W[i-15];var gamma0xh=gamma0x.high;var gamma0xl=gamma0x.low;var gamma0h=(gamma0xh>>>1|gamma0xl<<31)^(gamma0xh>>>8|gamma0xl<<24)^gamma0xh>>>7;var gamma0l=(gamma0xl>>>1|gamma0xh<<31)^(gamma0xl>>>8|gamma0xh<<24)^(gamma0xl>>>7|gamma0xh<<25);// Gamma1\nvar gamma1x=W[i-2];var gamma1xh=gamma1x.high;var gamma1xl=gamma1x.low;var gamma1h=(gamma1xh>>>19|gamma1xl<<13)^(gamma1xh<<3|gamma1xl>>>29)^gamma1xh>>>6;var gamma1l=(gamma1xl>>>19|gamma1xh<<13)^(gamma1xl<<3|gamma1xh>>>29)^(gamma1xl>>>6|gamma1xh<<26);// W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]\nvar Wi7=W[i-7];var Wi7h=Wi7.high;var Wi7l=Wi7.low;var Wi16=W[i-16];var Wi16h=Wi16.high;var Wi16l=Wi16.low;var Wil=gamma0l+Wi7l;var Wih=gamma0h+Wi7h+(Wil>>>0<gamma0l>>>0?1:0);var Wil=Wil+gamma1l;var Wih=Wih+gamma1h+(Wil>>>0<gamma1l>>>0?1:0);var Wil=Wil+Wi16l;var Wih=Wih+Wi16h+(Wil>>>0<Wi16l>>>0?1:0);Wi.high=Wih;Wi.low=Wil;}var chh=eh&fh^~eh&gh;var chl=el&fl^~el&gl;var majh=ah&bh^ah&ch^bh&ch;var majl=al&bl^al&cl^bl&cl;var sigma0h=(ah>>>28|al<<4)^(ah<<30|al>>>2)^(ah<<25|al>>>7);var sigma0l=(al>>>28|ah<<4)^(al<<30|ah>>>2)^(al<<25|ah>>>7);var sigma1h=(eh>>>14|el<<18)^(eh>>>18|el<<14)^(eh<<23|el>>>9);var sigma1l=(el>>>14|eh<<18)^(el>>>18|eh<<14)^(el<<23|eh>>>9);// t1 = h + sigma1 + ch + K[i] + W[i]\nvar Ki=K[i];var Kih=Ki.high;var Kil=Ki.low;var t1l=hl+sigma1l;var t1h=hh+sigma1h+(t1l>>>0<hl>>>0?1:0);var t1l=t1l+chl;var t1h=t1h+chh+(t1l>>>0<chl>>>0?1:0);var t1l=t1l+Kil;var t1h=t1h+Kih+(t1l>>>0<Kil>>>0?1:0);var t1l=t1l+Wil;var t1h=t1h+Wih+(t1l>>>0<Wil>>>0?1:0);// t2 = sigma0 + maj\nvar t2l=sigma0l+majl;var t2h=sigma0h+majh+(t2l>>>0<sigma0l>>>0?1:0);// Update working variables\nhh=gh;hl=gl;gh=fh;gl=fl;fh=eh;fl=el;el=dl+t1l|0;eh=dh+t1h+(el>>>0<dl>>>0?1:0)|0;dh=ch;dl=cl;ch=bh;cl=bl;bh=ah;bl=al;al=t1l+t2l|0;ah=t1h+t2h+(al>>>0<t1l>>>0?1:0)|0;}// Intermediate hash value\nH0l=H0.low=H0l+al;H0.high=H0h+ah+(H0l>>>0<al>>>0?1:0);H1l=H1.low=H1l+bl;H1.high=H1h+bh+(H1l>>>0<bl>>>0?1:0);H2l=H2.low=H2l+cl;H2.high=H2h+ch+(H2l>>>0<cl>>>0?1:0);H3l=H3.low=H3l+dl;H3.high=H3h+dh+(H3l>>>0<dl>>>0?1:0);H4l=H4.low=H4l+el;H4.high=H4h+eh+(H4l>>>0<el>>>0?1:0);H5l=H5.low=H5l+fl;H5.high=H5h+fh+(H5l>>>0<fl>>>0?1:0);H6l=H6.low=H6l+gl;H6.high=H6h+gh+(H6l>>>0<gl>>>0?1:0);H7l=H7.low=H7l+hl;H7.high=H7h+hh+(H7l>>>0<hl>>>0?1:0);},_doFinalize:function(){// Shortcuts\nvar data=this._data;var dataWords=data.words;var nBitsTotal=this._nDataBytes*8;var nBitsLeft=data.sigBytes*8;// Add padding\ndataWords[nBitsLeft>>>5]|=0x80<<24-nBitsLeft%32;dataWords[(nBitsLeft+128>>>10<<5)+30]=Math.floor(nBitsTotal/0x100000000);dataWords[(nBitsLeft+128>>>10<<5)+31]=nBitsTotal;data.sigBytes=dataWords.length*4;// Hash final blocks\nthis._process();// Convert hash to 32-bit word array before returning\nvar hash=this._hash.toX32();// Return final computed hash\nreturn hash;},clone:function(){var clone=Hasher.clone.call(this);clone._hash=this._hash.clone();return clone;},blockSize:1024/32});/**\r\n             * Shortcut function to the hasher's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             *\r\n             * @return {WordArray} The hash.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hash = CryptoJS.SHA512('message');\r\n             *     var hash = CryptoJS.SHA512(wordArray);\r\n             */C.SHA512=Hasher._createHelper(SHA512);/**\r\n             * Shortcut function to the HMAC's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             * @param {WordArray|string} key The secret key.\r\n             *\r\n             * @return {WordArray} The HMAC.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hmac = CryptoJS.HmacSHA512(message, key);\r\n             */C.HmacSHA512=Hasher._createHmacHelper(SHA512);})();return CryptoJS.SHA512;});/***/},/* 176 */ /***/function(module){module.exports=JSON.parse(\"[[\\\"a140\\\",\\\"\\\",62],[\\\"a180\\\",\\\"\\\",32],[\\\"a240\\\",\\\"\\\",62],[\\\"a280\\\",\\\"\\\",32],[\\\"a2ab\\\",\\\"\\\",5],[\\\"a2e3\\\",\\\"€\\\"],[\\\"a2ef\\\",\\\"\\\"],[\\\"a2fd\\\",\\\"\\\"],[\\\"a340\\\",\\\"\\\",62],[\\\"a380\\\",\\\"\\\",31,\\\"　\\\"],[\\\"a440\\\",\\\"\\\",62],[\\\"a480\\\",\\\"\\\",32],[\\\"a4f4\\\",\\\"\\\",10],[\\\"a540\\\",\\\"\\\",62],[\\\"a580\\\",\\\"\\\",32],[\\\"a5f7\\\",\\\"\\\",7],[\\\"a640\\\",\\\"\\\",62],[\\\"a680\\\",\\\"\\\",32],[\\\"a6b9\\\",\\\"\\\",7],[\\\"a6d9\\\",\\\"\\\",6],[\\\"a6ec\\\",\\\"\\\"],[\\\"a6f3\\\",\\\"\\\"],[\\\"a6f6\\\",\\\"\\\",8],[\\\"a740\\\",\\\"\\\",62],[\\\"a780\\\",\\\"\\\",32],[\\\"a7c2\\\",\\\"\\\",14],[\\\"a7f2\\\",\\\"\\\",12],[\\\"a896\\\",\\\"\\\",10],[\\\"a8bc\\\",\\\"\\\"],[\\\"a8bf\\\",\\\"ǹ\\\"],[\\\"a8c1\\\",\\\"\\\"],[\\\"a8ea\\\",\\\"\\\",20],[\\\"a958\\\",\\\"\\\"],[\\\"a95b\\\",\\\"\\\"],[\\\"a95d\\\",\\\"\\\"],[\\\"a989\\\",\\\"〾⿰\\\",11],[\\\"a997\\\",\\\"\\\",12],[\\\"a9f0\\\",\\\"\\\",14],[\\\"aaa1\\\",\\\"\\\",93],[\\\"aba1\\\",\\\"\\\",93],[\\\"aca1\\\",\\\"\\\",93],[\\\"ada1\\\",\\\"\\\",93],[\\\"aea1\\\",\\\"\\\",93],[\\\"afa1\\\",\\\"\\\",93],[\\\"d7fa\\\",\\\"\\\",4],[\\\"f8a1\\\",\\\"\\\",93],[\\\"f9a1\\\",\\\"\\\",93],[\\\"faa1\\\",\\\"\\\",93],[\\\"fba1\\\",\\\"\\\",93],[\\\"fca1\\\",\\\"\\\",93],[\\\"fda1\\\",\\\"\\\",93],[\\\"fe50\\\",\\\"⺁⺄㑳㑇⺈⺋㖞㘚㘎⺌⺗㥮㤘㧏㧟㩳㧐㭎㱮㳠⺧⺪䁖䅟⺮䌷⺳⺶⺷䎱䎬⺻䏝䓖䙡䙌\\\"],[\\\"fe80\\\",\\\"䜣䜩䝼䞍⻊䥇䥺䥽䦂䦃䦅䦆䦟䦛䦷䦶䲣䲟䲠䲡䱷䲢䴓\\\",6,\\\"䶮\\\",93]]\");/***/},/* 177 */ /***/function(module){module.exports=JSON.parse(\"[[\\\"0\\\",\\\"\\\\u0000\\\",127],[\\\"a140\\\",\\\"　，、。．‧；：？！︰…‥﹐﹑﹒·﹔﹕﹖﹗｜–︱—︳╴︴﹏（）︵︶｛｝︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚\\\"],[\\\"a1a1\\\",\\\"﹛﹜﹝﹞‘’“”〝〞‵′＃＆＊※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯￣＿ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡＋－×÷±√＜＞＝≦≧≠∞≒≡﹢\\\",4,\\\"～∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣／\\\"],[\\\"a240\\\",\\\"＼∕﹨＄￥〒￠￡％＠℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁\\\",7,\\\"▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭\\\"],[\\\"a2a1\\\",\\\"╮╰╯═╞╪╡◢◣◥◤╱╲╳０\\\",9,\\\"Ⅰ\\\",9,\\\"〡\\\",8,\\\"十卄卅Ａ\\\",25,\\\"ａ\\\",21],[\\\"a340\\\",\\\"ｗｘｙｚΑ\\\",16,\\\"Σ\\\",6,\\\"α\\\",16,\\\"σ\\\",6,\\\"ㄅ\\\",10],[\\\"a3a1\\\",\\\"ㄐ\\\",25,\\\"˙ˉˊˇˋ\\\"],[\\\"a3e1\\\",\\\"€\\\"],[\\\"a440\\\",\\\"一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才\\\"],[\\\"a4a1\\\",\\\"丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙\\\"],[\\\"a540\\\",\\\"世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外\\\"],[\\\"a5a1\\\",\\\"央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全\\\"],[\\\"a640\\\",\\\"共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年\\\"],[\\\"a6a1\\\",\\\"式弛忙忖戎戌戍成扣扛托收早旨旬旭曲曳有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣\\\"],[\\\"a740\\\",\\\"作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍\\\"],[\\\"a7a1\\\",\\\"均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠\\\"],[\\\"a840\\\",\\\"杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒\\\"],[\\\"a8a1\\\",\\\"芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵\\\"],[\\\"a940\\\",\\\"咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居\\\"],[\\\"a9a1\\\",\\\"屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊\\\"],[\\\"aa40\\\",\\\"昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠\\\"],[\\\"aaa1\\\",\\\"炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附\\\"],[\\\"ab40\\\",\\\"陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品\\\"],[\\\"aba1\\\",\\\"哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷\\\"],[\\\"ac40\\\",\\\"拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗\\\"],[\\\"aca1\\\",\\\"活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄\\\"],[\\\"ad40\\\",\\\"耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥\\\"],[\\\"ada1\\\",\\\"迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪\\\"],[\\\"ae40\\\",\\\"哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙\\\"],[\\\"aea1\\\",\\\"恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓\\\"],[\\\"af40\\\",\\\"浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷\\\"],[\\\"afa1\\\",\\\"砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃\\\"],[\\\"b040\\\",\\\"虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡\\\"],[\\\"b0a1\\\",\\\"陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務勘動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀\\\"],[\\\"b140\\\",\\\"娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽\\\"],[\\\"b1a1\\\",\\\"情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺\\\"],[\\\"b240\\\",\\\"毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶\\\"],[\\\"b2a1\\\",\\\"瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼\\\"],[\\\"b340\\\",\\\"莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途\\\"],[\\\"b3a1\\\",\\\"部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠\\\"],[\\\"b440\\\",\\\"婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍\\\"],[\\\"b4a1\\\",\\\"插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋\\\"],[\\\"b540\\\",\\\"溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘\\\"],[\\\"b5a1\\\",\\\"窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁\\\"],[\\\"b640\\\",\\\"詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑\\\"],[\\\"b6a1\\\",\\\"間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼\\\"],[\\\"b740\\\",\\\"媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業\\\"],[\\\"b7a1\\\",\\\"楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督\\\"],[\\\"b840\\\",\\\"睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫\\\"],[\\\"b8a1\\\",\\\"腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊\\\"],[\\\"b940\\\",\\\"辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴\\\"],[\\\"b9a1\\\",\\\"飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇\\\"],[\\\"ba40\\\",\\\"愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢\\\"],[\\\"baa1\\\",\\\"滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬\\\"],[\\\"bb40\\\",\\\"罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤\\\"],[\\\"bba1\\\",\\\"說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜\\\"],[\\\"bc40\\\",\\\"劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂\\\"],[\\\"bca1\\\",\\\"慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃\\\"],[\\\"bd40\\\",\\\"瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯\\\"],[\\\"bda1\\\",\\\"翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞\\\"],[\\\"be40\\\",\\\"輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉\\\"],[\\\"bea1\\\",\\\"鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡\\\"],[\\\"bf40\\\",\\\"濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊\\\"],[\\\"bfa1\\\",\\\"縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚\\\"],[\\\"c040\\\",\\\"錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇\\\"],[\\\"c0a1\\\",\\\"嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬\\\"],[\\\"c140\\\",\\\"瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪\\\"],[\\\"c1a1\\\",\\\"薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁\\\"],[\\\"c240\\\",\\\"駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘\\\"],[\\\"c2a1\\\",\\\"癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦\\\"],[\\\"c340\\\",\\\"鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸\\\"],[\\\"c3a1\\\",\\\"獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類\\\"],[\\\"c440\\\",\\\"願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼\\\"],[\\\"c4a1\\\",\\\"纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣蠢蠡蠟襪襬覽譴\\\"],[\\\"c540\\\",\\\"護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬\\\"],[\\\"c5a1\\\",\\\"禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒\\\"],[\\\"c640\\\",\\\"讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲\\\"],[\\\"c940\\\",\\\"乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕\\\"],[\\\"c9a1\\\",\\\"氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋\\\"],[\\\"ca40\\\",\\\"汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘\\\"],[\\\"caa1\\\",\\\"吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇\\\"],[\\\"cb40\\\",\\\"杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓\\\"],[\\\"cba1\\\",\\\"芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢\\\"],[\\\"cc40\\\",\\\"坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋\\\"],[\\\"cca1\\\",\\\"怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲\\\"],[\\\"cd40\\\",\\\"泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺\\\"],[\\\"cda1\\\",\\\"矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏\\\"],[\\\"ce40\\\",\\\"哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛\\\"],[\\\"cea1\\\",\\\"峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺\\\"],[\\\"cf40\\\",\\\"柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂\\\"],[\\\"cfa1\\\",\\\"洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀\\\"],[\\\"d040\\\",\\\"穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪\\\"],[\\\"d0a1\\\",\\\"苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱\\\"],[\\\"d140\\\",\\\"唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧\\\"],[\\\"d1a1\\\",\\\"恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤\\\"],[\\\"d240\\\",\\\"毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸\\\"],[\\\"d2a1\\\",\\\"牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐\\\"],[\\\"d340\\\",\\\"笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢\\\"],[\\\"d3a1\\\",\\\"荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐\\\"],[\\\"d440\\\",\\\"酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅\\\"],[\\\"d4a1\\\",\\\"唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏\\\"],[\\\"d540\\\",\\\"崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟\\\"],[\\\"d5a1\\\",\\\"捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉\\\"],[\\\"d640\\\",\\\"淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏\\\"],[\\\"d6a1\\\",\\\"痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟\\\"],[\\\"d740\\\",\\\"耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷\\\"],[\\\"d7a1\\\",\\\"蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪\\\"],[\\\"d840\\\",\\\"釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷\\\"],[\\\"d8a1\\\",\\\"堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔\\\"],[\\\"d940\\\",\\\"惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒\\\"],[\\\"d9a1\\\",\\\"晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞\\\"],[\\\"da40\\\",\\\"湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖\\\"],[\\\"daa1\\\",\\\"琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥\\\"],[\\\"db40\\\",\\\"罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳\\\"],[\\\"dba1\\\",\\\"菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑詊詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺\\\"],[\\\"dc40\\\",\\\"軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈\\\"],[\\\"dca1\\\",\\\"隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆\\\"],[\\\"dd40\\\",\\\"媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤\\\"],[\\\"dda1\\\",\\\"搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼\\\"],[\\\"de40\\\",\\\"毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓\\\"],[\\\"dea1\\\",\\\"煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓\\\"],[\\\"df40\\\",\\\"稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯\\\"],[\\\"dfa1\\\",\\\"腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤\\\"],[\\\"e040\\\",\\\"觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿\\\"],[\\\"e0a1\\\",\\\"遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠\\\"],[\\\"e140\\\",\\\"凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠\\\"],[\\\"e1a1\\\",\\\"寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉\\\"],[\\\"e240\\\",\\\"榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊\\\"],[\\\"e2a1\\\",\\\"漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓\\\"],[\\\"e340\\\",\\\"禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞\\\"],[\\\"e3a1\\\",\\\"耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻\\\"],[\\\"e440\\\",\\\"裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍\\\"],[\\\"e4a1\\\",\\\"銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘\\\"],[\\\"e540\\\",\\\"噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉\\\"],[\\\"e5a1\\\",\\\"憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂潁漦潾澇濆澒\\\"],[\\\"e640\\\",\\\"澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙\\\"],[\\\"e6a1\\\",\\\"獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟\\\"],[\\\"e740\\\",\\\"膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢\\\"],[\\\"e7a1\\\",\\\"蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧\\\"],[\\\"e840\\\",\\\"踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓\\\"],[\\\"e8a1\\\",\\\"銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮\\\"],[\\\"e940\\\",\\\"噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺\\\"],[\\\"e9a1\\\",\\\"憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸\\\"],[\\\"ea40\\\",\\\"澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙\\\"],[\\\"eaa1\\\",\\\"瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘\\\"],[\\\"eb40\\\",\\\"蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠\\\"],[\\\"eba1\\\",\\\"諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌\\\"],[\\\"ec40\\\",\\\"錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕\\\"],[\\\"eca1\\\",\\\"魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎\\\"],[\\\"ed40\\\",\\\"檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶\\\"],[\\\"eda1\\\",\\\"瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞\\\"],[\\\"ee40\\\",\\\"蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞\\\"],[\\\"eea1\\\",\\\"謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜\\\"],[\\\"ef40\\\",\\\"鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰\\\"],[\\\"efa1\\\",\\\"鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶\\\"],[\\\"f040\\\",\\\"璸瓀璵瓁璾璶璻瓂甔甓癜癤癙癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒\\\"],[\\\"f0a1\\\",\\\"臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧\\\"],[\\\"f140\\\",\\\"蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪\\\"],[\\\"f1a1\\\",\\\"鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰\\\"],[\\\"f240\\\",\\\"徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛\\\"],[\\\"f2a1\\\",\\\"礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕\\\"],[\\\"f340\\\",\\\"譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦\\\"],[\\\"f3a1\\\",\\\"鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲\\\"],[\\\"f440\\\",\\\"嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩\\\"],[\\\"f4a1\\\",\\\"禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿\\\"],[\\\"f540\\\",\\\"鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛\\\"],[\\\"f5a1\\\",\\\"鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥\\\"],[\\\"f640\\\",\\\"蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺\\\"],[\\\"f6a1\\\",\\\"騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚\\\"],[\\\"f740\\\",\\\"糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊\\\"],[\\\"f7a1\\\",\\\"驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾\\\"],[\\\"f840\\\",\\\"讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏\\\"],[\\\"f8a1\\\",\\\"齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚\\\"],[\\\"f940\\\",\\\"纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊\\\"],[\\\"f9a1\\\",\\\"龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓\\\"]]\");/***/},/* 178 */ /***/function(module,exports,__nested_webpack_require_3336437__){// Generated by CoffeeScript 1.7.1\n(function(){var ArrayT,NumberT,utils;NumberT=__nested_webpack_require_3336437__(49).Number;utils=__nested_webpack_require_3336437__(26);ArrayT=function(){function ArrayT(type,length,lengthType){this.type=type;this.length=length;this.lengthType=lengthType!=null?lengthType:'count';}ArrayT.prototype.decode=function(stream,parent){var ctx,i,length,pos,res,target,_i;pos=stream.pos;res=[];ctx=parent;if(this.length!=null){length=utils.resolveLength(this.length,stream,parent);}if(this.length instanceof NumberT){Object.defineProperties(res,{parent:{value:parent},_startOffset:{value:pos},_currentOffset:{value:0,writable:true},_length:{value:length}});ctx=res;}if(length==null||this.lengthType==='bytes'){target=length!=null?stream.pos+length:(parent!=null?parent._length:void 0)?parent._startOffset+parent._length:stream.length;while(stream.pos<target){res.push(this.type.decode(stream,ctx));}}else{for(i=_i=0;_i<length;i=_i+=1){res.push(this.type.decode(stream,ctx));}}return res;};ArrayT.prototype.size=function(array,ctx){var item,size,_i,_len;if(!array){return this.type.size(null,ctx)*utils.resolveLength(this.length,null,ctx);}size=0;if(this.length instanceof NumberT){size+=this.length.size();ctx={parent:ctx};}for(_i=0,_len=array.length;_i<_len;_i++){item=array[_i];size+=this.type.size(item,ctx);}return size;};ArrayT.prototype.encode=function(stream,array,parent){var ctx,i,item,ptr,_i,_len;ctx=parent;if(this.length instanceof NumberT){ctx={pointers:[],startOffset:stream.pos,parent:parent};ctx.pointerOffset=stream.pos+this.size(array,ctx);this.length.encode(stream,array.length);}for(_i=0,_len=array.length;_i<_len;_i++){item=array[_i];this.type.encode(stream,item,ctx);}if(this.length instanceof NumberT){i=0;while(i<ctx.pointers.length){ptr=ctx.pointers[i++];ptr.type.encode(stream,ptr.val);}}};return ArrayT;}();module.exports=ArrayT;}).call(this);/***/},/* 179 */ /***/function(module,exports,__nested_webpack_require_3338371__){// Generated by CoffeeScript 1.7.1\n(function(){var Struct,utils;utils=__nested_webpack_require_3338371__(26);Struct=function(){function Struct(fields){this.fields=fields!=null?fields:{};}Struct.prototype.decode=function(stream,parent,length){var res,_ref;if(length==null){length=0;}res=this._setup(stream,parent,length);this._parseFields(stream,res,this.fields);if((_ref=this.process)!=null){_ref.call(res,stream);}return res;};Struct.prototype._setup=function(stream,parent,length){var res;res={};Object.defineProperties(res,{parent:{value:parent},_startOffset:{value:stream.pos},_currentOffset:{value:0,writable:true},_length:{value:length}});return res;};Struct.prototype._parseFields=function(stream,res,fields){var key,type,val;for(key in fields){type=fields[key];if(typeof type==='function'){val=type.call(res,res);}else{val=type.decode(stream,res);}if(val!==void 0){if(val instanceof utils.PropertyDescriptor){Object.defineProperty(res,key,val);}else{res[key]=val;}}res._currentOffset=stream.pos-res._startOffset;}};Struct.prototype.size=function(val,parent,includePointers){var ctx,key,size,type,_ref;if(val==null){val={};}if(includePointers==null){includePointers=true;}ctx={parent:parent,val:val,pointerSize:0};size=0;_ref=this.fields;for(key in _ref){type=_ref[key];if(type.size!=null){size+=type.size(val[key],ctx);}}if(includePointers){size+=ctx.pointerSize;}return size;};Struct.prototype.encode=function(stream,val,parent){var ctx,i,key,ptr,type,_ref,_ref1;if((_ref=this.preEncode)!=null){_ref.call(val,stream);}ctx={pointers:[],startOffset:stream.pos,parent:parent,val:val,pointerSize:0};ctx.pointerOffset=stream.pos+this.size(val,ctx,false);_ref1=this.fields;for(key in _ref1){type=_ref1[key];if(type.encode!=null){type.encode(stream,val[key],ctx);}}i=0;while(i<ctx.pointers.length){ptr=ctx.pointers[i++];ptr.type.encode(stream,ptr.val,ptr.parent);}};return Struct;}();module.exports=Struct;}).call(this);/***/},/* 180 */ /***/function(module,exports,__nested_webpack_require_3340345__){module.exports=!__nested_webpack_require_3340345__(13)&&!__nested_webpack_require_3340345__(37)(function(){return Object.defineProperty(__nested_webpack_require_3340345__(181)('div'),'a',{get:function(){return 7;}}).a!=7;});/***/},/* 181 */ /***/function(module,exports,__nested_webpack_require_3340591__){var isObject=__nested_webpack_require_3340591__(20);var document=__nested_webpack_require_3340591__(21).document;// typeof document.createElement is 'object' in old IE\nvar is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{};};/***/},/* 182 */ /***/function(module,exports){module.exports=function(it){if(typeof it!='function')throw TypeError(it+' is not a function!');return it;};/***/},/* 183 */ /***/function(module,exports){module.exports=function(done,value){return{value:value,done:!!done};};/***/},/* 184 */ /***/function(module,exports,__nested_webpack_require_3341197__){module.exports=__nested_webpack_require_3341197__(27);/***/},/* 185 */ /***/function(module,exports,__nested_webpack_require_3341303__){var dP=__nested_webpack_require_3341303__(17);var anObject=__nested_webpack_require_3341303__(28);var getKeys=__nested_webpack_require_3341303__(59);module.exports=__nested_webpack_require_3341303__(13)?Object.defineProperties:function defineProperties(O,Properties){anObject(O);var keys=getKeys(Properties);var length=keys.length;var i=0;var P;while(length>i)dP.f(O,P=keys[i++],Properties[P]);return O;};/***/},/* 186 */ /***/function(module,exports,__nested_webpack_require_3341715__){var has=__nested_webpack_require_3341715__(36);var toIObject=__nested_webpack_require_3341715__(35);var arrayIndexOf=__nested_webpack_require_3341715__(340)(false);var IE_PROTO=__nested_webpack_require_3341715__(118)('IE_PROTO');module.exports=function(object,names){var O=toIObject(object);var i=0;var result=[];var key;for(key in O)if(key!=IE_PROTO)has(O,key)&&result.push(key);// Don't enum bug & hidden keys\nwhile(names.length>i)if(has(O,key=names[i++])){~arrayIndexOf(result,key)||result.push(key);}return result;};/***/},/* 187 */ /***/function(module,exports,__nested_webpack_require_3342242__){var toInteger=__nested_webpack_require_3342242__(117);var max=Math.max;var min=Math.min;module.exports=function(index,length){index=toInteger(index);return index<0?max(index+length,0):min(index,length);};/***/},/* 188 */ /***/function(module,exports,__nested_webpack_require_3342498__){// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof=__nested_webpack_require_3342498__(111);var TAG=__nested_webpack_require_3342498__(14)('toStringTag');// ES3 wrong here\nvar ARG=cof(function(){return arguments;}())=='Arguments';// fallback for IE11 Script Access Denied error\nvar tryGet=function(it,key){try{return it[key];}catch(e){/* empty */}};module.exports=function(it){var O,T,B;return it===undefined?'Undefined':it===null?'Null'// @@toStringTag case\n:typeof(T=tryGet(O=Object(it),TAG))=='string'?T// builtinTag case\n:ARG?cof(O)// ES3 arguments fallback\n:(B=cof(O))=='Object'&&typeof O.callee=='function'?'Arguments':B;};/***/},/* 189 */ /***/function(module,exports,__nested_webpack_require_3343177__){// 7.2.2 IsArray(argument)\nvar cof=__nested_webpack_require_3343177__(111);module.exports=Array.isArray||function isArray(arg){return cof(arg)=='Array';};/***/},/* 190 */ /***/function(module,exports,__nested_webpack_require_3343383__){// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys=__nested_webpack_require_3343383__(186);var hiddenKeys=__nested_webpack_require_3343383__(120).concat('length','prototype');exports.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return $keys(O,hiddenKeys);};/***/},/* 191 */ /***/function(module,exports,__nested_webpack_require_3343706__){module.exports={\"default\":__nested_webpack_require_3343706__(360),__esModule:true};/***/},/* 192 */ /***/function(module,exports,__nested_webpack_require_3343841__){\"use strict\";var dP=__nested_webpack_require_3343841__(17).f;var create=__nested_webpack_require_3343841__(76);var redefineAll=__nested_webpack_require_3343841__(193);var ctx=__nested_webpack_require_3343841__(38);var anInstance=__nested_webpack_require_3343841__(194);var forOf=__nested_webpack_require_3343841__(81);var $iterDefine=__nested_webpack_require_3343841__(116);var step=__nested_webpack_require_3343841__(183);var setSpecies=__nested_webpack_require_3343841__(367);var DESCRIPTORS=__nested_webpack_require_3343841__(13);var fastKey=__nested_webpack_require_3343841__(80).fastKey;var validate=__nested_webpack_require_3343841__(127);var SIZE=DESCRIPTORS?'_s':'size';var getEntry=function(that,key){// fast case\nvar index=fastKey(key);var entry;if(index!=='F')return that._i[index];// frozen object case\nfor(entry=that._f;entry;entry=entry.n){if(entry.k==key)return entry;}};module.exports={getConstructor:function(wrapper,NAME,IS_MAP,ADDER){var C=wrapper(function(that,iterable){anInstance(that,C,NAME,'_i');that._t=NAME;// collection type\nthat._i=create(null);// index\nthat._f=undefined;// first entry\nthat._l=undefined;// last entry\nthat[SIZE]=0;// size\nif(iterable!=undefined)forOf(iterable,IS_MAP,that[ADDER],that);});redefineAll(C.prototype,{// 23.1.3.1 Map.prototype.clear()\n// 23.2.3.2 Set.prototype.clear()\nclear:function clear(){for(var that=validate(this,NAME),data=that._i,entry=that._f;entry;entry=entry.n){entry.r=true;if(entry.p)entry.p=entry.p.n=undefined;delete data[entry.i];}that._f=that._l=undefined;that[SIZE]=0;},// 23.1.3.3 Map.prototype.delete(key)\n// 23.2.3.4 Set.prototype.delete(value)\n'delete':function(key){var that=validate(this,NAME);var entry=getEntry(that,key);if(entry){var next=entry.n;var prev=entry.p;delete that._i[entry.i];entry.r=true;if(prev)prev.n=next;if(next)next.p=prev;if(that._f==entry)that._f=next;if(that._l==entry)that._l=prev;that[SIZE]--;}return!!entry;},// 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n// 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\nforEach:function forEach(callbackfn/* , that = undefined */){validate(this,NAME);var f=ctx(callbackfn,arguments.length>1?arguments[1]:undefined,3);var entry;while(entry=entry?entry.n:this._f){f(entry.v,entry.k,this);// revert to the last existing entry\nwhile(entry&&entry.r)entry=entry.p;}},// 23.1.3.7 Map.prototype.has(key)\n// 23.2.3.7 Set.prototype.has(value)\nhas:function has(key){return!!getEntry(validate(this,NAME),key);}});if(DESCRIPTORS)dP(C.prototype,'size',{get:function(){return validate(this,NAME)[SIZE];}});return C;},def:function(that,key,value){var entry=getEntry(that,key);var prev,index;// change existing entry\nif(entry){entry.v=value;// create new entry\n}else{that._l=entry={i:index=fastKey(key,true),// <- index\nk:key,// <- key\nv:value,// <- value\np:prev=that._l,// <- previous entry\nn:undefined,// <- next entry\nr:false// <- removed\n};if(!that._f)that._f=entry;if(prev)prev.n=entry;that[SIZE]++;// add to index\nif(index!=='F')that._i[index]=entry;}return that;},getEntry:getEntry,setStrong:function(C,NAME,IS_MAP){// add .keys, .values, .entries, [@@iterator]\n// 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n$iterDefine(C,NAME,function(iterated,kind){this._t=validate(iterated,NAME);// target\nthis._k=kind;// kind\nthis._l=undefined;// previous\n},function(){var that=this;var kind=that._k;var entry=that._l;// revert to the last existing entry\nwhile(entry&&entry.r)entry=entry.p;// get next entry\nif(!that._t||!(that._l=entry=entry?entry.n:that._t._f)){// or finish the iteration\nthat._t=undefined;return step(1);}// return step by kind\nif(kind=='keys')return step(0,entry.k);if(kind=='values')return step(0,entry.v);return step(0,[entry.k,entry.v]);},IS_MAP?'entries':'values',!IS_MAP,true);// add [@@species], 23.1.2.2, 23.2.2.2\nsetSpecies(NAME);}};/***/},/* 193 */ /***/function(module,exports,__nested_webpack_require_3347590__){var hide=__nested_webpack_require_3347590__(27);module.exports=function(target,src,safe){for(var key in src){if(safe&&target[key])target[key]=src[key];else hide(target,key,src[key]);}return target;};/***/},/* 194 */ /***/function(module,exports){module.exports=function(it,Constructor,name,forbiddenField){if(!(it instanceof Constructor)||forbiddenField!==undefined&&forbiddenField in it){throw TypeError(name+': incorrect invocation!');}return it;};/***/},/* 195 */ /***/function(module,exports,__nested_webpack_require_3348092__){// call something on iterator step with safe closing on error\nvar anObject=__nested_webpack_require_3348092__(28);module.exports=function(iterator,fn,value,entries){try{return entries?fn(anObject(value)[0],value[1]):fn(value);// 7.4.6 IteratorClose(iterator, completion)\n}catch(e){var ret=iterator['return'];if(ret!==undefined)anObject(ret.call(iterator));throw e;}};/***/},/* 196 */ /***/function(module,exports,__nested_webpack_require_3348511__){// check on default Array iterator\nvar Iterators=__nested_webpack_require_3348511__(58);var ITERATOR=__nested_webpack_require_3348511__(14)('iterator');var ArrayProto=Array.prototype;module.exports=function(it){return it!==undefined&&(Iterators.Array===it||ArrayProto[ITERATOR]===it);};/***/},/* 197 */ /***/function(module,exports,__nested_webpack_require_3348834__){\"use strict\";var global=__nested_webpack_require_3348834__(21);var $export=__nested_webpack_require_3348834__(7);var meta=__nested_webpack_require_3348834__(80);var fails=__nested_webpack_require_3348834__(37);var hide=__nested_webpack_require_3348834__(27);var redefineAll=__nested_webpack_require_3348834__(193);var forOf=__nested_webpack_require_3348834__(81);var anInstance=__nested_webpack_require_3348834__(194);var isObject=__nested_webpack_require_3348834__(20);var setToStringTag=__nested_webpack_require_3348834__(79);var dP=__nested_webpack_require_3348834__(17).f;var each=__nested_webpack_require_3348834__(368)(0);var DESCRIPTORS=__nested_webpack_require_3348834__(13);module.exports=function(NAME,wrapper,methods,common,IS_MAP,IS_WEAK){var Base=global[NAME];var C=Base;var ADDER=IS_MAP?'set':'add';var proto=C&&C.prototype;var O={};if(!DESCRIPTORS||typeof C!='function'||!(IS_WEAK||proto.forEach&&!fails(function(){new C().entries().next();}))){// create collection constructor\nC=common.getConstructor(wrapper,NAME,IS_MAP,ADDER);redefineAll(C.prototype,methods);meta.NEED=true;}else{C=wrapper(function(target,iterable){anInstance(target,C,NAME,'_c');target._c=new Base();if(iterable!=undefined)forOf(iterable,IS_MAP,target[ADDER],target);});each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','),function(KEY){var IS_ADDER=KEY=='add'||KEY=='set';if(KEY in proto&&!(IS_WEAK&&KEY=='clear'))hide(C.prototype,KEY,function(a,b){anInstance(this,C,KEY);if(!IS_ADDER&&IS_WEAK&&!isObject(a))return KEY=='get'?undefined:false;var result=this._c[KEY](a===0?0:a,b);return IS_ADDER?this:result;});});IS_WEAK||dP(C.prototype,'size',{get:function(){return this._c.size;}});}setToStringTag(C,NAME);O[NAME]=C;$export($export.G+$export.W+$export.F,O);if(!IS_WEAK)common.setStrong(C,NAME,IS_MAP);return C;};/***/},/* 198 */ /***/function(module,exports,__nested_webpack_require_3350536__){// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar classof=__nested_webpack_require_3350536__(188);var from=__nested_webpack_require_3350536__(372);module.exports=function(NAME){return function toJSON(){if(classof(this)!=NAME)throw TypeError(NAME+\"#toJSON isn't generic\");return from(this);};};/***/},/* 199 */ /***/function(module,exports,__nested_webpack_require_3350879__){\"use strict\";// https://tc39.github.io/proposal-setmap-offrom/\nvar $export=__nested_webpack_require_3350879__(7);module.exports=function(COLLECTION){$export($export.S,COLLECTION,{of:function of(){var length=arguments.length;var A=new Array(length);while(length--)A[length]=arguments[length];return new this(A);}});};/***/},/* 200 */ /***/function(module,exports,__nested_webpack_require_3351247__){\"use strict\";// https://tc39.github.io/proposal-setmap-offrom/\nvar $export=__nested_webpack_require_3351247__(7);var aFunction=__nested_webpack_require_3351247__(182);var ctx=__nested_webpack_require_3351247__(38);var forOf=__nested_webpack_require_3351247__(81);module.exports=function(COLLECTION){$export($export.S,COLLECTION,{from:function from(source/* , mapFn, thisArg */){var mapFn=arguments[1];var mapping,A,n,cb;aFunction(this);mapping=mapFn!==undefined;if(mapping)aFunction(mapFn);if(source==undefined)return new this();A=[];if(mapping){n=0;cb=ctx(mapFn,arguments[2],2);forOf(source,false,function(nextItem){A.push(cb(nextItem,n++));});}else{forOf(source,false,A.push,A);}return new this(A);}});};/***/},/* 201 */ /***/function(module,exports,__nested_webpack_require_3351960__){\"use strict\";var slice=Array.prototype.slice;var isArgs=__nested_webpack_require_3351960__(202);var origKeys=Object.keys;var keysShim=origKeys?function keys(o){return origKeys(o);}:__nested_webpack_require_3351960__(388);var originalKeys=Object.keys;keysShim.shim=function shimObjectKeys(){if(Object.keys){var keysWorksWithArguments=function(){// Safari 5.0 bug\nvar args=Object.keys(arguments);return args&&args.length===arguments.length;}(1,2);if(!keysWorksWithArguments){Object.keys=function keys(object){// eslint-disable-line func-name-matching\nif(isArgs(object)){return originalKeys(slice.call(object));}return originalKeys(object);};}}else{Object.keys=keysShim;}return Object.keys||keysShim;};module.exports=keysShim;/***/},/* 202 */ /***/function(module,exports,__webpack_require__){\"use strict\";var toStr=Object.prototype.toString;module.exports=function isArguments(value){var str=toStr.call(value);var isArgs=str==='[object Arguments]';if(!isArgs){isArgs=str!=='[object Array]'&&value!==null&&typeof value==='object'&&typeof value.length==='number'&&value.length>=0&&toStr.call(value.callee)==='[object Function]';}return isArgs;};/***/},/* 203 */ /***/function(module,exports,__webpack_require__){\"use strict\";var $Object=Object;var $TypeError=TypeError;module.exports=function flags(){if(this!=null&&this!==$Object(this)){throw new $TypeError('RegExp.prototype.flags getter called on non-object');}var result='';if(this.global){result+='g';}if(this.ignoreCase){result+='i';}if(this.multiline){result+='m';}if(this.dotAll){result+='s';}if(this.unicode){result+='u';}if(this.sticky){result+='y';}return result;};/***/},/* 204 */ /***/function(module,exports,__nested_webpack_require_3353619__){\"use strict\";var implementation=__nested_webpack_require_3353619__(203);var supportsDescriptors=__nested_webpack_require_3353619__(129).supportsDescriptors;var $gOPD=Object.getOwnPropertyDescriptor;var $TypeError=TypeError;module.exports=function getPolyfill(){if(!supportsDescriptors){throw new $TypeError('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');}if(/a/mig.flags==='gim'){var descriptor=$gOPD(RegExp.prototype,'flags');if(descriptor&&typeof descriptor.get==='function'&&typeof /a/.dotAll==='boolean'){return descriptor.get;}}return implementation;};/***/},/* 205 */ /***/function(module,exports,__nested_webpack_require_3354259__){/* Copyright 2013 Google Inc. All Rights Reserved.\r\n    \r\n       Licensed under the Apache License, Version 2.0 (the \"License\");\r\n       you may not use this file except in compliance with the License.\r\n       You may obtain a copy of the License at\r\n    \r\n       http://www.apache.org/licenses/LICENSE-2.0\r\n    \r\n       Unless required by applicable law or agreed to in writing, software\r\n       distributed under the License is distributed on an \"AS IS\" BASIS,\r\n       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n       See the License for the specific language governing permissions and\r\n       limitations under the License.\r\n    */var BrotliInput=__nested_webpack_require_3354259__(206).BrotliInput;var BrotliOutput=__nested_webpack_require_3354259__(206).BrotliOutput;var BrotliBitReader=__nested_webpack_require_3354259__(432);var BrotliDictionary=__nested_webpack_require_3354259__(207);var HuffmanCode=__nested_webpack_require_3354259__(208).HuffmanCode;var BrotliBuildHuffmanTable=__nested_webpack_require_3354259__(208).BrotliBuildHuffmanTable;var Context=__nested_webpack_require_3354259__(436);var Prefix=__nested_webpack_require_3354259__(437);var Transform=__nested_webpack_require_3354259__(438);var kDefaultCodeLength=8;var kCodeLengthRepeatCode=16;var kNumLiteralCodes=256;var kNumInsertAndCopyCodes=704;var kNumBlockLengthCodes=26;var kLiteralContextBits=6;var kDistanceContextBits=2;var HUFFMAN_TABLE_BITS=8;var HUFFMAN_TABLE_MASK=0xff;/* Maximum possible Huffman table size for an alphabet size of 704, max code\r\n     * length 15 and root table bits 8. */var HUFFMAN_MAX_TABLE_SIZE=1080;var CODE_LENGTH_CODES=18;var kCodeLengthCodeOrder=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]);var NUM_DISTANCE_SHORT_CODES=16;var kDistanceShortCodeIndexOffset=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]);var kDistanceShortCodeValueOffset=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]);var kMaxHuffmanTableSize=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function DecodeWindowBits(br){var n;if(br.readBits(1)===0){return 16;}n=br.readBits(3);if(n>0){return 17+n;}n=br.readBits(3);if(n>0){return 8+n;}return 17;}/* Decodes a number in the range [0..255], by reading 1 - 11 bits. */function DecodeVarLenUint8(br){if(br.readBits(1)){var nbits=br.readBits(3);if(nbits===0){return 1;}else{return br.readBits(nbits)+(1<<nbits);}}return 0;}function MetaBlockLength(){this.meta_block_length=0;this.input_end=0;this.is_uncompressed=0;this.is_metadata=false;}function DecodeMetaBlockLength(br){var out=new MetaBlockLength();var size_nibbles;var size_bytes;var i;out.input_end=br.readBits(1);if(out.input_end&&br.readBits(1)){return out;}size_nibbles=br.readBits(2)+4;if(size_nibbles===7){out.is_metadata=true;if(br.readBits(1)!==0)throw new Error('Invalid reserved bit');size_bytes=br.readBits(2);if(size_bytes===0)return out;for(i=0;i<size_bytes;i++){var next_byte=br.readBits(8);if(i+1===size_bytes&&size_bytes>1&&next_byte===0)throw new Error('Invalid size byte');out.meta_block_length|=next_byte<<i*8;}}else{for(i=0;i<size_nibbles;++i){var next_nibble=br.readBits(4);if(i+1===size_nibbles&&size_nibbles>4&&next_nibble===0)throw new Error('Invalid size nibble');out.meta_block_length|=next_nibble<<i*4;}}++out.meta_block_length;if(!out.input_end&&!out.is_metadata){out.is_uncompressed=br.readBits(1);}return out;}/* Decodes the next Huffman code from bit-stream. */function ReadSymbol(table,index,br){var start_index=index;var nbits;br.fillBitWindow();index+=br.val_>>>br.bit_pos_&HUFFMAN_TABLE_MASK;nbits=table[index].bits-HUFFMAN_TABLE_BITS;if(nbits>0){br.bit_pos_+=HUFFMAN_TABLE_BITS;index+=table[index].value;index+=br.val_>>>br.bit_pos_&(1<<nbits)-1;}br.bit_pos_+=table[index].bits;return table[index].value;}function ReadHuffmanCodeLengths(code_length_code_lengths,num_symbols,code_lengths,br){var symbol=0;var prev_code_len=kDefaultCodeLength;var repeat=0;var repeat_code_len=0;var space=32768;var table=[];for(var i=0;i<32;i++)table.push(new HuffmanCode(0,0));BrotliBuildHuffmanTable(table,0,5,code_length_code_lengths,CODE_LENGTH_CODES);while(symbol<num_symbols&&space>0){var p=0;var code_len;br.readMoreInput();br.fillBitWindow();p+=br.val_>>>br.bit_pos_&31;br.bit_pos_+=table[p].bits;code_len=table[p].value&0xff;if(code_len<kCodeLengthRepeatCode){repeat=0;code_lengths[symbol++]=code_len;if(code_len!==0){prev_code_len=code_len;space-=32768>>code_len;}}else{var extra_bits=code_len-14;var old_repeat;var repeat_delta;var new_len=0;if(code_len===kCodeLengthRepeatCode){new_len=prev_code_len;}if(repeat_code_len!==new_len){repeat=0;repeat_code_len=new_len;}old_repeat=repeat;if(repeat>0){repeat-=2;repeat<<=extra_bits;}repeat+=br.readBits(extra_bits)+3;repeat_delta=repeat-old_repeat;if(symbol+repeat_delta>num_symbols){throw new Error('[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols');}for(var x=0;x<repeat_delta;x++)code_lengths[symbol+x]=repeat_code_len;symbol+=repeat_delta;if(repeat_code_len!==0){space-=repeat_delta<<15-repeat_code_len;}}}if(space!==0){throw new Error(\"[ReadHuffmanCodeLengths] space = \"+space);}for(;symbol<num_symbols;symbol++)code_lengths[symbol]=0;}function ReadHuffmanCode(alphabet_size,tables,table,br){var table_size=0;var simple_code_or_skip;var code_lengths=new Uint8Array(alphabet_size);br.readMoreInput();/* simple_code_or_skip is used as follows:\r\n         1 for simple code;\r\n         0 for no skipping, 2 skips 2 code lengths, 3 skips 3 code lengths */simple_code_or_skip=br.readBits(2);if(simple_code_or_skip===1){/* Read symbols, codes & code lengths directly. */var i;var max_bits_counter=alphabet_size-1;var max_bits=0;var symbols=new Int32Array(4);var num_symbols=br.readBits(2)+1;while(max_bits_counter){max_bits_counter>>=1;++max_bits;}for(i=0;i<num_symbols;++i){symbols[i]=br.readBits(max_bits)%alphabet_size;code_lengths[symbols[i]]=2;}code_lengths[symbols[0]]=1;switch(num_symbols){case 1:break;case 3:if(symbols[0]===symbols[1]||symbols[0]===symbols[2]||symbols[1]===symbols[2]){throw new Error('[ReadHuffmanCode] invalid symbols');}break;case 2:if(symbols[0]===symbols[1]){throw new Error('[ReadHuffmanCode] invalid symbols');}code_lengths[symbols[1]]=1;break;case 4:if(symbols[0]===symbols[1]||symbols[0]===symbols[2]||symbols[0]===symbols[3]||symbols[1]===symbols[2]||symbols[1]===symbols[3]||symbols[2]===symbols[3]){throw new Error('[ReadHuffmanCode] invalid symbols');}if(br.readBits(1)){code_lengths[symbols[2]]=3;code_lengths[symbols[3]]=3;}else{code_lengths[symbols[0]]=2;}break;}}else{/* Decode Huffman-coded code lengths. */var i;var code_length_code_lengths=new Uint8Array(CODE_LENGTH_CODES);var space=32;var num_codes=0;/* Static Huffman code for the code length code lengths */var huff=[new HuffmanCode(2,0),new HuffmanCode(2,4),new HuffmanCode(2,3),new HuffmanCode(3,2),new HuffmanCode(2,0),new HuffmanCode(2,4),new HuffmanCode(2,3),new HuffmanCode(4,1),new HuffmanCode(2,0),new HuffmanCode(2,4),new HuffmanCode(2,3),new HuffmanCode(3,2),new HuffmanCode(2,0),new HuffmanCode(2,4),new HuffmanCode(2,3),new HuffmanCode(4,5)];for(i=simple_code_or_skip;i<CODE_LENGTH_CODES&&space>0;++i){var code_len_idx=kCodeLengthCodeOrder[i];var p=0;var v;br.fillBitWindow();p+=br.val_>>>br.bit_pos_&15;br.bit_pos_+=huff[p].bits;v=huff[p].value;code_length_code_lengths[code_len_idx]=v;if(v!==0){space-=32>>v;++num_codes;}}if(!(num_codes===1||space===0))throw new Error('[ReadHuffmanCode] invalid num_codes or space');ReadHuffmanCodeLengths(code_length_code_lengths,alphabet_size,code_lengths,br);}table_size=BrotliBuildHuffmanTable(tables,table,HUFFMAN_TABLE_BITS,code_lengths,alphabet_size);if(table_size===0){throw new Error(\"[ReadHuffmanCode] BuildHuffmanTable failed: \");}return table_size;}function ReadBlockLength(table,index,br){var code;var nbits;code=ReadSymbol(table,index,br);nbits=Prefix.kBlockLengthPrefixCode[code].nbits;return Prefix.kBlockLengthPrefixCode[code].offset+br.readBits(nbits);}function TranslateShortCodes(code,ringbuffer,index){var val;if(code<NUM_DISTANCE_SHORT_CODES){index+=kDistanceShortCodeIndexOffset[code];index&=3;val=ringbuffer[index]+kDistanceShortCodeValueOffset[code];}else{val=code-NUM_DISTANCE_SHORT_CODES+1;}return val;}function MoveToFront(v,index){var value=v[index];var i=index;for(;i;--i)v[i]=v[i-1];v[0]=value;}function InverseMoveToFrontTransform(v,v_len){var mtf=new Uint8Array(256);var i;for(i=0;i<256;++i){mtf[i]=i;}for(i=0;i<v_len;++i){var index=v[i];v[i]=mtf[index];if(index)MoveToFront(mtf,index);}}/* Contains a collection of huffman trees with the same alphabet size. */function HuffmanTreeGroup(alphabet_size,num_htrees){this.alphabet_size=alphabet_size;this.num_htrees=num_htrees;this.codes=new Array(num_htrees+num_htrees*kMaxHuffmanTableSize[alphabet_size+31>>>5]);this.htrees=new Uint32Array(num_htrees);}HuffmanTreeGroup.prototype.decode=function(br){var i;var table_size;var next=0;for(i=0;i<this.num_htrees;++i){this.htrees[i]=next;table_size=ReadHuffmanCode(this.alphabet_size,this.codes,next,br);next+=table_size;}};function DecodeContextMap(context_map_size,br){var out={num_htrees:null,context_map:null};var use_rle_for_zeros;var max_run_length_prefix=0;var table;var i;br.readMoreInput();var num_htrees=out.num_htrees=DecodeVarLenUint8(br)+1;var context_map=out.context_map=new Uint8Array(context_map_size);if(num_htrees<=1){return out;}use_rle_for_zeros=br.readBits(1);if(use_rle_for_zeros){max_run_length_prefix=br.readBits(4)+1;}table=[];for(i=0;i<HUFFMAN_MAX_TABLE_SIZE;i++){table[i]=new HuffmanCode(0,0);}ReadHuffmanCode(num_htrees+max_run_length_prefix,table,0,br);for(i=0;i<context_map_size;){var code;br.readMoreInput();code=ReadSymbol(table,0,br);if(code===0){context_map[i]=0;++i;}else if(code<=max_run_length_prefix){var reps=1+(1<<code)+br.readBits(code);while(--reps){if(i>=context_map_size){throw new Error(\"[DecodeContextMap] i >= context_map_size\");}context_map[i]=0;++i;}}else{context_map[i]=code-max_run_length_prefix;++i;}}if(br.readBits(1)){InverseMoveToFrontTransform(context_map,context_map_size);}return out;}function DecodeBlockType(max_block_type,trees,tree_type,block_types,ringbuffers,indexes,br){var ringbuffer=tree_type*2;var index=tree_type;var type_code=ReadSymbol(trees,tree_type*HUFFMAN_MAX_TABLE_SIZE,br);var block_type;if(type_code===0){block_type=ringbuffers[ringbuffer+(indexes[index]&1)];}else if(type_code===1){block_type=ringbuffers[ringbuffer+(indexes[index]-1&1)]+1;}else{block_type=type_code-2;}if(block_type>=max_block_type){block_type-=max_block_type;}block_types[tree_type]=block_type;ringbuffers[ringbuffer+(indexes[index]&1)]=block_type;++indexes[index];}function CopyUncompressedBlockToOutput(output,len,pos,ringbuffer,ringbuffer_mask,br){var rb_size=ringbuffer_mask+1;var rb_pos=pos&ringbuffer_mask;var br_pos=br.pos_&BrotliBitReader.IBUF_MASK;var nbytes;/* For short lengths copy byte-by-byte */if(len<8||br.bit_pos_+(len<<3)<br.bit_end_pos_){while(len-->0){br.readMoreInput();ringbuffer[rb_pos++]=br.readBits(8);if(rb_pos===rb_size){output.write(ringbuffer,rb_size);rb_pos=0;}}return;}if(br.bit_end_pos_<32){throw new Error('[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32');}/* Copy remaining 0-4 bytes from br.val_ to ringbuffer. */while(br.bit_pos_<32){ringbuffer[rb_pos]=br.val_>>>br.bit_pos_;br.bit_pos_+=8;++rb_pos;--len;}/* Copy remaining bytes from br.buf_ to ringbuffer. */nbytes=br.bit_end_pos_-br.bit_pos_>>3;if(br_pos+nbytes>BrotliBitReader.IBUF_MASK){var tail=BrotliBitReader.IBUF_MASK+1-br_pos;for(var x=0;x<tail;x++)ringbuffer[rb_pos+x]=br.buf_[br_pos+x];nbytes-=tail;rb_pos+=tail;len-=tail;br_pos=0;}for(var x=0;x<nbytes;x++)ringbuffer[rb_pos+x]=br.buf_[br_pos+x];rb_pos+=nbytes;len-=nbytes;/* If we wrote past the logical end of the ringbuffer, copy the tail of the\r\n         ringbuffer to its beginning and flush the ringbuffer to the output. */if(rb_pos>=rb_size){output.write(ringbuffer,rb_size);rb_pos-=rb_size;for(var x=0;x<rb_pos;x++)ringbuffer[x]=ringbuffer[rb_size+x];}/* If we have more to copy than the remaining size of the ringbuffer, then we\r\n         first fill the ringbuffer from the input and then flush the ringbuffer to\r\n         the output */while(rb_pos+len>=rb_size){nbytes=rb_size-rb_pos;if(br.input_.read(ringbuffer,rb_pos,nbytes)<nbytes){throw new Error('[CopyUncompressedBlockToOutput] not enough bytes');}output.write(ringbuffer,rb_size);len-=nbytes;rb_pos=0;}/* Copy straight from the input onto the ringbuffer. The ringbuffer will be\r\n         flushed to the output at a later time. */if(br.input_.read(ringbuffer,rb_pos,len)<len){throw new Error('[CopyUncompressedBlockToOutput] not enough bytes');}/* Restore the state of the bit reader. */br.reset();}/* Advances the bit reader position to the next byte boundary and verifies\r\n       that any skipped bits are set to zero. */function JumpToByteBoundary(br){var new_bit_pos=br.bit_pos_+7&~7;var pad_bits=br.readBits(new_bit_pos-br.bit_pos_);return pad_bits==0;}function BrotliDecompressedSize(buffer){var input=new BrotliInput(buffer);var br=new BrotliBitReader(input);DecodeWindowBits(br);var out=DecodeMetaBlockLength(br);return out.meta_block_length;}exports.BrotliDecompressedSize=BrotliDecompressedSize;function BrotliDecompressBuffer(buffer,output_size){var input=new BrotliInput(buffer);if(output_size==null){output_size=BrotliDecompressedSize(buffer);}var output_buffer=new Uint8Array(output_size);var output=new BrotliOutput(output_buffer);BrotliDecompress(input,output);if(output.pos<output.buffer.length){output.buffer=output.buffer.subarray(0,output.pos);}return output.buffer;}exports.BrotliDecompressBuffer=BrotliDecompressBuffer;function BrotliDecompress(input,output){var i;var pos=0;var input_end=0;var window_bits=0;var max_backward_distance;var max_distance=0;var ringbuffer_size;var ringbuffer_mask;var ringbuffer;var ringbuffer_end;/* This ring buffer holds a few past copy distances that will be used by */ /* some special distance codes. */var dist_rb=[16,15,11,4];var dist_rb_idx=0;/* The previous 2 bytes used for context. */var prev_byte1=0;var prev_byte2=0;var hgroup=[new HuffmanTreeGroup(0,0),new HuffmanTreeGroup(0,0),new HuffmanTreeGroup(0,0)];var block_type_trees;var block_len_trees;var br;/* We need the slack region for the following reasons:\r\n           - always doing two 8-byte copies for fast backward copying\r\n           - transforms\r\n           - flushing the input ringbuffer when decoding uncompressed blocks */var kRingBufferWriteAheadSlack=128+BrotliBitReader.READ_SIZE;br=new BrotliBitReader(input);/* Decode window size. */window_bits=DecodeWindowBits(br);max_backward_distance=(1<<window_bits)-16;ringbuffer_size=1<<window_bits;ringbuffer_mask=ringbuffer_size-1;ringbuffer=new Uint8Array(ringbuffer_size+kRingBufferWriteAheadSlack+BrotliDictionary.maxDictionaryWordLength);ringbuffer_end=ringbuffer_size;block_type_trees=[];block_len_trees=[];for(var x=0;x<3*HUFFMAN_MAX_TABLE_SIZE;x++){block_type_trees[x]=new HuffmanCode(0,0);block_len_trees[x]=new HuffmanCode(0,0);}while(!input_end){var meta_block_remaining_len=0;var is_uncompressed;var block_length=[1<<28,1<<28,1<<28];var block_type=[0];var num_block_types=[1,1,1];var block_type_rb=[0,1,0,1,0,1];var block_type_rb_index=[0];var distance_postfix_bits;var num_direct_distance_codes;var distance_postfix_mask;var num_distance_codes;var context_map=null;var context_modes=null;var num_literal_htrees;var dist_context_map=null;var num_dist_htrees;var context_offset=0;var context_map_slice=null;var literal_htree_index=0;var dist_context_offset=0;var dist_context_map_slice=null;var dist_htree_index=0;var context_lookup_offset1=0;var context_lookup_offset2=0;var context_mode;var htree_command;for(i=0;i<3;++i){hgroup[i].codes=null;hgroup[i].htrees=null;}br.readMoreInput();var _out=DecodeMetaBlockLength(br);meta_block_remaining_len=_out.meta_block_length;if(pos+meta_block_remaining_len>output.buffer.length){/* We need to grow the output buffer to fit the additional data. */var tmp=new Uint8Array(pos+meta_block_remaining_len);tmp.set(output.buffer);output.buffer=tmp;}input_end=_out.input_end;is_uncompressed=_out.is_uncompressed;if(_out.is_metadata){JumpToByteBoundary(br);for(;meta_block_remaining_len>0;--meta_block_remaining_len){br.readMoreInput();/* Read one byte and ignore it. */br.readBits(8);}continue;}if(meta_block_remaining_len===0){continue;}if(is_uncompressed){br.bit_pos_=br.bit_pos_+7&~7;CopyUncompressedBlockToOutput(output,meta_block_remaining_len,pos,ringbuffer,ringbuffer_mask,br);pos+=meta_block_remaining_len;continue;}for(i=0;i<3;++i){num_block_types[i]=DecodeVarLenUint8(br)+1;if(num_block_types[i]>=2){ReadHuffmanCode(num_block_types[i]+2,block_type_trees,i*HUFFMAN_MAX_TABLE_SIZE,br);ReadHuffmanCode(kNumBlockLengthCodes,block_len_trees,i*HUFFMAN_MAX_TABLE_SIZE,br);block_length[i]=ReadBlockLength(block_len_trees,i*HUFFMAN_MAX_TABLE_SIZE,br);block_type_rb_index[i]=1;}}br.readMoreInput();distance_postfix_bits=br.readBits(2);num_direct_distance_codes=NUM_DISTANCE_SHORT_CODES+(br.readBits(4)<<distance_postfix_bits);distance_postfix_mask=(1<<distance_postfix_bits)-1;num_distance_codes=num_direct_distance_codes+(48<<distance_postfix_bits);context_modes=new Uint8Array(num_block_types[0]);for(i=0;i<num_block_types[0];++i){br.readMoreInput();context_modes[i]=br.readBits(2)<<1;}var _o1=DecodeContextMap(num_block_types[0]<<kLiteralContextBits,br);num_literal_htrees=_o1.num_htrees;context_map=_o1.context_map;var _o2=DecodeContextMap(num_block_types[2]<<kDistanceContextBits,br);num_dist_htrees=_o2.num_htrees;dist_context_map=_o2.context_map;hgroup[0]=new HuffmanTreeGroup(kNumLiteralCodes,num_literal_htrees);hgroup[1]=new HuffmanTreeGroup(kNumInsertAndCopyCodes,num_block_types[1]);hgroup[2]=new HuffmanTreeGroup(num_distance_codes,num_dist_htrees);for(i=0;i<3;++i){hgroup[i].decode(br);}context_map_slice=0;dist_context_map_slice=0;context_mode=context_modes[block_type[0]];context_lookup_offset1=Context.lookupOffsets[context_mode];context_lookup_offset2=Context.lookupOffsets[context_mode+1];htree_command=hgroup[1].htrees[0];while(meta_block_remaining_len>0){var cmd_code;var range_idx;var insert_code;var copy_code;var insert_length;var copy_length;var distance_code;var distance;var context;var j;var copy_dst;br.readMoreInput();if(block_length[1]===0){DecodeBlockType(num_block_types[1],block_type_trees,1,block_type,block_type_rb,block_type_rb_index,br);block_length[1]=ReadBlockLength(block_len_trees,HUFFMAN_MAX_TABLE_SIZE,br);htree_command=hgroup[1].htrees[block_type[1]];}--block_length[1];cmd_code=ReadSymbol(hgroup[1].codes,htree_command,br);range_idx=cmd_code>>6;if(range_idx>=2){range_idx-=2;distance_code=-1;}else{distance_code=0;}insert_code=Prefix.kInsertRangeLut[range_idx]+(cmd_code>>3&7);copy_code=Prefix.kCopyRangeLut[range_idx]+(cmd_code&7);insert_length=Prefix.kInsertLengthPrefixCode[insert_code].offset+br.readBits(Prefix.kInsertLengthPrefixCode[insert_code].nbits);copy_length=Prefix.kCopyLengthPrefixCode[copy_code].offset+br.readBits(Prefix.kCopyLengthPrefixCode[copy_code].nbits);prev_byte1=ringbuffer[pos-1&ringbuffer_mask];prev_byte2=ringbuffer[pos-2&ringbuffer_mask];for(j=0;j<insert_length;++j){br.readMoreInput();if(block_length[0]===0){DecodeBlockType(num_block_types[0],block_type_trees,0,block_type,block_type_rb,block_type_rb_index,br);block_length[0]=ReadBlockLength(block_len_trees,0,br);context_offset=block_type[0]<<kLiteralContextBits;context_map_slice=context_offset;context_mode=context_modes[block_type[0]];context_lookup_offset1=Context.lookupOffsets[context_mode];context_lookup_offset2=Context.lookupOffsets[context_mode+1];}context=Context.lookup[context_lookup_offset1+prev_byte1]|Context.lookup[context_lookup_offset2+prev_byte2];literal_htree_index=context_map[context_map_slice+context];--block_length[0];prev_byte2=prev_byte1;prev_byte1=ReadSymbol(hgroup[0].codes,hgroup[0].htrees[literal_htree_index],br);ringbuffer[pos&ringbuffer_mask]=prev_byte1;if((pos&ringbuffer_mask)===ringbuffer_mask){output.write(ringbuffer,ringbuffer_size);}++pos;}meta_block_remaining_len-=insert_length;if(meta_block_remaining_len<=0)break;if(distance_code<0){var context;br.readMoreInput();if(block_length[2]===0){DecodeBlockType(num_block_types[2],block_type_trees,2,block_type,block_type_rb,block_type_rb_index,br);block_length[2]=ReadBlockLength(block_len_trees,2*HUFFMAN_MAX_TABLE_SIZE,br);dist_context_offset=block_type[2]<<kDistanceContextBits;dist_context_map_slice=dist_context_offset;}--block_length[2];context=(copy_length>4?3:copy_length-2)&0xff;dist_htree_index=dist_context_map[dist_context_map_slice+context];distance_code=ReadSymbol(hgroup[2].codes,hgroup[2].htrees[dist_htree_index],br);if(distance_code>=num_direct_distance_codes){var nbits;var postfix;var offset;distance_code-=num_direct_distance_codes;postfix=distance_code&distance_postfix_mask;distance_code>>=distance_postfix_bits;nbits=(distance_code>>1)+1;offset=(2+(distance_code&1)<<nbits)-4;distance_code=num_direct_distance_codes+(offset+br.readBits(nbits)<<distance_postfix_bits)+postfix;}}/* Convert the distance code to the actual distance by possibly looking */ /* up past distnaces from the ringbuffer. */distance=TranslateShortCodes(distance_code,dist_rb,dist_rb_idx);if(distance<0){throw new Error('[BrotliDecompress] invalid distance');}if(pos<max_backward_distance&&max_distance!==max_backward_distance){max_distance=pos;}else{max_distance=max_backward_distance;}copy_dst=pos&ringbuffer_mask;if(distance>max_distance){if(copy_length>=BrotliDictionary.minDictionaryWordLength&&copy_length<=BrotliDictionary.maxDictionaryWordLength){var offset=BrotliDictionary.offsetsByLength[copy_length];var word_id=distance-max_distance-1;var shift=BrotliDictionary.sizeBitsByLength[copy_length];var mask=(1<<shift)-1;var word_idx=word_id&mask;var transform_idx=word_id>>shift;offset+=word_idx*copy_length;if(transform_idx<Transform.kNumTransforms){var len=Transform.transformDictionaryWord(ringbuffer,copy_dst,offset,copy_length,transform_idx);copy_dst+=len;pos+=len;meta_block_remaining_len-=len;if(copy_dst>=ringbuffer_end){output.write(ringbuffer,ringbuffer_size);for(var _x=0;_x<copy_dst-ringbuffer_end;_x++)ringbuffer[_x]=ringbuffer[ringbuffer_end+_x];}}else{throw new Error(\"Invalid backward reference. pos: \"+pos+\" distance: \"+distance+\" len: \"+copy_length+\" bytes left: \"+meta_block_remaining_len);}}else{throw new Error(\"Invalid backward reference. pos: \"+pos+\" distance: \"+distance+\" len: \"+copy_length+\" bytes left: \"+meta_block_remaining_len);}}else{if(distance_code>0){dist_rb[dist_rb_idx&3]=distance;++dist_rb_idx;}if(copy_length>meta_block_remaining_len){throw new Error(\"Invalid backward reference. pos: \"+pos+\" distance: \"+distance+\" len: \"+copy_length+\" bytes left: \"+meta_block_remaining_len);}for(j=0;j<copy_length;++j){ringbuffer[pos&ringbuffer_mask]=ringbuffer[pos-distance&ringbuffer_mask];if((pos&ringbuffer_mask)===ringbuffer_mask){output.write(ringbuffer,ringbuffer_size);}++pos;--meta_block_remaining_len;}}/* When we get here, we must have inserted at least one literal and */ /* made a copy of at least length two, therefore accessing the last 2 */ /* bytes is valid. */prev_byte1=ringbuffer[pos-1&ringbuffer_mask];prev_byte2=ringbuffer[pos-2&ringbuffer_mask];}/* Protect pos from overflow, wrap it around at every GB of input data */pos&=0x3fffffff;}output.write(ringbuffer,pos&ringbuffer_mask);}exports.BrotliDecompress=BrotliDecompress;BrotliDictionary.init();/***/},/* 206 */ /***/function(module,exports){function BrotliInput(buffer){this.buffer=buffer;this.pos=0;}BrotliInput.prototype.read=function(buf,i,count){if(this.pos+count>this.buffer.length){count=this.buffer.length-this.pos;}for(var p=0;p<count;p++)buf[i+p]=this.buffer[this.pos+p];this.pos+=count;return count;};exports.BrotliInput=BrotliInput;function BrotliOutput(buf){this.buffer=buf;this.pos=0;}BrotliOutput.prototype.write=function(buf,count){if(this.pos+count>this.buffer.length)throw new Error('Output buffer is not large enough');this.buffer.set(buf.subarray(0,count),this.pos);this.pos+=count;return count;};exports.BrotliOutput=BrotliOutput;/***/},/* 207 */ /***/function(module,exports,__nested_webpack_require_3378316__){/* Copyright 2013 Google Inc. All Rights Reserved.\r\n    \r\n       Licensed under the Apache License, Version 2.0 (the \"License\");\r\n       you may not use this file except in compliance with the License.\r\n       You may obtain a copy of the License at\r\n    \r\n       http://www.apache.org/licenses/LICENSE-2.0\r\n    \r\n       Unless required by applicable law or agreed to in writing, software\r\n       distributed under the License is distributed on an \"AS IS\" BASIS,\r\n       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n       See the License for the specific language governing permissions and\r\n       limitations under the License.\r\n    \r\n       Collection of static dictionary words.\r\n    */var data=__nested_webpack_require_3378316__(433);exports.init=function(){exports.dictionary=data.init();};exports.offsetsByLength=new Uint32Array([0,0,0,0,0,4096,9216,21504,35840,44032,53248,63488,74752,87040,93696,100864,104704,106752,108928,113536,115968,118528,119872,121280,122016]);exports.sizeBitsByLength=new Uint8Array([0,0,0,0,10,10,11,11,10,10,10,10,10,9,9,8,7,7,8,7,7,6,6,5,5]);exports.minDictionaryWordLength=4;exports.maxDictionaryWordLength=24;/***/},/* 208 */ /***/function(module,exports){function HuffmanCode(bits,value){this.bits=bits;/* number of bits used for this symbol */this.value=value;/* symbol value or table offset */}exports.HuffmanCode=HuffmanCode;var MAX_LENGTH=15;/* Returns reverse(reverse(key, len) + 1, len), where reverse(key, len) is the\r\n       bit-wise reversal of the len least significant bits of key. */function GetNextKey(key,len){var step=1<<len-1;while(key&step){step>>=1;}return(key&step-1)+step;}/* Stores code in table[0], table[step], table[2*step], ..., table[end] */ /* Assumes that end is an integer multiple of step */function ReplicateValue(table,i,step,end,code){do{end-=step;table[i+end]=new HuffmanCode(code.bits,code.value);}while(end>0);}/* Returns the table width of the next 2nd level table. count is the histogram\r\n       of bit lengths for the remaining symbols, len is the code length of the next\r\n       processed symbol */function NextTableBitSize(count,len,root_bits){var left=1<<len-root_bits;while(len<MAX_LENGTH){left-=count[len];if(left<=0)break;++len;left<<=1;}return len-root_bits;}exports.BrotliBuildHuffmanTable=function(root_table,table,root_bits,code_lengths,code_lengths_size){var start_table=table;var code;/* current table entry */var len;/* current code length */var symbol;/* symbol index in original or sorted table */var key;/* reversed prefix code */var step;/* step size to replicate values in current table */var low;/* low bits for current root entry */var mask;/* mask for low bits */var table_bits;/* key length of current table */var table_size;/* size of current table */var total_size;/* sum of root table size and 2nd level table sizes */var sorted;/* symbols sorted by code length */var count=new Int32Array(MAX_LENGTH+1);/* number of codes of each length */var offset=new Int32Array(MAX_LENGTH+1);/* offsets in sorted table for each length */sorted=new Int32Array(code_lengths_size);/* build histogram of code lengths */for(symbol=0;symbol<code_lengths_size;symbol++){count[code_lengths[symbol]]++;}/* generate offsets into sorted symbol table by code length */offset[1]=0;for(len=1;len<MAX_LENGTH;len++){offset[len+1]=offset[len]+count[len];}/* sort symbols by length, by symbol order within each length */for(symbol=0;symbol<code_lengths_size;symbol++){if(code_lengths[symbol]!==0){sorted[offset[code_lengths[symbol]]++]=symbol;}}table_bits=root_bits;table_size=1<<table_bits;total_size=table_size;/* special case code with only one value */if(offset[MAX_LENGTH]===1){for(key=0;key<total_size;++key){root_table[table+key]=new HuffmanCode(0,sorted[0]&0xffff);}return total_size;}/* fill in root table */key=0;symbol=0;for(len=1,step=2;len<=root_bits;++len,step<<=1){for(;count[len]>0;--count[len]){code=new HuffmanCode(len&0xff,sorted[symbol++]&0xffff);ReplicateValue(root_table,table+key,step,table_size,code);key=GetNextKey(key,len);}}/* fill in 2nd level tables and add pointers to root table */mask=total_size-1;low=-1;for(len=root_bits+1,step=2;len<=MAX_LENGTH;++len,step<<=1){for(;count[len]>0;--count[len]){if((key&mask)!==low){table+=table_size;table_bits=NextTableBitSize(count,len,root_bits);table_size=1<<table_bits;total_size+=table_size;low=key&mask;root_table[start_table+low]=new HuffmanCode(table_bits+root_bits&0xff,table-start_table-low&0xffff);}code=new HuffmanCode(len-root_bits&0xff,sorted[symbol++]&0xffff);ReplicateValue(root_table,table+(key>>root_bits),step,table_size,code);key=GetNextKey(key,len);}}return total_size;};/***/},/* 209 */ /***/function(module,exports,__nested_webpack_require_3383030__){\"use strict\";var AI,AL,BA,BK,CB,CJ,CR,ID,LF,NL,NS,SA,SG,SP,WJ,XX;var UnicodeTrie=__nested_webpack_require_3383030__(439);var base64=__nested_webpack_require_3383030__(440);var _require=__nested_webpack_require_3383030__(441);BK=_require.BK;CR=_require.CR;LF=_require.LF;NL=_require.NL;CB=_require.CB;BA=_require.BA;SP=_require.SP;WJ=_require.WJ;SP=_require.SP;BK=_require.BK;LF=_require.LF;NL=_require.NL;AI=_require.AI;AL=_require.AL;SA=_require.SA;SG=_require.SG;XX=_require.XX;CJ=_require.CJ;ID=_require.ID;NS=_require.NS;var _require2=__nested_webpack_require_3383030__(442),DI_BRK=_require2.DI_BRK,IN_BRK=_require2.IN_BRK,CI_BRK=_require2.CI_BRK,CP_BRK=_require2.CP_BRK,PR_BRK=_require2.PR_BRK,pairTable=_require2.pairTable;var data=base64.toByteArray(\" \");var classTrie=new UnicodeTrie(data);var mapClass=function mapClass(c){switch(c){case AI:return AL;case SA:case SG:case XX:return AL;case CJ:return NS;default:return c;}};var mapFirst=function mapFirst(c){switch(c){case LF:case NL:return BK;case CB:return BA;case SP:return WJ;default:return c;}};var Break=function Break(position,required){if(required===void 0){required=false;}this.position=position;this.required=required;};;var LineBreaker=/*#__PURE__*/function(){function LineBreaker(string){this.string=string;this.pos=0;this.lastPos=0;this.curClass=null;this.nextClass=null;}var _proto=LineBreaker.prototype;_proto.nextCodePoint=function nextCodePoint(){var code=this.string.charCodeAt(this.pos++);var next=this.string.charCodeAt(this.pos);// If a surrogate pair\nif(0xd800<=code&&code<=0xdbff&&0xdc00<=next&&next<=0xdfff){this.pos++;return(code-0xd800)*0x400+(next-0xdc00)+0x10000;}return code;};_proto.nextCharClass=function nextCharClass(){return mapClass(classTrie.get(this.nextCodePoint()));};_proto.nextBreak=function nextBreak(){// get the first char if we're at the beginning of the string\nif(this.curClass==null){this.curClass=mapFirst(this.nextCharClass());}while(this.pos<this.string.length){this.lastPos=this.pos;var lastClass=this.nextClass;this.nextClass=this.nextCharClass();// explicit newline\nif(this.curClass===BK||this.curClass===CR&&this.nextClass!==LF){this.curClass=mapFirst(mapClass(this.nextClass));return new Break(this.lastPos,true);}// handle classes not handled by the pair table\nvar cur=void 0;switch(this.nextClass){case SP:cur=this.curClass;break;case BK:case LF:case NL:cur=BK;break;case CR:cur=CR;break;case CB:cur=BA;break;}if(cur!=null){this.curClass=cur;if(this.nextClass===CB){return new Break(this.lastPos);}continue;}// if not handled already, use the pair table\nvar shouldBreak=false;switch(pairTable[this.curClass][this.nextClass]){case DI_BRK:// Direct break\nshouldBreak=true;break;case IN_BRK:// possible indirect break\nshouldBreak=lastClass===SP;break;case CI_BRK:shouldBreak=lastClass===SP;if(!shouldBreak){continue;}break;case CP_BRK:// prohibited for combining marks\nif(lastClass!==SP){continue;}break;}this.curClass=this.nextClass;if(shouldBreak){return new Break(this.lastPos);}}if(this.pos>=this.string.length){if(this.lastPos<this.string.length){this.lastPos=this.string.length;return new Break(this.string.length);}else{return null;}}};return LineBreaker;}();;module.exports=LineBreaker;/***/},/* 210 */ /***/function(module,exports,__webpack_require__){\"use strict\";function TraversalTracker(){this.events={};}TraversalTracker.prototype.startTracking=function(event,callback){var callbacks=this.events[event]||(this.events[event]=[]);if(callbacks.indexOf(callback)<0){callbacks.push(callback);}};TraversalTracker.prototype.stopTracking=function(event,callback){var callbacks=this.events[event];if(!callbacks){return;}var index=callbacks.indexOf(callback);if(index>=0){callbacks.splice(index,1);}};TraversalTracker.prototype.emit=function(event){var args=Array.prototype.slice.call(arguments,1);var callbacks=this.events[event];if(!callbacks){return;}callbacks.forEach(function(callback){callback.apply(this,args);});};TraversalTracker.prototype.auto=function(event,callback,innerFunction){this.startTracking(event,callback);innerFunction();this.stopTracking(event,callback);};module.exports=TraversalTracker;/***/},/* 211 */ /***/function(module,exports,__nested_webpack_require_3391884__){\"use strict\";var isString=__nested_webpack_require_3391884__(0).isString;var isArray=__nested_webpack_require_3391884__(0).isArray;var isUndefined=__nested_webpack_require_3391884__(0).isUndefined;var isNull=__nested_webpack_require_3391884__(0).isNull;/**\r\n     * Creates an instance of StyleContextStack used for style inheritance and style overrides\r\n     *\r\n     * @constructor\r\n     * @this {StyleContextStack}\r\n     * @param {Object} named styles dictionary\r\n     * @param {Object} optional default style definition\r\n     */function StyleContextStack(styleDictionary,defaultStyle){this.defaultStyle=defaultStyle||{};this.styleDictionary=styleDictionary;this.styleOverrides=[];}/**\r\n     * Creates cloned version of current stack\r\n     * @return {StyleContextStack} current stack snapshot\r\n     */StyleContextStack.prototype.clone=function(){var stack=new StyleContextStack(this.styleDictionary,this.defaultStyle);this.styleOverrides.forEach(function(item){stack.styleOverrides.push(item);});return stack;};/**\r\n     * Pushes style-name or style-overrides-object onto the stack for future evaluation\r\n     *\r\n     * @param {String|Object} styleNameOrOverride style-name (referring to styleDictionary) or\r\n     *                                            a new dictionary defining overriding properties\r\n     */StyleContextStack.prototype.push=function(styleNameOrOverride){this.styleOverrides.push(styleNameOrOverride);};/**\r\n     * Removes last style-name or style-overrides-object from the stack\r\n     *\r\n     * @param {Number} howMany - optional number of elements to be popped (if not specified,\r\n     *                           one element will be removed from the stack)\r\n     */StyleContextStack.prototype.pop=function(howMany){howMany=howMany||1;while(howMany-->0){this.styleOverrides.pop();}};/**\r\n     * Creates a set of named styles or/and a style-overrides-object based on the item,\r\n     * pushes those elements onto the stack for future evaluation and returns the number\r\n     * of elements pushed, so they can be easily poped then.\r\n     *\r\n     * @param {Object} item - an object with optional style property and/or style overrides\r\n     * @return the number of items pushed onto the stack\r\n     */StyleContextStack.prototype.autopush=function(item){if(isString(item)){return 0;}var styleNames=[];if(item.style){if(isArray(item.style)){styleNames=item.style;}else{styleNames=[item.style];}}for(var i=0,l=styleNames.length;i<l;i++){this.push(styleNames[i]);}var styleProperties=['font','fontSize','fontFeatures','bold','italics','alignment','color','columnGap','fillColor','decoration','decorationStyle','decorationColor','background','lineHeight','characterSpacing','noWrap','markerColor','leadingIndent'//'tableCellPadding'\n// 'cellBorder',\n// 'headerCellBorder',\n// 'oddRowCellBorder',\n// 'evenRowCellBorder',\n// 'tableBorder'\n];var styleOverrideObject={};var pushStyleOverrideObject=false;styleProperties.forEach(function(key){if(!isUndefined(item[key])&&!isNull(item[key])){styleOverrideObject[key]=item[key];pushStyleOverrideObject=true;}});if(pushStyleOverrideObject){this.push(styleOverrideObject);}return styleNames.length+(pushStyleOverrideObject?1:0);};/**\r\n     * Automatically pushes elements onto the stack, using autopush based on item,\r\n     * executes callback and then pops elements back. Returns value returned by callback\r\n     *\r\n     * @param  {Object}   item - an object with optional style property and/or style overrides\r\n     * @param  {Function} function to be called between autopush and pop\r\n     * @return {Object} value returned by callback\r\n     */StyleContextStack.prototype.auto=function(item,callback){var pushedItems=this.autopush(item);var result=callback();if(pushedItems>0){this.pop(pushedItems);}return result;};/**\r\n     * Evaluates stack and returns value of a named property\r\n     *\r\n     * @param {String} property - property name\r\n     * @return property value or null if not found\r\n     */StyleContextStack.prototype.getProperty=function(property){if(this.styleOverrides){for(var i=this.styleOverrides.length-1;i>=0;i--){var item=this.styleOverrides[i];if(isString(item)){// named-style-override\nvar style=this.styleDictionary[item];if(style&&!isUndefined(style[property])&&!isNull(style[property])){return style[property];}}else if(!isUndefined(item[property])&&!isNull(item[property])){// style-overrides-object\nreturn item[property];}}}return this.defaultStyle&&this.defaultStyle[property];};module.exports=StyleContextStack;/***/},/* 212 */ /***/function(module,exports,__nested_webpack_require_3396387__){\"use strict\";var TraversalTracker=__nested_webpack_require_3396387__(210);var isString=__nested_webpack_require_3396387__(0).isString;/**\r\n     * Creates an instance of DocumentContext - a store for current x, y positions and available width/height.\r\n     * It facilitates column divisions and vertical sync\r\n     */function DocumentContext(pageSize,pageMargins){this.pages=[];this.pageMargins=pageMargins;this.x=pageMargins.left;this.availableWidth=pageSize.width-pageMargins.left-pageMargins.right;this.availableHeight=0;this.page=-1;this.snapshots=[];this.endingCell=null;this.tracker=new TraversalTracker();this.backgroundLength=[];this.addPage(pageSize);}DocumentContext.prototype.beginColumnGroup=function(){this.snapshots.push({x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,page:this.page,bottomMost:{x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,page:this.page},endingCell:this.endingCell,lastColumnWidth:this.lastColumnWidth});this.lastColumnWidth=0;};DocumentContext.prototype.beginColumn=function(width,offset,endingCell){var saved=this.snapshots[this.snapshots.length-1];this.calculateBottomMost(saved);this.endingCell=endingCell;this.page=saved.page;this.x=this.x+this.lastColumnWidth+(offset||0);this.y=saved.y;this.availableWidth=width;//saved.availableWidth - offset;\nthis.availableHeight=saved.availableHeight;this.lastColumnWidth=width;};DocumentContext.prototype.calculateBottomMost=function(destContext){if(this.endingCell){this.saveContextInEndingCell(this.endingCell);this.endingCell=null;}else{destContext.bottomMost=bottomMostContext(this,destContext.bottomMost);}};DocumentContext.prototype.markEnding=function(endingCell){this.page=endingCell._columnEndingContext.page;this.x=endingCell._columnEndingContext.x;this.y=endingCell._columnEndingContext.y;this.availableWidth=endingCell._columnEndingContext.availableWidth;this.availableHeight=endingCell._columnEndingContext.availableHeight;this.lastColumnWidth=endingCell._columnEndingContext.lastColumnWidth;};DocumentContext.prototype.saveContextInEndingCell=function(endingCell){endingCell._columnEndingContext={page:this.page,x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,lastColumnWidth:this.lastColumnWidth};};DocumentContext.prototype.completeColumnGroup=function(height){var saved=this.snapshots.pop();this.calculateBottomMost(saved);this.endingCell=null;this.x=saved.x;var y=saved.bottomMost.y;if(height){if(saved.page===saved.bottomMost.page){if(saved.y+height>y){y=saved.y+height;}}else{y+=height;}}this.y=y;this.page=saved.bottomMost.page;this.availableWidth=saved.availableWidth;this.availableHeight=saved.bottomMost.availableHeight;if(height){this.availableHeight-=y-saved.bottomMost.y;}this.lastColumnWidth=saved.lastColumnWidth;};DocumentContext.prototype.addMargin=function(left,right){this.x+=left;this.availableWidth-=left+(right||0);};DocumentContext.prototype.moveDown=function(offset){this.y+=offset;this.availableHeight-=offset;return this.availableHeight>0;};DocumentContext.prototype.initializePage=function(){this.y=this.pageMargins.top;this.availableHeight=this.getCurrentPage().pageSize.height-this.pageMargins.top-this.pageMargins.bottom;this.pageSnapshot().availableWidth=this.getCurrentPage().pageSize.width-this.pageMargins.left-this.pageMargins.right;};DocumentContext.prototype.pageSnapshot=function(){if(this.snapshots[0]){return this.snapshots[0];}else{return this;}};DocumentContext.prototype.moveTo=function(x,y){if(x!==undefined&&x!==null){this.x=x;this.availableWidth=this.getCurrentPage().pageSize.width-this.x-this.pageMargins.right;}if(y!==undefined&&y!==null){this.y=y;this.availableHeight=this.getCurrentPage().pageSize.height-this.y-this.pageMargins.bottom;}};DocumentContext.prototype.moveToRelative=function(x,y){if(x!==undefined&&x!==null){this.x=this.x+x;}if(y!==undefined&&y!==null){this.y=this.y+y;}};DocumentContext.prototype.beginDetachedBlock=function(){this.snapshots.push({x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,page:this.page,endingCell:this.endingCell,lastColumnWidth:this.lastColumnWidth});};DocumentContext.prototype.endDetachedBlock=function(){var saved=this.snapshots.pop();this.x=saved.x;this.y=saved.y;this.availableWidth=saved.availableWidth;this.availableHeight=saved.availableHeight;this.page=saved.page;this.endingCell=saved.endingCell;this.lastColumnWidth=saved.lastColumnWidth;};function pageOrientation(pageOrientationString,currentPageOrientation){if(pageOrientationString===undefined){return currentPageOrientation;}else if(isString(pageOrientationString)&&pageOrientationString.toLowerCase()==='landscape'){return'landscape';}else{return'portrait';}}var getPageSize=function(currentPage,newPageOrientation){newPageOrientation=pageOrientation(newPageOrientation,currentPage.pageSize.orientation);if(newPageOrientation!==currentPage.pageSize.orientation){return{orientation:newPageOrientation,width:currentPage.pageSize.height,height:currentPage.pageSize.width};}else{return{orientation:currentPage.pageSize.orientation,width:currentPage.pageSize.width,height:currentPage.pageSize.height};}};DocumentContext.prototype.moveToNextPage=function(pageOrientation){var nextPageIndex=this.page+1;var prevPage=this.page;var prevY=this.y;var createNewPage=nextPageIndex>=this.pages.length;if(createNewPage){var currentAvailableWidth=this.availableWidth;var currentPageOrientation=this.getCurrentPage().pageSize.orientation;var pageSize=getPageSize(this.getCurrentPage(),pageOrientation);this.addPage(pageSize);if(currentPageOrientation===pageSize.orientation){this.availableWidth=currentAvailableWidth;}}else{this.page=nextPageIndex;this.initializePage();}return{newPageCreated:createNewPage,prevPage:prevPage,prevY:prevY,y:this.y};};DocumentContext.prototype.addPage=function(pageSize){var page={items:[],pageSize:pageSize};this.pages.push(page);this.backgroundLength.push(0);this.page=this.pages.length-1;this.initializePage();this.tracker.emit('pageAdded');return page;};DocumentContext.prototype.getCurrentPage=function(){if(this.page<0||this.page>=this.pages.length){return null;}return this.pages[this.page];};DocumentContext.prototype.getCurrentPosition=function(){var pageSize=this.getCurrentPage().pageSize;var innerHeight=pageSize.height-this.pageMargins.top-this.pageMargins.bottom;var innerWidth=pageSize.width-this.pageMargins.left-this.pageMargins.right;return{pageNumber:this.page+1,pageOrientation:pageSize.orientation,pageInnerHeight:innerHeight,pageInnerWidth:innerWidth,left:this.x,top:this.y,verticalRatio:(this.y-this.pageMargins.top)/innerHeight,horizontalRatio:(this.x-this.pageMargins.left)/innerWidth};};function bottomMostContext(c1,c2){var r;if(c1.page>c2.page){r=c1;}else if(c2.page>c1.page){r=c2;}else{r=c1.y>c2.y?c1:c2;}return{page:r.page,x:r.x,y:r.y,availableHeight:r.availableHeight,availableWidth:r.availableWidth};}module.exports=DocumentContext;/***/},/* 213 */ /***/function(module,exports,__webpack_require__){\"use strict\";/**\r\n     * Creates an instance of Line\r\n     *\r\n     * @constructor\r\n     * @this {Line}\r\n     * @param {Number} Maximum width this line can have\r\n     */function Line(maxWidth){this.maxWidth=maxWidth;this.leadingCut=0;this.trailingCut=0;this.inlineWidths=0;this.inlines=[];}Line.prototype.getAscenderHeight=function(){var y=0;this.inlines.forEach(function(inline){y=Math.max(y,inline.font.ascender/1000*inline.fontSize);});return y;};Line.prototype.hasEnoughSpaceForInline=function(inline,nextInlines){nextInlines=nextInlines||[];if(this.inlines.length===0){return true;}if(this.newLineForced){return false;}var inlineWidth=inline.width;var inlineTrailingCut=inline.trailingCut||0;if(inline.noNewLine){for(var i=0,l=nextInlines.length;i<l;i++){var nextInline=nextInlines[i];inlineWidth+=nextInline.width;inlineTrailingCut+=nextInline.trailingCut||0;if(!nextInline.noNewLine){break;}}}return this.inlineWidths+inlineWidth-this.leadingCut-inlineTrailingCut<=this.maxWidth;};Line.prototype.addInline=function(inline){if(this.inlines.length===0){this.leadingCut=inline.leadingCut||0;}this.trailingCut=inline.trailingCut||0;inline.x=this.inlineWidths-this.leadingCut;this.inlines.push(inline);this.inlineWidths+=inline.width;if(inline.lineEnd){this.newLineForced=true;}};Line.prototype.getWidth=function(){return this.inlineWidths-this.leadingCut-this.trailingCut;};Line.prototype.getAvailableWidth=function(){return this.maxWidth-this.getWidth();};/**\r\n     * Returns line height\r\n     * @return {Number}\r\n     */Line.prototype.getHeight=function(){var max=0;this.inlines.forEach(function(item){max=Math.max(max,item.height||0);});return max;};module.exports=Line;/***/},/* 214 */ /***/function(module,exports,__nested_webpack_require_3405166__){/* WEBPACK VAR INJECTION */(function(global){module.exports=global[\"pdfMake\"]=__nested_webpack_require_3405166__(215);/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3405166__(22));/***/},/* 215 */ /***/function(module,exports,__nested_webpack_require_3405401__){\"use strict\";/* WEBPACK VAR INJECTION */(function(Buffer,global){var isFunction=__nested_webpack_require_3405401__(0).isFunction;var isUndefined=__nested_webpack_require_3405401__(0).isUndefined;var isNull=__nested_webpack_require_3405401__(0).isNull;var FileSaver=__nested_webpack_require_3405401__(218);var saveAs=FileSaver.saveAs;var defaultClientFonts={Roboto:{normal:'Roboto-Regular.ttf',bold:'Roboto-Medium.ttf',italics:'Roboto-Italic.ttf',bolditalics:'Roboto-MediumItalic.ttf'}};function Document(docDefinition,tableLayouts,fonts,vfs){this.docDefinition=docDefinition;this.tableLayouts=tableLayouts||null;this.fonts=fonts||defaultClientFonts;this.vfs=vfs;}function canCreatePdf(){// Ensure the browser provides the level of support needed\nif(!Object.keys||typeof Uint16Array==='undefined'){return false;}return true;}Document.prototype._createDoc=function(options){options=options||{};if(this.tableLayouts){options.tableLayouts=this.tableLayouts;}var PdfPrinter=__nested_webpack_require_3405401__(219);var printer=new PdfPrinter(this.fonts);__nested_webpack_require_3405401__(84).bindFS(this.vfs);// bind virtual file system to file system\nvar doc=printer.createPdfKitDocument(this.docDefinition,options);return doc;};Document.prototype._flushDoc=function(doc,callback){var chunks=[];var result;doc.on('readable',function(){var chunk;while((chunk=doc.read(9007199254740991))!==null){chunks.push(chunk);}});doc.on('end',function(){result=Buffer.concat(chunks);callback(result,doc._pdfMakePages);});doc.end();};Document.prototype._getPages=function(options,cb){if(!cb){throw'_getPages is an async method and needs a callback argument';}var doc=this._createDoc(options);this._flushDoc(doc,function(ignoreBuffer,pages){cb(pages);});};Document.prototype._bufferToBlob=function(buffer){var blob;try{blob=new Blob([buffer],{type:'application/pdf'});}catch(e){// Old browser which can't handle it without making it an byte array (ie10)\nif(e.name==='InvalidStateError'){var byteArray=new Uint8Array(buffer);blob=new Blob([byteArray.buffer],{type:'application/pdf'});}}if(!blob){throw'Could not generate blob';}return blob;};Document.prototype._openWindow=function(){// we have to open the window immediately and store the reference\n// otherwise popup blockers will stop us\nvar win=window.open('','_blank');if(win===null){throw'Open PDF in new window blocked by browser';}return win;};Document.prototype._openPdf=function(options,win){if(!win){win=this._openWindow();}try{this.getBlob(function(result){var urlCreator=window.URL||window.webkitURL;var pdfUrl=urlCreator.createObjectURL(result);win.location.href=pdfUrl;/* temporarily disabled\r\n                if (win !== window) {\r\n                    setTimeout(function () {\r\n                        if (isNull(win.window)) { // is closed by AdBlock\r\n                            window.location.href = pdfUrl; // open in actual window\r\n                        }\r\n                    }, 500);\r\n                }\r\n                */},options);}catch(e){win.close();throw e;}};Document.prototype.open=function(options,win){options=options||{};options.autoPrint=false;win=win||null;this._openPdf(options,win);};Document.prototype.print=function(options,win){options=options||{};options.autoPrint=true;win=win||null;this._openPdf(options,win);};/**\r\n     * download(defaultFileName = 'file.pdf', cb = null, options = {})\r\n     * or\r\n     * download(cb, options = {})\r\n     */Document.prototype.download=function(defaultFileName,cb,options){if(isFunction(defaultFileName)){if(!isUndefined(cb)){options=cb;}cb=defaultFileName;defaultFileName=null;}defaultFileName=defaultFileName||'file.pdf';this.getBlob(function(result){saveAs(result,defaultFileName);if(isFunction(cb)){cb();}},options);};Document.prototype.getBase64=function(cb,options){if(!cb){throw'getBase64 is an async method and needs a callback argument';}this.getBuffer(function(buffer){cb(buffer.toString('base64'));},options);};Document.prototype.getDataUrl=function(cb,options){if(!cb){throw'getDataUrl is an async method and needs a callback argument';}this.getBuffer(function(buffer){cb('data:application/pdf;base64,'+buffer.toString('base64'));},options);};Document.prototype.getBlob=function(cb,options){if(!cb){throw'getBlob is an async method and needs a callback argument';}var that=this;this.getBuffer(function(result){var blob=that._bufferToBlob(result);cb(blob);},options);};Document.prototype.getBuffer=function(cb,options){if(!cb){throw'getBuffer is an async method and needs a callback argument';}var doc=this._createDoc(options);this._flushDoc(doc,function(buffer){cb(buffer);});};Document.prototype.getStream=function(options){var doc=this._createDoc(options);return doc;};module.exports={createPdf:function(docDefinition,tableLayouts,fonts,vfs){if(!canCreatePdf()){throw'Your browser does not provide the level of support needed';}return new Document(docDefinition,tableLayouts||global.pdfMake.tableLayouts,fonts||global.pdfMake.fonts,vfs||global.pdfMake.vfs);}};/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3405401__(4).Buffer,__nested_webpack_require_3405401__(22));/***/},/* 216 */ /***/function(module,exports,__webpack_require__){\"use strict\";exports.byteLength=byteLength;exports.toByteArray=toByteArray;exports.fromByteArray=fromByteArray;var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;function getLens(b64){var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// Trim off extra bytes after placeholder bytes are found\n// See: https://github.com/beatgammit/base64-js/issues/42\nvar validLen=b64.indexOf('=');if(validLen===-1)validLen=len;var placeHoldersLen=validLen===len?0:4-validLen%4;return[validLen,placeHoldersLen];}// base64 is 4/3 + up to two characters of the original data\nfunction byteLength(b64){var lens=getLens(b64);var validLen=lens[0];var placeHoldersLen=lens[1];return(validLen+placeHoldersLen)*3/4-placeHoldersLen;}function _byteLength(b64,validLen,placeHoldersLen){return(validLen+placeHoldersLen)*3/4-placeHoldersLen;}function toByteArray(b64){var tmp;var lens=getLens(b64);var validLen=lens[0];var placeHoldersLen=lens[1];var arr=new Arr(_byteLength(b64,validLen,placeHoldersLen));var curByte=0;// if there are placeholders, only get up to the last complete 4 chars\nvar len=placeHoldersLen>0?validLen-4:validLen;var i;for(i=0;i<len;i+=4){tmp=revLookup[b64.charCodeAt(i)]<<18|revLookup[b64.charCodeAt(i+1)]<<12|revLookup[b64.charCodeAt(i+2)]<<6|revLookup[b64.charCodeAt(i+3)];arr[curByte++]=tmp>>16&0xFF;arr[curByte++]=tmp>>8&0xFF;arr[curByte++]=tmp&0xFF;}if(placeHoldersLen===2){tmp=revLookup[b64.charCodeAt(i)]<<2|revLookup[b64.charCodeAt(i+1)]>>4;arr[curByte++]=tmp&0xFF;}if(placeHoldersLen===1){tmp=revLookup[b64.charCodeAt(i)]<<10|revLookup[b64.charCodeAt(i+1)]<<4|revLookup[b64.charCodeAt(i+2)]>>2;arr[curByte++]=tmp>>8&0xFF;arr[curByte++]=tmp&0xFF;}return arr;}function tripletToBase64(num){return lookup[num>>18&0x3F]+lookup[num>>12&0x3F]+lookup[num>>6&0x3F]+lookup[num&0x3F];}function encodeChunk(uint8,start,end){var tmp;var output=[];for(var i=start;i<end;i+=3){tmp=(uint8[i]<<16&0xFF0000)+(uint8[i+1]<<8&0xFF00)+(uint8[i+2]&0xFF);output.push(tripletToBase64(tmp));}return output.join('');}function fromByteArray(uint8){var tmp;var len=uint8.length;var extraBytes=len%3;// if we have 1 byte left, pad 2 bytes\nvar parts=[];var maxChunkLength=16383;// must be multiple of 3\n// go through the array every three bytes, we'll deal with trailing stuff later\nfor(var i=0,len2=len-extraBytes;i<len2;i+=maxChunkLength){parts.push(encodeChunk(uint8,i,i+maxChunkLength>len2?len2:i+maxChunkLength));}// pad the end with zeros, but make sure to not forget the extra bytes\nif(extraBytes===1){tmp=uint8[len-1];parts.push(lookup[tmp>>2]+lookup[tmp<<4&0x3F]+'==');}else if(extraBytes===2){tmp=(uint8[len-2]<<8)+uint8[len-1];parts.push(lookup[tmp>>10]+lookup[tmp>>4&0x3F]+lookup[tmp<<2&0x3F]+'=');}return parts.join('');}/***/},/* 217 */ /***/function(module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m;var eLen=nBytes*8-mLen-1;var eMax=(1<<eLen)-1;var eBias=eMax>>1;var nBits=-7;var i=isLE?nBytes-1:0;var d=isLE?-1:1;var s=buffer[offset+i];i+=d;e=s&(1<<-nBits)-1;s>>=-nBits;nBits+=eLen;for(;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8){}m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8){}if(e===0){e=1-eBias;}else if(e===eMax){return m?NaN:(s?-1:1)*Infinity;}else{m=m+Math.pow(2,mLen);e=e-eBias;}return(s?-1:1)*m*Math.pow(2,e-mLen);};exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c;var eLen=nBytes*8-mLen-1;var eMax=(1<<eLen)-1;var eBias=eMax>>1;var rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0;var i=isLE?0:nBytes-1;var d=isLE?1:-1;var s=value<0||value===0&&1/value<0?1:0;value=Math.abs(value);if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0;e=eMax;}else{e=Math.floor(Math.log(value)/Math.LN2);if(value*(c=Math.pow(2,-e))<1){e--;c*=2;}if(e+eBias>=1){value+=rt/c;}else{value+=rt*Math.pow(2,1-eBias);}if(value*c>=2){e++;c/=2;}if(e+eBias>=eMax){m=0;e=eMax;}else if(e+eBias>=1){m=(value*c-1)*Math.pow(2,mLen);e=e+eBias;}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen);e=0;}}for(;mLen>=8;buffer[offset+i]=m&0xff,i+=d,m/=256,mLen-=8){}e=e<<mLen|m;eLen+=mLen;for(;eLen>0;buffer[offset+i]=e&0xff,i+=d,e/=256,eLen-=8){}buffer[offset+i-d]|=s*128;};/***/},/* 218 */ /***/function(module,exports,__nested_webpack_require_3415095__){/* WEBPACK VAR INJECTION */(function(global){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(a,b){if(true)!(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_FACTORY__=b,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__==='function'?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__));else{}})(this,function(){\"use strict\";function b(a,b){return\"undefined\"==typeof b?b={autoBom:!1}:\"object\"!=typeof b&&(console.warn(\"Deprecated: Expected third argument to be a object\"),b={autoBom:!b}),b.autoBom&&/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(a.type)?new Blob([\"\\uFEFF\",a],{type:a.type}):a;}function c(b,c,d){var e=new XMLHttpRequest();e.open(\"GET\",b),e.responseType=\"blob\",e.onload=function(){a(e.response,c,d);},e.onerror=function(){console.error(\"could not download file\");},e.send();}function d(a){var b=new XMLHttpRequest();b.open(\"HEAD\",a,!1);try{b.send();}catch(a){}return 200<=b.status&&299>=b.status;}function e(a){try{a.dispatchEvent(new MouseEvent(\"click\"));}catch(c){var b=document.createEvent(\"MouseEvents\");b.initMouseEvent(\"click\",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b);}}var f=\"object\"==typeof window&&window.window===window?window:\"object\"==typeof self&&self.self===self?self:\"object\"==typeof global&&global.global===global?global:void 0,a=f.saveAs||(\"object\"!=typeof window||window!==f?function(){}:typeof HTMLAnchorElement!==\"undefined\"&&\"download\"in HTMLAnchorElement.prototype?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement(\"a\");g=g||b.name||\"download\",j.download=g,j.rel=\"noopener\",\"string\"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target=\"_blank\")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href);},4E4),setTimeout(function(){e(j);},0));}:\"msSaveOrOpenBlob\"in navigator?function(f,g,h){if(g=g||f.name||\"download\",\"string\"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else{var i=document.createElement(\"a\");i.href=f,i.target=\"_blank\",setTimeout(function(){e(i);});}}:function(a,b,d,e){if(e=e||open(\"\",\"_blank\"),e&&(e.document.title=e.document.body.innerText=\"downloading...\"),\"string\"==typeof a)return c(a,b,d);var g=\"application/octet-stream\"===a.type,h=/constructor/i.test(f.HTMLElement)||f.safari,i=/CriOS\\/[\\d]+/.test(navigator.userAgent);if((i||g&&h)&&\"object\"==typeof FileReader){var j=new FileReader();j.onloadend=function(){var a=j.result;a=i?a:a.replace(/^data:[^;]*;/,\"data:attachment/file;\"),e?e.location.href=a:location=a,e=null;},j.readAsDataURL(a);}else{var k=f.URL||f.webkitURL,l=k.createObjectURL(a);e?e.location=l:location.href=l,e=null,setTimeout(function(){k.revokeObjectURL(l);},4E4);}});f.saveAs=a.saveAs=a, true&&(module.exports=a);});/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3415095__(22));/***/},/* 219 */ /***/function(module,exports,__nested_webpack_require_3418196__){\"use strict\";/*eslint no-unused-vars: [\"error\", {\"args\": \"none\"}]*/var PdfKitEngine=__nested_webpack_require_3418196__(220);var FontProvider=__nested_webpack_require_3418196__(444);var LayoutBuilder=__nested_webpack_require_3418196__(445);var sizes=__nested_webpack_require_3418196__(452);var ImageMeasure=__nested_webpack_require_3418196__(453);var SVGMeasure=__nested_webpack_require_3418196__(454);var textDecorator=__nested_webpack_require_3418196__(455);var TextTools=__nested_webpack_require_3418196__(130);var isFunction=__nested_webpack_require_3418196__(0).isFunction;var isString=__nested_webpack_require_3418196__(0).isString;var isNumber=__nested_webpack_require_3418196__(0).isNumber;var isBoolean=__nested_webpack_require_3418196__(0).isBoolean;var isArray=__nested_webpack_require_3418196__(0).isArray;var isUndefined=__nested_webpack_require_3418196__(0).isUndefined;var getSvgToPDF=function(){try{// optional dependency to support svg nodes\nreturn __nested_webpack_require_3418196__(456);}catch(e){throw new Error('Please install svg-to-pdfkit to enable svg nodes');}};var findFont=function(fonts,requiredFonts,defaultFont){for(var i=0;i<requiredFonts.length;i++){var requiredFont=requiredFonts[i].toLowerCase();for(var font in fonts){if(font.toLowerCase()===requiredFont){return font;}}}return defaultFont;};////////////////////////////////////////\n// PdfPrinter\n/**\r\n     * @class Creates an instance of a PdfPrinter which turns document definition into a pdf\r\n     *\r\n     * @param {Object} fontDescriptors font definition dictionary\r\n     *\r\n     * @example\r\n     * var fontDescriptors = {\r\n     *\tRoboto: {\r\n     *\t\tnormal: 'fonts/Roboto-Regular.ttf',\r\n     *\t\tbold: 'fonts/Roboto-Medium.ttf',\r\n     *\t\titalics: 'fonts/Roboto-Italic.ttf',\r\n     *\t\tbolditalics: 'fonts/Roboto-MediumItalic.ttf'\r\n     *\t}\r\n     * };\r\n     *\r\n     * var printer = new PdfPrinter(fontDescriptors);\r\n     */function PdfPrinter(fontDescriptors){this.fontDescriptors=fontDescriptors;}/**\r\n     * Executes layout engine for the specified document and renders it into a pdfkit document\r\n     * ready to be saved.\r\n     *\r\n     * @param {Object} docDefinition document definition\r\n     * @param {Object} docDefinition.content an array describing the pdf structure (for more information take a look at the examples in the /examples folder)\r\n     * @param {Object} [docDefinition.defaultStyle] default (implicit) style definition\r\n     * @param {Object} [docDefinition.styles] dictionary defining all styles which can be used in the document\r\n     * @param {Object} [docDefinition.pageSize] page size (pdfkit units, A4 dimensions by default)\r\n     * @param {Number} docDefinition.pageSize.width width\r\n     * @param {Number} docDefinition.pageSize.height height\r\n     * @param {Object} [docDefinition.pageMargins] page margins (pdfkit units)\r\n     * @param {Number} docDefinition.maxPagesNumber maximum number of pages to render\r\n     *\r\n     * @example\r\n     *\r\n     * var docDefinition = {\r\n     * \tinfo: {\r\n     *\t\ttitle: 'awesome Document',\r\n     *\t\tauthor: 'john doe',\r\n     *\t\tsubject: 'subject of document',\r\n     *\t\tkeywords: 'keywords for document',\r\n     * \t},\r\n     *\tcontent: [\r\n     *\t\t'First paragraph',\r\n     *\t\t'Second paragraph, this time a little bit longer',\r\n     *\t\t{ text: 'Third paragraph, slightly bigger font size', fontSize: 20 },\r\n     *\t\t{ text: 'Another paragraph using a named style', style: 'header' },\r\n     *\t\t{ text: ['playing with ', 'inlines' ] },\r\n     *\t\t{ text: ['and ', { text: 'restyling ', bold: true }, 'them'] },\r\n     *\t],\r\n     *\tstyles: {\r\n     *\t\theader: { fontSize: 30, bold: true }\r\n     *\t}\r\n     * }\r\n     *\r\n     * var pdfKitDoc = printer.createPdfKitDocument(docDefinition);\r\n     *\r\n     * pdfKitDoc.pipe(fs.createWriteStream('sample.pdf'));\r\n     * pdfKitDoc.end();\r\n     *\r\n     * @return {Object} a pdfKit document object which can be saved or encode to data-url\r\n     */PdfPrinter.prototype.createPdfKitDocument=function(docDefinition,options){options=options||{};docDefinition.version=docDefinition.version||'1.3';docDefinition.compress=isBoolean(docDefinition.compress)?docDefinition.compress:true;docDefinition.images=docDefinition.images||{};docDefinition.pageMargins=docDefinition.pageMargins!==undefined&&docDefinition.pageMargins!==null?docDefinition.pageMargins:40;var pageSize=fixPageSize(docDefinition.pageSize,docDefinition.pageOrientation);var pdfOptions={size:[pageSize.width,pageSize.height],pdfVersion:docDefinition.version,compress:docDefinition.compress,userPassword:docDefinition.userPassword,ownerPassword:docDefinition.ownerPassword,permissions:docDefinition.permissions,fontLayoutCache:isBoolean(options.fontLayoutCache)?options.fontLayoutCache:true,bufferPages:options.bufferPages||false,autoFirstPage:false,font:null};this.pdfKitDoc=PdfKitEngine.createPdfDocument(pdfOptions);setMetadata(docDefinition,this.pdfKitDoc);this.fontProvider=new FontProvider(this.fontDescriptors,this.pdfKitDoc);var builder=new LayoutBuilder(pageSize,fixPageMargins(docDefinition.pageMargins),new ImageMeasure(this.pdfKitDoc,docDefinition.images),new SVGMeasure());registerDefaultTableLayouts(builder);if(options.tableLayouts){builder.registerTableLayouts(options.tableLayouts);}var pages=builder.layoutDocument(docDefinition.content,this.fontProvider,docDefinition.styles||{},docDefinition.defaultStyle||{fontSize:12,font:'Roboto'},docDefinition.background,docDefinition.header,docDefinition.footer,docDefinition.images,docDefinition.watermark,docDefinition.pageBreakBefore);var maxNumberPages=docDefinition.maxPagesNumber||-1;if(isNumber(maxNumberPages)&&maxNumberPages>-1){pages=pages.slice(0,maxNumberPages);}// if pageSize.height is set to Infinity, calculate the actual height of the page that\n// was laid out using the height of each of the items in the page.\nif(pageSize.height===Infinity){var pageHeight=calculatePageHeight(pages,docDefinition.pageMargins);this.pdfKitDoc.options.size=[pageSize.width,pageHeight];}renderPages(pages,this.fontProvider,this.pdfKitDoc,options.progressCallback);if(options.autoPrint){var printActionRef=this.pdfKitDoc.ref({Type:'Action',S:'Named',N:'Print'});this.pdfKitDoc._root.data.OpenAction=printActionRef;printActionRef.end();}return this.pdfKitDoc;};function setMetadata(docDefinition,pdfKitDoc){// PDF standard has these properties reserved: Title, Author, Subject, Keywords,\n// Creator, Producer, CreationDate, ModDate, Trapped.\n// To keep the pdfmake api consistent, the info field are defined lowercase.\n// Custom properties don't contain a space.\nfunction standardizePropertyKey(key){var standardProperties=['Title','Author','Subject','Keywords','Creator','Producer','CreationDate','ModDate','Trapped'];var standardizedKey=key.charAt(0).toUpperCase()+key.slice(1);if(standardProperties.indexOf(standardizedKey)!==-1){return standardizedKey;}return key.replace(/\\s+/g,'');}pdfKitDoc.info.Producer='pdfmake';pdfKitDoc.info.Creator='pdfmake';if(docDefinition.info){for(var key in docDefinition.info){var value=docDefinition.info[key];if(value){key=standardizePropertyKey(key);pdfKitDoc.info[key]=value;}}}}function calculatePageHeight(pages,margins){function getItemHeight(item){if(isFunction(item.item.getHeight)){return item.item.getHeight();}else if(item.item._height){return item.item._height;}else{// TODO: add support for next item types\nreturn 0;}}function getBottomPosition(item){var top=item.item.y;var height=getItemHeight(item);return top+height;}var fixedMargins=fixPageMargins(margins||40);var height=fixedMargins.top;pages.forEach(function(page){page.items.forEach(function(item){var bottomPosition=getBottomPosition(item);if(bottomPosition>height){height=bottomPosition;}});});height+=fixedMargins.bottom;return height;}function fixPageSize(pageSize,pageOrientation){function isNeedSwapPageSizes(pageOrientation){if(isString(pageOrientation)){pageOrientation=pageOrientation.toLowerCase();return pageOrientation==='portrait'&&size.width>size.height||pageOrientation==='landscape'&&size.width<size.height;}return false;}// if pageSize.height is set to auto, set the height to infinity so there are no page breaks.\nif(pageSize&&pageSize.height==='auto'){pageSize.height=Infinity;}var size=pageSize2widthAndHeight(pageSize||'A4');if(isNeedSwapPageSizes(pageOrientation)){// swap page sizes\nsize={width:size.height,height:size.width};}size.orientation=size.width>size.height?'landscape':'portrait';return size;}function fixPageMargins(margin){if(isNumber(margin)){margin={left:margin,right:margin,top:margin,bottom:margin};}else if(isArray(margin)){if(margin.length===2){margin={left:margin[0],top:margin[1],right:margin[0],bottom:margin[1]};}else if(margin.length===4){margin={left:margin[0],top:margin[1],right:margin[2],bottom:margin[3]};}else{throw'Invalid pageMargins definition';}}return margin;}function registerDefaultTableLayouts(layoutBuilder){layoutBuilder.registerTableLayouts({noBorders:{hLineWidth:function(i){return 0;},vLineWidth:function(i){return 0;},paddingLeft:function(i){return i&&4||0;},paddingRight:function(i,node){return i<node.table.widths.length-1?4:0;}},headerLineOnly:{hLineWidth:function(i,node){if(i===0||i===node.table.body.length){return 0;}return i===node.table.headerRows?2:0;},vLineWidth:function(i){return 0;},paddingLeft:function(i){return i===0?0:8;},paddingRight:function(i,node){return i===node.table.widths.length-1?0:8;}},lightHorizontalLines:{hLineWidth:function(i,node){if(i===0||i===node.table.body.length){return 0;}return i===node.table.headerRows?2:1;},vLineWidth:function(i){return 0;},hLineColor:function(i){return i===1?'black':'#aaa';},paddingLeft:function(i){return i===0?0:8;},paddingRight:function(i,node){return i===node.table.widths.length-1?0:8;}}});}function pageSize2widthAndHeight(pageSize){if(isString(pageSize)){var size=sizes[pageSize.toUpperCase()];if(!size){throw'Page size '+pageSize+' not recognized';}return{width:size[0],height:size[1]};}return pageSize;}function updatePageOrientationInOptions(currentPage,pdfKitDoc){var previousPageOrientation=pdfKitDoc.options.size[0]>pdfKitDoc.options.size[1]?'landscape':'portrait';if(currentPage.pageSize.orientation!==previousPageOrientation){var width=pdfKitDoc.options.size[0];var height=pdfKitDoc.options.size[1];pdfKitDoc.options.size=[height,width];}}function renderPages(pages,fontProvider,pdfKitDoc,progressCallback){pdfKitDoc._pdfMakePages=pages;pdfKitDoc.addPage();var totalItems=0;if(progressCallback){pages.forEach(function(page){totalItems+=page.items.length;});}var renderedItems=0;progressCallback=progressCallback||function(){};for(var i=0;i<pages.length;i++){if(i>0){updatePageOrientationInOptions(pages[i],pdfKitDoc);pdfKitDoc.addPage(pdfKitDoc.options);}var page=pages[i];for(var ii=0,il=page.items.length;ii<il;ii++){var item=page.items[ii];switch(item.type){case'vector':renderVector(item.item,pdfKitDoc);break;case'line':renderLine(item.item,item.item.x,item.item.y,pdfKitDoc);break;case'image':renderImage(item.item,item.item.x,item.item.y,pdfKitDoc);break;case'svg':renderSVG(item.item,item.item.x,item.item.y,pdfKitDoc,fontProvider);break;case'beginClip':beginClip(item.item,pdfKitDoc);break;case'endClip':endClip(pdfKitDoc);break;}renderedItems++;progressCallback(renderedItems/totalItems);}if(page.watermark){renderWatermark(page,pdfKitDoc);}}}function renderLine(line,x,y,pdfKitDoc){function preparePageNodeRefLine(_pageNodeRef,inline){var newWidth;var diffWidth;var textTools=new TextTools(null);if(isUndefined(_pageNodeRef.positions)){throw'Page reference id not found';}var pageNumber=_pageNodeRef.positions[0].pageNumber.toString();inline.text=pageNumber;newWidth=textTools.widthOfString(inline.text,inline.font,inline.fontSize,inline.characterSpacing,inline.fontFeatures);diffWidth=inline.width-newWidth;inline.width=newWidth;switch(inline.alignment){case'right':inline.x+=diffWidth;break;case'center':inline.x+=diffWidth/2;break;}}if(line._pageNodeRef){preparePageNodeRefLine(line._pageNodeRef,line.inlines[0]);}x=x||0;y=y||0;var lineHeight=line.getHeight();var ascenderHeight=line.getAscenderHeight();var descent=lineHeight-ascenderHeight;textDecorator.drawBackground(line,x,y,pdfKitDoc);//TODO: line.optimizeInlines();\nfor(var i=0,l=line.inlines.length;i<l;i++){var inline=line.inlines[i];var shiftToBaseline=lineHeight-inline.font.ascender/1000*inline.fontSize-descent;if(inline._pageNodeRef){preparePageNodeRefLine(inline._pageNodeRef,inline);}var options={lineBreak:false,textWidth:inline.width,characterSpacing:inline.characterSpacing,wordCount:1,link:inline.link};if(inline.linkToDestination){options.goTo=inline.linkToDestination;}if(line.id&&i===0){options.destination=line.id;}if(inline.fontFeatures){options.features=inline.fontFeatures;}pdfKitDoc.opacity(inline.opacity||1);pdfKitDoc.fill(inline.color||'black');pdfKitDoc._font=inline.font;pdfKitDoc.fontSize(inline.fontSize);pdfKitDoc.text(inline.text,x+inline.x,y+shiftToBaseline,options);if(inline.linkToPage){var _ref=pdfKitDoc.ref({Type:'Action',S:'GoTo',D:[inline.linkToPage,0,0]}).end();pdfKitDoc.annotate(x+inline.x,y+shiftToBaseline,inline.width,inline.height,{Subtype:'Link',Dest:[inline.linkToPage-1,'XYZ',null,null,null]});}}textDecorator.drawDecorations(line,x,y,pdfKitDoc);}function renderWatermark(page,pdfKitDoc){var watermark=page.watermark;pdfKitDoc.fill(watermark.color);pdfKitDoc.opacity(watermark.opacity);pdfKitDoc.save();pdfKitDoc.rotate(watermark.angle,{origin:[pdfKitDoc.page.width/2,pdfKitDoc.page.height/2]});var x=pdfKitDoc.page.width/2-watermark._size.size.width/2;var y=pdfKitDoc.page.height/2-watermark._size.size.height/2;pdfKitDoc._font=watermark.font;pdfKitDoc.fontSize(watermark.fontSize);pdfKitDoc.text(watermark.text,x,y,{lineBreak:false});pdfKitDoc.restore();}function renderVector(vector,pdfKitDoc){//TODO: pdf optimization (there's no need to write all properties everytime)\npdfKitDoc.lineWidth(vector.lineWidth||1);if(vector.dash){pdfKitDoc.dash(vector.dash.length,{space:vector.dash.space||vector.dash.length,phase:vector.dash.phase||0});}else{pdfKitDoc.undash();}pdfKitDoc.lineJoin(vector.lineJoin||'miter');pdfKitDoc.lineCap(vector.lineCap||'butt');//TODO: clipping\nvar gradient=null;switch(vector.type){case'ellipse':pdfKitDoc.ellipse(vector.x,vector.y,vector.r1,vector.r2);if(vector.linearGradient){gradient=pdfKitDoc.linearGradient(vector.x-vector.r1,vector.y,vector.x+vector.r1,vector.y);}break;case'rect':if(vector.r){pdfKitDoc.roundedRect(vector.x,vector.y,vector.w,vector.h,vector.r);}else{pdfKitDoc.rect(vector.x,vector.y,vector.w,vector.h);}if(vector.linearGradient){gradient=pdfKitDoc.linearGradient(vector.x,vector.y,vector.x+vector.w,vector.y);}break;case'line':pdfKitDoc.moveTo(vector.x1,vector.y1);pdfKitDoc.lineTo(vector.x2,vector.y2);break;case'polyline':if(vector.points.length===0){break;}pdfKitDoc.moveTo(vector.points[0].x,vector.points[0].y);for(var i=1,l=vector.points.length;i<l;i++){pdfKitDoc.lineTo(vector.points[i].x,vector.points[i].y);}if(vector.points.length>1){var p1=vector.points[0];var pn=vector.points[vector.points.length-1];if(vector.closePath||p1.x===pn.x&&p1.y===pn.y){pdfKitDoc.closePath();}}break;case'path':pdfKitDoc.path(vector.d);break;}if(vector.linearGradient&&gradient){var step=1/(vector.linearGradient.length-1);for(var i=0;i<vector.linearGradient.length;i++){gradient.stop(i*step,vector.linearGradient[i]);}vector.color=gradient;}if(vector.color&&vector.lineColor){pdfKitDoc.fillColor(vector.color,vector.fillOpacity||1);pdfKitDoc.strokeColor(vector.lineColor,vector.strokeOpacity||1);pdfKitDoc.fillAndStroke();}else if(vector.color){pdfKitDoc.fillColor(vector.color,vector.fillOpacity||1);pdfKitDoc.fill();}else{pdfKitDoc.strokeColor(vector.lineColor||'black',vector.strokeOpacity||1);pdfKitDoc.stroke();}}function renderImage(image,x,y,pdfKitDoc){pdfKitDoc.opacity(image.opacity||1);pdfKitDoc.image(image.image,image.x,image.y,{width:image._width,height:image._height});if(image.link){pdfKitDoc.link(image.x,image.y,image._width,image._height,image.link);}}function renderSVG(svg,x,y,pdfKitDoc,fontProvider){var options=Object.assign({width:svg._width,height:svg._height,assumePt:true},svg.options);options.fontCallback=function(family,bold,italic){var fontsFamily=family.split(',').map(function(f){return f.trim().replace(/('|\")/g,'');});var font=findFont(fontProvider.fonts,fontsFamily,svg.font||'Roboto');var fontFile=fontProvider.getFontFile(font,bold,italic);if(fontFile===null){var type=fontProvider.getFontType(bold,italic);throw new Error('Font \\''+font+'\\' in style \\''+type+'\\' is not defined in the font section of the document definition.');}return fontFile;};getSvgToPDF()(pdfKitDoc,svg.svg,svg.x,svg.y,options);}function beginClip(rect,pdfKitDoc){pdfKitDoc.save();pdfKitDoc.addContent(''+rect.x+' '+rect.y+' '+rect.width+' '+rect.height+' re');pdfKitDoc.clip();}function endClip(pdfKitDoc){pdfKitDoc.restore();}module.exports=PdfPrinter;/***/},/* 220 */ /***/function(module,exports,__nested_webpack_require_3434903__){\"use strict\";function _interopDefault(ex){return ex&&typeof ex==='object'&&'default'in ex?ex['default']:ex;}var PdfKit=_interopDefault(__nested_webpack_require_3434903__(221));function getEngineInstance(){return PdfKit;}function createPdfDocument(options){options=options||{};return new PdfKit(options);}module.exports={getEngineInstance:getEngineInstance,createPdfDocument:createPdfDocument};/***/},/* 221 */ /***/function(module,exports,__nested_webpack_require_3435348__){\"use strict\";/* WEBPACK VAR INJECTION */(function(Buffer,__dirname){Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=void 0;__nested_webpack_require_3435348__(222);__nested_webpack_require_3435348__(137);__nested_webpack_require_3435348__(224);__nested_webpack_require_3435348__(139);__nested_webpack_require_3435348__(44);__nested_webpack_require_3435348__(152);__nested_webpack_require_3435348__(92);__nested_webpack_require_3435348__(153);__nested_webpack_require_3435348__(155);__nested_webpack_require_3435348__(240);__nested_webpack_require_3435348__(157);__nested_webpack_require_3435348__(158);__nested_webpack_require_3435348__(243);__nested_webpack_require_3435348__(244);__nested_webpack_require_3435348__(159);__nested_webpack_require_3435348__(66);__nested_webpack_require_3435348__(160);__nested_webpack_require_3435348__(246);__nested_webpack_require_3435348__(247);__nested_webpack_require_3435348__(250);__nested_webpack_require_3435348__(161);__nested_webpack_require_3435348__(162);__nested_webpack_require_3435348__(165);__nested_webpack_require_3435348__(99);__nested_webpack_require_3435348__(255);var _stream=_interopRequireDefault(__nested_webpack_require_3435348__(100));var _zlib=_interopRequireDefault(__nested_webpack_require_3435348__(170));var _cryptoJs=_interopRequireDefault(__nested_webpack_require_3435348__(277));var _fontkit=_interopRequireDefault(__nested_webpack_require_3435348__(301));var _events=__nested_webpack_require_3435348__(68);var _linebreak=_interopRequireDefault(__nested_webpack_require_3435348__(209));var _pngJs=_interopRequireDefault(__nested_webpack_require_3435348__(443));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var fs=__nested_webpack_require_3435348__(84);function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError(\"Cannot call a class as a function\");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if(\"value\"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}function _inherits(subClass,superClass){if(typeof superClass!==\"function\"&&superClass!==null){throw new TypeError(\"Super expression must either be null or a function\");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");}return self;}function _possibleConstructorReturn(self,call){if(call&&(typeof call===\"object\"||typeof call===\"function\")){return call;}return _assertThisInitialized(self);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest();}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread();}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++){arr2[i]=arr[i];}return arr2;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||Object.prototype.toString.call(iter)===\"[object Arguments]\")return Array.from(iter);}function _iterableToArrayLimit(arr,i){if(!(Symbol.iterator in Object(arr)||Object.prototype.toString.call(arr)===\"[object Arguments]\")){return;}var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i[\"return\"]!=null)_i[\"return\"]();}finally{if(_d)throw _e;}}return _arr;}function _nonIterableSpread(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\");}function _nonIterableRest(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");}/*\r\n    PDFAbstractReference - abstract class for PDF reference\r\n    */var PDFAbstractReference=/*#__PURE__*/function(){function PDFAbstractReference(){_classCallCheck(this,PDFAbstractReference);}_createClass(PDFAbstractReference,[{key:\"toString\",value:function toString(){throw new Error('Must be implemented by subclasses');}}]);return PDFAbstractReference;}();var PDFNameTree=/*#__PURE__*/function(){function PDFNameTree(){_classCallCheck(this,PDFNameTree);this._items={};}_createClass(PDFNameTree,[{key:\"add\",value:function add(key,val){return this._items[key]=val;}},{key:\"get\",value:function get(key){return this._items[key];}},{key:\"toString\",value:function toString(){// Needs to be sorted by key\nvar sortedKeys=Object.keys(this._items).sort(function(a,b){return a.localeCompare(b);});var out=['<<'];if(sortedKeys.length>1){var first=sortedKeys[0],last=sortedKeys[sortedKeys.length-1];out.push(\"  /Limits \".concat(PDFObject.convert([new String(first),new String(last)])));}out.push('  /Names [');var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=sortedKeys[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var key=_step.value;out.push(\"    \".concat(PDFObject.convert(new String(key)),\" \").concat(PDFObject.convert(this._items[key])));}}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError;}}}out.push(']');out.push('>>');return out.join('\\n');}}]);return PDFNameTree;}();var pad=function pad(str,length){return(Array(length+1).join('0')+str).slice(-length);};var escapableRe=/[\\n\\r\\t\\b\\f\\(\\)\\\\]/g;var escapable={'\\n':'\\\\n','\\r':'\\\\r','\\t':'\\\\t','\\b':'\\\\b','\\f':'\\\\f','\\\\':'\\\\\\\\','(':'\\\\(',')':'\\\\)'};// Convert little endian UTF-16 to big endian\nvar swapBytes=function swapBytes(buff){var l=buff.length;if(l&0x01){throw new Error('Buffer length must be even');}else{for(var i=0,end=l-1;i<end;i+=2){var a=buff[i];buff[i]=buff[i+1];buff[i+1]=a;}}return buff;};var PDFObject=/*#__PURE__*/function(){function PDFObject(){_classCallCheck(this,PDFObject);}_createClass(PDFObject,null,[{key:\"convert\",value:function convert(object){var encryptFn=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;// String literals are converted to the PDF name type\nif(typeof object==='string'){return\"/\".concat(object);// String objects are converted to PDF strings (UTF-16)\n}else if(object instanceof String){var string=object;// Detect if this is a unicode string\nvar isUnicode=false;for(var i=0,end=string.length;i<end;i++){if(string.charCodeAt(i)>0x7f){isUnicode=true;break;}}// If so, encode it as big endian UTF-16\nvar stringBuffer;if(isUnicode){stringBuffer=swapBytes(Buffer.from(\"\\uFEFF\".concat(string),'utf16le'));}else{stringBuffer=Buffer.from(string.valueOf(),'ascii');}// Encrypt the string when necessary\nif(encryptFn){string=encryptFn(stringBuffer).toString('binary');}else{string=stringBuffer.toString('binary');}// Escape characters as required by the spec\nstring=string.replace(escapableRe,function(c){return escapable[c];});return\"(\".concat(string,\")\");// Buffers are converted to PDF hex strings\n}else if(Buffer.isBuffer(object)){return\"<\".concat(object.toString('hex'),\">\");}else if(object instanceof PDFAbstractReference||object instanceof PDFNameTree){return object.toString();}else if(object instanceof Date){var _string=\"D:\".concat(pad(object.getUTCFullYear(),4))+pad(object.getUTCMonth()+1,2)+pad(object.getUTCDate(),2)+pad(object.getUTCHours(),2)+pad(object.getUTCMinutes(),2)+pad(object.getUTCSeconds(),2)+'Z';// Encrypt the string when necessary\nif(encryptFn){_string=encryptFn(new Buffer(_string,'ascii')).toString('binary');// Escape characters as required by the spec\n_string=_string.replace(escapableRe,function(c){return escapable[c];});}return\"(\".concat(_string,\")\");}else if(Array.isArray(object)){var items=object.map(function(e){return PDFObject.convert(e,encryptFn);}).join(' ');return\"[\".concat(items,\"]\");}else if({}.toString.call(object)==='[object Object]'){var out=['<<'];for(var key in object){var val=object[key];out.push(\"/\".concat(key,\" \").concat(PDFObject.convert(val,encryptFn)));}out.push('>>');return out.join('\\n');}else if(typeof object==='number'){return PDFObject.number(object);}else{return\"\".concat(object);}}},{key:\"number\",value:function number(n){if(n>-1e21&&n<1e21){return Math.round(n*1e6)/1e6;}throw new Error(\"unsupported number: \".concat(n));}}]);return PDFObject;}();var PDFReference=/*#__PURE__*/function(_PDFAbstractReference){_inherits(PDFReference,_PDFAbstractReference);function PDFReference(document,id){var _this;var data=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};_classCallCheck(this,PDFReference);_this=_possibleConstructorReturn(this,_getPrototypeOf(PDFReference).call(this));_this.document=document;_this.id=id;_this.data=data;_this.gen=0;_this.compress=_this.document.compress&&!_this.data.Filter;_this.uncompressedLength=0;_this.buffer=[];return _this;}_createClass(PDFReference,[{key:\"write\",value:function write(chunk){if(!Buffer.isBuffer(chunk)){chunk=new Buffer(chunk+'\\n','binary');}this.uncompressedLength+=chunk.length;if(this.data.Length==null){this.data.Length=0;}this.buffer.push(chunk);this.data.Length+=chunk.length;if(this.compress){return this.data.Filter='FlateDecode';}}},{key:\"end\",value:function end(chunk){if(chunk){this.write(chunk);}return this.finalize();}},{key:\"finalize\",value:function finalize(){this.offset=this.document._offset;var encryptFn=this.document._security?this.document._security.getEncryptFn(this.id,this.gen):null;if(this.buffer.length){this.buffer=Buffer.concat(this.buffer);if(this.compress){this.buffer=_zlib.default.deflateSync(this.buffer);}if(encryptFn){this.buffer=encryptFn(this.buffer);}this.data.Length=this.buffer.length;}this.document._write(\"\".concat(this.id,\" \").concat(this.gen,\" obj\"));this.document._write(PDFObject.convert(this.data,encryptFn));if(this.buffer.length){this.document._write('stream');this.document._write(this.buffer);this.buffer=[];// free up memory\nthis.document._write('\\nendstream');}this.document._write('endobj');this.document._refEnd(this);}},{key:\"toString\",value:function toString(){return\"\".concat(this.id,\" \").concat(this.gen,\" R\");}}]);return PDFReference;}(PDFAbstractReference);/*\r\n    PDFPage - represents a single page in the PDF document\r\n    By Devon Govett\r\n    */var DEFAULT_MARGINS={top:72,left:72,bottom:72,right:72};var SIZES={'4A0':[4767.87,6740.79],'2A0':[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756.0],FOLIO:[612.0,936.0],LEGAL:[612.0,1008.0],LETTER:[612.0,792.0],TABLOID:[792.0,1224.0]};var PDFPage=/*#__PURE__*/function(){function PDFPage(document){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,PDFPage);this.document=document;this.size=options.size||'letter';this.layout=options.layout||'portrait';// process margins\nif(typeof options.margin==='number'){this.margins={top:options.margin,left:options.margin,bottom:options.margin,right:options.margin};// default to 1 inch margins\n}else{this.margins=options.margins||DEFAULT_MARGINS;}// calculate page dimensions\nvar dimensions=Array.isArray(this.size)?this.size:SIZES[this.size.toUpperCase()];this.width=dimensions[this.layout==='portrait'?0:1];this.height=dimensions[this.layout==='portrait'?1:0];this.content=this.document.ref();// Initialize the Font, XObject, and ExtGState dictionaries\nthis.resources=this.document.ref({ProcSet:['PDF','Text','ImageB','ImageC','ImageI']});// The page dictionary\nthis.dictionary=this.document.ref({Type:'Page',Parent:this.document._root.data.Pages,MediaBox:[0,0,this.width,this.height],Contents:this.content,Resources:this.resources});}// Lazily create these dictionaries\n_createClass(PDFPage,[{key:\"maxY\",value:function maxY(){return this.height-this.margins.bottom;}},{key:\"write\",value:function write(chunk){return this.content.write(chunk);}},{key:\"end\",value:function end(){this.dictionary.end();this.resources.end();return this.content.end();}},{key:\"fonts\",get:function get(){var data=this.resources.data;return data.Font!=null?data.Font:data.Font={};}},{key:\"xobjects\",get:function get(){var data=this.resources.data;return data.XObject!=null?data.XObject:data.XObject={};}},{key:\"ext_gstates\",get:function get(){var data=this.resources.data;return data.ExtGState!=null?data.ExtGState:data.ExtGState={};}},{key:\"patterns\",get:function get(){var data=this.resources.data;return data.Pattern!=null?data.Pattern:data.Pattern={};}},{key:\"annotations\",get:function get(){var data=this.dictionary.data;return data.Annots!=null?data.Annots:data.Annots=[];}}]);return PDFPage;}();/**\r\n     * Check if value is in a range group.\r\n     * @param {number} value\r\n     * @param {number[]} rangeGroup\r\n     * @returns {boolean}\r\n     */function inRange(value,rangeGroup){if(value<rangeGroup[0])return false;var startRange=0;var endRange=rangeGroup.length/2;while(startRange<=endRange){var middleRange=Math.floor((startRange+endRange)/2);// actual array index\nvar arrayIndex=middleRange*2;// Check if value is in range pointed by actual index\nif(value>=rangeGroup[arrayIndex]&&value<=rangeGroup[arrayIndex+1]){return true;}if(value>rangeGroup[arrayIndex+1]){// Search Right Side Of Array\nstartRange=middleRange+1;}else{// Search Left Side Of Array\nendRange=middleRange-1;}}return false;}/* eslint-disable prettier/prettier */ /**\r\n     * A.1 Unassigned code points in Unicode 3.2\r\n     * @link https://tools.ietf.org/html/rfc3454#appendix-A.1\r\n     */var unassigned_code_points=[0x0221,0x0221,0x0234,0x024f,0x02ae,0x02af,0x02ef,0x02ff,0x0350,0x035f,0x0370,0x0373,0x0376,0x0379,0x037b,0x037d,0x037f,0x0383,0x038b,0x038b,0x038d,0x038d,0x03a2,0x03a2,0x03cf,0x03cf,0x03f7,0x03ff,0x0487,0x0487,0x04cf,0x04cf,0x04f6,0x04f7,0x04fa,0x04ff,0x0510,0x0530,0x0557,0x0558,0x0560,0x0560,0x0588,0x0588,0x058b,0x0590,0x05a2,0x05a2,0x05ba,0x05ba,0x05c5,0x05cf,0x05eb,0x05ef,0x05f5,0x060b,0x060d,0x061a,0x061c,0x061e,0x0620,0x0620,0x063b,0x063f,0x0656,0x065f,0x06ee,0x06ef,0x06ff,0x06ff,0x070e,0x070e,0x072d,0x072f,0x074b,0x077f,0x07b2,0x0900,0x0904,0x0904,0x093a,0x093b,0x094e,0x094f,0x0955,0x0957,0x0971,0x0980,0x0984,0x0984,0x098d,0x098e,0x0991,0x0992,0x09a9,0x09a9,0x09b1,0x09b1,0x09b3,0x09b5,0x09ba,0x09bb,0x09bd,0x09bd,0x09c5,0x09c6,0x09c9,0x09ca,0x09ce,0x09d6,0x09d8,0x09db,0x09de,0x09de,0x09e4,0x09e5,0x09fb,0x0a01,0x0a03,0x0a04,0x0a0b,0x0a0e,0x0a11,0x0a12,0x0a29,0x0a29,0x0a31,0x0a31,0x0a34,0x0a34,0x0a37,0x0a37,0x0a3a,0x0a3b,0x0a3d,0x0a3d,0x0a43,0x0a46,0x0a49,0x0a4a,0x0a4e,0x0a58,0x0a5d,0x0a5d,0x0a5f,0x0a65,0x0a75,0x0a80,0x0a84,0x0a84,0x0a8c,0x0a8c,0x0a8e,0x0a8e,0x0a92,0x0a92,0x0aa9,0x0aa9,0x0ab1,0x0ab1,0x0ab4,0x0ab4,0x0aba,0x0abb,0x0ac6,0x0ac6,0x0aca,0x0aca,0x0ace,0x0acf,0x0ad1,0x0adf,0x0ae1,0x0ae5,0x0af0,0x0b00,0x0b04,0x0b04,0x0b0d,0x0b0e,0x0b11,0x0b12,0x0b29,0x0b29,0x0b31,0x0b31,0x0b34,0x0b35,0x0b3a,0x0b3b,0x0b44,0x0b46,0x0b49,0x0b4a,0x0b4e,0x0b55,0x0b58,0x0b5b,0x0b5e,0x0b5e,0x0b62,0x0b65,0x0b71,0x0b81,0x0b84,0x0b84,0x0b8b,0x0b8d,0x0b91,0x0b91,0x0b96,0x0b98,0x0b9b,0x0b9b,0x0b9d,0x0b9d,0x0ba0,0x0ba2,0x0ba5,0x0ba7,0x0bab,0x0bad,0x0bb6,0x0bb6,0x0bba,0x0bbd,0x0bc3,0x0bc5,0x0bc9,0x0bc9,0x0bce,0x0bd6,0x0bd8,0x0be6,0x0bf3,0x0c00,0x0c04,0x0c04,0x0c0d,0x0c0d,0x0c11,0x0c11,0x0c29,0x0c29,0x0c34,0x0c34,0x0c3a,0x0c3d,0x0c45,0x0c45,0x0c49,0x0c49,0x0c4e,0x0c54,0x0c57,0x0c5f,0x0c62,0x0c65,0x0c70,0x0c81,0x0c84,0x0c84,0x0c8d,0x0c8d,0x0c91,0x0c91,0x0ca9,0x0ca9,0x0cb4,0x0cb4,0x0cba,0x0cbd,0x0cc5,0x0cc5,0x0cc9,0x0cc9,0x0cce,0x0cd4,0x0cd7,0x0cdd,0x0cdf,0x0cdf,0x0ce2,0x0ce5,0x0cf0,0x0d01,0x0d04,0x0d04,0x0d0d,0x0d0d,0x0d11,0x0d11,0x0d29,0x0d29,0x0d3a,0x0d3d,0x0d44,0x0d45,0x0d49,0x0d49,0x0d4e,0x0d56,0x0d58,0x0d5f,0x0d62,0x0d65,0x0d70,0x0d81,0x0d84,0x0d84,0x0d97,0x0d99,0x0db2,0x0db2,0x0dbc,0x0dbc,0x0dbe,0x0dbf,0x0dc7,0x0dc9,0x0dcb,0x0dce,0x0dd5,0x0dd5,0x0dd7,0x0dd7,0x0de0,0x0df1,0x0df5,0x0e00,0x0e3b,0x0e3e,0x0e5c,0x0e80,0x0e83,0x0e83,0x0e85,0x0e86,0x0e89,0x0e89,0x0e8b,0x0e8c,0x0e8e,0x0e93,0x0e98,0x0e98,0x0ea0,0x0ea0,0x0ea4,0x0ea4,0x0ea6,0x0ea6,0x0ea8,0x0ea9,0x0eac,0x0eac,0x0eba,0x0eba,0x0ebe,0x0ebf,0x0ec5,0x0ec5,0x0ec7,0x0ec7,0x0ece,0x0ecf,0x0eda,0x0edb,0x0ede,0x0eff,0x0f48,0x0f48,0x0f6b,0x0f70,0x0f8c,0x0f8f,0x0f98,0x0f98,0x0fbd,0x0fbd,0x0fcd,0x0fce,0x0fd0,0x0fff,0x1022,0x1022,0x1028,0x1028,0x102b,0x102b,0x1033,0x1035,0x103a,0x103f,0x105a,0x109f,0x10c6,0x10cf,0x10f9,0x10fa,0x10fc,0x10ff,0x115a,0x115e,0x11a3,0x11a7,0x11fa,0x11ff,0x1207,0x1207,0x1247,0x1247,0x1249,0x1249,0x124e,0x124f,0x1257,0x1257,0x1259,0x1259,0x125e,0x125f,0x1287,0x1287,0x1289,0x1289,0x128e,0x128f,0x12af,0x12af,0x12b1,0x12b1,0x12b6,0x12b7,0x12bf,0x12bf,0x12c1,0x12c1,0x12c6,0x12c7,0x12cf,0x12cf,0x12d7,0x12d7,0x12ef,0x12ef,0x130f,0x130f,0x1311,0x1311,0x1316,0x1317,0x131f,0x131f,0x1347,0x1347,0x135b,0x1360,0x137d,0x139f,0x13f5,0x1400,0x1677,0x167f,0x169d,0x169f,0x16f1,0x16ff,0x170d,0x170d,0x1715,0x171f,0x1737,0x173f,0x1754,0x175f,0x176d,0x176d,0x1771,0x1771,0x1774,0x177f,0x17dd,0x17df,0x17ea,0x17ff,0x180f,0x180f,0x181a,0x181f,0x1878,0x187f,0x18aa,0x1dff,0x1e9c,0x1e9f,0x1efa,0x1eff,0x1f16,0x1f17,0x1f1e,0x1f1f,0x1f46,0x1f47,0x1f4e,0x1f4f,0x1f58,0x1f58,0x1f5a,0x1f5a,0x1f5c,0x1f5c,0x1f5e,0x1f5e,0x1f7e,0x1f7f,0x1fb5,0x1fb5,0x1fc5,0x1fc5,0x1fd4,0x1fd5,0x1fdc,0x1fdc,0x1ff0,0x1ff1,0x1ff5,0x1ff5,0x1fff,0x1fff,0x2053,0x2056,0x2058,0x205e,0x2064,0x2069,0x2072,0x2073,0x208f,0x209f,0x20b2,0x20cf,0x20eb,0x20ff,0x213b,0x213c,0x214c,0x2152,0x2184,0x218f,0x23cf,0x23ff,0x2427,0x243f,0x244b,0x245f,0x24ff,0x24ff,0x2614,0x2615,0x2618,0x2618,0x267e,0x267f,0x268a,0x2700,0x2705,0x2705,0x270a,0x270b,0x2728,0x2728,0x274c,0x274c,0x274e,0x274e,0x2753,0x2755,0x2757,0x2757,0x275f,0x2760,0x2795,0x2797,0x27b0,0x27b0,0x27bf,0x27cf,0x27ec,0x27ef,0x2b00,0x2e7f,0x2e9a,0x2e9a,0x2ef4,0x2eff,0x2fd6,0x2fef,0x2ffc,0x2fff,0x3040,0x3040,0x3097,0x3098,0x3100,0x3104,0x312d,0x3130,0x318f,0x318f,0x31b8,0x31ef,0x321d,0x321f,0x3244,0x3250,0x327c,0x327e,0x32cc,0x32cf,0x32ff,0x32ff,0x3377,0x337a,0x33de,0x33df,0x33ff,0x33ff,0x4db6,0x4dff,0x9fa6,0x9fff,0xa48d,0xa48f,0xa4c7,0xabff,0xd7a4,0xd7ff,0xfa2e,0xfa2f,0xfa6b,0xfaff,0xfb07,0xfb12,0xfb18,0xfb1c,0xfb37,0xfb37,0xfb3d,0xfb3d,0xfb3f,0xfb3f,0xfb42,0xfb42,0xfb45,0xfb45,0xfbb2,0xfbd2,0xfd40,0xfd4f,0xfd90,0xfd91,0xfdc8,0xfdcf,0xfdfd,0xfdff,0xfe10,0xfe1f,0xfe24,0xfe2f,0xfe47,0xfe48,0xfe53,0xfe53,0xfe67,0xfe67,0xfe6c,0xfe6f,0xfe75,0xfe75,0xfefd,0xfefe,0xff00,0xff00,0xffbf,0xffc1,0xffc8,0xffc9,0xffd0,0xffd1,0xffd8,0xffd9,0xffdd,0xffdf,0xffe7,0xffe7,0xffef,0xfff8,0x10000,0x102ff,0x1031f,0x1031f,0x10324,0x1032f,0x1034b,0x103ff,0x10426,0x10427,0x1044e,0x1cfff,0x1d0f6,0x1d0ff,0x1d127,0x1d129,0x1d1de,0x1d3ff,0x1d455,0x1d455,0x1d49d,0x1d49d,0x1d4a0,0x1d4a1,0x1d4a3,0x1d4a4,0x1d4a7,0x1d4a8,0x1d4ad,0x1d4ad,0x1d4ba,0x1d4ba,0x1d4bc,0x1d4bc,0x1d4c1,0x1d4c1,0x1d4c4,0x1d4c4,0x1d506,0x1d506,0x1d50b,0x1d50c,0x1d515,0x1d515,0x1d51d,0x1d51d,0x1d53a,0x1d53a,0x1d53f,0x1d53f,0x1d545,0x1d545,0x1d547,0x1d549,0x1d551,0x1d551,0x1d6a4,0x1d6a7,0x1d7ca,0x1d7cd,0x1d800,0x1fffd,0x2a6d7,0x2f7ff,0x2fa1e,0x2fffd,0x30000,0x3fffd,0x40000,0x4fffd,0x50000,0x5fffd,0x60000,0x6fffd,0x70000,0x7fffd,0x80000,0x8fffd,0x90000,0x9fffd,0xa0000,0xafffd,0xb0000,0xbfffd,0xc0000,0xcfffd,0xd0000,0xdfffd,0xe0000,0xe0000,0xe0002,0xe001f,0xe0080,0xefffd];/* eslint-enable */var isUnassignedCodePoint=function isUnassignedCodePoint(character){return inRange(character,unassigned_code_points);};/* eslint-disable prettier/prettier */ /**\r\n     * B.1 Commonly mapped to nothing\r\n     * @link https://tools.ietf.org/html/rfc3454#appendix-B.1\r\n     */var commonly_mapped_to_nothing=[0x00ad,0x00ad,0x034f,0x034f,0x1806,0x1806,0x180b,0x180b,0x180c,0x180c,0x180d,0x180d,0x200b,0x200b,0x200c,0x200c,0x200d,0x200d,0x2060,0x2060,0xfe00,0xfe00,0xfe01,0xfe01,0xfe02,0xfe02,0xfe03,0xfe03,0xfe04,0xfe04,0xfe05,0xfe05,0xfe06,0xfe06,0xfe07,0xfe07,0xfe08,0xfe08,0xfe09,0xfe09,0xfe0a,0xfe0a,0xfe0b,0xfe0b,0xfe0c,0xfe0c,0xfe0d,0xfe0d,0xfe0e,0xfe0e,0xfe0f,0xfe0f,0xfeff,0xfeff];/* eslint-enable */var isCommonlyMappedToNothing=function isCommonlyMappedToNothing(character){return inRange(character,commonly_mapped_to_nothing);};/* eslint-disable prettier/prettier */ /**\r\n     * C.1.2 Non-ASCII space characters\r\n     * @link https://tools.ietf.org/html/rfc3454#appendix-C.1.2\r\n     */var non_ASCII_space_characters=[0x00a0,0x00a0/* NO-BREAK SPACE */,0x1680,0x1680/* OGHAM SPACE MARK */,0x2000,0x2000/* EN QUAD */,0x2001,0x2001/* EM QUAD */,0x2002,0x2002/* EN SPACE */,0x2003,0x2003/* EM SPACE */,0x2004,0x2004/* THREE-PER-EM SPACE */,0x2005,0x2005/* FOUR-PER-EM SPACE */,0x2006,0x2006/* SIX-PER-EM SPACE */,0x2007,0x2007/* FIGURE SPACE */,0x2008,0x2008/* PUNCTUATION SPACE */,0x2009,0x2009/* THIN SPACE */,0x200a,0x200a/* HAIR SPACE */,0x200b,0x200b/* ZERO WIDTH SPACE */,0x202f,0x202f/* NARROW NO-BREAK SPACE */,0x205f,0x205f/* MEDIUM MATHEMATICAL SPACE */,0x3000,0x3000/* IDEOGRAPHIC SPACE */];/* eslint-enable */var isNonASCIISpaceCharacter=function isNonASCIISpaceCharacter(character){return inRange(character,non_ASCII_space_characters);};/* eslint-disable prettier/prettier */var non_ASCII_controls_characters=[/**\r\n     * C.2.2 Non-ASCII control characters\r\n     * @link https://tools.ietf.org/html/rfc3454#appendix-C.2.2\r\n     */0x0080,0x009f/* [CONTROL CHARACTERS] */,0x06dd,0x06dd/* ARABIC END OF AYAH */,0x070f,0x070f/* SYRIAC ABBREVIATION MARK */,0x180e,0x180e/* MONGOLIAN VOWEL SEPARATOR */,0x200c,0x200c/* ZERO WIDTH NON-JOINER */,0x200d,0x200d/* ZERO WIDTH JOINER */,0x2028,0x2028/* LINE SEPARATOR */,0x2029,0x2029/* PARAGRAPH SEPARATOR */,0x2060,0x2060/* WORD JOINER */,0x2061,0x2061/* FUNCTION APPLICATION */,0x2062,0x2062/* INVISIBLE TIMES */,0x2063,0x2063/* INVISIBLE SEPARATOR */,0x206a,0x206f/* [CONTROL CHARACTERS] */,0xfeff,0xfeff/* ZERO WIDTH NO-BREAK SPACE */,0xfff9,0xfffc/* [CONTROL CHARACTERS] */,0x1d173,0x1d17a/* [MUSICAL CONTROL CHARACTERS] */];var non_character_codepoints=[/**\r\n     * C.4 Non-character code points\r\n     * @link https://tools.ietf.org/html/rfc3454#appendix-C.4\r\n     */0xfdd0,0xfdef/* [NONCHARACTER CODE POINTS] */,0xfffe,0xffff/* [NONCHARACTER CODE POINTS] */,0x1fffe,0x1ffff/* [NONCHARACTER CODE POINTS] */,0x2fffe,0x2ffff/* [NONCHARACTER CODE POINTS] */,0x3fffe,0x3ffff/* [NONCHARACTER CODE POINTS] */,0x4fffe,0x4ffff/* [NONCHARACTER CODE POINTS] */,0x5fffe,0x5ffff/* [NONCHARACTER CODE POINTS] */,0x6fffe,0x6ffff/* [NONCHARACTER CODE POINTS] */,0x7fffe,0x7ffff/* [NONCHARACTER CODE POINTS] */,0x8fffe,0x8ffff/* [NONCHARACTER CODE POINTS] */,0x9fffe,0x9ffff/* [NONCHARACTER CODE POINTS] */,0xafffe,0xaffff/* [NONCHARACTER CODE POINTS] */,0xbfffe,0xbffff/* [NONCHARACTER CODE POINTS] */,0xcfffe,0xcffff/* [NONCHARACTER CODE POINTS] */,0xdfffe,0xdffff/* [NONCHARACTER CODE POINTS] */,0xefffe,0xeffff/* [NONCHARACTER CODE POINTS] */,0x10fffe,0x10ffff/* [NONCHARACTER CODE POINTS] */];/**\r\n     * 2.3.  Prohibited Output\r\n     */var prohibited_characters=[/**\r\n     * C.2.1 ASCII control characters\r\n     * @link https://tools.ietf.org/html/rfc3454#appendix-C.2.1\r\n     */0,0x001f/* [CONTROL CHARACTERS] */,0x007f,0x007f/* DELETE */,/**\r\n     * C.8 Change display properties or are deprecated\r\n     * @link https://tools.ietf.org/html/rfc3454#appendix-C.8\r\n     */0x0340,0x0340/* COMBINING GRAVE TONE MARK */,0x0341,0x0341/* COMBINING ACUTE TONE MARK */,0x200e,0x200e/* LEFT-TO-RIGHT MARK */,0x200f,0x200f/* RIGHT-TO-LEFT MARK */,0x202a,0x202a/* LEFT-TO-RIGHT EMBEDDING */,0x202b,0x202b/* RIGHT-TO-LEFT EMBEDDING */,0x202c,0x202c/* POP DIRECTIONAL FORMATTING */,0x202d,0x202d/* LEFT-TO-RIGHT OVERRIDE */,0x202e,0x202e/* RIGHT-TO-LEFT OVERRIDE */,0x206a,0x206a/* INHIBIT SYMMETRIC SWAPPING */,0x206b,0x206b/* ACTIVATE SYMMETRIC SWAPPING */,0x206c,0x206c/* INHIBIT ARABIC FORM SHAPING */,0x206d,0x206d/* ACTIVATE ARABIC FORM SHAPING */,0x206e,0x206e/* NATIONAL DIGIT SHAPES */,0x206f,0x206f/* NOMINAL DIGIT SHAPES */,/**\r\n     * C.7 Inappropriate for canonical representation\r\n     * @link https://tools.ietf.org/html/rfc3454#appendix-C.7\r\n     */0x2ff0,0x2ffb/* [IDEOGRAPHIC DESCRIPTION CHARACTERS] */,/**\r\n     * C.5 Surrogate codes\r\n     * @link https://tools.ietf.org/html/rfc3454#appendix-C.5\r\n     */0xd800,0xdfff,/**\r\n     * C.3 Private use\r\n     * @link https://tools.ietf.org/html/rfc3454#appendix-C.3\r\n     */0xe000,0xf8ff/* [PRIVATE USE, PLANE 0] */,/**\r\n     * C.6 Inappropriate for plain text\r\n     * @link https://tools.ietf.org/html/rfc3454#appendix-C.6\r\n     */0xfff9,0xfff9/* INTERLINEAR ANNOTATION ANCHOR */,0xfffa,0xfffa/* INTERLINEAR ANNOTATION SEPARATOR */,0xfffb,0xfffb/* INTERLINEAR ANNOTATION TERMINATOR */,0xfffc,0xfffc/* OBJECT REPLACEMENT CHARACTER */,0xfffd,0xfffd/* REPLACEMENT CHARACTER */,/**\r\n     * C.9 Tagging characters\r\n     * @link https://tools.ietf.org/html/rfc3454#appendix-C.9\r\n     */0xe0001,0xe0001/* LANGUAGE TAG */,0xe0020,0xe007f/* [TAGGING CHARACTERS] */,/**\r\n     * C.3 Private use\r\n     * @link https://tools.ietf.org/html/rfc3454#appendix-C.3\r\n     */0xf0000,0xffffd/* [PRIVATE USE, PLANE 15] */,0x100000,0x10fffd/* [PRIVATE USE, PLANE 16] */];/* eslint-enable */var isProhibitedCharacter=function isProhibitedCharacter(character){return inRange(character,non_ASCII_space_characters)||inRange(character,prohibited_characters)||inRange(character,non_ASCII_controls_characters)||inRange(character,non_character_codepoints);};/* eslint-disable prettier/prettier */ /**\r\n     * D.1 Characters with bidirectional property \"R\" or \"AL\"\r\n     * @link https://tools.ietf.org/html/rfc3454#appendix-D.1\r\n     */var bidirectional_r_al=[0x05be,0x05be,0x05c0,0x05c0,0x05c3,0x05c3,0x05d0,0x05ea,0x05f0,0x05f4,0x061b,0x061b,0x061f,0x061f,0x0621,0x063a,0x0640,0x064a,0x066d,0x066f,0x0671,0x06d5,0x06dd,0x06dd,0x06e5,0x06e6,0x06fa,0x06fe,0x0700,0x070d,0x0710,0x0710,0x0712,0x072c,0x0780,0x07a5,0x07b1,0x07b1,0x200f,0x200f,0xfb1d,0xfb1d,0xfb1f,0xfb28,0xfb2a,0xfb36,0xfb38,0xfb3c,0xfb3e,0xfb3e,0xfb40,0xfb41,0xfb43,0xfb44,0xfb46,0xfbb1,0xfbd3,0xfd3d,0xfd50,0xfd8f,0xfd92,0xfdc7,0xfdf0,0xfdfc,0xfe70,0xfe74,0xfe76,0xfefc];/* eslint-enable */var isBidirectionalRAL=function isBidirectionalRAL(character){return inRange(character,bidirectional_r_al);};/* eslint-disable prettier/prettier */ /**\r\n     * D.2 Characters with bidirectional property \"L\"\r\n     * @link https://tools.ietf.org/html/rfc3454#appendix-D.2\r\n     */var bidirectional_l=[0x0041,0x005a,0x0061,0x007a,0x00aa,0x00aa,0x00b5,0x00b5,0x00ba,0x00ba,0x00c0,0x00d6,0x00d8,0x00f6,0x00f8,0x0220,0x0222,0x0233,0x0250,0x02ad,0x02b0,0x02b8,0x02bb,0x02c1,0x02d0,0x02d1,0x02e0,0x02e4,0x02ee,0x02ee,0x037a,0x037a,0x0386,0x0386,0x0388,0x038a,0x038c,0x038c,0x038e,0x03a1,0x03a3,0x03ce,0x03d0,0x03f5,0x0400,0x0482,0x048a,0x04ce,0x04d0,0x04f5,0x04f8,0x04f9,0x0500,0x050f,0x0531,0x0556,0x0559,0x055f,0x0561,0x0587,0x0589,0x0589,0x0903,0x0903,0x0905,0x0939,0x093d,0x0940,0x0949,0x094c,0x0950,0x0950,0x0958,0x0961,0x0964,0x0970,0x0982,0x0983,0x0985,0x098c,0x098f,0x0990,0x0993,0x09a8,0x09aa,0x09b0,0x09b2,0x09b2,0x09b6,0x09b9,0x09be,0x09c0,0x09c7,0x09c8,0x09cb,0x09cc,0x09d7,0x09d7,0x09dc,0x09dd,0x09df,0x09e1,0x09e6,0x09f1,0x09f4,0x09fa,0x0a05,0x0a0a,0x0a0f,0x0a10,0x0a13,0x0a28,0x0a2a,0x0a30,0x0a32,0x0a33,0x0a35,0x0a36,0x0a38,0x0a39,0x0a3e,0x0a40,0x0a59,0x0a5c,0x0a5e,0x0a5e,0x0a66,0x0a6f,0x0a72,0x0a74,0x0a83,0x0a83,0x0a85,0x0a8b,0x0a8d,0x0a8d,0x0a8f,0x0a91,0x0a93,0x0aa8,0x0aaa,0x0ab0,0x0ab2,0x0ab3,0x0ab5,0x0ab9,0x0abd,0x0ac0,0x0ac9,0x0ac9,0x0acb,0x0acc,0x0ad0,0x0ad0,0x0ae0,0x0ae0,0x0ae6,0x0aef,0x0b02,0x0b03,0x0b05,0x0b0c,0x0b0f,0x0b10,0x0b13,0x0b28,0x0b2a,0x0b30,0x0b32,0x0b33,0x0b36,0x0b39,0x0b3d,0x0b3e,0x0b40,0x0b40,0x0b47,0x0b48,0x0b4b,0x0b4c,0x0b57,0x0b57,0x0b5c,0x0b5d,0x0b5f,0x0b61,0x0b66,0x0b70,0x0b83,0x0b83,0x0b85,0x0b8a,0x0b8e,0x0b90,0x0b92,0x0b95,0x0b99,0x0b9a,0x0b9c,0x0b9c,0x0b9e,0x0b9f,0x0ba3,0x0ba4,0x0ba8,0x0baa,0x0bae,0x0bb5,0x0bb7,0x0bb9,0x0bbe,0x0bbf,0x0bc1,0x0bc2,0x0bc6,0x0bc8,0x0bca,0x0bcc,0x0bd7,0x0bd7,0x0be7,0x0bf2,0x0c01,0x0c03,0x0c05,0x0c0c,0x0c0e,0x0c10,0x0c12,0x0c28,0x0c2a,0x0c33,0x0c35,0x0c39,0x0c41,0x0c44,0x0c60,0x0c61,0x0c66,0x0c6f,0x0c82,0x0c83,0x0c85,0x0c8c,0x0c8e,0x0c90,0x0c92,0x0ca8,0x0caa,0x0cb3,0x0cb5,0x0cb9,0x0cbe,0x0cbe,0x0cc0,0x0cc4,0x0cc7,0x0cc8,0x0cca,0x0ccb,0x0cd5,0x0cd6,0x0cde,0x0cde,0x0ce0,0x0ce1,0x0ce6,0x0cef,0x0d02,0x0d03,0x0d05,0x0d0c,0x0d0e,0x0d10,0x0d12,0x0d28,0x0d2a,0x0d39,0x0d3e,0x0d40,0x0d46,0x0d48,0x0d4a,0x0d4c,0x0d57,0x0d57,0x0d60,0x0d61,0x0d66,0x0d6f,0x0d82,0x0d83,0x0d85,0x0d96,0x0d9a,0x0db1,0x0db3,0x0dbb,0x0dbd,0x0dbd,0x0dc0,0x0dc6,0x0dcf,0x0dd1,0x0dd8,0x0ddf,0x0df2,0x0df4,0x0e01,0x0e30,0x0e32,0x0e33,0x0e40,0x0e46,0x0e4f,0x0e5b,0x0e81,0x0e82,0x0e84,0x0e84,0x0e87,0x0e88,0x0e8a,0x0e8a,0x0e8d,0x0e8d,0x0e94,0x0e97,0x0e99,0x0e9f,0x0ea1,0x0ea3,0x0ea5,0x0ea5,0x0ea7,0x0ea7,0x0eaa,0x0eab,0x0ead,0x0eb0,0x0eb2,0x0eb3,0x0ebd,0x0ebd,0x0ec0,0x0ec4,0x0ec6,0x0ec6,0x0ed0,0x0ed9,0x0edc,0x0edd,0x0f00,0x0f17,0x0f1a,0x0f34,0x0f36,0x0f36,0x0f38,0x0f38,0x0f3e,0x0f47,0x0f49,0x0f6a,0x0f7f,0x0f7f,0x0f85,0x0f85,0x0f88,0x0f8b,0x0fbe,0x0fc5,0x0fc7,0x0fcc,0x0fcf,0x0fcf,0x1000,0x1021,0x1023,0x1027,0x1029,0x102a,0x102c,0x102c,0x1031,0x1031,0x1038,0x1038,0x1040,0x1057,0x10a0,0x10c5,0x10d0,0x10f8,0x10fb,0x10fb,0x1100,0x1159,0x115f,0x11a2,0x11a8,0x11f9,0x1200,0x1206,0x1208,0x1246,0x1248,0x1248,0x124a,0x124d,0x1250,0x1256,0x1258,0x1258,0x125a,0x125d,0x1260,0x1286,0x1288,0x1288,0x128a,0x128d,0x1290,0x12ae,0x12b0,0x12b0,0x12b2,0x12b5,0x12b8,0x12be,0x12c0,0x12c0,0x12c2,0x12c5,0x12c8,0x12ce,0x12d0,0x12d6,0x12d8,0x12ee,0x12f0,0x130e,0x1310,0x1310,0x1312,0x1315,0x1318,0x131e,0x1320,0x1346,0x1348,0x135a,0x1361,0x137c,0x13a0,0x13f4,0x1401,0x1676,0x1681,0x169a,0x16a0,0x16f0,0x1700,0x170c,0x170e,0x1711,0x1720,0x1731,0x1735,0x1736,0x1740,0x1751,0x1760,0x176c,0x176e,0x1770,0x1780,0x17b6,0x17be,0x17c5,0x17c7,0x17c8,0x17d4,0x17da,0x17dc,0x17dc,0x17e0,0x17e9,0x1810,0x1819,0x1820,0x1877,0x1880,0x18a8,0x1e00,0x1e9b,0x1ea0,0x1ef9,0x1f00,0x1f15,0x1f18,0x1f1d,0x1f20,0x1f45,0x1f48,0x1f4d,0x1f50,0x1f57,0x1f59,0x1f59,0x1f5b,0x1f5b,0x1f5d,0x1f5d,0x1f5f,0x1f7d,0x1f80,0x1fb4,0x1fb6,0x1fbc,0x1fbe,0x1fbe,0x1fc2,0x1fc4,0x1fc6,0x1fcc,0x1fd0,0x1fd3,0x1fd6,0x1fdb,0x1fe0,0x1fec,0x1ff2,0x1ff4,0x1ff6,0x1ffc,0x200e,0x200e,0x2071,0x2071,0x207f,0x207f,0x2102,0x2102,0x2107,0x2107,0x210a,0x2113,0x2115,0x2115,0x2119,0x211d,0x2124,0x2124,0x2126,0x2126,0x2128,0x2128,0x212a,0x212d,0x212f,0x2131,0x2133,0x2139,0x213d,0x213f,0x2145,0x2149,0x2160,0x2183,0x2336,0x237a,0x2395,0x2395,0x249c,0x24e9,0x3005,0x3007,0x3021,0x3029,0x3031,0x3035,0x3038,0x303c,0x3041,0x3096,0x309d,0x309f,0x30a1,0x30fa,0x30fc,0x30ff,0x3105,0x312c,0x3131,0x318e,0x3190,0x31b7,0x31f0,0x321c,0x3220,0x3243,0x3260,0x327b,0x327f,0x32b0,0x32c0,0x32cb,0x32d0,0x32fe,0x3300,0x3376,0x337b,0x33dd,0x33e0,0x33fe,0x3400,0x4db5,0x4e00,0x9fa5,0xa000,0xa48c,0xac00,0xd7a3,0xd800,0xfa2d,0xfa30,0xfa6a,0xfb00,0xfb06,0xfb13,0xfb17,0xff21,0xff3a,0xff41,0xff5a,0xff66,0xffbe,0xffc2,0xffc7,0xffca,0xffcf,0xffd2,0xffd7,0xffda,0xffdc,0x10300,0x1031e,0x10320,0x10323,0x10330,0x1034a,0x10400,0x10425,0x10428,0x1044d,0x1d000,0x1d0f5,0x1d100,0x1d126,0x1d12a,0x1d166,0x1d16a,0x1d172,0x1d183,0x1d184,0x1d18c,0x1d1a9,0x1d1ae,0x1d1dd,0x1d400,0x1d454,0x1d456,0x1d49c,0x1d49e,0x1d49f,0x1d4a2,0x1d4a2,0x1d4a5,0x1d4a6,0x1d4a9,0x1d4ac,0x1d4ae,0x1d4b9,0x1d4bb,0x1d4bb,0x1d4bd,0x1d4c0,0x1d4c2,0x1d4c3,0x1d4c5,0x1d505,0x1d507,0x1d50a,0x1d50d,0x1d514,0x1d516,0x1d51c,0x1d51e,0x1d539,0x1d53b,0x1d53e,0x1d540,0x1d544,0x1d546,0x1d546,0x1d54a,0x1d550,0x1d552,0x1d6a3,0x1d6a8,0x1d7c9,0x20000,0x2a6d6,0x2f800,0x2fa1d,0xf0000,0xffffd,0x100000,0x10fffd];/* eslint-enable */var isBidirectionalL=function isBidirectionalL(character){return inRange(character,bidirectional_l);};/**\r\n     * non-ASCII space characters [StringPrep, C.1.2] that can be\r\n     * mapped to SPACE (U+0020)\r\n     */var mapping2space=isNonASCIISpaceCharacter;/**\r\n     * the \"commonly mapped to nothing\" characters [StringPrep, B.1]\r\n     * that can be mapped to nothing.\r\n     */var mapping2nothing=isCommonlyMappedToNothing;// utils\nvar getCodePoint=function getCodePoint(character){return character.codePointAt(0);};var first=function first(x){return x[0];};var last=function last(x){return x[x.length-1];};/**\r\n     * Convert provided string into an array of Unicode Code Points.\r\n     * Based on https://stackoverflow.com/a/21409165/1556249\r\n     * and https://www.npmjs.com/package/code-point-at.\r\n     * @param {string} input\r\n     * @returns {number[]}\r\n     */function toCodePoints(input){var codepoints=[];var size=input.length;for(var i=0;i<size;i+=1){var before=input.charCodeAt(i);if(before>=0xd800&&before<=0xdbff&&size>i+1){var next=input.charCodeAt(i+1);if(next>=0xdc00&&next<=0xdfff){codepoints.push((before-0xd800)*0x400+next-0xdc00+0x10000);i+=1;continue;}}codepoints.push(before);}return codepoints;}/**\r\n     * SASLprep.\r\n     * @param {string} input\r\n     * @param {Object} opts\r\n     * @param {boolean} opts.allowUnassigned\r\n     * @returns {string}\r\n     */function saslprep(input){var opts=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(typeof input!=='string'){throw new TypeError('Expected string.');}if(input.length===0){return'';}// 1. Map\nvar mapped_input=toCodePoints(input)// 1.1 mapping to space\n.map(function(character){return mapping2space(character)?0x20:character;})// 1.2 mapping to nothing\n.filter(function(character){return!mapping2nothing(character);});// 2. Normalize\nvar normalized_input=String.fromCodePoint.apply(null,mapped_input).normalize('NFKC');var normalized_map=toCodePoints(normalized_input);// 3. Prohibit\nvar hasProhibited=normalized_map.some(isProhibitedCharacter);if(hasProhibited){throw new Error('Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3');}// Unassigned Code Points\nif(opts.allowUnassigned!==true){var hasUnassigned=normalized_map.some(isUnassignedCodePoint);if(hasUnassigned){throw new Error('Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5');}}// 4. check bidi\nvar hasBidiRAL=normalized_map.some(isBidirectionalRAL);var hasBidiL=normalized_map.some(isBidirectionalL);// 4.1 If a string contains any RandALCat character, the string MUST NOT\n// contain any LCat character.\nif(hasBidiRAL&&hasBidiL){throw new Error('String must not contain RandALCat and LCat at the same time,'+' see https://tools.ietf.org/html/rfc3454#section-6');}/**\r\n       * 4.2 If a string contains any RandALCat character, a RandALCat\r\n       * character MUST be the first character of the string, and a\r\n       * RandALCat character MUST be the last character of the string.\r\n       */var isFirstBidiRAL=isBidirectionalRAL(getCodePoint(first(normalized_input)));var isLastBidiRAL=isBidirectionalRAL(getCodePoint(last(normalized_input)));if(hasBidiRAL&&!(isFirstBidiRAL&&isLastBidiRAL)){throw new Error('Bidirectional RandALCat character must be the first and the last'+' character of the string, see https://tools.ietf.org/html/rfc3454#section-6');}return normalized_input;}var PDFSecurity=/*#__PURE__*/function(){_createClass(PDFSecurity,null,[{key:\"generateFileID\",value:function generateFileID(){var info=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var infoStr=\"\".concat(info.CreationDate.getTime(),\"\\n\");for(var key in info){if(!info.hasOwnProperty(key)){continue;}infoStr+=\"\".concat(key,\": \").concat(info[key],\"\\n\");}return wordArrayToBuffer(_cryptoJs.default.MD5(infoStr));}},{key:\"generateRandomWordArray\",value:function generateRandomWordArray(bytes){return _cryptoJs.default.lib.WordArray.random(bytes);}},{key:\"create\",value:function create(document){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!options.ownerPassword&&!options.userPassword){return null;}return new PDFSecurity(document,options);}}]);function PDFSecurity(document){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,PDFSecurity);if(!options.ownerPassword&&!options.userPassword){throw new Error('None of owner password and user password is defined.');}this.document=document;this._setupEncryption(options);}_createClass(PDFSecurity,[{key:\"_setupEncryption\",value:function _setupEncryption(options){switch(options.pdfVersion){case'1.4':case'1.5':this.version=2;break;case'1.6':case'1.7':this.version=4;break;case'1.7ext3':this.version=5;break;default:this.version=1;break;}var encDict={Filter:'Standard'};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,encDict,options);break;case 5:this._setupEncryptionV5(encDict,options);break;}this.dictionary=this.document.ref(encDict);}},{key:\"_setupEncryptionV1V2V4\",value:function _setupEncryptionV1V2V4(v,encDict,options){var r,permissions;switch(v){case 1:r=2;this.keyBits=40;permissions=getPermissionsR2(options.permissions);break;case 2:r=3;this.keyBits=128;permissions=getPermissionsR3(options.permissions);break;case 4:r=4;this.keyBits=128;permissions=getPermissionsR3(options.permissions);break;}var paddedUserPassword=processPasswordR2R3R4(options.userPassword);var paddedOwnerPassword=options.ownerPassword?processPasswordR2R3R4(options.ownerPassword):paddedUserPassword;var ownerPasswordEntry=getOwnerPasswordR2R3R4(r,this.keyBits,paddedUserPassword,paddedOwnerPassword);this.encryptionKey=getEncryptionKeyR2R3R4(r,this.keyBits,this.document._id,paddedUserPassword,ownerPasswordEntry,permissions);var userPasswordEntry;if(r===2){userPasswordEntry=getUserPasswordR2(this.encryptionKey);}else{userPasswordEntry=getUserPasswordR3R4(this.document._id,this.encryptionKey);}encDict.V=v;if(v>=2){encDict.Length=this.keyBits;}if(v===4){encDict.CF={StdCF:{AuthEvent:'DocOpen',CFM:'AESV2',Length:this.keyBits/8}};encDict.StmF='StdCF';encDict.StrF='StdCF';}encDict.R=r;encDict.O=wordArrayToBuffer(ownerPasswordEntry);encDict.U=wordArrayToBuffer(userPasswordEntry);encDict.P=permissions;}},{key:\"_setupEncryptionV5\",value:function _setupEncryptionV5(encDict,options){this.keyBits=256;var permissions=getPermissionsR3(options);var processedUserPassword=processPasswordR5(options.userPassword);var processedOwnerPassword=options.ownerPassword?processPasswordR5(options.ownerPassword):processedUserPassword;this.encryptionKey=getEncryptionKeyR5(PDFSecurity.generateRandomWordArray);var userPasswordEntry=getUserPasswordR5(processedUserPassword,PDFSecurity.generateRandomWordArray);var userKeySalt=_cryptoJs.default.lib.WordArray.create(userPasswordEntry.words.slice(10,12),8);var userEncryptionKeyEntry=getUserEncryptionKeyR5(processedUserPassword,userKeySalt,this.encryptionKey);var ownerPasswordEntry=getOwnerPasswordR5(processedOwnerPassword,userPasswordEntry,PDFSecurity.generateRandomWordArray);var ownerKeySalt=_cryptoJs.default.lib.WordArray.create(ownerPasswordEntry.words.slice(10,12),8);var ownerEncryptionKeyEntry=getOwnerEncryptionKeyR5(processedOwnerPassword,ownerKeySalt,userPasswordEntry,this.encryptionKey);var permsEntry=getEncryptedPermissionsR5(permissions,this.encryptionKey,PDFSecurity.generateRandomWordArray);encDict.V=5;encDict.Length=this.keyBits;encDict.CF={StdCF:{AuthEvent:'DocOpen',CFM:'AESV3',Length:this.keyBits/8}};encDict.StmF='StdCF';encDict.StrF='StdCF';encDict.R=5;encDict.O=wordArrayToBuffer(ownerPasswordEntry);encDict.OE=wordArrayToBuffer(ownerEncryptionKeyEntry);encDict.U=wordArrayToBuffer(userPasswordEntry);encDict.UE=wordArrayToBuffer(userEncryptionKeyEntry);encDict.P=permissions;encDict.Perms=wordArrayToBuffer(permsEntry);}},{key:\"getEncryptFn\",value:function getEncryptFn(obj,gen){var digest;if(this.version<5){digest=this.encryptionKey.clone().concat(_cryptoJs.default.lib.WordArray.create([(obj&0xff)<<24|(obj&0xff00)<<8|obj>>8&0xff00|gen&0xff,(gen&0xff00)<<16],5));}if(this.version===1||this.version===2){var _key=_cryptoJs.default.MD5(digest);_key.sigBytes=Math.min(16,this.keyBits/8+5);return function(buffer){return wordArrayToBuffer(_cryptoJs.default.RC4.encrypt(_cryptoJs.default.lib.WordArray.create(buffer),_key).ciphertext);};}var key;if(this.version===4){key=_cryptoJs.default.MD5(digest.concat(_cryptoJs.default.lib.WordArray.create([0x73416c54],4)));}else{key=this.encryptionKey;}var iv=PDFSecurity.generateRandomWordArray(16);var options={mode:_cryptoJs.default.mode.CBC,padding:_cryptoJs.default.pad.Pkcs7,iv:iv};return function(buffer){return wordArrayToBuffer(iv.clone().concat(_cryptoJs.default.AES.encrypt(_cryptoJs.default.lib.WordArray.create(buffer),key,options).ciphertext));};}},{key:\"end\",value:function end(){this.dictionary.end();}}]);return PDFSecurity;}();function getPermissionsR2(){var permissionObject=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var permissions=0xffffffc0>>0;if(permissionObject.printing){permissions|=4;}if(permissionObject.modifying){permissions|=8;}if(permissionObject.copying){permissions|=16;}if(permissionObject.annotating){permissions|=32;}return permissions;}function getPermissionsR3(){var permissionObject=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var permissions=0xfffff0c0>>0;if(permissionObject.printing==='lowResolution'){permissions|=4;}if(permissionObject.printing==='highResolution'){permissions|=2052;}if(permissionObject.modifying){permissions|=8;}if(permissionObject.copying){permissions|=16;}if(permissionObject.annotating){permissions|=32;}if(permissionObject.fillingForms){permissions|=256;}if(permissionObject.contentAccessibility){permissions|=512;}if(permissionObject.documentAssembly){permissions|=1024;}return permissions;}function getUserPasswordR2(encryptionKey){return _cryptoJs.default.RC4.encrypt(processPasswordR2R3R4(),encryptionKey).ciphertext;}function getUserPasswordR3R4(documentId,encryptionKey){var key=encryptionKey.clone();var cipher=_cryptoJs.default.MD5(processPasswordR2R3R4().concat(_cryptoJs.default.lib.WordArray.create(documentId)));for(var i=0;i<20;i++){var xorRound=Math.ceil(key.sigBytes/4);for(var j=0;j<xorRound;j++){key.words[j]=encryptionKey.words[j]^(i|i<<8|i<<16|i<<24);}cipher=_cryptoJs.default.RC4.encrypt(cipher,key).ciphertext;}return cipher.concat(_cryptoJs.default.lib.WordArray.create(null,16));}function getOwnerPasswordR2R3R4(r,keyBits,paddedUserPassword,paddedOwnerPassword){var digest=paddedOwnerPassword;var round=r>=3?51:1;for(var i=0;i<round;i++){digest=_cryptoJs.default.MD5(digest);}var key=digest.clone();key.sigBytes=keyBits/8;var cipher=paddedUserPassword;round=r>=3?20:1;for(var _i=0;_i<round;_i++){var xorRound=Math.ceil(key.sigBytes/4);for(var j=0;j<xorRound;j++){key.words[j]=digest.words[j]^(_i|_i<<8|_i<<16|_i<<24);}cipher=_cryptoJs.default.RC4.encrypt(cipher,key).ciphertext;}return cipher;}function getEncryptionKeyR2R3R4(r,keyBits,documentId,paddedUserPassword,ownerPasswordEntry,permissions){var key=paddedUserPassword.clone().concat(ownerPasswordEntry).concat(_cryptoJs.default.lib.WordArray.create([lsbFirstWord(permissions)],4)).concat(_cryptoJs.default.lib.WordArray.create(documentId));var round=r>=3?51:1;for(var i=0;i<round;i++){key=_cryptoJs.default.MD5(key);key.sigBytes=keyBits/8;}return key;}function getUserPasswordR5(processedUserPassword,generateRandomWordArray){var validationSalt=generateRandomWordArray(8);var keySalt=generateRandomWordArray(8);return _cryptoJs.default.SHA256(processedUserPassword.clone().concat(validationSalt)).concat(validationSalt).concat(keySalt);}function getUserEncryptionKeyR5(processedUserPassword,userKeySalt,encryptionKey){var key=_cryptoJs.default.SHA256(processedUserPassword.clone().concat(userKeySalt));var options={mode:_cryptoJs.default.mode.CBC,padding:_cryptoJs.default.pad.NoPadding,iv:_cryptoJs.default.lib.WordArray.create(null,16)};return _cryptoJs.default.AES.encrypt(encryptionKey,key,options).ciphertext;}function getOwnerPasswordR5(processedOwnerPassword,userPasswordEntry,generateRandomWordArray){var validationSalt=generateRandomWordArray(8);var keySalt=generateRandomWordArray(8);return _cryptoJs.default.SHA256(processedOwnerPassword.clone().concat(validationSalt).concat(userPasswordEntry)).concat(validationSalt).concat(keySalt);}function getOwnerEncryptionKeyR5(processedOwnerPassword,ownerKeySalt,userPasswordEntry,encryptionKey){var key=_cryptoJs.default.SHA256(processedOwnerPassword.clone().concat(ownerKeySalt).concat(userPasswordEntry));var options={mode:_cryptoJs.default.mode.CBC,padding:_cryptoJs.default.pad.NoPadding,iv:_cryptoJs.default.lib.WordArray.create(null,16)};return _cryptoJs.default.AES.encrypt(encryptionKey,key,options).ciphertext;}function getEncryptionKeyR5(generateRandomWordArray){return generateRandomWordArray(32);}function getEncryptedPermissionsR5(permissions,encryptionKey,generateRandomWordArray){var cipher=_cryptoJs.default.lib.WordArray.create([lsbFirstWord(permissions),0xffffffff,0x54616462],12).concat(generateRandomWordArray(4));var options={mode:_cryptoJs.default.mode.ECB,padding:_cryptoJs.default.pad.NoPadding};return _cryptoJs.default.AES.encrypt(cipher,encryptionKey,options).ciphertext;}function processPasswordR2R3R4(){var password=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'';var out=new Buffer(32);var length=password.length;var index=0;while(index<length&&index<32){var code=password.charCodeAt(index);if(code>0xff){throw new Error('Password contains one or more invalid characters.');}out[index]=code;index++;}while(index<32){out[index]=PASSWORD_PADDING[index-length];index++;}return _cryptoJs.default.lib.WordArray.create(out);}function processPasswordR5(){var password=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'';password=unescape(encodeURIComponent(saslprep(password)));var length=Math.min(127,password.length);var out=new Buffer(length);for(var i=0;i<length;i++){out[i]=password.charCodeAt(i);}return _cryptoJs.default.lib.WordArray.create(out);}function lsbFirstWord(data){return(data&0xff)<<24|(data&0xff00)<<8|data>>8&0xff00|data>>24&0xff;}function wordArrayToBuffer(wordArray){var byteArray=[];for(var i=0;i<wordArray.sigBytes;i++){byteArray.push(wordArray.words[Math.floor(i/4)]>>8*(3-i%4)&0xff);}return Buffer.from(byteArray);}var PASSWORD_PADDING=[0x28,0xbf,0x4e,0x5e,0x4e,0x75,0x8a,0x41,0x64,0x00,0x4e,0x56,0xff,0xfa,0x01,0x08,0x2e,0x2e,0x00,0xb6,0xd0,0x68,0x3e,0x80,0x2f,0x0c,0xa9,0xfe,0x64,0x53,0x69,0x7a];var number=PDFObject.number;var PDFGradient=/*#__PURE__*/function(){function PDFGradient(doc){_classCallCheck(this,PDFGradient);this.doc=doc;this.stops=[];this.embedded=false;this.transform=[1,0,0,1,0,0];}_createClass(PDFGradient,[{key:\"stop\",value:function stop(pos,color,opacity){if(opacity==null){opacity=1;}color=this.doc._normalizeColor(color);if(this.stops.length===0){if(color.length===3){this._colorSpace='DeviceRGB';}else if(color.length===4){this._colorSpace='DeviceCMYK';}else if(color.length===1){this._colorSpace='DeviceGray';}else{throw new Error('Unknown color space');}}else if(this._colorSpace==='DeviceRGB'&&color.length!==3||this._colorSpace==='DeviceCMYK'&&color.length!==4||this._colorSpace==='DeviceGray'&&color.length!==1){throw new Error('All gradient stops must use the same color space');}opacity=Math.max(0,Math.min(1,opacity));this.stops.push([pos,color,opacity]);return this;}},{key:\"setTransform\",value:function setTransform(m11,m12,m21,m22,dx,dy){this.transform=[m11,m12,m21,m22,dx,dy];return this;}},{key:\"embed\",value:function embed(m){var fn;var stopsLength=this.stops.length;if(stopsLength===0){return;}this.embedded=true;this.matrix=m;// if the last stop comes before 100%, add a copy at 100%\nvar last=this.stops[stopsLength-1];if(last[0]<1){this.stops.push([1,last[1],last[2]]);}var bounds=[];var encode=[];var stops=[];for(var i=0;i<stopsLength-1;i++){encode.push(0,1);if(i+2!==stopsLength){bounds.push(this.stops[i+1][0]);}fn=this.doc.ref({FunctionType:2,Domain:[0,1],C0:this.stops[i+0][1],C1:this.stops[i+1][1],N:1});stops.push(fn);fn.end();}// if there are only two stops, we don't need a stitching function\nif(stopsLength===1){fn=stops[0];}else{fn=this.doc.ref({FunctionType:3,// stitching function\nDomain:[0,1],Functions:stops,Bounds:bounds,Encode:encode});fn.end();}this.id=\"Sh\".concat(++this.doc._gradCount);var shader=this.shader(fn);shader.end();var pattern=this.doc.ref({Type:'Pattern',PatternType:2,Shading:shader,Matrix:this.matrix.map(number)});pattern.end();if(this.stops.some(function(stop){return stop[2]<1;})){var grad=this.opacityGradient();grad._colorSpace='DeviceGray';var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=this.stops[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var stop=_step.value;grad.stop(stop[0],[stop[2]]);}}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError;}}}grad=grad.embed(this.matrix);var pageBBox=[0,0,this.doc.page.width,this.doc.page.height];var form=this.doc.ref({Type:'XObject',Subtype:'Form',FormType:1,BBox:pageBBox,Group:{Type:'Group',S:'Transparency',CS:'DeviceGray'},Resources:{ProcSet:['PDF','Text','ImageB','ImageC','ImageI'],Pattern:{Sh1:grad}}});form.write('/Pattern cs /Sh1 scn');form.end(\"\".concat(pageBBox.join(' '),\" re f\"));var gstate=this.doc.ref({Type:'ExtGState',SMask:{Type:'Mask',S:'Luminosity',G:form}});gstate.end();var opacityPattern=this.doc.ref({Type:'Pattern',PatternType:1,PaintType:1,TilingType:2,BBox:pageBBox,XStep:pageBBox[2],YStep:pageBBox[3],Resources:{ProcSet:['PDF','Text','ImageB','ImageC','ImageI'],Pattern:{Sh1:pattern},ExtGState:{Gs1:gstate}}});opacityPattern.write('/Gs1 gs /Pattern cs /Sh1 scn');opacityPattern.end(\"\".concat(pageBBox.join(' '),\" re f\"));this.doc.page.patterns[this.id]=opacityPattern;}else{this.doc.page.patterns[this.id]=pattern;}return pattern;}},{key:\"apply\",value:function apply(op){// apply gradient transform to existing document ctm\nvar _this$doc$_ctm=_slicedToArray(this.doc._ctm,6),m0=_this$doc$_ctm[0],m1=_this$doc$_ctm[1],m2=_this$doc$_ctm[2],m3=_this$doc$_ctm[3],m4=_this$doc$_ctm[4],m5=_this$doc$_ctm[5];var _this$transform=_slicedToArray(this.transform,6),m11=_this$transform[0],m12=_this$transform[1],m21=_this$transform[2],m22=_this$transform[3],dx=_this$transform[4],dy=_this$transform[5];var m=[m0*m11+m2*m12,m1*m11+m3*m12,m0*m21+m2*m22,m1*m21+m3*m22,m0*dx+m2*dy+m4,m1*dx+m3*dy+m5];if(!this.embedded||m.join(' ')!==this.matrix.join(' ')){this.embed(m);}return this.doc.addContent(\"/\".concat(this.id,\" \").concat(op));}}]);return PDFGradient;}();var PDFLinearGradient=/*#__PURE__*/function(_PDFGradient){_inherits(PDFLinearGradient,_PDFGradient);function PDFLinearGradient(doc,x1,y1,x2,y2){var _this;_classCallCheck(this,PDFLinearGradient);_this=_possibleConstructorReturn(this,_getPrototypeOf(PDFLinearGradient).call(this,doc));_this.x1=x1;_this.y1=y1;_this.x2=x2;_this.y2=y2;return _this;}_createClass(PDFLinearGradient,[{key:\"shader\",value:function shader(fn){return this.doc.ref({ShadingType:2,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.x2,this.y2],Function:fn,Extend:[true,true]});}},{key:\"opacityGradient\",value:function opacityGradient(){return new PDFLinearGradient(this.doc,this.x1,this.y1,this.x2,this.y2);}}]);return PDFLinearGradient;}(PDFGradient);var PDFRadialGradient=/*#__PURE__*/function(_PDFGradient2){_inherits(PDFRadialGradient,_PDFGradient2);function PDFRadialGradient(doc,x1,y1,r1,x2,y2,r2){var _this2;_classCallCheck(this,PDFRadialGradient);_this2=_possibleConstructorReturn(this,_getPrototypeOf(PDFRadialGradient).call(this,doc));_this2.doc=doc;_this2.x1=x1;_this2.y1=y1;_this2.r1=r1;_this2.x2=x2;_this2.y2=y2;_this2.r2=r2;return _this2;}_createClass(PDFRadialGradient,[{key:\"shader\",value:function shader(fn){return this.doc.ref({ShadingType:3,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.r1,this.x2,this.y2,this.r2],Function:fn,Extend:[true,true]});}},{key:\"opacityGradient\",value:function opacityGradient(){return new PDFRadialGradient(this.doc,this.x1,this.y1,this.r1,this.x2,this.y2,this.r2);}}]);return PDFRadialGradient;}(PDFGradient);var Gradient={PDFGradient:PDFGradient,PDFLinearGradient:PDFLinearGradient,PDFRadialGradient:PDFRadialGradient};var PDFGradient$1=Gradient.PDFGradient,PDFLinearGradient$1=Gradient.PDFLinearGradient,PDFRadialGradient$1=Gradient.PDFRadialGradient;var ColorMixin={initColor:function initColor(){// The opacity dictionaries\nthis._opacityRegistry={};this._opacityCount=0;return this._gradCount=0;},_normalizeColor:function _normalizeColor(color){if(color instanceof PDFGradient$1){return color;}if(typeof color==='string'){if(color.charAt(0)==='#'){if(color.length===4){color=color.replace(/#([0-9A-F])([0-9A-F])([0-9A-F])/i,'#$1$1$2$2$3$3');}var hex=parseInt(color.slice(1),16);color=[hex>>16,hex>>8&0xff,hex&0xff];}else if(namedColors[color]){color=namedColors[color];}}if(Array.isArray(color)){// RGB\nif(color.length===3){color=color.map(function(part){return part/255;});// CMYK\n}else if(color.length===4){color=color.map(function(part){return part/100;});}return color;}return null;},_setColor:function _setColor(color,stroke){color=this._normalizeColor(color);if(!color){return false;}var op=stroke?'SCN':'scn';if(color instanceof PDFGradient$1){this._setColorSpace('Pattern',stroke);color.apply(op);}else{var space=color.length===4?'DeviceCMYK':'DeviceRGB';this._setColorSpace(space,stroke);color=color.join(' ');this.addContent(\"\".concat(color,\" \").concat(op));}return true;},_setColorSpace:function _setColorSpace(space,stroke){var op=stroke?'CS':'cs';return this.addContent(\"/\".concat(space,\" \").concat(op));},fillColor:function fillColor(color,opacity){var set=this._setColor(color,false);if(set){this.fillOpacity(opacity);}// save this for text wrapper, which needs to reset\n// the fill color on new pages\nthis._fillColor=[color,opacity];return this;},strokeColor:function strokeColor(color,opacity){var set=this._setColor(color,true);if(set){this.strokeOpacity(opacity);}return this;},opacity:function opacity(_opacity){this._doOpacity(_opacity,_opacity);return this;},fillOpacity:function fillOpacity(opacity){this._doOpacity(opacity,null);return this;},strokeOpacity:function strokeOpacity(opacity){this._doOpacity(null,opacity);return this;},_doOpacity:function _doOpacity(fillOpacity,strokeOpacity){var dictionary,name;if(fillOpacity==null&&strokeOpacity==null){return;}if(fillOpacity!=null){fillOpacity=Math.max(0,Math.min(1,fillOpacity));}if(strokeOpacity!=null){strokeOpacity=Math.max(0,Math.min(1,strokeOpacity));}var key=\"\".concat(fillOpacity,\"_\").concat(strokeOpacity);if(this._opacityRegistry[key]){var _this$_opacityRegistr=_slicedToArray(this._opacityRegistry[key],2);dictionary=_this$_opacityRegistr[0];name=_this$_opacityRegistr[1];}else{dictionary={Type:'ExtGState'};if(fillOpacity!=null){dictionary.ca=fillOpacity;}if(strokeOpacity!=null){dictionary.CA=strokeOpacity;}dictionary=this.ref(dictionary);dictionary.end();var id=++this._opacityCount;name=\"Gs\".concat(id);this._opacityRegistry[key]=[dictionary,name];}this.page.ext_gstates[name]=dictionary;return this.addContent(\"/\".concat(name,\" gs\"));},linearGradient:function linearGradient(x1,y1,x2,y2){return new PDFLinearGradient$1(this,x1,y1,x2,y2);},radialGradient:function radialGradient(x1,y1,r1,x2,y2,r2){return new PDFRadialGradient$1(this,x1,y1,r1,x2,y2,r2);}};var namedColors={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var cx,cy,px,py,sx,sy;cx=cy=px=py=sx=sy=0;var parameters={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};var parse=function parse(path){var cmd;var ret=[];var args=[];var curArg='';var foundDecimal=false;var params=0;var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=path[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var c=_step.value;if(parameters[c]!=null){params=parameters[c];if(cmd){// save existing command\nif(curArg.length>0){args[args.length]=+curArg;}ret[ret.length]={cmd:cmd,args:args};args=[];curArg='';foundDecimal=false;}cmd=c;}else if([' ',','].includes(c)||c==='-'&&curArg.length>0&&curArg[curArg.length-1]!=='e'||c==='.'&&foundDecimal){if(curArg.length===0){continue;}if(args.length===params){// handle reused commands\nret[ret.length]={cmd:cmd,args:args};args=[+curArg];// handle assumed commands\nif(cmd==='M'){cmd='L';}if(cmd==='m'){cmd='l';}}else{args[args.length]=+curArg;}foundDecimal=c==='.';// fix for negative numbers or repeated decimals with no delimeter between commands\ncurArg=['-','.'].includes(c)?c:'';}else{curArg+=c;if(c==='.'){foundDecimal=true;}}}// add the last command\n}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError;}}}if(curArg.length>0){if(args.length===params){// handle reused commands\nret[ret.length]={cmd:cmd,args:args};args=[+curArg];// handle assumed commands\nif(cmd==='M'){cmd='L';}if(cmd==='m'){cmd='l';}}else{args[args.length]=+curArg;}}ret[ret.length]={cmd:cmd,args:args};return ret;};var _apply=function apply(commands,doc){// current point, control point, and subpath starting point\ncx=cy=px=py=sx=sy=0;// run the commands\nfor(var i=0;i<commands.length;i++){var c=commands[i];if(typeof runners[c.cmd]==='function'){runners[c.cmd](doc,c.args);}}};var runners={M:function M(doc,a){cx=a[0];cy=a[1];px=py=null;sx=cx;sy=cy;return doc.moveTo(cx,cy);},m:function m(doc,a){cx+=a[0];cy+=a[1];px=py=null;sx=cx;sy=cy;return doc.moveTo(cx,cy);},C:function C(doc,a){cx=a[4];cy=a[5];px=a[2];py=a[3];return doc.bezierCurveTo.apply(doc,_toConsumableArray(a));},c:function c(doc,a){doc.bezierCurveTo(a[0]+cx,a[1]+cy,a[2]+cx,a[3]+cy,a[4]+cx,a[5]+cy);px=cx+a[2];py=cy+a[3];cx+=a[4];return cy+=a[5];},S:function S(doc,a){if(px===null){px=cx;py=cy;}doc.bezierCurveTo(cx-(px-cx),cy-(py-cy),a[0],a[1],a[2],a[3]);px=a[0];py=a[1];cx=a[2];return cy=a[3];},s:function s(doc,a){if(px===null){px=cx;py=cy;}doc.bezierCurveTo(cx-(px-cx),cy-(py-cy),cx+a[0],cy+a[1],cx+a[2],cy+a[3]);px=cx+a[0];py=cy+a[1];cx+=a[2];return cy+=a[3];},Q:function Q(doc,a){px=a[0];py=a[1];cx=a[2];cy=a[3];return doc.quadraticCurveTo(a[0],a[1],cx,cy);},q:function q(doc,a){doc.quadraticCurveTo(a[0]+cx,a[1]+cy,a[2]+cx,a[3]+cy);px=cx+a[0];py=cy+a[1];cx+=a[2];return cy+=a[3];},T:function T(doc,a){if(px===null){px=cx;py=cy;}else{px=cx-(px-cx);py=cy-(py-cy);}doc.quadraticCurveTo(px,py,a[0],a[1]);px=cx-(px-cx);py=cy-(py-cy);cx=a[0];return cy=a[1];},t:function t(doc,a){if(px===null){px=cx;py=cy;}else{px=cx-(px-cx);py=cy-(py-cy);}doc.quadraticCurveTo(px,py,cx+a[0],cy+a[1]);cx+=a[0];return cy+=a[1];},A:function A(doc,a){solveArc(doc,cx,cy,a);cx=a[5];return cy=a[6];},a:function a(doc,_a){_a[5]+=cx;_a[6]+=cy;solveArc(doc,cx,cy,_a);cx=_a[5];return cy=_a[6];},L:function L(doc,a){cx=a[0];cy=a[1];px=py=null;return doc.lineTo(cx,cy);},l:function l(doc,a){cx+=a[0];cy+=a[1];px=py=null;return doc.lineTo(cx,cy);},H:function H(doc,a){cx=a[0];px=py=null;return doc.lineTo(cx,cy);},h:function h(doc,a){cx+=a[0];px=py=null;return doc.lineTo(cx,cy);},V:function V(doc,a){cy=a[0];px=py=null;return doc.lineTo(cx,cy);},v:function v(doc,a){cy+=a[0];px=py=null;return doc.lineTo(cx,cy);},Z:function Z(doc){doc.closePath();cx=sx;return cy=sy;},z:function z(doc){doc.closePath();cx=sx;return cy=sy;}};var solveArc=function solveArc(doc,x,y,coords){var _coords=_slicedToArray(coords,7),rx=_coords[0],ry=_coords[1],rot=_coords[2],large=_coords[3],sweep=_coords[4],ex=_coords[5],ey=_coords[6];var segs=arcToSegments(ex,ey,rx,ry,large,sweep,rot,x,y);var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=segs[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var seg=_step2.value;var bez=segmentToBezier.apply(void 0,_toConsumableArray(seg));doc.bezierCurveTo.apply(doc,_toConsumableArray(bez));}}catch(err){_didIteratorError2=true;_iteratorError2=err;}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null){_iterator2.return();}}finally{if(_didIteratorError2){throw _iteratorError2;}}}};// from Inkscape svgtopdf, thanks!\nvar arcToSegments=function arcToSegments(x,y,rx,ry,large,sweep,rotateX,ox,oy){var th=rotateX*(Math.PI/180);var sin_th=Math.sin(th);var cos_th=Math.cos(th);rx=Math.abs(rx);ry=Math.abs(ry);px=cos_th*(ox-x)*0.5+sin_th*(oy-y)*0.5;py=cos_th*(oy-y)*0.5-sin_th*(ox-x)*0.5;var pl=px*px/(rx*rx)+py*py/(ry*ry);if(pl>1){pl=Math.sqrt(pl);rx*=pl;ry*=pl;}var a00=cos_th/rx;var a01=sin_th/rx;var a10=-sin_th/ry;var a11=cos_th/ry;var x0=a00*ox+a01*oy;var y0=a10*ox+a11*oy;var x1=a00*x+a01*y;var y1=a10*x+a11*y;var d=(x1-x0)*(x1-x0)+(y1-y0)*(y1-y0);var sfactor_sq=1/d-0.25;if(sfactor_sq<0){sfactor_sq=0;}var sfactor=Math.sqrt(sfactor_sq);if(sweep===large){sfactor=-sfactor;}var xc=0.5*(x0+x1)-sfactor*(y1-y0);var yc=0.5*(y0+y1)+sfactor*(x1-x0);var th0=Math.atan2(y0-yc,x0-xc);var th1=Math.atan2(y1-yc,x1-xc);var th_arc=th1-th0;if(th_arc<0&&sweep===1){th_arc+=2*Math.PI;}else if(th_arc>0&&sweep===0){th_arc-=2*Math.PI;}var segments=Math.ceil(Math.abs(th_arc/(Math.PI*0.5+0.001)));var result=[];for(var i=0;i<segments;i++){var th2=th0+i*th_arc/segments;var th3=th0+(i+1)*th_arc/segments;result[i]=[xc,yc,th2,th3,rx,ry,sin_th,cos_th];}return result;};var segmentToBezier=function segmentToBezier(cx,cy,th0,th1,rx,ry,sin_th,cos_th){var a00=cos_th*rx;var a01=-sin_th*ry;var a10=sin_th*rx;var a11=cos_th*ry;var th_half=0.5*(th1-th0);var t=8/3*Math.sin(th_half*0.5)*Math.sin(th_half*0.5)/Math.sin(th_half);var x1=cx+Math.cos(th0)-t*Math.sin(th0);var y1=cy+Math.sin(th0)+t*Math.cos(th0);var x3=cx+Math.cos(th1);var y3=cy+Math.sin(th1);var x2=x3+t*Math.sin(th1);var y2=y3-t*Math.cos(th1);return[a00*x1+a01*y1,a10*x1+a11*y1,a00*x2+a01*y2,a10*x2+a11*y2,a00*x3+a01*y3,a10*x3+a11*y3];};var SVGPath=/*#__PURE__*/function(){function SVGPath(){_classCallCheck(this,SVGPath);}_createClass(SVGPath,null,[{key:\"apply\",value:function apply(doc,path){var commands=parse(path);_apply(commands,doc);}}]);return SVGPath;}();var number$1=PDFObject.number;// This constant is used to approximate a symmetrical arc using a cubic\n// Bezier curve.\nvar KAPPA=4.0*((Math.sqrt(2)-1.0)/3.0);var VectorMixin={initVector:function initVector(){this._ctm=[1,0,0,1,0,0];// current transformation matrix\nreturn this._ctmStack=[];},save:function save(){this._ctmStack.push(this._ctm.slice());// TODO: save/restore colorspace and styles so not setting it unnessesarily all the time?\nreturn this.addContent('q');},restore:function restore(){this._ctm=this._ctmStack.pop()||[1,0,0,1,0,0];return this.addContent('Q');},closePath:function closePath(){return this.addContent('h');},lineWidth:function lineWidth(w){return this.addContent(\"\".concat(number$1(w),\" w\"));},_CAP_STYLES:{BUTT:0,ROUND:1,SQUARE:2},lineCap:function lineCap(c){if(typeof c==='string'){c=this._CAP_STYLES[c.toUpperCase()];}return this.addContent(\"\".concat(c,\" J\"));},_JOIN_STYLES:{MITER:0,ROUND:1,BEVEL:2},lineJoin:function lineJoin(j){if(typeof j==='string'){j=this._JOIN_STYLES[j.toUpperCase()];}return this.addContent(\"\".concat(j,\" j\"));},miterLimit:function miterLimit(m){return this.addContent(\"\".concat(number$1(m),\" M\"));},dash:function dash(length){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var originalLength=length;if(!Array.isArray(length)){length=[length,options.space||length];}var valid=length.every(function(x){return Number.isFinite(x)&&x>0;});if(!valid){throw new Error(\"dash(\".concat(JSON.stringify(originalLength),\", \").concat(JSON.stringify(options),\") invalid, lengths must be numeric and greater than zero\"));}length=length.map(number$1).join(' ');return this.addContent(\"[\".concat(length,\"] \").concat(number$1(options.phase||0),\" d\"));},undash:function undash(){return this.addContent('[] 0 d');},moveTo:function moveTo(x,y){return this.addContent(\"\".concat(number$1(x),\" \").concat(number$1(y),\" m\"));},lineTo:function lineTo(x,y){return this.addContent(\"\".concat(number$1(x),\" \").concat(number$1(y),\" l\"));},bezierCurveTo:function bezierCurveTo(cp1x,cp1y,cp2x,cp2y,x,y){return this.addContent(\"\".concat(number$1(cp1x),\" \").concat(number$1(cp1y),\" \").concat(number$1(cp2x),\" \").concat(number$1(cp2y),\" \").concat(number$1(x),\" \").concat(number$1(y),\" c\"));},quadraticCurveTo:function quadraticCurveTo(cpx,cpy,x,y){return this.addContent(\"\".concat(number$1(cpx),\" \").concat(number$1(cpy),\" \").concat(number$1(x),\" \").concat(number$1(y),\" v\"));},rect:function rect(x,y,w,h){return this.addContent(\"\".concat(number$1(x),\" \").concat(number$1(y),\" \").concat(number$1(w),\" \").concat(number$1(h),\" re\"));},roundedRect:function roundedRect(x,y,w,h,r){if(r==null){r=0;}r=Math.min(r,0.5*w,0.5*h);// amount to inset control points from corners (see `ellipse`)\nvar c=r*(1.0-KAPPA);this.moveTo(x+r,y);this.lineTo(x+w-r,y);this.bezierCurveTo(x+w-c,y,x+w,y+c,x+w,y+r);this.lineTo(x+w,y+h-r);this.bezierCurveTo(x+w,y+h-c,x+w-c,y+h,x+w-r,y+h);this.lineTo(x+r,y+h);this.bezierCurveTo(x+c,y+h,x,y+h-c,x,y+h-r);this.lineTo(x,y+r);this.bezierCurveTo(x,y+c,x+c,y,x+r,y);return this.closePath();},ellipse:function ellipse(x,y,r1,r2){// based on http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas/2173084#2173084\nif(r2==null){r2=r1;}x-=r1;y-=r2;var ox=r1*KAPPA;var oy=r2*KAPPA;var xe=x+r1*2;var ye=y+r2*2;var xm=x+r1;var ym=y+r2;this.moveTo(x,ym);this.bezierCurveTo(x,ym-oy,xm-ox,y,xm,y);this.bezierCurveTo(xm+ox,y,xe,ym-oy,xe,ym);this.bezierCurveTo(xe,ym+oy,xm+ox,ye,xm,ye);this.bezierCurveTo(xm-ox,ye,x,ym+oy,x,ym);return this.closePath();},circle:function circle(x,y,radius){return this.ellipse(x,y,radius);},arc:function arc(x,y,radius,startAngle,endAngle,anticlockwise){if(anticlockwise==null){anticlockwise=false;}var TWO_PI=2.0*Math.PI;var HALF_PI=0.5*Math.PI;var deltaAng=endAngle-startAngle;if(Math.abs(deltaAng)>TWO_PI){// draw only full circle if more than that is specified\ndeltaAng=TWO_PI;}else if(deltaAng!==0&&anticlockwise!==deltaAng<0){// necessary to flip direction of rendering\nvar dir=anticlockwise?-1:1;deltaAng=dir*TWO_PI+deltaAng;}var numSegs=Math.ceil(Math.abs(deltaAng)/HALF_PI);var segAng=deltaAng/numSegs;var handleLen=segAng/HALF_PI*KAPPA*radius;var curAng=startAngle;// component distances between anchor point and control point\nvar deltaCx=-Math.sin(curAng)*handleLen;var deltaCy=Math.cos(curAng)*handleLen;// anchor point\nvar ax=x+Math.cos(curAng)*radius;var ay=y+Math.sin(curAng)*radius;// calculate and render segments\nthis.moveTo(ax,ay);for(var segIdx=0;segIdx<numSegs;segIdx++){// starting control point\nvar cp1x=ax+deltaCx;var cp1y=ay+deltaCy;// step angle\ncurAng+=segAng;// next anchor point\nax=x+Math.cos(curAng)*radius;ay=y+Math.sin(curAng)*radius;// next control point delta\ndeltaCx=-Math.sin(curAng)*handleLen;deltaCy=Math.cos(curAng)*handleLen;// ending control point\nvar cp2x=ax-deltaCx;var cp2y=ay-deltaCy;// render segment\nthis.bezierCurveTo(cp1x,cp1y,cp2x,cp2y,ax,ay);}return this;},polygon:function polygon(){for(var _len=arguments.length,points=new Array(_len),_key=0;_key<_len;_key++){points[_key]=arguments[_key];}this.moveTo.apply(this,_toConsumableArray(points.shift()||[]));for(var _i=0,_points=points;_i<_points.length;_i++){var point=_points[_i];this.lineTo.apply(this,_toConsumableArray(point||[]));}return this.closePath();},path:function path(_path){SVGPath.apply(this,_path);return this;},_windingRule:function _windingRule(rule){if(/even-?odd/.test(rule)){return'*';}return'';},fill:function fill(color,rule){if(/(even-?odd)|(non-?zero)/.test(color)){rule=color;color=null;}if(color){this.fillColor(color);}return this.addContent(\"f\".concat(this._windingRule(rule)));},stroke:function stroke(color){if(color){this.strokeColor(color);}return this.addContent('S');},fillAndStroke:function fillAndStroke(fillColor,strokeColor,rule){if(strokeColor==null){strokeColor=fillColor;}var isFillRule=/(even-?odd)|(non-?zero)/;if(isFillRule.test(fillColor)){rule=fillColor;fillColor=null;}if(isFillRule.test(strokeColor)){rule=strokeColor;strokeColor=fillColor;}if(fillColor){this.fillColor(fillColor);this.strokeColor(strokeColor);}return this.addContent(\"B\".concat(this._windingRule(rule)));},clip:function clip(rule){return this.addContent(\"W\".concat(this._windingRule(rule),\" n\"));},transform:function transform(m11,m12,m21,m22,dx,dy){// keep track of the current transformation matrix\nvar m=this._ctm;var _m=_slicedToArray(m,6),m0=_m[0],m1=_m[1],m2=_m[2],m3=_m[3],m4=_m[4],m5=_m[5];m[0]=m0*m11+m2*m12;m[1]=m1*m11+m3*m12;m[2]=m0*m21+m2*m22;m[3]=m1*m21+m3*m22;m[4]=m0*dx+m2*dy+m4;m[5]=m1*dx+m3*dy+m5;var values=[m11,m12,m21,m22,dx,dy].map(function(v){return number$1(v);}).join(' ');return this.addContent(\"\".concat(values,\" cm\"));},translate:function translate(x,y){return this.transform(1,0,0,1,x,y);},rotate:function rotate(angle){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var y;var rad=angle*Math.PI/180;var cos=Math.cos(rad);var sin=Math.sin(rad);var x=y=0;if(options.origin!=null){var _options$origin=_slicedToArray(options.origin,2);x=_options$origin[0];y=_options$origin[1];var x1=x*cos-y*sin;var y1=x*sin+y*cos;x-=x1;y-=y1;}return this.transform(cos,sin,-sin,cos,x,y);},scale:function scale(xFactor,yFactor){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var y;if(yFactor==null){yFactor=xFactor;}if(typeof yFactor==='object'){options=yFactor;yFactor=xFactor;}var x=y=0;if(options.origin!=null){var _options$origin2=_slicedToArray(options.origin,2);x=_options$origin2[0];y=_options$origin2[1];x-=xFactor*x;y-=yFactor*y;}return this.transform(xFactor,0,0,yFactor,x,y);}};var WIN_ANSI_MAP={402:131,8211:150,8212:151,8216:145,8217:146,8218:130,8220:147,8221:148,8222:132,8224:134,8225:135,8226:149,8230:133,8364:128,8240:137,8249:139,8250:155,710:136,8482:153,338:140,339:156,732:152,352:138,353:154,376:159,381:142,382:158};var characters=\".notdef       .notdef        .notdef        .notdef\\n.notdef       .notdef        .notdef        .notdef\\n.notdef       .notdef        .notdef        .notdef\\n.notdef       .notdef        .notdef        .notdef\\n.notdef       .notdef        .notdef        .notdef\\n.notdef       .notdef        .notdef        .notdef\\n.notdef       .notdef        .notdef        .notdef\\n.notdef       .notdef        .notdef        .notdef\\n  \\nspace         exclam         quotedbl       numbersign\\ndollar        percent        ampersand      quotesingle\\nparenleft     parenright     asterisk       plus\\ncomma         hyphen         period         slash\\nzero          one            two            three\\nfour          five           six            seven\\neight         nine           colon          semicolon\\nless          equal          greater        question\\n  \\nat            A              B              C\\nD             E              F              G\\nH             I              J              K\\nL             M              N              O\\nP             Q              R              S\\nT             U              V              W\\nX             Y              Z              bracketleft\\nbackslash     bracketright   asciicircum    underscore\\n  \\ngrave         a              b              c\\nd             e              f              g\\nh             i              j              k\\nl             m              n              o\\np             q              r              s\\nt             u              v              w\\nx             y              z              braceleft\\nbar           braceright     asciitilde     .notdef\\n  \\nEuro          .notdef        quotesinglbase florin\\nquotedblbase  ellipsis       dagger         daggerdbl\\ncircumflex    perthousand    Scaron         guilsinglleft\\nOE            .notdef        Zcaron         .notdef\\n.notdef       quoteleft      quoteright     quotedblleft\\nquotedblright bullet         endash         emdash\\ntilde         trademark      scaron         guilsinglright\\noe            .notdef        zcaron         ydieresis\\n  \\nspace         exclamdown     cent           sterling\\ncurrency      yen            brokenbar      section\\ndieresis      copyright      ordfeminine    guillemotleft\\nlogicalnot    hyphen         registered     macron\\ndegree        plusminus      twosuperior    threesuperior\\nacute         mu             paragraph      periodcentered\\ncedilla       onesuperior    ordmasculine   guillemotright\\nonequarter    onehalf        threequarters  questiondown\\n  \\nAgrave        Aacute         Acircumflex    Atilde\\nAdieresis     Aring          AE             Ccedilla\\nEgrave        Eacute         Ecircumflex    Edieresis\\nIgrave        Iacute         Icircumflex    Idieresis\\nEth           Ntilde         Ograve         Oacute\\nOcircumflex   Otilde         Odieresis      multiply\\nOslash        Ugrave         Uacute         Ucircumflex\\nUdieresis     Yacute         Thorn          germandbls\\n  \\nagrave        aacute         acircumflex    atilde\\nadieresis     aring          ae             ccedilla\\negrave        eacute         ecircumflex    edieresis\\nigrave        iacute         icircumflex    idieresis\\neth           ntilde         ograve         oacute\\nocircumflex   otilde         odieresis      divide\\noslash        ugrave         uacute         ucircumflex\\nudieresis     yacute         thorn          ydieresis\".split(/\\s+/);var AFMFont=/*#__PURE__*/function(){_createClass(AFMFont,null,[{key:\"open\",value:function open(filename){return new AFMFont(fs.readFileSync(filename,'utf8'));}}]);function AFMFont(contents){_classCallCheck(this,AFMFont);this.contents=contents;this.attributes={};this.glyphWidths={};this.boundingBoxes={};this.kernPairs={};this.parse();// todo: remove charWidths since appears to not be used\nthis.charWidths=new Array(256);for(var char=0;char<=255;char++){this.charWidths[char]=this.glyphWidths[characters[char]];}this.bbox=this.attributes['FontBBox'].split(/\\s+/).map(function(e){return+e;});this.ascender=+(this.attributes['Ascender']||0);this.descender=+(this.attributes['Descender']||0);this.xHeight=+(this.attributes['XHeight']||0);this.capHeight=+(this.attributes['CapHeight']||0);this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender);}_createClass(AFMFont,[{key:\"parse\",value:function parse(){var section='';var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=this.contents.split('\\n')[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var line=_step.value;var match;var a;if(match=line.match(/^Start(\\w+)/)){section=match[1];continue;}else if(match=line.match(/^End(\\w+)/)){section='';continue;}switch(section){case'FontMetrics':match=line.match(/(^\\w+)\\s+(.*)/);var key=match[1];var value=match[2];if(a=this.attributes[key]){if(!Array.isArray(a)){a=this.attributes[key]=[a];}a.push(value);}else{this.attributes[key]=value;}break;case'CharMetrics':if(!/^CH?\\s/.test(line)){continue;}var name=line.match(/\\bN\\s+(\\.?\\w+)\\s*;/)[1];this.glyphWidths[name]=+line.match(/\\bWX\\s+(\\d+)\\s*;/)[1];break;case'KernPairs':match=line.match(/^KPX\\s+(\\.?\\w+)\\s+(\\.?\\w+)\\s+(-?\\d+)/);if(match){this.kernPairs[match[1]+'\\0'+match[2]]=parseInt(match[3]);}break;}}}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError;}}}}},{key:\"encodeText\",value:function encodeText(text){var res=[];for(var i=0,len=text.length;i<len;i++){var char=text.charCodeAt(i);char=WIN_ANSI_MAP[char]||char;res.push(char.toString(16));}return res;}},{key:\"glyphsForString\",value:function glyphsForString(string){var glyphs=[];for(var i=0,len=string.length;i<len;i++){var charCode=string.charCodeAt(i);glyphs.push(this.characterToGlyph(charCode));}return glyphs;}},{key:\"characterToGlyph\",value:function characterToGlyph(character){return characters[WIN_ANSI_MAP[character]||character]||'.notdef';}},{key:\"widthOfGlyph\",value:function widthOfGlyph(glyph){return this.glyphWidths[glyph]||0;}},{key:\"getKernPair\",value:function getKernPair(left,right){return this.kernPairs[left+'\\0'+right]||0;}},{key:\"advancesForGlyphs\",value:function advancesForGlyphs(glyphs){var advances=[];for(var index=0;index<glyphs.length;index++){var left=glyphs[index];var right=glyphs[index+1];advances.push(this.widthOfGlyph(left)+this.getKernPair(left,right));}return advances;}}]);return AFMFont;}();var PDFFont=/*#__PURE__*/function(){function PDFFont(){_classCallCheck(this,PDFFont);}_createClass(PDFFont,[{key:\"encode\",value:function encode(){throw new Error('Must be implemented by subclasses');}},{key:\"widthOfString\",value:function widthOfString(){throw new Error('Must be implemented by subclasses');}},{key:\"ref\",value:function ref(){return this.dictionary!=null?this.dictionary:this.dictionary=this.document.ref();}},{key:\"finalize\",value:function finalize(){if(this.embedded||this.dictionary==null){return;}this.embed();return this.embedded=true;}},{key:\"embed\",value:function embed(){throw new Error('Must be implemented by subclasses');}},{key:\"lineHeight\",value:function lineHeight(size,includeGap){if(includeGap==null){includeGap=false;}var gap=includeGap?this.lineGap:0;return(this.ascender+gap-this.descender)/1000*size;}}]);return PDFFont;}();var STANDARD_FONTS={Courier:function Courier(){return fs.readFileSync(__dirname+'/data/Courier.afm','utf8');},'Courier-Bold':function CourierBold(){return fs.readFileSync(__dirname+'/data/Courier-Bold.afm','utf8');},'Courier-Oblique':function CourierOblique(){return fs.readFileSync(__dirname+'/data/Courier-Oblique.afm','utf8');},'Courier-BoldOblique':function CourierBoldOblique(){return fs.readFileSync(__dirname+'/data/Courier-BoldOblique.afm','utf8');},Helvetica:function Helvetica(){return fs.readFileSync(__dirname+'/data/Helvetica.afm','utf8');},'Helvetica-Bold':function HelveticaBold(){return fs.readFileSync(__dirname+'/data/Helvetica-Bold.afm','utf8');},'Helvetica-Oblique':function HelveticaOblique(){return fs.readFileSync(__dirname+'/data/Helvetica-Oblique.afm','utf8');},'Helvetica-BoldOblique':function HelveticaBoldOblique(){return fs.readFileSync(__dirname+'/data/Helvetica-BoldOblique.afm','utf8');},'Times-Roman':function TimesRoman(){return fs.readFileSync(__dirname+'/data/Times-Roman.afm','utf8');},'Times-Bold':function TimesBold(){return fs.readFileSync(__dirname+'/data/Times-Bold.afm','utf8');},'Times-Italic':function TimesItalic(){return fs.readFileSync(__dirname+'/data/Times-Italic.afm','utf8');},'Times-BoldItalic':function TimesBoldItalic(){return fs.readFileSync(__dirname+'/data/Times-BoldItalic.afm','utf8');},Symbol:function Symbol(){return fs.readFileSync(__dirname+'/data/Symbol.afm','utf8');},ZapfDingbats:function ZapfDingbats(){return fs.readFileSync(__dirname+'/data/ZapfDingbats.afm','utf8');}};var StandardFont=/*#__PURE__*/function(_PDFFont){_inherits(StandardFont,_PDFFont);function StandardFont(document,name,id){var _this;_classCallCheck(this,StandardFont);_this=_possibleConstructorReturn(this,_getPrototypeOf(StandardFont).call(this));_this.document=document;_this.name=name;_this.id=id;_this.font=new AFMFont(STANDARD_FONTS[_this.name]());var _this$font=_this.font;_this.ascender=_this$font.ascender;_this.descender=_this$font.descender;_this.bbox=_this$font.bbox;_this.lineGap=_this$font.lineGap;_this.xHeight=_this$font.xHeight;_this.capHeight=_this$font.capHeight;return _this;}_createClass(StandardFont,[{key:\"embed\",value:function embed(){this.dictionary.data={Type:'Font',BaseFont:this.name,Subtype:'Type1',Encoding:'WinAnsiEncoding'};return this.dictionary.end();}},{key:\"encode\",value:function encode(text){var encoded=this.font.encodeText(text);var glyphs=this.font.glyphsForString(\"\".concat(text));var advances=this.font.advancesForGlyphs(glyphs);var positions=[];for(var i=0;i<glyphs.length;i++){var glyph=glyphs[i];positions.push({xAdvance:advances[i],yAdvance:0,xOffset:0,yOffset:0,advanceWidth:this.font.widthOfGlyph(glyph)});}return[encoded,positions];}},{key:\"widthOfString\",value:function widthOfString(string,size){var glyphs=this.font.glyphsForString(\"\".concat(string));var advances=this.font.advancesForGlyphs(glyphs);var width=0;var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=advances[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var advance=_step.value;width+=advance;}}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError;}}}var scale=size/1000;return width*scale;}}],[{key:\"isStandardFont\",value:function isStandardFont(name){return name in STANDARD_FONTS;}}]);return StandardFont;}(PDFFont);var toHex=function toHex(num){return\"0000\".concat(num.toString(16)).slice(-4);};var EmbeddedFont=/*#__PURE__*/function(_PDFFont){_inherits(EmbeddedFont,_PDFFont);function EmbeddedFont(document,font,id){var _this;_classCallCheck(this,EmbeddedFont);_this=_possibleConstructorReturn(this,_getPrototypeOf(EmbeddedFont).call(this));_this.document=document;_this.font=font;_this.id=id;_this.subset=_this.font.createSubset();_this.unicode=[[0]];_this.widths=[_this.font.getGlyph(0).advanceWidth];_this.name=_this.font.postscriptName;_this.scale=1000/_this.font.unitsPerEm;_this.ascender=_this.font.ascent*_this.scale;_this.descender=_this.font.descent*_this.scale;_this.xHeight=_this.font.xHeight*_this.scale;_this.capHeight=_this.font.capHeight*_this.scale;_this.lineGap=_this.font.lineGap*_this.scale;_this.bbox=_this.font.bbox;if(document.options.fontLayoutCache!==false){_this.layoutCache=Object.create(null);}return _this;}_createClass(EmbeddedFont,[{key:\"layoutRun\",value:function layoutRun(text,features){var run=this.font.layout(text,features);// Normalize position values\nfor(var i=0;i<run.positions.length;i++){var position=run.positions[i];for(var key in position){position[key]*=this.scale;}position.advanceWidth=run.glyphs[i].advanceWidth*this.scale;}return run;}},{key:\"layoutCached\",value:function layoutCached(text){if(!this.layoutCache){return this.layoutRun(text);}var cached;if(cached=this.layoutCache[text]){return cached;}var run=this.layoutRun(text);this.layoutCache[text]=run;return run;}},{key:\"layout\",value:function layout(text,features,onlyWidth){// Skip the cache if any user defined features are applied\nif(features){return this.layoutRun(text,features);}var glyphs=onlyWidth?null:[];var positions=onlyWidth?null:[];var advanceWidth=0;// Split the string by words to increase cache efficiency.\n// For this purpose, spaces and tabs are a good enough delimeter.\nvar last=0;var index=0;while(index<=text.length){var needle;if(index===text.length&&last<index||(needle=text.charAt(index),[' ','\\t'].includes(needle))){var run=this.layoutCached(text.slice(last,++index));if(!onlyWidth){glyphs=glyphs.concat(run.glyphs);positions=positions.concat(run.positions);}advanceWidth+=run.advanceWidth;last=index;}else{index++;}}return{glyphs:glyphs,positions:positions,advanceWidth:advanceWidth};}},{key:\"encode\",value:function encode(text,features){var _this$layout=this.layout(text,features),glyphs=_this$layout.glyphs,positions=_this$layout.positions;var res=[];for(var i=0;i<glyphs.length;i++){var glyph=glyphs[i];var gid=this.subset.includeGlyph(glyph.id);res.push(\"0000\".concat(gid.toString(16)).slice(-4));if(this.widths[gid]==null){this.widths[gid]=glyph.advanceWidth*this.scale;}if(this.unicode[gid]==null){this.unicode[gid]=glyph.codePoints;}}return[res,positions];}},{key:\"widthOfString\",value:function widthOfString(string,size,features){var width=this.layout(string,features,true).advanceWidth;var scale=size/1000;return width*scale;}},{key:\"embed\",value:function embed(){var _this2=this;var isCFF=this.subset.cff!=null;var fontFile=this.document.ref();if(isCFF){fontFile.data.Subtype='CIDFontType0C';}this.subset.encodeStream().on('data',function(data){return fontFile.write(data);}).on('end',function(){return fontFile.end();});var familyClass=((this.font['OS/2']!=null?this.font['OS/2'].sFamilyClass:undefined)||0)>>8;var flags=0;if(this.font.post.isFixedPitch){flags|=1<<0;}if(1<=familyClass&&familyClass<=7){flags|=1<<1;}flags|=1<<2;// assume the font uses non-latin characters\nif(familyClass===10){flags|=1<<3;}if(this.font.head.macStyle.italic){flags|=1<<6;}// generate a tag (6 uppercase letters. 16 is the char code offset from '1' to 'A'. 74 will map to 'Z')\nvar tag=[1,2,3,4,5,6].map(function(i){return String.fromCharCode((_this2.id.charCodeAt(i)||74)+16);}).join('');var name=tag+'+'+this.font.postscriptName;var bbox=this.font.bbox;var descriptor=this.document.ref({Type:'FontDescriptor',FontName:name,Flags:flags,FontBBox:[bbox.minX*this.scale,bbox.minY*this.scale,bbox.maxX*this.scale,bbox.maxY*this.scale],ItalicAngle:this.font.italicAngle,Ascent:this.ascender,Descent:this.descender,CapHeight:(this.font.capHeight||this.font.ascent)*this.scale,XHeight:(this.font.xHeight||0)*this.scale,StemV:0});// not sure how to calculate this\nif(isCFF){descriptor.data.FontFile3=fontFile;}else{descriptor.data.FontFile2=fontFile;}descriptor.end();var descendantFontData={Type:'Font',Subtype:'CIDFontType0',BaseFont:name,CIDSystemInfo:{Registry:new String('Adobe'),Ordering:new String('Identity'),Supplement:0},FontDescriptor:descriptor,W:[0,this.widths]};if(!isCFF){descendantFontData.Subtype='CIDFontType2';descendantFontData.CIDToGIDMap='Identity';}var descendantFont=this.document.ref(descendantFontData);descendantFont.end();this.dictionary.data={Type:'Font',Subtype:'Type0',BaseFont:name,Encoding:'Identity-H',DescendantFonts:[descendantFont],ToUnicode:this.toUnicodeCmap()};return this.dictionary.end();}// Maps the glyph ids encoded in the PDF back to unicode strings\n// Because of ligature substitutions and the like, there may be one or more\n// unicode characters represented by each glyph.\n},{key:\"toUnicodeCmap\",value:function toUnicodeCmap(){var cmap=this.document.ref();var entries=[];var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=this.unicode[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var codePoints=_step.value;var encoded=[];// encode codePoints to utf16\nvar _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=codePoints[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var value=_step2.value;if(value>0xffff){value-=0x10000;encoded.push(toHex(value>>>10&0x3ff|0xd800));value=0xdc00|value&0x3ff;}encoded.push(toHex(value));}}catch(err){_didIteratorError2=true;_iteratorError2=err;}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null){_iterator2.return();}}finally{if(_didIteratorError2){throw _iteratorError2;}}}entries.push(\"<\".concat(encoded.join(' '),\">\"));}}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError;}}}cmap.end(\"/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\\n1 beginbfrange\\n<0000> <\".concat(toHex(entries.length-1),\"> [\").concat(entries.join(' '),\"]\\nendbfrange\\nendcmap\\nCMapName currentdict /CMap defineresource pop\\nend\\nend\"));return cmap;}}]);return EmbeddedFont;}(PDFFont);var PDFFontFactory=/*#__PURE__*/function(){function PDFFontFactory(){_classCallCheck(this,PDFFontFactory);}_createClass(PDFFontFactory,null,[{key:\"open\",value:function open(document,src,family,id){var font;if(typeof src==='string'){if(StandardFont.isStandardFont(src)){return new StandardFont(document,src,id);}src=fs.readFileSync(src);}if(Buffer.isBuffer(src)){font=_fontkit.default.create(src,family);}else if(src instanceof Uint8Array){font=_fontkit.default.create(new Buffer(src),family);}else if(src instanceof ArrayBuffer){font=_fontkit.default.create(new Buffer(new Uint8Array(src)),family);}if(font==null){throw new Error('Not a supported font format or standard PDF font.');}return new EmbeddedFont(document,font,id);}}]);return PDFFontFactory;}();var FontsMixin={initFonts:function initFonts(){var defaultFont=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'Helvetica';// Lookup table for embedded fonts\nthis._fontFamilies={};this._fontCount=0;// Font state\nthis._fontSize=12;this._font=null;this._registeredFonts={};// Set the default font\nif(defaultFont){this.font(defaultFont);}},font:function font(src,family,size){var cacheKey,font;if(typeof family==='number'){size=family;family=null;}// check registered fonts if src is a string\nif(typeof src==='string'&&this._registeredFonts[src]){cacheKey=src;var _this$_registeredFont=this._registeredFonts[src];src=_this$_registeredFont.src;family=_this$_registeredFont.family;}else{cacheKey=family||src;if(typeof cacheKey!=='string'){cacheKey=null;}}if(size!=null){this.fontSize(size);}// fast path: check if the font is already in the PDF\nif(font=this._fontFamilies[cacheKey]){this._font=font;return this;}// load the font\nvar id=\"F\".concat(++this._fontCount);this._font=PDFFontFactory.open(this,src,family,id);// check for existing font familes with the same name already in the PDF\n// useful if the font was passed as a buffer\nif(font=this._fontFamilies[this._font.name]){this._font=font;return this;}// save the font for reuse later\nif(cacheKey){this._fontFamilies[cacheKey]=this._font;}if(this._font.name){this._fontFamilies[this._font.name]=this._font;}return this;},fontSize:function fontSize(_fontSize){this._fontSize=_fontSize;return this;},currentLineHeight:function currentLineHeight(includeGap){if(includeGap==null){includeGap=false;}return this._font.lineHeight(this._fontSize,includeGap);},registerFont:function registerFont(name,src,family){this._registeredFonts[name]={src:src,family:family};return this;}};var LineWrapper=/*#__PURE__*/function(_EventEmitter){_inherits(LineWrapper,_EventEmitter);function LineWrapper(document,options){var _this;_classCallCheck(this,LineWrapper);_this=_possibleConstructorReturn(this,_getPrototypeOf(LineWrapper).call(this));_this.document=document;_this.indent=options.indent||0;_this.characterSpacing=options.characterSpacing||0;_this.wordSpacing=options.wordSpacing===0;_this.columns=options.columns||1;_this.columnGap=options.columnGap!=null?options.columnGap:18;// 1/4 inch\n_this.lineWidth=(options.width-_this.columnGap*(_this.columns-1))/_this.columns;_this.spaceLeft=_this.lineWidth;_this.startX=_this.document.x;_this.startY=_this.document.y;_this.column=1;_this.ellipsis=options.ellipsis;_this.continuedX=0;_this.features=options.features;// calculate the maximum Y position the text can appear at\nif(options.height!=null){_this.height=options.height;_this.maxY=_this.startY+options.height;}else{_this.maxY=_this.document.page.maxY();}// handle paragraph indents\n_this.on('firstLine',function(options){// if this is the first line of the text segment, and\n// we're continuing where we left off, indent that much\n// otherwise use the user specified indent option\nvar indent=_this.continuedX||_this.indent;_this.document.x+=indent;_this.lineWidth-=indent;return _this.once('line',function(){_this.document.x-=indent;_this.lineWidth+=indent;if(options.continued&&!_this.continuedX){_this.continuedX=_this.indent;}if(!options.continued){return _this.continuedX=0;}});});// handle left aligning last lines of paragraphs\n_this.on('lastLine',function(options){var align=options.align;if(align==='justify'){options.align='left';}_this.lastLine=true;return _this.once('line',function(){_this.document.y+=options.paragraphGap||0;options.align=align;return _this.lastLine=false;});});return _this;}_createClass(LineWrapper,[{key:\"wordWidth\",value:function wordWidth(word){return this.document.widthOfString(word,this)+this.characterSpacing+this.wordSpacing;}},{key:\"eachWord\",value:function eachWord(text,fn){// setup a unicode line breaker\nvar bk;var breaker=new _linebreak.default(text);var last=null;var wordWidths=Object.create(null);while(bk=breaker.nextBreak()){var shouldContinue;var word=text.slice((last!=null?last.position:undefined)||0,bk.position);var w=wordWidths[word]!=null?wordWidths[word]:wordWidths[word]=this.wordWidth(word);// if the word is longer than the whole line, chop it up\n// TODO: break by grapheme clusters, not JS string characters\nif(w>this.lineWidth+this.continuedX){// make some fake break objects\nvar lbk=last;var fbk={};while(word.length){// fit as much of the word as possible into the space we have\nvar l,mightGrow;if(w>this.spaceLeft){// start our check at the end of our available space - this method is faster than a loop of each character and it resolves\n// an issue with long loops when processing massive words, such as a huge number of spaces\nl=Math.ceil(this.spaceLeft/(w/word.length));w=this.wordWidth(word.slice(0,l));mightGrow=w<=this.spaceLeft&&l<word.length;}else{l=word.length;}var mustShrink=w>this.spaceLeft&&l>0;// shrink or grow word as necessary after our near-guess above\nwhile(mustShrink||mightGrow){if(mustShrink){w=this.wordWidth(word.slice(0,--l));mustShrink=w>this.spaceLeft&&l>0;}else{w=this.wordWidth(word.slice(0,++l));mustShrink=w>this.spaceLeft&&l>0;mightGrow=w<=this.spaceLeft&&l<word.length;}}// check for the edge case where a single character cannot fit into a line.\nif(l===0&&this.spaceLeft===this.lineWidth){l=1;}// send a required break unless this is the last piece and a linebreak is not specified\nfbk.required=bk.required||l<word.length;shouldContinue=fn(word.slice(0,l),w,fbk,lbk);lbk={required:false};// get the remaining piece of the word\nword=word.slice(l);w=this.wordWidth(word);if(shouldContinue===false){break;}}}else{// otherwise just emit the break as it was given to us\nshouldContinue=fn(word,w,bk,last);}if(shouldContinue===false){break;}last=bk;}}},{key:\"wrap\",value:function wrap(text,options){var _this2=this;// override options from previous continued fragments\nif(options.indent!=null){this.indent=options.indent;}if(options.characterSpacing!=null){this.characterSpacing=options.characterSpacing;}if(options.wordSpacing!=null){this.wordSpacing=options.wordSpacing;}if(options.ellipsis!=null){this.ellipsis=options.ellipsis;}// make sure we're actually on the page\n// and that the first line of is never by\n// itself at the bottom of a page (orphans)\nvar nextY=this.document.y+this.document.currentLineHeight(true);if(this.document.y>this.maxY||nextY>this.maxY){this.nextSection();}var buffer='';var textWidth=0;var wc=0;var lc=0;var y=this.document.y;// used to reset Y pos if options.continued (below)\nvar emitLine=function emitLine(){options.textWidth=textWidth+_this2.wordSpacing*(wc-1);options.wordCount=wc;options.lineWidth=_this2.lineWidth;y=_this2.document.y;_this2.emit('line',buffer,options,_this2);return lc++;};this.emit('sectionStart',options,this);this.eachWord(text,function(word,w,bk,last){if(last==null||last.required){_this2.emit('firstLine',options,_this2);_this2.spaceLeft=_this2.lineWidth;}if(w<=_this2.spaceLeft){buffer+=word;textWidth+=w;wc++;}if(bk.required||w>_this2.spaceLeft){// if the user specified a max height and an ellipsis, and is about to pass the\n// max height and max columns after the next line, append the ellipsis\nvar lh=_this2.document.currentLineHeight(true);if(_this2.height!=null&&_this2.ellipsis&&_this2.document.y+lh*2>_this2.maxY&&_this2.column>=_this2.columns){if(_this2.ellipsis===true){_this2.ellipsis='…';}// map default ellipsis character\nbuffer=buffer.replace(/\\s+$/,'');textWidth=_this2.wordWidth(buffer+_this2.ellipsis);// remove characters from the buffer until the ellipsis fits\n// to avoid inifinite loop need to stop while-loop if buffer is empty string\nwhile(buffer&&textWidth>_this2.lineWidth){buffer=buffer.slice(0,-1).replace(/\\s+$/,'');textWidth=_this2.wordWidth(buffer+_this2.ellipsis);}// need to add ellipsis only if there is enough space for it\nif(textWidth<=_this2.lineWidth){buffer=buffer+_this2.ellipsis;}textWidth=_this2.wordWidth(buffer);}if(bk.required){if(w>_this2.spaceLeft){emitLine();buffer=word;textWidth=w;wc=1;}_this2.emit('lastLine',options,_this2);}emitLine();// if we've reached the edge of the page,\n// continue on a new page or column\nif(_this2.document.y+lh>_this2.maxY){var shouldContinue=_this2.nextSection();// stop if we reached the maximum height\nif(!shouldContinue){wc=0;buffer='';return false;}}// reset the space left and buffer\nif(bk.required){_this2.spaceLeft=_this2.lineWidth;buffer='';textWidth=0;return wc=0;}else{// reset the space left and buffer\n_this2.spaceLeft=_this2.lineWidth-w;buffer=word;textWidth=w;return wc=1;}}else{return _this2.spaceLeft-=w;}});if(wc>0){this.emit('lastLine',options,this);emitLine();}this.emit('sectionEnd',options,this);// if the wrap is set to be continued, save the X position\n// to start the first line of the next segment at, and reset\n// the y position\nif(options.continued===true){if(lc>1){this.continuedX=0;}this.continuedX+=options.textWidth||0;return this.document.y=y;}else{return this.document.x=this.startX;}}},{key:\"nextSection\",value:function nextSection(options){this.emit('sectionEnd',options,this);if(++this.column>this.columns){// if a max height was specified by the user, we're done.\n// otherwise, the default is to make a new page at the bottom.\nif(this.height!=null){return false;}this.document.addPage();this.column=1;this.startY=this.document.page.margins.top;this.maxY=this.document.page.maxY();this.document.x=this.startX;if(this.document._fillColor){var _this$document;(_this$document=this.document).fillColor.apply(_this$document,_toConsumableArray(this.document._fillColor));}this.emit('pageBreak',options,this);}else{this.document.x+=this.lineWidth+this.columnGap;this.document.y=this.startY;this.emit('columnBreak',options,this);}this.emit('sectionStart',options,this);return true;}}]);return LineWrapper;}(_events.EventEmitter);var number$2=PDFObject.number;var TextMixin={initText:function initText(){this._line=this._line.bind(this);// Current coordinates\nthis.x=0;this.y=0;return this._lineGap=0;},lineGap:function lineGap(_lineGap){this._lineGap=_lineGap;return this;},moveDown:function moveDown(lines){if(lines==null){lines=1;}this.y+=this.currentLineHeight(true)*lines+this._lineGap;return this;},moveUp:function moveUp(lines){if(lines==null){lines=1;}this.y-=this.currentLineHeight(true)*lines+this._lineGap;return this;},_text:function _text(text,x,y,options,lineCallback){options=this._initOptions(x,y,options);// Convert text to a string\ntext=text==null?'':\"\".concat(text);// if the wordSpacing option is specified, remove multiple consecutive spaces\nif(options.wordSpacing){text=text.replace(/\\s{2,}/g,' ');}// word wrapping\nif(options.width){var wrapper=this._wrapper;if(!wrapper){wrapper=new LineWrapper(this,options);wrapper.on('line',lineCallback);}this._wrapper=options.continued?wrapper:null;this._textOptions=options.continued?options:null;wrapper.wrap(text,options);// render paragraphs as single lines\n}else{var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=text.split('\\n')[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var line=_step.value;lineCallback(line,options);}}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError;}}}}return this;},text:function text(_text2,x,y,options){return this._text(_text2,x,y,options,this._line);},widthOfString:function widthOfString(string){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return this._font.widthOfString(string,this._fontSize,options.features)+(options.characterSpacing||0)*(string.length-1);},heightOfString:function heightOfString(text,options){var _this=this;var x=this.x,y=this.y;options=this._initOptions(options);options.height=Infinity;// don't break pages\nvar lineGap=options.lineGap||this._lineGap||0;this._text(text,this.x,this.y,options,function(){return _this.y+=_this.currentLineHeight(true)+lineGap;});var height=this.y-y;this.x=x;this.y=y;return height;},list:function list(_list,x,y,options,wrapper){var _this2=this;options=this._initOptions(x,y,options);var listType=options.listType||'bullet';var unit=Math.round(this._font.ascender/1000*this._fontSize);var midLine=unit/2;var r=options.bulletRadius||unit/3;var indent=options.textIndent||(listType==='bullet'?r*5:unit*2);var itemIndent=options.bulletIndent||(listType==='bullet'?r*8:unit*2);var level=1;var items=[];var levels=[];var numbers=[];var flatten=function flatten(list){var n=1;for(var _i=0;_i<list.length;_i++){var item=list[_i];if(Array.isArray(item)){level++;flatten(item);level--;}else{items.push(item);levels.push(level);if(listType!=='bullet'){numbers.push(n++);}}}};flatten(_list);var label=function label(n){switch(listType){case'numbered':return\"\".concat(n,\".\");case'lettered':var letter=String.fromCharCode((n-1)%26+65);var times=Math.floor((n-1)/26+1);var text=Array(times+1).join(letter);return\"\".concat(text,\".\");}};wrapper=new LineWrapper(this,options);wrapper.on('line',this._line);level=1;var i=0;wrapper.on('firstLine',function(){var l;if((l=levels[i++])!==level){var diff=itemIndent*(l-level);_this2.x+=diff;wrapper.lineWidth-=diff;level=l;}switch(listType){case'bullet':_this2.circle(_this2.x-indent+r,_this2.y+midLine,r);return _this2.fill();case'numbered':case'lettered':var text=label(numbers[i-1]);return _this2._fragment(text,_this2.x-indent,_this2.y,options);}});wrapper.on('sectionStart',function(){var pos=indent+itemIndent*(level-1);_this2.x+=pos;return wrapper.lineWidth-=pos;});wrapper.on('sectionEnd',function(){var pos=indent+itemIndent*(level-1);_this2.x-=pos;return wrapper.lineWidth+=pos;});wrapper.wrap(items.join('\\n'),options);return this;},_initOptions:function _initOptions(){var x=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var y=arguments.length>1?arguments[1]:undefined;var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(typeof x==='object'){options=x;x=null;}// clone options object\nvar result=Object.assign({},options);// extend options with previous values for continued text\nif(this._textOptions){for(var key in this._textOptions){var val=this._textOptions[key];if(key!=='continued'){if(result[key]===undefined){result[key]=val;}}}}// Update the current position\nif(x!=null){this.x=x;}if(y!=null){this.y=y;}// wrap to margins if no x or y position passed\nif(result.lineBreak!==false){if(result.width==null){result.width=this.page.width-this.x-this.page.margins.right;}result.width=Math.max(result.width,0);}if(!result.columns){result.columns=0;}if(result.columnGap==null){result.columnGap=18;}// 1/4 inch\nreturn result;},_line:function _line(text){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var wrapper=arguments.length>2?arguments[2]:undefined;this._fragment(text,this.x,this.y,options);var lineGap=options.lineGap||this._lineGap||0;if(!wrapper){return this.x+=this.widthOfString(text);}else{return this.y+=this.currentLineHeight(true)+lineGap;}},_fragment:function _fragment(text,x,y,options){var _this3=this;var dy,encoded,i,positions,textWidth,words;text=\"\".concat(text).replace(/\\n/g,'');if(text.length===0){return;}// handle options\nvar align=options.align||'left';var wordSpacing=options.wordSpacing||0;var characterSpacing=options.characterSpacing||0;// text alignments\nif(options.width){switch(align){case'right':textWidth=this.widthOfString(text.replace(/\\s+$/,''),options);x+=options.lineWidth-textWidth;break;case'center':x+=options.lineWidth/2-options.textWidth/2;break;case'justify':// calculate the word spacing value\nwords=text.trim().split(/\\s+/);textWidth=this.widthOfString(text.replace(/\\s+/g,''),options);var spaceWidth=this.widthOfString(' ')+characterSpacing;wordSpacing=Math.max(0,(options.lineWidth-textWidth)/Math.max(1,words.length-1)-spaceWidth);break;}}// text baseline alignments based on http://wiki.apache.org/xmlgraphics-fop/LineLayout/AlignmentHandling\nif(typeof options.baseline==='number'){dy=-options.baseline;}else{switch(options.baseline){case'svg-middle':dy=0.5*this._font.xHeight;break;case'middle':case'svg-central':dy=0.5*(this._font.descender+this._font.ascender);break;case'bottom':case'ideographic':dy=this._font.descender;break;case'alphabetic':dy=0;break;case'mathematical':dy=0.5*this._font.ascender;break;case'hanging':dy=0.8*this._font.ascender;break;case'top':dy=this._font.ascender;break;default:dy=this._font.ascender;}dy=dy/1000*this._fontSize;}// calculate the actual rendered width of the string after word and character spacing\nvar renderedWidth=options.textWidth+wordSpacing*(options.wordCount-1)+characterSpacing*(text.length-1);// create link annotations if the link option is given\nif(options.link!=null){this.link(x,y,renderedWidth,this.currentLineHeight(),options.link);}if(options.goTo!=null){this.goTo(x,y,renderedWidth,this.currentLineHeight(),options.goTo);}if(options.destination!=null){this.addNamedDestination(options.destination,'XYZ',x,y,null);}// create underline or strikethrough line\nif(options.underline||options.strike){this.save();if(!options.stroke){this.strokeColor.apply(this,_toConsumableArray(this._fillColor||[]));}var lineWidth=this._fontSize<10?0.5:Math.floor(this._fontSize/10);this.lineWidth(lineWidth);var d=options.underline?1:2;var lineY=y+this.currentLineHeight()/d;if(options.underline){lineY-=lineWidth;}this.moveTo(x,lineY);this.lineTo(x+renderedWidth,lineY);this.stroke();this.restore();}this.save();// oblique (angle in degrees or boolean)\nif(options.oblique){var skew;if(typeof options.oblique==='number'){skew=-Math.tan(options.oblique*Math.PI/180);}else{skew=-0.25;}this.transform(1,0,0,1,x,y);this.transform(1,0,skew,1,-skew*dy,0);this.transform(1,0,0,1,-x,-y);}// flip coordinate system\nthis.transform(1,0,0,-1,0,this.page.height);y=this.page.height-y-dy;// add current font to page if necessary\nif(this.page.fonts[this._font.id]==null){this.page.fonts[this._font.id]=this._font.ref();}// begin the text object\nthis.addContent('BT');// text position\nthis.addContent(\"1 0 0 1 \".concat(number$2(x),\" \").concat(number$2(y),\" Tm\"));// font and font size\nthis.addContent(\"/\".concat(this._font.id,\" \").concat(number$2(this._fontSize),\" Tf\"));// rendering mode\nvar mode=options.fill&&options.stroke?2:options.stroke?1:0;if(mode){this.addContent(\"\".concat(mode,\" Tr\"));}// Character spacing\nif(characterSpacing){this.addContent(\"\".concat(number$2(characterSpacing),\" Tc\"));}// Add the actual text\n// If we have a word spacing value, we need to encode each word separately\n// since the normal Tw operator only works on character code 32, which isn't\n// used for embedded fonts.\nif(wordSpacing){words=text.trim().split(/\\s+/);wordSpacing+=this.widthOfString(' ')+characterSpacing;wordSpacing*=1000/this._fontSize;encoded=[];positions=[];var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=words[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var word=_step2.value;var _this$_font$encode=this._font.encode(word,options.features),_this$_font$encode2=_slicedToArray(_this$_font$encode,2),encodedWord=_this$_font$encode2[0],positionsWord=_this$_font$encode2[1];encoded=encoded.concat(encodedWord);positions=positions.concat(positionsWord);// add the word spacing to the end of the word\n// clone object because of cache\nvar space={};var object=positions[positions.length-1];for(var key in object){var val=object[key];space[key]=val;}space.xAdvance+=wordSpacing;positions[positions.length-1]=space;}}catch(err){_didIteratorError2=true;_iteratorError2=err;}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null){_iterator2.return();}}finally{if(_didIteratorError2){throw _iteratorError2;}}}}else{var _this$_font$encode3=this._font.encode(text,options.features);var _this$_font$encode4=_slicedToArray(_this$_font$encode3,2);encoded=_this$_font$encode4[0];positions=_this$_font$encode4[1];}var scale=this._fontSize/1000;var commands=[];var last=0;var hadOffset=false;// Adds a segment of text to the TJ command buffer\nvar addSegment=function addSegment(cur){if(last<cur){var hex=encoded.slice(last,cur).join('');var advance=positions[cur-1].xAdvance-positions[cur-1].advanceWidth;commands.push(\"<\".concat(hex,\"> \").concat(number$2(-advance)));}return last=cur;};// Flushes the current TJ commands to the output stream\nvar flush=function flush(i){addSegment(i);if(commands.length>0){_this3.addContent(\"[\".concat(commands.join(' '),\"] TJ\"));return commands.length=0;}};for(i=0;i<positions.length;i++){// If we have an x or y offset, we have to break out of the current TJ command\n// so we can move the text position.\nvar pos=positions[i];if(pos.xOffset||pos.yOffset){// Flush the current buffer\nflush(i);// Move the text position and flush just the current character\nthis.addContent(\"1 0 0 1 \".concat(number$2(x+pos.xOffset*scale),\" \").concat(number$2(y+pos.yOffset*scale),\" Tm\"));flush(i+1);hadOffset=true;}else{// If the last character had an offset, reset the text position\nif(hadOffset){this.addContent(\"1 0 0 1 \".concat(number$2(x),\" \").concat(number$2(y),\" Tm\"));hadOffset=false;}// Group segments that don't have any advance adjustments\nif(pos.xAdvance-pos.advanceWidth!==0){addSegment(i+1);}}x+=pos.xAdvance*scale;}// Flush any remaining commands\nflush(i);// end the text object\nthis.addContent('ET');// restore flipped coordinate system\nreturn this.restore();}};var MARKERS=[0xffc0,0xffc1,0xffc2,0xffc3,0xffc5,0xffc6,0xffc7,0xffc8,0xffc9,0xffca,0xffcb,0xffcc,0xffcd,0xffce,0xffcf];var COLOR_SPACE_MAP={1:'DeviceGray',3:'DeviceRGB',4:'DeviceCMYK'};var JPEG=/*#__PURE__*/function(){function JPEG(data,label){_classCallCheck(this,JPEG);var marker;this.data=data;this.label=label;if(this.data.readUInt16BE(0)!==0xffd8){throw'SOI not found in JPEG';}var pos=2;while(pos<this.data.length){marker=this.data.readUInt16BE(pos);pos+=2;if(MARKERS.includes(marker)){break;}pos+=this.data.readUInt16BE(pos);}if(!MARKERS.includes(marker)){throw'Invalid JPEG.';}pos+=2;this.bits=this.data[pos++];this.height=this.data.readUInt16BE(pos);pos+=2;this.width=this.data.readUInt16BE(pos);pos+=2;var channels=this.data[pos++];this.colorSpace=COLOR_SPACE_MAP[channels];this.obj=null;}_createClass(JPEG,[{key:\"embed\",value:function embed(document){if(this.obj){return;}this.obj=document.ref({Type:'XObject',Subtype:'Image',BitsPerComponent:this.bits,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:'DCTDecode'});// add extra decode params for CMYK images. By swapping the\n// min and max values from the default, we invert the colors. See\n// section 4.8.4 of the spec.\nif(this.colorSpace==='DeviceCMYK'){this.obj.data['Decode']=[1.0,0.0,1.0,0.0,1.0,0.0,1.0,0.0];}this.obj.end(this.data);// free memory\nreturn this.data=null;}}]);return JPEG;}();var PNGImage=/*#__PURE__*/function(){function PNGImage(data,label){_classCallCheck(this,PNGImage);this.label=label;this.image=new _pngJs.default(data);this.width=this.image.width;this.height=this.image.height;this.imgData=this.image.imgData;this.obj=null;}_createClass(PNGImage,[{key:\"embed\",value:function embed(document){var dataDecoded=false;this.document=document;if(this.obj){return;}var hasAlphaChannel=this.image.hasAlphaChannel;var isInterlaced=this.image.interlaceMethod===1;this.obj=this.document.ref({Type:'XObject',Subtype:'Image',BitsPerComponent:hasAlphaChannel?8:this.image.bits,Width:this.width,Height:this.height,Filter:'FlateDecode'});if(!hasAlphaChannel){var params=this.document.ref({Predictor:isInterlaced?1:15,Colors:this.image.colors,BitsPerComponent:this.image.bits,Columns:this.width});this.obj.data['DecodeParms']=params;params.end();}if(this.image.palette.length===0){this.obj.data['ColorSpace']=this.image.colorSpace;}else{// embed the color palette in the PDF as an object stream\nvar palette=this.document.ref();palette.end(new Buffer(this.image.palette));// build the color space array for the image\nthis.obj.data['ColorSpace']=['Indexed','DeviceRGB',this.image.palette.length/3-1,palette];}// For PNG color types 0, 2 and 3, the transparency data is stored in\n// a dedicated PNG chunk.\nif(this.image.transparency.grayscale!=null){// Use Color Key Masking (spec section 4.8.5)\n// An array with N elements, where N is two times the number of color components.\nvar val=this.image.transparency.grayscale;this.obj.data['Mask']=[val,val];}else if(this.image.transparency.rgb){// Use Color Key Masking (spec section 4.8.5)\n// An array with N elements, where N is two times the number of color components.\nvar rgb=this.image.transparency.rgb;var mask=[];var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=rgb[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var x=_step.value;mask.push(x,x);}}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError;}}}this.obj.data['Mask']=mask;}else if(this.image.transparency.indexed){// Create a transparency SMask for the image based on the data\n// in the PLTE and tRNS sections. See below for details on SMasks.\ndataDecoded=true;return this.loadIndexedAlphaChannel();}else if(hasAlphaChannel){// For PNG color types 4 and 6, the transparency data is stored as a alpha\n// channel mixed in with the main image data. Separate this data out into an\n// SMask object and store it separately in the PDF.\ndataDecoded=true;return this.splitAlphaChannel();}if(isInterlaced&&!dataDecoded){return this.decodeData();}this.finalize();}},{key:\"finalize\",value:function finalize(){if(this.alphaChannel){var sMask=this.document.ref({Type:'XObject',Subtype:'Image',Height:this.height,Width:this.width,BitsPerComponent:8,Filter:'FlateDecode',ColorSpace:'DeviceGray',Decode:[0,1]});sMask.end(this.alphaChannel);this.obj.data['SMask']=sMask;}// add the actual image data\nthis.obj.end(this.imgData);// free memory\nthis.image=null;return this.imgData=null;}},{key:\"splitAlphaChannel\",value:function splitAlphaChannel(){var _this=this;return this.image.decodePixels(function(pixels){var a,p;var colorCount=_this.image.colors;var pixelCount=_this.width*_this.height;var imgData=new Buffer(pixelCount*colorCount);var alphaChannel=new Buffer(pixelCount);var i=p=a=0;var len=pixels.length;// For 16bit images copy only most significant byte (MSB) - PNG data is always stored in network byte order (MSB first)\nvar skipByteCount=_this.image.bits===16?1:0;while(i<len){for(var colorIndex=0;colorIndex<colorCount;colorIndex++){imgData[p++]=pixels[i++];i+=skipByteCount;}alphaChannel[a++]=pixels[i++];i+=skipByteCount;}_this.imgData=_zlib.default.deflateSync(imgData);_this.alphaChannel=_zlib.default.deflateSync(alphaChannel);return _this.finalize();});}},{key:\"loadIndexedAlphaChannel\",value:function loadIndexedAlphaChannel(){var _this2=this;var transparency=this.image.transparency.indexed;return this.image.decodePixels(function(pixels){var alphaChannel=new Buffer(_this2.width*_this2.height);var i=0;for(var j=0,end=pixels.length;j<end;j++){alphaChannel[i++]=transparency[pixels[j]];}_this2.alphaChannel=_zlib.default.deflateSync(alphaChannel);return _this2.finalize();});}},{key:\"decodeData\",value:function decodeData(){var _this3=this;this.image.decodePixels(function(pixels){_this3.imgData=_zlib.default.deflateSync(pixels);_this3.finalize();});}}]);return PNGImage;}();var PDFImage=/*#__PURE__*/function(){function PDFImage(){_classCallCheck(this,PDFImage);}_createClass(PDFImage,null,[{key:\"open\",value:function open(src,label){var data;if(Buffer.isBuffer(src)){data=src;}else if(src instanceof ArrayBuffer){data=new Buffer(new Uint8Array(src));}else{var match;if(match=/^data:.+;base64,(.*)$/.exec(src)){data=new Buffer(match[1],'base64');}else{data=fs.readFileSync(src);if(!data){return;}}}if(data[0]===0xff&&data[1]===0xd8){return new JPEG(data,label);}else if(data[0]===0x89&&data.toString('ascii',1,4)==='PNG'){return new PNGImage(data,label);}else{throw new Error('Unknown image format.');}}}]);return PDFImage;}();var ImagesMixin={initImages:function initImages(){this._imageRegistry={};return this._imageCount=0;},image:function image(src,x,y){var options=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var bh,bp,bw,image,ip,left,left1;if(typeof x==='object'){options=x;x=null;}x=(left=x!=null?x:options.x)!=null?left:this.x;y=(left1=y!=null?y:options.y)!=null?left1:this.y;if(typeof src==='string'){image=this._imageRegistry[src];}if(!image){if(src.width&&src.height){image=src;}else{image=this.openImage(src);}}if(!image.obj){image.embed(this);}if(this.page.xobjects[image.label]==null){this.page.xobjects[image.label]=image.obj;}var w=options.width||image.width;var h=options.height||image.height;if(options.width&&!options.height){var wp=w/image.width;w=image.width*wp;h=image.height*wp;}else if(options.height&&!options.width){var hp=h/image.height;w=image.width*hp;h=image.height*hp;}else if(options.scale){w=image.width*options.scale;h=image.height*options.scale;}else if(options.fit){var _options$fit=_slicedToArray(options.fit,2);bw=_options$fit[0];bh=_options$fit[1];bp=bw/bh;ip=image.width/image.height;if(ip>bp){w=bw;h=bw/ip;}else{h=bh;w=bh*ip;}}else if(options.cover){var _options$cover=_slicedToArray(options.cover,2);bw=_options$cover[0];bh=_options$cover[1];bp=bw/bh;ip=image.width/image.height;if(ip>bp){h=bh;w=bh*ip;}else{w=bw;h=bw/ip;}}if(options.fit||options.cover){if(options.align==='center'){x=x+bw/2-w/2;}else if(options.align==='right'){x=x+bw-w;}if(options.valign==='center'){y=y+bh/2-h/2;}else if(options.valign==='bottom'){y=y+bh-h;}}// create link annotations if the link option is given\nif(options.link!=null){this.link(x,y,w,h,options.link);}if(options.goTo!=null){this.goTo(x,y,w,h,options.goTo);}if(options.destination!=null){this.addNamedDestination(options.destination,'XYZ',x,y,null);}// Set the current y position to below the image if it is in the document flow\nif(this.y===y){this.y+=h;}this.save();this.transform(w,0,0,-h,x,y+h);this.addContent(\"/\".concat(image.label,\" Do\"));this.restore();return this;},openImage:function openImage(src){var image;if(typeof src==='string'){image=this._imageRegistry[src];}if(!image){image=PDFImage.open(src,\"I\".concat(++this._imageCount));if(typeof src==='string'){this._imageRegistry[src]=image;}}return image;}};var AnnotationsMixin={annotate:function annotate(x,y,w,h,options){options.Type='Annot';options.Rect=this._convertRect(x,y,w,h);options.Border=[0,0,0];if(options.Subtype==='Link'&&typeof options.F==='undefined'){options.F=1<<2;// Print Annotation Flag\n}if(options.Subtype!=='Link'){if(options.C==null){options.C=this._normalizeColor(options.color||[0,0,0]);}}// convert colors\ndelete options.color;if(typeof options.Dest==='string'){options.Dest=new String(options.Dest);}// Capitalize keys\nfor(var key in options){var val=options[key];options[key[0].toUpperCase()+key.slice(1)]=val;}var ref=this.ref(options);this.page.annotations.push(ref);ref.end();return this;},note:function note(x,y,w,h,contents){var options=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};options.Subtype='Text';options.Contents=new String(contents);options.Name='Comment';if(options.color==null){options.color=[243,223,92];}return this.annotate(x,y,w,h,options);},goTo:function goTo(x,y,w,h,name){var options=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};options.Subtype='Link';options.A=this.ref({S:'GoTo',D:new String(name)});options.A.end();return this.annotate(x,y,w,h,options);},link:function link(x,y,w,h,url){var options=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};options.Subtype='Link';if(typeof url==='number'){// Link to a page in the document (the page must already exist)\nvar pages=this._root.data.Pages.data;if(url>=0&&url<pages.Kids.length){options.A=this.ref({S:'GoTo',D:[pages.Kids[url],'XYZ',null,null,null]});options.A.end();}else{throw new Error(\"The document has no page \".concat(url));}}else{// Link to an external url\noptions.A=this.ref({S:'URI',URI:new String(url)});options.A.end();}return this.annotate(x,y,w,h,options);},_markup:function _markup(x,y,w,h){var options=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};var _this$_convertRect=this._convertRect(x,y,w,h),_this$_convertRect2=_slicedToArray(_this$_convertRect,4),x1=_this$_convertRect2[0],y1=_this$_convertRect2[1],x2=_this$_convertRect2[2],y2=_this$_convertRect2[3];options.QuadPoints=[x1,y2,x2,y2,x1,y1,x2,y1];options.Contents=new String();return this.annotate(x,y,w,h,options);},highlight:function highlight(x,y,w,h){var options=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};options.Subtype='Highlight';if(options.color==null){options.color=[241,238,148];}return this._markup(x,y,w,h,options);},underline:function underline(x,y,w,h){var options=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};options.Subtype='Underline';return this._markup(x,y,w,h,options);},strike:function strike(x,y,w,h){var options=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};options.Subtype='StrikeOut';return this._markup(x,y,w,h,options);},lineAnnotation:function lineAnnotation(x1,y1,x2,y2){var options=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};options.Subtype='Line';options.Contents=new String();options.L=[x1,this.page.height-y1,x2,this.page.height-y2];return this.annotate(x1,y1,x2,y2,options);},rectAnnotation:function rectAnnotation(x,y,w,h){var options=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};options.Subtype='Square';options.Contents=new String();return this.annotate(x,y,w,h,options);},ellipseAnnotation:function ellipseAnnotation(x,y,w,h){var options=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};options.Subtype='Circle';options.Contents=new String();return this.annotate(x,y,w,h,options);},textAnnotation:function textAnnotation(x,y,w,h,text){var options=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};options.Subtype='FreeText';options.Contents=new String(text);options.DA=new String();return this.annotate(x,y,w,h,options);},_convertRect:function _convertRect(x1,y1,w,h){// flip y1 and y2\nvar y2=y1;y1+=h;// make x2\nvar x2=x1+w;// apply current transformation matrix to points\nvar _this$_ctm=_slicedToArray(this._ctm,6),m0=_this$_ctm[0],m1=_this$_ctm[1],m2=_this$_ctm[2],m3=_this$_ctm[3],m4=_this$_ctm[4],m5=_this$_ctm[5];x1=m0*x1+m2*y1+m4;y1=m1*x1+m3*y1+m5;x2=m0*x2+m2*y2+m4;y2=m1*x2+m3*y2+m5;return[x1,y1,x2,y2];}};var PDFOutline=/*#__PURE__*/function(){function PDFOutline(document,parent,title,dest){var options=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{expanded:false};_classCallCheck(this,PDFOutline);this.document=document;this.options=options;this.outlineData={};if(dest!==null){this.outlineData['Dest']=[dest.dictionary,'Fit'];}if(parent!==null){this.outlineData['Parent']=parent;}if(title!==null){this.outlineData['Title']=new String(title);}this.dictionary=this.document.ref(this.outlineData);this.children=[];}_createClass(PDFOutline,[{key:\"addItem\",value:function addItem(title){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{expanded:false};var result=new PDFOutline(this.document,this.dictionary,title,this.document.page,options);this.children.push(result);return result;}},{key:\"endOutline\",value:function endOutline(){if(this.children.length>0){if(this.options.expanded){this.outlineData.Count=this.children.length;}var first=this.children[0],last=this.children[this.children.length-1];this.outlineData.First=first.dictionary;this.outlineData.Last=last.dictionary;for(var i=0,len=this.children.length;i<len;i++){var child=this.children[i];if(i>0){child.outlineData.Prev=this.children[i-1].dictionary;}if(i<this.children.length-1){child.outlineData.Next=this.children[i+1].dictionary;}child.endOutline();}}return this.dictionary.end();}}]);return PDFOutline;}();var OutlineMixin={initOutline:function initOutline(){return this.outline=new PDFOutline(this,null,null,null);},endOutline:function endOutline(){this.outline.endOutline();if(this.outline.children.length>0){this._root.data.Outlines=this.outline.dictionary;return this._root.data.PageMode='UseOutlines';}}};var FIELD_FLAGS={readOnly:1,required:2,noExport:4,multiline:0x1000,password:0x2000,toggleToOffButton:0x4000,radioButton:0x8000,pushButton:0x10000,combo:0x20000,edit:0x40000,sort:0x80000,multiSelect:0x200000,noSpell:0x400000};var FIELD_JUSTIFY={left:0,center:1,right:2};var VALUE_MAP={value:'V',defaultValue:'DV'};var FORMAT_SPECIAL={zip:'0',zipPlus4:'1',zip4:'1',phone:'2',ssn:'3'};var FORMAT_DEFAULT={number:{nDec:0,sepComma:false,negStyle:'MinusBlack',currency:'',currencyPrepend:true},percent:{nDec:0,sepComma:false}};var AcroFormMixin={/**\r\n       * Must call if adding AcroForms to a document. Must also call font() before\r\n       * this method to set the default font.\r\n       */initForm:function initForm(){if(!this._font){throw new Error('Must set a font before calling initForm method');}this._acroform={fonts:{},defaultFont:this._font.name};this._acroform.fonts[this._font.id]=this._font.ref();var data={Fields:[],NeedAppearances:true,DA:new String(\"/\".concat(this._font.id,\" 0 Tf 0 g\")),DR:{Font:{}}};data.DR.Font[this._font.id]=this._font.ref();var AcroForm=this.ref(data);this._root.data.AcroForm=AcroForm;return this;},/**\r\n       * Called automatically by document.js\r\n       */endAcroForm:function endAcroForm(){var _this=this;if(this._root.data.AcroForm){if(!Object.keys(this._acroform.fonts).length&&!this._acroform.defaultFont){throw new Error('No fonts specified for PDF form');}var fontDict=this._root.data.AcroForm.data.DR.Font;Object.keys(this._acroform.fonts).forEach(function(name){fontDict[name]=_this._acroform.fonts[name];});this._root.data.AcroForm.data.Fields.forEach(function(fieldRef){_this._endChild(fieldRef);});this._root.data.AcroForm.end();}return this;},_endChild:function _endChild(ref){var _this2=this;if(Array.isArray(ref.data.Kids)){ref.data.Kids.forEach(function(childRef){_this2._endChild(childRef);});ref.end();}return this;},/**\r\n       * Creates and adds a form field to the document. Form fields are intermediate\r\n       * nodes in a PDF form that are used to specify form name heirarchy and form\r\n       * value defaults.\r\n       * @param {string} name - field name (T attribute in field dictionary)\r\n       * @param {object} options  - other attributes to include in field dictionary\r\n       */formField:function formField(name){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var fieldDict=this._fieldDict(name,null,options);var fieldRef=this.ref(fieldDict);this._addToParent(fieldRef);return fieldRef;},/**\r\n       * Creates and adds a Form Annotation to the document. Form annotations are\r\n       * called Widget annotations internally within a PDF file.\r\n       * @param {string} name - form field name (T attribute of widget annotation\r\n       * dictionary)\r\n       * @param {number} x\r\n       * @param {number} y\r\n       * @param {number} w\r\n       * @param {number} h\r\n       * @param {object} options\r\n       */formAnnotation:function formAnnotation(name,type,x,y,w,h){var options=arguments.length>6&&arguments[6]!==undefined?arguments[6]:{};var fieldDict=this._fieldDict(name,type,options);fieldDict.Subtype='Widget';if(fieldDict.F===undefined){fieldDict.F=4;// print the annotation\n}// Add Field annot to page, and get it's ref\nthis.annotate(x,y,w,h,fieldDict);var annotRef=this.page.annotations[this.page.annotations.length-1];return this._addToParent(annotRef);},formText:function formText(name,x,y,w,h){var options=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};return this.formAnnotation(name,'text',x,y,w,h,options);},formPushButton:function formPushButton(name,x,y,w,h){var options=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};return this.formAnnotation(name,'pushButton',x,y,w,h,options);},formCombo:function formCombo(name,x,y,w,h){var options=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};return this.formAnnotation(name,'combo',x,y,w,h,options);},formList:function formList(name,x,y,w,h){var options=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};return this.formAnnotation(name,'list',x,y,w,h,options);},formRadioButton:function formRadioButton(name,x,y,w,h){var options=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};return this.formAnnotation(name,'radioButton',x,y,w,h,options);},formCheckbox:function formCheckbox(name,x,y,w,h){var options=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};return this.formAnnotation(name,'checkbox',x,y,w,h,options);},_addToParent:function _addToParent(fieldRef){var parent=fieldRef.data.Parent;if(parent){if(!parent.data.Kids){parent.data.Kids=[];}parent.data.Kids.push(fieldRef);}else{this._root.data.AcroForm.data.Fields.push(fieldRef);}return this;},_fieldDict:function _fieldDict(name,type){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(!this._acroform){throw new Error('Call document.initForms() method before adding form elements to document');}var opts=Object.assign({},options);if(type!==null){opts=this._resolveType(type,options);}opts=this._resolveFlags(opts);opts=this._resolveJustify(opts);opts=this._resolveFont(opts);opts=this._resolveStrings(opts);opts=this._resolveColors(opts);opts=this._resolveFormat(opts);opts.T=new String(name);if(opts.parent){opts.Parent=opts.parent;delete opts.parent;}return opts;},_resolveType:function _resolveType(type,opts){if(type==='text'){opts.FT='Tx';}else if(type==='pushButton'){opts.FT='Btn';opts.pushButton=true;}else if(type==='radioButton'){opts.FT='Btn';opts.radioButton=true;}else if(type==='checkbox'){opts.FT='Btn';}else if(type==='combo'){opts.FT='Ch';opts.combo=true;}else if(type==='list'){opts.FT='Ch';}else{throw new Error(\"Invalid form annotation type '\".concat(type,\"'\"));}return opts;},_resolveFormat:function _resolveFormat(opts){var f=opts.format;if(f&&f.type){var fnKeystroke;var fnFormat;var params='';if(FORMAT_SPECIAL[f.type]!==undefined){fnKeystroke=\"AFSpecial_Keystroke\";fnFormat=\"AFSpecial_Format\";params=FORMAT_SPECIAL[f.type];}else{var format=f.type.charAt(0).toUpperCase()+f.type.slice(1);fnKeystroke=\"AF\".concat(format,\"_Keystroke\");fnFormat=\"AF\".concat(format,\"_Format\");if(f.type==='date'){fnKeystroke+='Ex';params=String(f.param);}else if(f.type==='time'){params=String(f.param);}else if(f.type==='number'){var p=Object.assign({},FORMAT_DEFAULT.number,f);params=String([String(p.nDec),p.sepComma?'0':'1','\"'+p.negStyle+'\"','null','\"'+p.currency+'\"',String(p.currencyPrepend)].join(','));}else if(f.type==='percent'){var _p=Object.assign({},FORMAT_DEFAULT.percent,f);params=String([String(_p.nDec),_p.sepComma?'0':'1'].join(','));}}opts.AA=opts.AA?opts.AA:{};opts.AA.K={S:'JavaScript',JS:new String(\"\".concat(fnKeystroke,\"(\").concat(params,\");\"))};opts.AA.F={S:'JavaScript',JS:new String(\"\".concat(fnFormat,\"(\").concat(params,\");\"))};}delete opts.format;return opts;},_resolveColors:function _resolveColors(opts){var color=this._normalizeColor(opts.backgroundColor);if(color){if(!opts.MK){opts.MK={};}opts.MK.BG=color;}color=this._normalizeColor(opts.borderColor);if(color){if(!opts.MK){opts.MK={};}opts.MK.BC=color;}delete opts.backgroundColor;delete opts.borderColor;return opts;},_resolveFlags:function _resolveFlags(options){var result=0;Object.keys(options).forEach(function(key){if(FIELD_FLAGS[key]){result|=FIELD_FLAGS[key];delete options[key];}});if(result!==0){options.Ff=options.Ff?options.Ff:0;options.Ff|=result;}return options;},_resolveJustify:function _resolveJustify(options){var result=0;if(options.align!==undefined){if(typeof FIELD_JUSTIFY[options.align]==='number'){result=FIELD_JUSTIFY[options.align];}delete options.align;}if(result!==0){options.Q=result;// default\n}return options;},_resolveFont:function _resolveFont(options){// add current font to document-level AcroForm dict if necessary\nif(this._acroform.fonts[this._font.id]===null){this._acroform.fonts[this._font.id]=this._font.ref();}// add current font to field's resource dict (RD) if not the default acroform font\nif(this._acroform.defaultFont!==this._font.name){options.DR={Font:{}};options.DR.Font[this._font.id]=this._font.ref();options.DA=new String(\"/\".concat(this._font.id,\" 0 Tf 0 g\"));}return options;},_resolveStrings:function _resolveStrings(options){var select=[];function appendChoices(a){if(Array.isArray(a)){for(var idx=0;idx<a.length;idx++){if(typeof a[idx]==='string'){select.push(new String(a[idx]));}else{select.push(a[idx]);}}}}appendChoices(options.Opt);if(options.select){appendChoices(options.select);delete options.select;}if(select.length){options.Opt=select;}if(options.value||options.defaultValue);Object.keys(VALUE_MAP).forEach(function(key){if(options[key]!==undefined){options[VALUE_MAP[key]]=options[key];delete options[key];}});['V','DV'].forEach(function(key){if(typeof options[key]==='string'){options[key]=new String(options[key]);}});if(options.MK&&options.MK.CA){options.MK.CA=new String(options.MK.CA);}if(options.label){options.MK=options.MK?options.MK:{};options.MK.CA=new String(options.label);delete options.label;}return options;}};var PDFDocument=/*#__PURE__*/function(_stream$Readable){_inherits(PDFDocument,_stream$Readable);function PDFDocument(){var _this;var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};_classCallCheck(this,PDFDocument);_this=_possibleConstructorReturn(this,_getPrototypeOf(PDFDocument).call(this,options));_this.options=options;// PDF version\nswitch(options.pdfVersion){case'1.4':_this.version=1.4;break;case'1.5':_this.version=1.5;break;case'1.6':_this.version=1.6;break;case'1.7':case'1.7ext3':_this.version=1.7;break;default:_this.version=1.3;break;}// Whether streams should be compressed\n_this.compress=_this.options.compress!=null?_this.options.compress:true;_this._pageBuffer=[];_this._pageBufferStart=0;// The PDF object store\n_this._offsets=[];_this._waiting=0;_this._ended=false;_this._offset=0;var Pages=_this.ref({Type:'Pages',Count:0,Kids:[]});var Names=_this.ref({Dests:new PDFNameTree()});_this._root=_this.ref({Type:'Catalog',Pages:Pages,Names:Names});// The current page\n_this.page=null;// Initialize mixins\n_this.initColor();_this.initVector();_this.initFonts(options.font);_this.initText();_this.initImages();_this.initOutline();// Initialize the metadata\n_this.info={Producer:'PDFKit',Creator:'PDFKit',CreationDate:new Date()};if(_this.options.info){for(var key in _this.options.info){var val=_this.options.info[key];_this.info[key]=val;}}// Generate file ID\n_this._id=PDFSecurity.generateFileID(_this.info);// Initialize security settings\n_this._security=PDFSecurity.create(_assertThisInitialized(_this),options);// Write the header\n// PDF version\n_this._write(\"%PDF-\".concat(_this.version));// 4 binary chars, as recommended by the spec\n_this._write('%\\xFF\\xFF\\xFF\\xFF');// Add the first page\nif(_this.options.autoFirstPage!==false){_this.addPage();}return _this;}_createClass(PDFDocument,[{key:\"addPage\",value:function addPage(options){// end the current page if needed\nif(options==null){options=this.options;}if(!this.options.bufferPages){this.flushPages();}// create a page object\nthis.page=new PDFPage(this,options);this._pageBuffer.push(this.page);// add the page to the object store\nvar pages=this._root.data.Pages.data;pages.Kids.push(this.page.dictionary);pages.Count++;// reset x and y coordinates\nthis.x=this.page.margins.left;this.y=this.page.margins.top;// flip PDF coordinate system so that the origin is in\n// the top left rather than the bottom left\nthis._ctm=[1,0,0,1,0,0];this.transform(1,0,0,-1,0,this.page.height);this.emit('pageAdded');return this;}},{key:\"bufferedPageRange\",value:function bufferedPageRange(){return{start:this._pageBufferStart,count:this._pageBuffer.length};}},{key:\"switchToPage\",value:function switchToPage(n){var page;if(!(page=this._pageBuffer[n-this._pageBufferStart])){throw new Error(\"switchToPage(\".concat(n,\") out of bounds, current buffer covers pages \").concat(this._pageBufferStart,\" to \").concat(this._pageBufferStart+this._pageBuffer.length-1));}return this.page=page;}},{key:\"flushPages\",value:function flushPages(){// this local variable exists so we're future-proof against\n// reentrant calls to flushPages.\nvar pages=this._pageBuffer;this._pageBuffer=[];this._pageBufferStart+=pages.length;var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=pages[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var page=_step.value;page.end();}}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError;}}}}},{key:\"addNamedDestination\",value:function addNamedDestination(name){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}if(args.length===0){args=['XYZ',null,null,null];}if(args[0]==='XYZ'&&args[2]!==null){args[2]=this.page.height-args[2];}args.unshift(this.page.dictionary);this._root.data.Names.data.Dests.add(name,args);}},{key:\"addNamedJavaScript\",value:function addNamedJavaScript(name,js){if(!this._root.data.Names.data.JavaScript){this._root.data.Names.data.JavaScript=new PDFNameTree();}var data={JS:new String(js),S:'JavaScript'};this._root.data.Names.data.JavaScript.add(name,data);}},{key:\"ref\",value:function ref(data){var ref=new PDFReference(this,this._offsets.length+1,data);this._offsets.push(null);// placeholder for this object's offset once it is finalized\nthis._waiting++;return ref;}},{key:\"_read\",value:function _read(){}// do nothing, but this method is required by node\n},{key:\"_write\",value:function _write(data){if(!Buffer.isBuffer(data)){data=new Buffer(data+'\\n','binary');}this.push(data);return this._offset+=data.length;}},{key:\"addContent\",value:function addContent(data){this.page.write(data);return this;}},{key:\"_refEnd\",value:function _refEnd(ref){this._offsets[ref.id-1]=ref.offset;if(--this._waiting===0&&this._ended){this._finalize();return this._ended=false;}}},{key:\"write\",value:function write(filename,fn){// print a deprecation warning with a stacktrace\nvar err=new Error(\"PDFDocument#write is deprecated, and will be removed in a future version of PDFKit. Please pipe the document into a Node stream.\");console.warn(err.stack);this.pipe(fs.createWriteStream(filename));this.end();return this.once('end',fn);}},{key:\"end\",value:function end(){this.flushPages();this._info=this.ref();for(var key in this.info){var val=this.info[key];if(typeof val==='string'){val=new String(val);}var entry=this.ref(val);entry.end();this._info.data[key]=entry;}this._info.end();for(var name in this._fontFamilies){var font=this._fontFamilies[name];font.finalize();}this.endOutline();this._root.end();this._root.data.Pages.end();this._root.data.Names.end();this.endAcroForm();if(this._security){this._security.end();}if(this._waiting===0){return this._finalize();}else{return this._ended=true;}}},{key:\"_finalize\",value:function _finalize(fn){// generate xref\nvar xRefOffset=this._offset;this._write('xref');this._write(\"0 \".concat(this._offsets.length+1));this._write('0000000000 65535 f ');var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=this._offsets[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var offset=_step2.value;offset=\"0000000000\".concat(offset).slice(-10);this._write(offset+' 00000 n ');}// trailer\n}catch(err){_didIteratorError2=true;_iteratorError2=err;}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null){_iterator2.return();}}finally{if(_didIteratorError2){throw _iteratorError2;}}}var trailer={Size:this._offsets.length+1,Root:this._root,Info:this._info,ID:[this._id,this._id]};if(this._security){trailer.Encrypt=this._security.dictionary;}this._write('trailer');this._write(PDFObject.convert(trailer));this._write('startxref');this._write(\"\".concat(xRefOffset));this._write('%%EOF');// end the stream\nreturn this.push(null);}},{key:\"toString\",value:function toString(){return'[object PDFDocument]';}}]);return PDFDocument;}(_stream.default.Readable);var mixin=function mixin(methods){Object.assign(PDFDocument.prototype,methods);};mixin(ColorMixin);mixin(VectorMixin);mixin(FontsMixin);mixin(TextMixin);mixin(ImagesMixin);mixin(AnnotationsMixin);mixin(OutlineMixin);mixin(AcroFormMixin);var _default=PDFDocument;exports.default=_default;/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3435348__(4).Buffer,\"/\");/***/},/* 222 */ /***/function(module,exports,__nested_webpack_require_3580982__){\"use strict\";// B.2.3.12 String.prototype.strike()\n__nested_webpack_require_3580982__(133)('strike',function(createHTML){return function strike(){return createHTML(this,'strike','','');};});/***/},/* 223 */ /***/function(module,exports,__nested_webpack_require_3581224__){module.exports=__nested_webpack_require_3581224__(61)('native-function-to-string',Function.toString);/***/},/* 224 */ /***/function(module,exports,__nested_webpack_require_3581377__){// 19.1.3.1 Object.assign(target, source)\nvar $export=__nested_webpack_require_3581377__(5);$export($export.S+$export.F,'Object',{assign:__nested_webpack_require_3581377__(225)});/***/},/* 225 */ /***/function(module,exports,__nested_webpack_require_3581593__){\"use strict\";// 19.1.2.1 Object.assign(target, source, ...)\nvar DESCRIPTORS=__nested_webpack_require_3581593__(9);var getKeys=__nested_webpack_require_3581593__(42);var gOPS=__nested_webpack_require_3581593__(89);var pIE=__nested_webpack_require_3581593__(62);var toObject=__nested_webpack_require_3581593__(19);var IObject=__nested_webpack_require_3581593__(85);var $assign=Object.assign;// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports=!$assign||__nested_webpack_require_3581593__(10)(function(){var A={};var B={};// eslint-disable-next-line no-undef\nvar S=Symbol();var K='abcdefghijklmnopqrst';A[S]=7;K.split('').forEach(function(k){B[k]=k;});return $assign({},A)[S]!=7||Object.keys($assign({},B)).join('')!=K;})?function assign(target,source){// eslint-disable-line no-unused-vars\nvar T=toObject(target);var aLen=arguments.length;var index=1;var getSymbols=gOPS.f;var isEnum=pIE.f;while(aLen>index){var S=IObject(arguments[index++]);var keys=getSymbols?getKeys(S).concat(getSymbols(S)):getKeys(S);var length=keys.length;var j=0;var key;while(length>j){key=keys[j++];if(!DESCRIPTORS||isEnum.call(S,key))T[key]=S[key];}}return T;}:$assign;/***/},/* 226 */ /***/function(module,exports,__nested_webpack_require_3582744__){\"use strict\";var global=__nested_webpack_require_3582744__(8);var DESCRIPTORS=__nested_webpack_require_3582744__(9);var LIBRARY=__nested_webpack_require_3582744__(41);var $typed=__nested_webpack_require_3582744__(141);var hide=__nested_webpack_require_3582744__(15);var redefineAll=__nested_webpack_require_3582744__(142);var fails=__nested_webpack_require_3582744__(10);var anInstance=__nested_webpack_require_3582744__(143);var toInteger=__nested_webpack_require_3582744__(31);var toLength=__nested_webpack_require_3582744__(16);var toIndex=__nested_webpack_require_3582744__(144);var gOPN=__nested_webpack_require_3582744__(55).f;var dP=__nested_webpack_require_3582744__(11).f;var arrayFill=__nested_webpack_require_3582744__(90);var setToStringTag=__nested_webpack_require_3582744__(63);var ARRAY_BUFFER='ArrayBuffer';var DATA_VIEW='DataView';var PROTOTYPE='prototype';var WRONG_LENGTH='Wrong length!';var WRONG_INDEX='Wrong index!';var $ArrayBuffer=global[ARRAY_BUFFER];var $DataView=global[DATA_VIEW];var Math=global.Math;var RangeError=global.RangeError;// eslint-disable-next-line no-shadow-restricted-names\nvar Infinity=global.Infinity;var BaseBuffer=$ArrayBuffer;var abs=Math.abs;var pow=Math.pow;var floor=Math.floor;var log=Math.log;var LN2=Math.LN2;var BUFFER='buffer';var BYTE_LENGTH='byteLength';var BYTE_OFFSET='byteOffset';var $BUFFER=DESCRIPTORS?'_b':BUFFER;var $LENGTH=DESCRIPTORS?'_l':BYTE_LENGTH;var $OFFSET=DESCRIPTORS?'_o':BYTE_OFFSET;// IEEE754 conversions based on https://github.com/feross/ieee754\nfunction packIEEE754(value,mLen,nBytes){var buffer=new Array(nBytes);var eLen=nBytes*8-mLen-1;var eMax=(1<<eLen)-1;var eBias=eMax>>1;var rt=mLen===23?pow(2,-24)-pow(2,-77):0;var i=0;var s=value<0||value===0&&1/value<0?1:0;var e,m,c;value=abs(value);// eslint-disable-next-line no-self-compare\nif(value!=value||value===Infinity){// eslint-disable-next-line no-self-compare\nm=value!=value?1:0;e=eMax;}else{e=floor(log(value)/LN2);if(value*(c=pow(2,-e))<1){e--;c*=2;}if(e+eBias>=1){value+=rt/c;}else{value+=rt*pow(2,1-eBias);}if(value*c>=2){e++;c/=2;}if(e+eBias>=eMax){m=0;e=eMax;}else if(e+eBias>=1){m=(value*c-1)*pow(2,mLen);e=e+eBias;}else{m=value*pow(2,eBias-1)*pow(2,mLen);e=0;}}for(;mLen>=8;buffer[i++]=m&255,m/=256,mLen-=8);e=e<<mLen|m;eLen+=mLen;for(;eLen>0;buffer[i++]=e&255,e/=256,eLen-=8);buffer[--i]|=s*128;return buffer;}function unpackIEEE754(buffer,mLen,nBytes){var eLen=nBytes*8-mLen-1;var eMax=(1<<eLen)-1;var eBias=eMax>>1;var nBits=eLen-7;var i=nBytes-1;var s=buffer[i--];var e=s&127;var m;s>>=7;for(;nBits>0;e=e*256+buffer[i],i--,nBits-=8);m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[i],i--,nBits-=8);if(e===0){e=1-eBias;}else if(e===eMax){return m?NaN:s?-Infinity:Infinity;}else{m=m+pow(2,mLen);e=e-eBias;}return(s?-1:1)*m*pow(2,e-mLen);}function unpackI32(bytes){return bytes[3]<<24|bytes[2]<<16|bytes[1]<<8|bytes[0];}function packI8(it){return[it&0xff];}function packI16(it){return[it&0xff,it>>8&0xff];}function packI32(it){return[it&0xff,it>>8&0xff,it>>16&0xff,it>>24&0xff];}function packF64(it){return packIEEE754(it,52,8);}function packF32(it){return packIEEE754(it,23,4);}function addGetter(C,key,internal){dP(C[PROTOTYPE],key,{get:function(){return this[internal];}});}function get(view,bytes,index,isLittleEndian){var numIndex=+index;var intIndex=toIndex(numIndex);if(intIndex+bytes>view[$LENGTH])throw RangeError(WRONG_INDEX);var store=view[$BUFFER]._b;var start=intIndex+view[$OFFSET];var pack=store.slice(start,start+bytes);return isLittleEndian?pack:pack.reverse();}function set(view,bytes,index,conversion,value,isLittleEndian){var numIndex=+index;var intIndex=toIndex(numIndex);if(intIndex+bytes>view[$LENGTH])throw RangeError(WRONG_INDEX);var store=view[$BUFFER]._b;var start=intIndex+view[$OFFSET];var pack=conversion(+value);for(var i=0;i<bytes;i++)store[start+i]=pack[isLittleEndian?i:bytes-i-1];}if(!$typed.ABV){$ArrayBuffer=function ArrayBuffer(length){anInstance(this,$ArrayBuffer,ARRAY_BUFFER);var byteLength=toIndex(length);this._b=arrayFill.call(new Array(byteLength),0);this[$LENGTH]=byteLength;};$DataView=function DataView(buffer,byteOffset,byteLength){anInstance(this,$DataView,DATA_VIEW);anInstance(buffer,$ArrayBuffer,DATA_VIEW);var bufferLength=buffer[$LENGTH];var offset=toInteger(byteOffset);if(offset<0||offset>bufferLength)throw RangeError('Wrong offset!');byteLength=byteLength===undefined?bufferLength-offset:toLength(byteLength);if(offset+byteLength>bufferLength)throw RangeError(WRONG_LENGTH);this[$BUFFER]=buffer;this[$OFFSET]=offset;this[$LENGTH]=byteLength;};if(DESCRIPTORS){addGetter($ArrayBuffer,BYTE_LENGTH,'_l');addGetter($DataView,BUFFER,'_b');addGetter($DataView,BYTE_LENGTH,'_l');addGetter($DataView,BYTE_OFFSET,'_o');}redefineAll($DataView[PROTOTYPE],{getInt8:function getInt8(byteOffset){return get(this,1,byteOffset)[0]<<24>>24;},getUint8:function getUint8(byteOffset){return get(this,1,byteOffset)[0];},getInt16:function getInt16(byteOffset/* , littleEndian */){var bytes=get(this,2,byteOffset,arguments[1]);return(bytes[1]<<8|bytes[0])<<16>>16;},getUint16:function getUint16(byteOffset/* , littleEndian */){var bytes=get(this,2,byteOffset,arguments[1]);return bytes[1]<<8|bytes[0];},getInt32:function getInt32(byteOffset/* , littleEndian */){return unpackI32(get(this,4,byteOffset,arguments[1]));},getUint32:function getUint32(byteOffset/* , littleEndian */){return unpackI32(get(this,4,byteOffset,arguments[1]))>>>0;},getFloat32:function getFloat32(byteOffset/* , littleEndian */){return unpackIEEE754(get(this,4,byteOffset,arguments[1]),23,4);},getFloat64:function getFloat64(byteOffset/* , littleEndian */){return unpackIEEE754(get(this,8,byteOffset,arguments[1]),52,8);},setInt8:function setInt8(byteOffset,value){set(this,1,byteOffset,packI8,value);},setUint8:function setUint8(byteOffset,value){set(this,1,byteOffset,packI8,value);},setInt16:function setInt16(byteOffset,value/* , littleEndian */){set(this,2,byteOffset,packI16,value,arguments[2]);},setUint16:function setUint16(byteOffset,value/* , littleEndian */){set(this,2,byteOffset,packI16,value,arguments[2]);},setInt32:function setInt32(byteOffset,value/* , littleEndian */){set(this,4,byteOffset,packI32,value,arguments[2]);},setUint32:function setUint32(byteOffset,value/* , littleEndian */){set(this,4,byteOffset,packI32,value,arguments[2]);},setFloat32:function setFloat32(byteOffset,value/* , littleEndian */){set(this,4,byteOffset,packF32,value,arguments[2]);},setFloat64:function setFloat64(byteOffset,value/* , littleEndian */){set(this,8,byteOffset,packF64,value,arguments[2]);}});}else{if(!fails(function(){$ArrayBuffer(1);})||!fails(function(){new $ArrayBuffer(-1);// eslint-disable-line no-new\n})||fails(function(){new $ArrayBuffer();// eslint-disable-line no-new\nnew $ArrayBuffer(1.5);// eslint-disable-line no-new\nnew $ArrayBuffer(NaN);// eslint-disable-line no-new\nreturn $ArrayBuffer.name!=ARRAY_BUFFER;})){$ArrayBuffer=function ArrayBuffer(length){anInstance(this,$ArrayBuffer);return new BaseBuffer(toIndex(length));};var ArrayBufferProto=$ArrayBuffer[PROTOTYPE]=BaseBuffer[PROTOTYPE];for(var keys=gOPN(BaseBuffer),j=0,key;keys.length>j;){if(!((key=keys[j++])in $ArrayBuffer))hide($ArrayBuffer,key,BaseBuffer[key]);}if(!LIBRARY)ArrayBufferProto.constructor=$ArrayBuffer;}// iOS Safari 7.x bug\nvar view=new $DataView(new $ArrayBuffer(2));var $setInt8=$DataView[PROTOTYPE].setInt8;view.setInt8(0,2147483648);view.setInt8(1,2147483649);if(view.getInt8(0)||!view.getInt8(1))redefineAll($DataView[PROTOTYPE],{setInt8:function setInt8(byteOffset,value){$setInt8.call(this,byteOffset,value<<24>>24);},setUint8:function setUint8(byteOffset,value){$setInt8.call(this,byteOffset,value<<24>>24);}},true);}setToStringTag($ArrayBuffer,ARRAY_BUFFER);setToStringTag($DataView,DATA_VIEW);hide($DataView[PROTOTYPE],$typed.VIEW,true);exports[ARRAY_BUFFER]=$ArrayBuffer;exports[DATA_VIEW]=$DataView;/***/},/* 227 */ /***/function(module,exports,__nested_webpack_require_3590471__){var dP=__nested_webpack_require_3590471__(11);var anObject=__nested_webpack_require_3590471__(12);var getKeys=__nested_webpack_require_3590471__(42);module.exports=__nested_webpack_require_3590471__(9)?Object.defineProperties:function defineProperties(O,Properties){anObject(O);var keys=getKeys(Properties);var length=keys.length;var i=0;var P;while(length>i)dP.f(O,P=keys[i++],Properties[P]);return O;};/***/},/* 228 */ /***/function(module,exports,__nested_webpack_require_3590882__){var document=__nested_webpack_require_3590882__(8).document;module.exports=document&&document.documentElement;/***/},/* 229 */ /***/function(module,exports,__nested_webpack_require_3591044__){// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx=__nested_webpack_require_3591044__(52);var IObject=__nested_webpack_require_3591044__(85);var toObject=__nested_webpack_require_3591044__(19);var toLength=__nested_webpack_require_3591044__(16);var asc=__nested_webpack_require_3591044__(230);module.exports=function(TYPE,$create){var IS_MAP=TYPE==1;var IS_FILTER=TYPE==2;var IS_SOME=TYPE==3;var IS_EVERY=TYPE==4;var IS_FIND_INDEX=TYPE==6;var NO_HOLES=TYPE==5||IS_FIND_INDEX;var create=$create||asc;return function($this,callbackfn,that){var O=toObject($this);var self=IObject(O);var f=ctx(callbackfn,that,3);var length=toLength(self.length);var index=0;var result=IS_MAP?create($this,length):IS_FILTER?create($this,0):undefined;var val,res;for(;length>index;index++)if(NO_HOLES||index in self){val=self[index];res=f(val,index,O);if(TYPE){if(IS_MAP)result[index]=res;// map\nelse if(res)switch(TYPE){case 3:return true;// some\ncase 5:return val;// find\ncase 6:return index;// findIndex\ncase 2:result.push(val);// filter\n}else if(IS_EVERY)return false;// every\n}}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:result;};};/***/},/* 230 */ /***/function(module,exports,__nested_webpack_require_3592259__){// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor=__nested_webpack_require_3592259__(231);module.exports=function(original,length){return new(speciesConstructor(original))(length);};/***/},/* 231 */ /***/function(module,exports,__nested_webpack_require_3592519__){var isObject=__nested_webpack_require_3592519__(18);var isArray=__nested_webpack_require_3592519__(148);var SPECIES=__nested_webpack_require_3592519__(3)('species');module.exports=function(original){var C;if(isArray(original)){C=original.constructor;// cross-realm fallback\nif(typeof C=='function'&&(C===Array||isArray(C.prototype)))C=undefined;if(isObject(C)){C=C[SPECIES];if(C===null)C=undefined;}}return C===undefined?Array:C;};/***/},/* 232 */ /***/function(module,exports){module.exports=function(done,value){return{value:value,done:!!done};};/***/},/* 233 */ /***/function(module,exports,__nested_webpack_require_3593089__){\"use strict\";var create=__nested_webpack_require_3593089__(65);var descriptor=__nested_webpack_require_3593089__(40);var setToStringTag=__nested_webpack_require_3593089__(63);var IteratorPrototype={};// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\n__nested_webpack_require_3593089__(15)(IteratorPrototype,__nested_webpack_require_3593089__(3)('iterator'),function(){return this;});module.exports=function(Constructor,NAME,next){Constructor.prototype=create(IteratorPrototype,{next:descriptor(1,next)});setToStringTag(Constructor,NAME+' Iterator');};/***/},/* 234 */ /***/function(module,exports,__nested_webpack_require_3593630__){\"use strict\";var global=__nested_webpack_require_3593630__(8);var dP=__nested_webpack_require_3593630__(11);var DESCRIPTORS=__nested_webpack_require_3593630__(9);var SPECIES=__nested_webpack_require_3593630__(3)('species');module.exports=function(KEY){var C=global[KEY];if(DESCRIPTORS&&C&&!C[SPECIES])dP.f(C,SPECIES,{configurable:true,get:function(){return this;}});};/***/},/* 235 */ /***/function(module,exports,__nested_webpack_require_3594005__){\"use strict\";// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)\nvar toObject=__nested_webpack_require_3594005__(19);var toAbsoluteIndex=__nested_webpack_require_3594005__(54);var toLength=__nested_webpack_require_3594005__(16);module.exports=[].copyWithin||function copyWithin(target/* = 0 */,start/* = 0, end = @length */){var O=toObject(this);var len=toLength(O.length);var to=toAbsoluteIndex(target,len);var from=toAbsoluteIndex(start,len);var end=arguments.length>2?arguments[2]:undefined;var count=Math.min((end===undefined?len:toAbsoluteIndex(end,len))-from,len-to);var inc=1;if(from<to&&to<from+count){inc=-1;from+=count-1;to+=count-1;}while(count-->0){if(from in O)O[to]=O[from];else delete O[to];to+=inc;from+=inc;}return O;};/***/},/* 236 */ /***/function(module,exports,__nested_webpack_require_3594784__){\"use strict\";var regexpExec=__nested_webpack_require_3594784__(97);__nested_webpack_require_3594784__(5)({target:'RegExp',proto:true,forced:regexpExec!==/./.exec},{exec:regexpExec});/***/},/* 237 */ /***/function(module,exports,__nested_webpack_require_3595003__){var isObject=__nested_webpack_require_3595003__(18);var setPrototypeOf=__nested_webpack_require_3595003__(156).set;module.exports=function(that,target,C){var S=target.constructor;var P;if(S!==C&&typeof S=='function'&&(P=S.prototype)!==C.prototype&&isObject(P)&&setPrototypeOf){setPrototypeOf(that,P);}return that;};/***/},/* 238 */ /***/function(module,exports,__nested_webpack_require_3595355__){var $export=__nested_webpack_require_3595355__(5);var defined=__nested_webpack_require_3595355__(30);var fails=__nested_webpack_require_3595355__(10);var spaces=__nested_webpack_require_3595355__(239);var space='['+spaces+']';var non='\\u200b\\u0085';var ltrim=RegExp('^'+space+space+'*');var rtrim=RegExp(space+space+'*$');var exporter=function(KEY,exec,ALIAS){var exp={};var FORCE=fails(function(){return!!spaces[KEY]()||non[KEY]()!=non;});var fn=exp[KEY]=FORCE?exec(trim):spaces[KEY];if(ALIAS)exp[ALIAS]=fn;$export($export.P+$export.F*FORCE,'String',exp);};// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim=exporter.trim=function(string,TYPE){string=String(defined(string));if(TYPE&1)string=string.replace(ltrim,'');if(TYPE&2)string=string.replace(rtrim,'');return string;};module.exports=exporter;/***/},/* 239 */ /***/function(module,exports){module.exports='\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003'+'\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';/***/},/* 240 */ /***/function(module,exports,__nested_webpack_require_3596399__){// 20.1.2.2 Number.isFinite(number)\nvar $export=__nested_webpack_require_3596399__(5);var _isFinite=__nested_webpack_require_3596399__(8).isFinite;$export($export.S,'Number',{isFinite:function isFinite(it){return typeof it=='number'&&_isFinite(it);}});/***/},/* 241 */ /***/function(module,exports,__nested_webpack_require_3596688__){// helper for String#{startsWith, endsWith, includes}\nvar isRegExp=__nested_webpack_require_3596688__(154);var defined=__nested_webpack_require_3596688__(30);module.exports=function(that,searchString,NAME){if(isRegExp(searchString))throw TypeError('String#'+NAME+\" doesn't accept regex!\");return String(defined(that));};/***/},/* 242 */ /***/function(module,exports,__nested_webpack_require_3597045__){var MATCH=__nested_webpack_require_3597045__(3)('match');module.exports=function(KEY){var re=/./;try{'/./'[KEY](re);}catch(e){try{re[MATCH]=false;return!'/./'[KEY](re);}catch(f){/* empty */}}return true;};/***/},/* 243 */ /***/function(module,exports,__nested_webpack_require_3597302__){var $export=__nested_webpack_require_3597302__(5);var toAbsoluteIndex=__nested_webpack_require_3597302__(54);var fromCharCode=String.fromCharCode;var $fromCodePoint=String.fromCodePoint;// length should be 1, old FF problem\n$export($export.S+$export.F*(!!$fromCodePoint&&$fromCodePoint.length!=1),'String',{// 21.1.2.2 String.fromCodePoint(...codePoints)\nfromCodePoint:function fromCodePoint(x){// eslint-disable-line no-unused-vars\nvar res=[];var aLen=arguments.length;var i=0;var code;while(aLen>i){code=+arguments[i++];if(toAbsoluteIndex(code,0x10ffff)!==code)throw RangeError(code+' is not a valid code point');res.push(code<0x10000?fromCharCode(code):fromCharCode(((code-=0x10000)>>10)+0xd800,code%0x400+0xdc00));}return res.join('');}});/***/},/* 244 */ /***/function(module,exports,__nested_webpack_require_3598082__){\"use strict\";var $export=__nested_webpack_require_3598082__(5);var $at=__nested_webpack_require_3598082__(94)(false);$export($export.P,'String',{// 21.1.3.3 String.prototype.codePointAt(pos)\ncodePointAt:function codePointAt(pos){return $at(this,pos);}});/***/},/* 245 */ /***/function(module,exports,__nested_webpack_require_3598373__){// most Object methods by ES6 should accept primitives\nvar $export=__nested_webpack_require_3598373__(5);var core=__nested_webpack_require_3598373__(39);var fails=__nested_webpack_require_3598373__(10);module.exports=function(KEY,exec){var fn=(core.Object||{})[KEY]||Object[KEY];var exp={};exp[KEY]=exec(fn);$export($export.S+$export.F*fails(function(){fn(1);}),'Object',exp);};/***/},/* 246 */ /***/function(module,exports,__nested_webpack_require_3598773__){\"use strict\";var $at=__nested_webpack_require_3598773__(94)(true);// 21.1.3.27 String.prototype[@@iterator]()\n__nested_webpack_require_3598773__(150)(String,'String',function(iterated){this._t=String(iterated);// target\nthis._i=0;// next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n},function(){var O=this._t;var index=this._i;var point;if(index>=O.length)return{value:undefined,done:true};point=$at(O,index);this._i+=point.length;return{value:point,done:false};});/***/},/* 247 */ /***/function(module,exports,__nested_webpack_require_3599284__){\"use strict\";var ctx=__nested_webpack_require_3599284__(52);var $export=__nested_webpack_require_3599284__(5);var toObject=__nested_webpack_require_3599284__(19);var call=__nested_webpack_require_3599284__(248);var isArrayIter=__nested_webpack_require_3599284__(145);var toLength=__nested_webpack_require_3599284__(16);var createProperty=__nested_webpack_require_3599284__(249);var getIterFn=__nested_webpack_require_3599284__(147);$export($export.S+$export.F*!__nested_webpack_require_3599284__(151)(function(iter){Array.from(iter);}),'Array',{// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)\nfrom:function from(arrayLike/* , mapfn = undefined, thisArg = undefined */){var O=toObject(arrayLike);var C=typeof this=='function'?this:Array;var aLen=arguments.length;var mapfn=aLen>1?arguments[1]:undefined;var mapping=mapfn!==undefined;var index=0;var iterFn=getIterFn(O);var length,result,step,iterator;if(mapping)mapfn=ctx(mapfn,aLen>2?arguments[2]:undefined,2);// if object isn't iterable or it's array with default iterator - use simple case\nif(iterFn!=undefined&&!(C==Array&&isArrayIter(iterFn))){for(iterator=iterFn.call(O),result=new C();!(step=iterator.next()).done;index++){createProperty(result,index,mapping?call(iterator,mapfn,[step.value,index],true):step.value);}}else{length=toLength(O.length);for(result=new C(length);length>index;index++){createProperty(result,index,mapping?mapfn(O[index],index):O[index]);}}result.length=index;return result;}});/***/},/* 248 */ /***/function(module,exports,__nested_webpack_require_3600702__){// call something on iterator step with safe closing on error\nvar anObject=__nested_webpack_require_3600702__(12);module.exports=function(iterator,fn,value,entries){try{return entries?fn(anObject(value)[0],value[1]):fn(value);// 7.4.6 IteratorClose(iterator, completion)\n}catch(e){var ret=iterator['return'];if(ret!==undefined)anObject(ret.call(iterator));throw e;}};/***/},/* 249 */ /***/function(module,exports,__nested_webpack_require_3601121__){\"use strict\";var $defineProperty=__nested_webpack_require_3601121__(11);var createDesc=__nested_webpack_require_3601121__(40);module.exports=function(object,index,value){if(index in object)$defineProperty.f(object,index,createDesc(0,value));else object[index]=value;};/***/},/* 250 */ /***/function(module,exports,__nested_webpack_require_3601426__){\"use strict\";__nested_webpack_require_3601426__(251);var anObject=__nested_webpack_require_3601426__(12);var $flags=__nested_webpack_require_3601426__(98);var DESCRIPTORS=__nested_webpack_require_3601426__(9);var TO_STRING='toString';var $toString=/./[TO_STRING];var define=function(fn){__nested_webpack_require_3601426__(23)(RegExp.prototype,TO_STRING,fn,true);};// 21.2.5.14 RegExp.prototype.toString()\nif(__nested_webpack_require_3601426__(10)(function(){return $toString.call({source:'a',flags:'b'})!='/a/b';})){define(function toString(){var R=anObject(this);return'/'.concat(R.source,'/','flags'in R?R.flags:!DESCRIPTORS&&R instanceof RegExp?$flags.call(R):undefined);});// FF44- RegExp#toString has a wrong name\n}else if($toString.name!=TO_STRING){define(function toString(){return $toString.call(this);});}/***/},/* 251 */ /***/function(module,exports,__nested_webpack_require_3602217__){// 21.2.5.3 get RegExp.prototype.flags()\nif(__nested_webpack_require_3602217__(9)&&/./g.flags!='g')__nested_webpack_require_3602217__(11).f(RegExp.prototype,'flags',{configurable:true,get:__nested_webpack_require_3602217__(98)});/***/},/* 252 */ /***/function(module,exports,__nested_webpack_require_3602468__){var META=__nested_webpack_require_3602468__(29)('meta');var isObject=__nested_webpack_require_3602468__(18);var has=__nested_webpack_require_3602468__(24);var setDesc=__nested_webpack_require_3602468__(11).f;var id=0;var isExtensible=Object.isExtensible||function(){return true;};var FREEZE=!__nested_webpack_require_3602468__(10)(function(){return isExtensible(Object.preventExtensions({}));});var setMeta=function(it){setDesc(it,META,{value:{i:'O'+ ++id,// object ID\nw:{}// weak collections IDs\n}});};var fastKey=function(it,create){// return primitive with prefix\nif(!isObject(it))return typeof it=='symbol'?it:(typeof it=='string'?'S':'P')+it;if(!has(it,META)){// can't set metadata to uncaught frozen object\nif(!isExtensible(it))return'F';// not necessary to add metadata\nif(!create)return'E';// add missing metadata\nsetMeta(it);// return object ID\n}return it[META].i;};var getWeak=function(it,create){if(!has(it,META)){// can't set metadata to uncaught frozen object\nif(!isExtensible(it))return true;// not necessary to add metadata\nif(!create)return false;// add missing metadata\nsetMeta(it);// return hash weak collections IDs\n}return it[META].w;};// add metadata on freeze-family methods calling\nvar onFreeze=function(it){if(FREEZE&&meta.NEED&&isExtensible(it)&&!has(it,META))setMeta(it);return it;};var meta=module.exports={KEY:META,NEED:false,fastKey:fastKey,getWeak:getWeak,onFreeze:onFreeze};/***/},/* 253 */ /***/function(module,exports,__nested_webpack_require_3603865__){// all enumerable object keys, includes symbols\nvar getKeys=__nested_webpack_require_3603865__(42);var gOPS=__nested_webpack_require_3603865__(89);var pIE=__nested_webpack_require_3603865__(62);module.exports=function(it){var result=getKeys(it);var getSymbols=gOPS.f;if(getSymbols){var symbols=getSymbols(it);var isEnum=pIE.f;var i=0;var key;while(symbols.length>i)if(isEnum.call(it,key=symbols[i++]))result.push(key);}return result;};/***/},/* 254 */ /***/function(module,exports,__nested_webpack_require_3604322__){// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject=__nested_webpack_require_3604322__(43);var gOPN=__nested_webpack_require_3604322__(55).f;var toString={}.toString;var windowNames=typeof window=='object'&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var getWindowNames=function(it){try{return gOPN(it);}catch(e){return windowNames.slice();}};module.exports.f=function getOwnPropertyNames(it){return windowNames&&toString.call(it)=='[object Window]'?getWindowNames(it):gOPN(toIObject(it));};/***/},/* 255 */ /***/function(module,exports,__nested_webpack_require_3604918__){// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export=__nested_webpack_require_3604918__(5);$export($export.S,'Object',{setPrototypeOf:__nested_webpack_require_3604918__(156).set});/***/},/* 256 */ /***/function(module,exports){/* (ignored) */ /***/},/* 257 */ /***/function(module,exports,__nested_webpack_require_3605202__){\"use strict\";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError(\"Cannot call a class as a function\");}}var Buffer=__nested_webpack_require_3605202__(70).Buffer;var util=__nested_webpack_require_3605202__(258);function copyBuffer(src,target,offset){src.copy(target,offset);}module.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0;}BufferList.prototype.push=function push(v){var entry={data:v,next:null};if(this.length>0)this.tail.next=entry;else this.head=entry;this.tail=entry;++this.length;};BufferList.prototype.unshift=function unshift(v){var entry={data:v,next:this.head};if(this.length===0)this.tail=entry;this.head=entry;++this.length;};BufferList.prototype.shift=function shift(){if(this.length===0)return;var ret=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return ret;};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0;};BufferList.prototype.join=function join(s){if(this.length===0)return'';var p=this.head;var ret=''+p.data;while(p=p.next){ret+=s+p.data;}return ret;};BufferList.prototype.concat=function concat(n){if(this.length===0)return Buffer.alloc(0);if(this.length===1)return this.head.data;var ret=Buffer.allocUnsafe(n>>>0);var p=this.head;var i=0;while(p){copyBuffer(p.data,ret,i);i+=p.data.length;p=p.next;}return ret;};return BufferList;}();if(util&&util.inspect&&util.inspect.custom){module.exports.prototype[util.inspect.custom]=function(){var obj=util.inspect({length:this.length});return this.constructor.name+' '+obj;};}/***/},/* 258 */ /***/function(module,exports){/* (ignored) */ /***/},/* 259 */ /***/function(module,exports,__nested_webpack_require_3606965__){/* WEBPACK VAR INJECTION */(function(global){/**\r\n     * Module exports.\r\n     */module.exports=deprecate;/**\r\n     * Mark that a method should not be used.\r\n     * Returns a modified function which warns once by default.\r\n     *\r\n     * If `localStorage.noDeprecation = true` is set, then it is a no-op.\r\n     *\r\n     * If `localStorage.throwDeprecation = true` is set, then deprecated functions\r\n     * will throw an Error when invoked.\r\n     *\r\n     * If `localStorage.traceDeprecation = true` is set, then deprecated functions\r\n     * will invoke `console.trace()` instead of `console.error()`.\r\n     *\r\n     * @param {Function} fn - the function to deprecate\r\n     * @param {String} msg - the string to print to the console when `fn` is invoked\r\n     * @returns {Function} a new \"deprecated\" version of `fn`\r\n     * @api public\r\n     */function deprecate(fn,msg){if(config('noDeprecation')){return fn;}var warned=false;function deprecated(){if(!warned){if(config('throwDeprecation')){throw new Error(msg);}else if(config('traceDeprecation')){console.trace(msg);}else{console.warn(msg);}warned=true;}return fn.apply(this,arguments);}return deprecated;}/**\r\n     * Checks `localStorage` for boolean values for the given `name`.\r\n     *\r\n     * @param {String} name\r\n     * @returns {Boolean}\r\n     * @api private\r\n     */function config(name){// accessing global.localStorage can trigger a DOMException in sandboxed iframes\ntry{if(!global.localStorage)return false;}catch(_){return false;}var val=global.localStorage[name];if(null==val)return false;return String(val).toLowerCase()==='true';}/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3606965__(22));/***/},/* 260 */ /***/function(module,exports,__nested_webpack_require_3608692__){\"use strict\";// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\nmodule.exports=PassThrough;var Transform=__nested_webpack_require_3608692__(169);/*<replacement>*/var util=__nested_webpack_require_3608692__(56);util.inherits=__nested_webpack_require_3608692__(46);/*</replacement>*/util.inherits(PassThrough,Transform);function PassThrough(options){if(!(this instanceof PassThrough))return new PassThrough(options);Transform.call(this,options);}PassThrough.prototype._transform=function(chunk,encoding,cb){cb(null,chunk);};/***/},/* 261 */ /***/function(module,exports,__nested_webpack_require_3610446__){module.exports=__nested_webpack_require_3610446__(102);/***/},/* 262 */ /***/function(module,exports,__nested_webpack_require_3610553__){module.exports=__nested_webpack_require_3610553__(32);/***/},/* 263 */ /***/function(module,exports,__nested_webpack_require_3610659__){module.exports=__nested_webpack_require_3610659__(101).Transform;/***/},/* 264 */ /***/function(module,exports,__nested_webpack_require_3610776__){module.exports=__nested_webpack_require_3610776__(101).PassThrough;/***/},/* 265 */ /***/function(module,exports,__nested_webpack_require_3610895__){\"use strict\";/* WEBPACK VAR INJECTION */(function(Buffer,process){/* eslint camelcase: \"off\" */var assert=__nested_webpack_require_3610895__(171);var Zstream=__nested_webpack_require_3610895__(269);var zlib_deflate=__nested_webpack_require_3610895__(270);var zlib_inflate=__nested_webpack_require_3610895__(273);var constants=__nested_webpack_require_3610895__(276);for(var key in constants){exports[key]=constants[key];}// zlib modes\nexports.NONE=0;exports.DEFLATE=1;exports.INFLATE=2;exports.GZIP=3;exports.GUNZIP=4;exports.DEFLATERAW=5;exports.INFLATERAW=6;exports.UNZIP=7;var GZIP_HEADER_ID1=0x1f;var GZIP_HEADER_ID2=0x8b;/**\r\n     * Emulate Node's zlib C++ layer for use by the JS layer in index.js\r\n     */function Zlib(mode){if(typeof mode!=='number'||mode<exports.DEFLATE||mode>exports.UNZIP){throw new TypeError('Bad argument');}this.dictionary=null;this.err=0;this.flush=0;this.init_done=false;this.level=0;this.memLevel=0;this.mode=mode;this.strategy=0;this.windowBits=0;this.write_in_progress=false;this.pending_close=false;this.gzip_id_bytes_read=0;}Zlib.prototype.close=function(){if(this.write_in_progress){this.pending_close=true;return;}this.pending_close=false;assert(this.init_done,'close before init');assert(this.mode<=exports.UNZIP);if(this.mode===exports.DEFLATE||this.mode===exports.GZIP||this.mode===exports.DEFLATERAW){zlib_deflate.deflateEnd(this.strm);}else if(this.mode===exports.INFLATE||this.mode===exports.GUNZIP||this.mode===exports.INFLATERAW||this.mode===exports.UNZIP){zlib_inflate.inflateEnd(this.strm);}this.mode=exports.NONE;this.dictionary=null;};Zlib.prototype.write=function(flush,input,in_off,in_len,out,out_off,out_len){return this._write(true,flush,input,in_off,in_len,out,out_off,out_len);};Zlib.prototype.writeSync=function(flush,input,in_off,in_len,out,out_off,out_len){return this._write(false,flush,input,in_off,in_len,out,out_off,out_len);};Zlib.prototype._write=function(async,flush,input,in_off,in_len,out,out_off,out_len){assert.equal(arguments.length,8);assert(this.init_done,'write before init');assert(this.mode!==exports.NONE,'already finalized');assert.equal(false,this.write_in_progress,'write already in progress');assert.equal(false,this.pending_close,'close is pending');this.write_in_progress=true;assert.equal(false,flush===undefined,'must provide flush value');this.write_in_progress=true;if(flush!==exports.Z_NO_FLUSH&&flush!==exports.Z_PARTIAL_FLUSH&&flush!==exports.Z_SYNC_FLUSH&&flush!==exports.Z_FULL_FLUSH&&flush!==exports.Z_FINISH&&flush!==exports.Z_BLOCK){throw new Error('Invalid flush value');}if(input==null){input=Buffer.alloc(0);in_len=0;in_off=0;}this.strm.avail_in=in_len;this.strm.input=input;this.strm.next_in=in_off;this.strm.avail_out=out_len;this.strm.output=out;this.strm.next_out=out_off;this.flush=flush;if(!async){// sync version\nthis._process();if(this._checkError()){return this._afterSync();}return;}// async version\nvar self=this;process.nextTick(function(){self._process();self._after();});return this;};Zlib.prototype._afterSync=function(){var avail_out=this.strm.avail_out;var avail_in=this.strm.avail_in;this.write_in_progress=false;return[avail_in,avail_out];};Zlib.prototype._process=function(){var next_expected_header_byte=null;// If the avail_out is left at 0, then it means that it ran out\n// of room.  If there was avail_out left over, then it means\n// that all of the input was consumed.\nswitch(this.mode){case exports.DEFLATE:case exports.GZIP:case exports.DEFLATERAW:this.err=zlib_deflate.deflate(this.strm,this.flush);break;case exports.UNZIP:if(this.strm.avail_in>0){next_expected_header_byte=this.strm.next_in;}switch(this.gzip_id_bytes_read){case 0:if(next_expected_header_byte===null){break;}if(this.strm.input[next_expected_header_byte]===GZIP_HEADER_ID1){this.gzip_id_bytes_read=1;next_expected_header_byte++;if(this.strm.avail_in===1){// The only available byte was already read.\nbreak;}}else{this.mode=exports.INFLATE;break;}// fallthrough\ncase 1:if(next_expected_header_byte===null){break;}if(this.strm.input[next_expected_header_byte]===GZIP_HEADER_ID2){this.gzip_id_bytes_read=2;this.mode=exports.GUNZIP;}else{// There is no actual difference between INFLATE and INFLATERAW\n// (after initialization).\nthis.mode=exports.INFLATE;}break;default:throw new Error('invalid number of gzip magic number bytes read');}// fallthrough\ncase exports.INFLATE:case exports.GUNZIP:case exports.INFLATERAW:this.err=zlib_inflate.inflate(this.strm,this.flush// If data was encoded with dictionary\n);if(this.err===exports.Z_NEED_DICT&&this.dictionary){// Load it\nthis.err=zlib_inflate.inflateSetDictionary(this.strm,this.dictionary);if(this.err===exports.Z_OK){// And try to decode again\nthis.err=zlib_inflate.inflate(this.strm,this.flush);}else if(this.err===exports.Z_DATA_ERROR){// Both inflateSetDictionary() and inflate() return Z_DATA_ERROR.\n// Make it possible for After() to tell a bad dictionary from bad\n// input.\nthis.err=exports.Z_NEED_DICT;}}while(this.strm.avail_in>0&&this.mode===exports.GUNZIP&&this.err===exports.Z_STREAM_END&&this.strm.next_in[0]!==0x00){// Bytes remain in input buffer. Perhaps this is another compressed\n// member in the same archive, or just trailing garbage.\n// Trailing zero bytes are okay, though, since they are frequently\n// used for padding.\nthis.reset();this.err=zlib_inflate.inflate(this.strm,this.flush);}break;default:throw new Error('Unknown mode '+this.mode);}};Zlib.prototype._checkError=function(){// Acceptable error states depend on the type of zlib stream.\nswitch(this.err){case exports.Z_OK:case exports.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===exports.Z_FINISH){this._error('unexpected end of file');return false;}break;case exports.Z_STREAM_END:// normal statuses, not fatal\nbreak;case exports.Z_NEED_DICT:if(this.dictionary==null){this._error('Missing dictionary');}else{this._error('Bad dictionary');}return false;default:// something else.\nthis._error('Zlib error');return false;}return true;};Zlib.prototype._after=function(){if(!this._checkError()){return;}var avail_out=this.strm.avail_out;var avail_in=this.strm.avail_in;this.write_in_progress=false;// call the write() cb\nthis.callback(avail_in,avail_out);if(this.pending_close){this.close();}};Zlib.prototype._error=function(message){if(this.strm.msg){message=this.strm.msg;}this.onerror(message,this.err// no hope of rescue.\n);this.write_in_progress=false;if(this.pending_close){this.close();}};Zlib.prototype.init=function(windowBits,level,memLevel,strategy,dictionary){assert(arguments.length===4||arguments.length===5,'init(windowBits, level, memLevel, strategy, [dictionary])');assert(windowBits>=8&&windowBits<=15,'invalid windowBits');assert(level>=-1&&level<=9,'invalid compression level');assert(memLevel>=1&&memLevel<=9,'invalid memlevel');assert(strategy===exports.Z_FILTERED||strategy===exports.Z_HUFFMAN_ONLY||strategy===exports.Z_RLE||strategy===exports.Z_FIXED||strategy===exports.Z_DEFAULT_STRATEGY,'invalid strategy');this._init(level,windowBits,memLevel,strategy,dictionary);this._setDictionary();};Zlib.prototype.params=function(){throw new Error('deflateParams Not supported');};Zlib.prototype.reset=function(){this._reset();this._setDictionary();};Zlib.prototype._init=function(level,windowBits,memLevel,strategy,dictionary){this.level=level;this.windowBits=windowBits;this.memLevel=memLevel;this.strategy=strategy;this.flush=exports.Z_NO_FLUSH;this.err=exports.Z_OK;if(this.mode===exports.GZIP||this.mode===exports.GUNZIP){this.windowBits+=16;}if(this.mode===exports.UNZIP){this.windowBits+=32;}if(this.mode===exports.DEFLATERAW||this.mode===exports.INFLATERAW){this.windowBits=-1*this.windowBits;}this.strm=new Zstream();switch(this.mode){case exports.DEFLATE:case exports.GZIP:case exports.DEFLATERAW:this.err=zlib_deflate.deflateInit2(this.strm,this.level,exports.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case exports.INFLATE:case exports.GUNZIP:case exports.INFLATERAW:case exports.UNZIP:this.err=zlib_inflate.inflateInit2(this.strm,this.windowBits);break;default:throw new Error('Unknown mode '+this.mode);}if(this.err!==exports.Z_OK){this._error('Init error');}this.dictionary=dictionary;this.write_in_progress=false;this.init_done=true;};Zlib.prototype._setDictionary=function(){if(this.dictionary==null){return;}this.err=exports.Z_OK;switch(this.mode){case exports.DEFLATE:case exports.DEFLATERAW:this.err=zlib_deflate.deflateSetDictionary(this.strm,this.dictionary);break;default:break;}if(this.err!==exports.Z_OK){this._error('Failed to set dictionary');}};Zlib.prototype._reset=function(){this.err=exports.Z_OK;switch(this.mode){case exports.DEFLATE:case exports.DEFLATERAW:case exports.GZIP:this.err=zlib_deflate.deflateReset(this.strm);break;case exports.INFLATE:case exports.INFLATERAW:case exports.GUNZIP:this.err=zlib_inflate.inflateReset(this.strm);break;default:break;}if(this.err!==exports.Z_OK){this._error('Failed to reset stream');}};exports.Zlib=Zlib;/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3610895__(4).Buffer,__nested_webpack_require_3610895__(25));/***/},/* 266 */ /***/function(module,exports,__webpack_require__){\"use strict\";/*\r\n    object-assign\r\n    (c) Sindre Sorhus\r\n    @license MIT\r\n    */ /* eslint-disable no-unused-vars */var getOwnPropertySymbols=Object.getOwnPropertySymbols;var hasOwnProperty=Object.prototype.hasOwnProperty;var propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(val){if(val===null||val===undefined){throw new TypeError('Object.assign cannot be called with null or undefined');}return Object(val);}function shouldUseNative(){try{if(!Object.assign){return false;}// Detect buggy property enumeration order in older V8 versions.\n// https://bugs.chromium.org/p/v8/issues/detail?id=4118\nvar test1=new String('abc');// eslint-disable-line no-new-wrappers\ntest1[5]='de';if(Object.getOwnPropertyNames(test1)[0]==='5'){return false;}// https://bugs.chromium.org/p/v8/issues/detail?id=3056\nvar test2={};for(var i=0;i<10;i++){test2['_'+String.fromCharCode(i)]=i;}var order2=Object.getOwnPropertyNames(test2).map(function(n){return test2[n];});if(order2.join('')!=='0123456789'){return false;}// https://bugs.chromium.org/p/v8/issues/detail?id=3056\nvar test3={};'abcdefghijklmnopqrst'.split('').forEach(function(letter){test3[letter]=letter;});if(Object.keys(Object.assign({},test3)).join('')!=='abcdefghijklmnopqrst'){return false;}return true;}catch(err){// We don't expect any of the above to throw, but better to be safe.\nreturn false;}}module.exports=shouldUseNative()?Object.assign:function(target,source){var from;var to=toObject(target);var symbols;for(var s=1;s<arguments.length;s++){from=Object(arguments[s]);for(var key in from){if(hasOwnProperty.call(from,key)){to[key]=from[key];}}if(getOwnPropertySymbols){symbols=getOwnPropertySymbols(from);for(var i=0;i<symbols.length;i++){if(propIsEnumerable.call(from,symbols[i])){to[symbols[i]]=from[symbols[i]];}}}}return to;};/***/},/* 267 */ /***/function(module,exports){module.exports=function isBuffer(arg){return arg&&typeof arg==='object'&&typeof arg.copy==='function'&&typeof arg.fill==='function'&&typeof arg.readUInt8==='function';};/***/},/* 268 */ /***/function(module,exports){if(typeof Object.create==='function'){// implementation from standard node.js 'util' module\nmodule.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}});};}else{// old school shim for old browsers\nmodule.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor();ctor.prototype.constructor=ctor;};}/***/},/* 269 */ /***/function(module,exports,__webpack_require__){\"use strict\";// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nfunction ZStream(){/* next input byte */this.input=null;// JS specific, because we have no pointers\nthis.next_in=0;/* number of bytes available at input */this.avail_in=0;/* total number of input bytes read so far */this.total_in=0;/* next output byte should be put there */this.output=null;// JS specific, because we have no pointers\nthis.next_out=0;/* remaining free space at output */this.avail_out=0;/* total number of bytes output so far */this.total_out=0;/* last error message, NULL if no error */this.msg=''/*Z_NULL*/;/* not visible by applications */this.state=null;/* best guess about the data type: binary or text */this.data_type=2/*Z_UNKNOWN*/;/* adler32 value of the uncompressed data */this.adler=0;}module.exports=ZStream;/***/},/* 270 */ /***/function(module,exports,__nested_webpack_require_3624379__){\"use strict\";// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nvar utils=__nested_webpack_require_3624379__(71);var trees=__nested_webpack_require_3624379__(271);var adler32=__nested_webpack_require_3624379__(172);var crc32=__nested_webpack_require_3624379__(173);var msg=__nested_webpack_require_3624379__(272);/* Public constants ==========================================================*/ /* ===========================================================================*/ /* Allowed flush values; see deflate() and inflate() below for details */var Z_NO_FLUSH=0;var Z_PARTIAL_FLUSH=1;//var Z_SYNC_FLUSH    = 2;\nvar Z_FULL_FLUSH=3;var Z_FINISH=4;var Z_BLOCK=5;//var Z_TREES         = 6;\n/* Return codes for the compression/decompression functions. Negative values\r\n     * are errors, positive values are used for special but normal events.\r\n     */var Z_OK=0;var Z_STREAM_END=1;//var Z_NEED_DICT     = 2;\n//var Z_ERRNO         = -1;\nvar Z_STREAM_ERROR=-2;var Z_DATA_ERROR=-3;//var Z_MEM_ERROR     = -4;\nvar Z_BUF_ERROR=-5;//var Z_VERSION_ERROR = -6;\n/* compression levels */ //var Z_NO_COMPRESSION      = 0;\n//var Z_BEST_SPEED          = 1;\n//var Z_BEST_COMPRESSION    = 9;\nvar Z_DEFAULT_COMPRESSION=-1;var Z_FILTERED=1;var Z_HUFFMAN_ONLY=2;var Z_RLE=3;var Z_FIXED=4;var Z_DEFAULT_STRATEGY=0;/* Possible values of the data_type field (though see inflate()) */ //var Z_BINARY              = 0;\n//var Z_TEXT                = 1;\n//var Z_ASCII               = 1; // = Z_TEXT\nvar Z_UNKNOWN=2;/* The deflate compression method */var Z_DEFLATED=8;/*============================================================================*/var MAX_MEM_LEVEL=9;/* Maximum value for memLevel in deflateInit2 */var MAX_WBITS=15;/* 32K LZ77 window */var DEF_MEM_LEVEL=8;var LENGTH_CODES=29;/* number of length codes, not counting the special END_BLOCK code */var LITERALS=256;/* number of literal bytes 0..255 */var L_CODES=LITERALS+1+LENGTH_CODES;/* number of Literal or Length codes, including the END_BLOCK code */var D_CODES=30;/* number of distance codes */var BL_CODES=19;/* number of codes used to transfer the bit lengths */var HEAP_SIZE=2*L_CODES+1;/* maximum heap size */var MAX_BITS=15;/* All codes must not exceed MAX_BITS bits */var MIN_MATCH=3;var MAX_MATCH=258;var MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1;var PRESET_DICT=0x20;var INIT_STATE=42;var EXTRA_STATE=69;var NAME_STATE=73;var COMMENT_STATE=91;var HCRC_STATE=103;var BUSY_STATE=113;var FINISH_STATE=666;var BS_NEED_MORE=1;/* block not completed, need more input or more output */var BS_BLOCK_DONE=2;/* block flush performed */var BS_FINISH_STARTED=3;/* finish started, need only more output at next deflate */var BS_FINISH_DONE=4;/* finish done, accept no more input or output */var OS_CODE=0x03;// Unix :) . Don't detect, use this default.\nfunction err(strm,errorCode){strm.msg=msg[errorCode];return errorCode;}function rank(f){return(f<<1)-(f>4?9:0);}function zero(buf){var len=buf.length;while(--len>=0){buf[len]=0;}}/* =========================================================================\r\n     * Flush as much pending output as possible. All deflate() output goes\r\n     * through this function so some applications may wish to modify it\r\n     * to avoid allocating a large strm->output buffer and copying into it.\r\n     * (See also read_buf()).\r\n     */function flush_pending(strm){var s=strm.state;//_tr_flush_bits(s);\nvar len=s.pending;if(len>strm.avail_out){len=strm.avail_out;}if(len===0){return;}utils.arraySet(strm.output,s.pending_buf,s.pending_out,len,strm.next_out);strm.next_out+=len;s.pending_out+=len;strm.total_out+=len;strm.avail_out-=len;s.pending-=len;if(s.pending===0){s.pending_out=0;}}function flush_block_only(s,last){trees._tr_flush_block(s,s.block_start>=0?s.block_start:-1,s.strstart-s.block_start,last);s.block_start=s.strstart;flush_pending(s.strm);}function put_byte(s,b){s.pending_buf[s.pending++]=b;}/* =========================================================================\r\n     * Put a short in the pending buffer. The 16-bit value is put in MSB order.\r\n     * IN assertion: the stream state is correct and there is enough room in\r\n     * pending_buf.\r\n     */function putShortMSB(s,b){//  put_byte(s, (Byte)(b >> 8));\n//  put_byte(s, (Byte)(b & 0xff));\ns.pending_buf[s.pending++]=b>>>8&0xff;s.pending_buf[s.pending++]=b&0xff;}/* ===========================================================================\r\n     * Read a new buffer from the current input stream, update the adler32\r\n     * and total number of bytes read.  All deflate() input goes through\r\n     * this function so some applications may wish to modify it to avoid\r\n     * allocating a large strm->input buffer and copying from it.\r\n     * (See also flush_pending()).\r\n     */function read_buf(strm,buf,start,size){var len=strm.avail_in;if(len>size){len=size;}if(len===0){return 0;}strm.avail_in-=len;// zmemcpy(buf, strm->next_in, len);\nutils.arraySet(buf,strm.input,strm.next_in,len,start);if(strm.state.wrap===1){strm.adler=adler32(strm.adler,buf,len,start);}else if(strm.state.wrap===2){strm.adler=crc32(strm.adler,buf,len,start);}strm.next_in+=len;strm.total_in+=len;return len;}/* ===========================================================================\r\n     * Set match_start to the longest match starting at the given string and\r\n     * return its length. Matches shorter or equal to prev_length are discarded,\r\n     * in which case the result is equal to prev_length and match_start is\r\n     * garbage.\r\n     * IN assertions: cur_match is the head of the hash chain for the current\r\n     *   string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1\r\n     * OUT assertion: the match length is not greater than s->lookahead.\r\n     */function longest_match(s,cur_match){var chain_length=s.max_chain_length;/* max hash chain length */var scan=s.strstart;/* current string */var match;/* matched string */var len;/* length of current match */var best_len=s.prev_length;/* best match length so far */var nice_match=s.nice_match;/* stop if match long enough */var limit=s.strstart>s.w_size-MIN_LOOKAHEAD?s.strstart-(s.w_size-MIN_LOOKAHEAD):0/*NIL*/;var _win=s.window;// shortcut\nvar wmask=s.w_mask;var prev=s.prev;/* Stop when cur_match becomes <= limit. To simplify the code,\r\n       * we prevent matches with the string of window index 0.\r\n       */var strend=s.strstart+MAX_MATCH;var scan_end1=_win[scan+best_len-1];var scan_end=_win[scan+best_len];/* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.\r\n       * It is easy to get rid of this optimization if necessary.\r\n       */ // Assert(s->hash_bits >= 8 && MAX_MATCH == 258, \"Code too clever\");\n/* Do not waste too much time if we already have a good match: */if(s.prev_length>=s.good_match){chain_length>>=2;}/* Do not look for matches beyond the end of the input. This is necessary\r\n       * to make deflate deterministic.\r\n       */if(nice_match>s.lookahead){nice_match=s.lookahead;}// Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, \"need lookahead\");\ndo{// Assert(cur_match < s->strstart, \"no future\");\nmatch=cur_match;/* Skip to next match if the match length cannot increase\r\n         * or if the match length is less than 2.  Note that the checks below\r\n         * for insufficient lookahead only occur occasionally for performance\r\n         * reasons.  Therefore uninitialized memory will be accessed, and\r\n         * conditional jumps will be made that depend on those values.\r\n         * However the length of the match is limited to the lookahead, so\r\n         * the output of deflate is not affected by the uninitialized values.\r\n         */if(_win[match+best_len]!==scan_end||_win[match+best_len-1]!==scan_end1||_win[match]!==_win[scan]||_win[++match]!==_win[scan+1]){continue;}/* The check at best_len-1 can be removed because it will be made\r\n         * again later. (This heuristic is not always a win.)\r\n         * It is not necessary to compare scan[2] and match[2] since they\r\n         * are always equal when the other bytes match, given that\r\n         * the hash keys are equal and that HASH_BITS >= 8.\r\n         */scan+=2;match++;// Assert(*scan == *match, \"match[2]?\");\n/* We check for insufficient lookahead only every 8th comparison;\r\n         * the 256th check will be made at strstart+258.\r\n         */do{/*jshint noempty:false*/}while(_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&scan<strend);// Assert(scan <= s->window+(unsigned)(s->window_size-1), \"wild scan\");\nlen=MAX_MATCH-(strend-scan);scan=strend-MAX_MATCH;if(len>best_len){s.match_start=cur_match;best_len=len;if(len>=nice_match){break;}scan_end1=_win[scan+best_len-1];scan_end=_win[scan+best_len];}}while((cur_match=prev[cur_match&wmask])>limit&&--chain_length!==0);if(best_len<=s.lookahead){return best_len;}return s.lookahead;}/* ===========================================================================\r\n     * Fill the window when the lookahead becomes insufficient.\r\n     * Updates strstart and lookahead.\r\n     *\r\n     * IN assertion: lookahead < MIN_LOOKAHEAD\r\n     * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD\r\n     *    At least one byte has been read, or avail_in == 0; reads are\r\n     *    performed for at least two bytes (required for the zip translate_eol\r\n     *    option -- not supported here).\r\n     */function fill_window(s){var _w_size=s.w_size;var p,n,m,more,str;//Assert(s->lookahead < MIN_LOOKAHEAD, \"already enough lookahead\");\ndo{more=s.window_size-s.lookahead-s.strstart;// JS ints have 32 bit, block below not needed\n/* Deal with !@#$% 64K limit: */ //if (sizeof(int) <= 2) {\n//    if (more == 0 && s->strstart == 0 && s->lookahead == 0) {\n//        more = wsize;\n//\n//  } else if (more == (unsigned)(-1)) {\n//        /* Very unlikely, but possible on 16 bit machine if\n//         * strstart == 0 && lookahead == 1 (input done a byte at time)\n//         */\n//        more--;\n//    }\n//}\n/* If the window is almost full and there is insufficient lookahead,\r\n         * move the upper half to the lower one to make room in the upper half.\r\n         */if(s.strstart>=_w_size+(_w_size-MIN_LOOKAHEAD)){utils.arraySet(s.window,s.window,_w_size,_w_size,0);s.match_start-=_w_size;s.strstart-=_w_size;/* we now have strstart >= MAX_DIST */s.block_start-=_w_size;/* Slide the hash table (could be avoided with 32 bit values\r\n           at the expense of memory usage). We slide even when level == 0\r\n           to keep the hash table consistent if we switch back to level > 0\r\n           later. (Using level 0 permanently is not an optimal usage of\r\n           zlib, so we don't care about this pathological case.)\r\n           */n=s.hash_size;p=n;do{m=s.head[--p];s.head[p]=m>=_w_size?m-_w_size:0;}while(--n);n=_w_size;p=n;do{m=s.prev[--p];s.prev[p]=m>=_w_size?m-_w_size:0;/* If n is not on any hash chain, prev[n] is garbage but\r\n             * its value will never be used.\r\n             */}while(--n);more+=_w_size;}if(s.strm.avail_in===0){break;}/* If there was no sliding:\r\n         *    strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&\r\n         *    more == window_size - lookahead - strstart\r\n         * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)\r\n         * => more >= window_size - 2*WSIZE + 2\r\n         * In the BIG_MEM or MMAP case (not yet supported),\r\n         *   window_size == input_size + MIN_LOOKAHEAD  &&\r\n         *   strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.\r\n         * Otherwise, window_size == 2*WSIZE so more >= 2.\r\n         * If there was sliding, more >= WSIZE. So in all cases, more >= 2.\r\n         */ //Assert(more >= 2, \"more < 2\");\nn=read_buf(s.strm,s.window,s.strstart+s.lookahead,more);s.lookahead+=n;/* Initialize the hash value now that we have some input: */if(s.lookahead+s.insert>=MIN_MATCH){str=s.strstart-s.insert;s.ins_h=s.window[str];/* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */s.ins_h=(s.ins_h<<s.hash_shift^s.window[str+1])&s.hash_mask;//#if MIN_MATCH != 3\n//        Call update_hash() MIN_MATCH-3 more times\n//#endif\nwhile(s.insert){/* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */s.ins_h=(s.ins_h<<s.hash_shift^s.window[str+MIN_MATCH-1])&s.hash_mask;s.prev[str&s.w_mask]=s.head[s.ins_h];s.head[s.ins_h]=str;str++;s.insert--;if(s.lookahead+s.insert<MIN_MATCH){break;}}}/* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,\r\n         * but this is not important since only literal bytes will be emitted.\r\n         */}while(s.lookahead<MIN_LOOKAHEAD&&s.strm.avail_in!==0);/* If the WIN_INIT bytes after the end of the current data have never been\r\n       * written, then zero those bytes in order to avoid memory check reports of\r\n       * the use of uninitialized (or uninitialised as Julian writes) bytes by\r\n       * the longest match routines.  Update the high water mark for the next\r\n       * time through here.  WIN_INIT is set to MAX_MATCH since the longest match\r\n       * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.\r\n       */ //  if (s.high_water < s.window_size) {\n//    var curr = s.strstart + s.lookahead;\n//    var init = 0;\n//\n//    if (s.high_water < curr) {\n//      /* Previous high water mark below current data -- zero WIN_INIT\n//       * bytes or up to end of window, whichever is less.\n//       */\n//      init = s.window_size - curr;\n//      if (init > WIN_INIT)\n//        init = WIN_INIT;\n//      zmemzero(s->window + curr, (unsigned)init);\n//      s->high_water = curr + init;\n//    }\n//    else if (s->high_water < (ulg)curr + WIN_INIT) {\n//      /* High water mark at or above current data, but below current data\n//       * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up\n//       * to end of window, whichever is less.\n//       */\n//      init = (ulg)curr + WIN_INIT - s->high_water;\n//      if (init > s->window_size - s->high_water)\n//        init = s->window_size - s->high_water;\n//      zmemzero(s->window + s->high_water, (unsigned)init);\n//      s->high_water += init;\n//    }\n//  }\n//\n//  Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,\n//    \"not enough room for search\");\n}/* ===========================================================================\r\n     * Copy without compression as much as possible from the input stream, return\r\n     * the current block state.\r\n     * This function does not insert new strings in the dictionary since\r\n     * uncompressible data is probably not useful. This function is used\r\n     * only for the level=0 compression option.\r\n     * NOTE: this function should be optimized to avoid extra copying from\r\n     * window to pending_buf.\r\n     */function deflate_stored(s,flush){/* Stored blocks are limited to 0xffff bytes, pending_buf is limited\r\n       * to pending_buf_size, and each stored block has a 5 byte header:\r\n       */var max_block_size=0xffff;if(max_block_size>s.pending_buf_size-5){max_block_size=s.pending_buf_size-5;}/* Copy as much as possible from input to output: */for(;;){/* Fill the window as much as possible: */if(s.lookahead<=1){//Assert(s->strstart < s->w_size+MAX_DIST(s) ||\n//  s->block_start >= (long)s->w_size, \"slide too late\");\n//      if (!(s.strstart < s.w_size + (s.w_size - MIN_LOOKAHEAD) ||\n//        s.block_start >= s.w_size)) {\n//        throw  new Error(\"slide too late\");\n//      }\nfill_window(s);if(s.lookahead===0&&flush===Z_NO_FLUSH){return BS_NEED_MORE;}if(s.lookahead===0){break;}/* flush the current block */}//Assert(s->block_start >= 0L, \"block gone\");\n//    if (s.block_start < 0) throw new Error(\"block gone\");\ns.strstart+=s.lookahead;s.lookahead=0;/* Emit a stored block if pending_buf will be full: */var max_start=s.block_start+max_block_size;if(s.strstart===0||s.strstart>=max_start){/* strstart == 0 is possible when wraparound on 16-bit machine */s.lookahead=s.strstart-max_start;s.strstart=max_start;/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}/* Flush if we may have to slide, otherwise block_start may become\r\n         * negative and the data will be gone:\r\n         */if(s.strstart-s.block_start>=s.w_size-MIN_LOOKAHEAD){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}}s.insert=0;if(flush===Z_FINISH){/*** FLUSH_BLOCK(s, 1); ***/flush_block_only(s,true);if(s.strm.avail_out===0){return BS_FINISH_STARTED;}/***/return BS_FINISH_DONE;}if(s.strstart>s.block_start){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}return BS_NEED_MORE;}/* ===========================================================================\r\n     * Compress as much as possible from the input stream, return the current\r\n     * block state.\r\n     * This function does not perform lazy evaluation of matches and inserts\r\n     * new strings in the dictionary only for unmatched strings or for short\r\n     * matches. It is used only for the fast compression options.\r\n     */function deflate_fast(s,flush){var hash_head;/* head of the hash chain */var bflush;/* set if current block must be flushed */for(;;){/* Make sure that we always have enough lookahead, except\r\n         * at the end of the input file. We need MAX_MATCH bytes\r\n         * for the next match, plus MIN_MATCH bytes to insert the\r\n         * string following the next match.\r\n         */if(s.lookahead<MIN_LOOKAHEAD){fill_window(s);if(s.lookahead<MIN_LOOKAHEAD&&flush===Z_NO_FLUSH){return BS_NEED_MORE;}if(s.lookahead===0){break;/* flush the current block */}}/* Insert the string window[strstart .. strstart+2] in the\r\n         * dictionary, and set hash_head to the head of the hash chain:\r\n         */hash_head=0/*NIL*/;if(s.lookahead>=MIN_MATCH){/*** INSERT_STRING(s, s.strstart, hash_head); ***/s.ins_h=(s.ins_h<<s.hash_shift^s.window[s.strstart+MIN_MATCH-1])&s.hash_mask;hash_head=s.prev[s.strstart&s.w_mask]=s.head[s.ins_h];s.head[s.ins_h]=s.strstart;/***/}/* Find the longest match, discarding those <= prev_length.\r\n         * At this point we have always match_length < MIN_MATCH\r\n         */if(hash_head!==0/*NIL*/&&s.strstart-hash_head<=s.w_size-MIN_LOOKAHEAD){/* To simplify the code, we prevent matches with the string\r\n           * of window index 0 (in particular we have to avoid a match\r\n           * of the string with itself at the start of the input file).\r\n           */s.match_length=longest_match(s,hash_head);/* longest_match() sets match_start */}if(s.match_length>=MIN_MATCH){// check_match(s, s.strstart, s.match_start, s.match_length); // for debug only\n/*** _tr_tally_dist(s, s.strstart - s.match_start,\r\n                         s.match_length - MIN_MATCH, bflush); ***/bflush=trees._tr_tally(s,s.strstart-s.match_start,s.match_length-MIN_MATCH);s.lookahead-=s.match_length;/* Insert new strings in the hash table only if the match length\r\n           * is not too large. This saves time but degrades compression.\r\n           */if(s.match_length<=s.max_lazy_match/*max_insert_length*/&&s.lookahead>=MIN_MATCH){s.match_length--;/* string at strstart already in table */do{s.strstart++;/*** INSERT_STRING(s, s.strstart, hash_head); ***/s.ins_h=(s.ins_h<<s.hash_shift^s.window[s.strstart+MIN_MATCH-1])&s.hash_mask;hash_head=s.prev[s.strstart&s.w_mask]=s.head[s.ins_h];s.head[s.ins_h]=s.strstart;/***/ /* strstart never exceeds WSIZE-MAX_MATCH, so there are\r\n               * always MIN_MATCH bytes ahead.\r\n               */}while(--s.match_length!==0);s.strstart++;}else{s.strstart+=s.match_length;s.match_length=0;s.ins_h=s.window[s.strstart];/* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */s.ins_h=(s.ins_h<<s.hash_shift^s.window[s.strstart+1])&s.hash_mask;//#if MIN_MATCH != 3\n//                Call UPDATE_HASH() MIN_MATCH-3 more times\n//#endif\n/* If lookahead < MIN_MATCH, ins_h is garbage, but it does not\r\n             * matter since it will be recomputed at next deflate call.\r\n             */}}else{/* No match, output a literal byte */ //Tracevv((stderr,\"%c\", s.window[s.strstart]));\n/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/bflush=trees._tr_tally(s,0,s.window[s.strstart]);s.lookahead--;s.strstart++;}if(bflush){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}}s.insert=s.strstart<MIN_MATCH-1?s.strstart:MIN_MATCH-1;if(flush===Z_FINISH){/*** FLUSH_BLOCK(s, 1); ***/flush_block_only(s,true);if(s.strm.avail_out===0){return BS_FINISH_STARTED;}/***/return BS_FINISH_DONE;}if(s.last_lit){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}return BS_BLOCK_DONE;}/* ===========================================================================\r\n     * Same as above, but achieves better compression. We use a lazy\r\n     * evaluation for matches: a match is finally adopted only if there is\r\n     * no better match at the next window position.\r\n     */function deflate_slow(s,flush){var hash_head;/* head of hash chain */var bflush;/* set if current block must be flushed */var max_insert;/* Process the input block. */for(;;){/* Make sure that we always have enough lookahead, except\r\n         * at the end of the input file. We need MAX_MATCH bytes\r\n         * for the next match, plus MIN_MATCH bytes to insert the\r\n         * string following the next match.\r\n         */if(s.lookahead<MIN_LOOKAHEAD){fill_window(s);if(s.lookahead<MIN_LOOKAHEAD&&flush===Z_NO_FLUSH){return BS_NEED_MORE;}if(s.lookahead===0){break;}/* flush the current block */}/* Insert the string window[strstart .. strstart+2] in the\r\n         * dictionary, and set hash_head to the head of the hash chain:\r\n         */hash_head=0/*NIL*/;if(s.lookahead>=MIN_MATCH){/*** INSERT_STRING(s, s.strstart, hash_head); ***/s.ins_h=(s.ins_h<<s.hash_shift^s.window[s.strstart+MIN_MATCH-1])&s.hash_mask;hash_head=s.prev[s.strstart&s.w_mask]=s.head[s.ins_h];s.head[s.ins_h]=s.strstart;/***/}/* Find the longest match, discarding those <= prev_length.\r\n         */s.prev_length=s.match_length;s.prev_match=s.match_start;s.match_length=MIN_MATCH-1;if(hash_head!==0/*NIL*/&&s.prev_length<s.max_lazy_match&&s.strstart-hash_head<=s.w_size-MIN_LOOKAHEAD/*MAX_DIST(s)*/){/* To simplify the code, we prevent matches with the string\r\n           * of window index 0 (in particular we have to avoid a match\r\n           * of the string with itself at the start of the input file).\r\n           */s.match_length=longest_match(s,hash_head);/* longest_match() sets match_start */if(s.match_length<=5&&(s.strategy===Z_FILTERED||s.match_length===MIN_MATCH&&s.strstart-s.match_start>4096/*TOO_FAR*/)){/* If prev_match is also MIN_MATCH, match_start is garbage\r\n             * but we will ignore the current match anyway.\r\n             */s.match_length=MIN_MATCH-1;}}/* If there was a match at the previous step and the current\r\n         * match is not better, output the previous match:\r\n         */if(s.prev_length>=MIN_MATCH&&s.match_length<=s.prev_length){max_insert=s.strstart+s.lookahead-MIN_MATCH;/* Do not insert strings in hash table beyond this. */ //check_match(s, s.strstart-1, s.prev_match, s.prev_length);\n/***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,\r\n                         s.prev_length - MIN_MATCH, bflush);***/bflush=trees._tr_tally(s,s.strstart-1-s.prev_match,s.prev_length-MIN_MATCH);/* Insert in hash table all strings up to the end of the match.\r\n           * strstart-1 and strstart are already inserted. If there is not\r\n           * enough lookahead, the last two strings are not inserted in\r\n           * the hash table.\r\n           */s.lookahead-=s.prev_length-1;s.prev_length-=2;do{if(++s.strstart<=max_insert){/*** INSERT_STRING(s, s.strstart, hash_head); ***/s.ins_h=(s.ins_h<<s.hash_shift^s.window[s.strstart+MIN_MATCH-1])&s.hash_mask;hash_head=s.prev[s.strstart&s.w_mask]=s.head[s.ins_h];s.head[s.ins_h]=s.strstart;/***/}}while(--s.prev_length!==0);s.match_available=0;s.match_length=MIN_MATCH-1;s.strstart++;if(bflush){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}}else if(s.match_available){/* If there was no match at the previous position, output a\r\n           * single literal. If there was a match but the current match\r\n           * is longer, truncate the previous match to a single literal.\r\n           */ //Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\n/*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/bflush=trees._tr_tally(s,0,s.window[s.strstart-1]);if(bflush){/*** FLUSH_BLOCK_ONLY(s, 0) ***/flush_block_only(s,false);/***/}s.strstart++;s.lookahead--;if(s.strm.avail_out===0){return BS_NEED_MORE;}}else{/* There is no previous match to compare with, wait for\r\n           * the next step to decide.\r\n           */s.match_available=1;s.strstart++;s.lookahead--;}}//Assert (flush != Z_NO_FLUSH, \"no flush?\");\nif(s.match_available){//Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\n/*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/bflush=trees._tr_tally(s,0,s.window[s.strstart-1]);s.match_available=0;}s.insert=s.strstart<MIN_MATCH-1?s.strstart:MIN_MATCH-1;if(flush===Z_FINISH){/*** FLUSH_BLOCK(s, 1); ***/flush_block_only(s,true);if(s.strm.avail_out===0){return BS_FINISH_STARTED;}/***/return BS_FINISH_DONE;}if(s.last_lit){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}return BS_BLOCK_DONE;}/* ===========================================================================\r\n     * For Z_RLE, simply look for runs of bytes, generate matches only of distance\r\n     * one.  Do not maintain a hash table.  (It will be regenerated if this run of\r\n     * deflate switches away from Z_RLE.)\r\n     */function deflate_rle(s,flush){var bflush;/* set if current block must be flushed */var prev;/* byte at distance one to match */var scan,strend;/* scan goes up to strend for length of run */var _win=s.window;for(;;){/* Make sure that we always have enough lookahead, except\r\n         * at the end of the input file. We need MAX_MATCH bytes\r\n         * for the longest run, plus one for the unrolled loop.\r\n         */if(s.lookahead<=MAX_MATCH){fill_window(s);if(s.lookahead<=MAX_MATCH&&flush===Z_NO_FLUSH){return BS_NEED_MORE;}if(s.lookahead===0){break;}/* flush the current block */}/* See how many times the previous byte repeats */s.match_length=0;if(s.lookahead>=MIN_MATCH&&s.strstart>0){scan=s.strstart-1;prev=_win[scan];if(prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]){strend=s.strstart+MAX_MATCH;do{/*jshint noempty:false*/}while(prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&scan<strend);s.match_length=MAX_MATCH-(strend-scan);if(s.match_length>s.lookahead){s.match_length=s.lookahead;}}//Assert(scan <= s->window+(uInt)(s->window_size-1), \"wild scan\");\n}/* Emit match if have run of MIN_MATCH or longer, else emit literal */if(s.match_length>=MIN_MATCH){//check_match(s, s.strstart, s.strstart - 1, s.match_length);\n/*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/bflush=trees._tr_tally(s,1,s.match_length-MIN_MATCH);s.lookahead-=s.match_length;s.strstart+=s.match_length;s.match_length=0;}else{/* No match, output a literal byte */ //Tracevv((stderr,\"%c\", s->window[s->strstart]));\n/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/bflush=trees._tr_tally(s,0,s.window[s.strstart]);s.lookahead--;s.strstart++;}if(bflush){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}}s.insert=0;if(flush===Z_FINISH){/*** FLUSH_BLOCK(s, 1); ***/flush_block_only(s,true);if(s.strm.avail_out===0){return BS_FINISH_STARTED;}/***/return BS_FINISH_DONE;}if(s.last_lit){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}return BS_BLOCK_DONE;}/* ===========================================================================\r\n     * For Z_HUFFMAN_ONLY, do not look for matches.  Do not maintain a hash table.\r\n     * (It will be regenerated if this run of deflate switches away from Huffman.)\r\n     */function deflate_huff(s,flush){var bflush;/* set if current block must be flushed */for(;;){/* Make sure that we have a literal to write. */if(s.lookahead===0){fill_window(s);if(s.lookahead===0){if(flush===Z_NO_FLUSH){return BS_NEED_MORE;}break;/* flush the current block */}}/* Output a literal byte */s.match_length=0;//Tracevv((stderr,\"%c\", s->window[s->strstart]));\n/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/bflush=trees._tr_tally(s,0,s.window[s.strstart]);s.lookahead--;s.strstart++;if(bflush){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}}s.insert=0;if(flush===Z_FINISH){/*** FLUSH_BLOCK(s, 1); ***/flush_block_only(s,true);if(s.strm.avail_out===0){return BS_FINISH_STARTED;}/***/return BS_FINISH_DONE;}if(s.last_lit){/*** FLUSH_BLOCK(s, 0); ***/flush_block_only(s,false);if(s.strm.avail_out===0){return BS_NEED_MORE;}/***/}return BS_BLOCK_DONE;}/* Values for max_lazy_match, good_match and max_chain_length, depending on\r\n     * the desired pack level (0..9). The values given below have been tuned to\r\n     * exclude worst case performance for pathological files. Better values may be\r\n     * found for specific files.\r\n     */function Config(good_length,max_lazy,nice_length,max_chain,func){this.good_length=good_length;this.max_lazy=max_lazy;this.nice_length=nice_length;this.max_chain=max_chain;this.func=func;}var configuration_table;configuration_table=[/*      good lazy nice chain */new Config(0,0,0,0,deflate_stored),/* 0 store only */new Config(4,4,8,4,deflate_fast),/* 1 max speed, no lazy matches */new Config(4,5,16,8,deflate_fast),/* 2 */new Config(4,6,32,32,deflate_fast),/* 3 */new Config(4,4,16,16,deflate_slow),/* 4 lazy matches */new Config(8,16,32,32,deflate_slow),/* 5 */new Config(8,16,128,128,deflate_slow),/* 6 */new Config(8,32,128,256,deflate_slow),/* 7 */new Config(32,128,258,1024,deflate_slow),/* 8 */new Config(32,258,258,4096,deflate_slow)/* 9 max compression */];/* ===========================================================================\r\n     * Initialize the \"longest match\" routines for a new zlib stream\r\n     */function lm_init(s){s.window_size=2*s.w_size;/*** CLEAR_HASH(s); ***/zero(s.head);// Fill with NIL (= 0);\n/* Set the default configuration parameters:\r\n       */s.max_lazy_match=configuration_table[s.level].max_lazy;s.good_match=configuration_table[s.level].good_length;s.nice_match=configuration_table[s.level].nice_length;s.max_chain_length=configuration_table[s.level].max_chain;s.strstart=0;s.block_start=0;s.lookahead=0;s.insert=0;s.match_length=s.prev_length=MIN_MATCH-1;s.match_available=0;s.ins_h=0;}function DeflateState(){this.strm=null;/* pointer back to this zlib stream */this.status=0;/* as the name implies */this.pending_buf=null;/* output still pending */this.pending_buf_size=0;/* size of pending_buf */this.pending_out=0;/* next pending byte to output to the stream */this.pending=0;/* nb of bytes in the pending buffer */this.wrap=0;/* bit 0 true for zlib, bit 1 true for gzip */this.gzhead=null;/* gzip header information to write */this.gzindex=0;/* where in extra, name, or comment */this.method=Z_DEFLATED;/* can only be DEFLATED */this.last_flush=-1;/* value of flush param for previous deflate call */this.w_size=0;/* LZ77 window size (32K by default) */this.w_bits=0;/* log2(w_size)  (8..16) */this.w_mask=0;/* w_size - 1 */this.window=null;/* Sliding window. Input bytes are read into the second half of the window,\r\n       * and move to the first half later to keep a dictionary of at least wSize\r\n       * bytes. With this organization, matches are limited to a distance of\r\n       * wSize-MAX_MATCH bytes, but this ensures that IO is always\r\n       * performed with a length multiple of the block size.\r\n       */this.window_size=0;/* Actual size of window: 2*wSize, except when the user input buffer\r\n       * is directly used as sliding window.\r\n       */this.prev=null;/* Link to older string with same hash index. To limit the size of this\r\n       * array to 64K, this link is maintained only for the last 32K strings.\r\n       * An index in this array is thus a window index modulo 32K.\r\n       */this.head=null;/* Heads of the hash chains or NIL. */this.ins_h=0;/* hash index of string to be inserted */this.hash_size=0;/* number of elements in hash table */this.hash_bits=0;/* log2(hash_size) */this.hash_mask=0;/* hash_size-1 */this.hash_shift=0;/* Number of bits by which ins_h must be shifted at each input\r\n       * step. It must be such that after MIN_MATCH steps, the oldest\r\n       * byte no longer takes part in the hash key, that is:\r\n       *   hash_shift * MIN_MATCH >= hash_bits\r\n       */this.block_start=0;/* Window position at the beginning of the current output block. Gets\r\n       * negative when the window is moved backwards.\r\n       */this.match_length=0;/* length of best match */this.prev_match=0;/* previous match */this.match_available=0;/* set if previous match exists */this.strstart=0;/* start of string to insert */this.match_start=0;/* start of matching string */this.lookahead=0;/* number of valid bytes ahead in window */this.prev_length=0;/* Length of the best match at previous step. Matches not greater than this\r\n       * are discarded. This is used in the lazy match evaluation.\r\n       */this.max_chain_length=0;/* To speed up deflation, hash chains are never searched beyond this\r\n       * length.  A higher limit improves compression ratio but degrades the\r\n       * speed.\r\n       */this.max_lazy_match=0;/* Attempt to find a better match only when the current match is strictly\r\n       * smaller than this value. This mechanism is used only for compression\r\n       * levels >= 4.\r\n       */ // That's alias to max_lazy_match, don't use directly\n//this.max_insert_length = 0;\n/* Insert new strings in the hash table only if the match length is not\r\n       * greater than this length. This saves time but degrades compression.\r\n       * max_insert_length is used only for compression levels <= 3.\r\n       */this.level=0;/* compression level (1..9) */this.strategy=0;/* favor or force Huffman coding*/this.good_match=0;/* Use a faster search when the previous match is longer than this */this.nice_match=0;/* Stop searching when current match exceeds this */ /* used by trees.c: */ /* Didn't use ct_data typedef below to suppress compiler warning */ // struct ct_data_s dyn_ltree[HEAP_SIZE];   /* literal and length tree */\n// struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */\n// struct ct_data_s bl_tree[2*BL_CODES+1];  /* Huffman tree for bit lengths */\n// Use flat array of DOUBLE size, with interleaved fata,\n// because JS does not support effective\nthis.dyn_ltree=new utils.Buf16(HEAP_SIZE*2);this.dyn_dtree=new utils.Buf16((2*D_CODES+1)*2);this.bl_tree=new utils.Buf16((2*BL_CODES+1)*2);zero(this.dyn_ltree);zero(this.dyn_dtree);zero(this.bl_tree);this.l_desc=null;/* desc. for literal tree */this.d_desc=null;/* desc. for distance tree */this.bl_desc=null;/* desc. for bit length tree */ //ush bl_count[MAX_BITS+1];\nthis.bl_count=new utils.Buf16(MAX_BITS+1);/* number of codes at each bit length for an optimal tree */ //int heap[2*L_CODES+1];      /* heap used to build the Huffman trees */\nthis.heap=new utils.Buf16(2*L_CODES+1);/* heap used to build the Huffman trees */zero(this.heap);this.heap_len=0;/* number of elements in the heap */this.heap_max=0;/* element of largest frequency */ /* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.\r\n       * The same heap array is used to build all trees.\r\n       */this.depth=new utils.Buf16(2*L_CODES+1);//uch depth[2*L_CODES+1];\nzero(this.depth);/* Depth of each subtree used as tie breaker for trees of equal frequency\r\n       */this.l_buf=0;/* buffer index for literals or lengths */this.lit_bufsize=0;/* Size of match buffer for literals/lengths.  There are 4 reasons for\r\n       * limiting lit_bufsize to 64K:\r\n       *   - frequencies can be kept in 16 bit counters\r\n       *   - if compression is not successful for the first block, all input\r\n       *     data is still in the window so we can still emit a stored block even\r\n       *     when input comes from standard input.  (This can also be done for\r\n       *     all blocks if lit_bufsize is not greater than 32K.)\r\n       *   - if compression is not successful for a file smaller than 64K, we can\r\n       *     even emit a stored file instead of a stored block (saving 5 bytes).\r\n       *     This is applicable only for zip (not gzip or zlib).\r\n       *   - creating new Huffman trees less frequently may not provide fast\r\n       *     adaptation to changes in the input data statistics. (Take for\r\n       *     example a binary file with poorly compressible code followed by\r\n       *     a highly compressible string table.) Smaller buffer sizes give\r\n       *     fast adaptation but have of course the overhead of transmitting\r\n       *     trees more frequently.\r\n       *   - I can't count above 4\r\n       */this.last_lit=0;/* running index in l_buf */this.d_buf=0;/* Buffer index for distances. To simplify the code, d_buf and l_buf have\r\n       * the same number of elements. To use different lengths, an extra flag\r\n       * array would be necessary.\r\n       */this.opt_len=0;/* bit length of current block with optimal trees */this.static_len=0;/* bit length of current block with static trees */this.matches=0;/* number of string matches in current block */this.insert=0;/* bytes at end of window left to insert */this.bi_buf=0;/* Output buffer. bits are inserted starting at the bottom (least\r\n       * significant bits).\r\n       */this.bi_valid=0;/* Number of valid bits in bi_buf.  All bits above the last valid bit\r\n       * are always zero.\r\n       */ // Used for window memory init. We safely ignore it for JS. That makes\n// sense only for pointers and memory check tools.\n//this.high_water = 0;\n/* High water mark offset in window for initialized bytes -- bytes above\r\n       * this are set to zero in order to avoid memory check warnings when\r\n       * longest match routines access bytes past the input.  This is then\r\n       * updated to the new high water mark.\r\n       */}function deflateResetKeep(strm){var s;if(!strm||!strm.state){return err(strm,Z_STREAM_ERROR);}strm.total_in=strm.total_out=0;strm.data_type=Z_UNKNOWN;s=strm.state;s.pending=0;s.pending_out=0;if(s.wrap<0){s.wrap=-s.wrap;/* was made negative by deflate(..., Z_FINISH); */}s.status=s.wrap?INIT_STATE:BUSY_STATE;strm.adler=s.wrap===2?0// crc32(0, Z_NULL, 0)\n:1;// adler32(0, Z_NULL, 0)\ns.last_flush=Z_NO_FLUSH;trees._tr_init(s);return Z_OK;}function deflateReset(strm){var ret=deflateResetKeep(strm);if(ret===Z_OK){lm_init(strm.state);}return ret;}function deflateSetHeader(strm,head){if(!strm||!strm.state){return Z_STREAM_ERROR;}if(strm.state.wrap!==2){return Z_STREAM_ERROR;}strm.state.gzhead=head;return Z_OK;}function deflateInit2(strm,level,method,windowBits,memLevel,strategy){if(!strm){// === Z_NULL\nreturn Z_STREAM_ERROR;}var wrap=1;if(level===Z_DEFAULT_COMPRESSION){level=6;}if(windowBits<0){/* suppress zlib wrapper */wrap=0;windowBits=-windowBits;}else if(windowBits>15){wrap=2;/* write gzip wrapper instead */windowBits-=16;}if(memLevel<1||memLevel>MAX_MEM_LEVEL||method!==Z_DEFLATED||windowBits<8||windowBits>15||level<0||level>9||strategy<0||strategy>Z_FIXED){return err(strm,Z_STREAM_ERROR);}if(windowBits===8){windowBits=9;}/* until 256-byte window bug fixed */var s=new DeflateState();strm.state=s;s.strm=strm;s.wrap=wrap;s.gzhead=null;s.w_bits=windowBits;s.w_size=1<<s.w_bits;s.w_mask=s.w_size-1;s.hash_bits=memLevel+7;s.hash_size=1<<s.hash_bits;s.hash_mask=s.hash_size-1;s.hash_shift=~~((s.hash_bits+MIN_MATCH-1)/MIN_MATCH);s.window=new utils.Buf8(s.w_size*2);s.head=new utils.Buf16(s.hash_size);s.prev=new utils.Buf16(s.w_size);// Don't need mem init magic for JS.\n//s.high_water = 0;  /* nothing written to s->window yet */\ns.lit_bufsize=1<<memLevel+6;/* 16K elements by default */s.pending_buf_size=s.lit_bufsize*4;//overlay = (ushf *) ZALLOC(strm, s->lit_bufsize, sizeof(ush)+2);\n//s->pending_buf = (uchf *) overlay;\ns.pending_buf=new utils.Buf8(s.pending_buf_size);// It is offset from `s.pending_buf` (size is `s.lit_bufsize * 2`)\n//s->d_buf = overlay + s->lit_bufsize/sizeof(ush);\ns.d_buf=1*s.lit_bufsize;//s->l_buf = s->pending_buf + (1+sizeof(ush))*s->lit_bufsize;\ns.l_buf=(1+2)*s.lit_bufsize;s.level=level;s.strategy=strategy;s.method=method;return deflateReset(strm);}function deflateInit(strm,level){return deflateInit2(strm,level,Z_DEFLATED,MAX_WBITS,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY);}function deflate(strm,flush){var old_flush,s;var beg,val;// for gzip header write only\nif(!strm||!strm.state||flush>Z_BLOCK||flush<0){return strm?err(strm,Z_STREAM_ERROR):Z_STREAM_ERROR;}s=strm.state;if(!strm.output||!strm.input&&strm.avail_in!==0||s.status===FINISH_STATE&&flush!==Z_FINISH){return err(strm,strm.avail_out===0?Z_BUF_ERROR:Z_STREAM_ERROR);}s.strm=strm;/* just in case */old_flush=s.last_flush;s.last_flush=flush;/* Write the header */if(s.status===INIT_STATE){if(s.wrap===2){// GZIP header\nstrm.adler=0;//crc32(0L, Z_NULL, 0);\nput_byte(s,31);put_byte(s,139);put_byte(s,8);if(!s.gzhead){// s->gzhead == Z_NULL\nput_byte(s,0);put_byte(s,0);put_byte(s,0);put_byte(s,0);put_byte(s,0);put_byte(s,s.level===9?2:s.strategy>=Z_HUFFMAN_ONLY||s.level<2?4:0);put_byte(s,OS_CODE);s.status=BUSY_STATE;}else{put_byte(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(!s.gzhead.extra?0:4)+(!s.gzhead.name?0:8)+(!s.gzhead.comment?0:16));put_byte(s,s.gzhead.time&0xff);put_byte(s,s.gzhead.time>>8&0xff);put_byte(s,s.gzhead.time>>16&0xff);put_byte(s,s.gzhead.time>>24&0xff);put_byte(s,s.level===9?2:s.strategy>=Z_HUFFMAN_ONLY||s.level<2?4:0);put_byte(s,s.gzhead.os&0xff);if(s.gzhead.extra&&s.gzhead.extra.length){put_byte(s,s.gzhead.extra.length&0xff);put_byte(s,s.gzhead.extra.length>>8&0xff);}if(s.gzhead.hcrc){strm.adler=crc32(strm.adler,s.pending_buf,s.pending,0);}s.gzindex=0;s.status=EXTRA_STATE;}}else// DEFLATE header\n{var header=Z_DEFLATED+(s.w_bits-8<<4)<<8;var level_flags=-1;if(s.strategy>=Z_HUFFMAN_ONLY||s.level<2){level_flags=0;}else if(s.level<6){level_flags=1;}else if(s.level===6){level_flags=2;}else{level_flags=3;}header|=level_flags<<6;if(s.strstart!==0){header|=PRESET_DICT;}header+=31-header%31;s.status=BUSY_STATE;putShortMSB(s,header);/* Save the adler32 of the preset dictionary: */if(s.strstart!==0){putShortMSB(s,strm.adler>>>16);putShortMSB(s,strm.adler&0xffff);}strm.adler=1;// adler32(0L, Z_NULL, 0);\n}}//#ifdef GZIP\nif(s.status===EXTRA_STATE){if(s.gzhead.extra/* != Z_NULL*/){beg=s.pending;/* start of bytes to update crc */while(s.gzindex<(s.gzhead.extra.length&0xffff)){if(s.pending===s.pending_buf_size){if(s.gzhead.hcrc&&s.pending>beg){strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg);}flush_pending(strm);beg=s.pending;if(s.pending===s.pending_buf_size){break;}}put_byte(s,s.gzhead.extra[s.gzindex]&0xff);s.gzindex++;}if(s.gzhead.hcrc&&s.pending>beg){strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg);}if(s.gzindex===s.gzhead.extra.length){s.gzindex=0;s.status=NAME_STATE;}}else{s.status=NAME_STATE;}}if(s.status===NAME_STATE){if(s.gzhead.name/* != Z_NULL*/){beg=s.pending;/* start of bytes to update crc */ //int val;\ndo{if(s.pending===s.pending_buf_size){if(s.gzhead.hcrc&&s.pending>beg){strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg);}flush_pending(strm);beg=s.pending;if(s.pending===s.pending_buf_size){val=1;break;}}// JS specific: little magic to add zero terminator to end of string\nif(s.gzindex<s.gzhead.name.length){val=s.gzhead.name.charCodeAt(s.gzindex++)&0xff;}else{val=0;}put_byte(s,val);}while(val!==0);if(s.gzhead.hcrc&&s.pending>beg){strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg);}if(val===0){s.gzindex=0;s.status=COMMENT_STATE;}}else{s.status=COMMENT_STATE;}}if(s.status===COMMENT_STATE){if(s.gzhead.comment/* != Z_NULL*/){beg=s.pending;/* start of bytes to update crc */ //int val;\ndo{if(s.pending===s.pending_buf_size){if(s.gzhead.hcrc&&s.pending>beg){strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg);}flush_pending(strm);beg=s.pending;if(s.pending===s.pending_buf_size){val=1;break;}}// JS specific: little magic to add zero terminator to end of string\nif(s.gzindex<s.gzhead.comment.length){val=s.gzhead.comment.charCodeAt(s.gzindex++)&0xff;}else{val=0;}put_byte(s,val);}while(val!==0);if(s.gzhead.hcrc&&s.pending>beg){strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg);}if(val===0){s.status=HCRC_STATE;}}else{s.status=HCRC_STATE;}}if(s.status===HCRC_STATE){if(s.gzhead.hcrc){if(s.pending+2>s.pending_buf_size){flush_pending(strm);}if(s.pending+2<=s.pending_buf_size){put_byte(s,strm.adler&0xff);put_byte(s,strm.adler>>8&0xff);strm.adler=0;//crc32(0L, Z_NULL, 0);\ns.status=BUSY_STATE;}}else{s.status=BUSY_STATE;}}//#endif\n/* Flush as much pending output as possible */if(s.pending!==0){flush_pending(strm);if(strm.avail_out===0){/* Since avail_out is 0, deflate will be called again with\r\n           * more output space, but possibly with both pending and\r\n           * avail_in equal to zero. There won't be anything to do,\r\n           * but this is not an error situation so make sure we\r\n           * return OK instead of BUF_ERROR at next call of deflate:\r\n           */s.last_flush=-1;return Z_OK;}/* Make sure there is something to do and avoid duplicate consecutive\r\n         * flushes. For repeated and useless calls with Z_FINISH, we keep\r\n         * returning Z_STREAM_END instead of Z_BUF_ERROR.\r\n         */}else if(strm.avail_in===0&&rank(flush)<=rank(old_flush)&&flush!==Z_FINISH){return err(strm,Z_BUF_ERROR);}/* User must not provide more input after the first FINISH: */if(s.status===FINISH_STATE&&strm.avail_in!==0){return err(strm,Z_BUF_ERROR);}/* Start a new block or continue the current one.\r\n       */if(strm.avail_in!==0||s.lookahead!==0||flush!==Z_NO_FLUSH&&s.status!==FINISH_STATE){var bstate=s.strategy===Z_HUFFMAN_ONLY?deflate_huff(s,flush):s.strategy===Z_RLE?deflate_rle(s,flush):configuration_table[s.level].func(s,flush);if(bstate===BS_FINISH_STARTED||bstate===BS_FINISH_DONE){s.status=FINISH_STATE;}if(bstate===BS_NEED_MORE||bstate===BS_FINISH_STARTED){if(strm.avail_out===0){s.last_flush=-1;/* avoid BUF_ERROR next call, see above */}return Z_OK;/* If flush != Z_NO_FLUSH && avail_out == 0, the next call\r\n           * of deflate should use the same flush parameter to make sure\r\n           * that the flush is complete. So we don't have to output an\r\n           * empty block here, this will be done at next call. This also\r\n           * ensures that for a very small output buffer, we emit at most\r\n           * one empty block.\r\n           */}if(bstate===BS_BLOCK_DONE){if(flush===Z_PARTIAL_FLUSH){trees._tr_align(s);}else if(flush!==Z_BLOCK){/* FULL_FLUSH or SYNC_FLUSH */trees._tr_stored_block(s,0,0,false);/* For a full flush, this empty block will be recognized\r\n             * as a special marker by inflate_sync().\r\n             */if(flush===Z_FULL_FLUSH){/*** CLEAR_HASH(s); ***/ /* forget history */zero(s.head);// Fill with NIL (= 0);\nif(s.lookahead===0){s.strstart=0;s.block_start=0;s.insert=0;}}}flush_pending(strm);if(strm.avail_out===0){s.last_flush=-1;/* avoid BUF_ERROR at next call, see above */return Z_OK;}}}//Assert(strm->avail_out > 0, \"bug2\");\n//if (strm.avail_out <= 0) { throw new Error(\"bug2\");}\nif(flush!==Z_FINISH){return Z_OK;}if(s.wrap<=0){return Z_STREAM_END;}/* Write the trailer */if(s.wrap===2){put_byte(s,strm.adler&0xff);put_byte(s,strm.adler>>8&0xff);put_byte(s,strm.adler>>16&0xff);put_byte(s,strm.adler>>24&0xff);put_byte(s,strm.total_in&0xff);put_byte(s,strm.total_in>>8&0xff);put_byte(s,strm.total_in>>16&0xff);put_byte(s,strm.total_in>>24&0xff);}else{putShortMSB(s,strm.adler>>>16);putShortMSB(s,strm.adler&0xffff);}flush_pending(strm);/* If avail_out is zero, the application will call deflate again\r\n       * to flush the rest.\r\n       */if(s.wrap>0){s.wrap=-s.wrap;}/* write the trailer only once! */return s.pending!==0?Z_OK:Z_STREAM_END;}function deflateEnd(strm){var status;if(!strm/*== Z_NULL*/||!strm.state/*== Z_NULL*/){return Z_STREAM_ERROR;}status=strm.state.status;if(status!==INIT_STATE&&status!==EXTRA_STATE&&status!==NAME_STATE&&status!==COMMENT_STATE&&status!==HCRC_STATE&&status!==BUSY_STATE&&status!==FINISH_STATE){return err(strm,Z_STREAM_ERROR);}strm.state=null;return status===BUSY_STATE?err(strm,Z_DATA_ERROR):Z_OK;}/* =========================================================================\r\n     * Initializes the compression dictionary from the given byte\r\n     * sequence without producing any compressed output.\r\n     */function deflateSetDictionary(strm,dictionary){var dictLength=dictionary.length;var s;var str,n;var wrap;var avail;var next;var input;var tmpDict;if(!strm/*== Z_NULL*/||!strm.state/*== Z_NULL*/){return Z_STREAM_ERROR;}s=strm.state;wrap=s.wrap;if(wrap===2||wrap===1&&s.status!==INIT_STATE||s.lookahead){return Z_STREAM_ERROR;}/* when using zlib wrappers, compute Adler-32 for provided dictionary */if(wrap===1){/* adler32(strm->adler, dictionary, dictLength); */strm.adler=adler32(strm.adler,dictionary,dictLength,0);}s.wrap=0;/* avoid computing Adler-32 in read_buf */ /* if dictionary would fill window, just replace the history */if(dictLength>=s.w_size){if(wrap===0){/* already empty otherwise */ /*** CLEAR_HASH(s); ***/zero(s.head);// Fill with NIL (= 0);\ns.strstart=0;s.block_start=0;s.insert=0;}/* use the tail */ // dictionary = dictionary.slice(dictLength - s.w_size);\ntmpDict=new utils.Buf8(s.w_size);utils.arraySet(tmpDict,dictionary,dictLength-s.w_size,s.w_size,0);dictionary=tmpDict;dictLength=s.w_size;}/* insert dictionary into window and hash */avail=strm.avail_in;next=strm.next_in;input=strm.input;strm.avail_in=dictLength;strm.next_in=0;strm.input=dictionary;fill_window(s);while(s.lookahead>=MIN_MATCH){str=s.strstart;n=s.lookahead-(MIN_MATCH-1);do{/* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */s.ins_h=(s.ins_h<<s.hash_shift^s.window[str+MIN_MATCH-1])&s.hash_mask;s.prev[str&s.w_mask]=s.head[s.ins_h];s.head[s.ins_h]=str;str++;}while(--n);s.strstart=str;s.lookahead=MIN_MATCH-1;fill_window(s);}s.strstart+=s.lookahead;s.block_start=s.strstart;s.insert=s.lookahead;s.lookahead=0;s.match_length=s.prev_length=MIN_MATCH-1;s.match_available=0;strm.next_in=next;strm.input=input;strm.avail_in=avail;s.wrap=wrap;return Z_OK;}exports.deflateInit=deflateInit;exports.deflateInit2=deflateInit2;exports.deflateReset=deflateReset;exports.deflateResetKeep=deflateResetKeep;exports.deflateSetHeader=deflateSetHeader;exports.deflate=deflate;exports.deflateEnd=deflateEnd;exports.deflateSetDictionary=deflateSetDictionary;exports.deflateInfo='pako deflate (from Nodeca project)';/* Not implemented\r\n    exports.deflateBound = deflateBound;\r\n    exports.deflateCopy = deflateCopy;\r\n    exports.deflateParams = deflateParams;\r\n    exports.deflatePending = deflatePending;\r\n    exports.deflatePrime = deflatePrime;\r\n    exports.deflateTune = deflateTune;\r\n    */ /***/},/* 271 */ /***/function(module,exports,__nested_webpack_require_3676562__){\"use strict\";// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n/* eslint-disable space-unary-ops */var utils=__nested_webpack_require_3676562__(71);/* Public constants ==========================================================*/ /* ===========================================================================*/ //var Z_FILTERED          = 1;\n//var Z_HUFFMAN_ONLY      = 2;\n//var Z_RLE               = 3;\nvar Z_FIXED=4;//var Z_DEFAULT_STRATEGY  = 0;\n/* Possible values of the data_type field (though see inflate()) */var Z_BINARY=0;var Z_TEXT=1;//var Z_ASCII             = 1; // = Z_TEXT\nvar Z_UNKNOWN=2;/*============================================================================*/function zero(buf){var len=buf.length;while(--len>=0){buf[len]=0;}}// From zutil.h\nvar STORED_BLOCK=0;var STATIC_TREES=1;var DYN_TREES=2;/* The three kinds of block type */var MIN_MATCH=3;var MAX_MATCH=258;/* The minimum and maximum match lengths */ // From deflate.h\n/* ===========================================================================\r\n     * Internal compression state.\r\n     */var LENGTH_CODES=29;/* number of length codes, not counting the special END_BLOCK code */var LITERALS=256;/* number of literal bytes 0..255 */var L_CODES=LITERALS+1+LENGTH_CODES;/* number of Literal or Length codes, including the END_BLOCK code */var D_CODES=30;/* number of distance codes */var BL_CODES=19;/* number of codes used to transfer the bit lengths */var HEAP_SIZE=2*L_CODES+1;/* maximum heap size */var MAX_BITS=15;/* All codes must not exceed MAX_BITS bits */var Buf_size=16;/* size of bit buffer in bi_buf */ /* ===========================================================================\r\n     * Constants\r\n     */var MAX_BL_BITS=7;/* Bit length codes must not exceed MAX_BL_BITS bits */var END_BLOCK=256;/* end of block literal code */var REP_3_6=16;/* repeat previous bit length 3-6 times (2 bits of repeat count) */var REPZ_3_10=17;/* repeat a zero length 3-10 times  (3 bits of repeat count) */var REPZ_11_138=18;/* repeat a zero length 11-138 times  (7 bits of repeat count) */ /* eslint-disable comma-spacing,array-bracket-spacing */var extra_lbits=/* extra bits for each length code */[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];var extra_dbits=/* extra bits for each distance code */[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];var extra_blbits=/* extra bits for each bit length code */[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];var bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];/* eslint-enable comma-spacing,array-bracket-spacing */ /* The lengths of the bit length codes are sent in order of decreasing\r\n     * probability, to avoid transmitting the lengths for unused bit length codes.\r\n     */ /* ===========================================================================\r\n     * Local data. These are initialized only once.\r\n     */ // We pre-fill arrays with 0 to avoid uninitialized gaps\nvar DIST_CODE_LEN=512;/* see definition of array dist_code below */ // !!!! Use flat array instead of structure, Freq = i*2, Len = i*2+1\nvar static_ltree=new Array((L_CODES+2)*2);zero(static_ltree);/* The static literal tree. Since the bit lengths are imposed, there is no\r\n     * need for the L_CODES extra codes used during heap construction. However\r\n     * The codes 286 and 287 are needed to build a canonical tree (see _tr_init\r\n     * below).\r\n     */var static_dtree=new Array(D_CODES*2);zero(static_dtree);/* The static distance tree. (Actually a trivial tree since all codes use\r\n     * 5 bits.)\r\n     */var _dist_code=new Array(DIST_CODE_LEN);zero(_dist_code);/* Distance codes. The first 256 values correspond to the distances\r\n     * 3 .. 258, the last 256 values correspond to the top 8 bits of\r\n     * the 15 bit distances.\r\n     */var _length_code=new Array(MAX_MATCH-MIN_MATCH+1);zero(_length_code);/* length code for each normalized match length (0 == MIN_MATCH) */var base_length=new Array(LENGTH_CODES);zero(base_length);/* First normalized length for each code (0 = MIN_MATCH) */var base_dist=new Array(D_CODES);zero(base_dist);/* First normalized distance for each code (0 = distance of 1) */function StaticTreeDesc(static_tree,extra_bits,extra_base,elems,max_length){this.static_tree=static_tree;/* static tree or NULL */this.extra_bits=extra_bits;/* extra bits for each code or NULL */this.extra_base=extra_base;/* base index for extra_bits */this.elems=elems;/* max number of elements in the tree */this.max_length=max_length;/* max bit length for the codes */ // show if `static_tree` has data or dummy - needed for monomorphic objects\nthis.has_stree=static_tree&&static_tree.length;}var static_l_desc;var static_d_desc;var static_bl_desc;function TreeDesc(dyn_tree,stat_desc){this.dyn_tree=dyn_tree;/* the dynamic tree */this.max_code=0;/* largest code with non zero frequency */this.stat_desc=stat_desc;/* the corresponding static tree */}function d_code(dist){return dist<256?_dist_code[dist]:_dist_code[256+(dist>>>7)];}/* ===========================================================================\r\n     * Output a short LSB first on the stream.\r\n     * IN assertion: there is enough room in pendingBuf.\r\n     */function put_short(s,w){//    put_byte(s, (uch)((w) & 0xff));\n//    put_byte(s, (uch)((ush)(w) >> 8));\ns.pending_buf[s.pending++]=w&0xff;s.pending_buf[s.pending++]=w>>>8&0xff;}/* ===========================================================================\r\n     * Send a value on a given number of bits.\r\n     * IN assertion: length <= 16 and value fits in length bits.\r\n     */function send_bits(s,value,length){if(s.bi_valid>Buf_size-length){s.bi_buf|=value<<s.bi_valid&0xffff;put_short(s,s.bi_buf);s.bi_buf=value>>Buf_size-s.bi_valid;s.bi_valid+=length-Buf_size;}else{s.bi_buf|=value<<s.bi_valid&0xffff;s.bi_valid+=length;}}function send_code(s,c,tree){send_bits(s,tree[c*2]/*.Code*/,tree[c*2+1]/*.Len*/);}/* ===========================================================================\r\n     * Reverse the first len bits of a code, using straightforward code (a faster\r\n     * method would use a table)\r\n     * IN assertion: 1 <= len <= 15\r\n     */function bi_reverse(code,len){var res=0;do{res|=code&1;code>>>=1;res<<=1;}while(--len>0);return res>>>1;}/* ===========================================================================\r\n     * Flush the bit buffer, keeping at most 7 bits in it.\r\n     */function bi_flush(s){if(s.bi_valid===16){put_short(s,s.bi_buf);s.bi_buf=0;s.bi_valid=0;}else if(s.bi_valid>=8){s.pending_buf[s.pending++]=s.bi_buf&0xff;s.bi_buf>>=8;s.bi_valid-=8;}}/* ===========================================================================\r\n     * Compute the optimal bit lengths for a tree and update the total bit length\r\n     * for the current block.\r\n     * IN assertion: the fields freq and dad are set, heap[heap_max] and\r\n     *    above are the tree nodes sorted by increasing frequency.\r\n     * OUT assertions: the field len is set to the optimal bit length, the\r\n     *     array bl_count contains the frequencies for each bit length.\r\n     *     The length opt_len is updated; static_len is also updated if stree is\r\n     *     not null.\r\n     */function gen_bitlen(s,desc)//    deflate_state *s;\n//    tree_desc *desc;    /* the tree descriptor */\n{var tree=desc.dyn_tree;var max_code=desc.max_code;var stree=desc.stat_desc.static_tree;var has_stree=desc.stat_desc.has_stree;var extra=desc.stat_desc.extra_bits;var base=desc.stat_desc.extra_base;var max_length=desc.stat_desc.max_length;var h;/* heap index */var n,m;/* iterate over the tree elements */var bits;/* bit length */var xbits;/* extra bits */var f;/* frequency */var overflow=0;/* number of elements with bit length too large */for(bits=0;bits<=MAX_BITS;bits++){s.bl_count[bits]=0;}/* In a first pass, compute the optimal bit lengths (which may\r\n       * overflow in the case of the bit length tree).\r\n       */tree[s.heap[s.heap_max]*2+1]/*.Len*/=0;/* root of the heap */for(h=s.heap_max+1;h<HEAP_SIZE;h++){n=s.heap[h];bits=tree[tree[n*2+1]/*.Dad*/*2+1]/*.Len*/+1;if(bits>max_length){bits=max_length;overflow++;}tree[n*2+1]/*.Len*/=bits;/* We overwrite tree[n].Dad which is no longer needed */if(n>max_code){continue;}/* not a leaf node */s.bl_count[bits]++;xbits=0;if(n>=base){xbits=extra[n-base];}f=tree[n*2]/*.Freq*/;s.opt_len+=f*(bits+xbits);if(has_stree){s.static_len+=f*(stree[n*2+1]/*.Len*/+xbits);}}if(overflow===0){return;}// Trace((stderr,\"\\nbit length overflow\\n\"));\n/* This happens for example on obj2 and pic of the Calgary corpus */ /* Find the first bit length which could increase: */do{bits=max_length-1;while(s.bl_count[bits]===0){bits--;}s.bl_count[bits]--;/* move one leaf down the tree */s.bl_count[bits+1]+=2;/* move one overflow item as its brother */s.bl_count[max_length]--;/* The brother of the overflow item also moves one step up,\r\n         * but this does not affect bl_count[max_length]\r\n         */overflow-=2;}while(overflow>0);/* Now recompute all bit lengths, scanning in increasing frequency.\r\n       * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all\r\n       * lengths instead of fixing only the wrong ones. This idea is taken\r\n       * from 'ar' written by Haruhiko Okumura.)\r\n       */for(bits=max_length;bits!==0;bits--){n=s.bl_count[bits];while(n!==0){m=s.heap[--h];if(m>max_code){continue;}if(tree[m*2+1]/*.Len*/!==bits){// Trace((stderr,\"code %d bits %d->%d\\n\", m, tree[m].Len, bits));\ns.opt_len+=(bits-tree[m*2+1]/*.Len*/)*tree[m*2]/*.Freq*/;tree[m*2+1]/*.Len*/=bits;}n--;}}}/* ===========================================================================\r\n     * Generate the codes for a given tree and bit counts (which need not be\r\n     * optimal).\r\n     * IN assertion: the array bl_count contains the bit length statistics for\r\n     * the given tree and the field len is set for all tree elements.\r\n     * OUT assertion: the field code is set for all tree elements of non\r\n     *     zero code length.\r\n     */function gen_codes(tree,max_code,bl_count)//    ct_data *tree;             /* the tree to decorate */\n//    int max_code;              /* largest code with non zero frequency */\n//    ushf *bl_count;            /* number of codes at each bit length */\n{var next_code=new Array(MAX_BITS+1);/* next code value for each bit length */var code=0;/* running code value */var bits;/* bit index */var n;/* code index */ /* The distribution counts are first used to generate the code values\r\n       * without bit reversal.\r\n       */for(bits=1;bits<=MAX_BITS;bits++){next_code[bits]=code=code+bl_count[bits-1]<<1;}/* Check that the bit counts in bl_count are consistent. The last code\r\n       * must be all ones.\r\n       */ //Assert (code + bl_count[MAX_BITS]-1 == (1<<MAX_BITS)-1,\n//        \"inconsistent bit counts\");\n//Tracev((stderr,\"\\ngen_codes: max_code %d \", max_code));\nfor(n=0;n<=max_code;n++){var len=tree[n*2+1]/*.Len*/;if(len===0){continue;}/* Now reverse the bits */tree[n*2]/*.Code*/=bi_reverse(next_code[len]++,len);//Tracecv(tree != static_ltree, (stderr,\"\\nn %3d %c l %2d c %4x (%x) \",\n//     n, (isgraph(n) ? n : ' '), len, tree[n].Code, next_code[len]-1));\n}}/* ===========================================================================\r\n     * Initialize the various 'constant' tables.\r\n     */function tr_static_init(){var n;/* iterates over tree elements */var bits;/* bit counter */var length;/* length value */var code;/* code value */var dist;/* distance index */var bl_count=new Array(MAX_BITS+1);/* number of codes at each bit length for an optimal tree */ // do check in _tr_init()\n//if (static_init_done) return;\n/* For some embedded targets, global variables are not initialized: */ /*#ifdef NO_INIT_GLOBAL_POINTERS\r\n      static_l_desc.static_tree = static_ltree;\r\n      static_l_desc.extra_bits = extra_lbits;\r\n      static_d_desc.static_tree = static_dtree;\r\n      static_d_desc.extra_bits = extra_dbits;\r\n      static_bl_desc.extra_bits = extra_blbits;\r\n    #endif*/ /* Initialize the mapping length (0..255) -> length code (0..28) */length=0;for(code=0;code<LENGTH_CODES-1;code++){base_length[code]=length;for(n=0;n<1<<extra_lbits[code];n++){_length_code[length++]=code;}}//Assert (length == 256, \"tr_static_init: length != 256\");\n/* Note that the length 255 (match length 258) can be represented\r\n       * in two different ways: code 284 + 5 bits or code 285, so we\r\n       * overwrite length_code[255] to use the best encoding:\r\n       */_length_code[length-1]=code;/* Initialize the mapping dist (0..32K) -> dist code (0..29) */dist=0;for(code=0;code<16;code++){base_dist[code]=dist;for(n=0;n<1<<extra_dbits[code];n++){_dist_code[dist++]=code;}}//Assert (dist == 256, \"tr_static_init: dist != 256\");\ndist>>=7;/* from now on, all distances are divided by 128 */for(;code<D_CODES;code++){base_dist[code]=dist<<7;for(n=0;n<1<<extra_dbits[code]-7;n++){_dist_code[256+dist++]=code;}}//Assert (dist == 256, \"tr_static_init: 256+dist != 512\");\n/* Construct the codes of the static literal tree */for(bits=0;bits<=MAX_BITS;bits++){bl_count[bits]=0;}n=0;while(n<=143){static_ltree[n*2+1]/*.Len*/=8;n++;bl_count[8]++;}while(n<=255){static_ltree[n*2+1]/*.Len*/=9;n++;bl_count[9]++;}while(n<=279){static_ltree[n*2+1]/*.Len*/=7;n++;bl_count[7]++;}while(n<=287){static_ltree[n*2+1]/*.Len*/=8;n++;bl_count[8]++;}/* Codes 286 and 287 do not exist, but we must include them in the\r\n       * tree construction to get a canonical Huffman tree (longest code\r\n       * all ones)\r\n       */gen_codes(static_ltree,L_CODES+1,bl_count);/* The static distance tree is trivial: */for(n=0;n<D_CODES;n++){static_dtree[n*2+1]/*.Len*/=5;static_dtree[n*2]/*.Code*/=bi_reverse(n,5);}// Now data ready and we can init static trees\nstatic_l_desc=new StaticTreeDesc(static_ltree,extra_lbits,LITERALS+1,L_CODES,MAX_BITS);static_d_desc=new StaticTreeDesc(static_dtree,extra_dbits,0,D_CODES,MAX_BITS);static_bl_desc=new StaticTreeDesc(new Array(0),extra_blbits,0,BL_CODES,MAX_BL_BITS);//static_init_done = true;\n}/* ===========================================================================\r\n     * Initialize a new block.\r\n     */function init_block(s){var n;/* iterates over tree elements */ /* Initialize the trees. */for(n=0;n<L_CODES;n++){s.dyn_ltree[n*2]/*.Freq*/=0;}for(n=0;n<D_CODES;n++){s.dyn_dtree[n*2]/*.Freq*/=0;}for(n=0;n<BL_CODES;n++){s.bl_tree[n*2]/*.Freq*/=0;}s.dyn_ltree[END_BLOCK*2]/*.Freq*/=1;s.opt_len=s.static_len=0;s.last_lit=s.matches=0;}/* ===========================================================================\r\n     * Flush the bit buffer and align the output on a byte boundary\r\n     */function bi_windup(s){if(s.bi_valid>8){put_short(s,s.bi_buf);}else if(s.bi_valid>0){//put_byte(s, (Byte)s->bi_buf);\ns.pending_buf[s.pending++]=s.bi_buf;}s.bi_buf=0;s.bi_valid=0;}/* ===========================================================================\r\n     * Copy a stored block, storing first the length and its\r\n     * one's complement if requested.\r\n     */function copy_block(s,buf,len,header)//DeflateState *s;\n//charf    *buf;    /* the input data */\n//unsigned len;     /* its length */\n//int      header;  /* true if block header must be written */\n{bi_windup(s);/* align on byte boundary */if(header){put_short(s,len);put_short(s,~len);}//  while (len--) {\n//    put_byte(s, *buf++);\n//  }\nutils.arraySet(s.pending_buf,s.window,buf,len,s.pending);s.pending+=len;}/* ===========================================================================\r\n     * Compares to subtrees, using the tree depth as tie breaker when\r\n     * the subtrees have equal frequency. This minimizes the worst case length.\r\n     */function smaller(tree,n,m,depth){var _n2=n*2;var _m2=m*2;return tree[_n2]/*.Freq*/<tree[_m2]/*.Freq*/||tree[_n2]/*.Freq*/===tree[_m2]/*.Freq*/&&depth[n]<=depth[m];}/* ===========================================================================\r\n     * Restore the heap property by moving down the tree starting at node k,\r\n     * exchanging a node with the smallest of its two sons if necessary, stopping\r\n     * when the heap property is re-established (each father smaller than its\r\n     * two sons).\r\n     */function pqdownheap(s,tree,k)//    deflate_state *s;\n//    ct_data *tree;  /* the tree to restore */\n//    int k;               /* node to move down */\n{var v=s.heap[k];var j=k<<1;/* left son of k */while(j<=s.heap_len){/* Set j to the smallest of the two sons: */if(j<s.heap_len&&smaller(tree,s.heap[j+1],s.heap[j],s.depth)){j++;}/* Exit if v is smaller than both sons */if(smaller(tree,v,s.heap[j],s.depth)){break;}/* Exchange v with the smallest son */s.heap[k]=s.heap[j];k=j;/* And continue down the tree, setting j to the left son of k */j<<=1;}s.heap[k]=v;}// inlined manually\n// var SMALLEST = 1;\n/* ===========================================================================\r\n     * Send the block data compressed using the given Huffman trees\r\n     */function compress_block(s,ltree,dtree)//    deflate_state *s;\n//    const ct_data *ltree; /* literal tree */\n//    const ct_data *dtree; /* distance tree */\n{var dist;/* distance of matched string */var lc;/* match length or unmatched char (if dist == 0) */var lx=0;/* running index in l_buf */var code;/* the code to send */var extra;/* number of extra bits to send */if(s.last_lit!==0){do{dist=s.pending_buf[s.d_buf+lx*2]<<8|s.pending_buf[s.d_buf+lx*2+1];lc=s.pending_buf[s.l_buf+lx];lx++;if(dist===0){send_code(s,lc,ltree);/* send a literal byte */ //Tracecv(isgraph(lc), (stderr,\" '%c' \", lc));\n}else{/* Here, lc is the match length - MIN_MATCH */code=_length_code[lc];send_code(s,code+LITERALS+1,ltree);/* send the length code */extra=extra_lbits[code];if(extra!==0){lc-=base_length[code];send_bits(s,lc,extra);/* send the extra length bits */}dist--;/* dist is now the match distance - 1 */code=d_code(dist);//Assert (code < D_CODES, \"bad d_code\");\nsend_code(s,code,dtree);/* send the distance code */extra=extra_dbits[code];if(extra!==0){dist-=base_dist[code];send_bits(s,dist,extra);/* send the extra distance bits */}}/* literal or match pair ? */ /* Check that the overlay between pending_buf and d_buf+l_buf is ok: */ //Assert((uInt)(s->pending) < s->lit_bufsize + 2*lx,\n//       \"pendingBuf overflow\");\n}while(lx<s.last_lit);}send_code(s,END_BLOCK,ltree);}/* ===========================================================================\r\n     * Construct one Huffman tree and assigns the code bit strings and lengths.\r\n     * Update the total bit length for the current block.\r\n     * IN assertion: the field freq is set for all tree elements.\r\n     * OUT assertions: the fields len and code are set to the optimal bit length\r\n     *     and corresponding code. The length opt_len is updated; static_len is\r\n     *     also updated if stree is not null. The field max_code is set.\r\n     */function build_tree(s,desc)//    deflate_state *s;\n//    tree_desc *desc; /* the tree descriptor */\n{var tree=desc.dyn_tree;var stree=desc.stat_desc.static_tree;var has_stree=desc.stat_desc.has_stree;var elems=desc.stat_desc.elems;var n,m;/* iterate over heap elements */var max_code=-1;/* largest code with non zero frequency */var node;/* new node being created */ /* Construct the initial heap, with least frequent element in\r\n       * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1].\r\n       * heap[0] is not used.\r\n       */s.heap_len=0;s.heap_max=HEAP_SIZE;for(n=0;n<elems;n++){if(tree[n*2]/*.Freq*/!==0){s.heap[++s.heap_len]=max_code=n;s.depth[n]=0;}else{tree[n*2+1]/*.Len*/=0;}}/* The pkzip format requires that at least one distance code exists,\r\n       * and that at least one bit should be sent even if there is only one\r\n       * possible code. So to avoid special checks later on we force at least\r\n       * two codes of non zero frequency.\r\n       */while(s.heap_len<2){node=s.heap[++s.heap_len]=max_code<2?++max_code:0;tree[node*2]/*.Freq*/=1;s.depth[node]=0;s.opt_len--;if(has_stree){s.static_len-=stree[node*2+1]/*.Len*/;}/* node is 0 or 1 so it does not have extra bits */}desc.max_code=max_code;/* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,\r\n       * establish sub-heaps of increasing lengths:\r\n       */for(n=s.heap_len>>1/*int /2*/;n>=1;n--){pqdownheap(s,tree,n);}/* Construct the Huffman tree by repeatedly combining the least two\r\n       * frequent nodes.\r\n       */node=elems;/* next internal node of the tree */do{//pqremove(s, tree, n);  /* n = node of least frequency */\n/*** pqremove ***/n=s.heap[1/*SMALLEST*/];s.heap[1/*SMALLEST*/]=s.heap[s.heap_len--];pqdownheap(s,tree,1/*SMALLEST*/);/***/m=s.heap[1/*SMALLEST*/];/* m = node of next least frequency */s.heap[--s.heap_max]=n;/* keep the nodes sorted by frequency */s.heap[--s.heap_max]=m;/* Create a new node father of n and m */tree[node*2]/*.Freq*/=tree[n*2]/*.Freq*/+tree[m*2]/*.Freq*/;s.depth[node]=(s.depth[n]>=s.depth[m]?s.depth[n]:s.depth[m])+1;tree[n*2+1]/*.Dad*/=tree[m*2+1]/*.Dad*/=node;/* and insert the new node in the heap */s.heap[1/*SMALLEST*/]=node++;pqdownheap(s,tree,1/*SMALLEST*/);}while(s.heap_len>=2);s.heap[--s.heap_max]=s.heap[1/*SMALLEST*/];/* At this point, the fields freq and dad are set. We can now\r\n       * generate the bit lengths.\r\n       */gen_bitlen(s,desc);/* The field len is now set, we can generate the bit codes */gen_codes(tree,max_code,s.bl_count);}/* ===========================================================================\r\n     * Scan a literal or distance tree to determine the frequencies of the codes\r\n     * in the bit length tree.\r\n     */function scan_tree(s,tree,max_code)//    deflate_state *s;\n//    ct_data *tree;   /* the tree to be scanned */\n//    int max_code;    /* and its largest code of non zero frequency */\n{var n;/* iterates over all tree elements */var prevlen=-1;/* last emitted length */var curlen;/* length of current code */var nextlen=tree[0*2+1]/*.Len*/;/* length of next code */var count=0;/* repeat count of the current code */var max_count=7;/* max repeat count */var min_count=4;/* min repeat count */if(nextlen===0){max_count=138;min_count=3;}tree[(max_code+1)*2+1]/*.Len*/=0xffff;/* guard */for(n=0;n<=max_code;n++){curlen=nextlen;nextlen=tree[(n+1)*2+1]/*.Len*/;if(++count<max_count&&curlen===nextlen){continue;}else if(count<min_count){s.bl_tree[curlen*2]/*.Freq*/+=count;}else if(curlen!==0){if(curlen!==prevlen){s.bl_tree[curlen*2]/*.Freq*/++;}s.bl_tree[REP_3_6*2]/*.Freq*/++;}else if(count<=10){s.bl_tree[REPZ_3_10*2]/*.Freq*/++;}else{s.bl_tree[REPZ_11_138*2]/*.Freq*/++;}count=0;prevlen=curlen;if(nextlen===0){max_count=138;min_count=3;}else if(curlen===nextlen){max_count=6;min_count=3;}else{max_count=7;min_count=4;}}}/* ===========================================================================\r\n     * Send a literal or distance tree in compressed form, using the codes in\r\n     * bl_tree.\r\n     */function send_tree(s,tree,max_code)//    deflate_state *s;\n//    ct_data *tree; /* the tree to be scanned */\n//    int max_code;       /* and its largest code of non zero frequency */\n{var n;/* iterates over all tree elements */var prevlen=-1;/* last emitted length */var curlen;/* length of current code */var nextlen=tree[0*2+1]/*.Len*/;/* length of next code */var count=0;/* repeat count of the current code */var max_count=7;/* max repeat count */var min_count=4;/* min repeat count */ /* tree[max_code+1].Len = -1; */ /* guard already set */if(nextlen===0){max_count=138;min_count=3;}for(n=0;n<=max_code;n++){curlen=nextlen;nextlen=tree[(n+1)*2+1]/*.Len*/;if(++count<max_count&&curlen===nextlen){continue;}else if(count<min_count){do{send_code(s,curlen,s.bl_tree);}while(--count!==0);}else if(curlen!==0){if(curlen!==prevlen){send_code(s,curlen,s.bl_tree);count--;}//Assert(count >= 3 && count <= 6, \" 3_6?\");\nsend_code(s,REP_3_6,s.bl_tree);send_bits(s,count-3,2);}else if(count<=10){send_code(s,REPZ_3_10,s.bl_tree);send_bits(s,count-3,3);}else{send_code(s,REPZ_11_138,s.bl_tree);send_bits(s,count-11,7);}count=0;prevlen=curlen;if(nextlen===0){max_count=138;min_count=3;}else if(curlen===nextlen){max_count=6;min_count=3;}else{max_count=7;min_count=4;}}}/* ===========================================================================\r\n     * Construct the Huffman tree for the bit lengths and return the index in\r\n     * bl_order of the last bit length code to send.\r\n     */function build_bl_tree(s){var max_blindex;/* index of last bit length code of non zero freq */ /* Determine the bit length frequencies for literal and distance trees */scan_tree(s,s.dyn_ltree,s.l_desc.max_code);scan_tree(s,s.dyn_dtree,s.d_desc.max_code);/* Build the bit length tree: */build_tree(s,s.bl_desc);/* opt_len now includes the length of the tree representations, except\r\n       * the lengths of the bit lengths codes and the 5+5+4 bits for the counts.\r\n       */ /* Determine the number of bit length codes to send. The pkzip format\r\n       * requires that at least 4 bit length codes be sent. (appnote.txt says\r\n       * 3 but the actual value used is 4.)\r\n       */for(max_blindex=BL_CODES-1;max_blindex>=3;max_blindex--){if(s.bl_tree[bl_order[max_blindex]*2+1]/*.Len*/!==0){break;}}/* Update opt_len to include the bit length tree and counts */s.opt_len+=3*(max_blindex+1)+5+5+4;//Tracev((stderr, \"\\ndyn trees: dyn %ld, stat %ld\",\n//        s->opt_len, s->static_len));\nreturn max_blindex;}/* ===========================================================================\r\n     * Send the header for a block using dynamic Huffman trees: the counts, the\r\n     * lengths of the bit length codes, the literal tree and the distance tree.\r\n     * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.\r\n     */function send_all_trees(s,lcodes,dcodes,blcodes)//    deflate_state *s;\n//    int lcodes, dcodes, blcodes; /* number of codes for each tree */\n{var rank;/* index in bl_order */ //Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, \"not enough codes\");\n//Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES,\n//        \"too many codes\");\n//Tracev((stderr, \"\\nbl counts: \"));\nsend_bits(s,lcodes-257,5);/* not +255 as stated in appnote.txt */send_bits(s,dcodes-1,5);send_bits(s,blcodes-4,4);/* not -3 as stated in appnote.txt */for(rank=0;rank<blcodes;rank++){//Tracev((stderr, \"\\nbl code %2d \", bl_order[rank]));\nsend_bits(s,s.bl_tree[bl_order[rank]*2+1]/*.Len*/,3);}//Tracev((stderr, \"\\nbl tree: sent %ld\", s->bits_sent));\nsend_tree(s,s.dyn_ltree,lcodes-1);/* literal tree */ //Tracev((stderr, \"\\nlit tree: sent %ld\", s->bits_sent));\nsend_tree(s,s.dyn_dtree,dcodes-1);/* distance tree */ //Tracev((stderr, \"\\ndist tree: sent %ld\", s->bits_sent));\n}/* ===========================================================================\r\n     * Check if the data type is TEXT or BINARY, using the following algorithm:\r\n     * - TEXT if the two conditions below are satisfied:\r\n     *    a) There are no non-portable control characters belonging to the\r\n     *       \"black list\" (0..6, 14..25, 28..31).\r\n     *    b) There is at least one printable character belonging to the\r\n     *       \"white list\" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).\r\n     * - BINARY otherwise.\r\n     * - The following partially-portable control characters form a\r\n     *   \"gray list\" that is ignored in this detection algorithm:\r\n     *   (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).\r\n     * IN assertion: the fields Freq of dyn_ltree are set.\r\n     */function detect_data_type(s){/* black_mask is the bit mask of black-listed bytes\r\n       * set bits 0..6, 14..25, and 28..31\r\n       * 0xf3ffc07f = binary 11110011111111111100000001111111\r\n       */var black_mask=0xf3ffc07f;var n;/* Check for non-textual (\"black-listed\") bytes. */for(n=0;n<=31;n++,black_mask>>>=1){if(black_mask&1&&s.dyn_ltree[n*2]/*.Freq*/!==0){return Z_BINARY;}}/* Check for textual (\"white-listed\") bytes. */if(s.dyn_ltree[9*2]/*.Freq*/!==0||s.dyn_ltree[10*2]/*.Freq*/!==0||s.dyn_ltree[13*2]/*.Freq*/!==0){return Z_TEXT;}for(n=32;n<LITERALS;n++){if(s.dyn_ltree[n*2]/*.Freq*/!==0){return Z_TEXT;}}/* There are no \"black-listed\" or \"white-listed\" bytes:\r\n       * this stream either is empty or has tolerated (\"gray-listed\") bytes only.\r\n       */return Z_BINARY;}var static_init_done=false;/* ===========================================================================\r\n     * Initialize the tree data structures for a new zlib stream.\r\n     */function _tr_init(s){if(!static_init_done){tr_static_init();static_init_done=true;}s.l_desc=new TreeDesc(s.dyn_ltree,static_l_desc);s.d_desc=new TreeDesc(s.dyn_dtree,static_d_desc);s.bl_desc=new TreeDesc(s.bl_tree,static_bl_desc);s.bi_buf=0;s.bi_valid=0;/* Initialize the first block of the first file: */init_block(s);}/* ===========================================================================\r\n     * Send a stored block\r\n     */function _tr_stored_block(s,buf,stored_len,last)//DeflateState *s;\n//charf *buf;       /* input block */\n//ulg stored_len;   /* length of input block */\n//int last;         /* one if this is the last block for a file */\n{send_bits(s,(STORED_BLOCK<<1)+(last?1:0),3);/* send block type */copy_block(s,buf,stored_len,true);/* with header */}/* ===========================================================================\r\n     * Send one empty static block to give enough lookahead for inflate.\r\n     * This takes 10 bits, of which 7 may remain in the bit buffer.\r\n     */function _tr_align(s){send_bits(s,STATIC_TREES<<1,3);send_code(s,END_BLOCK,static_ltree);bi_flush(s);}/* ===========================================================================\r\n     * Determine the best encoding for the current block: dynamic trees, static\r\n     * trees or store, and output the encoded block to the zip file.\r\n     */function _tr_flush_block(s,buf,stored_len,last)//DeflateState *s;\n//charf *buf;       /* input block, or NULL if too old */\n//ulg stored_len;   /* length of input block */\n//int last;         /* one if this is the last block for a file */\n{var opt_lenb,static_lenb;/* opt_len and static_len in bytes */var max_blindex=0;/* index of last bit length code of non zero freq */ /* Build the Huffman trees unless a stored block is forced */if(s.level>0){/* Check if the file is binary or text */if(s.strm.data_type===Z_UNKNOWN){s.strm.data_type=detect_data_type(s);}/* Construct the literal and distance trees */build_tree(s,s.l_desc);// Tracev((stderr, \"\\nlit data: dyn %ld, stat %ld\", s->opt_len,\n//        s->static_len));\nbuild_tree(s,s.d_desc);// Tracev((stderr, \"\\ndist data: dyn %ld, stat %ld\", s->opt_len,\n//        s->static_len));\n/* At this point, opt_len and static_len are the total bit lengths of\r\n         * the compressed block data, excluding the tree representations.\r\n         */ /* Build the bit length tree for the above two trees, and get the index\r\n         * in bl_order of the last bit length code to send.\r\n         */max_blindex=build_bl_tree(s);/* Determine the best encoding. Compute the block lengths in bytes. */opt_lenb=s.opt_len+3+7>>>3;static_lenb=s.static_len+3+7>>>3;// Tracev((stderr, \"\\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u \",\n//        opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,\n//        s->last_lit));\nif(static_lenb<=opt_lenb){opt_lenb=static_lenb;}}else{// Assert(buf != (char*)0, \"lost buf\");\nopt_lenb=static_lenb=stored_len+5;/* force a stored block */}if(stored_len+4<=opt_lenb&&buf!==-1){/* 4: two words for the lengths */ /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.\r\n         * Otherwise we can't have processed more than WSIZE input bytes since\r\n         * the last block flush, because compression would have been\r\n         * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to\r\n         * transform a block into a stored block.\r\n         */_tr_stored_block(s,buf,stored_len,last);}else if(s.strategy===Z_FIXED||static_lenb===opt_lenb){send_bits(s,(STATIC_TREES<<1)+(last?1:0),3);compress_block(s,static_ltree,static_dtree);}else{send_bits(s,(DYN_TREES<<1)+(last?1:0),3);send_all_trees(s,s.l_desc.max_code+1,s.d_desc.max_code+1,max_blindex+1);compress_block(s,s.dyn_ltree,s.dyn_dtree);}// Assert (s->compressed_len == s->bits_sent, \"bad compressed size\");\n/* The above check is made mod 2^32, for files larger than 512 MB\r\n       * and uLong implemented on 32 bits.\r\n       */init_block(s);if(last){bi_windup(s);}// Tracev((stderr,\"\\ncomprlen %lu(%lu) \", s->compressed_len>>3,\n//       s->compressed_len-7*last));\n}/* ===========================================================================\r\n     * Save the match info and tally the frequency counts. Return true if\r\n     * the current block must be flushed.\r\n     */function _tr_tally(s,dist,lc)//    deflate_state *s;\n//    unsigned dist;  /* distance of matched string */\n//    unsigned lc;    /* match length-MIN_MATCH or unmatched char (if dist==0) */\n{//var out_length, in_length, dcode;\ns.pending_buf[s.d_buf+s.last_lit*2]=dist>>>8&0xff;s.pending_buf[s.d_buf+s.last_lit*2+1]=dist&0xff;s.pending_buf[s.l_buf+s.last_lit]=lc&0xff;s.last_lit++;if(dist===0){/* lc is the unmatched char */s.dyn_ltree[lc*2]/*.Freq*/++;}else{s.matches++;/* Here, lc is the match length - MIN_MATCH */dist--;/* dist = match distance - 1 */ //Assert((ush)dist < (ush)MAX_DIST(s) &&\n//       (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&\n//       (ush)d_code(dist) < (ush)D_CODES,  \"_tr_tally: bad match\");\ns.dyn_ltree[(_length_code[lc]+LITERALS+1)*2]/*.Freq*/++;s.dyn_dtree[d_code(dist)*2]/*.Freq*/++;}// (!) This block is disabled in zlib defaults,\n// don't enable it for binary compatibility\n//#ifdef TRUNCATE_BLOCK\n//  /* Try to guess if it is profitable to stop the current block here */\n//  if ((s.last_lit & 0x1fff) === 0 && s.level > 2) {\n//    /* Compute an upper bound for the compressed length */\n//    out_length = s.last_lit*8;\n//    in_length = s.strstart - s.block_start;\n//\n//    for (dcode = 0; dcode < D_CODES; dcode++) {\n//      out_length += s.dyn_dtree[dcode*2]/*.Freq*/ * (5 + extra_dbits[dcode]);\n//    }\n//    out_length >>>= 3;\n//    //Tracev((stderr,\"\\nlast_lit %u, in %ld, out ~%ld(%ld%%) \",\n//    //       s->last_lit, in_length, out_length,\n//    //       100L - out_length*100L/in_length));\n//    if (s.matches < (s.last_lit>>1)/*int /2*/ && out_length < (in_length>>1)/*int /2*/) {\n//      return true;\n//    }\n//  }\n//#endif\nreturn s.last_lit===s.lit_bufsize-1;/* We avoid equality with lit_bufsize because of wraparound at 64K\r\n       * on 16 bit machines and because stored blocks are restricted to\r\n       * 64K-1 bytes.\r\n       */}exports._tr_init=_tr_init;exports._tr_stored_block=_tr_stored_block;exports._tr_flush_block=_tr_flush_block;exports._tr_tally=_tr_tally;exports._tr_align=_tr_align;/***/},/* 272 */ /***/function(module,exports,__webpack_require__){\"use strict\";// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nmodule.exports={2:'need dictionary',/* Z_NEED_DICT       2  */1:'stream end',/* Z_STREAM_END      1  */0:'',/* Z_OK              0  */'-1':'file error',/* Z_ERRNO         (-1) */'-2':'stream error',/* Z_STREAM_ERROR  (-2) */'-3':'data error',/* Z_DATA_ERROR    (-3) */'-4':'insufficient memory',/* Z_MEM_ERROR     (-4) */'-5':'buffer error',/* Z_BUF_ERROR     (-5) */'-6':'incompatible version'/* Z_VERSION_ERROR (-6) */};/***/},/* 273 */ /***/function(module,exports,__nested_webpack_require_3713562__){\"use strict\";// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nvar utils=__nested_webpack_require_3713562__(71);var adler32=__nested_webpack_require_3713562__(172);var crc32=__nested_webpack_require_3713562__(173);var inflate_fast=__nested_webpack_require_3713562__(274);var inflate_table=__nested_webpack_require_3713562__(275);var CODES=0;var LENS=1;var DISTS=2;/* Public constants ==========================================================*/ /* ===========================================================================*/ /* Allowed flush values; see deflate() and inflate() below for details */ //var Z_NO_FLUSH      = 0;\n//var Z_PARTIAL_FLUSH = 1;\n//var Z_SYNC_FLUSH    = 2;\n//var Z_FULL_FLUSH    = 3;\nvar Z_FINISH=4;var Z_BLOCK=5;var Z_TREES=6;/* Return codes for the compression/decompression functions. Negative values\r\n     * are errors, positive values are used for special but normal events.\r\n     */var Z_OK=0;var Z_STREAM_END=1;var Z_NEED_DICT=2;//var Z_ERRNO         = -1;\nvar Z_STREAM_ERROR=-2;var Z_DATA_ERROR=-3;var Z_MEM_ERROR=-4;var Z_BUF_ERROR=-5;//var Z_VERSION_ERROR = -6;\n/* The deflate compression method */var Z_DEFLATED=8;/* STATES ====================================================================*/ /* ===========================================================================*/var HEAD=1;/* i: waiting for magic header */var FLAGS=2;/* i: waiting for method and flags (gzip) */var TIME=3;/* i: waiting for modification time (gzip) */var OS=4;/* i: waiting for extra flags and operating system (gzip) */var EXLEN=5;/* i: waiting for extra length (gzip) */var EXTRA=6;/* i: waiting for extra bytes (gzip) */var NAME=7;/* i: waiting for end of file name (gzip) */var COMMENT=8;/* i: waiting for end of comment (gzip) */var HCRC=9;/* i: waiting for header crc (gzip) */var DICTID=10;/* i: waiting for dictionary check value */var DICT=11;/* waiting for inflateSetDictionary() call */var TYPE=12;/* i: waiting for type bits, including last-flag bit */var TYPEDO=13;/* i: same, but skip check to exit inflate on new block */var STORED=14;/* i: waiting for stored size (length and complement) */var COPY_=15;/* i/o: same as COPY below, but only first time in */var COPY=16;/* i/o: waiting for input or output to copy stored block */var TABLE=17;/* i: waiting for dynamic block table lengths */var LENLENS=18;/* i: waiting for code length code lengths */var CODELENS=19;/* i: waiting for length/lit and distance code lengths */var LEN_=20;/* i: same as LEN below, but only first time in */var LEN=21;/* i: waiting for length/lit/eob code */var LENEXT=22;/* i: waiting for length extra bits */var DIST=23;/* i: waiting for distance code */var DISTEXT=24;/* i: waiting for distance extra bits */var MATCH=25;/* o: waiting for output space to copy string */var LIT=26;/* o: waiting for output space to write literal */var CHECK=27;/* i: waiting for 32-bit check value */var LENGTH=28;/* i: waiting for 32-bit length (gzip) */var DONE=29;/* finished check, done -- remain here until reset */var BAD=30;/* got a data error -- remain here until reset */var MEM=31;/* got an inflate() memory error -- remain here until reset */var SYNC=32;/* looking for synchronization bytes to restart inflate() */ /* ===========================================================================*/var ENOUGH_LENS=852;var ENOUGH_DISTS=592;//var ENOUGH =  (ENOUGH_LENS+ENOUGH_DISTS);\nvar MAX_WBITS=15;/* 32K LZ77 window */var DEF_WBITS=MAX_WBITS;function zswap32(q){return(q>>>24&0xff)+(q>>>8&0xff00)+((q&0xff00)<<8)+((q&0xff)<<24);}function InflateState(){this.mode=0;/* current inflate mode */this.last=false;/* true if processing last block */this.wrap=0;/* bit 0 true for zlib, bit 1 true for gzip */this.havedict=false;/* true if dictionary provided */this.flags=0;/* gzip header method and flags (0 if zlib) */this.dmax=0;/* zlib header max distance (INFLATE_STRICT) */this.check=0;/* protected copy of check value */this.total=0;/* protected copy of output count */ // TODO: may be {}\nthis.head=null;/* where to save gzip header information */ /* sliding window */this.wbits=0;/* log base 2 of requested window size */this.wsize=0;/* window size or zero if not using window */this.whave=0;/* valid bytes in the window */this.wnext=0;/* window write index */this.window=null;/* allocated sliding window, if needed */ /* bit accumulator */this.hold=0;/* input bit accumulator */this.bits=0;/* number of bits in \"in\" */ /* for string and stored block copying */this.length=0;/* literal or length of data to copy */this.offset=0;/* distance back to copy string from */ /* for table and code decoding */this.extra=0;/* extra bits needed */ /* fixed and dynamic code tables */this.lencode=null;/* starting table for length/literal codes */this.distcode=null;/* starting table for distance codes */this.lenbits=0;/* index bits for lencode */this.distbits=0;/* index bits for distcode */ /* dynamic table building */this.ncode=0;/* number of code length code lengths */this.nlen=0;/* number of length code lengths */this.ndist=0;/* number of distance code lengths */this.have=0;/* number of code lengths in lens[] */this.next=null;/* next available space in codes[] */this.lens=new utils.Buf16(320);/* temporary storage for code lengths */this.work=new utils.Buf16(288);/* work area for code table building */ /*\r\n       because we don't have pointers in js, we use lencode and distcode directly\r\n       as buffers so we don't need codes\r\n      */ //this.codes = new utils.Buf32(ENOUGH);       /* space for code tables */\nthis.lendyn=null;/* dynamic table for length/literal codes (JS specific) */this.distdyn=null;/* dynamic table for distance codes (JS specific) */this.sane=0;/* if false, allow invalid distance too far */this.back=0;/* bits back of last unprocessed length/lit */this.was=0;/* initial length of match */}function inflateResetKeep(strm){var state;if(!strm||!strm.state){return Z_STREAM_ERROR;}state=strm.state;strm.total_in=strm.total_out=state.total=0;strm.msg='';/*Z_NULL*/if(state.wrap){/* to support ill-conceived Java test suite */strm.adler=state.wrap&1;}state.mode=HEAD;state.last=0;state.havedict=0;state.dmax=32768;state.head=null/*Z_NULL*/;state.hold=0;state.bits=0;//state.lencode = state.distcode = state.next = state.codes;\nstate.lencode=state.lendyn=new utils.Buf32(ENOUGH_LENS);state.distcode=state.distdyn=new utils.Buf32(ENOUGH_DISTS);state.sane=1;state.back=-1;//Tracev((stderr, \"inflate: reset\\n\"));\nreturn Z_OK;}function inflateReset(strm){var state;if(!strm||!strm.state){return Z_STREAM_ERROR;}state=strm.state;state.wsize=0;state.whave=0;state.wnext=0;return inflateResetKeep(strm);}function inflateReset2(strm,windowBits){var wrap;var state;/* get the state */if(!strm||!strm.state){return Z_STREAM_ERROR;}state=strm.state;/* extract wrap request from windowBits parameter */if(windowBits<0){wrap=0;windowBits=-windowBits;}else{wrap=(windowBits>>4)+1;if(windowBits<48){windowBits&=15;}}/* set number of window bits, free window if different */if(windowBits&&(windowBits<8||windowBits>15)){return Z_STREAM_ERROR;}if(state.window!==null&&state.wbits!==windowBits){state.window=null;}/* update state and reset the rest of it */state.wrap=wrap;state.wbits=windowBits;return inflateReset(strm);}function inflateInit2(strm,windowBits){var ret;var state;if(!strm){return Z_STREAM_ERROR;}//strm.msg = Z_NULL;                 /* in case we return an error */\nstate=new InflateState();//if (state === Z_NULL) return Z_MEM_ERROR;\n//Tracev((stderr, \"inflate: allocated\\n\"));\nstrm.state=state;state.window=null/*Z_NULL*/;ret=inflateReset2(strm,windowBits);if(ret!==Z_OK){strm.state=null/*Z_NULL*/;}return ret;}function inflateInit(strm){return inflateInit2(strm,DEF_WBITS);}/*\r\n     Return state with length and distance decoding tables and index sizes set to\r\n     fixed code decoding.  Normally this returns fixed tables from inffixed.h.\r\n     If BUILDFIXED is defined, then instead this routine builds the tables the\r\n     first time it's called, and returns those tables the first time and\r\n     thereafter.  This reduces the size of the code by about 2K bytes, in\r\n     exchange for a little execution time.  However, BUILDFIXED should not be\r\n     used for threaded applications, since the rewriting of the tables and virgin\r\n     may not be thread-safe.\r\n     */var virgin=true;var lenfix,distfix;// We have no pointers in JS, so keep tables separate\nfunction fixedtables(state){/* build fixed huffman tables if first call (may not be thread safe) */if(virgin){var sym;lenfix=new utils.Buf32(512);distfix=new utils.Buf32(32);/* literal/length table */sym=0;while(sym<144){state.lens[sym++]=8;}while(sym<256){state.lens[sym++]=9;}while(sym<280){state.lens[sym++]=7;}while(sym<288){state.lens[sym++]=8;}inflate_table(LENS,state.lens,0,288,lenfix,0,state.work,{bits:9});/* distance table */sym=0;while(sym<32){state.lens[sym++]=5;}inflate_table(DISTS,state.lens,0,32,distfix,0,state.work,{bits:5});/* do this just once */virgin=false;}state.lencode=lenfix;state.lenbits=9;state.distcode=distfix;state.distbits=5;}/*\r\n     Update the window with the last wsize (normally 32K) bytes written before\r\n     returning.  If window does not exist yet, create it.  This is only called\r\n     when a window is already in use, or when output has been written during this\r\n     inflate call, but the end of the deflate stream has not been reached yet.\r\n     It is also called to create a window for dictionary data when a dictionary\r\n     is loaded.\r\n    \r\n     Providing output buffers larger than 32K to inflate() should provide a speed\r\n     advantage, since only the last 32K of output is copied to the sliding window\r\n     upon return from inflate(), and since all distances after the first 32K of\r\n     output will fall in the output data, making match copies simpler and faster.\r\n     The advantage may be dependent on the size of the processor's data caches.\r\n     */function updatewindow(strm,src,end,copy){var dist;var state=strm.state;/* if it hasn't been done already, allocate space for the window */if(state.window===null){state.wsize=1<<state.wbits;state.wnext=0;state.whave=0;state.window=new utils.Buf8(state.wsize);}/* copy state->wsize or less output bytes into the circular window */if(copy>=state.wsize){utils.arraySet(state.window,src,end-state.wsize,state.wsize,0);state.wnext=0;state.whave=state.wsize;}else{dist=state.wsize-state.wnext;if(dist>copy){dist=copy;}//zmemcpy(state->window + state->wnext, end - copy, dist);\nutils.arraySet(state.window,src,end-copy,dist,state.wnext);copy-=dist;if(copy){//zmemcpy(state->window, end - copy, copy);\nutils.arraySet(state.window,src,end-copy,copy,0);state.wnext=copy;state.whave=state.wsize;}else{state.wnext+=dist;if(state.wnext===state.wsize){state.wnext=0;}if(state.whave<state.wsize){state.whave+=dist;}}}return 0;}function inflate(strm,flush){var state;var input,output;// input/output buffers\nvar next;/* next input INDEX */var put;/* next output INDEX */var have,left;/* available input and output */var hold;/* bit buffer */var bits;/* bits in bit buffer */var _in,_out;/* save starting available input and output */var copy;/* number of stored or match bytes to copy */var from;/* where to copy match bytes from */var from_source;var here=0;/* current decoding table entry */var here_bits,here_op,here_val;// paked \"here\" denormalized (JS specific)\n//var last;                   /* parent table entry */\nvar last_bits,last_op,last_val;// paked \"last\" denormalized (JS specific)\nvar len;/* length to copy for repeats, bits to drop */var ret;/* return code */var hbuf=new utils.Buf8(4);/* buffer for gzip header crc calculation */var opts;var n;// temporary var for NEED_BITS\nvar order=/* permutation of code lengths */[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!strm||!strm.state||!strm.output||!strm.input&&strm.avail_in!==0){return Z_STREAM_ERROR;}state=strm.state;if(state.mode===TYPE){state.mode=TYPEDO;}/* skip check */ //--- LOAD() ---\nput=strm.next_out;output=strm.output;left=strm.avail_out;next=strm.next_in;input=strm.input;have=strm.avail_in;hold=state.hold;bits=state.bits;//---\n_in=have;_out=left;ret=Z_OK;inf_leave:// goto emulation\nfor(;;){switch(state.mode){case HEAD:if(state.wrap===0){state.mode=TYPEDO;break;}//=== NEEDBITS(16);\nwhile(bits<16){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nif(state.wrap&2&&hold===0x8b1f){/* gzip header */state.check=0/*crc32(0L, Z_NULL, 0)*/;//=== CRC2(state.check, hold);\nhbuf[0]=hold&0xff;hbuf[1]=hold>>>8&0xff;state.check=crc32(state.check,hbuf,2,0);//===//\n//=== INITBITS();\nhold=0;bits=0;//===//\nstate.mode=FLAGS;break;}state.flags=0;/* expect zlib header */if(state.head){state.head.done=false;}if(!(state.wrap&1)||/* check if zlib header allowed */(((hold&0xff/*BITS(8)*/)<<8)+(hold>>8))%31){strm.msg='incorrect header check';state.mode=BAD;break;}if((hold&0x0f/*BITS(4)*/)!==Z_DEFLATED){strm.msg='unknown compression method';state.mode=BAD;break;}//--- DROPBITS(4) ---//\nhold>>>=4;bits-=4;//---//\nlen=(hold&0x0f/*BITS(4)*/)+8;if(state.wbits===0){state.wbits=len;}else if(len>state.wbits){strm.msg='invalid window size';state.mode=BAD;break;}state.dmax=1<<len;//Tracev((stderr, \"inflate:   zlib header ok\\n\"));\nstrm.adler=state.check=1/*adler32(0L, Z_NULL, 0)*/;state.mode=hold&0x200?DICTID:TYPE;//=== INITBITS();\nhold=0;bits=0;//===//\nbreak;case FLAGS://=== NEEDBITS(16); */\nwhile(bits<16){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstate.flags=hold;if((state.flags&0xff)!==Z_DEFLATED){strm.msg='unknown compression method';state.mode=BAD;break;}if(state.flags&0xe000){strm.msg='unknown header flags set';state.mode=BAD;break;}if(state.head){state.head.text=hold>>8&1;}if(state.flags&0x0200){//=== CRC2(state.check, hold);\nhbuf[0]=hold&0xff;hbuf[1]=hold>>>8&0xff;state.check=crc32(state.check,hbuf,2,0);//===//\n}//=== INITBITS();\nhold=0;bits=0;//===//\nstate.mode=TIME;/* falls through */case TIME://=== NEEDBITS(32); */\nwhile(bits<32){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nif(state.head){state.head.time=hold;}if(state.flags&0x0200){//=== CRC4(state.check, hold)\nhbuf[0]=hold&0xff;hbuf[1]=hold>>>8&0xff;hbuf[2]=hold>>>16&0xff;hbuf[3]=hold>>>24&0xff;state.check=crc32(state.check,hbuf,4,0);//===\n}//=== INITBITS();\nhold=0;bits=0;//===//\nstate.mode=OS;/* falls through */case OS://=== NEEDBITS(16); */\nwhile(bits<16){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nif(state.head){state.head.xflags=hold&0xff;state.head.os=hold>>8;}if(state.flags&0x0200){//=== CRC2(state.check, hold);\nhbuf[0]=hold&0xff;hbuf[1]=hold>>>8&0xff;state.check=crc32(state.check,hbuf,2,0);//===//\n}//=== INITBITS();\nhold=0;bits=0;//===//\nstate.mode=EXLEN;/* falls through */case EXLEN:if(state.flags&0x0400){//=== NEEDBITS(16); */\nwhile(bits<16){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstate.length=hold;if(state.head){state.head.extra_len=hold;}if(state.flags&0x0200){//=== CRC2(state.check, hold);\nhbuf[0]=hold&0xff;hbuf[1]=hold>>>8&0xff;state.check=crc32(state.check,hbuf,2,0);//===//\n}//=== INITBITS();\nhold=0;bits=0;//===//\n}else if(state.head){state.head.extra=null/*Z_NULL*/;}state.mode=EXTRA;/* falls through */case EXTRA:if(state.flags&0x0400){copy=state.length;if(copy>have){copy=have;}if(copy){if(state.head){len=state.head.extra_len-state.length;if(!state.head.extra){// Use untyped array for more convenient processing later\nstate.head.extra=new Array(state.head.extra_len);}utils.arraySet(state.head.extra,input,next,// extra field is limited to 65536 bytes\n// - no need for additional size check\ncopy,/*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/len);//zmemcpy(state.head.extra + len, next,\n//        len + copy > state.head.extra_max ?\n//        state.head.extra_max - len : copy);\n}if(state.flags&0x0200){state.check=crc32(state.check,input,copy,next);}have-=copy;next+=copy;state.length-=copy;}if(state.length){break inf_leave;}}state.length=0;state.mode=NAME;/* falls through */case NAME:if(state.flags&0x0800){if(have===0){break inf_leave;}copy=0;do{// TODO: 2 or 1 bytes?\nlen=input[next+copy++];/* use constant limit because in js we should not preallocate memory */if(state.head&&len&&state.length<65536/*state.head.name_max*/){state.head.name+=String.fromCharCode(len);}}while(len&&copy<have);if(state.flags&0x0200){state.check=crc32(state.check,input,copy,next);}have-=copy;next+=copy;if(len){break inf_leave;}}else if(state.head){state.head.name=null;}state.length=0;state.mode=COMMENT;/* falls through */case COMMENT:if(state.flags&0x1000){if(have===0){break inf_leave;}copy=0;do{len=input[next+copy++];/* use constant limit because in js we should not preallocate memory */if(state.head&&len&&state.length<65536/*state.head.comm_max*/){state.head.comment+=String.fromCharCode(len);}}while(len&&copy<have);if(state.flags&0x0200){state.check=crc32(state.check,input,copy,next);}have-=copy;next+=copy;if(len){break inf_leave;}}else if(state.head){state.head.comment=null;}state.mode=HCRC;/* falls through */case HCRC:if(state.flags&0x0200){//=== NEEDBITS(16); */\nwhile(bits<16){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nif(hold!==(state.check&0xffff)){strm.msg='header crc mismatch';state.mode=BAD;break;}//=== INITBITS();\nhold=0;bits=0;//===//\n}if(state.head){state.head.hcrc=state.flags>>9&1;state.head.done=true;}strm.adler=state.check=0;state.mode=TYPE;break;case DICTID://=== NEEDBITS(32); */\nwhile(bits<32){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstrm.adler=state.check=zswap32(hold);//=== INITBITS();\nhold=0;bits=0;//===//\nstate.mode=DICT;/* falls through */case DICT:if(state.havedict===0){//--- RESTORE() ---\nstrm.next_out=put;strm.avail_out=left;strm.next_in=next;strm.avail_in=have;state.hold=hold;state.bits=bits;//---\nreturn Z_NEED_DICT;}strm.adler=state.check=1/*adler32(0L, Z_NULL, 0)*/;state.mode=TYPE;/* falls through */case TYPE:if(flush===Z_BLOCK||flush===Z_TREES){break inf_leave;}/* falls through */case TYPEDO:if(state.last){//--- BYTEBITS() ---//\nhold>>>=bits&7;bits-=bits&7;//---//\nstate.mode=CHECK;break;}//=== NEEDBITS(3); */\nwhile(bits<3){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstate.last=hold&0x01/*BITS(1)*/;//--- DROPBITS(1) ---//\nhold>>>=1;bits-=1;//---//\nswitch(hold&0x03/*BITS(2)*/){case 0:/* stored block */ //Tracev((stderr, \"inflate:     stored block%s\\n\",\n//        state.last ? \" (last)\" : \"\"));\nstate.mode=STORED;break;case 1:/* fixed block */fixedtables(state);//Tracev((stderr, \"inflate:     fixed codes block%s\\n\",\n//        state.last ? \" (last)\" : \"\"));\nstate.mode=LEN_;/* decode codes */if(flush===Z_TREES){//--- DROPBITS(2) ---//\nhold>>>=2;bits-=2;//---//\nbreak inf_leave;}break;case 2:/* dynamic block */ //Tracev((stderr, \"inflate:     dynamic codes block%s\\n\",\n//        state.last ? \" (last)\" : \"\"));\nstate.mode=TABLE;break;case 3:strm.msg='invalid block type';state.mode=BAD;}//--- DROPBITS(2) ---//\nhold>>>=2;bits-=2;//---//\nbreak;case STORED://--- BYTEBITS() ---// /* go to byte boundary */\nhold>>>=bits&7;bits-=bits&7;//---//\n//=== NEEDBITS(32); */\nwhile(bits<32){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nif((hold&0xffff)!==(hold>>>16^0xffff)){strm.msg='invalid stored block lengths';state.mode=BAD;break;}state.length=hold&0xffff;//Tracev((stderr, \"inflate:       stored length %u\\n\",\n//        state.length));\n//=== INITBITS();\nhold=0;bits=0;//===//\nstate.mode=COPY_;if(flush===Z_TREES){break inf_leave;}/* falls through */case COPY_:state.mode=COPY;/* falls through */case COPY:copy=state.length;if(copy){if(copy>have){copy=have;}if(copy>left){copy=left;}if(copy===0){break inf_leave;}//--- zmemcpy(put, next, copy); ---\nutils.arraySet(output,input,next,copy,put);//---//\nhave-=copy;next+=copy;left-=copy;put+=copy;state.length-=copy;break;}//Tracev((stderr, \"inflate:       stored end\\n\"));\nstate.mode=TYPE;break;case TABLE://=== NEEDBITS(14); */\nwhile(bits<14){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstate.nlen=(hold&0x1f/*BITS(5)*/)+257;//--- DROPBITS(5) ---//\nhold>>>=5;bits-=5;//---//\nstate.ndist=(hold&0x1f/*BITS(5)*/)+1;//--- DROPBITS(5) ---//\nhold>>>=5;bits-=5;//---//\nstate.ncode=(hold&0x0f/*BITS(4)*/)+4;//--- DROPBITS(4) ---//\nhold>>>=4;bits-=4;//---//\n//#ifndef PKZIP_BUG_WORKAROUND\nif(state.nlen>286||state.ndist>30){strm.msg='too many length or distance symbols';state.mode=BAD;break;}//#endif\n//Tracev((stderr, \"inflate:       table sizes ok\\n\"));\nstate.have=0;state.mode=LENLENS;/* falls through */case LENLENS:while(state.have<state.ncode){//=== NEEDBITS(3);\nwhile(bits<3){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstate.lens[order[state.have++]]=hold&0x07;//BITS(3);\n//--- DROPBITS(3) ---//\nhold>>>=3;bits-=3;//---//\n}while(state.have<19){state.lens[order[state.have++]]=0;}// We have separate tables & no pointers. 2 commented lines below not needed.\n//state.next = state.codes;\n//state.lencode = state.next;\n// Switch to use dynamic table\nstate.lencode=state.lendyn;state.lenbits=7;opts={bits:state.lenbits};ret=inflate_table(CODES,state.lens,0,19,state.lencode,0,state.work,opts);state.lenbits=opts.bits;if(ret){strm.msg='invalid code lengths set';state.mode=BAD;break;}//Tracev((stderr, \"inflate:       code lengths ok\\n\"));\nstate.have=0;state.mode=CODELENS;/* falls through */case CODELENS:while(state.have<state.nlen+state.ndist){for(;;){here=state.lencode[hold&(1<<state.lenbits)-1];/*BITS(state.lenbits)*/here_bits=here>>>24;here_op=here>>>16&0xff;here_val=here&0xffff;if(here_bits<=bits){break;}//--- PULLBYTE() ---//\nif(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;//---//\n}if(here_val<16){//--- DROPBITS(here.bits) ---//\nhold>>>=here_bits;bits-=here_bits;//---//\nstate.lens[state.have++]=here_val;}else{if(here_val===16){//=== NEEDBITS(here.bits + 2);\nn=here_bits+2;while(bits<n){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\n//--- DROPBITS(here.bits) ---//\nhold>>>=here_bits;bits-=here_bits;//---//\nif(state.have===0){strm.msg='invalid bit length repeat';state.mode=BAD;break;}len=state.lens[state.have-1];copy=3+(hold&0x03);//BITS(2);\n//--- DROPBITS(2) ---//\nhold>>>=2;bits-=2;//---//\n}else if(here_val===17){//=== NEEDBITS(here.bits + 3);\nn=here_bits+3;while(bits<n){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\n//--- DROPBITS(here.bits) ---//\nhold>>>=here_bits;bits-=here_bits;//---//\nlen=0;copy=3+(hold&0x07);//BITS(3);\n//--- DROPBITS(3) ---//\nhold>>>=3;bits-=3;//---//\n}else{//=== NEEDBITS(here.bits + 7);\nn=here_bits+7;while(bits<n){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\n//--- DROPBITS(here.bits) ---//\nhold>>>=here_bits;bits-=here_bits;//---//\nlen=0;copy=11+(hold&0x7f);//BITS(7);\n//--- DROPBITS(7) ---//\nhold>>>=7;bits-=7;//---//\n}if(state.have+copy>state.nlen+state.ndist){strm.msg='invalid bit length repeat';state.mode=BAD;break;}while(copy--){state.lens[state.have++]=len;}}}/* handle error breaks in while */if(state.mode===BAD){break;}/* check for end-of-block code (better have one) */if(state.lens[256]===0){strm.msg='invalid code -- missing end-of-block';state.mode=BAD;break;}/* build code tables -- note: do not change the lenbits or distbits\r\n               values here (9 and 6) without reading the comments in inftrees.h\r\n               concerning the ENOUGH constants, which depend on those values */state.lenbits=9;opts={bits:state.lenbits};ret=inflate_table(LENS,state.lens,0,state.nlen,state.lencode,0,state.work,opts);// We have separate tables & no pointers. 2 commented lines below not needed.\n// state.next_index = opts.table_index;\nstate.lenbits=opts.bits;// state.lencode = state.next;\nif(ret){strm.msg='invalid literal/lengths set';state.mode=BAD;break;}state.distbits=6;//state.distcode.copy(state.codes);\n// Switch to use dynamic table\nstate.distcode=state.distdyn;opts={bits:state.distbits};ret=inflate_table(DISTS,state.lens,state.nlen,state.ndist,state.distcode,0,state.work,opts);// We have separate tables & no pointers. 2 commented lines below not needed.\n// state.next_index = opts.table_index;\nstate.distbits=opts.bits;// state.distcode = state.next;\nif(ret){strm.msg='invalid distances set';state.mode=BAD;break;}//Tracev((stderr, 'inflate:       codes ok\\n'));\nstate.mode=LEN_;if(flush===Z_TREES){break inf_leave;}/* falls through */case LEN_:state.mode=LEN;/* falls through */case LEN:if(have>=6&&left>=258){//--- RESTORE() ---\nstrm.next_out=put;strm.avail_out=left;strm.next_in=next;strm.avail_in=have;state.hold=hold;state.bits=bits;//---\ninflate_fast(strm,_out);//--- LOAD() ---\nput=strm.next_out;output=strm.output;left=strm.avail_out;next=strm.next_in;input=strm.input;have=strm.avail_in;hold=state.hold;bits=state.bits;//---\nif(state.mode===TYPE){state.back=-1;}break;}state.back=0;for(;;){here=state.lencode[hold&(1<<state.lenbits)-1];/*BITS(state.lenbits)*/here_bits=here>>>24;here_op=here>>>16&0xff;here_val=here&0xffff;if(here_bits<=bits){break;}//--- PULLBYTE() ---//\nif(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;//---//\n}if(here_op&&(here_op&0xf0)===0){last_bits=here_bits;last_op=here_op;last_val=here_val;for(;;){here=state.lencode[last_val+((hold&(1<<last_bits+last_op)-1/*BITS(last.bits + last.op)*/)>>last_bits)];here_bits=here>>>24;here_op=here>>>16&0xff;here_val=here&0xffff;if(last_bits+here_bits<=bits){break;}//--- PULLBYTE() ---//\nif(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;//---//\n}//--- DROPBITS(last.bits) ---//\nhold>>>=last_bits;bits-=last_bits;//---//\nstate.back+=last_bits;}//--- DROPBITS(here.bits) ---//\nhold>>>=here_bits;bits-=here_bits;//---//\nstate.back+=here_bits;state.length=here_val;if(here_op===0){//Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n//        \"inflate:         literal '%c'\\n\" :\n//        \"inflate:         literal 0x%02x\\n\", here.val));\nstate.mode=LIT;break;}if(here_op&32){//Tracevv((stderr, \"inflate:         end of block\\n\"));\nstate.back=-1;state.mode=TYPE;break;}if(here_op&64){strm.msg='invalid literal/length code';state.mode=BAD;break;}state.extra=here_op&15;state.mode=LENEXT;/* falls through */case LENEXT:if(state.extra){//=== NEEDBITS(state.extra);\nn=state.extra;while(bits<n){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstate.length+=hold&(1<<state.extra)-1/*BITS(state.extra)*/;//--- DROPBITS(state.extra) ---//\nhold>>>=state.extra;bits-=state.extra;//---//\nstate.back+=state.extra;}//Tracevv((stderr, \"inflate:         length %u\\n\", state.length));\nstate.was=state.length;state.mode=DIST;/* falls through */case DIST:for(;;){here=state.distcode[hold&(1<<state.distbits)-1];/*BITS(state.distbits)*/here_bits=here>>>24;here_op=here>>>16&0xff;here_val=here&0xffff;if(here_bits<=bits){break;}//--- PULLBYTE() ---//\nif(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;//---//\n}if((here_op&0xf0)===0){last_bits=here_bits;last_op=here_op;last_val=here_val;for(;;){here=state.distcode[last_val+((hold&(1<<last_bits+last_op)-1/*BITS(last.bits + last.op)*/)>>last_bits)];here_bits=here>>>24;here_op=here>>>16&0xff;here_val=here&0xffff;if(last_bits+here_bits<=bits){break;}//--- PULLBYTE() ---//\nif(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;//---//\n}//--- DROPBITS(last.bits) ---//\nhold>>>=last_bits;bits-=last_bits;//---//\nstate.back+=last_bits;}//--- DROPBITS(here.bits) ---//\nhold>>>=here_bits;bits-=here_bits;//---//\nstate.back+=here_bits;if(here_op&64){strm.msg='invalid distance code';state.mode=BAD;break;}state.offset=here_val;state.extra=here_op&15;state.mode=DISTEXT;/* falls through */case DISTEXT:if(state.extra){//=== NEEDBITS(state.extra);\nn=state.extra;while(bits<n){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nstate.offset+=hold&(1<<state.extra)-1/*BITS(state.extra)*/;//--- DROPBITS(state.extra) ---//\nhold>>>=state.extra;bits-=state.extra;//---//\nstate.back+=state.extra;}//#ifdef INFLATE_STRICT\nif(state.offset>state.dmax){strm.msg='invalid distance too far back';state.mode=BAD;break;}//#endif\n//Tracevv((stderr, \"inflate:         distance %u\\n\", state.offset));\nstate.mode=MATCH;/* falls through */case MATCH:if(left===0){break inf_leave;}copy=_out-left;if(state.offset>copy){/* copy from window */copy=state.offset-copy;if(copy>state.whave){if(state.sane){strm.msg='invalid distance too far back';state.mode=BAD;break;}// (!) This block is disabled in zlib defaults,\n// don't enable it for binary compatibility\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n//          Trace((stderr, \"inflate.c too far\\n\"));\n//          copy -= state.whave;\n//          if (copy > state.length) { copy = state.length; }\n//          if (copy > left) { copy = left; }\n//          left -= copy;\n//          state.length -= copy;\n//          do {\n//            output[put++] = 0;\n//          } while (--copy);\n//          if (state.length === 0) { state.mode = LEN; }\n//          break;\n//#endif\n}if(copy>state.wnext){copy-=state.wnext;from=state.wsize-copy;}else{from=state.wnext-copy;}if(copy>state.length){copy=state.length;}from_source=state.window;}else{/* copy from output */from_source=output;from=put-state.offset;copy=state.length;}if(copy>left){copy=left;}left-=copy;state.length-=copy;do{output[put++]=from_source[from++];}while(--copy);if(state.length===0){state.mode=LEN;}break;case LIT:if(left===0){break inf_leave;}output[put++]=state.length;left--;state.mode=LEN;break;case CHECK:if(state.wrap){//=== NEEDBITS(32);\nwhile(bits<32){if(have===0){break inf_leave;}have--;// Use '|' instead of '+' to make sure that result is signed\nhold|=input[next++]<<bits;bits+=8;}//===//\n_out-=left;strm.total_out+=_out;state.total+=_out;if(_out){strm.adler=state.check=/*UPDATE(state.check, put - _out, _out);*/state.flags?crc32(state.check,output,_out,put-_out):adler32(state.check,output,_out,put-_out);}_out=left;// NB: crc32 stored as signed 32-bit int, zswap32 returns signed too\nif((state.flags?hold:zswap32(hold))!==state.check){strm.msg='incorrect data check';state.mode=BAD;break;}//=== INITBITS();\nhold=0;bits=0;//===//\n//Tracev((stderr, \"inflate:   check matches trailer\\n\"));\n}state.mode=LENGTH;/* falls through */case LENGTH:if(state.wrap&&state.flags){//=== NEEDBITS(32);\nwhile(bits<32){if(have===0){break inf_leave;}have--;hold+=input[next++]<<bits;bits+=8;}//===//\nif(hold!==(state.total&0xffffffff)){strm.msg='incorrect length check';state.mode=BAD;break;}//=== INITBITS();\nhold=0;bits=0;//===//\n//Tracev((stderr, \"inflate:   length matches trailer\\n\"));\n}state.mode=DONE;/* falls through */case DONE:ret=Z_STREAM_END;break inf_leave;case BAD:ret=Z_DATA_ERROR;break inf_leave;case MEM:return Z_MEM_ERROR;case SYNC:/* falls through */default:return Z_STREAM_ERROR;}}// inf_leave <- here is real place for \"goto inf_leave\", emulated via \"break inf_leave\"\n/*\r\n         Return from inflate(), updating the total counts and the check value.\r\n         If there was no progress during the inflate() call, return a buffer\r\n         error.  Call updatewindow() to create and/or update the window state.\r\n         Note: a memory error from inflate() is non-recoverable.\r\n       */ //--- RESTORE() ---\nstrm.next_out=put;strm.avail_out=left;strm.next_in=next;strm.avail_in=have;state.hold=hold;state.bits=bits;//---\nif(state.wsize||_out!==strm.avail_out&&state.mode<BAD&&(state.mode<CHECK||flush!==Z_FINISH)){if(updatewindow(strm,strm.output,strm.next_out,_out-strm.avail_out)){state.mode=MEM;return Z_MEM_ERROR;}}_in-=strm.avail_in;_out-=strm.avail_out;strm.total_in+=_in;strm.total_out+=_out;state.total+=_out;if(state.wrap&&_out){strm.adler=state.check=/*UPDATE(state.check, strm.next_out - _out, _out);*/state.flags?crc32(state.check,output,_out,strm.next_out-_out):adler32(state.check,output,_out,strm.next_out-_out);}strm.data_type=state.bits+(state.last?64:0)+(state.mode===TYPE?128:0)+(state.mode===LEN_||state.mode===COPY_?256:0);if((_in===0&&_out===0||flush===Z_FINISH)&&ret===Z_OK){ret=Z_BUF_ERROR;}return ret;}function inflateEnd(strm){if(!strm||!strm.state/*|| strm->zfree == (free_func)0*/){return Z_STREAM_ERROR;}var state=strm.state;if(state.window){state.window=null;}strm.state=null;return Z_OK;}function inflateGetHeader(strm,head){var state;/* check state */if(!strm||!strm.state){return Z_STREAM_ERROR;}state=strm.state;if((state.wrap&2)===0){return Z_STREAM_ERROR;}/* save header structure */state.head=head;head.done=false;return Z_OK;}function inflateSetDictionary(strm,dictionary){var dictLength=dictionary.length;var state;var dictid;var ret;/* check state */if(!strm/* == Z_NULL */||!strm.state/* == Z_NULL */){return Z_STREAM_ERROR;}state=strm.state;if(state.wrap!==0&&state.mode!==DICT){return Z_STREAM_ERROR;}/* check for correct dictionary identifier */if(state.mode===DICT){dictid=1;/* adler32(0, null, 0)*/ /* dictid = adler32(dictid, dictionary, dictLength); */dictid=adler32(dictid,dictionary,dictLength,0);if(dictid!==state.check){return Z_DATA_ERROR;}}/* copy dictionary to window using updatewindow(), which will amend the\r\n       existing dictionary if appropriate */ret=updatewindow(strm,dictionary,dictLength,dictLength);if(ret){state.mode=MEM;return Z_MEM_ERROR;}state.havedict=1;// Tracev((stderr, \"inflate:   dictionary set\\n\"));\nreturn Z_OK;}exports.inflateReset=inflateReset;exports.inflateReset2=inflateReset2;exports.inflateResetKeep=inflateResetKeep;exports.inflateInit=inflateInit;exports.inflateInit2=inflateInit2;exports.inflate=inflate;exports.inflateEnd=inflateEnd;exports.inflateGetHeader=inflateGetHeader;exports.inflateSetDictionary=inflateSetDictionary;exports.inflateInfo='pako inflate (from Nodeca project)';/* Not implemented\r\n    exports.inflateCopy = inflateCopy;\r\n    exports.inflateGetDictionary = inflateGetDictionary;\r\n    exports.inflateMark = inflateMark;\r\n    exports.inflatePrime = inflatePrime;\r\n    exports.inflateSync = inflateSync;\r\n    exports.inflateSyncPoint = inflateSyncPoint;\r\n    exports.inflateUndermine = inflateUndermine;\r\n    */ /***/},/* 274 */ /***/function(module,exports,__webpack_require__){\"use strict\";// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n// See state defs from inflate.js\nvar BAD=30;/* got a data error -- remain here until reset */var TYPE=12;/* i: waiting for type bits, including last-flag bit */ /*\r\n       Decode literal, length, and distance codes and write out the resulting\r\n       literal and match bytes until either not enough input or output is\r\n       available, an end-of-block is encountered, or a data error is encountered.\r\n       When large enough input and output buffers are supplied to inflate(), for\r\n       example, a 16K input buffer and a 64K output buffer, more than 95% of the\r\n       inflate execution time is spent in this routine.\r\n    \r\n       Entry assumptions:\r\n    \r\n            state.mode === LEN\r\n            strm.avail_in >= 6\r\n            strm.avail_out >= 258\r\n            start >= strm.avail_out\r\n            state.bits < 8\r\n    \r\n       On return, state.mode is one of:\r\n    \r\n            LEN -- ran out of enough output space or enough available input\r\n            TYPE -- reached end of block code, inflate() to interpret next block\r\n            BAD -- error in block data\r\n    \r\n       Notes:\r\n    \r\n        - The maximum input bits used by a length/distance pair is 15 bits for the\r\n          length code, 5 bits for the length extra, 15 bits for the distance code,\r\n          and 13 bits for the distance extra.  This totals 48 bits, or six bytes.\r\n          Therefore if strm.avail_in >= 6, then there is enough input to avoid\r\n          checking for available input while decoding.\r\n    \r\n        - The maximum bytes that a single length/distance pair can output is 258\r\n          bytes, which is the maximum length that can be coded.  inflate_fast()\r\n          requires strm.avail_out >= 258 for each loop to avoid checking for\r\n          output space.\r\n     */module.exports=function inflate_fast(strm,start){var state;var _in;/* local strm.input */var last;/* have enough input while in < last */var _out;/* local strm.output */var beg;/* inflate()'s initial strm.output */var end;/* while out < end, enough space available */ //#ifdef INFLATE_STRICT\nvar dmax;/* maximum distance from zlib header */ //#endif\nvar wsize;/* window size or zero if not using window */var whave;/* valid bytes in the window */var wnext;/* window write index */ // Use `s_window` instead `window`, avoid conflict with instrumentation tools\nvar s_window;/* allocated sliding window, if wsize != 0 */var hold;/* local strm.hold */var bits;/* local strm.bits */var lcode;/* local strm.lencode */var dcode;/* local strm.distcode */var lmask;/* mask for first level of length codes */var dmask;/* mask for first level of distance codes */var here;/* retrieved table entry */var op;/* code bits, operation, extra bits, or */ /*  window position, window bytes to copy */var len;/* match length, unused bytes */var dist;/* match distance */var from;/* where to copy match from */var from_source;var input,output;// JS specific, because we have no pointers\n/* copy state to local variables */state=strm.state;//here = state.here;\n_in=strm.next_in;input=strm.input;last=_in+(strm.avail_in-5);_out=strm.next_out;output=strm.output;beg=_out-(start-strm.avail_out);end=_out+(strm.avail_out-257);//#ifdef INFLATE_STRICT\ndmax=state.dmax;//#endif\nwsize=state.wsize;whave=state.whave;wnext=state.wnext;s_window=state.window;hold=state.hold;bits=state.bits;lcode=state.lencode;dcode=state.distcode;lmask=(1<<state.lenbits)-1;dmask=(1<<state.distbits)-1;/* decode literals and length/distances until end-of-block or not enough\r\n         input data or output space */top:do{if(bits<15){hold+=input[_in++]<<bits;bits+=8;hold+=input[_in++]<<bits;bits+=8;}here=lcode[hold&lmask];dolen:for(;;){// Goto emulation\nop=here>>>24/*here.bits*/;hold>>>=op;bits-=op;op=here>>>16&0xff/*here.op*/;if(op===0){/* literal */ //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n//        \"inflate:         literal '%c'\\n\" :\n//        \"inflate:         literal 0x%02x\\n\", here.val));\noutput[_out++]=here&0xffff/*here.val*/;}else if(op&16){/* length base */len=here&0xffff/*here.val*/;op&=15;/* number of extra bits */if(op){if(bits<op){hold+=input[_in++]<<bits;bits+=8;}len+=hold&(1<<op)-1;hold>>>=op;bits-=op;}//Tracevv((stderr, \"inflate:         length %u\\n\", len));\nif(bits<15){hold+=input[_in++]<<bits;bits+=8;hold+=input[_in++]<<bits;bits+=8;}here=dcode[hold&dmask];dodist:for(;;){// goto emulation\nop=here>>>24/*here.bits*/;hold>>>=op;bits-=op;op=here>>>16&0xff/*here.op*/;if(op&16){/* distance base */dist=here&0xffff/*here.val*/;op&=15;/* number of extra bits */if(bits<op){hold+=input[_in++]<<bits;bits+=8;if(bits<op){hold+=input[_in++]<<bits;bits+=8;}}dist+=hold&(1<<op)-1;//#ifdef INFLATE_STRICT\nif(dist>dmax){strm.msg='invalid distance too far back';state.mode=BAD;break top;}//#endif\nhold>>>=op;bits-=op;//Tracevv((stderr, \"inflate:         distance %u\\n\", dist));\nop=_out-beg;/* max distance in output */if(dist>op){/* see if copy from window */op=dist-op;/* distance back in window */if(op>whave){if(state.sane){strm.msg='invalid distance too far back';state.mode=BAD;break top;}// (!) This block is disabled in zlib defaults,\n// don't enable it for binary compatibility\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n//                if (len <= op - whave) {\n//                  do {\n//                    output[_out++] = 0;\n//                  } while (--len);\n//                  continue top;\n//                }\n//                len -= op - whave;\n//                do {\n//                  output[_out++] = 0;\n//                } while (--op > whave);\n//                if (op === 0) {\n//                  from = _out - dist;\n//                  do {\n//                    output[_out++] = output[from++];\n//                  } while (--len);\n//                  continue top;\n//                }\n//#endif\n}from=0;// window index\nfrom_source=s_window;if(wnext===0){/* very common case */from+=wsize-op;if(op<len){/* some from window */len-=op;do{output[_out++]=s_window[from++];}while(--op);from=_out-dist;/* rest from output */from_source=output;}}else if(wnext<op){/* wrap around window */from+=wsize+wnext-op;op-=wnext;if(op<len){/* some from end of window */len-=op;do{output[_out++]=s_window[from++];}while(--op);from=0;if(wnext<len){/* some from start of window */op=wnext;len-=op;do{output[_out++]=s_window[from++];}while(--op);from=_out-dist;/* rest from output */from_source=output;}}}else{/* contiguous in window */from+=wnext-op;if(op<len){/* some from window */len-=op;do{output[_out++]=s_window[from++];}while(--op);from=_out-dist;/* rest from output */from_source=output;}}while(len>2){output[_out++]=from_source[from++];output[_out++]=from_source[from++];output[_out++]=from_source[from++];len-=3;}if(len){output[_out++]=from_source[from++];if(len>1){output[_out++]=from_source[from++];}}}else{from=_out-dist;/* copy direct from output */do{/* minimum length is three */output[_out++]=output[from++];output[_out++]=output[from++];output[_out++]=output[from++];len-=3;}while(len>2);if(len){output[_out++]=output[from++];if(len>1){output[_out++]=output[from++];}}}}else if((op&64)===0){/* 2nd level distance code */here=dcode[(here&0xffff/*here.val*/)+(hold&(1<<op)-1)];continue dodist;}else{strm.msg='invalid distance code';state.mode=BAD;break top;}break;// need to emulate goto via \"continue\"\n}}else if((op&64)===0){/* 2nd level length code */here=lcode[(here&0xffff/*here.val*/)+(hold&(1<<op)-1)];continue dolen;}else if(op&32){/* end-of-block */ //Tracevv((stderr, \"inflate:         end of block\\n\"));\nstate.mode=TYPE;break top;}else{strm.msg='invalid literal/length code';state.mode=BAD;break top;}break;// need to emulate goto via \"continue\"\n}}while(_in<last&&_out<end);/* return unused bytes (on entry, bits < 8, so in won't go too far back) */len=bits>>3;_in-=len;bits-=len<<3;hold&=(1<<bits)-1;/* update state and return */strm.next_in=_in;strm.next_out=_out;strm.avail_in=_in<last?5+(last-_in):5-(_in-last);strm.avail_out=_out<end?257+(end-_out):257-(_out-end);state.hold=hold;state.bits=bits;return;};/***/},/* 275 */ /***/function(module,exports,__nested_webpack_require_3757661__){\"use strict\";// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nvar utils=__nested_webpack_require_3757661__(71);var MAXBITS=15;var ENOUGH_LENS=852;var ENOUGH_DISTS=592;//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\nvar CODES=0;var LENS=1;var DISTS=2;var lbase=[/* Length codes 257..285 base */3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0];var lext=[/* Length codes 257..285 extra */16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78];var dbase=[/* Distance codes 0..29 base */1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0];var dext=[/* Distance codes 0..29 extra */16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];module.exports=function inflate_table(type,lens,lens_index,codes,table,table_index,work,opts){var bits=opts.bits;//here = opts.here; /* table entry for duplication */\nvar len=0;/* a code's length in bits */var sym=0;/* index of code symbols */var min=0,max=0;/* minimum and maximum code lengths */var root=0;/* number of index bits for root table */var curr=0;/* number of index bits for current table */var drop=0;/* code bits to drop for sub-table */var left=0;/* number of prefix codes available */var used=0;/* code entries in table used */var huff=0;/* Huffman code */var incr;/* for incrementing code, index */var fill;/* index for replicating entries */var low;/* low bits for current root entry */var mask;/* mask for low root bits */var next;/* next available space in table */var base=null;/* base value table to use */var base_index=0;//  var shoextra;    /* extra bits table to use */\nvar end;/* use base and extra for symbol > end */var count=new utils.Buf16(MAXBITS+1);//[MAXBITS+1];    /* number of codes of each length */\nvar offs=new utils.Buf16(MAXBITS+1);//[MAXBITS+1];     /* offsets in table for each length */\nvar extra=null;var extra_index=0;var here_bits,here_op,here_val;/*\r\n       Process a set of code lengths to create a canonical Huffman code.  The\r\n       code lengths are lens[0..codes-1].  Each length corresponds to the\r\n       symbols 0..codes-1.  The Huffman code is generated by first sorting the\r\n       symbols by length from short to long, and retaining the symbol order\r\n       for codes with equal lengths.  Then the code starts with all zero bits\r\n       for the first code of the shortest length, and the codes are integer\r\n       increments for the same length, and zeros are appended as the length\r\n       increases.  For the deflate format, these bits are stored backwards\r\n       from their more natural integer increment ordering, and so when the\r\n       decoding tables are built in the large loop below, the integer codes\r\n       are incremented backwards.\r\n    \r\n       This routine assumes, but does not check, that all of the entries in\r\n       lens[] are in the range 0..MAXBITS.  The caller must assure this.\r\n       1..MAXBITS is interpreted as that code length.  zero means that that\r\n       symbol does not occur in this code.\r\n    \r\n       The codes are sorted by computing a count of codes for each length,\r\n       creating from that a table of starting indices for each length in the\r\n       sorted table, and then entering the symbols in order in the sorted\r\n       table.  The sorted table is work[], with that space being provided by\r\n       the caller.\r\n    \r\n       The length counts are used for other purposes as well, i.e. finding\r\n       the minimum and maximum length codes, determining if there are any\r\n       codes at all, checking for a valid set of lengths, and looking ahead\r\n       at length counts to determine sub-table sizes when building the\r\n       decoding tables.\r\n       */ /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */for(len=0;len<=MAXBITS;len++){count[len]=0;}for(sym=0;sym<codes;sym++){count[lens[lens_index+sym]]++;}/* bound code lengths, force root to be within code lengths */root=bits;for(max=MAXBITS;max>=1;max--){if(count[max]!==0){break;}}if(root>max){root=max;}if(max===0){/* no symbols to code at all */ //table.op[opts.table_index] = 64;  //here.op = (var char)64;    /* invalid code marker */\n//table.bits[opts.table_index] = 1;   //here.bits = (var char)1;\n//table.val[opts.table_index++] = 0;   //here.val = (var short)0;\ntable[table_index++]=1<<24|64<<16|0;//table.op[opts.table_index] = 64;\n//table.bits[opts.table_index] = 1;\n//table.val[opts.table_index++] = 0;\ntable[table_index++]=1<<24|64<<16|0;opts.bits=1;return 0;/* no symbols, but wait for decoding to report error */}for(min=1;min<max;min++){if(count[min]!==0){break;}}if(root<min){root=min;}/* check for an over-subscribed or incomplete set of lengths */left=1;for(len=1;len<=MAXBITS;len++){left<<=1;left-=count[len];if(left<0){return-1;}/* over-subscribed */}if(left>0&&(type===CODES||max!==1)){return-1;/* incomplete set */}/* generate offsets into symbol table for each length for sorting */offs[1]=0;for(len=1;len<MAXBITS;len++){offs[len+1]=offs[len]+count[len];}/* sort symbols by length, by symbol order within each length */for(sym=0;sym<codes;sym++){if(lens[lens_index+sym]!==0){work[offs[lens[lens_index+sym]]++]=sym;}}/*\r\n       Create and fill in decoding tables.  In this loop, the table being\r\n       filled is at next and has curr index bits.  The code being used is huff\r\n       with length len.  That code is converted to an index by dropping drop\r\n       bits off of the bottom.  For codes where len is less than drop + curr,\r\n       those top drop + curr - len bits are incremented through all values to\r\n       fill the table with replicated entries.\r\n    \r\n       root is the number of index bits for the root table.  When len exceeds\r\n       root, sub-tables are created pointed to by the root entry with an index\r\n       of the low root bits of huff.  This is saved in low to check for when a\r\n       new sub-table should be started.  drop is zero when the root table is\r\n       being filled, and drop is root when sub-tables are being filled.\r\n    \r\n       When a new sub-table is needed, it is necessary to look ahead in the\r\n       code lengths to determine what size sub-table is needed.  The length\r\n       counts are used for this, and so count[] is decremented as codes are\r\n       entered in the tables.\r\n    \r\n       used keeps track of how many table entries have been allocated from the\r\n       provided *table space.  It is checked for LENS and DIST tables against\r\n       the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in\r\n       the initial root table size constants.  See the comments in inftrees.h\r\n       for more information.\r\n    \r\n       sym increments through all symbols, and the loop terminates when\r\n       all codes of length max, i.e. all codes, have been processed.  This\r\n       routine permits incomplete codes, so another loop after this one fills\r\n       in the rest of the decoding tables with invalid code markers.\r\n       */ /* set up for code type */ // poor man optimization - use if-else instead of switch,\n// to avoid deopts in old v8\nif(type===CODES){base=extra=work;/* dummy value--not used */end=19;}else if(type===LENS){base=lbase;base_index-=257;extra=lext;extra_index-=257;end=256;}else{/* DISTS */base=dbase;extra=dext;end=-1;}/* initialize opts for loop */huff=0;/* starting code */sym=0;/* starting code symbol */len=min;/* starting code length */next=table_index;/* current table to fill in */curr=root;/* current table index bits */drop=0;/* current bits to drop from code for index */low=-1;/* trigger new sub-table when len > root */used=1<<root;/* use root table entries */mask=used-1;/* mask for comparing low */ /* check available table space */if(type===LENS&&used>ENOUGH_LENS||type===DISTS&&used>ENOUGH_DISTS){return 1;}/* process all codes and make table entries */for(;;){/* create table entry */here_bits=len-drop;if(work[sym]<end){here_op=0;here_val=work[sym];}else if(work[sym]>end){here_op=extra[extra_index+work[sym]];here_val=base[base_index+work[sym]];}else{here_op=32+64;/* end of block */here_val=0;}/* replicate for those indices with low len bits equal to huff */incr=1<<len-drop;fill=1<<curr;min=fill;/* save offset to next table */do{fill-=incr;table[next+(huff>>drop)+fill]=here_bits<<24|here_op<<16|here_val|0;}while(fill!==0);/* backwards increment the len-bit code huff */incr=1<<len-1;while(huff&incr){incr>>=1;}if(incr!==0){huff&=incr-1;huff+=incr;}else{huff=0;}/* go to next symbol, update count, len */sym++;if(--count[len]===0){if(len===max){break;}len=lens[lens_index+work[sym]];}/* create new sub-table if needed */if(len>root&&(huff&mask)!==low){/* if first time, transition to sub-tables */if(drop===0){drop=root;}/* increment past last table */next+=min;/* here min is 1 << curr */ /* determine length of next table */curr=len-drop;left=1<<curr;while(curr+drop<max){left-=count[curr+drop];if(left<=0){break;}curr++;left<<=1;}/* check for enough space */used+=1<<curr;if(type===LENS&&used>ENOUGH_LENS||type===DISTS&&used>ENOUGH_DISTS){return 1;}/* point entry in root table to sub-table */low=huff&mask;/*table.op[low] = curr;\r\n          table.bits[low] = root;\r\n          table.val[low] = next - opts.table_index;*/table[low]=root<<24|curr<<16|next-table_index|0;}}/* fill in remaining table entry if code is incomplete (guaranteed to have\r\n       at most one remaining entry, since if the code is incomplete, the\r\n       maximum code length that was allowed to get this far is one bit) */if(huff!==0){//table.op[next + huff] = 64;            /* invalid code marker */\n//table.bits[next + huff] = len - drop;\n//table.val[next + huff] = 0;\ntable[next+huff]=len-drop<<24|64<<16|0;}/* set return parameters */ //opts.table_index += used;\nopts.bits=root;return 0;};/***/},/* 276 */ /***/function(module,exports,__webpack_require__){\"use strict\";// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n//   claim that you wrote the original software. If you use this software\n//   in a product, an acknowledgment in the product documentation would be\n//   appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n//   misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\nmodule.exports={/* Allowed flush values; see deflate() and inflate() below for details */Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,/* Return codes for the compression/decompression functions. Negative values\r\n      * are errors, positive values are used for special but normal events.\r\n      */Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,//Z_MEM_ERROR:     -4,\nZ_BUF_ERROR:-5,//Z_VERSION_ERROR: -6,\n/* compression levels */Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,/* Possible values of the data_type field (though see inflate()) */Z_BINARY:0,Z_TEXT:1,//Z_ASCII:                1, // = Z_TEXT (deprecated)\nZ_UNKNOWN:2,/* The deflate compression method */Z_DEFLATED:8//Z_NULL:                 null // Use -1 or null inline, depending on var type\n};/***/},/* 277 */ /***/function(module,exports,__nested_webpack_require_3770398__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3770398__(1),__nested_webpack_require_3770398__(72),__nested_webpack_require_3770398__(278),__nested_webpack_require_3770398__(279),__nested_webpack_require_3770398__(47),__nested_webpack_require_3770398__(48),__nested_webpack_require_3770398__(105),__nested_webpack_require_3770398__(174),__nested_webpack_require_3770398__(280),__nested_webpack_require_3770398__(175),__nested_webpack_require_3770398__(281),__nested_webpack_require_3770398__(282),__nested_webpack_require_3770398__(283),__nested_webpack_require_3770398__(106),__nested_webpack_require_3770398__(284),__nested_webpack_require_3770398__(33),__nested_webpack_require_3770398__(6),__nested_webpack_require_3770398__(285),__nested_webpack_require_3770398__(286),__nested_webpack_require_3770398__(287),__nested_webpack_require_3770398__(288),__nested_webpack_require_3770398__(289),__nested_webpack_require_3770398__(290),__nested_webpack_require_3770398__(291),__nested_webpack_require_3770398__(292),__nested_webpack_require_3770398__(293),__nested_webpack_require_3770398__(294),__nested_webpack_require_3770398__(295),__nested_webpack_require_3770398__(296),__nested_webpack_require_3770398__(297),__nested_webpack_require_3770398__(298),__nested_webpack_require_3770398__(299),__nested_webpack_require_3770398__(300));}else{}})(this,function(CryptoJS){return CryptoJS;});/***/},/* 278 */ /***/function(module,exports,__nested_webpack_require_3771419__){;(function(root,factory){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3771419__(1));}else{}})(this,function(CryptoJS){(function(){// Check if typed arrays are supported\nif(typeof ArrayBuffer!='function'){return;}// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var WordArray=C_lib.WordArray;// Reference original init\nvar superInit=WordArray.init;// Augment WordArray.init to handle typed arrays\nvar subInit=WordArray.init=function(typedArray){// Convert buffers to uint8\nif(typedArray instanceof ArrayBuffer){typedArray=new Uint8Array(typedArray);}// Convert other array views to uint8\nif(typedArray instanceof Int8Array||typeof Uint8ClampedArray!==\"undefined\"&&typedArray instanceof Uint8ClampedArray||typedArray instanceof Int16Array||typedArray instanceof Uint16Array||typedArray instanceof Int32Array||typedArray instanceof Uint32Array||typedArray instanceof Float32Array||typedArray instanceof Float64Array){typedArray=new Uint8Array(typedArray.buffer,typedArray.byteOffset,typedArray.byteLength);}// Handle Uint8Array\nif(typedArray instanceof Uint8Array){// Shortcut\nvar typedArrayByteLength=typedArray.byteLength;// Extract bytes\nvar words=[];for(var i=0;i<typedArrayByteLength;i++){words[i>>>2]|=typedArray[i]<<24-i%4*8;}// Initialize this word array\nsuperInit.call(this,words,typedArrayByteLength);}else{// Else call normal init\nsuperInit.apply(this,arguments);}};subInit.prototype=WordArray;})();return CryptoJS.lib.WordArray;});/***/},/* 279 */ /***/function(module,exports,__nested_webpack_require_3772938__){;(function(root,factory){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3772938__(1));}else{}})(this,function(CryptoJS){(function(){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var WordArray=C_lib.WordArray;var C_enc=C.enc;/**\r\n             * UTF-16 BE encoding strategy.\r\n             */var Utf16BE=C_enc.Utf16=C_enc.Utf16BE={/**\r\n                 * Converts a word array to a UTF-16 BE string.\r\n                 *\r\n                 * @param {WordArray} wordArray The word array.\r\n                 *\r\n                 * @return {string} The UTF-16 BE string.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);\r\n                 */stringify:function(wordArray){// Shortcuts\nvar words=wordArray.words;var sigBytes=wordArray.sigBytes;// Convert\nvar utf16Chars=[];for(var i=0;i<sigBytes;i+=2){var codePoint=words[i>>>2]>>>16-i%4*8&0xffff;utf16Chars.push(String.fromCharCode(codePoint));}return utf16Chars.join('');},/**\r\n                 * Converts a UTF-16 BE string to a word array.\r\n                 *\r\n                 * @param {string} utf16Str The UTF-16 BE string.\r\n                 *\r\n                 * @return {WordArray} The word array.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var wordArray = CryptoJS.enc.Utf16.parse(utf16String);\r\n                 */parse:function(utf16Str){// Shortcut\nvar utf16StrLength=utf16Str.length;// Convert\nvar words=[];for(var i=0;i<utf16StrLength;i++){words[i>>>1]|=utf16Str.charCodeAt(i)<<16-i%2*16;}return WordArray.create(words,utf16StrLength*2);}};/**\r\n             * UTF-16 LE encoding strategy.\r\n             */C_enc.Utf16LE={/**\r\n                 * Converts a word array to a UTF-16 LE string.\r\n                 *\r\n                 * @param {WordArray} wordArray The word array.\r\n                 *\r\n                 * @return {string} The UTF-16 LE string.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);\r\n                 */stringify:function(wordArray){// Shortcuts\nvar words=wordArray.words;var sigBytes=wordArray.sigBytes;// Convert\nvar utf16Chars=[];for(var i=0;i<sigBytes;i+=2){var codePoint=swapEndian(words[i>>>2]>>>16-i%4*8&0xffff);utf16Chars.push(String.fromCharCode(codePoint));}return utf16Chars.join('');},/**\r\n                 * Converts a UTF-16 LE string to a word array.\r\n                 *\r\n                 * @param {string} utf16Str The UTF-16 LE string.\r\n                 *\r\n                 * @return {WordArray} The word array.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);\r\n                 */parse:function(utf16Str){// Shortcut\nvar utf16StrLength=utf16Str.length;// Convert\nvar words=[];for(var i=0;i<utf16StrLength;i++){words[i>>>1]|=swapEndian(utf16Str.charCodeAt(i)<<16-i%2*16);}return WordArray.create(words,utf16StrLength*2);}};function swapEndian(word){return word<<8&0xff00ff00|word>>>8&0x00ff00ff;}})();return CryptoJS.enc.Utf16;});/***/},/* 280 */ /***/function(module,exports,__nested_webpack_require_3776381__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3776381__(1),__nested_webpack_require_3776381__(174));}else{}})(this,function(CryptoJS){(function(){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var WordArray=C_lib.WordArray;var C_algo=C.algo;var SHA256=C_algo.SHA256;/**\r\n             * SHA-224 hash algorithm.\r\n             */var SHA224=C_algo.SHA224=SHA256.extend({_doReset:function(){this._hash=new WordArray.init([0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]);},_doFinalize:function(){var hash=SHA256._doFinalize.call(this);hash.sigBytes-=4;return hash;}});/**\r\n             * Shortcut function to the hasher's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             *\r\n             * @return {WordArray} The hash.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hash = CryptoJS.SHA224('message');\r\n             *     var hash = CryptoJS.SHA224(wordArray);\r\n             */C.SHA224=SHA256._createHelper(SHA224);/**\r\n             * Shortcut function to the HMAC's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             * @param {WordArray|string} key The secret key.\r\n             *\r\n             * @return {WordArray} The HMAC.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hmac = CryptoJS.HmacSHA224(message, key);\r\n             */C.HmacSHA224=SHA256._createHmacHelper(SHA224);})();return CryptoJS.SHA224;});/***/},/* 281 */ /***/function(module,exports,__nested_webpack_require_3778108__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3778108__(1),__nested_webpack_require_3778108__(72),__nested_webpack_require_3778108__(175));}else{}})(this,function(CryptoJS){(function(){// Shortcuts\nvar C=CryptoJS;var C_x64=C.x64;var X64Word=C_x64.Word;var X64WordArray=C_x64.WordArray;var C_algo=C.algo;var SHA512=C_algo.SHA512;/**\r\n             * SHA-384 hash algorithm.\r\n             */var SHA384=C_algo.SHA384=SHA512.extend({_doReset:function(){this._hash=new X64WordArray.init([new X64Word.init(0xcbbb9d5d,0xc1059ed8),new X64Word.init(0x629a292a,0x367cd507),new X64Word.init(0x9159015a,0x3070dd17),new X64Word.init(0x152fecd8,0xf70e5939),new X64Word.init(0x67332667,0xffc00b31),new X64Word.init(0x8eb44a87,0x68581511),new X64Word.init(0xdb0c2e0d,0x64f98fa7),new X64Word.init(0x47b5481d,0xbefa4fa4)]);},_doFinalize:function(){var hash=SHA512._doFinalize.call(this);hash.sigBytes-=16;return hash;}});/**\r\n             * Shortcut function to the hasher's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             *\r\n             * @return {WordArray} The hash.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hash = CryptoJS.SHA384('message');\r\n             *     var hash = CryptoJS.SHA384(wordArray);\r\n             */C.SHA384=SHA512._createHelper(SHA384);/**\r\n             * Shortcut function to the HMAC's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             * @param {WordArray|string} key The secret key.\r\n             *\r\n             * @return {WordArray} The HMAC.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hmac = CryptoJS.HmacSHA384(message, key);\r\n             */C.HmacSHA384=SHA512._createHmacHelper(SHA384);})();return CryptoJS.SHA384;});/***/},/* 282 */ /***/function(module,exports,__nested_webpack_require_3780121__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3780121__(1),__nested_webpack_require_3780121__(72));}else{}})(this,function(CryptoJS){(function(Math){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var WordArray=C_lib.WordArray;var Hasher=C_lib.Hasher;var C_x64=C.x64;var X64Word=C_x64.Word;var C_algo=C.algo;// Constants tables\nvar RHO_OFFSETS=[];var PI_INDEXES=[];var ROUND_CONSTANTS=[];// Compute Constants\n(function(){// Compute rho offset constants\nvar x=1,y=0;for(var t=0;t<24;t++){RHO_OFFSETS[x+5*y]=(t+1)*(t+2)/2%64;var newX=y%5;var newY=(2*x+3*y)%5;x=newX;y=newY;}// Compute pi index constants\nfor(var x=0;x<5;x++){for(var y=0;y<5;y++){PI_INDEXES[x+5*y]=y+(2*x+3*y)%5*5;}}// Compute round constants\nvar LFSR=0x01;for(var i=0;i<24;i++){var roundConstantMsw=0;var roundConstantLsw=0;for(var j=0;j<7;j++){if(LFSR&0x01){var bitPosition=(1<<j)-1;if(bitPosition<32){roundConstantLsw^=1<<bitPosition;}else/* if (bitPosition >= 32) */{roundConstantMsw^=1<<bitPosition-32;}}// Compute next LFSR\nif(LFSR&0x80){// Primitive polynomial over GF(2): x^8 + x^6 + x^5 + x^4 + 1\nLFSR=LFSR<<1^0x71;}else{LFSR<<=1;}}ROUND_CONSTANTS[i]=X64Word.create(roundConstantMsw,roundConstantLsw);}})();// Reusable objects for temporary values\nvar T=[];(function(){for(var i=0;i<25;i++){T[i]=X64Word.create();}})();/**\r\n             * SHA-3 hash algorithm.\r\n             */var SHA3=C_algo.SHA3=Hasher.extend({/**\r\n                 * Configuration options.\r\n                 *\r\n                 * @property {number} outputLength\r\n                 *   The desired number of bits in the output hash.\r\n                 *   Only values permitted are: 224, 256, 384, 512.\r\n                 *   Default: 512\r\n                 */cfg:Hasher.cfg.extend({outputLength:512}),_doReset:function(){var state=this._state=[];for(var i=0;i<25;i++){state[i]=new X64Word.init();}this.blockSize=(1600-2*this.cfg.outputLength)/32;},_doProcessBlock:function(M,offset){// Shortcuts\nvar state=this._state;var nBlockSizeLanes=this.blockSize/2;// Absorb\nfor(var i=0;i<nBlockSizeLanes;i++){// Shortcuts\nvar M2i=M[offset+2*i];var M2i1=M[offset+2*i+1];// Swap endian\nM2i=(M2i<<8|M2i>>>24)&0x00ff00ff|(M2i<<24|M2i>>>8)&0xff00ff00;M2i1=(M2i1<<8|M2i1>>>24)&0x00ff00ff|(M2i1<<24|M2i1>>>8)&0xff00ff00;// Absorb message into state\nvar lane=state[i];lane.high^=M2i1;lane.low^=M2i;}// Rounds\nfor(var round=0;round<24;round++){// Theta\nfor(var x=0;x<5;x++){// Mix column lanes\nvar tMsw=0,tLsw=0;for(var y=0;y<5;y++){var lane=state[x+5*y];tMsw^=lane.high;tLsw^=lane.low;}// Temporary values\nvar Tx=T[x];Tx.high=tMsw;Tx.low=tLsw;}for(var x=0;x<5;x++){// Shortcuts\nvar Tx4=T[(x+4)%5];var Tx1=T[(x+1)%5];var Tx1Msw=Tx1.high;var Tx1Lsw=Tx1.low;// Mix surrounding columns\nvar tMsw=Tx4.high^(Tx1Msw<<1|Tx1Lsw>>>31);var tLsw=Tx4.low^(Tx1Lsw<<1|Tx1Msw>>>31);for(var y=0;y<5;y++){var lane=state[x+5*y];lane.high^=tMsw;lane.low^=tLsw;}}// Rho Pi\nfor(var laneIndex=1;laneIndex<25;laneIndex++){// Shortcuts\nvar lane=state[laneIndex];var laneMsw=lane.high;var laneLsw=lane.low;var rhoOffset=RHO_OFFSETS[laneIndex];// Rotate lanes\nif(rhoOffset<32){var tMsw=laneMsw<<rhoOffset|laneLsw>>>32-rhoOffset;var tLsw=laneLsw<<rhoOffset|laneMsw>>>32-rhoOffset;}else/* if (rhoOffset >= 32) */{var tMsw=laneLsw<<rhoOffset-32|laneMsw>>>64-rhoOffset;var tLsw=laneMsw<<rhoOffset-32|laneLsw>>>64-rhoOffset;}// Transpose lanes\nvar TPiLane=T[PI_INDEXES[laneIndex]];TPiLane.high=tMsw;TPiLane.low=tLsw;}// Rho pi at x = y = 0\nvar T0=T[0];var state0=state[0];T0.high=state0.high;T0.low=state0.low;// Chi\nfor(var x=0;x<5;x++){for(var y=0;y<5;y++){// Shortcuts\nvar laneIndex=x+5*y;var lane=state[laneIndex];var TLane=T[laneIndex];var Tx1Lane=T[(x+1)%5+5*y];var Tx2Lane=T[(x+2)%5+5*y];// Mix rows\nlane.high=TLane.high^~Tx1Lane.high&Tx2Lane.high;lane.low=TLane.low^~Tx1Lane.low&Tx2Lane.low;}}// Iota\nvar lane=state[0];var roundConstant=ROUND_CONSTANTS[round];lane.high^=roundConstant.high;lane.low^=roundConstant.low;;}},_doFinalize:function(){// Shortcuts\nvar data=this._data;var dataWords=data.words;var nBitsTotal=this._nDataBytes*8;var nBitsLeft=data.sigBytes*8;var blockSizeBits=this.blockSize*32;// Add padding\ndataWords[nBitsLeft>>>5]|=0x1<<24-nBitsLeft%32;dataWords[(Math.ceil((nBitsLeft+1)/blockSizeBits)*blockSizeBits>>>5)-1]|=0x80;data.sigBytes=dataWords.length*4;// Hash final blocks\nthis._process();// Shortcuts\nvar state=this._state;var outputLengthBytes=this.cfg.outputLength/8;var outputLengthLanes=outputLengthBytes/8;// Squeeze\nvar hashWords=[];for(var i=0;i<outputLengthLanes;i++){// Shortcuts\nvar lane=state[i];var laneMsw=lane.high;var laneLsw=lane.low;// Swap endian\nlaneMsw=(laneMsw<<8|laneMsw>>>24)&0x00ff00ff|(laneMsw<<24|laneMsw>>>8)&0xff00ff00;laneLsw=(laneLsw<<8|laneLsw>>>24)&0x00ff00ff|(laneLsw<<24|laneLsw>>>8)&0xff00ff00;// Squeeze state to retrieve hash\nhashWords.push(laneLsw);hashWords.push(laneMsw);}// Return final computed hash\nreturn new WordArray.init(hashWords,outputLengthBytes);},clone:function(){var clone=Hasher.clone.call(this);var state=clone._state=this._state.slice(0);for(var i=0;i<25;i++){state[i]=state[i].clone();}return clone;}});/**\r\n             * Shortcut function to the hasher's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             *\r\n             * @return {WordArray} The hash.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hash = CryptoJS.SHA3('message');\r\n             *     var hash = CryptoJS.SHA3(wordArray);\r\n             */C.SHA3=Hasher._createHelper(SHA3);/**\r\n             * Shortcut function to the HMAC's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             * @param {WordArray|string} key The secret key.\r\n             *\r\n             * @return {WordArray} The HMAC.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hmac = CryptoJS.HmacSHA3(message, key);\r\n             */C.HmacSHA3=Hasher._createHmacHelper(SHA3);})(Math);return CryptoJS.SHA3;});/***/},/* 283 */ /***/function(module,exports,__nested_webpack_require_3786313__){;(function(root,factory){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3786313__(1));}else{}})(this,function(CryptoJS){/** @preserve\r\n        (c) 2012 by Cédric Mesnil. All rights reserved.\r\n    \r\n        Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\r\n    \r\n            - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\r\n            - 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.\r\n    \r\n        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 HOLDER 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.\r\n        */(function(Math){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var WordArray=C_lib.WordArray;var Hasher=C_lib.Hasher;var C_algo=C.algo;// Constants table\nvar _zl=WordArray.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]);var _zr=WordArray.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]);var _sl=WordArray.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]);var _sr=WordArray.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]);var _hl=WordArray.create([0x00000000,0x5A827999,0x6ED9EBA1,0x8F1BBCDC,0xA953FD4E]);var _hr=WordArray.create([0x50A28BE6,0x5C4DD124,0x6D703EF3,0x7A6D76E9,0x00000000]);/**\r\n             * RIPEMD160 hash algorithm.\r\n             */var RIPEMD160=C_algo.RIPEMD160=Hasher.extend({_doReset:function(){this._hash=WordArray.create([0x67452301,0xEFCDAB89,0x98BADCFE,0x10325476,0xC3D2E1F0]);},_doProcessBlock:function(M,offset){// Swap endian\nfor(var i=0;i<16;i++){// Shortcuts\nvar offset_i=offset+i;var M_offset_i=M[offset_i];// Swap\nM[offset_i]=(M_offset_i<<8|M_offset_i>>>24)&0x00ff00ff|(M_offset_i<<24|M_offset_i>>>8)&0xff00ff00;}// Shortcut\nvar H=this._hash.words;var hl=_hl.words;var hr=_hr.words;var zl=_zl.words;var zr=_zr.words;var sl=_sl.words;var sr=_sr.words;// Working variables\nvar al,bl,cl,dl,el;var ar,br,cr,dr,er;ar=al=H[0];br=bl=H[1];cr=cl=H[2];dr=dl=H[3];er=el=H[4];// Computation\nvar t;for(var i=0;i<80;i+=1){t=al+M[offset+zl[i]]|0;if(i<16){t+=f1(bl,cl,dl)+hl[0];}else if(i<32){t+=f2(bl,cl,dl)+hl[1];}else if(i<48){t+=f3(bl,cl,dl)+hl[2];}else if(i<64){t+=f4(bl,cl,dl)+hl[3];}else{// if (i<80) {\nt+=f5(bl,cl,dl)+hl[4];}t=t|0;t=rotl(t,sl[i]);t=t+el|0;al=el;el=dl;dl=rotl(cl,10);cl=bl;bl=t;t=ar+M[offset+zr[i]]|0;if(i<16){t+=f5(br,cr,dr)+hr[0];}else if(i<32){t+=f4(br,cr,dr)+hr[1];}else if(i<48){t+=f3(br,cr,dr)+hr[2];}else if(i<64){t+=f2(br,cr,dr)+hr[3];}else{// if (i<80) {\nt+=f1(br,cr,dr)+hr[4];}t=t|0;t=rotl(t,sr[i]);t=t+er|0;ar=er;er=dr;dr=rotl(cr,10);cr=br;br=t;}// Intermediate hash value\nt=H[1]+cl+dr|0;H[1]=H[2]+dl+er|0;H[2]=H[3]+el+ar|0;H[3]=H[4]+al+br|0;H[4]=H[0]+bl+cr|0;H[0]=t;},_doFinalize:function(){// Shortcuts\nvar data=this._data;var dataWords=data.words;var nBitsTotal=this._nDataBytes*8;var nBitsLeft=data.sigBytes*8;// Add padding\ndataWords[nBitsLeft>>>5]|=0x80<<24-nBitsLeft%32;dataWords[(nBitsLeft+64>>>9<<4)+14]=(nBitsTotal<<8|nBitsTotal>>>24)&0x00ff00ff|(nBitsTotal<<24|nBitsTotal>>>8)&0xff00ff00;data.sigBytes=(dataWords.length+1)*4;// Hash final blocks\nthis._process();// Shortcuts\nvar hash=this._hash;var H=hash.words;// Swap endian\nfor(var i=0;i<5;i++){// Shortcut\nvar H_i=H[i];// Swap\nH[i]=(H_i<<8|H_i>>>24)&0x00ff00ff|(H_i<<24|H_i>>>8)&0xff00ff00;}// Return final computed hash\nreturn hash;},clone:function(){var clone=Hasher.clone.call(this);clone._hash=this._hash.clone();return clone;}});function f1(x,y,z){return x^y^z;}function f2(x,y,z){return x&y|~x&z;}function f3(x,y,z){return(x|~y)^z;}function f4(x,y,z){return x&z|y&~z;}function f5(x,y,z){return x^(y|~z);}function rotl(x,n){return x<<n|x>>>32-n;}/**\r\n             * Shortcut function to the hasher's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             *\r\n             * @return {WordArray} The hash.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hash = CryptoJS.RIPEMD160('message');\r\n             *     var hash = CryptoJS.RIPEMD160(wordArray);\r\n             */C.RIPEMD160=Hasher._createHelper(RIPEMD160);/**\r\n             * Shortcut function to the HMAC's object interface.\r\n             *\r\n             * @param {WordArray|string} message The message to hash.\r\n             * @param {WordArray|string} key The secret key.\r\n             *\r\n             * @return {WordArray} The HMAC.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var hmac = CryptoJS.HmacRIPEMD160(message, key);\r\n             */C.HmacRIPEMD160=Hasher._createHmacHelper(RIPEMD160);})(Math);return CryptoJS.RIPEMD160;});/***/},/* 284 */ /***/function(module,exports,__nested_webpack_require_3792533__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3792533__(1),__nested_webpack_require_3792533__(105),__nested_webpack_require_3792533__(106));}else{}})(this,function(CryptoJS){(function(){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var Base=C_lib.Base;var WordArray=C_lib.WordArray;var C_algo=C.algo;var SHA1=C_algo.SHA1;var HMAC=C_algo.HMAC;/**\r\n             * Password-Based Key Derivation Function 2 algorithm.\r\n             */var PBKDF2=C_algo.PBKDF2=Base.extend({/**\r\n                 * Configuration options.\r\n                 *\r\n                 * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)\r\n                 * @property {Hasher} hasher The hasher to use. Default: SHA1\r\n                 * @property {number} iterations The number of iterations to perform. Default: 1\r\n                 */cfg:Base.extend({keySize:128/32,hasher:SHA1,iterations:1}),/**\r\n                 * Initializes a newly created key derivation function.\r\n                 *\r\n                 * @param {Object} cfg (Optional) The configuration options to use for the derivation.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var kdf = CryptoJS.algo.PBKDF2.create();\r\n                 *     var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });\r\n                 *     var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });\r\n                 */init:function(cfg){this.cfg=this.cfg.extend(cfg);},/**\r\n                 * Computes the Password-Based Key Derivation Function 2.\r\n                 *\r\n                 * @param {WordArray|string} password The password.\r\n                 * @param {WordArray|string} salt A salt.\r\n                 *\r\n                 * @return {WordArray} The derived key.\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var key = kdf.compute(password, salt);\r\n                 */compute:function(password,salt){// Shortcut\nvar cfg=this.cfg;// Init HMAC\nvar hmac=HMAC.create(cfg.hasher,password);// Initial values\nvar derivedKey=WordArray.create();var blockIndex=WordArray.create([0x00000001]);// Shortcuts\nvar derivedKeyWords=derivedKey.words;var blockIndexWords=blockIndex.words;var keySize=cfg.keySize;var iterations=cfg.iterations;// Generate key\nwhile(derivedKeyWords.length<keySize){var block=hmac.update(salt).finalize(blockIndex);hmac.reset();// Shortcuts\nvar blockWords=block.words;var blockWordsLength=blockWords.length;// Iterations\nvar intermediate=block;for(var i=1;i<iterations;i++){intermediate=hmac.finalize(intermediate);hmac.reset();// Shortcut\nvar intermediateWords=intermediate.words;// XOR intermediate with block\nfor(var j=0;j<blockWordsLength;j++){blockWords[j]^=intermediateWords[j];}}derivedKey.concat(block);blockIndexWords[0]++;}derivedKey.sigBytes=keySize*4;return derivedKey;}});/**\r\n             * Computes the Password-Based Key Derivation Function 2.\r\n             *\r\n             * @param {WordArray|string} password The password.\r\n             * @param {WordArray|string} salt A salt.\r\n             * @param {Object} cfg (Optional) The configuration options to use for this computation.\r\n             *\r\n             * @return {WordArray} The derived key.\r\n             *\r\n             * @static\r\n             *\r\n             * @example\r\n             *\r\n             *     var key = CryptoJS.PBKDF2(password, salt);\r\n             *     var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 });\r\n             *     var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 });\r\n             */C.PBKDF2=function(password,salt,cfg){return PBKDF2.create(cfg).compute(password,salt);};})();return CryptoJS.PBKDF2;});/***/},/* 285 */ /***/function(module,exports,__nested_webpack_require_3796329__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3796329__(1),__nested_webpack_require_3796329__(6));}else{}})(this,function(CryptoJS){/**\r\n         * Cipher Feedback block mode.\r\n         */CryptoJS.mode.CFB=function(){var CFB=CryptoJS.lib.BlockCipherMode.extend();CFB.Encryptor=CFB.extend({processBlock:function(words,offset){// Shortcuts\nvar cipher=this._cipher;var blockSize=cipher.blockSize;generateKeystreamAndEncrypt.call(this,words,offset,blockSize,cipher);// Remember this block to use with next block\nthis._prevBlock=words.slice(offset,offset+blockSize);}});CFB.Decryptor=CFB.extend({processBlock:function(words,offset){// Shortcuts\nvar cipher=this._cipher;var blockSize=cipher.blockSize;// Remember this block to use with next block\nvar thisBlock=words.slice(offset,offset+blockSize);generateKeystreamAndEncrypt.call(this,words,offset,blockSize,cipher);// This block becomes the previous block\nthis._prevBlock=thisBlock;}});function generateKeystreamAndEncrypt(words,offset,blockSize,cipher){// Shortcut\nvar iv=this._iv;// Generate keystream\nif(iv){var keystream=iv.slice(0);// Remove IV for subsequent blocks\nthis._iv=undefined;}else{var keystream=this._prevBlock;}cipher.encryptBlock(keystream,0);// Encrypt\nfor(var i=0;i<blockSize;i++){words[offset+i]^=keystream[i];}}return CFB;}();return CryptoJS.mode.CFB;});/***/},/* 286 */ /***/function(module,exports,__nested_webpack_require_3797750__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3797750__(1),__nested_webpack_require_3797750__(6));}else{}})(this,function(CryptoJS){/**\r\n         * Counter block mode.\r\n         */CryptoJS.mode.CTR=function(){var CTR=CryptoJS.lib.BlockCipherMode.extend();var Encryptor=CTR.Encryptor=CTR.extend({processBlock:function(words,offset){// Shortcuts\nvar cipher=this._cipher;var blockSize=cipher.blockSize;var iv=this._iv;var counter=this._counter;// Generate keystream\nif(iv){counter=this._counter=iv.slice(0);// Remove IV for subsequent blocks\nthis._iv=undefined;}var keystream=counter.slice(0);cipher.encryptBlock(keystream,0);// Increment counter\ncounter[blockSize-1]=counter[blockSize-1]+1|0;// Encrypt\nfor(var i=0;i<blockSize;i++){words[offset+i]^=keystream[i];}}});CTR.Decryptor=Encryptor;return CTR;}();return CryptoJS.mode.CTR;});/***/},/* 287 */ /***/function(module,exports,__nested_webpack_require_3798681__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3798681__(1),__nested_webpack_require_3798681__(6));}else{}})(this,function(CryptoJS){/** @preserve\r\n         * Counter block mode compatible with  Dr Brian Gladman fileenc.c\r\n         * derived from CryptoJS.mode.CTR\r\n         * Jan Hruby jhruby.web@gmail.com\r\n         */CryptoJS.mode.CTRGladman=function(){var CTRGladman=CryptoJS.lib.BlockCipherMode.extend();function incWord(word){if((word>>24&0xff)===0xff){//overflow\nvar b1=word>>16&0xff;var b2=word>>8&0xff;var b3=word&0xff;if(b1===0xff)// overflow b1\n{b1=0;if(b2===0xff){b2=0;if(b3===0xff){b3=0;}else{++b3;}}else{++b2;}}else{++b1;}word=0;word+=b1<<16;word+=b2<<8;word+=b3;}else{word+=0x01<<24;}return word;}function incCounter(counter){if((counter[0]=incWord(counter[0]))===0){// encr_data in fileenc.c from  Dr Brian Gladman's counts only with DWORD j < 8\ncounter[1]=incWord(counter[1]);}return counter;}var Encryptor=CTRGladman.Encryptor=CTRGladman.extend({processBlock:function(words,offset){// Shortcuts\nvar cipher=this._cipher;var blockSize=cipher.blockSize;var iv=this._iv;var counter=this._counter;// Generate keystream\nif(iv){counter=this._counter=iv.slice(0);// Remove IV for subsequent blocks\nthis._iv=undefined;}incCounter(counter);var keystream=counter.slice(0);cipher.encryptBlock(keystream,0);// Encrypt\nfor(var i=0;i<blockSize;i++){words[offset+i]^=keystream[i];}}});CTRGladman.Decryptor=Encryptor;return CTRGladman;}();return CryptoJS.mode.CTRGladman;});/***/},/* 288 */ /***/function(module,exports,__nested_webpack_require_3800254__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3800254__(1),__nested_webpack_require_3800254__(6));}else{}})(this,function(CryptoJS){/**\r\n         * Output Feedback block mode.\r\n         */CryptoJS.mode.OFB=function(){var OFB=CryptoJS.lib.BlockCipherMode.extend();var Encryptor=OFB.Encryptor=OFB.extend({processBlock:function(words,offset){// Shortcuts\nvar cipher=this._cipher;var blockSize=cipher.blockSize;var iv=this._iv;var keystream=this._keystream;// Generate keystream\nif(iv){keystream=this._keystream=iv.slice(0);// Remove IV for subsequent blocks\nthis._iv=undefined;}cipher.encryptBlock(keystream,0);// Encrypt\nfor(var i=0;i<blockSize;i++){words[offset+i]^=keystream[i];}}});OFB.Decryptor=Encryptor;return OFB;}();return CryptoJS.mode.OFB;});/***/},/* 289 */ /***/function(module,exports,__nested_webpack_require_3801103__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3801103__(1),__nested_webpack_require_3801103__(6));}else{}})(this,function(CryptoJS){/**\r\n         * Electronic Codebook block mode.\r\n         */CryptoJS.mode.ECB=function(){var ECB=CryptoJS.lib.BlockCipherMode.extend();ECB.Encryptor=ECB.extend({processBlock:function(words,offset){this._cipher.encryptBlock(words,offset);}});ECB.Decryptor=ECB.extend({processBlock:function(words,offset){this._cipher.decryptBlock(words,offset);}});return ECB;}();return CryptoJS.mode.ECB;});/***/},/* 290 */ /***/function(module,exports,__nested_webpack_require_3801724__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3801724__(1),__nested_webpack_require_3801724__(6));}else{}})(this,function(CryptoJS){/**\r\n         * ANSI X.923 padding strategy.\r\n         */CryptoJS.pad.AnsiX923={pad:function(data,blockSize){// Shortcuts\nvar dataSigBytes=data.sigBytes;var blockSizeBytes=blockSize*4;// Count padding bytes\nvar nPaddingBytes=blockSizeBytes-dataSigBytes%blockSizeBytes;// Compute last byte position\nvar lastBytePos=dataSigBytes+nPaddingBytes-1;// Pad\ndata.clamp();data.words[lastBytePos>>>2]|=nPaddingBytes<<24-lastBytePos%4*8;data.sigBytes+=nPaddingBytes;},unpad:function(data){// Get number of padding bytes from last byte\nvar nPaddingBytes=data.words[data.sigBytes-1>>>2]&0xff;// Remove padding\ndata.sigBytes-=nPaddingBytes;}};return CryptoJS.pad.Ansix923;});/***/},/* 291 */ /***/function(module,exports,__nested_webpack_require_3802616__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3802616__(1),__nested_webpack_require_3802616__(6));}else{}})(this,function(CryptoJS){/**\r\n         * ISO 10126 padding strategy.\r\n         */CryptoJS.pad.Iso10126={pad:function(data,blockSize){// Shortcut\nvar blockSizeBytes=blockSize*4;// Count padding bytes\nvar nPaddingBytes=blockSizeBytes-data.sigBytes%blockSizeBytes;// Pad\ndata.concat(CryptoJS.lib.WordArray.random(nPaddingBytes-1)).concat(CryptoJS.lib.WordArray.create([nPaddingBytes<<24],1));},unpad:function(data){// Get number of padding bytes from last byte\nvar nPaddingBytes=data.words[data.sigBytes-1>>>2]&0xff;// Remove padding\ndata.sigBytes-=nPaddingBytes;}};return CryptoJS.pad.Iso10126;});/***/},/* 292 */ /***/function(module,exports,__nested_webpack_require_3803417__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3803417__(1),__nested_webpack_require_3803417__(6));}else{}})(this,function(CryptoJS){/**\r\n         * ISO/IEC 9797-1 Padding Method 2.\r\n         */CryptoJS.pad.Iso97971={pad:function(data,blockSize){// Add 0x80 byte\ndata.concat(CryptoJS.lib.WordArray.create([0x80000000],1));// Zero pad the rest\nCryptoJS.pad.ZeroPadding.pad(data,blockSize);},unpad:function(data){// Remove zero padding\nCryptoJS.pad.ZeroPadding.unpad(data);// Remove one more byte -- the 0x80 byte\ndata.sigBytes--;}};return CryptoJS.pad.Iso97971;});/***/},/* 293 */ /***/function(module,exports,__nested_webpack_require_3804078__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3804078__(1),__nested_webpack_require_3804078__(6));}else{}})(this,function(CryptoJS){/**\r\n         * Zero padding strategy.\r\n         */CryptoJS.pad.ZeroPadding={pad:function(data,blockSize){// Shortcut\nvar blockSizeBytes=blockSize*4;// Pad\ndata.clamp();data.sigBytes+=blockSizeBytes-(data.sigBytes%blockSizeBytes||blockSizeBytes);},unpad:function(data){// Shortcut\nvar dataWords=data.words;// Unpad\nvar i=data.sigBytes-1;while(!(dataWords[i>>>2]>>>24-i%4*8&0xff)){i--;}data.sigBytes=i+1;}};return CryptoJS.pad.ZeroPadding;});/***/},/* 294 */ /***/function(module,exports,__nested_webpack_require_3804750__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3804750__(1),__nested_webpack_require_3804750__(6));}else{}})(this,function(CryptoJS){/**\r\n         * A noop padding strategy.\r\n         */CryptoJS.pad.NoPadding={pad:function(){},unpad:function(){}};return CryptoJS.pad.NoPadding;});/***/},/* 295 */ /***/function(module,exports,__nested_webpack_require_3805128__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3805128__(1),__nested_webpack_require_3805128__(6));}else{}})(this,function(CryptoJS){(function(undefined){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var CipherParams=C_lib.CipherParams;var C_enc=C.enc;var Hex=C_enc.Hex;var C_format=C.format;var HexFormatter=C_format.Hex={/**\r\n                 * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.\r\n                 *\r\n                 * @param {CipherParams} cipherParams The cipher params object.\r\n                 *\r\n                 * @return {string} The hexadecimally encoded string.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var hexString = CryptoJS.format.Hex.stringify(cipherParams);\r\n                 */stringify:function(cipherParams){return cipherParams.ciphertext.toString(Hex);},/**\r\n                 * Converts a hexadecimally encoded ciphertext string to a cipher params object.\r\n                 *\r\n                 * @param {string} input The hexadecimally encoded string.\r\n                 *\r\n                 * @return {CipherParams} The cipher params object.\r\n                 *\r\n                 * @static\r\n                 *\r\n                 * @example\r\n                 *\r\n                 *     var cipherParams = CryptoJS.format.Hex.parse(hexString);\r\n                 */parse:function(input){var ciphertext=Hex.parse(input);return CipherParams.create({ciphertext:ciphertext});}};})();return CryptoJS.format.Hex;});/***/},/* 296 */ /***/function(module,exports,__nested_webpack_require_3806799__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3806799__(1),__nested_webpack_require_3806799__(47),__nested_webpack_require_3806799__(48),__nested_webpack_require_3806799__(33),__nested_webpack_require_3806799__(6));}else{}})(this,function(CryptoJS){(function(){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var BlockCipher=C_lib.BlockCipher;var C_algo=C.algo;// Lookup tables\nvar SBOX=[];var INV_SBOX=[];var SUB_MIX_0=[];var SUB_MIX_1=[];var SUB_MIX_2=[];var SUB_MIX_3=[];var INV_SUB_MIX_0=[];var INV_SUB_MIX_1=[];var INV_SUB_MIX_2=[];var INV_SUB_MIX_3=[];// Compute lookup tables\n(function(){// Compute double table\nvar d=[];for(var i=0;i<256;i++){if(i<128){d[i]=i<<1;}else{d[i]=i<<1^0x11b;}}// Walk GF(2^8)\nvar x=0;var xi=0;for(var i=0;i<256;i++){// Compute sbox\nvar sx=xi^xi<<1^xi<<2^xi<<3^xi<<4;sx=sx>>>8^sx&0xff^0x63;SBOX[x]=sx;INV_SBOX[sx]=x;// Compute multiplication\nvar x2=d[x];var x4=d[x2];var x8=d[x4];// Compute sub bytes, mix columns tables\nvar t=d[sx]*0x101^sx*0x1010100;SUB_MIX_0[x]=t<<24|t>>>8;SUB_MIX_1[x]=t<<16|t>>>16;SUB_MIX_2[x]=t<<8|t>>>24;SUB_MIX_3[x]=t;// Compute inv sub bytes, inv mix columns tables\nvar t=x8*0x1010101^x4*0x10001^x2*0x101^x*0x1010100;INV_SUB_MIX_0[sx]=t<<24|t>>>8;INV_SUB_MIX_1[sx]=t<<16|t>>>16;INV_SUB_MIX_2[sx]=t<<8|t>>>24;INV_SUB_MIX_3[sx]=t;// Compute next counter\nif(!x){x=xi=1;}else{x=x2^d[d[d[x8^x2]]];xi^=d[d[xi]];}}})();// Precomputed Rcon lookup\nvar RCON=[0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x1b,0x36];/**\r\n             * AES block cipher algorithm.\r\n             */var AES=C_algo.AES=BlockCipher.extend({_doReset:function(){// Skip reset of nRounds has been set before and key did not change\nif(this._nRounds&&this._keyPriorReset===this._key){return;}// Shortcuts\nvar key=this._keyPriorReset=this._key;var keyWords=key.words;var keySize=key.sigBytes/4;// Compute number of rounds\nvar nRounds=this._nRounds=keySize+6;// Compute number of key schedule rows\nvar ksRows=(nRounds+1)*4;// Compute key schedule\nvar keySchedule=this._keySchedule=[];for(var ksRow=0;ksRow<ksRows;ksRow++){if(ksRow<keySize){keySchedule[ksRow]=keyWords[ksRow];}else{var t=keySchedule[ksRow-1];if(!(ksRow%keySize)){// Rot word\nt=t<<8|t>>>24;// Sub word\nt=SBOX[t>>>24]<<24|SBOX[t>>>16&0xff]<<16|SBOX[t>>>8&0xff]<<8|SBOX[t&0xff];// Mix Rcon\nt^=RCON[ksRow/keySize|0]<<24;}else if(keySize>6&&ksRow%keySize==4){// Sub word\nt=SBOX[t>>>24]<<24|SBOX[t>>>16&0xff]<<16|SBOX[t>>>8&0xff]<<8|SBOX[t&0xff];}keySchedule[ksRow]=keySchedule[ksRow-keySize]^t;}}// Compute inv key schedule\nvar invKeySchedule=this._invKeySchedule=[];for(var invKsRow=0;invKsRow<ksRows;invKsRow++){var ksRow=ksRows-invKsRow;if(invKsRow%4){var t=keySchedule[ksRow];}else{var t=keySchedule[ksRow-4];}if(invKsRow<4||ksRow<=4){invKeySchedule[invKsRow]=t;}else{invKeySchedule[invKsRow]=INV_SUB_MIX_0[SBOX[t>>>24]]^INV_SUB_MIX_1[SBOX[t>>>16&0xff]]^INV_SUB_MIX_2[SBOX[t>>>8&0xff]]^INV_SUB_MIX_3[SBOX[t&0xff]];}}},encryptBlock:function(M,offset){this._doCryptBlock(M,offset,this._keySchedule,SUB_MIX_0,SUB_MIX_1,SUB_MIX_2,SUB_MIX_3,SBOX);},decryptBlock:function(M,offset){// Swap 2nd and 4th rows\nvar t=M[offset+1];M[offset+1]=M[offset+3];M[offset+3]=t;this._doCryptBlock(M,offset,this._invKeySchedule,INV_SUB_MIX_0,INV_SUB_MIX_1,INV_SUB_MIX_2,INV_SUB_MIX_3,INV_SBOX);// Inv swap 2nd and 4th rows\nvar t=M[offset+1];M[offset+1]=M[offset+3];M[offset+3]=t;},_doCryptBlock:function(M,offset,keySchedule,SUB_MIX_0,SUB_MIX_1,SUB_MIX_2,SUB_MIX_3,SBOX){// Shortcut\nvar nRounds=this._nRounds;// Get input, add round key\nvar s0=M[offset]^keySchedule[0];var s1=M[offset+1]^keySchedule[1];var s2=M[offset+2]^keySchedule[2];var s3=M[offset+3]^keySchedule[3];// Key schedule row counter\nvar ksRow=4;// Rounds\nfor(var round=1;round<nRounds;round++){// Shift rows, sub bytes, mix columns, add round key\nvar t0=SUB_MIX_0[s0>>>24]^SUB_MIX_1[s1>>>16&0xff]^SUB_MIX_2[s2>>>8&0xff]^SUB_MIX_3[s3&0xff]^keySchedule[ksRow++];var t1=SUB_MIX_0[s1>>>24]^SUB_MIX_1[s2>>>16&0xff]^SUB_MIX_2[s3>>>8&0xff]^SUB_MIX_3[s0&0xff]^keySchedule[ksRow++];var t2=SUB_MIX_0[s2>>>24]^SUB_MIX_1[s3>>>16&0xff]^SUB_MIX_2[s0>>>8&0xff]^SUB_MIX_3[s1&0xff]^keySchedule[ksRow++];var t3=SUB_MIX_0[s3>>>24]^SUB_MIX_1[s0>>>16&0xff]^SUB_MIX_2[s1>>>8&0xff]^SUB_MIX_3[s2&0xff]^keySchedule[ksRow++];// Update state\ns0=t0;s1=t1;s2=t2;s3=t3;}// Shift rows, sub bytes, add round key\nvar t0=(SBOX[s0>>>24]<<24|SBOX[s1>>>16&0xff]<<16|SBOX[s2>>>8&0xff]<<8|SBOX[s3&0xff])^keySchedule[ksRow++];var t1=(SBOX[s1>>>24]<<24|SBOX[s2>>>16&0xff]<<16|SBOX[s3>>>8&0xff]<<8|SBOX[s0&0xff])^keySchedule[ksRow++];var t2=(SBOX[s2>>>24]<<24|SBOX[s3>>>16&0xff]<<16|SBOX[s0>>>8&0xff]<<8|SBOX[s1&0xff])^keySchedule[ksRow++];var t3=(SBOX[s3>>>24]<<24|SBOX[s0>>>16&0xff]<<16|SBOX[s1>>>8&0xff]<<8|SBOX[s2&0xff])^keySchedule[ksRow++];// Set output\nM[offset]=t0;M[offset+1]=t1;M[offset+2]=t2;M[offset+3]=t3;},keySize:256/32});/**\r\n             * Shortcut functions to the cipher's object interface.\r\n             *\r\n             * @example\r\n             *\r\n             *     var ciphertext = CryptoJS.AES.encrypt(message, key, cfg);\r\n             *     var plaintext  = CryptoJS.AES.decrypt(ciphertext, key, cfg);\r\n             */C.AES=BlockCipher._createHelper(AES);})();return CryptoJS.AES;});/***/},/* 297 */ /***/function(module,exports,__nested_webpack_require_3812044__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3812044__(1),__nested_webpack_require_3812044__(47),__nested_webpack_require_3812044__(48),__nested_webpack_require_3812044__(33),__nested_webpack_require_3812044__(6));}else{}})(this,function(CryptoJS){(function(){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var WordArray=C_lib.WordArray;var BlockCipher=C_lib.BlockCipher;var C_algo=C.algo;// Permuted Choice 1 constants\nvar PC1=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4];// Permuted Choice 2 constants\nvar PC2=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32];// Cumulative bit shift constants\nvar BIT_SHIFTS=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28];// SBOXes and round permutation constants\nvar SBOX_P=[{0x0:0x808200,0x10000000:0x8000,0x20000000:0x808002,0x30000000:0x2,0x40000000:0x200,0x50000000:0x808202,0x60000000:0x800202,0x70000000:0x800000,0x80000000:0x202,0x90000000:0x800200,0xa0000000:0x8200,0xb0000000:0x808000,0xc0000000:0x8002,0xd0000000:0x800002,0xe0000000:0x0,0xf0000000:0x8202,0x8000000:0x0,0x18000000:0x808202,0x28000000:0x8202,0x38000000:0x8000,0x48000000:0x808200,0x58000000:0x200,0x68000000:0x808002,0x78000000:0x2,0x88000000:0x800200,0x98000000:0x8200,0xa8000000:0x808000,0xb8000000:0x800202,0xc8000000:0x800002,0xd8000000:0x8002,0xe8000000:0x202,0xf8000000:0x800000,0x1:0x8000,0x10000001:0x2,0x20000001:0x808200,0x30000001:0x800000,0x40000001:0x808002,0x50000001:0x8200,0x60000001:0x200,0x70000001:0x800202,0x80000001:0x808202,0x90000001:0x808000,0xa0000001:0x800002,0xb0000001:0x8202,0xc0000001:0x202,0xd0000001:0x800200,0xe0000001:0x8002,0xf0000001:0x0,0x8000001:0x808202,0x18000001:0x808000,0x28000001:0x800000,0x38000001:0x200,0x48000001:0x8000,0x58000001:0x800002,0x68000001:0x2,0x78000001:0x8202,0x88000001:0x8002,0x98000001:0x800202,0xa8000001:0x202,0xb8000001:0x808200,0xc8000001:0x800200,0xd8000001:0x0,0xe8000001:0x8200,0xf8000001:0x808002},{0x0:0x40084010,0x1000000:0x4000,0x2000000:0x80000,0x3000000:0x40080010,0x4000000:0x40000010,0x5000000:0x40084000,0x6000000:0x40004000,0x7000000:0x10,0x8000000:0x84000,0x9000000:0x40004010,0xa000000:0x40000000,0xb000000:0x84010,0xc000000:0x80010,0xd000000:0x0,0xe000000:0x4010,0xf000000:0x40080000,0x800000:0x40004000,0x1800000:0x84010,0x2800000:0x10,0x3800000:0x40004010,0x4800000:0x40084010,0x5800000:0x40000000,0x6800000:0x80000,0x7800000:0x40080010,0x8800000:0x80010,0x9800000:0x0,0xa800000:0x4000,0xb800000:0x40080000,0xc800000:0x40000010,0xd800000:0x84000,0xe800000:0x40084000,0xf800000:0x4010,0x10000000:0x0,0x11000000:0x40080010,0x12000000:0x40004010,0x13000000:0x40084000,0x14000000:0x40080000,0x15000000:0x10,0x16000000:0x84010,0x17000000:0x4000,0x18000000:0x4010,0x19000000:0x80000,0x1a000000:0x80010,0x1b000000:0x40000010,0x1c000000:0x84000,0x1d000000:0x40004000,0x1e000000:0x40000000,0x1f000000:0x40084010,0x10800000:0x84010,0x11800000:0x80000,0x12800000:0x40080000,0x13800000:0x4000,0x14800000:0x40004000,0x15800000:0x40084010,0x16800000:0x10,0x17800000:0x40000000,0x18800000:0x40084000,0x19800000:0x40000010,0x1a800000:0x40004010,0x1b800000:0x80010,0x1c800000:0x0,0x1d800000:0x4010,0x1e800000:0x40080010,0x1f800000:0x84000},{0x0:0x104,0x100000:0x0,0x200000:0x4000100,0x300000:0x10104,0x400000:0x10004,0x500000:0x4000004,0x600000:0x4010104,0x700000:0x4010000,0x800000:0x4000000,0x900000:0x4010100,0xa00000:0x10100,0xb00000:0x4010004,0xc00000:0x4000104,0xd00000:0x10000,0xe00000:0x4,0xf00000:0x100,0x80000:0x4010100,0x180000:0x4010004,0x280000:0x0,0x380000:0x4000100,0x480000:0x4000004,0x580000:0x10000,0x680000:0x10004,0x780000:0x104,0x880000:0x4,0x980000:0x100,0xa80000:0x4010000,0xb80000:0x10104,0xc80000:0x10100,0xd80000:0x4000104,0xe80000:0x4010104,0xf80000:0x4000000,0x1000000:0x4010100,0x1100000:0x10004,0x1200000:0x10000,0x1300000:0x4000100,0x1400000:0x100,0x1500000:0x4010104,0x1600000:0x4000004,0x1700000:0x0,0x1800000:0x4000104,0x1900000:0x4000000,0x1a00000:0x4,0x1b00000:0x10100,0x1c00000:0x4010000,0x1d00000:0x104,0x1e00000:0x10104,0x1f00000:0x4010004,0x1080000:0x4000000,0x1180000:0x104,0x1280000:0x4010100,0x1380000:0x0,0x1480000:0x10004,0x1580000:0x4000100,0x1680000:0x100,0x1780000:0x4010004,0x1880000:0x10000,0x1980000:0x4010104,0x1a80000:0x10104,0x1b80000:0x4000004,0x1c80000:0x4000104,0x1d80000:0x4010000,0x1e80000:0x4,0x1f80000:0x10100},{0x0:0x80401000,0x10000:0x80001040,0x20000:0x401040,0x30000:0x80400000,0x40000:0x0,0x50000:0x401000,0x60000:0x80000040,0x70000:0x400040,0x80000:0x80000000,0x90000:0x400000,0xa0000:0x40,0xb0000:0x80001000,0xc0000:0x80400040,0xd0000:0x1040,0xe0000:0x1000,0xf0000:0x80401040,0x8000:0x80001040,0x18000:0x40,0x28000:0x80400040,0x38000:0x80001000,0x48000:0x401000,0x58000:0x80401040,0x68000:0x0,0x78000:0x80400000,0x88000:0x1000,0x98000:0x80401000,0xa8000:0x400000,0xb8000:0x1040,0xc8000:0x80000000,0xd8000:0x400040,0xe8000:0x401040,0xf8000:0x80000040,0x100000:0x400040,0x110000:0x401000,0x120000:0x80000040,0x130000:0x0,0x140000:0x1040,0x150000:0x80400040,0x160000:0x80401000,0x170000:0x80001040,0x180000:0x80401040,0x190000:0x80000000,0x1a0000:0x80400000,0x1b0000:0x401040,0x1c0000:0x80001000,0x1d0000:0x400000,0x1e0000:0x40,0x1f0000:0x1000,0x108000:0x80400000,0x118000:0x80401040,0x128000:0x0,0x138000:0x401000,0x148000:0x400040,0x158000:0x80000000,0x168000:0x80001040,0x178000:0x40,0x188000:0x80000040,0x198000:0x1000,0x1a8000:0x80001000,0x1b8000:0x80400040,0x1c8000:0x1040,0x1d8000:0x80401000,0x1e8000:0x400000,0x1f8000:0x401040},{0x0:0x80,0x1000:0x1040000,0x2000:0x40000,0x3000:0x20000000,0x4000:0x20040080,0x5000:0x1000080,0x6000:0x21000080,0x7000:0x40080,0x8000:0x1000000,0x9000:0x20040000,0xa000:0x20000080,0xb000:0x21040080,0xc000:0x21040000,0xd000:0x0,0xe000:0x1040080,0xf000:0x21000000,0x800:0x1040080,0x1800:0x21000080,0x2800:0x80,0x3800:0x1040000,0x4800:0x40000,0x5800:0x20040080,0x6800:0x21040000,0x7800:0x20000000,0x8800:0x20040000,0x9800:0x0,0xa800:0x21040080,0xb800:0x1000080,0xc800:0x20000080,0xd800:0x21000000,0xe800:0x1000000,0xf800:0x40080,0x10000:0x40000,0x11000:0x80,0x12000:0x20000000,0x13000:0x21000080,0x14000:0x1000080,0x15000:0x21040000,0x16000:0x20040080,0x17000:0x1000000,0x18000:0x21040080,0x19000:0x21000000,0x1a000:0x1040000,0x1b000:0x20040000,0x1c000:0x40080,0x1d000:0x20000080,0x1e000:0x0,0x1f000:0x1040080,0x10800:0x21000080,0x11800:0x1000000,0x12800:0x1040000,0x13800:0x20040080,0x14800:0x20000000,0x15800:0x1040080,0x16800:0x80,0x17800:0x21040000,0x18800:0x40080,0x19800:0x21040080,0x1a800:0x0,0x1b800:0x21000000,0x1c800:0x1000080,0x1d800:0x40000,0x1e800:0x20040000,0x1f800:0x20000080},{0x0:0x10000008,0x100:0x2000,0x200:0x10200000,0x300:0x10202008,0x400:0x10002000,0x500:0x200000,0x600:0x200008,0x700:0x10000000,0x800:0x0,0x900:0x10002008,0xa00:0x202000,0xb00:0x8,0xc00:0x10200008,0xd00:0x202008,0xe00:0x2008,0xf00:0x10202000,0x80:0x10200000,0x180:0x10202008,0x280:0x8,0x380:0x200000,0x480:0x202008,0x580:0x10000008,0x680:0x10002000,0x780:0x2008,0x880:0x200008,0x980:0x2000,0xa80:0x10002008,0xb80:0x10200008,0xc80:0x0,0xd80:0x10202000,0xe80:0x202000,0xf80:0x10000000,0x1000:0x10002000,0x1100:0x10200008,0x1200:0x10202008,0x1300:0x2008,0x1400:0x200000,0x1500:0x10000000,0x1600:0x10000008,0x1700:0x202000,0x1800:0x202008,0x1900:0x0,0x1a00:0x8,0x1b00:0x10200000,0x1c00:0x2000,0x1d00:0x10002008,0x1e00:0x10202000,0x1f00:0x200008,0x1080:0x8,0x1180:0x202000,0x1280:0x200000,0x1380:0x10000008,0x1480:0x10002000,0x1580:0x2008,0x1680:0x10202008,0x1780:0x10200000,0x1880:0x10202000,0x1980:0x10200008,0x1a80:0x2000,0x1b80:0x202008,0x1c80:0x200008,0x1d80:0x0,0x1e80:0x10000000,0x1f80:0x10002008},{0x0:0x100000,0x10:0x2000401,0x20:0x400,0x30:0x100401,0x40:0x2100401,0x50:0x0,0x60:0x1,0x70:0x2100001,0x80:0x2000400,0x90:0x100001,0xa0:0x2000001,0xb0:0x2100400,0xc0:0x2100000,0xd0:0x401,0xe0:0x100400,0xf0:0x2000000,0x8:0x2100001,0x18:0x0,0x28:0x2000401,0x38:0x2100400,0x48:0x100000,0x58:0x2000001,0x68:0x2000000,0x78:0x401,0x88:0x100401,0x98:0x2000400,0xa8:0x2100000,0xb8:0x100001,0xc8:0x400,0xd8:0x2100401,0xe8:0x1,0xf8:0x100400,0x100:0x2000000,0x110:0x100000,0x120:0x2000401,0x130:0x2100001,0x140:0x100001,0x150:0x2000400,0x160:0x2100400,0x170:0x100401,0x180:0x401,0x190:0x2100401,0x1a0:0x100400,0x1b0:0x1,0x1c0:0x0,0x1d0:0x2100000,0x1e0:0x2000001,0x1f0:0x400,0x108:0x100400,0x118:0x2000401,0x128:0x2100001,0x138:0x1,0x148:0x2000000,0x158:0x100000,0x168:0x401,0x178:0x2100400,0x188:0x2000001,0x198:0x2100000,0x1a8:0x0,0x1b8:0x2100401,0x1c8:0x100401,0x1d8:0x400,0x1e8:0x2000400,0x1f8:0x100001},{0x0:0x8000820,0x1:0x20000,0x2:0x8000000,0x3:0x20,0x4:0x20020,0x5:0x8020820,0x6:0x8020800,0x7:0x800,0x8:0x8020000,0x9:0x8000800,0xa:0x20800,0xb:0x8020020,0xc:0x820,0xd:0x0,0xe:0x8000020,0xf:0x20820,0x80000000:0x800,0x80000001:0x8020820,0x80000002:0x8000820,0x80000003:0x8000000,0x80000004:0x8020000,0x80000005:0x20800,0x80000006:0x20820,0x80000007:0x20,0x80000008:0x8000020,0x80000009:0x820,0x8000000a:0x20020,0x8000000b:0x8020800,0x8000000c:0x0,0x8000000d:0x8020020,0x8000000e:0x8000800,0x8000000f:0x20000,0x10:0x20820,0x11:0x8020800,0x12:0x20,0x13:0x800,0x14:0x8000800,0x15:0x8000020,0x16:0x8020020,0x17:0x20000,0x18:0x0,0x19:0x20020,0x1a:0x8020000,0x1b:0x8000820,0x1c:0x8020820,0x1d:0x20800,0x1e:0x820,0x1f:0x8000000,0x80000010:0x20000,0x80000011:0x800,0x80000012:0x8020020,0x80000013:0x20820,0x80000014:0x20,0x80000015:0x8020000,0x80000016:0x8000000,0x80000017:0x8000820,0x80000018:0x8020820,0x80000019:0x8000020,0x8000001a:0x8000800,0x8000001b:0x0,0x8000001c:0x20800,0x8000001d:0x820,0x8000001e:0x20020,0x8000001f:0x8020800}];// Masks that select the SBOX input\nvar SBOX_MASK=[0xf8000001,0x1f800000,0x01f80000,0x001f8000,0x0001f800,0x00001f80,0x000001f8,0x8000001f];/**\r\n             * DES block cipher algorithm.\r\n             */var DES=C_algo.DES=BlockCipher.extend({_doReset:function(){// Shortcuts\nvar key=this._key;var keyWords=key.words;// Select 56 bits according to PC1\nvar keyBits=[];for(var i=0;i<56;i++){var keyBitPos=PC1[i]-1;keyBits[i]=keyWords[keyBitPos>>>5]>>>31-keyBitPos%32&1;}// Assemble 16 subkeys\nvar subKeys=this._subKeys=[];for(var nSubKey=0;nSubKey<16;nSubKey++){// Create subkey\nvar subKey=subKeys[nSubKey]=[];// Shortcut\nvar bitShift=BIT_SHIFTS[nSubKey];// Select 48 bits according to PC2\nfor(var i=0;i<24;i++){// Select from the left 28 key bits\nsubKey[i/6|0]|=keyBits[(PC2[i]-1+bitShift)%28]<<31-i%6;// Select from the right 28 key bits\nsubKey[4+(i/6|0)]|=keyBits[28+(PC2[i+24]-1+bitShift)%28]<<31-i%6;}// Since each subkey is applied to an expanded 32-bit input,\n// the subkey can be broken into 8 values scaled to 32-bits,\n// which allows the key to be used without expansion\nsubKey[0]=subKey[0]<<1|subKey[0]>>>31;for(var i=1;i<7;i++){subKey[i]=subKey[i]>>>(i-1)*4+3;}subKey[7]=subKey[7]<<5|subKey[7]>>>27;}// Compute inverse subkeys\nvar invSubKeys=this._invSubKeys=[];for(var i=0;i<16;i++){invSubKeys[i]=subKeys[15-i];}},encryptBlock:function(M,offset){this._doCryptBlock(M,offset,this._subKeys);},decryptBlock:function(M,offset){this._doCryptBlock(M,offset,this._invSubKeys);},_doCryptBlock:function(M,offset,subKeys){// Get input\nthis._lBlock=M[offset];this._rBlock=M[offset+1];// Initial permutation\nexchangeLR.call(this,4,0x0f0f0f0f);exchangeLR.call(this,16,0x0000ffff);exchangeRL.call(this,2,0x33333333);exchangeRL.call(this,8,0x00ff00ff);exchangeLR.call(this,1,0x55555555);// Rounds\nfor(var round=0;round<16;round++){// Shortcuts\nvar subKey=subKeys[round];var lBlock=this._lBlock;var rBlock=this._rBlock;// Feistel function\nvar f=0;for(var i=0;i<8;i++){f|=SBOX_P[i][((rBlock^subKey[i])&SBOX_MASK[i])>>>0];}this._lBlock=rBlock;this._rBlock=lBlock^f;}// Undo swap from last round\nvar t=this._lBlock;this._lBlock=this._rBlock;this._rBlock=t;// Final permutation\nexchangeLR.call(this,1,0x55555555);exchangeRL.call(this,8,0x00ff00ff);exchangeRL.call(this,2,0x33333333);exchangeLR.call(this,16,0x0000ffff);exchangeLR.call(this,4,0x0f0f0f0f);// Set output\nM[offset]=this._lBlock;M[offset+1]=this._rBlock;},keySize:64/32,ivSize:64/32,blockSize:64/32});// Swap bits across the left and right words\nfunction exchangeLR(offset,mask){var t=(this._lBlock>>>offset^this._rBlock)&mask;this._rBlock^=t;this._lBlock^=t<<offset;}function exchangeRL(offset,mask){var t=(this._rBlock>>>offset^this._lBlock)&mask;this._lBlock^=t;this._rBlock^=t<<offset;}/**\r\n             * Shortcut functions to the cipher's object interface.\r\n             *\r\n             * @example\r\n             *\r\n             *     var ciphertext = CryptoJS.DES.encrypt(message, key, cfg);\r\n             *     var plaintext  = CryptoJS.DES.decrypt(ciphertext, key, cfg);\r\n             */C.DES=BlockCipher._createHelper(DES);/**\r\n             * Triple-DES block cipher algorithm.\r\n             */var TripleDES=C_algo.TripleDES=BlockCipher.extend({_doReset:function(){// Shortcuts\nvar key=this._key;var keyWords=key.words;// Create DES instances\nthis._des1=DES.createEncryptor(WordArray.create(keyWords.slice(0,2)));this._des2=DES.createEncryptor(WordArray.create(keyWords.slice(2,4)));this._des3=DES.createEncryptor(WordArray.create(keyWords.slice(4,6)));},encryptBlock:function(M,offset){this._des1.encryptBlock(M,offset);this._des2.decryptBlock(M,offset);this._des3.encryptBlock(M,offset);},decryptBlock:function(M,offset){this._des3.decryptBlock(M,offset);this._des2.encryptBlock(M,offset);this._des1.decryptBlock(M,offset);},keySize:192/32,ivSize:64/32,blockSize:64/32});/**\r\n             * Shortcut functions to the cipher's object interface.\r\n             *\r\n             * @example\r\n             *\r\n             *     var ciphertext = CryptoJS.TripleDES.encrypt(message, key, cfg);\r\n             *     var plaintext  = CryptoJS.TripleDES.decrypt(ciphertext, key, cfg);\r\n             */C.TripleDES=BlockCipher._createHelper(TripleDES);})();return CryptoJS.TripleDES;});/***/},/* 298 */ /***/function(module,exports,__nested_webpack_require_3825932__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3825932__(1),__nested_webpack_require_3825932__(47),__nested_webpack_require_3825932__(48),__nested_webpack_require_3825932__(33),__nested_webpack_require_3825932__(6));}else{}})(this,function(CryptoJS){(function(){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var StreamCipher=C_lib.StreamCipher;var C_algo=C.algo;/**\r\n             * RC4 stream cipher algorithm.\r\n             */var RC4=C_algo.RC4=StreamCipher.extend({_doReset:function(){// Shortcuts\nvar key=this._key;var keyWords=key.words;var keySigBytes=key.sigBytes;// Init sbox\nvar S=this._S=[];for(var i=0;i<256;i++){S[i]=i;}// Key setup\nfor(var i=0,j=0;i<256;i++){var keyByteIndex=i%keySigBytes;var keyByte=keyWords[keyByteIndex>>>2]>>>24-keyByteIndex%4*8&0xff;j=(j+S[i]+keyByte)%256;// Swap\nvar t=S[i];S[i]=S[j];S[j]=t;}// Counters\nthis._i=this._j=0;},_doProcessBlock:function(M,offset){M[offset]^=generateKeystreamWord.call(this);},keySize:256/32,ivSize:0});function generateKeystreamWord(){// Shortcuts\nvar S=this._S;var i=this._i;var j=this._j;// Generate keystream word\nvar keystreamWord=0;for(var n=0;n<4;n++){i=(i+1)%256;j=(j+S[i])%256;// Swap\nvar t=S[i];S[i]=S[j];S[j]=t;keystreamWord|=S[(S[i]+S[j])%256]<<24-n*8;}// Update counters\nthis._i=i;this._j=j;return keystreamWord;}/**\r\n             * Shortcut functions to the cipher's object interface.\r\n             *\r\n             * @example\r\n             *\r\n             *     var ciphertext = CryptoJS.RC4.encrypt(message, key, cfg);\r\n             *     var plaintext  = CryptoJS.RC4.decrypt(ciphertext, key, cfg);\r\n             */C.RC4=StreamCipher._createHelper(RC4);/**\r\n             * Modified RC4 stream cipher algorithm.\r\n             */var RC4Drop=C_algo.RC4Drop=RC4.extend({/**\r\n                 * Configuration options.\r\n                 *\r\n                 * @property {number} drop The number of keystream words to drop. Default 192\r\n                 */cfg:RC4.cfg.extend({drop:192}),_doReset:function(){RC4._doReset.call(this);// Drop\nfor(var i=this.cfg.drop;i>0;i--){generateKeystreamWord.call(this);}}});/**\r\n             * Shortcut functions to the cipher's object interface.\r\n             *\r\n             * @example\r\n             *\r\n             *     var ciphertext = CryptoJS.RC4Drop.encrypt(message, key, cfg);\r\n             *     var plaintext  = CryptoJS.RC4Drop.decrypt(ciphertext, key, cfg);\r\n             */C.RC4Drop=StreamCipher._createHelper(RC4Drop);})();return CryptoJS.RC4;});/***/},/* 299 */ /***/function(module,exports,__nested_webpack_require_3828452__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3828452__(1),__nested_webpack_require_3828452__(47),__nested_webpack_require_3828452__(48),__nested_webpack_require_3828452__(33),__nested_webpack_require_3828452__(6));}else{}})(this,function(CryptoJS){(function(){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var StreamCipher=C_lib.StreamCipher;var C_algo=C.algo;// Reusable objects\nvar S=[];var C_=[];var G=[];/**\r\n             * Rabbit stream cipher algorithm\r\n             */var Rabbit=C_algo.Rabbit=StreamCipher.extend({_doReset:function(){// Shortcuts\nvar K=this._key.words;var iv=this.cfg.iv;// Swap endian\nfor(var i=0;i<4;i++){K[i]=(K[i]<<8|K[i]>>>24)&0x00ff00ff|(K[i]<<24|K[i]>>>8)&0xff00ff00;}// Generate initial state values\nvar X=this._X=[K[0],K[3]<<16|K[2]>>>16,K[1],K[0]<<16|K[3]>>>16,K[2],K[1]<<16|K[0]>>>16,K[3],K[2]<<16|K[1]>>>16];// Generate initial counter values\nvar C=this._C=[K[2]<<16|K[2]>>>16,K[0]&0xffff0000|K[1]&0x0000ffff,K[3]<<16|K[3]>>>16,K[1]&0xffff0000|K[2]&0x0000ffff,K[0]<<16|K[0]>>>16,K[2]&0xffff0000|K[3]&0x0000ffff,K[1]<<16|K[1]>>>16,K[3]&0xffff0000|K[0]&0x0000ffff];// Carry bit\nthis._b=0;// Iterate the system four times\nfor(var i=0;i<4;i++){nextState.call(this);}// Modify the counters\nfor(var i=0;i<8;i++){C[i]^=X[i+4&7];}// IV setup\nif(iv){// Shortcuts\nvar IV=iv.words;var IV_0=IV[0];var IV_1=IV[1];// Generate four subvectors\nvar i0=(IV_0<<8|IV_0>>>24)&0x00ff00ff|(IV_0<<24|IV_0>>>8)&0xff00ff00;var i2=(IV_1<<8|IV_1>>>24)&0x00ff00ff|(IV_1<<24|IV_1>>>8)&0xff00ff00;var i1=i0>>>16|i2&0xffff0000;var i3=i2<<16|i0&0x0000ffff;// Modify counter values\nC[0]^=i0;C[1]^=i1;C[2]^=i2;C[3]^=i3;C[4]^=i0;C[5]^=i1;C[6]^=i2;C[7]^=i3;// Iterate the system four times\nfor(var i=0;i<4;i++){nextState.call(this);}}},_doProcessBlock:function(M,offset){// Shortcut\nvar X=this._X;// Iterate the system\nnextState.call(this);// Generate four keystream words\nS[0]=X[0]^X[5]>>>16^X[3]<<16;S[1]=X[2]^X[7]>>>16^X[5]<<16;S[2]=X[4]^X[1]>>>16^X[7]<<16;S[3]=X[6]^X[3]>>>16^X[1]<<16;for(var i=0;i<4;i++){// Swap endian\nS[i]=(S[i]<<8|S[i]>>>24)&0x00ff00ff|(S[i]<<24|S[i]>>>8)&0xff00ff00;// Encrypt\nM[offset+i]^=S[i];}},blockSize:128/32,ivSize:64/32});function nextState(){// Shortcuts\nvar X=this._X;var C=this._C;// Save old counter values\nfor(var i=0;i<8;i++){C_[i]=C[i];}// Calculate new counter values\nC[0]=C[0]+0x4d34d34d+this._b|0;C[1]=C[1]+0xd34d34d3+(C[0]>>>0<C_[0]>>>0?1:0)|0;C[2]=C[2]+0x34d34d34+(C[1]>>>0<C_[1]>>>0?1:0)|0;C[3]=C[3]+0x4d34d34d+(C[2]>>>0<C_[2]>>>0?1:0)|0;C[4]=C[4]+0xd34d34d3+(C[3]>>>0<C_[3]>>>0?1:0)|0;C[5]=C[5]+0x34d34d34+(C[4]>>>0<C_[4]>>>0?1:0)|0;C[6]=C[6]+0x4d34d34d+(C[5]>>>0<C_[5]>>>0?1:0)|0;C[7]=C[7]+0xd34d34d3+(C[6]>>>0<C_[6]>>>0?1:0)|0;this._b=C[7]>>>0<C_[7]>>>0?1:0;// Calculate the g-values\nfor(var i=0;i<8;i++){var gx=X[i]+C[i];// Construct high and low argument for squaring\nvar ga=gx&0xffff;var gb=gx>>>16;// Calculate high and low result of squaring\nvar gh=((ga*ga>>>17)+ga*gb>>>15)+gb*gb;var gl=((gx&0xffff0000)*gx|0)+((gx&0x0000ffff)*gx|0);// High XOR low\nG[i]=gh^gl;}// Calculate new state values\nX[0]=G[0]+(G[7]<<16|G[7]>>>16)+(G[6]<<16|G[6]>>>16)|0;X[1]=G[1]+(G[0]<<8|G[0]>>>24)+G[7]|0;X[2]=G[2]+(G[1]<<16|G[1]>>>16)+(G[0]<<16|G[0]>>>16)|0;X[3]=G[3]+(G[2]<<8|G[2]>>>24)+G[1]|0;X[4]=G[4]+(G[3]<<16|G[3]>>>16)+(G[2]<<16|G[2]>>>16)|0;X[5]=G[5]+(G[4]<<8|G[4]>>>24)+G[3]|0;X[6]=G[6]+(G[5]<<16|G[5]>>>16)+(G[4]<<16|G[4]>>>16)|0;X[7]=G[7]+(G[6]<<8|G[6]>>>24)+G[5]|0;}/**\r\n             * Shortcut functions to the cipher's object interface.\r\n             *\r\n             * @example\r\n             *\r\n             *     var ciphertext = CryptoJS.Rabbit.encrypt(message, key, cfg);\r\n             *     var plaintext  = CryptoJS.Rabbit.decrypt(ciphertext, key, cfg);\r\n             */C.Rabbit=StreamCipher._createHelper(Rabbit);})();return CryptoJS.Rabbit;});/***/},/* 300 */ /***/function(module,exports,__nested_webpack_require_3832302__){;(function(root,factory,undef){if(true){// CommonJS\nmodule.exports=exports=factory(__nested_webpack_require_3832302__(1),__nested_webpack_require_3832302__(47),__nested_webpack_require_3832302__(48),__nested_webpack_require_3832302__(33),__nested_webpack_require_3832302__(6));}else{}})(this,function(CryptoJS){(function(){// Shortcuts\nvar C=CryptoJS;var C_lib=C.lib;var StreamCipher=C_lib.StreamCipher;var C_algo=C.algo;// Reusable objects\nvar S=[];var C_=[];var G=[];/**\r\n             * Rabbit stream cipher algorithm.\r\n             *\r\n             * This is a legacy version that neglected to convert the key to little-endian.\r\n             * This error doesn't affect the cipher's security,\r\n             * but it does affect its compatibility with other implementations.\r\n             */var RabbitLegacy=C_algo.RabbitLegacy=StreamCipher.extend({_doReset:function(){// Shortcuts\nvar K=this._key.words;var iv=this.cfg.iv;// Generate initial state values\nvar X=this._X=[K[0],K[3]<<16|K[2]>>>16,K[1],K[0]<<16|K[3]>>>16,K[2],K[1]<<16|K[0]>>>16,K[3],K[2]<<16|K[1]>>>16];// Generate initial counter values\nvar C=this._C=[K[2]<<16|K[2]>>>16,K[0]&0xffff0000|K[1]&0x0000ffff,K[3]<<16|K[3]>>>16,K[1]&0xffff0000|K[2]&0x0000ffff,K[0]<<16|K[0]>>>16,K[2]&0xffff0000|K[3]&0x0000ffff,K[1]<<16|K[1]>>>16,K[3]&0xffff0000|K[0]&0x0000ffff];// Carry bit\nthis._b=0;// Iterate the system four times\nfor(var i=0;i<4;i++){nextState.call(this);}// Modify the counters\nfor(var i=0;i<8;i++){C[i]^=X[i+4&7];}// IV setup\nif(iv){// Shortcuts\nvar IV=iv.words;var IV_0=IV[0];var IV_1=IV[1];// Generate four subvectors\nvar i0=(IV_0<<8|IV_0>>>24)&0x00ff00ff|(IV_0<<24|IV_0>>>8)&0xff00ff00;var i2=(IV_1<<8|IV_1>>>24)&0x00ff00ff|(IV_1<<24|IV_1>>>8)&0xff00ff00;var i1=i0>>>16|i2&0xffff0000;var i3=i2<<16|i0&0x0000ffff;// Modify counter values\nC[0]^=i0;C[1]^=i1;C[2]^=i2;C[3]^=i3;C[4]^=i0;C[5]^=i1;C[6]^=i2;C[7]^=i3;// Iterate the system four times\nfor(var i=0;i<4;i++){nextState.call(this);}}},_doProcessBlock:function(M,offset){// Shortcut\nvar X=this._X;// Iterate the system\nnextState.call(this);// Generate four keystream words\nS[0]=X[0]^X[5]>>>16^X[3]<<16;S[1]=X[2]^X[7]>>>16^X[5]<<16;S[2]=X[4]^X[1]>>>16^X[7]<<16;S[3]=X[6]^X[3]>>>16^X[1]<<16;for(var i=0;i<4;i++){// Swap endian\nS[i]=(S[i]<<8|S[i]>>>24)&0x00ff00ff|(S[i]<<24|S[i]>>>8)&0xff00ff00;// Encrypt\nM[offset+i]^=S[i];}},blockSize:128/32,ivSize:64/32});function nextState(){// Shortcuts\nvar X=this._X;var C=this._C;// Save old counter values\nfor(var i=0;i<8;i++){C_[i]=C[i];}// Calculate new counter values\nC[0]=C[0]+0x4d34d34d+this._b|0;C[1]=C[1]+0xd34d34d3+(C[0]>>>0<C_[0]>>>0?1:0)|0;C[2]=C[2]+0x34d34d34+(C[1]>>>0<C_[1]>>>0?1:0)|0;C[3]=C[3]+0x4d34d34d+(C[2]>>>0<C_[2]>>>0?1:0)|0;C[4]=C[4]+0xd34d34d3+(C[3]>>>0<C_[3]>>>0?1:0)|0;C[5]=C[5]+0x34d34d34+(C[4]>>>0<C_[4]>>>0?1:0)|0;C[6]=C[6]+0x4d34d34d+(C[5]>>>0<C_[5]>>>0?1:0)|0;C[7]=C[7]+0xd34d34d3+(C[6]>>>0<C_[6]>>>0?1:0)|0;this._b=C[7]>>>0<C_[7]>>>0?1:0;// Calculate the g-values\nfor(var i=0;i<8;i++){var gx=X[i]+C[i];// Construct high and low argument for squaring\nvar ga=gx&0xffff;var gb=gx>>>16;// Calculate high and low result of squaring\nvar gh=((ga*ga>>>17)+ga*gb>>>15)+gb*gb;var gl=((gx&0xffff0000)*gx|0)+((gx&0x0000ffff)*gx|0);// High XOR low\nG[i]=gh^gl;}// Calculate new state values\nX[0]=G[0]+(G[7]<<16|G[7]>>>16)+(G[6]<<16|G[6]>>>16)|0;X[1]=G[1]+(G[0]<<8|G[0]>>>24)+G[7]|0;X[2]=G[2]+(G[1]<<16|G[1]>>>16)+(G[0]<<16|G[0]>>>16)|0;X[3]=G[3]+(G[2]<<8|G[2]>>>24)+G[1]|0;X[4]=G[4]+(G[3]<<16|G[3]>>>16)+(G[2]<<16|G[2]>>>16)|0;X[5]=G[5]+(G[4]<<8|G[4]>>>24)+G[3]|0;X[6]=G[6]+(G[5]<<16|G[5]>>>16)+(G[4]<<16|G[4]>>>16)|0;X[7]=G[7]+(G[6]<<8|G[6]>>>24)+G[5]|0;}/**\r\n             * Shortcut functions to the cipher's object interface.\r\n             *\r\n             * @example\r\n             *\r\n             *     var ciphertext = CryptoJS.RabbitLegacy.encrypt(message, key, cfg);\r\n             *     var plaintext  = CryptoJS.RabbitLegacy.decrypt(ciphertext, key, cfg);\r\n             */C.RabbitLegacy=StreamCipher._createHelper(RabbitLegacy);})();return CryptoJS.RabbitLegacy;});/***/},/* 301 */ /***/function(module,exports,__nested_webpack_require_3836346__){\"use strict\";/* WEBPACK VAR INJECTION */(function(Buffer,process){function _interopDefault(ex){return ex&&typeof ex==='object'&&'default'in ex?ex['default']:ex;}var r=_interopDefault(__nested_webpack_require_3836346__(302));var _Object$getOwnPropertyDescriptor=_interopDefault(__nested_webpack_require_3836346__(332));var _getIterator=_interopDefault(__nested_webpack_require_3836346__(335));var _Object$freeze=_interopDefault(__nested_webpack_require_3836346__(345));var _typeof=_interopDefault(__nested_webpack_require_3836346__(122));var _Object$keys=_interopDefault(__nested_webpack_require_3836346__(357));var _Object$defineProperty=_interopDefault(__nested_webpack_require_3836346__(191));var _classCallCheck=_interopDefault(__nested_webpack_require_3836346__(362));var _createClass=_interopDefault(__nested_webpack_require_3836346__(363));var _Map=_interopDefault(__nested_webpack_require_3836346__(364));var _possibleConstructorReturn=_interopDefault(__nested_webpack_require_3836346__(375));var _inherits=_interopDefault(__nested_webpack_require_3836346__(376));var restructure_src_utils=__nested_webpack_require_3836346__(26);var _Object$defineProperties=_interopDefault(__nested_webpack_require_3836346__(384));var isEqual=_interopDefault(__nested_webpack_require_3836346__(387));var _Object$assign=_interopDefault(__nested_webpack_require_3836346__(401));var _String$fromCodePoint=_interopDefault(__nested_webpack_require_3836346__(405));var _Array$from=_interopDefault(__nested_webpack_require_3836346__(408));var _Set=_interopDefault(__nested_webpack_require_3836346__(413));var unicode=_interopDefault(__nested_webpack_require_3836346__(419));var UnicodeTrie=_interopDefault(__nested_webpack_require_3836346__(424));var StateMachine=_interopDefault(__nested_webpack_require_3836346__(425));var _Number$EPSILON=_interopDefault(__nested_webpack_require_3836346__(427));var cloneDeep=_interopDefault(__nested_webpack_require_3836346__(430));var inflate=_interopDefault(__nested_webpack_require_3836346__(83));var brotli=_interopDefault(__nested_webpack_require_3836346__(431));var fontkit={};fontkit.logErrors=false;var formats=[];fontkit.registerFormat=function(format){formats.push(format);};fontkit.openSync=function(filename,postscriptName){var buffer=fs.readFileSync(filename);return fontkit.create(buffer,postscriptName);};fontkit.open=function(filename,postscriptName,callback){if(typeof postscriptName==='function'){callback=postscriptName;postscriptName=null;}fs.readFile(filename,function(err,buffer){if(err){return callback(err);}try{var font=fontkit.create(buffer,postscriptName);}catch(e){return callback(e);}return callback(null,font);});return;};fontkit.create=function(buffer,postscriptName){for(var i=0;i<formats.length;i++){var format=formats[i];if(format.probe(buffer)){var font=new format(new r.DecodeStream(buffer));if(postscriptName){return font.getFont(postscriptName);}return font;}}throw new Error('Unknown font format');};fontkit.defaultLanguage='en';fontkit.setDefaultLanguage=function(){var lang=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'en';fontkit.defaultLanguage=lang;};/**\r\n     * This decorator caches the results of a getter or method such that\r\n     * the results are lazily computed once, and then cached.\r\n     * @private\r\n     */function cache(target,key,descriptor){if(descriptor.get){var get=descriptor.get;descriptor.get=function(){var value=get.call(this);_Object$defineProperty(this,key,{value:value});return value;};}else if(typeof descriptor.value==='function'){var fn=descriptor.value;return{get:function get(){var cache=new _Map();function memoized(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}var key=args.length>0?args[0]:'value';if(cache.has(key)){return cache.get(key);}var result=fn.apply(this,args);cache.set(key,result);return result;};_Object$defineProperty(this,key,{value:memoized});return memoized;}};}}var SubHeader=new r.Struct({firstCode:r.uint16,entryCount:r.uint16,idDelta:r.int16,idRangeOffset:r.uint16});var CmapGroup=new r.Struct({startCharCode:r.uint32,endCharCode:r.uint32,glyphID:r.uint32});var UnicodeValueRange=new r.Struct({startUnicodeValue:r.uint24,additionalCount:r.uint8});var UVSMapping=new r.Struct({unicodeValue:r.uint24,glyphID:r.uint16});var DefaultUVS=new r.Array(UnicodeValueRange,r.uint32);var NonDefaultUVS=new r.Array(UVSMapping,r.uint32);var VarSelectorRecord=new r.Struct({varSelector:r.uint24,defaultUVS:new r.Pointer(r.uint32,DefaultUVS,{type:'parent'}),nonDefaultUVS:new r.Pointer(r.uint32,NonDefaultUVS,{type:'parent'})});var CmapSubtable=new r.VersionedStruct(r.uint16,{0:{// Byte encoding\nlength:r.uint16,// Total table length in bytes (set to 262 for format 0)\nlanguage:r.uint16,// Language code for this encoding subtable, or zero if language-independent\ncodeMap:new r.LazyArray(r.uint8,256)},2:{// High-byte mapping (CJK)\nlength:r.uint16,language:r.uint16,subHeaderKeys:new r.Array(r.uint16,256),subHeaderCount:function subHeaderCount(t){return Math.max.apply(Math,t.subHeaderKeys);},subHeaders:new r.LazyArray(SubHeader,'subHeaderCount'),glyphIndexArray:new r.LazyArray(r.uint16,'subHeaderCount')},4:{// Segment mapping to delta values\nlength:r.uint16,// Total table length in bytes\nlanguage:r.uint16,// Language code\nsegCountX2:r.uint16,segCount:function segCount(t){return t.segCountX2>>1;},searchRange:r.uint16,entrySelector:r.uint16,rangeShift:r.uint16,endCode:new r.LazyArray(r.uint16,'segCount'),reservedPad:new r.Reserved(r.uint16),// This value should be zero\nstartCode:new r.LazyArray(r.uint16,'segCount'),idDelta:new r.LazyArray(r.int16,'segCount'),idRangeOffset:new r.LazyArray(r.uint16,'segCount'),glyphIndexArray:new r.LazyArray(r.uint16,function(t){return(t.length-t._currentOffset)/2;})},6:{// Trimmed table\nlength:r.uint16,language:r.uint16,firstCode:r.uint16,entryCount:r.uint16,glyphIndices:new r.LazyArray(r.uint16,'entryCount')},8:{// mixed 16-bit and 32-bit coverage\nreserved:new r.Reserved(r.uint16),length:r.uint32,language:r.uint16,is32:new r.LazyArray(r.uint8,8192),nGroups:r.uint32,groups:new r.LazyArray(CmapGroup,'nGroups')},10:{// Trimmed Array\nreserved:new r.Reserved(r.uint16),length:r.uint32,language:r.uint32,firstCode:r.uint32,entryCount:r.uint32,glyphIndices:new r.LazyArray(r.uint16,'numChars')},12:{// Segmented coverage\nreserved:new r.Reserved(r.uint16),length:r.uint32,language:r.uint32,nGroups:r.uint32,groups:new r.LazyArray(CmapGroup,'nGroups')},13:{// Many-to-one range mappings (same as 12 except for group.startGlyphID)\nreserved:new r.Reserved(r.uint16),length:r.uint32,language:r.uint32,nGroups:r.uint32,groups:new r.LazyArray(CmapGroup,'nGroups')},14:{// Unicode Variation Sequences\nlength:r.uint32,numRecords:r.uint32,varSelectors:new r.LazyArray(VarSelectorRecord,'numRecords')}});var CmapEntry=new r.Struct({platformID:r.uint16,// Platform identifier\nencodingID:r.uint16,// Platform-specific encoding identifier\ntable:new r.Pointer(r.uint32,CmapSubtable,{type:'parent',lazy:true})});// character to glyph mapping\nvar cmap=new r.Struct({version:r.uint16,numSubtables:r.uint16,tables:new r.Array(CmapEntry,'numSubtables')});// font header\nvar head=new r.Struct({version:r.int32,// 0x00010000 (version 1.0)\nrevision:r.int32,// set by font manufacturer\ncheckSumAdjustment:r.uint32,magicNumber:r.uint32,// set to 0x5F0F3CF5\nflags:r.uint16,unitsPerEm:r.uint16,// range from 64 to 16384\ncreated:new r.Array(r.int32,2),modified:new r.Array(r.int32,2),xMin:r.int16,// for all glyph bounding boxes\nyMin:r.int16,// for all glyph bounding boxes\nxMax:r.int16,// for all glyph bounding boxes\nyMax:r.int16,// for all glyph bounding boxes\nmacStyle:new r.Bitfield(r.uint16,['bold','italic','underline','outline','shadow','condensed','extended']),lowestRecPPEM:r.uint16,// smallest readable size in pixels\nfontDirectionHint:r.int16,indexToLocFormat:r.int16,// 0 for short offsets, 1 for long\nglyphDataFormat:r.int16// 0 for current format\n});// horizontal header\nvar hhea=new r.Struct({version:r.int32,ascent:r.int16,// Distance from baseline of highest ascender\ndescent:r.int16,// Distance from baseline of lowest descender\nlineGap:r.int16,// Typographic line gap\nadvanceWidthMax:r.uint16,// Maximum advance width value in 'hmtx' table\nminLeftSideBearing:r.int16,// Maximum advance width value in 'hmtx' table\nminRightSideBearing:r.int16,// Minimum right sidebearing value\nxMaxExtent:r.int16,caretSlopeRise:r.int16,// Used to calculate the slope of the cursor (rise/run); 1 for vertical\ncaretSlopeRun:r.int16,// 0 for vertical\ncaretOffset:r.int16,// Set to 0 for non-slanted fonts\nreserved:new r.Reserved(r.int16,4),metricDataFormat:r.int16,// 0 for current format\nnumberOfMetrics:r.uint16// Number of advance widths in 'hmtx' table\n});var HmtxEntry=new r.Struct({advance:r.uint16,bearing:r.int16});var hmtx=new r.Struct({metrics:new r.LazyArray(HmtxEntry,function(t){return t.parent.hhea.numberOfMetrics;}),bearings:new r.LazyArray(r.int16,function(t){return t.parent.maxp.numGlyphs-t.parent.hhea.numberOfMetrics;})});// maxiumum profile\nvar maxp=new r.Struct({version:r.int32,numGlyphs:r.uint16,// The number of glyphs in the font\nmaxPoints:r.uint16,// Maximum points in a non-composite glyph\nmaxContours:r.uint16,// Maximum contours in a non-composite glyph\nmaxComponentPoints:r.uint16,// Maximum points in a composite glyph\nmaxComponentContours:r.uint16,// Maximum contours in a composite glyph\nmaxZones:r.uint16,// 1 if instructions do not use the twilight zone, 2 otherwise\nmaxTwilightPoints:r.uint16,// Maximum points used in Z0\nmaxStorage:r.uint16,// Number of Storage Area locations\nmaxFunctionDefs:r.uint16,// Number of FDEFs\nmaxInstructionDefs:r.uint16,// Number of IDEFs\nmaxStackElements:r.uint16,// Maximum stack depth\nmaxSizeOfInstructions:r.uint16,// Maximum byte count for glyph instructions\nmaxComponentElements:r.uint16,// Maximum number of components referenced at “top level” for any composite glyph\nmaxComponentDepth:r.uint16// Maximum levels of recursion; 1 for simple components\n});/**\r\n     * Gets an encoding name from platform, encoding, and language ids.\r\n     * Returned encoding names can be used in iconv-lite to decode text.\r\n     */function getEncoding(platformID,encodingID){var languageID=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;if(platformID===1&&MAC_LANGUAGE_ENCODINGS[languageID]){return MAC_LANGUAGE_ENCODINGS[languageID];}return ENCODINGS[platformID][encodingID];}// Map of platform ids to encoding ids.\nvar ENCODINGS=[// unicode\n['utf16be','utf16be','utf16be','utf16be','utf16be','utf16be'],// macintosh\n// Mappings available at http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/\n// 0\tRoman                 17\tMalayalam\n// 1\tJapanese\t            18\tSinhalese\n// 2\tTraditional Chinese\t  19\tBurmese\n// 3\tKorean\t              20\tKhmer\n// 4\tArabic\t              21\tThai\n// 5\tHebrew\t              22\tLaotian\n// 6\tGreek\t                23\tGeorgian\n// 7\tRussian\t              24\tArmenian\n// 8\tRSymbol\t              25\tSimplified Chinese\n// 9\tDevanagari\t          26\tTibetan\n// 10\tGurmukhi\t            27\tMongolian\n// 11\tGujarati\t            28\tGeez\n// 12\tOriya\t                29\tSlavic\n// 13\tBengali\t              30\tVietnamese\n// 14\tTamil\t                31\tSindhi\n// 15\tTelugu\t              32\t(Uninterpreted)\n// 16\tKannada\n['macroman','shift-jis','big5','euc-kr','iso-8859-6','iso-8859-8','macgreek','maccyrillic','symbol','Devanagari','Gurmukhi','Gujarati','Oriya','Bengali','Tamil','Telugu','Kannada','Malayalam','Sinhalese','Burmese','Khmer','macthai','Laotian','Georgian','Armenian','gb-2312-80','Tibetan','Mongolian','Geez','maccenteuro','Vietnamese','Sindhi'],// ISO (deprecated)\n['ascii'],// windows\n// Docs here: http://msdn.microsoft.com/en-us/library/system.text.encoding(v=vs.110).aspx\n['symbol','utf16be','shift-jis','gb18030','big5','wansung','johab',null,null,null,'utf16be']];// Overrides for Mac scripts by language id.\n// See http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/Readme.txt\nvar MAC_LANGUAGE_ENCODINGS={15:'maciceland',17:'macturkish',18:'maccroatian',24:'maccenteuro',25:'maccenteuro',26:'maccenteuro',27:'maccenteuro',28:'maccenteuro',30:'maciceland',37:'macromania',38:'maccenteuro',39:'maccenteuro',40:'maccenteuro',143:'macinuit',// Unsupported by iconv-lite\n146:'macgaelic'// Unsupported by iconv-lite\n};// Map of platform ids to BCP-47 language codes.\nvar LANGUAGES=[// unicode\n[],{// macintosh\n0:'en',30:'fo',60:'ks',90:'rw',1:'fr',31:'fa',61:'ku',91:'rn',2:'de',32:'ru',62:'sd',92:'ny',3:'it',33:'zh',63:'bo',93:'mg',4:'nl',34:'nl-BE',64:'ne',94:'eo',5:'sv',35:'ga',65:'sa',128:'cy',6:'es',36:'sq',66:'mr',129:'eu',7:'da',37:'ro',67:'bn',130:'ca',8:'pt',38:'cz',68:'as',131:'la',9:'no',39:'sk',69:'gu',132:'qu',10:'he',40:'si',70:'pa',133:'gn',11:'ja',41:'yi',71:'or',134:'ay',12:'ar',42:'sr',72:'ml',135:'tt',13:'fi',43:'mk',73:'kn',136:'ug',14:'el',44:'bg',74:'ta',137:'dz',15:'is',45:'uk',75:'te',138:'jv',16:'mt',46:'be',76:'si',139:'su',17:'tr',47:'uz',77:'my',140:'gl',18:'hr',48:'kk',78:'km',141:'af',19:'zh-Hant',49:'az-Cyrl',79:'lo',142:'br',20:'ur',50:'az-Arab',80:'vi',143:'iu',21:'hi',51:'hy',81:'id',144:'gd',22:'th',52:'ka',82:'tl',145:'gv',23:'ko',53:'mo',83:'ms',146:'ga',24:'lt',54:'ky',84:'ms-Arab',147:'to',25:'pl',55:'tg',85:'am',148:'el-polyton',26:'hu',56:'tk',86:'ti',149:'kl',27:'es',57:'mn-CN',87:'om',150:'az',28:'lv',58:'mn',88:'so',151:'nn',29:'se',59:'ps',89:'sw'},// ISO (deprecated)\n[],{// windows                                        \n0x0436:'af',0x4009:'en-IN',0x0487:'rw',0x0432:'tn',0x041C:'sq',0x1809:'en-IE',0x0441:'sw',0x045B:'si',0x0484:'gsw',0x2009:'en-JM',0x0457:'kok',0x041B:'sk',0x045E:'am',0x4409:'en-MY',0x0412:'ko',0x0424:'sl',0x1401:'ar-DZ',0x1409:'en-NZ',0x0440:'ky',0x2C0A:'es-AR',0x3C01:'ar-BH',0x3409:'en-PH',0x0454:'lo',0x400A:'es-BO',0x0C01:'ar',0x4809:'en-SG',0x0426:'lv',0x340A:'es-CL',0x0801:'ar-IQ',0x1C09:'en-ZA',0x0427:'lt',0x240A:'es-CO',0x2C01:'ar-JO',0x2C09:'en-TT',0x082E:'dsb',0x140A:'es-CR',0x3401:'ar-KW',0x0809:'en-GB',0x046E:'lb',0x1C0A:'es-DO',0x3001:'ar-LB',0x0409:'en',0x042F:'mk',0x300A:'es-EC',0x1001:'ar-LY',0x3009:'en-ZW',0x083E:'ms-BN',0x440A:'es-SV',0x1801:'ary',0x0425:'et',0x043E:'ms',0x100A:'es-GT',0x2001:'ar-OM',0x0438:'fo',0x044C:'ml',0x480A:'es-HN',0x4001:'ar-QA',0x0464:'fil',0x043A:'mt',0x080A:'es-MX',0x0401:'ar-SA',0x040B:'fi',0x0481:'mi',0x4C0A:'es-NI',0x2801:'ar-SY',0x080C:'fr-BE',0x047A:'arn',0x180A:'es-PA',0x1C01:'aeb',0x0C0C:'fr-CA',0x044E:'mr',0x3C0A:'es-PY',0x3801:'ar-AE',0x040C:'fr',0x047C:'moh',0x280A:'es-PE',0x2401:'ar-YE',0x140C:'fr-LU',0x0450:'mn',0x500A:'es-PR',0x042B:'hy',0x180C:'fr-MC',0x0850:'mn-CN',0x0C0A:'es',0x044D:'as',0x100C:'fr-CH',0x0461:'ne',0x040A:'es',0x082C:'az-Cyrl',0x0462:'fy',0x0414:'nb',0x540A:'es-US',0x042C:'az',0x0456:'gl',0x0814:'nn',0x380A:'es-UY',0x046D:'ba',0x0437:'ka',0x0482:'oc',0x200A:'es-VE',0x042D:'eu',0x0C07:'de-AT',0x0448:'or',0x081D:'sv-FI',0x0423:'be',0x0407:'de',0x0463:'ps',0x041D:'sv',0x0845:'bn',0x1407:'de-LI',0x0415:'pl',0x045A:'syr',0x0445:'bn-IN',0x1007:'de-LU',0x0416:'pt',0x0428:'tg',0x201A:'bs-Cyrl',0x0807:'de-CH',0x0816:'pt-PT',0x085F:'tzm',0x141A:'bs',0x0408:'el',0x0446:'pa',0x0449:'ta',0x047E:'br',0x046F:'kl',0x046B:'qu-BO',0x0444:'tt',0x0402:'bg',0x0447:'gu',0x086B:'qu-EC',0x044A:'te',0x0403:'ca',0x0468:'ha',0x0C6B:'qu',0x041E:'th',0x0C04:'zh-HK',0x040D:'he',0x0418:'ro',0x0451:'bo',0x1404:'zh-MO',0x0439:'hi',0x0417:'rm',0x041F:'tr',0x0804:'zh',0x040E:'hu',0x0419:'ru',0x0442:'tk',0x1004:'zh-SG',0x040F:'is',0x243B:'smn',0x0480:'ug',0x0404:'zh-TW',0x0470:'ig',0x103B:'smj-NO',0x0422:'uk',0x0483:'co',0x0421:'id',0x143B:'smj',0x042E:'hsb',0x041A:'hr',0x045D:'iu',0x0C3B:'se-FI',0x0420:'ur',0x101A:'hr-BA',0x085D:'iu-Latn',0x043B:'se',0x0843:'uz-Cyrl',0x0405:'cs',0x083C:'ga',0x083B:'se-SE',0x0443:'uz',0x0406:'da',0x0434:'xh',0x203B:'sms',0x042A:'vi',0x048C:'prs',0x0435:'zu',0x183B:'sma-NO',0x0452:'cy',0x0465:'dv',0x0410:'it',0x1C3B:'sms',0x0488:'wo',0x0813:'nl-BE',0x0810:'it-CH',0x044F:'sa',0x0485:'sah',0x0413:'nl',0x0411:'ja',0x1C1A:'sr-Cyrl-BA',0x0478:'ii',0x0C09:'en-AU',0x044B:'kn',0x0C1A:'sr',0x046A:'yo',0x2809:'en-BZ',0x043F:'kk',0x181A:'sr-Latn-BA',0x1009:'en-CA',0x0453:'km',0x081A:'sr-Latn',0x2409:'en-029',0x0486:'quc',0x046C:'nso'}];var NameRecord=new r.Struct({platformID:r.uint16,encodingID:r.uint16,languageID:r.uint16,nameID:r.uint16,length:r.uint16,string:new r.Pointer(r.uint16,new r.String('length',function(t){return getEncoding(t.platformID,t.encodingID,t.languageID);}),{type:'parent',relativeTo:'parent.stringOffset',allowNull:false})});var LangTagRecord=new r.Struct({length:r.uint16,tag:new r.Pointer(r.uint16,new r.String('length','utf16be'),{type:'parent',relativeTo:'stringOffset'})});var NameTable=new r.VersionedStruct(r.uint16,{0:{count:r.uint16,stringOffset:r.uint16,records:new r.Array(NameRecord,'count')},1:{count:r.uint16,stringOffset:r.uint16,records:new r.Array(NameRecord,'count'),langTagCount:r.uint16,langTags:new r.Array(LangTagRecord,'langTagCount')}});var NAMES=['copyright','fontFamily','fontSubfamily','uniqueSubfamily','fullName','version','postscriptName',// Note: A font may have only one PostScript name and that name must be ASCII.\n'trademark','manufacturer','designer','description','vendorURL','designerURL','license','licenseURL',null,// reserved\n'preferredFamily','preferredSubfamily','compatibleFull','sampleText','postscriptCIDFontName','wwsFamilyName','wwsSubfamilyName'];NameTable.process=function(stream){var records={};for(var _iterator=this.records,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var record=_ref;// find out what language this is for\nvar language=LANGUAGES[record.platformID][record.languageID];if(language==null&&this.langTags!=null&&record.languageID>=0x8000){language=this.langTags[record.languageID-0x8000].tag;}if(language==null){language=record.platformID+'-'+record.languageID;}// if the nameID is >= 256, it is a font feature record (AAT)\nvar key=record.nameID>=256?'fontFeatures':NAMES[record.nameID]||record.nameID;if(records[key]==null){records[key]={};}var obj=records[key];if(record.nameID>=256){obj=obj[record.nameID]||(obj[record.nameID]={});}if(typeof record.string==='string'||typeof obj[language]!=='string'){obj[language]=record.string;}}this.records=records;};NameTable.preEncode=function(){if(Array.isArray(this.records))return;this.version=0;var records=[];for(var key in this.records){var val=this.records[key];if(key==='fontFeatures')continue;records.push({platformID:3,encodingID:1,languageID:0x409,nameID:NAMES.indexOf(key),length:Buffer.byteLength(val.en,'utf16le'),string:val.en});if(key==='postscriptName'){records.push({platformID:1,encodingID:0,languageID:0,nameID:NAMES.indexOf(key),length:val.en.length,string:val.en});}}this.records=records;this.count=records.length;this.stringOffset=NameTable.size(this,null,false);};var OS2=new r.VersionedStruct(r.uint16,{header:{xAvgCharWidth:r.int16,// average weighted advance width of lower case letters and space\nusWeightClass:r.uint16,// visual weight of stroke in glyphs\nusWidthClass:r.uint16,// relative change from the normal aspect ratio (width to height ratio)\nfsType:new r.Bitfield(r.uint16,[// Indicates font embedding licensing rights\nnull,'noEmbedding','viewOnly','editable',null,null,null,null,'noSubsetting','bitmapOnly']),ySubscriptXSize:r.int16,// recommended horizontal size in pixels for subscripts\nySubscriptYSize:r.int16,// recommended vertical size in pixels for subscripts\nySubscriptXOffset:r.int16,// recommended horizontal offset for subscripts\nySubscriptYOffset:r.int16,// recommended vertical offset form the baseline for subscripts\nySuperscriptXSize:r.int16,// recommended horizontal size in pixels for superscripts\nySuperscriptYSize:r.int16,// recommended vertical size in pixels for superscripts\nySuperscriptXOffset:r.int16,// recommended horizontal offset for superscripts\nySuperscriptYOffset:r.int16,// recommended vertical offset from the baseline for superscripts\nyStrikeoutSize:r.int16,// width of the strikeout stroke\nyStrikeoutPosition:r.int16,// position of the strikeout stroke relative to the baseline\nsFamilyClass:r.int16,// classification of font-family design\npanose:new r.Array(r.uint8,10),// describe the visual characteristics of a given typeface\nulCharRange:new r.Array(r.uint32,4),vendorID:new r.String(4),// four character identifier for the font vendor\nfsSelection:new r.Bitfield(r.uint16,[// bit field containing information about the font\n'italic','underscore','negative','outlined','strikeout','bold','regular','useTypoMetrics','wws','oblique']),usFirstCharIndex:r.uint16,// The minimum Unicode index in this font\nusLastCharIndex:r.uint16// The maximum Unicode index in this font\n},// The Apple version of this table ends here, but the Microsoft one continues on...\n0:{},1:{typoAscender:r.int16,typoDescender:r.int16,typoLineGap:r.int16,winAscent:r.uint16,winDescent:r.uint16,codePageRange:new r.Array(r.uint32,2)},2:{// these should be common with version 1 somehow\ntypoAscender:r.int16,typoDescender:r.int16,typoLineGap:r.int16,winAscent:r.uint16,winDescent:r.uint16,codePageRange:new r.Array(r.uint32,2),xHeight:r.int16,capHeight:r.int16,defaultChar:r.uint16,breakChar:r.uint16,maxContent:r.uint16},5:{typoAscender:r.int16,typoDescender:r.int16,typoLineGap:r.int16,winAscent:r.uint16,winDescent:r.uint16,codePageRange:new r.Array(r.uint32,2),xHeight:r.int16,capHeight:r.int16,defaultChar:r.uint16,breakChar:r.uint16,maxContent:r.uint16,usLowerOpticalPointSize:r.uint16,usUpperOpticalPointSize:r.uint16}});var versions=OS2.versions;versions[3]=versions[4]=versions[2];// PostScript information\nvar post=new r.VersionedStruct(r.fixed32,{header:{// these fields exist at the top of all versions\nitalicAngle:r.fixed32,// Italic angle in counter-clockwise degrees from the vertical.\nunderlinePosition:r.int16,// Suggested distance of the top of the underline from the baseline\nunderlineThickness:r.int16,// Suggested values for the underline thickness\nisFixedPitch:r.uint32,// Whether the font is monospaced\nminMemType42:r.uint32,// Minimum memory usage when a TrueType font is downloaded as a Type 42 font\nmaxMemType42:r.uint32,// Maximum memory usage when a TrueType font is downloaded as a Type 42 font\nminMemType1:r.uint32,// Minimum memory usage when a TrueType font is downloaded as a Type 1 font\nmaxMemType1:r.uint32// Maximum memory usage when a TrueType font is downloaded as a Type 1 font\n},1:{},// version 1 has no additional fields\n2:{numberOfGlyphs:r.uint16,glyphNameIndex:new r.Array(r.uint16,'numberOfGlyphs'),names:new r.Array(new r.String(r.uint8))},2.5:{numberOfGlyphs:r.uint16,offsets:new r.Array(r.uint8,'numberOfGlyphs')},3:{},// version 3 has no additional fields\n4:{map:new r.Array(r.uint32,function(t){return t.parent.maxp.numGlyphs;})}});// An array of predefined values accessible by instructions\nvar cvt=new r.Struct({controlValues:new r.Array(r.int16)});// A list of instructions that are executed once when a font is first used.\n// These instructions are known as the font program. The main use of this table\n// is for the definition of functions that are used in many different glyph programs.\nvar fpgm=new r.Struct({instructions:new r.Array(r.uint8)});var loca=new r.VersionedStruct('head.indexToLocFormat',{0:{offsets:new r.Array(r.uint16)},1:{offsets:new r.Array(r.uint32)}});loca.process=function(){if(this.version===0){for(var i=0;i<this.offsets.length;i++){this.offsets[i]<<=1;}}};loca.preEncode=function(){if(this.version===0){for(var i=0;i<this.offsets.length;i++){this.offsets[i]>>>=1;}}};// Set of instructions executed whenever the point size or font transformation change\nvar prep=new r.Struct({controlValueProgram:new r.Array(r.uint8)});// only used for encoding\nvar glyf=new r.Array(new r.Buffer());var CFFIndex=function(){function CFFIndex(type){_classCallCheck(this,CFFIndex);this.type=type;}CFFIndex.prototype.getCFFVersion=function getCFFVersion(ctx){while(ctx&&!ctx.hdrSize){ctx=ctx.parent;}return ctx?ctx.version:-1;};CFFIndex.prototype.decode=function decode(stream,parent){var version=this.getCFFVersion(parent);var count=version>=2?stream.readUInt32BE():stream.readUInt16BE();if(count===0){return[];}var offSize=stream.readUInt8();var offsetType=void 0;if(offSize===1){offsetType=r.uint8;}else if(offSize===2){offsetType=r.uint16;}else if(offSize===3){offsetType=r.uint24;}else if(offSize===4){offsetType=r.uint32;}else{throw new Error(\"Bad offset size in CFFIndex: \"+offSize+\" \"+stream.pos);}var ret=[];var startPos=stream.pos+(count+1)*offSize-1;var start=offsetType.decode(stream);for(var i=0;i<count;i++){var end=offsetType.decode(stream);if(this.type!=null){var pos=stream.pos;stream.pos=startPos+start;parent.length=end-start;ret.push(this.type.decode(stream,parent));stream.pos=pos;}else{ret.push({offset:startPos+start,length:end-start});}start=end;}stream.pos=startPos+start;return ret;};CFFIndex.prototype.size=function size(arr,parent){var size=2;if(arr.length===0){return size;}var type=this.type||new r.Buffer();// find maximum offset to detminine offset type\nvar offset=1;for(var i=0;i<arr.length;i++){var item=arr[i];offset+=type.size(item,parent);}var offsetType=void 0;if(offset<=0xff){offsetType=r.uint8;}else if(offset<=0xffff){offsetType=r.uint16;}else if(offset<=0xffffff){offsetType=r.uint24;}else if(offset<=0xffffffff){offsetType=r.uint32;}else{throw new Error(\"Bad offset in CFFIndex\");}size+=1+offsetType.size()*(arr.length+1);size+=offset-1;return size;};CFFIndex.prototype.encode=function encode(stream,arr,parent){stream.writeUInt16BE(arr.length);if(arr.length===0){return;}var type=this.type||new r.Buffer();// find maximum offset to detminine offset type\nvar sizes=[];var offset=1;for(var _iterator=arr,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var item=_ref;var s=type.size(item,parent);sizes.push(s);offset+=s;}var offsetType=void 0;if(offset<=0xff){offsetType=r.uint8;}else if(offset<=0xffff){offsetType=r.uint16;}else if(offset<=0xffffff){offsetType=r.uint24;}else if(offset<=0xffffffff){offsetType=r.uint32;}else{throw new Error(\"Bad offset in CFFIndex\");}// write offset size\nstream.writeUInt8(offsetType.size());// write elements\noffset=1;offsetType.encode(stream,offset);for(var _iterator2=sizes,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var size=_ref2;offset+=size;offsetType.encode(stream,offset);}for(var _iterator3=arr,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_getIterator(_iterator3);;){var _ref3;if(_isArray3){if(_i3>=_iterator3.length)break;_ref3=_iterator3[_i3++];}else{_i3=_iterator3.next();if(_i3.done)break;_ref3=_i3.value;}var _item=_ref3;type.encode(stream,_item,parent);}return;};return CFFIndex;}();var FLOAT_EOF=0xf;var FLOAT_LOOKUP=['0','1','2','3','4','5','6','7','8','9','.','E','E-',null,'-'];var FLOAT_ENCODE_LOOKUP={'.':10,'E':11,'E-':12,'-':14};var CFFOperand=function(){function CFFOperand(){_classCallCheck(this,CFFOperand);}CFFOperand.decode=function decode(stream,value){if(32<=value&&value<=246){return value-139;}if(247<=value&&value<=250){return(value-247)*256+stream.readUInt8()+108;}if(251<=value&&value<=254){return-(value-251)*256-stream.readUInt8()-108;}if(value===28){return stream.readInt16BE();}if(value===29){return stream.readInt32BE();}if(value===30){var str='';while(true){var b=stream.readUInt8();var n1=b>>4;if(n1===FLOAT_EOF){break;}str+=FLOAT_LOOKUP[n1];var n2=b&15;if(n2===FLOAT_EOF){break;}str+=FLOAT_LOOKUP[n2];}return parseFloat(str);}return null;};CFFOperand.size=function size(value){// if the value needs to be forced to the largest size (32 bit)\n// e.g. for unknown pointers, set to 32768\nif(value.forceLarge){value=32768;}if((value|0)!==value){// floating point\nvar str=''+value;return 1+Math.ceil((str.length+1)/2);}else if(-107<=value&&value<=107){return 1;}else if(108<=value&&value<=1131||-1131<=value&&value<=-108){return 2;}else if(-32768<=value&&value<=32767){return 3;}else{return 5;}};CFFOperand.encode=function encode(stream,value){// if the value needs to be forced to the largest size (32 bit)\n// e.g. for unknown pointers, save the old value and set to 32768\nvar val=Number(value);if(value.forceLarge){stream.writeUInt8(29);return stream.writeInt32BE(val);}else if((val|0)!==val){// floating point\nstream.writeUInt8(30);var str=''+val;for(var i=0;i<str.length;i+=2){var c1=str[i];var n1=FLOAT_ENCODE_LOOKUP[c1]||+c1;if(i===str.length-1){var n2=FLOAT_EOF;}else{var c2=str[i+1];var n2=FLOAT_ENCODE_LOOKUP[c2]||+c2;}stream.writeUInt8(n1<<4|n2&15);}if(n2!==FLOAT_EOF){return stream.writeUInt8(FLOAT_EOF<<4);}}else if(-107<=val&&val<=107){return stream.writeUInt8(val+139);}else if(108<=val&&val<=1131){val-=108;stream.writeUInt8((val>>8)+247);return stream.writeUInt8(val&0xff);}else if(-1131<=val&&val<=-108){val=-val-108;stream.writeUInt8((val>>8)+251);return stream.writeUInt8(val&0xff);}else if(-32768<=val&&val<=32767){stream.writeUInt8(28);return stream.writeInt16BE(val);}else{stream.writeUInt8(29);return stream.writeInt32BE(val);}};return CFFOperand;}();var CFFDict=function(){function CFFDict(){var ops=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];_classCallCheck(this,CFFDict);this.ops=ops;this.fields={};for(var _iterator=ops,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var field=_ref;var key=Array.isArray(field[0])?field[0][0]<<8|field[0][1]:field[0];this.fields[key]=field;}}CFFDict.prototype.decodeOperands=function decodeOperands(type,stream,ret,operands){var _this=this;if(Array.isArray(type)){return operands.map(function(op,i){return _this.decodeOperands(type[i],stream,ret,[op]);});}else if(type.decode!=null){return type.decode(stream,ret,operands);}else{switch(type){case'number':case'offset':case'sid':return operands[0];case'boolean':return!!operands[0];default:return operands;}}};CFFDict.prototype.encodeOperands=function encodeOperands(type,stream,ctx,operands){var _this2=this;if(Array.isArray(type)){return operands.map(function(op,i){return _this2.encodeOperands(type[i],stream,ctx,op)[0];});}else if(type.encode!=null){return type.encode(stream,operands,ctx);}else if(typeof operands==='number'){return[operands];}else if(typeof operands==='boolean'){return[+operands];}else if(Array.isArray(operands)){return operands;}else{return[operands];}};CFFDict.prototype.decode=function decode(stream,parent){var end=stream.pos+parent.length;var ret={};var operands=[];// define hidden properties\n_Object$defineProperties(ret,{parent:{value:parent},_startOffset:{value:stream.pos}});// fill in defaults\nfor(var key in this.fields){var field=this.fields[key];ret[field[1]]=field[3];}while(stream.pos<end){var b=stream.readUInt8();if(b<28){if(b===12){b=b<<8|stream.readUInt8();}var _field=this.fields[b];if(!_field){throw new Error('Unknown operator '+b);}var val=this.decodeOperands(_field[2],stream,ret,operands);if(val!=null){if(val instanceof restructure_src_utils.PropertyDescriptor){_Object$defineProperty(ret,_field[1],val);}else{ret[_field[1]]=val;}}operands=[];}else{operands.push(CFFOperand.decode(stream,b));}}return ret;};CFFDict.prototype.size=function size(dict,parent){var includePointers=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;var ctx={parent:parent,val:dict,pointerSize:0,startOffset:parent.startOffset||0};var len=0;for(var k in this.fields){var field=this.fields[k];var val=dict[field[1]];if(val==null||isEqual(val,field[3])){continue;}var operands=this.encodeOperands(field[2],null,ctx,val);for(var _iterator2=operands,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var op=_ref2;len+=CFFOperand.size(op);}var key=Array.isArray(field[0])?field[0]:[field[0]];len+=key.length;}if(includePointers){len+=ctx.pointerSize;}return len;};CFFDict.prototype.encode=function encode(stream,dict,parent){var ctx={pointers:[],startOffset:stream.pos,parent:parent,val:dict,pointerSize:0};ctx.pointerOffset=stream.pos+this.size(dict,ctx,false);for(var _iterator3=this.ops,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_getIterator(_iterator3);;){var _ref3;if(_isArray3){if(_i3>=_iterator3.length)break;_ref3=_iterator3[_i3++];}else{_i3=_iterator3.next();if(_i3.done)break;_ref3=_i3.value;}var field=_ref3;var val=dict[field[1]];if(val==null||isEqual(val,field[3])){continue;}var operands=this.encodeOperands(field[2],stream,ctx,val);for(var _iterator4=operands,_isArray4=Array.isArray(_iterator4),_i4=0,_iterator4=_isArray4?_iterator4:_getIterator(_iterator4);;){var _ref4;if(_isArray4){if(_i4>=_iterator4.length)break;_ref4=_iterator4[_i4++];}else{_i4=_iterator4.next();if(_i4.done)break;_ref4=_i4.value;}var op=_ref4;CFFOperand.encode(stream,op);}var key=Array.isArray(field[0])?field[0]:[field[0]];for(var _iterator5=key,_isArray5=Array.isArray(_iterator5),_i5=0,_iterator5=_isArray5?_iterator5:_getIterator(_iterator5);;){var _ref5;if(_isArray5){if(_i5>=_iterator5.length)break;_ref5=_iterator5[_i5++];}else{_i5=_iterator5.next();if(_i5.done)break;_ref5=_i5.value;}var _op=_ref5;stream.writeUInt8(_op);}}var i=0;while(i<ctx.pointers.length){var ptr=ctx.pointers[i++];ptr.type.encode(stream,ptr.val,ptr.parent);}return;};return CFFDict;}();var CFFPointer=function(_r$Pointer){_inherits(CFFPointer,_r$Pointer);function CFFPointer(type){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,CFFPointer);if(options.type==null){options.type='global';}return _possibleConstructorReturn(this,_r$Pointer.call(this,null,type,options));}CFFPointer.prototype.decode=function decode(stream,parent,operands){this.offsetType={decode:function decode(){return operands[0];}};return _r$Pointer.prototype.decode.call(this,stream,parent,operands);};CFFPointer.prototype.encode=function encode(stream,value,ctx){if(!stream){// compute the size (so ctx.pointerSize is correct)\nthis.offsetType={size:function size(){return 0;}};this.size(value,ctx);return[new Ptr(0)];}var ptr=null;this.offsetType={encode:function encode(stream,val){return ptr=val;}};_r$Pointer.prototype.encode.call(this,stream,value,ctx);return[new Ptr(ptr)];};return CFFPointer;}(r.Pointer);var Ptr=function(){function Ptr(val){_classCallCheck(this,Ptr);this.val=val;this.forceLarge=true;}Ptr.prototype.valueOf=function valueOf(){return this.val;};return Ptr;}();var CFFBlendOp=function(){function CFFBlendOp(){_classCallCheck(this,CFFBlendOp);}CFFBlendOp.decode=function decode(stream,parent,operands){var numBlends=operands.pop();// TODO: actually blend. For now just consume the deltas\n// since we don't use any of the values anyway.\nwhile(operands.length>numBlends){operands.pop();}};return CFFBlendOp;}();var CFFPrivateDict=new CFFDict([// key       name                    type                                          default\n[6,'BlueValues','delta',null],[7,'OtherBlues','delta',null],[8,'FamilyBlues','delta',null],[9,'FamilyOtherBlues','delta',null],[[12,9],'BlueScale','number',0.039625],[[12,10],'BlueShift','number',7],[[12,11],'BlueFuzz','number',1],[10,'StdHW','number',null],[11,'StdVW','number',null],[[12,12],'StemSnapH','delta',null],[[12,13],'StemSnapV','delta',null],[[12,14],'ForceBold','boolean',false],[[12,17],'LanguageGroup','number',0],[[12,18],'ExpansionFactor','number',0.06],[[12,19],'initialRandomSeed','number',0],[20,'defaultWidthX','number',0],[21,'nominalWidthX','number',0],[22,'vsindex','number',0],[23,'blend',CFFBlendOp,null],[19,'Subrs',new CFFPointer(new CFFIndex(),{type:'local'}),null]]);// Automatically generated from Appendix A of the CFF specification; do\n// not edit. Length should be 391.\nvar standardStrings=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"];var StandardEncoding=['','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','space','exclam','quotedbl','numbersign','dollar','percent','ampersand','quoteright','parenleft','parenright','asterisk','plus','comma','hyphen','period','slash','zero','one','two','three','four','five','six','seven','eight','nine','colon','semicolon','less','equal','greater','question','at','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','bracketleft','backslash','bracketright','asciicircum','underscore','quoteleft','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','braceleft','bar','braceright','asciitilde','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','exclamdown','cent','sterling','fraction','yen','florin','section','currency','quotesingle','quotedblleft','guillemotleft','guilsinglleft','guilsinglright','fi','fl','','endash','dagger','daggerdbl','periodcentered','','paragraph','bullet','quotesinglbase','quotedblbase','quotedblright','guillemotright','ellipsis','perthousand','','questiondown','','grave','acute','circumflex','tilde','macron','breve','dotaccent','dieresis','','ring','cedilla','','hungarumlaut','ogonek','caron','emdash','','','','','','','','','','','','','','','','','AE','','ordfeminine','','','','','Lslash','Oslash','OE','ordmasculine','','','','','','ae','','','','dotlessi','','','lslash','oslash','oe','germandbls'];var ExpertEncoding=['','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','space','exclamsmall','Hungarumlautsmall','','dollaroldstyle','dollarsuperior','ampersandsmall','Acutesmall','parenleftsuperior','parenrightsuperior','twodotenleader','onedotenleader','comma','hyphen','period','fraction','zerooldstyle','oneoldstyle','twooldstyle','threeoldstyle','fouroldstyle','fiveoldstyle','sixoldstyle','sevenoldstyle','eightoldstyle','nineoldstyle','colon','semicolon','commasuperior','threequartersemdash','periodsuperior','questionsmall','','asuperior','bsuperior','centsuperior','dsuperior','esuperior','','','isuperior','','','lsuperior','msuperior','nsuperior','osuperior','','','rsuperior','ssuperior','tsuperior','','ff','fi','fl','ffi','ffl','parenleftinferior','','parenrightinferior','Circumflexsmall','hyphensuperior','Gravesmall','Asmall','Bsmall','Csmall','Dsmall','Esmall','Fsmall','Gsmall','Hsmall','Ismall','Jsmall','Ksmall','Lsmall','Msmall','Nsmall','Osmall','Psmall','Qsmall','Rsmall','Ssmall','Tsmall','Usmall','Vsmall','Wsmall','Xsmall','Ysmall','Zsmall','colonmonetary','onefitted','rupiah','Tildesmall','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','exclamdownsmall','centoldstyle','Lslashsmall','','','Scaronsmall','Zcaronsmall','Dieresissmall','Brevesmall','Caronsmall','','Dotaccentsmall','','','Macronsmall','','','figuredash','hypheninferior','','','Ogoneksmall','Ringsmall','Cedillasmall','','','','onequarter','onehalf','threequarters','questiondownsmall','oneeighth','threeeighths','fiveeighths','seveneighths','onethird','twothirds','','','zerosuperior','onesuperior','twosuperior','threesuperior','foursuperior','fivesuperior','sixsuperior','sevensuperior','eightsuperior','ninesuperior','zeroinferior','oneinferior','twoinferior','threeinferior','fourinferior','fiveinferior','sixinferior','seveninferior','eightinferior','nineinferior','centinferior','dollarinferior','periodinferior','commainferior','Agravesmall','Aacutesmall','Acircumflexsmall','Atildesmall','Adieresissmall','Aringsmall','AEsmall','Ccedillasmall','Egravesmall','Eacutesmall','Ecircumflexsmall','Edieresissmall','Igravesmall','Iacutesmall','Icircumflexsmall','Idieresissmall','Ethsmall','Ntildesmall','Ogravesmall','Oacutesmall','Ocircumflexsmall','Otildesmall','Odieresissmall','OEsmall','Oslashsmall','Ugravesmall','Uacutesmall','Ucircumflexsmall','Udieresissmall','Yacutesmall','Thornsmall','Ydieresissmall'];var ISOAdobeCharset=['.notdef','space','exclam','quotedbl','numbersign','dollar','percent','ampersand','quoteright','parenleft','parenright','asterisk','plus','comma','hyphen','period','slash','zero','one','two','three','four','five','six','seven','eight','nine','colon','semicolon','less','equal','greater','question','at','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','bracketleft','backslash','bracketright','asciicircum','underscore','quoteleft','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','braceleft','bar','braceright','asciitilde','exclamdown','cent','sterling','fraction','yen','florin','section','currency','quotesingle','quotedblleft','guillemotleft','guilsinglleft','guilsinglright','fi','fl','endash','dagger','daggerdbl','periodcentered','paragraph','bullet','quotesinglbase','quotedblbase','quotedblright','guillemotright','ellipsis','perthousand','questiondown','grave','acute','circumflex','tilde','macron','breve','dotaccent','dieresis','ring','cedilla','hungarumlaut','ogonek','caron','emdash','AE','ordfeminine','Lslash','Oslash','OE','ordmasculine','ae','dotlessi','lslash','oslash','oe','germandbls','onesuperior','logicalnot','mu','trademark','Eth','onehalf','plusminus','Thorn','onequarter','divide','brokenbar','degree','thorn','threequarters','twosuperior','registered','minus','eth','multiply','threesuperior','copyright','Aacute','Acircumflex','Adieresis','Agrave','Aring','Atilde','Ccedilla','Eacute','Ecircumflex','Edieresis','Egrave','Iacute','Icircumflex','Idieresis','Igrave','Ntilde','Oacute','Ocircumflex','Odieresis','Ograve','Otilde','Scaron','Uacute','Ucircumflex','Udieresis','Ugrave','Yacute','Ydieresis','Zcaron','aacute','acircumflex','adieresis','agrave','aring','atilde','ccedilla','eacute','ecircumflex','edieresis','egrave','iacute','icircumflex','idieresis','igrave','ntilde','oacute','ocircumflex','odieresis','ograve','otilde','scaron','uacute','ucircumflex','udieresis','ugrave','yacute','ydieresis','zcaron'];var ExpertCharset=['.notdef','space','exclamsmall','Hungarumlautsmall','dollaroldstyle','dollarsuperior','ampersandsmall','Acutesmall','parenleftsuperior','parenrightsuperior','twodotenleader','onedotenleader','comma','hyphen','period','fraction','zerooldstyle','oneoldstyle','twooldstyle','threeoldstyle','fouroldstyle','fiveoldstyle','sixoldstyle','sevenoldstyle','eightoldstyle','nineoldstyle','colon','semicolon','commasuperior','threequartersemdash','periodsuperior','questionsmall','asuperior','bsuperior','centsuperior','dsuperior','esuperior','isuperior','lsuperior','msuperior','nsuperior','osuperior','rsuperior','ssuperior','tsuperior','ff','fi','fl','ffi','ffl','parenleftinferior','parenrightinferior','Circumflexsmall','hyphensuperior','Gravesmall','Asmall','Bsmall','Csmall','Dsmall','Esmall','Fsmall','Gsmall','Hsmall','Ismall','Jsmall','Ksmall','Lsmall','Msmall','Nsmall','Osmall','Psmall','Qsmall','Rsmall','Ssmall','Tsmall','Usmall','Vsmall','Wsmall','Xsmall','Ysmall','Zsmall','colonmonetary','onefitted','rupiah','Tildesmall','exclamdownsmall','centoldstyle','Lslashsmall','Scaronsmall','Zcaronsmall','Dieresissmall','Brevesmall','Caronsmall','Dotaccentsmall','Macronsmall','figuredash','hypheninferior','Ogoneksmall','Ringsmall','Cedillasmall','onequarter','onehalf','threequarters','questiondownsmall','oneeighth','threeeighths','fiveeighths','seveneighths','onethird','twothirds','zerosuperior','onesuperior','twosuperior','threesuperior','foursuperior','fivesuperior','sixsuperior','sevensuperior','eightsuperior','ninesuperior','zeroinferior','oneinferior','twoinferior','threeinferior','fourinferior','fiveinferior','sixinferior','seveninferior','eightinferior','nineinferior','centinferior','dollarinferior','periodinferior','commainferior','Agravesmall','Aacutesmall','Acircumflexsmall','Atildesmall','Adieresissmall','Aringsmall','AEsmall','Ccedillasmall','Egravesmall','Eacutesmall','Ecircumflexsmall','Edieresissmall','Igravesmall','Iacutesmall','Icircumflexsmall','Idieresissmall','Ethsmall','Ntildesmall','Ogravesmall','Oacutesmall','Ocircumflexsmall','Otildesmall','Odieresissmall','OEsmall','Oslashsmall','Ugravesmall','Uacutesmall','Ucircumflexsmall','Udieresissmall','Yacutesmall','Thornsmall','Ydieresissmall'];var ExpertSubsetCharset=['.notdef','space','dollaroldstyle','dollarsuperior','parenleftsuperior','parenrightsuperior','twodotenleader','onedotenleader','comma','hyphen','period','fraction','zerooldstyle','oneoldstyle','twooldstyle','threeoldstyle','fouroldstyle','fiveoldstyle','sixoldstyle','sevenoldstyle','eightoldstyle','nineoldstyle','colon','semicolon','commasuperior','threequartersemdash','periodsuperior','asuperior','bsuperior','centsuperior','dsuperior','esuperior','isuperior','lsuperior','msuperior','nsuperior','osuperior','rsuperior','ssuperior','tsuperior','ff','fi','fl','ffi','ffl','parenleftinferior','parenrightinferior','hyphensuperior','colonmonetary','onefitted','rupiah','centoldstyle','figuredash','hypheninferior','onequarter','onehalf','threequarters','oneeighth','threeeighths','fiveeighths','seveneighths','onethird','twothirds','zerosuperior','onesuperior','twosuperior','threesuperior','foursuperior','fivesuperior','sixsuperior','sevensuperior','eightsuperior','ninesuperior','zeroinferior','oneinferior','twoinferior','threeinferior','fourinferior','fiveinferior','sixinferior','seveninferior','eightinferior','nineinferior','centinferior','dollarinferior','periodinferior','commainferior'];//########################\n// Scripts and Languages #\n//########################\nvar LangSysTable=new r.Struct({reserved:new r.Reserved(r.uint16),reqFeatureIndex:r.uint16,featureCount:r.uint16,featureIndexes:new r.Array(r.uint16,'featureCount')});var LangSysRecord=new r.Struct({tag:new r.String(4),langSys:new r.Pointer(r.uint16,LangSysTable,{type:'parent'})});var Script=new r.Struct({defaultLangSys:new r.Pointer(r.uint16,LangSysTable),count:r.uint16,langSysRecords:new r.Array(LangSysRecord,'count')});var ScriptRecord=new r.Struct({tag:new r.String(4),script:new r.Pointer(r.uint16,Script,{type:'parent'})});var ScriptList=new r.Array(ScriptRecord,r.uint16);//#######################\n// Features and Lookups #\n//#######################\nvar Feature=new r.Struct({featureParams:r.uint16,// pointer\nlookupCount:r.uint16,lookupListIndexes:new r.Array(r.uint16,'lookupCount')});var FeatureRecord=new r.Struct({tag:new r.String(4),feature:new r.Pointer(r.uint16,Feature,{type:'parent'})});var FeatureList=new r.Array(FeatureRecord,r.uint16);var LookupFlags=new r.Struct({markAttachmentType:r.uint8,flags:new r.Bitfield(r.uint8,['rightToLeft','ignoreBaseGlyphs','ignoreLigatures','ignoreMarks','useMarkFilteringSet'])});function LookupList(SubTable){var Lookup=new r.Struct({lookupType:r.uint16,flags:LookupFlags,subTableCount:r.uint16,subTables:new r.Array(new r.Pointer(r.uint16,SubTable),'subTableCount'),markFilteringSet:new r.Optional(r.uint16,function(t){return t.flags.flags.useMarkFilteringSet;})});return new r.LazyArray(new r.Pointer(r.uint16,Lookup),r.uint16);}//#################\n// Coverage Table #\n//#################\nvar RangeRecord=new r.Struct({start:r.uint16,end:r.uint16,startCoverageIndex:r.uint16});var Coverage=new r.VersionedStruct(r.uint16,{1:{glyphCount:r.uint16,glyphs:new r.Array(r.uint16,'glyphCount')},2:{rangeCount:r.uint16,rangeRecords:new r.Array(RangeRecord,'rangeCount')}});//#########################\n// Class Definition Table #\n//#########################\nvar ClassRangeRecord=new r.Struct({start:r.uint16,end:r.uint16,class:r.uint16});var ClassDef=new r.VersionedStruct(r.uint16,{1:{// Class array\nstartGlyph:r.uint16,glyphCount:r.uint16,classValueArray:new r.Array(r.uint16,'glyphCount')},2:{// Class ranges\nclassRangeCount:r.uint16,classRangeRecord:new r.Array(ClassRangeRecord,'classRangeCount')}});//###############\n// Device Table #\n//###############\nvar Device=new r.Struct({a:r.uint16,// startSize for hinting Device, outerIndex for VariationIndex\nb:r.uint16,// endSize for Device, innerIndex for VariationIndex\ndeltaFormat:r.uint16});//#############################################\n// Contextual Substitution/Positioning Tables #\n//#############################################\nvar LookupRecord=new r.Struct({sequenceIndex:r.uint16,lookupListIndex:r.uint16});var Rule=new r.Struct({glyphCount:r.uint16,lookupCount:r.uint16,input:new r.Array(r.uint16,function(t){return t.glyphCount-1;}),lookupRecords:new r.Array(LookupRecord,'lookupCount')});var RuleSet=new r.Array(new r.Pointer(r.uint16,Rule),r.uint16);var ClassRule=new r.Struct({glyphCount:r.uint16,lookupCount:r.uint16,classes:new r.Array(r.uint16,function(t){return t.glyphCount-1;}),lookupRecords:new r.Array(LookupRecord,'lookupCount')});var ClassSet=new r.Array(new r.Pointer(r.uint16,ClassRule),r.uint16);var Context=new r.VersionedStruct(r.uint16,{1:{// Simple context\ncoverage:new r.Pointer(r.uint16,Coverage),ruleSetCount:r.uint16,ruleSets:new r.Array(new r.Pointer(r.uint16,RuleSet),'ruleSetCount')},2:{// Class-based context\ncoverage:new r.Pointer(r.uint16,Coverage),classDef:new r.Pointer(r.uint16,ClassDef),classSetCnt:r.uint16,classSet:new r.Array(new r.Pointer(r.uint16,ClassSet),'classSetCnt')},3:{glyphCount:r.uint16,lookupCount:r.uint16,coverages:new r.Array(new r.Pointer(r.uint16,Coverage),'glyphCount'),lookupRecords:new r.Array(LookupRecord,'lookupCount')}});//######################################################\n// Chaining Contextual Substitution/Positioning Tables #\n//######################################################\nvar ChainRule=new r.Struct({backtrackGlyphCount:r.uint16,backtrack:new r.Array(r.uint16,'backtrackGlyphCount'),inputGlyphCount:r.uint16,input:new r.Array(r.uint16,function(t){return t.inputGlyphCount-1;}),lookaheadGlyphCount:r.uint16,lookahead:new r.Array(r.uint16,'lookaheadGlyphCount'),lookupCount:r.uint16,lookupRecords:new r.Array(LookupRecord,'lookupCount')});var ChainRuleSet=new r.Array(new r.Pointer(r.uint16,ChainRule),r.uint16);var ChainingContext=new r.VersionedStruct(r.uint16,{1:{// Simple context glyph substitution\ncoverage:new r.Pointer(r.uint16,Coverage),chainCount:r.uint16,chainRuleSets:new r.Array(new r.Pointer(r.uint16,ChainRuleSet),'chainCount')},2:{// Class-based chaining context\ncoverage:new r.Pointer(r.uint16,Coverage),backtrackClassDef:new r.Pointer(r.uint16,ClassDef),inputClassDef:new r.Pointer(r.uint16,ClassDef),lookaheadClassDef:new r.Pointer(r.uint16,ClassDef),chainCount:r.uint16,chainClassSet:new r.Array(new r.Pointer(r.uint16,ChainRuleSet),'chainCount')},3:{// Coverage-based chaining context\nbacktrackGlyphCount:r.uint16,backtrackCoverage:new r.Array(new r.Pointer(r.uint16,Coverage),'backtrackGlyphCount'),inputGlyphCount:r.uint16,inputCoverage:new r.Array(new r.Pointer(r.uint16,Coverage),'inputGlyphCount'),lookaheadGlyphCount:r.uint16,lookaheadCoverage:new r.Array(new r.Pointer(r.uint16,Coverage),'lookaheadGlyphCount'),lookupCount:r.uint16,lookupRecords:new r.Array(LookupRecord,'lookupCount')}});var _;/*******************\r\n     * Variation Store *\r\n     *******************/var F2DOT14=new r.Fixed(16,'BE',14);var RegionAxisCoordinates=new r.Struct({startCoord:F2DOT14,peakCoord:F2DOT14,endCoord:F2DOT14});var VariationRegionList=new r.Struct({axisCount:r.uint16,regionCount:r.uint16,variationRegions:new r.Array(new r.Array(RegionAxisCoordinates,'axisCount'),'regionCount')});var DeltaSet=new r.Struct({shortDeltas:new r.Array(r.int16,function(t){return t.parent.shortDeltaCount;}),regionDeltas:new r.Array(r.int8,function(t){return t.parent.regionIndexCount-t.parent.shortDeltaCount;}),deltas:function deltas(t){return t.shortDeltas.concat(t.regionDeltas);}});var ItemVariationData=new r.Struct({itemCount:r.uint16,shortDeltaCount:r.uint16,regionIndexCount:r.uint16,regionIndexes:new r.Array(r.uint16,'regionIndexCount'),deltaSets:new r.Array(DeltaSet,'itemCount')});var ItemVariationStore=new r.Struct({format:r.uint16,variationRegionList:new r.Pointer(r.uint32,VariationRegionList),variationDataCount:r.uint16,itemVariationData:new r.Array(new r.Pointer(r.uint32,ItemVariationData),'variationDataCount')});/**********************\r\n     * Feature Variations *\r\n     **********************/var ConditionTable=new r.VersionedStruct(r.uint16,{1:(_={axisIndex:r.uint16},_['axisIndex']=r.uint16,_.filterRangeMinValue=F2DOT14,_.filterRangeMaxValue=F2DOT14,_)});var ConditionSet=new r.Struct({conditionCount:r.uint16,conditionTable:new r.Array(new r.Pointer(r.uint32,ConditionTable),'conditionCount')});var FeatureTableSubstitutionRecord=new r.Struct({featureIndex:r.uint16,alternateFeatureTable:new r.Pointer(r.uint32,Feature,{type:'parent'})});var FeatureTableSubstitution=new r.Struct({version:r.fixed32,substitutionCount:r.uint16,substitutions:new r.Array(FeatureTableSubstitutionRecord,'substitutionCount')});var FeatureVariationRecord=new r.Struct({conditionSet:new r.Pointer(r.uint32,ConditionSet,{type:'parent'}),featureTableSubstitution:new r.Pointer(r.uint32,FeatureTableSubstitution,{type:'parent'})});var FeatureVariations=new r.Struct({majorVersion:r.uint16,minorVersion:r.uint16,featureVariationRecordCount:r.uint32,featureVariationRecords:new r.Array(FeatureVariationRecord,'featureVariationRecordCount')});// Checks if an operand is an index of a predefined value,\n// otherwise delegates to the provided type.\nvar PredefinedOp=function(){function PredefinedOp(predefinedOps,type){_classCallCheck(this,PredefinedOp);this.predefinedOps=predefinedOps;this.type=type;}PredefinedOp.prototype.decode=function decode(stream,parent,operands){if(this.predefinedOps[operands[0]]){return this.predefinedOps[operands[0]];}return this.type.decode(stream,parent,operands);};PredefinedOp.prototype.size=function size(value,ctx){return this.type.size(value,ctx);};PredefinedOp.prototype.encode=function encode(stream,value,ctx){var index=this.predefinedOps.indexOf(value);if(index!==-1){return index;}return this.type.encode(stream,value,ctx);};return PredefinedOp;}();var CFFEncodingVersion=function(_r$Number){_inherits(CFFEncodingVersion,_r$Number);function CFFEncodingVersion(){_classCallCheck(this,CFFEncodingVersion);return _possibleConstructorReturn(this,_r$Number.call(this,'UInt8'));}CFFEncodingVersion.prototype.decode=function decode(stream){return r.uint8.decode(stream)&0x7f;};return CFFEncodingVersion;}(r.Number);var Range1=new r.Struct({first:r.uint16,nLeft:r.uint8});var Range2=new r.Struct({first:r.uint16,nLeft:r.uint16});var CFFCustomEncoding=new r.VersionedStruct(new CFFEncodingVersion(),{0:{nCodes:r.uint8,codes:new r.Array(r.uint8,'nCodes')},1:{nRanges:r.uint8,ranges:new r.Array(Range1,'nRanges')// TODO: supplement?\n}});var CFFEncoding=new PredefinedOp([StandardEncoding,ExpertEncoding],new CFFPointer(CFFCustomEncoding,{lazy:true}));// Decodes an array of ranges until the total\n// length is equal to the provided length.\nvar RangeArray=function(_r$Array){_inherits(RangeArray,_r$Array);function RangeArray(){_classCallCheck(this,RangeArray);return _possibleConstructorReturn(this,_r$Array.apply(this,arguments));}RangeArray.prototype.decode=function decode(stream,parent){var length=restructure_src_utils.resolveLength(this.length,stream,parent);var count=0;var res=[];while(count<length){var range=this.type.decode(stream,parent);range.offset=count;count+=range.nLeft+1;res.push(range);}return res;};return RangeArray;}(r.Array);var CFFCustomCharset=new r.VersionedStruct(r.uint8,{0:{glyphs:new r.Array(r.uint16,function(t){return t.parent.CharStrings.length-1;})},1:{ranges:new RangeArray(Range1,function(t){return t.parent.CharStrings.length-1;})},2:{ranges:new RangeArray(Range2,function(t){return t.parent.CharStrings.length-1;})}});var CFFCharset=new PredefinedOp([ISOAdobeCharset,ExpertCharset,ExpertSubsetCharset],new CFFPointer(CFFCustomCharset,{lazy:true}));var FDRange3=new r.Struct({first:r.uint16,fd:r.uint8});var FDRange4=new r.Struct({first:r.uint32,fd:r.uint16});var FDSelect=new r.VersionedStruct(r.uint8,{0:{fds:new r.Array(r.uint8,function(t){return t.parent.CharStrings.length;})},3:{nRanges:r.uint16,ranges:new r.Array(FDRange3,'nRanges'),sentinel:r.uint16},4:{nRanges:r.uint32,ranges:new r.Array(FDRange4,'nRanges'),sentinel:r.uint32}});var ptr=new CFFPointer(CFFPrivateDict);var CFFPrivateOp=function(){function CFFPrivateOp(){_classCallCheck(this,CFFPrivateOp);}CFFPrivateOp.prototype.decode=function decode(stream,parent,operands){parent.length=operands[0];return ptr.decode(stream,parent,[operands[1]]);};CFFPrivateOp.prototype.size=function size(dict,ctx){return[CFFPrivateDict.size(dict,ctx,false),ptr.size(dict,ctx)[0]];};CFFPrivateOp.prototype.encode=function encode(stream,dict,ctx){return[CFFPrivateDict.size(dict,ctx,false),ptr.encode(stream,dict,ctx)[0]];};return CFFPrivateOp;}();var FontDict=new CFFDict([// key       name                   type(s)                                 default\n[18,'Private',new CFFPrivateOp(),null],[[12,38],'FontName','sid',null]]);var CFFTopDict=new CFFDict([// key       name                   type(s)                                 default\n[[12,30],'ROS',['sid','sid','number'],null],[0,'version','sid',null],[1,'Notice','sid',null],[[12,0],'Copyright','sid',null],[2,'FullName','sid',null],[3,'FamilyName','sid',null],[4,'Weight','sid',null],[[12,1],'isFixedPitch','boolean',false],[[12,2],'ItalicAngle','number',0],[[12,3],'UnderlinePosition','number',-100],[[12,4],'UnderlineThickness','number',50],[[12,5],'PaintType','number',0],[[12,6],'CharstringType','number',2],[[12,7],'FontMatrix','array',[0.001,0,0,0.001,0,0]],[13,'UniqueID','number',null],[5,'FontBBox','array',[0,0,0,0]],[[12,8],'StrokeWidth','number',0],[14,'XUID','array',null],[15,'charset',CFFCharset,ISOAdobeCharset],[16,'Encoding',CFFEncoding,StandardEncoding],[17,'CharStrings',new CFFPointer(new CFFIndex()),null],[18,'Private',new CFFPrivateOp(),null],[[12,20],'SyntheticBase','number',null],[[12,21],'PostScript','sid',null],[[12,22],'BaseFontName','sid',null],[[12,23],'BaseFontBlend','delta',null],// CID font specific\n[[12,31],'CIDFontVersion','number',0],[[12,32],'CIDFontRevision','number',0],[[12,33],'CIDFontType','number',0],[[12,34],'CIDCount','number',8720],[[12,35],'UIDBase','number',null],[[12,37],'FDSelect',new CFFPointer(FDSelect),null],[[12,36],'FDArray',new CFFPointer(new CFFIndex(FontDict)),null],[[12,38],'FontName','sid',null]]);var VariationStore=new r.Struct({length:r.uint16,itemVariationStore:ItemVariationStore});var CFF2TopDict=new CFFDict([[[12,7],'FontMatrix','array',[0.001,0,0,0.001,0,0]],[17,'CharStrings',new CFFPointer(new CFFIndex()),null],[[12,37],'FDSelect',new CFFPointer(FDSelect),null],[[12,36],'FDArray',new CFFPointer(new CFFIndex(FontDict)),null],[24,'vstore',new CFFPointer(VariationStore),null],[25,'maxstack','number',193]]);var CFFTop=new r.VersionedStruct(r.fixed16,{1:{hdrSize:r.uint8,offSize:r.uint8,nameIndex:new CFFIndex(new r.String('length')),topDictIndex:new CFFIndex(CFFTopDict),stringIndex:new CFFIndex(new r.String('length')),globalSubrIndex:new CFFIndex()},2:{hdrSize:r.uint8,length:r.uint16,topDict:CFF2TopDict,globalSubrIndex:new CFFIndex()}});var CFFFont=function(){function CFFFont(stream){_classCallCheck(this,CFFFont);this.stream=stream;this.decode();}CFFFont.decode=function decode(stream){return new CFFFont(stream);};CFFFont.prototype.decode=function decode(){var start=this.stream.pos;var top=CFFTop.decode(this.stream);for(var key in top){var val=top[key];this[key]=val;}if(this.version<2){if(this.topDictIndex.length!==1){throw new Error(\"Only a single font is allowed in CFF\");}this.topDict=this.topDictIndex[0];}this.isCIDFont=this.topDict.ROS!=null;return this;};CFFFont.prototype.string=function string(sid){if(this.version>=2){return null;}if(sid<standardStrings.length){return standardStrings[sid];}return this.stringIndex[sid-standardStrings.length];};CFFFont.prototype.getCharString=function getCharString(glyph){this.stream.pos=this.topDict.CharStrings[glyph].offset;return this.stream.readBuffer(this.topDict.CharStrings[glyph].length);};CFFFont.prototype.getGlyphName=function getGlyphName(gid){// CFF2 glyph names are in the post table.\nif(this.version>=2){return null;}// CID-keyed fonts don't have glyph names\nif(this.isCIDFont){return null;}var charset=this.topDict.charset;if(Array.isArray(charset)){return charset[gid];}if(gid===0){return'.notdef';}gid-=1;switch(charset.version){case 0:return this.string(charset.glyphs[gid]);case 1:case 2:for(var i=0;i<charset.ranges.length;i++){var range=charset.ranges[i];if(range.offset<=gid&&gid<=range.offset+range.nLeft){return this.string(range.first+(gid-range.offset));}}break;}return null;};CFFFont.prototype.fdForGlyph=function fdForGlyph(gid){if(!this.topDict.FDSelect){return null;}switch(this.topDict.FDSelect.version){case 0:return this.topDict.FDSelect.fds[gid];case 3:case 4:var ranges=this.topDict.FDSelect.ranges;var low=0;var high=ranges.length-1;while(low<=high){var mid=low+high>>1;if(gid<ranges[mid].first){high=mid-1;}else if(mid<high&&gid>ranges[mid+1].first){low=mid+1;}else{return ranges[mid].fd;}}default:throw new Error('Unknown FDSelect version: '+this.topDict.FDSelect.version);}};CFFFont.prototype.privateDictForGlyph=function privateDictForGlyph(gid){if(this.topDict.FDSelect){var fd=this.fdForGlyph(gid);if(this.topDict.FDArray[fd]){return this.topDict.FDArray[fd].Private;}return null;}if(this.version<2){return this.topDict.Private;}return this.topDict.FDArray[0].Private;};_createClass(CFFFont,[{key:'postscriptName',get:function get(){if(this.version<2){return this.nameIndex[0];}return null;}},{key:'fullName',get:function get(){return this.string(this.topDict.FullName);}},{key:'familyName',get:function get(){return this.string(this.topDict.FamilyName);}}]);return CFFFont;}();var VerticalOrigin=new r.Struct({glyphIndex:r.uint16,vertOriginY:r.int16});var VORG=new r.Struct({majorVersion:r.uint16,minorVersion:r.uint16,defaultVertOriginY:r.int16,numVertOriginYMetrics:r.uint16,metrics:new r.Array(VerticalOrigin,'numVertOriginYMetrics')});var BigMetrics=new r.Struct({height:r.uint8,width:r.uint8,horiBearingX:r.int8,horiBearingY:r.int8,horiAdvance:r.uint8,vertBearingX:r.int8,vertBearingY:r.int8,vertAdvance:r.uint8});var SmallMetrics=new r.Struct({height:r.uint8,width:r.uint8,bearingX:r.int8,bearingY:r.int8,advance:r.uint8});var EBDTComponent=new r.Struct({glyph:r.uint16,xOffset:r.int8,yOffset:r.int8});var ByteAligned=function ByteAligned(){_classCallCheck(this,ByteAligned);};var BitAligned=function BitAligned(){_classCallCheck(this,BitAligned);};var glyph=new r.VersionedStruct('version',{1:{metrics:SmallMetrics,data:ByteAligned},2:{metrics:SmallMetrics,data:BitAligned},// format 3 is deprecated\n// format 4 is not supported by Microsoft\n5:{data:BitAligned},6:{metrics:BigMetrics,data:ByteAligned},7:{metrics:BigMetrics,data:BitAligned},8:{metrics:SmallMetrics,pad:new r.Reserved(r.uint8),numComponents:r.uint16,components:new r.Array(EBDTComponent,'numComponents')},9:{metrics:BigMetrics,pad:new r.Reserved(r.uint8),numComponents:r.uint16,components:new r.Array(EBDTComponent,'numComponents')},17:{metrics:SmallMetrics,dataLen:r.uint32,data:new r.Buffer('dataLen')},18:{metrics:BigMetrics,dataLen:r.uint32,data:new r.Buffer('dataLen')},19:{dataLen:r.uint32,data:new r.Buffer('dataLen')}});var SBitLineMetrics=new r.Struct({ascender:r.int8,descender:r.int8,widthMax:r.uint8,caretSlopeNumerator:r.int8,caretSlopeDenominator:r.int8,caretOffset:r.int8,minOriginSB:r.int8,minAdvanceSB:r.int8,maxBeforeBL:r.int8,minAfterBL:r.int8,pad:new r.Reserved(r.int8,2)});var CodeOffsetPair=new r.Struct({glyphCode:r.uint16,offset:r.uint16});var IndexSubtable=new r.VersionedStruct(r.uint16,{header:{imageFormat:r.uint16,imageDataOffset:r.uint32},1:{offsetArray:new r.Array(r.uint32,function(t){return t.parent.lastGlyphIndex-t.parent.firstGlyphIndex+1;})},2:{imageSize:r.uint32,bigMetrics:BigMetrics},3:{offsetArray:new r.Array(r.uint16,function(t){return t.parent.lastGlyphIndex-t.parent.firstGlyphIndex+1;})},4:{numGlyphs:r.uint32,glyphArray:new r.Array(CodeOffsetPair,function(t){return t.numGlyphs+1;})},5:{imageSize:r.uint32,bigMetrics:BigMetrics,numGlyphs:r.uint32,glyphCodeArray:new r.Array(r.uint16,'numGlyphs')}});var IndexSubtableArray=new r.Struct({firstGlyphIndex:r.uint16,lastGlyphIndex:r.uint16,subtable:new r.Pointer(r.uint32,IndexSubtable)});var BitmapSizeTable=new r.Struct({indexSubTableArray:new r.Pointer(r.uint32,new r.Array(IndexSubtableArray,1),{type:'parent'}),indexTablesSize:r.uint32,numberOfIndexSubTables:r.uint32,colorRef:r.uint32,hori:SBitLineMetrics,vert:SBitLineMetrics,startGlyphIndex:r.uint16,endGlyphIndex:r.uint16,ppemX:r.uint8,ppemY:r.uint8,bitDepth:r.uint8,flags:new r.Bitfield(r.uint8,['horizontal','vertical'])});var EBLC=new r.Struct({version:r.uint32,// 0x00020000\nnumSizes:r.uint32,sizes:new r.Array(BitmapSizeTable,'numSizes')});var ImageTable=new r.Struct({ppem:r.uint16,resolution:r.uint16,imageOffsets:new r.Array(new r.Pointer(r.uint32,'void'),function(t){return t.parent.parent.maxp.numGlyphs+1;})});// This is the Apple sbix table, used by the \"Apple Color Emoji\" font.\n// It includes several image tables with images for each bitmap glyph\n// of several different sizes.\nvar sbix=new r.Struct({version:r.uint16,flags:new r.Bitfield(r.uint16,['renderOutlines']),numImgTables:r.uint32,imageTables:new r.Array(new r.Pointer(r.uint32,ImageTable),'numImgTables')});var LayerRecord=new r.Struct({gid:r.uint16,// Glyph ID of layer glyph (must be in z-order from bottom to top).\npaletteIndex:r.uint16// Index value to use in the appropriate palette. This value must\n});// be less than numPaletteEntries in the CPAL table, except for\n// the special case noted below. Each palette entry is 16 bits.\n// A palette index of 0xFFFF is a special case indicating that\n// the text foreground color should be used.\nvar BaseGlyphRecord=new r.Struct({gid:r.uint16,// Glyph ID of reference glyph. This glyph is for reference only\n// and is not rendered for color.\nfirstLayerIndex:r.uint16,// Index (from beginning of the Layer Records) to the layer record.\n// There will be numLayers consecutive entries for this base glyph.\nnumLayers:r.uint16});var COLR=new r.Struct({version:r.uint16,numBaseGlyphRecords:r.uint16,baseGlyphRecord:new r.Pointer(r.uint32,new r.Array(BaseGlyphRecord,'numBaseGlyphRecords')),layerRecords:new r.Pointer(r.uint32,new r.Array(LayerRecord,'numLayerRecords'),{lazy:true}),numLayerRecords:r.uint16});var ColorRecord=new r.Struct({blue:r.uint8,green:r.uint8,red:r.uint8,alpha:r.uint8});var CPAL=new r.VersionedStruct(r.uint16,{header:{numPaletteEntries:r.uint16,numPalettes:r.uint16,numColorRecords:r.uint16,colorRecords:new r.Pointer(r.uint32,new r.Array(ColorRecord,'numColorRecords')),colorRecordIndices:new r.Array(r.uint16,'numPalettes')},0:{},1:{offsetPaletteTypeArray:new r.Pointer(r.uint32,new r.Array(r.uint32,'numPalettes')),offsetPaletteLabelArray:new r.Pointer(r.uint32,new r.Array(r.uint16,'numPalettes')),offsetPaletteEntryLabelArray:new r.Pointer(r.uint32,new r.Array(r.uint16,'numPaletteEntries'))}});var BaseCoord=new r.VersionedStruct(r.uint16,{1:{// Design units only\ncoordinate:r.int16// X or Y value, in design units\n},2:{// Design units plus contour point\ncoordinate:r.int16,// X or Y value, in design units\nreferenceGlyph:r.uint16,// GlyphID of control glyph\nbaseCoordPoint:r.uint16// Index of contour point on the referenceGlyph\n},3:{// Design units plus Device table\ncoordinate:r.int16,// X or Y value, in design units\ndeviceTable:new r.Pointer(r.uint16,Device)// Device table for X or Y value\n}});var BaseValues=new r.Struct({defaultIndex:r.uint16,// Index of default baseline for this script-same index in the BaseTagList\nbaseCoordCount:r.uint16,baseCoords:new r.Array(new r.Pointer(r.uint16,BaseCoord),'baseCoordCount')});var FeatMinMaxRecord=new r.Struct({tag:new r.String(4),// 4-byte feature identification tag-must match FeatureTag in FeatureList\nminCoord:new r.Pointer(r.uint16,BaseCoord,{type:'parent'}),// May be NULL\nmaxCoord:new r.Pointer(r.uint16,BaseCoord,{type:'parent'})// May be NULL\n});var MinMax=new r.Struct({minCoord:new r.Pointer(r.uint16,BaseCoord),// May be NULL\nmaxCoord:new r.Pointer(r.uint16,BaseCoord),// May be NULL\nfeatMinMaxCount:r.uint16,// May be 0\nfeatMinMaxRecords:new r.Array(FeatMinMaxRecord,'featMinMaxCount')// In alphabetical order\n});var BaseLangSysRecord=new r.Struct({tag:new r.String(4),// 4-byte language system identification tag\nminMax:new r.Pointer(r.uint16,MinMax,{type:'parent'})});var BaseScript=new r.Struct({baseValues:new r.Pointer(r.uint16,BaseValues),// May be NULL\ndefaultMinMax:new r.Pointer(r.uint16,MinMax),// May be NULL\nbaseLangSysCount:r.uint16,// May be 0\nbaseLangSysRecords:new r.Array(BaseLangSysRecord,'baseLangSysCount')// in alphabetical order by BaseLangSysTag\n});var BaseScriptRecord=new r.Struct({tag:new r.String(4),// 4-byte script identification tag\nscript:new r.Pointer(r.uint16,BaseScript,{type:'parent'})});var BaseScriptList=new r.Array(BaseScriptRecord,r.uint16);// Array of 4-byte baseline identification tags-must be in alphabetical order\nvar BaseTagList=new r.Array(new r.String(4),r.uint16);var Axis=new r.Struct({baseTagList:new r.Pointer(r.uint16,BaseTagList),// May be NULL\nbaseScriptList:new r.Pointer(r.uint16,BaseScriptList)});var BASE=new r.VersionedStruct(r.uint32,{header:{horizAxis:new r.Pointer(r.uint16,Axis),// May be NULL\nvertAxis:new r.Pointer(r.uint16,Axis)// May be NULL\n},0x00010000:{},0x00010001:{itemVariationStore:new r.Pointer(r.uint32,ItemVariationStore)}});var AttachPoint=new r.Array(r.uint16,r.uint16);var AttachList=new r.Struct({coverage:new r.Pointer(r.uint16,Coverage),glyphCount:r.uint16,attachPoints:new r.Array(new r.Pointer(r.uint16,AttachPoint),'glyphCount')});var CaretValue=new r.VersionedStruct(r.uint16,{1:{// Design units only\ncoordinate:r.int16},2:{// Contour point\ncaretValuePoint:r.uint16},3:{// Design units plus Device table\ncoordinate:r.int16,deviceTable:new r.Pointer(r.uint16,Device)}});var LigGlyph=new r.Array(new r.Pointer(r.uint16,CaretValue),r.uint16);var LigCaretList=new r.Struct({coverage:new r.Pointer(r.uint16,Coverage),ligGlyphCount:r.uint16,ligGlyphs:new r.Array(new r.Pointer(r.uint16,LigGlyph),'ligGlyphCount')});var MarkGlyphSetsDef=new r.Struct({markSetTableFormat:r.uint16,markSetCount:r.uint16,coverage:new r.Array(new r.Pointer(r.uint32,Coverage),'markSetCount')});var GDEF=new r.VersionedStruct(r.uint32,{header:{glyphClassDef:new r.Pointer(r.uint16,ClassDef),attachList:new r.Pointer(r.uint16,AttachList),ligCaretList:new r.Pointer(r.uint16,LigCaretList),markAttachClassDef:new r.Pointer(r.uint16,ClassDef)},0x00010000:{},0x00010002:{markGlyphSetsDef:new r.Pointer(r.uint16,MarkGlyphSetsDef)},0x00010003:{markGlyphSetsDef:new r.Pointer(r.uint16,MarkGlyphSetsDef),itemVariationStore:new r.Pointer(r.uint32,ItemVariationStore)}});var ValueFormat=new r.Bitfield(r.uint16,['xPlacement','yPlacement','xAdvance','yAdvance','xPlaDevice','yPlaDevice','xAdvDevice','yAdvDevice']);var types={xPlacement:r.int16,yPlacement:r.int16,xAdvance:r.int16,yAdvance:r.int16,xPlaDevice:new r.Pointer(r.uint16,Device,{type:'global',relativeTo:'rel'}),yPlaDevice:new r.Pointer(r.uint16,Device,{type:'global',relativeTo:'rel'}),xAdvDevice:new r.Pointer(r.uint16,Device,{type:'global',relativeTo:'rel'}),yAdvDevice:new r.Pointer(r.uint16,Device,{type:'global',relativeTo:'rel'})};var ValueRecord=function(){function ValueRecord(){var key=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'valueFormat';_classCallCheck(this,ValueRecord);this.key=key;}ValueRecord.prototype.buildStruct=function buildStruct(parent){var struct=parent;while(!struct[this.key]&&struct.parent){struct=struct.parent;}if(!struct[this.key])return;var fields={};fields.rel=function(){return struct._startOffset;};var format=struct[this.key];for(var key in format){if(format[key]){fields[key]=types[key];}}return new r.Struct(fields);};ValueRecord.prototype.size=function size(val,ctx){return this.buildStruct(ctx).size(val,ctx);};ValueRecord.prototype.decode=function decode(stream,parent){var res=this.buildStruct(parent).decode(stream,parent);delete res.rel;return res;};return ValueRecord;}();var PairValueRecord=new r.Struct({secondGlyph:r.uint16,value1:new ValueRecord('valueFormat1'),value2:new ValueRecord('valueFormat2')});var PairSet=new r.Array(PairValueRecord,r.uint16);var Class2Record=new r.Struct({value1:new ValueRecord('valueFormat1'),value2:new ValueRecord('valueFormat2')});var Anchor=new r.VersionedStruct(r.uint16,{1:{// Design units only\nxCoordinate:r.int16,yCoordinate:r.int16},2:{// Design units plus contour point\nxCoordinate:r.int16,yCoordinate:r.int16,anchorPoint:r.uint16},3:{// Design units plus Device tables\nxCoordinate:r.int16,yCoordinate:r.int16,xDeviceTable:new r.Pointer(r.uint16,Device),yDeviceTable:new r.Pointer(r.uint16,Device)}});var EntryExitRecord=new r.Struct({entryAnchor:new r.Pointer(r.uint16,Anchor,{type:'parent'}),exitAnchor:new r.Pointer(r.uint16,Anchor,{type:'parent'})});var MarkRecord=new r.Struct({class:r.uint16,markAnchor:new r.Pointer(r.uint16,Anchor,{type:'parent'})});var MarkArray=new r.Array(MarkRecord,r.uint16);var BaseRecord=new r.Array(new r.Pointer(r.uint16,Anchor),function(t){return t.parent.classCount;});var BaseArray=new r.Array(BaseRecord,r.uint16);var ComponentRecord=new r.Array(new r.Pointer(r.uint16,Anchor),function(t){return t.parent.parent.classCount;});var LigatureAttach=new r.Array(ComponentRecord,r.uint16);var LigatureArray=new r.Array(new r.Pointer(r.uint16,LigatureAttach),r.uint16);var GPOSLookup=new r.VersionedStruct('lookupType',{1:new r.VersionedStruct(r.uint16,{// Single Adjustment\n1:{// Single positioning value\ncoverage:new r.Pointer(r.uint16,Coverage),valueFormat:ValueFormat,value:new ValueRecord()},2:{coverage:new r.Pointer(r.uint16,Coverage),valueFormat:ValueFormat,valueCount:r.uint16,values:new r.LazyArray(new ValueRecord(),'valueCount')}}),2:new r.VersionedStruct(r.uint16,{// Pair Adjustment Positioning\n1:{// Adjustments for glyph pairs\ncoverage:new r.Pointer(r.uint16,Coverage),valueFormat1:ValueFormat,valueFormat2:ValueFormat,pairSetCount:r.uint16,pairSets:new r.LazyArray(new r.Pointer(r.uint16,PairSet),'pairSetCount')},2:{// Class pair adjustment\ncoverage:new r.Pointer(r.uint16,Coverage),valueFormat1:ValueFormat,valueFormat2:ValueFormat,classDef1:new r.Pointer(r.uint16,ClassDef),classDef2:new r.Pointer(r.uint16,ClassDef),class1Count:r.uint16,class2Count:r.uint16,classRecords:new r.LazyArray(new r.LazyArray(Class2Record,'class2Count'),'class1Count')}}),3:{// Cursive Attachment Positioning\nformat:r.uint16,coverage:new r.Pointer(r.uint16,Coverage),entryExitCount:r.uint16,entryExitRecords:new r.Array(EntryExitRecord,'entryExitCount')},4:{// MarkToBase Attachment Positioning\nformat:r.uint16,markCoverage:new r.Pointer(r.uint16,Coverage),baseCoverage:new r.Pointer(r.uint16,Coverage),classCount:r.uint16,markArray:new r.Pointer(r.uint16,MarkArray),baseArray:new r.Pointer(r.uint16,BaseArray)},5:{// MarkToLigature Attachment Positioning\nformat:r.uint16,markCoverage:new r.Pointer(r.uint16,Coverage),ligatureCoverage:new r.Pointer(r.uint16,Coverage),classCount:r.uint16,markArray:new r.Pointer(r.uint16,MarkArray),ligatureArray:new r.Pointer(r.uint16,LigatureArray)},6:{// MarkToMark Attachment Positioning\nformat:r.uint16,mark1Coverage:new r.Pointer(r.uint16,Coverage),mark2Coverage:new r.Pointer(r.uint16,Coverage),classCount:r.uint16,mark1Array:new r.Pointer(r.uint16,MarkArray),mark2Array:new r.Pointer(r.uint16,BaseArray)},7:Context,// Contextual positioning\n8:ChainingContext,// Chaining contextual positioning\n9:{// Extension Positioning\nposFormat:r.uint16,lookupType:r.uint16,// cannot also be 9\nextension:new r.Pointer(r.uint32,GPOSLookup)}});// Fix circular reference\nGPOSLookup.versions[9].extension.type=GPOSLookup;var GPOS=new r.VersionedStruct(r.uint32,{header:{scriptList:new r.Pointer(r.uint16,ScriptList),featureList:new r.Pointer(r.uint16,FeatureList),lookupList:new r.Pointer(r.uint16,new LookupList(GPOSLookup))},0x00010000:{},0x00010001:{featureVariations:new r.Pointer(r.uint32,FeatureVariations)}});var Sequence=new r.Array(r.uint16,r.uint16);var AlternateSet=Sequence;var Ligature=new r.Struct({glyph:r.uint16,compCount:r.uint16,components:new r.Array(r.uint16,function(t){return t.compCount-1;})});var LigatureSet=new r.Array(new r.Pointer(r.uint16,Ligature),r.uint16);var GSUBLookup=new r.VersionedStruct('lookupType',{1:new r.VersionedStruct(r.uint16,{// Single Substitution\n1:{coverage:new r.Pointer(r.uint16,Coverage),deltaGlyphID:r.int16},2:{coverage:new r.Pointer(r.uint16,Coverage),glyphCount:r.uint16,substitute:new r.LazyArray(r.uint16,'glyphCount')}}),2:{// Multiple Substitution\nsubstFormat:r.uint16,coverage:new r.Pointer(r.uint16,Coverage),count:r.uint16,sequences:new r.LazyArray(new r.Pointer(r.uint16,Sequence),'count')},3:{// Alternate Substitution\nsubstFormat:r.uint16,coverage:new r.Pointer(r.uint16,Coverage),count:r.uint16,alternateSet:new r.LazyArray(new r.Pointer(r.uint16,AlternateSet),'count')},4:{// Ligature Substitution\nsubstFormat:r.uint16,coverage:new r.Pointer(r.uint16,Coverage),count:r.uint16,ligatureSets:new r.LazyArray(new r.Pointer(r.uint16,LigatureSet),'count')},5:Context,// Contextual Substitution\n6:ChainingContext,// Chaining Contextual Substitution\n7:{// Extension Substitution\nsubstFormat:r.uint16,lookupType:r.uint16,// cannot also be 7\nextension:new r.Pointer(r.uint32,GSUBLookup)},8:{// Reverse Chaining Contextual Single Substitution\nsubstFormat:r.uint16,coverage:new r.Pointer(r.uint16,Coverage),backtrackCoverage:new r.Array(new r.Pointer(r.uint16,Coverage),'backtrackGlyphCount'),lookaheadGlyphCount:r.uint16,lookaheadCoverage:new r.Array(new r.Pointer(r.uint16,Coverage),'lookaheadGlyphCount'),glyphCount:r.uint16,substitutes:new r.Array(r.uint16,'glyphCount')}});// Fix circular reference\nGSUBLookup.versions[7].extension.type=GSUBLookup;var GSUB=new r.VersionedStruct(r.uint32,{header:{scriptList:new r.Pointer(r.uint16,ScriptList),featureList:new r.Pointer(r.uint16,FeatureList),lookupList:new r.Pointer(r.uint16,new LookupList(GSUBLookup))},0x00010000:{},0x00010001:{featureVariations:new r.Pointer(r.uint32,FeatureVariations)}});var JstfGSUBModList=new r.Array(r.uint16,r.uint16);var JstfPriority=new r.Struct({shrinkageEnableGSUB:new r.Pointer(r.uint16,JstfGSUBModList),shrinkageDisableGSUB:new r.Pointer(r.uint16,JstfGSUBModList),shrinkageEnableGPOS:new r.Pointer(r.uint16,JstfGSUBModList),shrinkageDisableGPOS:new r.Pointer(r.uint16,JstfGSUBModList),shrinkageJstfMax:new r.Pointer(r.uint16,new LookupList(GPOSLookup)),extensionEnableGSUB:new r.Pointer(r.uint16,JstfGSUBModList),extensionDisableGSUB:new r.Pointer(r.uint16,JstfGSUBModList),extensionEnableGPOS:new r.Pointer(r.uint16,JstfGSUBModList),extensionDisableGPOS:new r.Pointer(r.uint16,JstfGSUBModList),extensionJstfMax:new r.Pointer(r.uint16,new LookupList(GPOSLookup))});var JstfLangSys=new r.Array(new r.Pointer(r.uint16,JstfPriority),r.uint16);var JstfLangSysRecord=new r.Struct({tag:new r.String(4),jstfLangSys:new r.Pointer(r.uint16,JstfLangSys)});var JstfScript=new r.Struct({extenderGlyphs:new r.Pointer(r.uint16,new r.Array(r.uint16,r.uint16)),// array of glyphs to extend line length\ndefaultLangSys:new r.Pointer(r.uint16,JstfLangSys),langSysCount:r.uint16,langSysRecords:new r.Array(JstfLangSysRecord,'langSysCount')});var JstfScriptRecord=new r.Struct({tag:new r.String(4),script:new r.Pointer(r.uint16,JstfScript,{type:'parent'})});var JSTF=new r.Struct({version:r.uint32,// should be 0x00010000\nscriptCount:r.uint16,scriptList:new r.Array(JstfScriptRecord,'scriptCount')});// TODO: add this to restructure\nvar VariableSizeNumber=function(){function VariableSizeNumber(size){_classCallCheck(this,VariableSizeNumber);this._size=size;}VariableSizeNumber.prototype.decode=function decode(stream,parent){switch(this.size(0,parent)){case 1:return stream.readUInt8();case 2:return stream.readUInt16BE();case 3:return stream.readUInt24BE();case 4:return stream.readUInt32BE();}};VariableSizeNumber.prototype.size=function size(val,parent){return restructure_src_utils.resolveLength(this._size,null,parent);};return VariableSizeNumber;}();var MapDataEntry=new r.Struct({entry:new VariableSizeNumber(function(t){return((t.parent.entryFormat&0x0030)>>4)+1;}),outerIndex:function outerIndex(t){return t.entry>>(t.parent.entryFormat&0x000F)+1;},innerIndex:function innerIndex(t){return t.entry&(1<<(t.parent.entryFormat&0x000F)+1)-1;}});var DeltaSetIndexMap=new r.Struct({entryFormat:r.uint16,mapCount:r.uint16,mapData:new r.Array(MapDataEntry,'mapCount')});var HVAR=new r.Struct({majorVersion:r.uint16,minorVersion:r.uint16,itemVariationStore:new r.Pointer(r.uint32,ItemVariationStore),advanceWidthMapping:new r.Pointer(r.uint32,DeltaSetIndexMap),LSBMapping:new r.Pointer(r.uint32,DeltaSetIndexMap),RSBMapping:new r.Pointer(r.uint32,DeltaSetIndexMap)});var Signature=new r.Struct({format:r.uint32,length:r.uint32,offset:r.uint32});var SignatureBlock=new r.Struct({reserved:new r.Reserved(r.uint16,2),cbSignature:r.uint32,// Length (in bytes) of the PKCS#7 packet in pbSignature\nsignature:new r.Buffer('cbSignature')});var DSIG=new r.Struct({ulVersion:r.uint32,// Version number of the DSIG table (0x00000001)\nusNumSigs:r.uint16,// Number of signatures in the table\nusFlag:r.uint16,// Permission flags\nsignatures:new r.Array(Signature,'usNumSigs'),signatureBlocks:new r.Array(SignatureBlock,'usNumSigs')});var GaspRange=new r.Struct({rangeMaxPPEM:r.uint16,// Upper limit of range, in ppem\nrangeGaspBehavior:new r.Bitfield(r.uint16,[// Flags describing desired rasterizer behavior\n'grayscale','gridfit','symmetricSmoothing','symmetricGridfit'// only in version 1, for ClearType\n])});var gasp=new r.Struct({version:r.uint16,// set to 0\nnumRanges:r.uint16,gaspRanges:new r.Array(GaspRange,'numRanges')// Sorted by ppem\n});var DeviceRecord=new r.Struct({pixelSize:r.uint8,maximumWidth:r.uint8,widths:new r.Array(r.uint8,function(t){return t.parent.parent.maxp.numGlyphs;})});// The Horizontal Device Metrics table stores integer advance widths scaled to particular pixel sizes\nvar hdmx=new r.Struct({version:r.uint16,numRecords:r.int16,sizeDeviceRecord:r.int32,records:new r.Array(DeviceRecord,'numRecords')});var KernPair=new r.Struct({left:r.uint16,right:r.uint16,value:r.int16});var ClassTable=new r.Struct({firstGlyph:r.uint16,nGlyphs:r.uint16,offsets:new r.Array(r.uint16,'nGlyphs'),max:function max(t){return t.offsets.length&&Math.max.apply(Math,t.offsets);}});var Kern2Array=new r.Struct({off:function off(t){return t._startOffset-t.parent.parent._startOffset;},len:function len(t){return((t.parent.leftTable.max-t.off)/t.parent.rowWidth+1)*(t.parent.rowWidth/2);},values:new r.LazyArray(r.int16,'len')});var KernSubtable=new r.VersionedStruct('format',{0:{nPairs:r.uint16,searchRange:r.uint16,entrySelector:r.uint16,rangeShift:r.uint16,pairs:new r.Array(KernPair,'nPairs')},2:{rowWidth:r.uint16,leftTable:new r.Pointer(r.uint16,ClassTable,{type:'parent'}),rightTable:new r.Pointer(r.uint16,ClassTable,{type:'parent'}),array:new r.Pointer(r.uint16,Kern2Array,{type:'parent'})},3:{glyphCount:r.uint16,kernValueCount:r.uint8,leftClassCount:r.uint8,rightClassCount:r.uint8,flags:r.uint8,kernValue:new r.Array(r.int16,'kernValueCount'),leftClass:new r.Array(r.uint8,'glyphCount'),rightClass:new r.Array(r.uint8,'glyphCount'),kernIndex:new r.Array(r.uint8,function(t){return t.leftClassCount*t.rightClassCount;})}});var KernTable=new r.VersionedStruct('version',{0:{// Microsoft uses this format\nsubVersion:r.uint16,// Microsoft has an extra sub-table version number\nlength:r.uint16,// Length of the subtable, in bytes\nformat:r.uint8,// Format of subtable\ncoverage:new r.Bitfield(r.uint8,['horizontal',// 1 if table has horizontal data, 0 if vertical\n'minimum',// If set to 1, the table has minimum values. If set to 0, the table has kerning values.\n'crossStream',// If set to 1, kerning is perpendicular to the flow of the text\n'override'// If set to 1 the value in this table replaces the accumulated value\n]),subtable:KernSubtable,padding:new r.Reserved(r.uint8,function(t){return t.length-t._currentOffset;})},1:{// Apple uses this format\nlength:r.uint32,coverage:new r.Bitfield(r.uint8,[null,null,null,null,null,'variation',// Set if table has variation kerning values\n'crossStream',// Set if table has cross-stream kerning values\n'vertical'// Set if table has vertical kerning values\n]),format:r.uint8,tupleIndex:r.uint16,subtable:KernSubtable,padding:new r.Reserved(r.uint8,function(t){return t.length-t._currentOffset;})}});var kern=new r.VersionedStruct(r.uint16,{0:{// Microsoft Version\nnTables:r.uint16,tables:new r.Array(KernTable,'nTables')},1:{// Apple Version\nreserved:new r.Reserved(r.uint16),// the other half of the version number\nnTables:r.uint32,tables:new r.Array(KernTable,'nTables')}});// Linear Threshold table\n// Records the ppem for each glyph at which the scaling becomes linear again,\n// despite instructions effecting the advance width\nvar LTSH=new r.Struct({version:r.uint16,numGlyphs:r.uint16,yPels:new r.Array(r.uint8,'numGlyphs')});// PCL 5 Table\n// NOTE: The PCLT table is strongly discouraged for OpenType fonts with TrueType outlines\nvar PCLT=new r.Struct({version:r.uint16,fontNumber:r.uint32,pitch:r.uint16,xHeight:r.uint16,style:r.uint16,typeFamily:r.uint16,capHeight:r.uint16,symbolSet:r.uint16,typeface:new r.String(16),characterComplement:new r.String(8),fileName:new r.String(6),strokeWeight:new r.String(1),widthType:new r.String(1),serifStyle:r.uint8,reserved:new r.Reserved(r.uint8)});// VDMX tables contain ascender/descender overrides for certain (usually small)\n// sizes. This is needed in order to match font metrics on Windows.\nvar Ratio=new r.Struct({bCharSet:r.uint8,// Character set\nxRatio:r.uint8,// Value to use for x-Ratio\nyStartRatio:r.uint8,// Starting y-Ratio value\nyEndRatio:r.uint8// Ending y-Ratio value\n});var vTable=new r.Struct({yPelHeight:r.uint16,// yPelHeight to which values apply\nyMax:r.int16,// Maximum value (in pels) for this yPelHeight\nyMin:r.int16// Minimum value (in pels) for this yPelHeight\n});var VdmxGroup=new r.Struct({recs:r.uint16,// Number of height records in this group\nstartsz:r.uint8,// Starting yPelHeight\nendsz:r.uint8,// Ending yPelHeight\nentries:new r.Array(vTable,'recs')// The VDMX records\n});var VDMX=new r.Struct({version:r.uint16,// Version number (0 or 1)\nnumRecs:r.uint16,// Number of VDMX groups present\nnumRatios:r.uint16,// Number of aspect ratio groupings\nratioRanges:new r.Array(Ratio,'numRatios'),// Ratio ranges\noffsets:new r.Array(r.uint16,'numRatios'),// Offset to the VDMX group for this ratio range\ngroups:new r.Array(VdmxGroup,'numRecs')// The actual VDMX groupings\n});// Vertical Header Table\nvar vhea=new r.Struct({version:r.uint16,// Version number of the Vertical Header Table\nascent:r.int16,// The vertical typographic ascender for this font\ndescent:r.int16,// The vertical typographic descender for this font\nlineGap:r.int16,// The vertical typographic line gap for this font\nadvanceHeightMax:r.int16,// The maximum advance height measurement found in the font\nminTopSideBearing:r.int16,// The minimum top side bearing measurement found in the font\nminBottomSideBearing:r.int16,// The minimum bottom side bearing measurement found in the font\nyMaxExtent:r.int16,caretSlopeRise:r.int16,// Caret slope (rise/run)\ncaretSlopeRun:r.int16,caretOffset:r.int16,// Set value equal to 0 for nonslanted fonts\nreserved:new r.Reserved(r.int16,4),metricDataFormat:r.int16,// Set to 0\nnumberOfMetrics:r.uint16// Number of advance heights in the Vertical Metrics table\n});var VmtxEntry=new r.Struct({advance:r.uint16,// The advance height of the glyph\nbearing:r.int16// The top sidebearing of the glyph\n});// Vertical Metrics Table\nvar vmtx=new r.Struct({metrics:new r.LazyArray(VmtxEntry,function(t){return t.parent.vhea.numberOfMetrics;}),bearings:new r.LazyArray(r.int16,function(t){return t.parent.maxp.numGlyphs-t.parent.vhea.numberOfMetrics;})});var shortFrac=new r.Fixed(16,'BE',14);var Correspondence=new r.Struct({fromCoord:shortFrac,toCoord:shortFrac});var Segment=new r.Struct({pairCount:r.uint16,correspondence:new r.Array(Correspondence,'pairCount')});var avar=new r.Struct({version:r.fixed32,axisCount:r.uint32,segment:new r.Array(Segment,'axisCount')});var UnboundedArrayAccessor=function(){function UnboundedArrayAccessor(type,stream,parent){_classCallCheck(this,UnboundedArrayAccessor);this.type=type;this.stream=stream;this.parent=parent;this.base=this.stream.pos;this._items=[];}UnboundedArrayAccessor.prototype.getItem=function getItem(index){if(this._items[index]==null){var pos=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.parent)*index;this._items[index]=this.type.decode(this.stream,this.parent);this.stream.pos=pos;}return this._items[index];};UnboundedArrayAccessor.prototype.inspect=function inspect(){return'[UnboundedArray '+this.type.constructor.name+']';};return UnboundedArrayAccessor;}();var UnboundedArray=function(_r$Array){_inherits(UnboundedArray,_r$Array);function UnboundedArray(type){_classCallCheck(this,UnboundedArray);return _possibleConstructorReturn(this,_r$Array.call(this,type,0));}UnboundedArray.prototype.decode=function decode(stream,parent){return new UnboundedArrayAccessor(this.type,stream,parent);};return UnboundedArray;}(r.Array);var LookupTable=function LookupTable(){var ValueType=arguments.length>0&&arguments[0]!==undefined?arguments[0]:r.uint16;// Helper class that makes internal structures invisible to pointers\nvar Shadow=function(){function Shadow(type){_classCallCheck(this,Shadow);this.type=type;}Shadow.prototype.decode=function decode(stream,ctx){ctx=ctx.parent.parent;return this.type.decode(stream,ctx);};Shadow.prototype.size=function size(val,ctx){ctx=ctx.parent.parent;return this.type.size(val,ctx);};Shadow.prototype.encode=function encode(stream,val,ctx){ctx=ctx.parent.parent;return this.type.encode(stream,val,ctx);};return Shadow;}();ValueType=new Shadow(ValueType);var BinarySearchHeader=new r.Struct({unitSize:r.uint16,nUnits:r.uint16,searchRange:r.uint16,entrySelector:r.uint16,rangeShift:r.uint16});var LookupSegmentSingle=new r.Struct({lastGlyph:r.uint16,firstGlyph:r.uint16,value:ValueType});var LookupSegmentArray=new r.Struct({lastGlyph:r.uint16,firstGlyph:r.uint16,values:new r.Pointer(r.uint16,new r.Array(ValueType,function(t){return t.lastGlyph-t.firstGlyph+1;}),{type:'parent'})});var LookupSingle=new r.Struct({glyph:r.uint16,value:ValueType});return new r.VersionedStruct(r.uint16,{0:{values:new UnboundedArray(ValueType)// length == number of glyphs maybe?\n},2:{binarySearchHeader:BinarySearchHeader,segments:new r.Array(LookupSegmentSingle,function(t){return t.binarySearchHeader.nUnits;})},4:{binarySearchHeader:BinarySearchHeader,segments:new r.Array(LookupSegmentArray,function(t){return t.binarySearchHeader.nUnits;})},6:{binarySearchHeader:BinarySearchHeader,segments:new r.Array(LookupSingle,function(t){return t.binarySearchHeader.nUnits;})},8:{firstGlyph:r.uint16,count:r.uint16,values:new r.Array(ValueType,'count')}});};function StateTable(){var entryData=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var lookupType=arguments.length>1&&arguments[1]!==undefined?arguments[1]:r.uint16;var entry=_Object$assign({newState:r.uint16,flags:r.uint16},entryData);var Entry=new r.Struct(entry);var StateArray=new UnboundedArray(new r.Array(r.uint16,function(t){return t.nClasses;}));var StateHeader=new r.Struct({nClasses:r.uint32,classTable:new r.Pointer(r.uint32,new LookupTable(lookupType)),stateArray:new r.Pointer(r.uint32,StateArray),entryTable:new r.Pointer(r.uint32,new UnboundedArray(Entry))});return StateHeader;}// This is the old version of the StateTable structure\nfunction StateTable1(){var entryData=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var lookupType=arguments.length>1&&arguments[1]!==undefined?arguments[1]:r.uint16;var ClassLookupTable=new r.Struct({version:function version(){return 8;},// simulate LookupTable\nfirstGlyph:r.uint16,values:new r.Array(r.uint8,r.uint16)});var entry=_Object$assign({newStateOffset:r.uint16,// convert offset to stateArray index\nnewState:function newState(t){return(t.newStateOffset-(t.parent.stateArray.base-t.parent._startOffset))/t.parent.nClasses;},flags:r.uint16},entryData);var Entry=new r.Struct(entry);var StateArray=new UnboundedArray(new r.Array(r.uint8,function(t){return t.nClasses;}));var StateHeader1=new r.Struct({nClasses:r.uint16,classTable:new r.Pointer(r.uint16,ClassLookupTable),stateArray:new r.Pointer(r.uint16,StateArray),entryTable:new r.Pointer(r.uint16,new UnboundedArray(Entry))});return StateHeader1;}var BslnSubtable=new r.VersionedStruct('format',{0:{// Distance-based, no mapping\ndeltas:new r.Array(r.int16,32)},1:{// Distance-based, with mapping\ndeltas:new r.Array(r.int16,32),mappingData:new LookupTable(r.uint16)},2:{// Control point-based, no mapping\nstandardGlyph:r.uint16,controlPoints:new r.Array(r.uint16,32)},3:{// Control point-based, with mapping\nstandardGlyph:r.uint16,controlPoints:new r.Array(r.uint16,32),mappingData:new LookupTable(r.uint16)}});var bsln=new r.Struct({version:r.fixed32,format:r.uint16,defaultBaseline:r.uint16,subtable:BslnSubtable});var Setting=new r.Struct({setting:r.uint16,nameIndex:r.int16,name:function name(t){return t.parent.parent.parent.name.records.fontFeatures[t.nameIndex];}});var FeatureName=new r.Struct({feature:r.uint16,nSettings:r.uint16,settingTable:new r.Pointer(r.uint32,new r.Array(Setting,'nSettings'),{type:'parent'}),featureFlags:new r.Bitfield(r.uint8,[null,null,null,null,null,null,'hasDefault','exclusive']),defaultSetting:r.uint8,nameIndex:r.int16,name:function name(t){return t.parent.parent.name.records.fontFeatures[t.nameIndex];}});var feat=new r.Struct({version:r.fixed32,featureNameCount:r.uint16,reserved1:new r.Reserved(r.uint16),reserved2:new r.Reserved(r.uint32),featureNames:new r.Array(FeatureName,'featureNameCount')});var Axis$1=new r.Struct({axisTag:new r.String(4),minValue:r.fixed32,defaultValue:r.fixed32,maxValue:r.fixed32,flags:r.uint16,nameID:r.uint16,name:function name(t){return t.parent.parent.name.records.fontFeatures[t.nameID];}});var Instance=new r.Struct({nameID:r.uint16,name:function name(t){return t.parent.parent.name.records.fontFeatures[t.nameID];},flags:r.uint16,coord:new r.Array(r.fixed32,function(t){return t.parent.axisCount;}),postscriptNameID:new r.Optional(r.uint16,function(t){return t.parent.instanceSize-t._currentOffset>0;})});var fvar=new r.Struct({version:r.fixed32,offsetToData:r.uint16,countSizePairs:r.uint16,axisCount:r.uint16,axisSize:r.uint16,instanceCount:r.uint16,instanceSize:r.uint16,axis:new r.Array(Axis$1,'axisCount'),instance:new r.Array(Instance,'instanceCount')});var shortFrac$1=new r.Fixed(16,'BE',14);var Offset=function(){function Offset(){_classCallCheck(this,Offset);}Offset.decode=function decode(stream,parent){// In short format, offsets are multiplied by 2.\n// This doesn't seem to be documented by Apple, but it\n// is implemented this way in Freetype.\nreturn parent.flags?stream.readUInt32BE():stream.readUInt16BE()*2;};return Offset;}();var gvar=new r.Struct({version:r.uint16,reserved:new r.Reserved(r.uint16),axisCount:r.uint16,globalCoordCount:r.uint16,globalCoords:new r.Pointer(r.uint32,new r.Array(new r.Array(shortFrac$1,'axisCount'),'globalCoordCount')),glyphCount:r.uint16,flags:r.uint16,offsetToData:r.uint32,offsets:new r.Array(new r.Pointer(Offset,'void',{relativeTo:'offsetToData',allowNull:false}),function(t){return t.glyphCount+1;})});var ClassTable$1=new r.Struct({length:r.uint16,coverage:r.uint16,subFeatureFlags:r.uint32,stateTable:new StateTable1()});var WidthDeltaRecord=new r.Struct({justClass:r.uint32,beforeGrowLimit:r.fixed32,beforeShrinkLimit:r.fixed32,afterGrowLimit:r.fixed32,afterShrinkLimit:r.fixed32,growFlags:r.uint16,shrinkFlags:r.uint16});var WidthDeltaCluster=new r.Array(WidthDeltaRecord,r.uint32);var ActionData=new r.VersionedStruct('actionType',{0:{// Decomposition action\nlowerLimit:r.fixed32,upperLimit:r.fixed32,order:r.uint16,glyphs:new r.Array(r.uint16,r.uint16)},1:{// Unconditional add glyph action\naddGlyph:r.uint16},2:{// Conditional add glyph action\nsubstThreshold:r.fixed32,addGlyph:r.uint16,substGlyph:r.uint16},3:{},// Stretch glyph action (no data, not supported by CoreText)\n4:{// Ductile glyph action (not supported by CoreText)\nvariationAxis:r.uint32,minimumLimit:r.fixed32,noStretchValue:r.fixed32,maximumLimit:r.fixed32},5:{// Repeated add glyph action\nflags:r.uint16,glyph:r.uint16}});var Action=new r.Struct({actionClass:r.uint16,actionType:r.uint16,actionLength:r.uint32,actionData:ActionData,padding:new r.Reserved(r.uint8,function(t){return t.actionLength-t._currentOffset;})});var PostcompensationAction=new r.Array(Action,r.uint32);var PostCompensationTable=new r.Struct({lookupTable:new LookupTable(new r.Pointer(r.uint16,PostcompensationAction))});var JustificationTable=new r.Struct({classTable:new r.Pointer(r.uint16,ClassTable$1,{type:'parent'}),wdcOffset:r.uint16,postCompensationTable:new r.Pointer(r.uint16,PostCompensationTable,{type:'parent'}),widthDeltaClusters:new LookupTable(new r.Pointer(r.uint16,WidthDeltaCluster,{type:'parent',relativeTo:'wdcOffset'}))});var just=new r.Struct({version:r.uint32,format:r.uint16,horizontal:new r.Pointer(r.uint16,JustificationTable),vertical:new r.Pointer(r.uint16,JustificationTable)});var LigatureData={action:r.uint16};var ContextualData={markIndex:r.uint16,currentIndex:r.uint16};var InsertionData={currentInsertIndex:r.uint16,markedInsertIndex:r.uint16};var SubstitutionTable=new r.Struct({items:new UnboundedArray(new r.Pointer(r.uint32,new LookupTable()))});var SubtableData=new r.VersionedStruct('type',{0:{// Indic Rearrangement Subtable\nstateTable:new StateTable()},1:{// Contextual Glyph Substitution Subtable\nstateTable:new StateTable(ContextualData),substitutionTable:new r.Pointer(r.uint32,SubstitutionTable)},2:{// Ligature subtable\nstateTable:new StateTable(LigatureData),ligatureActions:new r.Pointer(r.uint32,new UnboundedArray(r.uint32)),components:new r.Pointer(r.uint32,new UnboundedArray(r.uint16)),ligatureList:new r.Pointer(r.uint32,new UnboundedArray(r.uint16))},4:{// Non-contextual Glyph Substitution Subtable\nlookupTable:new LookupTable()},5:{// Glyph Insertion Subtable\nstateTable:new StateTable(InsertionData),insertionActions:new r.Pointer(r.uint32,new UnboundedArray(r.uint16))}});var Subtable=new r.Struct({length:r.uint32,coverage:r.uint24,type:r.uint8,subFeatureFlags:r.uint32,table:SubtableData,padding:new r.Reserved(r.uint8,function(t){return t.length-t._currentOffset;})});var FeatureEntry=new r.Struct({featureType:r.uint16,featureSetting:r.uint16,enableFlags:r.uint32,disableFlags:r.uint32});var MorxChain=new r.Struct({defaultFlags:r.uint32,chainLength:r.uint32,nFeatureEntries:r.uint32,nSubtables:r.uint32,features:new r.Array(FeatureEntry,'nFeatureEntries'),subtables:new r.Array(Subtable,'nSubtables')});var morx=new r.Struct({version:r.uint16,unused:new r.Reserved(r.uint16),nChains:r.uint32,chains:new r.Array(MorxChain,'nChains')});var OpticalBounds=new r.Struct({left:r.int16,top:r.int16,right:r.int16,bottom:r.int16});var opbd=new r.Struct({version:r.fixed32,format:r.uint16,lookupTable:new LookupTable(OpticalBounds)});var tables={};// Required Tables\ntables.cmap=cmap;tables.head=head;tables.hhea=hhea;tables.hmtx=hmtx;tables.maxp=maxp;tables.name=NameTable;tables['OS/2']=OS2;tables.post=post;// TrueType Outlines\ntables.fpgm=fpgm;tables.loca=loca;tables.prep=prep;tables['cvt ']=cvt;tables.glyf=glyf;// PostScript Outlines\ntables['CFF ']=CFFFont;tables['CFF2']=CFFFont;tables.VORG=VORG;// Bitmap Glyphs\ntables.EBLC=EBLC;tables.CBLC=tables.EBLC;tables.sbix=sbix;tables.COLR=COLR;tables.CPAL=CPAL;// Advanced OpenType Tables\ntables.BASE=BASE;tables.GDEF=GDEF;tables.GPOS=GPOS;tables.GSUB=GSUB;tables.JSTF=JSTF;// OpenType variations tables\ntables.HVAR=HVAR;// Other OpenType Tables\ntables.DSIG=DSIG;tables.gasp=gasp;tables.hdmx=hdmx;tables.kern=kern;tables.LTSH=LTSH;tables.PCLT=PCLT;tables.VDMX=VDMX;tables.vhea=vhea;tables.vmtx=vmtx;// Apple Advanced Typography Tables\ntables.avar=avar;tables.bsln=bsln;tables.feat=feat;tables.fvar=fvar;tables.gvar=gvar;tables.just=just;tables.morx=morx;tables.opbd=opbd;var TableEntry=new r.Struct({tag:new r.String(4),checkSum:r.uint32,offset:new r.Pointer(r.uint32,'void',{type:'global'}),length:r.uint32});var Directory=new r.Struct({tag:new r.String(4),numTables:r.uint16,searchRange:r.uint16,entrySelector:r.uint16,rangeShift:r.uint16,tables:new r.Array(TableEntry,'numTables')});Directory.process=function(){var tables={};for(var _iterator=this.tables,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var table=_ref;tables[table.tag]=table;}this.tables=tables;};Directory.preEncode=function(stream){var tables$$=[];for(var tag in this.tables){var table=this.tables[tag];if(table){tables$$.push({tag:tag,checkSum:0,offset:new r.VoidPointer(tables[tag],table),length:tables[tag].size(table)});}}this.tag='true';this.numTables=tables$$.length;this.tables=tables$$;var maxExponentFor2=Math.floor(Math.log(this.numTables)/Math.LN2);var maxPowerOf2=Math.pow(2,maxExponentFor2);this.searchRange=maxPowerOf2*16;this.entrySelector=Math.log(maxPowerOf2)/Math.LN2;this.rangeShift=this.numTables*16-this.searchRange;};function binarySearch(arr,cmp){var min=0;var max=arr.length-1;while(min<=max){var mid=min+max>>1;var res=cmp(arr[mid]);if(res<0){max=mid-1;}else if(res>0){min=mid+1;}else{return mid;}}return-1;}function range(index,end){var range=[];while(index<end){range.push(index++);}return range;}var _class$1;function _applyDecoratedDescriptor$1(target,property,decorators,descriptor,context){var desc={};Object['ke'+'ys'](descriptor).forEach(function(key){desc[key]=descriptor[key];});desc.enumerable=!!desc.enumerable;desc.configurable=!!desc.configurable;if('value'in desc||desc.initializer){desc.writable=true;}desc=decorators.slice().reverse().reduce(function(desc,decorator){return decorator(target,property,desc)||desc;},desc);if(context&&desc.initializer!==void 0){desc.value=desc.initializer?desc.initializer.call(context):void 0;desc.initializer=undefined;}if(desc.initializer===void 0){Object['define'+'Property'](target,property,desc);desc=null;}return desc;}// iconv-lite is an optional dependency.\ntry{var iconv=__nested_webpack_require_3836346__(108);}catch(err){}var CmapProcessor=(_class$1=function(){function CmapProcessor(cmapTable){_classCallCheck(this,CmapProcessor);// Attempt to find a Unicode cmap first\nthis.encoding=null;this.cmap=this.findSubtable(cmapTable,[// 32-bit subtables\n[3,10],[0,6],[0,4],// 16-bit subtables\n[3,1],[0,3],[0,2],[0,1],[0,0]]);// If not unicode cmap was found, and iconv-lite is installed,\n// take the first table with a supported encoding.\nif(!this.cmap&&iconv){for(var _iterator=cmapTable.tables,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var cmap=_ref;var encoding=getEncoding(cmap.platformID,cmap.encodingID,cmap.table.language-1);if(iconv.encodingExists(encoding)){this.cmap=cmap.table;this.encoding=encoding;}}}if(!this.cmap){throw new Error(\"Could not find a supported cmap table\");}this.uvs=this.findSubtable(cmapTable,[[0,5]]);if(this.uvs&&this.uvs.version!==14){this.uvs=null;}}CmapProcessor.prototype.findSubtable=function findSubtable(cmapTable,pairs){for(var _iterator2=pairs,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var _ref3=_ref2,platformID=_ref3[0],encodingID=_ref3[1];for(var _iterator3=cmapTable.tables,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_getIterator(_iterator3);;){var _ref4;if(_isArray3){if(_i3>=_iterator3.length)break;_ref4=_iterator3[_i3++];}else{_i3=_iterator3.next();if(_i3.done)break;_ref4=_i3.value;}var cmap=_ref4;if(cmap.platformID===platformID&&cmap.encodingID===encodingID){return cmap.table;}}}return null;};CmapProcessor.prototype.lookup=function lookup(codepoint,variationSelector){// If there is no Unicode cmap in this font, we need to re-encode\n// the codepoint in the encoding that the cmap supports.\nif(this.encoding){var buf=iconv.encode(_String$fromCodePoint(codepoint),this.encoding);codepoint=0;for(var i=0;i<buf.length;i++){codepoint=codepoint<<8|buf[i];}// Otherwise, try to get a Unicode variation selector for this codepoint if one is provided.\n}else if(variationSelector){var gid=this.getVariationSelector(codepoint,variationSelector);if(gid){return gid;}}var cmap=this.cmap;switch(cmap.version){case 0:return cmap.codeMap.get(codepoint)||0;case 4:{var min=0;var max=cmap.segCount-1;while(min<=max){var mid=min+max>>1;if(codepoint<cmap.startCode.get(mid)){max=mid-1;}else if(codepoint>cmap.endCode.get(mid)){min=mid+1;}else{var rangeOffset=cmap.idRangeOffset.get(mid);var _gid=void 0;if(rangeOffset===0){_gid=codepoint+cmap.idDelta.get(mid);}else{var index=rangeOffset/2+(codepoint-cmap.startCode.get(mid))-(cmap.segCount-mid);_gid=cmap.glyphIndexArray.get(index)||0;if(_gid!==0){_gid+=cmap.idDelta.get(mid);}}return _gid&0xffff;}}return 0;}case 8:throw new Error('TODO: cmap format 8');case 6:case 10:return cmap.glyphIndices.get(codepoint-cmap.firstCode)||0;case 12:case 13:{var _min=0;var _max=cmap.nGroups-1;while(_min<=_max){var _mid=_min+_max>>1;var group=cmap.groups.get(_mid);if(codepoint<group.startCharCode){_max=_mid-1;}else if(codepoint>group.endCharCode){_min=_mid+1;}else{if(cmap.version===12){return group.glyphID+(codepoint-group.startCharCode);}else{return group.glyphID;}}}return 0;}case 14:throw new Error('TODO: cmap format 14');default:throw new Error('Unknown cmap format '+cmap.version);}};CmapProcessor.prototype.getVariationSelector=function getVariationSelector(codepoint,variationSelector){if(!this.uvs){return 0;}var selectors=this.uvs.varSelectors.toArray();var i=binarySearch(selectors,function(x){return variationSelector-x.varSelector;});var sel=selectors[i];if(i!==-1&&sel.defaultUVS){i=binarySearch(sel.defaultUVS,function(x){return codepoint<x.startUnicodeValue?-1:codepoint>x.startUnicodeValue+x.additionalCount?+1:0;});}if(i!==-1&&sel.nonDefaultUVS){i=binarySearch(sel.nonDefaultUVS,function(x){return codepoint-x.unicodeValue;});if(i!==-1){return sel.nonDefaultUVS[i].glyphID;}}return 0;};CmapProcessor.prototype.getCharacterSet=function getCharacterSet(){var cmap=this.cmap;switch(cmap.version){case 0:return range(0,cmap.codeMap.length);case 4:{var res=[];var endCodes=cmap.endCode.toArray();for(var i=0;i<endCodes.length;i++){var tail=endCodes[i]+1;var start=cmap.startCode.get(i);res.push.apply(res,range(start,tail));}return res;}case 8:throw new Error('TODO: cmap format 8');case 6:case 10:return range(cmap.firstCode,cmap.firstCode+cmap.glyphIndices.length);case 12:case 13:{var _res=[];for(var _iterator4=cmap.groups.toArray(),_isArray4=Array.isArray(_iterator4),_i4=0,_iterator4=_isArray4?_iterator4:_getIterator(_iterator4);;){var _ref5;if(_isArray4){if(_i4>=_iterator4.length)break;_ref5=_iterator4[_i4++];}else{_i4=_iterator4.next();if(_i4.done)break;_ref5=_i4.value;}var group=_ref5;_res.push.apply(_res,range(group.startCharCode,group.endCharCode+1));}return _res;}case 14:throw new Error('TODO: cmap format 14');default:throw new Error('Unknown cmap format '+cmap.version);}};CmapProcessor.prototype.codePointsForGlyph=function codePointsForGlyph(gid){var cmap=this.cmap;switch(cmap.version){case 0:{var res=[];for(var i=0;i<256;i++){if(cmap.codeMap.get(i)===gid){res.push(i);}}return res;}case 4:{var _res2=[];for(var _i5=0;_i5<cmap.segCount;_i5++){var end=cmap.endCode.get(_i5);var start=cmap.startCode.get(_i5);var rangeOffset=cmap.idRangeOffset.get(_i5);var delta=cmap.idDelta.get(_i5);for(var c=start;c<=end;c++){var g=0;if(rangeOffset===0){g=c+delta;}else{var index=rangeOffset/2+(c-start)-(cmap.segCount-_i5);g=cmap.glyphIndexArray.get(index)||0;if(g!==0){g+=delta;}}if(g===gid){_res2.push(c);}}}return _res2;}case 12:{var _res3=[];for(var _iterator5=cmap.groups.toArray(),_isArray5=Array.isArray(_iterator5),_i6=0,_iterator5=_isArray5?_iterator5:_getIterator(_iterator5);;){var _ref6;if(_isArray5){if(_i6>=_iterator5.length)break;_ref6=_iterator5[_i6++];}else{_i6=_iterator5.next();if(_i6.done)break;_ref6=_i6.value;}var group=_ref6;if(gid>=group.glyphID&&gid<=group.glyphID+(group.endCharCode-group.startCharCode)){_res3.push(group.startCharCode+(gid-group.glyphID));}}return _res3;}case 13:{var _res4=[];for(var _iterator6=cmap.groups.toArray(),_isArray6=Array.isArray(_iterator6),_i7=0,_iterator6=_isArray6?_iterator6:_getIterator(_iterator6);;){var _ref7;if(_isArray6){if(_i7>=_iterator6.length)break;_ref7=_iterator6[_i7++];}else{_i7=_iterator6.next();if(_i7.done)break;_ref7=_i7.value;}var _group=_ref7;if(gid===_group.glyphID){_res4.push.apply(_res4,range(_group.startCharCode,_group.endCharCode+1));}}return _res4;}default:throw new Error('Unknown cmap format '+cmap.version);}};return CmapProcessor;}(),(_applyDecoratedDescriptor$1(_class$1.prototype,'getCharacterSet',[cache],_Object$getOwnPropertyDescriptor(_class$1.prototype,'getCharacterSet'),_class$1.prototype),_applyDecoratedDescriptor$1(_class$1.prototype,'codePointsForGlyph',[cache],_Object$getOwnPropertyDescriptor(_class$1.prototype,'codePointsForGlyph'),_class$1.prototype)),_class$1);var KernProcessor=function(){function KernProcessor(font){_classCallCheck(this,KernProcessor);this.kern=font.kern;}KernProcessor.prototype.process=function process(glyphs,positions){for(var glyphIndex=0;glyphIndex<glyphs.length-1;glyphIndex++){var left=glyphs[glyphIndex].id;var right=glyphs[glyphIndex+1].id;positions[glyphIndex].xAdvance+=this.getKerning(left,right);}};KernProcessor.prototype.getKerning=function getKerning(left,right){var res=0;for(var _iterator=this.kern.tables,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var table=_ref;if(table.coverage.crossStream){continue;}switch(table.version){case 0:if(!table.coverage.horizontal){continue;}break;case 1:if(table.coverage.vertical||table.coverage.variation){continue;}break;default:throw new Error('Unsupported kerning table version '+table.version);}var val=0;var s=table.subtable;switch(table.format){case 0:var pairIdx=binarySearch(s.pairs,function(pair){return left-pair.left||right-pair.right;});if(pairIdx>=0){val=s.pairs[pairIdx].value;}break;case 2:var leftOffset=0,rightOffset=0;if(left>=s.leftTable.firstGlyph&&left<s.leftTable.firstGlyph+s.leftTable.nGlyphs){leftOffset=s.leftTable.offsets[left-s.leftTable.firstGlyph];}else{leftOffset=s.array.off;}if(right>=s.rightTable.firstGlyph&&right<s.rightTable.firstGlyph+s.rightTable.nGlyphs){rightOffset=s.rightTable.offsets[right-s.rightTable.firstGlyph];}var index=(leftOffset+rightOffset-s.array.off)/2;val=s.array.values.get(index);break;case 3:if(left>=s.glyphCount||right>=s.glyphCount){return 0;}val=s.kernValue[s.kernIndex[s.leftClass[left]*s.rightClassCount+s.rightClass[right]]];break;default:throw new Error('Unsupported kerning sub-table format '+table.format);}// Microsoft supports the override flag, which resets the result\n// Otherwise, the sum of the results from all subtables is returned\nif(table.coverage.override){res=val;}else{res+=val;}}return res;};return KernProcessor;}();/**\r\n     * This class is used when GPOS does not define 'mark' or 'mkmk' features\r\n     * for positioning marks relative to base glyphs. It uses the unicode\r\n     * combining class property to position marks.\r\n     *\r\n     * Based on code from Harfbuzz, thanks!\r\n     * https://github.com/behdad/harfbuzz/blob/master/src/hb-ot-shape-fallback.cc\r\n     */var UnicodeLayoutEngine=function(){function UnicodeLayoutEngine(font){_classCallCheck(this,UnicodeLayoutEngine);this.font=font;}UnicodeLayoutEngine.prototype.positionGlyphs=function positionGlyphs(glyphs,positions){// find each base + mark cluster, and position the marks relative to the base\nvar clusterStart=0;var clusterEnd=0;for(var index=0;index<glyphs.length;index++){var glyph=glyphs[index];if(glyph.isMark){// TODO: handle ligatures\nclusterEnd=index;}else{if(clusterStart!==clusterEnd){this.positionCluster(glyphs,positions,clusterStart,clusterEnd);}clusterStart=clusterEnd=index;}}if(clusterStart!==clusterEnd){this.positionCluster(glyphs,positions,clusterStart,clusterEnd);}return positions;};UnicodeLayoutEngine.prototype.positionCluster=function positionCluster(glyphs,positions,clusterStart,clusterEnd){var base=glyphs[clusterStart];var baseBox=base.cbox.copy();// adjust bounding box for ligature glyphs\nif(base.codePoints.length>1){// LTR. TODO: RTL support.\nbaseBox.minX+=(base.codePoints.length-1)*baseBox.width/base.codePoints.length;}var xOffset=-positions[clusterStart].xAdvance;var yOffset=0;var yGap=this.font.unitsPerEm/16;// position each of the mark glyphs relative to the base glyph\nfor(var index=clusterStart+1;index<=clusterEnd;index++){var mark=glyphs[index];var markBox=mark.cbox;var position=positions[index];var combiningClass=this.getCombiningClass(mark.codePoints[0]);if(combiningClass!=='Not_Reordered'){position.xOffset=position.yOffset=0;// x positioning\nswitch(combiningClass){case'Double_Above':case'Double_Below':// LTR. TODO: RTL support.\nposition.xOffset+=baseBox.minX-markBox.width/2-markBox.minX;break;case'Attached_Below_Left':case'Below_Left':case'Above_Left':// left align\nposition.xOffset+=baseBox.minX-markBox.minX;break;case'Attached_Above_Right':case'Below_Right':case'Above_Right':// right align\nposition.xOffset+=baseBox.maxX-markBox.width-markBox.minX;break;default:// Attached_Below, Attached_Above, Below, Above, other\n// center align\nposition.xOffset+=baseBox.minX+(baseBox.width-markBox.width)/2-markBox.minX;}// y positioning\nswitch(combiningClass){case'Double_Below':case'Below_Left':case'Below':case'Below_Right':case'Attached_Below_Left':case'Attached_Below':// add a small gap between the glyphs if they are not attached\nif(combiningClass==='Attached_Below_Left'||combiningClass==='Attached_Below'){baseBox.minY+=yGap;}position.yOffset=-baseBox.minY-markBox.maxY;baseBox.minY+=markBox.height;break;case'Double_Above':case'Above_Left':case'Above':case'Above_Right':case'Attached_Above':case'Attached_Above_Right':// add a small gap between the glyphs if they are not attached\nif(combiningClass==='Attached_Above'||combiningClass==='Attached_Above_Right'){baseBox.maxY+=yGap;}position.yOffset=baseBox.maxY-markBox.minY;baseBox.maxY+=markBox.height;break;}position.xAdvance=position.yAdvance=0;position.xOffset+=xOffset;position.yOffset+=yOffset;}else{xOffset-=position.xAdvance;yOffset-=position.yAdvance;}}return;};UnicodeLayoutEngine.prototype.getCombiningClass=function getCombiningClass(codePoint){var combiningClass=unicode.getCombiningClass(codePoint);// Thai / Lao need some per-character work\nif((codePoint&~0xff)===0x0e00){if(combiningClass==='Not_Reordered'){switch(codePoint){case 0x0e31:case 0x0e34:case 0x0e35:case 0x0e36:case 0x0e37:case 0x0e47:case 0x0e4c:case 0x0e3d:case 0x0e4e:return'Above_Right';case 0x0eb1:case 0x0eb4:case 0x0eb5:case 0x0eb6:case 0x0eb7:case 0x0ebb:case 0x0ecc:case 0x0ecd:return'Above';case 0x0ebc:return'Below';}}else if(codePoint===0x0e3a){// virama\nreturn'Below_Right';}}switch(combiningClass){// Hebrew\ncase'CCC10':// sheva\ncase'CCC11':// hataf segol\ncase'CCC12':// hataf patah\ncase'CCC13':// hataf qamats\ncase'CCC14':// hiriq\ncase'CCC15':// tsere\ncase'CCC16':// segol\ncase'CCC17':// patah\ncase'CCC18':// qamats\ncase'CCC20':// qubuts\ncase'CCC22':// meteg\nreturn'Below';case'CCC23':// rafe\nreturn'Attached_Above';case'CCC24':// shin dot\nreturn'Above_Right';case'CCC25':// sin dot\ncase'CCC19':// holam\nreturn'Above_Left';case'CCC26':// point varika\nreturn'Above';case'CCC21':// dagesh\nbreak;// Arabic and Syriac\ncase'CCC27':// fathatan\ncase'CCC28':// dammatan\ncase'CCC30':// fatha\ncase'CCC31':// damma\ncase'CCC33':// shadda\ncase'CCC34':// sukun\ncase'CCC35':// superscript alef\ncase'CCC36':// superscript alaph\nreturn'Above';case'CCC29':// kasratan\ncase'CCC32':// kasra\nreturn'Below';// Thai\ncase'CCC103':// sara u / sara uu\nreturn'Below_Right';case'CCC107':// mai\nreturn'Above_Right';// Lao\ncase'CCC118':// sign u / sign uu\nreturn'Below';case'CCC122':// mai\nreturn'Above';// Tibetan\ncase'CCC129':// sign aa\ncase'CCC132':// sign u\nreturn'Below';case'CCC130':// sign i\nreturn'Above';}return combiningClass;};return UnicodeLayoutEngine;}();/**\r\n     * Represents a glyph bounding box\r\n     */var BBox=function(){function BBox(){var minX=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Infinity;var minY=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Infinity;var maxX=arguments.length>2&&arguments[2]!==undefined?arguments[2]:-Infinity;var maxY=arguments.length>3&&arguments[3]!==undefined?arguments[3]:-Infinity;_classCallCheck(this,BBox);/**\r\n         * The minimum X position in the bounding box\r\n         * @type {number}\r\n         */this.minX=minX;/**\r\n         * The minimum Y position in the bounding box\r\n         * @type {number}\r\n         */this.minY=minY;/**\r\n         * The maxmimum X position in the bounding box\r\n         * @type {number}\r\n         */this.maxX=maxX;/**\r\n         * The maxmimum Y position in the bounding box\r\n         * @type {number}\r\n         */this.maxY=maxY;}/**\r\n       * The width of the bounding box\r\n       * @type {number}\r\n       */BBox.prototype.addPoint=function addPoint(x,y){if(Math.abs(x)!==Infinity){if(x<this.minX){this.minX=x;}if(x>this.maxX){this.maxX=x;}}if(Math.abs(y)!==Infinity){if(y<this.minY){this.minY=y;}if(y>this.maxY){this.maxY=y;}}};BBox.prototype.copy=function copy(){return new BBox(this.minX,this.minY,this.maxX,this.maxY);};_createClass(BBox,[{key:\"width\",get:function get(){return this.maxX-this.minX;}/**\r\n         * The height of the bounding box\r\n         * @type {number}\r\n         */},{key:\"height\",get:function get(){return this.maxY-this.minY;}}]);return BBox;}();// This maps the Unicode Script property to an OpenType script tag\n// Data from http://www.microsoft.com/typography/otspec/scripttags.htm\n// and http://www.unicode.org/Public/UNIDATA/PropertyValueAliases.txt.\nvar UNICODE_SCRIPTS={Caucasian_Albanian:'aghb',Arabic:'arab',Imperial_Aramaic:'armi',Armenian:'armn',Avestan:'avst',Balinese:'bali',Bamum:'bamu',Bassa_Vah:'bass',Batak:'batk',Bengali:['bng2','beng'],Bopomofo:'bopo',Brahmi:'brah',Braille:'brai',Buginese:'bugi',Buhid:'buhd',Chakma:'cakm',Canadian_Aboriginal:'cans',Carian:'cari',Cham:'cham',Cherokee:'cher',Coptic:'copt',Cypriot:'cprt',Cyrillic:'cyrl',Devanagari:['dev2','deva'],Deseret:'dsrt',Duployan:'dupl',Egyptian_Hieroglyphs:'egyp',Elbasan:'elba',Ethiopic:'ethi',Georgian:'geor',Glagolitic:'glag',Gothic:'goth',Grantha:'gran',Greek:'grek',Gujarati:['gjr2','gujr'],Gurmukhi:['gur2','guru'],Hangul:'hang',Han:'hani',Hanunoo:'hano',Hebrew:'hebr',Hiragana:'hira',Pahawh_Hmong:'hmng',Katakana_Or_Hiragana:'hrkt',Old_Italic:'ital',Javanese:'java',Kayah_Li:'kali',Katakana:'kana',Kharoshthi:'khar',Khmer:'khmr',Khojki:'khoj',Kannada:['knd2','knda'],Kaithi:'kthi',Tai_Tham:'lana',Lao:'lao ',Latin:'latn',Lepcha:'lepc',Limbu:'limb',Linear_A:'lina',Linear_B:'linb',Lisu:'lisu',Lycian:'lyci',Lydian:'lydi',Mahajani:'mahj',Mandaic:'mand',Manichaean:'mani',Mende_Kikakui:'mend',Meroitic_Cursive:'merc',Meroitic_Hieroglyphs:'mero',Malayalam:['mlm2','mlym'],Modi:'modi',Mongolian:'mong',Mro:'mroo',Meetei_Mayek:'mtei',Myanmar:['mym2','mymr'],Old_North_Arabian:'narb',Nabataean:'nbat',Nko:'nko ',Ogham:'ogam',Ol_Chiki:'olck',Old_Turkic:'orkh',Oriya:['ory2','orya'],Osmanya:'osma',Palmyrene:'palm',Pau_Cin_Hau:'pauc',Old_Permic:'perm',Phags_Pa:'phag',Inscriptional_Pahlavi:'phli',Psalter_Pahlavi:'phlp',Phoenician:'phnx',Miao:'plrd',Inscriptional_Parthian:'prti',Rejang:'rjng',Runic:'runr',Samaritan:'samr',Old_South_Arabian:'sarb',Saurashtra:'saur',Shavian:'shaw',Sharada:'shrd',Siddham:'sidd',Khudawadi:'sind',Sinhala:'sinh',Sora_Sompeng:'sora',Sundanese:'sund',Syloti_Nagri:'sylo',Syriac:'syrc',Tagbanwa:'tagb',Takri:'takr',Tai_Le:'tale',New_Tai_Lue:'talu',Tamil:['tml2','taml'],Tai_Viet:'tavt',Telugu:['tel2','telu'],Tifinagh:'tfng',Tagalog:'tglg',Thaana:'thaa',Thai:'thai',Tibetan:'tibt',Tirhuta:'tirh',Ugaritic:'ugar',Vai:'vai ',Warang_Citi:'wara',Old_Persian:'xpeo',Cuneiform:'xsux',Yi:'yi  ',Inherited:'zinh',Common:'zyyy',Unknown:'zzzz'};var OPENTYPE_SCRIPTS={};for(var script in UNICODE_SCRIPTS){var tag=UNICODE_SCRIPTS[script];if(Array.isArray(tag)){for(var _iterator=tag,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var t=_ref;OPENTYPE_SCRIPTS[t]=script;}}else{OPENTYPE_SCRIPTS[tag]=script;}}function fromOpenType(tag){return OPENTYPE_SCRIPTS[tag];}function forString(string){var len=string.length;var idx=0;while(idx<len){var code=string.charCodeAt(idx++);// Check if this is a high surrogate\nif(0xd800<=code&&code<=0xdbff&&idx<len){var next=string.charCodeAt(idx);// Check if this is a low surrogate\nif(0xdc00<=next&&next<=0xdfff){idx++;code=((code&0x3FF)<<10)+(next&0x3FF)+0x10000;}}var _script=unicode.getScript(code);if(_script!=='Common'&&_script!=='Inherited'&&_script!=='Unknown'){return UNICODE_SCRIPTS[_script];}}return UNICODE_SCRIPTS.Unknown;}function forCodePoints(codePoints){for(var i=0;i<codePoints.length;i++){var codePoint=codePoints[i];var _script2=unicode.getScript(codePoint);if(_script2!=='Common'&&_script2!=='Inherited'&&_script2!=='Unknown'){return UNICODE_SCRIPTS[_script2];}}return UNICODE_SCRIPTS.Unknown;}// The scripts in this map are written from right to left\nvar RTL={arab:true,// Arabic\nhebr:true,// Hebrew\nsyrc:true,// Syriac\nthaa:true,// Thaana\ncprt:true,// Cypriot Syllabary\nkhar:true,// Kharosthi\nphnx:true,// Phoenician\n'nko ':true,// N'Ko\nlydi:true,// Lydian\navst:true,// Avestan\narmi:true,// Imperial Aramaic\nphli:true,// Inscriptional Pahlavi\nprti:true,// Inscriptional Parthian\nsarb:true,// Old South Arabian\norkh:true,// Old Turkic, Orkhon Runic\nsamr:true,// Samaritan\nmand:true,// Mandaic, Mandaean\nmerc:true,// Meroitic Cursive\nmero:true,// Meroitic Hieroglyphs\n// Unicode 7.0 (not listed on http://www.microsoft.com/typography/otspec/scripttags.htm)\nmani:true,// Manichaean\nmend:true,// Mende Kikakui\nnbat:true,// Nabataean\nnarb:true,// Old North Arabian\npalm:true,// Palmyrene\nphlp:true// Psalter Pahlavi\n};function direction(script){if(RTL[script]){return'rtl';}return'ltr';}/**\r\n     * Represents a run of Glyph and GlyphPosition objects.\r\n     * Returned by the font layout method.\r\n     */var GlyphRun=function(){function GlyphRun(glyphs,features,script,language,direction$$){_classCallCheck(this,GlyphRun);/**\r\n         * An array of Glyph objects in the run\r\n         * @type {Glyph[]}\r\n         */this.glyphs=glyphs;/**\r\n         * An array of GlyphPosition objects for each glyph in the run\r\n         * @type {GlyphPosition[]}\r\n         */this.positions=null;/**\r\n         * The script that was requested for shaping. This was either passed in or detected automatically.\r\n         * @type {string}\r\n         */this.script=script;/**\r\n         * The language requested for shaping, as passed in. If `null`, the default language for the\r\n         * script was used.\r\n         * @type {string}\r\n         */this.language=language||null;/**\r\n         * The direction requested for shaping, as passed in (either ltr or rtl).\r\n         * If `null`, the default direction of the script is used.\r\n         * @type {string}\r\n         */this.direction=direction$$||direction(script);/**\r\n         * The features requested during shaping. This is a combination of user\r\n         * specified features and features chosen by the shaper.\r\n         * @type {object}\r\n         */this.features={};// Convert features to an object\nif(Array.isArray(features)){for(var _iterator=features,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var tag=_ref;this.features[tag]=true;}}else if((typeof features==='undefined'?'undefined':_typeof(features))==='object'){this.features=features;}}/**\r\n       * The total advance width of the run.\r\n       * @type {number}\r\n       */_createClass(GlyphRun,[{key:'advanceWidth',get:function get(){var width=0;for(var _iterator2=this.positions,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var position=_ref2;width+=position.xAdvance;}return width;}/**\r\n         * The total advance height of the run.\r\n         * @type {number}\r\n         */},{key:'advanceHeight',get:function get(){var height=0;for(var _iterator3=this.positions,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_getIterator(_iterator3);;){var _ref3;if(_isArray3){if(_i3>=_iterator3.length)break;_ref3=_iterator3[_i3++];}else{_i3=_iterator3.next();if(_i3.done)break;_ref3=_i3.value;}var position=_ref3;height+=position.yAdvance;}return height;}/**\r\n         * The bounding box containing all glyphs in the run.\r\n         * @type {BBox}\r\n         */},{key:'bbox',get:function get(){var bbox=new BBox();var x=0;var y=0;for(var index=0;index<this.glyphs.length;index++){var glyph=this.glyphs[index];var p=this.positions[index];var b=glyph.bbox;bbox.addPoint(b.minX+x+p.xOffset,b.minY+y+p.yOffset);bbox.addPoint(b.maxX+x+p.xOffset,b.maxY+y+p.yOffset);x+=p.xAdvance;y+=p.yAdvance;}return bbox;}}]);return GlyphRun;}();/**\r\n     * Represents positioning information for a glyph in a GlyphRun.\r\n     */var GlyphPosition=function GlyphPosition(){var xAdvance=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var yAdvance=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var xOffset=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var yOffset=arguments.length>3&&arguments[3]!==undefined?arguments[3]:0;_classCallCheck(this,GlyphPosition);/**\r\n       * The amount to move the virtual pen in the X direction after rendering this glyph.\r\n       * @type {number}\r\n       */this.xAdvance=xAdvance;/**\r\n       * The amount to move the virtual pen in the Y direction after rendering this glyph.\r\n       * @type {number}\r\n       */this.yAdvance=yAdvance;/**\r\n       * The offset from the pen position in the X direction at which to render this glyph.\r\n       * @type {number}\r\n       */this.xOffset=xOffset;/**\r\n       * The offset from the pen position in the Y direction at which to render this glyph.\r\n       * @type {number}\r\n       */this.yOffset=yOffset;};// see https://developer.apple.com/fonts/TrueType-Reference-Manual/RM09/AppendixF.html\n// and /System/Library/Frameworks/CoreText.framework/Versions/A/Headers/SFNTLayoutTypes.h on a Mac\nvar features={allTypographicFeatures:{code:0,exclusive:false,allTypeFeatures:0},ligatures:{code:1,exclusive:false,requiredLigatures:0,commonLigatures:2,rareLigatures:4,// logos: 6\nrebusPictures:8,diphthongLigatures:10,squaredLigatures:12,abbrevSquaredLigatures:14,symbolLigatures:16,contextualLigatures:18,historicalLigatures:20},cursiveConnection:{code:2,exclusive:true,unconnected:0,partiallyConnected:1,cursive:2},letterCase:{code:3,exclusive:true},// upperAndLowerCase: 0          # deprecated\n// allCaps: 1                    # deprecated\n// allLowerCase: 2               # deprecated\n// smallCaps: 3                  # deprecated\n// initialCaps: 4                # deprecated\n// initialCapsAndSmallCaps: 5    # deprecated\nverticalSubstitution:{code:4,exclusive:false,substituteVerticalForms:0},linguisticRearrangement:{code:5,exclusive:false,linguisticRearrangement:0},numberSpacing:{code:6,exclusive:true,monospacedNumbers:0,proportionalNumbers:1,thirdWidthNumbers:2,quarterWidthNumbers:3},smartSwash:{code:8,exclusive:false,wordInitialSwashes:0,wordFinalSwashes:2,// lineInitialSwashes: 4\n// lineFinalSwashes: 6\nnonFinalSwashes:8},diacritics:{code:9,exclusive:true,showDiacritics:0,hideDiacritics:1,decomposeDiacritics:2},verticalPosition:{code:10,exclusive:true,normalPosition:0,superiors:1,inferiors:2,ordinals:3,scientificInferiors:4},fractions:{code:11,exclusive:true,noFractions:0,verticalFractions:1,diagonalFractions:2},overlappingCharacters:{code:13,exclusive:false,preventOverlap:0},typographicExtras:{code:14,exclusive:false,// hyphensToEmDash: 0\n// hyphenToEnDash: 2\nslashedZero:4},// formInterrobang: 6\n// smartQuotes: 8\n// periodsToEllipsis: 10\nmathematicalExtras:{code:15,exclusive:false,// hyphenToMinus: 0\n// asteristoMultiply: 2\n// slashToDivide: 4\n// inequalityLigatures: 6\n// exponents: 8\nmathematicalGreek:10},ornamentSets:{code:16,exclusive:true,noOrnaments:0,dingbats:1,piCharacters:2,fleurons:3,decorativeBorders:4,internationalSymbols:5,mathSymbols:6},characterAlternatives:{code:17,exclusive:true,noAlternates:0},// user defined options\ndesignComplexity:{code:18,exclusive:true,designLevel1:0,designLevel2:1,designLevel3:2,designLevel4:3,designLevel5:4},styleOptions:{code:19,exclusive:true,noStyleOptions:0,displayText:1,engravedText:2,illuminatedCaps:3,titlingCaps:4,tallCaps:5},characterShape:{code:20,exclusive:true,traditionalCharacters:0,simplifiedCharacters:1,JIS1978Characters:2,JIS1983Characters:3,JIS1990Characters:4,traditionalAltOne:5,traditionalAltTwo:6,traditionalAltThree:7,traditionalAltFour:8,traditionalAltFive:9,expertCharacters:10,JIS2004Characters:11,hojoCharacters:12,NLCCharacters:13,traditionalNamesCharacters:14},numberCase:{code:21,exclusive:true,lowerCaseNumbers:0,upperCaseNumbers:1},textSpacing:{code:22,exclusive:true,proportionalText:0,monospacedText:1,halfWidthText:2,thirdWidthText:3,quarterWidthText:4,altProportionalText:5,altHalfWidthText:6},transliteration:{code:23,exclusive:true,noTransliteration:0},// hanjaToHangul: 1\n// hiraganaToKatakana: 2\n// katakanaToHiragana: 3\n// kanaToRomanization: 4\n// romanizationToHiragana: 5\n// romanizationToKatakana: 6\n// hanjaToHangulAltOne: 7\n// hanjaToHangulAltTwo: 8\n// hanjaToHangulAltThree: 9\nannotation:{code:24,exclusive:true,noAnnotation:0,boxAnnotation:1,roundedBoxAnnotation:2,circleAnnotation:3,invertedCircleAnnotation:4,parenthesisAnnotation:5,periodAnnotation:6,romanNumeralAnnotation:7,diamondAnnotation:8,invertedBoxAnnotation:9,invertedRoundedBoxAnnotation:10},kanaSpacing:{code:25,exclusive:true,fullWidthKana:0,proportionalKana:1},ideographicSpacing:{code:26,exclusive:true,fullWidthIdeographs:0,proportionalIdeographs:1,halfWidthIdeographs:2},unicodeDecomposition:{code:27,exclusive:false,canonicalComposition:0,compatibilityComposition:2,transcodingComposition:4},rubyKana:{code:28,exclusive:false,// noRubyKana: 0     # deprecated - use rubyKanaOff instead\n// rubyKana: 1     # deprecated - use rubyKanaOn instead\nrubyKana:2},CJKSymbolAlternatives:{code:29,exclusive:true,noCJKSymbolAlternatives:0,CJKSymbolAltOne:1,CJKSymbolAltTwo:2,CJKSymbolAltThree:3,CJKSymbolAltFour:4,CJKSymbolAltFive:5},ideographicAlternatives:{code:30,exclusive:true,noIdeographicAlternatives:0,ideographicAltOne:1,ideographicAltTwo:2,ideographicAltThree:3,ideographicAltFour:4,ideographicAltFive:5},CJKVerticalRomanPlacement:{code:31,exclusive:true,CJKVerticalRomanCentered:0,CJKVerticalRomanHBaseline:1},italicCJKRoman:{code:32,exclusive:false,// noCJKItalicRoman: 0     # deprecated - use CJKItalicRomanOff instead\n// CJKItalicRoman: 1     # deprecated - use CJKItalicRomanOn instead\nCJKItalicRoman:2},caseSensitiveLayout:{code:33,exclusive:false,caseSensitiveLayout:0,caseSensitiveSpacing:2},alternateKana:{code:34,exclusive:false,alternateHorizKana:0,alternateVertKana:2},stylisticAlternatives:{code:35,exclusive:false,noStylisticAlternates:0,stylisticAltOne:2,stylisticAltTwo:4,stylisticAltThree:6,stylisticAltFour:8,stylisticAltFive:10,stylisticAltSix:12,stylisticAltSeven:14,stylisticAltEight:16,stylisticAltNine:18,stylisticAltTen:20,stylisticAltEleven:22,stylisticAltTwelve:24,stylisticAltThirteen:26,stylisticAltFourteen:28,stylisticAltFifteen:30,stylisticAltSixteen:32,stylisticAltSeventeen:34,stylisticAltEighteen:36,stylisticAltNineteen:38,stylisticAltTwenty:40},contextualAlternates:{code:36,exclusive:false,contextualAlternates:0,swashAlternates:2,contextualSwashAlternates:4},lowerCase:{code:37,exclusive:true,defaultLowerCase:0,lowerCaseSmallCaps:1,lowerCasePetiteCaps:2},upperCase:{code:38,exclusive:true,defaultUpperCase:0,upperCaseSmallCaps:1,upperCasePetiteCaps:2},languageTag:{// indices into ltag table\ncode:39,exclusive:true},CJKRomanSpacing:{code:103,exclusive:true,halfWidthCJKRoman:0,proportionalCJKRoman:1,defaultCJKRoman:2,fullWidthCJKRoman:3}};var feature=function feature(name,selector){return[features[name].code,features[name][selector]];};var OTMapping={rlig:feature('ligatures','requiredLigatures'),clig:feature('ligatures','contextualLigatures'),dlig:feature('ligatures','rareLigatures'),hlig:feature('ligatures','historicalLigatures'),liga:feature('ligatures','commonLigatures'),hist:feature('ligatures','historicalLigatures'),// ??\nsmcp:feature('lowerCase','lowerCaseSmallCaps'),pcap:feature('lowerCase','lowerCasePetiteCaps'),frac:feature('fractions','diagonalFractions'),dnom:feature('fractions','diagonalFractions'),// ??\nnumr:feature('fractions','diagonalFractions'),// ??\nafrc:feature('fractions','verticalFractions'),// aalt\n// abvf, abvm, abvs, akhn, blwf, blwm, blws, cfar, cjct, cpsp, falt, isol, jalt, ljmo, mset?\n// ltra, ltrm, nukt, pref, pres, pstf, psts, rand, rkrf, rphf, rtla, rtlm, size, tjmo, tnum?\n// unic, vatu, vhal, vjmo, vpal, vrt2\n// dist -> trak table?\n// kern, vkrn -> kern table\n// lfbd + opbd + rtbd -> opbd table?\n// mark, mkmk -> acnt table?\n// locl -> languageTag + ltag table\ncase:feature('caseSensitiveLayout','caseSensitiveLayout'),// also caseSensitiveSpacing\nccmp:feature('unicodeDecomposition','canonicalComposition'),// compatibilityComposition?\ncpct:feature('CJKVerticalRomanPlacement','CJKVerticalRomanCentered'),// guess..., probably not given below\nvalt:feature('CJKVerticalRomanPlacement','CJKVerticalRomanCentered'),swsh:feature('contextualAlternates','swashAlternates'),cswh:feature('contextualAlternates','contextualSwashAlternates'),curs:feature('cursiveConnection','cursive'),// ??\nc2pc:feature('upperCase','upperCasePetiteCaps'),c2sc:feature('upperCase','upperCaseSmallCaps'),init:feature('smartSwash','wordInitialSwashes'),// ??\nfin2:feature('smartSwash','wordFinalSwashes'),// ??\nmedi:feature('smartSwash','nonFinalSwashes'),// ??\nmed2:feature('smartSwash','nonFinalSwashes'),// ??\nfin3:feature('smartSwash','wordFinalSwashes'),// ??\nfina:feature('smartSwash','wordFinalSwashes'),// ??\npkna:feature('kanaSpacing','proportionalKana'),half:feature('textSpacing','halfWidthText'),// also HalfWidthCJKRoman, HalfWidthIdeographs?\nhalt:feature('textSpacing','altHalfWidthText'),hkna:feature('alternateKana','alternateHorizKana'),vkna:feature('alternateKana','alternateVertKana'),// hngl: feature 'transliteration', 'hanjaToHangulSelector' # deprecated\nital:feature('italicCJKRoman','CJKItalicRoman'),lnum:feature('numberCase','upperCaseNumbers'),onum:feature('numberCase','lowerCaseNumbers'),mgrk:feature('mathematicalExtras','mathematicalGreek'),// nalt: not enough info. what type of annotation?\n// ornm: ditto, which ornament style?\ncalt:feature('contextualAlternates','contextualAlternates'),// or more?\nvrt2:feature('verticalSubstitution','substituteVerticalForms'),// oh... below?\nvert:feature('verticalSubstitution','substituteVerticalForms'),tnum:feature('numberSpacing','monospacedNumbers'),pnum:feature('numberSpacing','proportionalNumbers'),sups:feature('verticalPosition','superiors'),subs:feature('verticalPosition','inferiors'),ordn:feature('verticalPosition','ordinals'),pwid:feature('textSpacing','proportionalText'),hwid:feature('textSpacing','halfWidthText'),qwid:feature('textSpacing','quarterWidthText'),// also QuarterWidthNumbers?\ntwid:feature('textSpacing','thirdWidthText'),// also ThirdWidthNumbers?\nfwid:feature('textSpacing','proportionalText'),//??\npalt:feature('textSpacing','altProportionalText'),trad:feature('characterShape','traditionalCharacters'),smpl:feature('characterShape','simplifiedCharacters'),jp78:feature('characterShape','JIS1978Characters'),jp83:feature('characterShape','JIS1983Characters'),jp90:feature('characterShape','JIS1990Characters'),jp04:feature('characterShape','JIS2004Characters'),expt:feature('characterShape','expertCharacters'),hojo:feature('characterShape','hojoCharacters'),nlck:feature('characterShape','NLCCharacters'),tnam:feature('characterShape','traditionalNamesCharacters'),ruby:feature('rubyKana','rubyKana'),titl:feature('styleOptions','titlingCaps'),zero:feature('typographicExtras','slashedZero'),ss01:feature('stylisticAlternatives','stylisticAltOne'),ss02:feature('stylisticAlternatives','stylisticAltTwo'),ss03:feature('stylisticAlternatives','stylisticAltThree'),ss04:feature('stylisticAlternatives','stylisticAltFour'),ss05:feature('stylisticAlternatives','stylisticAltFive'),ss06:feature('stylisticAlternatives','stylisticAltSix'),ss07:feature('stylisticAlternatives','stylisticAltSeven'),ss08:feature('stylisticAlternatives','stylisticAltEight'),ss09:feature('stylisticAlternatives','stylisticAltNine'),ss10:feature('stylisticAlternatives','stylisticAltTen'),ss11:feature('stylisticAlternatives','stylisticAltEleven'),ss12:feature('stylisticAlternatives','stylisticAltTwelve'),ss13:feature('stylisticAlternatives','stylisticAltThirteen'),ss14:feature('stylisticAlternatives','stylisticAltFourteen'),ss15:feature('stylisticAlternatives','stylisticAltFifteen'),ss16:feature('stylisticAlternatives','stylisticAltSixteen'),ss17:feature('stylisticAlternatives','stylisticAltSeventeen'),ss18:feature('stylisticAlternatives','stylisticAltEighteen'),ss19:feature('stylisticAlternatives','stylisticAltNineteen'),ss20:feature('stylisticAlternatives','stylisticAltTwenty')};// salt: feature 'stylisticAlternatives', 'stylisticAltOne' # hmm, which one to choose\n// Add cv01-cv99 features\nfor(var i=1;i<=99;i++){OTMapping['cv'+('00'+i).slice(-2)]=[features.characterAlternatives.code,i];}// create inverse mapping\nvar AATMapping={};for(var ot in OTMapping){var aat=OTMapping[ot];if(AATMapping[aat[0]]==null){AATMapping[aat[0]]={};}AATMapping[aat[0]][aat[1]]=ot;}// Maps an array of OpenType features to AAT features\n// in the form of {featureType:{featureSetting:true}}\nfunction mapOTToAAT(features){var res={};for(var k in features){var r=void 0;if(r=OTMapping[k]){if(res[r[0]]==null){res[r[0]]={};}res[r[0]][r[1]]=features[k];}}return res;}// Maps strings in a [featureType, featureSetting]\n// to their equivalent number codes\nfunction mapFeatureStrings(f){var type=f[0],setting=f[1];if(isNaN(type)){var typeCode=features[type]&&features[type].code;}else{var typeCode=type;}if(isNaN(setting)){var settingCode=features[type]&&features[type][setting];}else{var settingCode=setting;}return[typeCode,settingCode];}// Maps AAT features to an array of OpenType features\n// Supports both arrays in the form of [[featureType, featureSetting]]\n// and objects in the form of {featureType:{featureSetting:true}}\n// featureTypes and featureSettings can be either strings or number codes\nfunction mapAATToOT(features){var res={};if(Array.isArray(features)){for(var k=0;k<features.length;k++){var r=void 0;var f=mapFeatureStrings(features[k]);if(r=AATMapping[f[0]]&&AATMapping[f[0]][f[1]]){res[r]=true;}}}else if((typeof features==='undefined'?'undefined':_typeof(features))==='object'){for(var type in features){var _feature=features[type];for(var setting in _feature){var _r=void 0;var _f=mapFeatureStrings([type,setting]);if(_feature[setting]&&(_r=AATMapping[_f[0]]&&AATMapping[_f[0]][_f[1]])){res[_r]=true;}}}}return _Object$keys(res);}var _class$3;function _applyDecoratedDescriptor$3(target,property,decorators,descriptor,context){var desc={};Object['ke'+'ys'](descriptor).forEach(function(key){desc[key]=descriptor[key];});desc.enumerable=!!desc.enumerable;desc.configurable=!!desc.configurable;if('value'in desc||desc.initializer){desc.writable=true;}desc=decorators.slice().reverse().reduce(function(desc,decorator){return decorator(target,property,desc)||desc;},desc);if(context&&desc.initializer!==void 0){desc.value=desc.initializer?desc.initializer.call(context):void 0;desc.initializer=undefined;}if(desc.initializer===void 0){Object['define'+'Property'](target,property,desc);desc=null;}return desc;}var AATLookupTable=(_class$3=function(){function AATLookupTable(table){_classCallCheck(this,AATLookupTable);this.table=table;}AATLookupTable.prototype.lookup=function lookup(glyph){switch(this.table.version){case 0:// simple array format\nreturn this.table.values.getItem(glyph);case 2:// segment format\ncase 4:{var min=0;var max=this.table.binarySearchHeader.nUnits-1;while(min<=max){var mid=min+max>>1;var seg=this.table.segments[mid];// special end of search value\nif(seg.firstGlyph===0xffff){return null;}if(glyph<seg.firstGlyph){max=mid-1;}else if(glyph>seg.lastGlyph){min=mid+1;}else{if(this.table.version===2){return seg.value;}else{return seg.values[glyph-seg.firstGlyph];}}}return null;}case 6:{// lookup single\nvar _min=0;var _max=this.table.binarySearchHeader.nUnits-1;while(_min<=_max){var mid=_min+_max>>1;var seg=this.table.segments[mid];// special end of search value\nif(seg.glyph===0xffff){return null;}if(glyph<seg.glyph){_max=mid-1;}else if(glyph>seg.glyph){_min=mid+1;}else{return seg.value;}}return null;}case 8:// lookup trimmed\nreturn this.table.values[glyph-this.table.firstGlyph];default:throw new Error('Unknown lookup table format: '+this.table.version);}};AATLookupTable.prototype.glyphsForValue=function glyphsForValue(classValue){var res=[];switch(this.table.version){case 2:// segment format\ncase 4:{for(var _iterator=this.table.segments,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var segment=_ref;if(this.table.version===2&&segment.value===classValue){res.push.apply(res,range(segment.firstGlyph,segment.lastGlyph+1));}else{for(var index=0;index<segment.values.length;index++){if(segment.values[index]===classValue){res.push(segment.firstGlyph+index);}}}}break;}case 6:{// lookup single\nfor(var _iterator2=this.table.segments,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var _segment=_ref2;if(_segment.value===classValue){res.push(_segment.glyph);}}break;}case 8:{// lookup trimmed\nfor(var i=0;i<this.table.values.length;i++){if(this.table.values[i]===classValue){res.push(this.table.firstGlyph+i);}}break;}default:throw new Error('Unknown lookup table format: '+this.table.version);}return res;};return AATLookupTable;}(),_applyDecoratedDescriptor$3(_class$3.prototype,'glyphsForValue',[cache],_Object$getOwnPropertyDescriptor(_class$3.prototype,'glyphsForValue'),_class$3.prototype),_class$3);var START_OF_TEXT_STATE=0;var END_OF_TEXT_CLASS=0;var OUT_OF_BOUNDS_CLASS=1;var DELETED_GLYPH_CLASS=2;var DONT_ADVANCE=0x4000;var AATStateMachine=function(){function AATStateMachine(stateTable){_classCallCheck(this,AATStateMachine);this.stateTable=stateTable;this.lookupTable=new AATLookupTable(stateTable.classTable);}AATStateMachine.prototype.process=function process(glyphs,reverse,processEntry){var currentState=START_OF_TEXT_STATE;// START_OF_LINE_STATE is used for kashida glyph insertions sometimes I think?\nvar index=reverse?glyphs.length-1:0;var dir=reverse?-1:1;while(dir===1&&index<=glyphs.length||dir===-1&&index>=-1){var glyph=null;var classCode=OUT_OF_BOUNDS_CLASS;var shouldAdvance=true;if(index===glyphs.length||index===-1){classCode=END_OF_TEXT_CLASS;}else{glyph=glyphs[index];if(glyph.id===0xffff){// deleted glyph\nclassCode=DELETED_GLYPH_CLASS;}else{classCode=this.lookupTable.lookup(glyph.id);if(classCode==null){classCode=OUT_OF_BOUNDS_CLASS;}}}var row=this.stateTable.stateArray.getItem(currentState);var entryIndex=row[classCode];var entry=this.stateTable.entryTable.getItem(entryIndex);if(classCode!==END_OF_TEXT_CLASS&&classCode!==DELETED_GLYPH_CLASS){processEntry(glyph,entry,index);shouldAdvance=!(entry.flags&DONT_ADVANCE);}currentState=entry.newState;if(shouldAdvance){index+=dir;}}return glyphs;};/**\r\n       * Performs a depth-first traversal of the glyph strings\r\n       * represented by the state machine.\r\n       */AATStateMachine.prototype.traverse=function traverse(opts){var state=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var visited=arguments.length>2&&arguments[2]!==undefined?arguments[2]:new _Set();if(visited.has(state)){return;}visited.add(state);var _stateTable=this.stateTable,nClasses=_stateTable.nClasses,stateArray=_stateTable.stateArray,entryTable=_stateTable.entryTable;var row=stateArray.getItem(state);// Skip predefined classes\nfor(var classCode=4;classCode<nClasses;classCode++){var entryIndex=row[classCode];var entry=entryTable.getItem(entryIndex);// Try all glyphs in the class\nfor(var _iterator=this.lookupTable.glyphsForValue(classCode),_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var glyph=_ref;if(opts.enter){opts.enter(glyph,entry);}if(entry.newState!==0){this.traverse(opts,entry.newState,visited);}if(opts.exit){opts.exit(glyph,entry);}}}};return AATStateMachine;}();var _class$2;function _applyDecoratedDescriptor$2(target,property,decorators,descriptor,context){var desc={};Object['ke'+'ys'](descriptor).forEach(function(key){desc[key]=descriptor[key];});desc.enumerable=!!desc.enumerable;desc.configurable=!!desc.configurable;if('value'in desc||desc.initializer){desc.writable=true;}desc=decorators.slice().reverse().reduce(function(desc,decorator){return decorator(target,property,desc)||desc;},desc);if(context&&desc.initializer!==void 0){desc.value=desc.initializer?desc.initializer.call(context):void 0;desc.initializer=undefined;}if(desc.initializer===void 0){Object['define'+'Property'](target,property,desc);desc=null;}return desc;}// indic replacement flags\nvar MARK_FIRST=0x8000;var MARK_LAST=0x2000;var VERB=0x000F;// contextual substitution and glyph insertion flag\nvar SET_MARK=0x8000;// ligature entry flags\nvar SET_COMPONENT=0x8000;var PERFORM_ACTION=0x2000;// ligature action masks\nvar LAST_MASK=0x80000000;var STORE_MASK=0x40000000;var OFFSET_MASK=0x3FFFFFFF;var REVERSE_DIRECTION=0x400000;var CURRENT_INSERT_BEFORE=0x0800;var MARKED_INSERT_BEFORE=0x0400;var CURRENT_INSERT_COUNT=0x03E0;var MARKED_INSERT_COUNT=0x001F;var AATMorxProcessor=(_class$2=function(){function AATMorxProcessor(font){_classCallCheck(this,AATMorxProcessor);this.processIndicRearragement=this.processIndicRearragement.bind(this);this.processContextualSubstitution=this.processContextualSubstitution.bind(this);this.processLigature=this.processLigature.bind(this);this.processNoncontextualSubstitutions=this.processNoncontextualSubstitutions.bind(this);this.processGlyphInsertion=this.processGlyphInsertion.bind(this);this.font=font;this.morx=font.morx;this.inputCache=null;}// Processes an array of glyphs and applies the specified features\n// Features should be in the form of {featureType:{featureSetting:true}}\nAATMorxProcessor.prototype.process=function process(glyphs){var features=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};for(var _iterator=this.morx.chains,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var chain=_ref;var flags=chain.defaultFlags;// enable/disable the requested features\nfor(var _iterator2=chain.features,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var feature=_ref2;var f=void 0;if((f=features[feature.featureType])&&f[feature.featureSetting]){flags&=feature.disableFlags;flags|=feature.enableFlags;}}for(var _iterator3=chain.subtables,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_getIterator(_iterator3);;){var _ref3;if(_isArray3){if(_i3>=_iterator3.length)break;_ref3=_iterator3[_i3++];}else{_i3=_iterator3.next();if(_i3.done)break;_ref3=_i3.value;}var subtable=_ref3;if(subtable.subFeatureFlags&flags){this.processSubtable(subtable,glyphs);}}}// remove deleted glyphs\nvar index=glyphs.length-1;while(index>=0){if(glyphs[index].id===0xffff){glyphs.splice(index,1);}index--;}return glyphs;};AATMorxProcessor.prototype.processSubtable=function processSubtable(subtable,glyphs){this.subtable=subtable;this.glyphs=glyphs;if(this.subtable.type===4){this.processNoncontextualSubstitutions(this.subtable,this.glyphs);return;}this.ligatureStack=[];this.markedGlyph=null;this.firstGlyph=null;this.lastGlyph=null;this.markedIndex=null;var stateMachine=this.getStateMachine(subtable);var process=this.getProcessor();var reverse=!!(this.subtable.coverage&REVERSE_DIRECTION);return stateMachine.process(this.glyphs,reverse,process);};AATMorxProcessor.prototype.getStateMachine=function getStateMachine(subtable){return new AATStateMachine(subtable.table.stateTable);};AATMorxProcessor.prototype.getProcessor=function getProcessor(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw new Error('Invalid morx subtable type: '+this.subtable.type);}};AATMorxProcessor.prototype.processIndicRearragement=function processIndicRearragement(glyph,entry,index){if(entry.flags&MARK_FIRST){this.firstGlyph=index;}if(entry.flags&MARK_LAST){this.lastGlyph=index;}reorderGlyphs(this.glyphs,entry.flags&VERB,this.firstGlyph,this.lastGlyph);};AATMorxProcessor.prototype.processContextualSubstitution=function processContextualSubstitution(glyph,entry,index){var subsitutions=this.subtable.table.substitutionTable.items;if(entry.markIndex!==0xffff){var lookup=subsitutions.getItem(entry.markIndex);var lookupTable=new AATLookupTable(lookup);glyph=this.glyphs[this.markedGlyph];var gid=lookupTable.lookup(glyph.id);if(gid){this.glyphs[this.markedGlyph]=this.font.getGlyph(gid,glyph.codePoints);}}if(entry.currentIndex!==0xffff){var _lookup=subsitutions.getItem(entry.currentIndex);var _lookupTable=new AATLookupTable(_lookup);glyph=this.glyphs[index];var gid=_lookupTable.lookup(glyph.id);if(gid){this.glyphs[index]=this.font.getGlyph(gid,glyph.codePoints);}}if(entry.flags&SET_MARK){this.markedGlyph=index;}};AATMorxProcessor.prototype.processLigature=function processLigature(glyph,entry,index){if(entry.flags&SET_COMPONENT){this.ligatureStack.push(index);}if(entry.flags&PERFORM_ACTION){var _ligatureStack;var actions=this.subtable.table.ligatureActions;var components=this.subtable.table.components;var ligatureList=this.subtable.table.ligatureList;var actionIndex=entry.action;var last=false;var ligatureIndex=0;var codePoints=[];var ligatureGlyphs=[];while(!last){var _codePoints;var componentGlyph=this.ligatureStack.pop();(_codePoints=codePoints).unshift.apply(_codePoints,this.glyphs[componentGlyph].codePoints);var action=actions.getItem(actionIndex++);last=!!(action&LAST_MASK);var store=!!(action&STORE_MASK);var offset=(action&OFFSET_MASK)<<2>>2;// sign extend 30 to 32 bits\noffset+=this.glyphs[componentGlyph].id;var component=components.getItem(offset);ligatureIndex+=component;if(last||store){var ligatureEntry=ligatureList.getItem(ligatureIndex);this.glyphs[componentGlyph]=this.font.getGlyph(ligatureEntry,codePoints);ligatureGlyphs.push(componentGlyph);ligatureIndex=0;codePoints=[];}else{this.glyphs[componentGlyph]=this.font.getGlyph(0xffff);}}// Put ligature glyph indexes back on the stack\n(_ligatureStack=this.ligatureStack).push.apply(_ligatureStack,ligatureGlyphs);}};AATMorxProcessor.prototype.processNoncontextualSubstitutions=function processNoncontextualSubstitutions(subtable,glyphs,index){var lookupTable=new AATLookupTable(subtable.table.lookupTable);for(index=0;index<glyphs.length;index++){var glyph=glyphs[index];if(glyph.id!==0xffff){var gid=lookupTable.lookup(glyph.id);if(gid){// 0 means do nothing\nglyphs[index]=this.font.getGlyph(gid,glyph.codePoints);}}}};AATMorxProcessor.prototype._insertGlyphs=function _insertGlyphs(glyphIndex,insertionActionIndex,count,isBefore){var _glyphs;var insertions=[];while(count--){var gid=this.subtable.table.insertionActions.getItem(insertionActionIndex++);insertions.push(this.font.getGlyph(gid));}if(!isBefore){glyphIndex++;}(_glyphs=this.glyphs).splice.apply(_glyphs,[glyphIndex,0].concat(insertions));};AATMorxProcessor.prototype.processGlyphInsertion=function processGlyphInsertion(glyph,entry,index){if(entry.flags&SET_MARK){this.markedIndex=index;}if(entry.markedInsertIndex!==0xffff){var count=(entry.flags&MARKED_INSERT_COUNT)>>>5;var isBefore=!!(entry.flags&MARKED_INSERT_BEFORE);this._insertGlyphs(this.markedIndex,entry.markedInsertIndex,count,isBefore);}if(entry.currentInsertIndex!==0xffff){var _count=(entry.flags&CURRENT_INSERT_COUNT)>>>5;var _isBefore=!!(entry.flags&CURRENT_INSERT_BEFORE);this._insertGlyphs(index,entry.currentInsertIndex,_count,_isBefore);}};AATMorxProcessor.prototype.getSupportedFeatures=function getSupportedFeatures(){var features=[];for(var _iterator4=this.morx.chains,_isArray4=Array.isArray(_iterator4),_i4=0,_iterator4=_isArray4?_iterator4:_getIterator(_iterator4);;){var _ref4;if(_isArray4){if(_i4>=_iterator4.length)break;_ref4=_iterator4[_i4++];}else{_i4=_iterator4.next();if(_i4.done)break;_ref4=_i4.value;}var chain=_ref4;for(var _iterator5=chain.features,_isArray5=Array.isArray(_iterator5),_i5=0,_iterator5=_isArray5?_iterator5:_getIterator(_iterator5);;){var _ref5;if(_isArray5){if(_i5>=_iterator5.length)break;_ref5=_iterator5[_i5++];}else{_i5=_iterator5.next();if(_i5.done)break;_ref5=_i5.value;}var feature=_ref5;features.push([feature.featureType,feature.featureSetting]);}}return features;};AATMorxProcessor.prototype.generateInputs=function generateInputs(gid){if(!this.inputCache){this.generateInputCache();}return this.inputCache[gid]||[];};AATMorxProcessor.prototype.generateInputCache=function generateInputCache(){this.inputCache={};for(var _iterator6=this.morx.chains,_isArray6=Array.isArray(_iterator6),_i6=0,_iterator6=_isArray6?_iterator6:_getIterator(_iterator6);;){var _ref6;if(_isArray6){if(_i6>=_iterator6.length)break;_ref6=_iterator6[_i6++];}else{_i6=_iterator6.next();if(_i6.done)break;_ref6=_i6.value;}var chain=_ref6;var flags=chain.defaultFlags;for(var _iterator7=chain.subtables,_isArray7=Array.isArray(_iterator7),_i7=0,_iterator7=_isArray7?_iterator7:_getIterator(_iterator7);;){var _ref7;if(_isArray7){if(_i7>=_iterator7.length)break;_ref7=_iterator7[_i7++];}else{_i7=_iterator7.next();if(_i7.done)break;_ref7=_i7.value;}var subtable=_ref7;if(subtable.subFeatureFlags&flags){this.generateInputsForSubtable(subtable);}}}};AATMorxProcessor.prototype.generateInputsForSubtable=function generateInputsForSubtable(subtable){var _this=this;// Currently, only supporting ligature subtables.\nif(subtable.type!==2){return;}var reverse=!!(subtable.coverage&REVERSE_DIRECTION);if(reverse){throw new Error('Reverse subtable, not supported.');}this.subtable=subtable;this.ligatureStack=[];var stateMachine=this.getStateMachine(subtable);var process=this.getProcessor();var input=[];var stack=[];this.glyphs=[];stateMachine.traverse({enter:function enter(glyph,entry){var glyphs=_this.glyphs;stack.push({glyphs:glyphs.slice(),ligatureStack:_this.ligatureStack.slice()});// Add glyph to input and glyphs to process.\nvar g=_this.font.getGlyph(glyph);input.push(g);glyphs.push(input[input.length-1]);// Process ligature substitution\nprocess(glyphs[glyphs.length-1],entry,glyphs.length-1);// Add input to result if only one matching (non-deleted) glyph remains.\nvar count=0;var found=0;for(var i=0;i<glyphs.length&&count<=1;i++){if(glyphs[i].id!==0xffff){count++;found=glyphs[i].id;}}if(count===1){var result=input.map(function(g){return g.id;});var _cache=_this.inputCache[found];if(_cache){_cache.push(result);}else{_this.inputCache[found]=[result];}}},exit:function exit(){var _stack$pop=stack.pop();_this.glyphs=_stack$pop.glyphs;_this.ligatureStack=_stack$pop.ligatureStack;input.pop();}});};return AATMorxProcessor;}(),_applyDecoratedDescriptor$2(_class$2.prototype,'getStateMachine',[cache],_Object$getOwnPropertyDescriptor(_class$2.prototype,'getStateMachine'),_class$2.prototype),_class$2);function swap(glyphs,rangeA,rangeB){var reverseA=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var reverseB=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var end=glyphs.splice(rangeB[0]-(rangeB[1]-1),rangeB[1]);if(reverseB){end.reverse();}var start=glyphs.splice.apply(glyphs,[rangeA[0],rangeA[1]].concat(end));if(reverseA){start.reverse();}glyphs.splice.apply(glyphs,[rangeB[0]-(rangeA[1]-1),0].concat(start));return glyphs;}function reorderGlyphs(glyphs,verb,firstGlyph,lastGlyph){var length=lastGlyph-firstGlyph+1;switch(verb){case 0:// no change\nreturn glyphs;case 1:// Ax => xA\nreturn swap(glyphs,[firstGlyph,1],[lastGlyph,0]);case 2:// xD => Dx\nreturn swap(glyphs,[firstGlyph,0],[lastGlyph,1]);case 3:// AxD => DxA\nreturn swap(glyphs,[firstGlyph,1],[lastGlyph,1]);case 4:// ABx => xAB\nreturn swap(glyphs,[firstGlyph,2],[lastGlyph,0]);case 5:// ABx => xBA\nreturn swap(glyphs,[firstGlyph,2],[lastGlyph,0],true,false);case 6:// xCD => CDx\nreturn swap(glyphs,[firstGlyph,0],[lastGlyph,2]);case 7:// xCD => DCx\nreturn swap(glyphs,[firstGlyph,0],[lastGlyph,2],false,true);case 8:// AxCD => CDxA\nreturn swap(glyphs,[firstGlyph,1],[lastGlyph,2]);case 9:// AxCD => DCxA\nreturn swap(glyphs,[firstGlyph,1],[lastGlyph,2],false,true);case 10:// ABxD => DxAB\nreturn swap(glyphs,[firstGlyph,2],[lastGlyph,1]);case 11:// ABxD => DxBA\nreturn swap(glyphs,[firstGlyph,2],[lastGlyph,1],true,false);case 12:// ABxCD => CDxAB\nreturn swap(glyphs,[firstGlyph,2],[lastGlyph,2]);case 13:// ABxCD => CDxBA\nreturn swap(glyphs,[firstGlyph,2],[lastGlyph,2],true,false);case 14:// ABxCD => DCxAB\nreturn swap(glyphs,[firstGlyph,2],[lastGlyph,2],false,true);case 15:// ABxCD => DCxBA\nreturn swap(glyphs,[firstGlyph,2],[lastGlyph,2],true,true);default:throw new Error('Unknown verb: '+verb);}}var AATLayoutEngine=function(){function AATLayoutEngine(font){_classCallCheck(this,AATLayoutEngine);this.font=font;this.morxProcessor=new AATMorxProcessor(font);this.fallbackPosition=false;}AATLayoutEngine.prototype.substitute=function substitute(glyphRun){// AAT expects the glyphs to be in visual order prior to morx processing,\n// so reverse the glyphs if the script is right-to-left.\nif(glyphRun.direction==='rtl'){glyphRun.glyphs.reverse();}this.morxProcessor.process(glyphRun.glyphs,mapOTToAAT(glyphRun.features));};AATLayoutEngine.prototype.getAvailableFeatures=function getAvailableFeatures(script,language){return mapAATToOT(this.morxProcessor.getSupportedFeatures());};AATLayoutEngine.prototype.stringsForGlyph=function stringsForGlyph(gid){var glyphStrings=this.morxProcessor.generateInputs(gid);var result=new _Set();for(var _iterator=glyphStrings,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var glyphs=_ref;this._addStrings(glyphs,0,result,'');}return result;};AATLayoutEngine.prototype._addStrings=function _addStrings(glyphs,index,strings,string){var codePoints=this.font._cmapProcessor.codePointsForGlyph(glyphs[index]);for(var _iterator2=codePoints,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var codePoint=_ref2;var s=string+_String$fromCodePoint(codePoint);if(index<glyphs.length-1){this._addStrings(glyphs,index+1,strings,s);}else{strings.add(s);}}};return AATLayoutEngine;}();/**\r\n     * ShapingPlans are used by the OpenType shapers to store which\r\n     * features should by applied, and in what order to apply them.\r\n     * The features are applied in groups called stages. A feature\r\n     * can be applied globally to all glyphs, or locally to only\r\n     * specific glyphs.\r\n     *\r\n     * @private\r\n     */var ShapingPlan=function(){function ShapingPlan(font,script,direction){_classCallCheck(this,ShapingPlan);this.font=font;this.script=script;this.direction=direction;this.stages=[];this.globalFeatures={};this.allFeatures={};}/**\r\n       * Adds the given features to the last stage.\r\n       * Ignores features that have already been applied.\r\n       */ShapingPlan.prototype._addFeatures=function _addFeatures(features,global){var stageIndex=this.stages.length-1;var stage=this.stages[stageIndex];for(var _iterator=features,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var feature=_ref;if(this.allFeatures[feature]==null){stage.push(feature);this.allFeatures[feature]=stageIndex;if(global){this.globalFeatures[feature]=true;}}}};/**\r\n       * Add features to the last stage\r\n       */ShapingPlan.prototype.add=function add(arg){var global=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(this.stages.length===0){this.stages.push([]);}if(typeof arg==='string'){arg=[arg];}if(Array.isArray(arg)){this._addFeatures(arg,global);}else if((typeof arg==='undefined'?'undefined':_typeof(arg))==='object'){this._addFeatures(arg.global||[],true);this._addFeatures(arg.local||[],false);}else{throw new Error(\"Unsupported argument to ShapingPlan#add\");}};/**\r\n       * Add a new stage\r\n       */ShapingPlan.prototype.addStage=function addStage(arg,global){if(typeof arg==='function'){this.stages.push(arg,[]);}else{this.stages.push([]);this.add(arg,global);}};ShapingPlan.prototype.setFeatureOverrides=function setFeatureOverrides(features){if(Array.isArray(features)){this.add(features);}else if((typeof features==='undefined'?'undefined':_typeof(features))==='object'){for(var tag in features){if(features[tag]){this.add(tag);}else if(this.allFeatures[tag]!=null){var stage=this.stages[this.allFeatures[tag]];stage.splice(stage.indexOf(tag),1);delete this.allFeatures[tag];delete this.globalFeatures[tag];}}}};/**\r\n       * Assigns the global features to the given glyphs\r\n       */ShapingPlan.prototype.assignGlobalFeatures=function assignGlobalFeatures(glyphs){for(var _iterator2=glyphs,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var glyph=_ref2;for(var feature in this.globalFeatures){glyph.features[feature]=true;}}};/**\r\n       * Executes the planned stages using the given OTProcessor\r\n       */ShapingPlan.prototype.process=function process(processor,glyphs,positions){for(var _iterator3=this.stages,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_getIterator(_iterator3);;){var _ref3;if(_isArray3){if(_i3>=_iterator3.length)break;_ref3=_iterator3[_i3++];}else{_i3=_iterator3.next();if(_i3.done)break;_ref3=_i3.value;}var stage=_ref3;if(typeof stage==='function'){if(!positions){stage(this.font,glyphs,this);}}else if(stage.length>0){processor.applyFeatures(stage,glyphs,positions);}}};return ShapingPlan;}();var _class$4;var _temp;var VARIATION_FEATURES=['rvrn'];var COMMON_FEATURES=['ccmp','locl','rlig','mark','mkmk'];var FRACTIONAL_FEATURES=['frac','numr','dnom'];var HORIZONTAL_FEATURES=['calt','clig','liga','rclt','curs','kern'];var DIRECTIONAL_FEATURES={ltr:['ltra','ltrm'],rtl:['rtla','rtlm']};var DefaultShaper=(_temp=_class$4=function(){function DefaultShaper(){_classCallCheck(this,DefaultShaper);}DefaultShaper.plan=function plan(_plan,glyphs,features){// Plan the features we want to apply\nthis.planPreprocessing(_plan);this.planFeatures(_plan);this.planPostprocessing(_plan,features);// Assign the global features to all the glyphs\n_plan.assignGlobalFeatures(glyphs);// Assign local features to glyphs\nthis.assignFeatures(_plan,glyphs);};DefaultShaper.planPreprocessing=function planPreprocessing(plan){plan.add({global:[].concat(VARIATION_FEATURES,DIRECTIONAL_FEATURES[plan.direction]),local:FRACTIONAL_FEATURES});};DefaultShaper.planFeatures=function planFeatures(plan){// Do nothing by default. Let subclasses override this.\n};DefaultShaper.planPostprocessing=function planPostprocessing(plan,userFeatures){plan.add([].concat(COMMON_FEATURES,HORIZONTAL_FEATURES));plan.setFeatureOverrides(userFeatures);};DefaultShaper.assignFeatures=function assignFeatures(plan,glyphs){// Enable contextual fractions\nfor(var i=0;i<glyphs.length;i++){var glyph=glyphs[i];if(glyph.codePoints[0]===0x2044){// fraction slash\nvar start=i;var end=i+1;// Apply numerator\nwhile(start>0&&unicode.isDigit(glyphs[start-1].codePoints[0])){glyphs[start-1].features.numr=true;glyphs[start-1].features.frac=true;start--;}// Apply denominator\nwhile(end<glyphs.length&&unicode.isDigit(glyphs[end].codePoints[0])){glyphs[end].features.dnom=true;glyphs[end].features.frac=true;end++;}// Apply fraction slash\nglyph.features.frac=true;i=end-1;}}};return DefaultShaper;}(),_class$4.zeroMarkWidths='AFTER_GPOS',_temp);var trie=new UnicodeTrie(Buffer(\"AAEQAAAAAAAAADGgAZUBav7t2CtPA0EUBeDZB00pin9AJZIEgyUEj0QhweDAgQOJxCBRBElQSBwSicLgkOAwnNKZ5GaY2c7uzj4o5yZfZrrbefbuIx2nSq3CGmzAWH/+K+UO7MIe7MMhHMMpnMMFXMIVXIt2t3CnP088iPqjqNN8e4Ij7Rle4LUH82rLm6i/92A+RERERERERERNmfz/89GDeRARERERzbN8ceps2Iwt9H0C9/AJ6yOlDkbTczcot5VSm8Pm1vcFWfb7+BKOLTuOd2UlTX4wGP85Eg953lWPFbnuN7PkjtLmalOWbNenkHOSa7T3KmR9MVTZ2zZkVj1kHa68MueVKH0R4zqQ44WEXLM8VjcWHP0PtKLfPzQnMtGn3W4QYf6qxFxceVI394r2xnV+1rih0fV1Vzf3fO1n3evL5J78ruvZ5ptX2Rwy92Tfb1wlEqut3U+sZ3HXOeJ7/zDrbyuP6+Zz0fqa6Nv3vhY7Yu1xWnGevmsvsUpTT/RYIe8waUH/rvHMWKFzLfN8L+rTfp645mfX7ftlnfDtYxN59w0=\",\"base64\"));var FEATURES=['isol','fina','fin2','fin3','medi','med2','init'];var ShapingClasses={Non_Joining:0,Left_Joining:1,Right_Joining:2,Dual_Joining:3,Join_Causing:3,ALAPH:4,'DALATH RISH':5,Transparent:6};var ISOL='isol';var FINA='fina';var FIN2='fin2';var FIN3='fin3';var MEDI='medi';var MED2='med2';var INIT='init';var NONE=null;// Each entry is [prevAction, curAction, nextState]\nvar STATE_TABLE=[//   Non_Joining,        Left_Joining,       Right_Joining,     Dual_Joining,           ALAPH,            DALATH RISH\n// State 0: prev was U,  not willing to join.\n[[NONE,NONE,0],[NONE,ISOL,2],[NONE,ISOL,1],[NONE,ISOL,2],[NONE,ISOL,1],[NONE,ISOL,6]],// State 1: prev was R or ISOL/ALAPH,  not willing to join.\n[[NONE,NONE,0],[NONE,ISOL,2],[NONE,ISOL,1],[NONE,ISOL,2],[NONE,FIN2,5],[NONE,ISOL,6]],// State 2: prev was D/L in ISOL form,  willing to join.\n[[NONE,NONE,0],[NONE,ISOL,2],[INIT,FINA,1],[INIT,FINA,3],[INIT,FINA,4],[INIT,FINA,6]],// State 3: prev was D in FINA form,  willing to join.\n[[NONE,NONE,0],[NONE,ISOL,2],[MEDI,FINA,1],[MEDI,FINA,3],[MEDI,FINA,4],[MEDI,FINA,6]],// State 4: prev was FINA ALAPH,  not willing to join.\n[[NONE,NONE,0],[NONE,ISOL,2],[MED2,ISOL,1],[MED2,ISOL,2],[MED2,FIN2,5],[MED2,ISOL,6]],// State 5: prev was FIN2/FIN3 ALAPH,  not willing to join.\n[[NONE,NONE,0],[NONE,ISOL,2],[ISOL,ISOL,1],[ISOL,ISOL,2],[ISOL,FIN2,5],[ISOL,ISOL,6]],// State 6: prev was DALATH/RISH,  not willing to join.\n[[NONE,NONE,0],[NONE,ISOL,2],[NONE,ISOL,1],[NONE,ISOL,2],[NONE,FIN3,5],[NONE,ISOL,6]]];/**\r\n     * This is a shaper for Arabic, and other cursive scripts.\r\n     * It uses data from ArabicShaping.txt in the Unicode database,\r\n     * compiled to a UnicodeTrie by generate-data.coffee.\r\n     *\r\n     * The shaping state machine was ported from Harfbuzz.\r\n     * https://github.com/behdad/harfbuzz/blob/master/src/hb-ot-shape-complex-arabic.cc\r\n     */var ArabicShaper=function(_DefaultShaper){_inherits(ArabicShaper,_DefaultShaper);function ArabicShaper(){_classCallCheck(this,ArabicShaper);return _possibleConstructorReturn(this,_DefaultShaper.apply(this,arguments));}ArabicShaper.planFeatures=function planFeatures(plan){plan.add(['ccmp','locl']);for(var i=0;i<FEATURES.length;i++){var feature=FEATURES[i];plan.addStage(feature,false);}plan.addStage('mset');};ArabicShaper.assignFeatures=function assignFeatures(plan,glyphs){_DefaultShaper.assignFeatures.call(this,plan,glyphs);var prev=-1;var state=0;var actions=[];// Apply the state machine to map glyphs to features\nfor(var i=0;i<glyphs.length;i++){var curAction=void 0,prevAction=void 0;var glyph=glyphs[i];var type=getShapingClass(glyph.codePoints[0]);if(type===ShapingClasses.Transparent){actions[i]=NONE;continue;}var _STATE_TABLE$state$ty=STATE_TABLE[state][type];prevAction=_STATE_TABLE$state$ty[0];curAction=_STATE_TABLE$state$ty[1];state=_STATE_TABLE$state$ty[2];if(prevAction!==NONE&&prev!==-1){actions[prev]=prevAction;}actions[i]=curAction;prev=i;}// Apply the chosen features to their respective glyphs\nfor(var index=0;index<glyphs.length;index++){var feature=void 0;var glyph=glyphs[index];if(feature=actions[index]){glyph.features[feature]=true;}}};return ArabicShaper;}(DefaultShaper);function getShapingClass(codePoint){var res=trie.get(codePoint);if(res){return res-1;}var category=unicode.getCategory(codePoint);if(category==='Mn'||category==='Me'||category==='Cf'){return ShapingClasses.Transparent;}return ShapingClasses.Non_Joining;}var GlyphIterator=function(){function GlyphIterator(glyphs,options){_classCallCheck(this,GlyphIterator);this.glyphs=glyphs;this.reset(options);}GlyphIterator.prototype.reset=function reset(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var index=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;this.options=options;this.flags=options.flags||{};this.markAttachmentType=options.markAttachmentType||0;this.index=index;};GlyphIterator.prototype.shouldIgnore=function shouldIgnore(glyph){return this.flags.ignoreMarks&&glyph.isMark||this.flags.ignoreBaseGlyphs&&glyph.isBase||this.flags.ignoreLigatures&&glyph.isLigature||this.markAttachmentType&&glyph.isMark&&glyph.markAttachmentType!==this.markAttachmentType;};GlyphIterator.prototype.move=function move(dir){this.index+=dir;while(0<=this.index&&this.index<this.glyphs.length&&this.shouldIgnore(this.glyphs[this.index])){this.index+=dir;}if(0>this.index||this.index>=this.glyphs.length){return null;}return this.glyphs[this.index];};GlyphIterator.prototype.next=function next(){return this.move(+1);};GlyphIterator.prototype.prev=function prev(){return this.move(-1);};GlyphIterator.prototype.peek=function peek(){var count=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;var idx=this.index;var res=this.increment(count);this.index=idx;return res;};GlyphIterator.prototype.peekIndex=function peekIndex(){var count=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;var idx=this.index;this.increment(count);var res=this.index;this.index=idx;return res;};GlyphIterator.prototype.increment=function increment(){var count=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;var dir=count<0?-1:1;count=Math.abs(count);while(count--){this.move(dir);}return this.glyphs[this.index];};_createClass(GlyphIterator,[{key:\"cur\",get:function get(){return this.glyphs[this.index]||null;}}]);return GlyphIterator;}();var DEFAULT_SCRIPTS=['DFLT','dflt','latn'];var OTProcessor=function(){function OTProcessor(font,table){_classCallCheck(this,OTProcessor);this.font=font;this.table=table;this.script=null;this.scriptTag=null;this.language=null;this.languageTag=null;this.features={};this.lookups={};// Setup variation substitutions\nthis.variationsIndex=font._variationProcessor?this.findVariationsIndex(font._variationProcessor.normalizedCoords):-1;// initialize to default script + language\nthis.selectScript();// current context (set by applyFeatures)\nthis.glyphs=[];this.positions=[];// only used by GPOS\nthis.ligatureID=1;this.currentFeature=null;}OTProcessor.prototype.findScript=function findScript(script){if(this.table.scriptList==null){return null;}if(!Array.isArray(script)){script=[script];}for(var _iterator=script,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var s=_ref;for(var _iterator2=this.table.scriptList,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var entry=_ref2;if(entry.tag===s){return entry;}}}return null;};OTProcessor.prototype.selectScript=function selectScript(script,language,direction$$){var changed=false;var entry=void 0;if(!this.script||script!==this.scriptTag){entry=this.findScript(script);if(!entry){entry=this.findScript(DEFAULT_SCRIPTS);}if(!entry){return this.scriptTag;}this.scriptTag=entry.tag;this.script=entry.script;this.language=null;this.languageTag=null;changed=true;}if(!direction$$||direction$$!==this.direction){this.direction=direction$$||direction(script);}if(language&&language.length<4){language+=' '.repeat(4-language.length);}if(!language||language!==this.languageTag){this.language=null;for(var _iterator3=this.script.langSysRecords,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_getIterator(_iterator3);;){var _ref3;if(_isArray3){if(_i3>=_iterator3.length)break;_ref3=_iterator3[_i3++];}else{_i3=_iterator3.next();if(_i3.done)break;_ref3=_i3.value;}var lang=_ref3;if(lang.tag===language){this.language=lang.langSys;this.languageTag=lang.tag;break;}}if(!this.language){this.language=this.script.defaultLangSys;this.languageTag=null;}changed=true;}// Build a feature lookup table\nif(changed){this.features={};if(this.language){for(var _iterator4=this.language.featureIndexes,_isArray4=Array.isArray(_iterator4),_i4=0,_iterator4=_isArray4?_iterator4:_getIterator(_iterator4);;){var _ref4;if(_isArray4){if(_i4>=_iterator4.length)break;_ref4=_iterator4[_i4++];}else{_i4=_iterator4.next();if(_i4.done)break;_ref4=_i4.value;}var featureIndex=_ref4;var record=this.table.featureList[featureIndex];var substituteFeature=this.substituteFeatureForVariations(featureIndex);this.features[record.tag]=substituteFeature||record.feature;}}}return this.scriptTag;};OTProcessor.prototype.lookupsForFeatures=function lookupsForFeatures(){var userFeatures=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var exclude=arguments[1];var lookups=[];for(var _iterator5=userFeatures,_isArray5=Array.isArray(_iterator5),_i5=0,_iterator5=_isArray5?_iterator5:_getIterator(_iterator5);;){var _ref5;if(_isArray5){if(_i5>=_iterator5.length)break;_ref5=_iterator5[_i5++];}else{_i5=_iterator5.next();if(_i5.done)break;_ref5=_i5.value;}var tag=_ref5;var feature=this.features[tag];if(!feature){continue;}for(var _iterator6=feature.lookupListIndexes,_isArray6=Array.isArray(_iterator6),_i6=0,_iterator6=_isArray6?_iterator6:_getIterator(_iterator6);;){var _ref6;if(_isArray6){if(_i6>=_iterator6.length)break;_ref6=_iterator6[_i6++];}else{_i6=_iterator6.next();if(_i6.done)break;_ref6=_i6.value;}var lookupIndex=_ref6;if(exclude&&exclude.indexOf(lookupIndex)!==-1){continue;}lookups.push({feature:tag,index:lookupIndex,lookup:this.table.lookupList.get(lookupIndex)});}}lookups.sort(function(a,b){return a.index-b.index;});return lookups;};OTProcessor.prototype.substituteFeatureForVariations=function substituteFeatureForVariations(featureIndex){if(this.variationsIndex===-1){return null;}var record=this.table.featureVariations.featureVariationRecords[this.variationsIndex];var substitutions=record.featureTableSubstitution.substitutions;for(var _iterator7=substitutions,_isArray7=Array.isArray(_iterator7),_i7=0,_iterator7=_isArray7?_iterator7:_getIterator(_iterator7);;){var _ref7;if(_isArray7){if(_i7>=_iterator7.length)break;_ref7=_iterator7[_i7++];}else{_i7=_iterator7.next();if(_i7.done)break;_ref7=_i7.value;}var substitution=_ref7;if(substitution.featureIndex===featureIndex){return substitution.alternateFeatureTable;}}return null;};OTProcessor.prototype.findVariationsIndex=function findVariationsIndex(coords){var variations=this.table.featureVariations;if(!variations){return-1;}var records=variations.featureVariationRecords;for(var i=0;i<records.length;i++){var conditions=records[i].conditionSet.conditionTable;if(this.variationConditionsMatch(conditions,coords)){return i;}}return-1;};OTProcessor.prototype.variationConditionsMatch=function variationConditionsMatch(conditions,coords){return conditions.every(function(condition){var coord=condition.axisIndex<coords.length?coords[condition.axisIndex]:0;return condition.filterRangeMinValue<=coord&&coord<=condition.filterRangeMaxValue;});};OTProcessor.prototype.applyFeatures=function applyFeatures(userFeatures,glyphs,advances){var lookups=this.lookupsForFeatures(userFeatures);this.applyLookups(lookups,glyphs,advances);};OTProcessor.prototype.applyLookups=function applyLookups(lookups,glyphs,positions){this.glyphs=glyphs;this.positions=positions;this.glyphIterator=new GlyphIterator(glyphs);for(var _iterator8=lookups,_isArray8=Array.isArray(_iterator8),_i8=0,_iterator8=_isArray8?_iterator8:_getIterator(_iterator8);;){var _ref8;if(_isArray8){if(_i8>=_iterator8.length)break;_ref8=_iterator8[_i8++];}else{_i8=_iterator8.next();if(_i8.done)break;_ref8=_i8.value;}var _ref9=_ref8,feature=_ref9.feature,lookup=_ref9.lookup;this.currentFeature=feature;this.glyphIterator.reset(lookup.flags);while(this.glyphIterator.index<glyphs.length){if(!(feature in this.glyphIterator.cur.features)){this.glyphIterator.next();continue;}for(var _iterator9=lookup.subTables,_isArray9=Array.isArray(_iterator9),_i9=0,_iterator9=_isArray9?_iterator9:_getIterator(_iterator9);;){var _ref10;if(_isArray9){if(_i9>=_iterator9.length)break;_ref10=_iterator9[_i9++];}else{_i9=_iterator9.next();if(_i9.done)break;_ref10=_i9.value;}var table=_ref10;var res=this.applyLookup(lookup.lookupType,table);if(res){break;}}this.glyphIterator.next();}}};OTProcessor.prototype.applyLookup=function applyLookup(lookup,table){throw new Error(\"applyLookup must be implemented by subclasses\");};OTProcessor.prototype.applyLookupList=function applyLookupList(lookupRecords){var options=this.glyphIterator.options;var glyphIndex=this.glyphIterator.index;for(var _iterator10=lookupRecords,_isArray10=Array.isArray(_iterator10),_i10=0,_iterator10=_isArray10?_iterator10:_getIterator(_iterator10);;){var _ref11;if(_isArray10){if(_i10>=_iterator10.length)break;_ref11=_iterator10[_i10++];}else{_i10=_iterator10.next();if(_i10.done)break;_ref11=_i10.value;}var lookupRecord=_ref11;// Reset flags and find glyph index for this lookup record\nthis.glyphIterator.reset(options,glyphIndex);this.glyphIterator.increment(lookupRecord.sequenceIndex);// Get the lookup and setup flags for subtables\nvar lookup=this.table.lookupList.get(lookupRecord.lookupListIndex);this.glyphIterator.reset(lookup.flags,this.glyphIterator.index);// Apply lookup subtables until one matches\nfor(var _iterator11=lookup.subTables,_isArray11=Array.isArray(_iterator11),_i11=0,_iterator11=_isArray11?_iterator11:_getIterator(_iterator11);;){var _ref12;if(_isArray11){if(_i11>=_iterator11.length)break;_ref12=_iterator11[_i11++];}else{_i11=_iterator11.next();if(_i11.done)break;_ref12=_i11.value;}var table=_ref12;if(this.applyLookup(lookup.lookupType,table)){break;}}}this.glyphIterator.reset(options,glyphIndex);return true;};OTProcessor.prototype.coverageIndex=function coverageIndex(coverage,glyph){if(glyph==null){glyph=this.glyphIterator.cur.id;}switch(coverage.version){case 1:return coverage.glyphs.indexOf(glyph);case 2:for(var _iterator12=coverage.rangeRecords,_isArray12=Array.isArray(_iterator12),_i12=0,_iterator12=_isArray12?_iterator12:_getIterator(_iterator12);;){var _ref13;if(_isArray12){if(_i12>=_iterator12.length)break;_ref13=_iterator12[_i12++];}else{_i12=_iterator12.next();if(_i12.done)break;_ref13=_i12.value;}var range=_ref13;if(range.start<=glyph&&glyph<=range.end){return range.startCoverageIndex+glyph-range.start;}}break;}return-1;};OTProcessor.prototype.match=function match(sequenceIndex,sequence,fn,matched){var pos=this.glyphIterator.index;var glyph=this.glyphIterator.increment(sequenceIndex);var idx=0;while(idx<sequence.length&&glyph&&fn(sequence[idx],glyph)){if(matched){matched.push(this.glyphIterator.index);}idx++;glyph=this.glyphIterator.next();}this.glyphIterator.index=pos;if(idx<sequence.length){return false;}return matched||true;};OTProcessor.prototype.sequenceMatches=function sequenceMatches(sequenceIndex,sequence){return this.match(sequenceIndex,sequence,function(component,glyph){return component===glyph.id;});};OTProcessor.prototype.sequenceMatchIndices=function sequenceMatchIndices(sequenceIndex,sequence){var _this=this;return this.match(sequenceIndex,sequence,function(component,glyph){// If the current feature doesn't apply to this glyph,\nif(!(_this.currentFeature in glyph.features)){return false;}return component===glyph.id;},[]);};OTProcessor.prototype.coverageSequenceMatches=function coverageSequenceMatches(sequenceIndex,sequence){var _this2=this;return this.match(sequenceIndex,sequence,function(coverage,glyph){return _this2.coverageIndex(coverage,glyph.id)>=0;});};OTProcessor.prototype.getClassID=function getClassID(glyph,classDef){switch(classDef.version){case 1:// Class array\nvar i=glyph-classDef.startGlyph;if(i>=0&&i<classDef.classValueArray.length){return classDef.classValueArray[i];}break;case 2:for(var _iterator13=classDef.classRangeRecord,_isArray13=Array.isArray(_iterator13),_i13=0,_iterator13=_isArray13?_iterator13:_getIterator(_iterator13);;){var _ref14;if(_isArray13){if(_i13>=_iterator13.length)break;_ref14=_iterator13[_i13++];}else{_i13=_iterator13.next();if(_i13.done)break;_ref14=_i13.value;}var range=_ref14;if(range.start<=glyph&&glyph<=range.end){return range.class;}}break;}return 0;};OTProcessor.prototype.classSequenceMatches=function classSequenceMatches(sequenceIndex,sequence,classDef){var _this3=this;return this.match(sequenceIndex,sequence,function(classID,glyph){return classID===_this3.getClassID(glyph.id,classDef);});};OTProcessor.prototype.applyContext=function applyContext(table){switch(table.version){case 1:var index=this.coverageIndex(table.coverage);if(index===-1){return false;}var set=table.ruleSets[index];for(var _iterator14=set,_isArray14=Array.isArray(_iterator14),_i14=0,_iterator14=_isArray14?_iterator14:_getIterator(_iterator14);;){var _ref15;if(_isArray14){if(_i14>=_iterator14.length)break;_ref15=_iterator14[_i14++];}else{_i14=_iterator14.next();if(_i14.done)break;_ref15=_i14.value;}var rule=_ref15;if(this.sequenceMatches(1,rule.input)){return this.applyLookupList(rule.lookupRecords);}}break;case 2:if(this.coverageIndex(table.coverage)===-1){return false;}index=this.getClassID(this.glyphIterator.cur.id,table.classDef);if(index===-1){return false;}set=table.classSet[index];for(var _iterator15=set,_isArray15=Array.isArray(_iterator15),_i15=0,_iterator15=_isArray15?_iterator15:_getIterator(_iterator15);;){var _ref16;if(_isArray15){if(_i15>=_iterator15.length)break;_ref16=_iterator15[_i15++];}else{_i15=_iterator15.next();if(_i15.done)break;_ref16=_i15.value;}var _rule=_ref16;if(this.classSequenceMatches(1,_rule.classes,table.classDef)){return this.applyLookupList(_rule.lookupRecords);}}break;case 3:if(this.coverageSequenceMatches(0,table.coverages)){return this.applyLookupList(table.lookupRecords);}break;}return false;};OTProcessor.prototype.applyChainingContext=function applyChainingContext(table){switch(table.version){case 1:var index=this.coverageIndex(table.coverage);if(index===-1){return false;}var set=table.chainRuleSets[index];for(var _iterator16=set,_isArray16=Array.isArray(_iterator16),_i16=0,_iterator16=_isArray16?_iterator16:_getIterator(_iterator16);;){var _ref17;if(_isArray16){if(_i16>=_iterator16.length)break;_ref17=_iterator16[_i16++];}else{_i16=_iterator16.next();if(_i16.done)break;_ref17=_i16.value;}var rule=_ref17;if(this.sequenceMatches(-rule.backtrack.length,rule.backtrack)&&this.sequenceMatches(1,rule.input)&&this.sequenceMatches(1+rule.input.length,rule.lookahead)){return this.applyLookupList(rule.lookupRecords);}}break;case 2:if(this.coverageIndex(table.coverage)===-1){return false;}index=this.getClassID(this.glyphIterator.cur.id,table.inputClassDef);var rules=table.chainClassSet[index];if(!rules){return false;}for(var _iterator17=rules,_isArray17=Array.isArray(_iterator17),_i17=0,_iterator17=_isArray17?_iterator17:_getIterator(_iterator17);;){var _ref18;if(_isArray17){if(_i17>=_iterator17.length)break;_ref18=_iterator17[_i17++];}else{_i17=_iterator17.next();if(_i17.done)break;_ref18=_i17.value;}var _rule2=_ref18;if(this.classSequenceMatches(-_rule2.backtrack.length,_rule2.backtrack,table.backtrackClassDef)&&this.classSequenceMatches(1,_rule2.input,table.inputClassDef)&&this.classSequenceMatches(1+_rule2.input.length,_rule2.lookahead,table.lookaheadClassDef)){return this.applyLookupList(_rule2.lookupRecords);}}break;case 3:if(this.coverageSequenceMatches(-table.backtrackGlyphCount,table.backtrackCoverage)&&this.coverageSequenceMatches(0,table.inputCoverage)&&this.coverageSequenceMatches(table.inputGlyphCount,table.lookaheadCoverage)){return this.applyLookupList(table.lookupRecords);}break;}return false;};return OTProcessor;}();var GlyphInfo=function(){function GlyphInfo(font,id){var codePoints=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];var features=arguments[3];_classCallCheck(this,GlyphInfo);this._font=font;this.codePoints=codePoints;this.id=id;this.features={};if(Array.isArray(features)){for(var i=0;i<features.length;i++){var feature=features[i];this.features[feature]=true;}}else if((typeof features==='undefined'?'undefined':_typeof(features))==='object'){_Object$assign(this.features,features);}this.ligatureID=null;this.ligatureComponent=null;this.isLigated=false;this.cursiveAttachment=null;this.markAttachment=null;this.shaperInfo=null;this.substituted=false;this.isMultiplied=false;}GlyphInfo.prototype.copy=function copy(){return new GlyphInfo(this._font,this.id,this.codePoints,this.features);};_createClass(GlyphInfo,[{key:'id',get:function get(){return this._id;},set:function set(id){this._id=id;this.substituted=true;var GDEF=this._font.GDEF;if(GDEF&&GDEF.glyphClassDef){// TODO: clean this up\nvar classID=OTProcessor.prototype.getClassID(id,GDEF.glyphClassDef);this.isBase=classID===1;this.isLigature=classID===2;this.isMark=classID===3;this.markAttachmentType=GDEF.markAttachClassDef?OTProcessor.prototype.getClassID(id,GDEF.markAttachClassDef):0;}else{this.isMark=this.codePoints.length>0&&this.codePoints.every(unicode.isMark);this.isBase=!this.isMark;this.isLigature=this.codePoints.length>1;this.markAttachmentType=0;}}}]);return GlyphInfo;}();var _class$5;var _temp$1;/**\r\n     * This is a shaper for the Hangul script, used by the Korean language.\r\n     * It does the following:\r\n     *   - decompose if unsupported by the font:\r\n     *     <LV>   -> <L,V>\r\n     *     <LVT>  -> <L,V,T>\r\n     *     <LV,T> -> <L,V,T>\r\n     *\r\n     *   - compose if supported by the font:\r\n     *     <L,V>   -> <LV>\r\n     *     <L,V,T> -> <LVT>\r\n     *     <LV,T>  -> <LVT>\r\n     *\r\n     *   - reorder tone marks (S is any valid syllable):\r\n     *     <S, M> -> <M, S>\r\n     *\r\n     *   - apply ljmo, vjmo, and tjmo OpenType features to decomposed Jamo sequences.\r\n     *\r\n     * This logic is based on the following documents:\r\n     *   - http://www.microsoft.com/typography/OpenTypeDev/hangul/intro.htm\r\n     *   - http://ktug.org/~nomos/harfbuzz-hangul/hangulshaper.pdf\r\n     */var HangulShaper=(_temp$1=_class$5=function(_DefaultShaper){_inherits(HangulShaper,_DefaultShaper);function HangulShaper(){_classCallCheck(this,HangulShaper);return _possibleConstructorReturn(this,_DefaultShaper.apply(this,arguments));}HangulShaper.planFeatures=function planFeatures(plan){plan.add(['ljmo','vjmo','tjmo'],false);};HangulShaper.assignFeatures=function assignFeatures(plan,glyphs){var state=0;var i=0;while(i<glyphs.length){var action=void 0;var glyph=glyphs[i];var code=glyph.codePoints[0];var type=getType(code);var _STATE_TABLE$state$ty=STATE_TABLE$1[state][type];action=_STATE_TABLE$state$ty[0];state=_STATE_TABLE$state$ty[1];switch(action){case DECOMPOSE:// Decompose the composed syllable if it is not supported by the font.\nif(!plan.font.hasGlyphForCodePoint(code)){i=decompose(glyphs,i,plan.font);}break;case COMPOSE:// Found a decomposed syllable. Try to compose if supported by the font.\ni=compose(glyphs,i,plan.font);break;case TONE_MARK:// Got a valid syllable, followed by a tone mark. Move the tone mark to the beginning of the syllable.\nreorderToneMark(glyphs,i,plan.font);break;case INVALID:// Tone mark has no valid syllable to attach to, so insert a dotted circle\ni=insertDottedCircle(glyphs,i,plan.font);break;}i++;}};return HangulShaper;}(DefaultShaper),_class$5.zeroMarkWidths='NONE',_temp$1);var HANGUL_BASE=0xac00;var HANGUL_END=0xd7a4;var HANGUL_COUNT=HANGUL_END-HANGUL_BASE+1;var L_BASE=0x1100;// lead\nvar V_BASE=0x1161;// vowel\nvar T_BASE=0x11a7;// trail\nvar L_COUNT=19;var V_COUNT=21;var T_COUNT=28;var L_END=L_BASE+L_COUNT-1;var V_END=V_BASE+V_COUNT-1;var T_END=T_BASE+T_COUNT-1;var DOTTED_CIRCLE=0x25cc;var isL=function isL(code){return 0x1100<=code&&code<=0x115f||0xa960<=code&&code<=0xa97c;};var isV=function isV(code){return 0x1160<=code&&code<=0x11a7||0xd7b0<=code&&code<=0xd7c6;};var isT=function isT(code){return 0x11a8<=code&&code<=0x11ff||0xd7cb<=code&&code<=0xd7fb;};var isTone=function isTone(code){return 0x302e<=code&&code<=0x302f;};var isLVT=function isLVT(code){return HANGUL_BASE<=code&&code<=HANGUL_END;};var isLV=function isLV(code){return code-HANGUL_BASE<HANGUL_COUNT&&(code-HANGUL_BASE)%T_COUNT===0;};var isCombiningL=function isCombiningL(code){return L_BASE<=code&&code<=L_END;};var isCombiningV=function isCombiningV(code){return V_BASE<=code&&code<=V_END;};var isCombiningT=function isCombiningT(code){return T_BASE+1&&1<=code&&code<=T_END;};// Character categories\nvar X=0;// Other character\nvar L=1;// Leading consonant\nvar V=2;// Medial vowel\nvar T=3;// Trailing consonant\nvar LV=4;// Composed <LV> syllable\nvar LVT=5;// Composed <LVT> syllable\nvar M=6;// Tone mark\n// This function classifies a character using the above categories.\nfunction getType(code){if(isL(code)){return L;}if(isV(code)){return V;}if(isT(code)){return T;}if(isLV(code)){return LV;}if(isLVT(code)){return LVT;}if(isTone(code)){return M;}return X;}// State machine actions\nvar NO_ACTION=0;var DECOMPOSE=1;var COMPOSE=2;var TONE_MARK=4;var INVALID=5;// Build a state machine that accepts valid syllables, and applies actions along the way.\n// The logic this is implementing is documented at the top of the file.\nvar STATE_TABLE$1=[//       X                 L                 V                T                  LV                LVT               M\n// State 0: start state\n[[NO_ACTION,0],[NO_ACTION,1],[NO_ACTION,0],[NO_ACTION,0],[DECOMPOSE,2],[DECOMPOSE,3],[INVALID,0]],// State 1: <L>\n[[NO_ACTION,0],[NO_ACTION,1],[COMPOSE,2],[NO_ACTION,0],[DECOMPOSE,2],[DECOMPOSE,3],[INVALID,0]],// State 2: <L,V> or <LV>\n[[NO_ACTION,0],[NO_ACTION,1],[NO_ACTION,0],[COMPOSE,3],[DECOMPOSE,2],[DECOMPOSE,3],[TONE_MARK,0]],// State 3: <L,V,T> or <LVT>\n[[NO_ACTION,0],[NO_ACTION,1],[NO_ACTION,0],[NO_ACTION,0],[DECOMPOSE,2],[DECOMPOSE,3],[TONE_MARK,0]]];function getGlyph(font,code,features){return new GlyphInfo(font,font.glyphForCodePoint(code).id,[code],features);}function decompose(glyphs,i,font){var glyph=glyphs[i];var code=glyph.codePoints[0];var s=code-HANGUL_BASE;var t=T_BASE+s%T_COUNT;s=s/T_COUNT|0;var l=L_BASE+s/V_COUNT|0;var v=V_BASE+s%V_COUNT;// Don't decompose if all of the components are not available\nif(!font.hasGlyphForCodePoint(l)||!font.hasGlyphForCodePoint(v)||t!==T_BASE&&!font.hasGlyphForCodePoint(t)){return i;}// Replace the current glyph with decomposed L, V, and T glyphs,\n// and apply the proper OpenType features to each component.\nvar ljmo=getGlyph(font,l,glyph.features);ljmo.features.ljmo=true;var vjmo=getGlyph(font,v,glyph.features);vjmo.features.vjmo=true;var insert=[ljmo,vjmo];if(t>T_BASE){var tjmo=getGlyph(font,t,glyph.features);tjmo.features.tjmo=true;insert.push(tjmo);}glyphs.splice.apply(glyphs,[i,1].concat(insert));return i+insert.length-1;}function compose(glyphs,i,font){var glyph=glyphs[i];var code=glyphs[i].codePoints[0];var type=getType(code);var prev=glyphs[i-1].codePoints[0];var prevType=getType(prev);// Figure out what type of syllable we're dealing with\nvar lv=void 0,ljmo=void 0,vjmo=void 0,tjmo=void 0;if(prevType===LV&&type===T){// <LV,T>\nlv=prev;tjmo=glyph;}else{if(type===V){// <L,V>\nljmo=glyphs[i-1];vjmo=glyph;}else{// <L,V,T>\nljmo=glyphs[i-2];vjmo=glyphs[i-1];tjmo=glyph;}var l=ljmo.codePoints[0];var v=vjmo.codePoints[0];// Make sure L and V are combining characters\nif(isCombiningL(l)&&isCombiningV(v)){lv=HANGUL_BASE+((l-L_BASE)*V_COUNT+(v-V_BASE))*T_COUNT;}}var t=tjmo&&tjmo.codePoints[0]||T_BASE;if(lv!=null&&(t===T_BASE||isCombiningT(t))){var s=lv+(t-T_BASE);// Replace with a composed glyph if supported by the font,\n// otherwise apply the proper OpenType features to each component.\nif(font.hasGlyphForCodePoint(s)){var del=prevType===V?3:2;glyphs.splice(i-del+1,del,getGlyph(font,s,glyph.features));return i-del+1;}}// Didn't compose (either a non-combining component or unsupported by font).\nif(ljmo){ljmo.features.ljmo=true;}if(vjmo){vjmo.features.vjmo=true;}if(tjmo){tjmo.features.tjmo=true;}if(prevType===LV){// Sequence was originally <L,V>, which got combined earlier.\n// Either the T was non-combining, or the LVT glyph wasn't supported.\n// Decompose the glyph again and apply OT features.\ndecompose(glyphs,i-1,font);return i+1;}return i;}function getLength(code){switch(getType(code)){case LV:case LVT:return 1;case V:return 2;case T:return 3;}}function reorderToneMark(glyphs,i,font){var glyph=glyphs[i];var code=glyphs[i].codePoints[0];// Move tone mark to the beginning of the previous syllable, unless it is zero width\nif(font.glyphForCodePoint(code).advanceWidth===0){return;}var prev=glyphs[i-1].codePoints[0];var len=getLength(prev);glyphs.splice(i,1);return glyphs.splice(i-len,0,glyph);}function insertDottedCircle(glyphs,i,font){var glyph=glyphs[i];var code=glyphs[i].codePoints[0];if(font.hasGlyphForCodePoint(DOTTED_CIRCLE)){var dottedCircle=getGlyph(font,DOTTED_CIRCLE,glyph.features);// If the tone mark is zero width, insert the dotted circle before, otherwise after\nvar idx=font.glyphForCodePoint(code).advanceWidth===0?i:i+1;glyphs.splice(idx,0,dottedCircle);i++;}return i;}var stateTable=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,14,15,16,17],[0,0,0,18,19,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,28,29,30,31,32,33,0,34,0,0,35,36,0,0,37,0],[0,0,0,38,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,39,0,0,0,40,41,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,12,43,0,0,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,0,43,0,0,0,0],[0,0,0,45,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,50,0,0,51,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0],[0,0,0,53,54,55,56,57,58,0,59,0,0,60,61,0,0,62,0],[0,0,0,4,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,63,64,0,0,40,41,0,9,0,10,0,0,0,42,0,63,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,0,2,16,0],[0,0,0,18,65,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,0,0],[0,0,0,69,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,73,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,75,0,0,0,76,77,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,25,79,0,0,0,0],[0,0,0,18,19,20,74,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,81,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,86,0,0,87,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,0],[0,0,0,18,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,89,90,0,0,76,77,0,23,0,24,0,0,0,78,0,89,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,0,0],[0,0,0,94,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,96,0,0,0,97,98,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,35,100,0,0,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,102,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,107,0,0,108,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0],[0,0,0,28,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,110,111,0,0,97,98,0,33,0,34,0,0,0,99,0,110,0,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,0,0],[0,0,0,0,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,0,0,115,116,117,118,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,39,0,122,0,123,123,8,9,0,10,0,0,0,42,0,39,0,0],[0,124,64,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,0],[0,39,0,0,0,121,125,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,126,126,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,47,47,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,128,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,129,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,50,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0],[0,0,0,135,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,136,0,0,0,137,138,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,60,140,0,0,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,0,140,0,0,0,0],[0,0,0,142,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,147,0,0,148,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0],[0,0,0,53,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,150,151,0,0,137,138,0,58,0,59,0,0,0,139,0,150,0,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,0,0],[0,0,0,155,116,156,157,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,75,3,4,5,159,160,8,161,0,162,0,11,12,163,0,75,16,0],[0,0,0,0,0,40,164,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,0,165,0,0,0,0],[0,124,64,0,0,40,164,0,9,0,10,0,0,0,42,0,124,0,0],[0,0,0,0,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,167,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,168,0,0,0,0,0,0,0,0],[0,0,0,0,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,0,79,0,0,0,0],[0,0,0,169,170,171,172,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,75,0,176,0,177,177,22,23,0,24,0,0,0,78,0,75,0,0],[0,178,90,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0],[0,75,0,0,0,175,179,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,180,180,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,83,83,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,182,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,183,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,86,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,188,0,0,0,0,0,0,0,0],[0,0,0,189,170,190,191,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,76,193,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,0,194,0,0,0,0],[0,178,90,0,0,76,193,0,23,0,24,0,0,0,78,0,178,0,0],[0,0,0,0,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,195,196,197,198,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,96,0,202,0,203,203,32,33,0,34,0,0,0,99,0,96,0,0],[0,204,111,0,0,0,0,0,0,0,0,0,0,0,0,0,204,0,0],[0,96,0,0,0,201,205,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,206,206,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,104,104,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,208,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,209,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,107,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,214,0,0,0,0,0,0,0,0],[0,0,0,215,196,216,217,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,97,219,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,0,220,0,0,0,0],[0,204,111,0,0,97,219,0,33,0,34,0,0,0,99,0,204,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,223,0,0,0,40,224,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,119,225,0,0,0,0],[0,0,0,115,116,117,222,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,115,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,226,64,0,0,40,224,0,9,0,10,0,0,0,42,0,226,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,39,0,0,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,44,44,8,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,227,0,228,229,0,9,0,10,0,0,230,0,0,0,0,0],[0,39,0,122,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,231,231,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,131,131,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,234,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,235,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,0,0,240,241,242,243,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,136,0,247,0,248,248,57,58,0,59,0,0,0,139,0,136,0,0],[0,249,151,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0],[0,136,0,0,0,246,250,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,251,251,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,144,144,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,253,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,254,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,147,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0],[0,0,0,260,241,261,262,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,137,264,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,0,265,0,0,0,0],[0,249,151,0,0,137,264,0,58,0,59,0,0,0,139,0,249,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,158,225,0,0,0,0],[0,0,0,155,116,156,222,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,155,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,43,266,266,8,161,0,24,0,0,12,267,0,0,0,0],[0,75,0,176,43,268,268,269,161,0,24,0,0,0,267,0,75,0,0],[0,0,0,0,0,270,0,0,271,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0],[0,273,274,0,0,40,41,0,9,0,10,0,0,0,42,0,273,0,0],[0,0,0,40,0,123,123,8,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,121,275,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,276,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,279,0,0,0,76,280,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,173,281,0,0,0,0],[0,0,0,169,170,171,278,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,169,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,282,90,0,0,76,280,0,23,0,24,0,0,0,78,0,282,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,75,0,0,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,80,80,22,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,283,0,284,285,0,23,0,24,0,0,286,0,0,0,0,0],[0,75,0,176,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,287,287,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,185,185,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,290,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,291,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,192,281,0,0,0,0],[0,0,0,189,170,190,278,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,189,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,76,0,177,177,22,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,175,296,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,299,0,0,0,97,300,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,199,301,0,0,0,0],[0,0,0,195,196,197,298,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,195,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,302,111,0,0,97,300,0,33,0,34,0,0,0,99,0,302,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,96,0,0,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,101,101,32,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,303,0,304,305,0,33,0,34,0,0,306,0,0,0,0,0],[0,96,0,202,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,307,307,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,211,211,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,310,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,311,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,218,301,0,0,0,0],[0,0,0,215,196,216,298,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,215,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,97,0,203,203,32,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,201,316,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,0,225,0,0,0,0],[0,0,0,317,318,319,320,8,9,0,10,0,0,321,322,0,0,16,0],[0,223,0,323,0,123,123,8,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,0,0,121,324,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,325,318,326,327,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,64,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,230,0,0,0,0,0],[0,0,0,227,0,228,121,0,9,0,10,0,0,230,0,0,0,0,0],[0,0,0,227,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,0],[0,0,0,0,0,329,329,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,237,237,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,332,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,333,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,337,0,0,0,137,338,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,244,339,0,0,0,0],[0,0,0,240,241,242,336,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,240,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,340,151,0,0,137,338,0,58,0,59,0,0,0,139,0,340,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,136,0,0,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,141,141,57,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,341,0,342,343,0,58,0,59,0,0,344,0,0,0,0,0],[0,136,0,247,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,345,345,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,256,256,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,348,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,349,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,263,339,0,0,0,0],[0,0,0,260,241,261,336,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,260,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,137,0,248,248,57,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,246,354,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,126,126,8,23,0,0,0,0,0,0,0,0,0,0],[0,355,90,0,0,121,125,0,9,0,10,0,0,0,42,0,355,0,0],[0,0,0,0,0,356,356,269,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,357,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,270,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,363,0,0,0,0,0,0,0,0],[0,0,0,364,116,365,366,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,40,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,0,281,0,0,0,0],[0,0,0,369,370,371,372,22,23,0,24,0,0,373,374,0,0,27,0],[0,279,0,375,0,177,177,22,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,0,0,175,376,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,377,370,378,379,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,90,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,286,0,0,0,0,0],[0,0,0,283,0,284,175,0,23,0,24,0,0,286,0,0,0,0,0],[0,0,0,283,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0],[0,0,0,0,0,381,381,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,382,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,293,293,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,384,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,385,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,76,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,0,301,0,0,0,0],[0,0,0,387,388,389,390,32,33,0,34,0,0,391,392,0,0,37,0],[0,299,0,393,0,203,203,32,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,0,0,201,394,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,395,388,396,397,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,111,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,306,0,0,0,0,0],[0,0,0,303,0,304,201,0,33,0,34,0,0,306,0,0,0,0,0],[0,0,0,303,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,0,0],[0,0,0,0,0,399,399,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,400,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,313,313,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,402,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,403,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,97,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,407,0,0,0,40,408,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,321,409,0,0,0,0],[0,0,0,317,318,319,406,8,9,0,10,0,0,321,322,0,0,16,0],[0,0,0,317,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,410,64,0,0,40,408,0,9,0,10,0,0,0,42,0,410,0,0],[0,223,0,0,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,323,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,328,409,0,0,0,0],[0,0,0,325,318,326,406,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,325,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130,0,0],[0,0,0,0,0,411,411,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,412,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,413,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,0,339,0,0,0,0],[0,0,0,414,415,416,417,57,58,0,59,0,0,418,419,0,0,62,0],[0,337,0,420,0,248,248,57,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,0,0,246,421,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,422,415,423,424,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,151,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,344,0,0,0,0,0],[0,0,0,341,0,342,246,0,58,0,59,0,0,344,0,0,0,0,0],[0,0,0,341,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0],[0,0,0,0,0,426,426,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,427,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,351,351,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,429,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,430,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,137,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,432,116,433,434,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,0,0,180,180,269,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,359,359,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,437,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,438,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,443,274,0,0,0,0,0,0,0,0,0,0,0,0,0,443,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,367,225,0,0,0,0],[0,0,0,364,116,365,445,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,364,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,448,0,0,0,76,449,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,373,450,0,0,0,0],[0,0,0,369,370,371,447,22,23,0,24,0,0,373,374,0,0,27,0],[0,0,0,369,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,451,90,0,0,76,449,0,23,0,24,0,0,0,78,0,451,0,0],[0,279,0,0,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,375,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,380,450,0,0,0,0],[0,0,0,377,370,378,447,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,377,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,0,0,0,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,0,0],[0,0,0,0,0,452,452,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,453,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,454,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,457,0,0,0,97,458,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,391,459,0,0,0,0],[0,0,0,387,388,389,456,32,33,0,34,0,0,391,392,0,0,37,0],[0,0,0,387,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,460,111,0,0,97,458,0,33,0,34,0,0,0,99,0,460,0,0],[0,299,0,0,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,393,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,398,459,0,0,0,0],[0,0,0,395,388,396,456,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,395,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,0,0,0,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,0,0],[0,0,0,0,0,461,461,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,462,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,463,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,0,409,0,0,0,0],[0,0,0,464,465,466,467,8,9,0,10,0,0,468,469,0,0,16,0],[0,407,0,470,0,123,123,8,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,0,0,121,471,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,472,465,473,474,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,0,0],[0,0,0,0,0,0,476,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,479,0,0,0,137,480,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,418,481,0,0,0,0],[0,0,0,414,415,416,478,57,58,0,59,0,0,418,419,0,0,62,0],[0,0,0,414,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,482,151,0,0,137,480,0,58,0,59,0,0,0,139,0,482,0,0],[0,337,0,0,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,420,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,425,481,0,0,0,0],[0,0,0,422,415,423,478,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,422,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,0,0,0,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0],[0,0,0,0,0,483,483,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,485,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,435,225,0,0,0,0],[0,0,0,432,116,433,445,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,432,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,486,486,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,487,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,440,440,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,489,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,490,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,495,0,496,497,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,0,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,0,225,0,0,0,0],[0,0,0,0,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,0,450,0,0,0,0],[0,0,0,499,500,501,502,22,23,0,24,0,0,503,504,0,0,27,0],[0,448,0,505,0,177,177,22,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,0,0,175,506,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,507,500,508,509,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,0,0,0,0,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,292,0,0],[0,0,0,0,0,0,511,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,0,459,0,0,0,0],[0,0,0,512,513,514,515,32,33,0,34,0,0,516,517,0,0,37,0],[0,457,0,518,0,203,203,32,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,0,0,201,519,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,520,513,521,522,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,312,0,0],[0,0,0,0,0,0,524,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,527,0,0,0,40,528,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,468,529,0,0,0,0],[0,0,0,464,465,466,526,8,9,0,10,0,0,468,469,0,0,16,0],[0,0,0,464,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,530,64,0,0,40,528,0,9,0,10,0,0,0,42,0,530,0,0],[0,407,0,0,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,470,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,475,529,0,0,0,0],[0,0,0,472,465,473,526,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,472,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0],[0,0,0,0,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,0,481,0,0,0,0],[0,0,0,531,532,533,534,57,58,0,59,0,0,535,536,0,0,62,0],[0,479,0,537,0,248,248,57,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,0,0,246,538,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,539,532,540,541,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,0,0,0,0,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,350,0,0],[0,0,0,0,0,0,543,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,358,0,0],[0,0,0,0,0,544,544,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,545,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,492,492,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,547,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,548,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,274,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,498,0,0,0,0,0],[0,0,0,495,0,496,368,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,495,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,553,0,0,0,76,554,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,503,555,0,0,0,0],[0,0,0,499,500,501,552,22,23,0,24,0,0,503,504,0,0,27,0],[0,0,0,499,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,556,90,0,0,76,554,0,23,0,24,0,0,0,78,0,556,0,0],[0,448,0,0,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,505,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,510,555,0,0,0,0],[0,0,0,507,500,508,552,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,507,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,559,0,0,0,97,560,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,516,561,0,0,0,0],[0,0,0,512,513,514,558,32,33,0,34,0,0,516,517,0,0,37,0],[0,0,0,512,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,562,111,0,0,97,560,0,33,0,34,0,0,0,99,0,562,0,0],[0,457,0,0,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,518,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,523,561,0,0,0,0],[0,0,0,520,513,521,558,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,520,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0],[0,0,0,0,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,0,529,0,0,0,0],[0,0,0,563,66,564,565,8,9,0,10,0,0,566,68,0,0,16,0],[0,527,0,567,0,123,123,8,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,0,0,121,568,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,569,66,570,571,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,575,0,0,0,137,576,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,535,577,0,0,0,0],[0,0,0,531,532,533,574,57,58,0,59,0,0,535,536,0,0,62,0],[0,0,0,531,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,578,151,0,0,137,576,0,58,0,59,0,0,0,139,0,578,0,0],[0,479,0,0,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,537,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,542,577,0,0,0,0],[0,0,0,539,532,540,574,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,539,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,0],[0,0,0,0,0,0,0,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,439,0,0],[0,0,0,0,0,579,579,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,580,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,581,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,0,555,0,0,0,0],[0,0,0,582,91,583,584,22,23,0,24,0,0,585,93,0,0,27,0],[0,553,0,586,0,177,177,22,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,0,0,175,587,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,588,91,589,590,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,0,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,0,561,0,0,0,0],[0,0,0,592,112,593,594,32,33,0,34,0,0,595,114,0,0,37,0],[0,559,0,596,0,203,203,32,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,0,0,201,597,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,598,112,599,600,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,566,165,0,0,0,0],[0,0,0,563,66,564,67,8,9,0,10,0,0,566,68,0,0,16,0],[0,0,0,563,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,527,0,0,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,567,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,572,165,0,0,0,0],[0,0,0,569,66,570,67,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,569,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,0,577,0,0,0,0],[0,0,0,603,152,604,605,57,58,0,59,0,0,606,154,0,0,62,0],[0,575,0,607,0,248,248,57,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,0,0,246,608,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,609,152,610,611,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,0,0,0,0,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,491,0,0],[0,0,0,0,0,0,613,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,585,194,0,0,0,0],[0,0,0,582,91,583,92,22,23,0,24,0,0,585,93,0,0,27,0],[0,0,0,582,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,553,0,0,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,586,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,591,194,0,0,0,0],[0,0,0,588,91,589,92,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,588,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,595,220,0,0,0,0],[0,0,0,592,112,593,113,32,33,0,34,0,0,595,114,0,0,37,0],[0,0,0,592,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,559,0,0,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,596,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,601,220,0,0,0,0],[0,0,0,598,112,599,113,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,598,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,606,265,0,0,0,0],[0,0,0,603,152,604,153,57,58,0,59,0,0,606,154,0,0,62,0],[0,0,0,603,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,575,0,0,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,607,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,612,265,0,0,0,0],[0,0,0,609,152,610,153,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,609,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,549,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0]];var accepting=[false,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,false,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,false,false,true,false,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,false,false,true,true,false,false,true,true,true,false,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,false,false,false,false,false,false,false,true,true,false,false,true,true,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,false,true,true,false,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,false,true,true,true,true,true,false,true,true,false,true,true,true];var tags=[[],[\"broken_cluster\"],[\"consonant_syllable\"],[\"vowel_syllable\"],[\"broken_cluster\"],[\"broken_cluster\"],[],[],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"standalone_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"consonant_syllable\"],[\"broken_cluster\"],[\"symbol_cluster\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"broken_cluster\"],[],[],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"symbol_cluster\"],[],[\"symbol_cluster\"],[\"symbol_cluster\"],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"broken_cluster\"],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"broken_cluster\"],[],[],[],[\"broken_cluster\"],[\"broken_cluster\"],[],[],[\"broken_cluster\"],[\"broken_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"broken_cluster\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"symbol_cluster\"],[\"symbol_cluster\"],[\"symbol_cluster\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"broken_cluster\"],[],[],[],[],[\"broken_cluster\"],[\"broken_cluster\"],[],[],[\"broken_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[\"broken_cluster\"],[],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[\"broken_cluster\"],[\"symbol_cluster\"],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[],[],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[],[],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"broken_cluster\"],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"broken_cluster\"],[],[],[],[],[\"broken_cluster\"],[],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[],[],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[],[],[\"consonant_syllable\",\"broken_cluster\"],[],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[],[],[],[\"consonant_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[],[],[],[\"vowel_syllable\"],[],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[],[],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[],[],[],[\"standalone_cluster\"],[],[\"consonant_syllable\",\"broken_cluster\"],[],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[],[],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[],[],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[],[],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[],[],[\"broken_cluster\"],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"broken_cluster\"],[],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[],[],[],[],[],[],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[],[],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[],[],[],[],[\"consonant_syllable\",\"broken_cluster\"],[\"consonant_syllable\",\"broken_cluster\"],[],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"broken_cluster\"],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[],[],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"consonant_syllable\"],[],[\"consonant_syllable\"],[\"consonant_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"vowel_syllable\"],[],[\"vowel_syllable\"],[\"vowel_syllable\"],[\"broken_cluster\"],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[\"standalone_cluster\"],[\"standalone_cluster\"],[],[\"consonant_syllable\"],[\"vowel_syllable\"],[\"standalone_cluster\"]];var indicMachine={stateTable:stateTable,accepting:accepting,tags:tags};var categories=[\"O\",\"IND\",\"S\",\"GB\",\"B\",\"FM\",\"CGJ\",\"VMAbv\",\"VMPst\",\"VAbv\",\"VPst\",\"CMBlw\",\"VPre\",\"VBlw\",\"H\",\"VMBlw\",\"CMAbv\",\"MBlw\",\"CS\",\"R\",\"SUB\",\"MPst\",\"MPre\",\"FAbv\",\"FPst\",\"FBlw\",\"SMAbv\",\"SMBlw\",\"VMPre\",\"ZWNJ\",\"ZWJ\",\"WJ\",\"VS\",\"N\",\"HN\",\"MAbv\"];var decompositions$1={\"2507\":[2503,2494],\"2508\":[2503,2519],\"2888\":[2887,2902],\"2891\":[2887,2878],\"2892\":[2887,2903],\"3018\":[3014,3006],\"3019\":[3015,3006],\"3020\":[3014,3031],\"3144\":[3142,3158],\"3264\":[3263,3285],\"3271\":[3270,3285],\"3272\":[3270,3286],\"3274\":[3270,3266],\"3275\":[3270,3266,3285],\"3402\":[3398,3390],\"3403\":[3399,3390],\"3404\":[3398,3415],\"3546\":[3545,3530],\"3548\":[3545,3535],\"3549\":[3545,3535,3530],\"3550\":[3545,3551],\"3635\":[3661,3634],\"3763\":[3789,3762],\"3955\":[3953,3954],\"3957\":[3953,3956],\"3958\":[4018,3968],\"3959\":[4018,3953,3968],\"3960\":[4019,3968],\"3961\":[4019,3953,3968],\"3969\":[3953,3968],\"6971\":[6970,6965],\"6973\":[6972,6965],\"6976\":[6974,6965],\"6977\":[6975,6965],\"6979\":[6978,6965],\"69934\":[69937,69927],\"69935\":[69938,69927],\"70475\":[70471,70462],\"70476\":[70471,70487],\"70843\":[70841,70842],\"70844\":[70841,70832],\"70846\":[70841,70845],\"71098\":[71096,71087],\"71099\":[71097,71087]};var stateTable$1=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[2,2,3,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,17,18,11,19,20,21,22,0,0,23,0,0,2,0,24,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,27,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,46,0,0,0,39,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,23,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,23,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,23,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,23,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,23,0,0,0,0,0,0,0],[0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,23,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,11,0,20,21,22,0,0,23,0,0,0,0,0,0,0],[0,0,0,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,23,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,23,0,0,0,49,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,23,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,22,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,23,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,23,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,46,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,46,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,46,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,46,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,46,0,0,0,0,0,0,0],[0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,46,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,35,0,43,44,45,0,0,46,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,46,0,0,0,53,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,46,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,45,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,46,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,46,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,23,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,23,0,0,0,0,0,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,46,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,46,0,0,0,0,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0]];var accepting$1=[false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true];var tags$1=[[],[\"broken_cluster\"],[\"independent_cluster\"],[\"symbol_cluster\"],[\"standard_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"numeral_cluster\"],[\"broken_cluster\"],[\"independent_cluster\"],[\"symbol_cluster\"],[\"symbol_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"virama_terminated_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"broken_cluster\"],[\"broken_cluster\"],[\"numeral_cluster\"],[\"number_joiner_terminated_cluster\"],[\"standard_cluster\"],[\"standard_cluster\"],[\"numeral_cluster\"]];var useData={categories:categories,decompositions:decompositions$1,stateTable:stateTable$1,accepting:accepting$1,tags:tags$1};// Cateories used in the OpenType spec:\n// https://www.microsoft.com/typography/otfntdev/devanot/shaping.aspx\nvar CATEGORIES={X:1<<0,C:1<<1,V:1<<2,N:1<<3,H:1<<4,ZWNJ:1<<5,ZWJ:1<<6,M:1<<7,SM:1<<8,VD:1<<9,A:1<<10,Placeholder:1<<11,Dotted_Circle:1<<12,RS:1<<13,// Register Shifter, used in Khmer OT spec.\nCoeng:1<<14,// Khmer-style Virama.\nRepha:1<<15,// Atomically-encoded logical or visual repha.\nRa:1<<16,CM:1<<17,// Consonant-Medial.\nSymbol:1<<18// Avagraha, etc that take marks (SM,A,VD).\n};// Visual positions in a syllable from left to right.\nvar POSITIONS={Start:1<<0,Ra_To_Become_Reph:1<<1,Pre_M:1<<2,Pre_C:1<<3,Base_C:1<<4,After_Main:1<<5,Above_C:1<<6,Before_Sub:1<<7,Below_C:1<<8,After_Sub:1<<9,Before_Post:1<<10,Post_C:1<<11,After_Post:1<<12,Final_C:1<<13,SMVD:1<<14,End:1<<15};var CONSONANT_FLAGS=CATEGORIES.C|CATEGORIES.Ra|CATEGORIES.CM|CATEGORIES.V|CATEGORIES.Placeholder|CATEGORIES.Dotted_Circle;var JOINER_FLAGS=CATEGORIES.ZWJ|CATEGORIES.ZWNJ;var HALANT_OR_COENG_FLAGS=CATEGORIES.H|CATEGORIES.Coeng;var INDIC_CONFIGS={Default:{hasOldSpec:false,virama:0,basePos:'Last',rephPos:POSITIONS.Before_Post,rephMode:'Implicit',blwfMode:'Pre_And_Post'},Devanagari:{hasOldSpec:true,virama:0x094D,basePos:'Last',rephPos:POSITIONS.Before_Post,rephMode:'Implicit',blwfMode:'Pre_And_Post'},Bengali:{hasOldSpec:true,virama:0x09CD,basePos:'Last',rephPos:POSITIONS.After_Sub,rephMode:'Implicit',blwfMode:'Pre_And_Post'},Gurmukhi:{hasOldSpec:true,virama:0x0A4D,basePos:'Last',rephPos:POSITIONS.Before_Sub,rephMode:'Implicit',blwfMode:'Pre_And_Post'},Gujarati:{hasOldSpec:true,virama:0x0ACD,basePos:'Last',rephPos:POSITIONS.Before_Post,rephMode:'Implicit',blwfMode:'Pre_And_Post'},Oriya:{hasOldSpec:true,virama:0x0B4D,basePos:'Last',rephPos:POSITIONS.After_Main,rephMode:'Implicit',blwfMode:'Pre_And_Post'},Tamil:{hasOldSpec:true,virama:0x0BCD,basePos:'Last',rephPos:POSITIONS.After_Post,rephMode:'Implicit',blwfMode:'Pre_And_Post'},Telugu:{hasOldSpec:true,virama:0x0C4D,basePos:'Last',rephPos:POSITIONS.After_Post,rephMode:'Explicit',blwfMode:'Post_Only'},Kannada:{hasOldSpec:true,virama:0x0CCD,basePos:'Last',rephPos:POSITIONS.After_Post,rephMode:'Implicit',blwfMode:'Post_Only'},Malayalam:{hasOldSpec:true,virama:0x0D4D,basePos:'Last',rephPos:POSITIONS.After_Main,rephMode:'Log_Repha',blwfMode:'Pre_And_Post'},// Handled by UniversalShaper\n// Sinhala: {\n//   hasOldSpec: false,\n//   virama: 0x0DCA,\n//   basePos: 'Last_Sinhala',\n//   rephPos: POSITIONS.After_Main,\n//   rephMode: 'Explicit',\n//   blwfMode: 'Pre_And_Post'\n// },\nKhmer:{hasOldSpec:false,virama:0x17D2,basePos:'First',rephPos:POSITIONS.Ra_To_Become_Reph,rephMode:'Vis_Repha',blwfMode:'Pre_And_Post'}};// Additional decompositions that aren't in Unicode\nvar INDIC_DECOMPOSITIONS={// Khmer\n0x17BE:[0x17C1,0x17BE],0x17BF:[0x17C1,0x17BF],0x17C0:[0x17C1,0x17C0],0x17C4:[0x17C1,0x17C4],0x17C5:[0x17C1,0x17C5]};var _class$6;var _temp$2;var decompositions=useData.decompositions;var trie$1=new UnicodeTrie(Buffer(\" \",\"base64\"));var stateMachine=new StateMachine(indicMachine);/**\r\n     * The IndicShaper supports indic scripts e.g. Devanagari, Kannada, etc.\r\n     * Based on code from Harfbuzz: https://github.com/behdad/harfbuzz/blob/master/src/hb-ot-shape-complex-indic.cc\r\n     */var IndicShaper=(_temp$2=_class$6=function(_DefaultShaper){_inherits(IndicShaper,_DefaultShaper);function IndicShaper(){_classCallCheck(this,IndicShaper);return _possibleConstructorReturn(this,_DefaultShaper.apply(this,arguments));}IndicShaper.planFeatures=function planFeatures(plan){plan.addStage(setupSyllables);plan.addStage(['locl','ccmp']);plan.addStage(initialReordering);plan.addStage('nukt');plan.addStage('akhn');plan.addStage('rphf',false);plan.addStage('rkrf');plan.addStage('pref',false);plan.addStage('blwf',false);plan.addStage('abvf',false);plan.addStage('half',false);plan.addStage('pstf',false);plan.addStage('vatu');plan.addStage('cjct');plan.addStage('cfar',false);plan.addStage(finalReordering);plan.addStage({local:['init'],global:['pres','abvs','blws','psts','haln','dist','abvm','blwm','calt','clig']});// Setup the indic config for the selected script\nplan.unicodeScript=fromOpenType(plan.script);plan.indicConfig=INDIC_CONFIGS[plan.unicodeScript]||INDIC_CONFIGS.Default;plan.isOldSpec=plan.indicConfig.hasOldSpec&&plan.script[plan.script.length-1]!=='2';// TODO: turn off kern (Khmer) and liga features.\n};IndicShaper.assignFeatures=function assignFeatures(plan,glyphs){var _loop=function _loop(i){var codepoint=glyphs[i].codePoints[0];var d=INDIC_DECOMPOSITIONS[codepoint]||decompositions[codepoint];if(d){var decomposed=d.map(function(c){var g=plan.font.glyphForCodePoint(c);return new GlyphInfo(plan.font,g.id,[c],glyphs[i].features);});glyphs.splice.apply(glyphs,[i,1].concat(decomposed));}};// Decompose split matras\n// TODO: do this in a more general unicode normalizer\nfor(var i=glyphs.length-1;i>=0;i--){_loop(i);}};return IndicShaper;}(DefaultShaper),_class$6.zeroMarkWidths='NONE',_temp$2);function indicCategory(glyph){return trie$1.get(glyph.codePoints[0])>>8;}function indicPosition(glyph){return 1<<(trie$1.get(glyph.codePoints[0])&0xff);}var IndicInfo=function IndicInfo(category,position,syllableType,syllable){_classCallCheck(this,IndicInfo);this.category=category;this.position=position;this.syllableType=syllableType;this.syllable=syllable;};function setupSyllables(font,glyphs){var syllable=0;var last=0;for(var _iterator=stateMachine.match(glyphs.map(indicCategory)),_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var _ref2=_ref,start=_ref2[0],end=_ref2[1],tags=_ref2[2];if(start>last){++syllable;for(var _i2=last;_i2<start;_i2++){glyphs[_i2].shaperInfo=new IndicInfo(CATEGORIES.X,POSITIONS.End,'non_indic_cluster',syllable);}}++syllable;// Create shaper info\nfor(var _i3=start;_i3<=end;_i3++){glyphs[_i3].shaperInfo=new IndicInfo(1<<indicCategory(glyphs[_i3]),indicPosition(glyphs[_i3]),tags[0],syllable);}last=end+1;}if(last<glyphs.length){++syllable;for(var i=last;i<glyphs.length;i++){glyphs[i].shaperInfo=new IndicInfo(CATEGORIES.X,POSITIONS.End,'non_indic_cluster',syllable);}}}function isConsonant(glyph){return glyph.shaperInfo.category&CONSONANT_FLAGS;}function isJoiner(glyph){return glyph.shaperInfo.category&JOINER_FLAGS;}function isHalantOrCoeng(glyph){return glyph.shaperInfo.category&HALANT_OR_COENG_FLAGS;}function wouldSubstitute(glyphs,feature){for(var _iterator2=glyphs,_isArray2=Array.isArray(_iterator2),_i4=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _glyph$features;var _ref3;if(_isArray2){if(_i4>=_iterator2.length)break;_ref3=_iterator2[_i4++];}else{_i4=_iterator2.next();if(_i4.done)break;_ref3=_i4.value;}var glyph=_ref3;glyph.features=(_glyph$features={},_glyph$features[feature]=true,_glyph$features);}var GSUB=glyphs[0]._font._layoutEngine.engine.GSUBProcessor;GSUB.applyFeatures([feature],glyphs);return glyphs.length===1;}function consonantPosition(font,consonant,virama){var glyphs=[virama,consonant,virama];if(wouldSubstitute(glyphs.slice(0,2),'blwf')||wouldSubstitute(glyphs.slice(1,3),'blwf')){return POSITIONS.Below_C;}else if(wouldSubstitute(glyphs.slice(0,2),'pstf')||wouldSubstitute(glyphs.slice(1,3),'pstf')){return POSITIONS.Post_C;}else if(wouldSubstitute(glyphs.slice(0,2),'pref')||wouldSubstitute(glyphs.slice(1,3),'pref')){return POSITIONS.Post_C;}return POSITIONS.Base_C;}function initialReordering(font,glyphs,plan){var indicConfig=plan.indicConfig;var features=font._layoutEngine.engine.GSUBProcessor.features;var dottedCircle=font.glyphForCodePoint(0x25cc).id;var virama=font.glyphForCodePoint(indicConfig.virama).id;if(virama){var info=new GlyphInfo(font,virama,[indicConfig.virama]);for(var i=0;i<glyphs.length;i++){if(glyphs[i].shaperInfo.position===POSITIONS.Base_C){glyphs[i].shaperInfo.position=consonantPosition(font,glyphs[i].copy(),info);}}}for(var start=0,end=nextSyllable(glyphs,0);start<glyphs.length;start=end,end=nextSyllable(glyphs,start)){var _glyphs$start$shaperI=glyphs[start].shaperInfo,category=_glyphs$start$shaperI.category,syllableType=_glyphs$start$shaperI.syllableType;if(syllableType==='symbol_cluster'||syllableType==='non_indic_cluster'){continue;}if(syllableType==='broken_cluster'&&dottedCircle){var g=new GlyphInfo(font,dottedCircle,[0x25cc]);g.shaperInfo=new IndicInfo(1<<indicCategory(g),indicPosition(g),glyphs[start].shaperInfo.syllableType,glyphs[start].shaperInfo.syllable);// Insert after possible Repha.\nvar _i5=start;while(_i5<end&&glyphs[_i5].shaperInfo.category===CATEGORIES.Repha){_i5++;}glyphs.splice(_i5++,0,g);end++;}// 1. Find base consonant:\n//\n// The shaping engine finds the base consonant of the syllable, using the\n// following algorithm: starting from the end of the syllable, move backwards\n// until a consonant is found that does not have a below-base or post-base\n// form (post-base forms have to follow below-base forms), or that is not a\n// pre-base reordering Ra, or arrive at the first consonant. The consonant\n// stopped at will be the base.\nvar base=end;var limit=start;var hasReph=false;// If the syllable starts with Ra + Halant (in a script that has Reph)\n// and has more than one consonant, Ra is excluded from candidates for\n// base consonants.\nif(indicConfig.rephPos!==POSITIONS.Ra_To_Become_Reph&&features.rphf&&start+3<=end&&(indicConfig.rephMode==='Implicit'&&!isJoiner(glyphs[start+2])||indicConfig.rephMode==='Explicit'&&glyphs[start+2].shaperInfo.category===CATEGORIES.ZWJ)){// See if it matches the 'rphf' feature.\nvar _g=[glyphs[start].copy(),glyphs[start+1].copy(),glyphs[start+2].copy()];if(wouldSubstitute(_g.slice(0,2),'rphf')||indicConfig.rephMode==='Explicit'&&wouldSubstitute(_g,'rphf')){limit+=2;while(limit<end&&isJoiner(glyphs[limit])){limit++;}base=start;hasReph=true;}}else if(indicConfig.rephMode==='Log_Repha'&&glyphs[start].shaperInfo.category===CATEGORIES.Repha){limit++;while(limit<end&&isJoiner(glyphs[limit])){limit++;}base=start;hasReph=true;}switch(indicConfig.basePos){case'Last':{// starting from the end of the syllable, move backwards\nvar _i6=end;var seenBelow=false;do{var _info=glyphs[--_i6].shaperInfo;// until a consonant is found\nif(isConsonant(glyphs[_i6])){// that does not have a below-base or post-base form\n// (post-base forms have to follow below-base forms),\nif(_info.position!==POSITIONS.Below_C&&(_info.position!==POSITIONS.Post_C||seenBelow)){base=_i6;break;}// or that is not a pre-base reordering Ra,\n//\n// IMPLEMENTATION NOTES:\n//\n// Our pre-base reordering Ra's are marked POS_POST_C, so will be skipped\n// by the logic above already.\n//\n// or arrive at the first consonant. The consonant stopped at will\n// be the base.\nif(_info.position===POSITIONS.Below_C){seenBelow=true;}base=_i6;}else if(start<_i6&&_info.category===CATEGORIES.ZWJ&&glyphs[_i6-1].shaperInfo.category===CATEGORIES.H){// A ZWJ after a Halant stops the base search, and requests an explicit\n// half form.\n// A ZWJ before a Halant, requests a subjoined form instead, and hence\n// search continues.  This is particularly important for Bengali\n// sequence Ra,H,Ya that should form Ya-Phalaa by subjoining Ya.\nbreak;}}while(_i6>limit);break;}case'First':{// The first consonant is always the base.\nbase=start;// Mark all subsequent consonants as below.\nfor(var _i7=base+1;_i7<end;_i7++){if(isConsonant(glyphs[_i7])){glyphs[_i7].shaperInfo.position=POSITIONS.Below_C;}}}}// If the syllable starts with Ra + Halant (in a script that has Reph)\n// and has more than one consonant, Ra is excluded from candidates for\n// base consonants.\n//\n//  Only do this for unforced Reph. (ie. not for Ra,H,ZWJ)\nif(hasReph&&base===start&&limit-base<=2){hasReph=false;}// 2. Decompose and reorder Matras:\n//\n// Each matra and any syllable modifier sign in the cluster are moved to the\n// appropriate position relative to the consonant(s) in the cluster. The\n// shaping engine decomposes two- or three-part matras into their constituent\n// parts before any repositioning. Matra characters are classified by which\n// consonant in a conjunct they have affinity for and are reordered to the\n// following positions:\n//\n//   o Before first half form in the syllable\n//   o After subjoined consonants\n//   o After post-form consonant\n//   o After main consonant (for above marks)\n//\n// IMPLEMENTATION NOTES:\n//\n// The normalize() routine has already decomposed matras for us, so we don't\n// need to worry about that.\n// 3.  Reorder marks to canonical order:\n//\n// Adjacent nukta and halant or nukta and vedic sign are always repositioned\n// if necessary, so that the nukta is first.\n//\n// IMPLEMENTATION NOTES:\n//\n// We don't need to do this: the normalize() routine already did this for us.\n// Reorder characters\nfor(var _i8=start;_i8<base;_i8++){var _info2=glyphs[_i8].shaperInfo;_info2.position=Math.min(POSITIONS.Pre_C,_info2.position);}if(base<end){glyphs[base].shaperInfo.position=POSITIONS.Base_C;}// Mark final consonants.  A final consonant is one appearing after a matra,\n// like in Khmer.\nfor(var _i9=base+1;_i9<end;_i9++){if(glyphs[_i9].shaperInfo.category===CATEGORIES.M){for(var j=_i9+1;j<end;j++){if(isConsonant(glyphs[j])){glyphs[j].shaperInfo.position=POSITIONS.Final_C;break;}}break;}}// Handle beginning Ra\nif(hasReph){glyphs[start].shaperInfo.position=POSITIONS.Ra_To_Become_Reph;}// For old-style Indic script tags, move the first post-base Halant after\n// last consonant.\n//\n// Reports suggest that in some scripts Uniscribe does this only if there\n// is *not* a Halant after last consonant already (eg. Kannada), while it\n// does it unconditionally in other scripts (eg. Malayalam).  We don't\n// currently know about other scripts, so we single out Malayalam for now.\n//\n// Kannada test case:\n// U+0C9A,U+0CCD,U+0C9A,U+0CCD\n// With some versions of Lohit Kannada.\n// https://bugs.freedesktop.org/show_bug.cgi?id=59118\n//\n// Malayalam test case:\n// U+0D38,U+0D4D,U+0D31,U+0D4D,U+0D31,U+0D4D\n// With lohit-ttf-20121122/Lohit-Malayalam.ttf\nif(plan.isOldSpec){var disallowDoubleHalants=plan.unicodeScript!=='Malayalam';for(var _i10=base+1;_i10<end;_i10++){if(glyphs[_i10].shaperInfo.category===CATEGORIES.H){var _j=void 0;for(_j=end-1;_j>_i10;_j--){if(isConsonant(glyphs[_j])||disallowDoubleHalants&&glyphs[_j].shaperInfo.category===CATEGORIES.H){break;}}if(glyphs[_j].shaperInfo.category!==CATEGORIES.H&&_j>_i10){// Move Halant to after last consonant.\nvar t=glyphs[_i10];glyphs.splice.apply(glyphs,[_i10,0].concat(glyphs.splice(_i10+1,_j-_i10)));glyphs[_j]=t;}break;}}}// Attach misc marks to previous char to move with them.\nvar lastPos=POSITIONS.Start;for(var _i11=start;_i11<end;_i11++){var _info3=glyphs[_i11].shaperInfo;if(_info3.category&(JOINER_FLAGS|CATEGORIES.N|CATEGORIES.RS|CATEGORIES.CM|HALANT_OR_COENG_FLAGS&_info3.category)){_info3.position=lastPos;if(_info3.category===CATEGORIES.H&&_info3.position===POSITIONS.Pre_M){// Uniscribe doesn't move the Halant with Left Matra.\n// TEST: U+092B,U+093F,U+094DE\n// We follow.  This is important for the Sinhala\n// U+0DDA split matra since it decomposes to U+0DD9,U+0DCA\n// where U+0DD9 is a left matra and U+0DCA is the virama.\n// We don't want to move the virama with the left matra.\n// TEST: U+0D9A,U+0DDA\nfor(var _j2=_i11;_j2>start;_j2--){if(glyphs[_j2-1].shaperInfo.position!==POSITIONS.Pre_M){_info3.position=glyphs[_j2-1].shaperInfo.position;break;}}}}else if(_info3.position!==POSITIONS.SMVD){lastPos=_info3.position;}}// For post-base consonants let them own anything before them\n// since the last consonant or matra.\nvar last=base;for(var _i12=base+1;_i12<end;_i12++){if(isConsonant(glyphs[_i12])){for(var _j3=last+1;_j3<_i12;_j3++){if(glyphs[_j3].shaperInfo.position<POSITIONS.SMVD){glyphs[_j3].shaperInfo.position=glyphs[_i12].shaperInfo.position;}}last=_i12;}else if(glyphs[_i12].shaperInfo.category===CATEGORIES.M){last=_i12;}}var arr=glyphs.slice(start,end);arr.sort(function(a,b){return a.shaperInfo.position-b.shaperInfo.position;});glyphs.splice.apply(glyphs,[start,arr.length].concat(arr));// Find base again\nfor(var _i13=start;_i13<end;_i13++){if(glyphs[_i13].shaperInfo.position===POSITIONS.Base_C){base=_i13;break;}}// Setup features now\n// Reph\nfor(var _i14=start;_i14<end&&glyphs[_i14].shaperInfo.position===POSITIONS.Ra_To_Become_Reph;_i14++){glyphs[_i14].features.rphf=true;}// Pre-base\nvar blwf=!plan.isOldSpec&&indicConfig.blwfMode==='Pre_And_Post';for(var _i15=start;_i15<base;_i15++){glyphs[_i15].features.half=true;if(blwf){glyphs[_i15].features.blwf=true;}}// Post-base\nfor(var _i16=base+1;_i16<end;_i16++){glyphs[_i16].features.abvf=true;glyphs[_i16].features.pstf=true;glyphs[_i16].features.blwf=true;}if(plan.isOldSpec&&plan.unicodeScript==='Devanagari'){// Old-spec eye-lash Ra needs special handling.  From the\n// spec:\n//\n// \"The feature 'below-base form' is applied to consonants\n// having below-base forms and following the base consonant.\n// The exception is vattu, which may appear below half forms\n// as well as below the base glyph. The feature 'below-base\n// form' will be applied to all such occurrences of Ra as well.\"\n//\n// Test case: U+0924,U+094D,U+0930,U+094d,U+0915\n// with Sanskrit 2003 font.\n//\n// However, note that Ra,Halant,ZWJ is the correct way to\n// request eyelash form of Ra, so we wouldbn't inhibit it\n// in that sequence.\n//\n// Test case: U+0924,U+094D,U+0930,U+094d,U+200D,U+0915\nfor(var _i17=start;_i17+1<base;_i17++){if(glyphs[_i17].shaperInfo.category===CATEGORIES.Ra&&glyphs[_i17+1].shaperInfo.category===CATEGORIES.H&&(_i17+1===base||glyphs[_i17+2].shaperInfo.category===CATEGORIES.ZWJ)){glyphs[_i17].features.blwf=true;glyphs[_i17+1].features.blwf=true;}}}var prefLen=2;if(features.pref&&base+prefLen<end){// Find a Halant,Ra sequence and mark it for pre-base reordering processing.\nfor(var _i18=base+1;_i18+prefLen-1<end;_i18++){var _g2=[glyphs[_i18].copy(),glyphs[_i18+1].copy()];if(wouldSubstitute(_g2,'pref')){for(var _j4=0;_j4<prefLen;_j4++){glyphs[_i18++].features.pref=true;}// Mark the subsequent stuff with 'cfar'.  Used in Khmer.\n// Read the feature spec.\n// This allows distinguishing the following cases with MS Khmer fonts:\n// U+1784,U+17D2,U+179A,U+17D2,U+1782\n// U+1784,U+17D2,U+1782,U+17D2,U+179A\nif(features.cfar){for(;_i18<end;_i18++){glyphs[_i18].features.cfar=true;}}break;}}}// Apply ZWJ/ZWNJ effects\nfor(var _i19=start+1;_i19<end;_i19++){if(isJoiner(glyphs[_i19])){var nonJoiner=glyphs[_i19].shaperInfo.category===CATEGORIES.ZWNJ;var _j5=_i19;do{_j5--;// ZWJ/ZWNJ should disable CJCT.  They do that by simply\n// being there, since we don't skip them for the CJCT\n// feature (ie. F_MANUAL_ZWJ)\n// A ZWNJ disables HALF.\nif(nonJoiner){delete glyphs[_j5].features.half;}}while(_j5>start&&!isConsonant(glyphs[_j5]));}}}}function finalReordering(font,glyphs,plan){var indicConfig=plan.indicConfig;var features=font._layoutEngine.engine.GSUBProcessor.features;for(var start=0,end=nextSyllable(glyphs,0);start<glyphs.length;start=end,end=nextSyllable(glyphs,start)){// 4. Final reordering:\n//\n// After the localized forms and basic shaping forms GSUB features have been\n// applied (see below), the shaping engine performs some final glyph\n// reordering before applying all the remaining font features to the entire\n// cluster.\nvar tryPref=!!features.pref;// Find base again\nvar base=start;for(;base<end;base++){if(glyphs[base].shaperInfo.position>=POSITIONS.Base_C){if(tryPref&&base+1<end){for(var i=base+1;i<end;i++){if(glyphs[i].features.pref){if(!(glyphs[i].substituted&&glyphs[i].isLigated&&!glyphs[i].isMultiplied)){// Ok, this was a 'pref' candidate but didn't form any.\n// Base is around here...\nbase=i;while(base<end&&isHalantOrCoeng(glyphs[base])){base++;}glyphs[base].shaperInfo.position=POSITIONS.BASE_C;tryPref=false;}break;}}}// For Malayalam, skip over unformed below- (but NOT post-) forms.\nif(plan.unicodeScript==='Malayalam'){for(var _i20=base+1;_i20<end;_i20++){while(_i20<end&&isJoiner(glyphs[_i20])){_i20++;}if(_i20===end||!isHalantOrCoeng(glyphs[_i20])){break;}_i20++;// Skip halant.\nwhile(_i20<end&&isJoiner(glyphs[_i20])){_i20++;}if(_i20<end&&isConsonant(glyphs[_i20])&&glyphs[_i20].shaperInfo.position===POSITIONS.Below_C){base=_i20;glyphs[base].shaperInfo.position=POSITIONS.Base_C;}}}if(start<base&&glyphs[base].shaperInfo.position>POSITIONS.Base_C){base--;}break;}}if(base===end&&start<base&&glyphs[base-1].shaperInfo.category===CATEGORIES.ZWJ){base--;}if(base<end){while(start<base&&glyphs[base].shaperInfo.category&(CATEGORIES.N|HALANT_OR_COENG_FLAGS)){base--;}}// o Reorder matras:\n//\n// If a pre-base matra character had been reordered before applying basic\n// features, the glyph can be moved closer to the main consonant based on\n// whether half-forms had been formed. Actual position for the matra is\n// defined as “after last standalone halant glyph, after initial matra\n// position and before the main consonant”. If ZWJ or ZWNJ follow this\n// halant, position is moved after it.\n//\nif(start+1<end&&start<base){// Otherwise there can't be any pre-base matra characters.\n// If we lost track of base, alas, position before last thingy.\nvar newPos=base===end?base-2:base-1;// Malayalam / Tamil do not have \"half\" forms or explicit virama forms.\n// The glyphs formed by 'half' are Chillus or ligated explicit viramas.\n// We want to position matra after them.\nif(plan.unicodeScript!=='Malayalam'&&plan.unicodeScript!=='Tamil'){while(newPos>start&&!(glyphs[newPos].shaperInfo.category&(CATEGORIES.M|HALANT_OR_COENG_FLAGS))){newPos--;}// If we found no Halant we are done.\n// Otherwise only proceed if the Halant does\n// not belong to the Matra itself!\nif(isHalantOrCoeng(glyphs[newPos])&&glyphs[newPos].shaperInfo.position!==POSITIONS.Pre_M){// If ZWJ or ZWNJ follow this halant, position is moved after it.\nif(newPos+1<end&&isJoiner(glyphs[newPos+1])){newPos++;}}else{newPos=start;// No move.\n}}if(start<newPos&&glyphs[newPos].shaperInfo.position!==POSITIONS.Pre_M){// Now go see if there's actually any matras...\nfor(var _i21=newPos;_i21>start;_i21--){if(glyphs[_i21-1].shaperInfo.position===POSITIONS.Pre_M){var oldPos=_i21-1;if(oldPos<base&&base<=newPos){// Shouldn't actually happen.\nbase--;}var tmp=glyphs[oldPos];glyphs.splice.apply(glyphs,[oldPos,0].concat(glyphs.splice(oldPos+1,newPos-oldPos)));glyphs[newPos]=tmp;newPos--;}}}}// o Reorder reph:\n//\n// Reph’s original position is always at the beginning of the syllable,\n// (i.e. it is not reordered at the character reordering stage). However,\n// it will be reordered according to the basic-forms shaping results.\n// Possible positions for reph, depending on the script, are; after main,\n// before post-base consonant forms, and after post-base consonant forms.\n// Two cases:\n//\n// - If repha is encoded as a sequence of characters (Ra,H or Ra,H,ZWJ), then\n//   we should only move it if the sequence ligated to the repha form.\n//\n// - If repha is encoded separately and in the logical position, we should only\n//   move it if it did NOT ligate.  If it ligated, it's probably the font trying\n//   to make it work without the reordering.\nif(start+1<end&&glyphs[start].shaperInfo.position===POSITIONS.Ra_To_Become_Reph&&glyphs[start].shaperInfo.category===CATEGORIES.Repha!==(glyphs[start].isLigated&&!glyphs[start].isMultiplied)){var newRephPos=void 0;var rephPos=indicConfig.rephPos;var found=false;// 1. If reph should be positioned after post-base consonant forms,\n//    proceed to step 5.\nif(rephPos!==POSITIONS.After_Post){//  2. If the reph repositioning class is not after post-base: target\n//     position is after the first explicit halant glyph between the\n//     first post-reph consonant and last main consonant. If ZWJ or ZWNJ\n//     are following this halant, position is moved after it. If such\n//     position is found, this is the target position. Otherwise,\n//     proceed to the next step.\n//\n//     Note: in old-implementation fonts, where classifications were\n//     fixed in shaping engine, there was no case where reph position\n//     will be found on this step.\nnewRephPos=start+1;while(newRephPos<base&&!isHalantOrCoeng(glyphs[newRephPos])){newRephPos++;}if(newRephPos<base&&isHalantOrCoeng(glyphs[newRephPos])){// ->If ZWJ or ZWNJ are following this halant, position is moved after it.\nif(newRephPos+1<base&&isJoiner(glyphs[newRephPos+1])){newRephPos++;}found=true;}// 3. If reph should be repositioned after the main consonant: find the\n//    first consonant not ligated with main, or find the first\n//    consonant that is not a potential pre-base reordering Ra.\nif(!found&&rephPos===POSITIONS.After_Main){newRephPos=base;while(newRephPos+1<end&&glyphs[newRephPos+1].shaperInfo.position<=POSITIONS.After_Main){newRephPos++;}found=newRephPos<end;}// 4. If reph should be positioned before post-base consonant, find\n//    first post-base classified consonant not ligated with main. If no\n//    consonant is found, the target position should be before the\n//    first matra, syllable modifier sign or vedic sign.\n//\n// This is our take on what step 4 is trying to say (and failing, BADLY).\nif(!found&&rephPos===POSITIONS.After_Sub){newRephPos=base;while(newRephPos+1<end&&!(glyphs[newRephPos+1].shaperInfo.position&(POSITIONS.Post_C|POSITIONS.After_Post|POSITIONS.SMVD))){newRephPos++;}found=newRephPos<end;}}//  5. If no consonant is found in steps 3 or 4, move reph to a position\n//     immediately before the first post-base matra, syllable modifier\n//     sign or vedic sign that has a reordering class after the intended\n//     reph position. For example, if the reordering position for reph\n//     is post-main, it will skip above-base matras that also have a\n//     post-main position.\nif(!found){// Copied from step 2.\nnewRephPos=start+1;while(newRephPos<base&&!isHalantOrCoeng(glyphs[newRephPos])){newRephPos++;}if(newRephPos<base&&isHalantOrCoeng(glyphs[newRephPos])){// ->If ZWJ or ZWNJ are following this halant, position is moved after it.\nif(newRephPos+1<base&&isJoiner(glyphs[newRephPos+1])){newRephPos++;}found=true;}}// 6. Otherwise, reorder reph to the end of the syllable.\nif(!found){newRephPos=end-1;while(newRephPos>start&&glyphs[newRephPos].shaperInfo.position===POSITIONS.SMVD){newRephPos--;}// If the Reph is to be ending up after a Matra,Halant sequence,\n// position it before that Halant so it can interact with the Matra.\n// However, if it's a plain Consonant,Halant we shouldn't do that.\n// Uniscribe doesn't do this.\n// TEST: U+0930,U+094D,U+0915,U+094B,U+094D\nif(isHalantOrCoeng(glyphs[newRephPos])){for(var _i22=base+1;_i22<newRephPos;_i22++){if(glyphs[_i22].shaperInfo.category===CATEGORIES.M){newRephPos--;}}}}var reph=glyphs[start];glyphs.splice.apply(glyphs,[start,0].concat(glyphs.splice(start+1,newRephPos-start)));glyphs[newRephPos]=reph;if(start<base&&base<=newRephPos){base--;}}// o Reorder pre-base reordering consonants:\n//\n// If a pre-base reordering consonant is found, reorder it according to\n// the following rules:\nif(tryPref&&base+1<end){for(var _i23=base+1;_i23<end;_i23++){if(glyphs[_i23].features.pref){// 1. Only reorder a glyph produced by substitution during application\n//    of the <pref> feature. (Note that a font may shape a Ra consonant with\n//    the feature generally but block it in certain contexts.)\n// Note: We just check that something got substituted.  We don't check that\n// the <pref> feature actually did it...\n//\n// Reorder pref only if it ligated.\nif(glyphs[_i23].isLigated&&!glyphs[_i23].isMultiplied){// 2. Try to find a target position the same way as for pre-base matra.\n//    If it is found, reorder pre-base consonant glyph.\n//\n// 3. If position is not found, reorder immediately before main\n//    consonant.\nvar _newPos=base;// Malayalam / Tamil do not have \"half\" forms or explicit virama forms.\n// The glyphs formed by 'half' are Chillus or ligated explicit viramas.\n// We want to position matra after them.\nif(plan.unicodeScript!=='Malayalam'&&plan.unicodeScript!=='Tamil'){while(_newPos>start&&!(glyphs[_newPos-1].shaperInfo.category&(CATEGORIES.M|HALANT_OR_COENG_FLAGS))){_newPos--;}// In Khmer coeng model, a H,Ra can go *after* matras.  If it goes after a\n// split matra, it should be reordered to *before* the left part of such matra.\nif(_newPos>start&&glyphs[_newPos-1].shaperInfo.category===CATEGORIES.M){var _oldPos2=_i23;for(var j=base+1;j<_oldPos2;j++){if(glyphs[j].shaperInfo.category===CATEGORIES.M){_newPos--;break;}}}}if(_newPos>start&&isHalantOrCoeng(glyphs[_newPos-1])){// -> If ZWJ or ZWNJ follow this halant, position is moved after it.\nif(_newPos<end&&isJoiner(glyphs[_newPos])){_newPos++;}}var _oldPos=_i23;var _tmp=glyphs[_oldPos];glyphs.splice.apply(glyphs,[_newPos+1,0].concat(glyphs.splice(_newPos,_oldPos-_newPos)));glyphs[_newPos]=_tmp;if(_newPos<=base&&base<_oldPos){base++;}}break;}}}// Apply 'init' to the Left Matra if it's a word start.\nif(glyphs[start].shaperInfo.position===POSITIONS.Pre_M&&(!start||!/Cf|Mn/.test(unicode.getCategory(glyphs[start-1].codePoints[0])))){glyphs[start].features.init=true;}}}function nextSyllable(glyphs,start){if(start>=glyphs.length)return start;var syllable=glyphs[start].shaperInfo.syllable;while(++start<glyphs.length&&glyphs[start].shaperInfo.syllable===syllable){}return start;}var _class$7;var _temp$3;var categories$1=useData.categories;var decompositions$2=useData.decompositions;var trie$2=new UnicodeTrie(Buffer(\" \",\"base64\"));var stateMachine$1=new StateMachine(useData);/**\r\n     * This shaper is an implementation of the Universal Shaping Engine, which\r\n     * uses Unicode data to shape a number of scripts without a dedicated shaping engine.\r\n     * See https://www.microsoft.com/typography/OpenTypeDev/USE/intro.htm.\r\n     */var UniversalShaper=(_temp$3=_class$7=function(_DefaultShaper){_inherits(UniversalShaper,_DefaultShaper);function UniversalShaper(){_classCallCheck(this,UniversalShaper);return _possibleConstructorReturn(this,_DefaultShaper.apply(this,arguments));}UniversalShaper.planFeatures=function planFeatures(plan){plan.addStage(setupSyllables$1);// Default glyph pre-processing group\nplan.addStage(['locl','ccmp','nukt','akhn']);// Reordering group\nplan.addStage(clearSubstitutionFlags);plan.addStage(['rphf'],false);plan.addStage(recordRphf);plan.addStage(clearSubstitutionFlags);plan.addStage(['pref']);plan.addStage(recordPref);// Orthographic unit shaping group\nplan.addStage(['rkrf','abvf','blwf','half','pstf','vatu','cjct']);plan.addStage(reorder);// Topographical features\n// Scripts that need this are handled by the Arabic shaper, not implemented here for now.\n// plan.addStage(['isol', 'init', 'medi', 'fina', 'med2', 'fin2', 'fin3'], false);\n// Standard topographic presentation and positional feature application\nplan.addStage(['abvs','blws','pres','psts','dist','abvm','blwm']);};UniversalShaper.assignFeatures=function assignFeatures(plan,glyphs){var _loop=function _loop(i){var codepoint=glyphs[i].codePoints[0];if(decompositions$2[codepoint]){var decomposed=decompositions$2[codepoint].map(function(c){var g=plan.font.glyphForCodePoint(c);return new GlyphInfo(plan.font,g.id,[c],glyphs[i].features);});glyphs.splice.apply(glyphs,[i,1].concat(decomposed));}};// Decompose split vowels\n// TODO: do this in a more general unicode normalizer\nfor(var i=glyphs.length-1;i>=0;i--){_loop(i);}};return UniversalShaper;}(DefaultShaper),_class$7.zeroMarkWidths='BEFORE_GPOS',_temp$3);function useCategory(glyph){return trie$2.get(glyph.codePoints[0]);}var USEInfo=function USEInfo(category,syllableType,syllable){_classCallCheck(this,USEInfo);this.category=category;this.syllableType=syllableType;this.syllable=syllable;};function setupSyllables$1(font,glyphs){var syllable=0;for(var _iterator=stateMachine$1.match(glyphs.map(useCategory)),_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var _ref2=_ref,start=_ref2[0],end=_ref2[1],tags=_ref2[2];++syllable;// Create shaper info\nfor(var i=start;i<=end;i++){glyphs[i].shaperInfo=new USEInfo(categories$1[useCategory(glyphs[i])],tags[0],syllable);}// Assign rphf feature\nvar limit=glyphs[start].shaperInfo.category==='R'?1:Math.min(3,end-start);for(var _i2=start;_i2<start+limit;_i2++){glyphs[_i2].features.rphf=true;}}}function clearSubstitutionFlags(font,glyphs){for(var _iterator2=glyphs,_isArray2=Array.isArray(_iterator2),_i3=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref3;if(_isArray2){if(_i3>=_iterator2.length)break;_ref3=_iterator2[_i3++];}else{_i3=_iterator2.next();if(_i3.done)break;_ref3=_i3.value;}var glyph=_ref3;glyph.substituted=false;}}function recordRphf(font,glyphs){for(var _iterator3=glyphs,_isArray3=Array.isArray(_iterator3),_i4=0,_iterator3=_isArray3?_iterator3:_getIterator(_iterator3);;){var _ref4;if(_isArray3){if(_i4>=_iterator3.length)break;_ref4=_iterator3[_i4++];}else{_i4=_iterator3.next();if(_i4.done)break;_ref4=_i4.value;}var glyph=_ref4;if(glyph.substituted&&glyph.features.rphf){// Mark a substituted repha.\nglyph.shaperInfo.category='R';}}}function recordPref(font,glyphs){for(var _iterator4=glyphs,_isArray4=Array.isArray(_iterator4),_i5=0,_iterator4=_isArray4?_iterator4:_getIterator(_iterator4);;){var _ref5;if(_isArray4){if(_i5>=_iterator4.length)break;_ref5=_iterator4[_i5++];}else{_i5=_iterator4.next();if(_i5.done)break;_ref5=_i5.value;}var glyph=_ref5;if(glyph.substituted){// Mark a substituted pref as VPre, as they behave the same way.\nglyph.shaperInfo.category='VPre';}}}function reorder(font,glyphs){var dottedCircle=font.glyphForCodePoint(0x25cc).id;for(var start=0,end=nextSyllable$1(glyphs,0);start<glyphs.length;start=end,end=nextSyllable$1(glyphs,start)){var i=void 0,j=void 0;var info=glyphs[start].shaperInfo;var type=info.syllableType;// Only a few syllable types need reordering.\nif(type!=='virama_terminated_cluster'&&type!=='standard_cluster'&&type!=='broken_cluster'){continue;}// Insert a dotted circle glyph in broken clusters.\nif(type==='broken_cluster'&&dottedCircle){var g=new GlyphInfo(font,dottedCircle,[0x25cc]);g.shaperInfo=info;// Insert after possible Repha.\nfor(i=start;i<end&&glyphs[i].shaperInfo.category==='R';i++){}glyphs.splice(++i,0,g);end++;}// Move things forward.\nif(info.category==='R'&&end-start>1){// Got a repha. Reorder it to after first base, before first halant.\nfor(i=start+1;i<end;i++){info=glyphs[i].shaperInfo;if(isBase(info)||isHalant(glyphs[i])){// If we hit a halant, move before it; otherwise it's a base: move to it's\n// place, and shift things in between backward.\nif(isHalant(glyphs[i])){i--;}glyphs.splice.apply(glyphs,[start,0].concat(glyphs.splice(start+1,i-start),[glyphs[i]]));break;}}}// Move things back.\nfor(i=start,j=end;i<end;i++){info=glyphs[i].shaperInfo;if(isBase(info)||isHalant(glyphs[i])){// If we hit a halant, move after it; otherwise it's a base: move to it's\n// place, and shift things in between backward.\nj=isHalant(glyphs[i])?i+1:i;}else if((info.category==='VPre'||info.category==='VMPre')&&j<i){glyphs.splice.apply(glyphs,[j,1,glyphs[i]].concat(glyphs.splice(j,i-j)));}}}}function nextSyllable$1(glyphs,start){if(start>=glyphs.length)return start;var syllable=glyphs[start].shaperInfo.syllable;while(++start<glyphs.length&&glyphs[start].shaperInfo.syllable===syllable){}return start;}function isHalant(glyph){return glyph.shaperInfo.category==='H'&&!glyph.isLigated;}function isBase(info){return info.category==='B'||info.category==='GB';}var SHAPERS={arab:ArabicShaper,// Arabic\nmong:ArabicShaper,// Mongolian\nsyrc:ArabicShaper,// Syriac\n'nko ':ArabicShaper,// N'Ko\nphag:ArabicShaper,// Phags Pa\nmand:ArabicShaper,// Mandaic\nmani:ArabicShaper,// Manichaean\nphlp:ArabicShaper,// Psalter Pahlavi\nhang:HangulShaper,// Hangul\nbng2:IndicShaper,// Bengali\nbeng:IndicShaper,// Bengali\ndev2:IndicShaper,// Devanagari\ndeva:IndicShaper,// Devanagari\ngjr2:IndicShaper,// Gujarati\ngujr:IndicShaper,// Gujarati\nguru:IndicShaper,// Gurmukhi\ngur2:IndicShaper,// Gurmukhi\nknda:IndicShaper,// Kannada\nknd2:IndicShaper,// Kannada\nmlm2:IndicShaper,// Malayalam\nmlym:IndicShaper,// Malayalam\nory2:IndicShaper,// Oriya\norya:IndicShaper,// Oriya\ntaml:IndicShaper,// Tamil\ntml2:IndicShaper,// Tamil\ntelu:IndicShaper,// Telugu\ntel2:IndicShaper,// Telugu\nkhmr:IndicShaper,// Khmer\nbali:UniversalShaper,// Balinese\nbatk:UniversalShaper,// Batak\nbrah:UniversalShaper,// Brahmi\nbugi:UniversalShaper,// Buginese\nbuhd:UniversalShaper,// Buhid\ncakm:UniversalShaper,// Chakma\ncham:UniversalShaper,// Cham\ndupl:UniversalShaper,// Duployan\negyp:UniversalShaper,// Egyptian Hieroglyphs\ngran:UniversalShaper,// Grantha\nhano:UniversalShaper,// Hanunoo\njava:UniversalShaper,// Javanese\nkthi:UniversalShaper,// Kaithi\nkali:UniversalShaper,// Kayah Li\nkhar:UniversalShaper,// Kharoshthi\nkhoj:UniversalShaper,// Khojki\nsind:UniversalShaper,// Khudawadi\nlepc:UniversalShaper,// Lepcha\nlimb:UniversalShaper,// Limbu\nmahj:UniversalShaper,// Mahajani\n// mand: UniversalShaper, // Mandaic\n// mani: UniversalShaper, // Manichaean\nmtei:UniversalShaper,// Meitei Mayek\nmodi:UniversalShaper,// Modi\n// mong: UniversalShaper, // Mongolian\n// 'nko ': UniversalShaper, // N’Ko\nhmng:UniversalShaper,// Pahawh Hmong\n// phag: UniversalShaper, // Phags-pa\n// phlp: UniversalShaper, // Psalter Pahlavi\nrjng:UniversalShaper,// Rejang\nsaur:UniversalShaper,// Saurashtra\nshrd:UniversalShaper,// Sharada\nsidd:UniversalShaper,// Siddham\nsinh:UniversalShaper,// Sinhala\nsund:UniversalShaper,// Sundanese\nsylo:UniversalShaper,// Syloti Nagri\ntglg:UniversalShaper,// Tagalog\ntagb:UniversalShaper,// Tagbanwa\ntale:UniversalShaper,// Tai Le\nlana:UniversalShaper,// Tai Tham\ntavt:UniversalShaper,// Tai Viet\ntakr:UniversalShaper,// Takri\ntibt:UniversalShaper,// Tibetan\ntfng:UniversalShaper,// Tifinagh\ntirh:UniversalShaper,// Tirhuta\nlatn:DefaultShaper,// Latin\nDFLT:DefaultShaper// Default\n};function choose(script){if(!Array.isArray(script)){script=[script];}for(var _iterator=script,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var s=_ref;var shaper=SHAPERS[s];if(shaper){return shaper;}}return DefaultShaper;}var GSUBProcessor=function(_OTProcessor){_inherits(GSUBProcessor,_OTProcessor);function GSUBProcessor(){_classCallCheck(this,GSUBProcessor);return _possibleConstructorReturn(this,_OTProcessor.apply(this,arguments));}GSUBProcessor.prototype.applyLookup=function applyLookup(lookupType,table){var _this2=this;switch(lookupType){case 1:{// Single Substitution\nvar index=this.coverageIndex(table.coverage);if(index===-1){return false;}var glyph=this.glyphIterator.cur;switch(table.version){case 1:glyph.id=glyph.id+table.deltaGlyphID&0xffff;break;case 2:glyph.id=table.substitute.get(index);break;}return true;}case 2:{// Multiple Substitution\nvar _index=this.coverageIndex(table.coverage);if(_index!==-1){var _glyphs;var sequence=table.sequences.get(_index);if(sequence.length===0){// If the sequence length is zero, delete the glyph.\n// The OpenType spec disallows this, but seems like Harfbuzz and Uniscribe allow it.\nthis.glyphs.splice(this.glyphIterator.index,1);return true;}this.glyphIterator.cur.id=sequence[0];this.glyphIterator.cur.ligatureComponent=0;var features=this.glyphIterator.cur.features;var curGlyph=this.glyphIterator.cur;var replacement=sequence.slice(1).map(function(gid,i){var glyph=new GlyphInfo(_this2.font,gid,undefined,features);glyph.shaperInfo=curGlyph.shaperInfo;glyph.isLigated=curGlyph.isLigated;glyph.ligatureComponent=i+1;glyph.substituted=true;glyph.isMultiplied=true;return glyph;});(_glyphs=this.glyphs).splice.apply(_glyphs,[this.glyphIterator.index+1,0].concat(replacement));return true;}return false;}case 3:{// Alternate Substitution\nvar _index2=this.coverageIndex(table.coverage);if(_index2!==-1){var USER_INDEX=0;// TODO\nthis.glyphIterator.cur.id=table.alternateSet.get(_index2)[USER_INDEX];return true;}return false;}case 4:{// Ligature Substitution\nvar _index3=this.coverageIndex(table.coverage);if(_index3===-1){return false;}for(var _iterator=table.ligatureSets.get(_index3),_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var ligature=_ref;var matched=this.sequenceMatchIndices(1,ligature.components);if(!matched){continue;}var _curGlyph=this.glyphIterator.cur;// Concatenate all of the characters the new ligature will represent\nvar characters=_curGlyph.codePoints.slice();for(var _iterator2=matched,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var _index4=_ref2;characters.push.apply(characters,this.glyphs[_index4].codePoints);}// Create the replacement ligature glyph\nvar ligatureGlyph=new GlyphInfo(this.font,ligature.glyph,characters,_curGlyph.features);ligatureGlyph.shaperInfo=_curGlyph.shaperInfo;ligatureGlyph.isLigated=true;ligatureGlyph.substituted=true;// From Harfbuzz:\n// - If it *is* a mark ligature, we don't allocate a new ligature id, and leave\n//   the ligature to keep its old ligature id.  This will allow it to attach to\n//   a base ligature in GPOS.  Eg. if the sequence is: LAM,LAM,SHADDA,FATHA,HEH,\n//   and LAM,LAM,HEH for a ligature, they will leave SHADDA and FATHA with a\n//   ligature id and component value of 2.  Then if SHADDA,FATHA form a ligature\n//   later, we don't want them to lose their ligature id/component, otherwise\n//   GPOS will fail to correctly position the mark ligature on top of the\n//   LAM,LAM,HEH ligature. See https://bugzilla.gnome.org/show_bug.cgi?id=676343\n//\n// - If a ligature is formed of components that some of which are also ligatures\n//   themselves, and those ligature components had marks attached to *their*\n//   components, we have to attach the marks to the new ligature component\n//   positions!  Now *that*'s tricky!  And these marks may be following the\n//   last component of the whole sequence, so we should loop forward looking\n//   for them and update them.\n//\n//   Eg. the sequence is LAM,LAM,SHADDA,FATHA,HEH, and the font first forms a\n//   'calt' ligature of LAM,HEH, leaving the SHADDA and FATHA with a ligature\n//   id and component == 1.  Now, during 'liga', the LAM and the LAM-HEH ligature\n//   form a LAM-LAM-HEH ligature.  We need to reassign the SHADDA and FATHA to\n//   the new ligature with a component value of 2.\n//\n//   This in fact happened to a font...  See https://bugzilla.gnome.org/show_bug.cgi?id=437633\nvar isMarkLigature=_curGlyph.isMark;for(var i=0;i<matched.length&&isMarkLigature;i++){isMarkLigature=this.glyphs[matched[i]].isMark;}ligatureGlyph.ligatureID=isMarkLigature?null:this.ligatureID++;var lastLigID=_curGlyph.ligatureID;var lastNumComps=_curGlyph.codePoints.length;var curComps=lastNumComps;var idx=this.glyphIterator.index+1;// Set ligatureID and ligatureComponent on glyphs that were skipped in the matched sequence.\n// This allows GPOS to attach marks to the correct ligature components.\nfor(var _iterator3=matched,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_getIterator(_iterator3);;){var _ref3;if(_isArray3){if(_i3>=_iterator3.length)break;_ref3=_iterator3[_i3++];}else{_i3=_iterator3.next();if(_i3.done)break;_ref3=_i3.value;}var matchIndex=_ref3;// Don't assign new ligature components for mark ligatures (see above)\nif(isMarkLigature){idx=matchIndex;}else{while(idx<matchIndex){var ligatureComponent=curComps-lastNumComps+Math.min(this.glyphs[idx].ligatureComponent||1,lastNumComps);this.glyphs[idx].ligatureID=ligatureGlyph.ligatureID;this.glyphs[idx].ligatureComponent=ligatureComponent;idx++;}}lastLigID=this.glyphs[idx].ligatureID;lastNumComps=this.glyphs[idx].codePoints.length;curComps+=lastNumComps;idx++;// skip base glyph\n}// Adjust ligature components for any marks following\nif(lastLigID&&!isMarkLigature){for(var _i4=idx;_i4<this.glyphs.length;_i4++){if(this.glyphs[_i4].ligatureID===lastLigID){var ligatureComponent=curComps-lastNumComps+Math.min(this.glyphs[_i4].ligatureComponent||1,lastNumComps);this.glyphs[_i4].ligatureComponent=ligatureComponent;}else{break;}}}// Delete the matched glyphs, and replace the current glyph with the ligature glyph\nfor(var _i5=matched.length-1;_i5>=0;_i5--){this.glyphs.splice(matched[_i5],1);}this.glyphs[this.glyphIterator.index]=ligatureGlyph;return true;}return false;}case 5:// Contextual Substitution\nreturn this.applyContext(table);case 6:// Chaining Contextual Substitution\nreturn this.applyChainingContext(table);case 7:// Extension Substitution\nreturn this.applyLookup(table.lookupType,table.extension);default:throw new Error('GSUB lookupType '+lookupType+' is not supported');}};return GSUBProcessor;}(OTProcessor);var GPOSProcessor=function(_OTProcessor){_inherits(GPOSProcessor,_OTProcessor);function GPOSProcessor(){_classCallCheck(this,GPOSProcessor);return _possibleConstructorReturn(this,_OTProcessor.apply(this,arguments));}GPOSProcessor.prototype.applyPositionValue=function applyPositionValue(sequenceIndex,value){var position=this.positions[this.glyphIterator.peekIndex(sequenceIndex)];if(value.xAdvance!=null){position.xAdvance+=value.xAdvance;}if(value.yAdvance!=null){position.yAdvance+=value.yAdvance;}if(value.xPlacement!=null){position.xOffset+=value.xPlacement;}if(value.yPlacement!=null){position.yOffset+=value.yPlacement;}// Adjustments for font variations\nvar variationProcessor=this.font._variationProcessor;var variationStore=this.font.GDEF&&this.font.GDEF.itemVariationStore;if(variationProcessor&&variationStore){if(value.xPlaDevice){position.xOffset+=variationProcessor.getDelta(variationStore,value.xPlaDevice.a,value.xPlaDevice.b);}if(value.yPlaDevice){position.yOffset+=variationProcessor.getDelta(variationStore,value.yPlaDevice.a,value.yPlaDevice.b);}if(value.xAdvDevice){position.xAdvance+=variationProcessor.getDelta(variationStore,value.xAdvDevice.a,value.xAdvDevice.b);}if(value.yAdvDevice){position.yAdvance+=variationProcessor.getDelta(variationStore,value.yAdvDevice.a,value.yAdvDevice.b);}}// TODO: device tables\n};GPOSProcessor.prototype.applyLookup=function applyLookup(lookupType,table){switch(lookupType){case 1:{// Single positioning value\nvar index=this.coverageIndex(table.coverage);if(index===-1){return false;}switch(table.version){case 1:this.applyPositionValue(0,table.value);break;case 2:this.applyPositionValue(0,table.values.get(index));break;}return true;}case 2:{// Pair Adjustment Positioning\nvar nextGlyph=this.glyphIterator.peek();if(!nextGlyph){return false;}var _index=this.coverageIndex(table.coverage);if(_index===-1){return false;}switch(table.version){case 1:// Adjustments for glyph pairs\nvar set=table.pairSets.get(_index);for(var _iterator=set,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var _pair=_ref;if(_pair.secondGlyph===nextGlyph.id){this.applyPositionValue(0,_pair.value1);this.applyPositionValue(1,_pair.value2);return true;}}return false;case 2:// Class pair adjustment\nvar class1=this.getClassID(this.glyphIterator.cur.id,table.classDef1);var class2=this.getClassID(nextGlyph.id,table.classDef2);if(class1===-1||class2===-1){return false;}var pair=table.classRecords.get(class1).get(class2);this.applyPositionValue(0,pair.value1);this.applyPositionValue(1,pair.value2);return true;}}case 3:{// Cursive Attachment Positioning\nvar nextIndex=this.glyphIterator.peekIndex();var _nextGlyph=this.glyphs[nextIndex];if(!_nextGlyph){return false;}var curRecord=table.entryExitRecords[this.coverageIndex(table.coverage)];if(!curRecord||!curRecord.exitAnchor){return false;}var nextRecord=table.entryExitRecords[this.coverageIndex(table.coverage,_nextGlyph.id)];if(!nextRecord||!nextRecord.entryAnchor){return false;}var entry=this.getAnchor(nextRecord.entryAnchor);var exit=this.getAnchor(curRecord.exitAnchor);var cur=this.positions[this.glyphIterator.index];var next=this.positions[nextIndex];switch(this.direction){case'ltr':cur.xAdvance=exit.x+cur.xOffset;var d=entry.x+next.xOffset;next.xAdvance-=d;next.xOffset-=d;break;case'rtl':d=exit.x+cur.xOffset;cur.xAdvance-=d;cur.xOffset-=d;next.xAdvance=entry.x+next.xOffset;break;}if(this.glyphIterator.flags.rightToLeft){this.glyphIterator.cur.cursiveAttachment=nextIndex;cur.yOffset=entry.y-exit.y;}else{_nextGlyph.cursiveAttachment=this.glyphIterator.index;cur.yOffset=exit.y-entry.y;}return true;}case 4:{// Mark to base positioning\nvar markIndex=this.coverageIndex(table.markCoverage);if(markIndex===-1){return false;}// search backward for a base glyph\nvar baseGlyphIndex=this.glyphIterator.index;while(--baseGlyphIndex>=0&&(this.glyphs[baseGlyphIndex].isMark||this.glyphs[baseGlyphIndex].ligatureComponent>0)){}if(baseGlyphIndex<0){return false;}var baseIndex=this.coverageIndex(table.baseCoverage,this.glyphs[baseGlyphIndex].id);if(baseIndex===-1){return false;}var markRecord=table.markArray[markIndex];var baseAnchor=table.baseArray[baseIndex][markRecord.class];this.applyAnchor(markRecord,baseAnchor,baseGlyphIndex);return true;}case 5:{// Mark to ligature positioning\nvar _markIndex=this.coverageIndex(table.markCoverage);if(_markIndex===-1){return false;}// search backward for a base glyph\nvar _baseGlyphIndex=this.glyphIterator.index;while(--_baseGlyphIndex>=0&&this.glyphs[_baseGlyphIndex].isMark){}if(_baseGlyphIndex<0){return false;}var ligIndex=this.coverageIndex(table.ligatureCoverage,this.glyphs[_baseGlyphIndex].id);if(ligIndex===-1){return false;}var ligAttach=table.ligatureArray[ligIndex];var markGlyph=this.glyphIterator.cur;var ligGlyph=this.glyphs[_baseGlyphIndex];var compIndex=ligGlyph.ligatureID&&ligGlyph.ligatureID===markGlyph.ligatureID&&markGlyph.ligatureComponent>0?Math.min(markGlyph.ligatureComponent,ligGlyph.codePoints.length)-1:ligGlyph.codePoints.length-1;var _markRecord=table.markArray[_markIndex];var _baseAnchor=ligAttach[compIndex][_markRecord.class];this.applyAnchor(_markRecord,_baseAnchor,_baseGlyphIndex);return true;}case 6:{// Mark to mark positioning\nvar mark1Index=this.coverageIndex(table.mark1Coverage);if(mark1Index===-1){return false;}// get the previous mark to attach to\nvar prevIndex=this.glyphIterator.peekIndex(-1);var prev=this.glyphs[prevIndex];if(!prev||!prev.isMark){return false;}var _cur=this.glyphIterator.cur;// The following logic was borrowed from Harfbuzz\nvar good=false;if(_cur.ligatureID===prev.ligatureID){if(!_cur.ligatureID){// Marks belonging to the same base\ngood=true;}else if(_cur.ligatureComponent===prev.ligatureComponent){// Marks belonging to the same ligature component\ngood=true;}}else{// If ligature ids don't match, it may be the case that one of the marks\n// itself is a ligature, in which case match.\nif(_cur.ligatureID&&!_cur.ligatureComponent||prev.ligatureID&&!prev.ligatureComponent){good=true;}}if(!good){return false;}var mark2Index=this.coverageIndex(table.mark2Coverage,prev.id);if(mark2Index===-1){return false;}var _markRecord2=table.mark1Array[mark1Index];var _baseAnchor2=table.mark2Array[mark2Index][_markRecord2.class];this.applyAnchor(_markRecord2,_baseAnchor2,prevIndex);return true;}case 7:// Contextual positioning\nreturn this.applyContext(table);case 8:// Chaining contextual positioning\nreturn this.applyChainingContext(table);case 9:// Extension positioning\nreturn this.applyLookup(table.lookupType,table.extension);default:throw new Error('Unsupported GPOS table: '+lookupType);}};GPOSProcessor.prototype.applyAnchor=function applyAnchor(markRecord,baseAnchor,baseGlyphIndex){var baseCoords=this.getAnchor(baseAnchor);var markCoords=this.getAnchor(markRecord.markAnchor);var basePos=this.positions[baseGlyphIndex];var markPos=this.positions[this.glyphIterator.index];markPos.xOffset=baseCoords.x-markCoords.x;markPos.yOffset=baseCoords.y-markCoords.y;this.glyphIterator.cur.markAttachment=baseGlyphIndex;};GPOSProcessor.prototype.getAnchor=function getAnchor(anchor){// TODO: contour point, device tables\nvar x=anchor.xCoordinate;var y=anchor.yCoordinate;// Adjustments for font variations\nvar variationProcessor=this.font._variationProcessor;var variationStore=this.font.GDEF&&this.font.GDEF.itemVariationStore;if(variationProcessor&&variationStore){if(anchor.xDeviceTable){x+=variationProcessor.getDelta(variationStore,anchor.xDeviceTable.a,anchor.xDeviceTable.b);}if(anchor.yDeviceTable){y+=variationProcessor.getDelta(variationStore,anchor.yDeviceTable.a,anchor.yDeviceTable.b);}}return{x:x,y:y};};GPOSProcessor.prototype.applyFeatures=function applyFeatures(userFeatures,glyphs,advances){_OTProcessor.prototype.applyFeatures.call(this,userFeatures,glyphs,advances);for(var i=0;i<this.glyphs.length;i++){this.fixCursiveAttachment(i);}this.fixMarkAttachment();};GPOSProcessor.prototype.fixCursiveAttachment=function fixCursiveAttachment(i){var glyph=this.glyphs[i];if(glyph.cursiveAttachment!=null){var j=glyph.cursiveAttachment;glyph.cursiveAttachment=null;this.fixCursiveAttachment(j);this.positions[i].yOffset+=this.positions[j].yOffset;}};GPOSProcessor.prototype.fixMarkAttachment=function fixMarkAttachment(){for(var i=0;i<this.glyphs.length;i++){var glyph=this.glyphs[i];if(glyph.markAttachment!=null){var j=glyph.markAttachment;this.positions[i].xOffset+=this.positions[j].xOffset;this.positions[i].yOffset+=this.positions[j].yOffset;if(this.direction==='ltr'){for(var k=j;k<i;k++){this.positions[i].xOffset-=this.positions[k].xAdvance;this.positions[i].yOffset-=this.positions[k].yAdvance;}}else{for(var _k=j+1;_k<i+1;_k++){this.positions[i].xOffset+=this.positions[_k].xAdvance;this.positions[i].yOffset+=this.positions[_k].yAdvance;}}}}};return GPOSProcessor;}(OTProcessor);var OTLayoutEngine=function(){function OTLayoutEngine(font){_classCallCheck(this,OTLayoutEngine);this.font=font;this.glyphInfos=null;this.plan=null;this.GSUBProcessor=null;this.GPOSProcessor=null;this.fallbackPosition=true;if(font.GSUB){this.GSUBProcessor=new GSUBProcessor(font,font.GSUB);}if(font.GPOS){this.GPOSProcessor=new GPOSProcessor(font,font.GPOS);}}OTLayoutEngine.prototype.setup=function setup(glyphRun){var _this=this;// Map glyphs to GlyphInfo objects so data can be passed between\n// GSUB and GPOS without mutating the real (shared) Glyph objects.\nthis.glyphInfos=glyphRun.glyphs.map(function(glyph){return new GlyphInfo(_this.font,glyph.id,[].concat(glyph.codePoints));});// Select a script based on what is available in GSUB/GPOS.\nvar script=null;if(this.GPOSProcessor){script=this.GPOSProcessor.selectScript(glyphRun.script,glyphRun.language,glyphRun.direction);}if(this.GSUBProcessor){script=this.GSUBProcessor.selectScript(glyphRun.script,glyphRun.language,glyphRun.direction);}// Choose a shaper based on the script, and setup a shaping plan.\n// This determines which features to apply to which glyphs.\nthis.shaper=choose(script);this.plan=new ShapingPlan(this.font,script,glyphRun.direction);this.shaper.plan(this.plan,this.glyphInfos,glyphRun.features);// Assign chosen features to output glyph run\nfor(var key in this.plan.allFeatures){glyphRun.features[key]=true;}};OTLayoutEngine.prototype.substitute=function substitute(glyphRun){var _this2=this;if(this.GSUBProcessor){this.plan.process(this.GSUBProcessor,this.glyphInfos);// Map glyph infos back to normal Glyph objects\nglyphRun.glyphs=this.glyphInfos.map(function(glyphInfo){return _this2.font.getGlyph(glyphInfo.id,glyphInfo.codePoints);});}};OTLayoutEngine.prototype.position=function position(glyphRun){if(this.shaper.zeroMarkWidths==='BEFORE_GPOS'){this.zeroMarkAdvances(glyphRun.positions);}if(this.GPOSProcessor){this.plan.process(this.GPOSProcessor,this.glyphInfos,glyphRun.positions);}if(this.shaper.zeroMarkWidths==='AFTER_GPOS'){this.zeroMarkAdvances(glyphRun.positions);}// Reverse the glyphs and positions if the script is right-to-left\nif(glyphRun.direction==='rtl'){glyphRun.glyphs.reverse();glyphRun.positions.reverse();}return this.GPOSProcessor&&this.GPOSProcessor.features;};OTLayoutEngine.prototype.zeroMarkAdvances=function zeroMarkAdvances(positions){for(var i=0;i<this.glyphInfos.length;i++){if(this.glyphInfos[i].isMark){positions[i].xAdvance=0;positions[i].yAdvance=0;}}};OTLayoutEngine.prototype.cleanup=function cleanup(){this.glyphInfos=null;this.plan=null;this.shaper=null;};OTLayoutEngine.prototype.getAvailableFeatures=function getAvailableFeatures(script,language){var features=[];if(this.GSUBProcessor){this.GSUBProcessor.selectScript(script,language);features.push.apply(features,_Object$keys(this.GSUBProcessor.features));}if(this.GPOSProcessor){this.GPOSProcessor.selectScript(script,language);features.push.apply(features,_Object$keys(this.GPOSProcessor.features));}return features;};return OTLayoutEngine;}();var LayoutEngine=function(){function LayoutEngine(font){_classCallCheck(this,LayoutEngine);this.font=font;this.unicodeLayoutEngine=null;this.kernProcessor=null;// Choose an advanced layout engine. We try the AAT morx table first since more\n// scripts are currently supported because the shaping logic is built into the font.\nif(this.font.morx){this.engine=new AATLayoutEngine(this.font);}else if(this.font.GSUB||this.font.GPOS){this.engine=new OTLayoutEngine(this.font);}}LayoutEngine.prototype.layout=function layout(string,features,script,language,direction){// Make the features parameter optional\nif(typeof features==='string'){direction=language;language=script;script=features;features=[];}// Map string to glyphs if needed\nif(typeof string==='string'){// Attempt to detect the script from the string if not provided.\nif(script==null){script=forString(string);}var glyphs=this.font.glyphsForString(string);}else{// Attempt to detect the script from the glyph code points if not provided.\nif(script==null){var codePoints=[];for(var _iterator=string,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var glyph=_ref;codePoints.push.apply(codePoints,glyph.codePoints);}script=forCodePoints(codePoints);}var glyphs=string;}var glyphRun=new GlyphRun(glyphs,features,script,language,direction);// Return early if there are no glyphs\nif(glyphs.length===0){glyphRun.positions=[];return glyphRun;}// Setup the advanced layout engine\nif(this.engine&&this.engine.setup){this.engine.setup(glyphRun);}// Substitute and position the glyphs\nthis.substitute(glyphRun);this.position(glyphRun);this.hideDefaultIgnorables(glyphRun.glyphs,glyphRun.positions);// Let the layout engine clean up any state it might have\nif(this.engine&&this.engine.cleanup){this.engine.cleanup();}return glyphRun;};LayoutEngine.prototype.substitute=function substitute(glyphRun){// Call the advanced layout engine to make substitutions\nif(this.engine&&this.engine.substitute){this.engine.substitute(glyphRun);}};LayoutEngine.prototype.position=function position(glyphRun){// Get initial glyph positions\nglyphRun.positions=glyphRun.glyphs.map(function(glyph){return new GlyphPosition(glyph.advanceWidth);});var positioned=null;// Call the advanced layout engine. Returns the features applied.\nif(this.engine&&this.engine.position){positioned=this.engine.position(glyphRun);}// if there is no GPOS table, use unicode properties to position marks.\nif(!positioned&&(!this.engine||this.engine.fallbackPosition)){if(!this.unicodeLayoutEngine){this.unicodeLayoutEngine=new UnicodeLayoutEngine(this.font);}this.unicodeLayoutEngine.positionGlyphs(glyphRun.glyphs,glyphRun.positions);}// if kerning is not supported by GPOS, do kerning with the TrueType/AAT kern table\nif((!positioned||!positioned.kern)&&glyphRun.features.kern!==false&&this.font.kern){if(!this.kernProcessor){this.kernProcessor=new KernProcessor(this.font);}this.kernProcessor.process(glyphRun.glyphs,glyphRun.positions);glyphRun.features.kern=true;}};LayoutEngine.prototype.hideDefaultIgnorables=function hideDefaultIgnorables(glyphs,positions){var space=this.font.glyphForCodePoint(0x20);for(var i=0;i<glyphs.length;i++){if(this.isDefaultIgnorable(glyphs[i].codePoints[0])){glyphs[i]=space;positions[i].xAdvance=0;positions[i].yAdvance=0;}}};LayoutEngine.prototype.isDefaultIgnorable=function isDefaultIgnorable(ch){// From DerivedCoreProperties.txt in the Unicode database,\n// minus U+115F, U+1160, U+3164 and U+FFA0, which is what\n// Harfbuzz and Uniscribe do.\nvar plane=ch>>16;if(plane===0){// BMP\nswitch(ch>>8){case 0x00:return ch===0x00AD;case 0x03:return ch===0x034F;case 0x06:return ch===0x061C;case 0x17:return 0x17B4<=ch&&ch<=0x17B5;case 0x18:return 0x180B<=ch&&ch<=0x180E;case 0x20:return 0x200B<=ch&&ch<=0x200F||0x202A<=ch&&ch<=0x202E||0x2060<=ch&&ch<=0x206F;case 0xFE:return 0xFE00<=ch&&ch<=0xFE0F||ch===0xFEFF;case 0xFF:return 0xFFF0<=ch&&ch<=0xFFF8;default:return false;}}else{// Other planes\nswitch(plane){case 0x01:return 0x1BCA0<=ch&&ch<=0x1BCA3||0x1D173<=ch&&ch<=0x1D17A;case 0x0E:return 0xE0000<=ch&&ch<=0xE0FFF;default:return false;}}};LayoutEngine.prototype.getAvailableFeatures=function getAvailableFeatures(script,language){var features=[];if(this.engine){features.push.apply(features,this.engine.getAvailableFeatures(script,language));}if(this.font.kern&&features.indexOf('kern')===-1){features.push('kern');}return features;};LayoutEngine.prototype.stringsForGlyph=function stringsForGlyph(gid){var result=new _Set();var codePoints=this.font._cmapProcessor.codePointsForGlyph(gid);for(var _iterator2=codePoints,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var codePoint=_ref2;result.add(_String$fromCodePoint(codePoint));}if(this.engine&&this.engine.stringsForGlyph){for(var _iterator3=this.engine.stringsForGlyph(gid),_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_getIterator(_iterator3);;){var _ref3;if(_isArray3){if(_i3>=_iterator3.length)break;_ref3=_iterator3[_i3++];}else{_i3=_iterator3.next();if(_i3.done)break;_ref3=_i3.value;}var string=_ref3;result.add(string);}}return _Array$from(result);};return LayoutEngine;}();var SVG_COMMANDS={moveTo:'M',lineTo:'L',quadraticCurveTo:'Q',bezierCurveTo:'C',closePath:'Z'};/**\r\n     * Path objects are returned by glyphs and represent the actual\r\n     * vector outlines for each glyph in the font. Paths can be converted\r\n     * to SVG path data strings, or to functions that can be applied to\r\n     * render the path to a graphics context.\r\n     */var Path=function(){function Path(){_classCallCheck(this,Path);this.commands=[];this._bbox=null;this._cbox=null;}/**\r\n       * Compiles the path to a JavaScript function that can be applied with\r\n       * a graphics context in order to render the path.\r\n       * @return {string}\r\n       */Path.prototype.toFunction=function toFunction(){var cmds=this.commands.map(function(c){return'  ctx.'+c.command+'('+c.args.join(', ')+');';});return new Function('ctx',cmds.join('\\n'));};/**\r\n       * Converts the path to an SVG path data string\r\n       * @return {string}\r\n       */Path.prototype.toSVG=function toSVG(){var cmds=this.commands.map(function(c){var args=c.args.map(function(arg){return Math.round(arg*100)/100;});return''+SVG_COMMANDS[c.command]+args.join(' ');});return cmds.join('');};/**\r\n       * Gets the \"control box\" of a path.\r\n       * This is like the bounding box, but it includes all points including\r\n       * control points of bezier segments and is much faster to compute than\r\n       * the real bounding box.\r\n       * @type {BBox}\r\n       */ /**\r\n       * Applies a mapping function to each point in the path.\r\n       * @param {function} fn\r\n       * @return {Path}\r\n       */Path.prototype.mapPoints=function mapPoints(fn){var path=new Path();for(var _iterator=this.commands,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var c=_ref;var args=[];for(var _i2=0;_i2<c.args.length;_i2+=2){var _fn=fn(c.args[_i2],c.args[_i2+1]),x=_fn[0],y=_fn[1];args.push(x,y);}path[c.command].apply(path,args);}return path;};/**\r\n       * Transforms the path by the given matrix.\r\n       */Path.prototype.transform=function transform(m0,m1,m2,m3,m4,m5){return this.mapPoints(function(x,y){x=m0*x+m2*y+m4;y=m1*x+m3*y+m5;return[x,y];});};/**\r\n       * Translates the path by the given offset.\r\n       */Path.prototype.translate=function translate(x,y){return this.transform(1,0,0,1,x,y);};/**\r\n       * Rotates the path by the given angle (in radians).\r\n       */Path.prototype.rotate=function rotate(angle){var cos=Math.cos(angle);var sin=Math.sin(angle);return this.transform(cos,sin,-sin,cos,0,0);};/**\r\n       * Scales the path.\r\n       */Path.prototype.scale=function scale(scaleX){var scaleY=arguments.length>1&&arguments[1]!==undefined?arguments[1]:scaleX;return this.transform(scaleX,0,0,scaleY,0,0);};_createClass(Path,[{key:'cbox',get:function get(){if(!this._cbox){var cbox=new BBox();for(var _iterator2=this.commands,_isArray2=Array.isArray(_iterator2),_i3=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i3>=_iterator2.length)break;_ref2=_iterator2[_i3++];}else{_i3=_iterator2.next();if(_i3.done)break;_ref2=_i3.value;}var command=_ref2;for(var _i4=0;_i4<command.args.length;_i4+=2){cbox.addPoint(command.args[_i4],command.args[_i4+1]);}}this._cbox=_Object$freeze(cbox);}return this._cbox;}/**\r\n         * Gets the exact bounding box of the path by evaluating curve segments.\r\n         * Slower to compute than the control box, but more accurate.\r\n         * @type {BBox}\r\n         */},{key:'bbox',get:function get(){if(this._bbox){return this._bbox;}var bbox=new BBox();var cx=0,cy=0;var f=function f(t){return Math.pow(1-t,3)*p0[i]+3*Math.pow(1-t,2)*t*p1[i]+3*(1-t)*Math.pow(t,2)*p2[i]+Math.pow(t,3)*p3[i];};for(var _iterator3=this.commands,_isArray3=Array.isArray(_iterator3),_i5=0,_iterator3=_isArray3?_iterator3:_getIterator(_iterator3);;){var _ref3;if(_isArray3){if(_i5>=_iterator3.length)break;_ref3=_iterator3[_i5++];}else{_i5=_iterator3.next();if(_i5.done)break;_ref3=_i5.value;}var c=_ref3;switch(c.command){case'moveTo':case'lineTo':var _c$args=c.args,x=_c$args[0],y=_c$args[1];bbox.addPoint(x,y);cx=x;cy=y;break;case'quadraticCurveTo':case'bezierCurveTo':if(c.command==='quadraticCurveTo'){// http://fontforge.org/bezier.html\nvar _c$args2=c.args,qp1x=_c$args2[0],qp1y=_c$args2[1],p3x=_c$args2[2],p3y=_c$args2[3];var cp1x=cx+2/3*(qp1x-cx);// CP1 = QP0 + 2/3 * (QP1-QP0)\nvar cp1y=cy+2/3*(qp1y-cy);var cp2x=p3x+2/3*(qp1x-p3x);// CP2 = QP2 + 2/3 * (QP1-QP2)\nvar cp2y=p3y+2/3*(qp1y-p3y);}else{var _c$args3=c.args,cp1x=_c$args3[0],cp1y=_c$args3[1],cp2x=_c$args3[2],cp2y=_c$args3[3],p3x=_c$args3[4],p3y=_c$args3[5];}// http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html\nbbox.addPoint(p3x,p3y);var p0=[cx,cy];var p1=[cp1x,cp1y];var p2=[cp2x,cp2y];var p3=[p3x,p3y];for(var i=0;i<=1;i++){var b=6*p0[i]-12*p1[i]+6*p2[i];var a=-3*p0[i]+9*p1[i]-9*p2[i]+3*p3[i];c=3*p1[i]-3*p0[i];if(a===0){if(b===0){continue;}var t=-c/b;if(0<t&&t<1){if(i===0){bbox.addPoint(f(t),bbox.maxY);}else if(i===1){bbox.addPoint(bbox.maxX,f(t));}}continue;}var b2ac=Math.pow(b,2)-4*c*a;if(b2ac<0){continue;}var t1=(-b+Math.sqrt(b2ac))/(2*a);if(0<t1&&t1<1){if(i===0){bbox.addPoint(f(t1),bbox.maxY);}else if(i===1){bbox.addPoint(bbox.maxX,f(t1));}}var t2=(-b-Math.sqrt(b2ac))/(2*a);if(0<t2&&t2<1){if(i===0){bbox.addPoint(f(t2),bbox.maxY);}else if(i===1){bbox.addPoint(bbox.maxX,f(t2));}}}cx=p3x;cy=p3y;break;}}return this._bbox=_Object$freeze(bbox);}}]);return Path;}();var _arr=['moveTo','lineTo','quadraticCurveTo','bezierCurveTo','closePath'];var _loop=function _loop(){var command=_arr[_i6];Path.prototype[command]=function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}this._bbox=this._cbox=null;this.commands.push({command:command,args:args});return this;};};for(var _i6=0;_i6<_arr.length;_i6++){_loop();}var StandardNames=['.notdef','.null','nonmarkingreturn','space','exclam','quotedbl','numbersign','dollar','percent','ampersand','quotesingle','parenleft','parenright','asterisk','plus','comma','hyphen','period','slash','zero','one','two','three','four','five','six','seven','eight','nine','colon','semicolon','less','equal','greater','question','at','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','bracketleft','backslash','bracketright','asciicircum','underscore','grave','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','braceleft','bar','braceright','asciitilde','Adieresis','Aring','Ccedilla','Eacute','Ntilde','Odieresis','Udieresis','aacute','agrave','acircumflex','adieresis','atilde','aring','ccedilla','eacute','egrave','ecircumflex','edieresis','iacute','igrave','icircumflex','idieresis','ntilde','oacute','ograve','ocircumflex','odieresis','otilde','uacute','ugrave','ucircumflex','udieresis','dagger','degree','cent','sterling','section','bullet','paragraph','germandbls','registered','copyright','trademark','acute','dieresis','notequal','AE','Oslash','infinity','plusminus','lessequal','greaterequal','yen','mu','partialdiff','summation','product','pi','integral','ordfeminine','ordmasculine','Omega','ae','oslash','questiondown','exclamdown','logicalnot','radical','florin','approxequal','Delta','guillemotleft','guillemotright','ellipsis','nonbreakingspace','Agrave','Atilde','Otilde','OE','oe','endash','emdash','quotedblleft','quotedblright','quoteleft','quoteright','divide','lozenge','ydieresis','Ydieresis','fraction','currency','guilsinglleft','guilsinglright','fi','fl','daggerdbl','periodcentered','quotesinglbase','quotedblbase','perthousand','Acircumflex','Ecircumflex','Aacute','Edieresis','Egrave','Iacute','Icircumflex','Idieresis','Igrave','Oacute','Ocircumflex','apple','Ograve','Uacute','Ucircumflex','Ugrave','dotlessi','circumflex','tilde','macron','breve','dotaccent','ring','cedilla','hungarumlaut','ogonek','caron','Lslash','lslash','Scaron','scaron','Zcaron','zcaron','brokenbar','Eth','eth','Yacute','yacute','Thorn','thorn','minus','multiply','onesuperior','twosuperior','threesuperior','onehalf','onequarter','threequarters','franc','Gbreve','gbreve','Idotaccent','Scedilla','scedilla','Cacute','cacute','Ccaron','ccaron','dcroat'];var _class$8;function _applyDecoratedDescriptor$4(target,property,decorators,descriptor,context){var desc={};Object['ke'+'ys'](descriptor).forEach(function(key){desc[key]=descriptor[key];});desc.enumerable=!!desc.enumerable;desc.configurable=!!desc.configurable;if('value'in desc||desc.initializer){desc.writable=true;}desc=decorators.slice().reverse().reduce(function(desc,decorator){return decorator(target,property,desc)||desc;},desc);if(context&&desc.initializer!==void 0){desc.value=desc.initializer?desc.initializer.call(context):void 0;desc.initializer=undefined;}if(desc.initializer===void 0){Object['define'+'Property'](target,property,desc);desc=null;}return desc;}/**\r\n     * Glyph objects represent a glyph in the font. They have various properties for accessing metrics and\r\n     * the actual vector path the glyph represents, and methods for rendering the glyph to a graphics context.\r\n     *\r\n     * You do not create glyph objects directly. They are created by various methods on the font object.\r\n     * There are several subclasses of the base Glyph class internally that may be returned depending\r\n     * on the font format, but they all inherit from this class.\r\n     */var Glyph=(_class$8=function(){function Glyph(id,codePoints,font){_classCallCheck(this,Glyph);/**\r\n         * The glyph id in the font\r\n         * @type {number}\r\n         */this.id=id;/**\r\n         * An array of unicode code points that are represented by this glyph.\r\n         * There can be multiple code points in the case of ligatures and other glyphs\r\n         * that represent multiple visual characters.\r\n         * @type {number[]}\r\n         */this.codePoints=codePoints;this._font=font;// TODO: get this info from GDEF if available\nthis.isMark=this.codePoints.length>0&&this.codePoints.every(unicode.isMark);this.isLigature=this.codePoints.length>1;}Glyph.prototype._getPath=function _getPath(){return new Path();};Glyph.prototype._getCBox=function _getCBox(){return this.path.cbox;};Glyph.prototype._getBBox=function _getBBox(){return this.path.bbox;};Glyph.prototype._getTableMetrics=function _getTableMetrics(table){if(this.id<table.metrics.length){return table.metrics.get(this.id);}var metric=table.metrics.get(table.metrics.length-1);var res={advance:metric?metric.advance:0,bearing:table.bearings.get(this.id-table.metrics.length)||0};return res;};Glyph.prototype._getMetrics=function _getMetrics(cbox){if(this._metrics){return this._metrics;}var _getTableMetrics2=this._getTableMetrics(this._font.hmtx),advanceWidth=_getTableMetrics2.advance,leftBearing=_getTableMetrics2.bearing;// For vertical metrics, use vmtx if available, or fall back to global data from OS/2 or hhea\nif(this._font.vmtx){var _getTableMetrics3=this._getTableMetrics(this._font.vmtx),advanceHeight=_getTableMetrics3.advance,topBearing=_getTableMetrics3.bearing;}else{var os2=void 0;if(typeof cbox==='undefined'||cbox===null){cbox=this.cbox;}if((os2=this._font['OS/2'])&&os2.version>0){var advanceHeight=Math.abs(os2.typoAscender-os2.typoDescender);var topBearing=os2.typoAscender-cbox.maxY;}else{var hhea=this._font.hhea;var advanceHeight=Math.abs(hhea.ascent-hhea.descent);var topBearing=hhea.ascent-cbox.maxY;}}if(this._font._variationProcessor&&this._font.HVAR){advanceWidth+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR);}return this._metrics={advanceWidth:advanceWidth,advanceHeight:advanceHeight,leftBearing:leftBearing,topBearing:topBearing};};/**\r\n       * The glyph’s control box.\r\n       * This is often the same as the bounding box, but is faster to compute.\r\n       * Because of the way bezier curves are defined, some of the control points\r\n       * can be outside of the bounding box. Where `bbox` takes this into account,\r\n       * `cbox` does not. Thus, cbox is less accurate, but faster to compute.\r\n       * See [here](http://www.freetype.org/freetype2/docs/glyphs/glyphs-6.html#section-2)\r\n       * for a more detailed description.\r\n       *\r\n       * @type {BBox}\r\n       */ /**\r\n       * Returns a path scaled to the given font size.\r\n       * @param {number} size\r\n       * @return {Path}\r\n       */Glyph.prototype.getScaledPath=function getScaledPath(size){var scale=1/this._font.unitsPerEm*size;return this.path.scale(scale);};/**\r\n       * The glyph's advance width.\r\n       * @type {number}\r\n       */Glyph.prototype._getName=function _getName(){var post=this._font.post;if(!post){return null;}switch(post.version){case 1:return StandardNames[this.id];case 2:var id=post.glyphNameIndex[this.id];if(id<StandardNames.length){return StandardNames[id];}return post.names[id-StandardNames.length];case 2.5:return StandardNames[this.id+post.offsets[this.id]];case 4:return String.fromCharCode(post.map[this.id]);}};/**\r\n       * The glyph's name\r\n       * @type {string}\r\n       */ /**\r\n       * Renders the glyph to the given graphics context, at the specified font size.\r\n       * @param {CanvasRenderingContext2d} ctx\r\n       * @param {number} size\r\n       */Glyph.prototype.render=function render(ctx,size){ctx.save();var scale=1/this._font.head.unitsPerEm*size;ctx.scale(scale,scale);var fn=this.path.toFunction();fn(ctx);ctx.fill();ctx.restore();};_createClass(Glyph,[{key:'cbox',get:function get(){return this._getCBox();}/**\r\n         * The glyph’s bounding box, i.e. the rectangle that encloses the\r\n         * glyph outline as tightly as possible.\r\n         * @type {BBox}\r\n         */},{key:'bbox',get:function get(){return this._getBBox();}/**\r\n         * A vector Path object representing the glyph outline.\r\n         * @type {Path}\r\n         */},{key:'path',get:function get(){// Cache the path so we only decode it once\n// Decoding is actually performed by subclasses\nreturn this._getPath();}},{key:'advanceWidth',get:function get(){return this._getMetrics().advanceWidth;}/**\r\n         * The glyph's advance height.\r\n         * @type {number}\r\n         */},{key:'advanceHeight',get:function get(){return this._getMetrics().advanceHeight;}},{key:'ligatureCaretPositions',get:function get(){}},{key:'name',get:function get(){return this._getName();}}]);return Glyph;}(),(_applyDecoratedDescriptor$4(_class$8.prototype,'cbox',[cache],_Object$getOwnPropertyDescriptor(_class$8.prototype,'cbox'),_class$8.prototype),_applyDecoratedDescriptor$4(_class$8.prototype,'bbox',[cache],_Object$getOwnPropertyDescriptor(_class$8.prototype,'bbox'),_class$8.prototype),_applyDecoratedDescriptor$4(_class$8.prototype,'path',[cache],_Object$getOwnPropertyDescriptor(_class$8.prototype,'path'),_class$8.prototype),_applyDecoratedDescriptor$4(_class$8.prototype,'advanceWidth',[cache],_Object$getOwnPropertyDescriptor(_class$8.prototype,'advanceWidth'),_class$8.prototype),_applyDecoratedDescriptor$4(_class$8.prototype,'advanceHeight',[cache],_Object$getOwnPropertyDescriptor(_class$8.prototype,'advanceHeight'),_class$8.prototype),_applyDecoratedDescriptor$4(_class$8.prototype,'name',[cache],_Object$getOwnPropertyDescriptor(_class$8.prototype,'name'),_class$8.prototype)),_class$8);// The header for both simple and composite glyphs\nvar GlyfHeader=new r.Struct({numberOfContours:r.int16,// if negative, this is a composite glyph\nxMin:r.int16,yMin:r.int16,xMax:r.int16,yMax:r.int16});// Flags for simple glyphs\nvar ON_CURVE=1<<0;var X_SHORT_VECTOR=1<<1;var Y_SHORT_VECTOR=1<<2;var REPEAT=1<<3;var SAME_X=1<<4;var SAME_Y=1<<5;// Flags for composite glyphs\nvar ARG_1_AND_2_ARE_WORDS=1<<0;var WE_HAVE_A_SCALE=1<<3;var MORE_COMPONENTS=1<<5;var WE_HAVE_AN_X_AND_Y_SCALE=1<<6;var WE_HAVE_A_TWO_BY_TWO=1<<7;var WE_HAVE_INSTRUCTIONS=1<<8;// Represents a point in a simple glyph\nvar Point=function(){function Point(onCurve,endContour){var x=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var y=arguments.length>3&&arguments[3]!==undefined?arguments[3]:0;_classCallCheck(this,Point);this.onCurve=onCurve;this.endContour=endContour;this.x=x;this.y=y;}Point.prototype.copy=function copy(){return new Point(this.onCurve,this.endContour,this.x,this.y);};return Point;}();// Represents a component in a composite glyph\nvar Component=function Component(glyphID,dx,dy){_classCallCheck(this,Component);this.glyphID=glyphID;this.dx=dx;this.dy=dy;this.pos=0;this.scaleX=this.scaleY=1;this.scale01=this.scale10=0;};/**\r\n     * Represents a TrueType glyph.\r\n     */var TTFGlyph=function(_Glyph){_inherits(TTFGlyph,_Glyph);function TTFGlyph(){_classCallCheck(this,TTFGlyph);return _possibleConstructorReturn(this,_Glyph.apply(this,arguments));}// Parses just the glyph header and returns the bounding box\nTTFGlyph.prototype._getCBox=function _getCBox(internal){// We need to decode the glyph if variation processing is requested,\n// so it's easier just to recompute the path's cbox after decoding.\nif(this._font._variationProcessor&&!internal){return this.path.cbox;}var stream=this._font._getTableStream('glyf');stream.pos+=this._font.loca.offsets[this.id];var glyph=GlyfHeader.decode(stream);var cbox=new BBox(glyph.xMin,glyph.yMin,glyph.xMax,glyph.yMax);return _Object$freeze(cbox);};// Parses a single glyph coordinate\nTTFGlyph.prototype._parseGlyphCoord=function _parseGlyphCoord(stream,prev,short,same){if(short){var val=stream.readUInt8();if(!same){val=-val;}val+=prev;}else{if(same){var val=prev;}else{var val=prev+stream.readInt16BE();}}return val;};// Decodes the glyph data into points for simple glyphs,\n// or components for composite glyphs\nTTFGlyph.prototype._decode=function _decode(){var glyfPos=this._font.loca.offsets[this.id];var nextPos=this._font.loca.offsets[this.id+1];// Nothing to do if there is no data for this glyph\nif(glyfPos===nextPos){return null;}var stream=this._font._getTableStream('glyf');stream.pos+=glyfPos;var startPos=stream.pos;var glyph=GlyfHeader.decode(stream);if(glyph.numberOfContours>0){this._decodeSimple(glyph,stream);}else if(glyph.numberOfContours<0){this._decodeComposite(glyph,stream,startPos);}return glyph;};TTFGlyph.prototype._decodeSimple=function _decodeSimple(glyph,stream){// this is a simple glyph\nglyph.points=[];var endPtsOfContours=new r.Array(r.uint16,glyph.numberOfContours).decode(stream);glyph.instructions=new r.Array(r.uint8,r.uint16).decode(stream);var flags=[];var numCoords=endPtsOfContours[endPtsOfContours.length-1]+1;while(flags.length<numCoords){var flag=stream.readUInt8();flags.push(flag);// check for repeat flag\nif(flag&REPEAT){var count=stream.readUInt8();for(var j=0;j<count;j++){flags.push(flag);}}}for(var i=0;i<flags.length;i++){var flag=flags[i];var point=new Point(!!(flag&ON_CURVE),endPtsOfContours.indexOf(i)>=0,0,0);glyph.points.push(point);}var px=0;for(var i=0;i<flags.length;i++){var flag=flags[i];glyph.points[i].x=px=this._parseGlyphCoord(stream,px,flag&X_SHORT_VECTOR,flag&SAME_X);}var py=0;for(var i=0;i<flags.length;i++){var flag=flags[i];glyph.points[i].y=py=this._parseGlyphCoord(stream,py,flag&Y_SHORT_VECTOR,flag&SAME_Y);}if(this._font._variationProcessor){var points=glyph.points.slice();points.push.apply(points,this._getPhantomPoints(glyph));this._font._variationProcessor.transformPoints(this.id,points);glyph.phantomPoints=points.slice(-4);}return;};TTFGlyph.prototype._decodeComposite=function _decodeComposite(glyph,stream){var offset=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;// this is a composite glyph\nglyph.components=[];var haveInstructions=false;var flags=MORE_COMPONENTS;while(flags&MORE_COMPONENTS){flags=stream.readUInt16BE();var gPos=stream.pos-offset;var glyphID=stream.readUInt16BE();if(!haveInstructions){haveInstructions=(flags&WE_HAVE_INSTRUCTIONS)!==0;}if(flags&ARG_1_AND_2_ARE_WORDS){var dx=stream.readInt16BE();var dy=stream.readInt16BE();}else{var dx=stream.readInt8();var dy=stream.readInt8();}var component=new Component(glyphID,dx,dy);component.pos=gPos;if(flags&WE_HAVE_A_SCALE){// fixed number with 14 bits of fraction\ncomponent.scaleX=component.scaleY=(stream.readUInt8()<<24|stream.readUInt8()<<16)/1073741824;}else if(flags&WE_HAVE_AN_X_AND_Y_SCALE){component.scaleX=(stream.readUInt8()<<24|stream.readUInt8()<<16)/1073741824;component.scaleY=(stream.readUInt8()<<24|stream.readUInt8()<<16)/1073741824;}else if(flags&WE_HAVE_A_TWO_BY_TWO){component.scaleX=(stream.readUInt8()<<24|stream.readUInt8()<<16)/1073741824;component.scale01=(stream.readUInt8()<<24|stream.readUInt8()<<16)/1073741824;component.scale10=(stream.readUInt8()<<24|stream.readUInt8()<<16)/1073741824;component.scaleY=(stream.readUInt8()<<24|stream.readUInt8()<<16)/1073741824;}glyph.components.push(component);}if(this._font._variationProcessor){var points=[];for(var j=0;j<glyph.components.length;j++){var component=glyph.components[j];points.push(new Point(true,true,component.dx,component.dy));}points.push.apply(points,this._getPhantomPoints(glyph));this._font._variationProcessor.transformPoints(this.id,points);glyph.phantomPoints=points.splice(-4,4);for(var i=0;i<points.length;i++){var point=points[i];glyph.components[i].dx=point.x;glyph.components[i].dy=point.y;}}return haveInstructions;};TTFGlyph.prototype._getPhantomPoints=function _getPhantomPoints(glyph){var cbox=this._getCBox(true);if(this._metrics==null){this._metrics=Glyph.prototype._getMetrics.call(this,cbox);}var _metrics=this._metrics,advanceWidth=_metrics.advanceWidth,advanceHeight=_metrics.advanceHeight,leftBearing=_metrics.leftBearing,topBearing=_metrics.topBearing;return[new Point(false,true,glyph.xMin-leftBearing,0),new Point(false,true,glyph.xMin-leftBearing+advanceWidth,0),new Point(false,true,0,glyph.yMax+topBearing),new Point(false,true,0,glyph.yMax+topBearing+advanceHeight)];};// Decodes font data, resolves composite glyphs, and returns an array of contours\nTTFGlyph.prototype._getContours=function _getContours(){var glyph=this._decode();if(!glyph){return[];}var points=[];if(glyph.numberOfContours<0){// resolve composite glyphs\nfor(var _iterator=glyph.components,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var component=_ref;var _contours=this._font.getGlyph(component.glyphID)._getContours();for(var i=0;i<_contours.length;i++){var contour=_contours[i];for(var j=0;j<contour.length;j++){var _point=contour[j];var x=_point.x*component.scaleX+_point.y*component.scale01+component.dx;var y=_point.y*component.scaleY+_point.x*component.scale10+component.dy;points.push(new Point(_point.onCurve,_point.endContour,x,y));}}}}else{points=glyph.points||[];}// Recompute and cache metrics if we performed variation processing, and don't have an HVAR table\nif(glyph.phantomPoints&&!this._font.directory.tables.HVAR){this._metrics.advanceWidth=glyph.phantomPoints[1].x-glyph.phantomPoints[0].x;this._metrics.advanceHeight=glyph.phantomPoints[3].y-glyph.phantomPoints[2].y;this._metrics.leftBearing=glyph.xMin-glyph.phantomPoints[0].x;this._metrics.topBearing=glyph.phantomPoints[2].y-glyph.yMax;}var contours=[];var cur=[];for(var k=0;k<points.length;k++){var point=points[k];cur.push(point);if(point.endContour){contours.push(cur);cur=[];}}return contours;};TTFGlyph.prototype._getMetrics=function _getMetrics(){if(this._metrics){return this._metrics;}var cbox=this._getCBox(true);_Glyph.prototype._getMetrics.call(this,cbox);if(this._font._variationProcessor&&!this._font.HVAR){// No HVAR table, decode the glyph. This triggers recomputation of metrics.\nthis.path;}return this._metrics;};// Converts contours to a Path object that can be rendered\nTTFGlyph.prototype._getPath=function _getPath(){var contours=this._getContours();var path=new Path();for(var i=0;i<contours.length;i++){var contour=contours[i];var firstPt=contour[0];var lastPt=contour[contour.length-1];var start=0;if(firstPt.onCurve){// The first point will be consumed by the moveTo command, so skip in the loop\nvar curvePt=null;start=1;}else{if(lastPt.onCurve){// Start at the last point if the first point is off curve and the last point is on curve\nfirstPt=lastPt;}else{// Start at the middle if both the first and last points are off curve\nfirstPt=new Point(false,false,(firstPt.x+lastPt.x)/2,(firstPt.y+lastPt.y)/2);}var curvePt=firstPt;}path.moveTo(firstPt.x,firstPt.y);for(var j=start;j<contour.length;j++){var pt=contour[j];var prevPt=j===0?firstPt:contour[j-1];if(prevPt.onCurve&&pt.onCurve){path.lineTo(pt.x,pt.y);}else if(prevPt.onCurve&&!pt.onCurve){var curvePt=pt;}else if(!prevPt.onCurve&&!pt.onCurve){var midX=(prevPt.x+pt.x)/2;var midY=(prevPt.y+pt.y)/2;path.quadraticCurveTo(prevPt.x,prevPt.y,midX,midY);var curvePt=pt;}else if(!prevPt.onCurve&&pt.onCurve){path.quadraticCurveTo(curvePt.x,curvePt.y,pt.x,pt.y);var curvePt=null;}else{throw new Error(\"Unknown TTF path state\");}}// Connect the first and last points\nif(curvePt){path.quadraticCurveTo(curvePt.x,curvePt.y,firstPt.x,firstPt.y);}path.closePath();}return path;};return TTFGlyph;}(Glyph);/**\r\n     * Represents an OpenType PostScript glyph, in the Compact Font Format.\r\n     */var CFFGlyph=function(_Glyph){_inherits(CFFGlyph,_Glyph);function CFFGlyph(){_classCallCheck(this,CFFGlyph);return _possibleConstructorReturn(this,_Glyph.apply(this,arguments));}CFFGlyph.prototype._getName=function _getName(){if(this._font.CFF2){return _Glyph.prototype._getName.call(this);}return this._font['CFF '].getGlyphName(this.id);};CFFGlyph.prototype.bias=function bias(s){if(s.length<1240){return 107;}else if(s.length<33900){return 1131;}else{return 32768;}};CFFGlyph.prototype._getPath=function _getPath(){var stream=this._font.stream;var pos=stream.pos;var cff=this._font.CFF2||this._font['CFF '];var str=cff.topDict.CharStrings[this.id];var end=str.offset+str.length;stream.pos=str.offset;var path=new Path();var stack=[];var trans=[];var width=null;var nStems=0;var x=0,y=0;var usedGsubrs=void 0;var usedSubrs=void 0;var open=false;this._usedGsubrs=usedGsubrs={};this._usedSubrs=usedSubrs={};var gsubrs=cff.globalSubrIndex||[];var gsubrsBias=this.bias(gsubrs);var privateDict=cff.privateDictForGlyph(this.id)||{};var subrs=privateDict.Subrs||[];var subrsBias=this.bias(subrs);var vstore=cff.topDict.vstore&&cff.topDict.vstore.itemVariationStore;var vsindex=privateDict.vsindex;var variationProcessor=this._font._variationProcessor;function checkWidth(){if(width==null){width=stack.shift()+privateDict.nominalWidthX;}}function parseStems(){if(stack.length%2!==0){checkWidth();}nStems+=stack.length>>1;return stack.length=0;}function moveTo(x,y){if(open){path.closePath();}path.moveTo(x,y);open=true;}var parse=function parse(){while(stream.pos<end){var op=stream.readUInt8();if(op<32){switch(op){case 1:// hstem\ncase 3:// vstem\ncase 18:// hstemhm\ncase 23:// vstemhm\nparseStems();break;case 4:// vmoveto\nif(stack.length>1){checkWidth();}y+=stack.shift();moveTo(x,y);break;case 5:// rlineto\nwhile(stack.length>=2){x+=stack.shift();y+=stack.shift();path.lineTo(x,y);}break;case 6:// hlineto\ncase 7:// vlineto\nvar phase=op===6;while(stack.length>=1){if(phase){x+=stack.shift();}else{y+=stack.shift();}path.lineTo(x,y);phase=!phase;}break;case 8:// rrcurveto\nwhile(stack.length>0){var c1x=x+stack.shift();var c1y=y+stack.shift();var c2x=c1x+stack.shift();var c2y=c1y+stack.shift();x=c2x+stack.shift();y=c2y+stack.shift();path.bezierCurveTo(c1x,c1y,c2x,c2y,x,y);}break;case 10:// callsubr\nvar index=stack.pop()+subrsBias;var subr=subrs[index];if(subr){usedSubrs[index]=true;var p=stream.pos;var e=end;stream.pos=subr.offset;end=subr.offset+subr.length;parse();stream.pos=p;end=e;}break;case 11:// return\nif(cff.version>=2){break;}return;case 14:// endchar\nif(cff.version>=2){break;}if(stack.length>0){checkWidth();}if(open){path.closePath();open=false;}break;case 15:{// vsindex\nif(cff.version<2){throw new Error('vsindex operator not supported in CFF v1');}vsindex=stack.pop();break;}case 16:{// blend\nif(cff.version<2){throw new Error('blend operator not supported in CFF v1');}if(!variationProcessor){throw new Error('blend operator in non-variation font');}var blendVector=variationProcessor.getBlendVector(vstore,vsindex);var numBlends=stack.pop();var numOperands=numBlends*blendVector.length;var delta=stack.length-numOperands;var base=delta-numBlends;for(var i=0;i<numBlends;i++){var sum=stack[base+i];for(var j=0;j<blendVector.length;j++){sum+=blendVector[j]*stack[delta++];}stack[base+i]=sum;}while(numOperands--){stack.pop();}break;}case 19:// hintmask\ncase 20:// cntrmask\nparseStems();stream.pos+=nStems+7>>3;break;case 21:// rmoveto\nif(stack.length>2){checkWidth();}x+=stack.shift();y+=stack.shift();moveTo(x,y);break;case 22:// hmoveto\nif(stack.length>1){checkWidth();}x+=stack.shift();moveTo(x,y);break;case 24:// rcurveline\nwhile(stack.length>=8){var c1x=x+stack.shift();var c1y=y+stack.shift();var c2x=c1x+stack.shift();var c2y=c1y+stack.shift();x=c2x+stack.shift();y=c2y+stack.shift();path.bezierCurveTo(c1x,c1y,c2x,c2y,x,y);}x+=stack.shift();y+=stack.shift();path.lineTo(x,y);break;case 25:// rlinecurve\nwhile(stack.length>=8){x+=stack.shift();y+=stack.shift();path.lineTo(x,y);}var c1x=x+stack.shift();var c1y=y+stack.shift();var c2x=c1x+stack.shift();var c2y=c1y+stack.shift();x=c2x+stack.shift();y=c2y+stack.shift();path.bezierCurveTo(c1x,c1y,c2x,c2y,x,y);break;case 26:// vvcurveto\nif(stack.length%2){x+=stack.shift();}while(stack.length>=4){c1x=x;c1y=y+stack.shift();c2x=c1x+stack.shift();c2y=c1y+stack.shift();x=c2x;y=c2y+stack.shift();path.bezierCurveTo(c1x,c1y,c2x,c2y,x,y);}break;case 27:// hhcurveto\nif(stack.length%2){y+=stack.shift();}while(stack.length>=4){c1x=x+stack.shift();c1y=y;c2x=c1x+stack.shift();c2y=c1y+stack.shift();x=c2x+stack.shift();y=c2y;path.bezierCurveTo(c1x,c1y,c2x,c2y,x,y);}break;case 28:// shortint\nstack.push(stream.readInt16BE());break;case 29:// callgsubr\nindex=stack.pop()+gsubrsBias;subr=gsubrs[index];if(subr){usedGsubrs[index]=true;var p=stream.pos;var e=end;stream.pos=subr.offset;end=subr.offset+subr.length;parse();stream.pos=p;end=e;}break;case 30:// vhcurveto\ncase 31:// hvcurveto\nphase=op===31;while(stack.length>=4){if(phase){c1x=x+stack.shift();c1y=y;c2x=c1x+stack.shift();c2y=c1y+stack.shift();y=c2y+stack.shift();x=c2x+(stack.length===1?stack.shift():0);}else{c1x=x;c1y=y+stack.shift();c2x=c1x+stack.shift();c2y=c1y+stack.shift();x=c2x+stack.shift();y=c2y+(stack.length===1?stack.shift():0);}path.bezierCurveTo(c1x,c1y,c2x,c2y,x,y);phase=!phase;}break;case 12:op=stream.readUInt8();switch(op){case 3:// and\nvar a=stack.pop();var b=stack.pop();stack.push(a&&b?1:0);break;case 4:// or\na=stack.pop();b=stack.pop();stack.push(a||b?1:0);break;case 5:// not\na=stack.pop();stack.push(a?0:1);break;case 9:// abs\na=stack.pop();stack.push(Math.abs(a));break;case 10:// add\na=stack.pop();b=stack.pop();stack.push(a+b);break;case 11:// sub\na=stack.pop();b=stack.pop();stack.push(a-b);break;case 12:// div\na=stack.pop();b=stack.pop();stack.push(a/b);break;case 14:// neg\na=stack.pop();stack.push(-a);break;case 15:// eq\na=stack.pop();b=stack.pop();stack.push(a===b?1:0);break;case 18:// drop\nstack.pop();break;case 20:// put\nvar val=stack.pop();var idx=stack.pop();trans[idx]=val;break;case 21:// get\nidx=stack.pop();stack.push(trans[idx]||0);break;case 22:// ifelse\nvar s1=stack.pop();var s2=stack.pop();var v1=stack.pop();var v2=stack.pop();stack.push(v1<=v2?s1:s2);break;case 23:// random\nstack.push(Math.random());break;case 24:// mul\na=stack.pop();b=stack.pop();stack.push(a*b);break;case 26:// sqrt\na=stack.pop();stack.push(Math.sqrt(a));break;case 27:// dup\na=stack.pop();stack.push(a,a);break;case 28:// exch\na=stack.pop();b=stack.pop();stack.push(b,a);break;case 29:// index\nidx=stack.pop();if(idx<0){idx=0;}else if(idx>stack.length-1){idx=stack.length-1;}stack.push(stack[idx]);break;case 30:// roll\nvar n=stack.pop();var _j=stack.pop();if(_j>=0){while(_j>0){var t=stack[n-1];for(var _i=n-2;_i>=0;_i--){stack[_i+1]=stack[_i];}stack[0]=t;_j--;}}else{while(_j<0){var t=stack[0];for(var _i2=0;_i2<=n;_i2++){stack[_i2]=stack[_i2+1];}stack[n-1]=t;_j++;}}break;case 34:// hflex\nc1x=x+stack.shift();c1y=y;c2x=c1x+stack.shift();c2y=c1y+stack.shift();var c3x=c2x+stack.shift();var c3y=c2y;var c4x=c3x+stack.shift();var c4y=c3y;var c5x=c4x+stack.shift();var c5y=c4y;var c6x=c5x+stack.shift();var c6y=c5y;x=c6x;y=c6y;path.bezierCurveTo(c1x,c1y,c2x,c2y,c3x,c3y);path.bezierCurveTo(c4x,c4y,c5x,c5y,c6x,c6y);break;case 35:// flex\nvar pts=[];for(var _i3=0;_i3<=5;_i3++){x+=stack.shift();y+=stack.shift();pts.push(x,y);}path.bezierCurveTo.apply(path,pts.slice(0,6));path.bezierCurveTo.apply(path,pts.slice(6));stack.shift();// fd\nbreak;case 36:// hflex1\nc1x=x+stack.shift();c1y=y+stack.shift();c2x=c1x+stack.shift();c2y=c1y+stack.shift();c3x=c2x+stack.shift();c3y=c2y;c4x=c3x+stack.shift();c4y=c3y;c5x=c4x+stack.shift();c5y=c4y+stack.shift();c6x=c5x+stack.shift();c6y=c5y;x=c6x;y=c6y;path.bezierCurveTo(c1x,c1y,c2x,c2y,c3x,c3y);path.bezierCurveTo(c4x,c4y,c5x,c5y,c6x,c6y);break;case 37:// flex1\nvar startx=x;var starty=y;pts=[];for(var _i4=0;_i4<=4;_i4++){x+=stack.shift();y+=stack.shift();pts.push(x,y);}if(Math.abs(x-startx)>Math.abs(y-starty)){// horizontal\nx+=stack.shift();y=starty;}else{x=startx;y+=stack.shift();}pts.push(x,y);path.bezierCurveTo.apply(path,pts.slice(0,6));path.bezierCurveTo.apply(path,pts.slice(6));break;default:throw new Error('Unknown op: 12 '+op);}break;default:throw new Error('Unknown op: '+op);}}else if(op<247){stack.push(op-139);}else if(op<251){var b1=stream.readUInt8();stack.push((op-247)*256+b1+108);}else if(op<255){var b1=stream.readUInt8();stack.push(-(op-251)*256-b1-108);}else{stack.push(stream.readInt32BE()/65536);}}};parse();if(open){path.closePath();}return path;};return CFFGlyph;}(Glyph);var SBIXImage=new r.Struct({originX:r.uint16,originY:r.uint16,type:new r.String(4),data:new r.Buffer(function(t){return t.parent.buflen-t._currentOffset;})});/**\r\n     * Represents a color (e.g. emoji) glyph in Apple's SBIX format.\r\n     */var SBIXGlyph=function(_TTFGlyph){_inherits(SBIXGlyph,_TTFGlyph);function SBIXGlyph(){_classCallCheck(this,SBIXGlyph);return _possibleConstructorReturn(this,_TTFGlyph.apply(this,arguments));}/**\r\n       * Returns an object representing a glyph image at the given point size.\r\n       * The object has a data property with a Buffer containing the actual image data,\r\n       * along with the image type, and origin.\r\n       *\r\n       * @param {number} size\r\n       * @return {object}\r\n       */SBIXGlyph.prototype.getImageForSize=function getImageForSize(size){for(var i=0;i<this._font.sbix.imageTables.length;i++){var table=this._font.sbix.imageTables[i];if(table.ppem>=size){break;}}var offsets=table.imageOffsets;var start=offsets[this.id];var end=offsets[this.id+1];if(start===end){return null;}this._font.stream.pos=start;return SBIXImage.decode(this._font.stream,{buflen:end-start});};SBIXGlyph.prototype.render=function render(ctx,size){var img=this.getImageForSize(size);if(img!=null){var scale=size/this._font.unitsPerEm;ctx.image(img.data,{height:size,x:img.originX,y:(this.bbox.minY-img.originY)*scale});}if(this._font.sbix.flags.renderOutlines){_TTFGlyph.prototype.render.call(this,ctx,size);}};return SBIXGlyph;}(TTFGlyph);var COLRLayer=function COLRLayer(glyph,color){_classCallCheck(this,COLRLayer);this.glyph=glyph;this.color=color;};/**\r\n     * Represents a color (e.g. emoji) glyph in Microsoft's COLR format.\r\n     * Each glyph in this format contain a list of colored layers, each\r\n     * of which  is another vector glyph.\r\n     */var COLRGlyph=function(_Glyph){_inherits(COLRGlyph,_Glyph);function COLRGlyph(){_classCallCheck(this,COLRGlyph);return _possibleConstructorReturn(this,_Glyph.apply(this,arguments));}COLRGlyph.prototype._getBBox=function _getBBox(){var bbox=new BBox();for(var i=0;i<this.layers.length;i++){var layer=this.layers[i];var b=layer.glyph.bbox;bbox.addPoint(b.minX,b.minY);bbox.addPoint(b.maxX,b.maxY);}return bbox;};/**\r\n       * Returns an array of objects containing the glyph and color for\r\n       * each layer in the composite color glyph.\r\n       * @type {object[]}\r\n       */COLRGlyph.prototype.render=function render(ctx,size){for(var _iterator=this.layers,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var _ref2=_ref,glyph=_ref2.glyph,color=_ref2.color;ctx.fillColor([color.red,color.green,color.blue],color.alpha/255*100);glyph.render(ctx,size);}return;};_createClass(COLRGlyph,[{key:'layers',get:function get(){var cpal=this._font.CPAL;var colr=this._font.COLR;var low=0;var high=colr.baseGlyphRecord.length-1;while(low<=high){var mid=low+high>>1;var rec=colr.baseGlyphRecord[mid];if(this.id<rec.gid){high=mid-1;}else if(this.id>rec.gid){low=mid+1;}else{var baseLayer=rec;break;}}// if base glyph not found in COLR table,\n// default to normal glyph from glyf or CFF\nif(baseLayer==null){var g=this._font._getBaseGlyph(this.id);var color={red:0,green:0,blue:0,alpha:255};return[new COLRLayer(g,color)];}// otherwise, return an array of all the layers\nvar layers=[];for(var i=baseLayer.firstLayerIndex;i<baseLayer.firstLayerIndex+baseLayer.numLayers;i++){var rec=colr.layerRecords[i];var color=cpal.colorRecords[rec.paletteIndex];var g=this._font._getBaseGlyph(rec.gid);layers.push(new COLRLayer(g,color));}return layers;}}]);return COLRGlyph;}(Glyph);var TUPLES_SHARE_POINT_NUMBERS=0x8000;var TUPLE_COUNT_MASK=0x0fff;var EMBEDDED_TUPLE_COORD=0x8000;var INTERMEDIATE_TUPLE=0x4000;var PRIVATE_POINT_NUMBERS=0x2000;var TUPLE_INDEX_MASK=0x0fff;var POINTS_ARE_WORDS=0x80;var POINT_RUN_COUNT_MASK=0x7f;var DELTAS_ARE_ZERO=0x80;var DELTAS_ARE_WORDS=0x40;var DELTA_RUN_COUNT_MASK=0x3f;/**\r\n     * This class is transforms TrueType glyphs according to the data from\r\n     * the Apple Advanced Typography variation tables (fvar, gvar, and avar).\r\n     * These tables allow infinite adjustments to glyph weight, width, slant,\r\n     * and optical size without the designer needing to specify every exact style.\r\n     *\r\n     * Apple's documentation for these tables is not great, so thanks to the\r\n     * Freetype project for figuring much of this out.\r\n     *\r\n     * @private\r\n     */var GlyphVariationProcessor=function(){function GlyphVariationProcessor(font,coords){_classCallCheck(this,GlyphVariationProcessor);this.font=font;this.normalizedCoords=this.normalizeCoords(coords);this.blendVectors=new _Map();}GlyphVariationProcessor.prototype.normalizeCoords=function normalizeCoords(coords){// the default mapping is linear along each axis, in two segments:\n// from the minValue to defaultValue, and from defaultValue to maxValue.\nvar normalized=[];for(var i=0;i<this.font.fvar.axis.length;i++){var axis=this.font.fvar.axis[i];if(coords[i]<axis.defaultValue){normalized.push((coords[i]-axis.defaultValue+_Number$EPSILON)/(axis.defaultValue-axis.minValue+_Number$EPSILON));}else{normalized.push((coords[i]-axis.defaultValue+_Number$EPSILON)/(axis.maxValue-axis.defaultValue+_Number$EPSILON));}}// if there is an avar table, the normalized value is calculated\n// by interpolating between the two nearest mapped values.\nif(this.font.avar){for(var i=0;i<this.font.avar.segment.length;i++){var segment=this.font.avar.segment[i];for(var j=0;j<segment.correspondence.length;j++){var pair=segment.correspondence[j];if(j>=1&&normalized[i]<pair.fromCoord){var prev=segment.correspondence[j-1];normalized[i]=((normalized[i]-prev.fromCoord)*(pair.toCoord-prev.toCoord)+_Number$EPSILON)/(pair.fromCoord-prev.fromCoord+_Number$EPSILON)+prev.toCoord;break;}}}}return normalized;};GlyphVariationProcessor.prototype.transformPoints=function transformPoints(gid,glyphPoints){if(!this.font.fvar||!this.font.gvar){return;}var gvar=this.font.gvar;if(gid>=gvar.glyphCount){return;}var offset=gvar.offsets[gid];if(offset===gvar.offsets[gid+1]){return;}// Read the gvar data for this glyph\nvar stream=this.font.stream;stream.pos=offset;if(stream.pos>=stream.length){return;}var tupleCount=stream.readUInt16BE();var offsetToData=offset+stream.readUInt16BE();if(tupleCount&TUPLES_SHARE_POINT_NUMBERS){var here=stream.pos;stream.pos=offsetToData;var sharedPoints=this.decodePoints();offsetToData=stream.pos;stream.pos=here;}var origPoints=glyphPoints.map(function(pt){return pt.copy();});tupleCount&=TUPLE_COUNT_MASK;for(var i=0;i<tupleCount;i++){var tupleDataSize=stream.readUInt16BE();var tupleIndex=stream.readUInt16BE();if(tupleIndex&EMBEDDED_TUPLE_COORD){var tupleCoords=[];for(var a=0;a<gvar.axisCount;a++){tupleCoords.push(stream.readInt16BE()/16384);}}else{if((tupleIndex&TUPLE_INDEX_MASK)>=gvar.globalCoordCount){throw new Error('Invalid gvar table');}var tupleCoords=gvar.globalCoords[tupleIndex&TUPLE_INDEX_MASK];}if(tupleIndex&INTERMEDIATE_TUPLE){var startCoords=[];for(var _a=0;_a<gvar.axisCount;_a++){startCoords.push(stream.readInt16BE()/16384);}var endCoords=[];for(var _a2=0;_a2<gvar.axisCount;_a2++){endCoords.push(stream.readInt16BE()/16384);}}// Get the factor at which to apply this tuple\nvar factor=this.tupleFactor(tupleIndex,tupleCoords,startCoords,endCoords);if(factor===0){offsetToData+=tupleDataSize;continue;}var here=stream.pos;stream.pos=offsetToData;if(tupleIndex&PRIVATE_POINT_NUMBERS){var points=this.decodePoints();}else{var points=sharedPoints;}// points.length = 0 means there are deltas for all points\nvar nPoints=points.length===0?glyphPoints.length:points.length;var xDeltas=this.decodeDeltas(nPoints);var yDeltas=this.decodeDeltas(nPoints);if(points.length===0){// all points\nfor(var _i=0;_i<glyphPoints.length;_i++){var point=glyphPoints[_i];point.x+=Math.round(xDeltas[_i]*factor);point.y+=Math.round(yDeltas[_i]*factor);}}else{var outPoints=origPoints.map(function(pt){return pt.copy();});var hasDelta=glyphPoints.map(function(){return false;});for(var _i2=0;_i2<points.length;_i2++){var idx=points[_i2];if(idx<glyphPoints.length){var _point=outPoints[idx];hasDelta[idx]=true;_point.x+=Math.round(xDeltas[_i2]*factor);_point.y+=Math.round(yDeltas[_i2]*factor);}}this.interpolateMissingDeltas(outPoints,origPoints,hasDelta);for(var _i3=0;_i3<glyphPoints.length;_i3++){var deltaX=outPoints[_i3].x-origPoints[_i3].x;var deltaY=outPoints[_i3].y-origPoints[_i3].y;glyphPoints[_i3].x+=deltaX;glyphPoints[_i3].y+=deltaY;}}offsetToData+=tupleDataSize;stream.pos=here;}};GlyphVariationProcessor.prototype.decodePoints=function decodePoints(){var stream=this.font.stream;var count=stream.readUInt8();if(count&POINTS_ARE_WORDS){count=(count&POINT_RUN_COUNT_MASK)<<8|stream.readUInt8();}var points=new Uint16Array(count);var i=0;var point=0;while(i<count){var run=stream.readUInt8();var runCount=(run&POINT_RUN_COUNT_MASK)+1;var fn=run&POINTS_ARE_WORDS?stream.readUInt16:stream.readUInt8;for(var j=0;j<runCount&&i<count;j++){point+=fn.call(stream);points[i++]=point;}}return points;};GlyphVariationProcessor.prototype.decodeDeltas=function decodeDeltas(count){var stream=this.font.stream;var i=0;var deltas=new Int16Array(count);while(i<count){var run=stream.readUInt8();var runCount=(run&DELTA_RUN_COUNT_MASK)+1;if(run&DELTAS_ARE_ZERO){i+=runCount;}else{var fn=run&DELTAS_ARE_WORDS?stream.readInt16BE:stream.readInt8;for(var j=0;j<runCount&&i<count;j++){deltas[i++]=fn.call(stream);}}}return deltas;};GlyphVariationProcessor.prototype.tupleFactor=function tupleFactor(tupleIndex,tupleCoords,startCoords,endCoords){var normalized=this.normalizedCoords;var gvar=this.font.gvar;var factor=1;for(var i=0;i<gvar.axisCount;i++){if(tupleCoords[i]===0){continue;}if(normalized[i]===0){return 0;}if((tupleIndex&INTERMEDIATE_TUPLE)===0){if(normalized[i]<Math.min(0,tupleCoords[i])||normalized[i]>Math.max(0,tupleCoords[i])){return 0;}factor=(factor*normalized[i]+_Number$EPSILON)/(tupleCoords[i]+_Number$EPSILON);}else{if(normalized[i]<startCoords[i]||normalized[i]>endCoords[i]){return 0;}else if(normalized[i]<tupleCoords[i]){factor=factor*(normalized[i]-startCoords[i]+_Number$EPSILON)/(tupleCoords[i]-startCoords[i]+_Number$EPSILON);}else{factor=factor*(endCoords[i]-normalized[i]+_Number$EPSILON)/(endCoords[i]-tupleCoords[i]+_Number$EPSILON);}}}return factor;};// Interpolates points without delta values.\n// Needed for the Ø and Q glyphs in Skia.\n// Algorithm from Freetype.\nGlyphVariationProcessor.prototype.interpolateMissingDeltas=function interpolateMissingDeltas(points,inPoints,hasDelta){if(points.length===0){return;}var point=0;while(point<points.length){var firstPoint=point;// find the end point of the contour\nvar endPoint=point;var pt=points[endPoint];while(!pt.endContour){pt=points[++endPoint];}// find the first point that has a delta\nwhile(point<=endPoint&&!hasDelta[point]){point++;}if(point>endPoint){continue;}var firstDelta=point;var curDelta=point;point++;while(point<=endPoint){// find the next point with a delta, and interpolate intermediate points\nif(hasDelta[point]){this.deltaInterpolate(curDelta+1,point-1,curDelta,point,inPoints,points);curDelta=point;}point++;}// shift contour if we only have a single delta\nif(curDelta===firstDelta){this.deltaShift(firstPoint,endPoint,curDelta,inPoints,points);}else{// otherwise, handle the remaining points at the end and beginning of the contour\nthis.deltaInterpolate(curDelta+1,endPoint,curDelta,firstDelta,inPoints,points);if(firstDelta>0){this.deltaInterpolate(firstPoint,firstDelta-1,curDelta,firstDelta,inPoints,points);}}point=endPoint+1;}};GlyphVariationProcessor.prototype.deltaInterpolate=function deltaInterpolate(p1,p2,ref1,ref2,inPoints,outPoints){if(p1>p2){return;}var iterable=['x','y'];for(var i=0;i<iterable.length;i++){var k=iterable[i];if(inPoints[ref1][k]>inPoints[ref2][k]){var p=ref1;ref1=ref2;ref2=p;}var in1=inPoints[ref1][k];var in2=inPoints[ref2][k];var out1=outPoints[ref1][k];var out2=outPoints[ref2][k];// If the reference points have the same coordinate but different\n// delta, inferred delta is zero.  Otherwise interpolate.\nif(in1!==in2||out1===out2){var scale=in1===in2?0:(out2-out1)/(in2-in1);for(var _p=p1;_p<=p2;_p++){var out=inPoints[_p][k];if(out<=in1){out+=out1-in1;}else if(out>=in2){out+=out2-in2;}else{out=out1+(out-in1)*scale;}outPoints[_p][k]=out;}}}};GlyphVariationProcessor.prototype.deltaShift=function deltaShift(p1,p2,ref,inPoints,outPoints){var deltaX=outPoints[ref].x-inPoints[ref].x;var deltaY=outPoints[ref].y-inPoints[ref].y;if(deltaX===0&&deltaY===0){return;}for(var p=p1;p<=p2;p++){if(p!==ref){outPoints[p].x+=deltaX;outPoints[p].y+=deltaY;}}};GlyphVariationProcessor.prototype.getAdvanceAdjustment=function getAdvanceAdjustment(gid,table){var outerIndex=void 0,innerIndex=void 0;if(table.advanceWidthMapping){var idx=gid;if(idx>=table.advanceWidthMapping.mapCount){idx=table.advanceWidthMapping.mapCount-1;}var entryFormat=table.advanceWidthMapping.entryFormat;var _table$advanceWidthMa=table.advanceWidthMapping.mapData[idx];outerIndex=_table$advanceWidthMa.outerIndex;innerIndex=_table$advanceWidthMa.innerIndex;}else{outerIndex=0;innerIndex=gid;}return this.getDelta(table.itemVariationStore,outerIndex,innerIndex);};// See pseudo code from `Font Variations Overview'\n// in the OpenType specification.\nGlyphVariationProcessor.prototype.getDelta=function getDelta(itemStore,outerIndex,innerIndex){if(outerIndex>=itemStore.itemVariationData.length){return 0;}var varData=itemStore.itemVariationData[outerIndex];if(innerIndex>=varData.deltaSets.length){return 0;}var deltaSet=varData.deltaSets[innerIndex];var blendVector=this.getBlendVector(itemStore,outerIndex);var netAdjustment=0;for(var master=0;master<varData.regionIndexCount;master++){netAdjustment+=deltaSet.deltas[master]*blendVector[master];}return netAdjustment;};GlyphVariationProcessor.prototype.getBlendVector=function getBlendVector(itemStore,outerIndex){var varData=itemStore.itemVariationData[outerIndex];if(this.blendVectors.has(varData)){return this.blendVectors.get(varData);}var normalizedCoords=this.normalizedCoords;var blendVector=[];// outer loop steps through master designs to be blended\nfor(var master=0;master<varData.regionIndexCount;master++){var scalar=1;var regionIndex=varData.regionIndexes[master];var axes=itemStore.variationRegionList.variationRegions[regionIndex];// inner loop steps through axes in this region\nfor(var j=0;j<axes.length;j++){var axis=axes[j];var axisScalar=void 0;// compute the scalar contribution of this axis\n// ignore invalid ranges\nif(axis.startCoord>axis.peakCoord||axis.peakCoord>axis.endCoord){axisScalar=1;}else if(axis.startCoord<0&&axis.endCoord>0&&axis.peakCoord!==0){axisScalar=1;// peak of 0 means ignore this axis\n}else if(axis.peakCoord===0){axisScalar=1;// ignore this region if coords are out of range\n}else if(normalizedCoords[j]<axis.startCoord||normalizedCoords[j]>axis.endCoord){axisScalar=0;// calculate a proportional factor\n}else{if(normalizedCoords[j]===axis.peakCoord){axisScalar=1;}else if(normalizedCoords[j]<axis.peakCoord){axisScalar=(normalizedCoords[j]-axis.startCoord+_Number$EPSILON)/(axis.peakCoord-axis.startCoord+_Number$EPSILON);}else{axisScalar=(axis.endCoord-normalizedCoords[j]+_Number$EPSILON)/(axis.endCoord-axis.peakCoord+_Number$EPSILON);}}// take product of all the axis scalars\nscalar*=axisScalar;}blendVector[master]=scalar;}this.blendVectors.set(varData,blendVector);return blendVector;};return GlyphVariationProcessor;}();var Subset=function(){function Subset(font){_classCallCheck(this,Subset);this.font=font;this.glyphs=[];this.mapping={};// always include the missing glyph\nthis.includeGlyph(0);}Subset.prototype.includeGlyph=function includeGlyph(glyph){if((typeof glyph==='undefined'?'undefined':_typeof(glyph))==='object'){glyph=glyph.id;}if(this.mapping[glyph]==null){this.glyphs.push(glyph);this.mapping[glyph]=this.glyphs.length-1;}return this.mapping[glyph];};Subset.prototype.encodeStream=function encodeStream(){var _this=this;var s=new r.EncodeStream();process.nextTick(function(){_this.encode(s);return s.end();});return s;};return Subset;}();// Flags for simple glyphs\nvar ON_CURVE$1=1<<0;var X_SHORT_VECTOR$1=1<<1;var Y_SHORT_VECTOR$1=1<<2;var REPEAT$1=1<<3;var SAME_X$1=1<<4;var SAME_Y$1=1<<5;var Point$1=function(){function Point(){_classCallCheck(this,Point);}Point.size=function size(val){return val>=0&&val<=255?1:2;};Point.encode=function encode(stream,value){if(value>=0&&value<=255){stream.writeUInt8(value);}else{stream.writeInt16BE(value);}};return Point;}();var Glyf=new r.Struct({numberOfContours:r.int16,// if negative, this is a composite glyph\nxMin:r.int16,yMin:r.int16,xMax:r.int16,yMax:r.int16,endPtsOfContours:new r.Array(r.uint16,'numberOfContours'),instructions:new r.Array(r.uint8,r.uint16),flags:new r.Array(r.uint8,0),xPoints:new r.Array(Point$1,0),yPoints:new r.Array(Point$1,0)});/**\r\n     * Encodes TrueType glyph outlines\r\n     */var TTFGlyphEncoder=function(){function TTFGlyphEncoder(){_classCallCheck(this,TTFGlyphEncoder);}TTFGlyphEncoder.prototype.encodeSimple=function encodeSimple(path){var instructions=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var endPtsOfContours=[];var xPoints=[];var yPoints=[];var flags=[];var same=0;var lastX=0,lastY=0,lastFlag=0;var pointCount=0;for(var i=0;i<path.commands.length;i++){var c=path.commands[i];for(var j=0;j<c.args.length;j+=2){var x=c.args[j];var y=c.args[j+1];var flag=0;// If the ending point of a quadratic curve is the midpoint\n// between the control point and the control point of the next\n// quadratic curve, we can omit the ending point.\nif(c.command==='quadraticCurveTo'&&j===2){var next=path.commands[i+1];if(next&&next.command==='quadraticCurveTo'){var midX=(lastX+next.args[0])/2;var midY=(lastY+next.args[1])/2;if(x===midX&&y===midY){continue;}}}// All points except control points are on curve.\nif(!(c.command==='quadraticCurveTo'&&j===0)){flag|=ON_CURVE$1;}flag=this._encodePoint(x,lastX,xPoints,flag,X_SHORT_VECTOR$1,SAME_X$1);flag=this._encodePoint(y,lastY,yPoints,flag,Y_SHORT_VECTOR$1,SAME_Y$1);if(flag===lastFlag&&same<255){flags[flags.length-1]|=REPEAT$1;same++;}else{if(same>0){flags.push(same);same=0;}flags.push(flag);lastFlag=flag;}lastX=x;lastY=y;pointCount++;}if(c.command==='closePath'){endPtsOfContours.push(pointCount-1);}}// Close the path if the last command didn't already\nif(path.commands.length>1&&path.commands[path.commands.length-1].command!=='closePath'){endPtsOfContours.push(pointCount-1);}var bbox=path.bbox;var glyf={numberOfContours:endPtsOfContours.length,xMin:bbox.minX,yMin:bbox.minY,xMax:bbox.maxX,yMax:bbox.maxY,endPtsOfContours:endPtsOfContours,instructions:instructions,flags:flags,xPoints:xPoints,yPoints:yPoints};var size=Glyf.size(glyf);var tail=4-size%4;var stream=new r.EncodeStream(size+tail);Glyf.encode(stream,glyf);// Align to 4-byte length\nif(tail!==0){stream.fill(0,tail);}return stream.buffer;};TTFGlyphEncoder.prototype._encodePoint=function _encodePoint(value,last,points,flag,shortFlag,sameFlag){var diff=value-last;if(value===last){flag|=sameFlag;}else{if(-255<=diff&&diff<=255){flag|=shortFlag;if(diff<0){diff=-diff;}else{flag|=sameFlag;}}points.push(diff);}return flag;};return TTFGlyphEncoder;}();var TTFSubset=function(_Subset){_inherits(TTFSubset,_Subset);function TTFSubset(font){_classCallCheck(this,TTFSubset);var _this=_possibleConstructorReturn(this,_Subset.call(this,font));_this.glyphEncoder=new TTFGlyphEncoder();return _this;}TTFSubset.prototype._addGlyph=function _addGlyph(gid){var glyph=this.font.getGlyph(gid);var glyf=glyph._decode();// get the offset to the glyph from the loca table\nvar curOffset=this.font.loca.offsets[gid];var nextOffset=this.font.loca.offsets[gid+1];var stream=this.font._getTableStream('glyf');stream.pos+=curOffset;var buffer=stream.readBuffer(nextOffset-curOffset);// if it is a compound glyph, include its components\nif(glyf&&glyf.numberOfContours<0){buffer=new Buffer(buffer);for(var _iterator=glyf.components,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var component=_ref;gid=this.includeGlyph(component.glyphID);buffer.writeUInt16BE(gid,component.pos);}}else if(glyf&&this.font._variationProcessor){// If this is a TrueType variation glyph, re-encode the path\nbuffer=this.glyphEncoder.encodeSimple(glyph.path,glyf.instructions);}this.glyf.push(buffer);this.loca.offsets.push(this.offset);this.hmtx.metrics.push({advance:glyph.advanceWidth,bearing:glyph._getMetrics().leftBearing});this.offset+=buffer.length;return this.glyf.length-1;};TTFSubset.prototype.encode=function encode(stream){// tables required by PDF spec:\n//   head, hhea, loca, maxp, cvt , prep, glyf, hmtx, fpgm\n//\n// additional tables required for standalone fonts:\n//   name, cmap, OS/2, post\nthis.glyf=[];this.offset=0;this.loca={offsets:[],version:this.font.loca.version};this.hmtx={metrics:[],bearings:[]};// include all the glyphs\n// not using a for loop because we need to support adding more\n// glyphs to the array as we go, and CoffeeScript caches the length.\nvar i=0;while(i<this.glyphs.length){this._addGlyph(this.glyphs[i++]);}var maxp=cloneDeep(this.font.maxp);maxp.numGlyphs=this.glyf.length;this.loca.offsets.push(this.offset);var head=cloneDeep(this.font.head);head.indexToLocFormat=this.loca.version;var hhea=cloneDeep(this.font.hhea);hhea.numberOfMetrics=this.hmtx.metrics.length;// map = []\n// for index in [0...256]\n//     if index < @numGlyphs\n//         map[index] = index\n//     else\n//         map[index] = 0\n//\n// cmapTable =\n//     version: 0\n//     length: 262\n//     language: 0\n//     codeMap: map\n//\n// cmap =\n//     version: 0\n//     numSubtables: 1\n//     tables: [\n//         platformID: 1\n//         encodingID: 0\n//         table: cmapTable\n//     ]\n// TODO: subset prep, cvt, fpgm?\nDirectory.encode(stream,{tables:{head:head,hhea:hhea,loca:this.loca,maxp:maxp,'cvt ':this.font['cvt '],prep:this.font.prep,glyf:this.glyf,hmtx:this.hmtx,fpgm:this.font.fpgm// name: clone @font.name\n// 'OS/2': clone @font['OS/2']\n// post: clone @font.post\n// cmap: cmap\n}});};return TTFSubset;}(Subset);var CFFSubset=function(_Subset){_inherits(CFFSubset,_Subset);function CFFSubset(font){_classCallCheck(this,CFFSubset);var _this=_possibleConstructorReturn(this,_Subset.call(this,font));_this.cff=_this.font['CFF '];if(!_this.cff){throw new Error('Not a CFF Font');}return _this;}CFFSubset.prototype.subsetCharstrings=function subsetCharstrings(){this.charstrings=[];var gsubrs={};for(var _iterator=this.glyphs,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var gid=_ref;this.charstrings.push(this.cff.getCharString(gid));var glyph=this.font.getGlyph(gid);var path=glyph.path;// this causes the glyph to be parsed\nfor(var subr in glyph._usedGsubrs){gsubrs[subr]=true;}}this.gsubrs=this.subsetSubrs(this.cff.globalSubrIndex,gsubrs);};CFFSubset.prototype.subsetSubrs=function subsetSubrs(subrs,used){var res=[];for(var i=0;i<subrs.length;i++){var subr=subrs[i];if(used[i]){this.cff.stream.pos=subr.offset;res.push(this.cff.stream.readBuffer(subr.length));}else{res.push(new Buffer([11]));// return\n}}return res;};CFFSubset.prototype.subsetFontdict=function subsetFontdict(topDict){topDict.FDArray=[];topDict.FDSelect={version:0,fds:[]};var used_fds={};var used_subrs=[];for(var _iterator2=this.glyphs,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var gid=_ref2;var fd=this.cff.fdForGlyph(gid);if(fd==null){continue;}if(!used_fds[fd]){topDict.FDArray.push(_Object$assign({},this.cff.topDict.FDArray[fd]));used_subrs.push({});}used_fds[fd]=true;topDict.FDSelect.fds.push(topDict.FDArray.length-1);var glyph=this.font.getGlyph(gid);var path=glyph.path;// this causes the glyph to be parsed\nfor(var subr in glyph._usedSubrs){used_subrs[used_subrs.length-1][subr]=true;}}for(var i=0;i<topDict.FDArray.length;i++){var dict=topDict.FDArray[i];delete dict.FontName;if(dict.Private&&dict.Private.Subrs){dict.Private=_Object$assign({},dict.Private);dict.Private.Subrs=this.subsetSubrs(dict.Private.Subrs,used_subrs[i]);}}return;};CFFSubset.prototype.createCIDFontdict=function createCIDFontdict(topDict){var used_subrs={};for(var _iterator3=this.glyphs,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_getIterator(_iterator3);;){var _ref3;if(_isArray3){if(_i3>=_iterator3.length)break;_ref3=_iterator3[_i3++];}else{_i3=_iterator3.next();if(_i3.done)break;_ref3=_i3.value;}var gid=_ref3;var glyph=this.font.getGlyph(gid);var path=glyph.path;// this causes the glyph to be parsed\nfor(var subr in glyph._usedSubrs){used_subrs[subr]=true;}}var privateDict=_Object$assign({},this.cff.topDict.Private);if(this.cff.topDict.Private&&this.cff.topDict.Private.Subrs){privateDict.Subrs=this.subsetSubrs(this.cff.topDict.Private.Subrs,used_subrs);}topDict.FDArray=[{Private:privateDict}];return topDict.FDSelect={version:3,nRanges:1,ranges:[{first:0,fd:0}],sentinel:this.charstrings.length};};CFFSubset.prototype.addString=function addString(string){if(!string){return null;}if(!this.strings){this.strings=[];}this.strings.push(string);return standardStrings.length+this.strings.length-1;};CFFSubset.prototype.encode=function encode(stream){this.subsetCharstrings();var charset={version:this.charstrings.length>255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]};var topDict=_Object$assign({},this.cff.topDict);topDict.Private=null;topDict.charset=charset;topDict.Encoding=null;topDict.CharStrings=this.charstrings;var _arr=['version','Notice','Copyright','FullName','FamilyName','Weight','PostScript','BaseFontName','FontName'];for(var _i4=0;_i4<_arr.length;_i4++){var key=_arr[_i4];topDict[key]=this.addString(this.cff.string(topDict[key]));}topDict.ROS=[this.addString('Adobe'),this.addString('Identity'),0];topDict.CIDCount=this.charstrings.length;if(this.cff.isCIDFont){this.subsetFontdict(topDict);}else{this.createCIDFontdict(topDict);}var top={version:1,hdrSize:this.cff.hdrSize,offSize:4,header:this.cff.header,nameIndex:[this.cff.postscriptName],topDictIndex:[topDict],stringIndex:this.strings,globalSubrIndex:this.gsubrs};CFFTop.encode(stream,top);};return CFFSubset;}(Subset);var _class;function _applyDecoratedDescriptor(target,property,decorators,descriptor,context){var desc={};Object['ke'+'ys'](descriptor).forEach(function(key){desc[key]=descriptor[key];});desc.enumerable=!!desc.enumerable;desc.configurable=!!desc.configurable;if('value'in desc||desc.initializer){desc.writable=true;}desc=decorators.slice().reverse().reduce(function(desc,decorator){return decorator(target,property,desc)||desc;},desc);if(context&&desc.initializer!==void 0){desc.value=desc.initializer?desc.initializer.call(context):void 0;desc.initializer=undefined;}if(desc.initializer===void 0){Object['define'+'Property'](target,property,desc);desc=null;}return desc;}/**\r\n     * This is the base class for all SFNT-based font formats in fontkit.\r\n     * It supports TrueType, and PostScript glyphs, and several color glyph formats.\r\n     */var TTFFont=(_class=function(){TTFFont.probe=function probe(buffer){var format=buffer.toString('ascii',0,4);return format==='true'||format==='OTTO'||format===String.fromCharCode(0,1,0,0);};function TTFFont(stream){var variationCoords=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;_classCallCheck(this,TTFFont);this.defaultLanguage=null;this.stream=stream;this.variationCoords=variationCoords;this._directoryPos=this.stream.pos;this._tables={};this._glyphs={};this._decodeDirectory();// define properties for each table to lazily parse\nfor(var tag in this.directory.tables){var table=this.directory.tables[tag];if(tables[tag]&&table.length>0){_Object$defineProperty(this,tag,{get:this._getTable.bind(this,table)});}}}TTFFont.prototype.setDefaultLanguage=function setDefaultLanguage(){var lang=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;this.defaultLanguage=lang;};TTFFont.prototype._getTable=function _getTable(table){if(!(table.tag in this._tables)){try{this._tables[table.tag]=this._decodeTable(table);}catch(e){if(fontkit.logErrors){console.error('Error decoding table '+table.tag);console.error(e.stack);}}}return this._tables[table.tag];};TTFFont.prototype._getTableStream=function _getTableStream(tag){var table=this.directory.tables[tag];if(table){this.stream.pos=table.offset;return this.stream;}return null;};TTFFont.prototype._decodeDirectory=function _decodeDirectory(){return this.directory=Directory.decode(this.stream,{_startOffset:0});};TTFFont.prototype._decodeTable=function _decodeTable(table){var pos=this.stream.pos;var stream=this._getTableStream(table.tag);var result=tables[table.tag].decode(stream,this,table.length);this.stream.pos=pos;return result;};/**\r\n       * Gets a string from the font's `name` table\r\n       * `lang` is a BCP-47 language code.\r\n       * @return {string}\r\n       */TTFFont.prototype.getName=function getName(key){var lang=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.defaultLanguage||fontkit.defaultLanguage;var record=this.name&&this.name.records[key];if(record){// Attempt to retrieve the entry, depending on which translation is available:\nreturn record[lang]||record[this.defaultLanguage]||record[fontkit.defaultLanguage]||record['en']||record[_Object$keys(record)[0]]// Seriously, ANY language would be fine\n||null;}return null;};/**\r\n       * The unique PostScript name for this font, e.g. \"Helvetica-Bold\"\r\n       * @type {string}\r\n       */ /**\r\n       * Returns whether there is glyph in the font for the given unicode code point.\r\n       *\r\n       * @param {number} codePoint\r\n       * @return {boolean}\r\n       */TTFFont.prototype.hasGlyphForCodePoint=function hasGlyphForCodePoint(codePoint){return!!this._cmapProcessor.lookup(codePoint);};/**\r\n       * Maps a single unicode code point to a Glyph object.\r\n       * Does not perform any advanced substitutions (there is no context to do so).\r\n       *\r\n       * @param {number} codePoint\r\n       * @return {Glyph}\r\n       */TTFFont.prototype.glyphForCodePoint=function glyphForCodePoint(codePoint){return this.getGlyph(this._cmapProcessor.lookup(codePoint),[codePoint]);};/**\r\n       * Returns an array of Glyph objects for the given string.\r\n       * This is only a one-to-one mapping from characters to glyphs.\r\n       * For most uses, you should use font.layout (described below), which\r\n       * provides a much more advanced mapping supporting AAT and OpenType shaping.\r\n       *\r\n       * @param {string} string\r\n       * @return {Glyph[]}\r\n       */TTFFont.prototype.glyphsForString=function glyphsForString(string){var glyphs=[];var len=string.length;var idx=0;var last=-1;var state=-1;while(idx<=len){var code=0;var nextState=0;if(idx<len){// Decode the next codepoint from UTF 16\ncode=string.charCodeAt(idx++);if(0xd800<=code&&code<=0xdbff&&idx<len){var next=string.charCodeAt(idx);if(0xdc00<=next&&next<=0xdfff){idx++;code=((code&0x3ff)<<10)+(next&0x3ff)+0x10000;}}// Compute the next state: 1 if the next codepoint is a variation selector, 0 otherwise.\nnextState=0xfe00<=code&&code<=0xfe0f||0xe0100<=code&&code<=0xe01ef?1:0;}else{idx++;}if(state===0&&nextState===1){// Variation selector following normal codepoint.\nglyphs.push(this.getGlyph(this._cmapProcessor.lookup(last,code),[last,code]));}else if(state===0&&nextState===0){// Normal codepoint following normal codepoint.\nglyphs.push(this.glyphForCodePoint(last));}last=code;state=nextState;}return glyphs;};/**\r\n       * Returns a GlyphRun object, which includes an array of Glyphs and GlyphPositions for the given string.\r\n       *\r\n       * @param {string} string\r\n       * @param {string[]} [userFeatures]\r\n       * @param {string} [script]\r\n       * @param {string} [language]\r\n       * @param {string} [direction]\r\n       * @return {GlyphRun}\r\n       */TTFFont.prototype.layout=function layout(string,userFeatures,script,language,direction){return this._layoutEngine.layout(string,userFeatures,script,language,direction);};/**\r\n       * Returns an array of strings that map to the given glyph id.\r\n       * @param {number} gid - glyph id\r\n       */TTFFont.prototype.stringsForGlyph=function stringsForGlyph(gid){return this._layoutEngine.stringsForGlyph(gid);};/**\r\n       * An array of all [OpenType feature tags](https://www.microsoft.com/typography/otspec/featuretags.htm)\r\n       * (or mapped AAT tags) supported by the font.\r\n       * The features parameter is an array of OpenType feature tags to be applied in addition to the default set.\r\n       * If this is an AAT font, the OpenType feature tags are mapped to AAT features.\r\n       *\r\n       * @type {string[]}\r\n       */TTFFont.prototype.getAvailableFeatures=function getAvailableFeatures(script,language){return this._layoutEngine.getAvailableFeatures(script,language);};TTFFont.prototype._getBaseGlyph=function _getBaseGlyph(glyph){var characters=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(!this._glyphs[glyph]){if(this.directory.tables.glyf){this._glyphs[glyph]=new TTFGlyph(glyph,characters,this);}else if(this.directory.tables['CFF ']||this.directory.tables.CFF2){this._glyphs[glyph]=new CFFGlyph(glyph,characters,this);}}return this._glyphs[glyph]||null;};/**\r\n       * Returns a glyph object for the given glyph id.\r\n       * You can pass the array of code points this glyph represents for\r\n       * your use later, and it will be stored in the glyph object.\r\n       *\r\n       * @param {number} glyph\r\n       * @param {number[]} characters\r\n       * @return {Glyph}\r\n       */TTFFont.prototype.getGlyph=function getGlyph(glyph){var characters=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(!this._glyphs[glyph]){if(this.directory.tables.sbix){this._glyphs[glyph]=new SBIXGlyph(glyph,characters,this);}else if(this.directory.tables.COLR&&this.directory.tables.CPAL){this._glyphs[glyph]=new COLRGlyph(glyph,characters,this);}else{this._getBaseGlyph(glyph,characters);}}return this._glyphs[glyph]||null;};/**\r\n       * Returns a Subset for this font.\r\n       * @return {Subset}\r\n       */TTFFont.prototype.createSubset=function createSubset(){if(this.directory.tables['CFF ']){return new CFFSubset(this);}return new TTFSubset(this);};/**\r\n       * Returns an object describing the available variation axes\r\n       * that this font supports. Keys are setting tags, and values\r\n       * contain the axis name, range, and default value.\r\n       *\r\n       * @type {object}\r\n       */ /**\r\n       * Returns a new font with the given variation settings applied.\r\n       * Settings can either be an instance name, or an object containing\r\n       * variation tags as specified by the `variationAxes` property.\r\n       *\r\n       * @param {object} settings\r\n       * @return {TTFFont}\r\n       */TTFFont.prototype.getVariation=function getVariation(settings){if(!(this.directory.tables.fvar&&(this.directory.tables.gvar&&this.directory.tables.glyf||this.directory.tables.CFF2))){throw new Error('Variations require a font with the fvar, gvar and glyf, or CFF2 tables.');}if(typeof settings==='string'){settings=this.namedVariations[settings];}if((typeof settings==='undefined'?'undefined':_typeof(settings))!=='object'){throw new Error('Variation settings must be either a variation name or settings object.');}// normalize the coordinates\nvar coords=this.fvar.axis.map(function(axis,i){var axisTag=axis.axisTag.trim();if(axisTag in settings){return Math.max(axis.minValue,Math.min(axis.maxValue,settings[axisTag]));}else{return axis.defaultValue;}});var stream=new r.DecodeStream(this.stream.buffer);stream.pos=this._directoryPos;var font=new TTFFont(stream,coords);font._tables=this._tables;return font;};// Standardized format plugin API\nTTFFont.prototype.getFont=function getFont(name){return this.getVariation(name);};_createClass(TTFFont,[{key:'postscriptName',get:function get(){return this.getName('postscriptName');}/**\r\n         * The font's full name, e.g. \"Helvetica Bold\"\r\n         * @type {string}\r\n         */},{key:'fullName',get:function get(){return this.getName('fullName');}/**\r\n         * The font's family name, e.g. \"Helvetica\"\r\n         * @type {string}\r\n         */},{key:'familyName',get:function get(){return this.getName('fontFamily');}/**\r\n         * The font's sub-family, e.g. \"Bold\".\r\n         * @type {string}\r\n         */},{key:'subfamilyName',get:function get(){return this.getName('fontSubfamily');}/**\r\n         * The font's copyright information\r\n         * @type {string}\r\n         */},{key:'copyright',get:function get(){return this.getName('copyright');}/**\r\n         * The font's version number\r\n         * @type {string}\r\n         */},{key:'version',get:function get(){return this.getName('version');}/**\r\n         * The font’s [ascender](https://en.wikipedia.org/wiki/Ascender_(typography))\r\n         * @type {number}\r\n         */},{key:'ascent',get:function get(){return this.hhea.ascent;}/**\r\n         * The font’s [descender](https://en.wikipedia.org/wiki/Descender)\r\n         * @type {number}\r\n         */},{key:'descent',get:function get(){return this.hhea.descent;}/**\r\n         * The amount of space that should be included between lines\r\n         * @type {number}\r\n         */},{key:'lineGap',get:function get(){return this.hhea.lineGap;}/**\r\n         * The offset from the normal underline position that should be used\r\n         * @type {number}\r\n         */},{key:'underlinePosition',get:function get(){return this.post.underlinePosition;}/**\r\n         * The weight of the underline that should be used\r\n         * @type {number}\r\n         */},{key:'underlineThickness',get:function get(){return this.post.underlineThickness;}/**\r\n         * If this is an italic font, the angle the cursor should be drawn at to match the font design\r\n         * @type {number}\r\n         */},{key:'italicAngle',get:function get(){return this.post.italicAngle;}/**\r\n         * The height of capital letters above the baseline.\r\n         * See [here](https://en.wikipedia.org/wiki/Cap_height) for more details.\r\n         * @type {number}\r\n         */},{key:'capHeight',get:function get(){var os2=this['OS/2'];return os2?os2.capHeight:this.ascent;}/**\r\n         * The height of lower case letters in the font.\r\n         * See [here](https://en.wikipedia.org/wiki/X-height) for more details.\r\n         * @type {number}\r\n         */},{key:'xHeight',get:function get(){var os2=this['OS/2'];return os2?os2.xHeight:0;}/**\r\n         * The number of glyphs in the font.\r\n         * @type {number}\r\n         */},{key:'numGlyphs',get:function get(){return this.maxp.numGlyphs;}/**\r\n         * The size of the font’s internal coordinate grid\r\n         * @type {number}\r\n         */},{key:'unitsPerEm',get:function get(){return this.head.unitsPerEm;}/**\r\n         * The font’s bounding box, i.e. the box that encloses all glyphs in the font.\r\n         * @type {BBox}\r\n         */},{key:'bbox',get:function get(){return _Object$freeze(new BBox(this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax));}},{key:'_cmapProcessor',get:function get(){return new CmapProcessor(this.cmap);}/**\r\n         * An array of all of the unicode code points supported by the font.\r\n         * @type {number[]}\r\n         */},{key:'characterSet',get:function get(){return this._cmapProcessor.getCharacterSet();}},{key:'_layoutEngine',get:function get(){return new LayoutEngine(this);}},{key:'availableFeatures',get:function get(){return this._layoutEngine.getAvailableFeatures();}},{key:'variationAxes',get:function get(){var res={};if(!this.fvar){return res;}for(var _iterator=this.fvar.axis,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var axis=_ref;res[axis.axisTag.trim()]={name:axis.name.en,min:axis.minValue,default:axis.defaultValue,max:axis.maxValue};}return res;}/**\r\n         * Returns an object describing the named variation instances\r\n         * that the font designer has specified. Keys are variation names\r\n         * and values are the variation settings for this instance.\r\n         *\r\n         * @type {object}\r\n         */},{key:'namedVariations',get:function get(){var res={};if(!this.fvar){return res;}for(var _iterator2=this.fvar.instance,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var instance=_ref2;var settings={};for(var i=0;i<this.fvar.axis.length;i++){var axis=this.fvar.axis[i];settings[axis.axisTag.trim()]=instance.coord[i];}res[instance.name.en]=settings;}return res;}},{key:'_variationProcessor',get:function get(){if(!this.fvar){return null;}var variationCoords=this.variationCoords;// Ignore if no variation coords and not CFF2\nif(!variationCoords&&!this.CFF2){return null;}if(!variationCoords){variationCoords=this.fvar.axis.map(function(axis){return axis.defaultValue;});}return new GlyphVariationProcessor(this,variationCoords);}}]);return TTFFont;}(),(_applyDecoratedDescriptor(_class.prototype,'bbox',[cache],_Object$getOwnPropertyDescriptor(_class.prototype,'bbox'),_class.prototype),_applyDecoratedDescriptor(_class.prototype,'_cmapProcessor',[cache],_Object$getOwnPropertyDescriptor(_class.prototype,'_cmapProcessor'),_class.prototype),_applyDecoratedDescriptor(_class.prototype,'characterSet',[cache],_Object$getOwnPropertyDescriptor(_class.prototype,'characterSet'),_class.prototype),_applyDecoratedDescriptor(_class.prototype,'_layoutEngine',[cache],_Object$getOwnPropertyDescriptor(_class.prototype,'_layoutEngine'),_class.prototype),_applyDecoratedDescriptor(_class.prototype,'variationAxes',[cache],_Object$getOwnPropertyDescriptor(_class.prototype,'variationAxes'),_class.prototype),_applyDecoratedDescriptor(_class.prototype,'namedVariations',[cache],_Object$getOwnPropertyDescriptor(_class.prototype,'namedVariations'),_class.prototype),_applyDecoratedDescriptor(_class.prototype,'_variationProcessor',[cache],_Object$getOwnPropertyDescriptor(_class.prototype,'_variationProcessor'),_class.prototype)),_class);var WOFFDirectoryEntry=new r.Struct({tag:new r.String(4),offset:new r.Pointer(r.uint32,'void',{type:'global'}),compLength:r.uint32,length:r.uint32,origChecksum:r.uint32});var WOFFDirectory=new r.Struct({tag:new r.String(4),// should be 'wOFF'\nflavor:r.uint32,length:r.uint32,numTables:r.uint16,reserved:new r.Reserved(r.uint16),totalSfntSize:r.uint32,majorVersion:r.uint16,minorVersion:r.uint16,metaOffset:r.uint32,metaLength:r.uint32,metaOrigLength:r.uint32,privOffset:r.uint32,privLength:r.uint32,tables:new r.Array(WOFFDirectoryEntry,'numTables')});WOFFDirectory.process=function(){var tables={};for(var _iterator=this.tables,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var table=_ref;tables[table.tag]=table;}this.tables=tables;};var WOFFFont=function(_TTFFont){_inherits(WOFFFont,_TTFFont);function WOFFFont(){_classCallCheck(this,WOFFFont);return _possibleConstructorReturn(this,_TTFFont.apply(this,arguments));}WOFFFont.probe=function probe(buffer){return buffer.toString('ascii',0,4)==='wOFF';};WOFFFont.prototype._decodeDirectory=function _decodeDirectory(){this.directory=WOFFDirectory.decode(this.stream,{_startOffset:0});};WOFFFont.prototype._getTableStream=function _getTableStream(tag){var table=this.directory.tables[tag];if(table){this.stream.pos=table.offset;if(table.compLength<table.length){this.stream.pos+=2;// skip deflate header\nvar outBuffer=new Buffer(table.length);var buf=inflate(this.stream.readBuffer(table.compLength-2),outBuffer);return new r.DecodeStream(buf);}else{return this.stream;}}return null;};return WOFFFont;}(TTFFont);/**\r\n     * Represents a TrueType glyph in the WOFF2 format, which compresses glyphs differently.\r\n     */var WOFF2Glyph=function(_TTFGlyph){_inherits(WOFF2Glyph,_TTFGlyph);function WOFF2Glyph(){_classCallCheck(this,WOFF2Glyph);return _possibleConstructorReturn(this,_TTFGlyph.apply(this,arguments));}WOFF2Glyph.prototype._decode=function _decode(){// We have to decode in advance (in WOFF2Font), so just return the pre-decoded data.\nreturn this._font._transformedGlyphs[this.id];};WOFF2Glyph.prototype._getCBox=function _getCBox(){return this.path.bbox;};return WOFF2Glyph;}(TTFGlyph);var Base128={decode:function decode(stream){var result=0;var iterable=[0,1,2,3,4];for(var j=0;j<iterable.length;j++){var i=iterable[j];var code=stream.readUInt8();// If any of the top seven bits are set then we're about to overflow.\nif(result&0xe0000000){throw new Error('Overflow');}result=result<<7|code&0x7f;if((code&0x80)===0){return result;}}throw new Error('Bad base 128 number');}};var knownTags=['cmap','head','hhea','hmtx','maxp','name','OS/2','post','cvt ','fpgm','glyf','loca','prep','CFF ','VORG','EBDT','EBLC','gasp','hdmx','kern','LTSH','PCLT','VDMX','vhea','vmtx','BASE','GDEF','GPOS','GSUB','EBSC','JSTF','MATH','CBDT','CBLC','COLR','CPAL','SVG ','sbix','acnt','avar','bdat','bloc','bsln','cvar','fdsc','feat','fmtx','fvar','gvar','hsty','just','lcar','mort','morx','opbd','prop','trak','Zapf','Silf','Glat','Gloc','Feat','Sill'];var WOFF2DirectoryEntry=new r.Struct({flags:r.uint8,customTag:new r.Optional(new r.String(4),function(t){return(t.flags&0x3f)===0x3f;}),tag:function tag(t){return t.customTag||knownTags[t.flags&0x3f];},// || (() => { throw new Error(`Bad tag: ${flags & 0x3f}`); })(); },\nlength:Base128,transformVersion:function transformVersion(t){return t.flags>>>6&0x03;},transformed:function transformed(t){return t.tag==='glyf'||t.tag==='loca'?t.transformVersion===0:t.transformVersion!==0;},transformLength:new r.Optional(Base128,function(t){return t.transformed;})});var WOFF2Directory=new r.Struct({tag:new r.String(4),// should be 'wOF2'\nflavor:r.uint32,length:r.uint32,numTables:r.uint16,reserved:new r.Reserved(r.uint16),totalSfntSize:r.uint32,totalCompressedSize:r.uint32,majorVersion:r.uint16,minorVersion:r.uint16,metaOffset:r.uint32,metaLength:r.uint32,metaOrigLength:r.uint32,privOffset:r.uint32,privLength:r.uint32,tables:new r.Array(WOFF2DirectoryEntry,'numTables')});WOFF2Directory.process=function(){var tables={};for(var i=0;i<this.tables.length;i++){var table=this.tables[i];tables[table.tag]=table;}return this.tables=tables;};/**\r\n     * Subclass of TTFFont that represents a TTF/OTF font compressed by WOFF2\r\n     * See spec here: http://www.w3.org/TR/WOFF2/\r\n     */var WOFF2Font=function(_TTFFont){_inherits(WOFF2Font,_TTFFont);function WOFF2Font(){_classCallCheck(this,WOFF2Font);return _possibleConstructorReturn(this,_TTFFont.apply(this,arguments));}WOFF2Font.probe=function probe(buffer){return buffer.toString('ascii',0,4)==='wOF2';};WOFF2Font.prototype._decodeDirectory=function _decodeDirectory(){this.directory=WOFF2Directory.decode(this.stream);this._dataPos=this.stream.pos;};WOFF2Font.prototype._decompress=function _decompress(){// decompress data and setup table offsets if we haven't already\nif(!this._decompressed){this.stream.pos=this._dataPos;var buffer=this.stream.readBuffer(this.directory.totalCompressedSize);var decompressedSize=0;for(var tag in this.directory.tables){var entry=this.directory.tables[tag];entry.offset=decompressedSize;decompressedSize+=entry.transformLength!=null?entry.transformLength:entry.length;}var decompressed=brotli(buffer,decompressedSize);if(!decompressed){throw new Error('Error decoding compressed data in WOFF2');}this.stream=new r.DecodeStream(new Buffer(decompressed));this._decompressed=true;}};WOFF2Font.prototype._decodeTable=function _decodeTable(table){this._decompress();return _TTFFont.prototype._decodeTable.call(this,table);};// Override this method to get a glyph and return our\n// custom subclass if there is a glyf table.\nWOFF2Font.prototype._getBaseGlyph=function _getBaseGlyph(glyph){var characters=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(!this._glyphs[glyph]){if(this.directory.tables.glyf&&this.directory.tables.glyf.transformed){if(!this._transformedGlyphs){this._transformGlyfTable();}return this._glyphs[glyph]=new WOFF2Glyph(glyph,characters,this);}else{return _TTFFont.prototype._getBaseGlyph.call(this,glyph,characters);}}};WOFF2Font.prototype._transformGlyfTable=function _transformGlyfTable(){this._decompress();this.stream.pos=this.directory.tables.glyf.offset;var table=GlyfTable.decode(this.stream);var glyphs=[];for(var index=0;index<table.numGlyphs;index++){var glyph={};var nContours=table.nContours.readInt16BE();glyph.numberOfContours=nContours;if(nContours>0){// simple glyph\nvar nPoints=[];var totalPoints=0;for(var i=0;i<nContours;i++){var _r=read255UInt16(table.nPoints);totalPoints+=_r;nPoints.push(totalPoints);}glyph.points=decodeTriplet(table.flags,table.glyphs,totalPoints);for(var _i=0;_i<nContours;_i++){glyph.points[nPoints[_i]-1].endContour=true;}var instructionSize=read255UInt16(table.glyphs);}else if(nContours<0){// composite glyph\nvar haveInstructions=TTFGlyph.prototype._decodeComposite.call({_font:this},glyph,table.composites);if(haveInstructions){var instructionSize=read255UInt16(table.glyphs);}}glyphs.push(glyph);}this._transformedGlyphs=glyphs;};return WOFF2Font;}(TTFFont);var Substream=function(){function Substream(length){_classCallCheck(this,Substream);this.length=length;this._buf=new r.Buffer(length);}Substream.prototype.decode=function decode(stream,parent){return new r.DecodeStream(this._buf.decode(stream,parent));};return Substream;}();// This struct represents the entire glyf table\nvar GlyfTable=new r.Struct({version:r.uint32,numGlyphs:r.uint16,indexFormat:r.uint16,nContourStreamSize:r.uint32,nPointsStreamSize:r.uint32,flagStreamSize:r.uint32,glyphStreamSize:r.uint32,compositeStreamSize:r.uint32,bboxStreamSize:r.uint32,instructionStreamSize:r.uint32,nContours:new Substream('nContourStreamSize'),nPoints:new Substream('nPointsStreamSize'),flags:new Substream('flagStreamSize'),glyphs:new Substream('glyphStreamSize'),composites:new Substream('compositeStreamSize'),bboxes:new Substream('bboxStreamSize'),instructions:new Substream('instructionStreamSize')});var WORD_CODE=253;var ONE_MORE_BYTE_CODE2=254;var ONE_MORE_BYTE_CODE1=255;var LOWEST_U_CODE=253;function read255UInt16(stream){var code=stream.readUInt8();if(code===WORD_CODE){return stream.readUInt16BE();}if(code===ONE_MORE_BYTE_CODE1){return stream.readUInt8()+LOWEST_U_CODE;}if(code===ONE_MORE_BYTE_CODE2){return stream.readUInt8()+LOWEST_U_CODE*2;}return code;}function withSign(flag,baseval){return flag&1?baseval:-baseval;}function decodeTriplet(flags,glyphs,nPoints){var y=void 0;var x=y=0;var res=[];for(var i=0;i<nPoints;i++){var dx=0,dy=0;var flag=flags.readUInt8();var onCurve=!(flag>>7);flag&=0x7f;if(flag<10){dx=0;dy=withSign(flag,((flag&14)<<7)+glyphs.readUInt8());}else if(flag<20){dx=withSign(flag,((flag-10&14)<<7)+glyphs.readUInt8());dy=0;}else if(flag<84){var b0=flag-20;var b1=glyphs.readUInt8();dx=withSign(flag,1+(b0&0x30)+(b1>>4));dy=withSign(flag>>1,1+((b0&0x0c)<<2)+(b1&0x0f));}else if(flag<120){var b0=flag-84;dx=withSign(flag,1+(b0/12<<8)+glyphs.readUInt8());dy=withSign(flag>>1,1+(b0%12>>2<<8)+glyphs.readUInt8());}else if(flag<124){var b1=glyphs.readUInt8();var b2=glyphs.readUInt8();dx=withSign(flag,(b1<<4)+(b2>>4));dy=withSign(flag>>1,((b2&0x0f)<<8)+glyphs.readUInt8());}else{dx=withSign(flag,glyphs.readUInt16BE());dy=withSign(flag>>1,glyphs.readUInt16BE());}x+=dx;y+=dy;res.push(new Point(onCurve,false,x,y));}return res;}var TTCHeader=new r.VersionedStruct(r.uint32,{0x00010000:{numFonts:r.uint32,offsets:new r.Array(r.uint32,'numFonts')},0x00020000:{numFonts:r.uint32,offsets:new r.Array(r.uint32,'numFonts'),dsigTag:r.uint32,dsigLength:r.uint32,dsigOffset:r.uint32}});var TrueTypeCollection=function(){TrueTypeCollection.probe=function probe(buffer){return buffer.toString('ascii',0,4)==='ttcf';};function TrueTypeCollection(stream){_classCallCheck(this,TrueTypeCollection);this.stream=stream;if(stream.readString(4)!=='ttcf'){throw new Error('Not a TrueType collection');}this.header=TTCHeader.decode(stream);}TrueTypeCollection.prototype.getFont=function getFont(name){for(var _iterator=this.header.offsets,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var offset=_ref;var stream=new r.DecodeStream(this.stream.buffer);stream.pos=offset;var font=new TTFFont(stream);if(font.postscriptName===name){return font;}}return null;};_createClass(TrueTypeCollection,[{key:'fonts',get:function get(){var fonts=[];for(var _iterator2=this.header.offsets,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var offset=_ref2;var stream=new r.DecodeStream(this.stream.buffer);stream.pos=offset;fonts.push(new TTFFont(stream));}return fonts;}}]);return TrueTypeCollection;}();var DFontName=new r.String(r.uint8);var DFontData=new r.Struct({len:r.uint32,buf:new r.Buffer('len')});var Ref=new r.Struct({id:r.uint16,nameOffset:r.int16,attr:r.uint8,dataOffset:r.uint24,handle:r.uint32});var Type=new r.Struct({name:new r.String(4),maxTypeIndex:r.uint16,refList:new r.Pointer(r.uint16,new r.Array(Ref,function(t){return t.maxTypeIndex+1;}),{type:'parent'})});var TypeList=new r.Struct({length:r.uint16,types:new r.Array(Type,function(t){return t.length+1;})});var DFontMap=new r.Struct({reserved:new r.Reserved(r.uint8,24),typeList:new r.Pointer(r.uint16,TypeList),nameListOffset:new r.Pointer(r.uint16,'void')});var DFontHeader=new r.Struct({dataOffset:r.uint32,map:new r.Pointer(r.uint32,DFontMap),dataLength:r.uint32,mapLength:r.uint32});var DFont=function(){DFont.probe=function probe(buffer){var stream=new r.DecodeStream(buffer);try{var header=DFontHeader.decode(stream);}catch(e){return false;}for(var _iterator=header.map.typeList.types,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_getIterator(_iterator);;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var type=_ref;if(type.name==='sfnt'){return true;}}return false;};function DFont(stream){_classCallCheck(this,DFont);this.stream=stream;this.header=DFontHeader.decode(this.stream);for(var _iterator2=this.header.map.typeList.types,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_getIterator(_iterator2);;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var type=_ref2;for(var _iterator3=type.refList,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_getIterator(_iterator3);;){var _ref3;if(_isArray3){if(_i3>=_iterator3.length)break;_ref3=_iterator3[_i3++];}else{_i3=_iterator3.next();if(_i3.done)break;_ref3=_i3.value;}var ref=_ref3;if(ref.nameOffset>=0){this.stream.pos=ref.nameOffset+this.header.map.nameListOffset;ref.name=DFontName.decode(this.stream);}else{ref.name=null;}}if(type.name==='sfnt'){this.sfnt=type;}}}DFont.prototype.getFont=function getFont(name){if(!this.sfnt){return null;}for(var _iterator4=this.sfnt.refList,_isArray4=Array.isArray(_iterator4),_i4=0,_iterator4=_isArray4?_iterator4:_getIterator(_iterator4);;){var _ref4;if(_isArray4){if(_i4>=_iterator4.length)break;_ref4=_iterator4[_i4++];}else{_i4=_iterator4.next();if(_i4.done)break;_ref4=_i4.value;}var ref=_ref4;var pos=this.header.dataOffset+ref.dataOffset+4;var stream=new r.DecodeStream(this.stream.buffer.slice(pos));var font=new TTFFont(stream);if(font.postscriptName===name){return font;}}return null;};_createClass(DFont,[{key:'fonts',get:function get(){var fonts=[];for(var _iterator5=this.sfnt.refList,_isArray5=Array.isArray(_iterator5),_i5=0,_iterator5=_isArray5?_iterator5:_getIterator(_iterator5);;){var _ref5;if(_isArray5){if(_i5>=_iterator5.length)break;_ref5=_iterator5[_i5++];}else{_i5=_iterator5.next();if(_i5.done)break;_ref5=_i5.value;}var ref=_ref5;var pos=this.header.dataOffset+ref.dataOffset+4;var stream=new r.DecodeStream(this.stream.buffer.slice(pos));fonts.push(new TTFFont(stream));}return fonts;}}]);return DFont;}();// Register font formats\nfontkit.registerFormat(TTFFont);fontkit.registerFormat(WOFFFont);fontkit.registerFormat(WOFF2Font);fontkit.registerFormat(TrueTypeCollection);fontkit.registerFormat(DFont);module.exports=fontkit;/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_3836346__(4).Buffer,__nested_webpack_require_3836346__(25));/***/},/* 302 */ /***/function(module,exports,__nested_webpack_require_4250361__){// Generated by CoffeeScript 1.7.1\n(function(){var key,val,_ref,_ref1;exports.EncodeStream=__nested_webpack_require_4250361__(303);exports.DecodeStream=__nested_webpack_require_4250361__(107);exports.Array=__nested_webpack_require_4250361__(178);exports.LazyArray=__nested_webpack_require_4250361__(322);exports.Bitfield=__nested_webpack_require_4250361__(323);exports.Boolean=__nested_webpack_require_4250361__(324);exports.Buffer=__nested_webpack_require_4250361__(325);exports.Enum=__nested_webpack_require_4250361__(326);exports.Optional=__nested_webpack_require_4250361__(327);exports.Reserved=__nested_webpack_require_4250361__(328);exports.String=__nested_webpack_require_4250361__(329);exports.Struct=__nested_webpack_require_4250361__(179);exports.VersionedStruct=__nested_webpack_require_4250361__(330);_ref=__nested_webpack_require_4250361__(49);for(key in _ref){val=_ref[key];exports[key]=val;}_ref1=__nested_webpack_require_4250361__(331);for(key in _ref1){val=_ref1[key];exports[key]=val;}}).call(this);/***/},/* 303 */ /***/function(module,exports,__nested_webpack_require_4251220__){/* WEBPACK VAR INJECTION */(function(Buffer){// Generated by CoffeeScript 1.7.1\n(function(){var DecodeStream,EncodeStream,iconv,stream,__hasProp={}.hasOwnProperty,__extends=function(child,parent){for(var key in parent){if(__hasProp.call(parent,key))child[key]=parent[key];}function ctor(){this.constructor=child;}ctor.prototype=parent.prototype;child.prototype=new ctor();child.__super__=parent.prototype;return child;};stream=__nested_webpack_require_4251220__(100);DecodeStream=__nested_webpack_require_4251220__(107);try{iconv=__nested_webpack_require_4251220__(108);}catch(_error){}EncodeStream=function(_super){var key;__extends(EncodeStream,_super);function EncodeStream(bufferSize){if(bufferSize==null){bufferSize=65536;}EncodeStream.__super__.constructor.apply(this,arguments);this.buffer=new Buffer(bufferSize);this.bufferOffset=0;this.pos=0;}for(key in Buffer.prototype){if(key.slice(0,5)==='write'){(function(key){var bytes;bytes=+DecodeStream.TYPES[key.replace(/write|[BL]E/g,'')];return EncodeStream.prototype[key]=function(value){this.ensure(bytes);this.buffer[key](value,this.bufferOffset);this.bufferOffset+=bytes;return this.pos+=bytes;};})(key);}}EncodeStream.prototype._read=function(){};EncodeStream.prototype.ensure=function(bytes){if(this.bufferOffset+bytes>this.buffer.length){return this.flush();}};EncodeStream.prototype.flush=function(){if(this.bufferOffset>0){this.push(new Buffer(this.buffer.slice(0,this.bufferOffset)));return this.bufferOffset=0;}};EncodeStream.prototype.writeBuffer=function(buffer){this.flush();this.push(buffer);return this.pos+=buffer.length;};EncodeStream.prototype.writeString=function(string,encoding){var buf,byte,i,_i,_ref;if(encoding==null){encoding='ascii';}switch(encoding){case'utf16le':case'ucs2':case'utf8':case'ascii':return this.writeBuffer(new Buffer(string,encoding));case'utf16be':buf=new Buffer(string,'utf16le');for(i=_i=0,_ref=buf.length-1;_i<_ref;i=_i+=2){byte=buf[i];buf[i]=buf[i+1];buf[i+1]=byte;}return this.writeBuffer(buf);default:if(iconv){return this.writeBuffer(iconv.encode(string,encoding));}else{throw new Error('Install iconv-lite to enable additional string encodings.');}}};EncodeStream.prototype.writeUInt24BE=function(val){this.ensure(3);this.buffer[this.bufferOffset++]=val>>>16&0xff;this.buffer[this.bufferOffset++]=val>>>8&0xff;this.buffer[this.bufferOffset++]=val&0xff;return this.pos+=3;};EncodeStream.prototype.writeUInt24LE=function(val){this.ensure(3);this.buffer[this.bufferOffset++]=val&0xff;this.buffer[this.bufferOffset++]=val>>>8&0xff;this.buffer[this.bufferOffset++]=val>>>16&0xff;return this.pos+=3;};EncodeStream.prototype.writeInt24BE=function(val){if(val>=0){return this.writeUInt24BE(val);}else{return this.writeUInt24BE(val+0xffffff+1);}};EncodeStream.prototype.writeInt24LE=function(val){if(val>=0){return this.writeUInt24LE(val);}else{return this.writeUInt24LE(val+0xffffff+1);}};EncodeStream.prototype.fill=function(val,length){var buf;if(length<this.buffer.length){this.ensure(length);this.buffer.fill(val,this.bufferOffset,this.bufferOffset+length);this.bufferOffset+=length;return this.pos+=length;}else{buf=new Buffer(length);buf.fill(val);return this.writeBuffer(buf);}};EncodeStream.prototype.end=function(){this.flush();return this.push(null);};return EncodeStream;}(stream.Readable);module.exports=EncodeStream;}).call(this);/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_4251220__(4).Buffer);/***/},/* 304 */ /***/function(module,exports,__webpack_require__){\"use strict\";var BOMChar='\\uFEFF';exports.PrependBOM=PrependBOMWrapper;function PrependBOMWrapper(encoder,options){this.encoder=encoder;this.addBOM=true;}PrependBOMWrapper.prototype.write=function(str){if(this.addBOM){str=BOMChar+str;this.addBOM=false;}return this.encoder.write(str);};PrependBOMWrapper.prototype.end=function(){return this.encoder.end();};//------------------------------------------------------------------------------\nexports.StripBOM=StripBOMWrapper;function StripBOMWrapper(decoder,options){this.decoder=decoder;this.pass=false;this.options=options||{};}StripBOMWrapper.prototype.write=function(buf){var res=this.decoder.write(buf);if(this.pass||!res)return res;if(res[0]===BOMChar){res=res.slice(1);if(typeof this.options.stripBOM==='function')this.options.stripBOM();}this.pass=true;return res;};StripBOMWrapper.prototype.end=function(){return this.decoder.end();};/***/},/* 305 */ /***/function(module,exports,__nested_webpack_require_4255612__){\"use strict\";// Update this array if you add/rename/remove files in this directory.\n// We support Browserify by skipping automatic module discovery and requiring modules directly.\nvar modules=[__nested_webpack_require_4255612__(306),__nested_webpack_require_4255612__(307),__nested_webpack_require_4255612__(308),__nested_webpack_require_4255612__(309),__nested_webpack_require_4255612__(310),__nested_webpack_require_4255612__(311),__nested_webpack_require_4255612__(312),__nested_webpack_require_4255612__(313),__nested_webpack_require_4255612__(314)];// Put all encoding/alias/codec definitions to single object and export it.\nfor(var i=0;i<modules.length;i++){var module=modules[i];for(var enc in module)if(Object.prototype.hasOwnProperty.call(module,enc))exports[enc]=module[enc];}/***/},/* 306 */ /***/function(module,exports,__nested_webpack_require_4256330__){\"use strict\";var Buffer=__nested_webpack_require_4256330__(34).Buffer;// Export Node.js internal encodings.\nmodule.exports={// Encodings\nutf8:{type:\"_internal\",bomAware:true},cesu8:{type:\"_internal\",bomAware:true},unicode11utf8:\"utf8\",ucs2:{type:\"_internal\",bomAware:true},utf16le:\"ucs2\",binary:{type:\"_internal\"},base64:{type:\"_internal\"},hex:{type:\"_internal\"},// Codec.\n_internal:InternalCodec};//------------------------------------------------------------------------------\nfunction InternalCodec(codecOptions,iconv){this.enc=codecOptions.encodingName;this.bomAware=codecOptions.bomAware;if(this.enc===\"base64\")this.encoder=InternalEncoderBase64;else if(this.enc===\"cesu8\"){this.enc=\"utf8\";// Use utf8 for decoding.\nthis.encoder=InternalEncoderCesu8;// Add decoder for versions of Node not supporting CESU-8\nif(Buffer.from('eda0bdedb2a9','hex').toString()!=='💩'){this.decoder=InternalDecoderCesu8;this.defaultCharUnicode=iconv.defaultCharUnicode;}}}InternalCodec.prototype.encoder=InternalEncoder;InternalCodec.prototype.decoder=InternalDecoder;//------------------------------------------------------------------------------\n// We use node.js internal decoder. Its signature is the same as ours.\nvar StringDecoder=__nested_webpack_require_4256330__(103).StringDecoder;if(!StringDecoder.prototype.end)// Node v0.8 doesn't have this method.\nStringDecoder.prototype.end=function(){};function InternalDecoder(options,codec){StringDecoder.call(this,codec.enc);}InternalDecoder.prototype=StringDecoder.prototype;//------------------------------------------------------------------------------\n// Encoder is mostly trivial\nfunction InternalEncoder(options,codec){this.enc=codec.enc;}InternalEncoder.prototype.write=function(str){return Buffer.from(str,this.enc);};InternalEncoder.prototype.end=function(){};//------------------------------------------------------------------------------\n// Except base64 encoder, which must keep its state.\nfunction InternalEncoderBase64(options,codec){this.prevStr='';}InternalEncoderBase64.prototype.write=function(str){str=this.prevStr+str;var completeQuads=str.length-str.length%4;this.prevStr=str.slice(completeQuads);str=str.slice(0,completeQuads);return Buffer.from(str,\"base64\");};InternalEncoderBase64.prototype.end=function(){return Buffer.from(this.prevStr,\"base64\");};//------------------------------------------------------------------------------\n// CESU-8 encoder is also special.\nfunction InternalEncoderCesu8(options,codec){}InternalEncoderCesu8.prototype.write=function(str){var buf=Buffer.alloc(str.length*3),bufIdx=0;for(var i=0;i<str.length;i++){var charCode=str.charCodeAt(i);// Naive implementation, but it works because CESU-8 is especially easy\n// to convert from UTF-16 (which all JS strings are encoded in).\nif(charCode<0x80)buf[bufIdx++]=charCode;else if(charCode<0x800){buf[bufIdx++]=0xC0+(charCode>>>6);buf[bufIdx++]=0x80+(charCode&0x3f);}else{// charCode will always be < 0x10000 in javascript.\nbuf[bufIdx++]=0xE0+(charCode>>>12);buf[bufIdx++]=0x80+(charCode>>>6&0x3f);buf[bufIdx++]=0x80+(charCode&0x3f);}}return buf.slice(0,bufIdx);};InternalEncoderCesu8.prototype.end=function(){};//------------------------------------------------------------------------------\n// CESU-8 decoder is not implemented in Node v4.0+\nfunction InternalDecoderCesu8(options,codec){this.acc=0;this.contBytes=0;this.accBytes=0;this.defaultCharUnicode=codec.defaultCharUnicode;}InternalDecoderCesu8.prototype.write=function(buf){var acc=this.acc,contBytes=this.contBytes,accBytes=this.accBytes,res='';for(var i=0;i<buf.length;i++){var curByte=buf[i];if((curByte&0xC0)!==0x80){// Leading byte\nif(contBytes>0){// Previous code is invalid\nres+=this.defaultCharUnicode;contBytes=0;}if(curByte<0x80){// Single-byte code\nres+=String.fromCharCode(curByte);}else if(curByte<0xE0){// Two-byte code\nacc=curByte&0x1F;contBytes=1;accBytes=1;}else if(curByte<0xF0){// Three-byte code\nacc=curByte&0x0F;contBytes=2;accBytes=1;}else{// Four or more are not supported for CESU-8.\nres+=this.defaultCharUnicode;}}else{// Continuation byte\nif(contBytes>0){// We're waiting for it.\nacc=acc<<6|curByte&0x3f;contBytes--;accBytes++;if(contBytes===0){// Check for overlong encoding, but support Modified UTF-8 (encoding NULL as C0 80)\nif(accBytes===2&&acc<0x80&&acc>0)res+=this.defaultCharUnicode;else if(accBytes===3&&acc<0x800)res+=this.defaultCharUnicode;else// Actually add character.\nres+=String.fromCharCode(acc);}}else{// Unexpected continuation byte\nres+=this.defaultCharUnicode;}}}this.acc=acc;this.contBytes=contBytes;this.accBytes=accBytes;return res;};InternalDecoderCesu8.prototype.end=function(){var res=0;if(this.contBytes>0)res+=this.defaultCharUnicode;return res;};/***/},/* 307 */ /***/function(module,exports,__nested_webpack_require_4261065__){\"use strict\";var Buffer=__nested_webpack_require_4261065__(34).Buffer;// == UTF32-LE/BE codec. ==========================================================\nexports._utf32=Utf32Codec;function Utf32Codec(codecOptions,iconv){this.iconv=iconv;this.bomAware=true;this.isLE=codecOptions.isLE;}exports.utf32le={type:'_utf32',isLE:true};exports.utf32be={type:'_utf32',isLE:false};// Aliases\nexports.ucs4le='utf32le';exports.ucs4be='utf32be';Utf32Codec.prototype.encoder=Utf32Encoder;Utf32Codec.prototype.decoder=Utf32Decoder;// -- Encoding\nfunction Utf32Encoder(options,codec){this.isLE=codec.isLE;this.highSurrogate=0;}Utf32Encoder.prototype.write=function(str){var src=Buffer.from(str,'ucs2');var dst=Buffer.alloc(src.length*2);var write32=this.isLE?dst.writeUInt32LE:dst.writeUInt32BE;var offset=0;for(var i=0;i<src.length;i+=2){var code=src.readUInt16LE(i);var isHighSurrogate=0xD800<=code&&code<0xDC00;var isLowSurrogate=0xDC00<=code&&code<0xE000;if(this.highSurrogate){if(isHighSurrogate||!isLowSurrogate){// There shouldn't be two high surrogates in a row, nor a high surrogate which isn't followed by a low\n// surrogate. If this happens, keep the pending high surrogate as a stand-alone semi-invalid character\n// (technically wrong, but expected by some applications, like Windows file names).\nwrite32.call(dst,this.highSurrogate,offset);offset+=4;}else{// Create 32-bit value from high and low surrogates;\nvar codepoint=(this.highSurrogate-0xD800<<10|code-0xDC00)+0x10000;write32.call(dst,codepoint,offset);offset+=4;this.highSurrogate=0;continue;}}if(isHighSurrogate)this.highSurrogate=code;else{// Even if the current character is a low surrogate, with no previous high surrogate, we'll\n// encode it as a semi-invalid stand-alone character for the same reasons expressed above for\n// unpaired high surrogates.\nwrite32.call(dst,code,offset);offset+=4;this.highSurrogate=0;}}if(offset<dst.length)dst=dst.slice(0,offset);return dst;};Utf32Encoder.prototype.end=function(){// Treat any leftover high surrogate as a semi-valid independent character.\nif(!this.highSurrogate)return;var buf=Buffer.alloc(4);if(this.isLE)buf.writeUInt32LE(this.highSurrogate,0);else buf.writeUInt32BE(this.highSurrogate,0);this.highSurrogate=0;return buf;};// -- Decoding\nfunction Utf32Decoder(options,codec){this.isLE=codec.isLE;this.badChar=codec.iconv.defaultCharUnicode.charCodeAt(0);this.overflow=null;}Utf32Decoder.prototype.write=function(src){if(src.length===0)return'';if(this.overflow)src=Buffer.concat([this.overflow,src]);var goodLength=src.length-src.length%4;if(src.length!==goodLength){this.overflow=src.slice(goodLength);src=src.slice(0,goodLength);}else this.overflow=null;var dst=Buffer.alloc(goodLength);var offset=0;for(var i=0;i<goodLength;i+=4){var codepoint=this.isLE?src.readUInt32LE(i):src.readUInt32BE(i);if(codepoint<0x10000){// Simple 16-bit character\ndst.writeUInt16LE(codepoint,offset);offset+=2;}else{if(codepoint>0x10FFFF){// Not a valid Unicode codepoint\ndst.writeUInt16LE(this.badChar,offset);offset+=2;}else{// Create high and low surrogates.\ncodepoint-=0x10000;var high=0xD800|codepoint>>10;var low=0xDC00+(codepoint&0x3FF);dst.writeUInt16LE(high,offset);offset+=2;dst.writeUInt16LE(low,offset);offset+=2;}}}return dst.slice(0,offset).toString('ucs2');};Utf32Decoder.prototype.end=function(){this.overflow=null;};// == UTF-32 Auto codec =============================================================\n// Decoder chooses automatically from UTF-32LE and UTF-32BE using BOM and space-based heuristic.\n// Defaults to UTF-32LE. http://en.wikipedia.org/wiki/UTF-32\n// Encoder/decoder default can be changed: iconv.decode(buf, 'utf32', {defaultEncoding: 'utf-32be'});\n// Encoder prepends BOM (which can be overridden with (addBOM: false}).\nexports.utf32=Utf32AutoCodec;exports.ucs4=Utf32AutoCodec;function Utf32AutoCodec(options,iconv){this.iconv=iconv;}Utf32AutoCodec.prototype.encoder=Utf32AutoEncoder;Utf32AutoCodec.prototype.decoder=Utf32AutoDecoder;// -- Encoding\nfunction Utf32AutoEncoder(options,codec){options=options||{};if(options.addBOM===undefined)options.addBOM=true;this.encoder=codec.iconv.getEncoder(options.defaultEncoding||'utf-32le',options);}Utf32AutoEncoder.prototype.write=function(str){return this.encoder.write(str);};Utf32AutoEncoder.prototype.end=function(){return this.encoder.end();};// -- Decoding\nfunction Utf32AutoDecoder(options,codec){this.decoder=null;this.initialBytes=[];this.initialBytesLen=0;this.options=options||{};this.iconv=codec.iconv;}Utf32AutoDecoder.prototype.write=function(buf){if(!this.decoder){// Codec is not chosen yet. Accumulate initial bytes.\nthis.initialBytes.push(buf);this.initialBytesLen+=buf.length;if(this.initialBytesLen<32)// We need more bytes to use space heuristic (see below)\nreturn'';// We have enough bytes -> detect endianness.\nvar buf2=Buffer.concat(this.initialBytes),encoding=detectEncoding(buf2,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(encoding,this.options);this.initialBytes.length=this.initialBytesLen=0;}return this.decoder.write(buf);};Utf32AutoDecoder.prototype.end=function(){if(!this.decoder){var buf=Buffer.concat(this.initialBytes),encoding=detectEncoding(buf,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(encoding,this.options);var res=this.decoder.write(buf),trail=this.decoder.end();return trail?res+trail:res;}return this.decoder.end();};function detectEncoding(buf,defaultEncoding){var enc=defaultEncoding||'utf-32le';if(buf.length>=4){// Check BOM.\nif(buf.readUInt32BE(0)===0xFEFF)// UTF-32LE BOM\nenc='utf-32be';else if(buf.readUInt32LE(0)===0xFEFF)// UTF-32LE BOM\nenc='utf-32le';else{// No BOM found. Try to deduce encoding from initial content.\n// Using the wrong endian-ism for UTF-32 will very often result in codepoints that are beyond\n// the valid Unicode limit of 0x10FFFF. That will be used as the primary determinant.\n//\n// Further, we can suppose the content is mostly plain ASCII chars (U+00**).\n// So, we count ASCII as if it was LE or BE, and decide from that.\nvar invalidLE=0,invalidBE=0;var asciiCharsLE=0,asciiCharsBE=0,// Counts of chars in both positions\n_len=Math.min(buf.length-buf.length%4,128);// Len is always even.\nfor(var i=0;i<_len;i+=4){var b0=buf[i],b1=buf[i+1],b2=buf[i+2],b3=buf[i+3];if(b0!==0||b1>0x10)++invalidBE;if(b3!==0||b2>0x10)++invalidLE;if(b0===0&&b1===0&&b2===0&&b3!==0)asciiCharsBE++;if(b0!==0&&b1===0&&b2===0&&b3===0)asciiCharsLE++;}if(invalidBE<invalidLE)enc='utf-32be';else if(invalidLE<invalidBE)enc='utf-32le';if(asciiCharsBE>asciiCharsLE)enc='utf-32be';else if(asciiCharsBE<asciiCharsLE)enc='utf-32le';}}return enc;}/***/},/* 308 */ /***/function(module,exports,__nested_webpack_require_4267715__){\"use strict\";var Buffer=__nested_webpack_require_4267715__(34).Buffer;// Note: UTF16-LE (or UCS2) codec is Node.js native. See encodings/internal.js\n// == UTF16-BE codec. ==========================================================\nexports.utf16be=Utf16BECodec;function Utf16BECodec(){}Utf16BECodec.prototype.encoder=Utf16BEEncoder;Utf16BECodec.prototype.decoder=Utf16BEDecoder;Utf16BECodec.prototype.bomAware=true;// -- Encoding\nfunction Utf16BEEncoder(){}Utf16BEEncoder.prototype.write=function(str){var buf=Buffer.from(str,'ucs2');for(var i=0;i<buf.length;i+=2){var tmp=buf[i];buf[i]=buf[i+1];buf[i+1]=tmp;}return buf;};Utf16BEEncoder.prototype.end=function(){};// -- Decoding\nfunction Utf16BEDecoder(){this.overflowByte=-1;}Utf16BEDecoder.prototype.write=function(buf){if(buf.length==0)return'';var buf2=Buffer.alloc(buf.length+1),i=0,j=0;if(this.overflowByte!==-1){buf2[0]=buf[0];buf2[1]=this.overflowByte;i=1;j=2;}for(;i<buf.length-1;i+=2,j+=2){buf2[j]=buf[i+1];buf2[j+1]=buf[i];}this.overflowByte=i==buf.length-1?buf[buf.length-1]:-1;return buf2.slice(0,j).toString('ucs2');};Utf16BEDecoder.prototype.end=function(){};// == UTF-16 codec =============================================================\n// Decoder chooses automatically from UTF-16LE and UTF-16BE using BOM and space-based heuristic.\n// Defaults to UTF-16LE, as it's prevalent and default in Node.\n// http://en.wikipedia.org/wiki/UTF-16 and http://encoding.spec.whatwg.org/#utf-16le\n// Decoder default can be changed: iconv.decode(buf, 'utf16', {defaultEncoding: 'utf-16be'});\n// Encoder uses UTF-16LE and prepends BOM (which can be overridden with addBOM: false).\nexports.utf16=Utf16Codec;function Utf16Codec(codecOptions,iconv){this.iconv=iconv;}Utf16Codec.prototype.encoder=Utf16Encoder;Utf16Codec.prototype.decoder=Utf16Decoder;// -- Encoding (pass-through)\nfunction Utf16Encoder(options,codec){options=options||{};if(options.addBOM===undefined)options.addBOM=true;this.encoder=codec.iconv.getEncoder('utf-16le',options);}Utf16Encoder.prototype.write=function(str){return this.encoder.write(str);};Utf16Encoder.prototype.end=function(){return this.encoder.end();};// -- Decoding\nfunction Utf16Decoder(options,codec){this.decoder=null;this.initialBytes=[];this.initialBytesLen=0;this.options=options||{};this.iconv=codec.iconv;}Utf16Decoder.prototype.write=function(buf){if(!this.decoder){// Codec is not chosen yet. Accumulate initial bytes.\nthis.initialBytes.push(buf);this.initialBytesLen+=buf.length;if(this.initialBytesLen<16)// We need more bytes to use space heuristic (see below)\nreturn'';// We have enough bytes -> detect endianness.\nvar buf=Buffer.concat(this.initialBytes),encoding=detectEncoding(buf,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(encoding,this.options);this.initialBytes.length=this.initialBytesLen=0;}return this.decoder.write(buf);};Utf16Decoder.prototype.end=function(){if(!this.decoder){var buf=Buffer.concat(this.initialBytes),encoding=detectEncoding(buf,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(encoding,this.options);var res=this.decoder.write(buf),trail=this.decoder.end();return trail?res+trail:res;}return this.decoder.end();};function detectEncoding(buf,defaultEncoding){var enc=defaultEncoding||'utf-16le';if(buf.length>=2){// Check BOM.\nif(buf[0]==0xFE&&buf[1]==0xFF)// UTF-16BE BOM\nenc='utf-16be';else if(buf[0]==0xFF&&buf[1]==0xFE)// UTF-16LE BOM\nenc='utf-16le';else{// No BOM found. Try to deduce encoding from initial content.\n// Most of the time, the content has ASCII chars (U+00**), but the opposite (U+**00) is uncommon.\n// So, we count ASCII as if it was LE or BE, and decide from that.\nvar asciiCharsLE=0,asciiCharsBE=0,// Counts of chars in both positions\n_len=Math.min(buf.length-buf.length%2,64);// Len is always even.\nfor(var i=0;i<_len;i+=2){if(buf[i]===0&&buf[i+1]!==0)asciiCharsBE++;if(buf[i]!==0&&buf[i+1]===0)asciiCharsLE++;}if(asciiCharsBE>asciiCharsLE)enc='utf-16be';else if(asciiCharsBE<asciiCharsLE)enc='utf-16le';}}return enc;}/***/},/* 309 */ /***/function(module,exports,__nested_webpack_require_4271772__){\"use strict\";var Buffer=__nested_webpack_require_4271772__(34).Buffer;// UTF-7 codec, according to https://tools.ietf.org/html/rfc2152\n// See also below a UTF-7-IMAP codec, according to http://tools.ietf.org/html/rfc3501#section-5.1.3\nexports.utf7=Utf7Codec;exports.unicode11utf7='utf7';// Alias UNICODE-1-1-UTF-7\nfunction Utf7Codec(codecOptions,iconv){this.iconv=iconv;};Utf7Codec.prototype.encoder=Utf7Encoder;Utf7Codec.prototype.decoder=Utf7Decoder;Utf7Codec.prototype.bomAware=true;// -- Encoding\nvar nonDirectChars=/[^A-Za-z0-9'\\(\\),-\\.\\/:\\? \\n\\r\\t]+/g;function Utf7Encoder(options,codec){this.iconv=codec.iconv;}Utf7Encoder.prototype.write=function(str){// Naive implementation.\n// Non-direct chars are encoded as \"+<base64>-\"; single \"+\" char is encoded as \"+-\".\nreturn Buffer.from(str.replace(nonDirectChars,function(chunk){return\"+\"+(chunk==='+'?'':this.iconv.encode(chunk,'utf16-be').toString('base64').replace(/=+$/,''))+\"-\";}.bind(this)));};Utf7Encoder.prototype.end=function(){};// -- Decoding\nfunction Utf7Decoder(options,codec){this.iconv=codec.iconv;this.inBase64=false;this.base64Accum='';}var base64Regex=/[A-Za-z0-9\\/+]/;var base64Chars=[];for(var i=0;i<256;i++)base64Chars[i]=base64Regex.test(String.fromCharCode(i));var plusChar='+'.charCodeAt(0),minusChar='-'.charCodeAt(0),andChar='&'.charCodeAt(0);Utf7Decoder.prototype.write=function(buf){var res=\"\",lastI=0,inBase64=this.inBase64,base64Accum=this.base64Accum;// The decoder is more involved as we must handle chunks in stream.\nfor(var i=0;i<buf.length;i++){if(!inBase64){// We're in direct mode.\n// Write direct chars until '+'\nif(buf[i]==plusChar){res+=this.iconv.decode(buf.slice(lastI,i),\"ascii\");// Write direct chars.\nlastI=i+1;inBase64=true;}}else{// We decode base64.\nif(!base64Chars[buf[i]]){// Base64 ended.\nif(i==lastI&&buf[i]==minusChar){// \"+-\" -> \"+\"\nres+=\"+\";}else{var b64str=base64Accum+buf.slice(lastI,i).toString();res+=this.iconv.decode(Buffer.from(b64str,'base64'),\"utf16-be\");}if(buf[i]!=minusChar)// Minus is absorbed after base64.\ni--;lastI=i+1;inBase64=false;base64Accum='';}}}if(!inBase64){res+=this.iconv.decode(buf.slice(lastI),\"ascii\");// Write direct chars.\n}else{var b64str=base64Accum+buf.slice(lastI).toString();var canBeDecoded=b64str.length-b64str.length%8;// Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.\nbase64Accum=b64str.slice(canBeDecoded);// The rest will be decoded in future.\nb64str=b64str.slice(0,canBeDecoded);res+=this.iconv.decode(Buffer.from(b64str,'base64'),\"utf16-be\");}this.inBase64=inBase64;this.base64Accum=base64Accum;return res;};Utf7Decoder.prototype.end=function(){var res=\"\";if(this.inBase64&&this.base64Accum.length>0)res=this.iconv.decode(Buffer.from(this.base64Accum,'base64'),\"utf16-be\");this.inBase64=false;this.base64Accum='';return res;};// UTF-7-IMAP codec.\n// RFC3501 Sec. 5.1.3 Modified UTF-7 (http://tools.ietf.org/html/rfc3501#section-5.1.3)\n// Differences:\n//  * Base64 part is started by \"&\" instead of \"+\"\n//  * Direct characters are 0x20-0x7E, except \"&\" (0x26)\n//  * In Base64, \",\" is used instead of \"/\"\n//  * Base64 must not be used to represent direct characters.\n//  * No implicit shift back from Base64 (should always end with '-')\n//  * String must end in non-shifted position.\n//  * \"-&\" while in base64 is not allowed.\nexports.utf7imap=Utf7IMAPCodec;function Utf7IMAPCodec(codecOptions,iconv){this.iconv=iconv;};Utf7IMAPCodec.prototype.encoder=Utf7IMAPEncoder;Utf7IMAPCodec.prototype.decoder=Utf7IMAPDecoder;Utf7IMAPCodec.prototype.bomAware=true;// -- Encoding\nfunction Utf7IMAPEncoder(options,codec){this.iconv=codec.iconv;this.inBase64=false;this.base64Accum=Buffer.alloc(6);this.base64AccumIdx=0;}Utf7IMAPEncoder.prototype.write=function(str){var inBase64=this.inBase64,base64Accum=this.base64Accum,base64AccumIdx=this.base64AccumIdx,buf=Buffer.alloc(str.length*5+10),bufIdx=0;for(var i=0;i<str.length;i++){var uChar=str.charCodeAt(i);if(0x20<=uChar&&uChar<=0x7E){// Direct character or '&'.\nif(inBase64){if(base64AccumIdx>0){bufIdx+=buf.write(base64Accum.slice(0,base64AccumIdx).toString('base64').replace(/\\//g,',').replace(/=+$/,''),bufIdx);base64AccumIdx=0;}buf[bufIdx++]=minusChar;// Write '-', then go to direct mode.\ninBase64=false;}if(!inBase64){buf[bufIdx++]=uChar;// Write direct character\nif(uChar===andChar)// Ampersand -> '&-'\nbuf[bufIdx++]=minusChar;}}else{// Non-direct character\nif(!inBase64){buf[bufIdx++]=andChar;// Write '&', then go to base64 mode.\ninBase64=true;}if(inBase64){base64Accum[base64AccumIdx++]=uChar>>8;base64Accum[base64AccumIdx++]=uChar&0xFF;if(base64AccumIdx==base64Accum.length){bufIdx+=buf.write(base64Accum.toString('base64').replace(/\\//g,','),bufIdx);base64AccumIdx=0;}}}}this.inBase64=inBase64;this.base64AccumIdx=base64AccumIdx;return buf.slice(0,bufIdx);};Utf7IMAPEncoder.prototype.end=function(){var buf=Buffer.alloc(10),bufIdx=0;if(this.inBase64){if(this.base64AccumIdx>0){bufIdx+=buf.write(this.base64Accum.slice(0,this.base64AccumIdx).toString('base64').replace(/\\//g,',').replace(/=+$/,''),bufIdx);this.base64AccumIdx=0;}buf[bufIdx++]=minusChar;// Write '-', then go to direct mode.\nthis.inBase64=false;}return buf.slice(0,bufIdx);};// -- Decoding\nfunction Utf7IMAPDecoder(options,codec){this.iconv=codec.iconv;this.inBase64=false;this.base64Accum='';}var base64IMAPChars=base64Chars.slice();base64IMAPChars[','.charCodeAt(0)]=true;Utf7IMAPDecoder.prototype.write=function(buf){var res=\"\",lastI=0,inBase64=this.inBase64,base64Accum=this.base64Accum;// The decoder is more involved as we must handle chunks in stream.\n// It is forgiving, closer to standard UTF-7 (for example, '-' is optional at the end).\nfor(var i=0;i<buf.length;i++){if(!inBase64){// We're in direct mode.\n// Write direct chars until '&'\nif(buf[i]==andChar){res+=this.iconv.decode(buf.slice(lastI,i),\"ascii\");// Write direct chars.\nlastI=i+1;inBase64=true;}}else{// We decode base64.\nif(!base64IMAPChars[buf[i]]){// Base64 ended.\nif(i==lastI&&buf[i]==minusChar){// \"&-\" -> \"&\"\nres+=\"&\";}else{var b64str=base64Accum+buf.slice(lastI,i).toString().replace(/,/g,'/');res+=this.iconv.decode(Buffer.from(b64str,'base64'),\"utf16-be\");}if(buf[i]!=minusChar)// Minus may be absorbed after base64.\ni--;lastI=i+1;inBase64=false;base64Accum='';}}}if(!inBase64){res+=this.iconv.decode(buf.slice(lastI),\"ascii\");// Write direct chars.\n}else{var b64str=base64Accum+buf.slice(lastI).toString().replace(/,/g,'/');var canBeDecoded=b64str.length-b64str.length%8;// Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.\nbase64Accum=b64str.slice(canBeDecoded);// The rest will be decoded in future.\nb64str=b64str.slice(0,canBeDecoded);res+=this.iconv.decode(Buffer.from(b64str,'base64'),\"utf16-be\");}this.inBase64=inBase64;this.base64Accum=base64Accum;return res;};Utf7IMAPDecoder.prototype.end=function(){var res=\"\";if(this.inBase64&&this.base64Accum.length>0)res=this.iconv.decode(Buffer.from(this.base64Accum,'base64'),\"utf16-be\");this.inBase64=false;this.base64Accum='';return res;};/***/},/* 310 */ /***/function(module,exports,__nested_webpack_require_4278763__){\"use strict\";var Buffer=__nested_webpack_require_4278763__(34).Buffer;// Single-byte codec. Needs a 'chars' string parameter that contains 256 or 128 chars that\n// correspond to encoded bytes (if 128 - then lower half is ASCII). \nexports._sbcs=SBCSCodec;function SBCSCodec(codecOptions,iconv){if(!codecOptions)throw new Error(\"SBCS codec is called without the data.\");// Prepare char buffer for decoding.\nif(!codecOptions.chars||codecOptions.chars.length!==128&&codecOptions.chars.length!==256)throw new Error(\"Encoding '\"+codecOptions.type+\"' has incorrect 'chars' (must be of len 128 or 256)\");if(codecOptions.chars.length===128){var asciiString=\"\";for(var i=0;i<128;i++)asciiString+=String.fromCharCode(i);codecOptions.chars=asciiString+codecOptions.chars;}this.decodeBuf=Buffer.from(codecOptions.chars,'ucs2');// Encoding buffer.\nvar encodeBuf=Buffer.alloc(65536,iconv.defaultCharSingleByte.charCodeAt(0));for(var i=0;i<codecOptions.chars.length;i++)encodeBuf[codecOptions.chars.charCodeAt(i)]=i;this.encodeBuf=encodeBuf;}SBCSCodec.prototype.encoder=SBCSEncoder;SBCSCodec.prototype.decoder=SBCSDecoder;function SBCSEncoder(options,codec){this.encodeBuf=codec.encodeBuf;}SBCSEncoder.prototype.write=function(str){var buf=Buffer.alloc(str.length);for(var i=0;i<str.length;i++)buf[i]=this.encodeBuf[str.charCodeAt(i)];return buf;};SBCSEncoder.prototype.end=function(){};function SBCSDecoder(options,codec){this.decodeBuf=codec.decodeBuf;}SBCSDecoder.prototype.write=function(buf){// Strings are immutable in JS -> we use ucs2 buffer to speed up computations.\nvar decodeBuf=this.decodeBuf;var newBuf=Buffer.alloc(buf.length*2);var idx1=0,idx2=0;for(var i=0;i<buf.length;i++){idx1=buf[i]*2;idx2=i*2;newBuf[idx2]=decodeBuf[idx1];newBuf[idx2+1]=decodeBuf[idx1+1];}return newBuf.toString('ucs2');};SBCSDecoder.prototype.end=function(){};/***/},/* 311 */ /***/function(module,exports,__webpack_require__){\"use strict\";// Manually added data to be used by sbcs codec in addition to generated one.\nmodule.exports={// Not supported by iconv, not sure why.\n\"10029\":\"maccenteuro\",\"maccenteuro\":{\"type\":\"_sbcs\",\"chars\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\"},\"808\":\"cp808\",\"ibm808\":\"cp808\",\"cp808\":{\"type\":\"_sbcs\",\"chars\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ \"},\"mik\":{\"type\":\"_sbcs\",\"chars\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"},\"cp720\":{\"type\":\"_sbcs\",\"chars\":\"\\x80\\x81éâ\\x84à\\x86çêëèïî\\x8d\\x8e\\x8f\\x90\\u0651\\u0652ô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡\\u064b\\u064c\\u064d\\u064e\\u064f\\u0650≈°∙·√ⁿ²■\\u00a0\"},// Aliases of generated encodings.\n\"ascii8bit\":\"ascii\",\"usascii\":\"ascii\",\"ansix34\":\"ascii\",\"ansix341968\":\"ascii\",\"ansix341986\":\"ascii\",\"csascii\":\"ascii\",\"cp367\":\"ascii\",\"ibm367\":\"ascii\",\"isoir6\":\"ascii\",\"iso646us\":\"ascii\",\"iso646irv\":\"ascii\",\"us\":\"ascii\",\"latin1\":\"iso88591\",\"latin2\":\"iso88592\",\"latin3\":\"iso88593\",\"latin4\":\"iso88594\",\"latin5\":\"iso88599\",\"latin6\":\"iso885910\",\"latin7\":\"iso885913\",\"latin8\":\"iso885914\",\"latin9\":\"iso885915\",\"latin10\":\"iso885916\",\"csisolatin1\":\"iso88591\",\"csisolatin2\":\"iso88592\",\"csisolatin3\":\"iso88593\",\"csisolatin4\":\"iso88594\",\"csisolatincyrillic\":\"iso88595\",\"csisolatinarabic\":\"iso88596\",\"csisolatingreek\":\"iso88597\",\"csisolatinhebrew\":\"iso88598\",\"csisolatin5\":\"iso88599\",\"csisolatin6\":\"iso885910\",\"l1\":\"iso88591\",\"l2\":\"iso88592\",\"l3\":\"iso88593\",\"l4\":\"iso88594\",\"l5\":\"iso88599\",\"l6\":\"iso885910\",\"l7\":\"iso885913\",\"l8\":\"iso885914\",\"l9\":\"iso885915\",\"l10\":\"iso885916\",\"isoir14\":\"iso646jp\",\"isoir57\":\"iso646cn\",\"isoir100\":\"iso88591\",\"isoir101\":\"iso88592\",\"isoir109\":\"iso88593\",\"isoir110\":\"iso88594\",\"isoir144\":\"iso88595\",\"isoir127\":\"iso88596\",\"isoir126\":\"iso88597\",\"isoir138\":\"iso88598\",\"isoir148\":\"iso88599\",\"isoir157\":\"iso885910\",\"isoir166\":\"tis620\",\"isoir179\":\"iso885913\",\"isoir199\":\"iso885914\",\"isoir203\":\"iso885915\",\"isoir226\":\"iso885916\",\"cp819\":\"iso88591\",\"ibm819\":\"iso88591\",\"cyrillic\":\"iso88595\",\"arabic\":\"iso88596\",\"arabic8\":\"iso88596\",\"ecma114\":\"iso88596\",\"asmo708\":\"iso88596\",\"greek\":\"iso88597\",\"greek8\":\"iso88597\",\"ecma118\":\"iso88597\",\"elot928\":\"iso88597\",\"hebrew\":\"iso88598\",\"hebrew8\":\"iso88598\",\"turkish\":\"iso88599\",\"turkish8\":\"iso88599\",\"thai\":\"iso885911\",\"thai8\":\"iso885911\",\"celtic\":\"iso885914\",\"celtic8\":\"iso885914\",\"isoceltic\":\"iso885914\",\"tis6200\":\"tis620\",\"tis62025291\":\"tis620\",\"tis62025330\":\"tis620\",\"10000\":\"macroman\",\"10006\":\"macgreek\",\"10007\":\"maccyrillic\",\"10079\":\"maciceland\",\"10081\":\"macturkish\",\"cspc8codepage437\":\"cp437\",\"cspc775baltic\":\"cp775\",\"cspc850multilingual\":\"cp850\",\"cspcp852\":\"cp852\",\"cspc862latinhebrew\":\"cp862\",\"cpgr\":\"cp869\",\"msee\":\"cp1250\",\"mscyrl\":\"cp1251\",\"msansi\":\"cp1252\",\"msgreek\":\"cp1253\",\"msturk\":\"cp1254\",\"mshebr\":\"cp1255\",\"msarab\":\"cp1256\",\"winbaltrim\":\"cp1257\",\"cp20866\":\"koi8r\",\"20866\":\"koi8r\",\"ibm878\":\"koi8r\",\"cskoi8r\":\"koi8r\",\"cp21866\":\"koi8u\",\"21866\":\"koi8u\",\"ibm1168\":\"koi8u\",\"strk10482002\":\"rk1048\",\"tcvn5712\":\"tcvn\",\"tcvn57121\":\"tcvn\",\"gb198880\":\"iso646cn\",\"cn\":\"iso646cn\",\"csiso14jisc6220ro\":\"iso646jp\",\"jisc62201969ro\":\"iso646jp\",\"jp\":\"iso646jp\",\"cshproman8\":\"hproman8\",\"r8\":\"hproman8\",\"roman8\":\"hproman8\",\"xroman8\":\"hproman8\",\"ibm1051\":\"hproman8\",\"mac\":\"macintosh\",\"csmacintosh\":\"macintosh\"};/***/},/* 312 */ /***/function(module,exports,__webpack_require__){\"use strict\";// Generated data for sbcs codec. Don't edit manually. Regenerate using generation/gen-sbcs.js script.\nmodule.exports={\"437\":\"cp437\",\"737\":\"cp737\",\"775\":\"cp775\",\"850\":\"cp850\",\"852\":\"cp852\",\"855\":\"cp855\",\"856\":\"cp856\",\"857\":\"cp857\",\"858\":\"cp858\",\"860\":\"cp860\",\"861\":\"cp861\",\"862\":\"cp862\",\"863\":\"cp863\",\"864\":\"cp864\",\"865\":\"cp865\",\"866\":\"cp866\",\"869\":\"cp869\",\"874\":\"windows874\",\"922\":\"cp922\",\"1046\":\"cp1046\",\"1124\":\"cp1124\",\"1125\":\"cp1125\",\"1129\":\"cp1129\",\"1133\":\"cp1133\",\"1161\":\"cp1161\",\"1162\":\"cp1162\",\"1163\":\"cp1163\",\"1250\":\"windows1250\",\"1251\":\"windows1251\",\"1252\":\"windows1252\",\"1253\":\"windows1253\",\"1254\":\"windows1254\",\"1255\":\"windows1255\",\"1256\":\"windows1256\",\"1257\":\"windows1257\",\"1258\":\"windows1258\",\"28591\":\"iso88591\",\"28592\":\"iso88592\",\"28593\":\"iso88593\",\"28594\":\"iso88594\",\"28595\":\"iso88595\",\"28596\":\"iso88596\",\"28597\":\"iso88597\",\"28598\":\"iso88598\",\"28599\":\"iso88599\",\"28600\":\"iso885910\",\"28601\":\"iso885911\",\"28603\":\"iso885913\",\"28604\":\"iso885914\",\"28605\":\"iso885915\",\"28606\":\"iso885916\",\"windows874\":{\"type\":\"_sbcs\",\"chars\":\"€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"},\"win874\":\"windows874\",\"cp874\":\"windows874\",\"windows1250\":{\"type\":\"_sbcs\",\"chars\":\"€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙\"},\"win1250\":\"windows1250\",\"cp1250\":\"windows1250\",\"windows1251\":{\"type\":\"_sbcs\",\"chars\":\"ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя\"},\"win1251\":\"windows1251\",\"cp1251\":\"windows1251\",\"windows1252\":{\"type\":\"_sbcs\",\"chars\":\"€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"},\"win1252\":\"windows1252\",\"cp1252\":\"windows1252\",\"windows1253\":{\"type\":\"_sbcs\",\"chars\":\"€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�\"},\"win1253\":\"windows1253\",\"cp1253\":\"windows1253\",\"windows1254\":{\"type\":\"_sbcs\",\"chars\":\"€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖ×ØÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ\"},\"win1254\":\"windows1254\",\"cp1254\":\"windows1254\",\"windows1255\":{\"type\":\"_sbcs\",\"chars\":\"€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�\"},\"win1255\":\"windows1255\",\"cp1255\":\"windows1255\",\"windows1256\":{\"type\":\"_sbcs\",\"chars\":\"€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے\"},\"win1256\":\"windows1256\",\"cp1256\":\"windows1256\",\"windows1257\":{\"type\":\"_sbcs\",\"chars\":\"€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙\"},\"win1257\":\"windows1257\",\"cp1257\":\"windows1257\",\"windows1258\":{\"type\":\"_sbcs\",\"chars\":\"€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖ×ØÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ\"},\"win1258\":\"windows1258\",\"cp1258\":\"windows1258\",\"iso88591\":{\"type\":\"_sbcs\",\"chars\":\" ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"},\"cp28591\":\"iso88591\",\"iso88592\":{\"type\":\"_sbcs\",\"chars\":\" Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙\"},\"cp28592\":\"iso88592\",\"iso88593\":{\"type\":\"_sbcs\",\"chars\":\" Ħ˘£¤�Ĥ§¨İŞĞĴ­�Ż°ħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙\"},\"cp28593\":\"iso88593\",\"iso88594\":{\"type\":\"_sbcs\",\"chars\":\" ĄĸŖ¤ĨĻ§¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩļˇ¸šēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖ×ØŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙\"},\"cp28594\":\"iso88594\",\"iso88595\":{\"type\":\"_sbcs\",\"chars\":\" ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ\"},\"cp28595\":\"iso88595\",\"iso88596\":{\"type\":\"_sbcs\",\"chars\":\" ���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������\"},\"cp28596\":\"iso88596\",\"iso88597\":{\"type\":\"_sbcs\",\"chars\":\" ‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�\"},\"cp28597\":\"iso88597\",\"iso88598\":{\"type\":\"_sbcs\",\"chars\":\" �¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�\"},\"cp28598\":\"iso88598\",\"iso88599\":{\"type\":\"_sbcs\",\"chars\":\" ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖ×ØÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ\"},\"cp28599\":\"iso88599\",\"iso885910\":{\"type\":\"_sbcs\",\"chars\":\" ĄĒĢĪĨĶ§ĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ\"},\"cp28600\":\"iso885910\",\"iso885911\":{\"type\":\"_sbcs\",\"chars\":\" กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"},\"cp28601\":\"iso885911\",\"iso885913\":{\"type\":\"_sbcs\",\"chars\":\" ”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’\"},\"cp28603\":\"iso885913\",\"iso885914\":{\"type\":\"_sbcs\",\"chars\":\" Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ\"},\"cp28604\":\"iso885914\",\"iso885915\":{\"type\":\"_sbcs\",\"chars\":\" ¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"},\"cp28605\":\"iso885915\",\"iso885916\":{\"type\":\"_sbcs\",\"chars\":\" ĄąŁ€„Š§š©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ\"},\"cp28606\":\"iso885916\",\"cp437\":{\"type\":\"_sbcs\",\"chars\":\"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñÑªº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"},\"ibm437\":\"cp437\",\"csibm437\":\"cp437\",\"cp737\":{\"type\":\"_sbcs\",\"chars\":\"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ \"},\"ibm737\":\"cp737\",\"csibm737\":\"cp737\",\"cp775\":{\"type\":\"_sbcs\",\"chars\":\"ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■ \"},\"ibm775\":\"cp775\",\"csibm775\":\"cp775\",\"cp850\":{\"type\":\"_sbcs\",\"chars\":\"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñÑªº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýÝ¯´­±‗¾¶§÷¸°¨·¹³²■ \"},\"ibm850\":\"cp850\",\"csibm850\":\"cp850\",\"cp852\":{\"type\":\"_sbcs\",\"chars\":\"ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘę¬źČş«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ \"},\"ibm852\":\"cp852\",\"csibm852\":\"cp852\",\"cp855\":{\"type\":\"_sbcs\",\"chars\":\"ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■ \"},\"ibm855\":\"cp855\",\"csibm855\":\"cp855\",\"cp856\":{\"type\":\"_sbcs\",\"chars\":\"אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■ \"},\"ibm856\":\"cp856\",\"csibm856\":\"cp856\",\"cp857\":{\"type\":\"_sbcs\",\"chars\":\"ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞğ¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ \"},\"ibm857\":\"cp857\",\"csibm857\":\"cp857\",\"cp858\":{\"type\":\"_sbcs\",\"chars\":\"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñÑªº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýÝ¯´­±‗¾¶§÷¸°¨·¹³²■ \"},\"ibm858\":\"cp858\",\"csibm858\":\"cp858\",\"cp860\":{\"type\":\"_sbcs\",\"chars\":\"ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñÑªº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"},\"ibm860\":\"cp860\",\"csibm860\":\"cp860\",\"cp861\":{\"type\":\"_sbcs\",\"chars\":\"ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"},\"ibm861\":\"cp861\",\"csibm861\":\"cp861\",\"cp862\":{\"type\":\"_sbcs\",\"chars\":\"אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñÑªº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"},\"ibm862\":\"cp862\",\"csibm862\":\"cp862\",\"cp863\":{\"type\":\"_sbcs\",\"chars\":\"ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"},\"ibm863\":\"cp863\",\"csibm863\":\"cp863\",\"cp864\":{\"type\":\"_sbcs\",\"chars\":\"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�\"},\"ibm864\":\"cp864\",\"csibm864\":\"cp864\",\"cp865\":{\"type\":\"_sbcs\",\"chars\":\"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñÑªº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"},\"ibm865\":\"cp865\",\"csibm865\":\"cp865\",\"cp866\":{\"type\":\"_sbcs\",\"chars\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ \"},\"ibm866\":\"cp866\",\"csibm866\":\"cp866\",\"cp869\":{\"type\":\"_sbcs\",\"chars\":\"������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ \"},\"ibm869\":\"cp869\",\"csibm869\":\"cp869\",\"cp922\":{\"type\":\"_sbcs\",\"chars\":\" ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖ×ØÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ\"},\"ibm922\":\"cp922\",\"csibm922\":\"cp922\",\"cp1046\":{\"type\":\"_sbcs\",\"chars\":\"ﺈ×÷ﹱ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�\"},\"ibm1046\":\"cp1046\",\"csibm1046\":\"cp1046\",\"cp1124\":{\"type\":\"_sbcs\",\"chars\":\" ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ\"},\"ibm1124\":\"cp1124\",\"csibm1124\":\"cp1124\",\"cp1125\":{\"type\":\"_sbcs\",\"chars\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ \"},\"ibm1125\":\"cp1125\",\"csibm1125\":\"cp1125\",\"cp1129\":{\"type\":\"_sbcs\",\"chars\":\" ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖ×ØÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ\"},\"ibm1129\":\"cp1129\",\"csibm1129\":\"cp1129\",\"cp1133\":{\"type\":\"_sbcs\",\"chars\":\" ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�\"},\"ibm1133\":\"cp1133\",\"csibm1133\":\"cp1133\",\"cp1161\":{\"type\":\"_sbcs\",\"chars\":\"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ \"},\"ibm1161\":\"cp1161\",\"csibm1161\":\"cp1161\",\"cp1162\":{\"type\":\"_sbcs\",\"chars\":\"€…‘’“”•–— กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"},\"ibm1162\":\"cp1162\",\"csibm1162\":\"cp1162\",\"cp1163\":{\"type\":\"_sbcs\",\"chars\":\" ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖ×ØÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ\"},\"ibm1163\":\"cp1163\",\"csibm1163\":\"cp1163\",\"maccroatian\":{\"type\":\"_sbcs\",\"chars\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\"},\"maccyrillic\":{\"type\":\"_sbcs\",\"chars\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤\"},\"macgreek\":{\"type\":\"_sbcs\",\"chars\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�\"},\"maciceland\":{\"type\":\"_sbcs\",\"chars\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"},\"macroman\":{\"type\":\"_sbcs\",\"chars\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"},\"macromania\":{\"type\":\"_sbcs\",\"chars\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"},\"macthai\":{\"type\":\"_sbcs\",\"chars\":\"«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู﻿​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����\"},\"macturkish\":{\"type\":\"_sbcs\",\"chars\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ\"},\"macukraine\":{\"type\":\"_sbcs\",\"chars\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤\"},\"koi8r\":{\"type\":\"_sbcs\",\"chars\":\"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"},\"koi8u\":{\"type\":\"_sbcs\",\"chars\":\"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"},\"koi8ru\":{\"type\":\"_sbcs\",\"chars\":\"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"},\"koi8t\":{\"type\":\"_sbcs\",\"chars\":\"қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"},\"armscii8\":{\"type\":\"_sbcs\",\"chars\":\" �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�\"},\"rk1048\":{\"type\":\"_sbcs\",\"chars\":\"ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя\"},\"tcvn\":{\"type\":\"_sbcs\",\"chars\":\"\\u0000ÚỤ\\u0003ỪỬỮ\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010ỨỰỲỶỸÝỴ\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ\"},\"georgianacademy\":{\"type\":\"_sbcs\",\"chars\":\"‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"},\"georgianps\":{\"type\":\"_sbcs\",\"chars\":\"‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"},\"pt154\":{\"type\":\"_sbcs\",\"chars\":\"ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя\"},\"viscii\":{\"type\":\"_sbcs\",\"chars\":\"\\u0000\\u0001Ẳ\\u0003\\u0004ẴẪ\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013Ỷ\\u0015\\u0016\\u0017\\u0018Ỹ\\u001a\\u001b\\u001c\\u001dỴ\\u001f !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ\"},\"iso646cn\":{\"type\":\"_sbcs\",\"chars\":\"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������\"},\"iso646jp\":{\"type\":\"_sbcs\",\"chars\":\"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������\"},\"hproman8\":{\"type\":\"_sbcs\",\"chars\":\" ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�\"},\"macintosh\":{\"type\":\"_sbcs\",\"chars\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"},\"ascii\":{\"type\":\"_sbcs\",\"chars\":\"��������������������������������������������������������������������������������������������������������������������������������\"},\"tis620\":{\"type\":\"_sbcs\",\"chars\":\"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"}};/***/},/* 313 */ /***/function(module,exports,__nested_webpack_require_4301147__){\"use strict\";var Buffer=__nested_webpack_require_4301147__(34).Buffer;// Multibyte codec. In this scheme, a character is represented by 1 or more bytes.\n// Our codec supports UTF-16 surrogates, extensions for GB18030 and unicode sequences.\n// To save memory and loading time, we read table files only when requested.\nexports._dbcs=DBCSCodec;var UNASSIGNED=-1,GB18030_CODE=-2,SEQ_START=-10,NODE_START=-1000,UNASSIGNED_NODE=new Array(0x100),DEF_CHAR=-1;for(var i=0;i<0x100;i++)UNASSIGNED_NODE[i]=UNASSIGNED;// Class DBCSCodec reads and initializes mapping tables.\nfunction DBCSCodec(codecOptions,iconv){this.encodingName=codecOptions.encodingName;if(!codecOptions)throw new Error(\"DBCS codec is called without the data.\");if(!codecOptions.table)throw new Error(\"Encoding '\"+this.encodingName+\"' has no data.\");// Load tables.\nvar mappingTable=codecOptions.table();// Decode tables: MBCS -> Unicode.\n// decodeTables is a trie, encoded as an array of arrays of integers. Internal arrays are trie nodes and all have len = 256.\n// Trie root is decodeTables[0].\n// Values: >=  0 -> unicode character code. can be > 0xFFFF\n//         == UNASSIGNED -> unknown/unassigned sequence.\n//         == GB18030_CODE -> this is the end of a GB18030 4-byte sequence.\n//         <= NODE_START -> index of the next node in our trie to process next byte.\n//         <= SEQ_START  -> index of the start of a character code sequence, in decodeTableSeq.\nthis.decodeTables=[];this.decodeTables[0]=UNASSIGNED_NODE.slice(0);// Create root node.\n// Sometimes a MBCS char corresponds to a sequence of unicode chars. We store them as arrays of integers here. \nthis.decodeTableSeq=[];// Actual mapping tables consist of chunks. Use them to fill up decode tables.\nfor(var i=0;i<mappingTable.length;i++)this._addDecodeChunk(mappingTable[i]);this.defaultCharUnicode=iconv.defaultCharUnicode;// Encode tables: Unicode -> DBCS.\n// `encodeTable` is array mapping from unicode char to encoded char. All its values are integers for performance.\n// Because it can be sparse, it is represented as array of buckets by 256 chars each. Bucket can be null.\n// Values: >=  0 -> it is a normal char. Write the value (if <=256 then 1 byte, if <=65536 then 2 bytes, etc.).\n//         == UNASSIGNED -> no conversion found. Output a default char.\n//         <= SEQ_START  -> it's an index in encodeTableSeq, see below. The character starts a sequence.\nthis.encodeTable=[];// `encodeTableSeq` is used when a sequence of unicode characters is encoded as a single code. We use a tree of\n// objects where keys correspond to characters in sequence and leafs are the encoded dbcs values. A special DEF_CHAR key\n// means end of sequence (needed when one sequence is a strict subsequence of another).\n// Objects are kept separately from encodeTable to increase performance.\nthis.encodeTableSeq=[];// Some chars can be decoded, but need not be encoded.\nvar skipEncodeChars={};if(codecOptions.encodeSkipVals)for(var i=0;i<codecOptions.encodeSkipVals.length;i++){var val=codecOptions.encodeSkipVals[i];if(typeof val==='number')skipEncodeChars[val]=true;else for(var j=val.from;j<=val.to;j++)skipEncodeChars[j]=true;}// Use decode trie to recursively fill out encode tables.\nthis._fillEncodeTable(0,0,skipEncodeChars);// Add more encoding pairs when needed.\nif(codecOptions.encodeAdd){for(var uChar in codecOptions.encodeAdd)if(Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd,uChar))this._setEncodeChar(uChar.charCodeAt(0),codecOptions.encodeAdd[uChar]);}this.defCharSB=this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)];if(this.defCharSB===UNASSIGNED)this.defCharSB=this.encodeTable[0]['?'];if(this.defCharSB===UNASSIGNED)this.defCharSB=\"?\".charCodeAt(0);// Load & create GB18030 tables when needed.\nif(typeof codecOptions.gb18030==='function'){this.gb18030=codecOptions.gb18030();// Load GB18030 ranges.\n// Add GB18030 decode tables.\nvar thirdByteNodeIdx=this.decodeTables.length;var thirdByteNode=this.decodeTables[thirdByteNodeIdx]=UNASSIGNED_NODE.slice(0);var fourthByteNodeIdx=this.decodeTables.length;var fourthByteNode=this.decodeTables[fourthByteNodeIdx]=UNASSIGNED_NODE.slice(0);for(var i=0x81;i<=0xFE;i++){var secondByteNodeIdx=NODE_START-this.decodeTables[0][i];var secondByteNode=this.decodeTables[secondByteNodeIdx];for(var j=0x30;j<=0x39;j++)secondByteNode[j]=NODE_START-thirdByteNodeIdx;}for(var i=0x81;i<=0xFE;i++)thirdByteNode[i]=NODE_START-fourthByteNodeIdx;for(var i=0x30;i<=0x39;i++)fourthByteNode[i]=GB18030_CODE;}}DBCSCodec.prototype.encoder=DBCSEncoder;DBCSCodec.prototype.decoder=DBCSDecoder;// Decoder helpers\nDBCSCodec.prototype._getDecodeTrieNode=function(addr){var bytes=[];for(;addr>0;addr>>=8)bytes.push(addr&0xFF);if(bytes.length==0)bytes.push(0);var node=this.decodeTables[0];for(var i=bytes.length-1;i>0;i--){// Traverse nodes deeper into the trie.\nvar val=node[bytes[i]];if(val==UNASSIGNED){// Create new node.\nnode[bytes[i]]=NODE_START-this.decodeTables.length;this.decodeTables.push(node=UNASSIGNED_NODE.slice(0));}else if(val<=NODE_START){// Existing node.\nnode=this.decodeTables[NODE_START-val];}else throw new Error(\"Overwrite byte in \"+this.encodingName+\", addr: \"+addr.toString(16));}return node;};DBCSCodec.prototype._addDecodeChunk=function(chunk){// First element of chunk is the hex mbcs code where we start.\nvar curAddr=parseInt(chunk[0],16);// Choose the decoding node where we'll write our chars.\nvar writeTable=this._getDecodeTrieNode(curAddr);curAddr=curAddr&0xFF;// Write all other elements of the chunk to the table.\nfor(var k=1;k<chunk.length;k++){var part=chunk[k];if(typeof part===\"string\"){// String, write as-is.\nfor(var l=0;l<part.length;){var code=part.charCodeAt(l++);if(0xD800<=code&&code<0xDC00){// Decode surrogate\nvar codeTrail=part.charCodeAt(l++);if(0xDC00<=codeTrail&&codeTrail<0xE000)writeTable[curAddr++]=0x10000+(code-0xD800)*0x400+(codeTrail-0xDC00);else throw new Error(\"Incorrect surrogate pair in \"+this.encodingName+\" at chunk \"+chunk[0]);}else if(0x0FF0<code&&code<=0x0FFF){// Character sequence (our own encoding used)\nvar len=0xFFF-code+2;var seq=[];for(var m=0;m<len;m++)seq.push(part.charCodeAt(l++));// Simple variation: don't support surrogates or subsequences in seq.\nwriteTable[curAddr++]=SEQ_START-this.decodeTableSeq.length;this.decodeTableSeq.push(seq);}else writeTable[curAddr++]=code;// Basic char\n}}else if(typeof part===\"number\"){// Integer, meaning increasing sequence starting with prev character.\nvar charCode=writeTable[curAddr-1]+1;for(var l=0;l<part;l++)writeTable[curAddr++]=charCode++;}else throw new Error(\"Incorrect type '\"+typeof part+\"' given in \"+this.encodingName+\" at chunk \"+chunk[0]);}if(curAddr>0xFF)throw new Error(\"Incorrect chunk in \"+this.encodingName+\" at addr \"+chunk[0]+\": too long\"+curAddr);};// Encoder helpers\nDBCSCodec.prototype._getEncodeBucket=function(uCode){var high=uCode>>8;// This could be > 0xFF because of astral characters.\nif(this.encodeTable[high]===undefined)this.encodeTable[high]=UNASSIGNED_NODE.slice(0);// Create bucket on demand.\nreturn this.encodeTable[high];};DBCSCodec.prototype._setEncodeChar=function(uCode,dbcsCode){var bucket=this._getEncodeBucket(uCode);var low=uCode&0xFF;if(bucket[low]<=SEQ_START)this.encodeTableSeq[SEQ_START-bucket[low]][DEF_CHAR]=dbcsCode;// There's already a sequence, set a single-char subsequence of it.\nelse if(bucket[low]==UNASSIGNED)bucket[low]=dbcsCode;};DBCSCodec.prototype._setEncodeSequence=function(seq,dbcsCode){// Get the root of character tree according to first character of the sequence.\nvar uCode=seq[0];var bucket=this._getEncodeBucket(uCode);var low=uCode&0xFF;var node;if(bucket[low]<=SEQ_START){// There's already a sequence with  - use it.\nnode=this.encodeTableSeq[SEQ_START-bucket[low]];}else{// There was no sequence object - allocate a new one.\nnode={};if(bucket[low]!==UNASSIGNED)node[DEF_CHAR]=bucket[low];// If a char was set before - make it a single-char subsequence.\nbucket[low]=SEQ_START-this.encodeTableSeq.length;this.encodeTableSeq.push(node);}// Traverse the character tree, allocating new nodes as needed.\nfor(var j=1;j<seq.length-1;j++){var oldVal=node[uCode];if(typeof oldVal==='object')node=oldVal;else{node=node[uCode]={};if(oldVal!==undefined)node[DEF_CHAR]=oldVal;}}// Set the leaf to given dbcsCode.\nuCode=seq[seq.length-1];node[uCode]=dbcsCode;};DBCSCodec.prototype._fillEncodeTable=function(nodeIdx,prefix,skipEncodeChars){var node=this.decodeTables[nodeIdx];for(var i=0;i<0x100;i++){var uCode=node[i];var mbCode=prefix+i;if(skipEncodeChars[mbCode])continue;if(uCode>=0)this._setEncodeChar(uCode,mbCode);else if(uCode<=NODE_START)this._fillEncodeTable(NODE_START-uCode,mbCode<<8,skipEncodeChars);else if(uCode<=SEQ_START)this._setEncodeSequence(this.decodeTableSeq[SEQ_START-uCode],mbCode);}};// == Encoder ==================================================================\nfunction DBCSEncoder(options,codec){// Encoder state\nthis.leadSurrogate=-1;this.seqObj=undefined;// Static data\nthis.encodeTable=codec.encodeTable;this.encodeTableSeq=codec.encodeTableSeq;this.defaultCharSingleByte=codec.defCharSB;this.gb18030=codec.gb18030;}DBCSEncoder.prototype.write=function(str){var newBuf=Buffer.alloc(str.length*(this.gb18030?4:3)),leadSurrogate=this.leadSurrogate,seqObj=this.seqObj,nextChar=-1,i=0,j=0;while(true){// 0. Get next character.\nif(nextChar===-1){if(i==str.length)break;var uCode=str.charCodeAt(i++);}else{var uCode=nextChar;nextChar=-1;}// 1. Handle surrogates.\nif(0xD800<=uCode&&uCode<0xE000){// Char is one of surrogates.\nif(uCode<0xDC00){// We've got lead surrogate.\nif(leadSurrogate===-1){leadSurrogate=uCode;continue;}else{leadSurrogate=uCode;// Double lead surrogate found.\nuCode=UNASSIGNED;}}else{// We've got trail surrogate.\nif(leadSurrogate!==-1){uCode=0x10000+(leadSurrogate-0xD800)*0x400+(uCode-0xDC00);leadSurrogate=-1;}else{// Incomplete surrogate pair - only trail surrogate found.\nuCode=UNASSIGNED;}}}else if(leadSurrogate!==-1){// Incomplete surrogate pair - only lead surrogate found.\nnextChar=uCode;uCode=UNASSIGNED;// Write an error, then current char.\nleadSurrogate=-1;}// 2. Convert uCode character.\nvar dbcsCode=UNASSIGNED;if(seqObj!==undefined&&uCode!=UNASSIGNED){// We are in the middle of the sequence\nvar resCode=seqObj[uCode];if(typeof resCode==='object'){// Sequence continues.\nseqObj=resCode;continue;}else if(typeof resCode=='number'){// Sequence finished. Write it.\ndbcsCode=resCode;}else if(resCode==undefined){// Current character is not part of the sequence.\n// Try default character for this sequence\nresCode=seqObj[DEF_CHAR];if(resCode!==undefined){dbcsCode=resCode;// Found. Write it.\nnextChar=uCode;// Current character will be written too in the next iteration.\n}else{// TODO: What if we have no default? (resCode == undefined)\n// Then, we should write first char of the sequence as-is and try the rest recursively.\n// Didn't do it for now because no encoding has this situation yet.\n// Currently, just skip the sequence and write current char.\n}}seqObj=undefined;}else if(uCode>=0){// Regular character\nvar subtable=this.encodeTable[uCode>>8];if(subtable!==undefined)dbcsCode=subtable[uCode&0xFF];if(dbcsCode<=SEQ_START){// Sequence start\nseqObj=this.encodeTableSeq[SEQ_START-dbcsCode];continue;}if(dbcsCode==UNASSIGNED&&this.gb18030){// Use GB18030 algorithm to find character(s) to write.\nvar idx=findIdx(this.gb18030.uChars,uCode);if(idx!=-1){var dbcsCode=this.gb18030.gbChars[idx]+(uCode-this.gb18030.uChars[idx]);newBuf[j++]=0x81+Math.floor(dbcsCode/12600);dbcsCode=dbcsCode%12600;newBuf[j++]=0x30+Math.floor(dbcsCode/1260);dbcsCode=dbcsCode%1260;newBuf[j++]=0x81+Math.floor(dbcsCode/10);dbcsCode=dbcsCode%10;newBuf[j++]=0x30+dbcsCode;continue;}}}// 3. Write dbcsCode character.\nif(dbcsCode===UNASSIGNED)dbcsCode=this.defaultCharSingleByte;if(dbcsCode<0x100){newBuf[j++]=dbcsCode;}else if(dbcsCode<0x10000){newBuf[j++]=dbcsCode>>8;// high byte\nnewBuf[j++]=dbcsCode&0xFF;// low byte\n}else{newBuf[j++]=dbcsCode>>16;newBuf[j++]=dbcsCode>>8&0xFF;newBuf[j++]=dbcsCode&0xFF;}}this.seqObj=seqObj;this.leadSurrogate=leadSurrogate;return newBuf.slice(0,j);};DBCSEncoder.prototype.end=function(){if(this.leadSurrogate===-1&&this.seqObj===undefined)return;// All clean. Most often case.\nvar newBuf=Buffer.alloc(10),j=0;if(this.seqObj){// We're in the sequence.\nvar dbcsCode=this.seqObj[DEF_CHAR];if(dbcsCode!==undefined){// Write beginning of the sequence.\nif(dbcsCode<0x100){newBuf[j++]=dbcsCode;}else{newBuf[j++]=dbcsCode>>8;// high byte\nnewBuf[j++]=dbcsCode&0xFF;// low byte\n}}else{// See todo above.\n}this.seqObj=undefined;}if(this.leadSurrogate!==-1){// Incomplete surrogate pair - only lead surrogate found.\nnewBuf[j++]=this.defaultCharSingleByte;this.leadSurrogate=-1;}return newBuf.slice(0,j);};// Export for testing\nDBCSEncoder.prototype.findIdx=findIdx;// == Decoder ==================================================================\nfunction DBCSDecoder(options,codec){// Decoder state\nthis.nodeIdx=0;this.prevBuf=Buffer.alloc(0);// Static data\nthis.decodeTables=codec.decodeTables;this.decodeTableSeq=codec.decodeTableSeq;this.defaultCharUnicode=codec.defaultCharUnicode;this.gb18030=codec.gb18030;}DBCSDecoder.prototype.write=function(buf){var newBuf=Buffer.alloc(buf.length*2),nodeIdx=this.nodeIdx,prevBuf=this.prevBuf,prevBufOffset=this.prevBuf.length,seqStart=-this.prevBuf.length,// idx of the start of current parsed sequence.\nuCode;if(prevBufOffset>0)// Make prev buf overlap a little to make it easier to slice later.\nprevBuf=Buffer.concat([prevBuf,buf.slice(0,10)]);for(var i=0,j=0;i<buf.length;i++){var curByte=i>=0?buf[i]:prevBuf[i+prevBufOffset];// Lookup in current trie node.\nvar uCode=this.decodeTables[nodeIdx][curByte];if(uCode>=0){// Normal character, just use it.\n}else if(uCode===UNASSIGNED){// Unknown char.\n// TODO: Callback with seq.\n//var curSeq = (seqStart >= 0) ? buf.slice(seqStart, i+1) : prevBuf.slice(seqStart + prevBufOffset, i+1 + prevBufOffset);\ni=seqStart;// Try to parse again, after skipping first byte of the sequence ('i' will be incremented by 'for' cycle).\nuCode=this.defaultCharUnicode.charCodeAt(0);}else if(uCode===GB18030_CODE){var curSeq=seqStart>=0?buf.slice(seqStart,i+1):prevBuf.slice(seqStart+prevBufOffset,i+1+prevBufOffset);var ptr=(curSeq[0]-0x81)*12600+(curSeq[1]-0x30)*1260+(curSeq[2]-0x81)*10+(curSeq[3]-0x30);var idx=findIdx(this.gb18030.gbChars,ptr);uCode=this.gb18030.uChars[idx]+ptr-this.gb18030.gbChars[idx];}else if(uCode<=NODE_START){// Go to next trie node.\nnodeIdx=NODE_START-uCode;continue;}else if(uCode<=SEQ_START){// Output a sequence of chars.\nvar seq=this.decodeTableSeq[SEQ_START-uCode];for(var k=0;k<seq.length-1;k++){uCode=seq[k];newBuf[j++]=uCode&0xFF;newBuf[j++]=uCode>>8;}uCode=seq[seq.length-1];}else throw new Error(\"iconv-lite internal error: invalid decoding table value \"+uCode+\" at \"+nodeIdx+\"/\"+curByte);// Write the character to buffer, handling higher planes using surrogate pair.\nif(uCode>0xFFFF){uCode-=0x10000;var uCodeLead=0xD800+Math.floor(uCode/0x400);newBuf[j++]=uCodeLead&0xFF;newBuf[j++]=uCodeLead>>8;uCode=0xDC00+uCode%0x400;}newBuf[j++]=uCode&0xFF;newBuf[j++]=uCode>>8;// Reset trie node.\nnodeIdx=0;seqStart=i+1;}this.nodeIdx=nodeIdx;this.prevBuf=seqStart>=0?buf.slice(seqStart):prevBuf.slice(seqStart+prevBufOffset);return newBuf.slice(0,j).toString('ucs2');};DBCSDecoder.prototype.end=function(){var ret='';// Try to parse all remaining chars.\nwhile(this.prevBuf.length>0){// Skip 1 character in the buffer.\nret+=this.defaultCharUnicode;var buf=this.prevBuf.slice(1);// Parse remaining as usual.\nthis.prevBuf=Buffer.alloc(0);this.nodeIdx=0;if(buf.length>0)ret+=this.write(buf);}this.nodeIdx=0;return ret;};// Binary search for GB18030. Returns largest i such that table[i] <= val.\nfunction findIdx(table,val){if(table[0]>val)return-1;var l=0,r=table.length;while(l<r-1){// always table[l] <= val < table[r]\nvar mid=l+Math.floor((r-l+1)/2);if(table[mid]<=val)l=mid;else r=mid;}return l;}/***/},/* 314 */ /***/function(module,exports,__nested_webpack_require_4317117__){\"use strict\";// Description of supported double byte encodings and aliases.\n// Tables are not require()-d until they are needed to speed up library load.\n// require()-s are direct to support Browserify.\nmodule.exports={// == Japanese/ShiftJIS ====================================================\n// All japanese encodings are based on JIS X set of standards:\n// JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.\n// JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes. \n//              Has several variations in 1978, 1983, 1990 and 1997.\n// JIS X 0212 - Supplementary plane of 6067 chars in 94x94 plane. 1990. Effectively dead.\n// JIS X 0213 - Extension and modern replacement of 0208 and 0212. Total chars: 11233.\n//              2 planes, first is superset of 0208, second - revised 0212.\n//              Introduced in 2000, revised 2004. Some characters are in Unicode Plane 2 (0x2xxxx)\n// Byte encodings are:\n//  * Shift_JIS: Compatible with 0201, uses not defined chars in top half as lead bytes for double-byte\n//               encoding of 0208. Lead byte ranges: 0x81-0x9F, 0xE0-0xEF; Trail byte ranges: 0x40-0x7E, 0x80-0x9E, 0x9F-0xFC.\n//               Windows CP932 is a superset of Shift_JIS. Some companies added more chars, notably KDDI.\n//  * EUC-JP:    Up to 3 bytes per character. Used mostly on *nixes.\n//               0x00-0x7F       - lower part of 0201\n//               0x8E, 0xA1-0xDF - upper part of 0201\n//               (0xA1-0xFE)x2   - 0208 plane (94x94).\n//               0x8F, (0xA1-0xFE)x2 - 0212 plane (94x94).\n//  * JIS X 208: 7-bit, direct encoding of 0208. Byte ranges: 0x21-0x7E (94 values). Uncommon.\n//               Used as-is in ISO2022 family.\n//  * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII, \n//                0201-1976 Roman, 0208-1978, 0208-1983.\n//  * ISO2022-JP-1: Adds esc seq for 0212-1990.\n//  * ISO2022-JP-2: Adds esc seq for GB2313-1980, KSX1001-1992, ISO8859-1, ISO8859-7.\n//  * ISO2022-JP-3: Adds esc seq for 0201-1976 Kana set, 0213-2000 Planes 1, 2.\n//  * ISO2022-JP-2004: Adds 0213-2004 Plane 1.\n//\n// After JIS X 0213 appeared, Shift_JIS-2004, EUC-JISX0213 and ISO2022-JP-2004 followed, with just changing the planes.\n//\n// Overall, it seems that it's a mess :( http://www8.plala.or.jp/tkubota1/unicode-symbols-map2.html\n'shiftjis':{type:'_dbcs',table:function(){return __nested_webpack_require_4317117__(315);},encodeAdd:{'\\u00a5':0x5C,'\\u203E':0x7E},encodeSkipVals:[{from:0xED40,to:0xF940}]},'csshiftjis':'shiftjis','mskanji':'shiftjis','sjis':'shiftjis','windows31j':'shiftjis','ms31j':'shiftjis','xsjis':'shiftjis','windows932':'shiftjis','ms932':'shiftjis','932':'shiftjis','cp932':'shiftjis','eucjp':{type:'_dbcs',table:function(){return __nested_webpack_require_4317117__(316);},encodeAdd:{'\\u00a5':0x5C,'\\u203E':0x7E}},// TODO: KDDI extension to Shift_JIS\n// TODO: IBM CCSID 942 = CP932, but F0-F9 custom chars and other char changes.\n// TODO: IBM CCSID 943 = Shift_JIS = CP932 with original Shift_JIS lower 128 chars.\n// == Chinese/GBK ==========================================================\n// http://en.wikipedia.org/wiki/GBK\n// We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder\n// Oldest GB2312 (1981, ~7600 chars) is a subset of CP936\n'gb2312':'cp936','gb231280':'cp936','gb23121980':'cp936','csgb2312':'cp936','csiso58gb231280':'cp936','euccn':'cp936',// Microsoft's CP936 is a subset and approximation of GBK.\n'windows936':'cp936','ms936':'cp936','936':'cp936','cp936':{type:'_dbcs',table:function(){return __nested_webpack_require_4317117__(109);}},// GBK (~22000 chars) is an extension of CP936 that added user-mapped chars and some other.\n'gbk':{type:'_dbcs',table:function(){return __nested_webpack_require_4317117__(109).concat(__nested_webpack_require_4317117__(176));}},'xgbk':'gbk','isoir58':'gbk',// GB18030 is an algorithmic extension of GBK.\n// Main source: https://www.w3.org/TR/encoding/#gbk-encoder\n// http://icu-project.org/docs/papers/gb18030.html\n// http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml\n// http://www.khngai.com/chinese/charmap/tblgbk.php?page=0\n'gb18030':{type:'_dbcs',table:function(){return __nested_webpack_require_4317117__(109).concat(__nested_webpack_require_4317117__(176));},gb18030:function(){return __nested_webpack_require_4317117__(317);},encodeSkipVals:[0x80],encodeAdd:{'€':0xA2E3}},'chinese':'gb18030',// == Korean ===============================================================\n// EUC-KR, KS_C_5601 and KS X 1001 are exactly the same.\n'windows949':'cp949','ms949':'cp949','949':'cp949','cp949':{type:'_dbcs',table:function(){return __nested_webpack_require_4317117__(318);}},'cseuckr':'cp949','csksc56011987':'cp949','euckr':'cp949','isoir149':'cp949','korean':'cp949','ksc56011987':'cp949','ksc56011989':'cp949','ksc5601':'cp949',// == Big5/Taiwan/Hong Kong ================================================\n// There are lots of tables for Big5 and cp950. Please see the following links for history:\n// http://moztw.org/docs/big5/  http://www.haible.de/bruno/charsets/conversion-tables/Big5.html\n// Variations, in roughly number of defined chars:\n//  * Windows CP 950: Microsoft variant of Big5. Canonical: http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP950.TXT\n//  * Windows CP 951: Microsoft variant of Big5-HKSCS-2001. Seems to be never public. http://me.abelcheung.org/articles/research/what-is-cp951/\n//  * Big5-2003 (Taiwan standard) almost superset of cp950.\n//  * Unicode-at-on (UAO) / Mozilla 1.8. Falling out of use on the Web. Not supported by other browsers.\n//  * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard. \n//    many unicode code points moved from PUA to Supplementary plane (U+2XXXX) over the years.\n//    Plus, it has 4 combining sequences.\n//    Seems that Mozilla refused to support it for 10 yrs. https://bugzilla.mozilla.org/show_bug.cgi?id=162431 https://bugzilla.mozilla.org/show_bug.cgi?id=310299\n//    because big5-hkscs is the only encoding to include astral characters in non-algorithmic way.\n//    Implementations are not consistent within browsers; sometimes labeled as just big5.\n//    MS Internet Explorer switches from big5 to big5-hkscs when a patch applied.\n//    Great discussion & recap of what's going on https://bugzilla.mozilla.org/show_bug.cgi?id=912470#c31\n//    In the encoder, it might make sense to support encoding old PUA mappings to Big5 bytes seq-s.\n//    Official spec: http://www.ogcio.gov.hk/en/business/tech_promotion/ccli/terms/doc/2003cmp_2008.txt\n//                   http://www.ogcio.gov.hk/tc/business/tech_promotion/ccli/terms/doc/hkscs-2008-big5-iso.txt\n// \n// Current understanding of how to deal with Big5(-HKSCS) is in the Encoding Standard, http://encoding.spec.whatwg.org/#big5-encoder\n// Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong.\n'windows950':'cp950','ms950':'cp950','950':'cp950','cp950':{type:'_dbcs',table:function(){return __nested_webpack_require_4317117__(177);}},// Big5 has many variations and is an extension of cp950. We use Encoding Standard's as a consensus.\n'big5':'big5hkscs','big5hkscs':{type:'_dbcs',table:function(){return __nested_webpack_require_4317117__(177).concat(__nested_webpack_require_4317117__(319));},encodeSkipVals:[0xa2cc]},'cnbig5':'big5hkscs','csbig5':'big5hkscs','xxbig5':'big5hkscs'};/***/},/* 315 */ /***/function(module){module.exports=JSON.parse(\"[[\\\"0\\\",\\\"\\\\u0000\\\",128],[\\\"a1\\\",\\\"｡\\\",62],[\\\"8140\\\",\\\"　、。，．・：；？！゛゜´｀¨＾￣＿ヽヾゝゞ〃仝々〆〇ー―‐／＼～∥｜…‥‘’“”（）〔〕［］｛｝〈\\\",9,\\\"＋－±×\\\"],[\\\"8180\\\",\\\"÷＝≠＜＞≦≧∞∴♂♀°′″℃￥＄￠￡％＃＆＊＠§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓\\\"],[\\\"81b8\\\",\\\"∈∋⊆⊇⊂⊃∪∩\\\"],[\\\"81c8\\\",\\\"∧∨￢⇒⇔∀∃\\\"],[\\\"81da\\\",\\\"∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬\\\"],[\\\"81f0\\\",\\\"Å‰♯♭♪†‡¶\\\"],[\\\"81fc\\\",\\\"◯\\\"],[\\\"824f\\\",\\\"０\\\",9],[\\\"8260\\\",\\\"Ａ\\\",25],[\\\"8281\\\",\\\"ａ\\\",25],[\\\"829f\\\",\\\"ぁ\\\",82],[\\\"8340\\\",\\\"ァ\\\",62],[\\\"8380\\\",\\\"ム\\\",22],[\\\"839f\\\",\\\"Α\\\",16,\\\"Σ\\\",6],[\\\"83bf\\\",\\\"α\\\",16,\\\"σ\\\",6],[\\\"8440\\\",\\\"А\\\",5,\\\"ЁЖ\\\",25],[\\\"8470\\\",\\\"а\\\",5,\\\"ёж\\\",7],[\\\"8480\\\",\\\"о\\\",17],[\\\"849f\\\",\\\"─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂\\\"],[\\\"8740\\\",\\\"①\\\",19,\\\"Ⅰ\\\",9],[\\\"875f\\\",\\\"㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡\\\"],[\\\"877e\\\",\\\"㍻\\\"],[\\\"8780\\\",\\\"〝〟№㏍℡㊤\\\",4,\\\"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪\\\"],[\\\"889f\\\",\\\"亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭\\\"],[\\\"8940\\\",\\\"院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円\\\"],[\\\"8980\\\",\\\"園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改\\\"],[\\\"8a40\\\",\\\"魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫\\\"],[\\\"8a80\\\",\\\"橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄\\\"],[\\\"8b40\\\",\\\"機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救\\\"],[\\\"8b80\\\",\\\"朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈\\\"],[\\\"8c40\\\",\\\"掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨\\\"],[\\\"8c80\\\",\\\"劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向\\\"],[\\\"8d40\\\",\\\"后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降\\\"],[\\\"8d80\\\",\\\"項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷\\\"],[\\\"8e40\\\",\\\"察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止\\\"],[\\\"8e80\\\",\\\"死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周\\\"],[\\\"8f40\\\",\\\"宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳\\\"],[\\\"8f80\\\",\\\"準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾\\\"],[\\\"9040\\\",\\\"拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨\\\"],[\\\"9080\\\",\\\"逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線\\\"],[\\\"9140\\\",\\\"繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻\\\"],[\\\"9180\\\",\\\"操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只\\\"],[\\\"9240\\\",\\\"叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄\\\"],[\\\"9280\\\",\\\"逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓\\\"],[\\\"9340\\\",\\\"邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬\\\"],[\\\"9380\\\",\\\"凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入\\\"],[\\\"9440\\\",\\\"如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅\\\"],[\\\"9480\\\",\\\"楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美\\\"],[\\\"9540\\\",\\\"鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷\\\"],[\\\"9580\\\",\\\"斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋\\\"],[\\\"9640\\\",\\\"法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆\\\"],[\\\"9680\\\",\\\"摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒\\\"],[\\\"9740\\\",\\\"諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲\\\"],[\\\"9780\\\",\\\"沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯\\\"],[\\\"9840\\\",\\\"蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕\\\"],[\\\"989f\\\",\\\"弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲\\\"],[\\\"9940\\\",\\\"僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭\\\"],[\\\"9980\\\",\\\"凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨\\\"],[\\\"9a40\\\",\\\"咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸\\\"],[\\\"9a80\\\",\\\"噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩\\\"],[\\\"9b40\\\",\\\"奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀\\\"],[\\\"9b80\\\",\\\"它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏\\\"],[\\\"9c40\\\",\\\"廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠\\\"],[\\\"9c80\\\",\\\"怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛\\\"],[\\\"9d40\\\",\\\"戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫\\\"],[\\\"9d80\\\",\\\"捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼\\\"],[\\\"9e40\\\",\\\"曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎\\\"],[\\\"9e80\\\",\\\"梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣\\\"],[\\\"9f40\\\",\\\"檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯\\\"],[\\\"9f80\\\",\\\"麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌\\\"],[\\\"e040\\\",\\\"漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝\\\"],[\\\"e080\\\",\\\"烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱\\\"],[\\\"e140\\\",\\\"瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿\\\"],[\\\"e180\\\",\\\"痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬\\\"],[\\\"e240\\\",\\\"磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰\\\"],[\\\"e280\\\",\\\"窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆\\\"],[\\\"e340\\\",\\\"紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷\\\"],[\\\"e380\\\",\\\"縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋\\\"],[\\\"e440\\\",\\\"隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤\\\"],[\\\"e480\\\",\\\"艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈\\\"],[\\\"e540\\\",\\\"蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬\\\"],[\\\"e580\\\",\\\"蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞\\\"],[\\\"e640\\\",\\\"襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧\\\"],[\\\"e680\\\",\\\"諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊\\\"],[\\\"e740\\\",\\\"蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜\\\"],[\\\"e780\\\",\\\"轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮\\\"],[\\\"e840\\\",\\\"錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙\\\"],[\\\"e880\\\",\\\"閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰\\\"],[\\\"e940\\\",\\\"顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃\\\"],[\\\"e980\\\",\\\"騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈\\\"],[\\\"ea40\\\",\\\"鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯\\\"],[\\\"ea80\\\",\\\"黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙\\\"],[\\\"ed40\\\",\\\"纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏\\\"],[\\\"ed80\\\",\\\"塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱\\\"],[\\\"ee40\\\",\\\"犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙\\\"],[\\\"ee80\\\",\\\"蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑\\\"],[\\\"eeef\\\",\\\"ⅰ\\\",9,\\\"￢￤＇＂\\\"],[\\\"f040\\\",\\\"\\\",62],[\\\"f080\\\",\\\"\\\",124],[\\\"f140\\\",\\\"\\\",62],[\\\"f180\\\",\\\"\\\",124],[\\\"f240\\\",\\\"\\\",62],[\\\"f280\\\",\\\"\\\",124],[\\\"f340\\\",\\\"\\\",62],[\\\"f380\\\",\\\"\\\",124],[\\\"f440\\\",\\\"\\\",62],[\\\"f480\\\",\\\"\\\",124],[\\\"f540\\\",\\\"\\\",62],[\\\"f580\\\",\\\"\\\",124],[\\\"f640\\\",\\\"\\\",62],[\\\"f680\\\",\\\"\\\",124],[\\\"f740\\\",\\\"\\\",62],[\\\"f780\\\",\\\"\\\",124],[\\\"f840\\\",\\\"\\\",62],[\\\"f880\\\",\\\"\\\",124],[\\\"f940\\\",\\\"\\\"],[\\\"fa40\\\",\\\"ⅰ\\\",9,\\\"Ⅰ\\\",9,\\\"￢￤＇＂㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊\\\"],[\\\"fa80\\\",\\\"兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯\\\"],[\\\"fb40\\\",\\\"涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神\\\"],[\\\"fb80\\\",\\\"祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙\\\"],[\\\"fc40\\\",\\\"髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑\\\"]]\");/***/},/* 316 */ /***/function(module){module.exports=JSON.parse(\"[[\\\"0\\\",\\\"\\\\u0000\\\",127],[\\\"8ea1\\\",\\\"｡\\\",62],[\\\"a1a1\\\",\\\"　、。，．・：；？！゛゜´｀¨＾￣＿ヽヾゝゞ〃仝々〆〇ー―‐／＼～∥｜…‥‘’“”（）〔〕［］｛｝〈\\\",9,\\\"＋－±×÷＝≠＜＞≦≧∞∴♂♀°′″℃￥＄￠￡％＃＆＊＠§☆★○●◎◇\\\"],[\\\"a2a1\\\",\\\"◆□■△▲▽▼※〒→←↑↓〓\\\"],[\\\"a2ba\\\",\\\"∈∋⊆⊇⊂⊃∪∩\\\"],[\\\"a2ca\\\",\\\"∧∨￢⇒⇔∀∃\\\"],[\\\"a2dc\\\",\\\"∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬\\\"],[\\\"a2f2\\\",\\\"Å‰♯♭♪†‡¶\\\"],[\\\"a2fe\\\",\\\"◯\\\"],[\\\"a3b0\\\",\\\"０\\\",9],[\\\"a3c1\\\",\\\"Ａ\\\",25],[\\\"a3e1\\\",\\\"ａ\\\",25],[\\\"a4a1\\\",\\\"ぁ\\\",82],[\\\"a5a1\\\",\\\"ァ\\\",85],[\\\"a6a1\\\",\\\"Α\\\",16,\\\"Σ\\\",6],[\\\"a6c1\\\",\\\"α\\\",16,\\\"σ\\\",6],[\\\"a7a1\\\",\\\"А\\\",5,\\\"ЁЖ\\\",25],[\\\"a7d1\\\",\\\"а\\\",5,\\\"ёж\\\",25],[\\\"a8a1\\\",\\\"─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂\\\"],[\\\"ada1\\\",\\\"①\\\",19,\\\"Ⅰ\\\",9],[\\\"adc0\\\",\\\"㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡\\\"],[\\\"addf\\\",\\\"㍻〝〟№㏍℡㊤\\\",4,\\\"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪\\\"],[\\\"b0a1\\\",\\\"亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭\\\"],[\\\"b1a1\\\",\\\"院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応\\\"],[\\\"b2a1\\\",\\\"押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改\\\"],[\\\"b3a1\\\",\\\"魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱\\\"],[\\\"b4a1\\\",\\\"粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄\\\"],[\\\"b5a1\\\",\\\"機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京\\\"],[\\\"b6a1\\\",\\\"供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈\\\"],[\\\"b7a1\\\",\\\"掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲\\\"],[\\\"b8a1\\\",\\\"検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向\\\"],[\\\"b9a1\\\",\\\"后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込\\\"],[\\\"baa1\\\",\\\"此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷\\\"],[\\\"bba1\\\",\\\"察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時\\\"],[\\\"bca1\\\",\\\"次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周\\\"],[\\\"bda1\\\",\\\"宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償\\\"],[\\\"bea1\\\",\\\"勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾\\\"],[\\\"bfa1\\\",\\\"拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾\\\"],[\\\"c0a1\\\",\\\"澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線\\\"],[\\\"c1a1\\\",\\\"繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎\\\"],[\\\"c2a1\\\",\\\"臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只\\\"],[\\\"c3a1\\\",\\\"叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵\\\"],[\\\"c4a1\\\",\\\"帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓\\\"],[\\\"c5a1\\\",\\\"邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到\\\"],[\\\"c6a1\\\",\\\"董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入\\\"],[\\\"c7a1\\\",\\\"如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦\\\"],[\\\"c8a1\\\",\\\"函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美\\\"],[\\\"c9a1\\\",\\\"鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服\\\"],[\\\"caa1\\\",\\\"福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋\\\"],[\\\"cba1\\\",\\\"法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満\\\"],[\\\"cca1\\\",\\\"漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒\\\"],[\\\"cda1\\\",\\\"諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃\\\"],[\\\"cea1\\\",\\\"痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯\\\"],[\\\"cfa1\\\",\\\"蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕\\\"],[\\\"d0a1\\\",\\\"弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲\\\"],[\\\"d1a1\\\",\\\"僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨\\\"],[\\\"d2a1\\\",\\\"辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨\\\"],[\\\"d3a1\\\",\\\"咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉\\\"],[\\\"d4a1\\\",\\\"圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩\\\"],[\\\"d5a1\\\",\\\"奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓\\\"],[\\\"d6a1\\\",\\\"屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏\\\"],[\\\"d7a1\\\",\\\"廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚\\\"],[\\\"d8a1\\\",\\\"悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛\\\"],[\\\"d9a1\\\",\\\"戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼\\\"],[\\\"daa1\\\",\\\"據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼\\\"],[\\\"dba1\\\",\\\"曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍\\\"],[\\\"dca1\\\",\\\"棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣\\\"],[\\\"dda1\\\",\\\"檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾\\\"],[\\\"dea1\\\",\\\"沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌\\\"],[\\\"dfa1\\\",\\\"漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼\\\"],[\\\"e0a1\\\",\\\"燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱\\\"],[\\\"e1a1\\\",\\\"瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰\\\"],[\\\"e2a1\\\",\\\"癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬\\\"],[\\\"e3a1\\\",\\\"磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐\\\"],[\\\"e4a1\\\",\\\"筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆\\\"],[\\\"e5a1\\\",\\\"紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺\\\"],[\\\"e6a1\\\",\\\"罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋\\\"],[\\\"e7a1\\\",\\\"隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙\\\"],[\\\"e8a1\\\",\\\"茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈\\\"],[\\\"e9a1\\\",\\\"蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙\\\"],[\\\"eaa1\\\",\\\"蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞\\\"],[\\\"eba1\\\",\\\"襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫\\\"],[\\\"eca1\\\",\\\"譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊\\\"],[\\\"eda1\\\",\\\"蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸\\\"],[\\\"eea1\\\",\\\"遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮\\\"],[\\\"efa1\\\",\\\"錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞\\\"],[\\\"f0a1\\\",\\\"陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰\\\"],[\\\"f1a1\\\",\\\"顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷\\\"],[\\\"f2a1\\\",\\\"髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈\\\"],[\\\"f3a1\\\",\\\"鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠\\\"],[\\\"f4a1\\\",\\\"堯槇遙瑤凜熙\\\"],[\\\"f9a1\\\",\\\"纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德\\\"],[\\\"faa1\\\",\\\"忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱\\\"],[\\\"fba1\\\",\\\"犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚\\\"],[\\\"fca1\\\",\\\"釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑\\\"],[\\\"fcf1\\\",\\\"ⅰ\\\",9,\\\"￢￤＇＂\\\"],[\\\"8fa2af\\\",\\\"˘ˇ¸˙˝¯˛˚～΄΅\\\"],[\\\"8fa2c2\\\",\\\"¡¦¿\\\"],[\\\"8fa2eb\\\",\\\"ºª©®™¤№\\\"],[\\\"8fa6e1\\\",\\\"ΆΈΉΊΪ\\\"],[\\\"8fa6e7\\\",\\\"Ό\\\"],[\\\"8fa6e9\\\",\\\"ΎΫ\\\"],[\\\"8fa6ec\\\",\\\"Ώ\\\"],[\\\"8fa6f1\\\",\\\"άέήίϊΐόςύϋΰώ\\\"],[\\\"8fa7c2\\\",\\\"Ђ\\\",10,\\\"ЎЏ\\\"],[\\\"8fa7f2\\\",\\\"ђ\\\",10,\\\"ўџ\\\"],[\\\"8fa9a1\\\",\\\"ÆĐ\\\"],[\\\"8fa9a4\\\",\\\"Ħ\\\"],[\\\"8fa9a6\\\",\\\"Ĳ\\\"],[\\\"8fa9a8\\\",\\\"ŁĿ\\\"],[\\\"8fa9ab\\\",\\\"ŊØŒ\\\"],[\\\"8fa9af\\\",\\\"ŦÞ\\\"],[\\\"8fa9c1\\\",\\\"æđðħıĳĸłŀŉŋøœßŧþ\\\"],[\\\"8faaa1\\\",\\\"ÁÀÄÂĂǍĀĄÅÃĆĈČÇĊĎÉÈËÊĚĖĒĘ\\\"],[\\\"8faaba\\\",\\\"ĜĞĢĠĤÍÌÏÎǏİĪĮĨĴĶĹĽĻŃŇŅÑÓÒÖÔǑŐŌÕŔŘŖŚŜŠŞŤŢÚÙÜÛŬǓŰŪŲŮŨǗǛǙǕŴÝŸŶŹŽŻ\\\"],[\\\"8faba1\\\",\\\"áàäâăǎāąåãćĉčçċďéèëêěėēęǵĝğ\\\"],[\\\"8fabbd\\\",\\\"ġĥíìïîǐ\\\"],[\\\"8fabc5\\\",\\\"īįĩĵķĺľļńňņñóòöôǒőōõŕřŗśŝšşťţúùüûŭǔűūųůũǘǜǚǖŵýÿŷźžż\\\"],[\\\"8fb0a1\\\",\\\"丂丄丅丌丒丟丣两丨丫丮丯丰丵乀乁乄乇乑乚乜乣乨乩乴乵乹乿亍亖亗亝亯亹仃仐仚仛仠仡仢仨仯仱仳仵份仾仿伀伂伃伈伋伌伒伕伖众伙伮伱你伳伵伷伹伻伾佀佂佈佉佋佌佒佔佖佘佟佣佪佬佮佱佷佸佹佺佽佾侁侂侄\\\"],[\\\"8fb1a1\\\",\\\"侅侉侊侌侎侐侒侓侔侗侙侚侞侟侲侷侹侻侼侽侾俀俁俅俆俈俉俋俌俍俏俒俜俠俢俰俲俼俽俿倀倁倄倇倊倌倎倐倓倗倘倛倜倝倞倢倧倮倰倲倳倵偀偁偂偅偆偊偌偎偑偒偓偗偙偟偠偢偣偦偧偪偭偰偱倻傁傃傄傆傊傎傏傐\\\"],[\\\"8fb2a1\\\",\\\"傒傓傔傖傛傜傞\\\",4,\\\"傪傯傰傹傺傽僀僃僄僇僌僎僐僓僔僘僜僝僟僢僤僦僨僩僯僱僶僺僾儃儆儇儈儋儌儍儎僲儐儗儙儛儜儝儞儣儧儨儬儭儯儱儳儴儵儸儹兂兊兏兓兕兗兘兟兤兦兾冃冄冋冎冘冝冡冣冭冸冺冼冾冿凂\\\"],[\\\"8fb3a1\\\",\\\"凈减凑凒凓凕凘凞凢凥凮凲凳凴凷刁刂刅划刓刕刖刘刢刨刱刲刵刼剅剉剕剗剘剚剜剟剠剡剦剮剷剸剹劀劂劅劊劌劓劕劖劗劘劚劜劤劥劦劧劯劰劶劷劸劺劻劽勀勄勆勈勌勏勑勔勖勛勜勡勥勨勩勪勬勰勱勴勶勷匀匃匊匋\\\"],[\\\"8fb4a1\\\",\\\"匌匑匓匘匛匜匞匟匥匧匨匩匫匬匭匰匲匵匼匽匾卂卌卋卙卛卡卣卥卬卭卲卹卾厃厇厈厎厓厔厙厝厡厤厪厫厯厲厴厵厷厸厺厽叀叅叏叒叓叕叚叝叞叠另叧叵吂吓吚吡吧吨吪启吱吴吵呃呄呇呍呏呞呢呤呦呧呩呫呭呮呴呿\\\"],[\\\"8fb5a1\\\",\\\"咁咃咅咈咉咍咑咕咖咜咟咡咦咧咩咪咭咮咱咷咹咺咻咿哆哊响哎哠哪哬哯哶哼哾哿唀唁唅唈唉唌唍唎唕唪唫唲唵唶唻唼唽啁啇啉啊啍啐啑啘啚啛啞啠啡啤啦啿喁喂喆喈喎喏喑喒喓喔喗喣喤喭喲喿嗁嗃嗆嗉嗋嗌嗎嗑嗒\\\"],[\\\"8fb6a1\\\",\\\"嗓嗗嗘嗛嗞嗢嗩嗶嗿嘅嘈嘊嘍\\\",5,\\\"嘙嘬嘰嘳嘵嘷嘹嘻嘼嘽嘿噀噁噃噄噆噉噋噍噏噔噞噠噡噢噣噦噩噭噯噱噲噵嚄嚅嚈嚋嚌嚕嚙嚚嚝嚞嚟嚦嚧嚨嚩嚫嚬嚭嚱嚳嚷嚾囅囉囊囋囏囐囌囍囙囜囝囟囡囤\\\",4,\\\"囱囫园\\\"],[\\\"8fb7a1\\\",\\\"囶囷圁圂圇圊圌圑圕圚圛圝圠圢圣圤圥圩圪圬圮圯圳圴圽圾圿坅坆坌坍坒坢坥坧坨坫坭\\\",4,\\\"坳坴坵坷坹坺坻坼坾垁垃垌垔垗垙垚垜垝垞垟垡垕垧垨垩垬垸垽埇埈埌埏埕埝埞埤埦埧埩埭埰埵埶埸埽埾埿堃堄堈堉埡\\\"],[\\\"8fb8a1\\\",\\\"堌堍堛堞堟堠堦堧堭堲堹堿塉塌塍塏塐塕塟塡塤塧塨塸塼塿墀墁墇墈墉墊墌墍墏墐墔墖墝墠墡墢墦墩墱墲壄墼壂壈壍壎壐壒壔壖壚壝壡壢壩壳夅夆夋夌夒夓夔虁夝夡夣夤夨夯夰夳夵夶夿奃奆奒奓奙奛奝奞奟奡奣奫奭\\\"],[\\\"8fb9a1\\\",\\\"奯奲奵奶她奻奼妋妌妎妒妕妗妟妤妧妭妮妯妰妳妷妺妼姁姃姄姈姊姍姒姝姞姟姣姤姧姮姯姱姲姴姷娀娄娌娍娎娒娓娞娣娤娧娨娪娭娰婄婅婇婈婌婐婕婞婣婥婧婭婷婺婻婾媋媐媓媖媙媜媞媟媠媢媧媬媱媲媳媵媸媺媻媿\\\"],[\\\"8fbaa1\\\",\\\"嫄嫆嫈嫏嫚嫜嫠嫥嫪嫮嫵嫶嫽嬀嬁嬈嬗嬴嬙嬛嬝嬡嬥嬭嬸孁孋孌孒孖孞孨孮孯孼孽孾孿宁宄宆宊宎宐宑宓宔宖宨宩宬宭宯宱宲宷宺宼寀寁寍寏寖\\\",4,\\\"寠寯寱寴寽尌尗尞尟尣尦尩尫尬尮尰尲尵尶屙屚屜屢屣屧屨屩\\\"],[\\\"8fbba1\\\",\\\"屭屰屴屵屺屻屼屽岇岈岊岏岒岝岟岠岢岣岦岪岲岴岵岺峉峋峒峝峗峮峱峲峴崁崆崍崒崫崣崤崦崧崱崴崹崽崿嵂嵃嵆嵈嵕嵑嵙嵊嵟嵠嵡嵢嵤嵪嵭嵰嵹嵺嵾嵿嶁嶃嶈嶊嶒嶓嶔嶕嶙嶛嶟嶠嶧嶫嶰嶴嶸嶹巃巇巋巐巎巘巙巠巤\\\"],[\\\"8fbca1\\\",\\\"巩巸巹帀帇帍帒帔帕帘帟帠帮帨帲帵帾幋幐幉幑幖幘幛幜幞幨幪\\\",4,\\\"幰庀庋庎庢庤庥庨庪庬庱庳庽庾庿廆廌廋廎廑廒廔廕廜廞廥廫异弆弇弈弎弙弜弝弡弢弣弤弨弫弬弮弰弴弶弻弽弿彀彄彅彇彍彐彔彘彛彠彣彤彧\\\"],[\\\"8fbda1\\\",\\\"彯彲彴彵彸彺彽彾徉徍徏徖徜徝徢徧徫徤徬徯徰徱徸忄忇忈忉忋忐\\\",4,\\\"忞忡忢忨忩忪忬忭忮忯忲忳忶忺忼怇怊怍怓怔怗怘怚怟怤怭怳怵恀恇恈恉恌恑恔恖恗恝恡恧恱恾恿悂悆悈悊悎悑悓悕悘悝悞悢悤悥您悰悱悷\\\"],[\\\"8fbea1\\\",\\\"悻悾惂惄惈惉惊惋惎惏惔惕惙惛惝惞惢惥惲惵惸惼惽愂愇愊愌愐\\\",4,\\\"愖愗愙愜愞愢愪愫愰愱愵愶愷愹慁慅慆慉慞慠慬慲慸慻慼慿憀憁憃憄憋憍憒憓憗憘憜憝憟憠憥憨憪憭憸憹憼懀懁懂懎懏懕懜懝懞懟懡懢懧懩懥\\\"],[\\\"8fbfa1\\\",\\\"懬懭懯戁戃戄戇戓戕戜戠戢戣戧戩戫戹戽扂扃扄扆扌扐扑扒扔扖扚扜扤扭扯扳扺扽抍抎抏抐抦抨抳抶抷抺抾抿拄拎拕拖拚拪拲拴拼拽挃挄挊挋挍挐挓挖挘挩挪挭挵挶挹挼捁捂捃捄捆捊捋捎捒捓捔捘捛捥捦捬捭捱捴捵\\\"],[\\\"8fc0a1\\\",\\\"捸捼捽捿掂掄掇掊掐掔掕掙掚掞掤掦掭掮掯掽揁揅揈揎揑揓揔揕揜揠揥揪揬揲揳揵揸揹搉搊搐搒搔搘搞搠搢搤搥搩搪搯搰搵搽搿摋摏摑摒摓摔摚摛摜摝摟摠摡摣摭摳摴摻摽撅撇撏撐撑撘撙撛撝撟撡撣撦撨撬撳撽撾撿\\\"],[\\\"8fc1a1\\\",\\\"擄擉擊擋擌擎擐擑擕擗擤擥擩擪擭擰擵擷擻擿攁攄攈攉攊攏攓攔攖攙攛攞攟攢攦攩攮攱攺攼攽敃敇敉敐敒敔敟敠敧敫敺敽斁斅斊斒斕斘斝斠斣斦斮斲斳斴斿旂旈旉旎旐旔旖旘旟旰旲旴旵旹旾旿昀昄昈昉昍昑昒昕昖昝\\\"],[\\\"8fc2a1\\\",\\\"昞昡昢昣昤昦昩昪昫昬昮昰昱昳昹昷晀晅晆晊晌晑晎晗晘晙晛晜晠晡曻晪晫晬晾晳晵晿晷晸晹晻暀晼暋暌暍暐暒暙暚暛暜暟暠暤暭暱暲暵暻暿曀曂曃曈曌曎曏曔曛曟曨曫曬曮曺朅朇朎朓朙朜朠朢朳朾杅杇杈杌杔杕杝\\\"],[\\\"8fc3a1\\\",\\\"杦杬杮杴杶杻极构枎枏枑枓枖枘枙枛枰枱枲枵枻枼枽柹柀柂柃柅柈柉柒柗柙柜柡柦柰柲柶柷桒栔栙栝栟栨栧栬栭栯栰栱栳栻栿桄桅桊桌桕桗桘桛桫桮\\\",4,\\\"桵桹桺桻桼梂梄梆梈梖梘梚梜梡梣梥梩梪梮梲梻棅棈棌棏\\\"],[\\\"8fc4a1\\\",\\\"棐棑棓棖棙棜棝棥棨棪棫棬棭棰棱棵棶棻棼棽椆椉椊椐椑椓椖椗椱椳椵椸椻楂楅楉楎楗楛楣楤楥楦楨楩楬楰楱楲楺楻楿榀榍榒榖榘榡榥榦榨榫榭榯榷榸榺榼槅槈槑槖槗槢槥槮槯槱槳槵槾樀樁樃樏樑樕樚樝樠樤樨樰樲\\\"],[\\\"8fc5a1\\\",\\\"樴樷樻樾樿橅橆橉橊橎橐橑橒橕橖橛橤橧橪橱橳橾檁檃檆檇檉檋檑檛檝檞檟檥檫檯檰檱檴檽檾檿櫆櫉櫈櫌櫐櫔櫕櫖櫜櫝櫤櫧櫬櫰櫱櫲櫼櫽欂欃欆欇欉欏欐欑欗欛欞欤欨欫欬欯欵欶欻欿歆歊歍歒歖歘歝歠歧歫歮歰歵歽\\\"],[\\\"8fc6a1\\\",\\\"歾殂殅殗殛殟殠殢殣殨殩殬殭殮殰殸殹殽殾毃毄毉毌毖毚毡毣毦毧毮毱毷毹毿氂氄氅氉氍氎氐氒氙氟氦氧氨氬氮氳氵氶氺氻氿汊汋汍汏汒汔汙汛汜汫汭汯汴汶汸汹汻沅沆沇沉沔沕沗沘沜沟沰沲沴泂泆泍泏泐泑泒泔泖\\\"],[\\\"8fc7a1\\\",\\\"泚泜泠泧泩泫泬泮泲泴洄洇洊洎洏洑洓洚洦洧洨汧洮洯洱洹洼洿浗浞浟浡浥浧浯浰浼涂涇涑涒涔涖涗涘涪涬涴涷涹涽涿淄淈淊淎淏淖淛淝淟淠淢淥淩淯淰淴淶淼渀渄渞渢渧渲渶渹渻渼湄湅湈湉湋湏湑湒湓湔湗湜湝湞\\\"],[\\\"8fc8a1\\\",\\\"湢湣湨湳湻湽溍溓溙溠溧溭溮溱溳溻溿滀滁滃滇滈滊滍滎滏滫滭滮滹滻滽漄漈漊漌漍漖漘漚漛漦漩漪漯漰漳漶漻漼漭潏潑潒潓潗潙潚潝潞潡潢潨潬潽潾澃澇澈澋澌澍澐澒澓澔澖澚澟澠澥澦澧澨澮澯澰澵澶澼濅濇濈濊\\\"],[\\\"8fc9a1\\\",\\\"濚濞濨濩濰濵濹濼濽瀀瀅瀆瀇瀍瀗瀠瀣瀯瀴瀷瀹瀼灃灄灈灉灊灋灔灕灝灞灎灤灥灬灮灵灶灾炁炅炆炔\\\",4,\\\"炛炤炫炰炱炴炷烊烑烓烔烕烖烘烜烤烺焃\\\",4,\\\"焋焌焏焞焠焫焭焯焰焱焸煁煅煆煇煊煋煐煒煗煚煜煞煠\\\"],[\\\"8fcaa1\\\",\\\"煨煹熀熅熇熌熒熚熛熠熢熯熰熲熳熺熿燀燁燄燋燌燓燖燙燚燜燸燾爀爇爈爉爓爗爚爝爟爤爫爯爴爸爹牁牂牃牅牎牏牐牓牕牖牚牜牞牠牣牨牫牮牯牱牷牸牻牼牿犄犉犍犎犓犛犨犭犮犱犴犾狁狇狉狌狕狖狘狟狥狳狴狺狻\\\"],[\\\"8fcba1\\\",\\\"狾猂猄猅猇猋猍猒猓猘猙猞猢猤猧猨猬猱猲猵猺猻猽獃獍獐獒獖獘獝獞獟獠獦獧獩獫獬獮獯獱獷獹獼玀玁玃玅玆玎玐玓玕玗玘玜玞玟玠玢玥玦玪玫玭玵玷玹玼玽玿珅珆珉珋珌珏珒珓珖珙珝珡珣珦珧珩珴珵珷珹珺珻珽\\\"],[\\\"8fcca1\\\",\\\"珿琀琁琄琇琊琑琚琛琤琦琨\\\",9,\\\"琹瑀瑃瑄瑆瑇瑋瑍瑑瑒瑗瑝瑢瑦瑧瑨瑫瑭瑮瑱瑲璀璁璅璆璇璉璏璐璑璒璘璙璚璜璟璠璡璣璦璨璩璪璫璮璯璱璲璵璹璻璿瓈瓉瓌瓐瓓瓘瓚瓛瓞瓟瓤瓨瓪瓫瓯瓴瓺瓻瓼瓿甆\\\"],[\\\"8fcda1\\\",\\\"甒甖甗甠甡甤甧甩甪甯甶甹甽甾甿畀畃畇畈畎畐畒畗畞畟畡畯畱畹\\\",5,\\\"疁疅疐疒疓疕疙疜疢疤疴疺疿痀痁痄痆痌痎痏痗痜痟痠痡痤痧痬痮痯痱痹瘀瘂瘃瘄瘇瘈瘊瘌瘏瘒瘓瘕瘖瘙瘛瘜瘝瘞瘣瘥瘦瘩瘭瘲瘳瘵瘸瘹\\\"],[\\\"8fcea1\\\",\\\"瘺瘼癊癀癁癃癄癅癉癋癕癙癟癤癥癭癮癯癱癴皁皅皌皍皕皛皜皝皟皠皢\\\",6,\\\"皪皭皽盁盅盉盋盌盎盔盙盠盦盨盬盰盱盶盹盼眀眆眊眎眒眔眕眗眙眚眜眢眨眭眮眯眴眵眶眹眽眾睂睅睆睊睍睎睏睒睖睗睜睞睟睠睢\\\"],[\\\"8fcfa1\\\",\\\"睤睧睪睬睰睲睳睴睺睽瞀瞄瞌瞍瞔瞕瞖瞚瞟瞢瞧瞪瞮瞯瞱瞵瞾矃矉矑矒矕矙矞矟矠矤矦矪矬矰矱矴矸矻砅砆砉砍砎砑砝砡砢砣砭砮砰砵砷硃硄硇硈硌硎硒硜硞硠硡硣硤硨硪确硺硾碊碏碔碘碡碝碞碟碤碨碬碭碰碱碲碳\\\"],[\\\"8fd0a1\\\",\\\"碻碽碿磇磈磉磌磎磒磓磕磖磤磛磟磠磡磦磪磲磳礀磶磷磺磻磿礆礌礐礚礜礞礟礠礥礧礩礭礱礴礵礻礽礿祄祅祆祊祋祏祑祔祘祛祜祧祩祫祲祹祻祼祾禋禌禑禓禔禕禖禘禛禜禡禨禩禫禯禱禴禸离秂秄秇秈秊秏秔秖秚秝秞\\\"],[\\\"8fd1a1\\\",\\\"秠秢秥秪秫秭秱秸秼稂稃稇稉稊稌稑稕稛稞稡稧稫稭稯稰稴稵稸稹稺穄穅穇穈穌穕穖穙穜穝穟穠穥穧穪穭穵穸穾窀窂窅窆窊窋窐窑窔窞窠窣窬窳窵窹窻窼竆竉竌竎竑竛竨竩竫竬竱竴竻竽竾笇笔笟笣笧笩笪笫笭笮笯笰\\\"],[\\\"8fd2a1\\\",\\\"笱笴笽笿筀筁筇筎筕筠筤筦筩筪筭筯筲筳筷箄箉箎箐箑箖箛箞箠箥箬箯箰箲箵箶箺箻箼箽篂篅篈篊篔篖篗篙篚篛篨篪篲篴篵篸篹篺篼篾簁簂簃簄簆簉簋簌簎簏簙簛簠簥簦簨簬簱簳簴簶簹簺籆籊籕籑籒籓籙\\\",5],[\\\"8fd3a1\\\",\\\"籡籣籧籩籭籮籰籲籹籼籽粆粇粏粔粞粠粦粰粶粷粺粻粼粿糄糇糈糉糍糏糓糔糕糗糙糚糝糦糩糫糵紃紇紈紉紏紑紒紓紖紝紞紣紦紪紭紱紼紽紾絀絁絇絈絍絑絓絗絙絚絜絝絥絧絪絰絸絺絻絿綁綂綃綅綆綈綋綌綍綑綖綗綝\\\"],[\\\"8fd4a1\\\",\\\"綞綦綧綪綳綶綷綹緂\\\",4,\\\"緌緍緎緗緙縀緢緥緦緪緫緭緱緵緶緹緺縈縐縑縕縗縜縝縠縧縨縬縭縯縳縶縿繄繅繇繎繐繒繘繟繡繢繥繫繮繯繳繸繾纁纆纇纊纍纑纕纘纚纝纞缼缻缽缾缿罃罄罇罏罒罓罛罜罝罡罣罤罥罦罭\\\"],[\\\"8fd5a1\\\",\\\"罱罽罾罿羀羋羍羏羐羑羖羗羜羡羢羦羪羭羴羼羿翀翃翈翎翏翛翟翣翥翨翬翮翯翲翺翽翾翿耇耈耊耍耎耏耑耓耔耖耝耞耟耠耤耦耬耮耰耴耵耷耹耺耼耾聀聄聠聤聦聭聱聵肁肈肎肜肞肦肧肫肸肹胈胍胏胒胔胕胗胘胠胭胮\\\"],[\\\"8fd6a1\\\",\\\"胰胲胳胶胹胺胾脃脋脖脗脘脜脞脠脤脧脬脰脵脺脼腅腇腊腌腒腗腠腡腧腨腩腭腯腷膁膐膄膅膆膋膎膖膘膛膞膢膮膲膴膻臋臃臅臊臎臏臕臗臛臝臞臡臤臫臬臰臱臲臵臶臸臹臽臿舀舃舏舓舔舙舚舝舡舢舨舲舴舺艃艄艅艆\\\"],[\\\"8fd7a1\\\",\\\"艋艎艏艑艖艜艠艣艧艭艴艻艽艿芀芁芃芄芇芉芊芎芑芔芖芘芚芛芠芡芣芤芧芨芩芪芮芰芲芴芷芺芼芾芿苆苐苕苚苠苢苤苨苪苭苯苶苷苽苾茀茁茇茈茊茋荔茛茝茞茟茡茢茬茭茮茰茳茷茺茼茽荂荃荄荇荍荎荑荕荖荗荰荸\\\"],[\\\"8fd8a1\\\",\\\"荽荿莀莂莄莆莍莒莔莕莘莙莛莜莝莦莧莩莬莾莿菀菇菉菏菐菑菔菝荓菨菪菶菸菹菼萁萆萊萏萑萕萙莭萯萹葅葇葈葊葍葏葑葒葖葘葙葚葜葠葤葥葧葪葰葳葴葶葸葼葽蒁蒅蒒蒓蒕蒞蒦蒨蒩蒪蒯蒱蒴蒺蒽蒾蓀蓂蓇蓈蓌蓏蓓\\\"],[\\\"8fd9a1\\\",\\\"蓜蓧蓪蓯蓰蓱蓲蓷蔲蓺蓻蓽蔂蔃蔇蔌蔎蔐蔜蔞蔢蔣蔤蔥蔧蔪蔫蔯蔳蔴蔶蔿蕆蕏\\\",4,\\\"蕖蕙蕜\\\",6,\\\"蕤蕫蕯蕹蕺蕻蕽蕿薁薅薆薉薋薌薏薓薘薝薟薠薢薥薧薴薶薷薸薼薽薾薿藂藇藊藋藎薭藘藚藟藠藦藨藭藳藶藼\\\"],[\\\"8fdaa1\\\",\\\"藿蘀蘄蘅蘍蘎蘐蘑蘒蘘蘙蘛蘞蘡蘧蘩蘶蘸蘺蘼蘽虀虂虆虒虓虖虗虘虙虝虠\\\",4,\\\"虩虬虯虵虶虷虺蚍蚑蚖蚘蚚蚜蚡蚦蚧蚨蚭蚱蚳蚴蚵蚷蚸蚹蚿蛀蛁蛃蛅蛑蛒蛕蛗蛚蛜蛠蛣蛥蛧蚈蛺蛼蛽蜄蜅蜇蜋蜎蜏蜐蜓蜔蜙蜞蜟蜡蜣\\\"],[\\\"8fdba1\\\",\\\"蜨蜮蜯蜱蜲蜹蜺蜼蜽蜾蝀蝃蝅蝍蝘蝝蝡蝤蝥蝯蝱蝲蝻螃\\\",6,\\\"螋螌螐螓螕螗螘螙螞螠螣螧螬螭螮螱螵螾螿蟁蟈蟉蟊蟎蟕蟖蟙蟚蟜蟟蟢蟣蟤蟪蟫蟭蟱蟳蟸蟺蟿蠁蠃蠆蠉蠊蠋蠐蠙蠒蠓蠔蠘蠚蠛蠜蠞蠟蠨蠭蠮蠰蠲蠵\\\"],[\\\"8fdca1\\\",\\\"蠺蠼衁衃衅衈衉衊衋衎衑衕衖衘衚衜衟衠衤衩衱衹衻袀袘袚袛袜袟袠袨袪袺袽袾裀裊\\\",4,\\\"裑裒裓裛裞裧裯裰裱裵裷褁褆褍褎褏褕褖褘褙褚褜褠褦褧褨褰褱褲褵褹褺褾襀襂襅襆襉襏襒襗襚襛襜襡襢襣襫襮襰襳襵襺\\\"],[\\\"8fdda1\\\",\\\"襻襼襽覉覍覐覔覕覛覜覟覠覥覰覴覵覶覷覼觔\\\",4,\\\"觥觩觫觭觱觳觶觹觽觿訄訅訇訏訑訒訔訕訞訠訢訤訦訫訬訯訵訷訽訾詀詃詅詇詉詍詎詓詖詗詘詜詝詡詥詧詵詶詷詹詺詻詾詿誀誃誆誋誏誐誒誖誗誙誟誧誩誮誯誳\\\"],[\\\"8fdea1\\\",\\\"誶誷誻誾諃諆諈諉諊諑諓諔諕諗諝諟諬諰諴諵諶諼諿謅謆謋謑謜謞謟謊謭謰謷謼譂\\\",4,\\\"譈譒譓譔譙譍譞譣譭譶譸譹譼譾讁讄讅讋讍讏讔讕讜讞讟谸谹谽谾豅豇豉豋豏豑豓豔豗豘豛豝豙豣豤豦豨豩豭豳豵豶豻豾貆\\\"],[\\\"8fdfa1\\\",\\\"貇貋貐貒貓貙貛貜貤貹貺賅賆賉賋賏賖賕賙賝賡賨賬賯賰賲賵賷賸賾賿贁贃贉贒贗贛赥赩赬赮赿趂趄趈趍趐趑趕趞趟趠趦趫趬趯趲趵趷趹趻跀跅跆跇跈跊跎跑跔跕跗跙跤跥跧跬跰趼跱跲跴跽踁踄踅踆踋踑踔踖踠踡踢\\\"],[\\\"8fe0a1\\\",\\\"踣踦踧踱踳踶踷踸踹踽蹀蹁蹋蹍蹎蹏蹔蹛蹜蹝蹞蹡蹢蹩蹬蹭蹯蹰蹱蹹蹺蹻躂躃躉躐躒躕躚躛躝躞躢躧躩躭躮躳躵躺躻軀軁軃軄軇軏軑軔軜軨軮軰軱軷軹軺軭輀輂輇輈輏輐輖輗輘輞輠輡輣輥輧輨輬輭輮輴輵輶輷輺轀轁\\\"],[\\\"8fe1a1\\\",\\\"轃轇轏轑\\\",4,\\\"轘轝轞轥辝辠辡辤辥辦辵辶辸达迀迁迆迊迋迍运迒迓迕迠迣迤迨迮迱迵迶迻迾适逄逈逌逘逛逨逩逯逪逬逭逳逴逷逿遃遄遌遛遝遢遦遧遬遰遴遹邅邈邋邌邎邐邕邗邘邙邛邠邡邢邥邰邲邳邴邶邽郌邾郃\\\"],[\\\"8fe2a1\\\",\\\"郄郅郇郈郕郗郘郙郜郝郟郥郒郶郫郯郰郴郾郿鄀鄄鄅鄆鄈鄍鄐鄔鄖鄗鄘鄚鄜鄞鄠鄥鄢鄣鄧鄩鄮鄯鄱鄴鄶鄷鄹鄺鄼鄽酃酇酈酏酓酗酙酚酛酡酤酧酭酴酹酺酻醁醃醅醆醊醎醑醓醔醕醘醞醡醦醨醬醭醮醰醱醲醳醶醻醼醽醿\\\"],[\\\"8fe3a1\\\",\\\"釂釃釅釓釔釗釙釚釞釤釥釩釪釬\\\",5,\\\"釷釹釻釽鈀鈁鈄鈅鈆鈇鈉鈊鈌鈐鈒鈓鈖鈘鈜鈝鈣鈤鈥鈦鈨鈮鈯鈰鈳鈵鈶鈸鈹鈺鈼鈾鉀鉂鉃鉆鉇鉊鉍鉎鉏鉑鉘鉙鉜鉝鉠鉡鉥鉧鉨鉩鉮鉯鉰鉵\\\",4,\\\"鉻鉼鉽鉿銈銉銊銍銎銒銗\\\"],[\\\"8fe4a1\\\",\\\"銙銟銠銤銥銧銨銫銯銲銶銸銺銻銼銽銿\\\",4,\\\"鋅鋆鋇鋈鋋鋌鋍鋎鋐鋓鋕鋗鋘鋙鋜鋝鋟鋠鋡鋣鋥鋧鋨鋬鋮鋰鋹鋻鋿錀錂錈錍錑錔錕錜錝錞錟錡錤錥錧錩錪錳錴錶錷鍇鍈鍉鍐鍑鍒鍕鍗鍘鍚鍞鍤鍥鍧鍩鍪鍭鍯鍰鍱鍳鍴鍶\\\"],[\\\"8fe5a1\\\",\\\"鍺鍽鍿鎀鎁鎂鎈鎊鎋鎍鎏鎒鎕鎘鎛鎞鎡鎣鎤鎦鎨鎫鎴鎵鎶鎺鎩鏁鏄鏅鏆鏇鏉\\\",4,\\\"鏓鏙鏜鏞鏟鏢鏦鏧鏹鏷鏸鏺鏻鏽鐁鐂鐄鐈鐉鐍鐎鐏鐕鐖鐗鐟鐮鐯鐱鐲鐳鐴鐻鐿鐽鑃鑅鑈鑊鑌鑕鑙鑜鑟鑡鑣鑨鑫鑭鑮鑯鑱鑲钄钃镸镹\\\"],[\\\"8fe6a1\\\",\\\"镾閄閈閌閍閎閝閞閟閡閦閩閫閬閴閶閺閽閿闆闈闉闋闐闑闒闓闙闚闝闞闟闠闤闦阝阞阢阤阥阦阬阱阳阷阸阹阺阼阽陁陒陔陖陗陘陡陮陴陻陼陾陿隁隂隃隄隉隑隖隚隝隟隤隥隦隩隮隯隳隺雊雒嶲雘雚雝雞雟雩雯雱雺霂\\\"],[\\\"8fe7a1\\\",\\\"霃霅霉霚霛霝霡霢霣霨霱霳靁靃靊靎靏靕靗靘靚靛靣靧靪靮靳靶靷靸靻靽靿鞀鞉鞕鞖鞗鞙鞚鞞鞟鞢鞬鞮鞱鞲鞵鞶鞸鞹鞺鞼鞾鞿韁韄韅韇韉韊韌韍韎韐韑韔韗韘韙韝韞韠韛韡韤韯韱韴韷韸韺頇頊頙頍頎頔頖頜頞頠頣頦\\\"],[\\\"8fe8a1\\\",\\\"頫頮頯頰頲頳頵頥頾顄顇顊顑顒顓顖顗顙顚顢顣顥顦顪顬颫颭颮颰颴颷颸颺颻颿飂飅飈飌飡飣飥飦飧飪飳飶餂餇餈餑餕餖餗餚餛餜餟餢餦餧餫餱\\\",4,\\\"餹餺餻餼饀饁饆饇饈饍饎饔饘饙饛饜饞饟饠馛馝馟馦馰馱馲馵\\\"],[\\\"8fe9a1\\\",\\\"馹馺馽馿駃駉駓駔駙駚駜駞駧駪駫駬駰駴駵駹駽駾騂騃騄騋騌騐騑騖騞騠騢騣騤騧騭騮騳騵騶騸驇驁驄驊驋驌驎驑驔驖驝骪骬骮骯骲骴骵骶骹骻骾骿髁髃髆髈髎髐髒髕髖髗髛髜髠髤髥髧髩髬髲髳髵髹髺髽髿\\\",4],[\\\"8feaa1\\\",\\\"鬄鬅鬈鬉鬋鬌鬍鬎鬐鬒鬖鬙鬛鬜鬠鬦鬫鬭鬳鬴鬵鬷鬹鬺鬽魈魋魌魕魖魗魛魞魡魣魥魦魨魪\\\",4,\\\"魳魵魷魸魹魿鮀鮄鮅鮆鮇鮉鮊鮋鮍鮏鮐鮔鮚鮝鮞鮦鮧鮩鮬鮰鮱鮲鮷鮸鮻鮼鮾鮿鯁鯇鯈鯎鯐鯗鯘鯝鯟鯥鯧鯪鯫鯯鯳鯷鯸\\\"],[\\\"8feba1\\\",\\\"鯹鯺鯽鯿鰀鰂鰋鰏鰑鰖鰘鰙鰚鰜鰞鰢鰣鰦\\\",4,\\\"鰱鰵鰶鰷鰽鱁鱃鱄鱅鱉鱊鱎鱏鱐鱓鱔鱖鱘鱛鱝鱞鱟鱣鱩鱪鱜鱫鱨鱮鱰鱲鱵鱷鱻鳦鳲鳷鳹鴋鴂鴑鴗鴘鴜鴝鴞鴯鴰鴲鴳鴴鴺鴼鵅鴽鵂鵃鵇鵊鵓鵔鵟鵣鵢鵥鵩鵪鵫鵰鵶鵷鵻\\\"],[\\\"8feca1\\\",\\\"鵼鵾鶃鶄鶆鶊鶍鶎鶒鶓鶕鶖鶗鶘鶡鶪鶬鶮鶱鶵鶹鶼鶿鷃鷇鷉鷊鷔鷕鷖鷗鷚鷞鷟鷠鷥鷧鷩鷫鷮鷰鷳鷴鷾鸊鸂鸇鸎鸐鸑鸒鸕鸖鸙鸜鸝鹺鹻鹼麀麂麃麄麅麇麎麏麖麘麛麞麤麨麬麮麯麰麳麴麵黆黈黋黕黟黤黧黬黭黮黰黱黲黵\\\"],[\\\"8feda1\\\",\\\"黸黿鼂鼃鼉鼏鼐鼑鼒鼔鼖鼗鼙鼚鼛鼟鼢鼦鼪鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃\\\",4,\\\"齓齕齖齗齘齚齝齞齨齩齭\\\",4,\\\"齳齵齺齽龏龐龑龒龔龖龗龞龡龢龣龥\\\"]]\");/***/},/* 317 */ /***/function(module){module.exports=JSON.parse(\"{\\\"uChars\\\":[128,165,169,178,184,216,226,235,238,244,248,251,253,258,276,284,300,325,329,334,364,463,465,467,469,471,473,475,477,506,594,610,712,716,730,930,938,962,970,1026,1104,1106,8209,8215,8218,8222,8231,8241,8244,8246,8252,8365,8452,8454,8458,8471,8482,8556,8570,8596,8602,8713,8720,8722,8726,8731,8737,8740,8742,8748,8751,8760,8766,8777,8781,8787,8802,8808,8816,8854,8858,8870,8896,8979,9322,9372,9548,9588,9616,9622,9634,9652,9662,9672,9676,9680,9702,9735,9738,9793,9795,11906,11909,11913,11917,11928,11944,11947,11951,11956,11960,11964,11979,12284,12292,12312,12319,12330,12351,12436,12447,12535,12543,12586,12842,12850,12964,13200,13215,13218,13253,13263,13267,13270,13384,13428,13727,13839,13851,14617,14703,14801,14816,14964,15183,15471,15585,16471,16736,17208,17325,17330,17374,17623,17997,18018,18212,18218,18301,18318,18760,18811,18814,18820,18823,18844,18848,18872,19576,19620,19738,19887,40870,59244,59336,59367,59413,59417,59423,59431,59437,59443,59452,59460,59478,59493,63789,63866,63894,63976,63986,64016,64018,64021,64025,64034,64037,64042,65074,65093,65107,65112,65127,65132,65375,65510,65536],\\\"gbChars\\\":[0,36,38,45,50,81,89,95,96,100,103,104,105,109,126,133,148,172,175,179,208,306,307,308,309,310,311,312,313,341,428,443,544,545,558,741,742,749,750,805,819,820,7922,7924,7925,7927,7934,7943,7944,7945,7950,8062,8148,8149,8152,8164,8174,8236,8240,8262,8264,8374,8380,8381,8384,8388,8390,8392,8393,8394,8396,8401,8406,8416,8419,8424,8437,8439,8445,8482,8485,8496,8521,8603,8936,8946,9046,9050,9063,9066,9076,9092,9100,9108,9111,9113,9131,9162,9164,9218,9219,11329,11331,11334,11336,11346,11361,11363,11366,11370,11372,11375,11389,11682,11686,11687,11692,11694,11714,11716,11723,11725,11730,11736,11982,11989,12102,12336,12348,12350,12384,12393,12395,12397,12510,12553,12851,12962,12973,13738,13823,13919,13933,14080,14298,14585,14698,15583,15847,16318,16434,16438,16481,16729,17102,17122,17315,17320,17402,17418,17859,17909,17911,17915,17916,17936,17939,17961,18664,18703,18814,18962,19043,33469,33470,33471,33484,33485,33490,33497,33501,33505,33513,33520,33536,33550,37845,37921,37948,38029,38038,38064,38065,38066,38069,38075,38076,38078,39108,39109,39113,39114,39115,39116,39265,39394,189000]}\");/***/},/* 318 */ /***/function(module){module.exports=JSON.parse(\"[[\\\"0\\\",\\\"\\\\u0000\\\",127],[\\\"8141\\\",\\\"갂갃갅갆갋\\\",4,\\\"갘갞갟갡갢갣갥\\\",6,\\\"갮갲갳갴\\\"],[\\\"8161\\\",\\\"갵갶갷갺갻갽갾갿걁\\\",9,\\\"걌걎\\\",5,\\\"걕\\\"],[\\\"8181\\\",\\\"걖걗걙걚걛걝\\\",18,\\\"걲걳걵걶걹걻\\\",4,\\\"겂겇겈겍겎겏겑겒겓겕\\\",6,\\\"겞겢\\\",5,\\\"겫겭겮겱\\\",6,\\\"겺겾겿곀곂곃곅곆곇곉곊곋곍\\\",7,\\\"곖곘\\\",7,\\\"곢곣곥곦곩곫곭곮곲곴곷\\\",4,\\\"곾곿괁괂괃괅괇\\\",4,\\\"괎괐괒괓\\\"],[\\\"8241\\\",\\\"괔괕괖괗괙괚괛괝괞괟괡\\\",7,\\\"괪괫괮\\\",5],[\\\"8261\\\",\\\"괶괷괹괺괻괽\\\",6,\\\"굆굈굊\\\",5,\\\"굑굒굓굕굖굗\\\"],[\\\"8281\\\",\\\"굙\\\",7,\\\"굢굤\\\",7,\\\"굮굯굱굲굷굸굹굺굾궀궃\\\",4,\\\"궊궋궍궎궏궑\\\",10,\\\"궞\\\",5,\\\"궥\\\",17,\\\"궸\\\",7,\\\"귂귃귅귆귇귉\\\",6,\\\"귒귔\\\",7,\\\"귝귞귟귡귢귣귥\\\",18],[\\\"8341\\\",\\\"귺귻귽귾긂\\\",5,\\\"긊긌긎\\\",5,\\\"긕\\\",7],[\\\"8361\\\",\\\"긝\\\",18,\\\"긲긳긵긶긹긻긼\\\"],[\\\"8381\\\",\\\"긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗\\\",4,\\\"깞깢깣깤깦깧깪깫깭깮깯깱\\\",6,\\\"깺깾\\\",5,\\\"꺆\\\",5,\\\"꺍\\\",46,\\\"꺿껁껂껃껅\\\",6,\\\"껎껒\\\",5,\\\"껚껛껝\\\",8],[\\\"8441\\\",\\\"껦껧껩껪껬껮\\\",5,\\\"껵껶껷껹껺껻껽\\\",8],[\\\"8461\\\",\\\"꼆꼉꼊꼋꼌꼎꼏꼑\\\",18],[\\\"8481\\\",\\\"꼤\\\",7,\\\"꼮꼯꼱꼳꼵\\\",6,\\\"꼾꽀꽄꽅꽆꽇꽊\\\",5,\\\"꽑\\\",10,\\\"꽞\\\",5,\\\"꽦\\\",18,\\\"꽺\\\",5,\\\"꾁꾂꾃꾅꾆꾇꾉\\\",6,\\\"꾒꾓꾔꾖\\\",5,\\\"꾝\\\",26,\\\"꾺꾻꾽꾾\\\"],[\\\"8541\\\",\\\"꾿꿁\\\",5,\\\"꿊꿌꿏\\\",4,\\\"꿕\\\",6,\\\"꿝\\\",4],[\\\"8561\\\",\\\"꿢\\\",5,\\\"꿪\\\",5,\\\"꿲꿳꿵꿶꿷꿹\\\",6,\\\"뀂뀃\\\"],[\\\"8581\\\",\\\"뀅\\\",6,\\\"뀍뀎뀏뀑뀒뀓뀕\\\",6,\\\"뀞\\\",9,\\\"뀩\\\",26,\\\"끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞\\\",29,\\\"끾끿낁낂낃낅\\\",6,\\\"낎낐낒\\\",5,\\\"낛낝낞낣낤\\\"],[\\\"8641\\\",\\\"낥낦낧낪낰낲낶낷낹낺낻낽\\\",6,\\\"냆냊\\\",5,\\\"냒\\\"],[\\\"8661\\\",\\\"냓냕냖냗냙\\\",6,\\\"냡냢냣냤냦\\\",10],[\\\"8681\\\",\\\"냱\\\",22,\\\"넊넍넎넏넑넔넕넖넗넚넞\\\",4,\\\"넦넧넩넪넫넭\\\",6,\\\"넶넺\\\",5,\\\"녂녃녅녆녇녉\\\",6,\\\"녒녓녖녗녙녚녛녝녞녟녡\\\",22,\\\"녺녻녽녾녿놁놃\\\",4,\\\"놊놌놎놏놐놑놕놖놗놙놚놛놝\\\"],[\\\"8741\\\",\\\"놞\\\",9,\\\"놩\\\",15],[\\\"8761\\\",\\\"놹\\\",18,\\\"뇍뇎뇏뇑뇒뇓뇕\\\"],[\\\"8781\\\",\\\"뇖\\\",5,\\\"뇞뇠\\\",7,\\\"뇪뇫뇭뇮뇯뇱\\\",7,\\\"뇺뇼뇾\\\",5,\\\"눆눇눉눊눍\\\",6,\\\"눖눘눚\\\",5,\\\"눡\\\",18,\\\"눵\\\",6,\\\"눽\\\",26,\\\"뉙뉚뉛뉝뉞뉟뉡\\\",6,\\\"뉪\\\",4],[\\\"8841\\\",\\\"뉯\\\",4,\\\"뉶\\\",5,\\\"뉽\\\",6,\\\"늆늇늈늊\\\",4],[\\\"8861\\\",\\\"늏늒늓늕늖늗늛\\\",4,\\\"늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷\\\"],[\\\"8881\\\",\\\"늸\\\",15,\\\"닊닋닍닎닏닑닓\\\",4,\\\"닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉\\\",6,\\\"댒댖\\\",5,\\\"댝\\\",54,\\\"덗덙덚덝덠덡덢덣\\\"],[\\\"8941\\\",\\\"덦덨덪덬덭덯덲덳덵덶덷덹\\\",6,\\\"뎂뎆\\\",5,\\\"뎍\\\"],[\\\"8961\\\",\\\"뎎뎏뎑뎒뎓뎕\\\",10,\\\"뎢\\\",5,\\\"뎩뎪뎫뎭\\\"],[\\\"8981\\\",\\\"뎮\\\",21,\\\"돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩\\\",18,\\\"돽\\\",18,\\\"됑\\\",6,\\\"됙됚됛됝됞됟됡\\\",6,\\\"됪됬\\\",7,\\\"됵\\\",15],[\\\"8a41\\\",\\\"둅\\\",10,\\\"둒둓둕둖둗둙\\\",6,\\\"둢둤둦\\\"],[\\\"8a61\\\",\\\"둧\\\",4,\\\"둭\\\",18,\\\"뒁뒂\\\"],[\\\"8a81\\\",\\\"뒃\\\",4,\\\"뒉\\\",19,\\\"뒞\\\",5,\\\"뒥뒦뒧뒩뒪뒫뒭\\\",7,\\\"뒶뒸뒺\\\",5,\\\"듁듂듃듅듆듇듉\\\",6,\\\"듑듒듓듔듖\\\",5,\\\"듞듟듡듢듥듧\\\",4,\\\"듮듰듲\\\",5,\\\"듹\\\",26,\\\"딖딗딙딚딝\\\"],[\\\"8b41\\\",\\\"딞\\\",5,\\\"딦딫\\\",4,\\\"딲딳딵딶딷딹\\\",6,\\\"땂땆\\\"],[\\\"8b61\\\",\\\"땇땈땉땊땎땏땑땒땓땕\\\",6,\\\"땞땢\\\",8],[\\\"8b81\\\",\\\"땫\\\",52,\\\"떢떣떥떦떧떩떬떭떮떯떲떶\\\",4,\\\"떾떿뗁뗂뗃뗅\\\",6,\\\"뗎뗒\\\",5,\\\"뗙\\\",18,\\\"뗭\\\",18],[\\\"8c41\\\",\\\"똀\\\",15,\\\"똒똓똕똖똗똙\\\",4],[\\\"8c61\\\",\\\"똞\\\",6,\\\"똦\\\",5,\\\"똭\\\",6,\\\"똵\\\",5],[\\\"8c81\\\",\\\"똻\\\",12,\\\"뙉\\\",26,\\\"뙥뙦뙧뙩\\\",50,\\\"뚞뚟뚡뚢뚣뚥\\\",5,\\\"뚭뚮뚯뚰뚲\\\",16],[\\\"8d41\\\",\\\"뛃\\\",16,\\\"뛕\\\",8],[\\\"8d61\\\",\\\"뛞\\\",17,\\\"뛱뛲뛳뛵뛶뛷뛹뛺\\\"],[\\\"8d81\\\",\\\"뛻\\\",4,\\\"뜂뜃뜄뜆\\\",33,\\\"뜪뜫뜭뜮뜱\\\",6,\\\"뜺뜼\\\",7,\\\"띅띆띇띉띊띋띍\\\",6,\\\"띖\\\",9,\\\"띡띢띣띥띦띧띩\\\",6,\\\"띲띴띶\\\",5,\\\"띾띿랁랂랃랅\\\",6,\\\"랎랓랔랕랚랛랝랞\\\"],[\\\"8e41\\\",\\\"랟랡\\\",6,\\\"랪랮\\\",5,\\\"랶랷랹\\\",8],[\\\"8e61\\\",\\\"럂\\\",4,\\\"럈럊\\\",19],[\\\"8e81\\\",\\\"럞\\\",13,\\\"럮럯럱럲럳럵\\\",6,\\\"럾렂\\\",4,\\\"렊렋렍렎렏렑\\\",6,\\\"렚렜렞\\\",5,\\\"렦렧렩렪렫렭\\\",6,\\\"렶렺\\\",5,\\\"롁롂롃롅\\\",11,\\\"롒롔\\\",7,\\\"롞롟롡롢롣롥\\\",6,\\\"롮롰롲\\\",5,\\\"롹롺롻롽\\\",7],[\\\"8f41\\\",\\\"뢅\\\",7,\\\"뢎\\\",17],[\\\"8f61\\\",\\\"뢠\\\",7,\\\"뢩\\\",6,\\\"뢱뢲뢳뢵뢶뢷뢹\\\",4],[\\\"8f81\\\",\\\"뢾뢿룂룄룆\\\",5,\\\"룍룎룏룑룒룓룕\\\",7,\\\"룞룠룢\\\",5,\\\"룪룫룭룮룯룱\\\",6,\\\"룺룼룾\\\",5,\\\"뤅\\\",18,\\\"뤙\\\",6,\\\"뤡\\\",26,\\\"뤾뤿륁륂륃륅\\\",6,\\\"륍륎륐륒\\\",5],[\\\"9041\\\",\\\"륚륛륝륞륟륡\\\",6,\\\"륪륬륮\\\",5,\\\"륶륷륹륺륻륽\\\"],[\\\"9061\\\",\\\"륾\\\",5,\\\"릆릈릋릌릏\\\",15],[\\\"9081\\\",\\\"릟\\\",12,\\\"릮릯릱릲릳릵\\\",6,\\\"릾맀맂\\\",5,\\\"맊맋맍맓\\\",4,\\\"맚맜맟맠맢맦맧맩맪맫맭\\\",6,\\\"맶맻\\\",4,\\\"먂\\\",5,\\\"먉\\\",11,\\\"먖\\\",33,\\\"먺먻먽먾먿멁멃멄멅멆\\\"],[\\\"9141\\\",\\\"멇멊멌멏멐멑멒멖멗멙멚멛멝\\\",6,\\\"멦멪\\\",5],[\\\"9161\\\",\\\"멲멳멵멶멷멹\\\",9,\\\"몆몈몉몊몋몍\\\",5],[\\\"9181\\\",\\\"몓\\\",20,\\\"몪몭몮몯몱몳\\\",4,\\\"몺몼몾\\\",5,\\\"뫅뫆뫇뫉\\\",14,\\\"뫚\\\",33,\\\"뫽뫾뫿묁묂묃묅\\\",7,\\\"묎묐묒\\\",5,\\\"묙묚묛묝묞묟묡\\\",6],[\\\"9241\\\",\\\"묨묪묬\\\",7,\\\"묷묹묺묿\\\",4,\\\"뭆뭈뭊뭋뭌뭎뭑뭒\\\"],[\\\"9261\\\",\\\"뭓뭕뭖뭗뭙\\\",7,\\\"뭢뭤\\\",7,\\\"뭭\\\",4],[\\\"9281\\\",\\\"뭲\\\",21,\\\"뮉뮊뮋뮍뮎뮏뮑\\\",18,\\\"뮥뮦뮧뮩뮪뮫뮭\\\",6,\\\"뮵뮶뮸\\\",7,\\\"믁믂믃믅믆믇믉\\\",6,\\\"믑믒믔\\\",35,\\\"믺믻믽믾밁\\\"],[\\\"9341\\\",\\\"밃\\\",4,\\\"밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵\\\"],[\\\"9361\\\",\\\"밶밷밹\\\",6,\\\"뱂뱆뱇뱈뱊뱋뱎뱏뱑\\\",8],[\\\"9381\\\",\\\"뱚뱛뱜뱞\\\",37,\\\"벆벇벉벊벍벏\\\",4,\\\"벖벘벛\\\",4,\\\"벢벣벥벦벩\\\",6,\\\"벲벶\\\",5,\\\"벾벿볁볂볃볅\\\",7,\\\"볎볒볓볔볖볗볙볚볛볝\\\",22,\\\"볷볹볺볻볽\\\"],[\\\"9441\\\",\\\"볾\\\",5,\\\"봆봈봊\\\",5,\\\"봑봒봓봕\\\",8],[\\\"9461\\\",\\\"봞\\\",5,\\\"봥\\\",6,\\\"봭\\\",12],[\\\"9481\\\",\\\"봺\\\",5,\\\"뵁\\\",6,\\\"뵊뵋뵍뵎뵏뵑\\\",6,\\\"뵚\\\",9,\\\"뵥뵦뵧뵩\\\",22,\\\"붂붃붅붆붋\\\",4,\\\"붒붔붖붗붘붛붝\\\",6,\\\"붥\\\",10,\\\"붱\\\",6,\\\"붹\\\",24],[\\\"9541\\\",\\\"뷒뷓뷖뷗뷙뷚뷛뷝\\\",11,\\\"뷪\\\",5,\\\"뷱\\\"],[\\\"9561\\\",\\\"뷲뷳뷵뷶뷷뷹\\\",6,\\\"븁븂븄븆\\\",5,\\\"븎븏븑븒븓\\\"],[\\\"9581\\\",\\\"븕\\\",6,\\\"븞븠\\\",35,\\\"빆빇빉빊빋빍빏\\\",4,\\\"빖빘빜빝빞빟빢빣빥빦빧빩빫\\\",4,\\\"빲빶\\\",4,\\\"빾빿뺁뺂뺃뺅\\\",6,\\\"뺎뺒\\\",5,\\\"뺚\\\",13,\\\"뺩\\\",14],[\\\"9641\\\",\\\"뺸\\\",23,\\\"뻒뻓\\\"],[\\\"9661\\\",\\\"뻕뻖뻙\\\",6,\\\"뻡뻢뻦\\\",5,\\\"뻭\\\",8],[\\\"9681\\\",\\\"뻶\\\",10,\\\"뼂\\\",5,\\\"뼊\\\",13,\\\"뼚뼞\\\",33,\\\"뽂뽃뽅뽆뽇뽉\\\",6,\\\"뽒뽓뽔뽖\\\",44],[\\\"9741\\\",\\\"뾃\\\",16,\\\"뾕\\\",8],[\\\"9761\\\",\\\"뾞\\\",17,\\\"뾱\\\",7],[\\\"9781\\\",\\\"뾹\\\",11,\\\"뿆\\\",5,\\\"뿎뿏뿑뿒뿓뿕\\\",6,\\\"뿝뿞뿠뿢\\\",89,\\\"쀽쀾쀿\\\"],[\\\"9841\\\",\\\"쁀\\\",16,\\\"쁒\\\",5,\\\"쁙쁚쁛\\\"],[\\\"9861\\\",\\\"쁝쁞쁟쁡\\\",6,\\\"쁪\\\",15],[\\\"9881\\\",\\\"쁺\\\",21,\\\"삒삓삕삖삗삙\\\",6,\\\"삢삤삦\\\",5,\\\"삮삱삲삷\\\",4,\\\"삾샂샃샄샆샇샊샋샍샎샏샑\\\",6,\\\"샚샞\\\",5,\\\"샦샧샩샪샫샭\\\",6,\\\"샶샸샺\\\",5,\\\"섁섂섃섅섆섇섉\\\",6,\\\"섑섒섓섔섖\\\",5,\\\"섡섢섥섨섩섪섫섮\\\"],[\\\"9941\\\",\\\"섲섳섴섵섷섺섻섽섾섿셁\\\",6,\\\"셊셎\\\",5,\\\"셖셗\\\"],[\\\"9961\\\",\\\"셙셚셛셝\\\",6,\\\"셦셪\\\",5,\\\"셱셲셳셵셶셷셹셺셻\\\"],[\\\"9981\\\",\\\"셼\\\",8,\\\"솆\\\",5,\\\"솏솑솒솓솕솗\\\",4,\\\"솞솠솢솣솤솦솧솪솫솭솮솯솱\\\",11,\\\"솾\\\",5,\\\"쇅쇆쇇쇉쇊쇋쇍\\\",6,\\\"쇕쇖쇙\\\",6,\\\"쇡쇢쇣쇥쇦쇧쇩\\\",6,\\\"쇲쇴\\\",7,\\\"쇾쇿숁숂숃숅\\\",6,\\\"숎숐숒\\\",5,\\\"숚숛숝숞숡숢숣\\\"],[\\\"9a41\\\",\\\"숤숥숦숧숪숬숮숰숳숵\\\",16],[\\\"9a61\\\",\\\"쉆쉇쉉\\\",6,\\\"쉒쉓쉕쉖쉗쉙\\\",6,\\\"쉡쉢쉣쉤쉦\\\"],[\\\"9a81\\\",\\\"쉧\\\",4,\\\"쉮쉯쉱쉲쉳쉵\\\",6,\\\"쉾슀슂\\\",5,\\\"슊\\\",5,\\\"슑\\\",6,\\\"슙슚슜슞\\\",5,\\\"슦슧슩슪슫슮\\\",5,\\\"슶슸슺\\\",33,\\\"싞싟싡싢싥\\\",5,\\\"싮싰싲싳싴싵싷싺싽싾싿쌁\\\",6,\\\"쌊쌋쌎쌏\\\"],[\\\"9b41\\\",\\\"쌐쌑쌒쌖쌗쌙쌚쌛쌝\\\",6,\\\"쌦쌧쌪\\\",8],[\\\"9b61\\\",\\\"쌳\\\",17,\\\"썆\\\",7],[\\\"9b81\\\",\\\"썎\\\",25,\\\"썪썫썭썮썯썱썳\\\",4,\\\"썺썻썾\\\",5,\\\"쎅쎆쎇쎉쎊쎋쎍\\\",50,\\\"쏁\\\",22,\\\"쏚\\\"],[\\\"9c41\\\",\\\"쏛쏝쏞쏡쏣\\\",4,\\\"쏪쏫쏬쏮\\\",5,\\\"쏶쏷쏹\\\",5],[\\\"9c61\\\",\\\"쏿\\\",8,\\\"쐉\\\",6,\\\"쐑\\\",9],[\\\"9c81\\\",\\\"쐛\\\",8,\\\"쐥\\\",6,\\\"쐭쐮쐯쐱쐲쐳쐵\\\",6,\\\"쐾\\\",9,\\\"쑉\\\",26,\\\"쑦쑧쑩쑪쑫쑭\\\",6,\\\"쑶쑷쑸쑺\\\",5,\\\"쒁\\\",18,\\\"쒕\\\",6,\\\"쒝\\\",12],[\\\"9d41\\\",\\\"쒪\\\",13,\\\"쒹쒺쒻쒽\\\",8],[\\\"9d61\\\",\\\"쓆\\\",25],[\\\"9d81\\\",\\\"쓠\\\",8,\\\"쓪\\\",5,\\\"쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂\\\",9,\\\"씍씎씏씑씒씓씕\\\",6,\\\"씝\\\",10,\\\"씪씫씭씮씯씱\\\",6,\\\"씺씼씾\\\",5,\\\"앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩\\\",6,\\\"앲앶\\\",5,\\\"앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔\\\"],[\\\"9e41\\\",\\\"얖얙얚얛얝얞얟얡\\\",7,\\\"얪\\\",9,\\\"얶\\\"],[\\\"9e61\\\",\\\"얷얺얿\\\",4,\\\"엋엍엏엒엓엕엖엗엙\\\",6,\\\"엢엤엦엧\\\"],[\\\"9e81\\\",\\\"엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑\\\",6,\\\"옚옝\\\",6,\\\"옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉\\\",6,\\\"왒왖\\\",5,\\\"왞왟왡\\\",10,\\\"왭왮왰왲\\\",5,\\\"왺왻왽왾왿욁\\\",6,\\\"욊욌욎\\\",5,\\\"욖욗욙욚욛욝\\\",6,\\\"욦\\\"],[\\\"9f41\\\",\\\"욨욪\\\",5,\\\"욲욳욵욶욷욻\\\",4,\\\"웂웄웆\\\",5,\\\"웎\\\"],[\\\"9f61\\\",\\\"웏웑웒웓웕\\\",6,\\\"웞웟웢\\\",5,\\\"웪웫웭웮웯웱웲\\\"],[\\\"9f81\\\",\\\"웳\\\",4,\\\"웺웻웼웾\\\",5,\\\"윆윇윉윊윋윍\\\",6,\\\"윖윘윚\\\",5,\\\"윢윣윥윦윧윩\\\",6,\\\"윲윴윶윸윹윺윻윾윿읁읂읃읅\\\",4,\\\"읋읎읐읙읚읛읝읞읟읡\\\",6,\\\"읩읪읬\\\",7,\\\"읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛\\\",4,\\\"잢잧\\\",4,\\\"잮잯잱잲잳잵잶잷\\\"],[\\\"a041\\\",\\\"잸잹잺잻잾쟂\\\",5,\\\"쟊쟋쟍쟏쟑\\\",6,\\\"쟙쟚쟛쟜\\\"],[\\\"a061\\\",\\\"쟞\\\",5,\\\"쟥쟦쟧쟩쟪쟫쟭\\\",13],[\\\"a081\\\",\\\"쟻\\\",4,\\\"젂젃젅젆젇젉젋\\\",4,\\\"젒젔젗\\\",4,\\\"젞젟젡젢젣젥\\\",6,\\\"젮젰젲\\\",5,\\\"젹젺젻젽젾젿졁\\\",6,\\\"졊졋졎\\\",5,\\\"졕\\\",26,\\\"졲졳졵졶졷졹졻\\\",4,\\\"좂좄좈좉좊좎\\\",5,\\\"좕\\\",7,\\\"좞좠좢좣좤\\\"],[\\\"a141\\\",\\\"좥좦좧좩\\\",18,\\\"좾좿죀죁\\\"],[\\\"a161\\\",\\\"죂죃죅죆죇죉죊죋죍\\\",6,\\\"죖죘죚\\\",5,\\\"죢죣죥\\\"],[\\\"a181\\\",\\\"죦\\\",14,\\\"죶\\\",5,\\\"죾죿줁줂줃줇\\\",4,\\\"줎　、。·‥…¨〃­―∥＼∼‘’“”〔〕〈\\\",9,\\\"±×÷≠≤≥∞∴°′″℃Å￠￡￥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨￢\\\"],[\\\"a241\\\",\\\"줐줒\\\",5,\\\"줙\\\",18],[\\\"a261\\\",\\\"줭\\\",6,\\\"줵\\\",18],[\\\"a281\\\",\\\"쥈\\\",7,\\\"쥒쥓쥕쥖쥗쥙\\\",6,\\\"쥢쥤\\\",7,\\\"쥭쥮쥯⇒⇔∀∃´～ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦▩♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®\\\"],[\\\"a341\\\",\\\"쥱쥲쥳쥵\\\",6,\\\"쥽\\\",10,\\\"즊즋즍즎즏\\\"],[\\\"a361\\\",\\\"즑\\\",6,\\\"즚즜즞\\\",16],[\\\"a381\\\",\\\"즯\\\",16,\\\"짂짃짅짆짉짋\\\",4,\\\"짒짔짗짘짛！\\\",58,\\\"￦］\\\",32,\\\"￣\\\"],[\\\"a441\\\",\\\"짞짟짡짣짥짦짨짩짪짫짮짲\\\",5,\\\"짺짻짽짾짿쨁쨂쨃쨄\\\"],[\\\"a461\\\",\\\"쨅쨆쨇쨊쨎\\\",5,\\\"쨕쨖쨗쨙\\\",12],[\\\"a481\\\",\\\"쨦쨧쨨쨪\\\",28,\\\"ㄱ\\\",93],[\\\"a541\\\",\\\"쩇\\\",4,\\\"쩎쩏쩑쩒쩓쩕\\\",6,\\\"쩞쩢\\\",5,\\\"쩩쩪\\\"],[\\\"a561\\\",\\\"쩫\\\",17,\\\"쩾\\\",5,\\\"쪅쪆\\\"],[\\\"a581\\\",\\\"쪇\\\",16,\\\"쪙\\\",14,\\\"ⅰ\\\",9],[\\\"a5b0\\\",\\\"Ⅰ\\\",9],[\\\"a5c1\\\",\\\"Α\\\",16,\\\"Σ\\\",6],[\\\"a5e1\\\",\\\"α\\\",16,\\\"σ\\\",6],[\\\"a641\\\",\\\"쪨\\\",19,\\\"쪾쪿쫁쫂쫃쫅\\\"],[\\\"a661\\\",\\\"쫆\\\",5,\\\"쫎쫐쫒쫔쫕쫖쫗쫚\\\",5,\\\"쫡\\\",6],[\\\"a681\\\",\\\"쫨쫩쫪쫫쫭\\\",6,\\\"쫵\\\",18,\\\"쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃\\\",7],[\\\"a741\\\",\\\"쬋\\\",4,\\\"쬑쬒쬓쬕쬖쬗쬙\\\",6,\\\"쬢\\\",7],[\\\"a761\\\",\\\"쬪\\\",22,\\\"쭂쭃쭄\\\"],[\\\"a781\\\",\\\"쭅쭆쭇쭊쭋쭍쭎쭏쭑\\\",6,\\\"쭚쭛쭜쭞\\\",5,\\\"쭥\\\",7,\\\"㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙\\\",9,\\\"㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰\\\",9,\\\"㎀\\\",4,\\\"㎺\\\",5,\\\"㎐\\\",4,\\\"Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆\\\"],[\\\"a841\\\",\\\"쭭\\\",10,\\\"쭺\\\",14],[\\\"a861\\\",\\\"쮉\\\",18,\\\"쮝\\\",6],[\\\"a881\\\",\\\"쮤\\\",19,\\\"쮹\\\",11,\\\"ÆÐªĦ\\\"],[\\\"a8a6\\\",\\\"Ĳ\\\"],[\\\"a8a8\\\",\\\"ĿŁØŒºÞŦŊ\\\"],[\\\"a8b1\\\",\\\"㉠\\\",27,\\\"ⓐ\\\",25,\\\"①\\\",14,\\\"½⅓⅔¼¾⅛⅜⅝⅞\\\"],[\\\"a941\\\",\\\"쯅\\\",14,\\\"쯕\\\",10],[\\\"a961\\\",\\\"쯠쯡쯢쯣쯥쯦쯨쯪\\\",18],[\\\"a981\\\",\\\"쯽\\\",14,\\\"찎찏찑찒찓찕\\\",6,\\\"찞찟찠찣찤æđðħıĳĸŀłøœßþŧŋŉ㈀\\\",27,\\\"⒜\\\",25,\\\"⑴\\\",14,\\\"¹²³⁴ⁿ₁₂₃₄\\\"],[\\\"aa41\\\",\\\"찥찦찪찫찭찯찱\\\",6,\\\"찺찿\\\",4,\\\"챆챇챉챊챋챍챎\\\"],[\\\"aa61\\\",\\\"챏\\\",4,\\\"챖챚\\\",5,\\\"챡챢챣챥챧챩\\\",6,\\\"챱챲\\\"],[\\\"aa81\\\",\\\"챳챴챶\\\",29,\\\"ぁ\\\",82],[\\\"ab41\\\",\\\"첔첕첖첗첚첛첝첞첟첡\\\",6,\\\"첪첮\\\",5,\\\"첶첷첹\\\"],[\\\"ab61\\\",\\\"첺첻첽\\\",6,\\\"쳆쳈쳊\\\",5,\\\"쳑쳒쳓쳕\\\",5],[\\\"ab81\\\",\\\"쳛\\\",8,\\\"쳥\\\",6,\\\"쳭쳮쳯쳱\\\",12,\\\"ァ\\\",85],[\\\"ac41\\\",\\\"쳾쳿촀촂\\\",5,\\\"촊촋촍촎촏촑\\\",6,\\\"촚촜촞촟촠\\\"],[\\\"ac61\\\",\\\"촡촢촣촥촦촧촩촪촫촭\\\",11,\\\"촺\\\",4],[\\\"ac81\\\",\\\"촿\\\",28,\\\"쵝쵞쵟А\\\",5,\\\"ЁЖ\\\",25],[\\\"acd1\\\",\\\"а\\\",5,\\\"ёж\\\",25],[\\\"ad41\\\",\\\"쵡쵢쵣쵥\\\",6,\\\"쵮쵰쵲\\\",5,\\\"쵹\\\",7],[\\\"ad61\\\",\\\"춁\\\",6,\\\"춉\\\",10,\\\"춖춗춙춚춛춝춞춟\\\"],[\\\"ad81\\\",\\\"춠춡춢춣춦춨춪\\\",5,\\\"춱\\\",18,\\\"췅\\\"],[\\\"ae41\\\",\\\"췆\\\",5,\\\"췍췎췏췑\\\",16],[\\\"ae61\\\",\\\"췢\\\",5,\\\"췩췪췫췭췮췯췱\\\",6,\\\"췺췼췾\\\",4],[\\\"ae81\\\",\\\"츃츅츆츇츉츊츋츍\\\",6,\\\"츕츖츗츘츚\\\",5,\\\"츢츣츥츦츧츩츪츫\\\"],[\\\"af41\\\",\\\"츬츭츮츯츲츴츶\\\",19],[\\\"af61\\\",\\\"칊\\\",13,\\\"칚칛칝칞칢\\\",5,\\\"칪칬\\\"],[\\\"af81\\\",\\\"칮\\\",5,\\\"칶칷칹칺칻칽\\\",6,\\\"캆캈캊\\\",5,\\\"캒캓캕캖캗캙\\\"],[\\\"b041\\\",\\\"캚\\\",5,\\\"캢캦\\\",5,\\\"캮\\\",12],[\\\"b061\\\",\\\"캻\\\",5,\\\"컂\\\",19],[\\\"b081\\\",\\\"컖\\\",13,\\\"컦컧컩컪컭\\\",6,\\\"컶컺\\\",5,\\\"가각간갇갈갉갊감\\\",7,\\\"같\\\",4,\\\"갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆\\\"],[\\\"b141\\\",\\\"켂켃켅켆켇켉\\\",6,\\\"켒켔켖\\\",5,\\\"켝켞켟켡켢켣\\\"],[\\\"b161\\\",\\\"켥\\\",6,\\\"켮켲\\\",5,\\\"켹\\\",11],[\\\"b181\\\",\\\"콅\\\",14,\\\"콖콗콙콚콛콝\\\",6,\\\"콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸\\\"],[\\\"b241\\\",\\\"콭콮콯콲콳콵콶콷콹\\\",6,\\\"쾁쾂쾃쾄쾆\\\",5,\\\"쾍\\\"],[\\\"b261\\\",\\\"쾎\\\",18,\\\"쾢\\\",5,\\\"쾩\\\"],[\\\"b281\\\",\\\"쾪\\\",5,\\\"쾱\\\",18,\\\"쿅\\\",6,\\\"깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙\\\"],[\\\"b341\\\",\\\"쿌\\\",19,\\\"쿢쿣쿥쿦쿧쿩\\\"],[\\\"b361\\\",\\\"쿪\\\",5,\\\"쿲쿴쿶\\\",5,\\\"쿽쿾쿿퀁퀂퀃퀅\\\",5],[\\\"b381\\\",\\\"퀋\\\",5,\\\"퀒\\\",5,\\\"퀙\\\",19,\\\"끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫\\\",4,\\\"낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝\\\"],[\\\"b441\\\",\\\"퀮\\\",5,\\\"퀶퀷퀹퀺퀻퀽\\\",6,\\\"큆큈큊\\\",5],[\\\"b461\\\",\\\"큑큒큓큕큖큗큙\\\",6,\\\"큡\\\",10,\\\"큮큯\\\"],[\\\"b481\\\",\\\"큱큲큳큵\\\",6,\\\"큾큿킀킂\\\",18,\\\"뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫\\\",4,\\\"닳담답닷\\\",4,\\\"닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥\\\"],[\\\"b541\\\",\\\"킕\\\",14,\\\"킦킧킩킪킫킭\\\",5],[\\\"b561\\\",\\\"킳킶킸킺\\\",5,\\\"탂탃탅탆탇탊\\\",5,\\\"탒탖\\\",4],[\\\"b581\\\",\\\"탛탞탟탡탢탣탥\\\",6,\\\"탮탲\\\",5,\\\"탹\\\",11,\\\"덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸\\\"],[\\\"b641\\\",\\\"턅\\\",7,\\\"턎\\\",17],[\\\"b661\\\",\\\"턠\\\",15,\\\"턲턳턵턶턷턹턻턼턽턾\\\"],[\\\"b681\\\",\\\"턿텂텆\\\",5,\\\"텎텏텑텒텓텕\\\",6,\\\"텞텠텢\\\",5,\\\"텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗\\\"],[\\\"b741\\\",\\\"텮\\\",13,\\\"텽\\\",6,\\\"톅톆톇톉톊\\\"],[\\\"b761\\\",\\\"톋\\\",20,\\\"톢톣톥톦톧\\\"],[\\\"b781\\\",\\\"톩\\\",6,\\\"톲톴톶톷톸톹톻톽톾톿퇁\\\",14,\\\"래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩\\\"],[\\\"b841\\\",\\\"퇐\\\",7,\\\"퇙\\\",17],[\\\"b861\\\",\\\"퇫\\\",8,\\\"퇵퇶퇷퇹\\\",13],[\\\"b881\\\",\\\"툈툊\\\",5,\\\"툑\\\",24,\\\"륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많\\\",4,\\\"맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼\\\"],[\\\"b941\\\",\\\"툪툫툮툯툱툲툳툵\\\",6,\\\"툾퉀퉂\\\",5,\\\"퉉퉊퉋퉌\\\"],[\\\"b961\\\",\\\"퉍\\\",14,\\\"퉝\\\",6,\\\"퉥퉦퉧퉨\\\"],[\\\"b981\\\",\\\"퉩\\\",22,\\\"튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바\\\",4,\\\"받\\\",4,\\\"밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗\\\"],[\\\"ba41\\\",\\\"튍튎튏튒튓튔튖\\\",5,\\\"튝튞튟튡튢튣튥\\\",6,\\\"튭\\\"],[\\\"ba61\\\",\\\"튮튯튰튲\\\",5,\\\"튺튻튽튾틁틃\\\",4,\\\"틊틌\\\",5],[\\\"ba81\\\",\\\"틒틓틕틖틗틙틚틛틝\\\",6,\\\"틦\\\",9,\\\"틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤\\\"],[\\\"bb41\\\",\\\"틻\\\",4,\\\"팂팄팆\\\",5,\\\"팏팑팒팓팕팗\\\",4,\\\"팞팢팣\\\"],[\\\"bb61\\\",\\\"팤팦팧팪팫팭팮팯팱\\\",6,\\\"팺팾\\\",5,\\\"퍆퍇퍈퍉\\\"],[\\\"bb81\\\",\\\"퍊\\\",31,\\\"빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤\\\"],[\\\"bc41\\\",\\\"퍪\\\",17,\\\"퍾퍿펁펂펃펅펆펇\\\"],[\\\"bc61\\\",\\\"펈펉펊펋펎펒\\\",5,\\\"펚펛펝펞펟펡\\\",6,\\\"펪펬펮\\\"],[\\\"bc81\\\",\\\"펯\\\",4,\\\"펵펶펷펹펺펻펽\\\",6,\\\"폆폇폊\\\",5,\\\"폑\\\",5,\\\"샥샨샬샴샵샷샹섀섄섈섐섕서\\\",4,\\\"섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭\\\"],[\\\"bd41\\\",\\\"폗폙\\\",7,\\\"폢폤\\\",7,\\\"폮폯폱폲폳폵폶폷\\\"],[\\\"bd61\\\",\\\"폸폹폺폻폾퐀퐂\\\",5,\\\"퐉\\\",13],[\\\"bd81\\\",\\\"퐗\\\",5,\\\"퐞\\\",25,\\\"숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰\\\"],[\\\"be41\\\",\\\"퐸\\\",7,\\\"푁푂푃푅\\\",14],[\\\"be61\\\",\\\"푔\\\",7,\\\"푝푞푟푡푢푣푥\\\",7,\\\"푮푰푱푲\\\"],[\\\"be81\\\",\\\"푳\\\",4,\\\"푺푻푽푾풁풃\\\",4,\\\"풊풌풎\\\",5,\\\"풕\\\",8,\\\"쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄\\\",6,\\\"엌엎\\\"],[\\\"bf41\\\",\\\"풞\\\",10,\\\"풪\\\",14],[\\\"bf61\\\",\\\"풹\\\",18,\\\"퓍퓎퓏퓑퓒퓓퓕\\\"],[\\\"bf81\\\",\\\"퓖\\\",5,\\\"퓝퓞퓠\\\",7,\\\"퓩퓪퓫퓭퓮퓯퓱\\\",6,\\\"퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염\\\",5,\\\"옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨\\\"],[\\\"c041\\\",\\\"퓾\\\",5,\\\"픅픆픇픉픊픋픍\\\",6,\\\"픖픘\\\",5],[\\\"c061\\\",\\\"픞\\\",25],[\\\"c081\\\",\\\"픸픹픺픻픾픿핁핂핃핅\\\",6,\\\"핎핐핒\\\",5,\\\"핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응\\\",7,\\\"읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊\\\"],[\\\"c141\\\",\\\"핤핦핧핪핬핮\\\",5,\\\"핶핷핹핺핻핽\\\",6,\\\"햆햊햋\\\"],[\\\"c161\\\",\\\"햌햍햎햏햑\\\",19,\\\"햦햧\\\"],[\\\"c181\\\",\\\"햨\\\",31,\\\"점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓\\\"],[\\\"c241\\\",\\\"헊헋헍헎헏헑헓\\\",4,\\\"헚헜헞\\\",5,\\\"헦헧헩헪헫헭헮\\\"],[\\\"c261\\\",\\\"헯\\\",4,\\\"헶헸헺\\\",5,\\\"혂혃혅혆혇혉\\\",6,\\\"혒\\\"],[\\\"c281\\\",\\\"혖\\\",5,\\\"혝혞혟혡혢혣혥\\\",7,\\\"혮\\\",9,\\\"혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻\\\"],[\\\"c341\\\",\\\"혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝\\\",4],[\\\"c361\\\",\\\"홢\\\",4,\\\"홨홪\\\",5,\\\"홲홳홵\\\",11],[\\\"c381\\\",\\\"횁횂횄횆\\\",5,\\\"횎횏횑횒횓횕\\\",7,\\\"횞횠횢\\\",5,\\\"횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻췽츄츈츌츔츙츠측츤츨츰츱츳층\\\"],[\\\"c441\\\",\\\"횫횭횮횯횱\\\",7,\\\"횺횼\\\",7,\\\"훆훇훉훊훋\\\"],[\\\"c461\\\",\\\"훍훎훏훐훒훓훕훖훘훚\\\",5,\\\"훡훢훣훥훦훧훩\\\",4],[\\\"c481\\\",\\\"훮훯훱훲훳훴훶\\\",5,\\\"훾훿휁휂휃휅\\\",11,\\\"휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼\\\"],[\\\"c541\\\",\\\"휕휖휗휚휛휝휞휟휡\\\",6,\\\"휪휬휮\\\",5,\\\"휶휷휹\\\"],[\\\"c561\\\",\\\"휺휻휽\\\",6,\\\"흅흆흈흊\\\",5,\\\"흒흓흕흚\\\",4],[\\\"c581\\\",\\\"흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵\\\",6,\\\"흾흿힀힂\\\",5,\\\"힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜\\\"],[\\\"c641\\\",\\\"힍힎힏힑\\\",6,\\\"힚힜힞\\\",5],[\\\"c6a1\\\",\\\"퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁\\\"],[\\\"c7a1\\\",\\\"퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠\\\"],[\\\"c8a1\\\",\\\"혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝\\\"],[\\\"caa1\\\",\\\"伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕\\\"],[\\\"cba1\\\",\\\"匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢\\\"],[\\\"cca1\\\",\\\"瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械\\\"],[\\\"cda1\\\",\\\"棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜\\\"],[\\\"cea1\\\",\\\"科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾\\\"],[\\\"cfa1\\\",\\\"區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴\\\"],[\\\"d0a1\\\",\\\"鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣\\\"],[\\\"d1a1\\\",\\\"朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩\\\",5,\\\"那樂\\\",4,\\\"諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉\\\"],[\\\"d2a1\\\",\\\"納臘蠟衲囊娘廊\\\",4,\\\"乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧\\\",5,\\\"駑魯\\\",10,\\\"濃籠聾膿農惱牢磊腦賂雷尿壘\\\",7,\\\"嫩訥杻紐勒\\\",5,\\\"能菱陵尼泥匿溺多茶\\\"],[\\\"d3a1\\\",\\\"丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃\\\"],[\\\"d4a1\\\",\\\"棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅\\\"],[\\\"d5a1\\\",\\\"蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣\\\"],[\\\"d6a1\\\",\\\"煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼\\\"],[\\\"d7a1\\\",\\\"遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬\\\"],[\\\"d8a1\\\",\\\"立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅\\\"],[\\\"d9a1\\\",\\\"蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文\\\"],[\\\"daa1\\\",\\\"汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑\\\"],[\\\"dba1\\\",\\\"發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖\\\"],[\\\"dca1\\\",\\\"碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦\\\"],[\\\"dda1\\\",\\\"孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥\\\"],[\\\"dea1\\\",\\\"脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索\\\"],[\\\"dfa1\\\",\\\"傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署\\\"],[\\\"e0a1\\\",\\\"胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬\\\"],[\\\"e1a1\\\",\\\"聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁\\\"],[\\\"e2a1\\\",\\\"戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧\\\"],[\\\"e3a1\\\",\\\"嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁\\\"],[\\\"e4a1\\\",\\\"沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃秧鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額\\\"],[\\\"e5a1\\\",\\\"櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬\\\"],[\\\"e6a1\\\",\\\"旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒\\\"],[\\\"e7a1\\\",\\\"簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳\\\"],[\\\"e8a1\\\",\\\"烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療\\\"],[\\\"e9a1\\\",\\\"窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓\\\"],[\\\"eaa1\\\",\\\"運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜\\\"],[\\\"eba1\\\",\\\"濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼\\\"],[\\\"eca1\\\",\\\"議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄\\\"],[\\\"eda1\\\",\\\"立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長\\\"],[\\\"eea1\\\",\\\"障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱\\\"],[\\\"efa1\\\",\\\"煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖\\\"],[\\\"f0a1\\\",\\\"靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫\\\"],[\\\"f1a1\\\",\\\"踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只\\\"],[\\\"f2a1\\\",\\\"咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯\\\"],[\\\"f3a1\\\",\\\"鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策\\\"],[\\\"f4a1\\\",\\\"責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢\\\"],[\\\"f5a1\\\",\\\"椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充忠沖蟲衝衷悴膵萃\\\"],[\\\"f6a1\\\",\\\"贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託\\\"],[\\\"f7a1\\\",\\\"鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑\\\"],[\\\"f8a1\\\",\\\"阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃\\\"],[\\\"f9a1\\\",\\\"品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航\\\"],[\\\"faa1\\\",\\\"行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型\\\"],[\\\"fba1\\\",\\\"形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵\\\"],[\\\"fca1\\\",\\\"禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆\\\"],[\\\"fda1\\\",\\\"爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰\\\"]]\");/***/},/* 319 */ /***/function(module){module.exports=JSON.parse(\"[[\\\"8740\\\",\\\"䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻\\\"],[\\\"8767\\\",\\\"綕夝𨮹㷴霴𧯯寛𡵞媤㘥𩺰嫑宷峼杮薓𩥅瑡璝㡵𡵓𣚞𦀡㻬\\\"],[\\\"87a1\\\",\\\"𥣞㫵竼龗𤅡𨤍𣇪𠪊𣉞䌊蒄龖鐯䤰蘓墖靊鈘秐稲晠権袝瑌篅枂稬剏遆㓦珄𥶹瓆鿇垳䤯呌䄱𣚎堘穲𧭥讏䚮𦺈䆁𥶙箮𢒼鿈𢓁𢓉𢓌鿉蔄𣖻䂴鿊䓡𪷿拁灮鿋\\\"],[\\\"8840\\\",\\\"㇀\\\",4,\\\"𠄌㇅𠃑𠃍㇆㇇𠃋𡿨㇈𠃊㇉㇊㇋㇌𠄎㇍㇎ĀÁǍÀĒÉĚÈŌÓǑÒ࿿Ê̄Ế࿿Ê̌ỀÊāáǎàɑēéěèīíǐìōóǒòūúǔùǖǘǚ\\\"],[\\\"88a1\\\",\\\"ǜü࿿ê̄ế࿿ê̌ềêɡ⏚⏛\\\"],[\\\"8940\\\",\\\"𪎩𡅅\\\"],[\\\"8943\\\",\\\"攊\\\"],[\\\"8946\\\",\\\"丽滝鵎釟\\\"],[\\\"894c\\\",\\\"𧜵撑会伨侨兖兴农凤务动医华发变团声处备夲头学实実岚庆总斉柾栄桥济炼电纤纬纺织经统缆缷艺苏药视设询车轧轮\\\"],[\\\"89a1\\\",\\\"琑糼緍楆竉刧\\\"],[\\\"89ab\\\",\\\"醌碸酞肼\\\"],[\\\"89b0\\\",\\\"贋胶𠧧\\\"],[\\\"89b5\\\",\\\"肟黇䳍鷉鸌䰾𩷶𧀎鸊𪄳㗁\\\"],[\\\"89c1\\\",\\\"溚舾甙\\\"],[\\\"89c5\\\",\\\"䤑马骏龙禇𨑬𡷊𠗐𢫦两亁亀亇亿仫伷㑌侽㹈倃傈㑽㒓㒥円夅凛凼刅争剹劐匧㗇厩㕑厰㕓参吣㕭㕲㚁咓咣咴咹哐哯唘唣唨㖘唿㖥㖿嗗㗅\\\"],[\\\"8a40\\\",\\\"𧶄唥\\\"],[\\\"8a43\\\",\\\"𠱂𠴕𥄫喐𢳆㧬𠍁蹆𤶸𩓥䁓𨂾睺𢰸㨴䟕𨅝𦧲𤷪擝𠵼𠾴𠳕𡃴撍蹾𠺖𠰋𠽤𢲩𨉖𤓓\\\"],[\\\"8a64\\\",\\\"𠵆𩩍𨃩䟴𤺧𢳂骲㩧𩗴㿭㔆𥋇𩟔𧣈𢵄鵮頕\\\"],[\\\"8a76\\\",\\\"䏙𦂥撴哣𢵌𢯊𡁷㧻𡁯\\\"],[\\\"8aa1\\\",\\\"𦛚𦜖𧦠擪𥁒𠱃蹨𢆡𨭌𠜱\\\"],[\\\"8aac\\\",\\\"䠋𠆩㿺塳𢶍\\\"],[\\\"8ab2\\\",\\\"𤗈𠓼𦂗𠽌𠶖啹䂻䎺\\\"],[\\\"8abb\\\",\\\"䪴𢩦𡂝膪飵𠶜捹㧾𢝵跀嚡摼㹃\\\"],[\\\"8ac9\\\",\\\"𪘁𠸉𢫏𢳉\\\"],[\\\"8ace\\\",\\\"𡃈𣧂㦒㨆𨊛㕸𥹉𢃇噒𠼱𢲲𩜠㒼氽𤸻\\\"],[\\\"8adf\\\",\\\"𧕴𢺋𢈈𪙛𨳍𠹺𠰴𦠜羓𡃏𢠃𢤹㗻𥇣𠺌𠾍𠺪㾓𠼰𠵇𡅏𠹌\\\"],[\\\"8af6\\\",\\\"𠺫𠮩𠵈𡃀𡄽㿹𢚖搲𠾭\\\"],[\\\"8b40\\\",\\\"𣏴𧘹𢯎𠵾𠵿𢱑𢱕㨘𠺘𡃇𠼮𪘲𦭐𨳒𨶙𨳊閪哌苄喹\\\"],[\\\"8b55\\\",\\\"𩻃鰦骶𧝞𢷮煀腭胬尜𦕲脴㞗卟𨂽醶𠻺𠸏𠹷𠻻㗝𤷫㘉𠳖嚯𢞵𡃉𠸐𠹸𡁸𡅈𨈇𡑕𠹹𤹐𢶤婔𡀝𡀞𡃵𡃶垜𠸑\\\"],[\\\"8ba1\\\",\\\"𧚔𨋍𠾵𠹻𥅾㜃𠾶𡆀𥋘𪊽𤧚𡠺𤅷𨉼墙剨㘚𥜽箲孨䠀䬬鼧䧧鰟鮍𥭴𣄽嗻㗲嚉丨夂𡯁屮靑𠂆乛亻㔾尣彑忄㣺扌攵歺氵氺灬爫丬犭𤣩罒礻糹罓𦉪㓁\\\"],[\\\"8bde\\\",\\\"𦍋耂肀𦘒𦥑卝衤见𧢲讠贝钅镸长门𨸏韦页风飞饣𩠐鱼鸟黄歯龜丷𠂇阝户钢\\\"],[\\\"8c40\\\",\\\"倻淾𩱳龦㷉袏𤅎灷峵䬠𥇍㕙𥴰愢𨨲辧釶熑朙玺𣊁𪄇㲋𡦀䬐磤琂冮𨜏䀉橣𪊺䈣蘏𠩯稪𩥇𨫪靕灍匤𢁾鏴盙𨧣龧矝亣俰傼丯众龨吴綋墒壐𡶶庒庙忂𢜒斋\\\"],[\\\"8ca1\\\",\\\"𣏹椙橃𣱣泿\\\"],[\\\"8ca7\\\",\\\"爀𤔅玌㻛𤨓嬕璹讃𥲤𥚕窓篬糃繬苸薗龩袐龪躹龫迏蕟駠鈡龬𨶹𡐿䁱䊢娚\\\"],[\\\"8cc9\\\",\\\"顨杫䉶圽\\\"],[\\\"8cce\\\",\\\"藖𤥻芿𧄍䲁𦵴嵻𦬕𦾾龭龮宖龯曧繛湗秊㶈䓃𣉖𢞖䎚䔶\\\"],[\\\"8ce6\\\",\\\"峕𣬚諹屸㴒𣕑嵸龲煗䕘𤃬𡸣䱷㥸㑊𠆤𦱁諌侴𠈹妿腬顖𩣺弻\\\"],[\\\"8d40\\\",\\\"𠮟\\\"],[\\\"8d42\\\",\\\"𢇁𨥭䄂䚻𩁹㼇龳𪆵䃸㟖䛷𦱆䅼𨚲𧏿䕭㣔𥒚䕡䔛䶉䱻䵶䗪㿈𤬏㙡䓞䒽䇭崾嵈嵖㷼㠏嶤嶹㠠㠸幂庽弥徃㤈㤔㤿㥍惗愽峥㦉憷憹懏㦸戬抐拥挘㧸嚱\\\"],[\\\"8da1\\\",\\\"㨃揢揻搇摚㩋擀崕嘡龟㪗斆㪽旿晓㫲暒㬢朖㭂枤栀㭘桊梄㭲㭱㭻椉楃牜楤榟榅㮼槖㯝橥橴橱檂㯬檙㯲檫檵櫔櫶殁毁毪汵沪㳋洂洆洦涁㳯涤涱渕渘温溆𨧀溻滢滚齿滨滩漤漴㵆𣽁澁澾㵪㵵熷岙㶊瀬㶑灐灔灯灿炉𠌥䏁㗱𠻘\\\"],[\\\"8e40\\\",\\\"𣻗垾𦻓焾𥟠㙎榢𨯩孴穉𥣡𩓙穥穽𥦬窻窰竂竃燑𦒍䇊竚竝竪䇯咲𥰁笋筕笩𥌎𥳾箢筯莜𥮴𦱿篐萡箒箸𥴠㶭𥱥蒒篺簆簵𥳁籄粃𤢂粦晽𤕸糉糇糦籴糳糵糎\\\"],[\\\"8ea1\\\",\\\"繧䔝𦹄絝𦻖璍綉綫焵綳緒𤁗𦀩緤㴓緵𡟹緥𨍭縝𦄡𦅚繮纒䌫鑬縧罀罁罇礶𦋐駡羗𦍑羣𡙡𠁨䕜𣝦䔃𨌺翺𦒉者耈耝耨耯𪂇𦳃耻耼聡𢜔䦉𦘦𣷣𦛨朥肧𨩈脇脚墰𢛶汿𦒘𤾸擧𡒊舘𡡞橓𤩥𤪕䑺舩𠬍𦩒𣵾俹𡓽蓢荢𦬊𤦧𣔰𡝳𣷸芪椛芳䇛\\\"],[\\\"8f40\\\",\\\"蕋苐茚𠸖𡞴㛁𣅽𣕚艻苢茘𣺋𦶣𦬅𦮗𣗎㶿茝嗬莅䔋𦶥莬菁菓㑾𦻔橗蕚㒖𦹂𢻯葘𥯤葱㷓䓤檧葊𣲵祘蒨𦮖𦹷𦹃蓞萏莑䒠蒓蓤𥲑䉀𥳀䕃蔴嫲𦺙䔧蕳䔖枿蘖\\\"],[\\\"8fa1\\\",\\\"𨘥𨘻藁𧂈蘂𡖂𧃍䕫䕪蘨㙈𡢢号𧎚虾蝱𪃸蟮𢰧螱蟚蠏噡虬桖䘏衅衆𧗠𣶹𧗤衞袜䙛袴袵揁装睷𧜏覇覊覦覩覧覼𨨥觧𧤤𧪽誜瞓釾誐𧩙竩𧬺𣾏䜓𧬸煼謌謟𥐰𥕥謿譌譍誩𤩺讐讛誯𡛟䘕衏貛𧵔𧶏貫㜥𧵓賖𧶘𧶽贒贃𡤐賛灜贑𤳉㻐起\\\"],[\\\"9040\\\",\\\"趩𨀂𡀔𤦊㭼𨆼𧄌竧躭躶軃鋔輙輭𨍥𨐒辥錃𪊟𠩐辳䤪𨧞𨔽𣶻廸𣉢迹𪀔𨚼𨔁𢌥㦀𦻗逷𨔼𧪾遡𨕬𨘋邨𨜓郄𨛦邮都酧㫰醩釄粬𨤳𡺉鈎沟鉁鉢𥖹銹𨫆𣲛𨬌𥗛\\\"],[\\\"90a1\\\",\\\"𠴱錬鍫𨫡𨯫炏嫃𨫢𨫥䥥鉄𨯬𨰹𨯿鍳鑛躼閅閦鐦閠濶䊹𢙺𨛘𡉼𣸮䧟氜陻隖䅬隣𦻕懚隶磵𨫠隽双䦡𦲸𠉴𦐐𩂯𩃥𤫑𡤕𣌊霱虂霶䨏䔽䖅𤫩灵孁霛靜𩇕靗孊𩇫靟鐥僐𣂷𣂼鞉鞟鞱鞾韀韒韠𥑬韮琜𩐳響韵𩐝𧥺䫑頴頳顋顦㬎𧅵㵑𠘰𤅜\\\"],[\\\"9140\\\",\\\"𥜆飊颷飈飇䫿𦴧𡛓喰飡飦飬鍸餹𤨩䭲𩡗𩤅駵騌騻騐驘𥜥㛄𩂱𩯕髠髢𩬅髴䰎鬔鬭𨘀倴鬴𦦨㣃𣁽魐魀𩴾婅𡡣鮎𤉋鰂鯿鰌𩹨鷔𩾷𪆒𪆫𪃡𪄣𪇟鵾鶃𪄴鸎梈\\\"],[\\\"91a1\\\",\\\"鷄𢅛𪆓𪈠𡤻𪈳鴹𪂹𪊴麐麕麞麢䴴麪麯𤍤黁㭠㧥㴝伲㞾𨰫鼂鼈䮖鐤𦶢鼗鼖鼹嚟嚊齅馸𩂋韲葿齢齩竜龎爖䮾𤥵𤦻煷𤧸𤍈𤩑玞𨯚𡣺禟𨥾𨸶鍩鏳𨩄鋬鎁鏋𨥬𤒹爗㻫睲穃烐𤑳𤏸煾𡟯炣𡢾𣖙㻇𡢅𥐯𡟸㜢𡛻𡠹㛡𡝴𡣑𥽋㜣𡛀坛𤨥𡏾𡊨\\\"],[\\\"9240\\\",\\\"𡏆𡒶蔃𣚦蔃葕𤦔𧅥𣸱𥕜𣻻𧁒䓴𣛮𩦝𦼦柹㜳㰕㷧塬𡤢栐䁗𣜿𤃡𤂋𤄏𦰡哋嚞𦚱嚒𠿟𠮨𠸍鏆𨬓鎜仸儫㠙𤐶亼𠑥𠍿佋侊𥙑婨𠆫𠏋㦙𠌊𠐔㐵伩𠋀𨺳𠉵諚𠈌亘\\\"],[\\\"92a1\\\",\\\"働儍侢伃𤨎𣺊佂倮偬傁俌俥偘僼兙兛兝兞湶𣖕𣸹𣺿浲𡢄𣺉冨凃𠗠䓝𠒣𠒒𠒑赺𨪜𠜎剙劤𠡳勡鍮䙺熌𤎌𠰠𤦬𡃤槑𠸝瑹㻞璙琔瑖玘䮎𤪼𤂍叐㖄爏𤃉喴𠍅响𠯆圝鉝雴鍦埝垍坿㘾壋媙𨩆𡛺𡝯𡜐娬妸銏婾嫏娒𥥆𡧳𡡡𤊕㛵洅瑃娡𥺃\\\"],[\\\"9340\\\",\\\"媁𨯗𠐓鏠璌𡌃焅䥲鐈𨧻鎽㞠尞岞幞幈𡦖𡥼𣫮廍孏𡤃𡤄㜁𡢠㛝𡛾㛓脪𨩇𡶺𣑲𨦨弌弎𡤧𡞫婫𡜻孄蘔𧗽衠恾𢡠𢘫忛㺸𢖯𢖾𩂈𦽳懀𠀾𠁆𢘛憙憘恵𢲛𢴇𤛔𩅍\\\"],[\\\"93a1\\\",\\\"摱𤙥𢭪㨩𢬢𣑐𩣪𢹸挷𪑛撶挱揑𤧣𢵧护𢲡搻敫楲㯴𣂎𣊭𤦉𣊫唍𣋠𡣙𩐿曎𣊉𣆳㫠䆐𥖄𨬢𥖏𡛼𥕛𥐥磮𣄃𡠪𣈴㑤𣈏𣆂𤋉暎𦴤晫䮓昰𧡰𡷫晣𣋒𣋡昞𥡲㣑𣠺𣞼㮙𣞢𣏾瓐㮖枏𤘪梶栞㯄檾㡣𣟕𤒇樳橒櫉欅𡤒攑梘橌㯗橺歗𣿀𣲚鎠鋲𨯪𨫋\\\"],[\\\"9440\\\",\\\"銉𨀞𨧜鑧涥漋𤧬浧𣽿㶏渄𤀼娽渊塇洤硂焻𤌚𤉶烱牐犇犔𤞏𤜥兹𤪤𠗫瑺𣻸𣙟𤩊𤤗𥿡㼆㺱𤫟𨰣𣼵悧㻳瓌琼鎇琷䒟𦷪䕑疃㽣𤳙𤴆㽘畕癳𪗆㬙瑨𨫌𤦫𤦎㫻\\\"],[\\\"94a1\\\",\\\"㷍𤩎㻿𤧅𤣳釺圲鍂𨫣𡡤僟𥈡𥇧睸𣈲眎眏睻𤚗𣞁㩞𤣰琸璛㺿𤪺𤫇䃈𤪖𦆮錇𥖁砞碍碈磒珐祙𧝁𥛣䄎禛蒖禥樭𣻺稺秴䅮𡛦䄲鈵秱𠵌𤦌𠊙𣶺𡝮㖗啫㕰㚪𠇔𠰍竢婙𢛵𥪯𥪜娍𠉛磰娪𥯆竾䇹籝籭䈑𥮳𥺼𥺦糍𤧹𡞰粎籼粮檲緜縇緓罎𦉡\\\"],[\\\"9540\\\",\\\"𦅜𧭈綗𥺂䉪𦭵𠤖柖𠁎𣗏埄𦐒𦏸𤥢翝笧𠠬𥫩𥵃笌𥸎駦虅驣樜𣐿㧢𤧷𦖭騟𦖠蒀𧄧𦳑䓪脷䐂胆脉腂𦞴飃𦩂艢艥𦩑葓𦶧蘐𧈛媆䅿𡡀嬫𡢡嫤𡣘蚠蜨𣶏蠭𧐢娂\\\"],[\\\"95a1\\\",\\\"衮佅袇袿裦襥襍𥚃襔𧞅𧞄𨯵𨯙𨮜𨧹㺭蒣䛵䛏㟲訽訜𩑈彍鈫𤊄旔焩烄𡡅鵭貟賩𧷜妚矃姰䍮㛔踪躧𤰉輰轊䋴汘澻𢌡䢛潹溋𡟚鯩㚵𤤯邻邗啱䤆醻鐄𨩋䁢𨫼鐧𨰝𨰻蓥訫閙閧閗閖𨴴瑅㻂𤣿𤩂𤏪㻧𣈥随𨻧𨹦𨹥㻌𤧭𤩸𣿮琒瑫㻼靁𩂰\\\"],[\\\"9640\\\",\\\"桇䨝𩂓𥟟靝鍨𨦉𨰦𨬯𦎾銺嬑譩䤼珹𤈛鞛靱餸𠼦巁𨯅𤪲頟𩓚鋶𩗗釥䓀𨭐𤩧𨭤飜𨩅㼀鈪䤥萔餻饍𧬆㷽馛䭯馪驜𨭥𥣈檏騡嫾騯𩣱䮐𩥈馼䮽䮗鍽塲𡌂堢𤦸\\\"],[\\\"96a1\\\",\\\"𡓨硄𢜟𣶸棅㵽鑘㤧慐𢞁𢥫愇鱏鱓鱻鰵鰐魿鯏𩸭鮟𪇵𪃾鴡䲮𤄄鸘䲰鴌𪆴𪃭𪃳𩤯鶥蒽𦸒𦿟𦮂藼䔳𦶤𦺄𦷰萠藮𦸀𣟗𦁤秢𣖜𣙀䤭𤧞㵢鏛銾鍈𠊿碹鉷鑍俤㑀遤𥕝砽硔碶硋𡝗𣇉𤥁㚚佲濚濙瀞瀞吔𤆵垻壳垊鴖埗焴㒯𤆬燫𦱀𤾗嬨𡞵𨩉\\\"],[\\\"9740\\\",\\\"愌嫎娋䊼𤒈㜬䭻𨧼鎻鎸𡣖𠼝葲𦳀𡐓𤋺𢰦𤏁妔𣶷𦝁綨𦅛𦂤𤦹𤦋𨧺鋥珢㻩璴𨭣𡢟㻡𤪳櫘珳珻㻖𤨾𤪔𡟙𤩦𠎧𡐤𤧥瑈𤤖炥𤥶銄珦鍟𠓾錱𨫎𨨖鎆𨯧𥗕䤵𨪂煫\\\"],[\\\"97a1\\\",\\\"𤥃𠳿嚤𠘚𠯫𠲸唂秄𡟺緾𡛂𤩐𡡒䔮鐁㜊𨫀𤦭妰𡢿𡢃𧒄媡㛢𣵛㚰鉟婹𨪁𡡢鍴㳍𠪴䪖㦊僴㵩㵌𡎜煵䋻𨈘渏𩃤䓫浗𧹏灧沯㳖𣿭𣸭渂漌㵯𠏵畑㚼㓈䚀㻚䡱姄鉮䤾轁𨰜𦯀堒埈㛖𡑒烾𤍢𤩱𢿣𡊰𢎽梹楧𡎘𣓥𧯴𣛟𨪃𣟖𣏺𤲟樚𣚭𦲷萾䓟䓎\\\"],[\\\"9840\\\",\\\"𦴦𦵑𦲂𦿞漗𧄉茽𡜺菭𦲀𧁓𡟛妉媂𡞳婡婱𡤅𤇼㜭姯𡜼㛇熎鎐暚𤊥婮娫𤊓樫𣻹𧜶𤑛𤋊焝𤉙𨧡侰𦴨峂𤓎𧹍𤎽樌𤉖𡌄炦焳𤏩㶥泟勇𤩏繥姫崯㷳彜𤩝𡟟綤萦\\\"],[\\\"98a1\\\",\\\"咅𣫺𣌀𠈔坾𠣕𠘙㿥𡾞𪊶瀃𩅛嵰玏糓𨩙𩐠俈翧狍猐𧫴猸猹𥛶獁獈㺩𧬘遬燵𤣲珡臶㻊県㻑沢国琙琞琟㻢㻰㻴㻺瓓㼎㽓畂畭畲疍㽼痈痜㿀癍㿗癴㿜発𤽜熈嘣覀塩䀝睃䀹条䁅㗛瞘䁪䁯属瞾矋売砘点砜䂨砹硇硑硦葈𥔵礳栃礲䄃\\\"],[\\\"9940\\\",\\\"䄉禑禙辻稆込䅧窑䆲窼艹䇄竏竛䇏両筢筬筻簒簛䉠䉺类粜䊌粸䊔糭输烀𠳏総緔緐緽羮羴犟䎗耠耥笹耮耱联㷌垴炠肷胩䏭脌猪脎脒畠脔䐁㬹腖腙腚\\\"],[\\\"99a1\\\",\\\"䐓堺腼膄䐥膓䐭膥埯臁臤艔䒏芦艶苊苘苿䒰荗险榊萅烵葤惣蒈䔄蒾蓡蓸蔐蔸蕒䔻蕯蕰藠䕷虲蚒蚲蛯际螋䘆䘗袮裿褤襇覑𧥧訩訸誔誴豑賔賲贜䞘塟跃䟭仮踺嗘坔蹱嗵躰䠷軎転軤軭軲辷迁迊迌逳駄䢭飠鈓䤞鈨鉘鉫銱銮銿\\\"],[\\\"9a40\\\",\\\"鋣鋫鋳鋴鋽鍃鎄鎭䥅䥑麿鐗匁鐝鐭鐾䥪鑔鑹锭関䦧间阳䧥枠䨤靀䨵鞲韂噔䫤惨颹䬙飱塄餎餙冴餜餷饂饝饢䭰駅䮝騼鬏窃魩鮁鯝鯱鯴䱭鰠㝯𡯂鵉鰺\\\"],[\\\"9aa1\\\",\\\"黾噐鶓鶽鷀鷼银辶鹻麬麱麽黆铜黢黱黸竈齄𠂔𠊷𠎠椚铃妬𠓗塀铁㞹𠗕𠘕𠙶𡚺块煳𠫂𠫍𠮿呪吆𠯋咞𠯻𠰻𠱓𠱥𠱼惧𠲍噺𠲵𠳝𠳭𠵯𠶲𠷈楕鰯螥𠸄𠸎𠻗𠾐𠼭𠹳尠𠾼帋𡁜𡁏𡁶朞𡁻𡂈𡂖㙇𡂿𡃓𡄯𡄻卤蒭𡋣𡍵𡌶讁𡕷𡘙𡟃𡟇乸炻𡠭𡥪\\\"],[\\\"9b40\\\",\\\"𡨭𡩅𡰪𡱰𡲬𡻈拃𡻕𡼕熘桕𢁅槩㛈𢉼𢏗𢏺𢜪𢡱𢥏苽𢥧𢦓𢫕覥𢫨辠𢬎鞸𢬿顇骽𢱌\\\"],[\\\"9b62\\\",\\\"𢲈𢲷𥯨𢴈𢴒𢶷𢶕𢹂𢽴𢿌𣀳𣁦𣌟𣏞徱晈暿𧩹𣕧𣗳爁𤦺矗𣘚𣜖纇𠍆墵朎\\\"],[\\\"9ba1\\\",\\\"椘𣪧𧙗𥿢𣸑𣺹𧗾𢂚䣐䪸𤄙𨪚𤋮𤌍𤀻𤌴𤎖𤩅𠗊凒𠘑妟𡺨㮾𣳿𤐄𤓖垈𤙴㦛𤜯𨗨𩧉㝢𢇃譞𨭎駖𤠒𤣻𤨕爉𤫀𠱸奥𤺥𤾆𠝹軚𥀬劏圿煱𥊙𥐙𣽊𤪧喼𥑆𥑮𦭒釔㑳𥔿𧘲𥕞䜘𥕢𥕦𥟇𤤿𥡝偦㓻𣏌惞𥤃䝼𨥈𥪮𥮉𥰆𡶐垡煑澶𦄂𧰒遖𦆲𤾚譢𦐂𦑊\\\"],[\\\"9c40\\\",\\\"嵛𦯷輶𦒄𡤜諪𤧶𦒈𣿯𦔒䯀𦖿𦚵𢜛鑥𥟡憕娧晉侻嚹𤔡𦛼乪𤤴陖涏𦲽㘘襷𦞙𦡮𦐑𦡞營𦣇筂𩃀𠨑𦤦鄄𦤹穅鷰𦧺騦𦨭㙟𦑩𠀡禃𦨴𦭛崬𣔙菏𦮝䛐𦲤画补𦶮墶\\\"],[\\\"9ca1\\\",\\\"㜜𢖍𧁋𧇍㱔𧊀𧊅銁𢅺𧊋錰𧋦𤧐氹钟𧑐𠻸蠧裵𢤦𨑳𡞱溸𤨪𡠠㦤㚹尐秣䔿暶𩲭𩢤襃𧟌𧡘囖䃟𡘊㦡𣜯𨃨𡏅熭荦𧧝𩆨婧䲷𧂯𨦫𧧽𧨊𧬋𧵦𤅺筃祾𨀉澵𪋟樃𨌘厢𦸇鎿栶靝𨅯𨀣𦦵𡏭𣈯𨁈嶅𨰰𨂃圕頣𨥉嶫𤦈斾槕叒𤪥𣾁㰑朶𨂐𨃴𨄮𡾡𨅏\\\"],[\\\"9d40\\\",\\\"𨆉𨆯𨈚𨌆𨌯𨎊㗊𨑨𨚪䣺揦𨥖砈鉕𨦸䏲𨧧䏟𨧨𨭆𨯔姸𨰉輋𨿅𩃬筑𩄐𩄼㷷𩅞𤫊运犏嚋𩓧𩗩𩖰𩖸𩜲𩣑𩥉𩥪𩧃𩨨𩬎𩵚𩶛纟𩻸𩼣䲤镇𪊓熢𪋿䶑递𪗋䶜𠲜达嗁\\\"],[\\\"9da1\\\",\\\"辺𢒰边𤪓䔉繿潖檱仪㓤𨬬𧢝㜺躀𡟵𨀤𨭬𨮙𧨾𦚯㷫𧙕𣲷𥘵𥥖亚𥺁𦉘嚿𠹭踎孭𣺈𤲞揞拐𡟶𡡻攰嘭𥱊吚𥌑㷆𩶘䱽嘢嘞罉𥻘奵𣵀蝰东𠿪𠵉𣚺脗鵞贘瘻鱅癎瞹鍅吲腈苷嘥脲萘肽嗪祢噃吖𠺝㗎嘅嗱曱𨋢㘭甴嗰喺咗啲𠱁𠲖廐𥅈𠹶𢱢\\\"],[\\\"9e40\\\",\\\"𠺢麫絚嗞𡁵抝靭咔賍燶酶揼掹揾啩𢭃鱲𢺳冚㓟𠶧冧呍唞唓癦踭𦢊疱肶蠄螆裇膶萜𡃁䓬猄𤜆宐茋𦢓噻𢛴𧴯𤆣𧵳𦻐𧊶酰𡇙鈈𣳼𪚩𠺬𠻹牦𡲢䝎𤿂𧿹𠿫䃺\\\"],[\\\"9ea1\\\",\\\"鱝攟𢶠䣳𤟠𩵼𠿬𠸊恢𧖣𠿭\\\"],[\\\"9ead\\\",\\\"𦁈𡆇熣纎鵐业丄㕷嬍沲卧㚬㧜卽㚥𤘘墚𤭮舭呋垪𥪕𠥹\\\"],[\\\"9ec5\\\",\\\"㩒𢑥獴𩺬䴉鯭𣳾𩼰䱛𤾩𩖞𩿞葜𣶶𧊲𦞳𣜠挮紥𣻷𣸬㨪逈勌㹴㙺䗩𠒎癀嫰𠺶硺𧼮墧䂿噼鮋嵴癔𪐴麅䳡痹㟻愙𣃚𤏲\\\"],[\\\"9ef5\\\",\\\"噝𡊩垧𤥣𩸆刴𧂮㖭汊鵼\\\"],[\\\"9f40\\\",\\\"籖鬹埞𡝬屓擓𩓐𦌵𧅤蚭𠴨𦴢𤫢𠵱\\\"],[\\\"9f4f\\\",\\\"凾𡼏嶎霃𡷑麁遌笟鬂峑箣扨挵髿篏鬪籾鬮籂粆鰕篼鬉鼗鰛𤤾齚啳寃俽麘俲剠㸆勑坧偖妷帒韈鶫轜呩鞴饀鞺匬愰\\\"],[\\\"9fa1\\\",\\\"椬叚鰊鴂䰻陁榀傦畆𡝭駚剳\\\"],[\\\"9fae\\\",\\\"酙隁酜\\\"],[\\\"9fb2\\\",\\\"酑𨺗捿𦴣櫊嘑醎畺抅𠏼獏籰𥰡𣳽\\\"],[\\\"9fc1\\\",\\\"𤤙盖鮝个𠳔莾衂\\\"],[\\\"9fc9\\\",\\\"届槀僭坺刟巵从氱𠇲伹咜哚劚趂㗾弌㗳\\\"],[\\\"9fdb\\\",\\\"歒酼龥鮗頮颴骺麨麄煺笔\\\"],[\\\"9fe7\\\",\\\"毺蠘罸\\\"],[\\\"9feb\\\",\\\"嘠𪙊蹷齓\\\"],[\\\"9ff0\\\",\\\"跔蹏鸜踁抂𨍽踨蹵竓𤩷稾磘泪詧瘇\\\"],[\\\"a040\\\",\\\"𨩚鼦泎蟖痃𪊲硓咢贌狢獱謭猂瓱賫𤪻蘯徺袠䒷\\\"],[\\\"a055\\\",\\\"𡠻𦸅\\\"],[\\\"a058\\\",\\\"詾𢔛\\\"],[\\\"a05b\\\",\\\"惽癧髗鵄鍮鮏蟵\\\"],[\\\"a063\\\",\\\"蠏賷猬霡鮰㗖犲䰇籑饊𦅙慙䰄麖慽\\\"],[\\\"a073\\\",\\\"坟慯抦戹拎㩜懢厪𣏵捤栂㗒\\\"],[\\\"a0a1\\\",\\\"嵗𨯂迚𨸹\\\"],[\\\"a0a6\\\",\\\"僙𡵆礆匲阸𠼻䁥\\\"],[\\\"a0ae\\\",\\\"矾\\\"],[\\\"a0b0\\\",\\\"糂𥼚糚稭聦聣絍甅瓲覔舚朌聢𧒆聛瓰脃眤覉𦟌畓𦻑螩蟎臈螌詉貭譃眫瓸蓚㘵榲趦\\\"],[\\\"a0d4\\\",\\\"覩瑨涹蟁𤀑瓧㷛煶悤憜㳑煢恷\\\"],[\\\"a0e2\\\",\\\"罱𨬭牐惩䭾删㰘𣳇𥻗𧙖𥔱𡥄𡋾𩤃𦷜𧂭峁𦆭𨨏𣙷𠃮𦡆𤼎䕢嬟𦍌齐麦𦉫\\\"],[\\\"a3c0\\\",\\\"␀\\\",31,\\\"␡\\\"],[\\\"c6a1\\\",\\\"①\\\",9,\\\"⑴\\\",9,\\\"ⅰ\\\",9,\\\"丶丿亅亠冂冖冫勹匸卩厶夊宀巛⼳广廴彐彡攴无疒癶辵隶¨ˆヽヾゝゞ〃仝々〆〇ー［］✽ぁ\\\",23],[\\\"c740\\\",\\\"す\\\",58,\\\"ァアィイ\\\"],[\\\"c7a1\\\",\\\"ゥ\\\",81,\\\"А\\\",5,\\\"ЁЖ\\\",4],[\\\"c840\\\",\\\"Л\\\",26,\\\"ёж\\\",25,\\\"⇧↸↹㇏𠃌乚𠂊刂䒑\\\"],[\\\"c8a1\\\",\\\"龰冈龱𧘇\\\"],[\\\"c8cd\\\",\\\"￢￤＇＂㈱№℡゛゜⺀⺄⺆⺇⺈⺊⺌⺍⺕⺜⺝⺥⺧⺪⺬⺮⺶⺼⺾⻆⻊⻌⻍⻏⻖⻗⻞⻣\\\"],[\\\"c8f5\\\",\\\"ʃɐɛɔɵœøŋʊɪ\\\"],[\\\"f9fe\\\",\\\"￭\\\"],[\\\"fa40\\\",\\\"𠕇鋛𠗟𣿅蕌䊵珯况㙉𤥂𨧤鍄𡧛苮𣳈砼杄拟𤤳𨦪𠊠𦮳𡌅侫𢓭倈𦴩𧪄𣘀𤪱𢔓倩𠍾徤𠎀𠍇滛𠐟偽儁㑺儎顬㝃萖𤦤𠒇兠𣎴兪𠯿𢃼𠋥𢔰𠖎𣈳𡦃宂蝽𠖳𣲙冲冸\\\"],[\\\"faa1\\\",\\\"鴴凉减凑㳜凓𤪦决凢卂凭菍椾𣜭彻刋刦刼劵剗劔効勅簕蕂勠蘍𦬓包𨫞啉滙𣾀𠥔𣿬匳卄𠯢泋𡜦栛珕恊㺪㣌𡛨燝䒢卭却𨚫卾卿𡖖𡘓矦厓𨪛厠厫厮玧𥝲㽙玜叁叅汉义埾叙㪫𠮏叠𣿫𢶣叶𠱷吓灹唫晗浛呭𦭓𠵴啝咏咤䞦𡜍𠻝㶴𠵍\\\"],[\\\"fb40\\\",\\\"𨦼𢚘啇䳭启琗喆喩嘅𡣗𤀺䕒𤐵暳𡂴嘷曍𣊊暤暭噍噏磱囱鞇叾圀囯园𨭦㘣𡉏坆𤆥汮炋坂㚱𦱾埦𡐖堃𡑔𤍣堦𤯵塜墪㕡壠壜𡈼壻寿坃𪅐𤉸鏓㖡够梦㛃湙\\\"],[\\\"fba1\\\",\\\"𡘾娤啓𡚒蔅姉𠵎𦲁𦴪𡟜姙𡟻𡞲𦶦浱𡠨𡛕姹𦹅媫婣㛦𤦩婷㜈媖瑥嫓𦾡𢕔㶅𡤑㜲𡚸広勐孶斈孼𧨎䀄䡝𠈄寕慠𡨴𥧌𠖥寳宝䴐尅𡭄尓珎尔𡲥𦬨屉䣝岅峩峯嶋𡷹𡸷崐崘嵆𡺤岺巗苼㠭𤤁𢁉𢅳芇㠶㯂帮檊幵幺𤒼𠳓厦亷廐厨𡝱帉廴𨒂\\\"],[\\\"fc40\\\",\\\"廹廻㢠廼栾鐛弍𠇁弢㫞䢮𡌺强𦢈𢏐彘𢑱彣鞽𦹮彲鍀𨨶徧嶶㵟𥉐𡽪𧃸𢙨釖𠊞𨨩怱暅𡡷㥣㷇㘹垐𢞴祱㹀悞悤悳𤦂𤦏𧩓璤僡媠慤萤慂慈𦻒憁凴𠙖憇宪𣾷\\\"],[\\\"fca1\\\",\\\"𢡟懓𨮝𩥝懐㤲𢦀𢣁怣慜攞掋𠄘担𡝰拕𢸍捬𤧟㨗搸揸𡎎𡟼撐澊𢸶頔𤂌𥜝擡擥鑻㩦携㩗敍漖𤨨𤨣斅敭敟𣁾斵𤥀䬷旑䃘𡠩无旣忟𣐀昘𣇷𣇸晄𣆤𣆥晋𠹵晧𥇦晳晴𡸽𣈱𨗴𣇈𥌓矅𢣷馤朂𤎜𤨡㬫槺𣟂杞杧杢𤇍𩃭柗䓩栢湐鈼栁𣏦𦶠桝\\\"],[\\\"fd40\\\",\\\"𣑯槡樋𨫟楳棃𣗍椁椀㴲㨁𣘼㮀枬楡𨩊䋼椶榘㮡𠏉荣傐槹𣙙𢄪橅𣜃檝㯳枱櫈𩆜㰍欝𠤣惞欵歴𢟍溵𣫛𠎵𡥘㝀吡𣭚毡𣻼毜氷𢒋𤣱𦭑汚舦汹𣶼䓅𣶽𤆤𤤌𤤀\\\"],[\\\"fda1\\\",\\\"𣳉㛥㳫𠴲鮃𣇹𢒑羏样𦴥𦶡𦷫涖浜湼漄𤥿𤂅𦹲蔳𦽴凇沜渝萮𨬡港𣸯瑓𣾂秌湏媑𣁋濸㜍澝𣸰滺𡒗𤀽䕕鏰潄潜㵎潴𩅰㴻澟𤅄濓𤂑𤅕𤀹𣿰𣾴𤄿凟𤅖𤅗𤅀𦇝灋灾炧炁烌烕烖烟䄄㷨熴熖𤉷焫煅媈煊煮岜𤍥煏鍢𤋁焬𤑚𤨧𤨢熺𨯨炽爎\\\"],[\\\"fe40\\\",\\\"鑂爕夑鑃爤鍁𥘅爮牀𤥴梽牕牗㹕𣁄栍漽犂猪猫𤠣𨠫䣭𨠄猨献珏玪𠰺𦨮珉瑉𤇢𡛧𤨤昣㛅𤦷𤦍𤧻珷琕椃𤨦琹𠗃㻗瑜𢢭瑠𨺲瑇珤瑶莹瑬㜰瑴鏱樬璂䥓𤪌\\\"],[\\\"fea1\\\",\\\"𤅟𤩹𨮏孆𨰃𡢞瓈𡦈甎瓩甞𨻙𡩋寗𨺬鎅畍畊畧畮𤾂㼄𤴓疎瑝疞疴瘂瘬癑癏癯癶𦏵皐臯㟸𦤑𦤎皡皥皷盌𦾟葢𥂝𥅽𡸜眞眦着撯𥈠睘𣊬瞯𨥤𨥨𡛁矴砉𡍶𤨒棊碯磇磓隥礮𥗠磗礴碱𧘌辸袄𨬫𦂃𢘜禆褀椂禀𥡗禝𧬹礼禩渪𧄦㺨秆𩄍秔\\\"]]\");/***/},/* 320 */ /***/function(module,exports){/* (ignored) */ /***/},/* 321 */ /***/function(module,exports){/* (ignored) */ /***/},/* 322 */ /***/function(module,exports,__nested_webpack_require_4380762__){// Generated by CoffeeScript 1.7.1\n(function(){var ArrayT,LazyArray,LazyArrayT,NumberT,inspect,utils,__hasProp={}.hasOwnProperty,__extends=function(child,parent){for(var key in parent){if(__hasProp.call(parent,key))child[key]=parent[key];}function ctor(){this.constructor=child;}ctor.prototype=parent.prototype;child.prototype=new ctor();child.__super__=parent.prototype;return child;};ArrayT=__nested_webpack_require_4380762__(178);NumberT=__nested_webpack_require_4380762__(49).Number;utils=__nested_webpack_require_4380762__(26);inspect=__nested_webpack_require_4380762__(104).inspect;LazyArrayT=function(_super){__extends(LazyArrayT,_super);function LazyArrayT(){return LazyArrayT.__super__.constructor.apply(this,arguments);}LazyArrayT.prototype.decode=function(stream,parent){var length,pos,res;pos=stream.pos;length=utils.resolveLength(this.length,stream,parent);if(this.length instanceof NumberT){parent={parent:parent,_startOffset:pos,_currentOffset:0,_length:length};}res=new LazyArray(this.type,length,stream,parent);stream.pos+=length*this.type.size(null,parent);return res;};LazyArrayT.prototype.size=function(val,ctx){if(val instanceof LazyArray){val=val.toArray();}return LazyArrayT.__super__.size.call(this,val,ctx);};LazyArrayT.prototype.encode=function(stream,val,ctx){if(val instanceof LazyArray){val=val.toArray();}return LazyArrayT.__super__.encode.call(this,stream,val,ctx);};return LazyArrayT;}(ArrayT);LazyArray=function(){function LazyArray(type,length,stream,ctx){this.type=type;this.length=length;this.stream=stream;this.ctx=ctx;this.base=this.stream.pos;this.items=[];}LazyArray.prototype.get=function(index){var pos;if(index<0||index>=this.length){return void 0;}if(this.items[index]==null){pos=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.ctx)*index;this.items[index]=this.type.decode(this.stream,this.ctx);this.stream.pos=pos;}return this.items[index];};LazyArray.prototype.toArray=function(){var i,_i,_ref,_results;_results=[];for(i=_i=0,_ref=this.length;_i<_ref;i=_i+=1){_results.push(this.get(i));}return _results;};LazyArray.prototype.inspect=function(){return inspect(this.toArray());};return LazyArray;}();module.exports=LazyArrayT;}).call(this);/***/},/* 323 */ /***/function(module,exports){// Generated by CoffeeScript 1.7.1\n(function(){var Bitfield;Bitfield=function(){function Bitfield(type,flags){this.type=type;this.flags=flags!=null?flags:[];}Bitfield.prototype.decode=function(stream){var flag,i,res,val,_i,_len,_ref;val=this.type.decode(stream);res={};_ref=this.flags;for(i=_i=0,_len=_ref.length;_i<_len;i=++_i){flag=_ref[i];if(flag!=null){res[flag]=!!(val&1<<i);}}return res;};Bitfield.prototype.size=function(){return this.type.size();};Bitfield.prototype.encode=function(stream,keys){var flag,i,val,_i,_len,_ref;val=0;_ref=this.flags;for(i=_i=0,_len=_ref.length;_i<_len;i=++_i){flag=_ref[i];if(flag!=null){if(keys[flag]){val|=1<<i;}}}return this.type.encode(stream,val);};return Bitfield;}();module.exports=Bitfield;}).call(this);/***/},/* 324 */ /***/function(module,exports){// Generated by CoffeeScript 1.7.1\n(function(){var BooleanT;BooleanT=function(){function BooleanT(type){this.type=type;}BooleanT.prototype.decode=function(stream,parent){return!!this.type.decode(stream,parent);};BooleanT.prototype.size=function(val,parent){return this.type.size(val,parent);};BooleanT.prototype.encode=function(stream,val,parent){return this.type.encode(stream,+val,parent);};return BooleanT;}();module.exports=BooleanT;}).call(this);/***/},/* 325 */ /***/function(module,exports,__nested_webpack_require_4384269__){// Generated by CoffeeScript 1.7.1\n(function(){var BufferT,NumberT,utils;utils=__nested_webpack_require_4384269__(26);NumberT=__nested_webpack_require_4384269__(49).Number;BufferT=function(){function BufferT(length){this.length=length;}BufferT.prototype.decode=function(stream,parent){var length;length=utils.resolveLength(this.length,stream,parent);return stream.readBuffer(length);};BufferT.prototype.size=function(val,parent){if(!val){return utils.resolveLength(this.length,null,parent);}return val.length;};BufferT.prototype.encode=function(stream,buf,parent){if(this.length instanceof NumberT){this.length.encode(stream,buf.length);}return stream.writeBuffer(buf);};return BufferT;}();module.exports=BufferT;}).call(this);/***/},/* 326 */ /***/function(module,exports){// Generated by CoffeeScript 1.7.1\n(function(){var Enum;Enum=function(){function Enum(type,options){this.type=type;this.options=options!=null?options:[];}Enum.prototype.decode=function(stream){var index;index=this.type.decode(stream);return this.options[index]||index;};Enum.prototype.size=function(){return this.type.size();};Enum.prototype.encode=function(stream,val){var index;index=this.options.indexOf(val);if(index===-1){throw new Error(\"Unknown option in enum: \"+val);}return this.type.encode(stream,index);};return Enum;}();module.exports=Enum;}).call(this);/***/},/* 327 */ /***/function(module,exports){// Generated by CoffeeScript 1.7.1\n(function(){var Optional;Optional=function(){function Optional(type,condition){this.type=type;this.condition=condition!=null?condition:true;}Optional.prototype.decode=function(stream,parent){var condition;condition=this.condition;if(typeof condition==='function'){condition=condition.call(parent,parent);}if(condition){return this.type.decode(stream,parent);}};Optional.prototype.size=function(val,parent){var condition;condition=this.condition;if(typeof condition==='function'){condition=condition.call(parent,parent);}if(condition){return this.type.size(val,parent);}else{return 0;}};Optional.prototype.encode=function(stream,val,parent){var condition;condition=this.condition;if(typeof condition==='function'){condition=condition.call(parent,parent);}if(condition){return this.type.encode(stream,val,parent);}};return Optional;}();module.exports=Optional;}).call(this);/***/},/* 328 */ /***/function(module,exports,__nested_webpack_require_4386600__){// Generated by CoffeeScript 1.7.1\n(function(){var Reserved,utils;utils=__nested_webpack_require_4386600__(26);Reserved=function(){function Reserved(type,count){this.type=type;this.count=count!=null?count:1;}Reserved.prototype.decode=function(stream,parent){stream.pos+=this.size(null,parent);return void 0;};Reserved.prototype.size=function(data,parent){var count;count=utils.resolveLength(this.count,null,parent);return this.type.size()*count;};Reserved.prototype.encode=function(stream,val,parent){return stream.fill(0,this.size(val,parent));};return Reserved;}();module.exports=Reserved;}).call(this);/***/},/* 329 */ /***/function(module,exports,__nested_webpack_require_4387257__){/* WEBPACK VAR INJECTION */(function(Buffer){// Generated by CoffeeScript 1.7.1\n(function(){var NumberT,StringT,utils;NumberT=__nested_webpack_require_4387257__(49).Number;utils=__nested_webpack_require_4387257__(26);StringT=function(){function StringT(length,encoding){this.length=length;this.encoding=encoding!=null?encoding:'ascii';}StringT.prototype.decode=function(stream,parent){var buffer,encoding,length,pos,string;length=function(){if(this.length!=null){return utils.resolveLength(this.length,stream,parent);}else{buffer=stream.buffer,length=stream.length,pos=stream.pos;while(pos<length&&buffer[pos]!==0x00){++pos;}return pos-stream.pos;}}.call(this);encoding=this.encoding;if(typeof encoding==='function'){encoding=encoding.call(parent,parent)||'ascii';}string=stream.readString(length,encoding);if(this.length==null&&stream.pos<stream.length){stream.pos++;}return string;};StringT.prototype.size=function(val,parent){var encoding,size;if(!val){return utils.resolveLength(this.length,null,parent);}encoding=this.encoding;if(typeof encoding==='function'){encoding=encoding.call(parent!=null?parent.val:void 0,parent!=null?parent.val:void 0)||'ascii';}if(encoding==='utf16be'){encoding='utf16le';}size=Buffer.byteLength(val,encoding);if(this.length instanceof NumberT){size+=this.length.size();}if(this.length==null){size++;}return size;};StringT.prototype.encode=function(stream,val,parent){var encoding;encoding=this.encoding;if(typeof encoding==='function'){encoding=encoding.call(parent!=null?parent.val:void 0,parent!=null?parent.val:void 0)||'ascii';}if(this.length instanceof NumberT){this.length.encode(stream,Buffer.byteLength(val,encoding));}stream.writeString(val,encoding);if(this.length==null){return stream.writeUInt8(0x00);}};return StringT;}();module.exports=StringT;}).call(this);/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_4387257__(4).Buffer);/***/},/* 330 */ /***/function(module,exports,__nested_webpack_require_4389171__){// Generated by CoffeeScript 1.7.1\n(function(){var Struct,VersionedStruct,__hasProp={}.hasOwnProperty,__extends=function(child,parent){for(var key in parent){if(__hasProp.call(parent,key))child[key]=parent[key];}function ctor(){this.constructor=child;}ctor.prototype=parent.prototype;child.prototype=new ctor();child.__super__=parent.prototype;return child;};Struct=__nested_webpack_require_4389171__(179);VersionedStruct=function(_super){__extends(VersionedStruct,_super);function VersionedStruct(type,versions){this.type=type;this.versions=versions!=null?versions:{};if(typeof this.type==='string'){this.versionGetter=new Function('parent',\"return parent.\"+this.type);this.versionSetter=new Function('parent','version',\"return parent.\"+this.type+\" = version\");}}VersionedStruct.prototype.decode=function(stream,parent,length){var fields,res,_ref;if(length==null){length=0;}res=this._setup(stream,parent,length);if(typeof this.type==='string'){res.version=this.versionGetter(parent);}else{res.version=this.type.decode(stream);}if(this.versions.header){this._parseFields(stream,res,this.versions.header);}fields=this.versions[res.version];if(fields==null){throw new Error(\"Unknown version \"+res.version);}if(fields instanceof VersionedStruct){return fields.decode(stream,parent);}this._parseFields(stream,res,fields);if((_ref=this.process)!=null){_ref.call(res,stream);}return res;};VersionedStruct.prototype.size=function(val,parent,includePointers){var ctx,fields,key,size,type,_ref;if(includePointers==null){includePointers=true;}if(!val){throw new Error('Not a fixed size');}ctx={parent:parent,val:val,pointerSize:0};size=0;if(typeof this.type!=='string'){size+=this.type.size(val.version,ctx);}if(this.versions.header){_ref=this.versions.header;for(key in _ref){type=_ref[key];if(type.size!=null){size+=type.size(val[key],ctx);}}}fields=this.versions[val.version];if(fields==null){throw new Error(\"Unknown version \"+val.version);}for(key in fields){type=fields[key];if(type.size!=null){size+=type.size(val[key],ctx);}}if(includePointers){size+=ctx.pointerSize;}return size;};VersionedStruct.prototype.encode=function(stream,val,parent){var ctx,fields,i,key,ptr,type,_ref,_ref1;if((_ref=this.preEncode)!=null){_ref.call(val,stream);}ctx={pointers:[],startOffset:stream.pos,parent:parent,val:val,pointerSize:0};ctx.pointerOffset=stream.pos+this.size(val,ctx,false);if(typeof this.type!=='string'){this.type.encode(stream,val.version);}if(this.versions.header){_ref1=this.versions.header;for(key in _ref1){type=_ref1[key];if(type.encode!=null){type.encode(stream,val[key],ctx);}}}fields=this.versions[val.version];for(key in fields){type=fields[key];if(type.encode!=null){type.encode(stream,val[key],ctx);}}i=0;while(i<ctx.pointers.length){ptr=ctx.pointers[i++];ptr.type.encode(stream,ptr.val,ptr.parent);}};return VersionedStruct;}(Struct);module.exports=VersionedStruct;}).call(this);/***/},/* 331 */ /***/function(module,exports,__nested_webpack_require_4392111__){// Generated by CoffeeScript 1.7.1\n(function(){var Pointer,VoidPointer,utils;utils=__nested_webpack_require_4392111__(26);Pointer=function(){function Pointer(offsetType,type,options){var _base,_base1,_base2,_base3;this.offsetType=offsetType;this.type=type;this.options=options!=null?options:{};if(this.type==='void'){this.type=null;}if((_base=this.options).type==null){_base.type='local';}if((_base1=this.options).allowNull==null){_base1.allowNull=true;}if((_base2=this.options).nullValue==null){_base2.nullValue=0;}if((_base3=this.options).lazy==null){_base3.lazy=false;}if(this.options.relativeTo){this.relativeToGetter=new Function('ctx',\"return ctx.\"+this.options.relativeTo);}}Pointer.prototype.decode=function(stream,ctx){var c,decodeValue,offset,ptr,relative,val;offset=this.offsetType.decode(stream,ctx);if(offset===this.options.nullValue&&this.options.allowNull){return null;}relative=function(){switch(this.options.type){case'local':return ctx._startOffset;case'immediate':return stream.pos-this.offsetType.size();case'parent':return ctx.parent._startOffset;default:c=ctx;while(c.parent){c=c.parent;}return c._startOffset||0;}}.call(this);if(this.options.relativeTo){relative+=this.relativeToGetter(ctx);}ptr=offset+relative;if(this.type!=null){val=null;decodeValue=function(_this){return function(){var pos;if(val!=null){return val;}pos=stream.pos;stream.pos=ptr;val=_this.type.decode(stream,ctx);stream.pos=pos;return val;};}(this);if(this.options.lazy){return new utils.PropertyDescriptor({get:decodeValue});}return decodeValue();}else{return ptr;}};Pointer.prototype.size=function(val,ctx){var parent,type;parent=ctx;switch(this.options.type){case'local':case'immediate':break;case'parent':ctx=ctx.parent;break;default:while(ctx.parent){ctx=ctx.parent;}}type=this.type;if(type==null){if(!(val instanceof VoidPointer)){throw new Error(\"Must be a VoidPointer\");}type=val.type;val=val.value;}if(val&&ctx){ctx.pointerSize+=type.size(val,parent);}return this.offsetType.size();};Pointer.prototype.encode=function(stream,val,ctx){var parent,relative,type;parent=ctx;if(val==null){this.offsetType.encode(stream,this.options.nullValue);return;}switch(this.options.type){case'local':relative=ctx.startOffset;break;case'immediate':relative=stream.pos+this.offsetType.size(val,parent);break;case'parent':ctx=ctx.parent;relative=ctx.startOffset;break;default:relative=0;while(ctx.parent){ctx=ctx.parent;}}if(this.options.relativeTo){relative+=this.relativeToGetter(parent.val);}this.offsetType.encode(stream,ctx.pointerOffset-relative);type=this.type;if(type==null){if(!(val instanceof VoidPointer)){throw new Error(\"Must be a VoidPointer\");}type=val.type;val=val.value;}ctx.pointers.push({type:type,val:val,parent:parent});return ctx.pointerOffset+=type.size(val,parent);};return Pointer;}();VoidPointer=function(){function VoidPointer(type,value){this.type=type;this.value=value;}return VoidPointer;}();exports.Pointer=Pointer;exports.VoidPointer=VoidPointer;}).call(this);/***/},/* 332 */ /***/function(module,exports,__nested_webpack_require_4395140__){module.exports={\"default\":__nested_webpack_require_4395140__(333),__esModule:true};/***/},/* 333 */ /***/function(module,exports,__nested_webpack_require_4395275__){__nested_webpack_require_4395275__(334);var $Object=__nested_webpack_require_4395275__(2).Object;module.exports=function getOwnPropertyDescriptor(it,key){return $Object.getOwnPropertyDescriptor(it,key);};/***/},/* 334 */ /***/function(module,exports,__nested_webpack_require_4395516__){// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\nvar toIObject=__nested_webpack_require_4395516__(35);var $getOwnPropertyDescriptor=__nested_webpack_require_4395516__(113).f;__nested_webpack_require_4395516__(115)('getOwnPropertyDescriptor',function(){return function getOwnPropertyDescriptor(it,key){return $getOwnPropertyDescriptor(toIObject(it),key);};});/***/},/* 335 */ /***/function(module,exports,__nested_webpack_require_4395897__){module.exports={\"default\":__nested_webpack_require_4395897__(336),__esModule:true};/***/},/* 336 */ /***/function(module,exports,__nested_webpack_require_4396032__){__nested_webpack_require_4396032__(74);__nested_webpack_require_4396032__(60);module.exports=__nested_webpack_require_4396032__(344);/***/},/* 337 */ /***/function(module,exports,__nested_webpack_require_4396187__){\"use strict\";var addToUnscopables=__nested_webpack_require_4396187__(338);var step=__nested_webpack_require_4396187__(183);var Iterators=__nested_webpack_require_4396187__(58);var toIObject=__nested_webpack_require_4396187__(35);// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports=__nested_webpack_require_4396187__(116)(Array,'Array',function(iterated,kind){this._t=toIObject(iterated);// target\nthis._i=0;// next index\nthis._k=kind;// kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n},function(){var O=this._t;var kind=this._k;var index=this._i++;if(!O||index>=O.length){this._t=undefined;return step(1);}if(kind=='keys')return step(0,index);if(kind=='values')return step(0,O[index]);return step(0,[index,O[index]]);},'values');// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments=Iterators.Array;addToUnscopables('keys');addToUnscopables('values');addToUnscopables('entries');/***/},/* 338 */ /***/function(module,exports){module.exports=function(){/* empty */};/***/},/* 339 */ /***/function(module,exports,__nested_webpack_require_4397303__){\"use strict\";var create=__nested_webpack_require_4397303__(76);var descriptor=__nested_webpack_require_4397303__(57);var setToStringTag=__nested_webpack_require_4397303__(79);var IteratorPrototype={};// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\n__nested_webpack_require_4397303__(27)(IteratorPrototype,__nested_webpack_require_4397303__(14)('iterator'),function(){return this;});module.exports=function(Constructor,NAME,next){Constructor.prototype=create(IteratorPrototype,{next:descriptor(1,next)});setToStringTag(Constructor,NAME+' Iterator');};/***/},/* 340 */ /***/function(module,exports,__nested_webpack_require_4397845__){// false -> Array#indexOf\n// true  -> Array#includes\nvar toIObject=__nested_webpack_require_4397845__(35);var toLength=__nested_webpack_require_4397845__(77);var toAbsoluteIndex=__nested_webpack_require_4397845__(187);module.exports=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIObject($this);var length=toLength(O.length);var index=toAbsoluteIndex(fromIndex,length);var value;// Array#includes uses SameValueZero equality algorithm\n// eslint-disable-next-line no-self-compare\nif(IS_INCLUDES&&el!=el)while(length>index){value=O[index++];// eslint-disable-next-line no-self-compare\nif(value!=value)return true;// Array#indexOf ignores holes, Array#includes - not\n}else for(;length>index;index++)if(IS_INCLUDES||index in O){if(O[index]===el)return IS_INCLUDES||index||0;}return!IS_INCLUDES&&-1;};};/***/},/* 341 */ /***/function(module,exports,__nested_webpack_require_4398684__){var document=__nested_webpack_require_4398684__(21).document;module.exports=document&&document.documentElement;/***/},/* 342 */ /***/function(module,exports,__nested_webpack_require_4398847__){// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has=__nested_webpack_require_4398847__(36);var toObject=__nested_webpack_require_4398847__(50);var IE_PROTO=__nested_webpack_require_4398847__(118)('IE_PROTO');var ObjectProto=Object.prototype;module.exports=Object.getPrototypeOf||function(O){O=toObject(O);if(has(O,IE_PROTO))return O[IE_PROTO];if(typeof O.constructor=='function'&&O instanceof O.constructor){return O.constructor.prototype;}return O instanceof Object?ObjectProto:null;};/***/},/* 343 */ /***/function(module,exports,__nested_webpack_require_4399359__){var toInteger=__nested_webpack_require_4399359__(117);var defined=__nested_webpack_require_4399359__(112);// true  -> String#at\n// false -> String#codePointAt\nmodule.exports=function(TO_STRING){return function(that,pos){var s=String(defined(that));var i=toInteger(pos);var l=s.length;var a,b;if(i<0||i>=l)return TO_STRING?'':undefined;a=s.charCodeAt(i);return a<0xd800||a>0xdbff||i+1===l||(b=s.charCodeAt(i+1))<0xdc00||b>0xdfff?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):(a-0xd800<<10)+(b-0xdc00)+0x10000;};};/***/},/* 344 */ /***/function(module,exports,__nested_webpack_require_4399911__){var anObject=__nested_webpack_require_4399911__(28);var get=__nested_webpack_require_4399911__(121);module.exports=__nested_webpack_require_4399911__(2).getIterator=function(it){var iterFn=get(it);if(typeof iterFn!='function')throw TypeError(it+' is not iterable!');return anObject(iterFn.call(it));};/***/},/* 345 */ /***/function(module,exports,__nested_webpack_require_4400234__){module.exports={\"default\":__nested_webpack_require_4400234__(346),__esModule:true};/***/},/* 346 */ /***/function(module,exports,__nested_webpack_require_4400369__){__nested_webpack_require_4400369__(347);module.exports=__nested_webpack_require_4400369__(2).Object.freeze;/***/},/* 347 */ /***/function(module,exports,__nested_webpack_require_4400513__){// 19.1.2.5 Object.freeze(O)\nvar isObject=__nested_webpack_require_4400513__(20);var meta=__nested_webpack_require_4400513__(80).onFreeze;__nested_webpack_require_4400513__(115)('freeze',function($freeze){return function freeze(it){return $freeze&&isObject(it)?$freeze(meta(it)):it;};});/***/},/* 348 */ /***/function(module,exports,__nested_webpack_require_4400822__){module.exports={\"default\":__nested_webpack_require_4400822__(349),__esModule:true};/***/},/* 349 */ /***/function(module,exports,__nested_webpack_require_4400957__){__nested_webpack_require_4400957__(60);__nested_webpack_require_4400957__(74);module.exports=__nested_webpack_require_4400957__(123).f('iterator');/***/},/* 350 */ /***/function(module,exports,__nested_webpack_require_4401126__){module.exports={\"default\":__nested_webpack_require_4401126__(351),__esModule:true};/***/},/* 351 */ /***/function(module,exports,__nested_webpack_require_4401261__){__nested_webpack_require_4401261__(352);__nested_webpack_require_4401261__(126);__nested_webpack_require_4401261__(355);__nested_webpack_require_4401261__(356);module.exports=__nested_webpack_require_4401261__(2).Symbol;/***/},/* 352 */ /***/function(module,exports,__nested_webpack_require_4401473__){\"use strict\";// ECMAScript 6 symbols shim\nvar global=__nested_webpack_require_4401473__(21);var has=__nested_webpack_require_4401473__(36);var DESCRIPTORS=__nested_webpack_require_4401473__(13);var $export=__nested_webpack_require_4401473__(7);var redefine=__nested_webpack_require_4401473__(184);var META=__nested_webpack_require_4401473__(80).KEY;var $fails=__nested_webpack_require_4401473__(37);var shared=__nested_webpack_require_4401473__(119);var setToStringTag=__nested_webpack_require_4401473__(79);var uid=__nested_webpack_require_4401473__(78);var wks=__nested_webpack_require_4401473__(14);var wksExt=__nested_webpack_require_4401473__(123);var wksDefine=__nested_webpack_require_4401473__(124);var enumKeys=__nested_webpack_require_4401473__(353);var isArray=__nested_webpack_require_4401473__(189);var anObject=__nested_webpack_require_4401473__(28);var isObject=__nested_webpack_require_4401473__(20);var toObject=__nested_webpack_require_4401473__(50);var toIObject=__nested_webpack_require_4401473__(35);var toPrimitive=__nested_webpack_require_4401473__(114);var createDesc=__nested_webpack_require_4401473__(57);var _create=__nested_webpack_require_4401473__(76);var gOPNExt=__nested_webpack_require_4401473__(354);var $GOPD=__nested_webpack_require_4401473__(113);var $GOPS=__nested_webpack_require_4401473__(125);var $DP=__nested_webpack_require_4401473__(17);var $keys=__nested_webpack_require_4401473__(59);var gOPD=$GOPD.f;var dP=$DP.f;var gOPN=gOPNExt.f;var $Symbol=global.Symbol;var $JSON=global.JSON;var _stringify=$JSON&&$JSON.stringify;var PROTOTYPE='prototype';var HIDDEN=wks('_hidden');var TO_PRIMITIVE=wks('toPrimitive');var isEnum={}.propertyIsEnumerable;var SymbolRegistry=shared('symbol-registry');var AllSymbols=shared('symbols');var OPSymbols=shared('op-symbols');var ObjectProto=Object[PROTOTYPE];var USE_NATIVE=typeof $Symbol=='function'&&!!$GOPS.f;var QObject=global.QObject;// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild;// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc=DESCRIPTORS&&$fails(function(){return _create(dP({},'a',{get:function(){return dP(this,'a',{value:7}).a;}})).a!=7;})?function(it,key,D){var protoDesc=gOPD(ObjectProto,key);if(protoDesc)delete ObjectProto[key];dP(it,key,D);if(protoDesc&&it!==ObjectProto)dP(ObjectProto,key,protoDesc);}:dP;var wrap=function(tag){var sym=AllSymbols[tag]=_create($Symbol[PROTOTYPE]);sym._k=tag;return sym;};var isSymbol=USE_NATIVE&&typeof $Symbol.iterator=='symbol'?function(it){return typeof it=='symbol';}:function(it){return it instanceof $Symbol;};var $defineProperty=function defineProperty(it,key,D){if(it===ObjectProto)$defineProperty(OPSymbols,key,D);anObject(it);key=toPrimitive(key,true);anObject(D);if(has(AllSymbols,key)){if(!D.enumerable){if(!has(it,HIDDEN))dP(it,HIDDEN,createDesc(1,{}));it[HIDDEN][key]=true;}else{if(has(it,HIDDEN)&&it[HIDDEN][key])it[HIDDEN][key]=false;D=_create(D,{enumerable:createDesc(0,false)});}return setSymbolDesc(it,key,D);}return dP(it,key,D);};var $defineProperties=function defineProperties(it,P){anObject(it);var keys=enumKeys(P=toIObject(P));var i=0;var l=keys.length;var key;while(l>i)$defineProperty(it,key=keys[i++],P[key]);return it;};var $create=function create(it,P){return P===undefined?_create(it):$defineProperties(_create(it),P);};var $propertyIsEnumerable=function propertyIsEnumerable(key){var E=isEnum.call(this,key=toPrimitive(key,true));if(this===ObjectProto&&has(AllSymbols,key)&&!has(OPSymbols,key))return false;return E||!has(this,key)||!has(AllSymbols,key)||has(this,HIDDEN)&&this[HIDDEN][key]?E:true;};var $getOwnPropertyDescriptor=function getOwnPropertyDescriptor(it,key){it=toIObject(it);key=toPrimitive(key,true);if(it===ObjectProto&&has(AllSymbols,key)&&!has(OPSymbols,key))return;var D=gOPD(it,key);if(D&&has(AllSymbols,key)&&!(has(it,HIDDEN)&&it[HIDDEN][key]))D.enumerable=true;return D;};var $getOwnPropertyNames=function getOwnPropertyNames(it){var names=gOPN(toIObject(it));var result=[];var i=0;var key;while(names.length>i){if(!has(AllSymbols,key=names[i++])&&key!=HIDDEN&&key!=META)result.push(key);}return result;};var $getOwnPropertySymbols=function getOwnPropertySymbols(it){var IS_OP=it===ObjectProto;var names=gOPN(IS_OP?OPSymbols:toIObject(it));var result=[];var i=0;var key;while(names.length>i){if(has(AllSymbols,key=names[i++])&&(IS_OP?has(ObjectProto,key):true))result.push(AllSymbols[key]);}return result;};// 19.4.1.1 Symbol([description])\nif(!USE_NATIVE){$Symbol=function Symbol(){if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!');var tag=uid(arguments.length>0?arguments[0]:undefined);var $set=function(value){if(this===ObjectProto)$set.call(OPSymbols,value);if(has(this,HIDDEN)&&has(this[HIDDEN],tag))this[HIDDEN][tag]=false;setSymbolDesc(this,tag,createDesc(1,value));};if(DESCRIPTORS&&setter)setSymbolDesc(ObjectProto,tag,{configurable:true,set:$set});return wrap(tag);};redefine($Symbol[PROTOTYPE],'toString',function toString(){return this._k;});$GOPD.f=$getOwnPropertyDescriptor;$DP.f=$defineProperty;__nested_webpack_require_4401473__(190).f=gOPNExt.f=$getOwnPropertyNames;__nested_webpack_require_4401473__(73).f=$propertyIsEnumerable;$GOPS.f=$getOwnPropertySymbols;if(DESCRIPTORS&&!__nested_webpack_require_4401473__(75)){redefine(ObjectProto,'propertyIsEnumerable',$propertyIsEnumerable,true);}wksExt.f=function(name){return wrap(wks(name));};}$export($export.G+$export.W+$export.F*!USE_NATIVE,{Symbol:$Symbol});for(var es6Symbols=// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split(','),j=0;es6Symbols.length>j;)wks(es6Symbols[j++]);for(var wellKnownSymbols=$keys(wks.store),k=0;wellKnownSymbols.length>k;)wksDefine(wellKnownSymbols[k++]);$export($export.S+$export.F*!USE_NATIVE,'Symbol',{// 19.4.2.1 Symbol.for(key)\n'for':function(key){return has(SymbolRegistry,key+='')?SymbolRegistry[key]:SymbolRegistry[key]=$Symbol(key);},// 19.4.2.5 Symbol.keyFor(sym)\nkeyFor:function keyFor(sym){if(!isSymbol(sym))throw TypeError(sym+' is not a symbol!');for(var key in SymbolRegistry)if(SymbolRegistry[key]===sym)return key;},useSetter:function(){setter=true;},useSimple:function(){setter=false;}});$export($export.S+$export.F*!USE_NATIVE,'Object',{// 19.1.2.2 Object.create(O [, Properties])\ncreate:$create,// 19.1.2.4 Object.defineProperty(O, P, Attributes)\ndefineProperty:$defineProperty,// 19.1.2.3 Object.defineProperties(O, Properties)\ndefineProperties:$defineProperties,// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\ngetOwnPropertyDescriptor:$getOwnPropertyDescriptor,// 19.1.2.7 Object.getOwnPropertyNames(O)\ngetOwnPropertyNames:$getOwnPropertyNames,// 19.1.2.8 Object.getOwnPropertySymbols(O)\ngetOwnPropertySymbols:$getOwnPropertySymbols});// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\nvar FAILS_ON_PRIMITIVES=$fails(function(){$GOPS.f(1);});$export($export.S+$export.F*FAILS_ON_PRIMITIVES,'Object',{getOwnPropertySymbols:function getOwnPropertySymbols(it){return $GOPS.f(toObject(it));}});// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON&&$export($export.S+$export.F*(!USE_NATIVE||$fails(function(){var S=$Symbol();// MS Edge converts symbol values to JSON as {}\n// WebKit converts symbol values to JSON as null\n// V8 throws on boxed symbols\nreturn _stringify([S])!='[null]'||_stringify({a:S})!='{}'||_stringify(Object(S))!='{}';})),'JSON',{stringify:function stringify(it){var args=[it];var i=1;var replacer,$replacer;while(arguments.length>i)args.push(arguments[i++]);$replacer=replacer=args[1];if(!isObject(replacer)&&it===undefined||isSymbol(it))return;// IE8 returns string on undefined\nif(!isArray(replacer))replacer=function(key,value){if(typeof $replacer=='function')value=$replacer.call(this,key,value);if(!isSymbol(value))return value;};args[1]=replacer;return _stringify.apply($JSON,args);}});// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE]||__nested_webpack_require_4401473__(27)($Symbol[PROTOTYPE],TO_PRIMITIVE,$Symbol[PROTOTYPE].valueOf);// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol,'Symbol');// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math,'Math',true);// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON,'JSON',true);/***/},/* 353 */ /***/function(module,exports,__nested_webpack_require_4409630__){// all enumerable object keys, includes symbols\nvar getKeys=__nested_webpack_require_4409630__(59);var gOPS=__nested_webpack_require_4409630__(125);var pIE=__nested_webpack_require_4409630__(73);module.exports=function(it){var result=getKeys(it);var getSymbols=gOPS.f;if(getSymbols){var symbols=getSymbols(it);var isEnum=pIE.f;var i=0;var key;while(symbols.length>i)if(isEnum.call(it,key=symbols[i++]))result.push(key);}return result;};/***/},/* 354 */ /***/function(module,exports,__nested_webpack_require_4410088__){// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject=__nested_webpack_require_4410088__(35);var gOPN=__nested_webpack_require_4410088__(190).f;var toString={}.toString;var windowNames=typeof window=='object'&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var getWindowNames=function(it){try{return gOPN(it);}catch(e){return windowNames.slice();}};module.exports.f=function getOwnPropertyNames(it){return windowNames&&toString.call(it)=='[object Window]'?getWindowNames(it):gOPN(toIObject(it));};/***/},/* 355 */ /***/function(module,exports,__nested_webpack_require_4410685__){__nested_webpack_require_4410685__(124)('asyncIterator');/***/},/* 356 */ /***/function(module,exports,__nested_webpack_require_4410794__){__nested_webpack_require_4410794__(124)('observable');/***/},/* 357 */ /***/function(module,exports,__nested_webpack_require_4410900__){module.exports={\"default\":__nested_webpack_require_4410900__(358),__esModule:true};/***/},/* 358 */ /***/function(module,exports,__nested_webpack_require_4411035__){__nested_webpack_require_4411035__(359);module.exports=__nested_webpack_require_4411035__(2).Object.keys;/***/},/* 359 */ /***/function(module,exports,__nested_webpack_require_4411177__){// 19.1.2.14 Object.keys(O)\nvar toObject=__nested_webpack_require_4411177__(50);var $keys=__nested_webpack_require_4411177__(59);__nested_webpack_require_4411177__(115)('keys',function(){return function keys(it){return $keys(toObject(it));};});/***/},/* 360 */ /***/function(module,exports,__nested_webpack_require_4411443__){__nested_webpack_require_4411443__(361);var $Object=__nested_webpack_require_4411443__(2).Object;module.exports=function defineProperty(it,key,desc){return $Object.defineProperty(it,key,desc);};/***/},/* 361 */ /***/function(module,exports,__nested_webpack_require_4411674__){var $export=__nested_webpack_require_4411674__(7);// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S+$export.F*!__nested_webpack_require_4411674__(13),'Object',{defineProperty:__nested_webpack_require_4411674__(17).f});/***/},/* 362 */ /***/function(module,exports,__webpack_require__){\"use strict\";exports.__esModule=true;exports.default=function(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError(\"Cannot call a class as a function\");}};/***/},/* 363 */ /***/function(module,exports,__nested_webpack_require_4412195__){\"use strict\";exports.__esModule=true;var _defineProperty=__nested_webpack_require_4412195__(191);var _defineProperty2=_interopRequireDefault(_defineProperty);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if(\"value\"in descriptor)descriptor.writable=true;(0,_defineProperty2.default)(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();/***/},/* 364 */ /***/function(module,exports,__nested_webpack_require_4413004__){module.exports={\"default\":__nested_webpack_require_4413004__(365),__esModule:true};/***/},/* 365 */ /***/function(module,exports,__nested_webpack_require_4413139__){__nested_webpack_require_4413139__(126);__nested_webpack_require_4413139__(60);__nested_webpack_require_4413139__(74);__nested_webpack_require_4413139__(366);__nested_webpack_require_4413139__(371);__nested_webpack_require_4413139__(373);__nested_webpack_require_4413139__(374);module.exports=__nested_webpack_require_4413139__(2).Map;/***/},/* 366 */ /***/function(module,exports,__nested_webpack_require_4413421__){\"use strict\";var strong=__nested_webpack_require_4413421__(192);var validate=__nested_webpack_require_4413421__(127);var MAP='Map';// 23.1 Map Objects\nmodule.exports=__nested_webpack_require_4413421__(197)(MAP,function(get){return function Map(){return get(this,arguments.length>0?arguments[0]:undefined);};},{// 23.1.3.6 Map.prototype.get(key)\nget:function get(key){var entry=strong.getEntry(validate(this,MAP),key);return entry&&entry.v;},// 23.1.3.9 Map.prototype.set(key, value)\nset:function set(key,value){return strong.def(validate(this,MAP),key===0?0:key,value);}},strong,true);/***/},/* 367 */ /***/function(module,exports,__nested_webpack_require_4414028__){\"use strict\";var global=__nested_webpack_require_4414028__(21);var core=__nested_webpack_require_4414028__(2);var dP=__nested_webpack_require_4414028__(17);var DESCRIPTORS=__nested_webpack_require_4414028__(13);var SPECIES=__nested_webpack_require_4414028__(14)('species');module.exports=function(KEY){var C=typeof core[KEY]=='function'?core[KEY]:global[KEY];if(DESCRIPTORS&&C&&!C[SPECIES])dP.f(C,SPECIES,{configurable:true,get:function(){return this;}});};/***/},/* 368 */ /***/function(module,exports,__nested_webpack_require_4414477__){// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx=__nested_webpack_require_4414477__(38);var IObject=__nested_webpack_require_4414477__(110);var toObject=__nested_webpack_require_4414477__(50);var toLength=__nested_webpack_require_4414477__(77);var asc=__nested_webpack_require_4414477__(369);module.exports=function(TYPE,$create){var IS_MAP=TYPE==1;var IS_FILTER=TYPE==2;var IS_SOME=TYPE==3;var IS_EVERY=TYPE==4;var IS_FIND_INDEX=TYPE==6;var NO_HOLES=TYPE==5||IS_FIND_INDEX;var create=$create||asc;return function($this,callbackfn,that){var O=toObject($this);var self=IObject(O);var f=ctx(callbackfn,that,3);var length=toLength(self.length);var index=0;var result=IS_MAP?create($this,length):IS_FILTER?create($this,0):undefined;var val,res;for(;length>index;index++)if(NO_HOLES||index in self){val=self[index];res=f(val,index,O);if(TYPE){if(IS_MAP)result[index]=res;// map\nelse if(res)switch(TYPE){case 3:return true;// some\ncase 5:return val;// find\ncase 6:return index;// findIndex\ncase 2:result.push(val);// filter\n}else if(IS_EVERY)return false;// every\n}}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:result;};};/***/},/* 369 */ /***/function(module,exports,__nested_webpack_require_4415693__){// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor=__nested_webpack_require_4415693__(370);module.exports=function(original,length){return new(speciesConstructor(original))(length);};/***/},/* 370 */ /***/function(module,exports,__nested_webpack_require_4415953__){var isObject=__nested_webpack_require_4415953__(20);var isArray=__nested_webpack_require_4415953__(189);var SPECIES=__nested_webpack_require_4415953__(14)('species');module.exports=function(original){var C;if(isArray(original)){C=original.constructor;// cross-realm fallback\nif(typeof C=='function'&&(C===Array||isArray(C.prototype)))C=undefined;if(isObject(C)){C=C[SPECIES];if(C===null)C=undefined;}}return C===undefined?Array:C;};/***/},/* 371 */ /***/function(module,exports,__nested_webpack_require_4416407__){// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export=__nested_webpack_require_4416407__(7);$export($export.P+$export.R,'Map',{toJSON:__nested_webpack_require_4416407__(198)('Map')});/***/},/* 372 */ /***/function(module,exports,__nested_webpack_require_4416644__){var forOf=__nested_webpack_require_4416644__(81);module.exports=function(iter,ITERATOR){var result=[];forOf(iter,false,result.push,result,ITERATOR);return result;};/***/},/* 373 */ /***/function(module,exports,__nested_webpack_require_4416860__){// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of\n__nested_webpack_require_4416860__(199)('Map');/***/},/* 374 */ /***/function(module,exports,__nested_webpack_require_4417020__){// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from\n__nested_webpack_require_4417020__(200)('Map');/***/},/* 375 */ /***/function(module,exports,__nested_webpack_require_4417182__){\"use strict\";exports.__esModule=true;var _typeof2=__nested_webpack_require_4417182__(122);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(self,call){if(!self){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");}return call&&((typeof call===\"undefined\"?\"undefined\":(0,_typeof3.default)(call))===\"object\"||typeof call===\"function\")?call:self;};/***/},/* 376 */ /***/function(module,exports,__nested_webpack_require_4417717__){\"use strict\";exports.__esModule=true;var _setPrototypeOf=__nested_webpack_require_4417717__(377);var _setPrototypeOf2=_interopRequireDefault(_setPrototypeOf);var _create=__nested_webpack_require_4417717__(381);var _create2=_interopRequireDefault(_create);var _typeof2=__nested_webpack_require_4417717__(122);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(subClass,superClass){if(typeof superClass!==\"function\"&&superClass!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+(typeof superClass===\"undefined\"?\"undefined\":(0,_typeof3.default)(superClass)));}subClass.prototype=(0,_create2.default)(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)_setPrototypeOf2.default?(0,_setPrototypeOf2.default)(subClass,superClass):subClass.__proto__=superClass;};/***/},/* 377 */ /***/function(module,exports,__nested_webpack_require_4418711__){module.exports={\"default\":__nested_webpack_require_4418711__(378),__esModule:true};/***/},/* 378 */ /***/function(module,exports,__nested_webpack_require_4418846__){__nested_webpack_require_4418846__(379);module.exports=__nested_webpack_require_4418846__(2).Object.setPrototypeOf;/***/},/* 379 */ /***/function(module,exports,__nested_webpack_require_4418998__){// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export=__nested_webpack_require_4418998__(7);$export($export.S,'Object',{setPrototypeOf:__nested_webpack_require_4418998__(380).set});/***/},/* 380 */ /***/function(module,exports,__nested_webpack_require_4419219__){// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */var isObject=__nested_webpack_require_4419219__(20);var anObject=__nested_webpack_require_4419219__(28);var check=function(O,proto){anObject(O);if(!isObject(proto)&&proto!==null)throw TypeError(proto+\": can't set as prototype!\");};module.exports={set:Object.setPrototypeOf||('__proto__'in{}?// eslint-disable-line\nfunction(test,buggy,set){try{set=__nested_webpack_require_4419219__(38)(Function.call,__nested_webpack_require_4419219__(113).f(Object.prototype,'__proto__').set,2);set(test,[]);buggy=!(test instanceof Array);}catch(e){buggy=true;}return function setPrototypeOf(O,proto){check(O,proto);if(buggy)O.__proto__=proto;else set(O,proto);return O;};}({},false):undefined),check:check};/***/},/* 381 */ /***/function(module,exports,__nested_webpack_require_4420020__){module.exports={\"default\":__nested_webpack_require_4420020__(382),__esModule:true};/***/},/* 382 */ /***/function(module,exports,__nested_webpack_require_4420155__){__nested_webpack_require_4420155__(383);var $Object=__nested_webpack_require_4420155__(2).Object;module.exports=function create(P,D){return $Object.create(P,D);};/***/},/* 383 */ /***/function(module,exports,__nested_webpack_require_4420354__){var $export=__nested_webpack_require_4420354__(7);// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S,'Object',{create:__nested_webpack_require_4420354__(76)});/***/},/* 384 */ /***/function(module,exports,__nested_webpack_require_4420572__){module.exports={\"default\":__nested_webpack_require_4420572__(385),__esModule:true};/***/},/* 385 */ /***/function(module,exports,__nested_webpack_require_4420707__){__nested_webpack_require_4420707__(386);var $Object=__nested_webpack_require_4420707__(2).Object;module.exports=function defineProperties(T,D){return $Object.defineProperties(T,D);};/***/},/* 386 */ /***/function(module,exports,__nested_webpack_require_4420926__){var $export=__nested_webpack_require_4420926__(7);// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)\n$export($export.S+$export.F*!__nested_webpack_require_4420926__(13),'Object',{defineProperties:__nested_webpack_require_4420926__(185)});/***/},/* 387 */ /***/function(module,exports,__nested_webpack_require_4421197__){var objectKeys=__nested_webpack_require_4421197__(201);var isArguments=__nested_webpack_require_4421197__(389);var is=__nested_webpack_require_4421197__(390);var isRegex=__nested_webpack_require_4421197__(391);var flags=__nested_webpack_require_4421197__(394);var isDate=__nested_webpack_require_4421197__(400);var getTime=Date.prototype.getTime;function deepEqual(actual,expected,options){var opts=options||{};// 7.1. All identical values are equivalent, as determined by ===.\nif(opts.strict?is(actual,expected):actual===expected){return true;}// 7.3. Other pairs that do not both pass typeof value == 'object', equivalence is determined by ==.\nif(!actual||!expected||typeof actual!=='object'&&typeof expected!=='object'){return opts.strict?is(actual,expected):actual==expected;}/*\r\n       * 7.4. For all other Object pairs, including Array objects, equivalence is\r\n       * determined by having the same number of owned properties (as verified\r\n       * with Object.prototype.hasOwnProperty.call), the same set of keys\r\n       * (although not necessarily the same order), equivalent values for every\r\n       * corresponding key, and an identical 'prototype' property. Note: this\r\n       * accounts for both named and indexed properties on Arrays.\r\n       */ // eslint-disable-next-line no-use-before-define\nreturn objEquiv(actual,expected,opts);}function isUndefinedOrNull(value){return value===null||value===undefined;}function isBuffer(x){if(!x||typeof x!=='object'||typeof x.length!=='number'){return false;}if(typeof x.copy!=='function'||typeof x.slice!=='function'){return false;}if(x.length>0&&typeof x[0]!=='number'){return false;}return true;}function objEquiv(a,b,opts){/* eslint max-statements: [2, 50] */var i,key;if(typeof a!==typeof b){return false;}if(isUndefinedOrNull(a)||isUndefinedOrNull(b)){return false;}// an identical 'prototype' property.\nif(a.prototype!==b.prototype){return false;}if(isArguments(a)!==isArguments(b)){return false;}var aIsRegex=isRegex(a);var bIsRegex=isRegex(b);if(aIsRegex!==bIsRegex){return false;}if(aIsRegex||bIsRegex){return a.source===b.source&&flags(a)===flags(b);}if(isDate(a)&&isDate(b)){return getTime.call(a)===getTime.call(b);}var aIsBuffer=isBuffer(a);var bIsBuffer=isBuffer(b);if(aIsBuffer!==bIsBuffer){return false;}if(aIsBuffer||bIsBuffer){// && would work too, because both are true or both false here\nif(a.length!==b.length){return false;}for(i=0;i<a.length;i++){if(a[i]!==b[i]){return false;}}return true;}if(typeof a!==typeof b){return false;}try{var ka=objectKeys(a);var kb=objectKeys(b);}catch(e){// happens when one is a string literal and the other isn't\nreturn false;}// having the same number of owned properties (keys incorporates hasOwnProperty)\nif(ka.length!==kb.length){return false;}// the same set of keys (although not necessarily the same order),\nka.sort();kb.sort();// ~~~cheap key test\nfor(i=ka.length-1;i>=0;i--){if(ka[i]!=kb[i]){return false;}}// equivalent values for every corresponding key, and ~~~possibly expensive deep test\nfor(i=ka.length-1;i>=0;i--){key=ka[i];if(!deepEqual(a[key],b[key],opts)){return false;}}return true;}module.exports=deepEqual;/***/},/* 388 */ /***/function(module,exports,__nested_webpack_require_4424312__){\"use strict\";var keysShim;if(!Object.keys){// modified from https://github.com/es-shims/es5-shim\nvar has=Object.prototype.hasOwnProperty;var toStr=Object.prototype.toString;var isArgs=__nested_webpack_require_4424312__(202);// eslint-disable-line global-require\nvar isEnumerable=Object.prototype.propertyIsEnumerable;var hasDontEnumBug=!isEnumerable.call({toString:null},'toString');var hasProtoEnumBug=isEnumerable.call(function(){},'prototype');var dontEnums=['toString','toLocaleString','valueOf','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','constructor'];var equalsConstructorPrototype=function(o){var ctor=o.constructor;return ctor&&ctor.prototype===o;};var excludedKeys={$applicationCache:true,$console:true,$external:true,$frame:true,$frameElement:true,$frames:true,$innerHeight:true,$innerWidth:true,$onmozfullscreenchange:true,$onmozfullscreenerror:true,$outerHeight:true,$outerWidth:true,$pageXOffset:true,$pageYOffset:true,$parent:true,$scrollLeft:true,$scrollTop:true,$scrollX:true,$scrollY:true,$self:true,$webkitIndexedDB:true,$webkitStorageInfo:true,$window:true};var hasAutomationEqualityBug=function(){/* global window */if(typeof window==='undefined'){return false;}for(var k in window){try{if(!excludedKeys['$'+k]&&has.call(window,k)&&window[k]!==null&&typeof window[k]==='object'){try{equalsConstructorPrototype(window[k]);}catch(e){return true;}}}catch(e){return true;}}return false;}();var equalsConstructorPrototypeIfNotBuggy=function(o){/* global window */if(typeof window==='undefined'||!hasAutomationEqualityBug){return equalsConstructorPrototype(o);}try{return equalsConstructorPrototype(o);}catch(e){return false;}};keysShim=function keys(object){var isObject=object!==null&&typeof object==='object';var isFunction=toStr.call(object)==='[object Function]';var isArguments=isArgs(object);var isString=isObject&&toStr.call(object)==='[object String]';var theKeys=[];if(!isObject&&!isFunction&&!isArguments){throw new TypeError('Object.keys called on a non-object');}var skipProto=hasProtoEnumBug&&isFunction;if(isString&&object.length>0&&!has.call(object,0)){for(var i=0;i<object.length;++i){theKeys.push(String(i));}}if(isArguments&&object.length>0){for(var j=0;j<object.length;++j){theKeys.push(String(j));}}else{for(var name in object){if(!(skipProto&&name==='prototype')&&has.call(object,name)){theKeys.push(String(name));}}}if(hasDontEnumBug){var skipConstructor=equalsConstructorPrototypeIfNotBuggy(object);for(var k=0;k<dontEnums.length;++k){if(!(skipConstructor&&dontEnums[k]==='constructor')&&has.call(object,dontEnums[k])){theKeys.push(dontEnums[k]);}}}return theKeys;};}module.exports=keysShim;/***/},/* 389 */ /***/function(module,exports,__webpack_require__){\"use strict\";var hasToStringTag=typeof Symbol==='function'&&typeof Symbol.toStringTag==='symbol';var toStr=Object.prototype.toString;var isStandardArguments=function isArguments(value){if(hasToStringTag&&value&&typeof value==='object'&&Symbol.toStringTag in value){return false;}return toStr.call(value)==='[object Arguments]';};var isLegacyArguments=function isArguments(value){if(isStandardArguments(value)){return true;}return value!==null&&typeof value==='object'&&typeof value.length==='number'&&value.length>=0&&toStr.call(value)!=='[object Array]'&&toStr.call(value.callee)==='[object Function]';};var supportsStandardArguments=function(){return isStandardArguments(arguments);}();isStandardArguments.isLegacyArguments=isLegacyArguments;// for tests\nmodule.exports=supportsStandardArguments?isStandardArguments:isLegacyArguments;/***/},/* 390 */ /***/function(module,exports,__webpack_require__){\"use strict\";// http://www.ecma-international.org/ecma-262/6.0/#sec-object.is\nvar numberIsNaN=function(value){return value!==value;};module.exports=function is(a,b){if(a===0&&b===0){return 1/a===1/b;}if(a===b){return true;}if(numberIsNaN(a)&&numberIsNaN(b)){return true;}return false;};/***/},/* 391 */ /***/function(module,exports,__nested_webpack_require_4428263__){\"use strict\";var has=__nested_webpack_require_4428263__(392);var regexExec=RegExp.prototype.exec;var gOPD=Object.getOwnPropertyDescriptor;var tryRegexExecCall=function tryRegexExec(value){try{var lastIndex=value.lastIndex;value.lastIndex=0;// eslint-disable-line no-param-reassign\nregexExec.call(value);return true;}catch(e){return false;}finally{value.lastIndex=lastIndex;// eslint-disable-line no-param-reassign\n}};var toStr=Object.prototype.toString;var regexClass='[object RegExp]';var hasToStringTag=typeof Symbol==='function'&&typeof Symbol.toStringTag==='symbol';module.exports=function isRegex(value){if(!value||typeof value!=='object'){return false;}if(!hasToStringTag){return toStr.call(value)===regexClass;}var descriptor=gOPD(value,'lastIndex');var hasLastIndexDataProperty=descriptor&&has(descriptor,'value');if(!hasLastIndexDataProperty){return false;}return tryRegexExecCall(value);};/***/},/* 392 */ /***/function(module,exports,__nested_webpack_require_4429214__){\"use strict\";var bind=__nested_webpack_require_4429214__(128);module.exports=bind.call(Function.call,Object.prototype.hasOwnProperty);/***/},/* 393 */ /***/function(module,exports,__webpack_require__){\"use strict\";/* eslint no-invalid-this: 1 */var ERROR_MESSAGE='Function.prototype.bind called on incompatible ';var slice=Array.prototype.slice;var toStr=Object.prototype.toString;var funcType='[object Function]';module.exports=function bind(that){var target=this;if(typeof target!=='function'||toStr.call(target)!==funcType){throw new TypeError(ERROR_MESSAGE+target);}var args=slice.call(arguments,1);var bound;var binder=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));if(Object(result)===result){return result;}return this;}else{return target.apply(that,args.concat(slice.call(arguments)));}};var boundLength=Math.max(0,target.length-args.length);var boundArgs=[];for(var i=0;i<boundLength;i++){boundArgs.push('$'+i);}bound=Function('binder','return function ('+boundArgs.join(',')+'){ return binder.apply(this,arguments); }')(binder);if(target.prototype){var Empty=function Empty(){};Empty.prototype=target.prototype;bound.prototype=new Empty();Empty.prototype=null;}return bound;};/***/},/* 394 */ /***/function(module,exports,__nested_webpack_require_4430507__){\"use strict\";var define=__nested_webpack_require_4430507__(129);var callBind=__nested_webpack_require_4430507__(395);var implementation=__nested_webpack_require_4430507__(203);var getPolyfill=__nested_webpack_require_4430507__(204);var shim=__nested_webpack_require_4430507__(399);var flagsBound=callBind(implementation);define(flagsBound,{getPolyfill:getPolyfill,implementation:implementation,shim:shim});module.exports=flagsBound;/***/},/* 395 */ /***/function(module,exports,__nested_webpack_require_4430931__){\"use strict\";var bind=__nested_webpack_require_4430931__(128);var GetIntrinsic=__nested_webpack_require_4430931__(396);var $Function=GetIntrinsic('%Function%');var $apply=$Function.apply;var $call=$Function.call;module.exports=function callBind(){return bind.apply($call,arguments);};module.exports.apply=function applyBind(){return bind.apply($apply,arguments);};/***/},/* 396 */ /***/function(module,exports,__nested_webpack_require_4431332__){\"use strict\";/* globals\r\n        Atomics,\r\n        SharedArrayBuffer,\r\n    */var undefined;var $TypeError=TypeError;var $gOPD=Object.getOwnPropertyDescriptor;if($gOPD){try{$gOPD({},'');}catch(e){$gOPD=null;// this is IE 8, which has a broken gOPD\n}}var throwTypeError=function(){throw new $TypeError();};var ThrowTypeError=$gOPD?function(){try{// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\narguments.callee;// IE 8 does not throw here\nreturn throwTypeError;}catch(calleeThrows){try{// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\nreturn $gOPD(arguments,'callee').get;}catch(gOPDthrows){return throwTypeError;}}}():throwTypeError;var hasSymbols=__nested_webpack_require_4431332__(397)();var getProto=Object.getPrototypeOf||function(x){return x.__proto__;};// eslint-disable-line no-proto\nvar generator;// = function * () {};\nvar generatorFunction=generator?getProto(generator):undefined;var asyncFn;// async function() {};\nvar asyncFunction=asyncFn?asyncFn.constructor:undefined;var asyncGen;// async function * () {};\nvar asyncGenFunction=asyncGen?getProto(asyncGen):undefined;var asyncGenIterator=asyncGen?asyncGen():undefined;var TypedArray=typeof Uint8Array==='undefined'?undefined:getProto(Uint8Array);var INTRINSICS={'%Array%':Array,'%ArrayBuffer%':typeof ArrayBuffer==='undefined'?undefined:ArrayBuffer,'%ArrayBufferPrototype%':typeof ArrayBuffer==='undefined'?undefined:ArrayBuffer.prototype,'%ArrayIteratorPrototype%':hasSymbols?getProto([][Symbol.iterator]()):undefined,'%ArrayPrototype%':Array.prototype,'%ArrayProto_entries%':Array.prototype.entries,'%ArrayProto_forEach%':Array.prototype.forEach,'%ArrayProto_keys%':Array.prototype.keys,'%ArrayProto_values%':Array.prototype.values,'%AsyncFromSyncIteratorPrototype%':undefined,'%AsyncFunction%':asyncFunction,'%AsyncFunctionPrototype%':asyncFunction?asyncFunction.prototype:undefined,'%AsyncGenerator%':asyncGen?getProto(asyncGenIterator):undefined,'%AsyncGeneratorFunction%':asyncGenFunction,'%AsyncGeneratorPrototype%':asyncGenFunction?asyncGenFunction.prototype:undefined,'%AsyncIteratorPrototype%':asyncGenIterator&&hasSymbols&&Symbol.asyncIterator?asyncGenIterator[Symbol.asyncIterator]():undefined,'%Atomics%':typeof Atomics==='undefined'?undefined:Atomics,'%Boolean%':Boolean,'%BooleanPrototype%':Boolean.prototype,'%DataView%':typeof DataView==='undefined'?undefined:DataView,'%DataViewPrototype%':typeof DataView==='undefined'?undefined:DataView.prototype,'%Date%':Date,'%DatePrototype%':Date.prototype,'%decodeURI%':decodeURI,'%decodeURIComponent%':decodeURIComponent,'%encodeURI%':encodeURI,'%encodeURIComponent%':encodeURIComponent,'%Error%':Error,'%ErrorPrototype%':Error.prototype,'%eval%':eval,// eslint-disable-line no-eval\n'%EvalError%':EvalError,'%EvalErrorPrototype%':EvalError.prototype,'%Float32Array%':typeof Float32Array==='undefined'?undefined:Float32Array,'%Float32ArrayPrototype%':typeof Float32Array==='undefined'?undefined:Float32Array.prototype,'%Float64Array%':typeof Float64Array==='undefined'?undefined:Float64Array,'%Float64ArrayPrototype%':typeof Float64Array==='undefined'?undefined:Float64Array.prototype,'%Function%':Function,'%FunctionPrototype%':Function.prototype,'%Generator%':generator?getProto(generator()):undefined,'%GeneratorFunction%':generatorFunction,'%GeneratorPrototype%':generatorFunction?generatorFunction.prototype:undefined,'%Int8Array%':typeof Int8Array==='undefined'?undefined:Int8Array,'%Int8ArrayPrototype%':typeof Int8Array==='undefined'?undefined:Int8Array.prototype,'%Int16Array%':typeof Int16Array==='undefined'?undefined:Int16Array,'%Int16ArrayPrototype%':typeof Int16Array==='undefined'?undefined:Int8Array.prototype,'%Int32Array%':typeof Int32Array==='undefined'?undefined:Int32Array,'%Int32ArrayPrototype%':typeof Int32Array==='undefined'?undefined:Int32Array.prototype,'%isFinite%':isFinite,'%isNaN%':isNaN,'%IteratorPrototype%':hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined,'%JSON%':typeof JSON==='object'?JSON:undefined,'%JSONParse%':typeof JSON==='object'?JSON.parse:undefined,'%Map%':typeof Map==='undefined'?undefined:Map,'%MapIteratorPrototype%':typeof Map==='undefined'||!hasSymbols?undefined:getProto(new Map()[Symbol.iterator]()),'%MapPrototype%':typeof Map==='undefined'?undefined:Map.prototype,'%Math%':Math,'%Number%':Number,'%NumberPrototype%':Number.prototype,'%Object%':Object,'%ObjectPrototype%':Object.prototype,'%ObjProto_toString%':Object.prototype.toString,'%ObjProto_valueOf%':Object.prototype.valueOf,'%parseFloat%':parseFloat,'%parseInt%':parseInt,'%Promise%':typeof Promise==='undefined'?undefined:Promise,'%PromisePrototype%':typeof Promise==='undefined'?undefined:Promise.prototype,'%PromiseProto_then%':typeof Promise==='undefined'?undefined:Promise.prototype.then,'%Promise_all%':typeof Promise==='undefined'?undefined:Promise.all,'%Promise_reject%':typeof Promise==='undefined'?undefined:Promise.reject,'%Promise_resolve%':typeof Promise==='undefined'?undefined:Promise.resolve,'%Proxy%':typeof Proxy==='undefined'?undefined:Proxy,'%RangeError%':RangeError,'%RangeErrorPrototype%':RangeError.prototype,'%ReferenceError%':ReferenceError,'%ReferenceErrorPrototype%':ReferenceError.prototype,'%Reflect%':typeof Reflect==='undefined'?undefined:Reflect,'%RegExp%':RegExp,'%RegExpPrototype%':RegExp.prototype,'%Set%':typeof Set==='undefined'?undefined:Set,'%SetIteratorPrototype%':typeof Set==='undefined'||!hasSymbols?undefined:getProto(new Set()[Symbol.iterator]()),'%SetPrototype%':typeof Set==='undefined'?undefined:Set.prototype,'%SharedArrayBuffer%':typeof SharedArrayBuffer==='undefined'?undefined:SharedArrayBuffer,'%SharedArrayBufferPrototype%':typeof SharedArrayBuffer==='undefined'?undefined:SharedArrayBuffer.prototype,'%String%':String,'%StringIteratorPrototype%':hasSymbols?getProto(''[Symbol.iterator]()):undefined,'%StringPrototype%':String.prototype,'%Symbol%':hasSymbols?Symbol:undefined,'%SymbolPrototype%':hasSymbols?Symbol.prototype:undefined,'%SyntaxError%':SyntaxError,'%SyntaxErrorPrototype%':SyntaxError.prototype,'%ThrowTypeError%':ThrowTypeError,'%TypedArray%':TypedArray,'%TypedArrayPrototype%':TypedArray?TypedArray.prototype:undefined,'%TypeError%':$TypeError,'%TypeErrorPrototype%':$TypeError.prototype,'%Uint8Array%':typeof Uint8Array==='undefined'?undefined:Uint8Array,'%Uint8ArrayPrototype%':typeof Uint8Array==='undefined'?undefined:Uint8Array.prototype,'%Uint8ClampedArray%':typeof Uint8ClampedArray==='undefined'?undefined:Uint8ClampedArray,'%Uint8ClampedArrayPrototype%':typeof Uint8ClampedArray==='undefined'?undefined:Uint8ClampedArray.prototype,'%Uint16Array%':typeof Uint16Array==='undefined'?undefined:Uint16Array,'%Uint16ArrayPrototype%':typeof Uint16Array==='undefined'?undefined:Uint16Array.prototype,'%Uint32Array%':typeof Uint32Array==='undefined'?undefined:Uint32Array,'%Uint32ArrayPrototype%':typeof Uint32Array==='undefined'?undefined:Uint32Array.prototype,'%URIError%':URIError,'%URIErrorPrototype%':URIError.prototype,'%WeakMap%':typeof WeakMap==='undefined'?undefined:WeakMap,'%WeakMapPrototype%':typeof WeakMap==='undefined'?undefined:WeakMap.prototype,'%WeakSet%':typeof WeakSet==='undefined'?undefined:WeakSet,'%WeakSetPrototype%':typeof WeakSet==='undefined'?undefined:WeakSet.prototype};var bind=__nested_webpack_require_4431332__(128);var $replace=bind.call(Function.call,String.prototype.replace);/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */var rePropName=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;var reEscapeChar=/\\\\(\\\\)?/g;/** Used to match backslashes in property paths. */var stringToPath=function stringToPath(string){var result=[];$replace(string,rePropName,function(match,number,quote,subString){result[result.length]=quote?$replace(subString,reEscapeChar,'$1'):number||match;});return result;};/* end adaptation */var getBaseIntrinsic=function getBaseIntrinsic(name,allowMissing){if(!(name in INTRINSICS)){throw new SyntaxError('intrinsic '+name+' does not exist!');}// istanbul ignore if // hopefully this is impossible to test :-)\nif(typeof INTRINSICS[name]==='undefined'&&!allowMissing){throw new $TypeError('intrinsic '+name+' exists, but is not available. Please file an issue!');}return INTRINSICS[name];};module.exports=function GetIntrinsic(name,allowMissing){if(typeof name!=='string'||name.length===0){throw new TypeError('intrinsic name must be a non-empty string');}if(arguments.length>1&&typeof allowMissing!=='boolean'){throw new TypeError('\"allowMissing\" argument must be a boolean');}var parts=stringToPath(name);var value=getBaseIntrinsic('%'+(parts.length>0?parts[0]:'')+'%',allowMissing);for(var i=1;i<parts.length;i+=1){if(value!=null){if($gOPD&&i+1>=parts.length){var desc=$gOPD(value,parts[i]);value=desc?desc.get||desc.value:value[parts[i]];}else{value=value[parts[i]];}}}return value;};/***/},/* 397 */ /***/function(module,exports,__nested_webpack_require_4440283__){\"use strict\";/* WEBPACK VAR INJECTION */(function(global){var origSymbol=global.Symbol;var hasSymbolSham=__nested_webpack_require_4440283__(398);module.exports=function hasNativeSymbols(){if(typeof origSymbol!=='function'){return false;}if(typeof Symbol!=='function'){return false;}if(typeof origSymbol('foo')!=='symbol'){return false;}if(typeof Symbol('bar')!=='symbol'){return false;}return hasSymbolSham();};/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_4440283__(22));/***/},/* 398 */ /***/function(module,exports,__webpack_require__){\"use strict\";/* eslint complexity: [2, 18], max-statements: [2, 33] */module.exports=function hasSymbols(){if(typeof Symbol!=='function'||typeof Object.getOwnPropertySymbols!=='function'){return false;}if(typeof Symbol.iterator==='symbol'){return true;}var obj={};var sym=Symbol('test');var symObj=Object(sym);if(typeof sym==='string'){return false;}if(Object.prototype.toString.call(sym)!=='[object Symbol]'){return false;}if(Object.prototype.toString.call(symObj)!=='[object Symbol]'){return false;}// temp disabled per https://github.com/ljharb/object.assign/issues/17\n// if (sym instanceof Symbol) { return false; }\n// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n// if (!(symObj instanceof Symbol)) { return false; }\n// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\nvar symVal=42;obj[sym]=symVal;for(sym in obj){return false;}// eslint-disable-line no-restricted-syntax\nif(typeof Object.keys==='function'&&Object.keys(obj).length!==0){return false;}if(typeof Object.getOwnPropertyNames==='function'&&Object.getOwnPropertyNames(obj).length!==0){return false;}var syms=Object.getOwnPropertySymbols(obj);if(syms.length!==1||syms[0]!==sym){return false;}if(!Object.prototype.propertyIsEnumerable.call(obj,sym)){return false;}if(typeof Object.getOwnPropertyDescriptor==='function'){var descriptor=Object.getOwnPropertyDescriptor(obj,sym);if(descriptor.value!==symVal||descriptor.enumerable!==true){return false;}}return true;};/***/},/* 399 */ /***/function(module,exports,__nested_webpack_require_4442448__){\"use strict\";var supportsDescriptors=__nested_webpack_require_4442448__(129).supportsDescriptors;var getPolyfill=__nested_webpack_require_4442448__(204);var gOPD=Object.getOwnPropertyDescriptor;var defineProperty=Object.defineProperty;var TypeErr=TypeError;var getProto=Object.getPrototypeOf;var regex=/a/;module.exports=function shimFlags(){if(!supportsDescriptors||!getProto){throw new TypeErr('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');}var polyfill=getPolyfill();var proto=getProto(regex);var descriptor=gOPD(proto,'flags');if(!descriptor||descriptor.get!==polyfill){defineProperty(proto,'flags',{configurable:true,enumerable:false,get:polyfill});}return polyfill;};/***/},/* 400 */ /***/function(module,exports,__webpack_require__){\"use strict\";var getDay=Date.prototype.getDay;var tryDateObject=function tryDateGetDayCall(value){try{getDay.call(value);return true;}catch(e){return false;}};var toStr=Object.prototype.toString;var dateClass='[object Date]';var hasToStringTag=typeof Symbol==='function'&&typeof Symbol.toStringTag==='symbol';module.exports=function isDateObject(value){if(typeof value!=='object'||value===null){return false;}return hasToStringTag?tryDateObject(value):toStr.call(value)===dateClass;};/***/},/* 401 */ /***/function(module,exports,__nested_webpack_require_4443756__){module.exports={\"default\":__nested_webpack_require_4443756__(402),__esModule:true};/***/},/* 402 */ /***/function(module,exports,__nested_webpack_require_4443891__){__nested_webpack_require_4443891__(403);module.exports=__nested_webpack_require_4443891__(2).Object.assign;/***/},/* 403 */ /***/function(module,exports,__nested_webpack_require_4444035__){// 19.1.3.1 Object.assign(target, source)\nvar $export=__nested_webpack_require_4444035__(7);$export($export.S+$export.F,'Object',{assign:__nested_webpack_require_4444035__(404)});/***/},/* 404 */ /***/function(module,exports,__nested_webpack_require_4444251__){\"use strict\";// 19.1.2.1 Object.assign(target, source, ...)\nvar DESCRIPTORS=__nested_webpack_require_4444251__(13);var getKeys=__nested_webpack_require_4444251__(59);var gOPS=__nested_webpack_require_4444251__(125);var pIE=__nested_webpack_require_4444251__(73);var toObject=__nested_webpack_require_4444251__(50);var IObject=__nested_webpack_require_4444251__(110);var $assign=Object.assign;// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports=!$assign||__nested_webpack_require_4444251__(37)(function(){var A={};var B={};// eslint-disable-next-line no-undef\nvar S=Symbol();var K='abcdefghijklmnopqrst';A[S]=7;K.split('').forEach(function(k){B[k]=k;});return $assign({},A)[S]!=7||Object.keys($assign({},B)).join('')!=K;})?function assign(target,source){// eslint-disable-line no-unused-vars\nvar T=toObject(target);var aLen=arguments.length;var index=1;var getSymbols=gOPS.f;var isEnum=pIE.f;while(aLen>index){var S=IObject(arguments[index++]);var keys=getSymbols?getKeys(S).concat(getSymbols(S)):getKeys(S);var length=keys.length;var j=0;var key;while(length>j){key=keys[j++];if(!DESCRIPTORS||isEnum.call(S,key))T[key]=S[key];}}return T;}:$assign;/***/},/* 405 */ /***/function(module,exports,__nested_webpack_require_4445405__){module.exports={\"default\":__nested_webpack_require_4445405__(406),__esModule:true};/***/},/* 406 */ /***/function(module,exports,__nested_webpack_require_4445540__){__nested_webpack_require_4445540__(407);module.exports=__nested_webpack_require_4445540__(2).String.fromCodePoint;/***/},/* 407 */ /***/function(module,exports,__nested_webpack_require_4445691__){var $export=__nested_webpack_require_4445691__(7);var toAbsoluteIndex=__nested_webpack_require_4445691__(187);var fromCharCode=String.fromCharCode;var $fromCodePoint=String.fromCodePoint;// length should be 1, old FF problem\n$export($export.S+$export.F*(!!$fromCodePoint&&$fromCodePoint.length!=1),'String',{// 21.1.2.2 String.fromCodePoint(...codePoints)\nfromCodePoint:function fromCodePoint(x){// eslint-disable-line no-unused-vars\nvar res=[];var aLen=arguments.length;var i=0;var code;while(aLen>i){code=+arguments[i++];if(toAbsoluteIndex(code,0x10ffff)!==code)throw RangeError(code+' is not a valid code point');res.push(code<0x10000?fromCharCode(code):fromCharCode(((code-=0x10000)>>10)+0xd800,code%0x400+0xdc00));}return res.join('');}});/***/},/* 408 */ /***/function(module,exports,__nested_webpack_require_4446472__){module.exports={\"default\":__nested_webpack_require_4446472__(409),__esModule:true};/***/},/* 409 */ /***/function(module,exports,__nested_webpack_require_4446607__){__nested_webpack_require_4446607__(60);__nested_webpack_require_4446607__(410);module.exports=__nested_webpack_require_4446607__(2).Array.from;/***/},/* 410 */ /***/function(module,exports,__nested_webpack_require_4446772__){\"use strict\";var ctx=__nested_webpack_require_4446772__(38);var $export=__nested_webpack_require_4446772__(7);var toObject=__nested_webpack_require_4446772__(50);var call=__nested_webpack_require_4446772__(195);var isArrayIter=__nested_webpack_require_4446772__(196);var toLength=__nested_webpack_require_4446772__(77);var createProperty=__nested_webpack_require_4446772__(411);var getIterFn=__nested_webpack_require_4446772__(121);$export($export.S+$export.F*!__nested_webpack_require_4446772__(412)(function(iter){Array.from(iter);}),'Array',{// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)\nfrom:function from(arrayLike/* , mapfn = undefined, thisArg = undefined */){var O=toObject(arrayLike);var C=typeof this=='function'?this:Array;var aLen=arguments.length;var mapfn=aLen>1?arguments[1]:undefined;var mapping=mapfn!==undefined;var index=0;var iterFn=getIterFn(O);var length,result,step,iterator;if(mapping)mapfn=ctx(mapfn,aLen>2?arguments[2]:undefined,2);// if object isn't iterable or it's array with default iterator - use simple case\nif(iterFn!=undefined&&!(C==Array&&isArrayIter(iterFn))){for(iterator=iterFn.call(O),result=new C();!(step=iterator.next()).done;index++){createProperty(result,index,mapping?call(iterator,mapfn,[step.value,index],true):step.value);}}else{length=toLength(O.length);for(result=new C(length);length>index;index++){createProperty(result,index,mapping?mapfn(O[index],index):O[index]);}}result.length=index;return result;}});/***/},/* 411 */ /***/function(module,exports,__nested_webpack_require_4448190__){\"use strict\";var $defineProperty=__nested_webpack_require_4448190__(17);var createDesc=__nested_webpack_require_4448190__(57);module.exports=function(object,index,value){if(index in object)$defineProperty.f(object,index,createDesc(0,value));else object[index]=value;};/***/},/* 412 */ /***/function(module,exports,__nested_webpack_require_4448495__){var ITERATOR=__nested_webpack_require_4448495__(14)('iterator');var SAFE_CLOSING=false;try{var riter=[7][ITERATOR]();riter['return']=function(){SAFE_CLOSING=true;};// eslint-disable-next-line no-throw-literal\nArray.from(riter,function(){throw 2;});}catch(e){/* empty */}module.exports=function(exec,skipClosing){if(!skipClosing&&!SAFE_CLOSING)return false;var safe=false;try{var arr=[7];var iter=arr[ITERATOR]();iter.next=function(){return{done:safe=true};};arr[ITERATOR]=function(){return iter;};exec(arr);}catch(e){/* empty */}return safe;};/***/},/* 413 */ /***/function(module,exports,__nested_webpack_require_4449090__){module.exports={\"default\":__nested_webpack_require_4449090__(414),__esModule:true};/***/},/* 414 */ /***/function(module,exports,__nested_webpack_require_4449225__){__nested_webpack_require_4449225__(126);__nested_webpack_require_4449225__(60);__nested_webpack_require_4449225__(74);__nested_webpack_require_4449225__(415);__nested_webpack_require_4449225__(416);__nested_webpack_require_4449225__(417);__nested_webpack_require_4449225__(418);module.exports=__nested_webpack_require_4449225__(2).Set;/***/},/* 415 */ /***/function(module,exports,__nested_webpack_require_4449507__){\"use strict\";var strong=__nested_webpack_require_4449507__(192);var validate=__nested_webpack_require_4449507__(127);var SET='Set';// 23.2 Set Objects\nmodule.exports=__nested_webpack_require_4449507__(197)(SET,function(get){return function Set(){return get(this,arguments.length>0?arguments[0]:undefined);};},{// 23.2.3.1 Set.prototype.add(value)\nadd:function add(value){return strong.def(validate(this,SET),value=value===0?0:value,value);}},strong);/***/},/* 416 */ /***/function(module,exports,__nested_webpack_require_4449979__){// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export=__nested_webpack_require_4449979__(7);$export($export.P+$export.R,'Set',{toJSON:__nested_webpack_require_4449979__(198)('Set')});/***/},/* 417 */ /***/function(module,exports,__nested_webpack_require_4450216__){// https://tc39.github.io/proposal-setmap-offrom/#sec-set.of\n__nested_webpack_require_4450216__(199)('Set');/***/},/* 418 */ /***/function(module,exports,__nested_webpack_require_4450376__){// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from\n__nested_webpack_require_4450376__(200)('Set');/***/},/* 419 */ /***/function(module,exports,__nested_webpack_require_4450538__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=void 0;__nested_webpack_require_4450538__(420);var _unicodeTrie=_interopRequireDefault(__nested_webpack_require_4450538__(421));var _base64Js=_interopRequireDefault(__nested_webpack_require_4450538__(423));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var categories=[\"Cc\",\"Zs\",\"Po\",\"Sc\",\"Ps\",\"Pe\",\"Sm\",\"Pd\",\"Nd\",\"Lu\",\"Sk\",\"Pc\",\"Ll\",\"So\",\"Lo\",\"Pi\",\"Cf\",\"No\",\"Pf\",\"Lt\",\"Lm\",\"Mn\",\"Me\",\"Mc\",\"Nl\",\"Zl\",\"Zp\",\"Cs\",\"Co\"];var combiningClasses=[\"Not_Reordered\",\"Above\",\"Above_Right\",\"Below\",\"Attached_Above_Right\",\"Attached_Below\",\"Overlay\",\"Iota_Subscript\",\"Double_Below\",\"Double_Above\",\"Below_Right\",\"Above_Left\",\"CCC10\",\"CCC11\",\"CCC12\",\"CCC13\",\"CCC14\",\"CCC15\",\"CCC16\",\"CCC17\",\"CCC18\",\"CCC19\",\"CCC20\",\"CCC21\",\"CCC22\",\"CCC23\",\"CCC24\",\"CCC25\",\"CCC30\",\"CCC31\",\"CCC32\",\"CCC27\",\"CCC28\",\"CCC29\",\"CCC33\",\"CCC34\",\"CCC35\",\"CCC36\",\"Nukta\",\"Virama\",\"CCC84\",\"CCC91\",\"CCC103\",\"CCC107\",\"CCC118\",\"CCC122\",\"CCC129\",\"CCC130\",\"CCC132\",\"Attached_Above\",\"Below_Left\",\"Left\",\"Kana_Voicing\",\"CCC26\",\"Right\"];var scripts=[\"Common\",\"Latin\",\"Bopomofo\",\"Inherited\",\"Greek\",\"Coptic\",\"Cyrillic\",\"Armenian\",\"Hebrew\",\"Arabic\",\"Syriac\",\"Thaana\",\"Nko\",\"Samaritan\",\"Mandaic\",\"Devanagari\",\"Bengali\",\"Gurmukhi\",\"Gujarati\",\"Oriya\",\"Tamil\",\"Telugu\",\"Kannada\",\"Malayalam\",\"Sinhala\",\"Thai\",\"Lao\",\"Tibetan\",\"Myanmar\",\"Georgian\",\"Hangul\",\"Ethiopic\",\"Cherokee\",\"Canadian_Aboriginal\",\"Ogham\",\"Runic\",\"Tagalog\",\"Hanunoo\",\"Buhid\",\"Tagbanwa\",\"Khmer\",\"Mongolian\",\"Limbu\",\"Tai_Le\",\"New_Tai_Lue\",\"Buginese\",\"Tai_Tham\",\"Balinese\",\"Sundanese\",\"Batak\",\"Lepcha\",\"Ol_Chiki\",\"Braille\",\"Glagolitic\",\"Tifinagh\",\"Han\",\"Hiragana\",\"Katakana\",\"Yi\",\"Lisu\",\"Vai\",\"Bamum\",\"Syloti_Nagri\",\"Phags_Pa\",\"Saurashtra\",\"Kayah_Li\",\"Rejang\",\"Javanese\",\"Cham\",\"Tai_Viet\",\"Meetei_Mayek\",\"null\",\"Linear_B\",\"Lycian\",\"Carian\",\"Old_Italic\",\"Gothic\",\"Old_Permic\",\"Ugaritic\",\"Old_Persian\",\"Deseret\",\"Shavian\",\"Osmanya\",\"Osage\",\"Elbasan\",\"Caucasian_Albanian\",\"Linear_A\",\"Cypriot\",\"Imperial_Aramaic\",\"Palmyrene\",\"Nabataean\",\"Hatran\",\"Phoenician\",\"Lydian\",\"Meroitic_Hieroglyphs\",\"Meroitic_Cursive\",\"Kharoshthi\",\"Old_South_Arabian\",\"Old_North_Arabian\",\"Manichaean\",\"Avestan\",\"Inscriptional_Parthian\",\"Inscriptional_Pahlavi\",\"Psalter_Pahlavi\",\"Old_Turkic\",\"Old_Hungarian\",\"Hanifi_Rohingya\",\"Old_Sogdian\",\"Sogdian\",\"Elymaic\",\"Brahmi\",\"Kaithi\",\"Sora_Sompeng\",\"Chakma\",\"Mahajani\",\"Sharada\",\"Khojki\",\"Multani\",\"Khudawadi\",\"Grantha\",\"Newa\",\"Tirhuta\",\"Siddham\",\"Modi\",\"Takri\",\"Ahom\",\"Dogra\",\"Warang_Citi\",\"Nandinagari\",\"Zanabazar_Square\",\"Soyombo\",\"Pau_Cin_Hau\",\"Bhaiksuki\",\"Marchen\",\"Masaram_Gondi\",\"Gunjala_Gondi\",\"Makasar\",\"Cuneiform\",\"Egyptian_Hieroglyphs\",\"Anatolian_Hieroglyphs\",\"Mro\",\"Bassa_Vah\",\"Pahawh_Hmong\",\"Medefaidrin\",\"Miao\",\"Tangut\",\"Nushu\",\"Duployan\",\"SignWriting\",\"Nyiakeng_Puachue_Hmong\",\"Wancho\",\"Mende_Kikakui\",\"Adlam\"];var eaw=[\"N\",\"Na\",\"A\",\"W\",\"H\",\"F\"];var data={categories:categories,combiningClasses:combiningClasses,scripts:scripts,eaw:eaw};var data$1=\" \";var trieData={data:data$1};var log2=Math.log2||function(n){return Math.log(n)/Math.LN2;};var bits=function bits(n){return log2(n)+1|0;};var buildUnicodeProperties=function buildUnicodeProperties(data,trie){// compute the number of bits stored for each field\nvar CATEGORY_BITS=bits(data.categories.length-1);var COMBINING_BITS=bits(data.combiningClasses.length-1);var SCRIPT_BITS=bits(data.scripts.length-1);var EAW_BITS=bits(data.eaw.length-1);var NUMBER_BITS=10;// compute shift and mask values for each field\nvar CATEGORY_SHIFT=COMBINING_BITS+SCRIPT_BITS+EAW_BITS+NUMBER_BITS;var COMBINING_SHIFT=SCRIPT_BITS+EAW_BITS+NUMBER_BITS;var SCRIPT_SHIFT=EAW_BITS+NUMBER_BITS;var EAW_SHIFT=NUMBER_BITS;var CATEGORY_MASK=(1<<CATEGORY_BITS)-1;var COMBINING_MASK=(1<<COMBINING_BITS)-1;var SCRIPT_MASK=(1<<SCRIPT_BITS)-1;var EAW_MASK=(1<<EAW_BITS)-1;var NUMBER_MASK=(1<<NUMBER_BITS)-1;var getCategory=function getCategory(codePoint){var val=trie.get(codePoint);return data.categories[val>>CATEGORY_SHIFT&CATEGORY_MASK];};var getCombiningClass=function getCombiningClass(codePoint){var val=trie.get(codePoint);return data.combiningClasses[val>>COMBINING_SHIFT&COMBINING_MASK];};var getScript=function getScript(codePoint){var val=trie.get(codePoint);return data.scripts[val>>SCRIPT_SHIFT&SCRIPT_MASK];};var getEastAsianWidth=function getEastAsianWidth(codePoint){var val=trie.get(codePoint);return data.eaw[val>>EAW_SHIFT&EAW_MASK];};var getNumericValue=function getNumericValue(codePoint){var val=trie.get(codePoint);var num=val&NUMBER_MASK;if(num===0){return null;}else if(num<=50){return num-1;}else if(num<0x1e0){var numerator=(num>>4)-12;var denominator=(num&0xf)+1;return numerator/denominator;}else if(num<0x300){val=(num>>5)-14;var exp=(num&0x1f)+2;while(exp>0){val*=10;exp--;}return val;}else{val=(num>>2)-0xbf;var _exp=(num&3)+1;while(_exp>0){val*=60;_exp--;}return val;}};var isAlphabetic=function isAlphabetic(codePoint){var category=getCategory(codePoint);return category==='Lu'||category==='Ll'||category==='Lt'||category==='Lm'||category==='Lo'||category==='Nl';};var isDigit=function isDigit(codePoint){return getCategory(codePoint)==='Nd';};var isPunctuation=function isPunctuation(codePoint){var category=getCategory(codePoint);return category==='Pc'||category==='Pd'||category==='Pe'||category==='Pf'||category==='Pi'||category==='Po'||category==='Ps';};var isLowerCase=function isLowerCase(codePoint){return getCategory(codePoint)==='Ll';};var isUpperCase=function isUpperCase(codePoint){return getCategory(codePoint)==='Lu';};var isTitleCase=function isTitleCase(codePoint){return getCategory(codePoint)==='Lt';};var isWhiteSpace=function isWhiteSpace(codePoint){var category=getCategory(codePoint);return category==='Zs'||category==='Zl'||category==='Zp';};var isBaseForm=function isBaseForm(codePoint){var category=getCategory(codePoint);return category==='Nd'||category==='No'||category==='Nl'||category==='Lu'||category==='Ll'||category==='Lt'||category==='Lm'||category==='Lo'||category==='Me'||category==='Mc';};var isMark=function isMark(codePoint){var category=getCategory(codePoint);return category==='Mn'||category==='Me'||category==='Mc';};return{getCategory:getCategory,getCombiningClass:getCombiningClass,getScript:getScript,getEastAsianWidth:getEastAsianWidth,getNumericValue:getNumericValue,isAlphabetic:isAlphabetic,isDigit:isDigit,isPunctuation:isPunctuation,isLowerCase:isLowerCase,isUpperCase:isUpperCase,isTitleCase:isTitleCase,isWhiteSpace:isWhiteSpace,isBaseForm:isBaseForm,isMark:isMark};};var trie=new _unicodeTrie.default(_base64Js.default.toByteArray(trieData.data));var unicodeProperties=buildUnicodeProperties(data,trie);var _default=unicodeProperties;exports.default=_default;/***/},/* 420 */ /***/function(module,exports,__nested_webpack_require_4470205__){// 20.2.2.22 Math.log2(x)\nvar $export=__nested_webpack_require_4470205__(5);$export($export.S,'Math',{log2:function log2(x){return Math.log(x)/Math.LN2;}});/***/},/* 421 */ /***/function(module,exports,__nested_webpack_require_4470413__){\"use strict\";__nested_webpack_require_4470413__(82);__nested_webpack_require_4470413__(44);var inflate=__nested_webpack_require_4470413__(83);var _require=__nested_webpack_require_4470413__(422),swap32LE=_require.swap32LE;// Shift size for getting the index-1 table offset.\nvar SHIFT_1=6+5;// Shift size for getting the index-2 table offset.\nvar SHIFT_2=5;// Difference between the two shift sizes,\n// for getting an index-1 offset from an index-2 offset. 6=11-5\nvar SHIFT_1_2=SHIFT_1-SHIFT_2;// Number of index-1 entries for the BMP. 32=0x20\n// This part of the index-1 table is omitted from the serialized form.\nvar OMITTED_BMP_INDEX_1_LENGTH=0x10000>>SHIFT_1;// Number of entries in an index-2 block. 64=0x40\nvar INDEX_2_BLOCK_LENGTH=1<<SHIFT_1_2;// Mask for getting the lower bits for the in-index-2-block offset. */\nvar INDEX_2_MASK=INDEX_2_BLOCK_LENGTH-1;// Shift size for shifting left the index array values.\n// Increases possible data size with 16-bit index values at the cost\n// of compactability.\n// This requires data blocks to be aligned by DATA_GRANULARITY.\nvar INDEX_SHIFT=2;// Number of entries in a data block. 32=0x20\nvar DATA_BLOCK_LENGTH=1<<SHIFT_2;// Mask for getting the lower bits for the in-data-block offset.\nvar DATA_MASK=DATA_BLOCK_LENGTH-1;// The part of the index-2 table for U+D800..U+DBFF stores values for\n// lead surrogate code _units_ not code _points_.\n// Values for lead surrogate code _points_ are indexed with this portion of the table.\n// Length=32=0x20=0x400>>SHIFT_2. (There are 1024=0x400 lead surrogates.)\nvar LSCP_INDEX_2_OFFSET=0x10000>>SHIFT_2;var LSCP_INDEX_2_LENGTH=0x400>>SHIFT_2;// Count the lengths of both BMP pieces. 2080=0x820\nvar INDEX_2_BMP_LENGTH=LSCP_INDEX_2_OFFSET+LSCP_INDEX_2_LENGTH;// The 2-byte UTF-8 version of the index-2 table follows at offset 2080=0x820.\n// Length 32=0x20 for lead bytes C0..DF, regardless of SHIFT_2.\nvar UTF8_2B_INDEX_2_OFFSET=INDEX_2_BMP_LENGTH;var UTF8_2B_INDEX_2_LENGTH=0x800>>6;// U+0800 is the first code point after 2-byte UTF-8\n// The index-1 table, only used for supplementary code points, at offset 2112=0x840.\n// Variable length, for code points up to highStart, where the last single-value range starts.\n// Maximum length 512=0x200=0x100000>>SHIFT_1.\n// (For 0x100000 supplementary code points U+10000..U+10ffff.)\n//\n// The part of the index-2 table for supplementary code points starts\n// after this index-1 table.\n//\n// Both the index-1 table and the following part of the index-2 table\n// are omitted completely if there is only BMP data.\nvar INDEX_1_OFFSET=UTF8_2B_INDEX_2_OFFSET+UTF8_2B_INDEX_2_LENGTH;// The alignment size of a data block. Also the granularity for compaction.\nvar DATA_GRANULARITY=1<<INDEX_SHIFT;var UnicodeTrie=/*#__PURE__*/function(){function UnicodeTrie(data){var isBuffer=typeof data.readUInt32BE==='function'&&typeof data.slice==='function';if(isBuffer||data instanceof Uint8Array){// read binary format\nvar uncompressedLength;if(isBuffer){this.highStart=data.readUInt32LE(0);this.errorValue=data.readUInt32LE(4);uncompressedLength=data.readUInt32LE(8);data=data.slice(12);}else{var view=new DataView(data.buffer);this.highStart=view.getUint32(0,true);this.errorValue=view.getUint32(4,true);uncompressedLength=view.getUint32(8,true);data=data.subarray(12);}// double inflate the actual trie data\ndata=inflate(data,new Uint8Array(uncompressedLength));data=inflate(data,new Uint8Array(uncompressedLength));// swap bytes from little-endian\nswap32LE(data);this.data=new Uint32Array(data.buffer);}else{// pre-parsed data\nvar _data=data;this.data=_data.data;this.highStart=_data.highStart;this.errorValue=_data.errorValue;}}var _proto=UnicodeTrie.prototype;_proto.get=function get(codePoint){var index;if(codePoint<0||codePoint>0x10ffff){return this.errorValue;}if(codePoint<0xd800||codePoint>0xdbff&&codePoint<=0xffff){// Ordinary BMP code point, excluding leading surrogates.\n// BMP uses a single level lookup.  BMP index starts at offset 0 in the index.\n// data is stored in the index array itself.\nindex=(this.data[codePoint>>SHIFT_2]<<INDEX_SHIFT)+(codePoint&DATA_MASK);return this.data[index];}if(codePoint<=0xffff){// Lead Surrogate Code Point.  A Separate index section is stored for\n// lead surrogate code units and code points.\n//   The main index has the code unit data.\n//   For this function, we need the code point data.\nindex=(this.data[LSCP_INDEX_2_OFFSET+(codePoint-0xd800>>SHIFT_2)]<<INDEX_SHIFT)+(codePoint&DATA_MASK);return this.data[index];}if(codePoint<this.highStart){// Supplemental code point, use two-level lookup.\nindex=this.data[INDEX_1_OFFSET-OMITTED_BMP_INDEX_1_LENGTH+(codePoint>>SHIFT_1)];index=this.data[index+(codePoint>>SHIFT_2&INDEX_2_MASK)];index=(index<<INDEX_SHIFT)+(codePoint&DATA_MASK);return this.data[index];}return this.data[this.data.length-DATA_GRANULARITY];};return UnicodeTrie;}();module.exports=UnicodeTrie;/***/},/* 422 */ /***/function(module,exports,__nested_webpack_require_4475296__){\"use strict\";__nested_webpack_require_4475296__(82);__nested_webpack_require_4475296__(44);var isBigEndian=new Uint8Array(new Uint32Array([0x12345678]).buffer)[0]===0x12;var swap=function swap(b,n,m){var i=b[n];b[n]=b[m];b[m]=i;};var swap32=function swap32(array){var len=array.length;for(var i=0;i<len;i+=4){swap(array,i,i+3);swap(array,i+1,i+2);}};var swap32LE=function swap32LE(array){if(isBigEndian){swap32(array);}};module.exports={swap32LE:swap32LE};/***/},/* 423 */ /***/function(module,exports,__nested_webpack_require_4475789__){\"use strict\";__nested_webpack_require_4475789__(44);exports.byteLength=byteLength;exports.toByteArray=toByteArray;exports.fromByteArray=fromByteArray;var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;function getLens(b64){var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// Trim off extra bytes after placeholder bytes are found\n// See: https://github.com/beatgammit/base64-js/issues/42\nvar validLen=b64.indexOf('=');if(validLen===-1)validLen=len;var placeHoldersLen=validLen===len?0:4-validLen%4;return[validLen,placeHoldersLen];}// base64 is 4/3 + up to two characters of the original data\nfunction byteLength(b64){var lens=getLens(b64);var validLen=lens[0];var placeHoldersLen=lens[1];return(validLen+placeHoldersLen)*3/4-placeHoldersLen;}function _byteLength(b64,validLen,placeHoldersLen){return(validLen+placeHoldersLen)*3/4-placeHoldersLen;}function toByteArray(b64){var tmp;var lens=getLens(b64);var validLen=lens[0];var placeHoldersLen=lens[1];var arr=new Arr(_byteLength(b64,validLen,placeHoldersLen));var curByte=0;// if there are placeholders, only get up to the last complete 4 chars\nvar len=placeHoldersLen>0?validLen-4:validLen;var i;for(i=0;i<len;i+=4){tmp=revLookup[b64.charCodeAt(i)]<<18|revLookup[b64.charCodeAt(i+1)]<<12|revLookup[b64.charCodeAt(i+2)]<<6|revLookup[b64.charCodeAt(i+3)];arr[curByte++]=tmp>>16&0xFF;arr[curByte++]=tmp>>8&0xFF;arr[curByte++]=tmp&0xFF;}if(placeHoldersLen===2){tmp=revLookup[b64.charCodeAt(i)]<<2|revLookup[b64.charCodeAt(i+1)]>>4;arr[curByte++]=tmp&0xFF;}if(placeHoldersLen===1){tmp=revLookup[b64.charCodeAt(i)]<<10|revLookup[b64.charCodeAt(i+1)]<<4|revLookup[b64.charCodeAt(i+2)]>>2;arr[curByte++]=tmp>>8&0xFF;arr[curByte++]=tmp&0xFF;}return arr;}function tripletToBase64(num){return lookup[num>>18&0x3F]+lookup[num>>12&0x3F]+lookup[num>>6&0x3F]+lookup[num&0x3F];}function encodeChunk(uint8,start,end){var tmp;var output=[];for(var i=start;i<end;i+=3){tmp=(uint8[i]<<16&0xFF0000)+(uint8[i+1]<<8&0xFF00)+(uint8[i+2]&0xFF);output.push(tripletToBase64(tmp));}return output.join('');}function fromByteArray(uint8){var tmp;var len=uint8.length;var extraBytes=len%3;// if we have 1 byte left, pad 2 bytes\nvar parts=[];var maxChunkLength=16383;// must be multiple of 3\n// go through the array every three bytes, we'll deal with trailing stuff later\nfor(var i=0,len2=len-extraBytes;i<len2;i+=maxChunkLength){parts.push(encodeChunk(uint8,i,i+maxChunkLength>len2?len2:i+maxChunkLength));}// pad the end with zeros, but make sure to not forget the extra bytes\nif(extraBytes===1){tmp=uint8[len-1];parts.push(lookup[tmp>>2]+lookup[tmp<<4&0x3F]+'==');}else if(extraBytes===2){tmp=(uint8[len-2]<<8)+uint8[len-1];parts.push(lookup[tmp>>10]+lookup[tmp>>4&0x3F]+lookup[tmp<<2&0x3F]+'=');}return parts.join('');}/***/},/* 424 */ /***/function(module,exports,__nested_webpack_require_4479025__){\"use strict\";__nested_webpack_require_4479025__(82);__nested_webpack_require_4479025__(44);// Generated by CoffeeScript 1.7.1\nvar UnicodeTrie,inflate;inflate=__nested_webpack_require_4479025__(83);UnicodeTrie=function(){var DATA_BLOCK_LENGTH,DATA_GRANULARITY,DATA_MASK,INDEX_1_OFFSET,INDEX_2_BLOCK_LENGTH,INDEX_2_BMP_LENGTH,INDEX_2_MASK,INDEX_SHIFT,LSCP_INDEX_2_LENGTH,LSCP_INDEX_2_OFFSET,OMITTED_BMP_INDEX_1_LENGTH,SHIFT_1,SHIFT_1_2,SHIFT_2,UTF8_2B_INDEX_2_LENGTH,UTF8_2B_INDEX_2_OFFSET;SHIFT_1=6+5;SHIFT_2=5;SHIFT_1_2=SHIFT_1-SHIFT_2;OMITTED_BMP_INDEX_1_LENGTH=0x10000>>SHIFT_1;INDEX_2_BLOCK_LENGTH=1<<SHIFT_1_2;INDEX_2_MASK=INDEX_2_BLOCK_LENGTH-1;INDEX_SHIFT=2;DATA_BLOCK_LENGTH=1<<SHIFT_2;DATA_MASK=DATA_BLOCK_LENGTH-1;LSCP_INDEX_2_OFFSET=0x10000>>SHIFT_2;LSCP_INDEX_2_LENGTH=0x400>>SHIFT_2;INDEX_2_BMP_LENGTH=LSCP_INDEX_2_OFFSET+LSCP_INDEX_2_LENGTH;UTF8_2B_INDEX_2_OFFSET=INDEX_2_BMP_LENGTH;UTF8_2B_INDEX_2_LENGTH=0x800>>6;INDEX_1_OFFSET=UTF8_2B_INDEX_2_OFFSET+UTF8_2B_INDEX_2_LENGTH;DATA_GRANULARITY=1<<INDEX_SHIFT;function UnicodeTrie(data){var isBuffer,uncompressedLength,view;isBuffer=typeof data.readUInt32BE==='function'&&typeof data.slice==='function';if(isBuffer||data instanceof Uint8Array){if(isBuffer){this.highStart=data.readUInt32BE(0);this.errorValue=data.readUInt32BE(4);uncompressedLength=data.readUInt32BE(8);data=data.slice(12);}else{view=new DataView(data.buffer);this.highStart=view.getUint32(0);this.errorValue=view.getUint32(4);uncompressedLength=view.getUint32(8);data=data.subarray(12);}data=inflate(data,new Uint8Array(uncompressedLength));data=inflate(data,new Uint8Array(uncompressedLength));this.data=new Uint32Array(data.buffer);}else{this.data=data.data,this.highStart=data.highStart,this.errorValue=data.errorValue;}}UnicodeTrie.prototype.get=function(codePoint){var index;if(codePoint<0||codePoint>0x10ffff){return this.errorValue;}if(codePoint<0xd800||codePoint>0xdbff&&codePoint<=0xffff){index=(this.data[codePoint>>SHIFT_2]<<INDEX_SHIFT)+(codePoint&DATA_MASK);return this.data[index];}if(codePoint<=0xffff){index=(this.data[LSCP_INDEX_2_OFFSET+(codePoint-0xd800>>SHIFT_2)]<<INDEX_SHIFT)+(codePoint&DATA_MASK);return this.data[index];}if(codePoint<this.highStart){index=this.data[INDEX_1_OFFSET-OMITTED_BMP_INDEX_1_LENGTH+(codePoint>>SHIFT_1)];index=this.data[index+(codePoint>>SHIFT_2&INDEX_2_MASK)];index=(index<<INDEX_SHIFT)+(codePoint&DATA_MASK);return this.data[index];}return this.data[this.data.length-DATA_GRANULARITY];};return UnicodeTrie;}();module.exports=UnicodeTrie;/***/},/* 425 */ /***/function(module,exports,__nested_webpack_require_4481565__){\"use strict\";__nested_webpack_require_4481565__(99);__nested_webpack_require_4481565__(426);__nested_webpack_require_4481565__(162);__nested_webpack_require_4481565__(165);__nested_webpack_require_4481565__(92);var INITIAL_STATE=1;var FAIL_STATE=0;/**\r\n     * A StateMachine represents a deterministic finite automaton.\r\n     * It can perform matches over a sequence of values, similar to a regular expression.\r\n     */var StateMachine=/*#__PURE__*/function(){function StateMachine(dfa){this.stateTable=dfa.stateTable;this.accepting=dfa.accepting;this.tags=dfa.tags;}/**\r\n       * Returns an iterable object that yields pattern matches over the input sequence.\r\n       * Matches are of the form [startIndex, endIndex, tags].\r\n       */var _proto=StateMachine.prototype;_proto.match=function match(str){var _ref;var self=this;return _ref={},_ref[Symbol.iterator]=/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var state,startRun,lastAccepting,lastState,p,c;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:state=INITIAL_STATE;startRun=null;lastAccepting=null;lastState=null;p=0;case 5:if(!(p<str.length)){_context.next=21;break;}c=str[p];lastState=state;state=self.stateTable[state][c];if(!(state===FAIL_STATE)){_context.next=15;break;}if(!(startRun!=null&&lastAccepting!=null&&lastAccepting>=startRun)){_context.next=13;break;}_context.next=13;return[startRun,lastAccepting,self.tags[lastState]];case 13:// reset the state as if we started over from the initial state\nstate=self.stateTable[INITIAL_STATE][c];startRun=null;case 15:// start a run if not in the failure state\nif(state!==FAIL_STATE&&startRun==null){startRun=p;}// if accepting, mark the potential match end\nif(self.accepting[state]){lastAccepting=p;}// reset the state to the initial state if we get into the failure state\nif(state===FAIL_STATE){state=INITIAL_STATE;}case 18:p++;_context.next=5;break;case 21:if(!(startRun!=null&&lastAccepting!=null&&lastAccepting>=startRun)){_context.next=24;break;}_context.next=24;return[startRun,lastAccepting,self.tags[state]];case 24:case\"end\":return _context.stop();}}},_callee);}),_ref;}/**\r\n       * For each match over the input sequence, action functions matching\r\n       * the tag definitions in the input pattern are called with the startIndex,\r\n       * endIndex, and sub-match sequence.\r\n       */;_proto.apply=function apply(str,actions){for(var _iterator=this.match(str),_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref2;if(_isArray){if(_i>=_iterator.length)break;_ref2=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref2=_i.value;}var _ref3=_ref2,start=_ref3[0],end=_ref3[1],tags=_ref3[2];for(var _iterator2=tags,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_iterator2[Symbol.iterator]();;){var _ref4;if(_isArray2){if(_i2>=_iterator2.length)break;_ref4=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref4=_i2.value;}var tag=_ref4;if(typeof actions[tag]==='function'){actions[tag](start,end,str.slice(start,end+1));}}}};return StateMachine;}();module.exports=StateMachine;/***/},/* 426 */ /***/function(module,exports){/**\r\n     * Copyright (c) 2014-present, Facebook, Inc.\r\n     *\r\n     * This source code is licensed under the MIT license found in the\r\n     * LICENSE file in the root directory of this source tree.\r\n     */!function(global){\"use strict\";var Op=Object.prototype;var hasOwn=Op.hasOwnProperty;var undefined;// More compressible than void 0.\nvar $Symbol=typeof Symbol===\"function\"?Symbol:{};var iteratorSymbol=$Symbol.iterator||\"@@iterator\";var asyncIteratorSymbol=$Symbol.asyncIterator||\"@@asyncIterator\";var toStringTagSymbol=$Symbol.toStringTag||\"@@toStringTag\";var inModule=typeof module===\"object\";var runtime=global.regeneratorRuntime;if(runtime){if(inModule){// If regeneratorRuntime is defined globally and we're in a module,\n// make the exports object identical to regeneratorRuntime.\nmodule.exports=runtime;}// Don't bother evaluating the rest of this file if the runtime was\n// already defined globally.\nreturn;}// Define the runtime globally (as expected by generated code) as either\n// module.exports (if we're in a module) or a new, empty object.\nruntime=global.regeneratorRuntime=inModule?module.exports:{};function wrap(innerFn,outerFn,self,tryLocsList){// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\nvar protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator;var generator=Object.create(protoGenerator.prototype);var context=new Context(tryLocsList||[]);// The ._invoke method unifies the implementations of the .next,\n// .throw, and .return methods.\ngenerator._invoke=makeInvokeMethod(innerFn,self,context);return generator;}runtime.wrap=wrap;// Try/catch helper to minimize deoptimizations. Returns a completion\n// record like context.tryEntries[i].completion. This interface could\n// have been (and was previously) designed to take a closure to be\n// invoked without arguments, but in all the cases we care about we\n// already have an existing method we want to call, so there's no need\n// to create a new function object. We can even get away with assuming\n// the method takes exactly one argument, since that happens to be true\n// in every case, so we don't have to touch the arguments object. The\n// only additional allocation required is the completion record, which\n// has a stable shape and so hopefully should be cheap to allocate.\nfunction tryCatch(fn,obj,arg){try{return{type:\"normal\",arg:fn.call(obj,arg)};}catch(err){return{type:\"throw\",arg:err};}}var GenStateSuspendedStart=\"suspendedStart\";var GenStateSuspendedYield=\"suspendedYield\";var GenStateExecuting=\"executing\";var GenStateCompleted=\"completed\";// Returning this object from the innerFn has the same effect as\n// breaking out of the dispatch switch statement.\nvar ContinueSentinel={};// Dummy constructor functions that we use as the .constructor and\n// .constructor.prototype properties for functions that return Generator\n// objects. For full spec compliance, you may wish to configure your\n// minifier not to mangle the names of these two functions.\nfunction Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}// This is a polyfill for %IteratorPrototype% for environments that\n// don't natively support it.\nvar IteratorPrototype={};IteratorPrototype[iteratorSymbol]=function(){return this;};var getProto=Object.getPrototypeOf;var NativeIteratorPrototype=getProto&&getProto(getProto(values([])));if(NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)){// This environment has a native %IteratorPrototype%; use it instead\n// of the polyfill.\nIteratorPrototype=NativeIteratorPrototype;}var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);GeneratorFunction.prototype=Gp.constructor=GeneratorFunctionPrototype;GeneratorFunctionPrototype.constructor=GeneratorFunction;GeneratorFunctionPrototype[toStringTagSymbol]=GeneratorFunction.displayName=\"GeneratorFunction\";// Helper for defining the .next, .throw, and .return methods of the\n// Iterator interface in terms of a single ._invoke method.\nfunction defineIteratorMethods(prototype){[\"next\",\"throw\",\"return\"].forEach(function(method){prototype[method]=function(arg){return this._invoke(method,arg);};});}runtime.isGeneratorFunction=function(genFun){var ctor=typeof genFun===\"function\"&&genFun.constructor;return ctor?ctor===GeneratorFunction||// For the native GeneratorFunction constructor, the best we can\n// do is to check its .name property.\n(ctor.displayName||ctor.name)===\"GeneratorFunction\":false;};runtime.mark=function(genFun){if(Object.setPrototypeOf){Object.setPrototypeOf(genFun,GeneratorFunctionPrototype);}else{genFun.__proto__=GeneratorFunctionPrototype;if(!(toStringTagSymbol in genFun)){genFun[toStringTagSymbol]=\"GeneratorFunction\";}}genFun.prototype=Object.create(Gp);return genFun;};// Within the body of any async function, `await x` is transformed to\n// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n// `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n// meant to be awaited.\nruntime.awrap=function(arg){return{__await:arg};};function AsyncIterator(generator){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if(record.type===\"throw\"){reject(record.arg);}else{var result=record.arg;var value=result.value;if(value&&typeof value===\"object\"&&hasOwn.call(value,\"__await\")){return Promise.resolve(value.__await).then(function(value){invoke(\"next\",value,resolve,reject);},function(err){invoke(\"throw\",err,resolve,reject);});}return Promise.resolve(value).then(function(unwrapped){// When a yielded Promise is resolved, its final value becomes\n// the .value of the Promise<{value,done}> result for the\n// current iteration. If the Promise is rejected, however, the\n// result for this iteration will be rejected with the same\n// reason. Note that rejections of yielded Promises are not\n// thrown back into the generator function, as is the case\n// when an awaited Promise is rejected. This difference in\n// behavior between yield and await is important, because it\n// allows the consumer to decide what to do with the yielded\n// rejection (swallow it and continue, manually .throw it back\n// into the generator, abandon iteration, whatever). With\n// await, by contrast, there is no opportunity to examine the\n// rejection reason outside the generator function, so the\n// only option is to throw it from the await expression, and\n// let the generator function handle the exception.\nresult.value=unwrapped;resolve(result);},reject);}}var previousPromise;function enqueue(method,arg){function callInvokeWithMethodAndArg(){return new Promise(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=// If enqueue has been called before, then we want to wait until\n// all previous Promises have been resolved before calling invoke,\n// so that results are always delivered in the correct order. If\n// enqueue has not been called before, then it is important to\n// call invoke immediately, without waiting on a callback to fire,\n// so that the async generator function has the opportunity to do\n// any necessary setup in a predictable way. This predictability\n// is why the Promise constructor synchronously invokes its\n// executor callback, and why async functions synchronously\n// execute code before the first await. Since we implement simple\n// async functions in terms of async generators, it is especially\n// important to get this right, even though it requires care.\npreviousPromise?previousPromise.then(callInvokeWithMethodAndArg,// Avoid propagating failures to Promises returned by later\n// invocations of the iterator.\ncallInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}// Define the unified helper method that is used to implement .next,\n// .throw, and .return (see defineIteratorMethods).\nthis._invoke=enqueue;}defineIteratorMethods(AsyncIterator.prototype);AsyncIterator.prototype[asyncIteratorSymbol]=function(){return this;};runtime.AsyncIterator=AsyncIterator;// Note that simple async functions are implemented on top of\n// AsyncIterator objects; they just return a Promise for the value of\n// the final result produced by the iterator.\nruntime.async=function(innerFn,outerFn,self,tryLocsList){var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList));return runtime.isGeneratorFunction(outerFn)?iter// If outerFn is a generator, return the full iterator.\n:iter.next().then(function(result){return result.done?result.value:iter.next();});};function makeInvokeMethod(innerFn,self,context){var state=GenStateSuspendedStart;return function invoke(method,arg){if(state===GenStateExecuting){throw new Error(\"Generator is already running\");}if(state===GenStateCompleted){if(method===\"throw\"){throw arg;}// Be forgiving, per 25.3.3.3.3 of the spec:\n// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\nreturn doneResult();}context.method=method;context.arg=arg;while(true){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if(context.method===\"next\"){// Setting context._sent for legacy support of Babel's\n// function.sent implementation.\ncontext.sent=context._sent=context.arg;}else if(context.method===\"throw\"){if(state===GenStateSuspendedStart){state=GenStateCompleted;throw context.arg;}context.dispatchException(context.arg);}else if(context.method===\"return\"){context.abrupt(\"return\",context.arg);}state=GenStateExecuting;var record=tryCatch(innerFn,self,context);if(record.type===\"normal\"){// If an exception is thrown from innerFn, we leave state ===\n// GenStateExecuting and loop back for another invocation.\nstate=context.done?GenStateCompleted:GenStateSuspendedYield;if(record.arg===ContinueSentinel){continue;}return{value:record.arg,done:context.done};}else if(record.type===\"throw\"){state=GenStateCompleted;// Dispatch the exception by looping back around to the\n// context.dispatchException(context.arg) call above.\ncontext.method=\"throw\";context.arg=record.arg;}}};}// Call delegate.iterator[context.method](context.arg) and handle the\n// result, either by returning a { value, done } result from the\n// delegate iterator, or by modifying context.method and context.arg,\n// setting context.delegate to null, and returning the ContinueSentinel.\nfunction maybeInvokeDelegate(delegate,context){var method=delegate.iterator[context.method];if(method===undefined){// A .throw or .return when the delegate iterator has no .throw\n// method always terminates the yield* loop.\ncontext.delegate=null;if(context.method===\"throw\"){if(delegate.iterator.return){// If the delegate iterator has a return method, give it a\n// chance to clean up.\ncontext.method=\"return\";context.arg=undefined;maybeInvokeDelegate(delegate,context);if(context.method===\"throw\"){// If maybeInvokeDelegate(context) changed context.method from\n// \"return\" to \"throw\", let that override the TypeError below.\nreturn ContinueSentinel;}}context.method=\"throw\";context.arg=new TypeError(\"The iterator does not provide a 'throw' method\");}return ContinueSentinel;}var record=tryCatch(method,delegate.iterator,context.arg);if(record.type===\"throw\"){context.method=\"throw\";context.arg=record.arg;context.delegate=null;return ContinueSentinel;}var info=record.arg;if(!info){context.method=\"throw\";context.arg=new TypeError(\"iterator result is not an object\");context.delegate=null;return ContinueSentinel;}if(info.done){// Assign the result of the finished delegate to the temporary\n// variable specified by delegate.resultName (see delegateYield).\ncontext[delegate.resultName]=info.value;// Resume execution at the desired location (see delegateYield).\ncontext.next=delegate.nextLoc;// If context.method was \"throw\" but the delegate handled the\n// exception, let the outer generator proceed normally. If\n// context.method was \"next\", forget context.arg since it has been\n// \"consumed\" by the delegate iterator. If context.method was\n// \"return\", allow the original .return call to continue in the\n// outer generator.\nif(context.method!==\"return\"){context.method=\"next\";context.arg=undefined;}}else{// Re-yield the result returned by the delegate method.\nreturn info;}// The delegate iterator is finished, so forget it and continue with\n// the outer generator.\ncontext.delegate=null;return ContinueSentinel;}// Define Generator.prototype.{next,throw,return} in terms of the\n// unified ._invoke helper method.\ndefineIteratorMethods(Gp);Gp[toStringTagSymbol]=\"Generator\";// A Generator should always return itself as the iterator object when the\n// @@iterator function is called on it. Some browsers' implementations of the\n// iterator prototype chain incorrectly implement this, causing the Generator\n// object to not be returned from this call. This ensures that doesn't happen.\n// See https://github.com/facebook/regenerator/issues/274 for more details.\nGp[iteratorSymbol]=function(){return this;};Gp.toString=function(){return\"[object Generator]\";};function pushTryEntry(locs){var entry={tryLoc:locs[0]};if(1 in locs){entry.catchLoc=locs[1];}if(2 in locs){entry.finallyLoc=locs[2];entry.afterLoc=locs[3];}this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type=\"normal\";delete record.arg;entry.completion=record;}function Context(tryLocsList){// The root entry object (effectively a try statement without a catch\n// or a finally block) gives us a place to store values thrown from\n// locations where there is no enclosing try statement.\nthis.tryEntries=[{tryLoc:\"root\"}];tryLocsList.forEach(pushTryEntry,this);this.reset(true);}runtime.keys=function(object){var keys=[];for(var key in object){keys.push(key);}keys.reverse();// Rather than returning an object with a next method, we keep\n// things simple and return the next function itself.\nreturn function next(){while(keys.length){var key=keys.pop();if(key in object){next.value=key;next.done=false;return next;}}// To avoid creating an additional object, we just hang the .value\n// and .done properties off the next function object itself. This\n// also ensures that the minifier will not anonymize the function.\nnext.done=true;return next;};};function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod){return iteratorMethod.call(iterable);}if(typeof iterable.next===\"function\"){return iterable;}if(!isNaN(iterable.length)){var i=-1,next=function next(){while(++i<iterable.length){if(hasOwn.call(iterable,i)){next.value=iterable[i];next.done=false;return next;}}next.value=undefined;next.done=true;return next;};return next.next=next;}}// Return an iterator with no values.\nreturn{next:doneResult};}runtime.values=values;function doneResult(){return{value:undefined,done:true};}Context.prototype={constructor:Context,reset:function(skipTempReset){this.prev=0;this.next=0;// Resetting context._sent for legacy support of Babel's\n// function.sent implementation.\nthis.sent=this._sent=undefined;this.done=false;this.delegate=null;this.method=\"next\";this.arg=undefined;this.tryEntries.forEach(resetTryEntry);if(!skipTempReset){for(var name in this){// Not sure about the optimal order of these conditions:\nif(name.charAt(0)===\"t\"&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))){this[name]=undefined;}}}},stop:function(){this.done=true;var rootEntry=this.tryEntries[0];var rootRecord=rootEntry.completion;if(rootRecord.type===\"throw\"){throw rootRecord.arg;}return this.rval;},dispatchException:function(exception){if(this.done){throw exception;}var context=this;function handle(loc,caught){record.type=\"throw\";record.arg=exception;context.next=loc;if(caught){// If the dispatched exception was caught by a catch block,\n// then let that catch block handle the exception normally.\ncontext.method=\"next\";context.arg=undefined;}return!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];var record=entry.completion;if(entry.tryLoc===\"root\"){// Exception thrown outside of any try block that could handle\n// it, so set the completion value of the entire function to\n// throw the exception.\nreturn handle(\"end\");}if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,\"catchLoc\");var hasFinally=hasOwn.call(entry,\"finallyLoc\");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc){return handle(entry.catchLoc,true);}else if(this.prev<entry.finallyLoc){return handle(entry.finallyLoc);}}else if(hasCatch){if(this.prev<entry.catchLoc){return handle(entry.catchLoc,true);}}else if(hasFinally){if(this.prev<entry.finallyLoc){return handle(entry.finallyLoc);}}else{throw new Error(\"try statement without catch or finally\");}}}},abrupt:function(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,\"finallyLoc\")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}if(finallyEntry&&(type===\"break\"||type===\"continue\")&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc){// Ignore the finally entry if control is not jumping to a\n// location outside the try/catch block.\nfinallyEntry=null;}var record=finallyEntry?finallyEntry.completion:{};record.type=type;record.arg=arg;if(finallyEntry){this.method=\"next\";this.next=finallyEntry.finallyLoc;return ContinueSentinel;}return this.complete(record);},complete:function(record,afterLoc){if(record.type===\"throw\"){throw record.arg;}if(record.type===\"break\"||record.type===\"continue\"){this.next=record.arg;}else if(record.type===\"return\"){this.rval=this.arg=record.arg;this.method=\"return\";this.next=\"end\";}else if(record.type===\"normal\"&&afterLoc){this.next=afterLoc;}return ContinueSentinel;},finish:function(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc){this.complete(entry.completion,entry.afterLoc);resetTryEntry(entry);return ContinueSentinel;}}},\"catch\":function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if(record.type===\"throw\"){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}// The context.catch method must only be called with a location\n// argument that corresponds to a known catch block.\nthrow new Error(\"illegal catch attempt\");},delegateYield:function(iterable,resultName,nextLoc){this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc};if(this.method===\"next\"){// Deliberately forget the last sent value so that we don't\n// accidentally pass it on to the delegate.\nthis.arg=undefined;}return ContinueSentinel;}};}(// In sloppy mode, unbound `this` refers to the global object, fallback to\n// Function constructor if we're in global strict mode. That is sadly a form\n// of indirect eval which violates Content Security Policy.\nfunction(){return this;}()||Function(\"return this\")());/***/},/* 427 */ /***/function(module,exports,__nested_webpack_require_4503717__){module.exports={\"default\":__nested_webpack_require_4503717__(428),__esModule:true};/***/},/* 428 */ /***/function(module,exports,__nested_webpack_require_4503852__){__nested_webpack_require_4503852__(429);module.exports=Math.pow(2,-52);/***/},/* 429 */ /***/function(module,exports,__nested_webpack_require_4503975__){// 20.1.2.1 Number.EPSILON\nvar $export=__nested_webpack_require_4503975__(7);$export($export.S,'Number',{EPSILON:Math.pow(2,-52)});/***/},/* 430 */ /***/function(module,exports,__nested_webpack_require_4504158__){/* WEBPACK VAR INJECTION */(function(Buffer){var clone=function(){'use strict';/**\r\n     * Clones (copies) an Object using deep copying.\r\n     *\r\n     * This function supports circular references by default, but if you are certain\r\n     * there are no circular references in your object, you can save some CPU time\r\n     * by calling clone(obj, false).\r\n     *\r\n     * Caution: if `circular` is false and `parent` contains circular references,\r\n     * your program may enter an infinite loop and crash.\r\n     *\r\n     * @param `parent` - the object to be cloned\r\n     * @param `circular` - set to true if the object to be cloned may contain\r\n     *    circular references. (optional - true by default)\r\n     * @param `depth` - set to a number if the object is only to be cloned to\r\n     *    a particular depth. (optional - defaults to Infinity)\r\n     * @param `prototype` - sets the prototype to be used when cloning an object.\r\n     *    (optional - defaults to parent prototype).\r\n    */function clone(parent,circular,depth,prototype){var filter;if(typeof circular==='object'){depth=circular.depth;prototype=circular.prototype;filter=circular.filter;circular=circular.circular;}// maintain two arrays for circular references, where corresponding parents\n// and children have the same index\nvar allParents=[];var allChildren=[];var useBuffer=typeof Buffer!='undefined';if(typeof circular=='undefined')circular=true;if(typeof depth=='undefined')depth=Infinity;// recurse this function so we don't reset allParents and allChildren\nfunction _clone(parent,depth){// cloning null always returns null\nif(parent===null)return null;if(depth==0)return parent;var child;var proto;if(typeof parent!='object'){return parent;}if(clone.__isArray(parent)){child=[];}else if(clone.__isRegExp(parent)){child=new RegExp(parent.source,__getRegExpFlags(parent));if(parent.lastIndex)child.lastIndex=parent.lastIndex;}else if(clone.__isDate(parent)){child=new Date(parent.getTime());}else if(useBuffer&&Buffer.isBuffer(parent)){if(Buffer.allocUnsafe){// Node.js >= 4.5.0\nchild=Buffer.allocUnsafe(parent.length);}else{// Older Node.js versions\nchild=new Buffer(parent.length);}parent.copy(child);return child;}else{if(typeof prototype=='undefined'){proto=Object.getPrototypeOf(parent);child=Object.create(proto);}else{child=Object.create(prototype);proto=prototype;}}if(circular){var index=allParents.indexOf(parent);if(index!=-1){return allChildren[index];}allParents.push(parent);allChildren.push(child);}for(var i in parent){var attrs;if(proto){attrs=Object.getOwnPropertyDescriptor(proto,i);}if(attrs&&attrs.set==null){continue;}child[i]=_clone(parent[i],depth-1);}return child;}return _clone(parent,depth);}/**\r\n     * Simple flat clone using prototype, accepts only objects, usefull for property\r\n     * override on FLAT configuration object (no nested props).\r\n     *\r\n     * USE WITH CAUTION! This may not behave as you wish if you do not know how this\r\n     * works.\r\n     */clone.clonePrototype=function clonePrototype(parent){if(parent===null)return null;var c=function(){};c.prototype=parent;return new c();};// private utility functions\nfunction __objToStr(o){return Object.prototype.toString.call(o);};clone.__objToStr=__objToStr;function __isDate(o){return typeof o==='object'&&__objToStr(o)==='[object Date]';};clone.__isDate=__isDate;function __isArray(o){return typeof o==='object'&&__objToStr(o)==='[object Array]';};clone.__isArray=__isArray;function __isRegExp(o){return typeof o==='object'&&__objToStr(o)==='[object RegExp]';};clone.__isRegExp=__isRegExp;function __getRegExpFlags(re){var flags='';if(re.global)flags+='g';if(re.ignoreCase)flags+='i';if(re.multiline)flags+='m';return flags;};clone.__getRegExpFlags=__getRegExpFlags;return clone;}();if( true&&module.exports){module.exports=clone;}/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_4504158__(4).Buffer);/***/},/* 431 */ /***/function(module,exports,__nested_webpack_require_4508092__){module.exports=__nested_webpack_require_4508092__(205).BrotliDecompressBuffer;/***/},/* 432 */ /***/function(module,exports){/* Copyright 2013 Google Inc. All Rights Reserved.\r\n    \r\n       Licensed under the Apache License, Version 2.0 (the \"License\");\r\n       you may not use this file except in compliance with the License.\r\n       You may obtain a copy of the License at\r\n    \r\n       http://www.apache.org/licenses/LICENSE-2.0\r\n    \r\n       Unless required by applicable law or agreed to in writing, software\r\n       distributed under the License is distributed on an \"AS IS\" BASIS,\r\n       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n       See the License for the specific language governing permissions and\r\n       limitations under the License.\r\n    \r\n       Bit reading helpers\r\n    */var BROTLI_READ_SIZE=4096;var BROTLI_IBUF_SIZE=2*BROTLI_READ_SIZE+32;var BROTLI_IBUF_MASK=2*BROTLI_READ_SIZE-1;var kBitMask=new Uint32Array([0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215]);/* Input byte buffer, consist of a ringbuffer and a \"slack\" region where */ /* bytes from the start of the ringbuffer are copied. */function BrotliBitReader(input){this.buf_=new Uint8Array(BROTLI_IBUF_SIZE);this.input_=input;/* input callback */this.reset();}BrotliBitReader.READ_SIZE=BROTLI_READ_SIZE;BrotliBitReader.IBUF_MASK=BROTLI_IBUF_MASK;BrotliBitReader.prototype.reset=function(){this.buf_ptr_=0;/* next input will write here */this.val_=0;/* pre-fetched bits */this.pos_=0;/* byte position in stream */this.bit_pos_=0;/* current bit-reading position in val_ */this.bit_end_pos_=0;/* bit-reading end position from LSB of val_ */this.eos_=0;/* input stream is finished */this.readMoreInput();for(var i=0;i<4;i++){this.val_|=this.buf_[this.pos_]<<8*i;++this.pos_;}return this.bit_end_pos_>0;};/* Fills up the input ringbuffer by calling the input callback.\r\n    \r\n       Does nothing if there are at least 32 bytes present after current position.\r\n    \r\n       Returns 0 if either:\r\n        - the input callback returned an error, or\r\n        - there is no more input and the position is past the end of the stream.\r\n    \r\n       After encountering the end of the input stream, 32 additional zero bytes are\r\n       copied to the ringbuffer, therefore it is safe to call this function after\r\n       every 32 bytes of input is read.\r\n    */BrotliBitReader.prototype.readMoreInput=function(){if(this.bit_end_pos_>256){return;}else if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error('Unexpected end of input '+this.bit_pos_+' '+this.bit_end_pos_);}else{var dst=this.buf_ptr_;var bytes_read=this.input_.read(this.buf_,dst,BROTLI_READ_SIZE);if(bytes_read<0){throw new Error('Unexpected end of input');}if(bytes_read<BROTLI_READ_SIZE){this.eos_=1;/* Store 32 bytes of zero after the stream end. */for(var p=0;p<32;p++)this.buf_[dst+bytes_read+p]=0;}if(dst===0){/* Copy the head of the ringbuffer to the slack region. */for(var p=0;p<32;p++)this.buf_[(BROTLI_READ_SIZE<<1)+p]=this.buf_[p];this.buf_ptr_=BROTLI_READ_SIZE;}else{this.buf_ptr_=0;}this.bit_end_pos_+=bytes_read<<3;}};/* Guarantees that there are at least 24 bits in the buffer. */BrotliBitReader.prototype.fillBitWindow=function(){while(this.bit_pos_>=8){this.val_>>>=8;this.val_|=this.buf_[this.pos_&BROTLI_IBUF_MASK]<<24;++this.pos_;this.bit_pos_=this.bit_pos_-8>>>0;this.bit_end_pos_=this.bit_end_pos_-8>>>0;}};/* Reads the specified number of bits from Read Buffer. */BrotliBitReader.prototype.readBits=function(n_bits){if(32-this.bit_pos_<n_bits){this.fillBitWindow();}var val=this.val_>>>this.bit_pos_&kBitMask[n_bits];this.bit_pos_+=n_bits;return val;};module.exports=BrotliBitReader;/***/},/* 433 */ /***/function(module,exports,__nested_webpack_require_4511906__){var base64=__nested_webpack_require_4511906__(434);var fs=__nested_webpack_require_4511906__(84);/**\r\n     * The normal dictionary-data.js is quite large, which makes it \r\n     * unsuitable for browser usage. In order to make it smaller, \r\n     * we read dictionary.bin, which is a compressed version of\r\n     * the dictionary, and on initial load, Brotli decompresses \r\n     * it's own dictionary. 😜\r\n     */exports.init=function(){var BrotliDecompressBuffer=__nested_webpack_require_4511906__(205).BrotliDecompressBuffer;var compressed=base64.toByteArray(__nested_webpack_require_4511906__(435));return BrotliDecompressBuffer(compressed);};/***/},/* 434 */ /***/function(module,exports,__webpack_require__){\"use strict\";exports.byteLength=byteLength;exports.toByteArray=toByteArray;exports.fromByteArray=fromByteArray;var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;function getLens(b64){var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// Trim off extra bytes after placeholder bytes are found\n// See: https://github.com/beatgammit/base64-js/issues/42\nvar validLen=b64.indexOf('=');if(validLen===-1)validLen=len;var placeHoldersLen=validLen===len?0:4-validLen%4;return[validLen,placeHoldersLen];}// base64 is 4/3 + up to two characters of the original data\nfunction byteLength(b64){var lens=getLens(b64);var validLen=lens[0];var placeHoldersLen=lens[1];return(validLen+placeHoldersLen)*3/4-placeHoldersLen;}function _byteLength(b64,validLen,placeHoldersLen){return(validLen+placeHoldersLen)*3/4-placeHoldersLen;}function toByteArray(b64){var tmp;var lens=getLens(b64);var validLen=lens[0];var placeHoldersLen=lens[1];var arr=new Arr(_byteLength(b64,validLen,placeHoldersLen));var curByte=0;// if there are placeholders, only get up to the last complete 4 chars\nvar len=placeHoldersLen>0?validLen-4:validLen;var i;for(i=0;i<len;i+=4){tmp=revLookup[b64.charCodeAt(i)]<<18|revLookup[b64.charCodeAt(i+1)]<<12|revLookup[b64.charCodeAt(i+2)]<<6|revLookup[b64.charCodeAt(i+3)];arr[curByte++]=tmp>>16&0xFF;arr[curByte++]=tmp>>8&0xFF;arr[curByte++]=tmp&0xFF;}if(placeHoldersLen===2){tmp=revLookup[b64.charCodeAt(i)]<<2|revLookup[b64.charCodeAt(i+1)]>>4;arr[curByte++]=tmp&0xFF;}if(placeHoldersLen===1){tmp=revLookup[b64.charCodeAt(i)]<<10|revLookup[b64.charCodeAt(i+1)]<<4|revLookup[b64.charCodeAt(i+2)]>>2;arr[curByte++]=tmp>>8&0xFF;arr[curByte++]=tmp&0xFF;}return arr;}function tripletToBase64(num){return lookup[num>>18&0x3F]+lookup[num>>12&0x3F]+lookup[num>>6&0x3F]+lookup[num&0x3F];}function encodeChunk(uint8,start,end){var tmp;var output=[];for(var i=start;i<end;i+=3){tmp=(uint8[i]<<16&0xFF0000)+(uint8[i+1]<<8&0xFF00)+(uint8[i+2]&0xFF);output.push(tripletToBase64(tmp));}return output.join('');}function fromByteArray(uint8){var tmp;var len=uint8.length;var extraBytes=len%3;// if we have 1 byte left, pad 2 bytes\nvar parts=[];var maxChunkLength=16383;// must be multiple of 3\n// go through the array every three bytes, we'll deal with trailing stuff later\nfor(var i=0,len2=len-extraBytes;i<len2;i+=maxChunkLength){parts.push(encodeChunk(uint8,i,i+maxChunkLength>len2?len2:i+maxChunkLength));}// pad the end with zeros, but make sure to not forget the extra bytes\nif(extraBytes===1){tmp=uint8[len-1];parts.push(lookup[tmp>>2]+lookup[tmp<<4&0x3F]+'==');}else if(extraBytes===2){tmp=(uint8[len-2]<<8)+uint8[len-1];parts.push(lookup[tmp>>10]+lookup[tmp>>4&0x3F]+lookup[tmp<<2&0x3F]+'=');}return parts.join('');}/***/},/* 435 */ /***/function(module,exports){module.exports=\" \";/***/},/* 436 */ /***/function(module,exports){/* Copyright 2013 Google Inc. All Rights Reserved.\r\n    \r\n       Licensed under the Apache License, Version 2.0 (the \"License\");\r\n       you may not use this file except in compliance with the License.\r\n       You may obtain a copy of the License at\r\n    \r\n       http://www.apache.org/licenses/LICENSE-2.0\r\n    \r\n       Unless required by applicable law or agreed to in writing, software\r\n       distributed under the License is distributed on an \"AS IS\" BASIS,\r\n       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n       See the License for the specific language governing permissions and\r\n       limitations under the License.\r\n    \r\n       Lookup table to map the previous two bytes to a context id.\r\n    \r\n       There are four different context modeling modes defined here:\r\n         CONTEXT_LSB6: context id is the least significant 6 bits of the last byte,\r\n         CONTEXT_MSB6: context id is the most significant 6 bits of the last byte,\r\n         CONTEXT_UTF8: second-order context model tuned for UTF8-encoded text,\r\n         CONTEXT_SIGNED: second-order context model tuned for signed integers.\r\n    \r\n       The context id for the UTF8 context model is calculated as follows. If p1\r\n       and p2 are the previous two bytes, we calcualte the context as\r\n    \r\n         context = kContextLookup[p1] | kContextLookup[p2 + 256].\r\n    \r\n       If the previous two bytes are ASCII characters (i.e. < 128), this will be\r\n       equivalent to\r\n    \r\n         context = 4 * context1(p1) + context2(p2),\r\n    \r\n       where context1 is based on the previous byte in the following way:\r\n    \r\n         0  : non-ASCII control\r\n         1  : \\t, \\n, \\r\r\n         2  : space\r\n         3  : other punctuation\r\n         4  : \" '\r\n         5  : %\r\n         6  : ( < [ {\r\n         7  : ) > ] }\r\n         8  : , ; :\r\n         9  : .\r\n         10 : =\r\n         11 : number\r\n         12 : upper-case vowel\r\n         13 : upper-case consonant\r\n         14 : lower-case vowel\r\n         15 : lower-case consonant\r\n    \r\n       and context2 is based on the second last byte:\r\n    \r\n         0 : control, space\r\n         1 : punctuation\r\n         2 : upper-case letter, number\r\n         3 : lower-case letter\r\n    \r\n       If the last byte is ASCII, and the second last byte is not (in a valid UTF8\r\n       stream it will be a continuation byte, value between 128 and 191), the\r\n       context is the same as if the second last byte was an ASCII control or space.\r\n    \r\n       If the last byte is a UTF8 lead byte (value >= 192), then the next byte will\r\n       be a continuation byte and the context id is 2 or 3 depending on the LSB of\r\n       the last byte and to a lesser extent on the second last byte if it is ASCII.\r\n    \r\n       If the last byte is a UTF8 continuation byte, the second last byte can be:\r\n         - continuation byte: the next byte is probably ASCII or lead byte (assuming\r\n           4-byte UTF8 characters are rare) and the context id is 0 or 1.\r\n         - lead byte (192 - 207): next byte is ASCII or lead byte, context is 0 or 1\r\n         - lead byte (208 - 255): next byte is continuation byte, context is 2 or 3\r\n    \r\n       The possible value combinations of the previous two bytes, the range of\r\n       context ids and the type of the next byte is summarized in the table below:\r\n    \r\n       |--------\\-----------------------------------------------------------------|\r\n       |         \\                         Last byte                              |\r\n       | Second   \\---------------------------------------------------------------|\r\n       | last byte \\    ASCII            |   cont. byte        |   lead byte      |\r\n       |            \\   (0-127)          |   (128-191)         |   (192-)         |\r\n       |=============|===================|=====================|==================|\r\n       |  ASCII      | next: ASCII/lead  |  not valid          |  next: cont.     |\r\n       |  (0-127)    | context: 4 - 63   |                     |  context: 2 - 3  |\r\n       |-------------|-------------------|---------------------|------------------|\r\n       |  cont. byte | next: ASCII/lead  |  next: ASCII/lead   |  next: cont.     |\r\n       |  (128-191)  | context: 4 - 63   |  context: 0 - 1     |  context: 2 - 3  |\r\n       |-------------|-------------------|---------------------|------------------|\r\n       |  lead byte  | not valid         |  next: ASCII/lead   |  not valid       |\r\n       |  (192-207)  |                   |  context: 0 - 1     |                  |\r\n       |-------------|-------------------|---------------------|------------------|\r\n       |  lead byte  | not valid         |  next: cont.        |  not valid       |\r\n       |  (208-)     |                   |  context: 2 - 3     |                  |\r\n       |-------------|-------------------|---------------------|------------------|\r\n    \r\n       The context id for the signed context mode is calculated as:\r\n    \r\n         context = (kContextLookup[512 + p1] << 3) | kContextLookup[512 + p2].\r\n    \r\n       For any context modeling modes, the context ids can be calculated by |-ing\r\n       together two lookups from one table using context model dependent offsets:\r\n    \r\n         context = kContextLookup[offset1 + p1] | kContextLookup[offset2 + p2].\r\n    \r\n       where offset1 and offset2 are dependent on the context mode.\r\n    */var CONTEXT_LSB6=0;var CONTEXT_MSB6=1;var CONTEXT_UTF8=2;var CONTEXT_SIGNED=3;/* Common context lookup table for all context modes. */exports.lookup=new Uint8Array([/* CONTEXT_UTF8, last byte. */ /* ASCII range. */0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,/* UTF8 continuation byte range. */0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,/* UTF8 lead byte range. */2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,/* CONTEXT_UTF8 second last byte. */ /* ASCII range. */0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,/* UTF8 continuation byte range. */0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,/* UTF8 lead byte range. */0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,/* CONTEXT_SIGNED, second last byte. */0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,/* CONTEXT_SIGNED, last byte, same as the above values shifted by 3 bits. */0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,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,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,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,/* CONTEXT_LSB6, last byte. */0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,/* CONTEXT_MSB6, last byte. */0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,/* CONTEXT_{M,L}SB6, second last byte, */0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);exports.lookupOffsets=new Uint16Array([/* CONTEXT_LSB6 */1024,1536,/* CONTEXT_MSB6 */1280,1536,/* CONTEXT_UTF8 */0,256,/* CONTEXT_SIGNED */768,512]);/***/},/* 437 */ /***/function(module,exports){/* Copyright 2013 Google Inc. All Rights Reserved.\r\n    \r\n       Licensed under the Apache License, Version 2.0 (the \"License\");\r\n       you may not use this file except in compliance with the License.\r\n       You may obtain a copy of the License at\r\n    \r\n       http://www.apache.org/licenses/LICENSE-2.0\r\n    \r\n       Unless required by applicable law or agreed to in writing, software\r\n       distributed under the License is distributed on an \"AS IS\" BASIS,\r\n       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n       See the License for the specific language governing permissions and\r\n       limitations under the License.\r\n    \r\n       Lookup tables to map prefix codes to value ranges. This is used during\r\n       decoding of the block lengths, literal insertion lengths and copy lengths.\r\n    */ /* Represents the range of values belonging to a prefix code: */ /* [offset, offset + 2^nbits) */function PrefixCodeRange(offset,nbits){this.offset=offset;this.nbits=nbits;}exports.kBlockLengthPrefixCode=[new PrefixCodeRange(1,2),new PrefixCodeRange(5,2),new PrefixCodeRange(9,2),new PrefixCodeRange(13,2),new PrefixCodeRange(17,3),new PrefixCodeRange(25,3),new PrefixCodeRange(33,3),new PrefixCodeRange(41,3),new PrefixCodeRange(49,4),new PrefixCodeRange(65,4),new PrefixCodeRange(81,4),new PrefixCodeRange(97,4),new PrefixCodeRange(113,5),new PrefixCodeRange(145,5),new PrefixCodeRange(177,5),new PrefixCodeRange(209,5),new PrefixCodeRange(241,6),new PrefixCodeRange(305,6),new PrefixCodeRange(369,7),new PrefixCodeRange(497,8),new PrefixCodeRange(753,9),new PrefixCodeRange(1265,10),new PrefixCodeRange(2289,11),new PrefixCodeRange(4337,12),new PrefixCodeRange(8433,13),new PrefixCodeRange(16625,24)];exports.kInsertLengthPrefixCode=[new PrefixCodeRange(0,0),new PrefixCodeRange(1,0),new PrefixCodeRange(2,0),new PrefixCodeRange(3,0),new PrefixCodeRange(4,0),new PrefixCodeRange(5,0),new PrefixCodeRange(6,1),new PrefixCodeRange(8,1),new PrefixCodeRange(10,2),new PrefixCodeRange(14,2),new PrefixCodeRange(18,3),new PrefixCodeRange(26,3),new PrefixCodeRange(34,4),new PrefixCodeRange(50,4),new PrefixCodeRange(66,5),new PrefixCodeRange(98,5),new PrefixCodeRange(130,6),new PrefixCodeRange(194,7),new PrefixCodeRange(322,8),new PrefixCodeRange(578,9),new PrefixCodeRange(1090,10),new PrefixCodeRange(2114,12),new PrefixCodeRange(6210,14),new PrefixCodeRange(22594,24)];exports.kCopyLengthPrefixCode=[new PrefixCodeRange(2,0),new PrefixCodeRange(3,0),new PrefixCodeRange(4,0),new PrefixCodeRange(5,0),new PrefixCodeRange(6,0),new PrefixCodeRange(7,0),new PrefixCodeRange(8,0),new PrefixCodeRange(9,0),new PrefixCodeRange(10,1),new PrefixCodeRange(12,1),new PrefixCodeRange(14,2),new PrefixCodeRange(18,2),new PrefixCodeRange(22,3),new PrefixCodeRange(30,3),new PrefixCodeRange(38,4),new PrefixCodeRange(54,4),new PrefixCodeRange(70,5),new PrefixCodeRange(102,5),new PrefixCodeRange(134,6),new PrefixCodeRange(198,7),new PrefixCodeRange(326,8),new PrefixCodeRange(582,9),new PrefixCodeRange(1094,10),new PrefixCodeRange(2118,24)];exports.kInsertRangeLut=[0,0,8,8,0,16,8,16,16];exports.kCopyRangeLut=[0,8,0,8,16,0,16,8,16];/***/},/* 438 */ /***/function(module,exports,__nested_webpack_require_4598566__){/* Copyright 2013 Google Inc. All Rights Reserved.\r\n    \r\n       Licensed under the Apache License, Version 2.0 (the \"License\");\r\n       you may not use this file except in compliance with the License.\r\n       You may obtain a copy of the License at\r\n    \r\n       http://www.apache.org/licenses/LICENSE-2.0\r\n    \r\n       Unless required by applicable law or agreed to in writing, software\r\n       distributed under the License is distributed on an \"AS IS\" BASIS,\r\n       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n       See the License for the specific language governing permissions and\r\n       limitations under the License.\r\n    \r\n       Transformations on dictionary words.\r\n    */var BrotliDictionary=__nested_webpack_require_4598566__(207);var kIdentity=0;var kOmitLast1=1;var kOmitLast2=2;var kOmitLast3=3;var kOmitLast4=4;var kOmitLast5=5;var kOmitLast6=6;var kOmitLast7=7;var kOmitLast8=8;var kOmitLast9=9;var kUppercaseFirst=10;var kUppercaseAll=11;var kOmitFirst1=12;var kOmitFirst2=13;var kOmitFirst3=14;var kOmitFirst4=15;var kOmitFirst5=16;var kOmitFirst6=17;var kOmitFirst7=18;var kOmitFirst8=19;var kOmitFirst9=20;function Transform(prefix,transform,suffix){this.prefix=new Uint8Array(prefix.length);this.transform=transform;this.suffix=new Uint8Array(suffix.length);for(var i=0;i<prefix.length;i++)this.prefix[i]=prefix.charCodeAt(i);for(var i=0;i<suffix.length;i++)this.suffix[i]=suffix.charCodeAt(i);}var kTransforms=[new Transform(\"\",kIdentity,\"\"),new Transform(\"\",kIdentity,\" \"),new Transform(\" \",kIdentity,\" \"),new Transform(\"\",kOmitFirst1,\"\"),new Transform(\"\",kUppercaseFirst,\" \"),new Transform(\"\",kIdentity,\" the \"),new Transform(\" \",kIdentity,\"\"),new Transform(\"s \",kIdentity,\" \"),new Transform(\"\",kIdentity,\" of \"),new Transform(\"\",kUppercaseFirst,\"\"),new Transform(\"\",kIdentity,\" and \"),new Transform(\"\",kOmitFirst2,\"\"),new Transform(\"\",kOmitLast1,\"\"),new Transform(\", \",kIdentity,\" \"),new Transform(\"\",kIdentity,\", \"),new Transform(\" \",kUppercaseFirst,\" \"),new Transform(\"\",kIdentity,\" in \"),new Transform(\"\",kIdentity,\" to \"),new Transform(\"e \",kIdentity,\" \"),new Transform(\"\",kIdentity,\"\\\"\"),new Transform(\"\",kIdentity,\".\"),new Transform(\"\",kIdentity,\"\\\">\"),new Transform(\"\",kIdentity,\"\\n\"),new Transform(\"\",kOmitLast3,\"\"),new Transform(\"\",kIdentity,\"]\"),new Transform(\"\",kIdentity,\" for \"),new Transform(\"\",kOmitFirst3,\"\"),new Transform(\"\",kOmitLast2,\"\"),new Transform(\"\",kIdentity,\" a \"),new Transform(\"\",kIdentity,\" that \"),new Transform(\" \",kUppercaseFirst,\"\"),new Transform(\"\",kIdentity,\". \"),new Transform(\".\",kIdentity,\"\"),new Transform(\" \",kIdentity,\", \"),new Transform(\"\",kOmitFirst4,\"\"),new Transform(\"\",kIdentity,\" with \"),new Transform(\"\",kIdentity,\"'\"),new Transform(\"\",kIdentity,\" from \"),new Transform(\"\",kIdentity,\" by \"),new Transform(\"\",kOmitFirst5,\"\"),new Transform(\"\",kOmitFirst6,\"\"),new Transform(\" the \",kIdentity,\"\"),new Transform(\"\",kOmitLast4,\"\"),new Transform(\"\",kIdentity,\". The \"),new Transform(\"\",kUppercaseAll,\"\"),new Transform(\"\",kIdentity,\" on \"),new Transform(\"\",kIdentity,\" as \"),new Transform(\"\",kIdentity,\" is \"),new Transform(\"\",kOmitLast7,\"\"),new Transform(\"\",kOmitLast1,\"ing \"),new Transform(\"\",kIdentity,\"\\n\\t\"),new Transform(\"\",kIdentity,\":\"),new Transform(\" \",kIdentity,\". \"),new Transform(\"\",kIdentity,\"ed \"),new Transform(\"\",kOmitFirst9,\"\"),new Transform(\"\",kOmitFirst7,\"\"),new Transform(\"\",kOmitLast6,\"\"),new Transform(\"\",kIdentity,\"(\"),new Transform(\"\",kUppercaseFirst,\", \"),new Transform(\"\",kOmitLast8,\"\"),new Transform(\"\",kIdentity,\" at \"),new Transform(\"\",kIdentity,\"ly \"),new Transform(\" the \",kIdentity,\" of \"),new Transform(\"\",kOmitLast5,\"\"),new Transform(\"\",kOmitLast9,\"\"),new Transform(\" \",kUppercaseFirst,\", \"),new Transform(\"\",kUppercaseFirst,\"\\\"\"),new Transform(\".\",kIdentity,\"(\"),new Transform(\"\",kUppercaseAll,\" \"),new Transform(\"\",kUppercaseFirst,\"\\\">\"),new Transform(\"\",kIdentity,\"=\\\"\"),new Transform(\" \",kIdentity,\".\"),new Transform(\".com/\",kIdentity,\"\"),new Transform(\" the \",kIdentity,\" of the \"),new Transform(\"\",kUppercaseFirst,\"'\"),new Transform(\"\",kIdentity,\". This \"),new Transform(\"\",kIdentity,\",\"),new Transform(\".\",kIdentity,\" \"),new Transform(\"\",kUppercaseFirst,\"(\"),new Transform(\"\",kUppercaseFirst,\".\"),new Transform(\"\",kIdentity,\" not \"),new Transform(\" \",kIdentity,\"=\\\"\"),new Transform(\"\",kIdentity,\"er \"),new Transform(\" \",kUppercaseAll,\" \"),new Transform(\"\",kIdentity,\"al \"),new Transform(\" \",kUppercaseAll,\"\"),new Transform(\"\",kIdentity,\"='\"),new Transform(\"\",kUppercaseAll,\"\\\"\"),new Transform(\"\",kUppercaseFirst,\". \"),new Transform(\" \",kIdentity,\"(\"),new Transform(\"\",kIdentity,\"ful \"),new Transform(\" \",kUppercaseFirst,\". \"),new Transform(\"\",kIdentity,\"ive \"),new Transform(\"\",kIdentity,\"less \"),new Transform(\"\",kUppercaseAll,\"'\"),new Transform(\"\",kIdentity,\"est \"),new Transform(\" \",kUppercaseFirst,\".\"),new Transform(\"\",kUppercaseAll,\"\\\">\"),new Transform(\" \",kIdentity,\"='\"),new Transform(\"\",kUppercaseFirst,\",\"),new Transform(\"\",kIdentity,\"ize \"),new Transform(\"\",kUppercaseAll,\".\"),new Transform(\"\\xc2\\xa0\",kIdentity,\"\"),new Transform(\" \",kIdentity,\",\"),new Transform(\"\",kUppercaseFirst,\"=\\\"\"),new Transform(\"\",kUppercaseAll,\"=\\\"\"),new Transform(\"\",kIdentity,\"ous \"),new Transform(\"\",kUppercaseAll,\", \"),new Transform(\"\",kUppercaseFirst,\"='\"),new Transform(\" \",kUppercaseFirst,\",\"),new Transform(\" \",kUppercaseAll,\"=\\\"\"),new Transform(\" \",kUppercaseAll,\", \"),new Transform(\"\",kUppercaseAll,\",\"),new Transform(\"\",kUppercaseAll,\"(\"),new Transform(\"\",kUppercaseAll,\". \"),new Transform(\" \",kUppercaseAll,\".\"),new Transform(\"\",kUppercaseAll,\"='\"),new Transform(\" \",kUppercaseAll,\". \"),new Transform(\" \",kUppercaseFirst,\"=\\\"\"),new Transform(\" \",kUppercaseAll,\"='\"),new Transform(\" \",kUppercaseFirst,\"='\")];exports.kTransforms=kTransforms;exports.kNumTransforms=kTransforms.length;function ToUpperCase(p,i){if(p[i]<0xc0){if(p[i]>=97&&p[i]<=122){p[i]^=32;}return 1;}/* An overly simplified uppercasing model for utf-8. */if(p[i]<0xe0){p[i+1]^=32;return 2;}/* An arbitrary transform for three byte characters. */p[i+2]^=5;return 3;}exports.transformDictionaryWord=function(dst,idx,word,len,transform){var prefix=kTransforms[transform].prefix;var suffix=kTransforms[transform].suffix;var t=kTransforms[transform].transform;var skip=t<kOmitFirst1?0:t-(kOmitFirst1-1);var i=0;var start_idx=idx;var uppercase;if(skip>len){skip=len;}var prefix_pos=0;while(prefix_pos<prefix.length){dst[idx++]=prefix[prefix_pos++];}word+=skip;len-=skip;if(t<=kOmitLast9){len-=t;}for(i=0;i<len;i++){dst[idx++]=BrotliDictionary.dictionary[word+i];}uppercase=idx-len;if(t===kUppercaseFirst){ToUpperCase(dst,uppercase);}else if(t===kUppercaseAll){while(len>0){var step=ToUpperCase(dst,uppercase);uppercase+=step;len-=step;}}var suffix_pos=0;while(suffix_pos<suffix.length){dst[idx++]=suffix[suffix_pos++];}return idx-start_idx;};/***/},/* 439 */ /***/function(module,exports,__nested_webpack_require_4605461__){\"use strict\";__nested_webpack_require_4605461__(82);__nested_webpack_require_4605461__(44);var inflate=__nested_webpack_require_4605461__(83);// Shift size for getting the index-1 table offset.\nvar SHIFT_1=6+5;// Shift size for getting the index-2 table offset.\nvar SHIFT_2=5;// Difference between the two shift sizes,\n// for getting an index-1 offset from an index-2 offset. 6=11-5\nvar SHIFT_1_2=SHIFT_1-SHIFT_2;// Number of index-1 entries for the BMP. 32=0x20\n// This part of the index-1 table is omitted from the serialized form.\nvar OMITTED_BMP_INDEX_1_LENGTH=0x10000>>SHIFT_1;// Number of entries in an index-2 block. 64=0x40\nvar INDEX_2_BLOCK_LENGTH=1<<SHIFT_1_2;// Mask for getting the lower bits for the in-index-2-block offset. */\nvar INDEX_2_MASK=INDEX_2_BLOCK_LENGTH-1;// Shift size for shifting left the index array values.\n// Increases possible data size with 16-bit index values at the cost\n// of compactability.\n// This requires data blocks to be aligned by DATA_GRANULARITY.\nvar INDEX_SHIFT=2;// Number of entries in a data block. 32=0x20\nvar DATA_BLOCK_LENGTH=1<<SHIFT_2;// Mask for getting the lower bits for the in-data-block offset.\nvar DATA_MASK=DATA_BLOCK_LENGTH-1;// The part of the index-2 table for U+D800..U+DBFF stores values for\n// lead surrogate code _units_ not code _points_.\n// Values for lead surrogate code _points_ are indexed with this portion of the table.\n// Length=32=0x20=0x400>>SHIFT_2. (There are 1024=0x400 lead surrogates.)\nvar LSCP_INDEX_2_OFFSET=0x10000>>SHIFT_2;var LSCP_INDEX_2_LENGTH=0x400>>SHIFT_2;// Count the lengths of both BMP pieces. 2080=0x820\nvar INDEX_2_BMP_LENGTH=LSCP_INDEX_2_OFFSET+LSCP_INDEX_2_LENGTH;// The 2-byte UTF-8 version of the index-2 table follows at offset 2080=0x820.\n// Length 32=0x20 for lead bytes C0..DF, regardless of SHIFT_2.\nvar UTF8_2B_INDEX_2_OFFSET=INDEX_2_BMP_LENGTH;var UTF8_2B_INDEX_2_LENGTH=0x800>>6;// U+0800 is the first code point after 2-byte UTF-8\n// The index-1 table, only used for supplementary code points, at offset 2112=0x840.\n// Variable length, for code points up to highStart, where the last single-value range starts.\n// Maximum length 512=0x200=0x100000>>SHIFT_1.\n// (For 0x100000 supplementary code points U+10000..U+10ffff.)\n//\n// The part of the index-2 table for supplementary code points starts\n// after this index-1 table.\n//\n// Both the index-1 table and the following part of the index-2 table\n// are omitted completely if there is only BMP data.\nvar INDEX_1_OFFSET=UTF8_2B_INDEX_2_OFFSET+UTF8_2B_INDEX_2_LENGTH;// The alignment size of a data block. Also the granularity for compaction.\nvar DATA_GRANULARITY=1<<INDEX_SHIFT;var UnicodeTrie=/*#__PURE__*/function(){function UnicodeTrie(data){var isBuffer=typeof data.readUInt32BE==='function'&&typeof data.slice==='function';if(isBuffer||data instanceof Uint8Array){// read binary format\nvar uncompressedLength;if(isBuffer){this.highStart=data.readUInt32BE(0);this.errorValue=data.readUInt32BE(4);uncompressedLength=data.readUInt32BE(8);data=data.slice(12);}else{var view=new DataView(data.buffer);this.highStart=view.getUint32(0);this.errorValue=view.getUint32(4);uncompressedLength=view.getUint32(8);data=data.subarray(12);}// double inflate the actual trie data\ndata=inflate(data,new Uint8Array(uncompressedLength));data=inflate(data,new Uint8Array(uncompressedLength));this.data=new Uint32Array(data.buffer);}else{// pre-parsed data\nvar _data=data;this.data=_data.data;this.highStart=_data.highStart;this.errorValue=_data.errorValue;}}var _proto=UnicodeTrie.prototype;_proto.get=function get(codePoint){var index;if(codePoint<0||codePoint>0x10ffff){return this.errorValue;}if(codePoint<0xd800||codePoint>0xdbff&&codePoint<=0xffff){// Ordinary BMP code point, excluding leading surrogates.\n// BMP uses a single level lookup.  BMP index starts at offset 0 in the index.\n// data is stored in the index array itself.\nindex=(this.data[codePoint>>SHIFT_2]<<INDEX_SHIFT)+(codePoint&DATA_MASK);return this.data[index];}if(codePoint<=0xffff){// Lead Surrogate Code Point.  A Separate index section is stored for\n// lead surrogate code units and code points.\n//   The main index has the code unit data.\n//   For this function, we need the code point data.\nindex=(this.data[LSCP_INDEX_2_OFFSET+(codePoint-0xd800>>SHIFT_2)]<<INDEX_SHIFT)+(codePoint&DATA_MASK);return this.data[index];}if(codePoint<this.highStart){// Supplemental code point, use two-level lookup.\nindex=this.data[INDEX_1_OFFSET-OMITTED_BMP_INDEX_1_LENGTH+(codePoint>>SHIFT_1)];index=this.data[index+(codePoint>>SHIFT_2&INDEX_2_MASK)];index=(index<<INDEX_SHIFT)+(codePoint&DATA_MASK);return this.data[index];}return this.data[this.data.length-DATA_GRANULARITY];};return UnicodeTrie;}();module.exports=UnicodeTrie;/***/},/* 440 */ /***/function(module,exports,__webpack_require__){var lookup='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';;(function(exports){'use strict';var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var PLUS='+'.charCodeAt(0);var SLASH='/'.charCodeAt(0);var NUMBER='0'.charCodeAt(0);var LOWER='a'.charCodeAt(0);var UPPER='A'.charCodeAt(0);var PLUS_URL_SAFE='-'.charCodeAt(0);var SLASH_URL_SAFE='_'.charCodeAt(0);function decode(elt){var code=elt.charCodeAt(0);if(code===PLUS||code===PLUS_URL_SAFE)return 62;// '+'\nif(code===SLASH||code===SLASH_URL_SAFE)return 63;// '/'\nif(code<NUMBER)return-1;//no match\nif(code<NUMBER+10)return code-NUMBER+26+26;if(code<UPPER+26)return code-UPPER;if(code<LOWER+26)return code-LOWER+26;}function b64ToByteArray(b64){var i,j,l,tmp,placeHolders,arr;if(b64.length%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders)\n// if there are two placeholders, than the two characters before it\n// represent one byte\n// if there is only one, then the three characters before it represent 2 bytes\n// this is just a cheap hack to not do indexOf twice\nvar len=b64.length;placeHolders='='===b64.charAt(len-2)?2:'='===b64.charAt(len-1)?1:0;// base64 is 4/3 + up to two characters of the original data\narr=new Arr(b64.length*3/4-placeHolders);// if there are placeholders, only get up to the last complete 4 chars\nl=placeHolders>0?b64.length-4:b64.length;var L=0;function push(v){arr[L++]=v;}for(i=0,j=0;i<l;i+=4,j+=3){tmp=decode(b64.charAt(i))<<18|decode(b64.charAt(i+1))<<12|decode(b64.charAt(i+2))<<6|decode(b64.charAt(i+3));push((tmp&0xFF0000)>>16);push((tmp&0xFF00)>>8);push(tmp&0xFF);}if(placeHolders===2){tmp=decode(b64.charAt(i))<<2|decode(b64.charAt(i+1))>>4;push(tmp&0xFF);}else if(placeHolders===1){tmp=decode(b64.charAt(i))<<10|decode(b64.charAt(i+1))<<4|decode(b64.charAt(i+2))>>2;push(tmp>>8&0xFF);push(tmp&0xFF);}return arr;}function uint8ToBase64(uint8){var i,extraBytes=uint8.length%3,// if we have 1 byte left, pad 2 bytes\noutput=\"\",temp,length;function encode(num){return lookup.charAt(num);}function tripletToBase64(num){return encode(num>>18&0x3F)+encode(num>>12&0x3F)+encode(num>>6&0x3F)+encode(num&0x3F);}// go through the array every three bytes, we'll deal with trailing stuff later\nfor(i=0,length=uint8.length-extraBytes;i<length;i+=3){temp=(uint8[i]<<16)+(uint8[i+1]<<8)+uint8[i+2];output+=tripletToBase64(temp);}// pad the end with zeros, but make sure to not forget the extra bytes\nswitch(extraBytes){case 1:temp=uint8[uint8.length-1];output+=encode(temp>>2);output+=encode(temp<<4&0x3F);output+='==';break;case 2:temp=(uint8[uint8.length-2]<<8)+uint8[uint8.length-1];output+=encode(temp>>10);output+=encode(temp>>4&0x3F);output+=encode(temp<<2&0x3F);output+='=';break;}return output;}exports.toByteArray=b64ToByteArray;exports.fromByteArray=uint8ToBase64;})( false?0:exports);/***/},/* 441 */ /***/function(module,exports,__webpack_require__){\"use strict\";// The following break classes are handled by the pair table\nexports.OP=0;// Opening punctuation\nexports.CL=1;// Closing punctuation\nexports.CP=2;// Closing parenthesis\nexports.QU=3;// Ambiguous quotation\nexports.GL=4;// Glue\nexports.NS=5;// Non-starters\nexports.EX=6;// Exclamation/Interrogation\nexports.SY=7;// Symbols allowing break after\nexports.IS=8;// Infix separator\nexports.PR=9;// Prefix\nexports.PO=10;// Postfix\nexports.NU=11;// Numeric\nexports.AL=12;// Alphabetic\nexports.HL=13;// Hebrew Letter\nexports.ID=14;// Ideographic\nexports.IN=15;// Inseparable characters\nexports.HY=16;// Hyphen\nexports.BA=17;// Break after\nexports.BB=18;// Break before\nexports.B2=19;// Break on either side (but not pair)\nexports.ZW=20;// Zero-width space\nexports.CM=21;// Combining marks\nexports.WJ=22;// Word joiner\nexports.H2=23;// Hangul LV\nexports.H3=24;// Hangul LVT\nexports.JL=25;// Hangul L Jamo\nexports.JV=26;// Hangul V Jamo\nexports.JT=27;// Hangul T Jamo\nexports.RI=28;// Regional Indicator\n// The following break classes are not handled by the pair table\nexports.AI=29;// Ambiguous (Alphabetic or Ideograph)\nexports.BK=30;// Break (mandatory)\nexports.CB=31;// Contingent break\nexports.CJ=32;// Conditional Japanese Starter\nexports.CR=33;// Carriage return\nexports.LF=34;// Line feed\nexports.NL=35;// Next line\nexports.SA=36;// South-East Asian\nexports.SG=37;// Surrogates\nexports.SP=38;// Space\nexports.XX=39;// Unknown\n/***/},/* 442 */ /***/function(module,exports,__webpack_require__){\"use strict\";var CI_BRK,CP_BRK,DI_BRK,IN_BRK,PR_BRK;exports.DI_BRK=DI_BRK=0;// Direct break opportunity\nexports.IN_BRK=IN_BRK=1;// Indirect break opportunity\nexports.CI_BRK=CI_BRK=2;// Indirect break opportunity for combining marks\nexports.CP_BRK=CP_BRK=3;// Prohibited break for combining marks\nexports.PR_BRK=PR_BRK=4;// Prohibited break\n// table generated from http://www.unicode.org/reports/tr14/#Table2\nexports.pairTable=[[PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,CP_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[PR_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,CI_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK],[IN_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,CI_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,DI_BRK,IN_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[IN_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK],[IN_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[IN_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[IN_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[IN_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,IN_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,DI_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,DI_BRK,IN_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,DI_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[IN_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,CI_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,DI_BRK,PR_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[IN_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK],[IN_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,CI_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,IN_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,DI_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,IN_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,DI_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,IN_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,IN_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,DI_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,IN_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,DI_BRK],[DI_BRK,PR_BRK,PR_BRK,IN_BRK,IN_BRK,IN_BRK,PR_BRK,PR_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK,IN_BRK,DI_BRK,DI_BRK,PR_BRK,CI_BRK,PR_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,DI_BRK,IN_BRK]];/***/},/* 443 */ /***/function(module,exports,__nested_webpack_require_4621086__){\"use strict\";/* WEBPACK VAR INJECTION */(function(Buffer){__nested_webpack_require_4621086__(157);__nested_webpack_require_4621086__(158);/*\r\n     * MIT LICENSE\r\n     * Copyright (c) 2011 Devon Govett\r\n     *\r\n     * Permission is hereby granted, free of charge, to any person obtaining a copy of this\r\n     * software and associated documentation files (the \"Software\"), to deal in the Software\r\n     * without restriction, including without limitation the rights to use, copy, modify, merge,\r\n     * publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons\r\n     * to whom the Software is furnished to do so, subject to the following conditions:\r\n     *\r\n     * The above copyright notice and this permission notice shall be included in all copies or\r\n     * substantial portions of the Software.\r\n     *\r\n     * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING\r\n     * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r\n     * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n     * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n     * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n     */var fs=__nested_webpack_require_4621086__(84);var zlib=__nested_webpack_require_4621086__(170);module.exports=/*#__PURE__*/function(){PNG.decode=function decode(path,fn){return fs.readFile(path,function(err,file){var png=new PNG(file);return png.decode(function(pixels){return fn(pixels);});});};PNG.load=function load(path){var file=fs.readFileSync(path);return new PNG(file);};function PNG(data){var i;this.data=data;this.pos=8;// Skip the default header\nthis.palette=[];this.imgData=[];this.transparency={};this.text={};while(true){var chunkSize=this.readUInt32();var section='';for(i=0;i<4;i++){section+=String.fromCharCode(this.data[this.pos++]);}switch(section){case'IHDR':// we can grab  interesting values from here (like width, height, etc)\nthis.width=this.readUInt32();this.height=this.readUInt32();this.bits=this.data[this.pos++];this.colorType=this.data[this.pos++];this.compressionMethod=this.data[this.pos++];this.filterMethod=this.data[this.pos++];this.interlaceMethod=this.data[this.pos++];break;case'PLTE':this.palette=this.read(chunkSize);break;case'IDAT':for(i=0;i<chunkSize;i++){this.imgData.push(this.data[this.pos++]);}break;case'tRNS':// This chunk can only occur once and it must occur after the\n// PLTE chunk and before the IDAT chunk.\nthis.transparency={};switch(this.colorType){case 3:// Indexed color, RGB. Each byte in this chunk is an alpha for\n// the palette index in the PLTE (\"palette\") chunk up until the\n// last non-opaque entry. Set up an array, stretching over all\n// palette entries which will be 0 (opaque) or 1 (transparent).\nthis.transparency.indexed=this.read(chunkSize);var short=255-this.transparency.indexed.length;if(short>0){for(i=0;i<short;i++){this.transparency.indexed.push(255);}}break;case 0:// Greyscale. Corresponding to entries in the PLTE chunk.\n// Grey is two bytes, range 0 .. (2 ^ bit-depth) - 1\nthis.transparency.grayscale=this.read(chunkSize)[0];break;case 2:// True color with proper alpha channel.\nthis.transparency.rgb=this.read(chunkSize);break;}break;case'tEXt':var text=this.read(chunkSize);var index=text.indexOf(0);var key=String.fromCharCode.apply(String,text.slice(0,index));this.text[key]=String.fromCharCode.apply(String,text.slice(index+1));break;case'IEND':// we've got everything we need!\nswitch(this.colorType){case 0:case 3:case 4:this.colors=1;break;case 2:case 6:this.colors=3;break;}this.hasAlphaChannel=[4,6].includes(this.colorType);var colors=this.colors+(this.hasAlphaChannel?1:0);this.pixelBitlength=this.bits*colors;switch(this.colors){case 1:this.colorSpace='DeviceGray';break;case 3:this.colorSpace='DeviceRGB';break;}this.imgData=new Buffer(this.imgData);return;break;default:// unknown (or unimportant) section, skip it\nthis.pos+=chunkSize;}this.pos+=4;// Skip the CRC\nif(this.pos>this.data.length){throw new Error('Incomplete or corrupt PNG file');}}}var _proto=PNG.prototype;_proto.read=function read(bytes){var result=new Array(bytes);for(var _i=0;_i<bytes;_i++){result[_i]=this.data[this.pos++];}return result;};_proto.readUInt32=function readUInt32(){var b1=this.data[this.pos++]<<24;var b2=this.data[this.pos++]<<16;var b3=this.data[this.pos++]<<8;var b4=this.data[this.pos++];return b1|b2|b3|b4;};_proto.readUInt16=function readUInt16(){var b1=this.data[this.pos++]<<8;var b2=this.data[this.pos++];return b1|b2;};_proto.decodePixels=function decodePixels(fn){var _this=this;return zlib.inflate(this.imgData,function(err,data){if(err){throw err;}var width=_this.width,height=_this.height;var pixelBytes=_this.pixelBitlength/8;var pixels=new Buffer(width*height*pixelBytes);var length=data.length;var pos=0;function pass(x0,y0,dx,dy,singlePass){if(singlePass===void 0){singlePass=false;}var w=Math.ceil((width-x0)/dx);var h=Math.ceil((height-y0)/dy);var scanlineLength=pixelBytes*w;var buffer=singlePass?pixels:new Buffer(scanlineLength*h);var row=0;var c=0;while(row<h&&pos<length){var byte,col,i,left,upper;switch(data[pos++]){case 0:// None\nfor(i=0;i<scanlineLength;i++){buffer[c++]=data[pos++];}break;case 1:// Sub\nfor(i=0;i<scanlineLength;i++){byte=data[pos++];left=i<pixelBytes?0:buffer[c-pixelBytes];buffer[c++]=(byte+left)%256;}break;case 2:// Up\nfor(i=0;i<scanlineLength;i++){byte=data[pos++];col=(i-i%pixelBytes)/pixelBytes;upper=row&&buffer[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes];buffer[c++]=(upper+byte)%256;}break;case 3:// Average\nfor(i=0;i<scanlineLength;i++){byte=data[pos++];col=(i-i%pixelBytes)/pixelBytes;left=i<pixelBytes?0:buffer[c-pixelBytes];upper=row&&buffer[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes];buffer[c++]=(byte+Math.floor((left+upper)/2))%256;}break;case 4:// Paeth\nfor(i=0;i<scanlineLength;i++){var paeth,upperLeft;byte=data[pos++];col=(i-i%pixelBytes)/pixelBytes;left=i<pixelBytes?0:buffer[c-pixelBytes];if(row===0){upper=upperLeft=0;}else{upper=buffer[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes];upperLeft=col&&buffer[(row-1)*scanlineLength+(col-1)*pixelBytes+i%pixelBytes];}var p=left+upper-upperLeft;var pa=Math.abs(p-left);var pb=Math.abs(p-upper);var pc=Math.abs(p-upperLeft);if(pa<=pb&&pa<=pc){paeth=left;}else if(pb<=pc){paeth=upper;}else{paeth=upperLeft;}buffer[c++]=(byte+paeth)%256;}break;default:throw new Error(\"Invalid filter algorithm: \"+data[pos-1]);}if(!singlePass){var pixelsPos=((y0+row*dy)*width+x0)*pixelBytes;var bufferPos=row*scanlineLength;for(i=0;i<w;i++){for(var j=0;j<pixelBytes;j++){pixels[pixelsPos++]=buffer[bufferPos++];}pixelsPos+=(dx-1)*pixelBytes;}}row++;}}if(_this.interlaceMethod===1){/*\r\n              1 6 4 6 2 6 4 6\r\n              7 7 7 7 7 7 7 7\r\n              5 6 5 6 5 6 5 6\r\n              7 7 7 7 7 7 7 7\r\n              3 6 4 6 3 6 4 6\r\n              7 7 7 7 7 7 7 7\r\n              5 6 5 6 5 6 5 6\r\n              7 7 7 7 7 7 7 7\r\n            */pass(0,0,8,8);// 1\npass(4,0,8,8);// 2\npass(0,4,4,8);// 3\npass(2,0,4,4);// 4\npass(0,2,2,4);// 5\npass(1,0,2,2);// 6\npass(0,1,1,2);// 7\n}else{pass(0,0,1,1,true);}return fn(pixels);});};_proto.decodePalette=function decodePalette(){var palette=this.palette;var length=palette.length;var transparency=this.transparency.indexed||[];var ret=new Buffer(transparency.length+length);var pos=0;var c=0;for(var _i2=0;_i2<length;_i2+=3){var left;ret[pos++]=palette[_i2];ret[pos++]=palette[_i2+1];ret[pos++]=palette[_i2+2];ret[pos++]=(left=transparency[c++])!=null?left:255;}return ret;};_proto.copyToImageData=function copyToImageData(imageData,pixels){var j,k;var colors=this.colors;var palette=null;var alpha=this.hasAlphaChannel;if(this.palette.length){palette=this._decodedPalette||(this._decodedPalette=this.decodePalette());colors=4;alpha=true;}var data=imageData.data||imageData;var length=data.length;var input=palette||pixels;var i=j=0;if(colors===1){while(i<length){k=palette?pixels[i/4]*4:j;var v=input[k++];data[i++]=v;data[i++]=v;data[i++]=v;data[i++]=alpha?input[k++]:255;j=k;}}else{while(i<length){k=palette?pixels[i/4]*4:j;data[i++]=input[k++];data[i++]=input[k++];data[i++]=input[k++];data[i++]=alpha?input[k++]:255;j=k;}}};_proto.decode=function decode(fn){var _this2=this;var ret=new Buffer(this.width*this.height*4);return this.decodePixels(function(pixels){_this2.copyToImageData(ret,pixels);return fn(ret);});};return PNG;}();/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_4621086__(4).Buffer);/***/},/* 444 */ /***/function(module,exports,__nested_webpack_require_4629696__){\"use strict\";var isArray=__nested_webpack_require_4629696__(0).isArray;function typeName(bold,italics){var type='normal';if(bold&&italics){type='bolditalics';}else if(bold){type='bold';}else if(italics){type='italics';}return type;}function FontProvider(fontDescriptors,pdfKitDoc){this.fonts={};this.pdfKitDoc=pdfKitDoc;this.fontCache={};for(var font in fontDescriptors){if(fontDescriptors.hasOwnProperty(font)){var fontDef=fontDescriptors[font];this.fonts[font]={normal:fontDef.normal,bold:fontDef.bold,italics:fontDef.italics,bolditalics:fontDef.bolditalics};}}}FontProvider.prototype.getFontType=function(bold,italics){return typeName(bold,italics);};FontProvider.prototype.getFontFile=function(familyName,bold,italics){var type=this.getFontType(bold,italics);if(!this.fonts[familyName]||!this.fonts[familyName][type]){return null;}return this.fonts[familyName][type];};FontProvider.prototype.provideFont=function(familyName,bold,italics){var type=this.getFontType(bold,italics);if(this.getFontFile(familyName,bold,italics)===null){throw new Error('Font \\''+familyName+'\\' in style \\''+type+'\\' is not defined in the font section of the document definition.');}this.fontCache[familyName]=this.fontCache[familyName]||{};if(!this.fontCache[familyName][type]){var def=this.fonts[familyName][type];if(!isArray(def)){def=[def];}this.fontCache[familyName][type]=this.pdfKitDoc.font.apply(this.pdfKitDoc,def)._font;}return this.fontCache[familyName][type];};module.exports=FontProvider;/***/},/* 445 */ /***/function(module,exports,__nested_webpack_require_4631230__){\"use strict\";var TraversalTracker=__nested_webpack_require_4631230__(210);var DocPreprocessor=__nested_webpack_require_4631230__(446);var DocMeasure=__nested_webpack_require_4631230__(447);var DocumentContext=__nested_webpack_require_4631230__(212);var PageElementWriter=__nested_webpack_require_4631230__(449);var ColumnCalculator=__nested_webpack_require_4631230__(131);var TableProcessor=__nested_webpack_require_4631230__(451);var Line=__nested_webpack_require_4631230__(213);var isString=__nested_webpack_require_4631230__(0).isString;var isArray=__nested_webpack_require_4631230__(0).isArray;var isUndefined=__nested_webpack_require_4631230__(0).isUndefined;var isNull=__nested_webpack_require_4631230__(0).isNull;var pack=__nested_webpack_require_4631230__(0).pack;var offsetVector=__nested_webpack_require_4631230__(0).offsetVector;var fontStringify=__nested_webpack_require_4631230__(0).fontStringify;var getNodeId=__nested_webpack_require_4631230__(0).getNodeId;var isFunction=__nested_webpack_require_4631230__(0).isFunction;var TextTools=__nested_webpack_require_4631230__(130);var StyleContextStack=__nested_webpack_require_4631230__(211);function addAll(target,otherArray){otherArray.forEach(function(item){target.push(item);});}/**\r\n     * Creates an instance of LayoutBuilder - layout engine which turns document-definition-object\r\n     * into a set of pages, lines, inlines and vectors ready to be rendered into a PDF\r\n     *\r\n     * @param {Object} pageSize - an object defining page width and height\r\n     * @param {Object} pageMargins - an object defining top, left, right and bottom margins\r\n     */function LayoutBuilder(pageSize,pageMargins,imageMeasure,svgMeasure){this.pageSize=pageSize;this.pageMargins=pageMargins;this.tracker=new TraversalTracker();this.imageMeasure=imageMeasure;this.svgMeasure=svgMeasure;this.tableLayouts={};}LayoutBuilder.prototype.registerTableLayouts=function(tableLayouts){this.tableLayouts=pack(this.tableLayouts,tableLayouts);};/**\r\n     * Executes layout engine on document-definition-object and creates an array of pages\r\n     * containing positioned Blocks, Lines and inlines\r\n     *\r\n     * @param {Object} docStructure document-definition-object\r\n     * @param {Object} fontProvider font provider\r\n     * @param {Object} styleDictionary dictionary with style definitions\r\n     * @param {Object} defaultStyle default style definition\r\n     * @return {Array} an array of pages\r\n     */LayoutBuilder.prototype.layoutDocument=function(docStructure,fontProvider,styleDictionary,defaultStyle,background,header,footer,images,watermark,pageBreakBeforeFct){function addPageBreaksIfNecessary(linearNodeList,pages){if(!isFunction(pageBreakBeforeFct)){return false;}linearNodeList=linearNodeList.filter(function(node){return node.positions.length>0;});linearNodeList.forEach(function(node){var nodeInfo={};['id','text','ul','ol','table','image','qr','canvas','svg','columns','headlineLevel','style','pageBreak','pageOrientation','width','height'].forEach(function(key){if(node[key]!==undefined){nodeInfo[key]=node[key];}});nodeInfo.startPosition=node.positions[0];nodeInfo.pageNumbers=node.positions.map(function(node){return node.pageNumber;}).filter(function(element,position,array){return array.indexOf(element)===position;});nodeInfo.pages=pages.length;nodeInfo.stack=isArray(node.stack);node.nodeInfo=nodeInfo;});return linearNodeList.some(function(node,index,followingNodeList){if(node.pageBreak!=='before'&&!node.pageBreakCalculated){node.pageBreakCalculated=true;var pageNumber=node.nodeInfo.pageNumbers[0];var followingNodesOnPage=followingNodeList.slice(index+1).filter(function(node0){return node0.nodeInfo.pageNumbers.indexOf(pageNumber)>-1;});var nodesOnNextPage=followingNodeList.slice(index+1).filter(function(node0){return node0.nodeInfo.pageNumbers.indexOf(pageNumber+1)>-1;});var previousNodesOnPage=followingNodeList.slice(0,index).filter(function(node0){return node0.nodeInfo.pageNumbers.indexOf(pageNumber)>-1;});if(pageBreakBeforeFct(node.nodeInfo,followingNodesOnPage.map(function(node){return node.nodeInfo;}),nodesOnNextPage.map(function(node){return node.nodeInfo;}),previousNodesOnPage.map(function(node){return node.nodeInfo;}))){node.pageBreak='before';return true;}}});}this.docPreprocessor=new DocPreprocessor();this.docMeasure=new DocMeasure(fontProvider,styleDictionary,defaultStyle,this.imageMeasure,this.svgMeasure,this.tableLayouts,images);function resetXYs(result){result.linearNodeList.forEach(function(node){node.resetXY();});}var result=this.tryLayoutDocument(docStructure,fontProvider,styleDictionary,defaultStyle,background,header,footer,images,watermark);while(addPageBreaksIfNecessary(result.linearNodeList,result.pages)){resetXYs(result);result=this.tryLayoutDocument(docStructure,fontProvider,styleDictionary,defaultStyle,background,header,footer,images,watermark);}return result.pages;};LayoutBuilder.prototype.tryLayoutDocument=function(docStructure,fontProvider,styleDictionary,defaultStyle,background,header,footer,images,watermark,pageBreakBeforeFct){this.linearNodeList=[];docStructure=this.docPreprocessor.preprocessDocument(docStructure);docStructure=this.docMeasure.measureDocument(docStructure);this.writer=new PageElementWriter(new DocumentContext(this.pageSize,this.pageMargins),this.tracker);var _this=this;this.writer.context().tracker.startTracking('pageAdded',function(){_this.addBackground(background);});this.addBackground(background);this.processNode(docStructure);this.addHeadersAndFooters(header,footer);if(watermark!=null){this.addWatermark(watermark,fontProvider,defaultStyle);}return{pages:this.writer.context().pages,linearNodeList:this.linearNodeList};};LayoutBuilder.prototype.addBackground=function(background){var backgroundGetter=isFunction(background)?background:function(){return background;};var context=this.writer.context();var pageSize=context.getCurrentPage().pageSize;var pageBackground=backgroundGetter(context.page+1,pageSize);if(pageBackground){this.writer.beginUnbreakableBlock(pageSize.width,pageSize.height);pageBackground=this.docPreprocessor.preprocessDocument(pageBackground);this.processNode(this.docMeasure.measureDocument(pageBackground));this.writer.commitUnbreakableBlock(0,0);context.backgroundLength[context.page]+=pageBackground.positions.length;}};LayoutBuilder.prototype.addStaticRepeatable=function(headerOrFooter,sizeFunction){this.addDynamicRepeatable(function(){return JSON.parse(JSON.stringify(headerOrFooter));// copy to new object\n},sizeFunction);};LayoutBuilder.prototype.addDynamicRepeatable=function(nodeGetter,sizeFunction){var pages=this.writer.context().pages;for(var pageIndex=0,l=pages.length;pageIndex<l;pageIndex++){this.writer.context().page=pageIndex;var node=nodeGetter(pageIndex+1,l,this.writer.context().pages[pageIndex].pageSize);if(node){var sizes=sizeFunction(this.writer.context().getCurrentPage().pageSize,this.pageMargins);this.writer.beginUnbreakableBlock(sizes.width,sizes.height);node=this.docPreprocessor.preprocessDocument(node);this.processNode(this.docMeasure.measureDocument(node));this.writer.commitUnbreakableBlock(sizes.x,sizes.y);}}};LayoutBuilder.prototype.addHeadersAndFooters=function(header,footer){var headerSizeFct=function(pageSize,pageMargins){return{x:0,y:0,width:pageSize.width,height:pageMargins.top};};var footerSizeFct=function(pageSize,pageMargins){return{x:0,y:pageSize.height-pageMargins.bottom,width:pageSize.width,height:pageMargins.bottom};};if(isFunction(header)){this.addDynamicRepeatable(header,headerSizeFct);}else if(header){this.addStaticRepeatable(header,headerSizeFct);}if(isFunction(footer)){this.addDynamicRepeatable(footer,footerSizeFct);}else if(footer){this.addStaticRepeatable(footer,footerSizeFct);}};LayoutBuilder.prototype.addWatermark=function(watermark,fontProvider,defaultStyle){if(isString(watermark)){watermark={'text':watermark};}if(!watermark.text){// empty watermark text\nreturn;}watermark.font=watermark.font||defaultStyle.font||'Roboto';watermark.fontSize=watermark.fontSize||'auto';watermark.color=watermark.color||'black';watermark.opacity=watermark.opacity||0.6;watermark.bold=watermark.bold||false;watermark.italics=watermark.italics||false;watermark.angle=!isUndefined(watermark.angle)&&!isNull(watermark.angle)?watermark.angle:null;if(watermark.angle===null){watermark.angle=Math.atan2(this.pageSize.height,this.pageSize.width)*-180/Math.PI;}if(watermark.fontSize==='auto'){watermark.fontSize=getWatermarkFontSize(this.pageSize,watermark,fontProvider);}var watermarkObject={text:watermark.text,font:fontProvider.provideFont(watermark.font,watermark.bold,watermark.italics),fontSize:watermark.fontSize,color:watermark.color,opacity:watermark.opacity,angle:watermark.angle};watermarkObject._size=getWatermarkSize(watermark,fontProvider);var pages=this.writer.context().pages;for(var i=0,l=pages.length;i<l;i++){pages[i].watermark=watermarkObject;}function getWatermarkSize(watermark,fontProvider){var textTools=new TextTools(fontProvider);var styleContextStack=new StyleContextStack(null,{font:watermark.font,bold:watermark.bold,italics:watermark.italics});styleContextStack.push({fontSize:watermark.fontSize});var size=textTools.sizeOfString(watermark.text,styleContextStack);var rotatedSize=textTools.sizeOfRotatedText(watermark.text,watermark.angle,styleContextStack);return{size:size,rotatedSize:rotatedSize};}function getWatermarkFontSize(pageSize,watermark,fontProvider){var textTools=new TextTools(fontProvider);var styleContextStack=new StyleContextStack(null,{font:watermark.font,bold:watermark.bold,italics:watermark.italics});var rotatedSize;/**\r\n             * Binary search the best font size.\r\n             * Initial bounds [0, 1000]\r\n             * Break when range < 1\r\n             */var a=0;var b=1000;var c=(a+b)/2;while(Math.abs(a-b)>1){styleContextStack.push({fontSize:c});rotatedSize=textTools.sizeOfRotatedText(watermark.text,watermark.angle,styleContextStack);if(rotatedSize.width>pageSize.width){b=c;c=(a+b)/2;}else if(rotatedSize.width<pageSize.width){if(rotatedSize.height>pageSize.height){b=c;c=(a+b)/2;}else{a=c;c=(a+b)/2;}}styleContextStack.pop();}/*\r\n             End binary search\r\n             */return c;}};function decorateNode(node){var x=node.x,y=node.y;node.positions=[];if(isArray(node.canvas)){node.canvas.forEach(function(vector){var x=vector.x,y=vector.y,x1=vector.x1,y1=vector.y1,x2=vector.x2,y2=vector.y2;vector.resetXY=function(){vector.x=x;vector.y=y;vector.x1=x1;vector.y1=y1;vector.x2=x2;vector.y2=y2;};});}node.resetXY=function(){node.x=x;node.y=y;if(isArray(node.canvas)){node.canvas.forEach(function(vector){vector.resetXY();});}};}LayoutBuilder.prototype.processNode=function(node){var self=this;this.linearNodeList.push(node);decorateNode(node);applyMargins(function(){var unbreakable=node.unbreakable;if(unbreakable){self.writer.beginUnbreakableBlock();}var absPosition=node.absolutePosition;if(absPosition){self.writer.context().beginDetachedBlock();self.writer.context().moveTo(absPosition.x||0,absPosition.y||0);}var relPosition=node.relativePosition;if(relPosition){self.writer.context().beginDetachedBlock();self.writer.context().moveToRelative(relPosition.x||0,relPosition.y||0);}if(node.stack){self.processVerticalContainer(node);}else if(node.columns){self.processColumns(node);}else if(node.ul){self.processList(false,node);}else if(node.ol){self.processList(true,node);}else if(node.table){self.processTable(node);}else if(node.text!==undefined){self.processLeaf(node);}else if(node.toc){self.processToc(node);}else if(node.image){self.processImage(node);}else if(node.svg){self.processSVG(node);}else if(node.canvas){self.processCanvas(node);}else if(node.qr){self.processQr(node);}else if(!node._span){throw'Unrecognized document structure: '+JSON.stringify(node,fontStringify);}if(absPosition||relPosition){self.writer.context().endDetachedBlock();}if(unbreakable){self.writer.commitUnbreakableBlock();}});function applyMargins(callback){var margin=node._margin;if(node.pageBreak==='before'){self.writer.moveToNextPage(node.pageOrientation);}else if(node.pageBreak==='beforeOdd'){self.writer.moveToNextPage(node.pageOrientation);if((self.writer.context().page+1)%2===1){self.writer.moveToNextPage(node.pageOrientation);}}else if(node.pageBreak==='beforeEven'){self.writer.moveToNextPage(node.pageOrientation);if((self.writer.context().page+1)%2===0){self.writer.moveToNextPage(node.pageOrientation);}}if(margin){self.writer.context().moveDown(margin[1]);self.writer.context().addMargin(margin[0],margin[2]);}callback();if(margin){self.writer.context().addMargin(-margin[0],-margin[2]);self.writer.context().moveDown(margin[3]);}if(node.pageBreak==='after'){self.writer.moveToNextPage(node.pageOrientation);}else if(node.pageBreak==='afterOdd'){self.writer.moveToNextPage(node.pageOrientation);if((self.writer.context().page+1)%2===1){self.writer.moveToNextPage(node.pageOrientation);}}else if(node.pageBreak==='afterEven'){self.writer.moveToNextPage(node.pageOrientation);if((self.writer.context().page+1)%2===0){self.writer.moveToNextPage(node.pageOrientation);}}}};// vertical container\nLayoutBuilder.prototype.processVerticalContainer=function(node){var self=this;node.stack.forEach(function(item){self.processNode(item);addAll(node.positions,item.positions);//TODO: paragraph gap\n});};// columns\nLayoutBuilder.prototype.processColumns=function(columnNode){var columns=columnNode.columns;var availableWidth=this.writer.context().availableWidth;var gaps=gapArray(columnNode._gap);if(gaps){availableWidth-=(gaps.length-1)*columnNode._gap;}ColumnCalculator.buildColumnWidths(columns,availableWidth);var result=this.processRow(columns,columns,gaps);addAll(columnNode.positions,result.positions);function gapArray(gap){if(!gap){return null;}var gaps=[];gaps.push(0);for(var i=columns.length-1;i>0;i--){gaps.push(gap);}return gaps;}};LayoutBuilder.prototype.processRow=function(columns,widths,gaps,tableBody,tableRow,height){var self=this;var pageBreaks=[],positions=[];this.tracker.auto('pageChanged',storePageBreakData,function(){widths=widths||columns;self.writer.context().beginColumnGroup();for(var i=0,l=columns.length;i<l;i++){var column=columns[i];var width=widths[i]._calcWidth;var leftOffset=colLeftOffset(i);if(column.colSpan&&column.colSpan>1){for(var j=1;j<column.colSpan;j++){width+=widths[++i]._calcWidth+gaps[i];}}self.writer.context().beginColumn(width,leftOffset,getEndingCell(column,i));if(!column._span){self.processNode(column);addAll(positions,column.positions);}else if(column._columnEndingContext){// row-span ending\nself.writer.context().markEnding(column);}}self.writer.context().completeColumnGroup(height);});return{pageBreaks:pageBreaks,positions:positions};function storePageBreakData(data){var pageDesc;for(var i=0,l=pageBreaks.length;i<l;i++){var desc=pageBreaks[i];if(desc.prevPage===data.prevPage){pageDesc=desc;break;}}if(!pageDesc){pageDesc=data;pageBreaks.push(pageDesc);}pageDesc.prevY=Math.max(pageDesc.prevY,data.prevY);pageDesc.y=Math.min(pageDesc.y,data.y);}function colLeftOffset(i){if(gaps&&gaps.length>i){return gaps[i];}return 0;}function getEndingCell(column,columnIndex){if(column.rowSpan&&column.rowSpan>1){var endingRow=tableRow+column.rowSpan-1;if(endingRow>=tableBody.length){throw'Row span for column '+columnIndex+' (with indexes starting from 0) exceeded row count';}return tableBody[endingRow][columnIndex];}return null;}};// lists\nLayoutBuilder.prototype.processList=function(orderedList,node){var self=this,items=orderedList?node.ol:node.ul,gapSize=node._gapSize;this.writer.context().addMargin(gapSize.width);var nextMarker;this.tracker.auto('lineAdded',addMarkerToFirstLeaf,function(){items.forEach(function(item){nextMarker=item.listMarker;self.processNode(item);addAll(node.positions,item.positions);});});this.writer.context().addMargin(-gapSize.width);function addMarkerToFirstLeaf(line){// I'm not very happy with the way list processing is implemented\n// (both code and algorithm should be rethinked)\nif(nextMarker){var marker=nextMarker;nextMarker=null;if(marker.canvas){var vector=marker.canvas[0];offsetVector(vector,-marker._minWidth,0);self.writer.addVector(vector);}else if(marker._inlines){var markerLine=new Line(self.pageSize.width);markerLine.addInline(marker._inlines[0]);markerLine.x=-marker._minWidth;markerLine.y=line.getAscenderHeight()-markerLine.getAscenderHeight();self.writer.addLine(markerLine,true);}}}};// tables\nLayoutBuilder.prototype.processTable=function(tableNode){var processor=new TableProcessor(tableNode);processor.beginTable(this.writer);var rowHeights=tableNode.table.heights;for(var i=0,l=tableNode.table.body.length;i<l;i++){processor.beginRow(i,this.writer);var height;if(isFunction(rowHeights)){height=rowHeights(i);}else if(isArray(rowHeights)){height=rowHeights[i];}else{height=rowHeights;}if(height==='auto'){height=undefined;}var result=this.processRow(tableNode.table.body[i],tableNode.table.widths,tableNode._offsets.offsets,tableNode.table.body,i,height);addAll(tableNode.positions,result.positions);processor.endRow(i,this.writer,result.pageBreaks);}processor.endTable(this.writer);};// leafs (texts)\nLayoutBuilder.prototype.processLeaf=function(node){var line=this.buildNextLine(node);if(line&&(node.tocItem||node.id)){line._node=node;}var currentHeight=line?line.getHeight():0;var maxHeight=node.maxHeight||-1;if(line){var nodeId=getNodeId(node);if(nodeId){line.id=nodeId;}}if(node._tocItemRef){line._pageNodeRef=node._tocItemRef;}if(node._pageRef){line._pageNodeRef=node._pageRef._nodeRef;}if(line&&line.inlines&&isArray(line.inlines)){for(var i=0,l=line.inlines.length;i<l;i++){if(line.inlines[i]._tocItemRef){line.inlines[i]._pageNodeRef=line.inlines[i]._tocItemRef;}if(line.inlines[i]._pageRef){line.inlines[i]._pageNodeRef=line.inlines[i]._pageRef._nodeRef;}}}while(line&&(maxHeight===-1||currentHeight<maxHeight)){var positions=this.writer.addLine(line);node.positions.push(positions);line=this.buildNextLine(node);if(line){currentHeight+=line.getHeight();}}};LayoutBuilder.prototype.processToc=function(node){if(node.toc.title){this.processNode(node.toc.title);}if(node.toc._table){this.processNode(node.toc._table);}};LayoutBuilder.prototype.buildNextLine=function(textNode){function cloneInline(inline){var newInline=inline.constructor();for(var key in inline){newInline[key]=inline[key];}return newInline;}if(!textNode._inlines||textNode._inlines.length===0){return null;}var line=new Line(this.writer.context().availableWidth);var textTools=new TextTools(null);var isForceContinue=false;while(textNode._inlines&&textNode._inlines.length>0&&(line.hasEnoughSpaceForInline(textNode._inlines[0],textNode._inlines.slice(1))||isForceContinue)){var isHardWrap=false;var inline=textNode._inlines.shift();isForceContinue=false;if(!inline.noWrap&&inline.text.length>1&&inline.width>line.getAvailableWidth()){var widthPerChar=inline.width/inline.text.length;var maxChars=Math.floor(line.getAvailableWidth()/widthPerChar);if(maxChars<1){maxChars=1;}if(maxChars<inline.text.length){var newInline=cloneInline(inline);newInline.text=inline.text.substr(maxChars);inline.text=inline.text.substr(0,maxChars);newInline.width=textTools.widthOfString(newInline.text,newInline.font,newInline.fontSize,newInline.characterSpacing,newInline.fontFeatures);inline.width=textTools.widthOfString(inline.text,inline.font,inline.fontSize,inline.characterSpacing,inline.fontFeatures);textNode._inlines.unshift(newInline);isHardWrap=true;}}line.addInline(inline);isForceContinue=inline.noNewLine&&!isHardWrap;}line.lastLineInParagraph=textNode._inlines.length===0;return line;};// images\nLayoutBuilder.prototype.processImage=function(node){var position=this.writer.addImage(node);node.positions.push(position);};LayoutBuilder.prototype.processSVG=function(node){var position=this.writer.addSVG(node);node.positions.push(position);};LayoutBuilder.prototype.processCanvas=function(node){var height=node._minHeight;if(node.absolutePosition===undefined&&this.writer.context().availableHeight<height){// TODO: support for canvas larger than a page\n// TODO: support for other overflow methods\nthis.writer.moveToNextPage();}this.writer.alignCanvas(node);node.canvas.forEach(function(vector){var position=this.writer.addVector(vector);node.positions.push(position);},this);this.writer.context().moveDown(height);};LayoutBuilder.prototype.processQr=function(node){var position=this.writer.addQr(node);node.positions.push(position);};module.exports=LayoutBuilder;/***/},/* 446 */ /***/function(module,exports,__nested_webpack_require_4651460__){\"use strict\";/* WEBPACK VAR INJECTION */(function(Buffer){var isString=__nested_webpack_require_4651460__(0).isString;var isNumber=__nested_webpack_require_4651460__(0).isNumber;var isBoolean=__nested_webpack_require_4651460__(0).isBoolean;var isArray=__nested_webpack_require_4651460__(0).isArray;var isUndefined=__nested_webpack_require_4651460__(0).isUndefined;var fontStringify=__nested_webpack_require_4651460__(0).fontStringify;function DocPreprocessor(){}DocPreprocessor.prototype.preprocessDocument=function(docStructure){this.parentNode=null;this.tocs=[];this.nodeReferences=[];return this.preprocessNode(docStructure);};DocPreprocessor.prototype.preprocessNode=function(node){// expand shortcuts and casting values\nif(isArray(node)){node={stack:node};}else if(isString(node)){node={text:node};}else if(isNumber(node)||isBoolean(node)){node={text:node.toString()};}else if(node===undefined||node===null){node={text:''};}else if(Object.keys(node).length===0){// empty object\nnode={text:''};}else if('text'in node&&(node.text===undefined||node.text===null)){node.text='';}if(node.columns){return this.preprocessColumns(node);}else if(node.stack){return this.preprocessVerticalContainer(node);}else if(node.ul){return this.preprocessList(node);}else if(node.ol){return this.preprocessList(node);}else if(node.table){return this.preprocessTable(node);}else if(node.text!==undefined){return this.preprocessText(node);}else if(node.toc){return this.preprocessToc(node);}else if(node.image){return this.preprocessImage(node);}else if(node.svg){return this.preprocessSVG(node);}else if(node.canvas){return this.preprocessCanvas(node);}else if(node.qr){return this.preprocessQr(node);}else if(node.pageReference||node.textReference){return this.preprocessText(node);}else{throw'Unrecognized document structure: '+JSON.stringify(node,fontStringify);}};DocPreprocessor.prototype.preprocessColumns=function(node){var columns=node.columns;for(var i=0,l=columns.length;i<l;i++){columns[i]=this.preprocessNode(columns[i]);}return node;};DocPreprocessor.prototype.preprocessVerticalContainer=function(node){var items=node.stack;for(var i=0,l=items.length;i<l;i++){items[i]=this.preprocessNode(items[i]);}return node;};DocPreprocessor.prototype.preprocessList=function(node){var items=node.ul||node.ol;for(var i=0,l=items.length;i<l;i++){items[i]=this.preprocessNode(items[i]);}return node;};DocPreprocessor.prototype.preprocessTable=function(node){var col,row,cols,rows;for(col=0,cols=node.table.body[0].length;col<cols;col++){for(row=0,rows=node.table.body.length;row<rows;row++){var rowData=node.table.body[row];var data=rowData[col];if(data!==undefined){if(data===null){// transform to object\ndata='';}if(!data._span){rowData[col]=this.preprocessNode(data);}}}}return node;};DocPreprocessor.prototype.preprocessText=function(node){if(node.tocItem){if(!isArray(node.tocItem)){node.tocItem=[node.tocItem];}for(var i=0,l=node.tocItem.length;i<l;i++){if(!isString(node.tocItem[i])){node.tocItem[i]='_default_';}var tocItemId=node.tocItem[i];if(!this.tocs[tocItemId]){this.tocs[tocItemId]={toc:{_items:[],_pseudo:true}};}if(!node.id){node.id='toc-'+tocItemId+'-'+this.tocs[tocItemId].toc._items.length;}var tocItemRef={_nodeRef:this._getNodeForNodeRef(node),_textNodeRef:node};this.tocs[tocItemId].toc._items.push(tocItemRef);}}if(node.id){if(this.nodeReferences[node.id]){if(!this.nodeReferences[node.id]._pseudo){throw\"Node id '\"+node.id+\"' already exists\";}this.nodeReferences[node.id]._nodeRef=this._getNodeForNodeRef(node);this.nodeReferences[node.id]._textNodeRef=node;this.nodeReferences[node.id]._pseudo=false;}else{this.nodeReferences[node.id]={_nodeRef:this._getNodeForNodeRef(node),_textNodeRef:node};}}if(node.pageReference){if(!this.nodeReferences[node.pageReference]){this.nodeReferences[node.pageReference]={_nodeRef:{},_textNodeRef:{},_pseudo:true};}node.text='00000';node.linkToDestination=node.pageReference;node._pageRef=this.nodeReferences[node.pageReference];}if(node.textReference){if(!this.nodeReferences[node.textReference]){this.nodeReferences[node.textReference]={_nodeRef:{},_pseudo:true};}node.text='';node.linkToDestination=node.textReference;node._textRef=this.nodeReferences[node.textReference];}if(node.text&&node.text.text){node.text=[this.preprocessNode(node.text)];}else if(isArray(node.text)){var isSetParentNode=false;if(this.parentNode===null){this.parentNode=node;isSetParentNode=true;}for(var i=0,l=node.text.length;i<l;i++){node.text[i]=this.preprocessNode(node.text[i]);}if(isSetParentNode){this.parentNode=null;}}return node;};DocPreprocessor.prototype.preprocessToc=function(node){if(!node.toc.id){node.toc.id='_default_';}node.toc.title=node.toc.title?this.preprocessNode(node.toc.title):null;node.toc._items=[];if(this.tocs[node.toc.id]){if(!this.tocs[node.toc.id].toc._pseudo){throw\"TOC '\"+node.toc.id+\"' already exists\";}node.toc._items=this.tocs[node.toc.id].toc._items;}this.tocs[node.toc.id]=node;return node;};DocPreprocessor.prototype.preprocessImage=function(node){if(!isUndefined(node.image.type)&&!isUndefined(node.image.data)&&node.image.type==='Buffer'&&isArray(node.image.data)){node.image=Buffer.from(node.image.data);}return node;};DocPreprocessor.prototype.preprocessSVG=function(node){return node;};DocPreprocessor.prototype.preprocessCanvas=function(node){return node;};DocPreprocessor.prototype.preprocessQr=function(node){return node;};DocPreprocessor.prototype._getNodeForNodeRef=function(node){if(this.parentNode){return this.parentNode;}return node;};module.exports=DocPreprocessor;/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_4651460__(4).Buffer);/***/},/* 447 */ /***/function(module,exports,__nested_webpack_require_4657050__){\"use strict\";/*eslint no-unused-vars: [\"error\", {\"args\": \"none\"}]*/var TextTools=__nested_webpack_require_4657050__(130);var StyleContextStack=__nested_webpack_require_4657050__(211);var ColumnCalculator=__nested_webpack_require_4657050__(131);var isString=__nested_webpack_require_4657050__(0).isString;var isNumber=__nested_webpack_require_4657050__(0).isNumber;var isObject=__nested_webpack_require_4657050__(0).isObject;var isArray=__nested_webpack_require_4657050__(0).isArray;var fontStringify=__nested_webpack_require_4657050__(0).fontStringify;var getNodeId=__nested_webpack_require_4657050__(0).getNodeId;var pack=__nested_webpack_require_4657050__(0).pack;var qrEncoder=__nested_webpack_require_4657050__(448);/**\r\n     * @private\r\n     */function DocMeasure(fontProvider,styleDictionary,defaultStyle,imageMeasure,svgMeasure,tableLayouts,images){this.textTools=new TextTools(fontProvider);this.styleStack=new StyleContextStack(styleDictionary,defaultStyle);this.imageMeasure=imageMeasure;this.svgMeasure=svgMeasure;this.tableLayouts=tableLayouts;this.images=images;this.autoImageIndex=1;}/**\r\n     * Measures all nodes and sets min/max-width properties required for the second\r\n     * layout-pass.\r\n     * @param  {Object} docStructure document-definition-object\r\n     * @return {Object}              document-measurement-object\r\n     */DocMeasure.prototype.measureDocument=function(docStructure){return this.measureNode(docStructure);};DocMeasure.prototype.measureNode=function(node){var self=this;return this.styleStack.auto(node,function(){// TODO: refactor + rethink whether this is the proper way to handle margins\nnode._margin=getNodeMargin(node);if(node.columns){return extendMargins(self.measureColumns(node));}else if(node.stack){return extendMargins(self.measureVerticalContainer(node));}else if(node.ul){return extendMargins(self.measureUnorderedList(node));}else if(node.ol){return extendMargins(self.measureOrderedList(node));}else if(node.table){return extendMargins(self.measureTable(node));}else if(node.text!==undefined){return extendMargins(self.measureLeaf(node));}else if(node.toc){return extendMargins(self.measureToc(node));}else if(node.image){return extendMargins(self.measureImage(node));}else if(node.svg){return extendMargins(self.measureSVG(node));}else if(node.canvas){return extendMargins(self.measureCanvas(node));}else if(node.qr){return extendMargins(self.measureQr(node));}else{throw'Unrecognized document structure: '+JSON.stringify(node,fontStringify);}});function extendMargins(node){var margin=node._margin;if(margin){node._minWidth+=margin[0]+margin[2];node._maxWidth+=margin[0]+margin[2];}return node;}function getNodeMargin(){function processSingleMargins(node,currentMargin){if(node.marginLeft||node.marginTop||node.marginRight||node.marginBottom){return[node.marginLeft||currentMargin[0]||0,node.marginTop||currentMargin[1]||0,node.marginRight||currentMargin[2]||0,node.marginBottom||currentMargin[3]||0];}return currentMargin;}function flattenStyleArray(styleArray){var flattenedStyles={};for(var i=styleArray.length-1;i>=0;i--){var styleName=styleArray[i];var style=self.styleStack.styleDictionary[styleName];for(var key in style){if(style.hasOwnProperty(key)){flattenedStyles[key]=style[key];}}}return flattenedStyles;}function convertMargin(margin){if(isNumber(margin)){margin=[margin,margin,margin,margin];}else if(isArray(margin)){if(margin.length===2){margin=[margin[0],margin[1],margin[0],margin[1]];}}return margin;}var margin=[undefined,undefined,undefined,undefined];if(node.style){var styleArray=isArray(node.style)?node.style:[node.style];var flattenedStyleArray=flattenStyleArray(styleArray);if(flattenedStyleArray){margin=processSingleMargins(flattenedStyleArray,margin);}if(flattenedStyleArray.margin){margin=convertMargin(flattenedStyleArray.margin);}}margin=processSingleMargins(node,margin);if(node.margin){margin=convertMargin(node.margin);}if(margin[0]===undefined&&margin[1]===undefined&&margin[2]===undefined&&margin[3]===undefined){return null;}else{return margin;}}};DocMeasure.prototype.convertIfBase64Image=function(node){if(/^data:image\\/(jpeg|jpg|png);base64,/.test(node.image)){var label='$$pdfmake$$'+this.autoImageIndex++;this.images[label]=node.image;node.image=label;}};DocMeasure.prototype.measureImageWithDimensions=function(node,dimensions){if(node.fit){var factor=dimensions.width/dimensions.height>node.fit[0]/node.fit[1]?node.fit[0]/dimensions.width:node.fit[1]/dimensions.height;node._width=node._minWidth=node._maxWidth=dimensions.width*factor;node._height=dimensions.height*factor;}else{node._width=node._minWidth=node._maxWidth=node.width||dimensions.width;node._height=node.height||dimensions.height*node._width/dimensions.width;if(isNumber(node.maxWidth)&&node.maxWidth<node._width){node._width=node._minWidth=node._maxWidth=node.maxWidth;node._height=node._width*dimensions.height/dimensions.width;}if(isNumber(node.maxHeight)&&node.maxHeight<node._height){node._height=node.maxHeight;node._width=node._minWidth=node._maxWidth=node._height*dimensions.width/dimensions.height;}if(isNumber(node.minWidth)&&node.minWidth>node._width){node._width=node._minWidth=node._maxWidth=node.minWidth;node._height=node._width*dimensions.height/dimensions.width;}if(isNumber(node.minHeight)&&node.minHeight>node._height){node._height=node.minHeight;node._width=node._minWidth=node._maxWidth=node._height*dimensions.width/dimensions.height;}}node._alignment=this.styleStack.getProperty('alignment');};DocMeasure.prototype.measureImage=function(node){if(this.images){this.convertIfBase64Image(node);}var dimensions=this.imageMeasure.measureImage(node.image);this.measureImageWithDimensions(node,dimensions);return node;};DocMeasure.prototype.measureSVG=function(node){var dimensions=this.svgMeasure.measureSVG(node.svg);this.measureImageWithDimensions(node,dimensions);node.font=this.styleStack.getProperty('font');// scale SVG based on final dimension\nnode.svg=this.svgMeasure.writeDimensions(node.svg,{width:node._width,height:node._height});return node;};DocMeasure.prototype.measureLeaf=function(node){if(node._textRef&&node._textRef._textNodeRef.text){node.text=node._textRef._textNodeRef.text;}// Make sure style properties of the node itself are considered when building inlines.\n// We could also just pass [node] to buildInlines, but that fails for bullet points.\nvar styleStack=this.styleStack.clone();styleStack.push(node);var data=this.textTools.buildInlines(node.text,styleStack);node._inlines=data.items;node._minWidth=data.minWidth;node._maxWidth=data.maxWidth;return node;};DocMeasure.prototype.measureToc=function(node){if(node.toc.title){node.toc.title=this.measureNode(node.toc.title);}if(node.toc._items.length>0){var body=[];var textStyle=node.toc.textStyle||{};var numberStyle=node.toc.numberStyle||textStyle;var textMargin=node.toc.textMargin||[0,0,0,0];for(var i=0,l=node.toc._items.length;i<l;i++){var item=node.toc._items[i];var lineStyle=item._textNodeRef.tocStyle||textStyle;var lineMargin=item._textNodeRef.tocMargin||textMargin;var lineNumberStyle=item._textNodeRef.tocNumberStyle||numberStyle;var destination=getNodeId(item._nodeRef);body.push([{text:item._textNodeRef.text,linkToDestination:destination,alignment:'left',style:lineStyle,margin:lineMargin},{text:'00000',linkToDestination:destination,alignment:'right',_tocItemRef:item._nodeRef,style:lineNumberStyle,margin:[0,lineMargin[1],0,lineMargin[3]]}]);}node.toc._table={table:{dontBreakRows:true,widths:['*','auto'],body:body},layout:'noBorders'};node.toc._table=this.measureNode(node.toc._table);}return node;};DocMeasure.prototype.measureVerticalContainer=function(node){var items=node.stack;node._minWidth=0;node._maxWidth=0;for(var i=0,l=items.length;i<l;i++){items[i]=this.measureNode(items[i]);node._minWidth=Math.max(node._minWidth,items[i]._minWidth);node._maxWidth=Math.max(node._maxWidth,items[i]._maxWidth);}return node;};DocMeasure.prototype.gapSizeForList=function(){return this.textTools.sizeOfString('9. ',this.styleStack);};DocMeasure.prototype.buildUnorderedMarker=function(styleStack,gapSize,type){function buildDisc(gapSize,color){// TODO: ascender-based calculations\nvar radius=gapSize.fontSize/6;return{canvas:[{x:radius,y:gapSize.height/gapSize.lineHeight+gapSize.descender-gapSize.fontSize/3,r1:radius,r2:radius,type:'ellipse',color:color}]};}function buildSquare(gapSize,color){// TODO: ascender-based calculations\nvar size=gapSize.fontSize/3;return{canvas:[{x:0,y:gapSize.height/gapSize.lineHeight+gapSize.descender-gapSize.fontSize/3-size/2,h:size,w:size,type:'rect',color:color}]};}function buildCircle(gapSize,color){// TODO: ascender-based calculations\nvar radius=gapSize.fontSize/6;return{canvas:[{x:radius,y:gapSize.height/gapSize.lineHeight+gapSize.descender-gapSize.fontSize/3,r1:radius,r2:radius,type:'ellipse',lineColor:color}]};}var marker;var color=styleStack.getProperty('markerColor')||styleStack.getProperty('color')||'black';switch(type){case'circle':marker=buildCircle(gapSize,color);break;case'square':marker=buildSquare(gapSize,color);break;case'none':marker={};break;case'disc':default:marker=buildDisc(gapSize,color);break;}marker._minWidth=marker._maxWidth=gapSize.width;marker._minHeight=marker._maxHeight=gapSize.height;return marker;};DocMeasure.prototype.buildOrderedMarker=function(counter,styleStack,type,separator){function prepareAlpha(counter){function toAlpha(num){return(num>=26?toAlpha((num/26>>0)-1):'')+'abcdefghijklmnopqrstuvwxyz'[num%26>>0];}if(counter<1){return counter.toString();}return toAlpha(counter-1);}function prepareRoman(counter){if(counter<1||counter>4999){return counter.toString();}var num=counter;var lookup={M:1000,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1},roman='',i;for(i in lookup){while(num>=lookup[i]){roman+=i;num-=lookup[i];}}return roman;}function prepareDecimal(counter){return counter.toString();}var counterText;switch(type){case'none':counterText=null;break;case'upper-alpha':counterText=prepareAlpha(counter).toUpperCase();break;case'lower-alpha':counterText=prepareAlpha(counter);break;case'upper-roman':counterText=prepareRoman(counter);break;case'lower-roman':counterText=prepareRoman(counter).toLowerCase();break;case'decimal':default:counterText=prepareDecimal(counter);break;}if(counterText===null){return{};}if(separator){if(isArray(separator)){if(separator[0]){counterText=separator[0]+counterText;}if(separator[1]){counterText+=separator[1];}counterText+=' ';}else{counterText+=separator+' ';}}var textArray={text:counterText};var markerColor=styleStack.getProperty('markerColor');if(markerColor){textArray.color=markerColor;}return{_inlines:this.textTools.buildInlines(textArray,styleStack).items};};DocMeasure.prototype.measureUnorderedList=function(node){var style=this.styleStack.clone();var items=node.ul;node.type=node.type||'disc';node._gapSize=this.gapSizeForList();node._minWidth=0;node._maxWidth=0;for(var i=0,l=items.length;i<l;i++){var item=items[i]=this.measureNode(items[i]);if(!item.ol&&!item.ul){item.listMarker=this.buildUnorderedMarker(style,node._gapSize,item.listType||node.type);}node._minWidth=Math.max(node._minWidth,items[i]._minWidth+node._gapSize.width);node._maxWidth=Math.max(node._maxWidth,items[i]._maxWidth+node._gapSize.width);}return node;};DocMeasure.prototype.measureOrderedList=function(node){var style=this.styleStack.clone();var items=node.ol;node.type=node.type||'decimal';node.separator=node.separator||'.';node.reversed=node.reversed||false;if(!isNumber(node.start)){node.start=node.reversed?items.length:1;}node._gapSize=this.gapSizeForList();node._minWidth=0;node._maxWidth=0;var counter=node.start;for(var i=0,l=items.length;i<l;i++){var item=items[i]=this.measureNode(items[i]);if(!item.ol&&!item.ul){var counterValue=isNumber(item.counter)?item.counter:counter;item.listMarker=this.buildOrderedMarker(counterValue,style,item.listType||node.type,node.separator);if(item.listMarker._inlines){node._gapSize.width=Math.max(node._gapSize.width,item.listMarker._inlines[0].width);}}// TODO: else - nested lists numbering\nnode._minWidth=Math.max(node._minWidth,items[i]._minWidth);node._maxWidth=Math.max(node._maxWidth,items[i]._maxWidth);if(node.reversed){counter--;}else{counter++;}}node._minWidth+=node._gapSize.width;node._maxWidth+=node._gapSize.width;for(var i=0,l=items.length;i<l;i++){var item=items[i];if(!item.ol&&!item.ul){item.listMarker._minWidth=item.listMarker._maxWidth=node._gapSize.width;}}return node;};DocMeasure.prototype.measureColumns=function(node){var columns=node.columns;node._gap=this.styleStack.getProperty('columnGap')||0;for(var i=0,l=columns.length;i<l;i++){columns[i]=this.measureNode(columns[i]);}var measures=ColumnCalculator.measureMinMax(columns);var numGaps=columns.length>0?columns.length-1:0;node._minWidth=measures.min+node._gap*numGaps;node._maxWidth=measures.max+node._gap*numGaps;return node;};DocMeasure.prototype.measureTable=function(node){extendTableWidths(node);node._layout=getLayout(this.tableLayouts);node._offsets=getOffsets(node._layout);var colSpans=[];var col,row,cols,rows;for(col=0,cols=node.table.body[0].length;col<cols;col++){var c=node.table.widths[col];c._minWidth=0;c._maxWidth=0;for(row=0,rows=node.table.body.length;row<rows;row++){var rowData=node.table.body[row];var data=rowData[col];if(data===undefined){console.error('Malformed table row ',rowData,'in node ',node);throw'Malformed table row, a cell is undefined.';}if(data===null){// transform to object\ndata='';}if(!data._span){data=rowData[col]=this.styleStack.auto(data,measureCb(this,data));if(data.colSpan&&data.colSpan>1){markSpans(rowData,col,data.colSpan);colSpans.push({col:col,span:data.colSpan,minWidth:data._minWidth,maxWidth:data._maxWidth});}else{c._minWidth=Math.max(c._minWidth,data._minWidth);c._maxWidth=Math.max(c._maxWidth,data._maxWidth);}}if(data.rowSpan&&data.rowSpan>1){markVSpans(node.table,row,col,data.rowSpan);}}}extendWidthsForColSpans();var measures=ColumnCalculator.measureMinMax(node.table.widths);node._minWidth=measures.min+node._offsets.total;node._maxWidth=measures.max+node._offsets.total;return node;function measureCb(_this,data){return function(){if(isObject(data)){data.fillColor=_this.styleStack.getProperty('fillColor');}return _this.measureNode(data);};}function getLayout(tableLayouts){var layout=node.layout;if(isString(layout)){layout=tableLayouts[layout];}var defaultLayout={hLineWidth:function(i,node){return 1;},vLineWidth:function(i,node){return 1;},hLineColor:function(i,node){return'black';},vLineColor:function(i,node){return'black';},hLineStyle:function(i,node){return null;},vLineStyle:function(i,node){return null;},paddingLeft:function(i,node){return 4;},paddingRight:function(i,node){return 4;},paddingTop:function(i,node){return 2;},paddingBottom:function(i,node){return 2;},fillColor:function(i,node){return null;},defaultBorder:true};return pack(defaultLayout,layout);}function getOffsets(layout){var offsets=[];var totalOffset=0;var prevRightPadding=0;for(var i=0,l=node.table.widths.length;i<l;i++){var lOffset=prevRightPadding+layout.vLineWidth(i,node)+layout.paddingLeft(i,node);offsets.push(lOffset);totalOffset+=lOffset;prevRightPadding=layout.paddingRight(i,node);}totalOffset+=prevRightPadding+layout.vLineWidth(node.table.widths.length,node);return{total:totalOffset,offsets:offsets};}function extendWidthsForColSpans(){var q,j;for(var i=0,l=colSpans.length;i<l;i++){var span=colSpans[i];var currentMinMax=getMinMax(span.col,span.span,node._offsets);var minDifference=span.minWidth-currentMinMax.minWidth;var maxDifference=span.maxWidth-currentMinMax.maxWidth;if(minDifference>0){q=minDifference/span.span;for(j=0;j<span.span;j++){node.table.widths[span.col+j]._minWidth+=q;}}if(maxDifference>0){q=maxDifference/span.span;for(j=0;j<span.span;j++){node.table.widths[span.col+j]._maxWidth+=q;}}}}function getMinMax(col,span,offsets){var result={minWidth:0,maxWidth:0};for(var i=0;i<span;i++){result.minWidth+=node.table.widths[col+i]._minWidth+(i?offsets.offsets[col+i]:0);result.maxWidth+=node.table.widths[col+i]._maxWidth+(i?offsets.offsets[col+i]:0);}return result;}function markSpans(rowData,col,span){for(var i=1;i<span;i++){rowData[col+i]={_span:true,_minWidth:0,_maxWidth:0,rowSpan:rowData[col].rowSpan};}}function markVSpans(table,row,col,span){for(var i=1;i<span;i++){table.body[row+i][col]={_span:true,_minWidth:0,_maxWidth:0,fillColor:table.body[row][col].fillColor};}}function extendTableWidths(node){if(!node.table.widths){node.table.widths='auto';}if(isString(node.table.widths)){node.table.widths=[node.table.widths];while(node.table.widths.length<node.table.body[0].length){node.table.widths.push(node.table.widths[node.table.widths.length-1]);}}for(var i=0,l=node.table.widths.length;i<l;i++){var w=node.table.widths[i];if(isNumber(w)||isString(w)){node.table.widths[i]={width:w};}}}};DocMeasure.prototype.measureCanvas=function(node){var w=0,h=0;for(var i=0,l=node.canvas.length;i<l;i++){var vector=node.canvas[i];switch(vector.type){case'ellipse':w=Math.max(w,vector.x+vector.r1);h=Math.max(h,vector.y+vector.r2);break;case'rect':w=Math.max(w,vector.x+vector.w);h=Math.max(h,vector.y+vector.h);break;case'line':w=Math.max(w,vector.x1,vector.x2);h=Math.max(h,vector.y1,vector.y2);break;case'polyline':for(var i2=0,l2=vector.points.length;i2<l2;i2++){w=Math.max(w,vector.points[i2].x);h=Math.max(h,vector.points[i2].y);}break;}}node._minWidth=node._maxWidth=w;node._minHeight=node._maxHeight=h;node._alignment=this.styleStack.getProperty('alignment');return node;};DocMeasure.prototype.measureQr=function(node){node=qrEncoder.measure(node);node._alignment=this.styleStack.getProperty('alignment');return node;};module.exports=DocMeasure;/***/},/* 448 */ /***/function(module,exports,__webpack_require__){\"use strict\";/*eslint no-unused-vars: [\"error\", {\"args\": \"none\"}]*/ /*eslint no-redeclare: \"off\"*/ /* qr.js -- QR code generator in Javascript (revision 2011-01-19)\r\n     * Written by Kang Seonghoon <public+qrjs@mearie.org>.\r\n     *\r\n     * This source code is in the public domain; if your jurisdiction does not\r\n     * recognize the public domain the terms of Creative Commons CC0 license\r\n     * apply. In the other words, you can always do what you want.\r\n     */ // per-version information (cf. JIS X 0510:2004 pp. 30--36, 71)\n//\n// [0]: the degree of generator polynomial by ECC levels\n// [1]: # of code blocks by ECC levels\n// [2]: left-top positions of alignment patterns\n//\n// the number in this table (in particular, [0]) does not exactly match with\n// the numbers in the specficiation. see augumenteccs below for the reason.\nvar VERSIONS=[null,[[10,7,17,13],[1,1,1,1],[]],[[16,10,28,22],[1,1,1,1],[4,16]],[[26,15,22,18],[1,1,2,2],[4,20]],[[18,20,16,26],[2,1,4,2],[4,24]],[[24,26,22,18],[2,1,4,4],[4,28]],[[16,18,28,24],[4,2,4,4],[4,32]],[[18,20,26,18],[4,2,5,6],[4,20,36]],[[22,24,26,22],[4,2,6,6],[4,22,40]],[[22,30,24,20],[5,2,8,8],[4,24,44]],[[26,18,28,24],[5,4,8,8],[4,26,48]],[[30,20,24,28],[5,4,11,8],[4,28,52]],[[22,24,28,26],[8,4,11,10],[4,30,56]],[[22,26,22,24],[9,4,16,12],[4,32,60]],[[24,30,24,20],[9,4,16,16],[4,24,44,64]],[[24,22,24,30],[10,6,18,12],[4,24,46,68]],[[28,24,30,24],[10,6,16,17],[4,24,48,72]],[[28,28,28,28],[11,6,19,16],[4,28,52,76]],[[26,30,28,28],[13,6,21,18],[4,28,54,80]],[[26,28,26,26],[14,7,25,21],[4,28,56,84]],[[26,28,28,30],[16,8,25,20],[4,32,60,88]],[[26,28,30,28],[17,8,25,23],[4,26,48,70,92]],[[28,28,24,30],[17,9,34,23],[4,24,48,72,96]],[[28,30,30,30],[18,9,30,25],[4,28,52,76,100]],[[28,30,30,30],[20,10,32,27],[4,26,52,78,104]],[[28,26,30,30],[21,12,35,29],[4,30,56,82,108]],[[28,28,30,28],[23,12,37,34],[4,28,56,84,112]],[[28,30,30,30],[25,12,40,34],[4,32,60,88,116]],[[28,30,30,30],[26,13,42,35],[4,24,48,72,96,120]],[[28,30,30,30],[28,14,45,38],[4,28,52,76,100,124]],[[28,30,30,30],[29,15,48,40],[4,24,50,76,102,128]],[[28,30,30,30],[31,16,51,43],[4,28,54,80,106,132]],[[28,30,30,30],[33,17,54,45],[4,32,58,84,110,136]],[[28,30,30,30],[35,18,57,48],[4,28,56,84,112,140]],[[28,30,30,30],[37,19,60,51],[4,32,60,88,116,144]],[[28,30,30,30],[38,19,63,53],[4,28,52,76,100,124,148]],[[28,30,30,30],[40,20,66,56],[4,22,48,74,100,126,152]],[[28,30,30,30],[43,21,70,59],[4,26,52,78,104,130,156]],[[28,30,30,30],[45,22,74,62],[4,30,56,82,108,134,160]],[[28,30,30,30],[47,24,77,65],[4,24,52,80,108,136,164]],[[28,30,30,30],[49,25,81,68],[4,28,56,84,112,140,168]]];// mode constants (cf. Table 2 in JIS X 0510:2004 p. 16)\nvar MODE_TERMINATOR=0;var MODE_NUMERIC=1,MODE_ALPHANUMERIC=2,MODE_OCTET=4,MODE_KANJI=8;// validation regexps\nvar NUMERIC_REGEXP=/^\\d*$/;var ALPHANUMERIC_REGEXP=/^[A-Za-z0-9 $%*+\\-./:]*$/;var ALPHANUMERIC_OUT_REGEXP=/^[A-Z0-9 $%*+\\-./:]*$/;// ECC levels (cf. Table 22 in JIS X 0510:2004 p. 45)\nvar ECCLEVEL_L=1,ECCLEVEL_M=0,ECCLEVEL_Q=3,ECCLEVEL_H=2;// GF(2^8)-to-integer mapping with a reducing polynomial x^8+x^4+x^3+x^2+1\n// invariant: GF256_MAP[GF256_INVMAP[i]] == i for all i in [1,256)\nvar GF256_MAP=[],GF256_INVMAP=[-1];for(var i=0,v=1;i<255;++i){GF256_MAP.push(v);GF256_INVMAP[v]=i;v=v*2^(v>=128?0x11d:0);}// generator polynomials up to degree 30\n// (should match with polynomials in JIS X 0510:2004 Appendix A)\n//\n// generator polynomial of degree K is product of (x-\\alpha^0), (x-\\alpha^1),\n// ..., (x-\\alpha^(K-1)). by convention, we omit the K-th coefficient (always 1)\n// from the result; also other coefficients are written in terms of the exponent\n// to \\alpha to avoid the redundant calculation. (see also calculateecc below.)\nvar GF256_GENPOLY=[[]];for(var i=0;i<30;++i){var prevpoly=GF256_GENPOLY[i],poly=[];for(var j=0;j<=i;++j){var a=j<i?GF256_MAP[prevpoly[j]]:0;var b=GF256_MAP[(i+(prevpoly[j-1]||0))%255];poly.push(GF256_INVMAP[a^b]);}GF256_GENPOLY.push(poly);}// alphanumeric character mapping (cf. Table 5 in JIS X 0510:2004 p. 19)\nvar ALPHANUMERIC_MAP={};for(var i=0;i<45;++i){ALPHANUMERIC_MAP['0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:'.charAt(i)]=i;}// mask functions in terms of row # and column #\n// (cf. Table 20 in JIS X 0510:2004 p. 42)\n/*jshint unused: false */var MASKFUNCS=[function(i,j){return(i+j)%2===0;},function(i,j){return i%2===0;},function(i,j){return j%3===0;},function(i,j){return(i+j)%3===0;},function(i,j){return((i/2|0)+(j/3|0))%2===0;},function(i,j){return i*j%2+i*j%3===0;},function(i,j){return(i*j%2+i*j%3)%2===0;},function(i,j){return((i+j)%2+i*j%3)%2===0;}];// returns true when the version information has to be embeded.\nvar needsverinfo=function(ver){return ver>6;};// returns the size of entire QR code for given version.\nvar getsizebyver=function(ver){return 4*ver+17;};// returns the number of bits available for code words in this version.\nvar nfullbits=function(ver){/*\r\n         * |<--------------- n --------------->|\r\n         * |        |<----- n-17 ---->|        |\r\n         * +-------+                ///+-------+ ----\r\n         * |       |                ///|       |    ^\r\n         * |  9x9  |       @@@@@    ///|  9x8  |    |\r\n         * |       | # # # @5x5@ # # # |       |    |\r\n         * +-------+       @@@@@       +-------+    |\r\n         *       #                               ---|\r\n         *                                        ^ |\r\n         *       #                                |\r\n         *     @@@@@       @@@@@       @@@@@      | n\r\n         *     @5x5@       @5x5@       @5x5@   n-17\r\n         *     @@@@@       @@@@@       @@@@@      | |\r\n         *       #                                | |\r\n         * //////                                 v |\r\n         * //////#                               ---|\r\n         * +-------+       @@@@@       @@@@@        |\r\n         * |       |       @5x5@       @5x5@        |\r\n         * |  8x9  |       @@@@@       @@@@@        |\r\n         * |       |                                v\r\n         * +-------+                             ----\r\n         *\r\n         * when the entire code has n^2 modules and there are m^2-3 alignment\r\n         * patterns, we have:\r\n         * - 225 (= 9x9 + 9x8 + 8x9) modules for finder patterns and\r\n         *   format information;\r\n         * - 2n-34 (= 2(n-17)) modules for timing patterns;\r\n         * - 36 (= 3x6 + 6x3) modules for version information, if any;\r\n         * - 25m^2-75 (= (m^2-3)(5x5)) modules for alignment patterns\r\n         *   if any, but 10m-20 (= 2(m-2)x5) of them overlaps with\r\n         *   timing patterns.\r\n         */var v=VERSIONS[ver];var nbits=16*ver*ver+128*ver+64;// finder, timing and format info.\nif(needsverinfo(ver))nbits-=36;// version information\nif(v[2].length){// alignment patterns\nnbits-=25*v[2].length*v[2].length-10*v[2].length-55;}return nbits;};// returns the number of bits available for data portions (i.e. excludes ECC\n// bits but includes mode and length bits) in this version and ECC level.\nvar ndatabits=function(ver,ecclevel){var nbits=nfullbits(ver)&~7;// no sub-octet code words\nvar v=VERSIONS[ver];nbits-=8*v[0][ecclevel]*v[1][ecclevel];// ecc bits\nreturn nbits;};// returns the number of bits required for the length of data.\n// (cf. Table 3 in JIS X 0510:2004 p. 16)\nvar ndatalenbits=function(ver,mode){switch(mode){case MODE_NUMERIC:return ver<10?10:ver<27?12:14;case MODE_ALPHANUMERIC:return ver<10?9:ver<27?11:13;case MODE_OCTET:return ver<10?8:16;case MODE_KANJI:return ver<10?8:ver<27?10:12;}};// returns the maximum length of data possible in given configuration.\nvar getmaxdatalen=function(ver,mode,ecclevel){var nbits=ndatabits(ver,ecclevel)-4-ndatalenbits(ver,mode);// 4 for mode bits\nswitch(mode){case MODE_NUMERIC:return(nbits/10|0)*3+(nbits%10<4?0:nbits%10<7?1:2);case MODE_ALPHANUMERIC:return(nbits/11|0)*2+(nbits%11<6?0:1);case MODE_OCTET:return nbits/8|0;case MODE_KANJI:return nbits/13|0;}};// checks if the given data can be encoded in given mode, and returns\n// the converted data for the further processing if possible. otherwise\n// returns null.\n//\n// this function does not check the length of data; it is a duty of\n// encode function below (as it depends on the version and ECC level too).\nvar validatedata=function(mode,data){switch(mode){case MODE_NUMERIC:if(!data.match(NUMERIC_REGEXP))return null;return data;case MODE_ALPHANUMERIC:if(!data.match(ALPHANUMERIC_REGEXP))return null;return data.toUpperCase();case MODE_OCTET:if(typeof data==='string'){// encode as utf-8 string\nvar newdata=[];for(var i=0;i<data.length;++i){var ch=data.charCodeAt(i);if(ch<0x80){newdata.push(ch);}else if(ch<0x800){newdata.push(0xc0|ch>>6,0x80|ch&0x3f);}else if(ch<0x10000){newdata.push(0xe0|ch>>12,0x80|ch>>6&0x3f,0x80|ch&0x3f);}else{newdata.push(0xf0|ch>>18,0x80|ch>>12&0x3f,0x80|ch>>6&0x3f,0x80|ch&0x3f);}}return newdata;}else{return data;}}};// returns the code words (sans ECC bits) for given data and configurations.\n// requires data to be preprocessed by validatedata. no length check is\n// performed, and everything has to be checked before calling this function.\nvar encode=function(ver,mode,data,maxbuflen){var buf=[];var bits=0,remaining=8;var datalen=data.length;// this function is intentionally no-op when n=0.\nvar pack=function(x,n){if(n>=remaining){buf.push(bits|x>>(n-=remaining));while(n>=8)buf.push(x>>(n-=8)&255);bits=0;remaining=8;}if(n>0)bits|=(x&(1<<n)-1)<<(remaining-=n);};var nlenbits=ndatalenbits(ver,mode);pack(mode,4);pack(datalen,nlenbits);switch(mode){case MODE_NUMERIC:for(var i=2;i<datalen;i+=3){pack(parseInt(data.substring(i-2,i+1),10),10);}pack(parseInt(data.substring(i-2),10),[0,4,7][datalen%3]);break;case MODE_ALPHANUMERIC:for(var i=1;i<datalen;i+=2){pack(ALPHANUMERIC_MAP[data.charAt(i-1)]*45+ALPHANUMERIC_MAP[data.charAt(i)],11);}if(datalen%2==1){pack(ALPHANUMERIC_MAP[data.charAt(i-1)],6);}break;case MODE_OCTET:for(var i=0;i<datalen;++i){pack(data[i],8);}break;}// final bits. it is possible that adding terminator causes the buffer\n// to overflow, but then the buffer truncated to the maximum size will\n// be valid as the truncated terminator mode bits and padding is\n// identical in appearance (cf. JIS X 0510:2004 sec 8.4.8).\npack(MODE_TERMINATOR,4);if(remaining<8)buf.push(bits);// the padding to fill up the remaining space. we should not add any\n// words when the overflow already occurred.\nwhile(buf.length+1<maxbuflen)buf.push(0xec,0x11);if(buf.length<maxbuflen)buf.push(0xec);return buf;};// calculates ECC code words for given code words and generator polynomial.\n//\n// this is quite similar to CRC calculation as both Reed-Solomon and CRC use\n// the certain kind of cyclic codes, which is effectively the division of\n// zero-augumented polynomial by the generator polynomial. the only difference\n// is that Reed-Solomon uses GF(2^8), instead of CRC's GF(2), and Reed-Solomon\n// uses the different generator polynomial than CRC's.\nvar calculateecc=function(poly,genpoly){var modulus=poly.slice(0);var polylen=poly.length,genpolylen=genpoly.length;for(var i=0;i<genpolylen;++i)modulus.push(0);for(var i=0;i<polylen;){var quotient=GF256_INVMAP[modulus[i++]];if(quotient>=0){for(var j=0;j<genpolylen;++j){modulus[i+j]^=GF256_MAP[(quotient+genpoly[j])%255];}}}return modulus.slice(polylen);};// auguments ECC code words to given code words. the resulting words are\n// ready to be encoded in the matrix.\n//\n// the much of actual augumenting procedure follows JIS X 0510:2004 sec 8.7.\n// the code is simplified using the fact that the size of each code & ECC\n// blocks is almost same; for example, when we have 4 blocks and 46 data words\n// the number of code words in those blocks are 11, 11, 12, 12 respectively.\nvar augumenteccs=function(poly,nblocks,genpoly){var subsizes=[];var subsize=poly.length/nblocks|0,subsize0=0;var pivot=nblocks-poly.length%nblocks;for(var i=0;i<pivot;++i){subsizes.push(subsize0);subsize0+=subsize;}for(var i=pivot;i<nblocks;++i){subsizes.push(subsize0);subsize0+=subsize+1;}subsizes.push(subsize0);var eccs=[];for(var i=0;i<nblocks;++i){eccs.push(calculateecc(poly.slice(subsizes[i],subsizes[i+1]),genpoly));}var result=[];var nitemsperblock=poly.length/nblocks|0;for(var i=0;i<nitemsperblock;++i){for(var j=0;j<nblocks;++j){result.push(poly[subsizes[j]+i]);}}for(var j=pivot;j<nblocks;++j){result.push(poly[subsizes[j+1]-1]);}for(var i=0;i<genpoly.length;++i){for(var j=0;j<nblocks;++j){result.push(eccs[j][i]);}}return result;};// auguments BCH(p+q,q) code to the polynomial over GF(2), given the proper\n// genpoly. the both input and output are in binary numbers, and unlike\n// calculateecc genpoly should include the 1 bit for the highest degree.\n//\n// actual polynomials used for this procedure are as follows:\n// - p=10, q=5, genpoly=x^10+x^8+x^5+x^4+x^2+x+1 (JIS X 0510:2004 Appendix C)\n// - p=18, q=6, genpoly=x^12+x^11+x^10+x^9+x^8+x^5+x^2+1 (ibid. Appendix D)\nvar augumentbch=function(poly,p,genpoly,q){var modulus=poly<<q;for(var i=p-1;i>=0;--i){if(modulus>>q+i&1)modulus^=genpoly<<i;}return poly<<q|modulus;};// creates the base matrix for given version. it returns two matrices, one of\n// them is the actual one and the another represents the \"reserved\" portion\n// (e.g. finder and timing patterns) of the matrix.\n//\n// some entries in the matrix may be undefined, rather than 0 or 1. this is\n// intentional (no initialization needed!), and putdata below will fill\n// the remaining ones.\nvar makebasematrix=function(ver){var v=VERSIONS[ver],n=getsizebyver(ver);var matrix=[],reserved=[];for(var i=0;i<n;++i){matrix.push([]);reserved.push([]);}var blit=function(y,x,h,w,bits){for(var i=0;i<h;++i){for(var j=0;j<w;++j){matrix[y+i][x+j]=bits[i]>>j&1;reserved[y+i][x+j]=1;}}};// finder patterns and a part of timing patterns\n// will also mark the format information area (not yet written) as reserved.\nblit(0,0,9,9,[0x7f,0x41,0x5d,0x5d,0x5d,0x41,0x17f,0x00,0x40]);blit(n-8,0,8,9,[0x100,0x7f,0x41,0x5d,0x5d,0x5d,0x41,0x7f]);blit(0,n-8,9,8,[0xfe,0x82,0xba,0xba,0xba,0x82,0xfe,0x00,0x00]);// the rest of timing patterns\nfor(var i=9;i<n-8;++i){matrix[6][i]=matrix[i][6]=~i&1;reserved[6][i]=reserved[i][6]=1;}// alignment patterns\nvar aligns=v[2],m=aligns.length;for(var i=0;i<m;++i){var minj=i===0||i===m-1?1:0,maxj=i===0?m-1:m;for(var j=minj;j<maxj;++j){blit(aligns[i],aligns[j],5,5,[0x1f,0x11,0x15,0x11,0x1f]);}}// version information\nif(needsverinfo(ver)){var code=augumentbch(ver,6,0x1f25,12);var k=0;for(var i=0;i<6;++i){for(var j=0;j<3;++j){matrix[i][n-11+j]=matrix[n-11+j][i]=code>>k++&1;reserved[i][n-11+j]=reserved[n-11+j][i]=1;}}}return{matrix:matrix,reserved:reserved};};// fills the data portion (i.e. unmarked in reserved) of the matrix with given\n// code words. the size of code words should be no more than available bits,\n// and remaining bits are padded to 0 (cf. JIS X 0510:2004 sec 8.7.3).\nvar putdata=function(matrix,reserved,buf){var n=matrix.length;var k=0,dir=-1;for(var i=n-1;i>=0;i-=2){if(i==6)--i;// skip the entire timing pattern column\nvar jj=dir<0?n-1:0;for(var j=0;j<n;++j){for(var ii=i;ii>i-2;--ii){if(!reserved[jj][ii]){// may overflow, but (undefined >> x)\n// is 0 so it will auto-pad to zero.\nmatrix[jj][ii]=buf[k>>3]>>(~k&7)&1;++k;}}jj+=dir;}dir=-dir;}return matrix;};// XOR-masks the data portion of the matrix. repeating the call with the same\n// arguments will revert the prior call (convenient in the matrix evaluation).\nvar maskdata=function(matrix,reserved,mask){var maskf=MASKFUNCS[mask];var n=matrix.length;for(var i=0;i<n;++i){for(var j=0;j<n;++j){if(!reserved[i][j])matrix[i][j]^=maskf(i,j);}}return matrix;};// puts the format information.\nvar putformatinfo=function(matrix,reserved,ecclevel,mask){var n=matrix.length;var code=augumentbch(ecclevel<<3|mask,5,0x537,10)^0x5412;for(var i=0;i<15;++i){var r=[0,1,2,3,4,5,7,8,n-7,n-6,n-5,n-4,n-3,n-2,n-1][i];var c=[n-1,n-2,n-3,n-4,n-5,n-6,n-7,n-8,7,5,4,3,2,1,0][i];matrix[r][8]=matrix[8][c]=code>>i&1;// we don't have to mark those bits reserved; always done\n// in makebasematrix above.\n}return matrix;};// evaluates the resulting matrix and returns the score (lower is better).\n// (cf. JIS X 0510:2004 sec 8.8.2)\n//\n// the evaluation procedure tries to avoid the problematic patterns naturally\n// occuring from the original matrix. for example, it penaltizes the patterns\n// which just look like the finder pattern which will confuse the decoder.\n// we choose the mask which results in the lowest score among 8 possible ones.\n//\n// note: zxing seems to use the same procedure and in many cases its choice\n// agrees to ours, but sometimes it does not. practically it doesn't matter.\nvar evaluatematrix=function(matrix){// N1+(k-5) points for each consecutive row of k same-colored modules,\n// where k >= 5. no overlapping row counts.\nvar PENALTY_CONSECUTIVE=3;// N2 points for each 2x2 block of same-colored modules.\n// overlapping block does count.\nvar PENALTY_TWOBYTWO=3;// N3 points for each pattern with >4W:1B:1W:3B:1W:1B or\n// 1B:1W:3B:1W:1B:>4W, or their multiples (e.g. highly unlikely,\n// but 13W:3B:3W:9B:3W:3B counts).\nvar PENALTY_FINDERLIKE=40;// N4*k points for every (5*k)% deviation from 50% black density.\n// i.e. k=1 for 55~60% and 40~45%, k=2 for 60~65% and 35~40%, etc.\nvar PENALTY_DENSITY=10;var evaluategroup=function(groups){// assumes [W,B,W,B,W,...,B,W]\nvar score=0;for(var i=0;i<groups.length;++i){if(groups[i]>=5)score+=PENALTY_CONSECUTIVE+(groups[i]-5);}for(var i=5;i<groups.length;i+=2){var p=groups[i];if(groups[i-1]==p&&groups[i-2]==3*p&&groups[i-3]==p&&groups[i-4]==p&&(groups[i-5]>=4*p||groups[i+1]>=4*p)){// this part differs from zxing...\nscore+=PENALTY_FINDERLIKE;}}return score;};var n=matrix.length;var score=0,nblacks=0;for(var i=0;i<n;++i){var row=matrix[i];var groups;// evaluate the current row\ngroups=[0];// the first empty group of white\nfor(var j=0;j<n;){var k;for(k=0;j<n&&row[j];++k)++j;groups.push(k);for(k=0;j<n&&!row[j];++k)++j;groups.push(k);}score+=evaluategroup(groups);// evaluate the current column\ngroups=[0];for(var j=0;j<n;){var k;for(k=0;j<n&&matrix[j][i];++k)++j;groups.push(k);for(k=0;j<n&&!matrix[j][i];++k)++j;groups.push(k);}score+=evaluategroup(groups);// check the 2x2 box and calculate the density\nvar nextrow=matrix[i+1]||[];nblacks+=row[0];for(var j=1;j<n;++j){var p=row[j];nblacks+=p;// at least comparison with next row should be strict...\nif(row[j-1]==p&&nextrow[j]===p&&nextrow[j-1]===p){score+=PENALTY_TWOBYTWO;}}}score+=PENALTY_DENSITY*(Math.abs(nblacks/n/n-0.5)/0.05|0);return score;};// returns the fully encoded QR code matrix which contains given data.\n// it also chooses the best mask automatically when mask is -1.\nvar generate=function(data,ver,mode,ecclevel,mask){var v=VERSIONS[ver];var buf=encode(ver,mode,data,ndatabits(ver,ecclevel)>>3);buf=augumenteccs(buf,v[1][ecclevel],GF256_GENPOLY[v[0][ecclevel]]);var result=makebasematrix(ver);var matrix=result.matrix,reserved=result.reserved;putdata(matrix,reserved,buf);if(mask<0){// find the best mask\nmaskdata(matrix,reserved,0);putformatinfo(matrix,reserved,ecclevel,0);var bestmask=0,bestscore=evaluatematrix(matrix);maskdata(matrix,reserved,0);for(mask=1;mask<8;++mask){maskdata(matrix,reserved,mask);putformatinfo(matrix,reserved,ecclevel,mask);var score=evaluatematrix(matrix);if(bestscore>score){bestscore=score;bestmask=mask;}maskdata(matrix,reserved,mask);}mask=bestmask;}maskdata(matrix,reserved,mask);putformatinfo(matrix,reserved,ecclevel,mask);return matrix;};// the public interface is trivial; the options available are as follows:\n//\n// - version: an integer in [1,40]. when omitted (or -1) the smallest possible\n//   version is chosen.\n// - mode: one of 'numeric', 'alphanumeric', 'octet'. when omitted the smallest\n//   possible mode is chosen.\n// - eccLevel: one of 'L', 'M', 'Q', 'H'. defaults to 'L'.\n// - mask: an integer in [0,7]. when omitted (or -1) the best mask is chosen.\n//\nfunction generateFrame(data,options){var MODES={'numeric':MODE_NUMERIC,'alphanumeric':MODE_ALPHANUMERIC,'octet':MODE_OCTET};var ECCLEVELS={'L':ECCLEVEL_L,'M':ECCLEVEL_M,'Q':ECCLEVEL_Q,'H':ECCLEVEL_H};options=options||{};var ver=options.version||-1;var ecclevel=ECCLEVELS[(options.eccLevel||'L').toUpperCase()];var mode=options.mode?MODES[options.mode.toLowerCase()]:-1;var mask='mask'in options?options.mask:-1;if(mode<0){if(typeof data==='string'){if(data.match(NUMERIC_REGEXP)){mode=MODE_NUMERIC;}else if(data.match(ALPHANUMERIC_OUT_REGEXP)){// while encode supports case-insensitive encoding, we restrict the data to be uppercased when auto-selecting the mode.\nmode=MODE_ALPHANUMERIC;}else{mode=MODE_OCTET;}}else{mode=MODE_OCTET;}}else if(!(mode==MODE_NUMERIC||mode==MODE_ALPHANUMERIC||mode==MODE_OCTET)){throw'invalid or unsupported mode';}data=validatedata(mode,data);if(data===null)throw'invalid data format';if(ecclevel<0||ecclevel>3)throw'invalid ECC level';if(ver<0){for(ver=1;ver<=40;++ver){if(data.length<=getmaxdatalen(ver,mode,ecclevel))break;}if(ver>40)throw'too large data for the Qr format';}else if(ver<1||ver>40){throw'invalid Qr version! should be between 1 and 40';}if(mask!=-1&&(mask<0||mask>8))throw'invalid mask';//console.log('version:', ver, 'mode:', mode, 'ECC:', ecclevel, 'mask:', mask )\nreturn generate(data,ver,mode,ecclevel,mask);}// options\n// - modulesize: a number. this is a size of each modules in pixels, and\n//   defaults to 5px.\n// - margin: a number. this is a size of margin in *modules*, and defaults to\n//   4 (white modules). the specficiation mandates the margin no less than 4\n//   modules, so it is better not to alter this value unless you know what\n//   you're doing.\nfunction buildCanvas(data,options){var canvas=[];var background=options.background||'#fff';var foreground=options.foreground||'#000';//var margin = options.margin || 4;\nvar matrix=generateFrame(data,options);var n=matrix.length;var modSize=Math.floor(options.fit?options.fit/n:5);var size=n*modSize;canvas.push({type:'rect',x:0,y:0,w:size,h:size,lineWidth:0,color:background});for(var i=0;i<n;++i){for(var j=0;j<n;++j){if(matrix[i][j]){canvas.push({type:'rect',x:modSize*j,y:modSize*i,w:modSize,h:modSize,lineWidth:0,color:foreground});}}}return{canvas:canvas,size:size};}function measure(node){var cd=buildCanvas(node.qr,node);node._canvas=cd.canvas;node._width=node._height=node._minWidth=node._maxWidth=node._minHeight=node._maxHeight=cd.size;return node;}module.exports={measure:measure};/***/},/* 449 */ /***/function(module,exports,__nested_webpack_require_4697019__){\"use strict\";var isUndefined=__nested_webpack_require_4697019__(0).isUndefined;var ElementWriter=__nested_webpack_require_4697019__(450);/**\r\n     * Creates an instance of PageElementWriter - an extended ElementWriter\r\n     * which can handle:\r\n     * - page-breaks (it adds new pages when there's not enough space left),\r\n     * - repeatable fragments (like table-headers, which are repeated everytime\r\n     *                         a page-break occurs)\r\n     * - transactions (used for unbreakable-blocks when we want to make sure\r\n     *                 whole block will be rendered on the same page)\r\n     */function PageElementWriter(context,tracker){this.transactionLevel=0;this.repeatables=[];this.tracker=tracker;this.writer=new ElementWriter(context,tracker);}function fitOnPage(self,addFct){var position=addFct(self);if(!position){self.moveToNextPage();position=addFct(self);}return position;}PageElementWriter.prototype.addLine=function(line,dontUpdateContextPosition,index){return fitOnPage(this,function(self){return self.writer.addLine(line,dontUpdateContextPosition,index);});};PageElementWriter.prototype.addImage=function(image,index){return fitOnPage(this,function(self){return self.writer.addImage(image,index);});};PageElementWriter.prototype.addSVG=function(image,index){return fitOnPage(this,function(self){return self.writer.addSVG(image,index);});};PageElementWriter.prototype.addQr=function(qr,index){return fitOnPage(this,function(self){return self.writer.addQr(qr,index);});};PageElementWriter.prototype.addVector=function(vector,ignoreContextX,ignoreContextY,index){return this.writer.addVector(vector,ignoreContextX,ignoreContextY,index);};PageElementWriter.prototype.beginClip=function(width,height){return this.writer.beginClip(width,height);};PageElementWriter.prototype.endClip=function(){return this.writer.endClip();};PageElementWriter.prototype.alignCanvas=function(node){this.writer.alignCanvas(node);};PageElementWriter.prototype.addFragment=function(fragment,useBlockXOffset,useBlockYOffset,dontUpdateContextPosition){if(!this.writer.addFragment(fragment,useBlockXOffset,useBlockYOffset,dontUpdateContextPosition)){this.moveToNextPage();this.writer.addFragment(fragment,useBlockXOffset,useBlockYOffset,dontUpdateContextPosition);}};PageElementWriter.prototype.moveToNextPage=function(pageOrientation){var nextPage=this.writer.context.moveToNextPage(pageOrientation);// moveToNextPage is called multiple times for table, because is called for each column\n// and repeatables are inserted only in the first time. If columns are used, is needed\n// call for table in first column and then for table in the second column (is other repeatables).\nthis.repeatables.forEach(function(rep){if(isUndefined(rep.insertedOnPages[this.writer.context.page])){rep.insertedOnPages[this.writer.context.page]=true;this.writer.addFragment(rep,true);}else{this.writer.context.moveDown(rep.height);}},this);this.writer.tracker.emit('pageChanged',{prevPage:nextPage.prevPage,prevY:nextPage.prevY,y:this.writer.context.y});};PageElementWriter.prototype.beginUnbreakableBlock=function(width,height){if(this.transactionLevel++===0){this.originalX=this.writer.context.x;this.writer.pushContext(width,height);}};PageElementWriter.prototype.commitUnbreakableBlock=function(forcedX,forcedY){if(--this.transactionLevel===0){var unbreakableContext=this.writer.context;this.writer.popContext();var nbPages=unbreakableContext.pages.length;if(nbPages>0){// no support for multi-page unbreakableBlocks\nvar fragment=unbreakableContext.pages[0];fragment.xOffset=forcedX;fragment.yOffset=forcedY;//TODO: vectors can influence height in some situations\nif(nbPages>1){// on out-of-context blocs (headers, footers, background) height should be the whole DocumentContext height\nif(forcedX!==undefined||forcedY!==undefined){fragment.height=unbreakableContext.getCurrentPage().pageSize.height-unbreakableContext.pageMargins.top-unbreakableContext.pageMargins.bottom;}else{fragment.height=this.writer.context.getCurrentPage().pageSize.height-this.writer.context.pageMargins.top-this.writer.context.pageMargins.bottom;for(var i=0,l=this.repeatables.length;i<l;i++){fragment.height-=this.repeatables[i].height;}}}else{fragment.height=unbreakableContext.y;}if(forcedX!==undefined||forcedY!==undefined){this.writer.addFragment(fragment,true,true,true);}else{this.addFragment(fragment);}}}};PageElementWriter.prototype.currentBlockToRepeatable=function(){var unbreakableContext=this.writer.context;var rep={items:[]};unbreakableContext.pages[0].items.forEach(function(item){rep.items.push(item);});rep.xOffset=this.originalX;//TODO: vectors can influence height in some situations\nrep.height=unbreakableContext.y;rep.insertedOnPages=[];return rep;};PageElementWriter.prototype.pushToRepeatables=function(rep){this.repeatables.push(rep);};PageElementWriter.prototype.popFromRepeatables=function(){this.repeatables.pop();};PageElementWriter.prototype.context=function(){return this.writer.context;};module.exports=PageElementWriter;/***/},/* 450 */ /***/function(module,exports,__nested_webpack_require_4702072__){\"use strict\";var Line=__nested_webpack_require_4702072__(213);var isNumber=__nested_webpack_require_4702072__(0).isNumber;var pack=__nested_webpack_require_4702072__(0).pack;var offsetVector=__nested_webpack_require_4702072__(0).offsetVector;var DocumentContext=__nested_webpack_require_4702072__(212);/**\r\n     * Creates an instance of ElementWriter - a line/vector writer, which adds\r\n     * elements to current page and sets their positions based on the context\r\n     */function ElementWriter(context,tracker){this.context=context;this.contextStack=[];this.tracker=tracker;}function addPageItem(page,item,index){if(index===null||index===undefined||index<0||index>page.items.length){page.items.push(item);}else{page.items.splice(index,0,item);}}ElementWriter.prototype.addLine=function(line,dontUpdateContextPosition,index){var height=line.getHeight();var context=this.context;var page=context.getCurrentPage(),position=this.getCurrentPositionOnPage();if(context.availableHeight<height||!page){return false;}line.x=context.x+(line.x||0);line.y=context.y+(line.y||0);this.alignLine(line);addPageItem(page,{type:'line',item:line},index);this.tracker.emit('lineAdded',line);if(!dontUpdateContextPosition){context.moveDown(height);}return position;};ElementWriter.prototype.alignLine=function(line){var width=this.context.availableWidth;var lineWidth=line.getWidth();var alignment=line.inlines&&line.inlines.length>0&&line.inlines[0].alignment;var offset=0;switch(alignment){case'right':offset=width-lineWidth;break;case'center':offset=(width-lineWidth)/2;break;}if(offset){line.x=(line.x||0)+offset;}if(alignment==='justify'&&!line.newLineForced&&!line.lastLineInParagraph&&line.inlines.length>1){var additionalSpacing=(width-lineWidth)/(line.inlines.length-1);for(var i=1,l=line.inlines.length;i<l;i++){offset=i*additionalSpacing;line.inlines[i].x+=offset;line.inlines[i].justifyShift=additionalSpacing;}}};ElementWriter.prototype.addImage=function(image,index,type){var context=this.context;var page=context.getCurrentPage(),position=this.getCurrentPositionOnPage();if(!page||image.absolutePosition===undefined&&context.availableHeight<image._height&&page.items.length>0){return false;}if(image._x===undefined){image._x=image.x||0;}image.x=context.x+image._x;image.y=context.y;this.alignImage(image);addPageItem(page,{type:type||'image',item:image},index);context.moveDown(image._height);return position;};ElementWriter.prototype.addSVG=function(image,index){return this.addImage(image,index,'svg');};ElementWriter.prototype.addQr=function(qr,index){var context=this.context;var page=context.getCurrentPage(),position=this.getCurrentPositionOnPage();if(!page||qr.absolutePosition===undefined&&context.availableHeight<qr._height){return false;}if(qr._x===undefined){qr._x=qr.x||0;}qr.x=context.x+qr._x;qr.y=context.y;this.alignImage(qr);for(var i=0,l=qr._canvas.length;i<l;i++){var vector=qr._canvas[i];vector.x+=qr.x;vector.y+=qr.y;this.addVector(vector,true,true,index);}context.moveDown(qr._height);return position;};ElementWriter.prototype.alignImage=function(image){var width=this.context.availableWidth;var imageWidth=image._minWidth;var offset=0;switch(image._alignment){case'right':offset=width-imageWidth;break;case'center':offset=(width-imageWidth)/2;break;}if(offset){image.x=(image.x||0)+offset;}};ElementWriter.prototype.alignCanvas=function(node){var width=this.context.availableWidth;var canvasWidth=node._minWidth;var offset=0;switch(node._alignment){case'right':offset=width-canvasWidth;break;case'center':offset=(width-canvasWidth)/2;break;}if(offset){node.canvas.forEach(function(vector){offsetVector(vector,offset,0);});}};ElementWriter.prototype.addVector=function(vector,ignoreContextX,ignoreContextY,index){var context=this.context;var page=context.getCurrentPage(),position=this.getCurrentPositionOnPage();if(page){offsetVector(vector,ignoreContextX?0:context.x,ignoreContextY?0:context.y);addPageItem(page,{type:'vector',item:vector},index);return position;}};ElementWriter.prototype.beginClip=function(width,height){var ctx=this.context;var page=ctx.getCurrentPage();page.items.push({type:'beginClip',item:{x:ctx.x,y:ctx.y,width:width,height:height}});return true;};ElementWriter.prototype.endClip=function(){var ctx=this.context;var page=ctx.getCurrentPage();page.items.push({type:'endClip'});return true;};function cloneLine(line){var result=new Line(line.maxWidth);for(var key in line){if(line.hasOwnProperty(key)){result[key]=line[key];}}return result;}ElementWriter.prototype.addFragment=function(block,useBlockXOffset,useBlockYOffset,dontUpdateContextPosition){var ctx=this.context;var page=ctx.getCurrentPage();if(!useBlockXOffset&&block.height>ctx.availableHeight){return false;}block.items.forEach(function(item){switch(item.type){case'line':var l=cloneLine(item.item);if(l._node){l._node.positions[0].pageNumber=ctx.page+1;}l.x=(l.x||0)+(useBlockXOffset?block.xOffset||0:ctx.x);l.y=(l.y||0)+(useBlockYOffset?block.yOffset||0:ctx.y);page.items.push({type:'line',item:l});break;case'vector':var v=pack(item.item);offsetVector(v,useBlockXOffset?block.xOffset||0:ctx.x,useBlockYOffset?block.yOffset||0:ctx.y);page.items.push({type:'vector',item:v});break;case'image':case'svg':var img=pack(item.item);img.x=(img.x||0)+(useBlockXOffset?block.xOffset||0:ctx.x);img.y=(img.y||0)+(useBlockYOffset?block.yOffset||0:ctx.y);page.items.push({type:item.type,item:img});break;}});if(!dontUpdateContextPosition){ctx.moveDown(block.height);}return true;};/**\r\n     * Pushes the provided context onto the stack or creates a new one\r\n     *\r\n     * pushContext(context) - pushes the provided context and makes it current\r\n     * pushContext(width, height) - creates and pushes a new context with the specified width and height\r\n     * pushContext() - creates a new context for unbreakable blocks (with current availableWidth and full-page-height)\r\n     */ElementWriter.prototype.pushContext=function(contextOrWidth,height){if(contextOrWidth===undefined){height=this.context.getCurrentPage().height-this.context.pageMargins.top-this.context.pageMargins.bottom;contextOrWidth=this.context.availableWidth;}if(isNumber(contextOrWidth)){contextOrWidth=new DocumentContext({width:contextOrWidth,height:height},{left:0,right:0,top:0,bottom:0});}this.contextStack.push(this.context);this.context=contextOrWidth;};ElementWriter.prototype.popContext=function(){this.context=this.contextStack.pop();};ElementWriter.prototype.getCurrentPositionOnPage=function(){return(this.contextStack[0]||this.context).getCurrentPosition();};module.exports=ElementWriter;/***/},/* 451 */ /***/function(module,exports,__nested_webpack_require_4708627__){\"use strict\";var ColumnCalculator=__nested_webpack_require_4708627__(131);var isFunction=__nested_webpack_require_4708627__(0).isFunction;function TableProcessor(tableNode){this.tableNode=tableNode;}TableProcessor.prototype.beginTable=function(writer){var tableNode;var availableWidth;var self=this;tableNode=this.tableNode;this.offsets=tableNode._offsets;this.layout=tableNode._layout;availableWidth=writer.context().availableWidth-this.offsets.total;ColumnCalculator.buildColumnWidths(tableNode.table.widths,availableWidth);this.tableWidth=tableNode._offsets.total+getTableInnerContentWidth();this.rowSpanData=prepareRowSpanData();this.cleanUpRepeatables=false;this.headerRows=tableNode.table.headerRows||0;this.rowsWithoutPageBreak=this.headerRows+(tableNode.table.keepWithHeaderRows||0);this.dontBreakRows=tableNode.table.dontBreakRows||false;if(this.rowsWithoutPageBreak){writer.beginUnbreakableBlock();}// update the border properties of all cells before drawing any lines\nprepareCellBorders(this.tableNode.table.body);this.drawHorizontalLine(0,writer);function getTableInnerContentWidth(){var width=0;tableNode.table.widths.forEach(function(w){width+=w._calcWidth;});return width;}function prepareRowSpanData(){var rsd=[];var x=0;var lastWidth=0;rsd.push({left:0,rowSpan:0});for(var i=0,l=self.tableNode.table.body[0].length;i<l;i++){var paddings=self.layout.paddingLeft(i,self.tableNode)+self.layout.paddingRight(i,self.tableNode);var lBorder=self.layout.vLineWidth(i,self.tableNode);lastWidth=paddings+lBorder+self.tableNode.table.widths[i]._calcWidth;rsd[rsd.length-1].width=lastWidth;x+=lastWidth;rsd.push({left:x,rowSpan:0,width:0});}return rsd;}// Iterate through all cells. If the current cell is the start of a\n// rowSpan/colSpan, update the border property of the cells on its\n// bottom/right accordingly. This is needed since each iteration of the\n// line-drawing loops draws lines for a single cell, not for an entire\n// rowSpan/colSpan.\nfunction prepareCellBorders(body){for(var rowIndex=0;rowIndex<body.length;rowIndex++){var row=body[rowIndex];for(var colIndex=0;colIndex<row.length;colIndex++){var cell=row[colIndex];if(cell.border){var rowSpan=cell.rowSpan||1;var colSpan=cell.colSpan||1;for(var rowOffset=0;rowOffset<rowSpan;rowOffset++){// set left border\nif(cell.border[0]!==undefined&&rowOffset>0){setBorder(rowIndex+rowOffset,colIndex,0,cell.border[0]);}// set right border\nif(cell.border[2]!==undefined){setBorder(rowIndex+rowOffset,colIndex+colSpan-1,2,cell.border[2]);}}for(var colOffset=0;colOffset<colSpan;colOffset++){// set top border\nif(cell.border[1]!==undefined&&colOffset>0){setBorder(rowIndex,colIndex+colOffset,1,cell.border[1]);}// set bottom border\nif(cell.border[3]!==undefined){setBorder(rowIndex+rowSpan-1,colIndex+colOffset,3,cell.border[3]);}}}}}// helper function to set the border for a given cell\nfunction setBorder(rowIndex,colIndex,borderIndex,borderValue){var cell=body[rowIndex][colIndex];cell.border=cell.border||{};cell.border[borderIndex]=borderValue;}}};TableProcessor.prototype.onRowBreak=function(rowIndex,writer){var self=this;return function(){var offset=self.rowPaddingTop+(!self.headerRows?self.topLineWidth:0);writer.context().availableHeight-=self.reservedAtBottom;writer.context().moveDown(offset);};};TableProcessor.prototype.beginRow=function(rowIndex,writer){this.topLineWidth=this.layout.hLineWidth(rowIndex,this.tableNode);this.rowPaddingTop=this.layout.paddingTop(rowIndex,this.tableNode);this.bottomLineWidth=this.layout.hLineWidth(rowIndex+1,this.tableNode);this.rowPaddingBottom=this.layout.paddingBottom(rowIndex,this.tableNode);this.rowCallback=this.onRowBreak(rowIndex,writer);writer.tracker.startTracking('pageChanged',this.rowCallback);if(this.dontBreakRows){writer.beginUnbreakableBlock();}this.rowTopY=writer.context().y;this.reservedAtBottom=this.bottomLineWidth+this.rowPaddingBottom;writer.context().availableHeight-=this.reservedAtBottom;writer.context().moveDown(this.rowPaddingTop);};TableProcessor.prototype.drawHorizontalLine=function(lineIndex,writer,overrideY){var lineWidth=this.layout.hLineWidth(lineIndex,this.tableNode);if(lineWidth){var style=this.layout.hLineStyle(lineIndex,this.tableNode);var dash;if(style&&style.dash){dash=style.dash;}var offset=lineWidth/2;var currentLine=null;var body=this.tableNode.table.body;var cellAbove;var currentCell;var rowCellAbove;for(var i=0,l=this.rowSpanData.length;i<l;i++){var data=this.rowSpanData[i];var shouldDrawLine=!data.rowSpan;var borderColor=null;// draw only if the current cell requires a top border or the cell in the\n// row above requires a bottom border\nif(shouldDrawLine&&i<l-1){var topBorder=false,bottomBorder=false,rowBottomBorder=false;// the cell in the row above\nif(lineIndex>0){cellAbove=body[lineIndex-1][i];bottomBorder=cellAbove.border?cellAbove.border[3]:this.layout.defaultBorder;if(bottomBorder&&cellAbove.borderColor){borderColor=cellAbove.borderColor[3];}}// the current cell\nif(lineIndex<body.length){currentCell=body[lineIndex][i];topBorder=currentCell.border?currentCell.border[1]:this.layout.defaultBorder;if(topBorder&&borderColor==null&&currentCell.borderColor){borderColor=currentCell.borderColor[1];}}shouldDrawLine=topBorder||bottomBorder;}if(cellAbove&&cellAbove._rowSpanCurrentOffset){rowCellAbove=body[lineIndex-1-cellAbove._rowSpanCurrentOffset][i];rowBottomBorder=rowCellAbove&&rowCellAbove.border?rowCellAbove.border[3]:this.layout.defaultBorder;if(rowBottomBorder&&rowCellAbove&&rowCellAbove.borderColor){borderColor=rowCellAbove.borderColor[3];}}if(borderColor==null){borderColor=isFunction(this.layout.hLineColor)?this.layout.hLineColor(lineIndex,this.tableNode,i):this.layout.hLineColor;}if(!currentLine&&shouldDrawLine){currentLine={left:data.left,width:0};}if(shouldDrawLine){var colSpanIndex=0;if(rowCellAbove&&rowCellAbove.colSpan&&rowBottomBorder){while(rowCellAbove.colSpan>colSpanIndex){currentLine.width+=this.rowSpanData[i+colSpanIndex++].width||0;}i+=colSpanIndex-1;}else if(cellAbove&&cellAbove.colSpan&&bottomBorder){while(cellAbove.colSpan>colSpanIndex){currentLine.width+=this.rowSpanData[i+colSpanIndex++].width||0;}i+=colSpanIndex-1;}else if(currentCell&&currentCell.colSpan&&topBorder){while(currentCell.colSpan>colSpanIndex){currentLine.width+=this.rowSpanData[i+colSpanIndex++].width||0;}i+=colSpanIndex-1;}else{currentLine.width+=this.rowSpanData[i].width||0;}}var y=(overrideY||0)+offset;if(shouldDrawLine){if(currentLine&&currentLine.width){writer.addVector({type:'line',x1:currentLine.left,x2:currentLine.left+currentLine.width,y1:y,y2:y,lineWidth:lineWidth,dash:dash,lineColor:borderColor},false,overrideY);currentLine=null;borderColor=null;cellAbove=null;currentCell=null;rowCellAbove=null;}}}writer.context().moveDown(lineWidth);}};TableProcessor.prototype.drawVerticalLine=function(x,y0,y1,vLineColIndex,writer,vLineRowIndex,beforeVLineColIndex){var width=this.layout.vLineWidth(vLineColIndex,this.tableNode);if(width===0){return;}var style=this.layout.vLineStyle(vLineColIndex,this.tableNode);var dash;if(style&&style.dash){dash=style.dash;}var body=this.tableNode.table.body;var cellBefore;var currentCell;var borderColor;// the cell in the col before\nif(vLineColIndex>0){cellBefore=body[vLineRowIndex][beforeVLineColIndex];if(cellBefore&&cellBefore.borderColor){if(cellBefore.border?cellBefore.border[2]:this.layout.defaultBorder){borderColor=cellBefore.borderColor[2];}}}// the current cell\nif(borderColor==null&&vLineColIndex<body.length){currentCell=body[vLineRowIndex][vLineColIndex];if(currentCell&&currentCell.borderColor){if(currentCell.border?currentCell.border[0]:this.layout.defaultBorder){borderColor=currentCell.borderColor[0];}}}if(borderColor==null&&cellBefore&&cellBefore._rowSpanCurrentOffset){var rowCellBeforeAbove=body[vLineRowIndex-cellBefore._rowSpanCurrentOffset][beforeVLineColIndex];if(rowCellBeforeAbove.borderColor){if(rowCellBeforeAbove.border?rowCellBeforeAbove.border[2]:this.layout.defaultBorder){borderColor=rowCellBeforeAbove.borderColor[2];}}}if(borderColor==null&&currentCell&&currentCell._rowSpanCurrentOffset){var rowCurrentCellAbove=body[vLineRowIndex-currentCell._rowSpanCurrentOffset][vLineColIndex];if(rowCurrentCellAbove.borderColor){if(rowCurrentCellAbove.border?rowCurrentCellAbove.border[2]:this.layout.defaultBorder){borderColor=rowCurrentCellAbove.borderColor[2];}}}if(borderColor==null){borderColor=isFunction(this.layout.vLineColor)?this.layout.vLineColor(vLineColIndex,this.tableNode,vLineRowIndex):this.layout.vLineColor;}writer.addVector({type:'line',x1:x+width/2,x2:x+width/2,y1:y0,y2:y1,lineWidth:width,dash:dash,lineColor:borderColor},false,true);cellBefore=null;currentCell=null;borderColor=null;};TableProcessor.prototype.endTable=function(writer){if(this.cleanUpRepeatables){writer.popFromRepeatables();}};TableProcessor.prototype.endRow=function(rowIndex,writer,pageBreaks){var l,i;var self=this;writer.tracker.stopTracking('pageChanged',this.rowCallback);writer.context().moveDown(this.layout.paddingBottom(rowIndex,this.tableNode));writer.context().availableHeight+=this.reservedAtBottom;var endingPage=writer.context().page;var endingY=writer.context().y;var xs=getLineXs();var ys=[];var hasBreaks=pageBreaks&&pageBreaks.length>0;var body=this.tableNode.table.body;ys.push({y0:this.rowTopY,page:hasBreaks?pageBreaks[0].prevPage:endingPage});if(hasBreaks){for(i=0,l=pageBreaks.length;i<l;i++){var pageBreak=pageBreaks[i];ys[ys.length-1].y1=pageBreak.prevY;ys.push({y0:pageBreak.y,page:pageBreak.prevPage+1});}}ys[ys.length-1].y1=endingY;var skipOrphanePadding=ys[0].y1-ys[0].y0===this.rowPaddingTop;for(var yi=skipOrphanePadding?1:0,yl=ys.length;yi<yl;yi++){var willBreak=yi<ys.length-1;var rowBreakWithoutHeader=yi>0&&!this.headerRows;var hzLineOffset=rowBreakWithoutHeader?0:this.topLineWidth;var y1=ys[yi].y0;var y2=ys[yi].y1;if(willBreak){y2=y2+this.rowPaddingBottom;}if(writer.context().page!=ys[yi].page){writer.context().page=ys[yi].page;//TODO: buggy, availableHeight should be updated on every pageChanged event\n// TableProcessor should be pageChanged listener, instead of processRow\nthis.reservedAtBottom=0;}for(i=0,l=xs.length;i<l;i++){var leftCellBorder=false;var rightCellBorder=false;var colIndex=xs[i].index;// current cell\nif(colIndex<body[rowIndex].length){var cell=body[rowIndex][colIndex];leftCellBorder=cell.border?cell.border[0]:this.layout.defaultBorder;rightCellBorder=cell.border?cell.border[2]:this.layout.defaultBorder;}// before cell\nif(colIndex>0&&!leftCellBorder){var cell=body[rowIndex][colIndex-1];leftCellBorder=cell.border?cell.border[2]:this.layout.defaultBorder;}// after cell\nif(colIndex+1<body[rowIndex].length&&!rightCellBorder){var cell=body[rowIndex][colIndex+1];rightCellBorder=cell.border?cell.border[0]:this.layout.defaultBorder;}if(leftCellBorder){this.drawVerticalLine(xs[i].x,y1-hzLineOffset,y2+this.bottomLineWidth,xs[i].index,writer,rowIndex,xs[i-1]?xs[i-1].index:null);}if(i<l-1){var fillColor=body[rowIndex][colIndex].fillColor;if(!fillColor){fillColor=isFunction(this.layout.fillColor)?this.layout.fillColor(rowIndex,this.tableNode,colIndex):this.layout.fillColor;}if(fillColor){var widthLeftBorder=leftCellBorder?this.layout.vLineWidth(colIndex,this.tableNode):0;var widthRightBorder;if((colIndex===0||colIndex+1==body[rowIndex].length)&&!rightCellBorder){widthRightBorder=this.layout.vLineWidth(colIndex+1,this.tableNode);}else if(rightCellBorder){widthRightBorder=this.layout.vLineWidth(colIndex+1,this.tableNode)/2;}else{widthRightBorder=0;}var x1f=this.dontBreakRows?xs[i].x+widthLeftBorder:xs[i].x+widthLeftBorder/2;var y1f=this.dontBreakRows?y1:y1-hzLineOffset/2;var x2f=xs[i+1].x+widthRightBorder;var y2f=this.dontBreakRows?y2+this.bottomLineWidth:y2+this.bottomLineWidth/2;writer.addVector({type:'rect',x:x1f,y:y1f,w:x2f-x1f,h:y2f-y1f,lineWidth:0,color:fillColor},false,true,writer.context().backgroundLength[writer.context().page]);}}}if(willBreak&&this.layout.hLineWhenBroken!==false){this.drawHorizontalLine(rowIndex+1,writer,y2);}if(rowBreakWithoutHeader&&this.layout.hLineWhenBroken!==false){this.drawHorizontalLine(rowIndex,writer,y1);}}writer.context().page=endingPage;writer.context().y=endingY;var row=this.tableNode.table.body[rowIndex];for(i=0,l=row.length;i<l;i++){if(row[i].rowSpan){this.rowSpanData[i].rowSpan=row[i].rowSpan;// fix colSpans\nif(row[i].colSpan&&row[i].colSpan>1){for(var j=1;j<row[i].rowSpan;j++){this.tableNode.table.body[rowIndex+j][i]._colSpan=row[i].colSpan;}}// fix rowSpans\nif(row[i].rowSpan&&row[i].rowSpan>1){for(var j=1;j<row[i].rowSpan;j++){this.tableNode.table.body[rowIndex+j][i]._rowSpanCurrentOffset=j;}}}if(this.rowSpanData[i].rowSpan>0){this.rowSpanData[i].rowSpan--;}}this.drawHorizontalLine(rowIndex+1,writer);if(this.headerRows&&rowIndex===this.headerRows-1){this.headerRepeatable=writer.currentBlockToRepeatable();}if(this.dontBreakRows){writer.tracker.auto('pageChanged',function(){if(!self.headerRows&&self.layout.hLineWhenBroken!==false){self.drawHorizontalLine(rowIndex,writer);}},function(){writer.commitUnbreakableBlock();});}if(this.headerRepeatable&&(rowIndex===this.rowsWithoutPageBreak-1||rowIndex===this.tableNode.table.body.length-1)){writer.commitUnbreakableBlock();writer.pushToRepeatables(this.headerRepeatable);this.cleanUpRepeatables=true;this.headerRepeatable=null;}function getLineXs(){var result=[];var cols=0;for(var i=0,l=self.tableNode.table.body[rowIndex].length;i<l;i++){if(!cols){result.push({x:self.rowSpanData[i].left,index:i});var item=self.tableNode.table.body[rowIndex][i];cols=item._colSpan||item.colSpan||0;}if(cols>0){cols--;}}result.push({x:self.rowSpanData[self.rowSpanData.length-1].left,index:self.rowSpanData.length-1});return result;}};module.exports=TableProcessor;/***/},/* 452 */ /***/function(module,exports,__webpack_require__){\"use strict\";module.exports={'4A0':[4767.87,6740.79],'2A0':[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.40,209.76],A9:[104.88,147.40],A10:[73.70,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.90,708.66],B6:[354.33,498.90],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.80,3458.27],RA1:[1729.13,2437.80],RA2:[1218.90,1729.13],RA3:[864.57,1218.90],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.80,907.09],EXECUTIVE:[521.86,756.00],FOLIO:[612.00,936.00],LEGAL:[612.00,1008.00],LETTER:[612.00,792.00],TABLOID:[792.00,1224.00]};/***/},/* 453 */ /***/function(module,exports,__nested_webpack_require_4723490__){\"use strict\";/* WEBPACK VAR INJECTION */(function(Buffer){function ImageMeasure(pdfKitDoc,imageDictionary){this.pdfKitDoc=pdfKitDoc;this.imageDictionary=imageDictionary||{};}ImageMeasure.prototype.measureImage=function(src){var image;var that=this;if(!this.pdfKitDoc._imageRegistry[src]){try{image=this.pdfKitDoc.openImage(realImageSrc(src));if(!image){throw'No image';}}catch(error){throw'Invalid image: '+error.toString()+'\\nImages dictionary should contain dataURL entries (or local file paths in node.js)';}image.embed(this.pdfKitDoc);this.pdfKitDoc._imageRegistry[src]=image;}else{image=this.pdfKitDoc._imageRegistry[src];}return{width:image.width,height:image.height};function realImageSrc(src){var img=that.imageDictionary[src];if(!img){return src;}var index=img.indexOf('base64,');if(index<0){return that.imageDictionary[src];}return Buffer.from(img.substring(index+7),'base64');}};module.exports=ImageMeasure;/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_4723490__(4).Buffer);/***/},/* 454 */ /***/function(module,exports,__webpack_require__){\"use strict\";function SVGMeasure(){}SVGMeasure.prototype.getSVGNode=function(svgString){// remove newlines\nsvgString=svgString.replace(/\\r?\\n|\\r/g,\"\");var svgNodeMatches=svgString.match(/<svg(.*?)>/);if(svgNodeMatches){// extract svg node <svg ... >\nreturn svgNodeMatches[0];}return\"\";};SVGMeasure.prototype.getHeightAndWidth=function(svgString){var svgNode=this.getSVGNode(svgString);var widthMatches=svgNode.match(/width=\"([0-9]+(\\.[0-9]+)?)(em|ex|px|in|cm|mm|pt|pc|%)?\"/);var heightMatches=svgNode.match(/height=\"([0-9]+(\\.[0-9]+)?)(em|ex|px|in|cm|mm|pt|pc|%)?\"/);if(widthMatches||heightMatches){return{width:widthMatches?+widthMatches[1]:undefined,height:heightMatches?+heightMatches[1]:undefined};}};SVGMeasure.prototype.getViewboxHeightAndWidth=function(svgString){var svgNode=this.getSVGNode(svgString);var viewboxMatches=svgNode.match(/viewBox=\"([+-]?(\\d*\\.)?\\d+(,|\\s+|,\\s+)[+-]?(\\d*\\.)?\\d+(,|\\s+|,\\s+)[+-]?(\\d*\\.)?\\d+(,|\\s+|,\\s+)[+-]?(\\d*\\.)?\\d+)\"/);if(viewboxMatches){var viewboxStr=viewboxMatches[1];var allVieboxEntries=viewboxStr.split(\" \");var viewboxEntries=[];// weeding out empty strings\nfor(var i=0;i<allVieboxEntries.length;i++){if(allVieboxEntries[i]){viewboxEntries.push(allVieboxEntries[i]);}}if(viewboxEntries.length===4){return{width:+viewboxEntries[2],height:+viewboxEntries[3]};}throw new Error(\"Unexpected svg viewbox format, should have 4 entries but found: '\"+viewboxStr+\"'\");}};SVGMeasure.prototype.measureSVG=function(svgString){var heightAndWidth=this.getHeightAndWidth(svgString);var viewboxHeightAndWidth=this.getViewboxHeightAndWidth(svgString);return heightAndWidth||viewboxHeightAndWidth||{};};SVGMeasure.prototype.writeDimensions=function(svgString,dimensions){var svgNode=this.getSVGNode(svgString);if(svgNode){var nodeDimensions=this.getHeightAndWidth(svgString);if(dimensions.width){var newWidth='width=\"'+dimensions.width+'\"';if(nodeDimensions&&nodeDimensions.width){// replace existing width\nsvgNode=svgNode.replace(/width=\"[0-9]+(\\.[0-9]+)?(em|ex|px|in|cm|mm|pt|pc|%)?\"/,newWidth);}else{// insert new width\nsvgNode=svgNode.replace(\">\",\" \"+newWidth+\">\");}}if(dimensions.height){var newHeight='height=\"'+dimensions.height+'\"';if(nodeDimensions&&nodeDimensions.height){// replace existing height\nsvgNode=svgNode.replace(/height=\"[0-9]+(\\.[0-9]+)?(em|ex|px|in|cm|mm|pt|pc|%)?\"/,newHeight);}else{// insert new height\nsvgNode=svgNode.replace(\">\",\" \"+newHeight+\">\");}}// insert updated svg node\nreturn svgString.replace(/<svg(.*?)>/,svgNode);}return svgString;};module.exports=SVGMeasure;/***/},/* 455 */ /***/function(module,exports,__nested_webpack_require_4727138__){\"use strict\";var isArray=__nested_webpack_require_4727138__(0).isArray;function groupDecorations(line){var groups=[],currentGroup=null;for(var i=0,l=line.inlines.length;i<l;i++){var inline=line.inlines[i];var decoration=inline.decoration;if(!decoration){currentGroup=null;continue;}if(!isArray(decoration)){decoration=[decoration];}var color=inline.decorationColor||inline.color||'black';var style=inline.decorationStyle||'solid';for(var ii=0,ll=decoration.length;ii<ll;ii++){var decorationItem=decoration[ii];if(!currentGroup||decorationItem!==currentGroup.decoration||style!==currentGroup.decorationStyle||color!==currentGroup.decorationColor){currentGroup={line:line,decoration:decorationItem,decorationColor:color,decorationStyle:style,inlines:[inline]};groups.push(currentGroup);}else{currentGroup.inlines.push(inline);}}}return groups;}function drawDecoration(group,x,y,pdfKitDoc){function maxInline(){var max=0;for(var i=0,l=group.inlines.length;i<l;i++){var inline=group.inlines[i];max=inline.fontSize>max?i:max;}return group.inlines[max];}function width(){var sum=0;for(var i=0,l=group.inlines.length;i<l;i++){var justifyShift=group.inlines[i].justifyShift||0;sum+=group.inlines[i].width+justifyShift;}return sum;}var firstInline=group.inlines[0],biggerInline=maxInline(),totalWidth=width(),lineAscent=group.line.getAscenderHeight(),ascent=biggerInline.font.ascender/1000*biggerInline.fontSize,height=biggerInline.height,descent=height-ascent;var lw=0.5+Math.floor(Math.max(biggerInline.fontSize-8,0)/2)*0.12;switch(group.decoration){case'underline':y+=lineAscent+descent*0.45;break;case'overline':y+=lineAscent-ascent*0.85;break;case'lineThrough':y+=lineAscent-ascent*0.25;break;default:throw'Unkown decoration : '+group.decoration;}pdfKitDoc.save();if(group.decorationStyle==='double'){var gap=Math.max(0.5,lw*2);pdfKitDoc.fillColor(group.decorationColor).rect(x+firstInline.x,y-lw/2,totalWidth,lw/2).fill().rect(x+firstInline.x,y+gap-lw/2,totalWidth,lw/2).fill();}else if(group.decorationStyle==='dashed'){var nbDashes=Math.ceil(totalWidth/(3.96+2.84));var rdx=x+firstInline.x;pdfKitDoc.rect(rdx,y,totalWidth,lw).clip();pdfKitDoc.fillColor(group.decorationColor);for(var i=0;i<nbDashes;i++){pdfKitDoc.rect(rdx,y-lw/2,3.96,lw).fill();rdx+=3.96+2.84;}}else if(group.decorationStyle==='dotted'){var nbDots=Math.ceil(totalWidth/(lw*3));var rx=x+firstInline.x;pdfKitDoc.rect(rx,y,totalWidth,lw).clip();pdfKitDoc.fillColor(group.decorationColor);for(var ii=0;ii<nbDots;ii++){pdfKitDoc.rect(rx,y-lw/2,lw,lw).fill();rx+=lw*3;}}else if(group.decorationStyle==='wavy'){var sh=0.7,sv=1;var nbWaves=Math.ceil(totalWidth/(sh*2))+1;var rwx=x+firstInline.x-1;pdfKitDoc.rect(x+firstInline.x,y-sv,totalWidth,y+sv).clip();pdfKitDoc.lineWidth(0.24);pdfKitDoc.moveTo(rwx,y);for(var iii=0;iii<nbWaves;iii++){pdfKitDoc.bezierCurveTo(rwx+sh,y-sv,rwx+sh*2,y-sv,rwx+sh*3,y).bezierCurveTo(rwx+sh*4,y+sv,rwx+sh*5,y+sv,rwx+sh*6,y);rwx+=sh*6;}pdfKitDoc.stroke(group.decorationColor);}else{pdfKitDoc.fillColor(group.decorationColor).rect(x+firstInline.x,y-lw/2,totalWidth,lw).fill();}pdfKitDoc.restore();}function drawDecorations(line,x,y,pdfKitDoc){var groups=groupDecorations(line);for(var i=0,l=groups.length;i<l;i++){drawDecoration(groups[i],x,y,pdfKitDoc);}}function drawBackground(line,x,y,pdfKitDoc){var height=line.getHeight();for(var i=0,l=line.inlines.length;i<l;i++){var inline=line.inlines[i];if(!inline.background){continue;}var justifyShift=inline.justifyShift||0;pdfKitDoc.fillColor(inline.background).rect(x+inline.x-justifyShift,y,inline.width+justifyShift,height).fill();}}module.exports={drawBackground:drawBackground,drawDecorations:drawDecorations};/***/},/* 456 */ /***/function(module,exports,__nested_webpack_require_4730842__){\"use strict\";/* WEBPACK VAR INJECTION */(function(module){__nested_webpack_require_4730842__(139);__nested_webpack_require_4730842__(137);__nested_webpack_require_4730842__(155);__nested_webpack_require_4730842__(159);__nested_webpack_require_4730842__(153);__nested_webpack_require_4730842__(92);__nested_webpack_require_4730842__(99);__nested_webpack_require_4730842__(66);__nested_webpack_require_4730842__(161);__nested_webpack_require_4730842__(160);__nested_webpack_require_4730842__(152);var SVGtoPDF=function SVGtoPDF(doc,svg,x,y,options){\"use strict\";var NamedColors={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgrey:[211,211,211],lightgreen:[144,238,144],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0]};var DefaultColors={black:[NamedColors.black,1],white:[NamedColors.white,1],transparent:[NamedColors.black,0]};var Entities={quot:34,amp:38,lt:60,gt:62,apos:39,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,circ:710,tilde:732,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,permil:8240,lsaquo:8249,rsaquo:8250,euro:8364,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,fnof:402,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,bull:8226,hellip:8230,prime:8242,Prime:8243,oline:8254,frasl:8260,weierp:8472,image:8465,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};var PathArguments={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};var PathFlags={A3:true,A4:true,a3:true,a4:true};var Properties={'color':{inherit:true,initial:undefined},'visibility':{inherit:true,initial:'visible',values:{'hidden':'hidden','collapse':'hidden','visible':'visible'}},'fill':{inherit:true,initial:DefaultColors.black},'stroke':{inherit:true,initial:'none'},'stop-color':{inherit:false,initial:DefaultColors.black},'fill-opacity':{inherit:true,initial:1},'stroke-opacity':{inherit:true,initial:1},'stop-opacity':{inherit:false,initial:1},'fill-rule':{inherit:true,initial:'nonzero',values:{'nonzero':'nonzero','evenodd':'evenodd'}},'clip-rule':{inherit:true,initial:'nonzero',values:{'nonzero':'nonzero','evenodd':'evenodd'}},'stroke-width':{inherit:true,initial:1},'stroke-dasharray':{inherit:true,initial:[]},'stroke-dashoffset':{inherit:true,initial:0},'stroke-miterlimit':{inherit:true,initial:4},'stroke-linejoin':{inherit:true,initial:'miter',values:{'miter':'miter','round':'round','bevel':'bevel'}},'stroke-linecap':{inherit:true,initial:'butt',values:{'butt':'butt','round':'round','square':'square'}},'font-size':{inherit:true,initial:16,values:{'xx-small':9,'x-small':10,'small':13,'medium':16,'large':18,'x-large':24,'xx-large':32}},'font-family':{inherit:true,initial:'sans-serif'},'font-weight':{inherit:true,initial:'normal',values:{'600':'bold','700':'bold','800':'bold','900':'bold','bold':'bold','bolder':'bold','500':'normal','400':'normal','300':'normal','200':'normal','100':'normal','normal':'normal','lighter':'normal'}},'font-style':{inherit:true,initial:'normal',values:{'italic':'italic','oblique':'italic','normal':'normal'}},'text-anchor':{inherit:true,initial:'start',values:{'start':'start','middle':'middle','end':'end'}},'direction':{inherit:true,initial:'ltr',values:{'ltr':'ltr','rtl':'rtl'}},'dominant-baseline':{inherit:true,initial:'baseline',values:{'auto':'baseline','baseline':'baseline','before-edge':'before-edge','text-before-edge':'before-edge','middle':'middle','central':'central','after-edge':'after-edge','text-after-edge':'after-edge','ideographic':'ideographic','alphabetic':'alphabetic','hanging':'hanging','mathematical':'mathematical'}},'alignment-baseline':{inherit:false,initial:undefined,values:{'auto':'baseline','baseline':'baseline','before-edge':'before-edge','text-before-edge':'before-edge','middle':'middle','central':'central','after-edge':'after-edge','text-after-edge':'after-edge','ideographic':'ideographic','alphabetic':'alphabetic','hanging':'hanging','mathematical':'mathematical'}},'baseline-shift':{inherit:true,initial:'baseline',values:{'baseline':'baseline','sub':'sub','super':'super'}},'word-spacing':{inherit:true,initial:0,values:{normal:0}},'letter-spacing':{inherit:true,initial:0,values:{normal:0}},'text-decoration':{inherit:false,initial:'none',values:{'none':'none','underline':'underline','overline':'overline','line-through':'line-through'}},'xml:space':{inherit:true,initial:'default',css:'white-space',values:{'preserve':'preserve','default':'default','pre':'preserve','pre-line':'preserve','pre-wrap':'preserve','nowrap':'default'}},'marker-start':{inherit:true,initial:'none'},'marker-mid':{inherit:true,initial:'none'},'marker-end':{inherit:true,initial:'none'},'opacity':{inherit:false,initial:1},'transform':{inherit:false,initial:[1,0,0,1,0,0]},'display':{inherit:false,initial:'inline',values:{'none':'none','inline':'inline','block':'inline'}},'clip-path':{inherit:false,initial:'none'},'mask':{inherit:false,initial:'none'},'overflow':{inherit:false,initial:'hidden',values:{'hidden':'hidden','scroll':'hidden','visible':'visible'}}};function docBeginGroup(bbox){var group=new function PDFGroup(){}();group.name='G'+(doc._groupCount=(doc._groupCount||0)+1);group.resources=doc.ref();group.xobj=doc.ref({Type:'XObject',Subtype:'Form',FormType:1,BBox:bbox,Group:{S:'Transparency',CS:'DeviceRGB',I:true,K:false},Resources:group.resources});group.xobj.write('');group.savedMatrix=doc._ctm;group.savedPage=doc.page;groupStack.push(group);doc._ctm=[1,0,0,1,0,0];doc.page={width:doc.page.width,height:doc.page.height,write:function write(data){group.xobj.write(data);},fonts:{},xobjects:{},ext_gstates:{},patterns:{}};return group;}function docEndGroup(group){if(group!==groupStack.pop()){throw'Group not matching';}if(Object.keys(doc.page.fonts).length){group.resources.data.Font=doc.page.fonts;}if(Object.keys(doc.page.xobjects).length){group.resources.data.XObject=doc.page.xobjects;}if(Object.keys(doc.page.ext_gstates).length){group.resources.data.ExtGState=doc.page.ext_gstates;}if(Object.keys(doc.page.patterns).length){group.resources.data.Pattern=doc.page.patterns;}group.resources.end();group.xobj.end();doc._ctm=group.savedMatrix;doc.page=group.savedPage;}function docInsertGroup(group){doc.page.xobjects[group.name]=group.xobj;doc.addContent('/'+group.name+' Do');}function docApplyMask(group,clip){var name='M'+(doc._maskCount=(doc._maskCount||0)+1);var gstate=doc.ref({Type:'ExtGState',CA:1,ca:1,BM:'Normal',SMask:{S:'Luminosity',G:group.xobj,BC:clip?[0,0,0]:[1,1,1]}});gstate.end();doc.page.ext_gstates[name]=gstate;doc.addContent('/'+name+' gs');}function docCreatePattern(group,dx,dy,matrix){var pattern=new function PDFPattern(){}();pattern.group=group;pattern.dx=dx;pattern.dy=dy;pattern.matrix=matrix||[1,0,0,1,0,0];return pattern;}function docUsePattern(pattern,stroke){var name='P'+(doc._patternCount=(doc._patternCount||0)+1);var ref=doc.ref({Type:'Pattern',PatternType:1,PaintType:1,TilingType:2,BBox:[0,0,pattern.dx,pattern.dy],XStep:pattern.dx,YStep:pattern.dy,Matrix:multiplyMatrix(doc._ctm,pattern.matrix),Resources:{ProcSet:['PDF','Text','ImageB','ImageC','ImageI'],XObject:function(){var temp={};temp[pattern.group.name]=pattern.group.xobj;return temp;}()}});ref.write('/'+pattern.group.name+' Do');ref.end();doc.page.patterns[name]=ref;if(stroke){doc.addContent('/Pattern CS');doc.addContent('/'+name+' SCN');}else{doc.addContent('/Pattern cs');doc.addContent('/'+name+' scn');}}function docBeginText(font,size){if(!doc.page.fonts[font.id]){doc.page.fonts[font.id]=font.ref();}doc.addContent('BT').addContent('/'+font.id+' '+size+' Tf');}function docSetTextMatrix(a,b,c,d,e,f){doc.addContent(validateNumber(a)+' '+validateNumber(b)+' '+validateNumber(-c)+' '+validateNumber(-d)+' '+validateNumber(e)+' '+validateNumber(f)+' Tm');}function docSetTextMode(fill,stroke){var mode=fill&&stroke?2:stroke?1:fill?0:3;doc.addContent(mode+' Tr');}function docWriteGlyph(glyph){doc.addContent('<'+glyph+'> Tj');}function docEndText(){doc.addContent('ET');}function docFillColor(color){if(color[0].constructor.name==='PDFPattern'){doc.fillOpacity(color[1]);docUsePattern(color[0],false);}else{doc.fillColor(color[0],color[1]);}}function docStrokeColor(color){if(color[0].constructor.name==='PDFPattern'){doc.strokeOpacity(color[1]);docUsePattern(color[0],true);}else{doc.strokeColor(color[0],color[1]);}}function docInsertLink(x,y,w,h,url){var ref=doc.ref({Type:'Annot',Subtype:'Link',Rect:[x,y,w,h],Border:[0,0,0],A:{S:'URI',URI:new String(url)}});ref.end();links.push(ref);}function parseXml(xml){var SvgNode=function SvgNode(tag,type,value,error){this.error=error;this.nodeName=tag;this.nodeValue=value;this.nodeType=type;this.attributes=Object.create(null);this.childNodes=[];this.parentNode=null;this.id='';this.textContent='';this.classList=[];};SvgNode.prototype.getAttribute=function(attr){return this.attributes[attr]!=null?this.attributes[attr]:null;};SvgNode.prototype.getElementById=function(id){var result=null;(function recursive(node){if(result){return;}if(node.nodeType===1){if(node.id===id){result=node;}for(var i=0;i<node.childNodes.length;i++){recursive(node.childNodes[i]);}}})(this);return result;};SvgNode.prototype.getElementsByTagName=function(tag){var result=[];(function recursive(node){if(node.nodeType===1){if(node.nodeName===tag){result.push(node);}for(var i=0;i<node.childNodes.length;i++){recursive(node.childNodes[i]);}}})(this);return result;};var parser=new StringParser(xml.trim()),result,child,error=false;var recursive=function recursive(){var temp,child;if(temp=parser.match(/^<([\\w:.-]+)\\s*/,true)){// Opening tag\nvar node=new SvgNode(temp[1],1,null,error);while(temp=parser.match(/^([\\w:.-]+)(?:\\s*=\\s*\"([^\"]*)\"|\\s*=\\s*'([^']*)')?\\s*/,true)){// Attribute\nvar attr=temp[1],value=decodeEntities(temp[2]||temp[3]||'');if(!node.attributes[attr]){node.attributes[attr]=value;if(attr==='id'){node.id=value;}if(attr==='class'){node.classList=value.split(' ');}}else{warningCallback('parseXml: duplicate attribute \"'+attr+'\"');error=true;}}if(parser.match(/^>/)){// End of opening tag\nwhile(child=recursive()){node.childNodes.push(child);child.parentNode=node;node.textContent+=child.nodeType===3||child.nodeType===4?child.nodeValue:child.textContent;}if(temp=parser.match(/^<\\/([\\w:.-]+)\\s*>/,true)){// Closing tag\nif(temp[1]===node.nodeName){return node;}else{warningCallback('parseXml: tag not matching, opening \"'+node.nodeName+'\" & closing \"'+temp[1]+'\"');error=true;return node;}}else{warningCallback('parseXml: tag not matching, opening \"'+node.nodeName+'\" & not closing');error=true;return node;}}else if(parser.match(/^\\/>/)){// Self-closing tag\nreturn node;}else{warningCallback('parseXml: tag could not be parsed \"'+node.nodeName+'\"');error=true;}}else if(temp=parser.match(/^<!--[\\s\\S]*?-->/)){// Comment\nreturn new SvgNode(null,8,temp,error);}else if(temp=parser.match(/^<\\?[\\s\\S]*?\\?>/)){// Processing instructions\nreturn new SvgNode(null,7,temp,error);}else if(temp=parser.match(/^<!DOCTYPE\\s*([\\s\\S]*?)>/)){// Doctype\nreturn new SvgNode(null,10,temp,error);}else if(temp=parser.match(/^<!\\[CDATA\\[([\\s\\S]*?)\\]\\]>/,true)){// Cdata node\nreturn new SvgNode('#cdata-section',4,temp[1],error);}else if(temp=parser.match(/^([^<]+)/,true)){// Text node\nreturn new SvgNode('#text',3,decodeEntities(temp[1]),error);}};while(child=recursive()){if(child.nodeType===1&&!result){result=child;}else if(child.nodeType===1||child.nodeType===3&&child.nodeValue.trim()!==''){warningCallback('parseXml: data after document end has been discarded');}}if(parser.matchAll()){warningCallback('parseXml: parsing error');}return result;};function decodeEntities(str){return str.replace(/&(?:#([0-9]+)|#[xX]([0-9A-Fa-f]+)|([0-9A-Za-z]+));/g,function(mt,m0,m1,m2){if(m0){return String.fromCharCode(parseInt(m0,10));}else if(m1){return String.fromCharCode(parseInt(m1,16));}else if(m2&&Entities[m2]){return String.fromCharCode(Entities[m2]);}else{return mt;}});}function parseColor(raw){var temp,result;raw=(raw||'').trim();if(temp=NamedColors[raw]){result=[temp.slice(),1];}else if(temp=raw.match(/^rgba\\(\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9.]+)\\s*\\)$/i)){temp[1]=parseInt(temp[1]);temp[2]=parseInt(temp[2]);temp[3]=parseInt(temp[3]);temp[4]=parseFloat(temp[4]);if(temp[1]<256&&temp[2]<256&&temp[3]<256&&temp[4]<=1){result=[temp.slice(1,4),temp[4]];}}else if(temp=raw.match(/^rgb\\(\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*\\)$/i)){temp[1]=parseInt(temp[1]);temp[2]=parseInt(temp[2]);temp[3]=parseInt(temp[3]);if(temp[1]<256&&temp[2]<256&&temp[3]<256){result=[temp.slice(1,4),1];}}else if(temp=raw.match(/^rgb\\(\\s*([0-9.]+)%\\s*,\\s*([0-9.]+)%\\s*,\\s*([0-9.]+)%\\s*\\)$/i)){temp[1]=2.55*parseFloat(temp[1]);temp[2]=2.55*parseFloat(temp[2]);temp[3]=2.55*parseFloat(temp[3]);if(temp[1]<256&&temp[2]<256&&temp[3]<256){result=[temp.slice(1,4),1];}}else if(temp=raw.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)){result=[[parseInt(temp[1],16),parseInt(temp[2],16),parseInt(temp[3],16)],1];}else if(temp=raw.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i)){result=[[0x11*parseInt(temp[1],16),0x11*parseInt(temp[2],16),0x11*parseInt(temp[3],16)],1];}return colorCallback?colorCallback(result,raw):result;}function opacityToColor(color,opacity,isMask){var newColor=color[0].slice(),newOpacity=color[1]*opacity;if(isMask){for(var i=0;i<color.length;i++){newColor[i]*=newOpacity;}return[newColor,1];}else{return[newColor,newOpacity];}}function multiplyMatrix(){function multiply(a,b){return[a[0]*b[0]+a[2]*b[1],a[1]*b[0]+a[3]*b[1],a[0]*b[2]+a[2]*b[3],a[1]*b[2]+a[3]*b[3],a[0]*b[4]+a[2]*b[5]+a[4],a[1]*b[4]+a[3]*b[5]+a[5]];}var result=arguments[0];for(var i=1;i<arguments.length;i++){result=multiply(result,arguments[i]);}return result;}function transformPoint(p,m){return[m[0]*p[0]+m[2]*p[1]+m[4],m[1]*p[0]+m[3]*p[1]+m[5]];}function getGlobalMatrix(){var ctm=doc._ctm;for(var i=groupStack.length-1;i>=0;i--){ctm=multiplyMatrix(groupStack[i].savedMatrix,ctm);}return ctm;}function getPageBBox(){return new SvgShape().M(0,0).L(doc.page.width,0).L(doc.page.width,doc.page.height).L(0,doc.page.height).transform(inverseMatrix(getGlobalMatrix())).getBoundingBox();}function inverseMatrix(m){var dt=m[0]*m[3]-m[1]*m[2];return[m[3]/dt,-m[1]/dt,-m[2]/dt,m[0]/dt,(m[2]*m[5]-m[3]*m[4])/dt,(m[1]*m[4]-m[0]*m[5])/dt];}function validateMatrix(m){var m0=validateNumber(m[0]),m1=validateNumber(m[1]),m2=validateNumber(m[2]),m3=validateNumber(m[3]),m4=validateNumber(m[4]),m5=validateNumber(m[5]);if(isNotEqual(m0*m3-m1*m2,0)){return[m0,m1,m2,m3,m4,m5];}}function solveEquation(curve){var a=curve[2]||0,b=curve[1]||0,c=curve[0]||0;if(isEqual(a,0)&&isEqual(b,0)){return[];}else if(isEqual(a,0)){return[-c/b];}else{var d=b*b-4*a*c;if(isNotEqual(d,0)&&d>0){return[(-b+Math.sqrt(d))/(2*a),(-b-Math.sqrt(d))/(2*a)];}else if(isEqual(d,0)){return[-b/(2*a)];}else{return[];}}}function getCurveValue(t,curve){return(curve[0]||0)+(curve[1]||0)*t+(curve[2]||0)*t*t+(curve[3]||0)*t*t*t;}function isEqual(number,ref){return Math.abs(number-ref)<1e-10;}function isNotEqual(number,ref){return Math.abs(number-ref)>=1e-10;}function validateNumber(n){return n>-1e21&&n<1e21?Math.round(n*1e6)/1e6:0;}function isArrayLike(v){return typeof v==='object'&&v!==null&&typeof v.length==='number';}function parseTranform(v){var parser=new StringParser((v||'').trim()),result=[1,0,0,1,0,0],temp;while(temp=parser.match(/^([A-Za-z]+)\\s*[(]([^(]+)[)]/,true)){var func=temp[1],nums=[],parser2=new StringParser(temp[2].trim()),temp2=void 0;while(temp2=parser2.matchNumber()){nums.push(Number(temp2));parser2.matchSeparator();}if(func==='matrix'&&nums.length===6){result=multiplyMatrix(result,[nums[0],nums[1],nums[2],nums[3],nums[4],nums[5]]);}else if(func==='translate'&&nums.length===2){result=multiplyMatrix(result,[1,0,0,1,nums[0],nums[1]]);}else if(func==='translate'&&nums.length===1){result=multiplyMatrix(result,[1,0,0,1,nums[0],0]);}else if(func==='scale'&&nums.length===2){result=multiplyMatrix(result,[nums[0],0,0,nums[1],0,0]);}else if(func==='scale'&&nums.length===1){result=multiplyMatrix(result,[nums[0],0,0,nums[0],0,0]);}else if(func==='rotate'&&nums.length===3){var a=nums[0]*Math.PI/180;result=multiplyMatrix(result,[1,0,0,1,nums[1],nums[2]],[Math.cos(a),Math.sin(a),-Math.sin(a),Math.cos(a),0,0],[1,0,0,1,-nums[1],-nums[2]]);}else if(func==='rotate'&&nums.length===1){var _a=nums[0]*Math.PI/180;result=multiplyMatrix(result,[Math.cos(_a),Math.sin(_a),-Math.sin(_a),Math.cos(_a),0,0]);}else if(func==='skewX'&&nums.length===1){var _a2=nums[0]*Math.PI/180;result=multiplyMatrix(result,[1,0,Math.tan(_a2),1,0,0]);}else if(func==='skewY'&&nums.length===1){var _a3=nums[0]*Math.PI/180;result=multiplyMatrix(result,[1,Math.tan(_a3),0,1,0,0]);}else{return;}parser.matchSeparator();}if(parser.matchAll()){return;}return result;}function parseAspectRatio(aspectRatio,availWidth,availHeight,elemWidth,elemHeight,initAlign){var temp=(aspectRatio||'').trim().match(/^(none)$|^x(Min|Mid|Max)Y(Min|Mid|Max)(?:\\s+(meet|slice))?$/)||[],ratioType=temp[1]||temp[4]||'meet',xAlign=temp[2]||'Mid',yAlign=temp[3]||'Mid',scaleX=availWidth/elemWidth,scaleY=availHeight/elemHeight,dx={'Min':0,'Mid':0.5,'Max':1}[xAlign]-(initAlign||0),dy={'Min':0,'Mid':0.5,'Max':1}[yAlign]-(initAlign||0);if(ratioType==='slice'){scaleY=scaleX=Math.max(scaleX,scaleY);}else if(ratioType==='meet'){scaleY=scaleX=Math.min(scaleX,scaleY);}return[scaleX,0,0,scaleY,dx*(availWidth-elemWidth*scaleX),dy*(availHeight-elemHeight*scaleY)];}function parseStyleAttr(v){var result=Object.create(null);v=(v||'').trim().split(/;/);for(var i=0;i<v.length;i++){var key=(v[i].split(':')[0]||'').trim(),value=(v[i].split(':')[1]||'').trim();if(key){result[key]=value;}}if(result['marker']){if(!result['marker-start']){result['marker-start']=result['marker'];}if(!result['marker-mid']){result['marker-mid']=result['marker'];}if(!result['marker-end']){result['marker-end']=result['marker'];}}if(result['font']){var fontFamily=null,fontSize=null,fontStyle=\"normal\",fontWeight=\"normal\",fontVariant=\"normal\";var parts=result['font'].split(/\\s+/);for(var _i=0;_i<parts.length;_i++){switch(parts[_i]){case\"normal\":break;case\"italic\":case\"oblique\":fontStyle=parts[_i];break;case\"small-caps\":fontVariant=parts[_i];break;case\"bold\":case\"bolder\":case\"lighter\":case\"100\":case\"200\":case\"300\":case\"400\":case\"500\":case\"600\":case\"700\":case\"800\":case\"900\":fontWeight=parts[_i];break;default:if(!fontSize){fontSize=parts[_i].split('/')[0];}else{if(!fontFamily){fontFamily=parts[_i];}else{fontFamily+=' '+parts[_i];}}break;}}if(!result['font-style']){result['font-style']=fontStyle;}if(!result['font-variant']){result['font-variant']=fontVariant;}if(!result['font-weight']){result['font-weight']=fontWeight;}if(!result['font-size']){result['font-size']=fontSize;}if(!result['font-family']){result['font-family']=fontFamily;}}return result;}function parseSelector(v){var parts=v.split(/(?=[.#])/g),ids=[],classes=[],tags=[],temp;for(var i=0;i<parts.length;i++){if(temp=parts[i].match(/^[#]([_A-Za-z0-9-]+)$/)){ids.push(temp[1]);}else if(temp=parts[i].match(/^[.]([_A-Za-z0-9-]+)$/)){classes.push(temp[1]);}else if(temp=parts[i].match(/^([_A-Za-z0-9-]+)$/)){tags.push(temp[1]);}else if(parts[i]!=='*'){return;}}return{tags:tags,ids:ids,classes:classes,specificity:ids.length*10000+classes.length*100+tags.length};}function parseStyleSheet(v){var parser=new StringParser(v.trim()),rules=[],rule;while(rule=parser.match(/^\\s*([^\\{\\}]*?)\\s*\\{([^\\{\\}]*?)\\}/,true)){var selectors=rule[1].split(/\\s*,\\s*/g),css=parseStyleAttr(rule[2]);for(var i=0;i<selectors.length;i++){var selector=parseSelector(selectors[i]);if(selector){rules.push({selector:selector,css:css});}}}return rules;}function matchesSelector(elem,selector){if(elem.nodeType!==1){return false;}for(var i=0;i<selector.tags.length;i++){if(selector.tags[i]!==elem.nodeName){return false;}}for(var _i2=0;_i2<selector.ids.length;_i2++){if(selector.ids[_i2]!==elem.id){return false;}}for(var _i3=0;_i3<selector.classes.length;_i3++){if(elem.classList.indexOf(selector.classes[_i3])===-1){return false;}}return true;}function getStyle(elem){var result=Object.create(null);var specificities=Object.create(null);for(var i=0;i<styleRules.length;i++){var rule=styleRules[i];if(matchesSelector(elem,rule.selector)){for(var key in rule.css){if(!(specificities[key]>rule.selector.specificity)){result[key]=rule.css[key];specificities[key]=rule.selector.specificity;}}}}return result;}function combineArrays(array1,array2){return array1.concat(array2.slice(array1.length));}function getAscent(font,size){return Math.max(font.ascender,(font.bbox[3]||font.bbox.maxY)*(font.scale||1))*size/1000;}function getDescent(font,size){return Math.min(font.descender,(font.bbox[1]||font.bbox.minY)*(font.scale||1))*size/1000;}function getXHeight(font,size){return(font.xHeight||0.5*(font.ascender-font.descender))*size/1000;}function getBaseline(font,size,baseline,shift){var dy1,dy2;switch(baseline){case'middle':dy1=0.5*getXHeight(font,size);break;case'central':dy1=0.5*(getDescent(font,size)+getAscent(font,size));break;case'after-edge':case'text-after-edge':dy1=getDescent(font,size);break;case'alphabetic':case'auto':case'baseline':dy1=0;break;case'mathematical':dy1=0.5*getAscent(font,size);break;case'hanging':dy1=0.8*getAscent(font,size);break;case'before-edge':case'text-before-edge':dy1=getAscent(font,size);break;default:dy1=0;break;}switch(shift){case'baseline':dy2=0;break;case'super':dy2=0.6*size;break;case'sub':dy2=-0.6*size;break;default:dy2=shift;break;}return dy1-dy2;}function getTextPos(font,size,text){var encoded=font.encode(''+text),hex=encoded[0],pos=encoded[1],data=[];for(var i=0;i<hex.length;i++){var unicode=font.unicode?font.unicode[parseInt(hex[i],16)]:[text.charCodeAt(i)];data.push({glyph:hex[i],unicode:unicode,width:pos[i].advanceWidth*size/1000,xOffset:pos[i].xOffset*size/1000,yOffset:pos[i].yOffset*size/1000,xAdvance:pos[i].xAdvance*size/1000,yAdvance:pos[i].yAdvance*size/1000});}return data;}function createSVGElement(obj,inherits){switch(obj.nodeName){case'use':return new SvgElemUse(obj,inherits);case'symbol':return new SvgElemSymbol(obj,inherits);case'g':return new SvgElemGroup(obj,inherits);case'a':return new SvgElemLink(obj,inherits);case'svg':return new SvgElemSvg(obj,inherits);case'image':return new SVGElemImage(obj,inherits);case'rect':return new SvgElemRect(obj,inherits);case'circle':return new SvgElemCircle(obj,inherits);case'ellipse':return new SvgElemEllipse(obj,inherits);case'line':return new SvgElemLine(obj,inherits);case'polyline':return new SvgElemPolyline(obj,inherits);case'polygon':return new SvgElemPolygon(obj,inherits);case'path':return new SvgElemPath(obj,inherits);case'text':return new SvgElemText(obj,inherits);case'tspan':return new SvgElemTspan(obj,inherits);case'textPath':return new SvgElemTextPath(obj,inherits);case'#text':case'#cdata-section':return new SvgElemTextNode(obj,inherits);default:return new SvgElem(obj,inherits);}}var StringParser=function StringParser(str){this.match=function(exp,all){var temp=str.match(exp);if(!temp||temp.index!==0){return;}str=str.substring(temp[0].length);return all?temp:temp[0];};this.matchSeparator=function(){return this.match(/^(?:\\s*,\\s*|\\s*|)/);};this.matchSpace=function(){return this.match(/^(?:\\s*)/);};this.matchLengthUnit=function(){return this.match(/^(?:px|pt|cm|mm|in|pc|em|ex|%|)/);};this.matchNumber=function(){return this.match(/^(?:[-+]?(?:[0-9]+[.][0-9]+|[0-9]+[.]|[.][0-9]+|[0-9]+)(?:[eE][-+]?[0-9]+)?)/);};this.matchAll=function(){return this.match(/^[\\s\\S]+/);};};var BezierSegment=function BezierSegment(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y){var divisions=6*precision;var equationX=[p1x,-3*p1x+3*c1x,3*p1x-6*c1x+3*c2x,-p1x+3*c1x-3*c2x+p2x];var equationY=[p1y,-3*p1y+3*c1y,3*p1y-6*c1y+3*c2y,-p1y+3*c1y-3*c2y+p2y];var derivativeX=[-3*p1x+3*c1x,6*p1x-12*c1x+6*c2x,-3*p1x+9*c1x-9*c2x+3*p2x];var derivativeY=[-3*p1y+3*c1y,6*p1y-12*c1y+6*c2y,-3*p1y+9*c1y-9*c2y+3*p2y];var lengthMap=[0];for(var i=1;i<=divisions;i++){var t=(i-0.5)/divisions;var dx=getCurveValue(t,derivativeX)/divisions,dy=getCurveValue(t,derivativeY)/divisions,l=Math.sqrt(dx*dx+dy*dy);lengthMap[i]=lengthMap[i-1]+l;}this.totalLength=lengthMap[divisions];this.startPoint=[p1x,p1y,isEqual(p1x,c1x)&&isEqual(p1y,c1y)?Math.atan2(c2y-c1y,c2x-c1x):Math.atan2(c1y-p1y,c1x-p1x)];this.endPoint=[p2x,p2y,isEqual(c2x,p2x)&&isEqual(c2y,p2y)?Math.atan2(c2y-c1y,c2x-c1x):Math.atan2(p2y-c2y,p2x-c2x)];this.getBoundingBox=function(){var temp;var minX=getCurveValue(0,equationX),minY=getCurveValue(0,equationY),maxX=getCurveValue(1,equationX),maxY=getCurveValue(1,equationY);if(minX>maxX){temp=maxX;maxX=minX;minX=temp;}if(minY>maxY){temp=maxY;maxY=minY;minY=temp;}var rootsX=solveEquation(derivativeX);for(var _i4=0;_i4<rootsX.length;_i4++){if(rootsX[_i4]>=0&&rootsX[_i4]<=1){var _x=getCurveValue(rootsX[_i4],equationX);if(_x<minX){minX=_x;}if(_x>maxX){maxX=_x;}}}var rootsY=solveEquation(derivativeY);for(var _i5=0;_i5<rootsY.length;_i5++){if(rootsY[_i5]>=0&&rootsY[_i5]<=1){var _y=getCurveValue(rootsY[_i5],equationY);if(_y<minY){minY=_y;}if(_y>maxY){maxY=_y;}}}return[minX,minY,maxX,maxY];};this.getPointAtLength=function(l){if(isEqual(l,0)){return this.startPoint;}if(isEqual(l,this.totalLength)){return this.endPoint;}if(l<0||l>this.totalLength){return;}for(var _i6=1;_i6<=divisions;_i6++){var l1=lengthMap[_i6-1],l2=lengthMap[_i6];if(l1<=l&&l<=l2){var _t=(_i6-(l2-l)/(l2-l1))/divisions,_x2=getCurveValue(_t,equationX),_y2=getCurveValue(_t,equationY),_dx=getCurveValue(_t,derivativeX),_dy=getCurveValue(_t,derivativeY);return[_x2,_y2,Math.atan2(_dy,_dx)];}}};};var LineSegment=function LineSegment(p1x,p1y,p2x,p2y){this.totalLength=Math.sqrt((p2x-p1x)*(p2x-p1x)+(p2y-p1y)*(p2y-p1y));this.startPoint=[p1x,p1y,Math.atan2(p2y-p1y,p2x-p1x)];this.endPoint=[p2x,p2y,Math.atan2(p2y-p1y,p2x-p1x)];this.getBoundingBox=function(){return[Math.min(this.startPoint[0],this.endPoint[0]),Math.min(this.startPoint[1],this.endPoint[1]),Math.max(this.startPoint[0],this.endPoint[0]),Math.max(this.startPoint[1],this.endPoint[1])];};this.getPointAtLength=function(l){if(l>=0&&l<=this.totalLength){var r=l/this.totalLength||0,_x3=this.startPoint[0]+r*(this.endPoint[0]-this.startPoint[0]),_y3=this.startPoint[1]+r*(this.endPoint[1]-this.startPoint[1]);return[_x3,_y3,this.startPoint[2]];}};};var SvgShape=function SvgShape(){this.pathCommands=[];this.pathSegments=[];this.startPoint=null;this.endPoint=null;this.totalLength=0;var startX=0,startY=0,currX=0,currY=0,lastCom,lastCtrlX,lastCtrlY;this.move=function(x,y){startX=currX=x;startY=currY=y;return null;};this.line=function(x,y){var segment=new LineSegment(currX,currY,x,y);currX=x;currY=y;return segment;};this.curve=function(c1x,c1y,c2x,c2y,x,y){var segment=new BezierSegment(currX,currY,c1x,c1y,c2x,c2y,x,y);currX=x;currY=y;return segment;};this.close=function(){var segment=new LineSegment(currX,currY,startX,startY);currX=startX;currY=startY;return segment;};this.addCommand=function(data){this.pathCommands.push(data);var segment=this[data[0]].apply(this,data.slice(3));if(segment){segment.hasStart=data[1];segment.hasEnd=data[2];this.startPoint=this.startPoint||segment.startPoint;this.endPoint=segment.endPoint;this.pathSegments.push(segment);this.totalLength+=segment.totalLength;}};this.M=function(x,y){this.addCommand(['move',true,true,x,y]);lastCom='M';return this;};this.m=function(x,y){return this.M(currX+x,currY+y);};this.Z=this.z=function(){this.addCommand(['close',true,true]);lastCom='Z';return this;};this.L=function(x,y){this.addCommand(['line',true,true,x,y]);lastCom='L';return this;};this.l=function(x,y){return this.L(currX+x,currY+y);};this.H=function(x){return this.L(x,currY);};this.h=function(x){return this.L(currX+x,currY);};this.V=function(y){return this.L(currX,y);};this.v=function(y){return this.L(currX,currY+y);};this.C=function(c1x,c1y,c2x,c2y,x,y){this.addCommand(['curve',true,true,c1x,c1y,c2x,c2y,x,y]);lastCom='C';lastCtrlX=c2x;lastCtrlY=c2y;return this;};this.c=function(c1x,c1y,c2x,c2y,x,y){return this.C(currX+c1x,currY+c1y,currX+c2x,currY+c2y,currX+x,currY+y);};this.S=function(c1x,c1y,x,y){return this.C(currX+(lastCom==='C'?currX-lastCtrlX:0),currY+(lastCom==='C'?currY-lastCtrlY:0),c1x,c1y,x,y);};this.s=function(c1x,c1y,x,y){return this.C(currX+(lastCom==='C'?currX-lastCtrlX:0),currY+(lastCom==='C'?currY-lastCtrlY:0),currX+c1x,currY+c1y,currX+x,currY+y);};this.Q=function(cx,cy,x,y){var c1x=currX+2/3*(cx-currX),c1y=currY+2/3*(cy-currY),c2x=x+2/3*(cx-x),c2y=y+2/3*(cy-y);this.addCommand(['curve',true,true,c1x,c1y,c2x,c2y,x,y]);lastCom='Q';lastCtrlX=cx;lastCtrlY=cy;return this;};this.q=function(c1x,c1y,x,y){return this.Q(currX+c1x,currY+c1y,currX+x,currY+y);};this.T=function(x,y){return this.Q(currX+(lastCom==='Q'?currX-lastCtrlX:0),currY+(lastCom==='Q'?currY-lastCtrlY:0),x,y);};this.t=function(x,y){return this.Q(currX+(lastCom==='Q'?currX-lastCtrlX:0),currY+(lastCom==='Q'?currY-lastCtrlY:0),currX+x,currY+y);};this.A=function(rx,ry,fi,fa,fs,x,y){if(isEqual(rx,0)||isEqual(ry,0)){this.addCommand(['line',true,true,x,y]);}else{fi=fi*(Math.PI/180);rx=Math.abs(rx);ry=Math.abs(ry);fa=1*!!fa;fs=1*!!fs;var x1=Math.cos(fi)*(currX-x)/2+Math.sin(fi)*(currY-y)/2,y1=Math.cos(fi)*(currY-y)/2-Math.sin(fi)*(currX-x)/2,lambda=x1*x1/(rx*rx)+y1*y1/(ry*ry);if(lambda>1){rx*=Math.sqrt(lambda);ry*=Math.sqrt(lambda);}var r=Math.sqrt(Math.max(0,rx*rx*ry*ry-rx*rx*y1*y1-ry*ry*x1*x1)/(rx*rx*y1*y1+ry*ry*x1*x1)),x2=(fa===fs?-1:1)*r*rx*y1/ry,y2=(fa===fs?1:-1)*r*ry*x1/rx;var cx=Math.cos(fi)*x2-Math.sin(fi)*y2+(currX+x)/2,cy=Math.sin(fi)*x2+Math.cos(fi)*y2+(currY+y)/2,th1=Math.atan2((y1-y2)/ry,(x1-x2)/rx),th2=Math.atan2((-y1-y2)/ry,(-x1-x2)/rx);if(fs===0&&th2-th1>0){th2-=2*Math.PI;}else if(fs===1&&th2-th1<0){th2+=2*Math.PI;}var segms=Math.ceil(Math.abs(th2-th1)/(Math.PI/precision));for(var i=0;i<segms;i++){var th3=th1+i*(th2-th1)/segms,th4=th1+(i+1)*(th2-th1)/segms,t=4/3*Math.tan((th4-th3)/4);var c1x=cx+Math.cos(fi)*rx*(Math.cos(th3)-t*Math.sin(th3))-Math.sin(fi)*ry*(Math.sin(th3)+t*Math.cos(th3)),c1y=cy+Math.sin(fi)*rx*(Math.cos(th3)-t*Math.sin(th3))+Math.cos(fi)*ry*(Math.sin(th3)+t*Math.cos(th3)),c2x=cx+Math.cos(fi)*rx*(Math.cos(th4)+t*Math.sin(th4))-Math.sin(fi)*ry*(Math.sin(th4)-t*Math.cos(th4)),c2y=cy+Math.sin(fi)*rx*(Math.cos(th4)+t*Math.sin(th4))+Math.cos(fi)*ry*(Math.sin(th4)-t*Math.cos(th4)),endX=cx+Math.cos(fi)*rx*Math.cos(th4)-Math.sin(fi)*ry*Math.sin(th4),endY=cy+Math.sin(fi)*rx*Math.cos(th4)+Math.cos(fi)*ry*Math.sin(th4);this.addCommand(['curve',i===0,i===segms-1,c1x,c1y,c2x,c2y,endX,endY]);}}lastCom='A';return this;};this.a=function(rx,ry,fi,fa,fs,x,y){return this.A(rx,ry,fi,fa,fs,currX+x,currY+y);};this.path=function(d){var command,value,temp,parser=new StringParser((d||'').trim());while(command=parser.match(/^[astvzqmhlcASTVZQMHLC]/)){parser.matchSeparator();var values=[];while(value=PathFlags[command+values.length]?parser.match(/^[01]/):parser.matchNumber()){parser.matchSeparator();if(values.length===PathArguments[command]){this[command].apply(this,values);values=[];if(command==='M'){command='L';}else if(command==='m'){command='l';}}values.push(Number(value));}if(values.length===PathArguments[command]){this[command].apply(this,values);}else{warningCallback('SvgPath: command '+command+' with '+values.length+' numbers');return;}}if(temp=parser.matchAll()){warningCallback('SvgPath: unexpected string '+temp);}return this;};this.getBoundingBox=function(){var bbox=[Infinity,Infinity,-Infinity,-Infinity];function addBounds(bbox1){if(bbox1[0]<bbox[0]){bbox[0]=bbox1[0];}if(bbox1[2]>bbox[2]){bbox[2]=bbox1[2];}if(bbox1[1]<bbox[1]){bbox[1]=bbox1[1];}if(bbox1[3]>bbox[3]){bbox[3]=bbox1[3];}}for(var i=0;i<this.pathSegments.length;i++){addBounds(this.pathSegments[i].getBoundingBox());}if(bbox[0]===Infinity){bbox[0]=0;}if(bbox[1]===Infinity){bbox[1]=0;}if(bbox[2]===-Infinity){bbox[2]=0;}if(bbox[3]===-Infinity){bbox[3]=0;}return bbox;};this.getPointAtLength=function(l){if(l>=0&&l<=this.totalLength){var temp;for(var i=0;i<this.pathSegments.length;i++){if(temp=this.pathSegments[i].getPointAtLength(l)){return temp;}l-=this.pathSegments[i].totalLength;}return this.endPoint;}};this.transform=function(m){this.pathSegments=[];this.startPoint=null;this.endPoint=null;this.totalLength=0;for(var i=0;i<this.pathCommands.length;i++){var data=this.pathCommands.shift();for(var j=3;j<data.length;j+=2){var p=transformPoint([data[j],data[j+1]],m);data[j]=p[0];data[j+1]=p[1];}this.addCommand(data);}return this;};this.mergeShape=function(shape){for(var i=0;i<shape.pathCommands.length;i++){this.addCommand(shape.pathCommands[i].slice());}return this;};this.clone=function(){return new SvgShape().mergeShape(this);};this.insertInDocument=function(){for(var i=0;i<this.pathCommands.length;i++){var command=this.pathCommands[i][0],values=this.pathCommands[i].slice(3);switch(command){case'move':doc.moveTo(values[0],values[1]);break;case'line':doc.lineTo(values[0],values[1]);break;case'curve':doc.bezierCurveTo(values[0],values[1],values[2],values[3],values[4],values[5]);break;case'close':doc.closePath();break;}}};this.getSubPaths=function(){var subPaths=[],shape=new SvgShape();for(var i=0;i<this.pathCommands.length;i++){var data=this.pathCommands[i],command=this.pathCommands[i][0];if(command==='move'&&i!==0){subPaths.push(shape);shape=new SvgShape();}shape.addCommand(data);}subPaths.push(shape);return subPaths;};this.getMarkers=function(){var markers=[],subPaths=this.getSubPaths();for(var i=0;i<subPaths.length;i++){var subPath=subPaths[i],subPathMarkers=[];for(var j=0;j<subPath.pathSegments.length;j++){var segment=subPath.pathSegments[j];if(isNotEqual(segment.totalLength,0)||j===0||j===subPath.pathSegments.length-1){if(segment.hasStart){var startMarker=segment.getPointAtLength(0),prevEndMarker=subPathMarkers.pop();if(prevEndMarker){startMarker[2]=0.5*(prevEndMarker[2]+startMarker[2]);}subPathMarkers.push(startMarker);}if(segment.hasEnd){var endMarker=segment.getPointAtLength(segment.totalLength);subPathMarkers.push(endMarker);}}}markers=markers.concat(subPathMarkers);}return markers;};};var SvgElem=function SvgElem(obj,inherits){var styleCache=Object.create(null);var childrenCache=null;this.name=obj.nodeName;this.isOuterElement=obj===svg||!obj.parentNode;this.inherits=inherits||(!this.isOuterElement?createSVGElement(obj.parentNode,null):null);this.stack=this.inherits?this.inherits.stack.concat(obj):[obj];this.style=parseStyleAttr(typeof obj.getAttribute==='function'&&obj.getAttribute('style'));this.css=useCSS?getComputedStyle(obj):getStyle(obj);this.allowedChildren=[];this.attr=function(key){if(typeof obj.getAttribute==='function'){return obj.getAttribute(key);}};this.resolveUrl=function(value){var temp=(value||'').match(/^\\s*(?:url\\(\"(.*)#(.*)\"\\)|url\\('(.*)#(.*)'\\)|url\\((.*)#(.*)\\)|(.*)#(.*))\\s*$/)||[];var file=temp[1]||temp[3]||temp[5]||temp[7],id=temp[2]||temp[4]||temp[6]||temp[8];if(id){if(!file){var svgObj=svg.getElementById(id);if(svgObj){if(this.stack.indexOf(svgObj)===-1){return svgObj;}else{warningCallback('SVGtoPDF: loop of circular references for id \"'+id+'\"');return;}}}if(documentCallback){var svgs=documentCache[file];if(!svgs){svgs=documentCallback(file);if(!isArrayLike(svgs)){svgs=[svgs];}for(var i=0;i<svgs.length;i++){if(typeof svgs[i]==='string'){svgs[i]=parseXml(svgs[i]);}}documentCache[file]=svgs;}for(var _i7=0;_i7<svgs.length;_i7++){var _svgObj=svgs[_i7].getElementById(id);if(_svgObj){if(this.stack.indexOf(_svgObj)===-1){return _svgObj;}else{warningCallback('SVGtoPDF: loop of circular references for id \"'+file+'#'+id+'\"');return;}}}}}};this.computeUnits=function(value,unit,percent,isFontSize){if(unit==='%'){return parseFloat(value)/100*(isFontSize||percent!=null?percent:this.getViewport());}else if(unit==='ex'||unit==='em'){return value*{'em':1,'ex':0.5}[unit]*(isFontSize?percent:this.get('font-size'));}else{return value*{'':1,'px':1,'pt':96/72,'cm':96/2.54,'mm':96/25.4,'in':96,'pc':96/6}[unit];}};this.computeLength=function(value,percent,initial,isFontSize){var parser=new StringParser((value||'').trim()),temp1,temp2;if(typeof(temp1=parser.matchNumber())==='string'&&typeof(temp2=parser.matchLengthUnit())==='string'&&!parser.matchAll()){return this.computeUnits(temp1,temp2,percent,isFontSize);}return initial;};this.computeLengthList=function(value,percent,strict){var parser=new StringParser((value||'').trim()),result=[],temp1,temp2;while(typeof(temp1=parser.matchNumber())==='string'&&typeof(temp2=parser.matchLengthUnit())==='string'){result.push(this.computeUnits(temp1,temp2,percent));parser.matchSeparator();}if(strict&&parser.matchAll()){return;}return result;};this.getLength=function(key,percent,initial){return this.computeLength(this.attr(key),percent,initial);};this.getLengthList=function(key,percent){return this.computeLengthList(this.attr(key),percent);};this.getUrl=function(key){return this.resolveUrl(this.attr(key));};this.getNumberList=function(key){var parser=new StringParser((this.attr(key)||'').trim()),result=[],temp;while(temp=parser.matchNumber()){result.push(Number(temp));parser.matchSeparator();}result.error=parser.matchAll();return result;};this.getViewbox=function(key,initial){var viewBox=this.getNumberList(key);if(viewBox.length===4&&viewBox[2]>=0&&viewBox[3]>=0){return viewBox;}return initial;};this.getPercent=function(key,initial){var value=this.attr(key);var parser=new StringParser((value||'').trim()),temp1,temp2;var number=parser.matchNumber();if(!number){return initial;}if(parser.match('%')){number*=0.01;}if(parser.matchAll()){return initial;}return Math.max(0,Math.min(1,number));};this.chooseValue=function(args){for(var i=0;i<arguments.length;i++){if(arguments[i]!=null&&arguments[i]===arguments[i]){return arguments[i];}}return arguments[arguments.length-1];};this.get=function(key){if(styleCache[key]!==undefined){return styleCache[key];}var keyInfo=Properties[key]||{},value,result;for(var i=0;i<3;i++){switch(i){case 0:if(key!=='transform'){// the CSS transform behaves strangely\nvalue=this.css[keyInfo.css||key];}break;case 1:value=this.style[key];break;case 2:value=this.attr(key);break;}if(value==='inherit'){result=this.inherits?this.inherits.get(key):keyInfo.initial;if(result!=null){return styleCache[key]=result;}}if(keyInfo.values!=null){result=keyInfo.values[value];if(result!=null){return styleCache[key]=result;}}if(value!=null){var parsed=void 0;switch(key){case'font-size':result=this.computeLength(value,this.inherits?this.inherits.get(key):keyInfo.initial,undefined,true);break;case'baseline-shift':result=this.computeLength(value,this.get('font-size'));break;case'font-family':result=value||undefined;break;case'opacity':case'stroke-opacity':case'fill-opacity':case'stop-opacity':parsed=parseFloat(value);if(!isNaN(parsed)){result=Math.max(0,Math.min(1,parsed));}break;case'transform':result=parseTranform(value);break;case'stroke-dasharray':if(value==='none'){result=[];}else if(parsed=this.computeLengthList(value,this.getViewport(),true)){var sum=0,error=false;for(var j=0;j<parsed.length;j++){if(parsed[j]<0){error=true;}sum+=parsed[j];}if(!error){if(parsed.length%2===1){parsed=parsed.concat(parsed);}result=sum===0?[]:parsed;}}break;case'color':if(value==='none'||value==='transparent'){result='none';}else{result=parseColor(value);}break;case'fill':case'stroke':if(value==='none'||value==='transparent'){result='none';}else if(value==='currentColor'){result=this.get('color');}else if(parsed=parseColor(value)){return parsed;}else if(parsed=(value||'').split(' ')){var object=this.resolveUrl(parsed[0]),fallbackColor=parseColor(parsed[1]);if(object==null){result=fallbackColor;}else if(object.nodeName==='linearGradient'||object.nodeName==='radialGradient'){result=new SvgElemGradient(object,null,fallbackColor);}else if(object.nodeName==='pattern'){result=new SvgElemPattern(object,null,fallbackColor);}else{result=fallbackColor;}}break;case'stop-color':if(value==='none'||value==='transparent'){result='none';}else if(value==='currentColor'){result=this.get('color');}else{result=parseColor(value);}break;case'marker-start':case'marker-mid':case'marker-end':case'clip-path':case'mask':if(value==='none'){result='none';}else{result=this.resolveUrl(value);}break;case'stroke-width':parsed=this.computeLength(value,this.getViewport());if(parsed!=null&&parsed>=0){result=parsed;}break;case'stroke-miterlimit':parsed=parseFloat(value);if(parsed!=null&&parsed>=1){result=parsed;}break;case'word-spacing':case'letter-spacing':result=this.computeLength(value,this.getViewport());break;case'stroke-dashoffset':result=this.computeLength(value,this.getViewport());if(result!=null){if(result<0){// fix for crbug.com/660850\nvar dasharray=this.get('stroke-dasharray');for(var _j=0;_j<dasharray.length;_j++){result+=dasharray[_j];}}}break;}if(result!=null){return styleCache[key]=result;}}}return styleCache[key]=keyInfo.inherit&&this.inherits?this.inherits.get(key):keyInfo.initial;};this.getChildren=function(){if(childrenCache!=null){return childrenCache;}var children=[];for(var i=0;i<obj.childNodes.length;i++){var child=obj.childNodes[i];if(!child.error&&this.allowedChildren.indexOf(child.nodeName)!==-1){children.push(createSVGElement(child,this));}}return childrenCache=children;};this.getParentVWidth=function(){return this.inherits?this.inherits.getVWidth():viewportWidth;};this.getParentVHeight=function(){return this.inherits?this.inherits.getVHeight():viewportHeight;};this.getParentViewport=function(){return Math.sqrt(0.5*this.getParentVWidth()*this.getParentVWidth()+0.5*this.getParentVHeight()*this.getParentVHeight());};this.getVWidth=function(){return this.getParentVWidth();};this.getVHeight=function(){return this.getParentVHeight();};this.getViewport=function(){return Math.sqrt(0.5*this.getVWidth()*this.getVWidth()+0.5*this.getVHeight()*this.getVHeight());};this.getBoundingBox=function(){var shape=this.getBoundingShape();return shape.getBoundingBox();};};var SvgElemStylable=function SvgElemStylable(obj,inherits){SvgElem.call(this,obj,inherits);this.transform=function(){doc.transform.apply(doc,this.getTransformation());};this.clip=function(){if(this.get('clip-path')!=='none'){var clipPath=new SvgElemClipPath(this.get('clip-path'),null);clipPath.useMask(this.getBoundingBox());return true;}};this.mask=function(){if(this.get('mask')!=='none'){var mask=new SvgElemMask(this.get('mask'),null);mask.useMask(this.getBoundingBox());return true;}};this.getFill=function(isClip,isMask){var opacity=this.get('opacity'),fill=this.get('fill'),fillOpacity=this.get('fill-opacity');if(isClip){return DefaultColors.white;}if(fill!=='none'&&opacity&&fillOpacity){if(fill instanceof SvgElemGradient||fill instanceof SvgElemPattern){return fill.getPaint(this.getBoundingBox(),fillOpacity*opacity,isClip,isMask);}return opacityToColor(fill,fillOpacity*opacity,isMask);}};this.getStroke=function(isClip,isMask){var opacity=this.get('opacity'),stroke=this.get('stroke'),strokeOpacity=this.get('stroke-opacity');if(isClip||isEqual(this.get('stroke-width'),0)){return;}if(stroke!=='none'&&opacity&&strokeOpacity){if(stroke instanceof SvgElemGradient||stroke instanceof SvgElemPattern){return stroke.getPaint(this.getBoundingBox(),strokeOpacity*opacity,isClip,isMask);}return opacityToColor(stroke,strokeOpacity*opacity,isMask);}};};var SvgElemHasChildren=function SvgElemHasChildren(obj,inherits){SvgElemStylable.call(this,obj,inherits);this.allowedChildren=['use','g','a','svg','image','rect','circle','ellipse','line','polyline','polygon','path','text'];this.getBoundingShape=function(){var shape=new SvgShape(),children=this.getChildren();for(var i=0;i<children.length;i++){if(children[i].get('display')!=='none'){if(typeof children[i].getBoundingShape==='function'){var childShape=children[i].getBoundingShape().clone();if(typeof children[i].getTransformation==='function'){childShape.transform(children[i].getTransformation());}shape.mergeShape(childShape);}}}return shape;};this.drawChildren=function(isClip,isMask){var children=this.getChildren();for(var i=0;i<children.length;i++){if(children[i].get('display')!=='none'){if(typeof children[i].drawInDocument==='function'){children[i].drawInDocument(isClip,isMask);}}}};};var SvgElemContainer=function SvgElemContainer(obj,inherits){SvgElemHasChildren.call(this,obj,inherits);this.drawContent=function(isClip,isMask){this.transform();var clipped=this.clip(),masked=this.mask(),group;if((this.get('opacity')<1||clipped||masked)&&!isClip){group=docBeginGroup(getPageBBox());}this.drawChildren(isClip,isMask);if(group){docEndGroup(group);doc.fillOpacity(this.get('opacity'));docInsertGroup(group);}};};var SvgElemUse=function SvgElemUse(obj,inherits){SvgElemContainer.call(this,obj,inherits);var x=this.getLength('x',this.getVWidth(),0),y=this.getLength('y',this.getVHeight(),0),child=this.getUrl('href')||this.getUrl('xlink:href');if(child){child=createSVGElement(child,this);}this.getChildren=function(){return child?[child]:[];};this.drawInDocument=function(isClip,isMask){doc.save();this.drawContent(isClip,isMask);doc.restore();};this.getTransformation=function(){return multiplyMatrix(this.get('transform'),[1,0,0,1,x,y]);};};var SvgElemSymbol=function SvgElemSymbol(obj,inherits){SvgElemContainer.call(this,obj,inherits);var width=this.getLength('width',this.getParentVWidth(),this.getParentVWidth()),height=this.getLength('height',this.getParentVHeight(),this.getParentVHeight());if(inherits instanceof SvgElemUse){width=inherits.getLength('width',inherits.getParentVWidth(),width);height=inherits.getLength('height',inherits.getParentVHeight(),height);}var aspectRatio=(this.attr('preserveAspectRatio')||'').trim(),viewBox=this.getViewbox('viewBox',[0,0,width,height]);this.getVWidth=function(){return viewBox[2];};this.getVHeight=function(){return viewBox[3];};this.drawInDocument=function(isClip,isMask){doc.save();this.drawContent(isClip,isMask);doc.restore();};this.getTransformation=function(){return multiplyMatrix(parseAspectRatio(aspectRatio,width,height,viewBox[2],viewBox[3]),[1,0,0,1,-viewBox[0],-viewBox[1]]);};};var SvgElemGroup=function SvgElemGroup(obj,inherits){SvgElemContainer.call(this,obj,inherits);this.drawInDocument=function(isClip,isMask){doc.save();if(this.link&&!isClip&&!isMask){this.addLink();}this.drawContent(isClip,isMask);doc.restore();};this.getTransformation=function(){return this.get('transform');};};var SvgElemLink=function SvgElemLink(obj,inherits){if(inherits&&inherits.isText){SvgElemTspan.call(this,obj,inherits);this.allowedChildren=['textPath','tspan','#text','#cdata-section','a'];}else{SvgElemGroup.call(this,obj,inherits);}this.link=this.attr('href')||this.attr('xlink:href');this.addLink=function(){if(this.link.match(/^(?:[a-z][a-z0-9+.-]*:|\\/\\/)?/i)&&this.getChildren().length){var bbox=this.getBoundingShape().transform(getGlobalMatrix()).getBoundingBox();docInsertLink(bbox[0],bbox[1],bbox[2],bbox[3],this.link);}};};var SvgElemSvg=function SvgElemSvg(obj,inherits){SvgElemContainer.call(this,obj,inherits);var width=this.getLength('width',this.getParentVWidth(),this.getParentVWidth()),height=this.getLength('height',this.getParentVHeight(),this.getParentVHeight()),x=this.getLength('x',this.getParentVWidth(),0),y=this.getLength('y',this.getParentVHeight(),0);if(inherits instanceof SvgElemUse){width=inherits.getLength('width',inherits.getParentVWidth(),width);height=inherits.getLength('height',inherits.getParentVHeight(),height);}var aspectRatio=this.attr('preserveAspectRatio'),viewBox=this.getViewbox('viewBox',[0,0,width,height]);if(this.isOuterElement&&preserveAspectRatio){x=y=0;width=viewportWidth;height=viewportHeight;aspectRatio=preserveAspectRatio;}this.getVWidth=function(){return viewBox[2];};this.getVHeight=function(){return viewBox[3];};this.drawInDocument=function(isClip,isMask){doc.save();if(this.get('overflow')==='hidden'){new SvgShape().M(x,y).L(x+width,y).L(x+width,y+height).L(x,y+height).Z().transform(this.get('transform')).insertInDocument();doc.clip();}this.drawContent(isClip,isMask);doc.restore();};this.getTransformation=function(){return multiplyMatrix(this.get('transform'),[1,0,0,1,x,y],parseAspectRatio(aspectRatio,width,height,viewBox[2],viewBox[3]),[1,0,0,1,-viewBox[0],-viewBox[1]]);};};var SVGElemImage=function SVGElemImage(obj,inherits){SvgElemStylable.call(this,obj,inherits);var link=imageCallback(this.attr('href')||this.attr('xlink:href')||''),x=this.getLength('x',this.getVWidth(),0),y=this.getLength('y',this.getVHeight(),0),width=this.getLength('width',this.getVWidth(),'auto'),height=this.getLength('height',this.getVHeight(),'auto'),image;try{image=doc.openImage(link);}catch(e){warningCallback('SVGElemImage: failed to open image \"'+link+'\" in PDFKit');}if(image){if(width==='auto'&&height!=='auto'){width=height*image.width/image.height;}else if(height==='auto'&&width!=='auto'){height=width*image.height/image.width;}else if(width==='auto'&&height==='auto'){width=image.width;height=image.height;}}if(width==='auto'||width<0){width=0;}if(height==='auto'||height<0){height=0;}this.getTransformation=function(){return this.get('transform');};this.getBoundingShape=function(){return new SvgShape().M(x,y).L(x+width,y).M(x+width,y+height).L(x,y+height);};this.drawInDocument=function(isClip,isMask){if(this.get('visibility')==='hidden'||!image){return;}doc.save();this.transform();if(this.get('overflow')==='hidden'){doc.rect(x,y,width,height).clip();}this.clip();this.mask();doc.translate(x,y);doc.transform.apply(doc,parseAspectRatio(this.attr('preserveAspectRatio'),width,height,image?image.width:width,image?image.height:height));if(!isClip){doc.fillOpacity(this.get('opacity'));doc.image(image,0,0);}else{doc.rect(0,0,image.width,image.height);docFillColor(DefaultColors.white).fill();}doc.restore();};};var SvgElemPattern=function SvgElemPattern(obj,inherits,fallback){SvgElemHasChildren.call(this,obj,inherits);this.ref=function(){var ref=this.getUrl('href')||this.getUrl('xlink:href');if(ref&&ref.nodeName===obj.nodeName){return new SvgElemPattern(ref,inherits,fallback);}}.call(this);var _attr=this.attr;this.attr=function(key){var attr=_attr.call(this,key);if(attr!=null||key==='href'||key==='xlink:href'){return attr;}return this.ref?this.ref.attr(key):null;};var _getChildren=this.getChildren;this.getChildren=function(){var children=_getChildren.call(this);if(children.length>0){return children;}return this.ref?this.ref.getChildren():[];};this.getPaint=function(bBox,gOpacity,isClip,isMask){var bBoxUnitsPattern=this.attr('patternUnits')!=='userSpaceOnUse',bBoxUnitsContent=this.attr('patternContentUnits')==='objectBoundingBox',x=this.getLength('x',bBoxUnitsPattern?1:this.getParentVWidth(),0),y=this.getLength('y',bBoxUnitsPattern?1:this.getParentVHeight(),0),width=this.getLength('width',bBoxUnitsPattern?1:this.getParentVWidth(),0),height=this.getLength('height',bBoxUnitsPattern?1:this.getParentVHeight(),0);if(bBoxUnitsContent&&!bBoxUnitsPattern){// Use the same units for pattern & pattern content\nx=(x-bBox[0])/(bBox[2]-bBox[0])||0;y=(y-bBox[1])/(bBox[3]-bBox[1])||0;width=width/(bBox[2]-bBox[0])||0;height=height/(bBox[3]-bBox[1])||0;}else if(!bBoxUnitsContent&&bBoxUnitsPattern){x=bBox[0]+x*(bBox[2]-bBox[0]);y=bBox[1]+y*(bBox[3]-bBox[1]);width=width*(bBox[2]-bBox[0]);height=height*(bBox[3]-bBox[1]);}var viewBox=this.getViewbox('viewBox',[0,0,width,height]),aspectRatio=(this.attr('preserveAspectRatio')||'').trim(),aspectRatioMatrix=multiplyMatrix(parseAspectRatio(aspectRatio,width,height,viewBox[2],viewBox[3],0),[1,0,0,1,-viewBox[0],-viewBox[1]]),matrix=parseTranform(this.attr('patternTransform'));if(bBoxUnitsContent){matrix=multiplyMatrix([bBox[2]-bBox[0],0,0,bBox[3]-bBox[1],bBox[0],bBox[1]],matrix);}matrix=multiplyMatrix(matrix,[1,0,0,1,x,y]);if((matrix=validateMatrix(matrix))&&(aspectRatioMatrix=validateMatrix(aspectRatioMatrix))&&(width=validateNumber(width))&&(height=validateNumber(height))){var group=docBeginGroup([0,0,width,height]);doc.transform.apply(doc,aspectRatioMatrix);this.drawChildren(isClip,isMask);docEndGroup(group);return[docCreatePattern(group,width,height,matrix),gOpacity];}else{return fallback?[fallback[0],fallback[1]*gOpacity]:undefined;}};this.getVWidth=function(){var bBoxUnitsPattern=this.attr('patternUnits')!=='userSpaceOnUse',width=this.getLength('width',bBoxUnitsPattern?1:this.getParentVWidth(),0);return this.getViewbox('viewBox',[0,0,width,0])[2];};this.getVHeight=function(){var bBoxUnitsPattern=this.attr('patternUnits')!=='userSpaceOnUse',height=this.getLength('height',bBoxUnitsPattern?1:this.getParentVHeight(),0);return this.getViewbox('viewBox',[0,0,0,height])[3];};};var SvgElemGradient=function SvgElemGradient(obj,inherits,fallback){SvgElem.call(this,obj,inherits);this.allowedChildren=['stop'];this.ref=function(){var ref=this.getUrl('href')||this.getUrl('xlink:href');if(ref&&ref.nodeName===obj.nodeName){return new SvgElemGradient(ref,inherits,fallback);}}.call(this);var _attr=this.attr;this.attr=function(key){var attr=_attr.call(this,key);if(attr!=null||key==='href'||key==='xlink:href'){return attr;}return this.ref?this.ref.attr(key):null;};var _getChildren=this.getChildren;this.getChildren=function(){var children=_getChildren.call(this);if(children.length>0){return children;}return this.ref?this.ref.getChildren():[];};this.getPaint=function(bBox,gOpacity,isClip,isMask){var children=this.getChildren();if(children.length===0){return;}if(children.length===1){var child=children[0],stopColor=child.get('stop-color');if(stopColor==='none'){return;}return opacityToColor(stopColor,child.get('stop-opacity')*gOpacity,isMask);}var bBoxUnits=this.attr('gradientUnits')!=='userSpaceOnUse',matrix=parseTranform(this.attr('gradientTransform')),spread=this.attr('spreadMethod'),grad,x1,x2,y1,y2,r2,nAfter=0,nBefore=0,nTotal=1;if(bBoxUnits){matrix=multiplyMatrix([bBox[2]-bBox[0],0,0,bBox[3]-bBox[1],bBox[0],bBox[1]],matrix);}if(matrix=validateMatrix(matrix)){if(this.name==='linearGradient'){x1=this.getLength('x1',bBoxUnits?1:this.getVWidth(),0);x2=this.getLength('x2',bBoxUnits?1:this.getVWidth(),bBoxUnits?1:this.getVWidth());y1=this.getLength('y1',bBoxUnits?1:this.getVHeight(),0);y2=this.getLength('y2',bBoxUnits?1:this.getVHeight(),0);}else{x2=this.getLength('cx',bBoxUnits?1:this.getVWidth(),bBoxUnits?0.5:0.5*this.getVWidth());y2=this.getLength('cy',bBoxUnits?1:this.getVHeight(),bBoxUnits?0.5:0.5*this.getVHeight());r2=this.getLength('r',bBoxUnits?1:this.getViewport(),bBoxUnits?0.5:0.5*this.getViewport());x1=this.getLength('fx',bBoxUnits?1:this.getVWidth(),x2);y1=this.getLength('fy',bBoxUnits?1:this.getVHeight(),y2);if(r2<0){warningCallback('SvgElemGradient: negative r value');}var d=Math.sqrt(Math.pow(x2-x1,2)+Math.pow(y2-y1,2)),multiplier=1;if(d>r2){// according to specification\nmultiplier=r2/d;x1=x2+(x1-x2)*multiplier;y1=y2+(y1-y2)*multiplier;}r2=Math.max(r2,d*multiplier*(1+1e-6));// fix for edge-case gradients see issue #84\n}if(spread==='reflect'||spread==='repeat'){var inv=inverseMatrix(matrix),corner1=transformPoint([bBox[0],bBox[1]],inv),corner2=transformPoint([bBox[2],bBox[1]],inv),corner3=transformPoint([bBox[2],bBox[3]],inv),corner4=transformPoint([bBox[0],bBox[3]],inv);if(this.name==='linearGradient'){// See file 'gradient-repeat-maths.png'\nnAfter=Math.max((corner1[0]-x2)*(x2-x1)+(corner1[1]-y2)*(y2-y1),(corner2[0]-x2)*(x2-x1)+(corner2[1]-y2)*(y2-y1),(corner3[0]-x2)*(x2-x1)+(corner3[1]-y2)*(y2-y1),(corner4[0]-x2)*(x2-x1)+(corner4[1]-y2)*(y2-y1))/(Math.pow(x2-x1,2)+Math.pow(y2-y1,2));nBefore=Math.max((corner1[0]-x1)*(x1-x2)+(corner1[1]-y1)*(y1-y2),(corner2[0]-x1)*(x1-x2)+(corner2[1]-y1)*(y1-y2),(corner3[0]-x1)*(x1-x2)+(corner3[1]-y1)*(y1-y2),(corner4[0]-x1)*(x1-x2)+(corner4[1]-y1)*(y1-y2))/(Math.pow(x2-x1,2)+Math.pow(y2-y1,2));}else{nAfter=Math.sqrt(Math.max(Math.pow(corner1[0]-x2,2)+Math.pow(corner1[1]-y2,2),Math.pow(corner2[0]-x2,2)+Math.pow(corner2[1]-y2,2),Math.pow(corner3[0]-x2,2)+Math.pow(corner3[1]-y2,2),Math.pow(corner4[0]-x2,2)+Math.pow(corner4[1]-y2,2)))/r2-1;}nAfter=Math.ceil(nAfter+0.5);// Add a little more because the stroke can extend outside of the bounding box\nnBefore=Math.ceil(nBefore+0.5);nTotal=nBefore+1+nAfter;// How many times the gradient needs to be repeated to fill the object bounding box\n}if(this.name==='linearGradient'){grad=doc.linearGradient(x1-nBefore*(x2-x1),y1-nBefore*(y2-y1),x2+nAfter*(x2-x1),y2+nAfter*(y2-y1));}else{grad=doc.radialGradient(x1,y1,0,x2,y2,r2+nAfter*r2);}for(var n=0;n<nTotal;n++){var offset=0,inOrder=spread!=='reflect'||(n-nBefore)%2===0;for(var i=0;i<children.length;i++){var _child=children[inOrder?i:children.length-1-i],_stopColor=_child.get('stop-color');if(_stopColor==='none'){_stopColor=DefaultColors.transparent;}_stopColor=opacityToColor(_stopColor,_child.get('stop-opacity')*gOpacity,isMask);offset=Math.max(offset,inOrder?_child.getPercent('offset',0):1-_child.getPercent('offset',0));if(i===0&&_stopColor[0].length===4){grad._colorSpace='DeviceCMYK';}// Fix until PR #763 is merged into PDFKit\nif(i===0&&offset>0){grad.stop((n+0)/nTotal,_stopColor[0],_stopColor[1]);}grad.stop((n+offset)/(nAfter+nBefore+1),_stopColor[0],_stopColor[1]);if(i===children.length-1&&offset<1){grad.stop((n+1)/nTotal,_stopColor[0],_stopColor[1]);}}}grad.setTransform.apply(grad,matrix);return[grad,1];}else{return fallback?[fallback[0],fallback[1]*gOpacity]:undefined;}};};var SvgElemBasicShape=function SvgElemBasicShape(obj,inherits){SvgElemStylable.call(this,obj,inherits);this.dashScale=1;this.getBoundingShape=function(){return this.shape;};this.getTransformation=function(){return this.get('transform');};this.drawInDocument=function(isClip,isMask){if(this.get('visibility')==='hidden'||!this.shape){return;}doc.save();this.transform();this.clip();if(!isClip){var masked=this.mask(),group;if(masked){group=docBeginGroup(getPageBBox());}var subPaths=this.shape.getSubPaths(),fill=this.getFill(isClip,isMask),stroke=this.getStroke(isClip,isMask),lineWidth=this.get('stroke-width'),lineCap=this.get('stroke-linecap');if(fill||stroke){if(fill){docFillColor(fill);}if(stroke){for(var j=0;j<subPaths.length;j++){if(isEqual(subPaths[j].totalLength,0)){if((lineCap==='square'||lineCap==='round')&&lineWidth>0){if(subPaths[j].startPoint&&subPaths[j].startPoint.length>1){var _x4=subPaths[j].startPoint[0],_y4=subPaths[j].startPoint[1];docFillColor(stroke);if(lineCap==='square'){doc.rect(_x4-0.5*lineWidth,_y4-0.5*lineWidth,lineWidth,lineWidth);}else if(lineCap==='round'){doc.circle(_x4,_y4,0.5*lineWidth);}doc.fill();}}}}var dashArray=this.get('stroke-dasharray'),dashOffset=this.get('stroke-dashoffset');if(isNotEqual(this.dashScale,1)){for(var _j2=0;_j2<dashArray.length;_j2++){dashArray[_j2]*=this.dashScale;}dashOffset*=this.dashScale;}docStrokeColor(stroke);doc.lineWidth(lineWidth).miterLimit(this.get('stroke-miterlimit')).lineJoin(this.get('stroke-linejoin')).lineCap(lineCap).dash(dashArray,{phase:dashOffset});}for(var _j3=0;_j3<subPaths.length;_j3++){if(subPaths[_j3].totalLength>0){subPaths[_j3].insertInDocument();}}if(fill&&stroke){doc.fillAndStroke(this.get('fill-rule'));}else if(fill){doc.fill(this.get('fill-rule'));}else if(stroke){doc.stroke();}}var markerStart=this.get('marker-start'),markerMid=this.get('marker-mid'),markerEnd=this.get('marker-end');if(markerStart!=='none'||markerMid!=='none'||markerEnd!=='none'){var markersPos=this.shape.getMarkers();if(markerStart!=='none'){var marker=new SvgElemMarker(markerStart,null);marker.drawMarker(false,isMask,markersPos[0],lineWidth);}if(markerMid!=='none'){for(var i=1;i<markersPos.length-1;i++){var _marker=new SvgElemMarker(markerMid,null);_marker.drawMarker(false,isMask,markersPos[i],lineWidth);}}if(markerEnd!=='none'){var _marker2=new SvgElemMarker(markerEnd,null);_marker2.drawMarker(false,isMask,markersPos[markersPos.length-1],lineWidth);}}if(group){docEndGroup(group);docInsertGroup(group);}}else{this.shape.insertInDocument();docFillColor(DefaultColors.white);doc.fill(this.get('clip-rule'));}doc.restore();};};var SvgElemRect=function SvgElemRect(obj,inherits){SvgElemBasicShape.call(this,obj,inherits);var x=this.getLength('x',this.getVWidth(),0),y=this.getLength('y',this.getVHeight(),0),w=this.getLength('width',this.getVWidth(),0),h=this.getLength('height',this.getVHeight(),0),rx=this.getLength('rx',this.getVWidth()),ry=this.getLength('ry',this.getVHeight());if(rx===undefined&&ry===undefined){rx=ry=0;}else if(rx===undefined&&ry!==undefined){rx=ry;}else if(rx!==undefined&&ry===undefined){ry=rx;}if(w>0&&h>0){if(rx&&ry){rx=Math.min(rx,0.5*w);ry=Math.min(ry,0.5*h);this.shape=new SvgShape().M(x+rx,y).L(x+w-rx,y).A(rx,ry,0,0,1,x+w,y+ry).L(x+w,y+h-ry).A(rx,ry,0,0,1,x+w-rx,y+h).L(x+rx,y+h).A(rx,ry,0,0,1,x,y+h-ry).L(x,y+ry).A(rx,ry,0,0,1,x+rx,y).Z();}else{this.shape=new SvgShape().M(x,y).L(x+w,y).L(x+w,y+h).L(x,y+h).Z();}}else{this.shape=new SvgShape();}};var SvgElemCircle=function SvgElemCircle(obj,inherits){SvgElemBasicShape.call(this,obj,inherits);var cx=this.getLength('cx',this.getVWidth(),0),cy=this.getLength('cy',this.getVHeight(),0),r=this.getLength('r',this.getViewport(),0);if(r>0){this.shape=new SvgShape().M(cx+r,cy).A(r,r,0,0,1,cx-r,cy).A(r,r,0,0,1,cx+r,cy).Z();}else{this.shape=new SvgShape();}};var SvgElemEllipse=function SvgElemEllipse(obj,inherits){SvgElemBasicShape.call(this,obj,inherits);var cx=this.getLength('cx',this.getVWidth(),0),cy=this.getLength('cy',this.getVHeight(),0),rx=this.getLength('rx',this.getVWidth(),0),ry=this.getLength('ry',this.getVHeight(),0);if(rx>0&&ry>0){this.shape=new SvgShape().M(cx+rx,cy).A(rx,ry,0,0,1,cx-rx,cy).A(rx,ry,0,0,1,cx+rx,cy).Z();}else{this.shape=new SvgShape();}};var SvgElemLine=function SvgElemLine(obj,inherits){SvgElemBasicShape.call(this,obj,inherits);var x1=this.getLength('x1',this.getVWidth(),0),y1=this.getLength('y1',this.getVHeight(),0),x2=this.getLength('x2',this.getVWidth(),0),y2=this.getLength('y2',this.getVHeight(),0);this.shape=new SvgShape().M(x1,y1).L(x2,y2);};var SvgElemPolyline=function SvgElemPolyline(obj,inherits){SvgElemBasicShape.call(this,obj,inherits);var points=this.getNumberList('points');this.shape=new SvgShape();for(var i=0;i<points.length-1;i+=2){if(i===0){this.shape.M(points[i],points[i+1]);}else{this.shape.L(points[i],points[i+1]);}}if(points.error){warningCallback('SvgElemPolygon: unexpected string '+points.error);}if(points.length%2===1){warningCallback('SvgElemPolyline: uneven number of coordinates');}};var SvgElemPolygon=function SvgElemPolygon(obj,inherits){SvgElemBasicShape.call(this,obj,inherits);var points=this.getNumberList('points');this.shape=new SvgShape();for(var i=0;i<points.length-1;i+=2){if(i===0){this.shape.M(points[i],points[i+1]);}else{this.shape.L(points[i],points[i+1]);}}this.shape.Z();if(points.error){warningCallback('SvgElemPolygon: unexpected string '+points.error);}if(points.length%2===1){warningCallback('SvgElemPolygon: uneven number of coordinates');}};var SvgElemPath=function SvgElemPath(obj,inherits){SvgElemBasicShape.call(this,obj,inherits);this.shape=new SvgShape().path(this.attr('d'));var pathLength=this.getLength('pathLength',this.getViewport());this.pathLength=pathLength>0?pathLength:undefined;this.dashScale=this.pathLength!==undefined?this.shape.totalLength/this.pathLength:1;};var SvgElemMarker=function SvgElemMarker(obj,inherits){SvgElemHasChildren.call(this,obj,inherits);var width=this.getLength('markerWidth',this.getParentVWidth(),3),height=this.getLength('markerHeight',this.getParentVHeight(),3),viewBox=this.getViewbox('viewBox',[0,0,width,height]);this.getVWidth=function(){return viewBox[2];};this.getVHeight=function(){return viewBox[3];};this.drawMarker=function(isClip,isMask,posArray,strokeWidth){doc.save();var orient=this.attr('orient'),units=this.attr('markerUnits'),rotate=orient==='auto'?posArray[2]:(parseFloat(orient)||0)*Math.PI/180,scale=units==='userSpaceOnUse'?1:strokeWidth;doc.transform(Math.cos(rotate)*scale,Math.sin(rotate)*scale,-Math.sin(rotate)*scale,Math.cos(rotate)*scale,posArray[0],posArray[1]);var refX=this.getLength('refX',this.getVWidth(),0),refY=this.getLength('refY',this.getVHeight(),0),aspectRatioMatrix=parseAspectRatio(this.attr('preserveAspectRatio'),width,height,viewBox[2],viewBox[3],0.5);if(this.get('overflow')==='hidden'){doc.rect(aspectRatioMatrix[0]*(viewBox[0]+viewBox[2]/2-refX)-width/2,aspectRatioMatrix[3]*(viewBox[1]+viewBox[3]/2-refY)-height/2,width,height).clip();}doc.transform.apply(doc,aspectRatioMatrix);doc.translate(-refX,-refY);var group;if(this.get('opacity')<1&&!isClip){group=docBeginGroup(getPageBBox());}this.drawChildren(isClip,isMask);if(group){docEndGroup(group);doc.fillOpacity(this.get('opacity'));docInsertGroup(group);}doc.restore();};};var SvgElemClipPath=function SvgElemClipPath(obj,inherits){SvgElemHasChildren.call(this,obj,inherits);this.useMask=function(bBox){var group=docBeginGroup(getPageBBox());doc.save();if(this.attr('clipPathUnits')==='objectBoundingBox'){doc.transform(bBox[2]-bBox[0],0,0,bBox[3]-bBox[1],bBox[0],bBox[1]);}this.clip();this.drawChildren(true,false);doc.restore();docEndGroup(group);docApplyMask(group,true);};};var SvgElemMask=function SvgElemMask(obj,inherits){SvgElemHasChildren.call(this,obj,inherits);this.useMask=function(bBox){var group=docBeginGroup(getPageBBox());doc.save();var x,y,w,h;if(this.attr('maskUnits')==='userSpaceOnUse'){x=this.getLength('x',this.getVWidth(),-0.1*(bBox[2]-bBox[0])+bBox[0]);y=this.getLength('y',this.getVHeight(),-0.1*(bBox[3]-bBox[1])+bBox[1]);w=this.getLength('width',this.getVWidth(),1.2*(bBox[2]-bBox[0]));h=this.getLength('height',this.getVHeight(),1.2*(bBox[3]-bBox[1]));}else{x=this.getLength('x',this.getVWidth(),-0.1)*(bBox[2]-bBox[0])+bBox[0];y=this.getLength('y',this.getVHeight(),-0.1)*(bBox[3]-bBox[1])+bBox[1];w=this.getLength('width',this.getVWidth(),1.2)*(bBox[2]-bBox[0]);h=this.getLength('height',this.getVHeight(),1.2)*(bBox[3]-bBox[1]);}doc.rect(x,y,w,h).clip();if(this.attr('maskContentUnits')==='objectBoundingBox'){doc.transform(bBox[2]-bBox[0],0,0,bBox[3]-bBox[1],bBox[0],bBox[1]);}this.clip();this.drawChildren(false,true);doc.restore();docEndGroup(group);docApplyMask(group,true);};};var SvgElemTextContainer=function SvgElemTextContainer(obj,inherits){SvgElemStylable.call(this,obj,inherits);this.allowedChildren=['tspan','#text','#cdata-section','a'];this.isText=true;this.getBoundingShape=function(){var shape=new SvgShape();for(var i=0;i<this._pos.length;i++){var pos=this._pos[i];if(!pos.hidden){var dx0=pos.ascent*Math.sin(pos.rotate),dy0=-pos.ascent*Math.cos(pos.rotate),dx1=pos.descent*Math.sin(pos.rotate),dy1=-pos.descent*Math.cos(pos.rotate),dx2=pos.width*Math.cos(pos.rotate),dy2=pos.width*Math.sin(pos.rotate);shape.M(pos.x+dx0,pos.y+dy0).L(pos.x+dx0+dx2,pos.y+dy0+dy2).M(pos.x+dx1+dx2,pos.y+dy1+dy2).L(pos.x+dx1,pos.y+dy1);}}return shape;};this.drawTextInDocument=function(isClip,isMask){if(this.link&&!isClip&&!isMask){this.addLink();}if(this.get('text-decoration')==='underline'){this.decorate(0.05*this._font.size,-0.075*this._font.size,isClip,isMask);}if(this.get('text-decoration')==='overline'){this.decorate(0.05*this._font.size,getAscent(this._font.font,this._font.size)+0.075*this._font.size,isClip,isMask);}var fill=this.getFill(isClip,isMask),stroke=this.getStroke(isClip,isMask),strokeWidth=this.get('stroke-width');if(this._font.fauxBold){if(!stroke){stroke=fill;strokeWidth=this._font.size*0.03;}else{strokeWidth+=this._font.size*0.03;}}var children=this.getChildren();for(var i=0;i<children.length;i++){var childElem=children[i];switch(childElem.name){case'tspan':case'textPath':case'a':if(childElem.get('display')!=='none'){childElem.drawTextInDocument(isClip,isMask);}break;case'#text':case'#cdata-section':if(this.get('visibility')==='hidden'){continue;}if(fill||stroke||isClip){if(fill){docFillColor(fill);}if(stroke&&strokeWidth){docStrokeColor(stroke);doc.lineWidth(strokeWidth).miterLimit(this.get('stroke-miterlimit')).lineJoin(this.get('stroke-linejoin')).lineCap(this.get('stroke-linecap')).dash(this.get('stroke-dasharray'),{phase:this.get('stroke-dashoffset')});}docBeginText(this._font.font,this._font.size);docSetTextMode(!!fill,!!stroke);for(var j=0,pos=childElem._pos;j<pos.length;j++){if(!pos[j].hidden&&isNotEqual(pos[j].width,0)){var cos=Math.cos(pos[j].rotate),sin=Math.sin(pos[j].rotate),skew=this._font.fauxItalic?-0.25:0;docSetTextMatrix(cos*pos[j].scale,sin*pos[j].scale,cos*skew-sin,sin*skew+cos,pos[j].x,pos[j].y);docWriteGlyph(pos[j].glyph);}}docEndText();}break;}}if(this.get('text-decoration')==='line-through'){this.decorate(0.05*this._font.size,0.5*(getAscent(this._font.font,this._font.size)+getDescent(this._font.font,this._font.size)),isClip,isMask);}};this.decorate=function(lineWidth,linePosition,isClip,isMask){var fill=this.getFill(isClip,isMask),stroke=this.getStroke(isClip,isMask);if(fill){docFillColor(fill);}if(stroke){docStrokeColor(stroke);doc.lineWidth(this.get('stroke-width')).miterLimit(this.get('stroke-miterlimit')).lineJoin(this.get('stroke-linejoin')).lineCap(this.get('stroke-linecap')).dash(this.get('stroke-dasharray'),{phase:this.get('stroke-dashoffset')});}for(var j=0,pos=this._pos;j<pos.length;j++){if(!pos[j].hidden&&isNotEqual(pos[j].width,0)){var dx0=(linePosition+lineWidth/2)*Math.sin(pos[j].rotate),dy0=-(linePosition+lineWidth/2)*Math.cos(pos[j].rotate),dx1=(linePosition-lineWidth/2)*Math.sin(pos[j].rotate),dy1=-(linePosition-lineWidth/2)*Math.cos(pos[j].rotate),dx2=pos[j].width*Math.cos(pos[j].rotate),dy2=pos[j].width*Math.sin(pos[j].rotate);new SvgShape().M(pos[j].x+dx0,pos[j].y+dy0).L(pos[j].x+dx0+dx2,pos[j].y+dy0+dy2).L(pos[j].x+dx1+dx2,pos[j].y+dy1+dy2).L(pos[j].x+dx1,pos[j].y+dy1).Z().insertInDocument();if(fill&&stroke){doc.fillAndStroke();}else if(fill){doc.fill();}else if(stroke){doc.stroke();}}}};};var SvgElemTextNode=function SvgElemTextNode(obj,inherits){this.name=obj.nodeName;this.textContent=obj.nodeValue;};var SvgElemTspan=function SvgElemTspan(obj,inherits){SvgElemTextContainer.call(this,obj,inherits);};var SvgElemTextPath=function SvgElemTextPath(obj,inherits){SvgElemTextContainer.call(this,obj,inherits);var pathObject,pathLength,temp;if((temp=this.attr('path'))&&temp.trim()!==''){var _pathLength=this.getLength('pathLength',this.getViewport());this.pathObject=new SvgShape().path(temp);this.pathLength=_pathLength>0?_pathLength:this.pathObject.totalLength;this.pathScale=this.pathObject.totalLength/this.pathLength;}else if((temp=this.getUrl('href')||this.getUrl('xlink:href'))&&temp.nodeName==='path'){var pathElem=new SvgElemPath(temp,this);this.pathObject=pathElem.shape.clone().transform(pathElem.get('transform'));this.pathLength=this.chooseValue(pathElem.pathLength,this.pathObject.totalLength);this.pathScale=this.pathObject.totalLength/this.pathLength;}};var SvgElemText=function SvgElemText(obj,inherits){SvgElemTextContainer.call(this,obj,inherits);this.allowedChildren=['textPath','tspan','#text','#cdata-section','a'];(function(textParentElem){var processedText='',remainingText=obj.textContent,textPaths=[],currentChunk=[],currentAnchor,currentDirection,currentX=0,currentY=0;function doAnchoring(){if(currentChunk.length){var last=currentChunk[currentChunk.length-1];var first=currentChunk[0];var width=last.x+last.width-first.x;var anchordx={'startltr':0,'middleltr':0.5,'endltr':1,'startrtl':1,'middlertl':0.5,'endrtl':0}[currentAnchor+currentDirection]*width||0;for(var i=0;i<currentChunk.length;i++){currentChunk[i].x-=anchordx;}}currentChunk=[];}function adjustLength(pos,length,spacingAndGlyphs){var firstChar=pos[0],lastChar=pos[pos.length-1],startX=firstChar.x,endX=lastChar.x+lastChar.width;if(spacingAndGlyphs){var textScale=length/(endX-startX);if(textScale>0&&textScale<Infinity){for(var j=0;j<pos.length;j++){pos[j].x=startX+textScale*(pos[j].x-startX);pos[j].scale*=textScale;pos[j].width*=textScale;}}}else{if(pos.length>=2){var spaceDiff=(length-(endX-startX))/(pos.length-1);for(var _j4=0;_j4<pos.length;_j4++){pos[_j4].x+=_j4*spaceDiff;}}}currentX+=length-(endX-startX);}function recursive(currentElem,parentElem){currentElem._x=combineArrays(currentElem.getLengthList('x',currentElem.getVWidth()),parentElem?parentElem._x.slice(parentElem._pos.length):[]);currentElem._y=combineArrays(currentElem.getLengthList('y',currentElem.getVHeight()),parentElem?parentElem._y.slice(parentElem._pos.length):[]);currentElem._dx=combineArrays(currentElem.getLengthList('dx',currentElem.getVWidth()),parentElem?parentElem._dx.slice(parentElem._pos.length):[]);currentElem._dy=combineArrays(currentElem.getLengthList('dy',currentElem.getVHeight()),parentElem?parentElem._dy.slice(parentElem._pos.length):[]);currentElem._rot=combineArrays(currentElem.getNumberList('rotate'),parentElem?parentElem._rot.slice(parentElem._pos.length):[]);currentElem._defRot=currentElem.chooseValue(currentElem._rot[currentElem._rot.length-1],parentElem&&parentElem._defRot,0);if(currentElem.name==='textPath'){currentElem._y=[];}var fontOptions={fauxItalic:false,fauxBold:false},fontNameorLink=fontCallback(currentElem.get('font-family'),currentElem.get('font-weight')==='bold',currentElem.get('font-style')==='italic',fontOptions);try{doc.font(fontNameorLink);}catch(e){warningCallback('SVGElemText: failed to open font \"'+fontNameorLink+'\" in PDFKit');}currentElem._pos=[];currentElem._index=0;currentElem._font={font:doc._font,size:currentElem.get('font-size'),fauxItalic:fontOptions.fauxItalic,fauxBold:fontOptions.fauxBold};var textLength=currentElem.getLength('textLength',currentElem.getVWidth(),undefined),spacingAndGlyphs=currentElem.attr('lengthAdjust')==='spacingAndGlyphs',wordSpacing=currentElem.get('word-spacing'),letterSpacing=currentElem.get('letter-spacing'),textAnchor=currentElem.get('text-anchor'),textDirection=currentElem.get('direction'),baseline=getBaseline(currentElem._font.font,currentElem._font.size,currentElem.get('alignment-baseline')||currentElem.get('dominant-baseline'),currentElem.get('baseline-shift'));if(currentElem.name==='textPath'){doAnchoring();currentX=currentY=0;}var children=currentElem.getChildren();for(var i=0;i<children.length;i++){var childElem=children[i];switch(childElem.name){case'tspan':case'textPath':case'a':recursive(childElem,currentElem);break;case'#text':case'#cdata-section':var rawText=childElem.textContent,renderedText=rawText,words=void 0;childElem._font=currentElem._font;childElem._pos=[];remainingText=remainingText.substring(rawText.length);if(currentElem.get('xml:space')==='preserve'){renderedText=renderedText.replace(/[\\s]/g,' ');}else{renderedText=renderedText.replace(/[\\s]+/g,' ');if(processedText.match(/[\\s]$|^$/)){renderedText=renderedText.replace(/^[\\s]/,'');}if(remainingText.match(/^[\\s]*$/)){renderedText=renderedText.replace(/[\\s]$/,'');}}processedText+=rawText;if(wordSpacing===0){words=[renderedText];}else{words=renderedText.split(/(\\s)/);}for(var w=0;w<words.length;w++){var pos=getTextPos(currentElem._font.font,currentElem._font.size,words[w]);for(var j=0;j<pos.length;j++){var index=currentElem._index,xAttr=currentElem._x[index],yAttr=currentElem._y[index],dxAttr=currentElem._dx[index],dyAttr=currentElem._dy[index],rotAttr=currentElem._rot[index],continuous=!(w===0&&j===0);if(xAttr!==undefined){continuous=false;doAnchoring();currentX=xAttr;}if(yAttr!==undefined){continuous=false;doAnchoring();currentY=yAttr;}if(dxAttr!==undefined){continuous=false;currentX+=dxAttr;}if(dyAttr!==undefined){continuous=false;currentY+=dyAttr;}if(rotAttr!==undefined||currentElem._defRot!==0){continuous=false;}var position={glyph:pos[j].glyph,rotate:Math.PI/180*currentElem.chooseValue(rotAttr,currentElem._defRot),x:currentX+pos[j].xOffset,y:currentY+baseline+pos[j].yOffset,width:pos[j].width,ascent:getAscent(currentElem._font.font,currentElem._font.size),descent:getDescent(currentElem._font.font,currentElem._font.size),scale:1,hidden:false,continuous:continuous};currentChunk.push(position);childElem._pos.push(position);currentElem._pos.push(position);currentElem._index+=pos[j].unicode.length;if(currentChunk.length===1){currentAnchor=textAnchor;currentDirection=textDirection;}currentX+=pos[j].xAdvance+letterSpacing;currentY+=pos[j].yAdvance;}if(words[w]===' '){currentX+=wordSpacing;}}break;default:remainingText=remainingText.substring(childElem.textContent.length);}}if(textLength&&currentElem._pos.length){adjustLength(currentElem._pos,textLength,spacingAndGlyphs);}if(currentElem.name==='textPath'||currentElem.name==='text'){doAnchoring();}if(currentElem.name==='textPath'){textPaths.push(currentElem);var pathObject=currentElem.pathObject;if(pathObject){currentX=pathObject.endPoint[0];currentY=pathObject.endPoint[1];}}if(parentElem){parentElem._pos=parentElem._pos.concat(currentElem._pos);parentElem._index+=currentElem._index;}}function textOnPath(currentElem){var pathObject=currentElem.pathObject,pathLength=currentElem.pathLength,pathScale=currentElem.pathScale;if(pathObject){var textOffset=currentElem.getLength('startOffset',pathLength,0);for(var j=0;j<currentElem._pos.length;j++){var charMidX=textOffset+currentElem._pos[j].x+0.5*currentElem._pos[j].width;if(charMidX>pathLength||charMidX<0){currentElem._pos[j].hidden=true;}else{var pointOnPath=pathObject.getPointAtLength(charMidX*pathScale);if(isNotEqual(pathScale,1)){currentElem._pos[j].scale*=pathScale;currentElem._pos[j].width*=pathScale;}currentElem._pos[j].x=pointOnPath[0]-0.5*currentElem._pos[j].width*Math.cos(pointOnPath[2])-currentElem._pos[j].y*Math.sin(pointOnPath[2]);currentElem._pos[j].y=pointOnPath[1]-0.5*currentElem._pos[j].width*Math.sin(pointOnPath[2])+currentElem._pos[j].y*Math.cos(pointOnPath[2]);currentElem._pos[j].rotate=pointOnPath[2]+currentElem._pos[j].rotate;currentElem._pos[j].continuous=false;}}}else{for(var _j5=0;_j5<currentElem._pos.length;_j5++){currentElem._pos[_j5].hidden=true;}}}recursive(textParentElem,null);for(var i=0;i<textPaths.length;i++){textOnPath(textPaths[i]);}})(this);this.getTransformation=function(){return this.get('transform');};this.drawInDocument=function(isClip,isMask){doc.save();this.transform();this.clip();var masked=this.mask(),group;if(masked){group=docBeginGroup(getPageBBox());}this.drawTextInDocument(isClip,isMask);if(group){docEndGroup(group);docInsertGroup(group);}doc.restore();};};options=options||{};var pxToPt=options.assumePt?1:72/96,// 1px = 72/96pt, but only if assumePt is false\nviewportWidth=(options.width||doc.page.width)/pxToPt,viewportHeight=(options.height||doc.page.height)/pxToPt,preserveAspectRatio=options.preserveAspectRatio||null,// default to null so that the attr can override if not passed\nuseCSS=options.useCSS&&typeof SVGElement!=='undefined'&&svg instanceof SVGElement&&typeof getComputedStyle==='function',warningCallback=options.warningCallback,fontCallback=options.fontCallback,imageCallback=options.imageCallback,colorCallback=options.colorCallback,documentCallback=options.documentCallback,precision=Math.ceil(Math.max(1,options.precision))||3,groupStack=[],documentCache={},links=[],styleRules=[];if(typeof warningCallback!=='function'){warningCallback=function warningCallback(str){if(typeof console!==undefined&&typeof console.warn==='function'){console.warn(str);}};}if(typeof fontCallback!=='function'){fontCallback=function fontCallback(family,bold,italic,fontOptions){// Check if the font is already registered in the document\nif(bold&&italic){if(doc._registeredFonts.hasOwnProperty(family+'-BoldItalic')){return family+'-BoldItalic';}else if(doc._registeredFonts.hasOwnProperty(family+'-Italic')){fontOptions.fauxBold=true;return family+'-Italic';}else if(doc._registeredFonts.hasOwnProperty(family+'-Bold')){fontOptions.fauxItalic=true;return family+'-Bold';}else if(doc._registeredFonts.hasOwnProperty(family)){fontOptions.fauxBold=true;fontOptions.fauxItalic=true;return family;}}if(bold&&!italic){if(doc._registeredFonts.hasOwnProperty(family+'-Bold')){return family+'-Bold';}else if(doc._registeredFonts.hasOwnProperty(family)){fontOptions.fauxBold=true;return family;}}if(!bold&&italic){if(doc._registeredFonts.hasOwnProperty(family+'-Italic')){return family+'-Italic';}else if(doc._registeredFonts.hasOwnProperty(family)){fontOptions.fauxItalic=true;return family;}}if(!bold&&!italic){if(doc._registeredFonts.hasOwnProperty(family)){return family;}}// Use standard fonts as fallback\nif(family.match(/(?:^|,)\\s*serif\\s*$/)){if(bold&&italic){return'Times-BoldItalic';}if(bold&&!italic){return'Times-Bold';}if(!bold&&italic){return'Times-Italic';}if(!bold&&!italic){return'Times-Roman';}}else if(family.match(/(?:^|,)\\s*monospace\\s*$/)){if(bold&&italic){return'Courier-BoldOblique';}if(bold&&!italic){return'Courier-Bold';}if(!bold&&italic){return'Courier-Oblique';}if(!bold&&!italic){return'Courier';}}else if(family.match(/(?:^|,)\\s*sans-serif\\s*$/)||true){if(bold&&italic){return'Helvetica-BoldOblique';}if(bold&&!italic){return'Helvetica-Bold';}if(!bold&&italic){return'Helvetica-Oblique';}if(!bold&&!italic){return'Helvetica';}}};}if(typeof imageCallback!=='function'){imageCallback=function imageCallback(link){return link.replace(/\\s+/g,'');};}if(typeof colorCallback!=='function'){colorCallback=null;}else{for(var color in DefaultColors){var newColor=colorCallback(DefaultColors[color]);DefaultColors[color][0]=newColor[0];DefaultColors[color][1]=newColor[1];}}if(typeof documentCallback!=='function'){documentCallback=null;}if(typeof svg==='string'){svg=parseXml(svg);}if(svg){var styles=svg.getElementsByTagName('style');for(var i=0;i<styles.length;i++){styleRules=styleRules.concat(parseStyleSheet(styles[i].textContent));}var elem=createSVGElement(svg,null);if(typeof elem.drawInDocument==='function'){if(options.useCSS&&!useCSS){warningCallback('SVGtoPDF: useCSS option can only be used for SVG *elements* in compatible browsers');}var savedFillColor=doc._fillColor;doc.save().translate(x||0,y||0).scale(pxToPt);elem.drawInDocument();for(var _i8=0;_i8<links.length;_i8++){doc.page.annotations.push(links[_i8]);}doc.restore();doc._fillColor=savedFillColor;}else{warningCallback('SVGtoPDF: this element can\\'t be rendered directly: '+svg.nodeName);}}else{warningCallback('SVGtoPDF: the input does not look like a valid SVG');}};if( true&&module&&typeof module.exports!=='undefined'){module.exports=SVGtoPDF;}/* WEBPACK VAR INJECTION */}).call(this,__nested_webpack_require_4730842__(457)(module));/***/},/* 457 */ /***/function(module,exports){module.exports=function(module){if(!module.webpackPolyfill){module.deprecate=function(){};module.paths=[];// module.parent = undefined by default\nif(!module.children)module.children=[];Object.defineProperty(module,\"loaded\",{enumerable:true,get:function(){return module.l;}});Object.defineProperty(module,\"id\",{enumerable:true,get:function(){return module.i;}});module.webpackPolyfill=1;}return module;};/***/}/******/]));});this.pdfMake=this.pdfMake||{};this.pdfMake.vfs={\"Roboto-Italic.ttf\":\" \",\"Roboto-Medium.ttf\":\" \",\"Roboto-MediumItalic.ttf\":\" \",\"Roboto-Regular.ttf\":\" \"};// ----------- datatables.export.js END -------------\n\n//# sourceURL=webpack://ic_portal/./assets/dist/js/reducedjs/combined.js?");

/***/ }),

/***/ "./node_modules/moment/locale/af.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/af.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Afrikaans [af]\n//! author : Werner Mollentze : https://github.com/wernerm\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var af = moment.defineLocale('af', {\n        months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),\n        weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(\n            '_'\n        ),\n        weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),\n        weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),\n        meridiemParse: /vm|nm/i,\n        isPM: function (input) {\n            return /^nm$/i.test(input);\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 12) {\n                return isLower ? 'vm' : 'VM';\n            } else {\n                return isLower ? 'nm' : 'NM';\n            }\n        },\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Vandag om] LT',\n            nextDay: '[Môre om] LT',\n            nextWeek: 'dddd [om] LT',\n            lastDay: '[Gister om] LT',\n            lastWeek: '[Laas] dddd [om] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'oor %s',\n            past: '%s gelede',\n            s: \"'n paar sekondes\",\n            ss: '%d sekondes',\n            m: \"'n minuut\",\n            mm: '%d minute',\n            h: \"'n uur\",\n            hh: '%d ure',\n            d: \"'n dag\",\n            dd: '%d dae',\n            M: \"'n maand\",\n            MM: '%d maande',\n            y: \"'n jaar\",\n            yy: '%d jaar',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n        ordinal: function (number) {\n            return (\n                number +\n                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n            ); // Thanks to Joris Röling : https://github.com/jjupiter\n        },\n        week: {\n            dow: 1, // Maandag is die eerste dag van die week.\n            doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar.\n        },\n    });\n\n    return af;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/af.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ar-dz.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/ar-dz.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Arabic (Algeria) [ar-dz]\n//! author : Amine Roukh: https://github.com/Amine27\n//! author : Abdel Said: https://github.com/abdelsaid\n//! author : Ahmed Elkhatib\n//! author : forabi https://github.com/forabi\n//! author : Noureddine LOUAHEDJ : https://github.com/noureddinem\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var pluralForm = function (n) {\n            return n === 0\n                ? 0\n                : n === 1\n                ? 1\n                : n === 2\n                ? 2\n                : n % 100 >= 3 && n % 100 <= 10\n                ? 3\n                : n % 100 >= 11\n                ? 4\n                : 5;\n        },\n        plurals = {\n            s: [\n                'أقل من ثانية',\n                'ثانية واحدة',\n                ['ثانيتان', 'ثانيتين'],\n                '%d ثوان',\n                '%d ثانية',\n                '%d ثانية',\n            ],\n            m: [\n                'أقل من دقيقة',\n                'دقيقة واحدة',\n                ['دقيقتان', 'دقيقتين'],\n                '%d دقائق',\n                '%d دقيقة',\n                '%d دقيقة',\n            ],\n            h: [\n                'أقل من ساعة',\n                'ساعة واحدة',\n                ['ساعتان', 'ساعتين'],\n                '%d ساعات',\n                '%d ساعة',\n                '%d ساعة',\n            ],\n            d: [\n                'أقل من يوم',\n                'يوم واحد',\n                ['يومان', 'يومين'],\n                '%d أيام',\n                '%d يومًا',\n                '%d يوم',\n            ],\n            M: [\n                'أقل من شهر',\n                'شهر واحد',\n                ['شهران', 'شهرين'],\n                '%d أشهر',\n                '%d شهرا',\n                '%d شهر',\n            ],\n            y: [\n                'أقل من عام',\n                'عام واحد',\n                ['عامان', 'عامين'],\n                '%d أعوام',\n                '%d عامًا',\n                '%d عام',\n            ],\n        },\n        pluralize = function (u) {\n            return function (number, withoutSuffix, string, isFuture) {\n                var f = pluralForm(number),\n                    str = plurals[u][pluralForm(number)];\n                if (f === 2) {\n                    str = str[withoutSuffix ? 0 : 1];\n                }\n                return str.replace(/%d/i, number);\n            };\n        },\n        months = [\n            'جانفي',\n            'فيفري',\n            'مارس',\n            'أفريل',\n            'ماي',\n            'جوان',\n            'جويلية',\n            'أوت',\n            'سبتمبر',\n            'أكتوبر',\n            'نوفمبر',\n            'ديسمبر',\n        ];\n\n    var arDz = moment.defineLocale('ar-dz', {\n        months: months,\n        monthsShort: months,\n        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'D/\\u200FM/\\u200FYYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /ص|م/,\n        isPM: function (input) {\n            return 'م' === input;\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ص';\n            } else {\n                return 'م';\n            }\n        },\n        calendar: {\n            sameDay: '[اليوم عند الساعة] LT',\n            nextDay: '[غدًا عند الساعة] LT',\n            nextWeek: 'dddd [عند الساعة] LT',\n            lastDay: '[أمس عند الساعة] LT',\n            lastWeek: 'dddd [عند الساعة] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'بعد %s',\n            past: 'منذ %s',\n            s: pluralize('s'),\n            ss: pluralize('s'),\n            m: pluralize('m'),\n            mm: pluralize('m'),\n            h: pluralize('h'),\n            hh: pluralize('h'),\n            d: pluralize('d'),\n            dd: pluralize('d'),\n            M: pluralize('M'),\n            MM: pluralize('M'),\n            y: pluralize('y'),\n            yy: pluralize('y'),\n        },\n        postformat: function (string) {\n            return string.replace(/,/g, '،');\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return arDz;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ar-dz.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ar-kw.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/ar-kw.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Arabic (Kuwait) [ar-kw]\n//! author : Nusret Parlak: https://github.com/nusretparlak\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var arKw = moment.defineLocale('ar-kw', {\n        months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n            '_'\n        ),\n        monthsShort:\n            'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n                '_'\n            ),\n        weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n        weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[اليوم على الساعة] LT',\n            nextDay: '[غدا على الساعة] LT',\n            nextWeek: 'dddd [على الساعة] LT',\n            lastDay: '[أمس على الساعة] LT',\n            lastWeek: 'dddd [على الساعة] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'في %s',\n            past: 'منذ %s',\n            s: 'ثوان',\n            ss: '%d ثانية',\n            m: 'دقيقة',\n            mm: '%d دقائق',\n            h: 'ساعة',\n            hh: '%d ساعات',\n            d: 'يوم',\n            dd: '%d أيام',\n            M: 'شهر',\n            MM: '%d أشهر',\n            y: 'سنة',\n            yy: '%d سنوات',\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return arKw;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ar-kw.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ar-ly.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/ar-ly.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Arabic (Libya) [ar-ly]\n//! author : Ali Hmer: https://github.com/kikoanis\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '1',\n            2: '2',\n            3: '3',\n            4: '4',\n            5: '5',\n            6: '6',\n            7: '7',\n            8: '8',\n            9: '9',\n            0: '0',\n        },\n        pluralForm = function (n) {\n            return n === 0\n                ? 0\n                : n === 1\n                ? 1\n                : n === 2\n                ? 2\n                : n % 100 >= 3 && n % 100 <= 10\n                ? 3\n                : n % 100 >= 11\n                ? 4\n                : 5;\n        },\n        plurals = {\n            s: [\n                'أقل من ثانية',\n                'ثانية واحدة',\n                ['ثانيتان', 'ثانيتين'],\n                '%d ثوان',\n                '%d ثانية',\n                '%d ثانية',\n            ],\n            m: [\n                'أقل من دقيقة',\n                'دقيقة واحدة',\n                ['دقيقتان', 'دقيقتين'],\n                '%d دقائق',\n                '%d دقيقة',\n                '%d دقيقة',\n            ],\n            h: [\n                'أقل من ساعة',\n                'ساعة واحدة',\n                ['ساعتان', 'ساعتين'],\n                '%d ساعات',\n                '%d ساعة',\n                '%d ساعة',\n            ],\n            d: [\n                'أقل من يوم',\n                'يوم واحد',\n                ['يومان', 'يومين'],\n                '%d أيام',\n                '%d يومًا',\n                '%d يوم',\n            ],\n            M: [\n                'أقل من شهر',\n                'شهر واحد',\n                ['شهران', 'شهرين'],\n                '%d أشهر',\n                '%d شهرا',\n                '%d شهر',\n            ],\n            y: [\n                'أقل من عام',\n                'عام واحد',\n                ['عامان', 'عامين'],\n                '%d أعوام',\n                '%d عامًا',\n                '%d عام',\n            ],\n        },\n        pluralize = function (u) {\n            return function (number, withoutSuffix, string, isFuture) {\n                var f = pluralForm(number),\n                    str = plurals[u][pluralForm(number)];\n                if (f === 2) {\n                    str = str[withoutSuffix ? 0 : 1];\n                }\n                return str.replace(/%d/i, number);\n            };\n        },\n        months = [\n            'يناير',\n            'فبراير',\n            'مارس',\n            'أبريل',\n            'مايو',\n            'يونيو',\n            'يوليو',\n            'أغسطس',\n            'سبتمبر',\n            'أكتوبر',\n            'نوفمبر',\n            'ديسمبر',\n        ];\n\n    var arLy = moment.defineLocale('ar-ly', {\n        months: months,\n        monthsShort: months,\n        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'D/\\u200FM/\\u200FYYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /ص|م/,\n        isPM: function (input) {\n            return 'م' === input;\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ص';\n            } else {\n                return 'م';\n            }\n        },\n        calendar: {\n            sameDay: '[اليوم عند الساعة] LT',\n            nextDay: '[غدًا عند الساعة] LT',\n            nextWeek: 'dddd [عند الساعة] LT',\n            lastDay: '[أمس عند الساعة] LT',\n            lastWeek: 'dddd [عند الساعة] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'بعد %s',\n            past: 'منذ %s',\n            s: pluralize('s'),\n            ss: pluralize('s'),\n            m: pluralize('m'),\n            mm: pluralize('m'),\n            h: pluralize('h'),\n            hh: pluralize('h'),\n            d: pluralize('d'),\n            dd: pluralize('d'),\n            M: pluralize('M'),\n            MM: pluralize('M'),\n            y: pluralize('y'),\n            yy: pluralize('y'),\n        },\n        preparse: function (string) {\n            return string.replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string\n                .replace(/\\d/g, function (match) {\n                    return symbolMap[match];\n                })\n                .replace(/,/g, '،');\n        },\n        week: {\n            dow: 6, // Saturday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return arLy;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ar-ly.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ar-ma.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/ar-ma.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Arabic (Morocco) [ar-ma]\n//! author : ElFadili Yassine : https://github.com/ElFadiliY\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var arMa = moment.defineLocale('ar-ma', {\n        months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n            '_'\n        ),\n        monthsShort:\n            'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n                '_'\n            ),\n        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n        weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[اليوم على الساعة] LT',\n            nextDay: '[غدا على الساعة] LT',\n            nextWeek: 'dddd [على الساعة] LT',\n            lastDay: '[أمس على الساعة] LT',\n            lastWeek: 'dddd [على الساعة] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'في %s',\n            past: 'منذ %s',\n            s: 'ثوان',\n            ss: '%d ثانية',\n            m: 'دقيقة',\n            mm: '%d دقائق',\n            h: 'ساعة',\n            hh: '%d ساعات',\n            d: 'يوم',\n            dd: '%d أيام',\n            M: 'شهر',\n            MM: '%d أشهر',\n            y: 'سنة',\n            yy: '%d سنوات',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return arMa;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ar-ma.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ar-sa.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/ar-sa.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Arabic (Saudi Arabia) [ar-sa]\n//! author : Suhail Alkowaileet : https://github.com/xsoh\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '١',\n            2: '٢',\n            3: '٣',\n            4: '٤',\n            5: '٥',\n            6: '٦',\n            7: '٧',\n            8: '٨',\n            9: '٩',\n            0: '٠',\n        },\n        numberMap = {\n            '١': '1',\n            '٢': '2',\n            '٣': '3',\n            '٤': '4',\n            '٥': '5',\n            '٦': '6',\n            '٧': '7',\n            '٨': '8',\n            '٩': '9',\n            '٠': '0',\n        };\n\n    var arSa = moment.defineLocale('ar-sa', {\n        months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n            '_'\n        ),\n        monthsShort:\n            'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n                '_'\n            ),\n        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /ص|م/,\n        isPM: function (input) {\n            return 'م' === input;\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ص';\n            } else {\n                return 'م';\n            }\n        },\n        calendar: {\n            sameDay: '[اليوم على الساعة] LT',\n            nextDay: '[غدا على الساعة] LT',\n            nextWeek: 'dddd [على الساعة] LT',\n            lastDay: '[أمس على الساعة] LT',\n            lastWeek: 'dddd [على الساعة] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'في %s',\n            past: 'منذ %s',\n            s: 'ثوان',\n            ss: '%d ثانية',\n            m: 'دقيقة',\n            mm: '%d دقائق',\n            h: 'ساعة',\n            hh: '%d ساعات',\n            d: 'يوم',\n            dd: '%d أيام',\n            M: 'شهر',\n            MM: '%d أشهر',\n            y: 'سنة',\n            yy: '%d سنوات',\n        },\n        preparse: function (string) {\n            return string\n                .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n                    return numberMap[match];\n                })\n                .replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string\n                .replace(/\\d/g, function (match) {\n                    return symbolMap[match];\n                })\n                .replace(/,/g, '،');\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return arSa;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ar-sa.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ar-tn.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/ar-tn.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale  :  Arabic (Tunisia) [ar-tn]\n//! author : Nader Toukabri : https://github.com/naderio\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var arTn = moment.defineLocale('ar-tn', {\n        months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n            '_'\n        ),\n        monthsShort:\n            'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n                '_'\n            ),\n        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[اليوم على الساعة] LT',\n            nextDay: '[غدا على الساعة] LT',\n            nextWeek: 'dddd [على الساعة] LT',\n            lastDay: '[أمس على الساعة] LT',\n            lastWeek: 'dddd [على الساعة] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'في %s',\n            past: 'منذ %s',\n            s: 'ثوان',\n            ss: '%d ثانية',\n            m: 'دقيقة',\n            mm: '%d دقائق',\n            h: 'ساعة',\n            hh: '%d ساعات',\n            d: 'يوم',\n            dd: '%d أيام',\n            M: 'شهر',\n            MM: '%d أشهر',\n            y: 'سنة',\n            yy: '%d سنوات',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return arTn;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ar-tn.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ar.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ar.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Arabic [ar]\n//! author : Abdel Said: https://github.com/abdelsaid\n//! author : Ahmed Elkhatib\n//! author : forabi https://github.com/forabi\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '١',\n            2: '٢',\n            3: '٣',\n            4: '٤',\n            5: '٥',\n            6: '٦',\n            7: '٧',\n            8: '٨',\n            9: '٩',\n            0: '٠',\n        },\n        numberMap = {\n            '١': '1',\n            '٢': '2',\n            '٣': '3',\n            '٤': '4',\n            '٥': '5',\n            '٦': '6',\n            '٧': '7',\n            '٨': '8',\n            '٩': '9',\n            '٠': '0',\n        },\n        pluralForm = function (n) {\n            return n === 0\n                ? 0\n                : n === 1\n                ? 1\n                : n === 2\n                ? 2\n                : n % 100 >= 3 && n % 100 <= 10\n                ? 3\n                : n % 100 >= 11\n                ? 4\n                : 5;\n        },\n        plurals = {\n            s: [\n                'أقل من ثانية',\n                'ثانية واحدة',\n                ['ثانيتان', 'ثانيتين'],\n                '%d ثوان',\n                '%d ثانية',\n                '%d ثانية',\n            ],\n            m: [\n                'أقل من دقيقة',\n                'دقيقة واحدة',\n                ['دقيقتان', 'دقيقتين'],\n                '%d دقائق',\n                '%d دقيقة',\n                '%d دقيقة',\n            ],\n            h: [\n                'أقل من ساعة',\n                'ساعة واحدة',\n                ['ساعتان', 'ساعتين'],\n                '%d ساعات',\n                '%d ساعة',\n                '%d ساعة',\n            ],\n            d: [\n                'أقل من يوم',\n                'يوم واحد',\n                ['يومان', 'يومين'],\n                '%d أيام',\n                '%d يومًا',\n                '%d يوم',\n            ],\n            M: [\n                'أقل من شهر',\n                'شهر واحد',\n                ['شهران', 'شهرين'],\n                '%d أشهر',\n                '%d شهرا',\n                '%d شهر',\n            ],\n            y: [\n                'أقل من عام',\n                'عام واحد',\n                ['عامان', 'عامين'],\n                '%d أعوام',\n                '%d عامًا',\n                '%d عام',\n            ],\n        },\n        pluralize = function (u) {\n            return function (number, withoutSuffix, string, isFuture) {\n                var f = pluralForm(number),\n                    str = plurals[u][pluralForm(number)];\n                if (f === 2) {\n                    str = str[withoutSuffix ? 0 : 1];\n                }\n                return str.replace(/%d/i, number);\n            };\n        },\n        months = [\n            'يناير',\n            'فبراير',\n            'مارس',\n            'أبريل',\n            'مايو',\n            'يونيو',\n            'يوليو',\n            'أغسطس',\n            'سبتمبر',\n            'أكتوبر',\n            'نوفمبر',\n            'ديسمبر',\n        ];\n\n    var ar = moment.defineLocale('ar', {\n        months: months,\n        monthsShort: months,\n        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'D/\\u200FM/\\u200FYYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /ص|م/,\n        isPM: function (input) {\n            return 'م' === input;\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ص';\n            } else {\n                return 'م';\n            }\n        },\n        calendar: {\n            sameDay: '[اليوم عند الساعة] LT',\n            nextDay: '[غدًا عند الساعة] LT',\n            nextWeek: 'dddd [عند الساعة] LT',\n            lastDay: '[أمس عند الساعة] LT',\n            lastWeek: 'dddd [عند الساعة] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'بعد %s',\n            past: 'منذ %s',\n            s: pluralize('s'),\n            ss: pluralize('s'),\n            m: pluralize('m'),\n            mm: pluralize('m'),\n            h: pluralize('h'),\n            hh: pluralize('h'),\n            d: pluralize('d'),\n            dd: pluralize('d'),\n            M: pluralize('M'),\n            MM: pluralize('M'),\n            y: pluralize('y'),\n            yy: pluralize('y'),\n        },\n        preparse: function (string) {\n            return string\n                .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n                    return numberMap[match];\n                })\n                .replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string\n                .replace(/\\d/g, function (match) {\n                    return symbolMap[match];\n                })\n                .replace(/,/g, '،');\n        },\n        week: {\n            dow: 6, // Saturday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return ar;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ar.js?");

/***/ }),

/***/ "./node_modules/moment/locale/az.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/az.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Azerbaijani [az]\n//! author : topchiyev : https://github.com/topchiyev\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var suffixes = {\n        1: '-inci',\n        5: '-inci',\n        8: '-inci',\n        70: '-inci',\n        80: '-inci',\n        2: '-nci',\n        7: '-nci',\n        20: '-nci',\n        50: '-nci',\n        3: '-üncü',\n        4: '-üncü',\n        100: '-üncü',\n        6: '-ncı',\n        9: '-uncu',\n        10: '-uncu',\n        30: '-uncu',\n        60: '-ıncı',\n        90: '-ıncı',\n    };\n\n    var az = moment.defineLocale('az', {\n        months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(\n            '_'\n        ),\n        monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),\n        weekdays:\n            'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(\n                '_'\n            ),\n        weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),\n        weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[bugün saat] LT',\n            nextDay: '[sabah saat] LT',\n            nextWeek: '[gələn həftə] dddd [saat] LT',\n            lastDay: '[dünən] LT',\n            lastWeek: '[keçən həftə] dddd [saat] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s sonra',\n            past: '%s əvvəl',\n            s: 'bir neçə saniyə',\n            ss: '%d saniyə',\n            m: 'bir dəqiqə',\n            mm: '%d dəqiqə',\n            h: 'bir saat',\n            hh: '%d saat',\n            d: 'bir gün',\n            dd: '%d gün',\n            M: 'bir ay',\n            MM: '%d ay',\n            y: 'bir il',\n            yy: '%d il',\n        },\n        meridiemParse: /gecə|səhər|gündüz|axşam/,\n        isPM: function (input) {\n            return /^(gündüz|axşam)$/.test(input);\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'gecə';\n            } else if (hour < 12) {\n                return 'səhər';\n            } else if (hour < 17) {\n                return 'gündüz';\n            } else {\n                return 'axşam';\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,\n        ordinal: function (number) {\n            if (number === 0) {\n                // special case for zero\n                return number + '-ıncı';\n            }\n            var a = number % 10,\n                b = (number % 100) - a,\n                c = number >= 100 ? 100 : null;\n            return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return az;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/az.js?");

/***/ }),

/***/ "./node_modules/moment/locale/be.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/be.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Belarusian [be]\n//! author : Dmitry Demidov : https://github.com/demidov91\n//! author: Praleska: http://praleska.pro/\n//! Author : Menelion Elensúle : https://github.com/Oire\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function plural(word, num) {\n        var forms = word.split('_');\n        return num % 10 === 1 && num % 100 !== 11\n            ? forms[0]\n            : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)\n            ? forms[1]\n            : forms[2];\n    }\n    function relativeTimeWithPlural(number, withoutSuffix, key) {\n        var format = {\n            ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',\n            mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',\n            hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',\n            dd: 'дзень_дні_дзён',\n            MM: 'месяц_месяцы_месяцаў',\n            yy: 'год_гады_гадоў',\n        };\n        if (key === 'm') {\n            return withoutSuffix ? 'хвіліна' : 'хвіліну';\n        } else if (key === 'h') {\n            return withoutSuffix ? 'гадзіна' : 'гадзіну';\n        } else {\n            return number + ' ' + plural(format[key], +number);\n        }\n    }\n\n    var be = moment.defineLocale('be', {\n        months: {\n            format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(\n                '_'\n            ),\n            standalone:\n                'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(\n                    '_'\n                ),\n        },\n        monthsShort:\n            'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),\n        weekdays: {\n            format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(\n                '_'\n            ),\n            standalone:\n                'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(\n                    '_'\n                ),\n            isFormat: /\\[ ?[Ууў] ?(?:мінулую|наступную)? ?\\] ?dddd/,\n        },\n        weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n        weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY г.',\n            LLL: 'D MMMM YYYY г., HH:mm',\n            LLLL: 'dddd, D MMMM YYYY г., HH:mm',\n        },\n        calendar: {\n            sameDay: '[Сёння ў] LT',\n            nextDay: '[Заўтра ў] LT',\n            lastDay: '[Учора ў] LT',\n            nextWeek: function () {\n                return '[У] dddd [ў] LT';\n            },\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                    case 3:\n                    case 5:\n                    case 6:\n                        return '[У мінулую] dddd [ў] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                        return '[У мінулы] dddd [ў] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'праз %s',\n            past: '%s таму',\n            s: 'некалькі секунд',\n            m: relativeTimeWithPlural,\n            mm: relativeTimeWithPlural,\n            h: relativeTimeWithPlural,\n            hh: relativeTimeWithPlural,\n            d: 'дзень',\n            dd: relativeTimeWithPlural,\n            M: 'месяц',\n            MM: relativeTimeWithPlural,\n            y: 'год',\n            yy: relativeTimeWithPlural,\n        },\n        meridiemParse: /ночы|раніцы|дня|вечара/,\n        isPM: function (input) {\n            return /^(дня|вечара)$/.test(input);\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'ночы';\n            } else if (hour < 12) {\n                return 'раніцы';\n            } else if (hour < 17) {\n                return 'дня';\n            } else {\n                return 'вечара';\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(і|ы|га)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'M':\n                case 'd':\n                case 'DDD':\n                case 'w':\n                case 'W':\n                    return (number % 10 === 2 || number % 10 === 3) &&\n                        number % 100 !== 12 &&\n                        number % 100 !== 13\n                        ? number + '-і'\n                        : number + '-ы';\n                case 'D':\n                    return number + '-га';\n                default:\n                    return number;\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return be;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/be.js?");

/***/ }),

/***/ "./node_modules/moment/locale/bg.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/bg.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Bulgarian [bg]\n//! author : Krasen Borisov : https://github.com/kraz\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var bg = moment.defineLocale('bg', {\n        months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(\n            '_'\n        ),\n        monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),\n        weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(\n            '_'\n        ),\n        weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),\n        weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'D.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY H:mm',\n            LLLL: 'dddd, D MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[Днес в] LT',\n            nextDay: '[Утре в] LT',\n            nextWeek: 'dddd [в] LT',\n            lastDay: '[Вчера в] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                    case 3:\n                    case 6:\n                        return '[Миналата] dddd [в] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[Миналия] dddd [в] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'след %s',\n            past: 'преди %s',\n            s: 'няколко секунди',\n            ss: '%d секунди',\n            m: 'минута',\n            mm: '%d минути',\n            h: 'час',\n            hh: '%d часа',\n            d: 'ден',\n            dd: '%d дена',\n            w: 'седмица',\n            ww: '%d седмици',\n            M: 'месец',\n            MM: '%d месеца',\n            y: 'година',\n            yy: '%d години',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n        ordinal: function (number) {\n            var lastDigit = number % 10,\n                last2Digits = number % 100;\n            if (number === 0) {\n                return number + '-ев';\n            } else if (last2Digits === 0) {\n                return number + '-ен';\n            } else if (last2Digits > 10 && last2Digits < 20) {\n                return number + '-ти';\n            } else if (lastDigit === 1) {\n                return number + '-ви';\n            } else if (lastDigit === 2) {\n                return number + '-ри';\n            } else if (lastDigit === 7 || lastDigit === 8) {\n                return number + '-ми';\n            } else {\n                return number + '-ти';\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return bg;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/bg.js?");

/***/ }),

/***/ "./node_modules/moment/locale/bm.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/bm.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Bambara [bm]\n//! author : Estelle Comment : https://github.com/estellecomment\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var bm = moment.defineLocale('bm', {\n        months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(\n            '_'\n        ),\n        monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),\n        weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),\n        weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),\n        weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'MMMM [tile] D [san] YYYY',\n            LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',\n            LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',\n        },\n        calendar: {\n            sameDay: '[Bi lɛrɛ] LT',\n            nextDay: '[Sini lɛrɛ] LT',\n            nextWeek: 'dddd [don lɛrɛ] LT',\n            lastDay: '[Kunu lɛrɛ] LT',\n            lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s kɔnɔ',\n            past: 'a bɛ %s bɔ',\n            s: 'sanga dama dama',\n            ss: 'sekondi %d',\n            m: 'miniti kelen',\n            mm: 'miniti %d',\n            h: 'lɛrɛ kelen',\n            hh: 'lɛrɛ %d',\n            d: 'tile kelen',\n            dd: 'tile %d',\n            M: 'kalo kelen',\n            MM: 'kalo %d',\n            y: 'san kelen',\n            yy: 'san %d',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return bm;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/bm.js?");

/***/ }),

/***/ "./node_modules/moment/locale/bn-bd.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/bn-bd.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Bengali (Bangladesh) [bn-bd]\n//! author : Asraf Hossain Patoary : https://github.com/ashwoolford\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '১',\n            2: '২',\n            3: '৩',\n            4: '৪',\n            5: '৫',\n            6: '৬',\n            7: '৭',\n            8: '৮',\n            9: '৯',\n            0: '০',\n        },\n        numberMap = {\n            '১': '1',\n            '২': '2',\n            '৩': '3',\n            '৪': '4',\n            '৫': '5',\n            '৬': '6',\n            '৭': '7',\n            '৮': '8',\n            '৯': '9',\n            '০': '0',\n        };\n\n    var bnBd = moment.defineLocale('bn-bd', {\n        months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(\n            '_'\n        ),\n        monthsShort:\n            'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(\n                '_'\n            ),\n        weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(\n            '_'\n        ),\n        weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),\n        weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm সময়',\n            LTS: 'A h:mm:ss সময়',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm সময়',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',\n        },\n        calendar: {\n            sameDay: '[আজ] LT',\n            nextDay: '[আগামীকাল] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[গতকাল] LT',\n            lastWeek: '[গত] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s পরে',\n            past: '%s আগে',\n            s: 'কয়েক সেকেন্ড',\n            ss: '%d সেকেন্ড',\n            m: 'এক মিনিট',\n            mm: '%d মিনিট',\n            h: 'এক ঘন্টা',\n            hh: '%d ঘন্টা',\n            d: 'এক দিন',\n            dd: '%d দিন',\n            M: 'এক মাস',\n            MM: '%d মাস',\n            y: 'এক বছর',\n            yy: '%d বছর',\n        },\n        preparse: function (string) {\n            return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n\n        meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'রাত') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'ভোর') {\n                return hour;\n            } else if (meridiem === 'সকাল') {\n                return hour;\n            } else if (meridiem === 'দুপুর') {\n                return hour >= 3 ? hour : hour + 12;\n            } else if (meridiem === 'বিকাল') {\n                return hour + 12;\n            } else if (meridiem === 'সন্ধ্যা') {\n                return hour + 12;\n            }\n        },\n\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'রাত';\n            } else if (hour < 6) {\n                return 'ভোর';\n            } else if (hour < 12) {\n                return 'সকাল';\n            } else if (hour < 15) {\n                return 'দুপুর';\n            } else if (hour < 18) {\n                return 'বিকাল';\n            } else if (hour < 20) {\n                return 'সন্ধ্যা';\n            } else {\n                return 'রাত';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return bnBd;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/bn-bd.js?");

/***/ }),

/***/ "./node_modules/moment/locale/bn.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/bn.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Bengali [bn]\n//! author : Kaushik Gandhi : https://github.com/kaushikgandhi\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '১',\n            2: '২',\n            3: '৩',\n            4: '৪',\n            5: '৫',\n            6: '৬',\n            7: '৭',\n            8: '৮',\n            9: '৯',\n            0: '০',\n        },\n        numberMap = {\n            '১': '1',\n            '২': '2',\n            '৩': '3',\n            '৪': '4',\n            '৫': '5',\n            '৬': '6',\n            '৭': '7',\n            '৮': '8',\n            '৯': '9',\n            '০': '0',\n        };\n\n    var bn = moment.defineLocale('bn', {\n        months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(\n            '_'\n        ),\n        monthsShort:\n            'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(\n                '_'\n            ),\n        weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(\n            '_'\n        ),\n        weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),\n        weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm সময়',\n            LTS: 'A h:mm:ss সময়',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm সময়',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',\n        },\n        calendar: {\n            sameDay: '[আজ] LT',\n            nextDay: '[আগামীকাল] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[গতকাল] LT',\n            lastWeek: '[গত] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s পরে',\n            past: '%s আগে',\n            s: 'কয়েক সেকেন্ড',\n            ss: '%d সেকেন্ড',\n            m: 'এক মিনিট',\n            mm: '%d মিনিট',\n            h: 'এক ঘন্টা',\n            hh: '%d ঘন্টা',\n            d: 'এক দিন',\n            dd: '%d দিন',\n            M: 'এক মাস',\n            MM: '%d মাস',\n            y: 'এক বছর',\n            yy: '%d বছর',\n        },\n        preparse: function (string) {\n            return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (\n                (meridiem === 'রাত' && hour >= 4) ||\n                (meridiem === 'দুপুর' && hour < 5) ||\n                meridiem === 'বিকাল'\n            ) {\n                return hour + 12;\n            } else {\n                return hour;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'রাত';\n            } else if (hour < 10) {\n                return 'সকাল';\n            } else if (hour < 17) {\n                return 'দুপুর';\n            } else if (hour < 20) {\n                return 'বিকাল';\n            } else {\n                return 'রাত';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return bn;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/bn.js?");

/***/ }),

/***/ "./node_modules/moment/locale/bo.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/bo.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Tibetan [bo]\n//! author : Thupten N. Chakrishar : https://github.com/vajradog\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '༡',\n            2: '༢',\n            3: '༣',\n            4: '༤',\n            5: '༥',\n            6: '༦',\n            7: '༧',\n            8: '༨',\n            9: '༩',\n            0: '༠',\n        },\n        numberMap = {\n            '༡': '1',\n            '༢': '2',\n            '༣': '3',\n            '༤': '4',\n            '༥': '5',\n            '༦': '6',\n            '༧': '7',\n            '༨': '8',\n            '༩': '9',\n            '༠': '0',\n        };\n\n    var bo = moment.defineLocale('bo', {\n        months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(\n            '_'\n        ),\n        monthsShort:\n            'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(\n                '_'\n            ),\n        monthsShortRegex: /^(ཟླ་\\d{1,2})/,\n        monthsParseExact: true,\n        weekdays:\n            'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(\n                '_'\n            ),\n        weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(\n            '_'\n        ),\n        weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm',\n            LTS: 'A h:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm',\n        },\n        calendar: {\n            sameDay: '[དི་རིང] LT',\n            nextDay: '[སང་ཉིན] LT',\n            nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',\n            lastDay: '[ཁ་སང] LT',\n            lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s ལ་',\n            past: '%s སྔན་ལ',\n            s: 'ལམ་སང',\n            ss: '%d སྐར་ཆ།',\n            m: 'སྐར་མ་གཅིག',\n            mm: '%d སྐར་མ',\n            h: 'ཆུ་ཚོད་གཅིག',\n            hh: '%d ཆུ་ཚོད',\n            d: 'ཉིན་གཅིག',\n            dd: '%d ཉིན་',\n            M: 'ཟླ་བ་གཅིག',\n            MM: '%d ཟླ་བ',\n            y: 'ལོ་གཅིག',\n            yy: '%d ལོ',\n        },\n        preparse: function (string) {\n            return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (\n                (meridiem === 'མཚན་མོ' && hour >= 4) ||\n                (meridiem === 'ཉིན་གུང' && hour < 5) ||\n                meridiem === 'དགོང་དག'\n            ) {\n                return hour + 12;\n            } else {\n                return hour;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'མཚན་མོ';\n            } else if (hour < 10) {\n                return 'ཞོགས་ཀས';\n            } else if (hour < 17) {\n                return 'ཉིན་གུང';\n            } else if (hour < 20) {\n                return 'དགོང་དག';\n            } else {\n                return 'མཚན་མོ';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return bo;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/bo.js?");

/***/ }),

/***/ "./node_modules/moment/locale/br.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/br.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Breton [br]\n//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function relativeTimeWithMutation(number, withoutSuffix, key) {\n        var format = {\n            mm: 'munutenn',\n            MM: 'miz',\n            dd: 'devezh',\n        };\n        return number + ' ' + mutation(format[key], number);\n    }\n    function specialMutationForYears(number) {\n        switch (lastNumber(number)) {\n            case 1:\n            case 3:\n            case 4:\n            case 5:\n            case 9:\n                return number + ' bloaz';\n            default:\n                return number + ' vloaz';\n        }\n    }\n    function lastNumber(number) {\n        if (number > 9) {\n            return lastNumber(number % 10);\n        }\n        return number;\n    }\n    function mutation(text, number) {\n        if (number === 2) {\n            return softMutation(text);\n        }\n        return text;\n    }\n    function softMutation(text) {\n        var mutationTable = {\n            m: 'v',\n            b: 'v',\n            d: 'z',\n        };\n        if (mutationTable[text.charAt(0)] === undefined) {\n            return text;\n        }\n        return mutationTable[text.charAt(0)] + text.substring(1);\n    }\n\n    var monthsParse = [\n            /^gen/i,\n            /^c[ʼ\\']hwe/i,\n            /^meu/i,\n            /^ebr/i,\n            /^mae/i,\n            /^(mez|eve)/i,\n            /^gou/i,\n            /^eos/i,\n            /^gwe/i,\n            /^her/i,\n            /^du/i,\n            /^ker/i,\n        ],\n        monthsRegex =\n            /^(genver|c[ʼ\\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,\n        monthsStrictRegex =\n            /^(genver|c[ʼ\\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,\n        monthsShortStrictRegex =\n            /^(gen|c[ʼ\\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,\n        fullWeekdaysParse = [\n            /^sul/i,\n            /^lun/i,\n            /^meurzh/i,\n            /^merc[ʼ\\']her/i,\n            /^yaou/i,\n            /^gwener/i,\n            /^sadorn/i,\n        ],\n        shortWeekdaysParse = [\n            /^Sul/i,\n            /^Lun/i,\n            /^Meu/i,\n            /^Mer/i,\n            /^Yao/i,\n            /^Gwe/i,\n            /^Sad/i,\n        ],\n        minWeekdaysParse = [\n            /^Su/i,\n            /^Lu/i,\n            /^Me([^r]|$)/i,\n            /^Mer/i,\n            /^Ya/i,\n            /^Gw/i,\n            /^Sa/i,\n        ];\n\n    var br = moment.defineLocale('br', {\n        months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(\n            '_'\n        ),\n        monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),\n        weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),\n        weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),\n        weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),\n        weekdaysParse: minWeekdaysParse,\n        fullWeekdaysParse: fullWeekdaysParse,\n        shortWeekdaysParse: shortWeekdaysParse,\n        minWeekdaysParse: minWeekdaysParse,\n\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex: monthsStrictRegex,\n        monthsShortStrictRegex: monthsShortStrictRegex,\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D [a viz] MMMM YYYY',\n            LLL: 'D [a viz] MMMM YYYY HH:mm',\n            LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Hiziv da] LT',\n            nextDay: '[Warcʼhoazh da] LT',\n            nextWeek: 'dddd [da] LT',\n            lastDay: '[Decʼh da] LT',\n            lastWeek: 'dddd [paset da] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'a-benn %s',\n            past: '%s ʼzo',\n            s: 'un nebeud segondennoù',\n            ss: '%d eilenn',\n            m: 'ur vunutenn',\n            mm: relativeTimeWithMutation,\n            h: 'un eur',\n            hh: '%d eur',\n            d: 'un devezh',\n            dd: relativeTimeWithMutation,\n            M: 'ur miz',\n            MM: relativeTimeWithMutation,\n            y: 'ur bloaz',\n            yy: specialMutationForYears,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(añ|vet)/,\n        ordinal: function (number) {\n            var output = number === 1 ? 'añ' : 'vet';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n        meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn\n        isPM: function (token) {\n            return token === 'g.m.';\n        },\n        meridiem: function (hour, minute, isLower) {\n            return hour < 12 ? 'a.m.' : 'g.m.';\n        },\n    });\n\n    return br;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/br.js?");

/***/ }),

/***/ "./node_modules/moment/locale/bs.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/bs.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Bosnian [bs]\n//! author : Nedim Cholich : https://github.com/frontyard\n//! based on (hr) translation by Bojan Marković\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function translate(number, withoutSuffix, key) {\n        var result = number + ' ';\n        switch (key) {\n            case 'ss':\n                if (number === 1) {\n                    result += 'sekunda';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'sekunde';\n                } else {\n                    result += 'sekundi';\n                }\n                return result;\n            case 'm':\n                return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n            case 'mm':\n                if (number === 1) {\n                    result += 'minuta';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'minute';\n                } else {\n                    result += 'minuta';\n                }\n                return result;\n            case 'h':\n                return withoutSuffix ? 'jedan sat' : 'jednog sata';\n            case 'hh':\n                if (number === 1) {\n                    result += 'sat';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'sata';\n                } else {\n                    result += 'sati';\n                }\n                return result;\n            case 'dd':\n                if (number === 1) {\n                    result += 'dan';\n                } else {\n                    result += 'dana';\n                }\n                return result;\n            case 'MM':\n                if (number === 1) {\n                    result += 'mjesec';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'mjeseca';\n                } else {\n                    result += 'mjeseci';\n                }\n                return result;\n            case 'yy':\n                if (number === 1) {\n                    result += 'godina';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'godine';\n                } else {\n                    result += 'godina';\n                }\n                return result;\n        }\n    }\n\n    var bs = moment.defineLocale('bs', {\n        months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(\n            '_'\n        ),\n        monthsShort:\n            'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(\n            '_'\n        ),\n        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY H:mm',\n            LLLL: 'dddd, D. MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[danas u] LT',\n            nextDay: '[sutra u] LT',\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[u] [nedjelju] [u] LT';\n                    case 3:\n                        return '[u] [srijedu] [u] LT';\n                    case 6:\n                        return '[u] [subotu] [u] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[u] dddd [u] LT';\n                }\n            },\n            lastDay: '[jučer u] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                    case 3:\n                        return '[prošlu] dddd [u] LT';\n                    case 6:\n                        return '[prošle] [subote] [u] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[prošli] dddd [u] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'za %s',\n            past: 'prije %s',\n            s: 'par sekundi',\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: 'dan',\n            dd: translate,\n            M: 'mjesec',\n            MM: translate,\n            y: 'godinu',\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return bs;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/bs.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ca.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ca.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Catalan [ca]\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ca = moment.defineLocale('ca', {\n        months: {\n            standalone:\n                'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(\n                    '_'\n                ),\n            format: \"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre\".split(\n                '_'\n            ),\n            isFormat: /D[oD]?(\\s)+MMMM/,\n        },\n        monthsShort:\n            'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays:\n            'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(\n                '_'\n            ),\n        weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),\n        weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM [de] YYYY',\n            ll: 'D MMM YYYY',\n            LLL: 'D MMMM [de] YYYY [a les] H:mm',\n            lll: 'D MMM YYYY, H:mm',\n            LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',\n            llll: 'ddd D MMM YYYY, H:mm',\n        },\n        calendar: {\n            sameDay: function () {\n                return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n            },\n            nextDay: function () {\n                return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n            },\n            nextWeek: function () {\n                return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n            },\n            lastDay: function () {\n                return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n            },\n            lastWeek: function () {\n                return (\n                    '[el] dddd [passat a ' +\n                    (this.hours() !== 1 ? 'les' : 'la') +\n                    '] LT'\n                );\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: \"d'aquí %s\",\n            past: 'fa %s',\n            s: 'uns segons',\n            ss: '%d segons',\n            m: 'un minut',\n            mm: '%d minuts',\n            h: 'una hora',\n            hh: '%d hores',\n            d: 'un dia',\n            dd: '%d dies',\n            M: 'un mes',\n            MM: '%d mesos',\n            y: 'un any',\n            yy: '%d anys',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(r|n|t|è|a)/,\n        ordinal: function (number, period) {\n            var output =\n                number === 1\n                    ? 'r'\n                    : number === 2\n                    ? 'n'\n                    : number === 3\n                    ? 'r'\n                    : number === 4\n                    ? 't'\n                    : 'è';\n            if (period === 'w' || period === 'W') {\n                output = 'a';\n            }\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return ca;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ca.js?");

/***/ }),

/***/ "./node_modules/moment/locale/cs.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/cs.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Czech [cs]\n//! author : petrbela : https://github.com/petrbela\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var months = {\n            format: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(\n                '_'\n            ),\n            standalone:\n                'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split(\n                    '_'\n                ),\n        },\n        monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),\n        monthsParse = [\n            /^led/i,\n            /^úno/i,\n            /^bře/i,\n            /^dub/i,\n            /^kvě/i,\n            /^(čvn|červen$|června)/i,\n            /^(čvc|červenec|července)/i,\n            /^srp/i,\n            /^zář/i,\n            /^říj/i,\n            /^lis/i,\n            /^pro/i,\n        ],\n        // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.\n        // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.\n        monthsRegex =\n            /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;\n\n    function plural(n) {\n        return n > 1 && n < 5 && ~~(n / 10) !== 1;\n    }\n    function translate(number, withoutSuffix, key, isFuture) {\n        var result = number + ' ';\n        switch (key) {\n            case 's': // a few seconds / in a few seconds / a few seconds ago\n                return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';\n            case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'sekundy' : 'sekund');\n                } else {\n                    return result + 'sekundami';\n                }\n            case 'm': // a minute / in a minute / a minute ago\n                return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';\n            case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'minuty' : 'minut');\n                } else {\n                    return result + 'minutami';\n                }\n            case 'h': // an hour / in an hour / an hour ago\n                return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';\n            case 'hh': // 9 hours / in 9 hours / 9 hours ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'hodiny' : 'hodin');\n                } else {\n                    return result + 'hodinami';\n                }\n            case 'd': // a day / in a day / a day ago\n                return withoutSuffix || isFuture ? 'den' : 'dnem';\n            case 'dd': // 9 days / in 9 days / 9 days ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'dny' : 'dní');\n                } else {\n                    return result + 'dny';\n                }\n            case 'M': // a month / in a month / a month ago\n                return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';\n            case 'MM': // 9 months / in 9 months / 9 months ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'měsíce' : 'měsíců');\n                } else {\n                    return result + 'měsíci';\n                }\n            case 'y': // a year / in a year / a year ago\n                return withoutSuffix || isFuture ? 'rok' : 'rokem';\n            case 'yy': // 9 years / in 9 years / 9 years ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'roky' : 'let');\n                } else {\n                    return result + 'lety';\n                }\n        }\n    }\n\n    var cs = moment.defineLocale('cs', {\n        months: months,\n        monthsShort: monthsShort,\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.\n        // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.\n        monthsStrictRegex:\n            /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,\n        monthsShortStrictRegex:\n            /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n        weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),\n        weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),\n        weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY H:mm',\n            LLLL: 'dddd D. MMMM YYYY H:mm',\n            l: 'D. M. YYYY',\n        },\n        calendar: {\n            sameDay: '[dnes v] LT',\n            nextDay: '[zítra v] LT',\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[v neděli v] LT';\n                    case 1:\n                    case 2:\n                        return '[v] dddd [v] LT';\n                    case 3:\n                        return '[ve středu v] LT';\n                    case 4:\n                        return '[ve čtvrtek v] LT';\n                    case 5:\n                        return '[v pátek v] LT';\n                    case 6:\n                        return '[v sobotu v] LT';\n                }\n            },\n            lastDay: '[včera v] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[minulou neděli v] LT';\n                    case 1:\n                    case 2:\n                        return '[minulé] dddd [v] LT';\n                    case 3:\n                        return '[minulou středu v] LT';\n                    case 4:\n                    case 5:\n                        return '[minulý] dddd [v] LT';\n                    case 6:\n                        return '[minulou sobotu v] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'za %s',\n            past: 'před %s',\n            s: translate,\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: translate,\n            dd: translate,\n            M: translate,\n            MM: translate,\n            y: translate,\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return cs;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/cs.js?");

/***/ }),

/***/ "./node_modules/moment/locale/cv.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/cv.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Chuvash [cv]\n//! author : Anatoly Mironov : https://github.com/mirontoli\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var cv = moment.defineLocale('cv', {\n        months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(\n            '_'\n        ),\n        monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),\n        weekdays:\n            'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(\n                '_'\n            ),\n        weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),\n        weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD-MM-YYYY',\n            LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',\n            LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',\n            LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',\n        },\n        calendar: {\n            sameDay: '[Паян] LT [сехетре]',\n            nextDay: '[Ыран] LT [сехетре]',\n            lastDay: '[Ӗнер] LT [сехетре]',\n            nextWeek: '[Ҫитес] dddd LT [сехетре]',\n            lastWeek: '[Иртнӗ] dddd LT [сехетре]',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: function (output) {\n                var affix = /сехет$/i.exec(output)\n                    ? 'рен'\n                    : /ҫул$/i.exec(output)\n                    ? 'тан'\n                    : 'ран';\n                return output + affix;\n            },\n            past: '%s каялла',\n            s: 'пӗр-ик ҫеккунт',\n            ss: '%d ҫеккунт',\n            m: 'пӗр минут',\n            mm: '%d минут',\n            h: 'пӗр сехет',\n            hh: '%d сехет',\n            d: 'пӗр кун',\n            dd: '%d кун',\n            M: 'пӗр уйӑх',\n            MM: '%d уйӑх',\n            y: 'пӗр ҫул',\n            yy: '%d ҫул',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-мӗш/,\n        ordinal: '%d-мӗш',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return cv;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/cv.js?");

/***/ }),

/***/ "./node_modules/moment/locale/cy.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/cy.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Welsh [cy]\n//! author : Robert Allen : https://github.com/robgallen\n//! author : https://github.com/ryangreaves\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var cy = moment.defineLocale('cy', {\n        months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(\n            '_'\n        ),\n        monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(\n            '_'\n        ),\n        weekdays:\n            'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(\n                '_'\n            ),\n        weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),\n        weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),\n        weekdaysParseExact: true,\n        // time formats are the same as en-gb\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Heddiw am] LT',\n            nextDay: '[Yfory am] LT',\n            nextWeek: 'dddd [am] LT',\n            lastDay: '[Ddoe am] LT',\n            lastWeek: 'dddd [diwethaf am] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'mewn %s',\n            past: '%s yn ôl',\n            s: 'ychydig eiliadau',\n            ss: '%d eiliad',\n            m: 'munud',\n            mm: '%d munud',\n            h: 'awr',\n            hh: '%d awr',\n            d: 'diwrnod',\n            dd: '%d diwrnod',\n            M: 'mis',\n            MM: '%d mis',\n            y: 'blwyddyn',\n            yy: '%d flynedd',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,\n        // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh\n        ordinal: function (number) {\n            var b = number,\n                output = '',\n                lookup = [\n                    '',\n                    'af',\n                    'il',\n                    'ydd',\n                    'ydd',\n                    'ed',\n                    'ed',\n                    'ed',\n                    'fed',\n                    'fed',\n                    'fed', // 1af to 10fed\n                    'eg',\n                    'fed',\n                    'eg',\n                    'eg',\n                    'fed',\n                    'eg',\n                    'eg',\n                    'fed',\n                    'eg',\n                    'fed', // 11eg to 20fed\n                ];\n            if (b > 20) {\n                if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {\n                    output = 'fed'; // not 30ain, 70ain or 90ain\n                } else {\n                    output = 'ain';\n                }\n            } else if (b > 0) {\n                output = lookup[b];\n            }\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return cy;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/cy.js?");

/***/ }),

/***/ "./node_modules/moment/locale/da.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/da.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Danish [da]\n//! author : Ulrik Nielsen : https://github.com/mrbase\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var da = moment.defineLocale('da', {\n        months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(\n            '_'\n        ),\n        monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n        weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n        weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),\n        weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY HH:mm',\n            LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',\n        },\n        calendar: {\n            sameDay: '[i dag kl.] LT',\n            nextDay: '[i morgen kl.] LT',\n            nextWeek: 'på dddd [kl.] LT',\n            lastDay: '[i går kl.] LT',\n            lastWeek: '[i] dddd[s kl.] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'om %s',\n            past: '%s siden',\n            s: 'få sekunder',\n            ss: '%d sekunder',\n            m: 'et minut',\n            mm: '%d minutter',\n            h: 'en time',\n            hh: '%d timer',\n            d: 'en dag',\n            dd: '%d dage',\n            M: 'en måned',\n            MM: '%d måneder',\n            y: 'et år',\n            yy: '%d år',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return da;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/da.js?");

/***/ }),

/***/ "./node_modules/moment/locale/de-at.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/de-at.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : German (Austria) [de-at]\n//! author : lluchs : https://github.com/lluchs\n//! author: Menelion Elensúle: https://github.com/Oire\n//! author : Martin Groller : https://github.com/MadMG\n//! author : Mikolaj Dadela : https://github.com/mik01aj\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            m: ['eine Minute', 'einer Minute'],\n            h: ['eine Stunde', 'einer Stunde'],\n            d: ['ein Tag', 'einem Tag'],\n            dd: [number + ' Tage', number + ' Tagen'],\n            w: ['eine Woche', 'einer Woche'],\n            M: ['ein Monat', 'einem Monat'],\n            MM: [number + ' Monate', number + ' Monaten'],\n            y: ['ein Jahr', 'einem Jahr'],\n            yy: [number + ' Jahre', number + ' Jahren'],\n        };\n        return withoutSuffix ? format[key][0] : format[key][1];\n    }\n\n    var deAt = moment.defineLocale('de-at', {\n        months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n            '_'\n        ),\n        monthsShort:\n            'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),\n        monthsParseExact: true,\n        weekdays:\n            'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(\n                '_'\n            ),\n        weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n        weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY HH:mm',\n            LLLL: 'dddd, D. MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[heute um] LT [Uhr]',\n            sameElse: 'L',\n            nextDay: '[morgen um] LT [Uhr]',\n            nextWeek: 'dddd [um] LT [Uhr]',\n            lastDay: '[gestern um] LT [Uhr]',\n            lastWeek: '[letzten] dddd [um] LT [Uhr]',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: 'vor %s',\n            s: 'ein paar Sekunden',\n            ss: '%d Sekunden',\n            m: processRelativeTime,\n            mm: '%d Minuten',\n            h: processRelativeTime,\n            hh: '%d Stunden',\n            d: processRelativeTime,\n            dd: processRelativeTime,\n            w: processRelativeTime,\n            ww: '%d Wochen',\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return deAt;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/de-at.js?");

/***/ }),

/***/ "./node_modules/moment/locale/de-ch.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/de-ch.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : German (Switzerland) [de-ch]\n//! author : sschueller : https://github.com/sschueller\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            m: ['eine Minute', 'einer Minute'],\n            h: ['eine Stunde', 'einer Stunde'],\n            d: ['ein Tag', 'einem Tag'],\n            dd: [number + ' Tage', number + ' Tagen'],\n            w: ['eine Woche', 'einer Woche'],\n            M: ['ein Monat', 'einem Monat'],\n            MM: [number + ' Monate', number + ' Monaten'],\n            y: ['ein Jahr', 'einem Jahr'],\n            yy: [number + ' Jahre', number + ' Jahren'],\n        };\n        return withoutSuffix ? format[key][0] : format[key][1];\n    }\n\n    var deCh = moment.defineLocale('de-ch', {\n        months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n            '_'\n        ),\n        monthsShort:\n            'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),\n        monthsParseExact: true,\n        weekdays:\n            'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(\n                '_'\n            ),\n        weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n        weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY HH:mm',\n            LLLL: 'dddd, D. MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[heute um] LT [Uhr]',\n            sameElse: 'L',\n            nextDay: '[morgen um] LT [Uhr]',\n            nextWeek: 'dddd [um] LT [Uhr]',\n            lastDay: '[gestern um] LT [Uhr]',\n            lastWeek: '[letzten] dddd [um] LT [Uhr]',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: 'vor %s',\n            s: 'ein paar Sekunden',\n            ss: '%d Sekunden',\n            m: processRelativeTime,\n            mm: '%d Minuten',\n            h: processRelativeTime,\n            hh: '%d Stunden',\n            d: processRelativeTime,\n            dd: processRelativeTime,\n            w: processRelativeTime,\n            ww: '%d Wochen',\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return deCh;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/de-ch.js?");

/***/ }),

/***/ "./node_modules/moment/locale/de.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/de.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : German [de]\n//! author : lluchs : https://github.com/lluchs\n//! author: Menelion Elensúle: https://github.com/Oire\n//! author : Mikolaj Dadela : https://github.com/mik01aj\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            m: ['eine Minute', 'einer Minute'],\n            h: ['eine Stunde', 'einer Stunde'],\n            d: ['ein Tag', 'einem Tag'],\n            dd: [number + ' Tage', number + ' Tagen'],\n            w: ['eine Woche', 'einer Woche'],\n            M: ['ein Monat', 'einem Monat'],\n            MM: [number + ' Monate', number + ' Monaten'],\n            y: ['ein Jahr', 'einem Jahr'],\n            yy: [number + ' Jahre', number + ' Jahren'],\n        };\n        return withoutSuffix ? format[key][0] : format[key][1];\n    }\n\n    var de = moment.defineLocale('de', {\n        months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n            '_'\n        ),\n        monthsShort:\n            'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),\n        monthsParseExact: true,\n        weekdays:\n            'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(\n                '_'\n            ),\n        weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n        weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY HH:mm',\n            LLLL: 'dddd, D. MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[heute um] LT [Uhr]',\n            sameElse: 'L',\n            nextDay: '[morgen um] LT [Uhr]',\n            nextWeek: 'dddd [um] LT [Uhr]',\n            lastDay: '[gestern um] LT [Uhr]',\n            lastWeek: '[letzten] dddd [um] LT [Uhr]',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: 'vor %s',\n            s: 'ein paar Sekunden',\n            ss: '%d Sekunden',\n            m: processRelativeTime,\n            mm: '%d Minuten',\n            h: processRelativeTime,\n            hh: '%d Stunden',\n            d: processRelativeTime,\n            dd: processRelativeTime,\n            w: processRelativeTime,\n            ww: '%d Wochen',\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return de;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/de.js?");

/***/ }),

/***/ "./node_modules/moment/locale/dv.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/dv.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Maldivian [dv]\n//! author : Jawish Hameed : https://github.com/jawish\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var months = [\n            'ޖެނުއަރީ',\n            'ފެބްރުއަރީ',\n            'މާރިޗު',\n            'އޭޕްރީލު',\n            'މޭ',\n            'ޖޫން',\n            'ޖުލައި',\n            'އޯގަސްޓު',\n            'ސެޕްޓެމްބަރު',\n            'އޮކްޓޯބަރު',\n            'ނޮވެމްބަރު',\n            'ޑިސެމްބަރު',\n        ],\n        weekdays = [\n            'އާދިއްތަ',\n            'ހޯމަ',\n            'އަންގާރަ',\n            'ބުދަ',\n            'ބުރާސްފަތި',\n            'ހުކުރު',\n            'ހޮނިހިރު',\n        ];\n\n    var dv = moment.defineLocale('dv', {\n        months: months,\n        monthsShort: months,\n        weekdays: weekdays,\n        weekdaysShort: weekdays,\n        weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'D/M/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /މކ|މފ/,\n        isPM: function (input) {\n            return 'މފ' === input;\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'މކ';\n            } else {\n                return 'މފ';\n            }\n        },\n        calendar: {\n            sameDay: '[މިއަދު] LT',\n            nextDay: '[މާދަމާ] LT',\n            nextWeek: 'dddd LT',\n            lastDay: '[އިއްޔެ] LT',\n            lastWeek: '[ފާއިތުވި] dddd LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'ތެރޭގައި %s',\n            past: 'ކުރިން %s',\n            s: 'ސިކުންތުކޮޅެއް',\n            ss: 'd% ސިކުންތު',\n            m: 'މިނިޓެއް',\n            mm: 'މިނިޓު %d',\n            h: 'ގަޑިއިރެއް',\n            hh: 'ގަޑިއިރު %d',\n            d: 'ދުވަހެއް',\n            dd: 'ދުވަސް %d',\n            M: 'މަހެއް',\n            MM: 'މަސް %d',\n            y: 'އަހަރެއް',\n            yy: 'އަހަރު %d',\n        },\n        preparse: function (string) {\n            return string.replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string.replace(/,/g, '،');\n        },\n        week: {\n            dow: 7, // Sunday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return dv;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/dv.js?");

/***/ }),

/***/ "./node_modules/moment/locale/el.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/el.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Greek [el]\n//! author : Aggelos Karalias : https://github.com/mehiel\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function isFunction(input) {\n        return (\n            (typeof Function !== 'undefined' && input instanceof Function) ||\n            Object.prototype.toString.call(input) === '[object Function]'\n        );\n    }\n\n    var el = moment.defineLocale('el', {\n        monthsNominativeEl:\n            'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(\n                '_'\n            ),\n        monthsGenitiveEl:\n            'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(\n                '_'\n            ),\n        months: function (momentToFormat, format) {\n            if (!momentToFormat) {\n                return this._monthsNominativeEl;\n            } else if (\n                typeof format === 'string' &&\n                /D/.test(format.substring(0, format.indexOf('MMMM')))\n            ) {\n                // if there is a day number before 'MMMM'\n                return this._monthsGenitiveEl[momentToFormat.month()];\n            } else {\n                return this._monthsNominativeEl[momentToFormat.month()];\n            }\n        },\n        monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),\n        weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(\n            '_'\n        ),\n        weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),\n        weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),\n        meridiem: function (hours, minutes, isLower) {\n            if (hours > 11) {\n                return isLower ? 'μμ' : 'ΜΜ';\n            } else {\n                return isLower ? 'πμ' : 'ΠΜ';\n            }\n        },\n        isPM: function (input) {\n            return (input + '').toLowerCase()[0] === 'μ';\n        },\n        meridiemParse: /[ΠΜ]\\.?Μ?\\.?/i,\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY h:mm A',\n            LLLL: 'dddd, D MMMM YYYY h:mm A',\n        },\n        calendarEl: {\n            sameDay: '[Σήμερα {}] LT',\n            nextDay: '[Αύριο {}] LT',\n            nextWeek: 'dddd [{}] LT',\n            lastDay: '[Χθες {}] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 6:\n                        return '[το προηγούμενο] dddd [{}] LT';\n                    default:\n                        return '[την προηγούμενη] dddd [{}] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        calendar: function (key, mom) {\n            var output = this._calendarEl[key],\n                hours = mom && mom.hours();\n            if (isFunction(output)) {\n                output = output.apply(mom);\n            }\n            return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');\n        },\n        relativeTime: {\n            future: 'σε %s',\n            past: '%s πριν',\n            s: 'λίγα δευτερόλεπτα',\n            ss: '%d δευτερόλεπτα',\n            m: 'ένα λεπτό',\n            mm: '%d λεπτά',\n            h: 'μία ώρα',\n            hh: '%d ώρες',\n            d: 'μία μέρα',\n            dd: '%d μέρες',\n            M: 'ένας μήνας',\n            MM: '%d μήνες',\n            y: 'ένας χρόνος',\n            yy: '%d χρόνια',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}η/,\n        ordinal: '%dη',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4st is the first week of the year.\n        },\n    });\n\n    return el;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/el.js?");

/***/ }),

/***/ "./node_modules/moment/locale/en-au.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/en-au.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : English (Australia) [en-au]\n//! author : Jared Morse : https://github.com/jarcoal\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enAu = moment.defineLocale('en-au', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY h:mm A',\n            LLLL: 'dddd, D MMMM YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return enAu;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/en-au.js?");

/***/ }),

/***/ "./node_modules/moment/locale/en-ca.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/en-ca.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : English (Canada) [en-ca]\n//! author : Jonathan Abourbih : https://github.com/jonbca\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enCa = moment.defineLocale('en-ca', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'YYYY-MM-DD',\n            LL: 'MMMM D, YYYY',\n            LLL: 'MMMM D, YYYY h:mm A',\n            LLLL: 'dddd, MMMM D, YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n    });\n\n    return enCa;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/en-ca.js?");

/***/ }),

/***/ "./node_modules/moment/locale/en-gb.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/en-gb.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : English (United Kingdom) [en-gb]\n//! author : Chris Gedrim : https://github.com/chrisgedrim\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enGb = moment.defineLocale('en-gb', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return enGb;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/en-gb.js?");

/***/ }),

/***/ "./node_modules/moment/locale/en-ie.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/en-ie.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : English (Ireland) [en-ie]\n//! author : Chris Cartlidge : https://github.com/chriscartlidge\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enIe = moment.defineLocale('en-ie', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return enIe;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/en-ie.js?");

/***/ }),

/***/ "./node_modules/moment/locale/en-il.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/en-il.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : English (Israel) [en-il]\n//! author : Chris Gedrim : https://github.com/chrisgedrim\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enIl = moment.defineLocale('en-il', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n    });\n\n    return enIl;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/en-il.js?");

/***/ }),

/***/ "./node_modules/moment/locale/en-in.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/en-in.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : English (India) [en-in]\n//! author : Jatin Agrawal : https://github.com/jatinag22\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enIn = moment.defineLocale('en-in', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY h:mm A',\n            LLLL: 'dddd, D MMMM YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 1st is the first week of the year.\n        },\n    });\n\n    return enIn;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/en-in.js?");

/***/ }),

/***/ "./node_modules/moment/locale/en-nz.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/en-nz.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : English (New Zealand) [en-nz]\n//! author : Luke McGregor : https://github.com/lukemcgregor\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enNz = moment.defineLocale('en-nz', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY h:mm A',\n            LLLL: 'dddd, D MMMM YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return enNz;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/en-nz.js?");

/***/ }),

/***/ "./node_modules/moment/locale/en-sg.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/en-sg.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : English (Singapore) [en-sg]\n//! author : Matthew Castrillon-Madrigal : https://github.com/techdimension\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var enSg = moment.defineLocale('en-sg', {\n        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n            '_'\n        ),\n        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Today at] LT',\n            nextDay: '[Tomorrow at] LT',\n            nextWeek: 'dddd [at] LT',\n            lastDay: '[Yesterday at] LT',\n            lastWeek: '[Last] dddd [at] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'in %s',\n            past: '%s ago',\n            s: 'a few seconds',\n            ss: '%d seconds',\n            m: 'a minute',\n            mm: '%d minutes',\n            h: 'an hour',\n            hh: '%d hours',\n            d: 'a day',\n            dd: '%d days',\n            M: 'a month',\n            MM: '%d months',\n            y: 'a year',\n            yy: '%d years',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return enSg;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/en-sg.js?");

/***/ }),

/***/ "./node_modules/moment/locale/eo.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/eo.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Esperanto [eo]\n//! author : Colin Dean : https://github.com/colindean\n//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia\n//! comment : miestasmia corrected the translation by colindean\n//! comment : Vivakvo corrected the translation by colindean and miestasmia\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var eo = moment.defineLocale('eo', {\n        months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(\n            '_'\n        ),\n        monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),\n        weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),\n        weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),\n        weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY-MM-DD',\n            LL: '[la] D[-an de] MMMM, YYYY',\n            LLL: '[la] D[-an de] MMMM, YYYY HH:mm',\n            LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',\n            llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',\n        },\n        meridiemParse: /[ap]\\.t\\.m/i,\n        isPM: function (input) {\n            return input.charAt(0).toLowerCase() === 'p';\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours > 11) {\n                return isLower ? 'p.t.m.' : 'P.T.M.';\n            } else {\n                return isLower ? 'a.t.m.' : 'A.T.M.';\n            }\n        },\n        calendar: {\n            sameDay: '[Hodiaŭ je] LT',\n            nextDay: '[Morgaŭ je] LT',\n            nextWeek: 'dddd[n je] LT',\n            lastDay: '[Hieraŭ je] LT',\n            lastWeek: '[pasintan] dddd[n je] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'post %s',\n            past: 'antaŭ %s',\n            s: 'kelkaj sekundoj',\n            ss: '%d sekundoj',\n            m: 'unu minuto',\n            mm: '%d minutoj',\n            h: 'unu horo',\n            hh: '%d horoj',\n            d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo\n            dd: '%d tagoj',\n            M: 'unu monato',\n            MM: '%d monatoj',\n            y: 'unu jaro',\n            yy: '%d jaroj',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}a/,\n        ordinal: '%da',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return eo;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/eo.js?");

/***/ }),

/***/ "./node_modules/moment/locale/es-do.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/es-do.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Spanish (Dominican Republic) [es-do]\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsShortDot =\n            'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n                '_'\n            ),\n        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n        monthsParse = [\n            /^ene/i,\n            /^feb/i,\n            /^mar/i,\n            /^abr/i,\n            /^may/i,\n            /^jun/i,\n            /^jul/i,\n            /^ago/i,\n            /^sep/i,\n            /^oct/i,\n            /^nov/i,\n            /^dic/i,\n        ],\n        monthsRegex =\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n    var esDo = moment.defineLocale('es-do', {\n        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n            '_'\n        ),\n        monthsShort: function (m, format) {\n            if (!m) {\n                return monthsShortDot;\n            } else if (/-MMM-/.test(format)) {\n                return monthsShort[m.month()];\n            } else {\n                return monthsShortDot[m.month()];\n            }\n        },\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex:\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n        monthsShortStrictRegex:\n            /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'DD/MM/YYYY',\n            LL: 'D [de] MMMM [de] YYYY',\n            LLL: 'D [de] MMMM [de] YYYY h:mm A',\n            LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: function () {\n                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextDay: function () {\n                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextWeek: function () {\n                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastDay: function () {\n                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastWeek: function () {\n                return (\n                    '[el] dddd [pasado a la' +\n                    (this.hours() !== 1 ? 's' : '') +\n                    '] LT'\n                );\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'en %s',\n            past: 'hace %s',\n            s: 'unos segundos',\n            ss: '%d segundos',\n            m: 'un minuto',\n            mm: '%d minutos',\n            h: 'una hora',\n            hh: '%d horas',\n            d: 'un día',\n            dd: '%d días',\n            w: 'una semana',\n            ww: '%d semanas',\n            M: 'un mes',\n            MM: '%d meses',\n            y: 'un año',\n            yy: '%d años',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return esDo;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/es-do.js?");

/***/ }),

/***/ "./node_modules/moment/locale/es-mx.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/es-mx.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Spanish (Mexico) [es-mx]\n//! author : JC Franco : https://github.com/jcfranco\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsShortDot =\n            'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n                '_'\n            ),\n        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n        monthsParse = [\n            /^ene/i,\n            /^feb/i,\n            /^mar/i,\n            /^abr/i,\n            /^may/i,\n            /^jun/i,\n            /^jul/i,\n            /^ago/i,\n            /^sep/i,\n            /^oct/i,\n            /^nov/i,\n            /^dic/i,\n        ],\n        monthsRegex =\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n    var esMx = moment.defineLocale('es-mx', {\n        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n            '_'\n        ),\n        monthsShort: function (m, format) {\n            if (!m) {\n                return monthsShortDot;\n            } else if (/-MMM-/.test(format)) {\n                return monthsShort[m.month()];\n            } else {\n                return monthsShortDot[m.month()];\n            }\n        },\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex:\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n        monthsShortStrictRegex:\n            /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D [de] MMMM [de] YYYY',\n            LLL: 'D [de] MMMM [de] YYYY H:mm',\n            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',\n        },\n        calendar: {\n            sameDay: function () {\n                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextDay: function () {\n                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextWeek: function () {\n                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastDay: function () {\n                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastWeek: function () {\n                return (\n                    '[el] dddd [pasado a la' +\n                    (this.hours() !== 1 ? 's' : '') +\n                    '] LT'\n                );\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'en %s',\n            past: 'hace %s',\n            s: 'unos segundos',\n            ss: '%d segundos',\n            m: 'un minuto',\n            mm: '%d minutos',\n            h: 'una hora',\n            hh: '%d horas',\n            d: 'un día',\n            dd: '%d días',\n            w: 'una semana',\n            ww: '%d semanas',\n            M: 'un mes',\n            MM: '%d meses',\n            y: 'un año',\n            yy: '%d años',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n        invalidDate: 'Fecha inválida',\n    });\n\n    return esMx;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/es-mx.js?");

/***/ }),

/***/ "./node_modules/moment/locale/es-us.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/es-us.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Spanish (United States) [es-us]\n//! author : bustta : https://github.com/bustta\n//! author : chrisrodz : https://github.com/chrisrodz\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsShortDot =\n            'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n                '_'\n            ),\n        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n        monthsParse = [\n            /^ene/i,\n            /^feb/i,\n            /^mar/i,\n            /^abr/i,\n            /^may/i,\n            /^jun/i,\n            /^jul/i,\n            /^ago/i,\n            /^sep/i,\n            /^oct/i,\n            /^nov/i,\n            /^dic/i,\n        ],\n        monthsRegex =\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n    var esUs = moment.defineLocale('es-us', {\n        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n            '_'\n        ),\n        monthsShort: function (m, format) {\n            if (!m) {\n                return monthsShortDot;\n            } else if (/-MMM-/.test(format)) {\n                return monthsShort[m.month()];\n            } else {\n                return monthsShortDot[m.month()];\n            }\n        },\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex:\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n        monthsShortStrictRegex:\n            /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'MM/DD/YYYY',\n            LL: 'D [de] MMMM [de] YYYY',\n            LLL: 'D [de] MMMM [de] YYYY h:mm A',\n            LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: function () {\n                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextDay: function () {\n                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextWeek: function () {\n                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastDay: function () {\n                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastWeek: function () {\n                return (\n                    '[el] dddd [pasado a la' +\n                    (this.hours() !== 1 ? 's' : '') +\n                    '] LT'\n                );\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'en %s',\n            past: 'hace %s',\n            s: 'unos segundos',\n            ss: '%d segundos',\n            m: 'un minuto',\n            mm: '%d minutos',\n            h: 'una hora',\n            hh: '%d horas',\n            d: 'un día',\n            dd: '%d días',\n            w: 'una semana',\n            ww: '%d semanas',\n            M: 'un mes',\n            MM: '%d meses',\n            y: 'un año',\n            yy: '%d años',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return esUs;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/es-us.js?");

/***/ }),

/***/ "./node_modules/moment/locale/es.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/es.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Spanish [es]\n//! author : Julio Napurí : https://github.com/julionc\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsShortDot =\n            'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n                '_'\n            ),\n        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n        monthsParse = [\n            /^ene/i,\n            /^feb/i,\n            /^mar/i,\n            /^abr/i,\n            /^may/i,\n            /^jun/i,\n            /^jul/i,\n            /^ago/i,\n            /^sep/i,\n            /^oct/i,\n            /^nov/i,\n            /^dic/i,\n        ],\n        monthsRegex =\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n    var es = moment.defineLocale('es', {\n        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n            '_'\n        ),\n        monthsShort: function (m, format) {\n            if (!m) {\n                return monthsShortDot;\n            } else if (/-MMM-/.test(format)) {\n                return monthsShort[m.month()];\n            } else {\n                return monthsShortDot[m.month()];\n            }\n        },\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex:\n            /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n        monthsShortStrictRegex:\n            /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D [de] MMMM [de] YYYY',\n            LLL: 'D [de] MMMM [de] YYYY H:mm',\n            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',\n        },\n        calendar: {\n            sameDay: function () {\n                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextDay: function () {\n                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            nextWeek: function () {\n                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastDay: function () {\n                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n            },\n            lastWeek: function () {\n                return (\n                    '[el] dddd [pasado a la' +\n                    (this.hours() !== 1 ? 's' : '') +\n                    '] LT'\n                );\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'en %s',\n            past: 'hace %s',\n            s: 'unos segundos',\n            ss: '%d segundos',\n            m: 'un minuto',\n            mm: '%d minutos',\n            h: 'una hora',\n            hh: '%d horas',\n            d: 'un día',\n            dd: '%d días',\n            w: 'una semana',\n            ww: '%d semanas',\n            M: 'un mes',\n            MM: '%d meses',\n            y: 'un año',\n            yy: '%d años',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n        invalidDate: 'Fecha inválida',\n    });\n\n    return es;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/es.js?");

/***/ }),

/***/ "./node_modules/moment/locale/et.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/et.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Estonian [et]\n//! author : Henry Kehlmann : https://github.com/madhenry\n//! improvements : Illimar Tambek : https://github.com/ragulka\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],\n            ss: [number + 'sekundi', number + 'sekundit'],\n            m: ['ühe minuti', 'üks minut'],\n            mm: [number + ' minuti', number + ' minutit'],\n            h: ['ühe tunni', 'tund aega', 'üks tund'],\n            hh: [number + ' tunni', number + ' tundi'],\n            d: ['ühe päeva', 'üks päev'],\n            M: ['kuu aja', 'kuu aega', 'üks kuu'],\n            MM: [number + ' kuu', number + ' kuud'],\n            y: ['ühe aasta', 'aasta', 'üks aasta'],\n            yy: [number + ' aasta', number + ' aastat'],\n        };\n        if (withoutSuffix) {\n            return format[key][2] ? format[key][2] : format[key][1];\n        }\n        return isFuture ? format[key][0] : format[key][1];\n    }\n\n    var et = moment.defineLocale('et', {\n        months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(\n            '_'\n        ),\n        monthsShort:\n            'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),\n        weekdays:\n            'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(\n                '_'\n            ),\n        weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),\n        weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY H:mm',\n            LLLL: 'dddd, D. MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[Täna,] LT',\n            nextDay: '[Homme,] LT',\n            nextWeek: '[Järgmine] dddd LT',\n            lastDay: '[Eile,] LT',\n            lastWeek: '[Eelmine] dddd LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s pärast',\n            past: '%s tagasi',\n            s: processRelativeTime,\n            ss: processRelativeTime,\n            m: processRelativeTime,\n            mm: processRelativeTime,\n            h: processRelativeTime,\n            hh: processRelativeTime,\n            d: processRelativeTime,\n            dd: '%d päeva',\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return et;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/et.js?");

/***/ }),

/***/ "./node_modules/moment/locale/eu.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/eu.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Basque [eu]\n//! author : Eneko Illarramendi : https://github.com/eillarra\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var eu = moment.defineLocale('eu', {\n        months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(\n            '_'\n        ),\n        monthsShort:\n            'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays:\n            'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(\n                '_'\n            ),\n        weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),\n        weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY-MM-DD',\n            LL: 'YYYY[ko] MMMM[ren] D[a]',\n            LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',\n            LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',\n            l: 'YYYY-M-D',\n            ll: 'YYYY[ko] MMM D[a]',\n            lll: 'YYYY[ko] MMM D[a] HH:mm',\n            llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',\n        },\n        calendar: {\n            sameDay: '[gaur] LT[etan]',\n            nextDay: '[bihar] LT[etan]',\n            nextWeek: 'dddd LT[etan]',\n            lastDay: '[atzo] LT[etan]',\n            lastWeek: '[aurreko] dddd LT[etan]',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s barru',\n            past: 'duela %s',\n            s: 'segundo batzuk',\n            ss: '%d segundo',\n            m: 'minutu bat',\n            mm: '%d minutu',\n            h: 'ordu bat',\n            hh: '%d ordu',\n            d: 'egun bat',\n            dd: '%d egun',\n            M: 'hilabete bat',\n            MM: '%d hilabete',\n            y: 'urte bat',\n            yy: '%d urte',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return eu;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/eu.js?");

/***/ }),

/***/ "./node_modules/moment/locale/fa.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/fa.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Persian [fa]\n//! author : Ebrahim Byagowi : https://github.com/ebraminio\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '۱',\n            2: '۲',\n            3: '۳',\n            4: '۴',\n            5: '۵',\n            6: '۶',\n            7: '۷',\n            8: '۸',\n            9: '۹',\n            0: '۰',\n        },\n        numberMap = {\n            '۱': '1',\n            '۲': '2',\n            '۳': '3',\n            '۴': '4',\n            '۵': '5',\n            '۶': '6',\n            '۷': '7',\n            '۸': '8',\n            '۹': '9',\n            '۰': '0',\n        };\n\n    var fa = moment.defineLocale('fa', {\n        months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(\n            '_'\n        ),\n        monthsShort:\n            'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(\n                '_'\n            ),\n        weekdays:\n            'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split(\n                '_'\n            ),\n        weekdaysShort:\n            'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split(\n                '_'\n            ),\n        weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /قبل از ظهر|بعد از ظهر/,\n        isPM: function (input) {\n            return /بعد از ظهر/.test(input);\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'قبل از ظهر';\n            } else {\n                return 'بعد از ظهر';\n            }\n        },\n        calendar: {\n            sameDay: '[امروز ساعت] LT',\n            nextDay: '[فردا ساعت] LT',\n            nextWeek: 'dddd [ساعت] LT',\n            lastDay: '[دیروز ساعت] LT',\n            lastWeek: 'dddd [پیش] [ساعت] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'در %s',\n            past: '%s پیش',\n            s: 'چند ثانیه',\n            ss: '%d ثانیه',\n            m: 'یک دقیقه',\n            mm: '%d دقیقه',\n            h: 'یک ساعت',\n            hh: '%d ساعت',\n            d: 'یک روز',\n            dd: '%d روز',\n            M: 'یک ماه',\n            MM: '%d ماه',\n            y: 'یک سال',\n            yy: '%d سال',\n        },\n        preparse: function (string) {\n            return string\n                .replace(/[۰-۹]/g, function (match) {\n                    return numberMap[match];\n                })\n                .replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string\n                .replace(/\\d/g, function (match) {\n                    return symbolMap[match];\n                })\n                .replace(/,/g, '،');\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}م/,\n        ordinal: '%dم',\n        week: {\n            dow: 6, // Saturday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return fa;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/fa.js?");

/***/ }),

/***/ "./node_modules/moment/locale/fi.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/fi.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Finnish [fi]\n//! author : Tarmo Aidantausta : https://github.com/bleadof\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var numbersPast =\n            'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(\n                ' '\n            ),\n        numbersFuture = [\n            'nolla',\n            'yhden',\n            'kahden',\n            'kolmen',\n            'neljän',\n            'viiden',\n            'kuuden',\n            numbersPast[7],\n            numbersPast[8],\n            numbersPast[9],\n        ];\n    function translate(number, withoutSuffix, key, isFuture) {\n        var result = '';\n        switch (key) {\n            case 's':\n                return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';\n            case 'ss':\n                result = isFuture ? 'sekunnin' : 'sekuntia';\n                break;\n            case 'm':\n                return isFuture ? 'minuutin' : 'minuutti';\n            case 'mm':\n                result = isFuture ? 'minuutin' : 'minuuttia';\n                break;\n            case 'h':\n                return isFuture ? 'tunnin' : 'tunti';\n            case 'hh':\n                result = isFuture ? 'tunnin' : 'tuntia';\n                break;\n            case 'd':\n                return isFuture ? 'päivän' : 'päivä';\n            case 'dd':\n                result = isFuture ? 'päivän' : 'päivää';\n                break;\n            case 'M':\n                return isFuture ? 'kuukauden' : 'kuukausi';\n            case 'MM':\n                result = isFuture ? 'kuukauden' : 'kuukautta';\n                break;\n            case 'y':\n                return isFuture ? 'vuoden' : 'vuosi';\n            case 'yy':\n                result = isFuture ? 'vuoden' : 'vuotta';\n                break;\n        }\n        result = verbalNumber(number, isFuture) + ' ' + result;\n        return result;\n    }\n    function verbalNumber(number, isFuture) {\n        return number < 10\n            ? isFuture\n                ? numbersFuture[number]\n                : numbersPast[number]\n            : number;\n    }\n\n    var fi = moment.defineLocale('fi', {\n        months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(\n            '_'\n        ),\n        monthsShort:\n            'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(\n                '_'\n            ),\n        weekdays:\n            'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(\n                '_'\n            ),\n        weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),\n        weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),\n        longDateFormat: {\n            LT: 'HH.mm',\n            LTS: 'HH.mm.ss',\n            L: 'DD.MM.YYYY',\n            LL: 'Do MMMM[ta] YYYY',\n            LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',\n            LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',\n            l: 'D.M.YYYY',\n            ll: 'Do MMM YYYY',\n            lll: 'Do MMM YYYY, [klo] HH.mm',\n            llll: 'ddd, Do MMM YYYY, [klo] HH.mm',\n        },\n        calendar: {\n            sameDay: '[tänään] [klo] LT',\n            nextDay: '[huomenna] [klo] LT',\n            nextWeek: 'dddd [klo] LT',\n            lastDay: '[eilen] [klo] LT',\n            lastWeek: '[viime] dddd[na] [klo] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s päästä',\n            past: '%s sitten',\n            s: translate,\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: translate,\n            dd: translate,\n            M: translate,\n            MM: translate,\n            y: translate,\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return fi;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/fi.js?");

/***/ }),

/***/ "./node_modules/moment/locale/fil.js":
/*!*******************************************!*\
  !*** ./node_modules/moment/locale/fil.js ***!
  \*******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Filipino [fil]\n//! author : Dan Hagman : https://github.com/hagmandan\n//! author : Matthew Co : https://github.com/matthewdeeco\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var fil = moment.defineLocale('fil', {\n        months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(\n            '_'\n        ),\n        monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\n        weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(\n            '_'\n        ),\n        weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\n        weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'MM/D/YYYY',\n            LL: 'MMMM D, YYYY',\n            LLL: 'MMMM D, YYYY HH:mm',\n            LLLL: 'dddd, MMMM DD, YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: 'LT [ngayong araw]',\n            nextDay: '[Bukas ng] LT',\n            nextWeek: 'LT [sa susunod na] dddd',\n            lastDay: 'LT [kahapon]',\n            lastWeek: 'LT [noong nakaraang] dddd',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'sa loob ng %s',\n            past: '%s ang nakalipas',\n            s: 'ilang segundo',\n            ss: '%d segundo',\n            m: 'isang minuto',\n            mm: '%d minuto',\n            h: 'isang oras',\n            hh: '%d oras',\n            d: 'isang araw',\n            dd: '%d araw',\n            M: 'isang buwan',\n            MM: '%d buwan',\n            y: 'isang taon',\n            yy: '%d taon',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}/,\n        ordinal: function (number) {\n            return number;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return fil;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/fil.js?");

/***/ }),

/***/ "./node_modules/moment/locale/fo.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/fo.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Faroese [fo]\n//! author : Ragnar Johannesen : https://github.com/ragnar123\n//! author : Kristian Sakarisson : https://github.com/sakarisson\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var fo = moment.defineLocale('fo', {\n        months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(\n            '_'\n        ),\n        monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),\n        weekdays:\n            'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(\n                '_'\n            ),\n        weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),\n        weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D. MMMM, YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Í dag kl.] LT',\n            nextDay: '[Í morgin kl.] LT',\n            nextWeek: 'dddd [kl.] LT',\n            lastDay: '[Í gjár kl.] LT',\n            lastWeek: '[síðstu] dddd [kl] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'um %s',\n            past: '%s síðani',\n            s: 'fá sekund',\n            ss: '%d sekundir',\n            m: 'ein minuttur',\n            mm: '%d minuttir',\n            h: 'ein tími',\n            hh: '%d tímar',\n            d: 'ein dagur',\n            dd: '%d dagar',\n            M: 'ein mánaður',\n            MM: '%d mánaðir',\n            y: 'eitt ár',\n            yy: '%d ár',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return fo;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/fo.js?");

/***/ }),

/***/ "./node_modules/moment/locale/fr-ca.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/fr-ca.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : French (Canada) [fr-ca]\n//! author : Jonathan Abourbih : https://github.com/jonbca\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var frCa = moment.defineLocale('fr-ca', {\n        months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(\n            '_'\n        ),\n        monthsShort:\n            'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n        weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n        weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY-MM-DD',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Aujourd’hui à] LT',\n            nextDay: '[Demain à] LT',\n            nextWeek: 'dddd [à] LT',\n            lastDay: '[Hier à] LT',\n            lastWeek: 'dddd [dernier à] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'dans %s',\n            past: 'il y a %s',\n            s: 'quelques secondes',\n            ss: '%d secondes',\n            m: 'une minute',\n            mm: '%d minutes',\n            h: 'une heure',\n            hh: '%d heures',\n            d: 'un jour',\n            dd: '%d jours',\n            M: 'un mois',\n            MM: '%d mois',\n            y: 'un an',\n            yy: '%d ans',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(er|e)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                // Words with masculine grammatical gender: mois, trimestre, jour\n                default:\n                case 'M':\n                case 'Q':\n                case 'D':\n                case 'DDD':\n                case 'd':\n                    return number + (number === 1 ? 'er' : 'e');\n\n                // Words with feminine grammatical gender: semaine\n                case 'w':\n                case 'W':\n                    return number + (number === 1 ? 're' : 'e');\n            }\n        },\n    });\n\n    return frCa;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/fr-ca.js?");

/***/ }),

/***/ "./node_modules/moment/locale/fr-ch.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/fr-ch.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : French (Switzerland) [fr-ch]\n//! author : Gaspard Bucher : https://github.com/gaspard\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var frCh = moment.defineLocale('fr-ch', {\n        months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(\n            '_'\n        ),\n        monthsShort:\n            'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n        weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n        weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Aujourd’hui à] LT',\n            nextDay: '[Demain à] LT',\n            nextWeek: 'dddd [à] LT',\n            lastDay: '[Hier à] LT',\n            lastWeek: 'dddd [dernier à] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'dans %s',\n            past: 'il y a %s',\n            s: 'quelques secondes',\n            ss: '%d secondes',\n            m: 'une minute',\n            mm: '%d minutes',\n            h: 'une heure',\n            hh: '%d heures',\n            d: 'un jour',\n            dd: '%d jours',\n            M: 'un mois',\n            MM: '%d mois',\n            y: 'un an',\n            yy: '%d ans',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(er|e)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                // Words with masculine grammatical gender: mois, trimestre, jour\n                default:\n                case 'M':\n                case 'Q':\n                case 'D':\n                case 'DDD':\n                case 'd':\n                    return number + (number === 1 ? 'er' : 'e');\n\n                // Words with feminine grammatical gender: semaine\n                case 'w':\n                case 'W':\n                    return number + (number === 1 ? 're' : 'e');\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return frCh;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/fr-ch.js?");

/***/ }),

/***/ "./node_modules/moment/locale/fr.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/fr.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : French [fr]\n//! author : John Fischer : https://github.com/jfroffice\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsStrictRegex =\n            /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,\n        monthsShortStrictRegex =\n            /(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?)/i,\n        monthsRegex =\n            /(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,\n        monthsParse = [\n            /^janv/i,\n            /^févr/i,\n            /^mars/i,\n            /^avr/i,\n            /^mai/i,\n            /^juin/i,\n            /^juil/i,\n            /^août/i,\n            /^sept/i,\n            /^oct/i,\n            /^nov/i,\n            /^déc/i,\n        ];\n\n    var fr = moment.defineLocale('fr', {\n        months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(\n            '_'\n        ),\n        monthsShort:\n            'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(\n                '_'\n            ),\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex: monthsStrictRegex,\n        monthsShortStrictRegex: monthsShortStrictRegex,\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n        weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n        weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n        weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Aujourd’hui à] LT',\n            nextDay: '[Demain à] LT',\n            nextWeek: 'dddd [à] LT',\n            lastDay: '[Hier à] LT',\n            lastWeek: 'dddd [dernier à] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'dans %s',\n            past: 'il y a %s',\n            s: 'quelques secondes',\n            ss: '%d secondes',\n            m: 'une minute',\n            mm: '%d minutes',\n            h: 'une heure',\n            hh: '%d heures',\n            d: 'un jour',\n            dd: '%d jours',\n            w: 'une semaine',\n            ww: '%d semaines',\n            M: 'un mois',\n            MM: '%d mois',\n            y: 'un an',\n            yy: '%d ans',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(er|)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                // TODO: Return 'e' when day of month > 1. Move this case inside\n                // block for masculine words below.\n                // See https://github.com/moment/moment/issues/3375\n                case 'D':\n                    return number + (number === 1 ? 'er' : '');\n\n                // Words with masculine grammatical gender: mois, trimestre, jour\n                default:\n                case 'M':\n                case 'Q':\n                case 'DDD':\n                case 'd':\n                    return number + (number === 1 ? 'er' : 'e');\n\n                // Words with feminine grammatical gender: semaine\n                case 'w':\n                case 'W':\n                    return number + (number === 1 ? 're' : 'e');\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return fr;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/fr.js?");

/***/ }),

/***/ "./node_modules/moment/locale/fy.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/fy.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Frisian [fy]\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsShortWithDots =\n            'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),\n        monthsShortWithoutDots =\n            'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');\n\n    var fy = moment.defineLocale('fy', {\n        months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(\n            '_'\n        ),\n        monthsShort: function (m, format) {\n            if (!m) {\n                return monthsShortWithDots;\n            } else if (/-MMM-/.test(format)) {\n                return monthsShortWithoutDots[m.month()];\n            } else {\n                return monthsShortWithDots[m.month()];\n            }\n        },\n        monthsParseExact: true,\n        weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(\n            '_'\n        ),\n        weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),\n        weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD-MM-YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[hjoed om] LT',\n            nextDay: '[moarn om] LT',\n            nextWeek: 'dddd [om] LT',\n            lastDay: '[juster om] LT',\n            lastWeek: '[ôfrûne] dddd [om] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'oer %s',\n            past: '%s lyn',\n            s: 'in pear sekonden',\n            ss: '%d sekonden',\n            m: 'ien minút',\n            mm: '%d minuten',\n            h: 'ien oere',\n            hh: '%d oeren',\n            d: 'ien dei',\n            dd: '%d dagen',\n            M: 'ien moanne',\n            MM: '%d moannen',\n            y: 'ien jier',\n            yy: '%d jierren',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n        ordinal: function (number) {\n            return (\n                number +\n                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n            );\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return fy;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/fy.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ga.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ga.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Irish or Irish Gaelic [ga]\n//! author : André Silva : https://github.com/askpt\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var months = [\n            'Eanáir',\n            'Feabhra',\n            'Márta',\n            'Aibreán',\n            'Bealtaine',\n            'Meitheamh',\n            'Iúil',\n            'Lúnasa',\n            'Meán Fómhair',\n            'Deireadh Fómhair',\n            'Samhain',\n            'Nollaig',\n        ],\n        monthsShort = [\n            'Ean',\n            'Feabh',\n            'Márt',\n            'Aib',\n            'Beal',\n            'Meith',\n            'Iúil',\n            'Lún',\n            'M.F.',\n            'D.F.',\n            'Samh',\n            'Noll',\n        ],\n        weekdays = [\n            'Dé Domhnaigh',\n            'Dé Luain',\n            'Dé Máirt',\n            'Dé Céadaoin',\n            'Déardaoin',\n            'Dé hAoine',\n            'Dé Sathairn',\n        ],\n        weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],\n        weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];\n\n    var ga = moment.defineLocale('ga', {\n        months: months,\n        monthsShort: monthsShort,\n        monthsParseExact: true,\n        weekdays: weekdays,\n        weekdaysShort: weekdaysShort,\n        weekdaysMin: weekdaysMin,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Inniu ag] LT',\n            nextDay: '[Amárach ag] LT',\n            nextWeek: 'dddd [ag] LT',\n            lastDay: '[Inné ag] LT',\n            lastWeek: 'dddd [seo caite] [ag] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'i %s',\n            past: '%s ó shin',\n            s: 'cúpla soicind',\n            ss: '%d soicind',\n            m: 'nóiméad',\n            mm: '%d nóiméad',\n            h: 'uair an chloig',\n            hh: '%d uair an chloig',\n            d: 'lá',\n            dd: '%d lá',\n            M: 'mí',\n            MM: '%d míonna',\n            y: 'bliain',\n            yy: '%d bliain',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(d|na|mh)/,\n        ordinal: function (number) {\n            var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return ga;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ga.js?");

/***/ }),

/***/ "./node_modules/moment/locale/gd.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/gd.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Scottish Gaelic [gd]\n//! author : Jon Ashdown : https://github.com/jonashdown\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var months = [\n            'Am Faoilleach',\n            'An Gearran',\n            'Am Màrt',\n            'An Giblean',\n            'An Cèitean',\n            'An t-Ògmhios',\n            'An t-Iuchar',\n            'An Lùnastal',\n            'An t-Sultain',\n            'An Dàmhair',\n            'An t-Samhain',\n            'An Dùbhlachd',\n        ],\n        monthsShort = [\n            'Faoi',\n            'Gear',\n            'Màrt',\n            'Gibl',\n            'Cèit',\n            'Ògmh',\n            'Iuch',\n            'Lùn',\n            'Sult',\n            'Dàmh',\n            'Samh',\n            'Dùbh',\n        ],\n        weekdays = [\n            'Didòmhnaich',\n            'Diluain',\n            'Dimàirt',\n            'Diciadain',\n            'Diardaoin',\n            'Dihaoine',\n            'Disathairne',\n        ],\n        weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],\n        weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];\n\n    var gd = moment.defineLocale('gd', {\n        months: months,\n        monthsShort: monthsShort,\n        monthsParseExact: true,\n        weekdays: weekdays,\n        weekdaysShort: weekdaysShort,\n        weekdaysMin: weekdaysMin,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[An-diugh aig] LT',\n            nextDay: '[A-màireach aig] LT',\n            nextWeek: 'dddd [aig] LT',\n            lastDay: '[An-dè aig] LT',\n            lastWeek: 'dddd [seo chaidh] [aig] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'ann an %s',\n            past: 'bho chionn %s',\n            s: 'beagan diogan',\n            ss: '%d diogan',\n            m: 'mionaid',\n            mm: '%d mionaidean',\n            h: 'uair',\n            hh: '%d uairean',\n            d: 'latha',\n            dd: '%d latha',\n            M: 'mìos',\n            MM: '%d mìosan',\n            y: 'bliadhna',\n            yy: '%d bliadhna',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(d|na|mh)/,\n        ordinal: function (number) {\n            var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return gd;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/gd.js?");

/***/ }),

/***/ "./node_modules/moment/locale/gl.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/gl.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Galician [gl]\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var gl = moment.defineLocale('gl', {\n        months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(\n            '_'\n        ),\n        monthsShort:\n            'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),\n        weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),\n        weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D [de] MMMM [de] YYYY',\n            LLL: 'D [de] MMMM [de] YYYY H:mm',\n            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',\n        },\n        calendar: {\n            sameDay: function () {\n                return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';\n            },\n            nextDay: function () {\n                return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';\n            },\n            nextWeek: function () {\n                return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';\n            },\n            lastDay: function () {\n                return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';\n            },\n            lastWeek: function () {\n                return (\n                    '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'\n                );\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: function (str) {\n                if (str.indexOf('un') === 0) {\n                    return 'n' + str;\n                }\n                return 'en ' + str;\n            },\n            past: 'hai %s',\n            s: 'uns segundos',\n            ss: '%d segundos',\n            m: 'un minuto',\n            mm: '%d minutos',\n            h: 'unha hora',\n            hh: '%d horas',\n            d: 'un día',\n            dd: '%d días',\n            M: 'un mes',\n            MM: '%d meses',\n            y: 'un ano',\n            yy: '%d anos',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return gl;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/gl.js?");

/***/ }),

/***/ "./node_modules/moment/locale/gom-deva.js":
/*!************************************************!*\
  !*** ./node_modules/moment/locale/gom-deva.js ***!
  \************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Konkani Devanagari script [gom-deva]\n//! author : The Discoverer : https://github.com/WikiDiscoverer\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],\n            ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],\n            m: ['एका मिणटान', 'एक मिनूट'],\n            mm: [number + ' मिणटांनी', number + ' मिणटां'],\n            h: ['एका वरान', 'एक वर'],\n            hh: [number + ' वरांनी', number + ' वरां'],\n            d: ['एका दिसान', 'एक दीस'],\n            dd: [number + ' दिसांनी', number + ' दीस'],\n            M: ['एका म्हयन्यान', 'एक म्हयनो'],\n            MM: [number + ' म्हयन्यानी', number + ' म्हयने'],\n            y: ['एका वर्सान', 'एक वर्स'],\n            yy: [number + ' वर्सांनी', number + ' वर्सां'],\n        };\n        return isFuture ? format[key][0] : format[key][1];\n    }\n\n    var gomDeva = moment.defineLocale('gom-deva', {\n        months: {\n            standalone:\n                'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(\n                    '_'\n                ),\n            format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(\n                '_'\n            ),\n            isFormat: /MMMM(\\s)+D[oD]?/,\n        },\n        monthsShort:\n            'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),\n        weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),\n        weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'A h:mm [वाजतां]',\n            LTS: 'A h:mm:ss [वाजतां]',\n            L: 'DD-MM-YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY A h:mm [वाजतां]',\n            LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',\n            llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',\n        },\n        calendar: {\n            sameDay: '[आयज] LT',\n            nextDay: '[फाल्यां] LT',\n            nextWeek: '[फुडलो] dddd[,] LT',\n            lastDay: '[काल] LT',\n            lastWeek: '[फाटलो] dddd[,] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s',\n            past: '%s आदीं',\n            s: processRelativeTime,\n            ss: processRelativeTime,\n            m: processRelativeTime,\n            mm: processRelativeTime,\n            h: processRelativeTime,\n            hh: processRelativeTime,\n            d: processRelativeTime,\n            dd: processRelativeTime,\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(वेर)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                // the ordinal 'वेर' only applies to day of the month\n                case 'D':\n                    return number + 'वेर';\n                default:\n                case 'M':\n                case 'Q':\n                case 'DDD':\n                case 'd':\n                case 'w':\n                case 'W':\n                    return number;\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week\n            doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)\n        },\n        meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'राती') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'सकाळीं') {\n                return hour;\n            } else if (meridiem === 'दनपारां') {\n                return hour > 12 ? hour : hour + 12;\n            } else if (meridiem === 'सांजे') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'राती';\n            } else if (hour < 12) {\n                return 'सकाळीं';\n            } else if (hour < 16) {\n                return 'दनपारां';\n            } else if (hour < 20) {\n                return 'सांजे';\n            } else {\n                return 'राती';\n            }\n        },\n    });\n\n    return gomDeva;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/gom-deva.js?");

/***/ }),

/***/ "./node_modules/moment/locale/gom-latn.js":
/*!************************************************!*\
  !*** ./node_modules/moment/locale/gom-latn.js ***!
  \************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Konkani Latin script [gom-latn]\n//! author : The Discoverer : https://github.com/WikiDiscoverer\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            s: ['thoddea sekondamni', 'thodde sekond'],\n            ss: [number + ' sekondamni', number + ' sekond'],\n            m: ['eka mintan', 'ek minut'],\n            mm: [number + ' mintamni', number + ' mintam'],\n            h: ['eka voran', 'ek vor'],\n            hh: [number + ' voramni', number + ' voram'],\n            d: ['eka disan', 'ek dis'],\n            dd: [number + ' disamni', number + ' dis'],\n            M: ['eka mhoinean', 'ek mhoino'],\n            MM: [number + ' mhoineamni', number + ' mhoine'],\n            y: ['eka vorsan', 'ek voros'],\n            yy: [number + ' vorsamni', number + ' vorsam'],\n        };\n        return isFuture ? format[key][0] : format[key][1];\n    }\n\n    var gomLatn = moment.defineLocale('gom-latn', {\n        months: {\n            standalone:\n                'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(\n                    '_'\n                ),\n            format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(\n                '_'\n            ),\n            isFormat: /MMMM(\\s)+D[oD]?/,\n        },\n        monthsShort:\n            'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),\n        monthsParseExact: true,\n        weekdays: \"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var\".split('_'),\n        weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),\n        weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'A h:mm [vazta]',\n            LTS: 'A h:mm:ss [vazta]',\n            L: 'DD-MM-YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY A h:mm [vazta]',\n            LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',\n            llll: 'ddd, D MMM YYYY, A h:mm [vazta]',\n        },\n        calendar: {\n            sameDay: '[Aiz] LT',\n            nextDay: '[Faleam] LT',\n            nextWeek: '[Fuddlo] dddd[,] LT',\n            lastDay: '[Kal] LT',\n            lastWeek: '[Fattlo] dddd[,] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s',\n            past: '%s adim',\n            s: processRelativeTime,\n            ss: processRelativeTime,\n            m: processRelativeTime,\n            mm: processRelativeTime,\n            h: processRelativeTime,\n            hh: processRelativeTime,\n            d: processRelativeTime,\n            dd: processRelativeTime,\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(er)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                // the ordinal 'er' only applies to day of the month\n                case 'D':\n                    return number + 'er';\n                default:\n                case 'M':\n                case 'Q':\n                case 'DDD':\n                case 'd':\n                case 'w':\n                case 'W':\n                    return number;\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week\n            doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)\n        },\n        meridiemParse: /rati|sokallim|donparam|sanje/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'rati') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'sokallim') {\n                return hour;\n            } else if (meridiem === 'donparam') {\n                return hour > 12 ? hour : hour + 12;\n            } else if (meridiem === 'sanje') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'rati';\n            } else if (hour < 12) {\n                return 'sokallim';\n            } else if (hour < 16) {\n                return 'donparam';\n            } else if (hour < 20) {\n                return 'sanje';\n            } else {\n                return 'rati';\n            }\n        },\n    });\n\n    return gomLatn;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/gom-latn.js?");

/***/ }),

/***/ "./node_modules/moment/locale/gu.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/gu.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Gujarati [gu]\n//! author : Kaushik Thanki : https://github.com/Kaushik1987\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '૧',\n            2: '૨',\n            3: '૩',\n            4: '૪',\n            5: '૫',\n            6: '૬',\n            7: '૭',\n            8: '૮',\n            9: '૯',\n            0: '૦',\n        },\n        numberMap = {\n            '૧': '1',\n            '૨': '2',\n            '૩': '3',\n            '૪': '4',\n            '૫': '5',\n            '૬': '6',\n            '૭': '7',\n            '૮': '8',\n            '૯': '9',\n            '૦': '0',\n        };\n\n    var gu = moment.defineLocale('gu', {\n        months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(\n            '_'\n        ),\n        monthsShort:\n            'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(\n            '_'\n        ),\n        weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),\n        weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm વાગ્યે',\n            LTS: 'A h:mm:ss વાગ્યે',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm વાગ્યે',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',\n        },\n        calendar: {\n            sameDay: '[આજ] LT',\n            nextDay: '[કાલે] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[ગઇકાલે] LT',\n            lastWeek: '[પાછલા] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s મા',\n            past: '%s પહેલા',\n            s: 'અમુક પળો',\n            ss: '%d સેકંડ',\n            m: 'એક મિનિટ',\n            mm: '%d મિનિટ',\n            h: 'એક કલાક',\n            hh: '%d કલાક',\n            d: 'એક દિવસ',\n            dd: '%d દિવસ',\n            M: 'એક મહિનો',\n            MM: '%d મહિનો',\n            y: 'એક વર્ષ',\n            yy: '%d વર્ષ',\n        },\n        preparse: function (string) {\n            return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        // Gujarati notation for meridiems are quite fuzzy in practice. While there exists\n        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.\n        meridiemParse: /રાત|બપોર|સવાર|સાંજ/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'રાત') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'સવાર') {\n                return hour;\n            } else if (meridiem === 'બપોર') {\n                return hour >= 10 ? hour : hour + 12;\n            } else if (meridiem === 'સાંજ') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'રાત';\n            } else if (hour < 10) {\n                return 'સવાર';\n            } else if (hour < 17) {\n                return 'બપોર';\n            } else if (hour < 20) {\n                return 'સાંજ';\n            } else {\n                return 'રાત';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return gu;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/gu.js?");

/***/ }),

/***/ "./node_modules/moment/locale/he.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/he.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Hebrew [he]\n//! author : Tomer Cohen : https://github.com/tomer\n//! author : Moshe Simantov : https://github.com/DevelopmentIL\n//! author : Tal Ater : https://github.com/TalAter\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var he = moment.defineLocale('he', {\n        months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(\n            '_'\n        ),\n        monthsShort:\n            'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),\n        weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),\n        weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),\n        weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D [ב]MMMM YYYY',\n            LLL: 'D [ב]MMMM YYYY HH:mm',\n            LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',\n            l: 'D/M/YYYY',\n            ll: 'D MMM YYYY',\n            lll: 'D MMM YYYY HH:mm',\n            llll: 'ddd, D MMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[היום ב־]LT',\n            nextDay: '[מחר ב־]LT',\n            nextWeek: 'dddd [בשעה] LT',\n            lastDay: '[אתמול ב־]LT',\n            lastWeek: '[ביום] dddd [האחרון בשעה] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'בעוד %s',\n            past: 'לפני %s',\n            s: 'מספר שניות',\n            ss: '%d שניות',\n            m: 'דקה',\n            mm: '%d דקות',\n            h: 'שעה',\n            hh: function (number) {\n                if (number === 2) {\n                    return 'שעתיים';\n                }\n                return number + ' שעות';\n            },\n            d: 'יום',\n            dd: function (number) {\n                if (number === 2) {\n                    return 'יומיים';\n                }\n                return number + ' ימים';\n            },\n            M: 'חודש',\n            MM: function (number) {\n                if (number === 2) {\n                    return 'חודשיים';\n                }\n                return number + ' חודשים';\n            },\n            y: 'שנה',\n            yy: function (number) {\n                if (number === 2) {\n                    return 'שנתיים';\n                } else if (number % 10 === 0 && number !== 10) {\n                    return number + ' שנה';\n                }\n                return number + ' שנים';\n            },\n        },\n        meridiemParse:\n            /אחה\"צ|לפנה\"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,\n        isPM: function (input) {\n            return /^(אחה\"צ|אחרי הצהריים|בערב)$/.test(input);\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 5) {\n                return 'לפנות בוקר';\n            } else if (hour < 10) {\n                return 'בבוקר';\n            } else if (hour < 12) {\n                return isLower ? 'לפנה\"צ' : 'לפני הצהריים';\n            } else if (hour < 18) {\n                return isLower ? 'אחה\"צ' : 'אחרי הצהריים';\n            } else {\n                return 'בערב';\n            }\n        },\n    });\n\n    return he;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/he.js?");

/***/ }),

/***/ "./node_modules/moment/locale/hi.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/hi.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Hindi [hi]\n//! author : Mayank Singhal : https://github.com/mayanksinghal\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '१',\n            2: '२',\n            3: '३',\n            4: '४',\n            5: '५',\n            6: '६',\n            7: '७',\n            8: '८',\n            9: '९',\n            0: '०',\n        },\n        numberMap = {\n            '१': '1',\n            '२': '2',\n            '३': '3',\n            '४': '4',\n            '५': '5',\n            '६': '6',\n            '७': '7',\n            '८': '8',\n            '९': '9',\n            '०': '0',\n        },\n        monthsParse = [\n            /^जन/i,\n            /^फ़र|फर/i,\n            /^मार्च/i,\n            /^अप्रै/i,\n            /^मई/i,\n            /^जून/i,\n            /^जुल/i,\n            /^अग/i,\n            /^सितं|सित/i,\n            /^अक्टू/i,\n            /^नव|नवं/i,\n            /^दिसं|दिस/i,\n        ],\n        shortMonthsParse = [\n            /^जन/i,\n            /^फ़र/i,\n            /^मार्च/i,\n            /^अप्रै/i,\n            /^मई/i,\n            /^जून/i,\n            /^जुल/i,\n            /^अग/i,\n            /^सित/i,\n            /^अक्टू/i,\n            /^नव/i,\n            /^दिस/i,\n        ];\n\n    var hi = moment.defineLocale('hi', {\n        months: {\n            format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(\n                '_'\n            ),\n            standalone:\n                'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split(\n                    '_'\n                ),\n        },\n        monthsShort:\n            'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),\n        weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n        weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),\n        weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm बजे',\n            LTS: 'A h:mm:ss बजे',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm बजे',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',\n        },\n\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: shortMonthsParse,\n\n        monthsRegex:\n            /^(जनवरी|जन\\.?|फ़रवरी|फरवरी|फ़र\\.?|मार्च?|अप्रैल|अप्रै\\.?|मई?|जून?|जुलाई|जुल\\.?|अगस्त|अग\\.?|सितम्बर|सितंबर|सित\\.?|अक्टूबर|अक्टू\\.?|नवम्बर|नवंबर|नव\\.?|दिसम्बर|दिसंबर|दिस\\.?)/i,\n\n        monthsShortRegex:\n            /^(जनवरी|जन\\.?|फ़रवरी|फरवरी|फ़र\\.?|मार्च?|अप्रैल|अप्रै\\.?|मई?|जून?|जुलाई|जुल\\.?|अगस्त|अग\\.?|सितम्बर|सितंबर|सित\\.?|अक्टूबर|अक्टू\\.?|नवम्बर|नवंबर|नव\\.?|दिसम्बर|दिसंबर|दिस\\.?)/i,\n\n        monthsStrictRegex:\n            /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\\.?|अक्टूबर|अक्टू\\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,\n\n        monthsShortStrictRegex:\n            /^(जन\\.?|फ़र\\.?|मार्च?|अप्रै\\.?|मई?|जून?|जुल\\.?|अग\\.?|सित\\.?|अक्टू\\.?|नव\\.?|दिस\\.?)/i,\n\n        calendar: {\n            sameDay: '[आज] LT',\n            nextDay: '[कल] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[कल] LT',\n            lastWeek: '[पिछले] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s में',\n            past: '%s पहले',\n            s: 'कुछ ही क्षण',\n            ss: '%d सेकंड',\n            m: 'एक मिनट',\n            mm: '%d मिनट',\n            h: 'एक घंटा',\n            hh: '%d घंटे',\n            d: 'एक दिन',\n            dd: '%d दिन',\n            M: 'एक महीने',\n            MM: '%d महीने',\n            y: 'एक वर्ष',\n            yy: '%d वर्ष',\n        },\n        preparse: function (string) {\n            return string.replace(/[१२३४५६७८९०]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        // Hindi notation for meridiems are quite fuzzy in practice. While there exists\n        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.\n        meridiemParse: /रात|सुबह|दोपहर|शाम/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'रात') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'सुबह') {\n                return hour;\n            } else if (meridiem === 'दोपहर') {\n                return hour >= 10 ? hour : hour + 12;\n            } else if (meridiem === 'शाम') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'रात';\n            } else if (hour < 10) {\n                return 'सुबह';\n            } else if (hour < 17) {\n                return 'दोपहर';\n            } else if (hour < 20) {\n                return 'शाम';\n            } else {\n                return 'रात';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return hi;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/hi.js?");

/***/ }),

/***/ "./node_modules/moment/locale/hr.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/hr.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Croatian [hr]\n//! author : Bojan Marković : https://github.com/bmarkovic\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function translate(number, withoutSuffix, key) {\n        var result = number + ' ';\n        switch (key) {\n            case 'ss':\n                if (number === 1) {\n                    result += 'sekunda';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'sekunde';\n                } else {\n                    result += 'sekundi';\n                }\n                return result;\n            case 'm':\n                return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n            case 'mm':\n                if (number === 1) {\n                    result += 'minuta';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'minute';\n                } else {\n                    result += 'minuta';\n                }\n                return result;\n            case 'h':\n                return withoutSuffix ? 'jedan sat' : 'jednog sata';\n            case 'hh':\n                if (number === 1) {\n                    result += 'sat';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'sata';\n                } else {\n                    result += 'sati';\n                }\n                return result;\n            case 'dd':\n                if (number === 1) {\n                    result += 'dan';\n                } else {\n                    result += 'dana';\n                }\n                return result;\n            case 'MM':\n                if (number === 1) {\n                    result += 'mjesec';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'mjeseca';\n                } else {\n                    result += 'mjeseci';\n                }\n                return result;\n            case 'yy':\n                if (number === 1) {\n                    result += 'godina';\n                } else if (number === 2 || number === 3 || number === 4) {\n                    result += 'godine';\n                } else {\n                    result += 'godina';\n                }\n                return result;\n        }\n    }\n\n    var hr = moment.defineLocale('hr', {\n        months: {\n            format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(\n                '_'\n            ),\n            standalone:\n                'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(\n                    '_'\n                ),\n        },\n        monthsShort:\n            'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(\n            '_'\n        ),\n        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'Do MMMM YYYY',\n            LLL: 'Do MMMM YYYY H:mm',\n            LLLL: 'dddd, Do MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[danas u] LT',\n            nextDay: '[sutra u] LT',\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[u] [nedjelju] [u] LT';\n                    case 3:\n                        return '[u] [srijedu] [u] LT';\n                    case 6:\n                        return '[u] [subotu] [u] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[u] dddd [u] LT';\n                }\n            },\n            lastDay: '[jučer u] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[prošlu] [nedjelju] [u] LT';\n                    case 3:\n                        return '[prošlu] [srijedu] [u] LT';\n                    case 6:\n                        return '[prošle] [subote] [u] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[prošli] dddd [u] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'za %s',\n            past: 'prije %s',\n            s: 'par sekundi',\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: 'dan',\n            dd: translate,\n            M: 'mjesec',\n            MM: translate,\n            y: 'godinu',\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return hr;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/hr.js?");

/***/ }),

/***/ "./node_modules/moment/locale/hu.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/hu.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Hungarian [hu]\n//! author : Adam Brunner : https://github.com/adambrunner\n//! author : Peter Viszt  : https://github.com/passatgt\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var weekEndings =\n        'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');\n    function translate(number, withoutSuffix, key, isFuture) {\n        var num = number;\n        switch (key) {\n            case 's':\n                return isFuture || withoutSuffix\n                    ? 'néhány másodperc'\n                    : 'néhány másodperce';\n            case 'ss':\n                return num + (isFuture || withoutSuffix)\n                    ? ' másodperc'\n                    : ' másodperce';\n            case 'm':\n                return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');\n            case 'mm':\n                return num + (isFuture || withoutSuffix ? ' perc' : ' perce');\n            case 'h':\n                return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');\n            case 'hh':\n                return num + (isFuture || withoutSuffix ? ' óra' : ' órája');\n            case 'd':\n                return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');\n            case 'dd':\n                return num + (isFuture || withoutSuffix ? ' nap' : ' napja');\n            case 'M':\n                return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n            case 'MM':\n                return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n            case 'y':\n                return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');\n            case 'yy':\n                return num + (isFuture || withoutSuffix ? ' év' : ' éve');\n        }\n        return '';\n    }\n    function week(isFuture) {\n        return (\n            (isFuture ? '' : '[múlt] ') +\n            '[' +\n            weekEndings[this.day()] +\n            '] LT[-kor]'\n        );\n    }\n\n    var hu = moment.defineLocale('hu', {\n        months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(\n            '_'\n        ),\n        monthsShort:\n            'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),\n        weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),\n        weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'YYYY.MM.DD.',\n            LL: 'YYYY. MMMM D.',\n            LLL: 'YYYY. MMMM D. H:mm',\n            LLLL: 'YYYY. MMMM D., dddd H:mm',\n        },\n        meridiemParse: /de|du/i,\n        isPM: function (input) {\n            return input.charAt(1).toLowerCase() === 'u';\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 12) {\n                return isLower === true ? 'de' : 'DE';\n            } else {\n                return isLower === true ? 'du' : 'DU';\n            }\n        },\n        calendar: {\n            sameDay: '[ma] LT[-kor]',\n            nextDay: '[holnap] LT[-kor]',\n            nextWeek: function () {\n                return week.call(this, true);\n            },\n            lastDay: '[tegnap] LT[-kor]',\n            lastWeek: function () {\n                return week.call(this, false);\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s múlva',\n            past: '%s',\n            s: translate,\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: translate,\n            dd: translate,\n            M: translate,\n            MM: translate,\n            y: translate,\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return hu;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/hu.js?");

/***/ }),

/***/ "./node_modules/moment/locale/hy-am.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/hy-am.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Armenian [hy-am]\n//! author : Armendarabyan : https://github.com/armendarabyan\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var hyAm = moment.defineLocale('hy-am', {\n        months: {\n            format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(\n                '_'\n            ),\n            standalone:\n                'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(\n                    '_'\n                ),\n        },\n        monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),\n        weekdays:\n            'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(\n                '_'\n            ),\n        weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n        weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY թ.',\n            LLL: 'D MMMM YYYY թ., HH:mm',\n            LLLL: 'dddd, D MMMM YYYY թ., HH:mm',\n        },\n        calendar: {\n            sameDay: '[այսօր] LT',\n            nextDay: '[վաղը] LT',\n            lastDay: '[երեկ] LT',\n            nextWeek: function () {\n                return 'dddd [օրը ժամը] LT';\n            },\n            lastWeek: function () {\n                return '[անցած] dddd [օրը ժամը] LT';\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s հետո',\n            past: '%s առաջ',\n            s: 'մի քանի վայրկյան',\n            ss: '%d վայրկյան',\n            m: 'րոպե',\n            mm: '%d րոպե',\n            h: 'ժամ',\n            hh: '%d ժամ',\n            d: 'օր',\n            dd: '%d օր',\n            M: 'ամիս',\n            MM: '%d ամիս',\n            y: 'տարի',\n            yy: '%d տարի',\n        },\n        meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,\n        isPM: function (input) {\n            return /^(ցերեկվա|երեկոյան)$/.test(input);\n        },\n        meridiem: function (hour) {\n            if (hour < 4) {\n                return 'գիշերվա';\n            } else if (hour < 12) {\n                return 'առավոտվա';\n            } else if (hour < 17) {\n                return 'ցերեկվա';\n            } else {\n                return 'երեկոյան';\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}|\\d{1,2}-(ին|րդ)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'DDD':\n                case 'w':\n                case 'W':\n                case 'DDDo':\n                    if (number === 1) {\n                        return number + '-ին';\n                    }\n                    return number + '-րդ';\n                default:\n                    return number;\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return hyAm;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/hy-am.js?");

/***/ }),

/***/ "./node_modules/moment/locale/id.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/id.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Indonesian [id]\n//! author : Mohammad Satrio Utomo : https://github.com/tyok\n//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var id = moment.defineLocale('id', {\n        months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),\n        weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),\n        weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),\n        weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),\n        longDateFormat: {\n            LT: 'HH.mm',\n            LTS: 'HH.mm.ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY [pukul] HH.mm',\n            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n        },\n        meridiemParse: /pagi|siang|sore|malam/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'pagi') {\n                return hour;\n            } else if (meridiem === 'siang') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === 'sore' || meridiem === 'malam') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 11) {\n                return 'pagi';\n            } else if (hours < 15) {\n                return 'siang';\n            } else if (hours < 19) {\n                return 'sore';\n            } else {\n                return 'malam';\n            }\n        },\n        calendar: {\n            sameDay: '[Hari ini pukul] LT',\n            nextDay: '[Besok pukul] LT',\n            nextWeek: 'dddd [pukul] LT',\n            lastDay: '[Kemarin pukul] LT',\n            lastWeek: 'dddd [lalu pukul] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'dalam %s',\n            past: '%s yang lalu',\n            s: 'beberapa detik',\n            ss: '%d detik',\n            m: 'semenit',\n            mm: '%d menit',\n            h: 'sejam',\n            hh: '%d jam',\n            d: 'sehari',\n            dd: '%d hari',\n            M: 'sebulan',\n            MM: '%d bulan',\n            y: 'setahun',\n            yy: '%d tahun',\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return id;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/id.js?");

/***/ }),

/***/ "./node_modules/moment/locale/is.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/is.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Icelandic [is]\n//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function plural(n) {\n        if (n % 100 === 11) {\n            return true;\n        } else if (n % 10 === 1) {\n            return false;\n        }\n        return true;\n    }\n    function translate(number, withoutSuffix, key, isFuture) {\n        var result = number + ' ';\n        switch (key) {\n            case 's':\n                return withoutSuffix || isFuture\n                    ? 'nokkrar sekúndur'\n                    : 'nokkrum sekúndum';\n            case 'ss':\n                if (plural(number)) {\n                    return (\n                        result +\n                        (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')\n                    );\n                }\n                return result + 'sekúnda';\n            case 'm':\n                return withoutSuffix ? 'mínúta' : 'mínútu';\n            case 'mm':\n                if (plural(number)) {\n                    return (\n                        result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')\n                    );\n                } else if (withoutSuffix) {\n                    return result + 'mínúta';\n                }\n                return result + 'mínútu';\n            case 'hh':\n                if (plural(number)) {\n                    return (\n                        result +\n                        (withoutSuffix || isFuture\n                            ? 'klukkustundir'\n                            : 'klukkustundum')\n                    );\n                }\n                return result + 'klukkustund';\n            case 'd':\n                if (withoutSuffix) {\n                    return 'dagur';\n                }\n                return isFuture ? 'dag' : 'degi';\n            case 'dd':\n                if (plural(number)) {\n                    if (withoutSuffix) {\n                        return result + 'dagar';\n                    }\n                    return result + (isFuture ? 'daga' : 'dögum');\n                } else if (withoutSuffix) {\n                    return result + 'dagur';\n                }\n                return result + (isFuture ? 'dag' : 'degi');\n            case 'M':\n                if (withoutSuffix) {\n                    return 'mánuður';\n                }\n                return isFuture ? 'mánuð' : 'mánuði';\n            case 'MM':\n                if (plural(number)) {\n                    if (withoutSuffix) {\n                        return result + 'mánuðir';\n                    }\n                    return result + (isFuture ? 'mánuði' : 'mánuðum');\n                } else if (withoutSuffix) {\n                    return result + 'mánuður';\n                }\n                return result + (isFuture ? 'mánuð' : 'mánuði');\n            case 'y':\n                return withoutSuffix || isFuture ? 'ár' : 'ári';\n            case 'yy':\n                if (plural(number)) {\n                    return result + (withoutSuffix || isFuture ? 'ár' : 'árum');\n                }\n                return result + (withoutSuffix || isFuture ? 'ár' : 'ári');\n        }\n    }\n\n    var is = moment.defineLocale('is', {\n        months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(\n            '_'\n        ),\n        monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),\n        weekdays:\n            'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(\n                '_'\n            ),\n        weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),\n        weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY [kl.] H:mm',\n            LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',\n        },\n        calendar: {\n            sameDay: '[í dag kl.] LT',\n            nextDay: '[á morgun kl.] LT',\n            nextWeek: 'dddd [kl.] LT',\n            lastDay: '[í gær kl.] LT',\n            lastWeek: '[síðasta] dddd [kl.] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'eftir %s',\n            past: 'fyrir %s síðan',\n            s: translate,\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: 'klukkustund',\n            hh: translate,\n            d: translate,\n            dd: translate,\n            M: translate,\n            MM: translate,\n            y: translate,\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return is;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/is.js?");

/***/ }),

/***/ "./node_modules/moment/locale/it-ch.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/it-ch.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Italian (Switzerland) [it-ch]\n//! author : xfh : https://github.com/xfh\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var itCh = moment.defineLocale('it-ch', {\n        months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(\n            '_'\n        ),\n        monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\n        weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(\n            '_'\n        ),\n        weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),\n        weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Oggi alle] LT',\n            nextDay: '[Domani alle] LT',\n            nextWeek: 'dddd [alle] LT',\n            lastDay: '[Ieri alle] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[la scorsa] dddd [alle] LT';\n                    default:\n                        return '[lo scorso] dddd [alle] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: function (s) {\n                return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;\n            },\n            past: '%s fa',\n            s: 'alcuni secondi',\n            ss: '%d secondi',\n            m: 'un minuto',\n            mm: '%d minuti',\n            h: \"un'ora\",\n            hh: '%d ore',\n            d: 'un giorno',\n            dd: '%d giorni',\n            M: 'un mese',\n            MM: '%d mesi',\n            y: 'un anno',\n            yy: '%d anni',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return itCh;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/it-ch.js?");

/***/ }),

/***/ "./node_modules/moment/locale/it.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/it.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Italian [it]\n//! author : Lorenzo : https://github.com/aliem\n//! author: Mattia Larentis: https://github.com/nostalgiaz\n//! author: Marco : https://github.com/Manfre98\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var it = moment.defineLocale('it', {\n        months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(\n            '_'\n        ),\n        monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\n        weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(\n            '_'\n        ),\n        weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),\n        weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: function () {\n                return (\n                    '[Oggi a' +\n                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n                    ']LT'\n                );\n            },\n            nextDay: function () {\n                return (\n                    '[Domani a' +\n                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n                    ']LT'\n                );\n            },\n            nextWeek: function () {\n                return (\n                    'dddd [a' +\n                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n                    ']LT'\n                );\n            },\n            lastDay: function () {\n                return (\n                    '[Ieri a' +\n                    (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n                    ']LT'\n                );\n            },\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return (\n                            '[La scorsa] dddd [a' +\n                            (this.hours() > 1\n                                ? 'lle '\n                                : this.hours() === 0\n                                ? ' '\n                                : \"ll'\") +\n                            ']LT'\n                        );\n                    default:\n                        return (\n                            '[Lo scorso] dddd [a' +\n                            (this.hours() > 1\n                                ? 'lle '\n                                : this.hours() === 0\n                                ? ' '\n                                : \"ll'\") +\n                            ']LT'\n                        );\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'tra %s',\n            past: '%s fa',\n            s: 'alcuni secondi',\n            ss: '%d secondi',\n            m: 'un minuto',\n            mm: '%d minuti',\n            h: \"un'ora\",\n            hh: '%d ore',\n            d: 'un giorno',\n            dd: '%d giorni',\n            w: 'una settimana',\n            ww: '%d settimane',\n            M: 'un mese',\n            MM: '%d mesi',\n            y: 'un anno',\n            yy: '%d anni',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return it;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/it.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ja.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ja.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Japanese [ja]\n//! author : LI Long : https://github.com/baryon\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ja = moment.defineLocale('ja', {\n        eras: [\n            {\n                since: '2019-05-01',\n                offset: 1,\n                name: '令和',\n                narrow: '㋿',\n                abbr: 'R',\n            },\n            {\n                since: '1989-01-08',\n                until: '2019-04-30',\n                offset: 1,\n                name: '平成',\n                narrow: '㍻',\n                abbr: 'H',\n            },\n            {\n                since: '1926-12-25',\n                until: '1989-01-07',\n                offset: 1,\n                name: '昭和',\n                narrow: '㍼',\n                abbr: 'S',\n            },\n            {\n                since: '1912-07-30',\n                until: '1926-12-24',\n                offset: 1,\n                name: '大正',\n                narrow: '㍽',\n                abbr: 'T',\n            },\n            {\n                since: '1873-01-01',\n                until: '1912-07-29',\n                offset: 6,\n                name: '明治',\n                narrow: '㍾',\n                abbr: 'M',\n            },\n            {\n                since: '0001-01-01',\n                until: '1873-12-31',\n                offset: 1,\n                name: '西暦',\n                narrow: 'AD',\n                abbr: 'AD',\n            },\n            {\n                since: '0000-12-31',\n                until: -Infinity,\n                offset: 1,\n                name: '紀元前',\n                narrow: 'BC',\n                abbr: 'BC',\n            },\n        ],\n        eraYearOrdinalRegex: /(元|\\d+)年/,\n        eraYearOrdinalParse: function (input, match) {\n            return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);\n        },\n        months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n            '_'\n        ),\n        weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),\n        weekdaysShort: '日_月_火_水_木_金_土'.split('_'),\n        weekdaysMin: '日_月_火_水_木_金_土'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY/MM/DD',\n            LL: 'YYYY年M月D日',\n            LLL: 'YYYY年M月D日 HH:mm',\n            LLLL: 'YYYY年M月D日 dddd HH:mm',\n            l: 'YYYY/MM/DD',\n            ll: 'YYYY年M月D日',\n            lll: 'YYYY年M月D日 HH:mm',\n            llll: 'YYYY年M月D日(ddd) HH:mm',\n        },\n        meridiemParse: /午前|午後/i,\n        isPM: function (input) {\n            return input === '午後';\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return '午前';\n            } else {\n                return '午後';\n            }\n        },\n        calendar: {\n            sameDay: '[今日] LT',\n            nextDay: '[明日] LT',\n            nextWeek: function (now) {\n                if (now.week() !== this.week()) {\n                    return '[来週]dddd LT';\n                } else {\n                    return 'dddd LT';\n                }\n            },\n            lastDay: '[昨日] LT',\n            lastWeek: function (now) {\n                if (this.week() !== now.week()) {\n                    return '[先週]dddd LT';\n                } else {\n                    return 'dddd LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}日/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'y':\n                    return number === 1 ? '元年' : number + '年';\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + '日';\n                default:\n                    return number;\n            }\n        },\n        relativeTime: {\n            future: '%s後',\n            past: '%s前',\n            s: '数秒',\n            ss: '%d秒',\n            m: '1分',\n            mm: '%d分',\n            h: '1時間',\n            hh: '%d時間',\n            d: '1日',\n            dd: '%d日',\n            M: '1ヶ月',\n            MM: '%dヶ月',\n            y: '1年',\n            yy: '%d年',\n        },\n    });\n\n    return ja;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ja.js?");

/***/ }),

/***/ "./node_modules/moment/locale/jv.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/jv.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Javanese [jv]\n//! author : Rony Lantip : https://github.com/lantip\n//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var jv = moment.defineLocale('jv', {\n        months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),\n        weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),\n        weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),\n        weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),\n        longDateFormat: {\n            LT: 'HH.mm',\n            LTS: 'HH.mm.ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY [pukul] HH.mm',\n            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n        },\n        meridiemParse: /enjing|siyang|sonten|ndalu/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'enjing') {\n                return hour;\n            } else if (meridiem === 'siyang') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === 'sonten' || meridiem === 'ndalu') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 11) {\n                return 'enjing';\n            } else if (hours < 15) {\n                return 'siyang';\n            } else if (hours < 19) {\n                return 'sonten';\n            } else {\n                return 'ndalu';\n            }\n        },\n        calendar: {\n            sameDay: '[Dinten puniko pukul] LT',\n            nextDay: '[Mbenjang pukul] LT',\n            nextWeek: 'dddd [pukul] LT',\n            lastDay: '[Kala wingi pukul] LT',\n            lastWeek: 'dddd [kepengker pukul] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'wonten ing %s',\n            past: '%s ingkang kepengker',\n            s: 'sawetawis detik',\n            ss: '%d detik',\n            m: 'setunggal menit',\n            mm: '%d menit',\n            h: 'setunggal jam',\n            hh: '%d jam',\n            d: 'sedinten',\n            dd: '%d dinten',\n            M: 'sewulan',\n            MM: '%d wulan',\n            y: 'setaun',\n            yy: '%d taun',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return jv;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/jv.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ka.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ka.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Georgian [ka]\n//! author : Irakli Janiashvili : https://github.com/IrakliJani\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ka = moment.defineLocale('ka', {\n        months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(\n            '_'\n        ),\n        monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),\n        weekdays: {\n            standalone:\n                'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(\n                    '_'\n                ),\n            format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(\n                '_'\n            ),\n            isFormat: /(წინა|შემდეგ)/,\n        },\n        weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),\n        weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[დღეს] LT[-ზე]',\n            nextDay: '[ხვალ] LT[-ზე]',\n            lastDay: '[გუშინ] LT[-ზე]',\n            nextWeek: '[შემდეგ] dddd LT[-ზე]',\n            lastWeek: '[წინა] dddd LT-ზე',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: function (s) {\n                return s.replace(\n                    /(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,\n                    function ($0, $1, $2) {\n                        return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';\n                    }\n                );\n            },\n            past: function (s) {\n                if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {\n                    return s.replace(/(ი|ე)$/, 'ის წინ');\n                }\n                if (/წელი/.test(s)) {\n                    return s.replace(/წელი$/, 'წლის წინ');\n                }\n                return s;\n            },\n            s: 'რამდენიმე წამი',\n            ss: '%d წამი',\n            m: 'წუთი',\n            mm: '%d წუთი',\n            h: 'საათი',\n            hh: '%d საათი',\n            d: 'დღე',\n            dd: '%d დღე',\n            M: 'თვე',\n            MM: '%d თვე',\n            y: 'წელი',\n            yy: '%d წელი',\n        },\n        dayOfMonthOrdinalParse: /0|1-ლი|მე-\\d{1,2}|\\d{1,2}-ე/,\n        ordinal: function (number) {\n            if (number === 0) {\n                return number;\n            }\n            if (number === 1) {\n                return number + '-ლი';\n            }\n            if (\n                number < 20 ||\n                (number <= 100 && number % 20 === 0) ||\n                number % 100 === 0\n            ) {\n                return 'მე-' + number;\n            }\n            return number + '-ე';\n        },\n        week: {\n            dow: 1,\n            doy: 7,\n        },\n    });\n\n    return ka;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ka.js?");

/***/ }),

/***/ "./node_modules/moment/locale/kk.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/kk.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Kazakh [kk]\n//! authors : Nurlan Rakhimzhanov : https://github.com/nurlan\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var suffixes = {\n        0: '-ші',\n        1: '-ші',\n        2: '-ші',\n        3: '-ші',\n        4: '-ші',\n        5: '-ші',\n        6: '-шы',\n        7: '-ші',\n        8: '-ші',\n        9: '-шы',\n        10: '-шы',\n        20: '-шы',\n        30: '-шы',\n        40: '-шы',\n        50: '-ші',\n        60: '-шы',\n        70: '-ші',\n        80: '-ші',\n        90: '-шы',\n        100: '-ші',\n    };\n\n    var kk = moment.defineLocale('kk', {\n        months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(\n            '_'\n        ),\n        monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),\n        weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(\n            '_'\n        ),\n        weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),\n        weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Бүгін сағат] LT',\n            nextDay: '[Ертең сағат] LT',\n            nextWeek: 'dddd [сағат] LT',\n            lastDay: '[Кеше сағат] LT',\n            lastWeek: '[Өткен аптаның] dddd [сағат] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s ішінде',\n            past: '%s бұрын',\n            s: 'бірнеше секунд',\n            ss: '%d секунд',\n            m: 'бір минут',\n            mm: '%d минут',\n            h: 'бір сағат',\n            hh: '%d сағат',\n            d: 'бір күн',\n            dd: '%d күн',\n            M: 'бір ай',\n            MM: '%d ай',\n            y: 'бір жыл',\n            yy: '%d жыл',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(ші|шы)/,\n        ordinal: function (number) {\n            var a = number % 10,\n                b = number >= 100 ? 100 : null;\n            return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return kk;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/kk.js?");

/***/ }),

/***/ "./node_modules/moment/locale/km.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/km.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Cambodian [km]\n//! author : Kruy Vanna : https://github.com/kruyvanna\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '១',\n            2: '២',\n            3: '៣',\n            4: '៤',\n            5: '៥',\n            6: '៦',\n            7: '៧',\n            8: '៨',\n            9: '៩',\n            0: '០',\n        },\n        numberMap = {\n            '១': '1',\n            '២': '2',\n            '៣': '3',\n            '៤': '4',\n            '៥': '5',\n            '៦': '6',\n            '៧': '7',\n            '៨': '8',\n            '៩': '9',\n            '០': '0',\n        };\n\n    var km = moment.defineLocale('km', {\n        months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(\n            '_'\n        ),\n        monthsShort:\n            'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(\n                '_'\n            ),\n        weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),\n        weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),\n        weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /ព្រឹក|ល្ងាច/,\n        isPM: function (input) {\n            return input === 'ល្ងាច';\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ព្រឹក';\n            } else {\n                return 'ល្ងាច';\n            }\n        },\n        calendar: {\n            sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',\n            nextDay: '[ស្អែក ម៉ោង] LT',\n            nextWeek: 'dddd [ម៉ោង] LT',\n            lastDay: '[ម្សិលមិញ ម៉ោង] LT',\n            lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%sទៀត',\n            past: '%sមុន',\n            s: 'ប៉ុន្មានវិនាទី',\n            ss: '%d វិនាទី',\n            m: 'មួយនាទី',\n            mm: '%d នាទី',\n            h: 'មួយម៉ោង',\n            hh: '%d ម៉ោង',\n            d: 'មួយថ្ងៃ',\n            dd: '%d ថ្ងៃ',\n            M: 'មួយខែ',\n            MM: '%d ខែ',\n            y: 'មួយឆ្នាំ',\n            yy: '%d ឆ្នាំ',\n        },\n        dayOfMonthOrdinalParse: /ទី\\d{1,2}/,\n        ordinal: 'ទី%d',\n        preparse: function (string) {\n            return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return km;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/km.js?");

/***/ }),

/***/ "./node_modules/moment/locale/kn.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/kn.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Kannada [kn]\n//! author : Rajeev Naik : https://github.com/rajeevnaikte\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '೧',\n            2: '೨',\n            3: '೩',\n            4: '೪',\n            5: '೫',\n            6: '೬',\n            7: '೭',\n            8: '೮',\n            9: '೯',\n            0: '೦',\n        },\n        numberMap = {\n            '೧': '1',\n            '೨': '2',\n            '೩': '3',\n            '೪': '4',\n            '೫': '5',\n            '೬': '6',\n            '೭': '7',\n            '೮': '8',\n            '೯': '9',\n            '೦': '0',\n        };\n\n    var kn = moment.defineLocale('kn', {\n        months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(\n            '_'\n        ),\n        monthsShort:\n            'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(\n            '_'\n        ),\n        weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),\n        weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm',\n            LTS: 'A h:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm',\n        },\n        calendar: {\n            sameDay: '[ಇಂದು] LT',\n            nextDay: '[ನಾಳೆ] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[ನಿನ್ನೆ] LT',\n            lastWeek: '[ಕೊನೆಯ] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s ನಂತರ',\n            past: '%s ಹಿಂದೆ',\n            s: 'ಕೆಲವು ಕ್ಷಣಗಳು',\n            ss: '%d ಸೆಕೆಂಡುಗಳು',\n            m: 'ಒಂದು ನಿಮಿಷ',\n            mm: '%d ನಿಮಿಷ',\n            h: 'ಒಂದು ಗಂಟೆ',\n            hh: '%d ಗಂಟೆ',\n            d: 'ಒಂದು ದಿನ',\n            dd: '%d ದಿನ',\n            M: 'ಒಂದು ತಿಂಗಳು',\n            MM: '%d ತಿಂಗಳು',\n            y: 'ಒಂದು ವರ್ಷ',\n            yy: '%d ವರ್ಷ',\n        },\n        preparse: function (string) {\n            return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'ರಾತ್ರಿ') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {\n                return hour;\n            } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {\n                return hour >= 10 ? hour : hour + 12;\n            } else if (meridiem === 'ಸಂಜೆ') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'ರಾತ್ರಿ';\n            } else if (hour < 10) {\n                return 'ಬೆಳಿಗ್ಗೆ';\n            } else if (hour < 17) {\n                return 'ಮಧ್ಯಾಹ್ನ';\n            } else if (hour < 20) {\n                return 'ಸಂಜೆ';\n            } else {\n                return 'ರಾತ್ರಿ';\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(ನೇ)/,\n        ordinal: function (number) {\n            return number + 'ನೇ';\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return kn;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/kn.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ko.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ko.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Korean [ko]\n//! author : Kyungwook, Park : https://github.com/kyungw00k\n//! author : Jeeeyul Lee <jeeeyul@gmail.com>\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ko = moment.defineLocale('ko', {\n        months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),\n        monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(\n            '_'\n        ),\n        weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),\n        weekdaysShort: '일_월_화_수_목_금_토'.split('_'),\n        weekdaysMin: '일_월_화_수_목_금_토'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm',\n            LTS: 'A h:mm:ss',\n            L: 'YYYY.MM.DD.',\n            LL: 'YYYY년 MMMM D일',\n            LLL: 'YYYY년 MMMM D일 A h:mm',\n            LLLL: 'YYYY년 MMMM D일 dddd A h:mm',\n            l: 'YYYY.MM.DD.',\n            ll: 'YYYY년 MMMM D일',\n            lll: 'YYYY년 MMMM D일 A h:mm',\n            llll: 'YYYY년 MMMM D일 dddd A h:mm',\n        },\n        calendar: {\n            sameDay: '오늘 LT',\n            nextDay: '내일 LT',\n            nextWeek: 'dddd LT',\n            lastDay: '어제 LT',\n            lastWeek: '지난주 dddd LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s 후',\n            past: '%s 전',\n            s: '몇 초',\n            ss: '%d초',\n            m: '1분',\n            mm: '%d분',\n            h: '한 시간',\n            hh: '%d시간',\n            d: '하루',\n            dd: '%d일',\n            M: '한 달',\n            MM: '%d달',\n            y: '일 년',\n            yy: '%d년',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(일|월|주)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + '일';\n                case 'M':\n                    return number + '월';\n                case 'w':\n                case 'W':\n                    return number + '주';\n                default:\n                    return number;\n            }\n        },\n        meridiemParse: /오전|오후/,\n        isPM: function (token) {\n            return token === '오후';\n        },\n        meridiem: function (hour, minute, isUpper) {\n            return hour < 12 ? '오전' : '오후';\n        },\n    });\n\n    return ko;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ko.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ku.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ku.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Kurdish [ku]\n//! author : Shahram Mebashar : https://github.com/ShahramMebashar\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '١',\n            2: '٢',\n            3: '٣',\n            4: '٤',\n            5: '٥',\n            6: '٦',\n            7: '٧',\n            8: '٨',\n            9: '٩',\n            0: '٠',\n        },\n        numberMap = {\n            '١': '1',\n            '٢': '2',\n            '٣': '3',\n            '٤': '4',\n            '٥': '5',\n            '٦': '6',\n            '٧': '7',\n            '٨': '8',\n            '٩': '9',\n            '٠': '0',\n        },\n        months = [\n            'کانونی دووەم',\n            'شوبات',\n            'ئازار',\n            'نیسان',\n            'ئایار',\n            'حوزەیران',\n            'تەمموز',\n            'ئاب',\n            'ئەیلوول',\n            'تشرینی یەكەم',\n            'تشرینی دووەم',\n            'كانونی یەکەم',\n        ];\n\n    var ku = moment.defineLocale('ku', {\n        months: months,\n        monthsShort: months,\n        weekdays:\n            'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(\n                '_'\n            ),\n        weekdaysShort:\n            'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'),\n        weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /ئێواره‌|به‌یانی/,\n        isPM: function (input) {\n            return /ئێواره‌/.test(input);\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'به‌یانی';\n            } else {\n                return 'ئێواره‌';\n            }\n        },\n        calendar: {\n            sameDay: '[ئه‌مرۆ كاتژمێر] LT',\n            nextDay: '[به‌یانی كاتژمێر] LT',\n            nextWeek: 'dddd [كاتژمێر] LT',\n            lastDay: '[دوێنێ كاتژمێر] LT',\n            lastWeek: 'dddd [كاتژمێر] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'له‌ %s',\n            past: '%s',\n            s: 'چه‌ند چركه‌یه‌ك',\n            ss: 'چركه‌ %d',\n            m: 'یه‌ك خوله‌ك',\n            mm: '%d خوله‌ك',\n            h: 'یه‌ك كاتژمێر',\n            hh: '%d كاتژمێر',\n            d: 'یه‌ك ڕۆژ',\n            dd: '%d ڕۆژ',\n            M: 'یه‌ك مانگ',\n            MM: '%d مانگ',\n            y: 'یه‌ك ساڵ',\n            yy: '%d ساڵ',\n        },\n        preparse: function (string) {\n            return string\n                .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n                    return numberMap[match];\n                })\n                .replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string\n                .replace(/\\d/g, function (match) {\n                    return symbolMap[match];\n                })\n                .replace(/,/g, '،');\n        },\n        week: {\n            dow: 6, // Saturday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return ku;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ku.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ky.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ky.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Kyrgyz [ky]\n//! author : Chyngyz Arystan uulu : https://github.com/chyngyz\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var suffixes = {\n        0: '-чү',\n        1: '-чи',\n        2: '-чи',\n        3: '-чү',\n        4: '-чү',\n        5: '-чи',\n        6: '-чы',\n        7: '-чи',\n        8: '-чи',\n        9: '-чу',\n        10: '-чу',\n        20: '-чы',\n        30: '-чу',\n        40: '-чы',\n        50: '-чү',\n        60: '-чы',\n        70: '-чи',\n        80: '-чи',\n        90: '-чу',\n        100: '-чү',\n    };\n\n    var ky = moment.defineLocale('ky', {\n        months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(\n            '_'\n        ),\n        monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(\n            '_'\n        ),\n        weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(\n            '_'\n        ),\n        weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),\n        weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Бүгүн саат] LT',\n            nextDay: '[Эртең саат] LT',\n            nextWeek: 'dddd [саат] LT',\n            lastDay: '[Кечээ саат] LT',\n            lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s ичинде',\n            past: '%s мурун',\n            s: 'бирнече секунд',\n            ss: '%d секунд',\n            m: 'бир мүнөт',\n            mm: '%d мүнөт',\n            h: 'бир саат',\n            hh: '%d саат',\n            d: 'бир күн',\n            dd: '%d күн',\n            M: 'бир ай',\n            MM: '%d ай',\n            y: 'бир жыл',\n            yy: '%d жыл',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(чи|чы|чү|чу)/,\n        ordinal: function (number) {\n            var a = number % 10,\n                b = number >= 100 ? 100 : null;\n            return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return ky;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ky.js?");

/***/ }),

/***/ "./node_modules/moment/locale/lb.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/lb.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Luxembourgish [lb]\n//! author : mweimerskirch : https://github.com/mweimerskirch\n//! author : David Raison : https://github.com/kwisatz\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            m: ['eng Minutt', 'enger Minutt'],\n            h: ['eng Stonn', 'enger Stonn'],\n            d: ['een Dag', 'engem Dag'],\n            M: ['ee Mount', 'engem Mount'],\n            y: ['ee Joer', 'engem Joer'],\n        };\n        return withoutSuffix ? format[key][0] : format[key][1];\n    }\n    function processFutureTime(string) {\n        var number = string.substr(0, string.indexOf(' '));\n        if (eifelerRegelAppliesToNumber(number)) {\n            return 'a ' + string;\n        }\n        return 'an ' + string;\n    }\n    function processPastTime(string) {\n        var number = string.substr(0, string.indexOf(' '));\n        if (eifelerRegelAppliesToNumber(number)) {\n            return 'viru ' + string;\n        }\n        return 'virun ' + string;\n    }\n    /**\n     * Returns true if the word before the given number loses the '-n' ending.\n     * e.g. 'an 10 Deeg' but 'a 5 Deeg'\n     *\n     * @param number {integer}\n     * @returns {boolean}\n     */\n    function eifelerRegelAppliesToNumber(number) {\n        number = parseInt(number, 10);\n        if (isNaN(number)) {\n            return false;\n        }\n        if (number < 0) {\n            // Negative Number --> always true\n            return true;\n        } else if (number < 10) {\n            // Only 1 digit\n            if (4 <= number && number <= 7) {\n                return true;\n            }\n            return false;\n        } else if (number < 100) {\n            // 2 digits\n            var lastDigit = number % 10,\n                firstDigit = number / 10;\n            if (lastDigit === 0) {\n                return eifelerRegelAppliesToNumber(firstDigit);\n            }\n            return eifelerRegelAppliesToNumber(lastDigit);\n        } else if (number < 10000) {\n            // 3 or 4 digits --> recursively check first digit\n            while (number >= 10) {\n                number = number / 10;\n            }\n            return eifelerRegelAppliesToNumber(number);\n        } else {\n            // Anything larger than 4 digits: recursively check first n-3 digits\n            number = number / 1000;\n            return eifelerRegelAppliesToNumber(number);\n        }\n    }\n\n    var lb = moment.defineLocale('lb', {\n        months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n            '_'\n        ),\n        monthsShort:\n            'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays:\n            'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(\n                '_'\n            ),\n        weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),\n        weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm [Auer]',\n            LTS: 'H:mm:ss [Auer]',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY H:mm [Auer]',\n            LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',\n        },\n        calendar: {\n            sameDay: '[Haut um] LT',\n            sameElse: 'L',\n            nextDay: '[Muer um] LT',\n            nextWeek: 'dddd [um] LT',\n            lastDay: '[Gëschter um] LT',\n            lastWeek: function () {\n                // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule\n                switch (this.day()) {\n                    case 2:\n                    case 4:\n                        return '[Leschten] dddd [um] LT';\n                    default:\n                        return '[Leschte] dddd [um] LT';\n                }\n            },\n        },\n        relativeTime: {\n            future: processFutureTime,\n            past: processPastTime,\n            s: 'e puer Sekonnen',\n            ss: '%d Sekonnen',\n            m: processRelativeTime,\n            mm: '%d Minutten',\n            h: processRelativeTime,\n            hh: '%d Stonnen',\n            d: processRelativeTime,\n            dd: '%d Deeg',\n            M: processRelativeTime,\n            MM: '%d Méint',\n            y: processRelativeTime,\n            yy: '%d Joer',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return lb;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/lb.js?");

/***/ }),

/***/ "./node_modules/moment/locale/lo.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/lo.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Lao [lo]\n//! author : Ryan Hart : https://github.com/ryanhart2\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var lo = moment.defineLocale('lo', {\n        months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(\n            '_'\n        ),\n        monthsShort:\n            'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(\n                '_'\n            ),\n        weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n        weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n        weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'ວັນdddd D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,\n        isPM: function (input) {\n            return input === 'ຕອນແລງ';\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ຕອນເຊົ້າ';\n            } else {\n                return 'ຕອນແລງ';\n            }\n        },\n        calendar: {\n            sameDay: '[ມື້ນີ້ເວລາ] LT',\n            nextDay: '[ມື້ອື່ນເວລາ] LT',\n            nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',\n            lastDay: '[ມື້ວານນີ້ເວລາ] LT',\n            lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'ອີກ %s',\n            past: '%sຜ່ານມາ',\n            s: 'ບໍ່ເທົ່າໃດວິນາທີ',\n            ss: '%d ວິນາທີ',\n            m: '1 ນາທີ',\n            mm: '%d ນາທີ',\n            h: '1 ຊົ່ວໂມງ',\n            hh: '%d ຊົ່ວໂມງ',\n            d: '1 ມື້',\n            dd: '%d ມື້',\n            M: '1 ເດືອນ',\n            MM: '%d ເດືອນ',\n            y: '1 ປີ',\n            yy: '%d ປີ',\n        },\n        dayOfMonthOrdinalParse: /(ທີ່)\\d{1,2}/,\n        ordinal: function (number) {\n            return 'ທີ່' + number;\n        },\n    });\n\n    return lo;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/lo.js?");

/***/ }),

/***/ "./node_modules/moment/locale/lt.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/lt.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Lithuanian [lt]\n//! author : Mindaugas Mozūras : https://github.com/mmozuras\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var units = {\n        ss: 'sekundė_sekundžių_sekundes',\n        m: 'minutė_minutės_minutę',\n        mm: 'minutės_minučių_minutes',\n        h: 'valanda_valandos_valandą',\n        hh: 'valandos_valandų_valandas',\n        d: 'diena_dienos_dieną',\n        dd: 'dienos_dienų_dienas',\n        M: 'mėnuo_mėnesio_mėnesį',\n        MM: 'mėnesiai_mėnesių_mėnesius',\n        y: 'metai_metų_metus',\n        yy: 'metai_metų_metus',\n    };\n    function translateSeconds(number, withoutSuffix, key, isFuture) {\n        if (withoutSuffix) {\n            return 'kelios sekundės';\n        } else {\n            return isFuture ? 'kelių sekundžių' : 'kelias sekundes';\n        }\n    }\n    function translateSingular(number, withoutSuffix, key, isFuture) {\n        return withoutSuffix\n            ? forms(key)[0]\n            : isFuture\n            ? forms(key)[1]\n            : forms(key)[2];\n    }\n    function special(number) {\n        return number % 10 === 0 || (number > 10 && number < 20);\n    }\n    function forms(key) {\n        return units[key].split('_');\n    }\n    function translate(number, withoutSuffix, key, isFuture) {\n        var result = number + ' ';\n        if (number === 1) {\n            return (\n                result + translateSingular(number, withoutSuffix, key[0], isFuture)\n            );\n        } else if (withoutSuffix) {\n            return result + (special(number) ? forms(key)[1] : forms(key)[0]);\n        } else {\n            if (isFuture) {\n                return result + forms(key)[1];\n            } else {\n                return result + (special(number) ? forms(key)[1] : forms(key)[2]);\n            }\n        }\n    }\n    var lt = moment.defineLocale('lt', {\n        months: {\n            format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(\n                '_'\n            ),\n            standalone:\n                'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(\n                    '_'\n                ),\n            isFormat: /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?|MMMM?(\\[[^\\[\\]]*\\]|\\s)+D[oD]?/,\n        },\n        monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),\n        weekdays: {\n            format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(\n                '_'\n            ),\n            standalone:\n                'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(\n                    '_'\n                ),\n            isFormat: /dddd HH:mm/,\n        },\n        weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),\n        weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY-MM-DD',\n            LL: 'YYYY [m.] MMMM D [d.]',\n            LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n            LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',\n            l: 'YYYY-MM-DD',\n            ll: 'YYYY [m.] MMMM D [d.]',\n            lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n            llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',\n        },\n        calendar: {\n            sameDay: '[Šiandien] LT',\n            nextDay: '[Rytoj] LT',\n            nextWeek: 'dddd LT',\n            lastDay: '[Vakar] LT',\n            lastWeek: '[Praėjusį] dddd LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'po %s',\n            past: 'prieš %s',\n            s: translateSeconds,\n            ss: translate,\n            m: translateSingular,\n            mm: translate,\n            h: translateSingular,\n            hh: translate,\n            d: translateSingular,\n            dd: translate,\n            M: translateSingular,\n            MM: translate,\n            y: translateSingular,\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-oji/,\n        ordinal: function (number) {\n            return number + '-oji';\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return lt;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/lt.js?");

/***/ }),

/***/ "./node_modules/moment/locale/lv.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/lv.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Latvian [lv]\n//! author : Kristaps Karlsons : https://github.com/skakri\n//! author : Jānis Elmeris : https://github.com/JanisE\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var units = {\n        ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),\n        m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n        mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n        h: 'stundas_stundām_stunda_stundas'.split('_'),\n        hh: 'stundas_stundām_stunda_stundas'.split('_'),\n        d: 'dienas_dienām_diena_dienas'.split('_'),\n        dd: 'dienas_dienām_diena_dienas'.split('_'),\n        M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n        MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n        y: 'gada_gadiem_gads_gadi'.split('_'),\n        yy: 'gada_gadiem_gads_gadi'.split('_'),\n    };\n    /**\n     * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.\n     */\n    function format(forms, number, withoutSuffix) {\n        if (withoutSuffix) {\n            // E.g. \"21 minūte\", \"3 minūtes\".\n            return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];\n        } else {\n            // E.g. \"21 minūtes\" as in \"pēc 21 minūtes\".\n            // E.g. \"3 minūtēm\" as in \"pēc 3 minūtēm\".\n            return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];\n        }\n    }\n    function relativeTimeWithPlural(number, withoutSuffix, key) {\n        return number + ' ' + format(units[key], number, withoutSuffix);\n    }\n    function relativeTimeWithSingular(number, withoutSuffix, key) {\n        return format(units[key], number, withoutSuffix);\n    }\n    function relativeSeconds(number, withoutSuffix) {\n        return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';\n    }\n\n    var lv = moment.defineLocale('lv', {\n        months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(\n            '_'\n        ),\n        monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),\n        weekdays:\n            'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(\n                '_'\n            ),\n        weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),\n        weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY.',\n            LL: 'YYYY. [gada] D. MMMM',\n            LLL: 'YYYY. [gada] D. MMMM, HH:mm',\n            LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',\n        },\n        calendar: {\n            sameDay: '[Šodien pulksten] LT',\n            nextDay: '[Rīt pulksten] LT',\n            nextWeek: 'dddd [pulksten] LT',\n            lastDay: '[Vakar pulksten] LT',\n            lastWeek: '[Pagājušā] dddd [pulksten] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'pēc %s',\n            past: 'pirms %s',\n            s: relativeSeconds,\n            ss: relativeTimeWithPlural,\n            m: relativeTimeWithSingular,\n            mm: relativeTimeWithPlural,\n            h: relativeTimeWithSingular,\n            hh: relativeTimeWithPlural,\n            d: relativeTimeWithSingular,\n            dd: relativeTimeWithPlural,\n            M: relativeTimeWithSingular,\n            MM: relativeTimeWithPlural,\n            y: relativeTimeWithSingular,\n            yy: relativeTimeWithPlural,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return lv;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/lv.js?");

/***/ }),

/***/ "./node_modules/moment/locale/me.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/me.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Montenegrin [me]\n//! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var translator = {\n        words: {\n            //Different grammatical cases\n            ss: ['sekund', 'sekunda', 'sekundi'],\n            m: ['jedan minut', 'jednog minuta'],\n            mm: ['minut', 'minuta', 'minuta'],\n            h: ['jedan sat', 'jednog sata'],\n            hh: ['sat', 'sata', 'sati'],\n            dd: ['dan', 'dana', 'dana'],\n            MM: ['mjesec', 'mjeseca', 'mjeseci'],\n            yy: ['godina', 'godine', 'godina'],\n        },\n        correctGrammaticalCase: function (number, wordKey) {\n            return number === 1\n                ? wordKey[0]\n                : number >= 2 && number <= 4\n                ? wordKey[1]\n                : wordKey[2];\n        },\n        translate: function (number, withoutSuffix, key) {\n            var wordKey = translator.words[key];\n            if (key.length === 1) {\n                return withoutSuffix ? wordKey[0] : wordKey[1];\n            } else {\n                return (\n                    number +\n                    ' ' +\n                    translator.correctGrammaticalCase(number, wordKey)\n                );\n            }\n        },\n    };\n\n    var me = moment.defineLocale('me', {\n        months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(\n            '_'\n        ),\n        monthsShort:\n            'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),\n        monthsParseExact: true,\n        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(\n            '_'\n        ),\n        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY H:mm',\n            LLLL: 'dddd, D. MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[danas u] LT',\n            nextDay: '[sjutra u] LT',\n\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[u] [nedjelju] [u] LT';\n                    case 3:\n                        return '[u] [srijedu] [u] LT';\n                    case 6:\n                        return '[u] [subotu] [u] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[u] dddd [u] LT';\n                }\n            },\n            lastDay: '[juče u] LT',\n            lastWeek: function () {\n                var lastWeekDays = [\n                    '[prošle] [nedjelje] [u] LT',\n                    '[prošlog] [ponedjeljka] [u] LT',\n                    '[prošlog] [utorka] [u] LT',\n                    '[prošle] [srijede] [u] LT',\n                    '[prošlog] [četvrtka] [u] LT',\n                    '[prošlog] [petka] [u] LT',\n                    '[prošle] [subote] [u] LT',\n                ];\n                return lastWeekDays[this.day()];\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'za %s',\n            past: 'prije %s',\n            s: 'nekoliko sekundi',\n            ss: translator.translate,\n            m: translator.translate,\n            mm: translator.translate,\n            h: translator.translate,\n            hh: translator.translate,\n            d: 'dan',\n            dd: translator.translate,\n            M: 'mjesec',\n            MM: translator.translate,\n            y: 'godinu',\n            yy: translator.translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return me;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/me.js?");

/***/ }),

/***/ "./node_modules/moment/locale/mi.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/mi.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Maori [mi]\n//! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var mi = moment.defineLocale('mi', {\n        months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split(\n            '_'\n        ),\n        monthsShort:\n            'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(\n                '_'\n            ),\n        monthsRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n        monthsStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n        monthsShortRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n        monthsShortStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,2}/i,\n        weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),\n        weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\n        weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY [i] HH:mm',\n            LLLL: 'dddd, D MMMM YYYY [i] HH:mm',\n        },\n        calendar: {\n            sameDay: '[i teie mahana, i] LT',\n            nextDay: '[apopo i] LT',\n            nextWeek: 'dddd [i] LT',\n            lastDay: '[inanahi i] LT',\n            lastWeek: 'dddd [whakamutunga i] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'i roto i %s',\n            past: '%s i mua',\n            s: 'te hēkona ruarua',\n            ss: '%d hēkona',\n            m: 'he meneti',\n            mm: '%d meneti',\n            h: 'te haora',\n            hh: '%d haora',\n            d: 'he ra',\n            dd: '%d ra',\n            M: 'he marama',\n            MM: '%d marama',\n            y: 'he tau',\n            yy: '%d tau',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return mi;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/mi.js?");

/***/ }),

/***/ "./node_modules/moment/locale/mk.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/mk.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Macedonian [mk]\n//! author : Borislav Mickov : https://github.com/B0k0\n//! author : Sashko Todorov : https://github.com/bkyceh\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var mk = moment.defineLocale('mk', {\n        months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(\n            '_'\n        ),\n        monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),\n        weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(\n            '_'\n        ),\n        weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),\n        weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'D.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY H:mm',\n            LLLL: 'dddd, D MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[Денес во] LT',\n            nextDay: '[Утре во] LT',\n            nextWeek: '[Во] dddd [во] LT',\n            lastDay: '[Вчера во] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                    case 3:\n                    case 6:\n                        return '[Изминатата] dddd [во] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[Изминатиот] dddd [во] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'за %s',\n            past: 'пред %s',\n            s: 'неколку секунди',\n            ss: '%d секунди',\n            m: 'една минута',\n            mm: '%d минути',\n            h: 'еден час',\n            hh: '%d часа',\n            d: 'еден ден',\n            dd: '%d дена',\n            M: 'еден месец',\n            MM: '%d месеци',\n            y: 'една година',\n            yy: '%d години',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n        ordinal: function (number) {\n            var lastDigit = number % 10,\n                last2Digits = number % 100;\n            if (number === 0) {\n                return number + '-ев';\n            } else if (last2Digits === 0) {\n                return number + '-ен';\n            } else if (last2Digits > 10 && last2Digits < 20) {\n                return number + '-ти';\n            } else if (lastDigit === 1) {\n                return number + '-ви';\n            } else if (lastDigit === 2) {\n                return number + '-ри';\n            } else if (lastDigit === 7 || lastDigit === 8) {\n                return number + '-ми';\n            } else {\n                return number + '-ти';\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return mk;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/mk.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ml.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ml.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Malayalam [ml]\n//! author : Floyd Pink : https://github.com/floydpink\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ml = moment.defineLocale('ml', {\n        months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(\n            '_'\n        ),\n        monthsShort:\n            'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays:\n            'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(\n                '_'\n            ),\n        weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),\n        weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm -നു',\n            LTS: 'A h:mm:ss -നു',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm -നു',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',\n        },\n        calendar: {\n            sameDay: '[ഇന്ന്] LT',\n            nextDay: '[നാളെ] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[ഇന്നലെ] LT',\n            lastWeek: '[കഴിഞ്ഞ] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s കഴിഞ്ഞ്',\n            past: '%s മുൻപ്',\n            s: 'അൽപ നിമിഷങ്ങൾ',\n            ss: '%d സെക്കൻഡ്',\n            m: 'ഒരു മിനിറ്റ്',\n            mm: '%d മിനിറ്റ്',\n            h: 'ഒരു മണിക്കൂർ',\n            hh: '%d മണിക്കൂർ',\n            d: 'ഒരു ദിവസം',\n            dd: '%d ദിവസം',\n            M: 'ഒരു മാസം',\n            MM: '%d മാസം',\n            y: 'ഒരു വർഷം',\n            yy: '%d വർഷം',\n        },\n        meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (\n                (meridiem === 'രാത്രി' && hour >= 4) ||\n                meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||\n                meridiem === 'വൈകുന്നേരം'\n            ) {\n                return hour + 12;\n            } else {\n                return hour;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'രാത്രി';\n            } else if (hour < 12) {\n                return 'രാവിലെ';\n            } else if (hour < 17) {\n                return 'ഉച്ച കഴിഞ്ഞ്';\n            } else if (hour < 20) {\n                return 'വൈകുന്നേരം';\n            } else {\n                return 'രാത്രി';\n            }\n        },\n    });\n\n    return ml;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ml.js?");

/***/ }),

/***/ "./node_modules/moment/locale/mn.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/mn.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Mongolian [mn]\n//! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function translate(number, withoutSuffix, key, isFuture) {\n        switch (key) {\n            case 's':\n                return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';\n            case 'ss':\n                return number + (withoutSuffix ? ' секунд' : ' секундын');\n            case 'm':\n            case 'mm':\n                return number + (withoutSuffix ? ' минут' : ' минутын');\n            case 'h':\n            case 'hh':\n                return number + (withoutSuffix ? ' цаг' : ' цагийн');\n            case 'd':\n            case 'dd':\n                return number + (withoutSuffix ? ' өдөр' : ' өдрийн');\n            case 'M':\n            case 'MM':\n                return number + (withoutSuffix ? ' сар' : ' сарын');\n            case 'y':\n            case 'yy':\n                return number + (withoutSuffix ? ' жил' : ' жилийн');\n            default:\n                return number;\n        }\n    }\n\n    var mn = moment.defineLocale('mn', {\n        months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(\n            '_'\n        ),\n        monthsShort:\n            '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),\n        weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),\n        weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY-MM-DD',\n            LL: 'YYYY оны MMMMын D',\n            LLL: 'YYYY оны MMMMын D HH:mm',\n            LLLL: 'dddd, YYYY оны MMMMын D HH:mm',\n        },\n        meridiemParse: /ҮӨ|ҮХ/i,\n        isPM: function (input) {\n            return input === 'ҮХ';\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ҮӨ';\n            } else {\n                return 'ҮХ';\n            }\n        },\n        calendar: {\n            sameDay: '[Өнөөдөр] LT',\n            nextDay: '[Маргааш] LT',\n            nextWeek: '[Ирэх] dddd LT',\n            lastDay: '[Өчигдөр] LT',\n            lastWeek: '[Өнгөрсөн] dddd LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s дараа',\n            past: '%s өмнө',\n            s: translate,\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: translate,\n            dd: translate,\n            M: translate,\n            MM: translate,\n            y: translate,\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2} өдөр/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + ' өдөр';\n                default:\n                    return number;\n            }\n        },\n    });\n\n    return mn;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/mn.js?");

/***/ }),

/***/ "./node_modules/moment/locale/mr.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/mr.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Marathi [mr]\n//! author : Harshad Kale : https://github.com/kalehv\n//! author : Vivek Athalye : https://github.com/vnathalye\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '१',\n            2: '२',\n            3: '३',\n            4: '४',\n            5: '५',\n            6: '६',\n            7: '७',\n            8: '८',\n            9: '९',\n            0: '०',\n        },\n        numberMap = {\n            '१': '1',\n            '२': '2',\n            '३': '3',\n            '४': '4',\n            '५': '5',\n            '६': '6',\n            '७': '7',\n            '८': '8',\n            '९': '9',\n            '०': '0',\n        };\n\n    function relativeTimeMr(number, withoutSuffix, string, isFuture) {\n        var output = '';\n        if (withoutSuffix) {\n            switch (string) {\n                case 's':\n                    output = 'काही सेकंद';\n                    break;\n                case 'ss':\n                    output = '%d सेकंद';\n                    break;\n                case 'm':\n                    output = 'एक मिनिट';\n                    break;\n                case 'mm':\n                    output = '%d मिनिटे';\n                    break;\n                case 'h':\n                    output = 'एक तास';\n                    break;\n                case 'hh':\n                    output = '%d तास';\n                    break;\n                case 'd':\n                    output = 'एक दिवस';\n                    break;\n                case 'dd':\n                    output = '%d दिवस';\n                    break;\n                case 'M':\n                    output = 'एक महिना';\n                    break;\n                case 'MM':\n                    output = '%d महिने';\n                    break;\n                case 'y':\n                    output = 'एक वर्ष';\n                    break;\n                case 'yy':\n                    output = '%d वर्षे';\n                    break;\n            }\n        } else {\n            switch (string) {\n                case 's':\n                    output = 'काही सेकंदां';\n                    break;\n                case 'ss':\n                    output = '%d सेकंदां';\n                    break;\n                case 'm':\n                    output = 'एका मिनिटा';\n                    break;\n                case 'mm':\n                    output = '%d मिनिटां';\n                    break;\n                case 'h':\n                    output = 'एका तासा';\n                    break;\n                case 'hh':\n                    output = '%d तासां';\n                    break;\n                case 'd':\n                    output = 'एका दिवसा';\n                    break;\n                case 'dd':\n                    output = '%d दिवसां';\n                    break;\n                case 'M':\n                    output = 'एका महिन्या';\n                    break;\n                case 'MM':\n                    output = '%d महिन्यां';\n                    break;\n                case 'y':\n                    output = 'एका वर्षा';\n                    break;\n                case 'yy':\n                    output = '%d वर्षां';\n                    break;\n            }\n        }\n        return output.replace(/%d/i, number);\n    }\n\n    var mr = moment.defineLocale('mr', {\n        months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(\n            '_'\n        ),\n        monthsShort:\n            'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n        weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),\n        weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm वाजता',\n            LTS: 'A h:mm:ss वाजता',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm वाजता',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',\n        },\n        calendar: {\n            sameDay: '[आज] LT',\n            nextDay: '[उद्या] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[काल] LT',\n            lastWeek: '[मागील] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%sमध्ये',\n            past: '%sपूर्वी',\n            s: relativeTimeMr,\n            ss: relativeTimeMr,\n            m: relativeTimeMr,\n            mm: relativeTimeMr,\n            h: relativeTimeMr,\n            hh: relativeTimeMr,\n            d: relativeTimeMr,\n            dd: relativeTimeMr,\n            M: relativeTimeMr,\n            MM: relativeTimeMr,\n            y: relativeTimeMr,\n            yy: relativeTimeMr,\n        },\n        preparse: function (string) {\n            return string.replace(/[१२३४५६७८९०]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {\n                return hour;\n            } else if (\n                meridiem === 'दुपारी' ||\n                meridiem === 'सायंकाळी' ||\n                meridiem === 'रात्री'\n            ) {\n                return hour >= 12 ? hour : hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour >= 0 && hour < 6) {\n                return 'पहाटे';\n            } else if (hour < 12) {\n                return 'सकाळी';\n            } else if (hour < 17) {\n                return 'दुपारी';\n            } else if (hour < 20) {\n                return 'सायंकाळी';\n            } else {\n                return 'रात्री';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return mr;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/mr.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ms-my.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/ms-my.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Malay [ms-my]\n//! note : DEPRECATED, the correct one is [ms]\n//! author : Weldan Jamili : https://github.com/weldan\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var msMy = moment.defineLocale('ms-my', {\n        months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n        weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n        weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n        weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n        longDateFormat: {\n            LT: 'HH.mm',\n            LTS: 'HH.mm.ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY [pukul] HH.mm',\n            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n        },\n        meridiemParse: /pagi|tengahari|petang|malam/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'pagi') {\n                return hour;\n            } else if (meridiem === 'tengahari') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === 'petang' || meridiem === 'malam') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 11) {\n                return 'pagi';\n            } else if (hours < 15) {\n                return 'tengahari';\n            } else if (hours < 19) {\n                return 'petang';\n            } else {\n                return 'malam';\n            }\n        },\n        calendar: {\n            sameDay: '[Hari ini pukul] LT',\n            nextDay: '[Esok pukul] LT',\n            nextWeek: 'dddd [pukul] LT',\n            lastDay: '[Kelmarin pukul] LT',\n            lastWeek: 'dddd [lepas pukul] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'dalam %s',\n            past: '%s yang lepas',\n            s: 'beberapa saat',\n            ss: '%d saat',\n            m: 'seminit',\n            mm: '%d minit',\n            h: 'sejam',\n            hh: '%d jam',\n            d: 'sehari',\n            dd: '%d hari',\n            M: 'sebulan',\n            MM: '%d bulan',\n            y: 'setahun',\n            yy: '%d tahun',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return msMy;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ms-my.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ms.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ms.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Malay [ms]\n//! author : Weldan Jamili : https://github.com/weldan\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ms = moment.defineLocale('ms', {\n        months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n        weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n        weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n        weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n        longDateFormat: {\n            LT: 'HH.mm',\n            LTS: 'HH.mm.ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY [pukul] HH.mm',\n            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n        },\n        meridiemParse: /pagi|tengahari|petang|malam/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'pagi') {\n                return hour;\n            } else if (meridiem === 'tengahari') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === 'petang' || meridiem === 'malam') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 11) {\n                return 'pagi';\n            } else if (hours < 15) {\n                return 'tengahari';\n            } else if (hours < 19) {\n                return 'petang';\n            } else {\n                return 'malam';\n            }\n        },\n        calendar: {\n            sameDay: '[Hari ini pukul] LT',\n            nextDay: '[Esok pukul] LT',\n            nextWeek: 'dddd [pukul] LT',\n            lastDay: '[Kelmarin pukul] LT',\n            lastWeek: 'dddd [lepas pukul] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'dalam %s',\n            past: '%s yang lepas',\n            s: 'beberapa saat',\n            ss: '%d saat',\n            m: 'seminit',\n            mm: '%d minit',\n            h: 'sejam',\n            hh: '%d jam',\n            d: 'sehari',\n            dd: '%d hari',\n            M: 'sebulan',\n            MM: '%d bulan',\n            y: 'setahun',\n            yy: '%d tahun',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return ms;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ms.js?");

/***/ }),

/***/ "./node_modules/moment/locale/mt.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/mt.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Maltese (Malta) [mt]\n//! author : Alessandro Maruccia : https://github.com/alesma\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var mt = moment.defineLocale('mt', {\n        months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),\n        weekdays:\n            'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(\n                '_'\n            ),\n        weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),\n        weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Illum fil-]LT',\n            nextDay: '[Għada fil-]LT',\n            nextWeek: 'dddd [fil-]LT',\n            lastDay: '[Il-bieraħ fil-]LT',\n            lastWeek: 'dddd [li għadda] [fil-]LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'f’ %s',\n            past: '%s ilu',\n            s: 'ftit sekondi',\n            ss: '%d sekondi',\n            m: 'minuta',\n            mm: '%d minuti',\n            h: 'siegħa',\n            hh: '%d siegħat',\n            d: 'ġurnata',\n            dd: '%d ġranet',\n            M: 'xahar',\n            MM: '%d xhur',\n            y: 'sena',\n            yy: '%d sni',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return mt;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/mt.js?");

/***/ }),

/***/ "./node_modules/moment/locale/my.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/my.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Burmese [my]\n//! author : Squar team, mysquar.com\n//! author : David Rossellat : https://github.com/gholadr\n//! author : Tin Aung Lin : https://github.com/thanyawzinmin\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '၁',\n            2: '၂',\n            3: '၃',\n            4: '၄',\n            5: '၅',\n            6: '၆',\n            7: '၇',\n            8: '၈',\n            9: '၉',\n            0: '၀',\n        },\n        numberMap = {\n            '၁': '1',\n            '၂': '2',\n            '၃': '3',\n            '၄': '4',\n            '၅': '5',\n            '၆': '6',\n            '၇': '7',\n            '၈': '8',\n            '၉': '9',\n            '၀': '0',\n        };\n\n    var my = moment.defineLocale('my', {\n        months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(\n            '_'\n        ),\n        monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),\n        weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(\n            '_'\n        ),\n        weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n        weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[ယနေ.] LT [မှာ]',\n            nextDay: '[မနက်ဖြန်] LT [မှာ]',\n            nextWeek: 'dddd LT [မှာ]',\n            lastDay: '[မနေ.က] LT [မှာ]',\n            lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'လာမည့် %s မှာ',\n            past: 'လွန်ခဲ့သော %s က',\n            s: 'စက္ကန်.အနည်းငယ်',\n            ss: '%d စက္ကန့်',\n            m: 'တစ်မိနစ်',\n            mm: '%d မိနစ်',\n            h: 'တစ်နာရီ',\n            hh: '%d နာရီ',\n            d: 'တစ်ရက်',\n            dd: '%d ရက်',\n            M: 'တစ်လ',\n            MM: '%d လ',\n            y: 'တစ်နှစ်',\n            yy: '%d နှစ်',\n        },\n        preparse: function (string) {\n            return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return my;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/my.js?");

/***/ }),

/***/ "./node_modules/moment/locale/nb.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/nb.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Norwegian Bokmål [nb]\n//! authors : Espen Hovlandsdal : https://github.com/rexxars\n//!           Sigurd Gartmann : https://github.com/sigurdga\n//!           Stephen Ramthun : https://github.com/stephenramthun\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var nb = moment.defineLocale('nb', {\n        months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(\n            '_'\n        ),\n        monthsShort:\n            'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),\n        monthsParseExact: true,\n        weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n        weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),\n        weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY [kl.] HH:mm',\n            LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',\n        },\n        calendar: {\n            sameDay: '[i dag kl.] LT',\n            nextDay: '[i morgen kl.] LT',\n            nextWeek: 'dddd [kl.] LT',\n            lastDay: '[i går kl.] LT',\n            lastWeek: '[forrige] dddd [kl.] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'om %s',\n            past: '%s siden',\n            s: 'noen sekunder',\n            ss: '%d sekunder',\n            m: 'ett minutt',\n            mm: '%d minutter',\n            h: 'en time',\n            hh: '%d timer',\n            d: 'en dag',\n            dd: '%d dager',\n            w: 'en uke',\n            ww: '%d uker',\n            M: 'en måned',\n            MM: '%d måneder',\n            y: 'ett år',\n            yy: '%d år',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return nb;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/nb.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ne.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ne.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Nepalese [ne]\n//! author : suvash : https://github.com/suvash\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '१',\n            2: '२',\n            3: '३',\n            4: '४',\n            5: '५',\n            6: '६',\n            7: '७',\n            8: '८',\n            9: '९',\n            0: '०',\n        },\n        numberMap = {\n            '१': '1',\n            '२': '2',\n            '३': '3',\n            '४': '4',\n            '५': '5',\n            '६': '6',\n            '७': '7',\n            '८': '8',\n            '९': '9',\n            '०': '0',\n        };\n\n    var ne = moment.defineLocale('ne', {\n        months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(\n            '_'\n        ),\n        monthsShort:\n            'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(\n            '_'\n        ),\n        weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),\n        weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'Aको h:mm बजे',\n            LTS: 'Aको h:mm:ss बजे',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, Aको h:mm बजे',\n            LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',\n        },\n        preparse: function (string) {\n            return string.replace(/[१२३४५६७८९०]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        meridiemParse: /राति|बिहान|दिउँसो|साँझ/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'राति') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'बिहान') {\n                return hour;\n            } else if (meridiem === 'दिउँसो') {\n                return hour >= 10 ? hour : hour + 12;\n            } else if (meridiem === 'साँझ') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 3) {\n                return 'राति';\n            } else if (hour < 12) {\n                return 'बिहान';\n            } else if (hour < 16) {\n                return 'दिउँसो';\n            } else if (hour < 20) {\n                return 'साँझ';\n            } else {\n                return 'राति';\n            }\n        },\n        calendar: {\n            sameDay: '[आज] LT',\n            nextDay: '[भोलि] LT',\n            nextWeek: '[आउँदो] dddd[,] LT',\n            lastDay: '[हिजो] LT',\n            lastWeek: '[गएको] dddd[,] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%sमा',\n            past: '%s अगाडि',\n            s: 'केही क्षण',\n            ss: '%d सेकेण्ड',\n            m: 'एक मिनेट',\n            mm: '%d मिनेट',\n            h: 'एक घण्टा',\n            hh: '%d घण्टा',\n            d: 'एक दिन',\n            dd: '%d दिन',\n            M: 'एक महिना',\n            MM: '%d महिना',\n            y: 'एक बर्ष',\n            yy: '%d बर्ष',\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return ne;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ne.js?");

/***/ }),

/***/ "./node_modules/moment/locale/nl-be.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/nl-be.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Dutch (Belgium) [nl-be]\n//! author : Joris Röling : https://github.com/jorisroling\n//! author : Jacob Middag : https://github.com/middagj\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsShortWithDots =\n            'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),\n        monthsShortWithoutDots =\n            'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n        monthsParse = [\n            /^jan/i,\n            /^feb/i,\n            /^maart|mrt.?$/i,\n            /^apr/i,\n            /^mei$/i,\n            /^jun[i.]?$/i,\n            /^jul[i.]?$/i,\n            /^aug/i,\n            /^sep/i,\n            /^okt/i,\n            /^nov/i,\n            /^dec/i,\n        ],\n        monthsRegex =\n            /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;\n\n    var nlBe = moment.defineLocale('nl-be', {\n        months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(\n            '_'\n        ),\n        monthsShort: function (m, format) {\n            if (!m) {\n                return monthsShortWithDots;\n            } else if (/-MMM-/.test(format)) {\n                return monthsShortWithoutDots[m.month()];\n            } else {\n                return monthsShortWithDots[m.month()];\n            }\n        },\n\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex:\n            /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,\n        monthsShortStrictRegex:\n            /^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,\n\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n\n        weekdays:\n            'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),\n        weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),\n        weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[vandaag om] LT',\n            nextDay: '[morgen om] LT',\n            nextWeek: 'dddd [om] LT',\n            lastDay: '[gisteren om] LT',\n            lastWeek: '[afgelopen] dddd [om] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'over %s',\n            past: '%s geleden',\n            s: 'een paar seconden',\n            ss: '%d seconden',\n            m: 'één minuut',\n            mm: '%d minuten',\n            h: 'één uur',\n            hh: '%d uur',\n            d: 'één dag',\n            dd: '%d dagen',\n            M: 'één maand',\n            MM: '%d maanden',\n            y: 'één jaar',\n            yy: '%d jaar',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n        ordinal: function (number) {\n            return (\n                number +\n                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n            );\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return nlBe;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/nl-be.js?");

/***/ }),

/***/ "./node_modules/moment/locale/nl.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/nl.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Dutch [nl]\n//! author : Joris Röling : https://github.com/jorisroling\n//! author : Jacob Middag : https://github.com/middagj\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsShortWithDots =\n            'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),\n        monthsShortWithoutDots =\n            'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n        monthsParse = [\n            /^jan/i,\n            /^feb/i,\n            /^maart|mrt.?$/i,\n            /^apr/i,\n            /^mei$/i,\n            /^jun[i.]?$/i,\n            /^jul[i.]?$/i,\n            /^aug/i,\n            /^sep/i,\n            /^okt/i,\n            /^nov/i,\n            /^dec/i,\n        ],\n        monthsRegex =\n            /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;\n\n    var nl = moment.defineLocale('nl', {\n        months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(\n            '_'\n        ),\n        monthsShort: function (m, format) {\n            if (!m) {\n                return monthsShortWithDots;\n            } else if (/-MMM-/.test(format)) {\n                return monthsShortWithoutDots[m.month()];\n            } else {\n                return monthsShortWithDots[m.month()];\n            }\n        },\n\n        monthsRegex: monthsRegex,\n        monthsShortRegex: monthsRegex,\n        monthsStrictRegex:\n            /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,\n        monthsShortStrictRegex:\n            /^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,\n\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n\n        weekdays:\n            'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),\n        weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),\n        weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD-MM-YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[vandaag om] LT',\n            nextDay: '[morgen om] LT',\n            nextWeek: 'dddd [om] LT',\n            lastDay: '[gisteren om] LT',\n            lastWeek: '[afgelopen] dddd [om] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'over %s',\n            past: '%s geleden',\n            s: 'een paar seconden',\n            ss: '%d seconden',\n            m: 'één minuut',\n            mm: '%d minuten',\n            h: 'één uur',\n            hh: '%d uur',\n            d: 'één dag',\n            dd: '%d dagen',\n            w: 'één week',\n            ww: '%d weken',\n            M: 'één maand',\n            MM: '%d maanden',\n            y: 'één jaar',\n            yy: '%d jaar',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n        ordinal: function (number) {\n            return (\n                number +\n                (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n            );\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return nl;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/nl.js?");

/***/ }),

/***/ "./node_modules/moment/locale/nn.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/nn.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Nynorsk [nn]\n//! authors : https://github.com/mechuwind\n//!           Stephen Ramthun : https://github.com/stephenramthun\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var nn = moment.defineLocale('nn', {\n        months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(\n            '_'\n        ),\n        monthsShort:\n            'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),\n        monthsParseExact: true,\n        weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),\n        weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),\n        weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY [kl.] H:mm',\n            LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',\n        },\n        calendar: {\n            sameDay: '[I dag klokka] LT',\n            nextDay: '[I morgon klokka] LT',\n            nextWeek: 'dddd [klokka] LT',\n            lastDay: '[I går klokka] LT',\n            lastWeek: '[Føregåande] dddd [klokka] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'om %s',\n            past: '%s sidan',\n            s: 'nokre sekund',\n            ss: '%d sekund',\n            m: 'eit minutt',\n            mm: '%d minutt',\n            h: 'ein time',\n            hh: '%d timar',\n            d: 'ein dag',\n            dd: '%d dagar',\n            w: 'ei veke',\n            ww: '%d veker',\n            M: 'ein månad',\n            MM: '%d månader',\n            y: 'eit år',\n            yy: '%d år',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return nn;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/nn.js?");

/***/ }),

/***/ "./node_modules/moment/locale/oc-lnc.js":
/*!**********************************************!*\
  !*** ./node_modules/moment/locale/oc-lnc.js ***!
  \**********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Occitan, lengadocian dialecte [oc-lnc]\n//! author : Quentin PAGÈS : https://github.com/Quenty31\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ocLnc = moment.defineLocale('oc-lnc', {\n        months: {\n            standalone:\n                'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(\n                    '_'\n                ),\n            format: \"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre\".split(\n                '_'\n            ),\n            isFormat: /D[oD]?(\\s)+MMMM/,\n        },\n        monthsShort:\n            'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(\n            '_'\n        ),\n        weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),\n        weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM [de] YYYY',\n            ll: 'D MMM YYYY',\n            LLL: 'D MMMM [de] YYYY [a] H:mm',\n            lll: 'D MMM YYYY, H:mm',\n            LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',\n            llll: 'ddd D MMM YYYY, H:mm',\n        },\n        calendar: {\n            sameDay: '[uèi a] LT',\n            nextDay: '[deman a] LT',\n            nextWeek: 'dddd [a] LT',\n            lastDay: '[ièr a] LT',\n            lastWeek: 'dddd [passat a] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: \"d'aquí %s\",\n            past: 'fa %s',\n            s: 'unas segondas',\n            ss: '%d segondas',\n            m: 'una minuta',\n            mm: '%d minutas',\n            h: 'una ora',\n            hh: '%d oras',\n            d: 'un jorn',\n            dd: '%d jorns',\n            M: 'un mes',\n            MM: '%d meses',\n            y: 'un an',\n            yy: '%d ans',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(r|n|t|è|a)/,\n        ordinal: function (number, period) {\n            var output =\n                number === 1\n                    ? 'r'\n                    : number === 2\n                    ? 'n'\n                    : number === 3\n                    ? 'r'\n                    : number === 4\n                    ? 't'\n                    : 'è';\n            if (period === 'w' || period === 'W') {\n                output = 'a';\n            }\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4,\n        },\n    });\n\n    return ocLnc;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/oc-lnc.js?");

/***/ }),

/***/ "./node_modules/moment/locale/pa-in.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/pa-in.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Punjabi (India) [pa-in]\n//! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '੧',\n            2: '੨',\n            3: '੩',\n            4: '੪',\n            5: '੫',\n            6: '੬',\n            7: '੭',\n            8: '੮',\n            9: '੯',\n            0: '੦',\n        },\n        numberMap = {\n            '੧': '1',\n            '੨': '2',\n            '੩': '3',\n            '੪': '4',\n            '੫': '5',\n            '੬': '6',\n            '੭': '7',\n            '੮': '8',\n            '੯': '9',\n            '੦': '0',\n        };\n\n    var paIn = moment.defineLocale('pa-in', {\n        // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.\n        months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(\n            '_'\n        ),\n        monthsShort:\n            'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(\n                '_'\n            ),\n        weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(\n            '_'\n        ),\n        weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\n        weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm ਵਜੇ',\n            LTS: 'A h:mm:ss ਵਜੇ',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',\n        },\n        calendar: {\n            sameDay: '[ਅਜ] LT',\n            nextDay: '[ਕਲ] LT',\n            nextWeek: '[ਅਗਲਾ] dddd, LT',\n            lastDay: '[ਕਲ] LT',\n            lastWeek: '[ਪਿਛਲੇ] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s ਵਿੱਚ',\n            past: '%s ਪਿਛਲੇ',\n            s: 'ਕੁਝ ਸਕਿੰਟ',\n            ss: '%d ਸਕਿੰਟ',\n            m: 'ਇਕ ਮਿੰਟ',\n            mm: '%d ਮਿੰਟ',\n            h: 'ਇੱਕ ਘੰਟਾ',\n            hh: '%d ਘੰਟੇ',\n            d: 'ਇੱਕ ਦਿਨ',\n            dd: '%d ਦਿਨ',\n            M: 'ਇੱਕ ਮਹੀਨਾ',\n            MM: '%d ਮਹੀਨੇ',\n            y: 'ਇੱਕ ਸਾਲ',\n            yy: '%d ਸਾਲ',\n        },\n        preparse: function (string) {\n            return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        // Punjabi notation for meridiems are quite fuzzy in practice. While there exists\n        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.\n        meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'ਰਾਤ') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'ਸਵੇਰ') {\n                return hour;\n            } else if (meridiem === 'ਦੁਪਹਿਰ') {\n                return hour >= 10 ? hour : hour + 12;\n            } else if (meridiem === 'ਸ਼ਾਮ') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'ਰਾਤ';\n            } else if (hour < 10) {\n                return 'ਸਵੇਰ';\n            } else if (hour < 17) {\n                return 'ਦੁਪਹਿਰ';\n            } else if (hour < 20) {\n                return 'ਸ਼ਾਮ';\n            } else {\n                return 'ਰਾਤ';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return paIn;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/pa-in.js?");

/***/ }),

/***/ "./node_modules/moment/locale/pl.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/pl.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Polish [pl]\n//! author : Rafal Hirsz : https://github.com/evoL\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var monthsNominative =\n            'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(\n                '_'\n            ),\n        monthsSubjective =\n            'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(\n                '_'\n            ),\n        monthsParse = [\n            /^sty/i,\n            /^lut/i,\n            /^mar/i,\n            /^kwi/i,\n            /^maj/i,\n            /^cze/i,\n            /^lip/i,\n            /^sie/i,\n            /^wrz/i,\n            /^paź/i,\n            /^lis/i,\n            /^gru/i,\n        ];\n    function plural(n) {\n        return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;\n    }\n    function translate(number, withoutSuffix, key) {\n        var result = number + ' ';\n        switch (key) {\n            case 'ss':\n                return result + (plural(number) ? 'sekundy' : 'sekund');\n            case 'm':\n                return withoutSuffix ? 'minuta' : 'minutę';\n            case 'mm':\n                return result + (plural(number) ? 'minuty' : 'minut');\n            case 'h':\n                return withoutSuffix ? 'godzina' : 'godzinę';\n            case 'hh':\n                return result + (plural(number) ? 'godziny' : 'godzin');\n            case 'ww':\n                return result + (plural(number) ? 'tygodnie' : 'tygodni');\n            case 'MM':\n                return result + (plural(number) ? 'miesiące' : 'miesięcy');\n            case 'yy':\n                return result + (plural(number) ? 'lata' : 'lat');\n        }\n    }\n\n    var pl = moment.defineLocale('pl', {\n        months: function (momentToFormat, format) {\n            if (!momentToFormat) {\n                return monthsNominative;\n            } else if (/D MMMM/.test(format)) {\n                return monthsSubjective[momentToFormat.month()];\n            } else {\n                return monthsNominative[momentToFormat.month()];\n            }\n        },\n        monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n        weekdays:\n            'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),\n        weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),\n        weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Dziś o] LT',\n            nextDay: '[Jutro o] LT',\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[W niedzielę o] LT';\n\n                    case 2:\n                        return '[We wtorek o] LT';\n\n                    case 3:\n                        return '[W środę o] LT';\n\n                    case 6:\n                        return '[W sobotę o] LT';\n\n                    default:\n                        return '[W] dddd [o] LT';\n                }\n            },\n            lastDay: '[Wczoraj o] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[W zeszłą niedzielę o] LT';\n                    case 3:\n                        return '[W zeszłą środę o] LT';\n                    case 6:\n                        return '[W zeszłą sobotę o] LT';\n                    default:\n                        return '[W zeszły] dddd [o] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'za %s',\n            past: '%s temu',\n            s: 'kilka sekund',\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: '1 dzień',\n            dd: '%d dni',\n            w: 'tydzień',\n            ww: translate,\n            M: 'miesiąc',\n            MM: translate,\n            y: 'rok',\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return pl;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/pl.js?");

/***/ }),

/***/ "./node_modules/moment/locale/pt-br.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/pt-br.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Portuguese (Brazil) [pt-br]\n//! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ptBr = moment.defineLocale('pt-br', {\n        months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(\n            '_'\n        ),\n        monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),\n        weekdays:\n            'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(\n                '_'\n            ),\n        weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),\n        weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D [de] MMMM [de] YYYY',\n            LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',\n            LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',\n        },\n        calendar: {\n            sameDay: '[Hoje às] LT',\n            nextDay: '[Amanhã às] LT',\n            nextWeek: 'dddd [às] LT',\n            lastDay: '[Ontem às] LT',\n            lastWeek: function () {\n                return this.day() === 0 || this.day() === 6\n                    ? '[Último] dddd [às] LT' // Saturday + Sunday\n                    : '[Última] dddd [às] LT'; // Monday - Friday\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'em %s',\n            past: 'há %s',\n            s: 'poucos segundos',\n            ss: '%d segundos',\n            m: 'um minuto',\n            mm: '%d minutos',\n            h: 'uma hora',\n            hh: '%d horas',\n            d: 'um dia',\n            dd: '%d dias',\n            M: 'um mês',\n            MM: '%d meses',\n            y: 'um ano',\n            yy: '%d anos',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        invalidDate: 'Data inválida',\n    });\n\n    return ptBr;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/pt-br.js?");

/***/ }),

/***/ "./node_modules/moment/locale/pt.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/pt.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Portuguese [pt]\n//! author : Jefferson : https://github.com/jalex79\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var pt = moment.defineLocale('pt', {\n        months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(\n            '_'\n        ),\n        monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),\n        weekdays:\n            'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(\n                '_'\n            ),\n        weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),\n        weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D [de] MMMM [de] YYYY',\n            LLL: 'D [de] MMMM [de] YYYY HH:mm',\n            LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Hoje às] LT',\n            nextDay: '[Amanhã às] LT',\n            nextWeek: 'dddd [às] LT',\n            lastDay: '[Ontem às] LT',\n            lastWeek: function () {\n                return this.day() === 0 || this.day() === 6\n                    ? '[Último] dddd [às] LT' // Saturday + Sunday\n                    : '[Última] dddd [às] LT'; // Monday - Friday\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'em %s',\n            past: 'há %s',\n            s: 'segundos',\n            ss: '%d segundos',\n            m: 'um minuto',\n            mm: '%d minutos',\n            h: 'uma hora',\n            hh: '%d horas',\n            d: 'um dia',\n            dd: '%d dias',\n            w: 'uma semana',\n            ww: '%d semanas',\n            M: 'um mês',\n            MM: '%d meses',\n            y: 'um ano',\n            yy: '%d anos',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}º/,\n        ordinal: '%dº',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return pt;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/pt.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ro.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ro.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Romanian [ro]\n//! author : Vlad Gurdiga : https://github.com/gurdiga\n//! author : Valentin Agachi : https://github.com/avaly\n//! author : Emanuel Cepoi : https://github.com/cepem\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function relativeTimeWithPlural(number, withoutSuffix, key) {\n        var format = {\n                ss: 'secunde',\n                mm: 'minute',\n                hh: 'ore',\n                dd: 'zile',\n                ww: 'săptămâni',\n                MM: 'luni',\n                yy: 'ani',\n            },\n            separator = ' ';\n        if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {\n            separator = ' de ';\n        }\n        return number + separator + format[key];\n    }\n\n    var ro = moment.defineLocale('ro', {\n        months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(\n            '_'\n        ),\n        monthsShort:\n            'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),\n        weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),\n        weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY H:mm',\n            LLLL: 'dddd, D MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[azi la] LT',\n            nextDay: '[mâine la] LT',\n            nextWeek: 'dddd [la] LT',\n            lastDay: '[ieri la] LT',\n            lastWeek: '[fosta] dddd [la] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'peste %s',\n            past: '%s în urmă',\n            s: 'câteva secunde',\n            ss: relativeTimeWithPlural,\n            m: 'un minut',\n            mm: relativeTimeWithPlural,\n            h: 'o oră',\n            hh: relativeTimeWithPlural,\n            d: 'o zi',\n            dd: relativeTimeWithPlural,\n            w: 'o săptămână',\n            ww: relativeTimeWithPlural,\n            M: 'o lună',\n            MM: relativeTimeWithPlural,\n            y: 'un an',\n            yy: relativeTimeWithPlural,\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return ro;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ro.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ru.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ru.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function plural(word, num) {\n        var forms = word.split('_');\n        return num % 10 === 1 && num % 100 !== 11\n            ? forms[0]\n            : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)\n            ? forms[1]\n            : forms[2];\n    }\n    function relativeTimeWithPlural(number, withoutSuffix, key) {\n        var format = {\n            ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',\n            mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',\n            hh: 'час_часа_часов',\n            dd: 'день_дня_дней',\n            ww: 'неделя_недели_недель',\n            MM: 'месяц_месяца_месяцев',\n            yy: 'год_года_лет',\n        };\n        if (key === 'm') {\n            return withoutSuffix ? 'минута' : 'минуту';\n        } else {\n            return number + ' ' + plural(format[key], +number);\n        }\n    }\n    var monthsParse = [\n        /^янв/i,\n        /^фев/i,\n        /^мар/i,\n        /^апр/i,\n        /^ма[йя]/i,\n        /^июн/i,\n        /^июл/i,\n        /^авг/i,\n        /^сен/i,\n        /^окт/i,\n        /^ноя/i,\n        /^дек/i,\n    ];\n\n    // http://new.gramota.ru/spravka/rules/139-prop : § 103\n    // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637\n    // CLDR data:          http://www.unicode.org/cldr/charts/28/summary/ru.html#1753\n    var ru = moment.defineLocale('ru', {\n        months: {\n            format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(\n                '_'\n            ),\n            standalone:\n                'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(\n                    '_'\n                ),\n        },\n        monthsShort: {\n            // по CLDR именно \"июл.\" и \"июн.\", но какой смысл менять букву на точку?\n            format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(\n                '_'\n            ),\n            standalone:\n                'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(\n                    '_'\n                ),\n        },\n        weekdays: {\n            standalone:\n                'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(\n                    '_'\n                ),\n            format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(\n                '_'\n            ),\n            isFormat: /\\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,\n        },\n        weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\n        weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\n        monthsParse: monthsParse,\n        longMonthsParse: monthsParse,\n        shortMonthsParse: monthsParse,\n\n        // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки\n        monthsRegex:\n            /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\n\n        // копия предыдущего\n        monthsShortRegex:\n            /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\n\n        // полные названия с падежами\n        monthsStrictRegex:\n            /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,\n\n        // Выражение, которое соответствует только сокращённым формам\n        monthsShortStrictRegex:\n            /^(янв\\.|февр?\\.|мар[т.]|апр\\.|ма[яй]|июн[ья.]|июл[ья.]|авг\\.|сент?\\.|окт\\.|нояб?\\.|дек\\.)/i,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY г.',\n            LLL: 'D MMMM YYYY г., H:mm',\n            LLLL: 'dddd, D MMMM YYYY г., H:mm',\n        },\n        calendar: {\n            sameDay: '[Сегодня, в] LT',\n            nextDay: '[Завтра, в] LT',\n            lastDay: '[Вчера, в] LT',\n            nextWeek: function (now) {\n                if (now.week() !== this.week()) {\n                    switch (this.day()) {\n                        case 0:\n                            return '[В следующее] dddd, [в] LT';\n                        case 1:\n                        case 2:\n                        case 4:\n                            return '[В следующий] dddd, [в] LT';\n                        case 3:\n                        case 5:\n                        case 6:\n                            return '[В следующую] dddd, [в] LT';\n                    }\n                } else {\n                    if (this.day() === 2) {\n                        return '[Во] dddd, [в] LT';\n                    } else {\n                        return '[В] dddd, [в] LT';\n                    }\n                }\n            },\n            lastWeek: function (now) {\n                if (now.week() !== this.week()) {\n                    switch (this.day()) {\n                        case 0:\n                            return '[В прошлое] dddd, [в] LT';\n                        case 1:\n                        case 2:\n                        case 4:\n                            return '[В прошлый] dddd, [в] LT';\n                        case 3:\n                        case 5:\n                        case 6:\n                            return '[В прошлую] dddd, [в] LT';\n                    }\n                } else {\n                    if (this.day() === 2) {\n                        return '[Во] dddd, [в] LT';\n                    } else {\n                        return '[В] dddd, [в] LT';\n                    }\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'через %s',\n            past: '%s назад',\n            s: 'несколько секунд',\n            ss: relativeTimeWithPlural,\n            m: relativeTimeWithPlural,\n            mm: relativeTimeWithPlural,\n            h: 'час',\n            hh: relativeTimeWithPlural,\n            d: 'день',\n            dd: relativeTimeWithPlural,\n            w: 'неделя',\n            ww: relativeTimeWithPlural,\n            M: 'месяц',\n            MM: relativeTimeWithPlural,\n            y: 'год',\n            yy: relativeTimeWithPlural,\n        },\n        meridiemParse: /ночи|утра|дня|вечера/i,\n        isPM: function (input) {\n            return /^(дня|вечера)$/.test(input);\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'ночи';\n            } else if (hour < 12) {\n                return 'утра';\n            } else if (hour < 17) {\n                return 'дня';\n            } else {\n                return 'вечера';\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(й|го|я)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'M':\n                case 'd':\n                case 'DDD':\n                    return number + '-й';\n                case 'D':\n                    return number + '-го';\n                case 'w':\n                case 'W':\n                    return number + '-я';\n                default:\n                    return number;\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return ru;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ru.js?");

/***/ }),

/***/ "./node_modules/moment/locale/sd.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/sd.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Sindhi [sd]\n//! author : Narain Sagar : https://github.com/narainsagar\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var months = [\n            'جنوري',\n            'فيبروري',\n            'مارچ',\n            'اپريل',\n            'مئي',\n            'جون',\n            'جولاءِ',\n            'آگسٽ',\n            'سيپٽمبر',\n            'آڪٽوبر',\n            'نومبر',\n            'ڊسمبر',\n        ],\n        days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];\n\n    var sd = moment.defineLocale('sd', {\n        months: months,\n        monthsShort: months,\n        weekdays: days,\n        weekdaysShort: days,\n        weekdaysMin: days,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd، D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /صبح|شام/,\n        isPM: function (input) {\n            return 'شام' === input;\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'صبح';\n            }\n            return 'شام';\n        },\n        calendar: {\n            sameDay: '[اڄ] LT',\n            nextDay: '[سڀاڻي] LT',\n            nextWeek: 'dddd [اڳين هفتي تي] LT',\n            lastDay: '[ڪالهه] LT',\n            lastWeek: '[گزريل هفتي] dddd [تي] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s پوء',\n            past: '%s اڳ',\n            s: 'چند سيڪنڊ',\n            ss: '%d سيڪنڊ',\n            m: 'هڪ منٽ',\n            mm: '%d منٽ',\n            h: 'هڪ ڪلاڪ',\n            hh: '%d ڪلاڪ',\n            d: 'هڪ ڏينهن',\n            dd: '%d ڏينهن',\n            M: 'هڪ مهينو',\n            MM: '%d مهينا',\n            y: 'هڪ سال',\n            yy: '%d سال',\n        },\n        preparse: function (string) {\n            return string.replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string.replace(/,/g, '،');\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return sd;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/sd.js?");

/***/ }),

/***/ "./node_modules/moment/locale/se.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/se.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Northern Sami [se]\n//! authors : Bård Rolstad Henriksen : https://github.com/karamell\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var se = moment.defineLocale('se', {\n        months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split(\n            '_'\n        ),\n        monthsShort:\n            'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),\n        weekdays:\n            'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(\n                '_'\n            ),\n        weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),\n        weekdaysMin: 's_v_m_g_d_b_L'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'MMMM D. [b.] YYYY',\n            LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',\n            LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',\n        },\n        calendar: {\n            sameDay: '[otne ti] LT',\n            nextDay: '[ihttin ti] LT',\n            nextWeek: 'dddd [ti] LT',\n            lastDay: '[ikte ti] LT',\n            lastWeek: '[ovddit] dddd [ti] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s geažes',\n            past: 'maŋit %s',\n            s: 'moadde sekunddat',\n            ss: '%d sekunddat',\n            m: 'okta minuhta',\n            mm: '%d minuhtat',\n            h: 'okta diimmu',\n            hh: '%d diimmut',\n            d: 'okta beaivi',\n            dd: '%d beaivvit',\n            M: 'okta mánnu',\n            MM: '%d mánut',\n            y: 'okta jahki',\n            yy: '%d jagit',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return se;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/se.js?");

/***/ }),

/***/ "./node_modules/moment/locale/si.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/si.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Sinhalese [si]\n//! author : Sampath Sitinamaluwa : https://github.com/sampathsris\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    /*jshint -W100*/\n    var si = moment.defineLocale('si', {\n        months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(\n            '_'\n        ),\n        monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(\n            '_'\n        ),\n        weekdays:\n            'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(\n                '_'\n            ),\n        weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),\n        weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'a h:mm',\n            LTS: 'a h:mm:ss',\n            L: 'YYYY/MM/DD',\n            LL: 'YYYY MMMM D',\n            LLL: 'YYYY MMMM D, a h:mm',\n            LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',\n        },\n        calendar: {\n            sameDay: '[අද] LT[ට]',\n            nextDay: '[හෙට] LT[ට]',\n            nextWeek: 'dddd LT[ට]',\n            lastDay: '[ඊයේ] LT[ට]',\n            lastWeek: '[පසුගිය] dddd LT[ට]',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%sකින්',\n            past: '%sකට පෙර',\n            s: 'තත්පර කිහිපය',\n            ss: 'තත්පර %d',\n            m: 'මිනිත්තුව',\n            mm: 'මිනිත්තු %d',\n            h: 'පැය',\n            hh: 'පැය %d',\n            d: 'දිනය',\n            dd: 'දින %d',\n            M: 'මාසය',\n            MM: 'මාස %d',\n            y: 'වසර',\n            yy: 'වසර %d',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2} වැනි/,\n        ordinal: function (number) {\n            return number + ' වැනි';\n        },\n        meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,\n        isPM: function (input) {\n            return input === 'ප.ව.' || input === 'පස් වරු';\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours > 11) {\n                return isLower ? 'ප.ව.' : 'පස් වරු';\n            } else {\n                return isLower ? 'පෙ.ව.' : 'පෙර වරු';\n            }\n        },\n    });\n\n    return si;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/si.js?");

/***/ }),

/***/ "./node_modules/moment/locale/sk.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/sk.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Slovak [sk]\n//! author : Martin Minka : https://github.com/k2s\n//! based on work of petrbela : https://github.com/petrbela\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var months =\n            'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(\n                '_'\n            ),\n        monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');\n    function plural(n) {\n        return n > 1 && n < 5;\n    }\n    function translate(number, withoutSuffix, key, isFuture) {\n        var result = number + ' ';\n        switch (key) {\n            case 's': // a few seconds / in a few seconds / a few seconds ago\n                return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';\n            case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'sekundy' : 'sekúnd');\n                } else {\n                    return result + 'sekundami';\n                }\n            case 'm': // a minute / in a minute / a minute ago\n                return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';\n            case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'minúty' : 'minút');\n                } else {\n                    return result + 'minútami';\n                }\n            case 'h': // an hour / in an hour / an hour ago\n                return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';\n            case 'hh': // 9 hours / in 9 hours / 9 hours ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'hodiny' : 'hodín');\n                } else {\n                    return result + 'hodinami';\n                }\n            case 'd': // a day / in a day / a day ago\n                return withoutSuffix || isFuture ? 'deň' : 'dňom';\n            case 'dd': // 9 days / in 9 days / 9 days ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'dni' : 'dní');\n                } else {\n                    return result + 'dňami';\n                }\n            case 'M': // a month / in a month / a month ago\n                return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';\n            case 'MM': // 9 months / in 9 months / 9 months ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'mesiace' : 'mesiacov');\n                } else {\n                    return result + 'mesiacmi';\n                }\n            case 'y': // a year / in a year / a year ago\n                return withoutSuffix || isFuture ? 'rok' : 'rokom';\n            case 'yy': // 9 years / in 9 years / 9 years ago\n                if (withoutSuffix || isFuture) {\n                    return result + (plural(number) ? 'roky' : 'rokov');\n                } else {\n                    return result + 'rokmi';\n                }\n        }\n    }\n\n    var sk = moment.defineLocale('sk', {\n        months: months,\n        monthsShort: monthsShort,\n        weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),\n        weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),\n        weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY H:mm',\n            LLLL: 'dddd D. MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[dnes o] LT',\n            nextDay: '[zajtra o] LT',\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[v nedeľu o] LT';\n                    case 1:\n                    case 2:\n                        return '[v] dddd [o] LT';\n                    case 3:\n                        return '[v stredu o] LT';\n                    case 4:\n                        return '[vo štvrtok o] LT';\n                    case 5:\n                        return '[v piatok o] LT';\n                    case 6:\n                        return '[v sobotu o] LT';\n                }\n            },\n            lastDay: '[včera o] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[minulú nedeľu o] LT';\n                    case 1:\n                    case 2:\n                        return '[minulý] dddd [o] LT';\n                    case 3:\n                        return '[minulú stredu o] LT';\n                    case 4:\n                    case 5:\n                        return '[minulý] dddd [o] LT';\n                    case 6:\n                        return '[minulú sobotu o] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'za %s',\n            past: 'pred %s',\n            s: translate,\n            ss: translate,\n            m: translate,\n            mm: translate,\n            h: translate,\n            hh: translate,\n            d: translate,\n            dd: translate,\n            M: translate,\n            MM: translate,\n            y: translate,\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return sk;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/sk.js?");

/***/ }),

/***/ "./node_modules/moment/locale/sl.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/sl.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Slovenian [sl]\n//! author : Robert Sedovšek : https://github.com/sedovsek\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var result = number + ' ';\n        switch (key) {\n            case 's':\n                return withoutSuffix || isFuture\n                    ? 'nekaj sekund'\n                    : 'nekaj sekundami';\n            case 'ss':\n                if (number === 1) {\n                    result += withoutSuffix ? 'sekundo' : 'sekundi';\n                } else if (number === 2) {\n                    result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';\n                } else if (number < 5) {\n                    result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';\n                } else {\n                    result += 'sekund';\n                }\n                return result;\n            case 'm':\n                return withoutSuffix ? 'ena minuta' : 'eno minuto';\n            case 'mm':\n                if (number === 1) {\n                    result += withoutSuffix ? 'minuta' : 'minuto';\n                } else if (number === 2) {\n                    result += withoutSuffix || isFuture ? 'minuti' : 'minutama';\n                } else if (number < 5) {\n                    result += withoutSuffix || isFuture ? 'minute' : 'minutami';\n                } else {\n                    result += withoutSuffix || isFuture ? 'minut' : 'minutami';\n                }\n                return result;\n            case 'h':\n                return withoutSuffix ? 'ena ura' : 'eno uro';\n            case 'hh':\n                if (number === 1) {\n                    result += withoutSuffix ? 'ura' : 'uro';\n                } else if (number === 2) {\n                    result += withoutSuffix || isFuture ? 'uri' : 'urama';\n                } else if (number < 5) {\n                    result += withoutSuffix || isFuture ? 'ure' : 'urami';\n                } else {\n                    result += withoutSuffix || isFuture ? 'ur' : 'urami';\n                }\n                return result;\n            case 'd':\n                return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';\n            case 'dd':\n                if (number === 1) {\n                    result += withoutSuffix || isFuture ? 'dan' : 'dnem';\n                } else if (number === 2) {\n                    result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';\n                } else {\n                    result += withoutSuffix || isFuture ? 'dni' : 'dnevi';\n                }\n                return result;\n            case 'M':\n                return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';\n            case 'MM':\n                if (number === 1) {\n                    result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';\n                } else if (number === 2) {\n                    result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';\n                } else if (number < 5) {\n                    result += withoutSuffix || isFuture ? 'mesece' : 'meseci';\n                } else {\n                    result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';\n                }\n                return result;\n            case 'y':\n                return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';\n            case 'yy':\n                if (number === 1) {\n                    result += withoutSuffix || isFuture ? 'leto' : 'letom';\n                } else if (number === 2) {\n                    result += withoutSuffix || isFuture ? 'leti' : 'letoma';\n                } else if (number < 5) {\n                    result += withoutSuffix || isFuture ? 'leta' : 'leti';\n                } else {\n                    result += withoutSuffix || isFuture ? 'let' : 'leti';\n                }\n                return result;\n        }\n    }\n\n    var sl = moment.defineLocale('sl', {\n        months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(\n            '_'\n        ),\n        monthsShort:\n            'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),\n        weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),\n        weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD. MM. YYYY',\n            LL: 'D. MMMM YYYY',\n            LLL: 'D. MMMM YYYY H:mm',\n            LLLL: 'dddd, D. MMMM YYYY H:mm',\n        },\n        calendar: {\n            sameDay: '[danes ob] LT',\n            nextDay: '[jutri ob] LT',\n\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[v] [nedeljo] [ob] LT';\n                    case 3:\n                        return '[v] [sredo] [ob] LT';\n                    case 6:\n                        return '[v] [soboto] [ob] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[v] dddd [ob] LT';\n                }\n            },\n            lastDay: '[včeraj ob] LT',\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[prejšnjo] [nedeljo] [ob] LT';\n                    case 3:\n                        return '[prejšnjo] [sredo] [ob] LT';\n                    case 6:\n                        return '[prejšnjo] [soboto] [ob] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[prejšnji] dddd [ob] LT';\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'čez %s',\n            past: 'pred %s',\n            s: processRelativeTime,\n            ss: processRelativeTime,\n            m: processRelativeTime,\n            mm: processRelativeTime,\n            h: processRelativeTime,\n            hh: processRelativeTime,\n            d: processRelativeTime,\n            dd: processRelativeTime,\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return sl;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/sl.js?");

/***/ }),

/***/ "./node_modules/moment/locale/sq.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/sq.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Albanian [sq]\n//! author : Flakërim Ismani : https://github.com/flakerimi\n//! author : Menelion Elensúle : https://github.com/Oire\n//! author : Oerd Cukalla : https://github.com/oerd\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var sq = moment.defineLocale('sq', {\n        months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),\n        weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(\n            '_'\n        ),\n        weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),\n        weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),\n        weekdaysParseExact: true,\n        meridiemParse: /PD|MD/,\n        isPM: function (input) {\n            return input.charAt(0) === 'M';\n        },\n        meridiem: function (hours, minutes, isLower) {\n            return hours < 12 ? 'PD' : 'MD';\n        },\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Sot në] LT',\n            nextDay: '[Nesër në] LT',\n            nextWeek: 'dddd [në] LT',\n            lastDay: '[Dje në] LT',\n            lastWeek: 'dddd [e kaluar në] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'në %s',\n            past: '%s më parë',\n            s: 'disa sekonda',\n            ss: '%d sekonda',\n            m: 'një minutë',\n            mm: '%d minuta',\n            h: 'një orë',\n            hh: '%d orë',\n            d: 'një ditë',\n            dd: '%d ditë',\n            M: 'një muaj',\n            MM: '%d muaj',\n            y: 'një vit',\n            yy: '%d vite',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return sq;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/sq.js?");

/***/ }),

/***/ "./node_modules/moment/locale/sr-cyrl.js":
/*!***********************************************!*\
  !*** ./node_modules/moment/locale/sr-cyrl.js ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Serbian Cyrillic [sr-cyrl]\n//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j\n//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var translator = {\n        words: {\n            //Different grammatical cases\n            ss: ['секунда', 'секунде', 'секунди'],\n            m: ['један минут', 'једног минута'],\n            mm: ['минут', 'минута', 'минута'],\n            h: ['један сат', 'једног сата'],\n            hh: ['сат', 'сата', 'сати'],\n            d: ['један дан', 'једног дана'],\n            dd: ['дан', 'дана', 'дана'],\n            M: ['један месец', 'једног месеца'],\n            MM: ['месец', 'месеца', 'месеци'],\n            y: ['једну годину', 'једне године'],\n            yy: ['годину', 'године', 'година'],\n        },\n        correctGrammaticalCase: function (number, wordKey) {\n            if (\n                number % 10 >= 1 &&\n                number % 10 <= 4 &&\n                (number % 100 < 10 || number % 100 >= 20)\n            ) {\n                return number % 10 === 1 ? wordKey[0] : wordKey[1];\n            }\n            return wordKey[2];\n        },\n        translate: function (number, withoutSuffix, key, isFuture) {\n            var wordKey = translator.words[key],\n                word;\n\n            if (key.length === 1) {\n                // Nominativ\n                if (key === 'y' && withoutSuffix) return 'једна година';\n                return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];\n            }\n\n            word = translator.correctGrammaticalCase(number, wordKey);\n            // Nominativ\n            if (key === 'yy' && withoutSuffix && word === 'годину') {\n                return number + ' година';\n            }\n\n            return number + ' ' + word;\n        },\n    };\n\n    var srCyrl = moment.defineLocale('sr-cyrl', {\n        months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(\n            '_'\n        ),\n        monthsShort:\n            'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),\n        monthsParseExact: true,\n        weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),\n        weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),\n        weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'D. M. YYYY.',\n            LL: 'D. MMMM YYYY.',\n            LLL: 'D. MMMM YYYY. H:mm',\n            LLLL: 'dddd, D. MMMM YYYY. H:mm',\n        },\n        calendar: {\n            sameDay: '[данас у] LT',\n            nextDay: '[сутра у] LT',\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[у] [недељу] [у] LT';\n                    case 3:\n                        return '[у] [среду] [у] LT';\n                    case 6:\n                        return '[у] [суботу] [у] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[у] dddd [у] LT';\n                }\n            },\n            lastDay: '[јуче у] LT',\n            lastWeek: function () {\n                var lastWeekDays = [\n                    '[прошле] [недеље] [у] LT',\n                    '[прошлог] [понедељка] [у] LT',\n                    '[прошлог] [уторка] [у] LT',\n                    '[прошле] [среде] [у] LT',\n                    '[прошлог] [четвртка] [у] LT',\n                    '[прошлог] [петка] [у] LT',\n                    '[прошле] [суботе] [у] LT',\n                ];\n                return lastWeekDays[this.day()];\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'за %s',\n            past: 'пре %s',\n            s: 'неколико секунди',\n            ss: translator.translate,\n            m: translator.translate,\n            mm: translator.translate,\n            h: translator.translate,\n            hh: translator.translate,\n            d: translator.translate,\n            dd: translator.translate,\n            M: translator.translate,\n            MM: translator.translate,\n            y: translator.translate,\n            yy: translator.translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 1st is the first week of the year.\n        },\n    });\n\n    return srCyrl;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/sr-cyrl.js?");

/***/ }),

/***/ "./node_modules/moment/locale/sr.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/sr.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Serbian [sr]\n//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j\n//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var translator = {\n        words: {\n            //Different grammatical cases\n            ss: ['sekunda', 'sekunde', 'sekundi'],\n            m: ['jedan minut', 'jednog minuta'],\n            mm: ['minut', 'minuta', 'minuta'],\n            h: ['jedan sat', 'jednog sata'],\n            hh: ['sat', 'sata', 'sati'],\n            d: ['jedan dan', 'jednog dana'],\n            dd: ['dan', 'dana', 'dana'],\n            M: ['jedan mesec', 'jednog meseca'],\n            MM: ['mesec', 'meseca', 'meseci'],\n            y: ['jednu godinu', 'jedne godine'],\n            yy: ['godinu', 'godine', 'godina'],\n        },\n        correctGrammaticalCase: function (number, wordKey) {\n            if (\n                number % 10 >= 1 &&\n                number % 10 <= 4 &&\n                (number % 100 < 10 || number % 100 >= 20)\n            ) {\n                return number % 10 === 1 ? wordKey[0] : wordKey[1];\n            }\n            return wordKey[2];\n        },\n        translate: function (number, withoutSuffix, key, isFuture) {\n            var wordKey = translator.words[key],\n                word;\n\n            if (key.length === 1) {\n                // Nominativ\n                if (key === 'y' && withoutSuffix) return 'jedna godina';\n                return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];\n            }\n\n            word = translator.correctGrammaticalCase(number, wordKey);\n            // Nominativ\n            if (key === 'yy' && withoutSuffix && word === 'godinu') {\n                return number + ' godina';\n            }\n\n            return number + ' ' + word;\n        },\n    };\n\n    var sr = moment.defineLocale('sr', {\n        months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(\n            '_'\n        ),\n        monthsShort:\n            'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),\n        monthsParseExact: true,\n        weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(\n            '_'\n        ),\n        weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),\n        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'D. M. YYYY.',\n            LL: 'D. MMMM YYYY.',\n            LLL: 'D. MMMM YYYY. H:mm',\n            LLLL: 'dddd, D. MMMM YYYY. H:mm',\n        },\n        calendar: {\n            sameDay: '[danas u] LT',\n            nextDay: '[sutra u] LT',\n            nextWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                        return '[u] [nedelju] [u] LT';\n                    case 3:\n                        return '[u] [sredu] [u] LT';\n                    case 6:\n                        return '[u] [subotu] [u] LT';\n                    case 1:\n                    case 2:\n                    case 4:\n                    case 5:\n                        return '[u] dddd [u] LT';\n                }\n            },\n            lastDay: '[juče u] LT',\n            lastWeek: function () {\n                var lastWeekDays = [\n                    '[prošle] [nedelje] [u] LT',\n                    '[prošlog] [ponedeljka] [u] LT',\n                    '[prošlog] [utorka] [u] LT',\n                    '[prošle] [srede] [u] LT',\n                    '[prošlog] [četvrtka] [u] LT',\n                    '[prošlog] [petka] [u] LT',\n                    '[prošle] [subote] [u] LT',\n                ];\n                return lastWeekDays[this.day()];\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'za %s',\n            past: 'pre %s',\n            s: 'nekoliko sekundi',\n            ss: translator.translate,\n            m: translator.translate,\n            mm: translator.translate,\n            h: translator.translate,\n            hh: translator.translate,\n            d: translator.translate,\n            dd: translator.translate,\n            M: translator.translate,\n            MM: translator.translate,\n            y: translator.translate,\n            yy: translator.translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return sr;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/sr.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ss.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ss.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : siSwati [ss]\n//! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ss = moment.defineLocale('ss', {\n        months: \"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni\".split(\n            '_'\n        ),\n        monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),\n        weekdays:\n            'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(\n                '_'\n            ),\n        weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),\n        weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY h:mm A',\n            LLLL: 'dddd, D MMMM YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: '[Namuhla nga] LT',\n            nextDay: '[Kusasa nga] LT',\n            nextWeek: 'dddd [nga] LT',\n            lastDay: '[Itolo nga] LT',\n            lastWeek: 'dddd [leliphelile] [nga] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'nga %s',\n            past: 'wenteka nga %s',\n            s: 'emizuzwana lomcane',\n            ss: '%d mzuzwana',\n            m: 'umzuzu',\n            mm: '%d emizuzu',\n            h: 'lihora',\n            hh: '%d emahora',\n            d: 'lilanga',\n            dd: '%d emalanga',\n            M: 'inyanga',\n            MM: '%d tinyanga',\n            y: 'umnyaka',\n            yy: '%d iminyaka',\n        },\n        meridiemParse: /ekuseni|emini|entsambama|ebusuku/,\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 11) {\n                return 'ekuseni';\n            } else if (hours < 15) {\n                return 'emini';\n            } else if (hours < 19) {\n                return 'entsambama';\n            } else {\n                return 'ebusuku';\n            }\n        },\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'ekuseni') {\n                return hour;\n            } else if (meridiem === 'emini') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {\n                if (hour === 0) {\n                    return 0;\n                }\n                return hour + 12;\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}/,\n        ordinal: '%d',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return ss;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ss.js?");

/***/ }),

/***/ "./node_modules/moment/locale/sv.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/sv.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Swedish [sv]\n//! author : Jens Alm : https://github.com/ulmus\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var sv = moment.defineLocale('sv', {\n        months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(\n            '_'\n        ),\n        monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n        weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),\n        weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),\n        weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY-MM-DD',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY [kl.] HH:mm',\n            LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',\n            lll: 'D MMM YYYY HH:mm',\n            llll: 'ddd D MMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Idag] LT',\n            nextDay: '[Imorgon] LT',\n            lastDay: '[Igår] LT',\n            nextWeek: '[På] dddd LT',\n            lastWeek: '[I] dddd[s] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'om %s',\n            past: 'för %s sedan',\n            s: 'några sekunder',\n            ss: '%d sekunder',\n            m: 'en minut',\n            mm: '%d minuter',\n            h: 'en timme',\n            hh: '%d timmar',\n            d: 'en dag',\n            dd: '%d dagar',\n            M: 'en månad',\n            MM: '%d månader',\n            y: 'ett år',\n            yy: '%d år',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(\\:e|\\:a)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? ':e'\n                        : b === 1\n                        ? ':a'\n                        : b === 2\n                        ? ':a'\n                        : b === 3\n                        ? ':e'\n                        : ':e';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return sv;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/sv.js?");

/***/ }),

/***/ "./node_modules/moment/locale/sw.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/sw.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Swahili [sw]\n//! author : Fahad Kassim : https://github.com/fadsel\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var sw = moment.defineLocale('sw', {\n        months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),\n        weekdays:\n            'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(\n                '_'\n            ),\n        weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),\n        weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'hh:mm A',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[leo saa] LT',\n            nextDay: '[kesho saa] LT',\n            nextWeek: '[wiki ijayo] dddd [saat] LT',\n            lastDay: '[jana] LT',\n            lastWeek: '[wiki iliyopita] dddd [saat] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s baadaye',\n            past: 'tokea %s',\n            s: 'hivi punde',\n            ss: 'sekunde %d',\n            m: 'dakika moja',\n            mm: 'dakika %d',\n            h: 'saa limoja',\n            hh: 'masaa %d',\n            d: 'siku moja',\n            dd: 'siku %d',\n            M: 'mwezi mmoja',\n            MM: 'miezi %d',\n            y: 'mwaka mmoja',\n            yy: 'miaka %d',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return sw;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/sw.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ta.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ta.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Tamil [ta]\n//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var symbolMap = {\n            1: '௧',\n            2: '௨',\n            3: '௩',\n            4: '௪',\n            5: '௫',\n            6: '௬',\n            7: '௭',\n            8: '௮',\n            9: '௯',\n            0: '௦',\n        },\n        numberMap = {\n            '௧': '1',\n            '௨': '2',\n            '௩': '3',\n            '௪': '4',\n            '௫': '5',\n            '௬': '6',\n            '௭': '7',\n            '௮': '8',\n            '௯': '9',\n            '௦': '0',\n        };\n\n    var ta = moment.defineLocale('ta', {\n        months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(\n            '_'\n        ),\n        monthsShort:\n            'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(\n                '_'\n            ),\n        weekdays:\n            'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(\n                '_'\n            ),\n        weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(\n            '_'\n        ),\n        weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, HH:mm',\n            LLLL: 'dddd, D MMMM YYYY, HH:mm',\n        },\n        calendar: {\n            sameDay: '[இன்று] LT',\n            nextDay: '[நாளை] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[நேற்று] LT',\n            lastWeek: '[கடந்த வாரம்] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s இல்',\n            past: '%s முன்',\n            s: 'ஒரு சில விநாடிகள்',\n            ss: '%d விநாடிகள்',\n            m: 'ஒரு நிமிடம்',\n            mm: '%d நிமிடங்கள்',\n            h: 'ஒரு மணி நேரம்',\n            hh: '%d மணி நேரம்',\n            d: 'ஒரு நாள்',\n            dd: '%d நாட்கள்',\n            M: 'ஒரு மாதம்',\n            MM: '%d மாதங்கள்',\n            y: 'ஒரு வருடம்',\n            yy: '%d ஆண்டுகள்',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}வது/,\n        ordinal: function (number) {\n            return number + 'வது';\n        },\n        preparse: function (string) {\n            return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {\n                return numberMap[match];\n            });\n        },\n        postformat: function (string) {\n            return string.replace(/\\d/g, function (match) {\n                return symbolMap[match];\n            });\n        },\n        // refer http://ta.wikipedia.org/s/1er1\n        meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 2) {\n                return ' யாமம்';\n            } else if (hour < 6) {\n                return ' வைகறை'; // வைகறை\n            } else if (hour < 10) {\n                return ' காலை'; // காலை\n            } else if (hour < 14) {\n                return ' நண்பகல்'; // நண்பகல்\n            } else if (hour < 18) {\n                return ' எற்பாடு'; // எற்பாடு\n            } else if (hour < 22) {\n                return ' மாலை'; // மாலை\n            } else {\n                return ' யாமம்';\n            }\n        },\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'யாமம்') {\n                return hour < 2 ? hour : hour + 12;\n            } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {\n                return hour;\n            } else if (meridiem === 'நண்பகல்') {\n                return hour >= 10 ? hour : hour + 12;\n            } else {\n                return hour + 12;\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return ta;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ta.js?");

/***/ }),

/***/ "./node_modules/moment/locale/te.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/te.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Telugu [te]\n//! author : Krishna Chaitanya Thota : https://github.com/kcthota\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var te = moment.defineLocale('te', {\n        months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(\n            '_'\n        ),\n        monthsShort:\n            'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays:\n            'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(\n                '_'\n            ),\n        weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),\n        weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),\n        longDateFormat: {\n            LT: 'A h:mm',\n            LTS: 'A h:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY, A h:mm',\n            LLLL: 'dddd, D MMMM YYYY, A h:mm',\n        },\n        calendar: {\n            sameDay: '[నేడు] LT',\n            nextDay: '[రేపు] LT',\n            nextWeek: 'dddd, LT',\n            lastDay: '[నిన్న] LT',\n            lastWeek: '[గత] dddd, LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s లో',\n            past: '%s క్రితం',\n            s: 'కొన్ని క్షణాలు',\n            ss: '%d సెకన్లు',\n            m: 'ఒక నిమిషం',\n            mm: '%d నిమిషాలు',\n            h: 'ఒక గంట',\n            hh: '%d గంటలు',\n            d: 'ఒక రోజు',\n            dd: '%d రోజులు',\n            M: 'ఒక నెల',\n            MM: '%d నెలలు',\n            y: 'ఒక సంవత్సరం',\n            yy: '%d సంవత్సరాలు',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}వ/,\n        ordinal: '%dవ',\n        meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'రాత్రి') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'ఉదయం') {\n                return hour;\n            } else if (meridiem === 'మధ్యాహ్నం') {\n                return hour >= 10 ? hour : hour + 12;\n            } else if (meridiem === 'సాయంత్రం') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'రాత్రి';\n            } else if (hour < 10) {\n                return 'ఉదయం';\n            } else if (hour < 17) {\n                return 'మధ్యాహ్నం';\n            } else if (hour < 20) {\n                return 'సాయంత్రం';\n            } else {\n                return 'రాత్రి';\n            }\n        },\n        week: {\n            dow: 0, // Sunday is the first day of the week.\n            doy: 6, // The week that contains Jan 6th is the first week of the year.\n        },\n    });\n\n    return te;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/te.js?");

/***/ }),

/***/ "./node_modules/moment/locale/tet.js":
/*!*******************************************!*\
  !*** ./node_modules/moment/locale/tet.js ***!
  \*******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Tetun Dili (East Timor) [tet]\n//! author : Joshua Brooks : https://github.com/joshbrooks\n//! author : Onorio De J. Afonso : https://github.com/marobo\n//! author : Sonia Simoes : https://github.com/soniasimoes\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var tet = moment.defineLocale('tet', {\n        months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),\n        weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),\n        weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),\n        weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Ohin iha] LT',\n            nextDay: '[Aban iha] LT',\n            nextWeek: 'dddd [iha] LT',\n            lastDay: '[Horiseik iha] LT',\n            lastWeek: 'dddd [semana kotuk] [iha] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'iha %s',\n            past: '%s liuba',\n            s: 'segundu balun',\n            ss: 'segundu %d',\n            m: 'minutu ida',\n            mm: 'minutu %d',\n            h: 'oras ida',\n            hh: 'oras %d',\n            d: 'loron ida',\n            dd: 'loron %d',\n            M: 'fulan ida',\n            MM: 'fulan %d',\n            y: 'tinan ida',\n            yy: 'tinan %d',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return tet;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/tet.js?");

/***/ }),

/***/ "./node_modules/moment/locale/tg.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/tg.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Tajik [tg]\n//! author : Orif N. Jr. : https://github.com/orif-jr\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var suffixes = {\n        0: '-ум',\n        1: '-ум',\n        2: '-юм',\n        3: '-юм',\n        4: '-ум',\n        5: '-ум',\n        6: '-ум',\n        7: '-ум',\n        8: '-ум',\n        9: '-ум',\n        10: '-ум',\n        12: '-ум',\n        13: '-ум',\n        20: '-ум',\n        30: '-юм',\n        40: '-ум',\n        50: '-ум',\n        60: '-ум',\n        70: '-ум',\n        80: '-ум',\n        90: '-ум',\n        100: '-ум',\n    };\n\n    var tg = moment.defineLocale('tg', {\n        months: {\n            format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(\n                '_'\n            ),\n            standalone:\n                'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(\n                    '_'\n                ),\n        },\n        monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\n        weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(\n            '_'\n        ),\n        weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),\n        weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Имрӯз соати] LT',\n            nextDay: '[Фардо соати] LT',\n            lastDay: '[Дирӯз соати] LT',\n            nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',\n            lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'баъди %s',\n            past: '%s пеш',\n            s: 'якчанд сония',\n            m: 'як дақиқа',\n            mm: '%d дақиқа',\n            h: 'як соат',\n            hh: '%d соат',\n            d: 'як рӯз',\n            dd: '%d рӯз',\n            M: 'як моҳ',\n            MM: '%d моҳ',\n            y: 'як сол',\n            yy: '%d сол',\n        },\n        meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === 'шаб') {\n                return hour < 4 ? hour : hour + 12;\n            } else if (meridiem === 'субҳ') {\n                return hour;\n            } else if (meridiem === 'рӯз') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === 'бегоҳ') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'шаб';\n            } else if (hour < 11) {\n                return 'субҳ';\n            } else if (hour < 16) {\n                return 'рӯз';\n            } else if (hour < 19) {\n                return 'бегоҳ';\n            } else {\n                return 'шаб';\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(ум|юм)/,\n        ordinal: function (number) {\n            var a = number % 10,\n                b = number >= 100 ? 100 : null;\n            return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 1th is the first week of the year.\n        },\n    });\n\n    return tg;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/tg.js?");

/***/ }),

/***/ "./node_modules/moment/locale/th.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/th.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Thai [th]\n//! author : Kridsada Thanabulpong : https://github.com/sirn\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var th = moment.defineLocale('th', {\n        months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(\n            '_'\n        ),\n        monthsShort:\n            'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),\n        weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference\n        weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'H:mm',\n            LTS: 'H:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY เวลา H:mm',\n            LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',\n        },\n        meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,\n        isPM: function (input) {\n            return input === 'หลังเที่ยง';\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'ก่อนเที่ยง';\n            } else {\n                return 'หลังเที่ยง';\n            }\n        },\n        calendar: {\n            sameDay: '[วันนี้ เวลา] LT',\n            nextDay: '[พรุ่งนี้ เวลา] LT',\n            nextWeek: 'dddd[หน้า เวลา] LT',\n            lastDay: '[เมื่อวานนี้ เวลา] LT',\n            lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'อีก %s',\n            past: '%sที่แล้ว',\n            s: 'ไม่กี่วินาที',\n            ss: '%d วินาที',\n            m: '1 นาที',\n            mm: '%d นาที',\n            h: '1 ชั่วโมง',\n            hh: '%d ชั่วโมง',\n            d: '1 วัน',\n            dd: '%d วัน',\n            w: '1 สัปดาห์',\n            ww: '%d สัปดาห์',\n            M: '1 เดือน',\n            MM: '%d เดือน',\n            y: '1 ปี',\n            yy: '%d ปี',\n        },\n    });\n\n    return th;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/th.js?");

/***/ }),

/***/ "./node_modules/moment/locale/tk.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/tk.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Turkmen [tk]\n//! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var suffixes = {\n        1: \"'inji\",\n        5: \"'inji\",\n        8: \"'inji\",\n        70: \"'inji\",\n        80: \"'inji\",\n        2: \"'nji\",\n        7: \"'nji\",\n        20: \"'nji\",\n        50: \"'nji\",\n        3: \"'ünji\",\n        4: \"'ünji\",\n        100: \"'ünji\",\n        6: \"'njy\",\n        9: \"'unjy\",\n        10: \"'unjy\",\n        30: \"'unjy\",\n        60: \"'ynjy\",\n        90: \"'ynjy\",\n    };\n\n    var tk = moment.defineLocale('tk', {\n        months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(\n            '_'\n        ),\n        monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),\n        weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(\n            '_'\n        ),\n        weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),\n        weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[bugün sagat] LT',\n            nextDay: '[ertir sagat] LT',\n            nextWeek: '[indiki] dddd [sagat] LT',\n            lastDay: '[düýn] LT',\n            lastWeek: '[geçen] dddd [sagat] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s soň',\n            past: '%s öň',\n            s: 'birnäçe sekunt',\n            m: 'bir minut',\n            mm: '%d minut',\n            h: 'bir sagat',\n            hh: '%d sagat',\n            d: 'bir gün',\n            dd: '%d gün',\n            M: 'bir aý',\n            MM: '%d aý',\n            y: 'bir ýyl',\n            yy: '%d ýyl',\n        },\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'Do':\n                case 'DD':\n                    return number;\n                default:\n                    if (number === 0) {\n                        // special case for zero\n                        return number + \"'unjy\";\n                    }\n                    var a = number % 10,\n                        b = (number % 100) - a,\n                        c = number >= 100 ? 100 : null;\n                    return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return tk;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/tk.js?");

/***/ }),

/***/ "./node_modules/moment/locale/tl-ph.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/tl-ph.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Tagalog (Philippines) [tl-ph]\n//! author : Dan Hagman : https://github.com/hagmandan\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var tlPh = moment.defineLocale('tl-ph', {\n        months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(\n            '_'\n        ),\n        monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\n        weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(\n            '_'\n        ),\n        weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\n        weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'MM/D/YYYY',\n            LL: 'MMMM D, YYYY',\n            LLL: 'MMMM D, YYYY HH:mm',\n            LLLL: 'dddd, MMMM DD, YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: 'LT [ngayong araw]',\n            nextDay: '[Bukas ng] LT',\n            nextWeek: 'LT [sa susunod na] dddd',\n            lastDay: 'LT [kahapon]',\n            lastWeek: 'LT [noong nakaraang] dddd',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'sa loob ng %s',\n            past: '%s ang nakalipas',\n            s: 'ilang segundo',\n            ss: '%d segundo',\n            m: 'isang minuto',\n            mm: '%d minuto',\n            h: 'isang oras',\n            hh: '%d oras',\n            d: 'isang araw',\n            dd: '%d araw',\n            M: 'isang buwan',\n            MM: '%d buwan',\n            y: 'isang taon',\n            yy: '%d taon',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}/,\n        ordinal: function (number) {\n            return number;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return tlPh;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/tl-ph.js?");

/***/ }),

/***/ "./node_modules/moment/locale/tlh.js":
/*!*******************************************!*\
  !*** ./node_modules/moment/locale/tlh.js ***!
  \*******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Klingon [tlh]\n//! author : Dominika Kruk : https://github.com/amaranthrose\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');\n\n    function translateFuture(output) {\n        var time = output;\n        time =\n            output.indexOf('jaj') !== -1\n                ? time.slice(0, -3) + 'leS'\n                : output.indexOf('jar') !== -1\n                ? time.slice(0, -3) + 'waQ'\n                : output.indexOf('DIS') !== -1\n                ? time.slice(0, -3) + 'nem'\n                : time + ' pIq';\n        return time;\n    }\n\n    function translatePast(output) {\n        var time = output;\n        time =\n            output.indexOf('jaj') !== -1\n                ? time.slice(0, -3) + 'Hu’'\n                : output.indexOf('jar') !== -1\n                ? time.slice(0, -3) + 'wen'\n                : output.indexOf('DIS') !== -1\n                ? time.slice(0, -3) + 'ben'\n                : time + ' ret';\n        return time;\n    }\n\n    function translate(number, withoutSuffix, string, isFuture) {\n        var numberNoun = numberAsNoun(number);\n        switch (string) {\n            case 'ss':\n                return numberNoun + ' lup';\n            case 'mm':\n                return numberNoun + ' tup';\n            case 'hh':\n                return numberNoun + ' rep';\n            case 'dd':\n                return numberNoun + ' jaj';\n            case 'MM':\n                return numberNoun + ' jar';\n            case 'yy':\n                return numberNoun + ' DIS';\n        }\n    }\n\n    function numberAsNoun(number) {\n        var hundred = Math.floor((number % 1000) / 100),\n            ten = Math.floor((number % 100) / 10),\n            one = number % 10,\n            word = '';\n        if (hundred > 0) {\n            word += numbersNouns[hundred] + 'vatlh';\n        }\n        if (ten > 0) {\n            word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';\n        }\n        if (one > 0) {\n            word += (word !== '' ? ' ' : '') + numbersNouns[one];\n        }\n        return word === '' ? 'pagh' : word;\n    }\n\n    var tlh = moment.defineLocale('tlh', {\n        months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split(\n            '_'\n        ),\n        monthsShort:\n            'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(\n            '_'\n        ),\n        weekdaysShort:\n            'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\n        weekdaysMin:\n            'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[DaHjaj] LT',\n            nextDay: '[wa’leS] LT',\n            nextWeek: 'LLL',\n            lastDay: '[wa’Hu’] LT',\n            lastWeek: 'LLL',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: translateFuture,\n            past: translatePast,\n            s: 'puS lup',\n            ss: translate,\n            m: 'wa’ tup',\n            mm: translate,\n            h: 'wa’ rep',\n            hh: translate,\n            d: 'wa’ jaj',\n            dd: translate,\n            M: 'wa’ jar',\n            MM: translate,\n            y: 'wa’ DIS',\n            yy: translate,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return tlh;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/tlh.js?");

/***/ }),

/***/ "./node_modules/moment/locale/tr.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/tr.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Turkish [tr]\n//! authors : Erhan Gundogan : https://github.com/erhangundogan,\n//!           Burak Yiğit Kaya: https://github.com/BYK\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var suffixes = {\n        1: \"'inci\",\n        5: \"'inci\",\n        8: \"'inci\",\n        70: \"'inci\",\n        80: \"'inci\",\n        2: \"'nci\",\n        7: \"'nci\",\n        20: \"'nci\",\n        50: \"'nci\",\n        3: \"'üncü\",\n        4: \"'üncü\",\n        100: \"'üncü\",\n        6: \"'ncı\",\n        9: \"'uncu\",\n        10: \"'uncu\",\n        30: \"'uncu\",\n        60: \"'ıncı\",\n        90: \"'ıncı\",\n    };\n\n    var tr = moment.defineLocale('tr', {\n        months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(\n            '_'\n        ),\n        monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),\n        weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(\n            '_'\n        ),\n        weekdaysShort: 'Paz_Pzt_Sal_Çar_Per_Cum_Cmt'.split('_'),\n        weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 12) {\n                return isLower ? 'öö' : 'ÖÖ';\n            } else {\n                return isLower ? 'ös' : 'ÖS';\n            }\n        },\n        meridiemParse: /öö|ÖÖ|ös|ÖS/,\n        isPM: function (input) {\n            return input === 'ös' || input === 'ÖS';\n        },\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[bugün saat] LT',\n            nextDay: '[yarın saat] LT',\n            nextWeek: '[gelecek] dddd [saat] LT',\n            lastDay: '[dün] LT',\n            lastWeek: '[geçen] dddd [saat] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s sonra',\n            past: '%s önce',\n            s: 'birkaç saniye',\n            ss: '%d saniye',\n            m: 'bir dakika',\n            mm: '%d dakika',\n            h: 'bir saat',\n            hh: '%d saat',\n            d: 'bir gün',\n            dd: '%d gün',\n            w: 'bir hafta',\n            ww: '%d hafta',\n            M: 'bir ay',\n            MM: '%d ay',\n            y: 'bir yıl',\n            yy: '%d yıl',\n        },\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'Do':\n                case 'DD':\n                    return number;\n                default:\n                    if (number === 0) {\n                        // special case for zero\n                        return number + \"'ıncı\";\n                    }\n                    var a = number % 10,\n                        b = (number % 100) - a,\n                        c = number >= 100 ? 100 : null;\n                    return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return tr;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/tr.js?");

/***/ }),

/***/ "./node_modules/moment/locale/tzl.js":
/*!*******************************************!*\
  !*** ./node_modules/moment/locale/tzl.js ***!
  \*******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Talossan [tzl]\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\n//! author : Iustì Canun\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.\n    // This is currently too difficult (maybe even impossible) to add.\n    var tzl = moment.defineLocale('tzl', {\n        months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(\n            '_'\n        ),\n        monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),\n        weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),\n        weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),\n        weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),\n        longDateFormat: {\n            LT: 'HH.mm',\n            LTS: 'HH.mm.ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D. MMMM [dallas] YYYY',\n            LLL: 'D. MMMM [dallas] YYYY HH.mm',\n            LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',\n        },\n        meridiemParse: /d\\'o|d\\'a/i,\n        isPM: function (input) {\n            return \"d'o\" === input.toLowerCase();\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours > 11) {\n                return isLower ? \"d'o\" : \"D'O\";\n            } else {\n                return isLower ? \"d'a\" : \"D'A\";\n            }\n        },\n        calendar: {\n            sameDay: '[oxhi à] LT',\n            nextDay: '[demà à] LT',\n            nextWeek: 'dddd [à] LT',\n            lastDay: '[ieiri à] LT',\n            lastWeek: '[sür el] dddd [lasteu à] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'osprei %s',\n            past: 'ja%s',\n            s: processRelativeTime,\n            ss: processRelativeTime,\n            m: processRelativeTime,\n            mm: processRelativeTime,\n            h: processRelativeTime,\n            hh: processRelativeTime,\n            d: processRelativeTime,\n            dd: processRelativeTime,\n            M: processRelativeTime,\n            MM: processRelativeTime,\n            y: processRelativeTime,\n            yy: processRelativeTime,\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n        ordinal: '%d.',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n        var format = {\n            s: ['viensas secunds', \"'iensas secunds\"],\n            ss: [number + ' secunds', '' + number + ' secunds'],\n            m: [\"'n míut\", \"'iens míut\"],\n            mm: [number + ' míuts', '' + number + ' míuts'],\n            h: [\"'n þora\", \"'iensa þora\"],\n            hh: [number + ' þoras', '' + number + ' þoras'],\n            d: [\"'n ziua\", \"'iensa ziua\"],\n            dd: [number + ' ziuas', '' + number + ' ziuas'],\n            M: [\"'n mes\", \"'iens mes\"],\n            MM: [number + ' mesen', '' + number + ' mesen'],\n            y: [\"'n ar\", \"'iens ar\"],\n            yy: [number + ' ars', '' + number + ' ars'],\n        };\n        return isFuture\n            ? format[key][0]\n            : withoutSuffix\n            ? format[key][0]\n            : format[key][1];\n    }\n\n    return tzl;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/tzl.js?");

/***/ }),

/***/ "./node_modules/moment/locale/tzm-latn.js":
/*!************************************************!*\
  !*** ./node_modules/moment/locale/tzm-latn.js ***!
  \************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Central Atlas Tamazight Latin [tzm-latn]\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var tzmLatn = moment.defineLocale('tzm-latn', {\n        months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(\n            '_'\n        ),\n        monthsShort:\n            'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(\n                '_'\n            ),\n        weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n        weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n        weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[asdkh g] LT',\n            nextDay: '[aska g] LT',\n            nextWeek: 'dddd [g] LT',\n            lastDay: '[assant g] LT',\n            lastWeek: 'dddd [g] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'dadkh s yan %s',\n            past: 'yan %s',\n            s: 'imik',\n            ss: '%d imik',\n            m: 'minuḍ',\n            mm: '%d minuḍ',\n            h: 'saɛa',\n            hh: '%d tassaɛin',\n            d: 'ass',\n            dd: '%d ossan',\n            M: 'ayowr',\n            MM: '%d iyyirn',\n            y: 'asgas',\n            yy: '%d isgasn',\n        },\n        week: {\n            dow: 6, // Saturday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return tzmLatn;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/tzm-latn.js?");

/***/ }),

/***/ "./node_modules/moment/locale/tzm.js":
/*!*******************************************!*\
  !*** ./node_modules/moment/locale/tzm.js ***!
  \*******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Central Atlas Tamazight [tzm]\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var tzm = moment.defineLocale('tzm', {\n        months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(\n            '_'\n        ),\n        monthsShort:\n            'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(\n                '_'\n            ),\n        weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n        weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n        weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',\n            nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',\n            nextWeek: 'dddd [ⴴ] LT',\n            lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',\n            lastWeek: 'dddd [ⴴ] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',\n            past: 'ⵢⴰⵏ %s',\n            s: 'ⵉⵎⵉⴽ',\n            ss: '%d ⵉⵎⵉⴽ',\n            m: 'ⵎⵉⵏⵓⴺ',\n            mm: '%d ⵎⵉⵏⵓⴺ',\n            h: 'ⵙⴰⵄⴰ',\n            hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',\n            d: 'ⴰⵙⵙ',\n            dd: '%d oⵙⵙⴰⵏ',\n            M: 'ⴰⵢoⵓⵔ',\n            MM: '%d ⵉⵢⵢⵉⵔⵏ',\n            y: 'ⴰⵙⴳⴰⵙ',\n            yy: '%d ⵉⵙⴳⴰⵙⵏ',\n        },\n        week: {\n            dow: 6, // Saturday is the first day of the week.\n            doy: 12, // The week that contains Jan 12th is the first week of the year.\n        },\n    });\n\n    return tzm;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/tzm.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ug-cn.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/ug-cn.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Uyghur (China) [ug-cn]\n//! author: boyaq : https://github.com/boyaq\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var ugCn = moment.defineLocale('ug-cn', {\n        months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(\n            '_'\n        ),\n        monthsShort:\n            'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(\n                '_'\n            ),\n        weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(\n            '_'\n        ),\n        weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),\n        weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY-MM-DD',\n            LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',\n            LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',\n            LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',\n        },\n        meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (\n                meridiem === 'يېرىم كېچە' ||\n                meridiem === 'سەھەر' ||\n                meridiem === 'چۈشتىن بۇرۇن'\n            ) {\n                return hour;\n            } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {\n                return hour + 12;\n            } else {\n                return hour >= 11 ? hour : hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            var hm = hour * 100 + minute;\n            if (hm < 600) {\n                return 'يېرىم كېچە';\n            } else if (hm < 900) {\n                return 'سەھەر';\n            } else if (hm < 1130) {\n                return 'چۈشتىن بۇرۇن';\n            } else if (hm < 1230) {\n                return 'چۈش';\n            } else if (hm < 1800) {\n                return 'چۈشتىن كېيىن';\n            } else {\n                return 'كەچ';\n            }\n        },\n        calendar: {\n            sameDay: '[بۈگۈن سائەت] LT',\n            nextDay: '[ئەتە سائەت] LT',\n            nextWeek: '[كېلەركى] dddd [سائەت] LT',\n            lastDay: '[تۆنۈگۈن] LT',\n            lastWeek: '[ئالدىنقى] dddd [سائەت] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s كېيىن',\n            past: '%s بۇرۇن',\n            s: 'نەچچە سېكونت',\n            ss: '%d سېكونت',\n            m: 'بىر مىنۇت',\n            mm: '%d مىنۇت',\n            h: 'بىر سائەت',\n            hh: '%d سائەت',\n            d: 'بىر كۈن',\n            dd: '%d كۈن',\n            M: 'بىر ئاي',\n            MM: '%d ئاي',\n            y: 'بىر يىل',\n            yy: '%d يىل',\n        },\n\n        dayOfMonthOrdinalParse: /\\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + '-كۈنى';\n                case 'w':\n                case 'W':\n                    return number + '-ھەپتە';\n                default:\n                    return number;\n            }\n        },\n        preparse: function (string) {\n            return string.replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string.replace(/,/g, '،');\n        },\n        week: {\n            // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 1st is the first week of the year.\n        },\n    });\n\n    return ugCn;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ug-cn.js?");

/***/ }),

/***/ "./node_modules/moment/locale/uk.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/uk.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Ukrainian [uk]\n//! author : zemlanin : https://github.com/zemlanin\n//! Author : Menelion Elensúle : https://github.com/Oire\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    function plural(word, num) {\n        var forms = word.split('_');\n        return num % 10 === 1 && num % 100 !== 11\n            ? forms[0]\n            : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)\n            ? forms[1]\n            : forms[2];\n    }\n    function relativeTimeWithPlural(number, withoutSuffix, key) {\n        var format = {\n            ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',\n            mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',\n            hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',\n            dd: 'день_дні_днів',\n            MM: 'місяць_місяці_місяців',\n            yy: 'рік_роки_років',\n        };\n        if (key === 'm') {\n            return withoutSuffix ? 'хвилина' : 'хвилину';\n        } else if (key === 'h') {\n            return withoutSuffix ? 'година' : 'годину';\n        } else {\n            return number + ' ' + plural(format[key], +number);\n        }\n    }\n    function weekdaysCaseReplace(m, format) {\n        var weekdays = {\n                nominative:\n                    'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(\n                        '_'\n                    ),\n                accusative:\n                    'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(\n                        '_'\n                    ),\n                genitive:\n                    'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(\n                        '_'\n                    ),\n            },\n            nounCase;\n\n        if (m === true) {\n            return weekdays['nominative']\n                .slice(1, 7)\n                .concat(weekdays['nominative'].slice(0, 1));\n        }\n        if (!m) {\n            return weekdays['nominative'];\n        }\n\n        nounCase = /(\\[[ВвУу]\\]) ?dddd/.test(format)\n            ? 'accusative'\n            : /\\[?(?:минулої|наступної)? ?\\] ?dddd/.test(format)\n            ? 'genitive'\n            : 'nominative';\n        return weekdays[nounCase][m.day()];\n    }\n    function processHoursFunction(str) {\n        return function () {\n            return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';\n        };\n    }\n\n    var uk = moment.defineLocale('uk', {\n        months: {\n            format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(\n                '_'\n            ),\n            standalone:\n                'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(\n                    '_'\n                ),\n        },\n        monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(\n            '_'\n        ),\n        weekdays: weekdaysCaseReplace,\n        weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n        weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD.MM.YYYY',\n            LL: 'D MMMM YYYY р.',\n            LLL: 'D MMMM YYYY р., HH:mm',\n            LLLL: 'dddd, D MMMM YYYY р., HH:mm',\n        },\n        calendar: {\n            sameDay: processHoursFunction('[Сьогодні '),\n            nextDay: processHoursFunction('[Завтра '),\n            lastDay: processHoursFunction('[Вчора '),\n            nextWeek: processHoursFunction('[У] dddd ['),\n            lastWeek: function () {\n                switch (this.day()) {\n                    case 0:\n                    case 3:\n                    case 5:\n                    case 6:\n                        return processHoursFunction('[Минулої] dddd [').call(this);\n                    case 1:\n                    case 2:\n                    case 4:\n                        return processHoursFunction('[Минулого] dddd [').call(this);\n                }\n            },\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'за %s',\n            past: '%s тому',\n            s: 'декілька секунд',\n            ss: relativeTimeWithPlural,\n            m: relativeTimeWithPlural,\n            mm: relativeTimeWithPlural,\n            h: 'годину',\n            hh: relativeTimeWithPlural,\n            d: 'день',\n            dd: relativeTimeWithPlural,\n            M: 'місяць',\n            MM: relativeTimeWithPlural,\n            y: 'рік',\n            yy: relativeTimeWithPlural,\n        },\n        // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason\n        meridiemParse: /ночі|ранку|дня|вечора/,\n        isPM: function (input) {\n            return /^(дня|вечора)$/.test(input);\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 4) {\n                return 'ночі';\n            } else if (hour < 12) {\n                return 'ранку';\n            } else if (hour < 17) {\n                return 'дня';\n            } else {\n                return 'вечора';\n            }\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}-(й|го)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'M':\n                case 'd':\n                case 'DDD':\n                case 'w':\n                case 'W':\n                    return number + '-й';\n                case 'D':\n                    return number + '-го';\n                default:\n                    return number;\n            }\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return uk;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/uk.js?");

/***/ }),

/***/ "./node_modules/moment/locale/ur.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/ur.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Urdu [ur]\n//! author : Sawood Alam : https://github.com/ibnesayeed\n//! author : Zack : https://github.com/ZackVision\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var months = [\n            'جنوری',\n            'فروری',\n            'مارچ',\n            'اپریل',\n            'مئی',\n            'جون',\n            'جولائی',\n            'اگست',\n            'ستمبر',\n            'اکتوبر',\n            'نومبر',\n            'دسمبر',\n        ],\n        days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];\n\n    var ur = moment.defineLocale('ur', {\n        months: months,\n        monthsShort: months,\n        weekdays: days,\n        weekdaysShort: days,\n        weekdaysMin: days,\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd، D MMMM YYYY HH:mm',\n        },\n        meridiemParse: /صبح|شام/,\n        isPM: function (input) {\n            return 'شام' === input;\n        },\n        meridiem: function (hour, minute, isLower) {\n            if (hour < 12) {\n                return 'صبح';\n            }\n            return 'شام';\n        },\n        calendar: {\n            sameDay: '[آج بوقت] LT',\n            nextDay: '[کل بوقت] LT',\n            nextWeek: 'dddd [بوقت] LT',\n            lastDay: '[گذشتہ روز بوقت] LT',\n            lastWeek: '[گذشتہ] dddd [بوقت] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s بعد',\n            past: '%s قبل',\n            s: 'چند سیکنڈ',\n            ss: '%d سیکنڈ',\n            m: 'ایک منٹ',\n            mm: '%d منٹ',\n            h: 'ایک گھنٹہ',\n            hh: '%d گھنٹے',\n            d: 'ایک دن',\n            dd: '%d دن',\n            M: 'ایک ماہ',\n            MM: '%d ماہ',\n            y: 'ایک سال',\n            yy: '%d سال',\n        },\n        preparse: function (string) {\n            return string.replace(/،/g, ',');\n        },\n        postformat: function (string) {\n            return string.replace(/,/g, '،');\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return ur;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/ur.js?");

/***/ }),

/***/ "./node_modules/moment/locale/uz-latn.js":
/*!***********************************************!*\
  !*** ./node_modules/moment/locale/uz-latn.js ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Uzbek Latin [uz-latn]\n//! author : Rasulbek Mirzayev : github.com/Rasulbeeek\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var uzLatn = moment.defineLocale('uz-latn', {\n        months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(\n            '_'\n        ),\n        monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),\n        weekdays:\n            'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(\n                '_'\n            ),\n        weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),\n        weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'D MMMM YYYY, dddd HH:mm',\n        },\n        calendar: {\n            sameDay: '[Bugun soat] LT [da]',\n            nextDay: '[Ertaga] LT [da]',\n            nextWeek: 'dddd [kuni soat] LT [da]',\n            lastDay: '[Kecha soat] LT [da]',\n            lastWeek: \"[O'tgan] dddd [kuni soat] LT [da]\",\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'Yaqin %s ichida',\n            past: 'Bir necha %s oldin',\n            s: 'soniya',\n            ss: '%d soniya',\n            m: 'bir daqiqa',\n            mm: '%d daqiqa',\n            h: 'bir soat',\n            hh: '%d soat',\n            d: 'bir kun',\n            dd: '%d kun',\n            M: 'bir oy',\n            MM: '%d oy',\n            y: 'bir yil',\n            yy: '%d yil',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 7th is the first week of the year.\n        },\n    });\n\n    return uzLatn;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/uz-latn.js?");

/***/ }),

/***/ "./node_modules/moment/locale/uz.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/uz.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Uzbek [uz]\n//! author : Sardor Muminov : https://github.com/muminoff\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var uz = moment.defineLocale('uz', {\n        months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(\n            '_'\n        ),\n        monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\n        weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),\n        weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),\n        weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'D MMMM YYYY, dddd HH:mm',\n        },\n        calendar: {\n            sameDay: '[Бугун соат] LT [да]',\n            nextDay: '[Эртага] LT [да]',\n            nextWeek: 'dddd [куни соат] LT [да]',\n            lastDay: '[Кеча соат] LT [да]',\n            lastWeek: '[Утган] dddd [куни соат] LT [да]',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'Якин %s ичида',\n            past: 'Бир неча %s олдин',\n            s: 'фурсат',\n            ss: '%d фурсат',\n            m: 'бир дакика',\n            mm: '%d дакика',\n            h: 'бир соат',\n            hh: '%d соат',\n            d: 'бир кун',\n            dd: '%d кун',\n            M: 'бир ой',\n            MM: '%d ой',\n            y: 'бир йил',\n            yy: '%d йил',\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 7, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return uz;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/uz.js?");

/***/ }),

/***/ "./node_modules/moment/locale/vi.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/vi.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Vietnamese [vi]\n//! author : Bang Nguyen : https://github.com/bangnk\n//! author : Chien Kira : https://github.com/chienkira\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var vi = moment.defineLocale('vi', {\n        months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split(\n            '_'\n        ),\n        monthsShort:\n            'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(\n            '_'\n        ),\n        weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n        weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n        weekdaysParseExact: true,\n        meridiemParse: /sa|ch/i,\n        isPM: function (input) {\n            return /^ch$/i.test(input);\n        },\n        meridiem: function (hours, minutes, isLower) {\n            if (hours < 12) {\n                return isLower ? 'sa' : 'SA';\n            } else {\n                return isLower ? 'ch' : 'CH';\n            }\n        },\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM [năm] YYYY',\n            LLL: 'D MMMM [năm] YYYY HH:mm',\n            LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',\n            l: 'DD/M/YYYY',\n            ll: 'D MMM YYYY',\n            lll: 'D MMM YYYY HH:mm',\n            llll: 'ddd, D MMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[Hôm nay lúc] LT',\n            nextDay: '[Ngày mai lúc] LT',\n            nextWeek: 'dddd [tuần tới lúc] LT',\n            lastDay: '[Hôm qua lúc] LT',\n            lastWeek: 'dddd [tuần trước lúc] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: '%s tới',\n            past: '%s trước',\n            s: 'vài giây',\n            ss: '%d giây',\n            m: 'một phút',\n            mm: '%d phút',\n            h: 'một giờ',\n            hh: '%d giờ',\n            d: 'một ngày',\n            dd: '%d ngày',\n            w: 'một tuần',\n            ww: '%d tuần',\n            M: 'một tháng',\n            MM: '%d tháng',\n            y: 'một năm',\n            yy: '%d năm',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}/,\n        ordinal: function (number) {\n            return number;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return vi;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/vi.js?");

/***/ }),

/***/ "./node_modules/moment/locale/x-pseudo.js":
/*!************************************************!*\
  !*** ./node_modules/moment/locale/x-pseudo.js ***!
  \************************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Pseudo [x-pseudo]\n//! author : Andrew Hood : https://github.com/andrewhood125\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var xPseudo = moment.defineLocale('x-pseudo', {\n        months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split(\n            '_'\n        ),\n        monthsShort:\n            'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(\n                '_'\n            ),\n        monthsParseExact: true,\n        weekdays:\n            'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(\n                '_'\n            ),\n        weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),\n        weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),\n        weekdaysParseExact: true,\n        longDateFormat: {\n            LT: 'HH:mm',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY HH:mm',\n            LLLL: 'dddd, D MMMM YYYY HH:mm',\n        },\n        calendar: {\n            sameDay: '[T~ódá~ý át] LT',\n            nextDay: '[T~ómó~rró~w át] LT',\n            nextWeek: 'dddd [át] LT',\n            lastDay: '[Ý~ést~érdá~ý át] LT',\n            lastWeek: '[L~ást] dddd [át] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'í~ñ %s',\n            past: '%s á~gó',\n            s: 'á ~féw ~sécó~ñds',\n            ss: '%d s~écóñ~ds',\n            m: 'á ~míñ~úté',\n            mm: '%d m~íñú~tés',\n            h: 'á~ñ hó~úr',\n            hh: '%d h~óúrs',\n            d: 'á ~dáý',\n            dd: '%d d~áýs',\n            M: 'á ~móñ~th',\n            MM: '%d m~óñt~hs',\n            y: 'á ~ýéár',\n            yy: '%d ý~éárs',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    ~~((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return xPseudo;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/x-pseudo.js?");

/***/ }),

/***/ "./node_modules/moment/locale/yo.js":
/*!******************************************!*\
  !*** ./node_modules/moment/locale/yo.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Yoruba Nigeria [yo]\n//! author : Atolagbe Abisoye : https://github.com/andela-batolagbe\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var yo = moment.defineLocale('yo', {\n        months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(\n            '_'\n        ),\n        monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),\n        weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),\n        weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),\n        weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),\n        longDateFormat: {\n            LT: 'h:mm A',\n            LTS: 'h:mm:ss A',\n            L: 'DD/MM/YYYY',\n            LL: 'D MMMM YYYY',\n            LLL: 'D MMMM YYYY h:mm A',\n            LLLL: 'dddd, D MMMM YYYY h:mm A',\n        },\n        calendar: {\n            sameDay: '[Ònì ni] LT',\n            nextDay: '[Ọ̀la ni] LT',\n            nextWeek: \"dddd [Ọsẹ̀ tón'bọ] [ni] LT\",\n            lastDay: '[Àna ni] LT',\n            lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',\n            sameElse: 'L',\n        },\n        relativeTime: {\n            future: 'ní %s',\n            past: '%s kọjá',\n            s: 'ìsẹjú aayá die',\n            ss: 'aayá %d',\n            m: 'ìsẹjú kan',\n            mm: 'ìsẹjú %d',\n            h: 'wákati kan',\n            hh: 'wákati %d',\n            d: 'ọjọ́ kan',\n            dd: 'ọjọ́ %d',\n            M: 'osù kan',\n            MM: 'osù %d',\n            y: 'ọdún kan',\n            yy: 'ọdún %d',\n        },\n        dayOfMonthOrdinalParse: /ọjọ́\\s\\d{1,2}/,\n        ordinal: 'ọjọ́ %d',\n        week: {\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return yo;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/yo.js?");

/***/ }),

/***/ "./node_modules/moment/locale/zh-cn.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/zh-cn.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Chinese (China) [zh-cn]\n//! author : suupic : https://github.com/suupic\n//! author : Zeno Zeng : https://github.com/zenozeng\n//! author : uu109 : https://github.com/uu109\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var zhCn = moment.defineLocale('zh-cn', {\n        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n            '_'\n        ),\n        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n            '_'\n        ),\n        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n        weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),\n        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY/MM/DD',\n            LL: 'YYYY年M月D日',\n            LLL: 'YYYY年M月D日Ah点mm分',\n            LLLL: 'YYYY年M月D日ddddAh点mm分',\n            l: 'YYYY/M/D',\n            ll: 'YYYY年M月D日',\n            lll: 'YYYY年M月D日 HH:mm',\n            llll: 'YYYY年M月D日dddd HH:mm',\n        },\n        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n                return hour;\n            } else if (meridiem === '下午' || meridiem === '晚上') {\n                return hour + 12;\n            } else {\n                // '中午'\n                return hour >= 11 ? hour : hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            var hm = hour * 100 + minute;\n            if (hm < 600) {\n                return '凌晨';\n            } else if (hm < 900) {\n                return '早上';\n            } else if (hm < 1130) {\n                return '上午';\n            } else if (hm < 1230) {\n                return '中午';\n            } else if (hm < 1800) {\n                return '下午';\n            } else {\n                return '晚上';\n            }\n        },\n        calendar: {\n            sameDay: '[今天]LT',\n            nextDay: '[明天]LT',\n            nextWeek: function (now) {\n                if (now.week() !== this.week()) {\n                    return '[下]dddLT';\n                } else {\n                    return '[本]dddLT';\n                }\n            },\n            lastDay: '[昨天]LT',\n            lastWeek: function (now) {\n                if (this.week() !== now.week()) {\n                    return '[上]dddLT';\n                } else {\n                    return '[本]dddLT';\n                }\n            },\n            sameElse: 'L',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(日|月|周)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + '日';\n                case 'M':\n                    return number + '月';\n                case 'w':\n                case 'W':\n                    return number + '周';\n                default:\n                    return number;\n            }\n        },\n        relativeTime: {\n            future: '%s后',\n            past: '%s前',\n            s: '几秒',\n            ss: '%d 秒',\n            m: '1 分钟',\n            mm: '%d 分钟',\n            h: '1 小时',\n            hh: '%d 小时',\n            d: '1 天',\n            dd: '%d 天',\n            w: '1 周',\n            ww: '%d 周',\n            M: '1 个月',\n            MM: '%d 个月',\n            y: '1 年',\n            yy: '%d 年',\n        },\n        week: {\n            // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n            dow: 1, // Monday is the first day of the week.\n            doy: 4, // The week that contains Jan 4th is the first week of the year.\n        },\n    });\n\n    return zhCn;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/zh-cn.js?");

/***/ }),

/***/ "./node_modules/moment/locale/zh-hk.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/zh-hk.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Chinese (Hong Kong) [zh-hk]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n//! author : Konstantin : https://github.com/skfd\n//! author : Anthony : https://github.com/anthonylau\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var zhHk = moment.defineLocale('zh-hk', {\n        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n            '_'\n        ),\n        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n            '_'\n        ),\n        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n        weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY/MM/DD',\n            LL: 'YYYY年M月D日',\n            LLL: 'YYYY年M月D日 HH:mm',\n            LLLL: 'YYYY年M月D日dddd HH:mm',\n            l: 'YYYY/M/D',\n            ll: 'YYYY年M月D日',\n            lll: 'YYYY年M月D日 HH:mm',\n            llll: 'YYYY年M月D日dddd HH:mm',\n        },\n        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n                return hour;\n            } else if (meridiem === '中午') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === '下午' || meridiem === '晚上') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            var hm = hour * 100 + minute;\n            if (hm < 600) {\n                return '凌晨';\n            } else if (hm < 900) {\n                return '早上';\n            } else if (hm < 1200) {\n                return '上午';\n            } else if (hm === 1200) {\n                return '中午';\n            } else if (hm < 1800) {\n                return '下午';\n            } else {\n                return '晚上';\n            }\n        },\n        calendar: {\n            sameDay: '[今天]LT',\n            nextDay: '[明天]LT',\n            nextWeek: '[下]ddddLT',\n            lastDay: '[昨天]LT',\n            lastWeek: '[上]ddddLT',\n            sameElse: 'L',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + '日';\n                case 'M':\n                    return number + '月';\n                case 'w':\n                case 'W':\n                    return number + '週';\n                default:\n                    return number;\n            }\n        },\n        relativeTime: {\n            future: '%s後',\n            past: '%s前',\n            s: '幾秒',\n            ss: '%d 秒',\n            m: '1 分鐘',\n            mm: '%d 分鐘',\n            h: '1 小時',\n            hh: '%d 小時',\n            d: '1 天',\n            dd: '%d 天',\n            M: '1 個月',\n            MM: '%d 個月',\n            y: '1 年',\n            yy: '%d 年',\n        },\n    });\n\n    return zhHk;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/zh-hk.js?");

/***/ }),

/***/ "./node_modules/moment/locale/zh-mo.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/zh-mo.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Chinese (Macau) [zh-mo]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n//! author : Tan Yuanhong : https://github.com/le0tan\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var zhMo = moment.defineLocale('zh-mo', {\n        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n            '_'\n        ),\n        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n            '_'\n        ),\n        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n        weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'DD/MM/YYYY',\n            LL: 'YYYY年M月D日',\n            LLL: 'YYYY年M月D日 HH:mm',\n            LLLL: 'YYYY年M月D日dddd HH:mm',\n            l: 'D/M/YYYY',\n            ll: 'YYYY年M月D日',\n            lll: 'YYYY年M月D日 HH:mm',\n            llll: 'YYYY年M月D日dddd HH:mm',\n        },\n        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n                return hour;\n            } else if (meridiem === '中午') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === '下午' || meridiem === '晚上') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            var hm = hour * 100 + minute;\n            if (hm < 600) {\n                return '凌晨';\n            } else if (hm < 900) {\n                return '早上';\n            } else if (hm < 1130) {\n                return '上午';\n            } else if (hm < 1230) {\n                return '中午';\n            } else if (hm < 1800) {\n                return '下午';\n            } else {\n                return '晚上';\n            }\n        },\n        calendar: {\n            sameDay: '[今天] LT',\n            nextDay: '[明天] LT',\n            nextWeek: '[下]dddd LT',\n            lastDay: '[昨天] LT',\n            lastWeek: '[上]dddd LT',\n            sameElse: 'L',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + '日';\n                case 'M':\n                    return number + '月';\n                case 'w':\n                case 'W':\n                    return number + '週';\n                default:\n                    return number;\n            }\n        },\n        relativeTime: {\n            future: '%s內',\n            past: '%s前',\n            s: '幾秒',\n            ss: '%d 秒',\n            m: '1 分鐘',\n            mm: '%d 分鐘',\n            h: '1 小時',\n            hh: '%d 小時',\n            d: '1 天',\n            dd: '%d 天',\n            M: '1 個月',\n            MM: '%d 個月',\n            y: '1 年',\n            yy: '%d 年',\n        },\n    });\n\n    return zhMo;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/zh-mo.js?");

/***/ }),

/***/ "./node_modules/moment/locale/zh-tw.js":
/*!*********************************************!*\
  !*** ./node_modules/moment/locale/zh-tw.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

eval("//! moment.js locale configuration\n//! locale : Chinese (Taiwan) [zh-tw]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n\n;(function (global, factory) {\n    true ? factory(__webpack_require__(/*! ../moment */ \"./node_modules/moment/moment.js\")) :\n   0\n}(this, (function (moment) { 'use strict';\n\n    //! moment.js locale configuration\n\n    var zhTw = moment.defineLocale('zh-tw', {\n        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n            '_'\n        ),\n        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n            '_'\n        ),\n        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n        weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n        longDateFormat: {\n            LT: 'HH:mm',\n            LTS: 'HH:mm:ss',\n            L: 'YYYY/MM/DD',\n            LL: 'YYYY年M月D日',\n            LLL: 'YYYY年M月D日 HH:mm',\n            LLLL: 'YYYY年M月D日dddd HH:mm',\n            l: 'YYYY/M/D',\n            ll: 'YYYY年M月D日',\n            lll: 'YYYY年M月D日 HH:mm',\n            llll: 'YYYY年M月D日dddd HH:mm',\n        },\n        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n        meridiemHour: function (hour, meridiem) {\n            if (hour === 12) {\n                hour = 0;\n            }\n            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n                return hour;\n            } else if (meridiem === '中午') {\n                return hour >= 11 ? hour : hour + 12;\n            } else if (meridiem === '下午' || meridiem === '晚上') {\n                return hour + 12;\n            }\n        },\n        meridiem: function (hour, minute, isLower) {\n            var hm = hour * 100 + minute;\n            if (hm < 600) {\n                return '凌晨';\n            } else if (hm < 900) {\n                return '早上';\n            } else if (hm < 1130) {\n                return '上午';\n            } else if (hm < 1230) {\n                return '中午';\n            } else if (hm < 1800) {\n                return '下午';\n            } else {\n                return '晚上';\n            }\n        },\n        calendar: {\n            sameDay: '[今天] LT',\n            nextDay: '[明天] LT',\n            nextWeek: '[下]dddd LT',\n            lastDay: '[昨天] LT',\n            lastWeek: '[上]dddd LT',\n            sameElse: 'L',\n        },\n        dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n        ordinal: function (number, period) {\n            switch (period) {\n                case 'd':\n                case 'D':\n                case 'DDD':\n                    return number + '日';\n                case 'M':\n                    return number + '月';\n                case 'w':\n                case 'W':\n                    return number + '週';\n                default:\n                    return number;\n            }\n        },\n        relativeTime: {\n            future: '%s後',\n            past: '%s前',\n            s: '幾秒',\n            ss: '%d 秒',\n            m: '1 分鐘',\n            mm: '%d 分鐘',\n            h: '1 小時',\n            hh: '%d 小時',\n            d: '1 天',\n            dd: '%d 天',\n            M: '1 個月',\n            MM: '%d 個月',\n            y: '1 年',\n            yy: '%d 年',\n        },\n    });\n\n    return zhTw;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/zh-tw.js?");

/***/ }),

/***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$":
/*!***************************************************!*\
  !*** ./node_modules/moment/locale/ sync ^\.\/.*$ ***!
  \***************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

eval("var map = {\n\t\"./af\": \"./node_modules/moment/locale/af.js\",\n\t\"./af.js\": \"./node_modules/moment/locale/af.js\",\n\t\"./ar\": \"./node_modules/moment/locale/ar.js\",\n\t\"./ar-dz\": \"./node_modules/moment/locale/ar-dz.js\",\n\t\"./ar-dz.js\": \"./node_modules/moment/locale/ar-dz.js\",\n\t\"./ar-kw\": \"./node_modules/moment/locale/ar-kw.js\",\n\t\"./ar-kw.js\": \"./node_modules/moment/locale/ar-kw.js\",\n\t\"./ar-ly\": \"./node_modules/moment/locale/ar-ly.js\",\n\t\"./ar-ly.js\": \"./node_modules/moment/locale/ar-ly.js\",\n\t\"./ar-ma\": \"./node_modules/moment/locale/ar-ma.js\",\n\t\"./ar-ma.js\": \"./node_modules/moment/locale/ar-ma.js\",\n\t\"./ar-sa\": \"./node_modules/moment/locale/ar-sa.js\",\n\t\"./ar-sa.js\": \"./node_modules/moment/locale/ar-sa.js\",\n\t\"./ar-tn\": \"./node_modules/moment/locale/ar-tn.js\",\n\t\"./ar-tn.js\": \"./node_modules/moment/locale/ar-tn.js\",\n\t\"./ar.js\": \"./node_modules/moment/locale/ar.js\",\n\t\"./az\": \"./node_modules/moment/locale/az.js\",\n\t\"./az.js\": \"./node_modules/moment/locale/az.js\",\n\t\"./be\": \"./node_modules/moment/locale/be.js\",\n\t\"./be.js\": \"./node_modules/moment/locale/be.js\",\n\t\"./bg\": \"./node_modules/moment/locale/bg.js\",\n\t\"./bg.js\": \"./node_modules/moment/locale/bg.js\",\n\t\"./bm\": \"./node_modules/moment/locale/bm.js\",\n\t\"./bm.js\": \"./node_modules/moment/locale/bm.js\",\n\t\"./bn\": \"./node_modules/moment/locale/bn.js\",\n\t\"./bn-bd\": \"./node_modules/moment/locale/bn-bd.js\",\n\t\"./bn-bd.js\": \"./node_modules/moment/locale/bn-bd.js\",\n\t\"./bn.js\": \"./node_modules/moment/locale/bn.js\",\n\t\"./bo\": \"./node_modules/moment/locale/bo.js\",\n\t\"./bo.js\": \"./node_modules/moment/locale/bo.js\",\n\t\"./br\": \"./node_modules/moment/locale/br.js\",\n\t\"./br.js\": \"./node_modules/moment/locale/br.js\",\n\t\"./bs\": \"./node_modules/moment/locale/bs.js\",\n\t\"./bs.js\": \"./node_modules/moment/locale/bs.js\",\n\t\"./ca\": \"./node_modules/moment/locale/ca.js\",\n\t\"./ca.js\": \"./node_modules/moment/locale/ca.js\",\n\t\"./cs\": \"./node_modules/moment/locale/cs.js\",\n\t\"./cs.js\": \"./node_modules/moment/locale/cs.js\",\n\t\"./cv\": \"./node_modules/moment/locale/cv.js\",\n\t\"./cv.js\": \"./node_modules/moment/locale/cv.js\",\n\t\"./cy\": \"./node_modules/moment/locale/cy.js\",\n\t\"./cy.js\": \"./node_modules/moment/locale/cy.js\",\n\t\"./da\": \"./node_modules/moment/locale/da.js\",\n\t\"./da.js\": \"./node_modules/moment/locale/da.js\",\n\t\"./de\": \"./node_modules/moment/locale/de.js\",\n\t\"./de-at\": \"./node_modules/moment/locale/de-at.js\",\n\t\"./de-at.js\": \"./node_modules/moment/locale/de-at.js\",\n\t\"./de-ch\": \"./node_modules/moment/locale/de-ch.js\",\n\t\"./de-ch.js\": \"./node_modules/moment/locale/de-ch.js\",\n\t\"./de.js\": \"./node_modules/moment/locale/de.js\",\n\t\"./dv\": \"./node_modules/moment/locale/dv.js\",\n\t\"./dv.js\": \"./node_modules/moment/locale/dv.js\",\n\t\"./el\": \"./node_modules/moment/locale/el.js\",\n\t\"./el.js\": \"./node_modules/moment/locale/el.js\",\n\t\"./en-au\": \"./node_modules/moment/locale/en-au.js\",\n\t\"./en-au.js\": \"./node_modules/moment/locale/en-au.js\",\n\t\"./en-ca\": \"./node_modules/moment/locale/en-ca.js\",\n\t\"./en-ca.js\": \"./node_modules/moment/locale/en-ca.js\",\n\t\"./en-gb\": \"./node_modules/moment/locale/en-gb.js\",\n\t\"./en-gb.js\": \"./node_modules/moment/locale/en-gb.js\",\n\t\"./en-ie\": \"./node_modules/moment/locale/en-ie.js\",\n\t\"./en-ie.js\": \"./node_modules/moment/locale/en-ie.js\",\n\t\"./en-il\": \"./node_modules/moment/locale/en-il.js\",\n\t\"./en-il.js\": \"./node_modules/moment/locale/en-il.js\",\n\t\"./en-in\": \"./node_modules/moment/locale/en-in.js\",\n\t\"./en-in.js\": \"./node_modules/moment/locale/en-in.js\",\n\t\"./en-nz\": \"./node_modules/moment/locale/en-nz.js\",\n\t\"./en-nz.js\": \"./node_modules/moment/locale/en-nz.js\",\n\t\"./en-sg\": \"./node_modules/moment/locale/en-sg.js\",\n\t\"./en-sg.js\": \"./node_modules/moment/locale/en-sg.js\",\n\t\"./eo\": \"./node_modules/moment/locale/eo.js\",\n\t\"./eo.js\": \"./node_modules/moment/locale/eo.js\",\n\t\"./es\": \"./node_modules/moment/locale/es.js\",\n\t\"./es-do\": \"./node_modules/moment/locale/es-do.js\",\n\t\"./es-do.js\": \"./node_modules/moment/locale/es-do.js\",\n\t\"./es-mx\": \"./node_modules/moment/locale/es-mx.js\",\n\t\"./es-mx.js\": \"./node_modules/moment/locale/es-mx.js\",\n\t\"./es-us\": \"./node_modules/moment/locale/es-us.js\",\n\t\"./es-us.js\": \"./node_modules/moment/locale/es-us.js\",\n\t\"./es.js\": \"./node_modules/moment/locale/es.js\",\n\t\"./et\": \"./node_modules/moment/locale/et.js\",\n\t\"./et.js\": \"./node_modules/moment/locale/et.js\",\n\t\"./eu\": \"./node_modules/moment/locale/eu.js\",\n\t\"./eu.js\": \"./node_modules/moment/locale/eu.js\",\n\t\"./fa\": \"./node_modules/moment/locale/fa.js\",\n\t\"./fa.js\": \"./node_modules/moment/locale/fa.js\",\n\t\"./fi\": \"./node_modules/moment/locale/fi.js\",\n\t\"./fi.js\": \"./node_modules/moment/locale/fi.js\",\n\t\"./fil\": \"./node_modules/moment/locale/fil.js\",\n\t\"./fil.js\": \"./node_modules/moment/locale/fil.js\",\n\t\"./fo\": \"./node_modules/moment/locale/fo.js\",\n\t\"./fo.js\": \"./node_modules/moment/locale/fo.js\",\n\t\"./fr\": \"./node_modules/moment/locale/fr.js\",\n\t\"./fr-ca\": \"./node_modules/moment/locale/fr-ca.js\",\n\t\"./fr-ca.js\": \"./node_modules/moment/locale/fr-ca.js\",\n\t\"./fr-ch\": \"./node_modules/moment/locale/fr-ch.js\",\n\t\"./fr-ch.js\": \"./node_modules/moment/locale/fr-ch.js\",\n\t\"./fr.js\": \"./node_modules/moment/locale/fr.js\",\n\t\"./fy\": \"./node_modules/moment/locale/fy.js\",\n\t\"./fy.js\": \"./node_modules/moment/locale/fy.js\",\n\t\"./ga\": \"./node_modules/moment/locale/ga.js\",\n\t\"./ga.js\": \"./node_modules/moment/locale/ga.js\",\n\t\"./gd\": \"./node_modules/moment/locale/gd.js\",\n\t\"./gd.js\": \"./node_modules/moment/locale/gd.js\",\n\t\"./gl\": \"./node_modules/moment/locale/gl.js\",\n\t\"./gl.js\": \"./node_modules/moment/locale/gl.js\",\n\t\"./gom-deva\": \"./node_modules/moment/locale/gom-deva.js\",\n\t\"./gom-deva.js\": \"./node_modules/moment/locale/gom-deva.js\",\n\t\"./gom-latn\": \"./node_modules/moment/locale/gom-latn.js\",\n\t\"./gom-latn.js\": \"./node_modules/moment/locale/gom-latn.js\",\n\t\"./gu\": \"./node_modules/moment/locale/gu.js\",\n\t\"./gu.js\": \"./node_modules/moment/locale/gu.js\",\n\t\"./he\": \"./node_modules/moment/locale/he.js\",\n\t\"./he.js\": \"./node_modules/moment/locale/he.js\",\n\t\"./hi\": \"./node_modules/moment/locale/hi.js\",\n\t\"./hi.js\": \"./node_modules/moment/locale/hi.js\",\n\t\"./hr\": \"./node_modules/moment/locale/hr.js\",\n\t\"./hr.js\": \"./node_modules/moment/locale/hr.js\",\n\t\"./hu\": \"./node_modules/moment/locale/hu.js\",\n\t\"./hu.js\": \"./node_modules/moment/locale/hu.js\",\n\t\"./hy-am\": \"./node_modules/moment/locale/hy-am.js\",\n\t\"./hy-am.js\": \"./node_modules/moment/locale/hy-am.js\",\n\t\"./id\": \"./node_modules/moment/locale/id.js\",\n\t\"./id.js\": \"./node_modules/moment/locale/id.js\",\n\t\"./is\": \"./node_modules/moment/locale/is.js\",\n\t\"./is.js\": \"./node_modules/moment/locale/is.js\",\n\t\"./it\": \"./node_modules/moment/locale/it.js\",\n\t\"./it-ch\": \"./node_modules/moment/locale/it-ch.js\",\n\t\"./it-ch.js\": \"./node_modules/moment/locale/it-ch.js\",\n\t\"./it.js\": \"./node_modules/moment/locale/it.js\",\n\t\"./ja\": \"./node_modules/moment/locale/ja.js\",\n\t\"./ja.js\": \"./node_modules/moment/locale/ja.js\",\n\t\"./jv\": \"./node_modules/moment/locale/jv.js\",\n\t\"./jv.js\": \"./node_modules/moment/locale/jv.js\",\n\t\"./ka\": \"./node_modules/moment/locale/ka.js\",\n\t\"./ka.js\": \"./node_modules/moment/locale/ka.js\",\n\t\"./kk\": \"./node_modules/moment/locale/kk.js\",\n\t\"./kk.js\": \"./node_modules/moment/locale/kk.js\",\n\t\"./km\": \"./node_modules/moment/locale/km.js\",\n\t\"./km.js\": \"./node_modules/moment/locale/km.js\",\n\t\"./kn\": \"./node_modules/moment/locale/kn.js\",\n\t\"./kn.js\": \"./node_modules/moment/locale/kn.js\",\n\t\"./ko\": \"./node_modules/moment/locale/ko.js\",\n\t\"./ko.js\": \"./node_modules/moment/locale/ko.js\",\n\t\"./ku\": \"./node_modules/moment/locale/ku.js\",\n\t\"./ku.js\": \"./node_modules/moment/locale/ku.js\",\n\t\"./ky\": \"./node_modules/moment/locale/ky.js\",\n\t\"./ky.js\": \"./node_modules/moment/locale/ky.js\",\n\t\"./lb\": \"./node_modules/moment/locale/lb.js\",\n\t\"./lb.js\": \"./node_modules/moment/locale/lb.js\",\n\t\"./lo\": \"./node_modules/moment/locale/lo.js\",\n\t\"./lo.js\": \"./node_modules/moment/locale/lo.js\",\n\t\"./lt\": \"./node_modules/moment/locale/lt.js\",\n\t\"./lt.js\": \"./node_modules/moment/locale/lt.js\",\n\t\"./lv\": \"./node_modules/moment/locale/lv.js\",\n\t\"./lv.js\": \"./node_modules/moment/locale/lv.js\",\n\t\"./me\": \"./node_modules/moment/locale/me.js\",\n\t\"./me.js\": \"./node_modules/moment/locale/me.js\",\n\t\"./mi\": \"./node_modules/moment/locale/mi.js\",\n\t\"./mi.js\": \"./node_modules/moment/locale/mi.js\",\n\t\"./mk\": \"./node_modules/moment/locale/mk.js\",\n\t\"./mk.js\": \"./node_modules/moment/locale/mk.js\",\n\t\"./ml\": \"./node_modules/moment/locale/ml.js\",\n\t\"./ml.js\": \"./node_modules/moment/locale/ml.js\",\n\t\"./mn\": \"./node_modules/moment/locale/mn.js\",\n\t\"./mn.js\": \"./node_modules/moment/locale/mn.js\",\n\t\"./mr\": \"./node_modules/moment/locale/mr.js\",\n\t\"./mr.js\": \"./node_modules/moment/locale/mr.js\",\n\t\"./ms\": \"./node_modules/moment/locale/ms.js\",\n\t\"./ms-my\": \"./node_modules/moment/locale/ms-my.js\",\n\t\"./ms-my.js\": \"./node_modules/moment/locale/ms-my.js\",\n\t\"./ms.js\": \"./node_modules/moment/locale/ms.js\",\n\t\"./mt\": \"./node_modules/moment/locale/mt.js\",\n\t\"./mt.js\": \"./node_modules/moment/locale/mt.js\",\n\t\"./my\": \"./node_modules/moment/locale/my.js\",\n\t\"./my.js\": \"./node_modules/moment/locale/my.js\",\n\t\"./nb\": \"./node_modules/moment/locale/nb.js\",\n\t\"./nb.js\": \"./node_modules/moment/locale/nb.js\",\n\t\"./ne\": \"./node_modules/moment/locale/ne.js\",\n\t\"./ne.js\": \"./node_modules/moment/locale/ne.js\",\n\t\"./nl\": \"./node_modules/moment/locale/nl.js\",\n\t\"./nl-be\": \"./node_modules/moment/locale/nl-be.js\",\n\t\"./nl-be.js\": \"./node_modules/moment/locale/nl-be.js\",\n\t\"./nl.js\": \"./node_modules/moment/locale/nl.js\",\n\t\"./nn\": \"./node_modules/moment/locale/nn.js\",\n\t\"./nn.js\": \"./node_modules/moment/locale/nn.js\",\n\t\"./oc-lnc\": \"./node_modules/moment/locale/oc-lnc.js\",\n\t\"./oc-lnc.js\": \"./node_modules/moment/locale/oc-lnc.js\",\n\t\"./pa-in\": \"./node_modules/moment/locale/pa-in.js\",\n\t\"./pa-in.js\": \"./node_modules/moment/locale/pa-in.js\",\n\t\"./pl\": \"./node_modules/moment/locale/pl.js\",\n\t\"./pl.js\": \"./node_modules/moment/locale/pl.js\",\n\t\"./pt\": \"./node_modules/moment/locale/pt.js\",\n\t\"./pt-br\": \"./node_modules/moment/locale/pt-br.js\",\n\t\"./pt-br.js\": \"./node_modules/moment/locale/pt-br.js\",\n\t\"./pt.js\": \"./node_modules/moment/locale/pt.js\",\n\t\"./ro\": \"./node_modules/moment/locale/ro.js\",\n\t\"./ro.js\": \"./node_modules/moment/locale/ro.js\",\n\t\"./ru\": \"./node_modules/moment/locale/ru.js\",\n\t\"./ru.js\": \"./node_modules/moment/locale/ru.js\",\n\t\"./sd\": \"./node_modules/moment/locale/sd.js\",\n\t\"./sd.js\": \"./node_modules/moment/locale/sd.js\",\n\t\"./se\": \"./node_modules/moment/locale/se.js\",\n\t\"./se.js\": \"./node_modules/moment/locale/se.js\",\n\t\"./si\": \"./node_modules/moment/locale/si.js\",\n\t\"./si.js\": \"./node_modules/moment/locale/si.js\",\n\t\"./sk\": \"./node_modules/moment/locale/sk.js\",\n\t\"./sk.js\": \"./node_modules/moment/locale/sk.js\",\n\t\"./sl\": \"./node_modules/moment/locale/sl.js\",\n\t\"./sl.js\": \"./node_modules/moment/locale/sl.js\",\n\t\"./sq\": \"./node_modules/moment/locale/sq.js\",\n\t\"./sq.js\": \"./node_modules/moment/locale/sq.js\",\n\t\"./sr\": \"./node_modules/moment/locale/sr.js\",\n\t\"./sr-cyrl\": \"./node_modules/moment/locale/sr-cyrl.js\",\n\t\"./sr-cyrl.js\": \"./node_modules/moment/locale/sr-cyrl.js\",\n\t\"./sr.js\": \"./node_modules/moment/locale/sr.js\",\n\t\"./ss\": \"./node_modules/moment/locale/ss.js\",\n\t\"./ss.js\": \"./node_modules/moment/locale/ss.js\",\n\t\"./sv\": \"./node_modules/moment/locale/sv.js\",\n\t\"./sv.js\": \"./node_modules/moment/locale/sv.js\",\n\t\"./sw\": \"./node_modules/moment/locale/sw.js\",\n\t\"./sw.js\": \"./node_modules/moment/locale/sw.js\",\n\t\"./ta\": \"./node_modules/moment/locale/ta.js\",\n\t\"./ta.js\": \"./node_modules/moment/locale/ta.js\",\n\t\"./te\": \"./node_modules/moment/locale/te.js\",\n\t\"./te.js\": \"./node_modules/moment/locale/te.js\",\n\t\"./tet\": \"./node_modules/moment/locale/tet.js\",\n\t\"./tet.js\": \"./node_modules/moment/locale/tet.js\",\n\t\"./tg\": \"./node_modules/moment/locale/tg.js\",\n\t\"./tg.js\": \"./node_modules/moment/locale/tg.js\",\n\t\"./th\": \"./node_modules/moment/locale/th.js\",\n\t\"./th.js\": \"./node_modules/moment/locale/th.js\",\n\t\"./tk\": \"./node_modules/moment/locale/tk.js\",\n\t\"./tk.js\": \"./node_modules/moment/locale/tk.js\",\n\t\"./tl-ph\": \"./node_modules/moment/locale/tl-ph.js\",\n\t\"./tl-ph.js\": \"./node_modules/moment/locale/tl-ph.js\",\n\t\"./tlh\": \"./node_modules/moment/locale/tlh.js\",\n\t\"./tlh.js\": \"./node_modules/moment/locale/tlh.js\",\n\t\"./tr\": \"./node_modules/moment/locale/tr.js\",\n\t\"./tr.js\": \"./node_modules/moment/locale/tr.js\",\n\t\"./tzl\": \"./node_modules/moment/locale/tzl.js\",\n\t\"./tzl.js\": \"./node_modules/moment/locale/tzl.js\",\n\t\"./tzm\": \"./node_modules/moment/locale/tzm.js\",\n\t\"./tzm-latn\": \"./node_modules/moment/locale/tzm-latn.js\",\n\t\"./tzm-latn.js\": \"./node_modules/moment/locale/tzm-latn.js\",\n\t\"./tzm.js\": \"./node_modules/moment/locale/tzm.js\",\n\t\"./ug-cn\": \"./node_modules/moment/locale/ug-cn.js\",\n\t\"./ug-cn.js\": \"./node_modules/moment/locale/ug-cn.js\",\n\t\"./uk\": \"./node_modules/moment/locale/uk.js\",\n\t\"./uk.js\": \"./node_modules/moment/locale/uk.js\",\n\t\"./ur\": \"./node_modules/moment/locale/ur.js\",\n\t\"./ur.js\": \"./node_modules/moment/locale/ur.js\",\n\t\"./uz\": \"./node_modules/moment/locale/uz.js\",\n\t\"./uz-latn\": \"./node_modules/moment/locale/uz-latn.js\",\n\t\"./uz-latn.js\": \"./node_modules/moment/locale/uz-latn.js\",\n\t\"./uz.js\": \"./node_modules/moment/locale/uz.js\",\n\t\"./vi\": \"./node_modules/moment/locale/vi.js\",\n\t\"./vi.js\": \"./node_modules/moment/locale/vi.js\",\n\t\"./x-pseudo\": \"./node_modules/moment/locale/x-pseudo.js\",\n\t\"./x-pseudo.js\": \"./node_modules/moment/locale/x-pseudo.js\",\n\t\"./yo\": \"./node_modules/moment/locale/yo.js\",\n\t\"./yo.js\": \"./node_modules/moment/locale/yo.js\",\n\t\"./zh-cn\": \"./node_modules/moment/locale/zh-cn.js\",\n\t\"./zh-cn.js\": \"./node_modules/moment/locale/zh-cn.js\",\n\t\"./zh-hk\": \"./node_modules/moment/locale/zh-hk.js\",\n\t\"./zh-hk.js\": \"./node_modules/moment/locale/zh-hk.js\",\n\t\"./zh-mo\": \"./node_modules/moment/locale/zh-mo.js\",\n\t\"./zh-mo.js\": \"./node_modules/moment/locale/zh-mo.js\",\n\t\"./zh-tw\": \"./node_modules/moment/locale/zh-tw.js\",\n\t\"./zh-tw.js\": \"./node_modules/moment/locale/zh-tw.js\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"./node_modules/moment/locale sync recursive ^\\\\.\\\\/.*$\";\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/locale/_sync_^\\.\\/.*$?");

/***/ }),

/***/ "./node_modules/moment/moment.js":
/*!***************************************!*\
  !*** ./node_modules/moment/moment.js ***!
  \***************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("/* module decorator */ module = __webpack_require__.nmd(module);\n//! moment.js\n//! version : 2.29.4\n//! authors : Tim Wood, Iskren Chernev, Moment.js contributors\n//! license : MIT\n//! momentjs.com\n\n;(function (global, factory) {\n     true ? module.exports = factory() :\n    0\n}(this, (function () { 'use strict';\n\n    var hookCallback;\n\n    function hooks() {\n        return hookCallback.apply(null, arguments);\n    }\n\n    // This is done to register the method called with moment()\n    // without creating circular dependencies.\n    function setHookCallback(callback) {\n        hookCallback = callback;\n    }\n\n    function isArray(input) {\n        return (\n            input instanceof Array ||\n            Object.prototype.toString.call(input) === '[object Array]'\n        );\n    }\n\n    function isObject(input) {\n        // IE8 will treat undefined and null as object if it wasn't for\n        // input != null\n        return (\n            input != null &&\n            Object.prototype.toString.call(input) === '[object Object]'\n        );\n    }\n\n    function hasOwnProp(a, b) {\n        return Object.prototype.hasOwnProperty.call(a, b);\n    }\n\n    function isObjectEmpty(obj) {\n        if (Object.getOwnPropertyNames) {\n            return Object.getOwnPropertyNames(obj).length === 0;\n        } else {\n            var k;\n            for (k in obj) {\n                if (hasOwnProp(obj, k)) {\n                    return false;\n                }\n            }\n            return true;\n        }\n    }\n\n    function isUndefined(input) {\n        return input === void 0;\n    }\n\n    function isNumber(input) {\n        return (\n            typeof input === 'number' ||\n            Object.prototype.toString.call(input) === '[object Number]'\n        );\n    }\n\n    function isDate(input) {\n        return (\n            input instanceof Date ||\n            Object.prototype.toString.call(input) === '[object Date]'\n        );\n    }\n\n    function map(arr, fn) {\n        var res = [],\n            i,\n            arrLen = arr.length;\n        for (i = 0; i < arrLen; ++i) {\n            res.push(fn(arr[i], i));\n        }\n        return res;\n    }\n\n    function extend(a, b) {\n        for (var i in b) {\n            if (hasOwnProp(b, i)) {\n                a[i] = b[i];\n            }\n        }\n\n        if (hasOwnProp(b, 'toString')) {\n            a.toString = b.toString;\n        }\n\n        if (hasOwnProp(b, 'valueOf')) {\n            a.valueOf = b.valueOf;\n        }\n\n        return a;\n    }\n\n    function createUTC(input, format, locale, strict) {\n        return createLocalOrUTC(input, format, locale, strict, true).utc();\n    }\n\n    function defaultParsingFlags() {\n        // We need to deep clone this object.\n        return {\n            empty: false,\n            unusedTokens: [],\n            unusedInput: [],\n            overflow: -2,\n            charsLeftOver: 0,\n            nullInput: false,\n            invalidEra: null,\n            invalidMonth: null,\n            invalidFormat: false,\n            userInvalidated: false,\n            iso: false,\n            parsedDateParts: [],\n            era: null,\n            meridiem: null,\n            rfc2822: false,\n            weekdayMismatch: false,\n        };\n    }\n\n    function getParsingFlags(m) {\n        if (m._pf == null) {\n            m._pf = defaultParsingFlags();\n        }\n        return m._pf;\n    }\n\n    var some;\n    if (Array.prototype.some) {\n        some = Array.prototype.some;\n    } else {\n        some = function (fun) {\n            var t = Object(this),\n                len = t.length >>> 0,\n                i;\n\n            for (i = 0; i < len; i++) {\n                if (i in t && fun.call(this, t[i], i, t)) {\n                    return true;\n                }\n            }\n\n            return false;\n        };\n    }\n\n    function isValid(m) {\n        if (m._isValid == null) {\n            var flags = getParsingFlags(m),\n                parsedParts = some.call(flags.parsedDateParts, function (i) {\n                    return i != null;\n                }),\n                isNowValid =\n                    !isNaN(m._d.getTime()) &&\n                    flags.overflow < 0 &&\n                    !flags.empty &&\n                    !flags.invalidEra &&\n                    !flags.invalidMonth &&\n                    !flags.invalidWeekday &&\n                    !flags.weekdayMismatch &&\n                    !flags.nullInput &&\n                    !flags.invalidFormat &&\n                    !flags.userInvalidated &&\n                    (!flags.meridiem || (flags.meridiem && parsedParts));\n\n            if (m._strict) {\n                isNowValid =\n                    isNowValid &&\n                    flags.charsLeftOver === 0 &&\n                    flags.unusedTokens.length === 0 &&\n                    flags.bigHour === undefined;\n            }\n\n            if (Object.isFrozen == null || !Object.isFrozen(m)) {\n                m._isValid = isNowValid;\n            } else {\n                return isNowValid;\n            }\n        }\n        return m._isValid;\n    }\n\n    function createInvalid(flags) {\n        var m = createUTC(NaN);\n        if (flags != null) {\n            extend(getParsingFlags(m), flags);\n        } else {\n            getParsingFlags(m).userInvalidated = true;\n        }\n\n        return m;\n    }\n\n    // Plugins that add properties should also add the key here (null value),\n    // so we can properly clone ourselves.\n    var momentProperties = (hooks.momentProperties = []),\n        updateInProgress = false;\n\n    function copyConfig(to, from) {\n        var i,\n            prop,\n            val,\n            momentPropertiesLen = momentProperties.length;\n\n        if (!isUndefined(from._isAMomentObject)) {\n            to._isAMomentObject = from._isAMomentObject;\n        }\n        if (!isUndefined(from._i)) {\n            to._i = from._i;\n        }\n        if (!isUndefined(from._f)) {\n            to._f = from._f;\n        }\n        if (!isUndefined(from._l)) {\n            to._l = from._l;\n        }\n        if (!isUndefined(from._strict)) {\n            to._strict = from._strict;\n        }\n        if (!isUndefined(from._tzm)) {\n            to._tzm = from._tzm;\n        }\n        if (!isUndefined(from._isUTC)) {\n            to._isUTC = from._isUTC;\n        }\n        if (!isUndefined(from._offset)) {\n            to._offset = from._offset;\n        }\n        if (!isUndefined(from._pf)) {\n            to._pf = getParsingFlags(from);\n        }\n        if (!isUndefined(from._locale)) {\n            to._locale = from._locale;\n        }\n\n        if (momentPropertiesLen > 0) {\n            for (i = 0; i < momentPropertiesLen; i++) {\n                prop = momentProperties[i];\n                val = from[prop];\n                if (!isUndefined(val)) {\n                    to[prop] = val;\n                }\n            }\n        }\n\n        return to;\n    }\n\n    // Moment prototype object\n    function Moment(config) {\n        copyConfig(this, config);\n        this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n        if (!this.isValid()) {\n            this._d = new Date(NaN);\n        }\n        // Prevent infinite loop in case updateOffset creates new moment\n        // objects.\n        if (updateInProgress === false) {\n            updateInProgress = true;\n            hooks.updateOffset(this);\n            updateInProgress = false;\n        }\n    }\n\n    function isMoment(obj) {\n        return (\n            obj instanceof Moment || (obj != null && obj._isAMomentObject != null)\n        );\n    }\n\n    function warn(msg) {\n        if (\n            hooks.suppressDeprecationWarnings === false &&\n            typeof console !== 'undefined' &&\n            console.warn\n        ) {\n            console.warn('Deprecation warning: ' + msg);\n        }\n    }\n\n    function deprecate(msg, fn) {\n        var firstTime = true;\n\n        return extend(function () {\n            if (hooks.deprecationHandler != null) {\n                hooks.deprecationHandler(null, msg);\n            }\n            if (firstTime) {\n                var args = [],\n                    arg,\n                    i,\n                    key,\n                    argLen = arguments.length;\n                for (i = 0; i < argLen; i++) {\n                    arg = '';\n                    if (typeof arguments[i] === 'object') {\n                        arg += '\\n[' + i + '] ';\n                        for (key in arguments[0]) {\n                            if (hasOwnProp(arguments[0], key)) {\n                                arg += key + ': ' + arguments[0][key] + ', ';\n                            }\n                        }\n                        arg = arg.slice(0, -2); // Remove trailing comma and space\n                    } else {\n                        arg = arguments[i];\n                    }\n                    args.push(arg);\n                }\n                warn(\n                    msg +\n                        '\\nArguments: ' +\n                        Array.prototype.slice.call(args).join('') +\n                        '\\n' +\n                        new Error().stack\n                );\n                firstTime = false;\n            }\n            return fn.apply(this, arguments);\n        }, fn);\n    }\n\n    var deprecations = {};\n\n    function deprecateSimple(name, msg) {\n        if (hooks.deprecationHandler != null) {\n            hooks.deprecationHandler(name, msg);\n        }\n        if (!deprecations[name]) {\n            warn(msg);\n            deprecations[name] = true;\n        }\n    }\n\n    hooks.suppressDeprecationWarnings = false;\n    hooks.deprecationHandler = null;\n\n    function isFunction(input) {\n        return (\n            (typeof Function !== 'undefined' && input instanceof Function) ||\n            Object.prototype.toString.call(input) === '[object Function]'\n        );\n    }\n\n    function set(config) {\n        var prop, i;\n        for (i in config) {\n            if (hasOwnProp(config, i)) {\n                prop = config[i];\n                if (isFunction(prop)) {\n                    this[i] = prop;\n                } else {\n                    this['_' + i] = prop;\n                }\n            }\n        }\n        this._config = config;\n        // Lenient ordinal parsing accepts just a number in addition to\n        // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n        // TODO: Remove \"ordinalParse\" fallback in next major release.\n        this._dayOfMonthOrdinalParseLenient = new RegExp(\n            (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +\n                '|' +\n                /\\d{1,2}/.source\n        );\n    }\n\n    function mergeConfigs(parentConfig, childConfig) {\n        var res = extend({}, parentConfig),\n            prop;\n        for (prop in childConfig) {\n            if (hasOwnProp(childConfig, prop)) {\n                if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\n                    res[prop] = {};\n                    extend(res[prop], parentConfig[prop]);\n                    extend(res[prop], childConfig[prop]);\n                } else if (childConfig[prop] != null) {\n                    res[prop] = childConfig[prop];\n                } else {\n                    delete res[prop];\n                }\n            }\n        }\n        for (prop in parentConfig) {\n            if (\n                hasOwnProp(parentConfig, prop) &&\n                !hasOwnProp(childConfig, prop) &&\n                isObject(parentConfig[prop])\n            ) {\n                // make sure changes to properties don't modify parent config\n                res[prop] = extend({}, res[prop]);\n            }\n        }\n        return res;\n    }\n\n    function Locale(config) {\n        if (config != null) {\n            this.set(config);\n        }\n    }\n\n    var keys;\n\n    if (Object.keys) {\n        keys = Object.keys;\n    } else {\n        keys = function (obj) {\n            var i,\n                res = [];\n            for (i in obj) {\n                if (hasOwnProp(obj, i)) {\n                    res.push(i);\n                }\n            }\n            return res;\n        };\n    }\n\n    var defaultCalendar = {\n        sameDay: '[Today at] LT',\n        nextDay: '[Tomorrow at] LT',\n        nextWeek: 'dddd [at] LT',\n        lastDay: '[Yesterday at] LT',\n        lastWeek: '[Last] dddd [at] LT',\n        sameElse: 'L',\n    };\n\n    function calendar(key, mom, now) {\n        var output = this._calendar[key] || this._calendar['sameElse'];\n        return isFunction(output) ? output.call(mom, now) : output;\n    }\n\n    function zeroFill(number, targetLength, forceSign) {\n        var absNumber = '' + Math.abs(number),\n            zerosToFill = targetLength - absNumber.length,\n            sign = number >= 0;\n        return (\n            (sign ? (forceSign ? '+' : '') : '-') +\n            Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +\n            absNumber\n        );\n    }\n\n    var formattingTokens =\n            /(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,\n        localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,\n        formatFunctions = {},\n        formatTokenFunctions = {};\n\n    // token:    'M'\n    // padded:   ['MM', 2]\n    // ordinal:  'Mo'\n    // callback: function () { this.month() + 1 }\n    function addFormatToken(token, padded, ordinal, callback) {\n        var func = callback;\n        if (typeof callback === 'string') {\n            func = function () {\n                return this[callback]();\n            };\n        }\n        if (token) {\n            formatTokenFunctions[token] = func;\n        }\n        if (padded) {\n            formatTokenFunctions[padded[0]] = function () {\n                return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n            };\n        }\n        if (ordinal) {\n            formatTokenFunctions[ordinal] = function () {\n                return this.localeData().ordinal(\n                    func.apply(this, arguments),\n                    token\n                );\n            };\n        }\n    }\n\n    function removeFormattingTokens(input) {\n        if (input.match(/\\[[\\s\\S]/)) {\n            return input.replace(/^\\[|\\]$/g, '');\n        }\n        return input.replace(/\\\\/g, '');\n    }\n\n    function makeFormatFunction(format) {\n        var array = format.match(formattingTokens),\n            i,\n            length;\n\n        for (i = 0, length = array.length; i < length; i++) {\n            if (formatTokenFunctions[array[i]]) {\n                array[i] = formatTokenFunctions[array[i]];\n            } else {\n                array[i] = removeFormattingTokens(array[i]);\n            }\n        }\n\n        return function (mom) {\n            var output = '',\n                i;\n            for (i = 0; i < length; i++) {\n                output += isFunction(array[i])\n                    ? array[i].call(mom, format)\n                    : array[i];\n            }\n            return output;\n        };\n    }\n\n    // format date using native date object\n    function formatMoment(m, format) {\n        if (!m.isValid()) {\n            return m.localeData().invalidDate();\n        }\n\n        format = expandFormat(format, m.localeData());\n        formatFunctions[format] =\n            formatFunctions[format] || makeFormatFunction(format);\n\n        return formatFunctions[format](m);\n    }\n\n    function expandFormat(format, locale) {\n        var i = 5;\n\n        function replaceLongDateFormatTokens(input) {\n            return locale.longDateFormat(input) || input;\n        }\n\n        localFormattingTokens.lastIndex = 0;\n        while (i >= 0 && localFormattingTokens.test(format)) {\n            format = format.replace(\n                localFormattingTokens,\n                replaceLongDateFormatTokens\n            );\n            localFormattingTokens.lastIndex = 0;\n            i -= 1;\n        }\n\n        return format;\n    }\n\n    var defaultLongDateFormat = {\n        LTS: 'h:mm:ss A',\n        LT: 'h:mm A',\n        L: 'MM/DD/YYYY',\n        LL: 'MMMM D, YYYY',\n        LLL: 'MMMM D, YYYY h:mm A',\n        LLLL: 'dddd, MMMM D, YYYY h:mm A',\n    };\n\n    function longDateFormat(key) {\n        var format = this._longDateFormat[key],\n            formatUpper = this._longDateFormat[key.toUpperCase()];\n\n        if (format || !formatUpper) {\n            return format;\n        }\n\n        this._longDateFormat[key] = formatUpper\n            .match(formattingTokens)\n            .map(function (tok) {\n                if (\n                    tok === 'MMMM' ||\n                    tok === 'MM' ||\n                    tok === 'DD' ||\n                    tok === 'dddd'\n                ) {\n                    return tok.slice(1);\n                }\n                return tok;\n            })\n            .join('');\n\n        return this._longDateFormat[key];\n    }\n\n    var defaultInvalidDate = 'Invalid date';\n\n    function invalidDate() {\n        return this._invalidDate;\n    }\n\n    var defaultOrdinal = '%d',\n        defaultDayOfMonthOrdinalParse = /\\d{1,2}/;\n\n    function ordinal(number) {\n        return this._ordinal.replace('%d', number);\n    }\n\n    var defaultRelativeTime = {\n        future: 'in %s',\n        past: '%s ago',\n        s: 'a few seconds',\n        ss: '%d seconds',\n        m: 'a minute',\n        mm: '%d minutes',\n        h: 'an hour',\n        hh: '%d hours',\n        d: 'a day',\n        dd: '%d days',\n        w: 'a week',\n        ww: '%d weeks',\n        M: 'a month',\n        MM: '%d months',\n        y: 'a year',\n        yy: '%d years',\n    };\n\n    function relativeTime(number, withoutSuffix, string, isFuture) {\n        var output = this._relativeTime[string];\n        return isFunction(output)\n            ? output(number, withoutSuffix, string, isFuture)\n            : output.replace(/%d/i, number);\n    }\n\n    function pastFuture(diff, output) {\n        var format = this._relativeTime[diff > 0 ? 'future' : 'past'];\n        return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n    }\n\n    var aliases = {};\n\n    function addUnitAlias(unit, shorthand) {\n        var lowerCase = unit.toLowerCase();\n        aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;\n    }\n\n    function normalizeUnits(units) {\n        return typeof units === 'string'\n            ? aliases[units] || aliases[units.toLowerCase()]\n            : undefined;\n    }\n\n    function normalizeObjectUnits(inputObject) {\n        var normalizedInput = {},\n            normalizedProp,\n            prop;\n\n        for (prop in inputObject) {\n            if (hasOwnProp(inputObject, prop)) {\n                normalizedProp = normalizeUnits(prop);\n                if (normalizedProp) {\n                    normalizedInput[normalizedProp] = inputObject[prop];\n                }\n            }\n        }\n\n        return normalizedInput;\n    }\n\n    var priorities = {};\n\n    function addUnitPriority(unit, priority) {\n        priorities[unit] = priority;\n    }\n\n    function getPrioritizedUnits(unitsObj) {\n        var units = [],\n            u;\n        for (u in unitsObj) {\n            if (hasOwnProp(unitsObj, u)) {\n                units.push({ unit: u, priority: priorities[u] });\n            }\n        }\n        units.sort(function (a, b) {\n            return a.priority - b.priority;\n        });\n        return units;\n    }\n\n    function isLeapYear(year) {\n        return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n    }\n\n    function absFloor(number) {\n        if (number < 0) {\n            // -0 -> 0\n            return Math.ceil(number) || 0;\n        } else {\n            return Math.floor(number);\n        }\n    }\n\n    function toInt(argumentForCoercion) {\n        var coercedNumber = +argumentForCoercion,\n            value = 0;\n\n        if (coercedNumber !== 0 && isFinite(coercedNumber)) {\n            value = absFloor(coercedNumber);\n        }\n\n        return value;\n    }\n\n    function makeGetSet(unit, keepTime) {\n        return function (value) {\n            if (value != null) {\n                set$1(this, unit, value);\n                hooks.updateOffset(this, keepTime);\n                return this;\n            } else {\n                return get(this, unit);\n            }\n        };\n    }\n\n    function get(mom, unit) {\n        return mom.isValid()\n            ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()\n            : NaN;\n    }\n\n    function set$1(mom, unit, value) {\n        if (mom.isValid() && !isNaN(value)) {\n            if (\n                unit === 'FullYear' &&\n                isLeapYear(mom.year()) &&\n                mom.month() === 1 &&\n                mom.date() === 29\n            ) {\n                value = toInt(value);\n                mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](\n                    value,\n                    mom.month(),\n                    daysInMonth(value, mom.month())\n                );\n            } else {\n                mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);\n            }\n        }\n    }\n\n    // MOMENTS\n\n    function stringGet(units) {\n        units = normalizeUnits(units);\n        if (isFunction(this[units])) {\n            return this[units]();\n        }\n        return this;\n    }\n\n    function stringSet(units, value) {\n        if (typeof units === 'object') {\n            units = normalizeObjectUnits(units);\n            var prioritized = getPrioritizedUnits(units),\n                i,\n                prioritizedLen = prioritized.length;\n            for (i = 0; i < prioritizedLen; i++) {\n                this[prioritized[i].unit](units[prioritized[i].unit]);\n            }\n        } else {\n            units = normalizeUnits(units);\n            if (isFunction(this[units])) {\n                return this[units](value);\n            }\n        }\n        return this;\n    }\n\n    var match1 = /\\d/, //       0 - 9\n        match2 = /\\d\\d/, //      00 - 99\n        match3 = /\\d{3}/, //     000 - 999\n        match4 = /\\d{4}/, //    0000 - 9999\n        match6 = /[+-]?\\d{6}/, // -999999 - 999999\n        match1to2 = /\\d\\d?/, //       0 - 99\n        match3to4 = /\\d\\d\\d\\d?/, //     999 - 9999\n        match5to6 = /\\d\\d\\d\\d\\d\\d?/, //   99999 - 999999\n        match1to3 = /\\d{1,3}/, //       0 - 999\n        match1to4 = /\\d{1,4}/, //       0 - 9999\n        match1to6 = /[+-]?\\d{1,6}/, // -999999 - 999999\n        matchUnsigned = /\\d+/, //       0 - inf\n        matchSigned = /[+-]?\\d+/, //    -inf - inf\n        matchOffset = /Z|[+-]\\d\\d:?\\d\\d/gi, // +00:00 -00:00 +0000 -0000 or Z\n        matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z\n        matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/, // 123456789 123456789.123\n        // any word (or two) characters or numbers including two/three word month in arabic.\n        // includes scottish gaelic two word and hyphenated months\n        matchWord =\n            /[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i,\n        regexes;\n\n    regexes = {};\n\n    function addRegexToken(token, regex, strictRegex) {\n        regexes[token] = isFunction(regex)\n            ? regex\n            : function (isStrict, localeData) {\n                  return isStrict && strictRegex ? strictRegex : regex;\n              };\n    }\n\n    function getParseRegexForToken(token, config) {\n        if (!hasOwnProp(regexes, token)) {\n            return new RegExp(unescapeFormat(token));\n        }\n\n        return regexes[token](config._strict, config._locale);\n    }\n\n    // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\n    function unescapeFormat(s) {\n        return regexEscape(\n            s\n                .replace('\\\\', '')\n                .replace(\n                    /\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,\n                    function (matched, p1, p2, p3, p4) {\n                        return p1 || p2 || p3 || p4;\n                    }\n                )\n        );\n    }\n\n    function regexEscape(s) {\n        return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n    }\n\n    var tokens = {};\n\n    function addParseToken(token, callback) {\n        var i,\n            func = callback,\n            tokenLen;\n        if (typeof token === 'string') {\n            token = [token];\n        }\n        if (isNumber(callback)) {\n            func = function (input, array) {\n                array[callback] = toInt(input);\n            };\n        }\n        tokenLen = token.length;\n        for (i = 0; i < tokenLen; i++) {\n            tokens[token[i]] = func;\n        }\n    }\n\n    function addWeekParseToken(token, callback) {\n        addParseToken(token, function (input, array, config, token) {\n            config._w = config._w || {};\n            callback(input, config._w, config, token);\n        });\n    }\n\n    function addTimeToArrayFromToken(token, input, config) {\n        if (input != null && hasOwnProp(tokens, token)) {\n            tokens[token](input, config._a, config, token);\n        }\n    }\n\n    var YEAR = 0,\n        MONTH = 1,\n        DATE = 2,\n        HOUR = 3,\n        MINUTE = 4,\n        SECOND = 5,\n        MILLISECOND = 6,\n        WEEK = 7,\n        WEEKDAY = 8;\n\n    function mod(n, x) {\n        return ((n % x) + x) % x;\n    }\n\n    var indexOf;\n\n    if (Array.prototype.indexOf) {\n        indexOf = Array.prototype.indexOf;\n    } else {\n        indexOf = function (o) {\n            // I know\n            var i;\n            for (i = 0; i < this.length; ++i) {\n                if (this[i] === o) {\n                    return i;\n                }\n            }\n            return -1;\n        };\n    }\n\n    function daysInMonth(year, month) {\n        if (isNaN(year) || isNaN(month)) {\n            return NaN;\n        }\n        var modMonth = mod(month, 12);\n        year += (month - modMonth) / 12;\n        return modMonth === 1\n            ? isLeapYear(year)\n                ? 29\n                : 28\n            : 31 - ((modMonth % 7) % 2);\n    }\n\n    // FORMATTING\n\n    addFormatToken('M', ['MM', 2], 'Mo', function () {\n        return this.month() + 1;\n    });\n\n    addFormatToken('MMM', 0, 0, function (format) {\n        return this.localeData().monthsShort(this, format);\n    });\n\n    addFormatToken('MMMM', 0, 0, function (format) {\n        return this.localeData().months(this, format);\n    });\n\n    // ALIASES\n\n    addUnitAlias('month', 'M');\n\n    // PRIORITY\n\n    addUnitPriority('month', 8);\n\n    // PARSING\n\n    addRegexToken('M', match1to2);\n    addRegexToken('MM', match1to2, match2);\n    addRegexToken('MMM', function (isStrict, locale) {\n        return locale.monthsShortRegex(isStrict);\n    });\n    addRegexToken('MMMM', function (isStrict, locale) {\n        return locale.monthsRegex(isStrict);\n    });\n\n    addParseToken(['M', 'MM'], function (input, array) {\n        array[MONTH] = toInt(input) - 1;\n    });\n\n    addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {\n        var month = config._locale.monthsParse(input, token, config._strict);\n        // if we didn't find a month name, mark the date as invalid.\n        if (month != null) {\n            array[MONTH] = month;\n        } else {\n            getParsingFlags(config).invalidMonth = input;\n        }\n    });\n\n    // LOCALES\n\n    var defaultLocaleMonths =\n            'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n                '_'\n            ),\n        defaultLocaleMonthsShort =\n            'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n        MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,\n        defaultMonthsShortRegex = matchWord,\n        defaultMonthsRegex = matchWord;\n\n    function localeMonths(m, format) {\n        if (!m) {\n            return isArray(this._months)\n                ? this._months\n                : this._months['standalone'];\n        }\n        return isArray(this._months)\n            ? this._months[m.month()]\n            : this._months[\n                  (this._months.isFormat || MONTHS_IN_FORMAT).test(format)\n                      ? 'format'\n                      : 'standalone'\n              ][m.month()];\n    }\n\n    function localeMonthsShort(m, format) {\n        if (!m) {\n            return isArray(this._monthsShort)\n                ? this._monthsShort\n                : this._monthsShort['standalone'];\n        }\n        return isArray(this._monthsShort)\n            ? this._monthsShort[m.month()]\n            : this._monthsShort[\n                  MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'\n              ][m.month()];\n    }\n\n    function handleStrictParse(monthName, format, strict) {\n        var i,\n            ii,\n            mom,\n            llc = monthName.toLocaleLowerCase();\n        if (!this._monthsParse) {\n            // this is not used\n            this._monthsParse = [];\n            this._longMonthsParse = [];\n            this._shortMonthsParse = [];\n            for (i = 0; i < 12; ++i) {\n                mom = createUTC([2000, i]);\n                this._shortMonthsParse[i] = this.monthsShort(\n                    mom,\n                    ''\n                ).toLocaleLowerCase();\n                this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();\n            }\n        }\n\n        if (strict) {\n            if (format === 'MMM') {\n                ii = indexOf.call(this._shortMonthsParse, llc);\n                return ii !== -1 ? ii : null;\n            } else {\n                ii = indexOf.call(this._longMonthsParse, llc);\n                return ii !== -1 ? ii : null;\n            }\n        } else {\n            if (format === 'MMM') {\n                ii = indexOf.call(this._shortMonthsParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._longMonthsParse, llc);\n                return ii !== -1 ? ii : null;\n            } else {\n                ii = indexOf.call(this._longMonthsParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._shortMonthsParse, llc);\n                return ii !== -1 ? ii : null;\n            }\n        }\n    }\n\n    function localeMonthsParse(monthName, format, strict) {\n        var i, mom, regex;\n\n        if (this._monthsParseExact) {\n            return handleStrictParse.call(this, monthName, format, strict);\n        }\n\n        if (!this._monthsParse) {\n            this._monthsParse = [];\n            this._longMonthsParse = [];\n            this._shortMonthsParse = [];\n        }\n\n        // TODO: add sorting\n        // Sorting makes sure if one month (or abbr) is a prefix of another\n        // see sorting in computeMonthsParse\n        for (i = 0; i < 12; i++) {\n            // make the regex if we don't have it already\n            mom = createUTC([2000, i]);\n            if (strict && !this._longMonthsParse[i]) {\n                this._longMonthsParse[i] = new RegExp(\n                    '^' + this.months(mom, '').replace('.', '') + '$',\n                    'i'\n                );\n                this._shortMonthsParse[i] = new RegExp(\n                    '^' + this.monthsShort(mom, '').replace('.', '') + '$',\n                    'i'\n                );\n            }\n            if (!strict && !this._monthsParse[i]) {\n                regex =\n                    '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');\n                this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');\n            }\n            // test the regex\n            if (\n                strict &&\n                format === 'MMMM' &&\n                this._longMonthsParse[i].test(monthName)\n            ) {\n                return i;\n            } else if (\n                strict &&\n                format === 'MMM' &&\n                this._shortMonthsParse[i].test(monthName)\n            ) {\n                return i;\n            } else if (!strict && this._monthsParse[i].test(monthName)) {\n                return i;\n            }\n        }\n    }\n\n    // MOMENTS\n\n    function setMonth(mom, value) {\n        var dayOfMonth;\n\n        if (!mom.isValid()) {\n            // No op\n            return mom;\n        }\n\n        if (typeof value === 'string') {\n            if (/^\\d+$/.test(value)) {\n                value = toInt(value);\n            } else {\n                value = mom.localeData().monthsParse(value);\n                // TODO: Another silent failure?\n                if (!isNumber(value)) {\n                    return mom;\n                }\n            }\n        }\n\n        dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));\n        mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);\n        return mom;\n    }\n\n    function getSetMonth(value) {\n        if (value != null) {\n            setMonth(this, value);\n            hooks.updateOffset(this, true);\n            return this;\n        } else {\n            return get(this, 'Month');\n        }\n    }\n\n    function getDaysInMonth() {\n        return daysInMonth(this.year(), this.month());\n    }\n\n    function monthsShortRegex(isStrict) {\n        if (this._monthsParseExact) {\n            if (!hasOwnProp(this, '_monthsRegex')) {\n                computeMonthsParse.call(this);\n            }\n            if (isStrict) {\n                return this._monthsShortStrictRegex;\n            } else {\n                return this._monthsShortRegex;\n            }\n        } else {\n            if (!hasOwnProp(this, '_monthsShortRegex')) {\n                this._monthsShortRegex = defaultMonthsShortRegex;\n            }\n            return this._monthsShortStrictRegex && isStrict\n                ? this._monthsShortStrictRegex\n                : this._monthsShortRegex;\n        }\n    }\n\n    function monthsRegex(isStrict) {\n        if (this._monthsParseExact) {\n            if (!hasOwnProp(this, '_monthsRegex')) {\n                computeMonthsParse.call(this);\n            }\n            if (isStrict) {\n                return this._monthsStrictRegex;\n            } else {\n                return this._monthsRegex;\n            }\n        } else {\n            if (!hasOwnProp(this, '_monthsRegex')) {\n                this._monthsRegex = defaultMonthsRegex;\n            }\n            return this._monthsStrictRegex && isStrict\n                ? this._monthsStrictRegex\n                : this._monthsRegex;\n        }\n    }\n\n    function computeMonthsParse() {\n        function cmpLenRev(a, b) {\n            return b.length - a.length;\n        }\n\n        var shortPieces = [],\n            longPieces = [],\n            mixedPieces = [],\n            i,\n            mom;\n        for (i = 0; i < 12; i++) {\n            // make the regex if we don't have it already\n            mom = createUTC([2000, i]);\n            shortPieces.push(this.monthsShort(mom, ''));\n            longPieces.push(this.months(mom, ''));\n            mixedPieces.push(this.months(mom, ''));\n            mixedPieces.push(this.monthsShort(mom, ''));\n        }\n        // Sorting makes sure if one month (or abbr) is a prefix of another it\n        // will match the longer piece.\n        shortPieces.sort(cmpLenRev);\n        longPieces.sort(cmpLenRev);\n        mixedPieces.sort(cmpLenRev);\n        for (i = 0; i < 12; i++) {\n            shortPieces[i] = regexEscape(shortPieces[i]);\n            longPieces[i] = regexEscape(longPieces[i]);\n        }\n        for (i = 0; i < 24; i++) {\n            mixedPieces[i] = regexEscape(mixedPieces[i]);\n        }\n\n        this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n        this._monthsShortRegex = this._monthsRegex;\n        this._monthsStrictRegex = new RegExp(\n            '^(' + longPieces.join('|') + ')',\n            'i'\n        );\n        this._monthsShortStrictRegex = new RegExp(\n            '^(' + shortPieces.join('|') + ')',\n            'i'\n        );\n    }\n\n    // FORMATTING\n\n    addFormatToken('Y', 0, 0, function () {\n        var y = this.year();\n        return y <= 9999 ? zeroFill(y, 4) : '+' + y;\n    });\n\n    addFormatToken(0, ['YY', 2], 0, function () {\n        return this.year() % 100;\n    });\n\n    addFormatToken(0, ['YYYY', 4], 0, 'year');\n    addFormatToken(0, ['YYYYY', 5], 0, 'year');\n    addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');\n\n    // ALIASES\n\n    addUnitAlias('year', 'y');\n\n    // PRIORITIES\n\n    addUnitPriority('year', 1);\n\n    // PARSING\n\n    addRegexToken('Y', matchSigned);\n    addRegexToken('YY', match1to2, match2);\n    addRegexToken('YYYY', match1to4, match4);\n    addRegexToken('YYYYY', match1to6, match6);\n    addRegexToken('YYYYYY', match1to6, match6);\n\n    addParseToken(['YYYYY', 'YYYYYY'], YEAR);\n    addParseToken('YYYY', function (input, array) {\n        array[YEAR] =\n            input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);\n    });\n    addParseToken('YY', function (input, array) {\n        array[YEAR] = hooks.parseTwoDigitYear(input);\n    });\n    addParseToken('Y', function (input, array) {\n        array[YEAR] = parseInt(input, 10);\n    });\n\n    // HELPERS\n\n    function daysInYear(year) {\n        return isLeapYear(year) ? 366 : 365;\n    }\n\n    // HOOKS\n\n    hooks.parseTwoDigitYear = function (input) {\n        return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n    };\n\n    // MOMENTS\n\n    var getSetYear = makeGetSet('FullYear', true);\n\n    function getIsLeapYear() {\n        return isLeapYear(this.year());\n    }\n\n    function createDate(y, m, d, h, M, s, ms) {\n        // can't just apply() to create a date:\n        // https://stackoverflow.com/q/181348\n        var date;\n        // the date constructor remaps years 0-99 to 1900-1999\n        if (y < 100 && y >= 0) {\n            // preserve leap years using a full 400 year cycle, then reset\n            date = new Date(y + 400, m, d, h, M, s, ms);\n            if (isFinite(date.getFullYear())) {\n                date.setFullYear(y);\n            }\n        } else {\n            date = new Date(y, m, d, h, M, s, ms);\n        }\n\n        return date;\n    }\n\n    function createUTCDate(y) {\n        var date, args;\n        // the Date.UTC function remaps years 0-99 to 1900-1999\n        if (y < 100 && y >= 0) {\n            args = Array.prototype.slice.call(arguments);\n            // preserve leap years using a full 400 year cycle, then reset\n            args[0] = y + 400;\n            date = new Date(Date.UTC.apply(null, args));\n            if (isFinite(date.getUTCFullYear())) {\n                date.setUTCFullYear(y);\n            }\n        } else {\n            date = new Date(Date.UTC.apply(null, arguments));\n        }\n\n        return date;\n    }\n\n    // start-of-first-week - start-of-year\n    function firstWeekOffset(year, dow, doy) {\n        var // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n            fwd = 7 + dow - doy,\n            // first-week day local weekday -- which local weekday is fwd\n            fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n\n        return -fwdlw + fwd - 1;\n    }\n\n    // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\n    function dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n        var localWeekday = (7 + weekday - dow) % 7,\n            weekOffset = firstWeekOffset(year, dow, doy),\n            dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,\n            resYear,\n            resDayOfYear;\n\n        if (dayOfYear <= 0) {\n            resYear = year - 1;\n            resDayOfYear = daysInYear(resYear) + dayOfYear;\n        } else if (dayOfYear > daysInYear(year)) {\n            resYear = year + 1;\n            resDayOfYear = dayOfYear - daysInYear(year);\n        } else {\n            resYear = year;\n            resDayOfYear = dayOfYear;\n        }\n\n        return {\n            year: resYear,\n            dayOfYear: resDayOfYear,\n        };\n    }\n\n    function weekOfYear(mom, dow, doy) {\n        var weekOffset = firstWeekOffset(mom.year(), dow, doy),\n            week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,\n            resWeek,\n            resYear;\n\n        if (week < 1) {\n            resYear = mom.year() - 1;\n            resWeek = week + weeksInYear(resYear, dow, doy);\n        } else if (week > weeksInYear(mom.year(), dow, doy)) {\n            resWeek = week - weeksInYear(mom.year(), dow, doy);\n            resYear = mom.year() + 1;\n        } else {\n            resYear = mom.year();\n            resWeek = week;\n        }\n\n        return {\n            week: resWeek,\n            year: resYear,\n        };\n    }\n\n    function weeksInYear(year, dow, doy) {\n        var weekOffset = firstWeekOffset(year, dow, doy),\n            weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n        return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n    }\n\n    // FORMATTING\n\n    addFormatToken('w', ['ww', 2], 'wo', 'week');\n    addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');\n\n    // ALIASES\n\n    addUnitAlias('week', 'w');\n    addUnitAlias('isoWeek', 'W');\n\n    // PRIORITIES\n\n    addUnitPriority('week', 5);\n    addUnitPriority('isoWeek', 5);\n\n    // PARSING\n\n    addRegexToken('w', match1to2);\n    addRegexToken('ww', match1to2, match2);\n    addRegexToken('W', match1to2);\n    addRegexToken('WW', match1to2, match2);\n\n    addWeekParseToken(\n        ['w', 'ww', 'W', 'WW'],\n        function (input, week, config, token) {\n            week[token.substr(0, 1)] = toInt(input);\n        }\n    );\n\n    // HELPERS\n\n    // LOCALES\n\n    function localeWeek(mom) {\n        return weekOfYear(mom, this._week.dow, this._week.doy).week;\n    }\n\n    var defaultLocaleWeek = {\n        dow: 0, // Sunday is the first day of the week.\n        doy: 6, // The week that contains Jan 6th is the first week of the year.\n    };\n\n    function localeFirstDayOfWeek() {\n        return this._week.dow;\n    }\n\n    function localeFirstDayOfYear() {\n        return this._week.doy;\n    }\n\n    // MOMENTS\n\n    function getSetWeek(input) {\n        var week = this.localeData().week(this);\n        return input == null ? week : this.add((input - week) * 7, 'd');\n    }\n\n    function getSetISOWeek(input) {\n        var week = weekOfYear(this, 1, 4).week;\n        return input == null ? week : this.add((input - week) * 7, 'd');\n    }\n\n    // FORMATTING\n\n    addFormatToken('d', 0, 'do', 'day');\n\n    addFormatToken('dd', 0, 0, function (format) {\n        return this.localeData().weekdaysMin(this, format);\n    });\n\n    addFormatToken('ddd', 0, 0, function (format) {\n        return this.localeData().weekdaysShort(this, format);\n    });\n\n    addFormatToken('dddd', 0, 0, function (format) {\n        return this.localeData().weekdays(this, format);\n    });\n\n    addFormatToken('e', 0, 0, 'weekday');\n    addFormatToken('E', 0, 0, 'isoWeekday');\n\n    // ALIASES\n\n    addUnitAlias('day', 'd');\n    addUnitAlias('weekday', 'e');\n    addUnitAlias('isoWeekday', 'E');\n\n    // PRIORITY\n    addUnitPriority('day', 11);\n    addUnitPriority('weekday', 11);\n    addUnitPriority('isoWeekday', 11);\n\n    // PARSING\n\n    addRegexToken('d', match1to2);\n    addRegexToken('e', match1to2);\n    addRegexToken('E', match1to2);\n    addRegexToken('dd', function (isStrict, locale) {\n        return locale.weekdaysMinRegex(isStrict);\n    });\n    addRegexToken('ddd', function (isStrict, locale) {\n        return locale.weekdaysShortRegex(isStrict);\n    });\n    addRegexToken('dddd', function (isStrict, locale) {\n        return locale.weekdaysRegex(isStrict);\n    });\n\n    addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {\n        var weekday = config._locale.weekdaysParse(input, token, config._strict);\n        // if we didn't get a weekday name, mark the date as invalid\n        if (weekday != null) {\n            week.d = weekday;\n        } else {\n            getParsingFlags(config).invalidWeekday = input;\n        }\n    });\n\n    addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {\n        week[token] = toInt(input);\n    });\n\n    // HELPERS\n\n    function parseWeekday(input, locale) {\n        if (typeof input !== 'string') {\n            return input;\n        }\n\n        if (!isNaN(input)) {\n            return parseInt(input, 10);\n        }\n\n        input = locale.weekdaysParse(input);\n        if (typeof input === 'number') {\n            return input;\n        }\n\n        return null;\n    }\n\n    function parseIsoWeekday(input, locale) {\n        if (typeof input === 'string') {\n            return locale.weekdaysParse(input) % 7 || 7;\n        }\n        return isNaN(input) ? null : input;\n    }\n\n    // LOCALES\n    function shiftWeekdays(ws, n) {\n        return ws.slice(n, 7).concat(ws.slice(0, n));\n    }\n\n    var defaultLocaleWeekdays =\n            'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n        defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n        defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n        defaultWeekdaysRegex = matchWord,\n        defaultWeekdaysShortRegex = matchWord,\n        defaultWeekdaysMinRegex = matchWord;\n\n    function localeWeekdays(m, format) {\n        var weekdays = isArray(this._weekdays)\n            ? this._weekdays\n            : this._weekdays[\n                  m && m !== true && this._weekdays.isFormat.test(format)\n                      ? 'format'\n                      : 'standalone'\n              ];\n        return m === true\n            ? shiftWeekdays(weekdays, this._week.dow)\n            : m\n            ? weekdays[m.day()]\n            : weekdays;\n    }\n\n    function localeWeekdaysShort(m) {\n        return m === true\n            ? shiftWeekdays(this._weekdaysShort, this._week.dow)\n            : m\n            ? this._weekdaysShort[m.day()]\n            : this._weekdaysShort;\n    }\n\n    function localeWeekdaysMin(m) {\n        return m === true\n            ? shiftWeekdays(this._weekdaysMin, this._week.dow)\n            : m\n            ? this._weekdaysMin[m.day()]\n            : this._weekdaysMin;\n    }\n\n    function handleStrictParse$1(weekdayName, format, strict) {\n        var i,\n            ii,\n            mom,\n            llc = weekdayName.toLocaleLowerCase();\n        if (!this._weekdaysParse) {\n            this._weekdaysParse = [];\n            this._shortWeekdaysParse = [];\n            this._minWeekdaysParse = [];\n\n            for (i = 0; i < 7; ++i) {\n                mom = createUTC([2000, 1]).day(i);\n                this._minWeekdaysParse[i] = this.weekdaysMin(\n                    mom,\n                    ''\n                ).toLocaleLowerCase();\n                this._shortWeekdaysParse[i] = this.weekdaysShort(\n                    mom,\n                    ''\n                ).toLocaleLowerCase();\n                this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();\n            }\n        }\n\n        if (strict) {\n            if (format === 'dddd') {\n                ii = indexOf.call(this._weekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            } else if (format === 'ddd') {\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            } else {\n                ii = indexOf.call(this._minWeekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            }\n        } else {\n            if (format === 'dddd') {\n                ii = indexOf.call(this._weekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._minWeekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            } else if (format === 'ddd') {\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._weekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._minWeekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            } else {\n                ii = indexOf.call(this._minWeekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._weekdaysParse, llc);\n                if (ii !== -1) {\n                    return ii;\n                }\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\n                return ii !== -1 ? ii : null;\n            }\n        }\n    }\n\n    function localeWeekdaysParse(weekdayName, format, strict) {\n        var i, mom, regex;\n\n        if (this._weekdaysParseExact) {\n            return handleStrictParse$1.call(this, weekdayName, format, strict);\n        }\n\n        if (!this._weekdaysParse) {\n            this._weekdaysParse = [];\n            this._minWeekdaysParse = [];\n            this._shortWeekdaysParse = [];\n            this._fullWeekdaysParse = [];\n        }\n\n        for (i = 0; i < 7; i++) {\n            // make the regex if we don't have it already\n\n            mom = createUTC([2000, 1]).day(i);\n            if (strict && !this._fullWeekdaysParse[i]) {\n                this._fullWeekdaysParse[i] = new RegExp(\n                    '^' + this.weekdays(mom, '').replace('.', '\\\\.?') + '$',\n                    'i'\n                );\n                this._shortWeekdaysParse[i] = new RegExp(\n                    '^' + this.weekdaysShort(mom, '').replace('.', '\\\\.?') + '$',\n                    'i'\n                );\n                this._minWeekdaysParse[i] = new RegExp(\n                    '^' + this.weekdaysMin(mom, '').replace('.', '\\\\.?') + '$',\n                    'i'\n                );\n            }\n            if (!this._weekdaysParse[i]) {\n                regex =\n                    '^' +\n                    this.weekdays(mom, '') +\n                    '|^' +\n                    this.weekdaysShort(mom, '') +\n                    '|^' +\n                    this.weekdaysMin(mom, '');\n                this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');\n            }\n            // test the regex\n            if (\n                strict &&\n                format === 'dddd' &&\n                this._fullWeekdaysParse[i].test(weekdayName)\n            ) {\n                return i;\n            } else if (\n                strict &&\n                format === 'ddd' &&\n                this._shortWeekdaysParse[i].test(weekdayName)\n            ) {\n                return i;\n            } else if (\n                strict &&\n                format === 'dd' &&\n                this._minWeekdaysParse[i].test(weekdayName)\n            ) {\n                return i;\n            } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {\n                return i;\n            }\n        }\n    }\n\n    // MOMENTS\n\n    function getSetDayOfWeek(input) {\n        if (!this.isValid()) {\n            return input != null ? this : NaN;\n        }\n        var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();\n        if (input != null) {\n            input = parseWeekday(input, this.localeData());\n            return this.add(input - day, 'd');\n        } else {\n            return day;\n        }\n    }\n\n    function getSetLocaleDayOfWeek(input) {\n        if (!this.isValid()) {\n            return input != null ? this : NaN;\n        }\n        var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n        return input == null ? weekday : this.add(input - weekday, 'd');\n    }\n\n    function getSetISODayOfWeek(input) {\n        if (!this.isValid()) {\n            return input != null ? this : NaN;\n        }\n\n        // behaves the same as moment#day except\n        // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n        // as a setter, sunday should belong to the previous week.\n\n        if (input != null) {\n            var weekday = parseIsoWeekday(input, this.localeData());\n            return this.day(this.day() % 7 ? weekday : weekday - 7);\n        } else {\n            return this.day() || 7;\n        }\n    }\n\n    function weekdaysRegex(isStrict) {\n        if (this._weekdaysParseExact) {\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\n                computeWeekdaysParse.call(this);\n            }\n            if (isStrict) {\n                return this._weekdaysStrictRegex;\n            } else {\n                return this._weekdaysRegex;\n            }\n        } else {\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\n                this._weekdaysRegex = defaultWeekdaysRegex;\n            }\n            return this._weekdaysStrictRegex && isStrict\n                ? this._weekdaysStrictRegex\n                : this._weekdaysRegex;\n        }\n    }\n\n    function weekdaysShortRegex(isStrict) {\n        if (this._weekdaysParseExact) {\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\n                computeWeekdaysParse.call(this);\n            }\n            if (isStrict) {\n                return this._weekdaysShortStrictRegex;\n            } else {\n                return this._weekdaysShortRegex;\n            }\n        } else {\n            if (!hasOwnProp(this, '_weekdaysShortRegex')) {\n                this._weekdaysShortRegex = defaultWeekdaysShortRegex;\n            }\n            return this._weekdaysShortStrictRegex && isStrict\n                ? this._weekdaysShortStrictRegex\n                : this._weekdaysShortRegex;\n        }\n    }\n\n    function weekdaysMinRegex(isStrict) {\n        if (this._weekdaysParseExact) {\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\n                computeWeekdaysParse.call(this);\n            }\n            if (isStrict) {\n                return this._weekdaysMinStrictRegex;\n            } else {\n                return this._weekdaysMinRegex;\n            }\n        } else {\n            if (!hasOwnProp(this, '_weekdaysMinRegex')) {\n                this._weekdaysMinRegex = defaultWeekdaysMinRegex;\n            }\n            return this._weekdaysMinStrictRegex && isStrict\n                ? this._weekdaysMinStrictRegex\n                : this._weekdaysMinRegex;\n        }\n    }\n\n    function computeWeekdaysParse() {\n        function cmpLenRev(a, b) {\n            return b.length - a.length;\n        }\n\n        var minPieces = [],\n            shortPieces = [],\n            longPieces = [],\n            mixedPieces = [],\n            i,\n            mom,\n            minp,\n            shortp,\n            longp;\n        for (i = 0; i < 7; i++) {\n            // make the regex if we don't have it already\n            mom = createUTC([2000, 1]).day(i);\n            minp = regexEscape(this.weekdaysMin(mom, ''));\n            shortp = regexEscape(this.weekdaysShort(mom, ''));\n            longp = regexEscape(this.weekdays(mom, ''));\n            minPieces.push(minp);\n            shortPieces.push(shortp);\n            longPieces.push(longp);\n            mixedPieces.push(minp);\n            mixedPieces.push(shortp);\n            mixedPieces.push(longp);\n        }\n        // Sorting makes sure if one weekday (or abbr) is a prefix of another it\n        // will match the longer piece.\n        minPieces.sort(cmpLenRev);\n        shortPieces.sort(cmpLenRev);\n        longPieces.sort(cmpLenRev);\n        mixedPieces.sort(cmpLenRev);\n\n        this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n        this._weekdaysShortRegex = this._weekdaysRegex;\n        this._weekdaysMinRegex = this._weekdaysRegex;\n\n        this._weekdaysStrictRegex = new RegExp(\n            '^(' + longPieces.join('|') + ')',\n            'i'\n        );\n        this._weekdaysShortStrictRegex = new RegExp(\n            '^(' + shortPieces.join('|') + ')',\n            'i'\n        );\n        this._weekdaysMinStrictRegex = new RegExp(\n            '^(' + minPieces.join('|') + ')',\n            'i'\n        );\n    }\n\n    // FORMATTING\n\n    function hFormat() {\n        return this.hours() % 12 || 12;\n    }\n\n    function kFormat() {\n        return this.hours() || 24;\n    }\n\n    addFormatToken('H', ['HH', 2], 0, 'hour');\n    addFormatToken('h', ['hh', 2], 0, hFormat);\n    addFormatToken('k', ['kk', 2], 0, kFormat);\n\n    addFormatToken('hmm', 0, 0, function () {\n        return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n    });\n\n    addFormatToken('hmmss', 0, 0, function () {\n        return (\n            '' +\n            hFormat.apply(this) +\n            zeroFill(this.minutes(), 2) +\n            zeroFill(this.seconds(), 2)\n        );\n    });\n\n    addFormatToken('Hmm', 0, 0, function () {\n        return '' + this.hours() + zeroFill(this.minutes(), 2);\n    });\n\n    addFormatToken('Hmmss', 0, 0, function () {\n        return (\n            '' +\n            this.hours() +\n            zeroFill(this.minutes(), 2) +\n            zeroFill(this.seconds(), 2)\n        );\n    });\n\n    function meridiem(token, lowercase) {\n        addFormatToken(token, 0, 0, function () {\n            return this.localeData().meridiem(\n                this.hours(),\n                this.minutes(),\n                lowercase\n            );\n        });\n    }\n\n    meridiem('a', true);\n    meridiem('A', false);\n\n    // ALIASES\n\n    addUnitAlias('hour', 'h');\n\n    // PRIORITY\n    addUnitPriority('hour', 13);\n\n    // PARSING\n\n    function matchMeridiem(isStrict, locale) {\n        return locale._meridiemParse;\n    }\n\n    addRegexToken('a', matchMeridiem);\n    addRegexToken('A', matchMeridiem);\n    addRegexToken('H', match1to2);\n    addRegexToken('h', match1to2);\n    addRegexToken('k', match1to2);\n    addRegexToken('HH', match1to2, match2);\n    addRegexToken('hh', match1to2, match2);\n    addRegexToken('kk', match1to2, match2);\n\n    addRegexToken('hmm', match3to4);\n    addRegexToken('hmmss', match5to6);\n    addRegexToken('Hmm', match3to4);\n    addRegexToken('Hmmss', match5to6);\n\n    addParseToken(['H', 'HH'], HOUR);\n    addParseToken(['k', 'kk'], function (input, array, config) {\n        var kInput = toInt(input);\n        array[HOUR] = kInput === 24 ? 0 : kInput;\n    });\n    addParseToken(['a', 'A'], function (input, array, config) {\n        config._isPm = config._locale.isPM(input);\n        config._meridiem = input;\n    });\n    addParseToken(['h', 'hh'], function (input, array, config) {\n        array[HOUR] = toInt(input);\n        getParsingFlags(config).bigHour = true;\n    });\n    addParseToken('hmm', function (input, array, config) {\n        var pos = input.length - 2;\n        array[HOUR] = toInt(input.substr(0, pos));\n        array[MINUTE] = toInt(input.substr(pos));\n        getParsingFlags(config).bigHour = true;\n    });\n    addParseToken('hmmss', function (input, array, config) {\n        var pos1 = input.length - 4,\n            pos2 = input.length - 2;\n        array[HOUR] = toInt(input.substr(0, pos1));\n        array[MINUTE] = toInt(input.substr(pos1, 2));\n        array[SECOND] = toInt(input.substr(pos2));\n        getParsingFlags(config).bigHour = true;\n    });\n    addParseToken('Hmm', function (input, array, config) {\n        var pos = input.length - 2;\n        array[HOUR] = toInt(input.substr(0, pos));\n        array[MINUTE] = toInt(input.substr(pos));\n    });\n    addParseToken('Hmmss', function (input, array, config) {\n        var pos1 = input.length - 4,\n            pos2 = input.length - 2;\n        array[HOUR] = toInt(input.substr(0, pos1));\n        array[MINUTE] = toInt(input.substr(pos1, 2));\n        array[SECOND] = toInt(input.substr(pos2));\n    });\n\n    // LOCALES\n\n    function localeIsPM(input) {\n        // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n        // Using charAt should be more compatible.\n        return (input + '').toLowerCase().charAt(0) === 'p';\n    }\n\n    var defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i,\n        // Setting the hour should keep the time, because the user explicitly\n        // specified which hour they want. So trying to maintain the same hour (in\n        // a new timezone) makes sense. Adding/subtracting hours does not follow\n        // this rule.\n        getSetHour = makeGetSet('Hours', true);\n\n    function localeMeridiem(hours, minutes, isLower) {\n        if (hours > 11) {\n            return isLower ? 'pm' : 'PM';\n        } else {\n            return isLower ? 'am' : 'AM';\n        }\n    }\n\n    var baseConfig = {\n        calendar: defaultCalendar,\n        longDateFormat: defaultLongDateFormat,\n        invalidDate: defaultInvalidDate,\n        ordinal: defaultOrdinal,\n        dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,\n        relativeTime: defaultRelativeTime,\n\n        months: defaultLocaleMonths,\n        monthsShort: defaultLocaleMonthsShort,\n\n        week: defaultLocaleWeek,\n\n        weekdays: defaultLocaleWeekdays,\n        weekdaysMin: defaultLocaleWeekdaysMin,\n        weekdaysShort: defaultLocaleWeekdaysShort,\n\n        meridiemParse: defaultLocaleMeridiemParse,\n    };\n\n    // internal storage for locale config files\n    var locales = {},\n        localeFamilies = {},\n        globalLocale;\n\n    function commonPrefix(arr1, arr2) {\n        var i,\n            minl = Math.min(arr1.length, arr2.length);\n        for (i = 0; i < minl; i += 1) {\n            if (arr1[i] !== arr2[i]) {\n                return i;\n            }\n        }\n        return minl;\n    }\n\n    function normalizeLocale(key) {\n        return key ? key.toLowerCase().replace('_', '-') : key;\n    }\n\n    // pick the locale from the array\n    // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n    // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\n    function chooseLocale(names) {\n        var i = 0,\n            j,\n            next,\n            locale,\n            split;\n\n        while (i < names.length) {\n            split = normalizeLocale(names[i]).split('-');\n            j = split.length;\n            next = normalizeLocale(names[i + 1]);\n            next = next ? next.split('-') : null;\n            while (j > 0) {\n                locale = loadLocale(split.slice(0, j).join('-'));\n                if (locale) {\n                    return locale;\n                }\n                if (\n                    next &&\n                    next.length >= j &&\n                    commonPrefix(split, next) >= j - 1\n                ) {\n                    //the next array item is better than a shallower substring of this one\n                    break;\n                }\n                j--;\n            }\n            i++;\n        }\n        return globalLocale;\n    }\n\n    function isLocaleNameSane(name) {\n        // Prevent names that look like filesystem paths, i.e contain '/' or '\\'\n        return name.match('^[^/\\\\\\\\]*$') != null;\n    }\n\n    function loadLocale(name) {\n        var oldLocale = null,\n            aliasedRequire;\n        // TODO: Find a better way to register and load all the locales in Node\n        if (\n            locales[name] === undefined &&\n            \"object\" !== 'undefined' &&\n            module &&\n            module.exports &&\n            isLocaleNameSane(name)\n        ) {\n            try {\n                oldLocale = globalLocale._abbr;\n                aliasedRequire = undefined;\n                __webpack_require__(\"./node_modules/moment/locale sync recursive ^\\\\.\\\\/.*$\")(\"./\" + name);\n                getSetGlobalLocale(oldLocale);\n            } catch (e) {\n                // mark as not found to avoid repeating expensive file require call causing high CPU\n                // when trying to find en-US, en_US, en-us for every format call\n                locales[name] = null; // null means not found\n            }\n        }\n        return locales[name];\n    }\n\n    // This function will load locale and then set the global locale.  If\n    // no arguments are passed in, it will simply return the current global\n    // locale key.\n    function getSetGlobalLocale(key, values) {\n        var data;\n        if (key) {\n            if (isUndefined(values)) {\n                data = getLocale(key);\n            } else {\n                data = defineLocale(key, values);\n            }\n\n            if (data) {\n                // moment.duration._locale = moment._locale = data;\n                globalLocale = data;\n            } else {\n                if (typeof console !== 'undefined' && console.warn) {\n                    //warn user if arguments are passed but the locale could not be set\n                    console.warn(\n                        'Locale ' + key + ' not found. Did you forget to load it?'\n                    );\n                }\n            }\n        }\n\n        return globalLocale._abbr;\n    }\n\n    function defineLocale(name, config) {\n        if (config !== null) {\n            var locale,\n                parentConfig = baseConfig;\n            config.abbr = name;\n            if (locales[name] != null) {\n                deprecateSimple(\n                    'defineLocaleOverride',\n                    'use moment.updateLocale(localeName, config) to change ' +\n                        'an existing locale. moment.defineLocale(localeName, ' +\n                        'config) should only be used for creating a new locale ' +\n                        'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'\n                );\n                parentConfig = locales[name]._config;\n            } else if (config.parentLocale != null) {\n                if (locales[config.parentLocale] != null) {\n                    parentConfig = locales[config.parentLocale]._config;\n                } else {\n                    locale = loadLocale(config.parentLocale);\n                    if (locale != null) {\n                        parentConfig = locale._config;\n                    } else {\n                        if (!localeFamilies[config.parentLocale]) {\n                            localeFamilies[config.parentLocale] = [];\n                        }\n                        localeFamilies[config.parentLocale].push({\n                            name: name,\n                            config: config,\n                        });\n                        return null;\n                    }\n                }\n            }\n            locales[name] = new Locale(mergeConfigs(parentConfig, config));\n\n            if (localeFamilies[name]) {\n                localeFamilies[name].forEach(function (x) {\n                    defineLocale(x.name, x.config);\n                });\n            }\n\n            // backwards compat for now: also set the locale\n            // make sure we set the locale AFTER all child locales have been\n            // created, so we won't end up with the child locale set.\n            getSetGlobalLocale(name);\n\n            return locales[name];\n        } else {\n            // useful for testing\n            delete locales[name];\n            return null;\n        }\n    }\n\n    function updateLocale(name, config) {\n        if (config != null) {\n            var locale,\n                tmpLocale,\n                parentConfig = baseConfig;\n\n            if (locales[name] != null && locales[name].parentLocale != null) {\n                // Update existing child locale in-place to avoid memory-leaks\n                locales[name].set(mergeConfigs(locales[name]._config, config));\n            } else {\n                // MERGE\n                tmpLocale = loadLocale(name);\n                if (tmpLocale != null) {\n                    parentConfig = tmpLocale._config;\n                }\n                config = mergeConfigs(parentConfig, config);\n                if (tmpLocale == null) {\n                    // updateLocale is called for creating a new locale\n                    // Set abbr so it will have a name (getters return\n                    // undefined otherwise).\n                    config.abbr = name;\n                }\n                locale = new Locale(config);\n                locale.parentLocale = locales[name];\n                locales[name] = locale;\n            }\n\n            // backwards compat for now: also set the locale\n            getSetGlobalLocale(name);\n        } else {\n            // pass null for config to unupdate, useful for tests\n            if (locales[name] != null) {\n                if (locales[name].parentLocale != null) {\n                    locales[name] = locales[name].parentLocale;\n                    if (name === getSetGlobalLocale()) {\n                        getSetGlobalLocale(name);\n                    }\n                } else if (locales[name] != null) {\n                    delete locales[name];\n                }\n            }\n        }\n        return locales[name];\n    }\n\n    // returns locale data\n    function getLocale(key) {\n        var locale;\n\n        if (key && key._locale && key._locale._abbr) {\n            key = key._locale._abbr;\n        }\n\n        if (!key) {\n            return globalLocale;\n        }\n\n        if (!isArray(key)) {\n            //short-circuit everything else\n            locale = loadLocale(key);\n            if (locale) {\n                return locale;\n            }\n            key = [key];\n        }\n\n        return chooseLocale(key);\n    }\n\n    function listLocales() {\n        return keys(locales);\n    }\n\n    function checkOverflow(m) {\n        var overflow,\n            a = m._a;\n\n        if (a && getParsingFlags(m).overflow === -2) {\n            overflow =\n                a[MONTH] < 0 || a[MONTH] > 11\n                    ? MONTH\n                    : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])\n                    ? DATE\n                    : a[HOUR] < 0 ||\n                      a[HOUR] > 24 ||\n                      (a[HOUR] === 24 &&\n                          (a[MINUTE] !== 0 ||\n                              a[SECOND] !== 0 ||\n                              a[MILLISECOND] !== 0))\n                    ? HOUR\n                    : a[MINUTE] < 0 || a[MINUTE] > 59\n                    ? MINUTE\n                    : a[SECOND] < 0 || a[SECOND] > 59\n                    ? SECOND\n                    : a[MILLISECOND] < 0 || a[MILLISECOND] > 999\n                    ? MILLISECOND\n                    : -1;\n\n            if (\n                getParsingFlags(m)._overflowDayOfYear &&\n                (overflow < YEAR || overflow > DATE)\n            ) {\n                overflow = DATE;\n            }\n            if (getParsingFlags(m)._overflowWeeks && overflow === -1) {\n                overflow = WEEK;\n            }\n            if (getParsingFlags(m)._overflowWeekday && overflow === -1) {\n                overflow = WEEKDAY;\n            }\n\n            getParsingFlags(m).overflow = overflow;\n        }\n\n        return m;\n    }\n\n    // iso 8601 regex\n    // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\n    var extendedIsoRegex =\n            /^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n        basicIsoRegex =\n            /^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n        tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/,\n        isoDates = [\n            ['YYYYYY-MM-DD', /[+-]\\d{6}-\\d\\d-\\d\\d/],\n            ['YYYY-MM-DD', /\\d{4}-\\d\\d-\\d\\d/],\n            ['GGGG-[W]WW-E', /\\d{4}-W\\d\\d-\\d/],\n            ['GGGG-[W]WW', /\\d{4}-W\\d\\d/, false],\n            ['YYYY-DDD', /\\d{4}-\\d{3}/],\n            ['YYYY-MM', /\\d{4}-\\d\\d/, false],\n            ['YYYYYYMMDD', /[+-]\\d{10}/],\n            ['YYYYMMDD', /\\d{8}/],\n            ['GGGG[W]WWE', /\\d{4}W\\d{3}/],\n            ['GGGG[W]WW', /\\d{4}W\\d{2}/, false],\n            ['YYYYDDD', /\\d{7}/],\n            ['YYYYMM', /\\d{6}/, false],\n            ['YYYY', /\\d{4}/, false],\n        ],\n        // iso time formats and regexes\n        isoTimes = [\n            ['HH:mm:ss.SSSS', /\\d\\d:\\d\\d:\\d\\d\\.\\d+/],\n            ['HH:mm:ss,SSSS', /\\d\\d:\\d\\d:\\d\\d,\\d+/],\n            ['HH:mm:ss', /\\d\\d:\\d\\d:\\d\\d/],\n            ['HH:mm', /\\d\\d:\\d\\d/],\n            ['HHmmss.SSSS', /\\d\\d\\d\\d\\d\\d\\.\\d+/],\n            ['HHmmss,SSSS', /\\d\\d\\d\\d\\d\\d,\\d+/],\n            ['HHmmss', /\\d\\d\\d\\d\\d\\d/],\n            ['HHmm', /\\d\\d\\d\\d/],\n            ['HH', /\\d\\d/],\n        ],\n        aspNetJsonRegex = /^\\/?Date\\((-?\\d+)/i,\n        // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\n        rfc2822 =\n            /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/,\n        obsOffsets = {\n            UT: 0,\n            GMT: 0,\n            EDT: -4 * 60,\n            EST: -5 * 60,\n            CDT: -5 * 60,\n            CST: -6 * 60,\n            MDT: -6 * 60,\n            MST: -7 * 60,\n            PDT: -7 * 60,\n            PST: -8 * 60,\n        };\n\n    // date from iso format\n    function configFromISO(config) {\n        var i,\n            l,\n            string = config._i,\n            match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),\n            allowTime,\n            dateFormat,\n            timeFormat,\n            tzFormat,\n            isoDatesLen = isoDates.length,\n            isoTimesLen = isoTimes.length;\n\n        if (match) {\n            getParsingFlags(config).iso = true;\n            for (i = 0, l = isoDatesLen; i < l; i++) {\n                if (isoDates[i][1].exec(match[1])) {\n                    dateFormat = isoDates[i][0];\n                    allowTime = isoDates[i][2] !== false;\n                    break;\n                }\n            }\n            if (dateFormat == null) {\n                config._isValid = false;\n                return;\n            }\n            if (match[3]) {\n                for (i = 0, l = isoTimesLen; i < l; i++) {\n                    if (isoTimes[i][1].exec(match[3])) {\n                        // match[2] should be 'T' or space\n                        timeFormat = (match[2] || ' ') + isoTimes[i][0];\n                        break;\n                    }\n                }\n                if (timeFormat == null) {\n                    config._isValid = false;\n                    return;\n                }\n            }\n            if (!allowTime && timeFormat != null) {\n                config._isValid = false;\n                return;\n            }\n            if (match[4]) {\n                if (tzRegex.exec(match[4])) {\n                    tzFormat = 'Z';\n                } else {\n                    config._isValid = false;\n                    return;\n                }\n            }\n            config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n            configFromStringAndFormat(config);\n        } else {\n            config._isValid = false;\n        }\n    }\n\n    function extractFromRFC2822Strings(\n        yearStr,\n        monthStr,\n        dayStr,\n        hourStr,\n        minuteStr,\n        secondStr\n    ) {\n        var result = [\n            untruncateYear(yearStr),\n            defaultLocaleMonthsShort.indexOf(monthStr),\n            parseInt(dayStr, 10),\n            parseInt(hourStr, 10),\n            parseInt(minuteStr, 10),\n        ];\n\n        if (secondStr) {\n            result.push(parseInt(secondStr, 10));\n        }\n\n        return result;\n    }\n\n    function untruncateYear(yearStr) {\n        var year = parseInt(yearStr, 10);\n        if (year <= 49) {\n            return 2000 + year;\n        } else if (year <= 999) {\n            return 1900 + year;\n        }\n        return year;\n    }\n\n    function preprocessRFC2822(s) {\n        // Remove comments and folding whitespace and replace multiple-spaces with a single space\n        return s\n            .replace(/\\([^()]*\\)|[\\n\\t]/g, ' ')\n            .replace(/(\\s\\s+)/g, ' ')\n            .replace(/^\\s\\s*/, '')\n            .replace(/\\s\\s*$/, '');\n    }\n\n    function checkWeekday(weekdayStr, parsedInput, config) {\n        if (weekdayStr) {\n            // TODO: Replace the vanilla JS Date object with an independent day-of-week check.\n            var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),\n                weekdayActual = new Date(\n                    parsedInput[0],\n                    parsedInput[1],\n                    parsedInput[2]\n                ).getDay();\n            if (weekdayProvided !== weekdayActual) {\n                getParsingFlags(config).weekdayMismatch = true;\n                config._isValid = false;\n                return false;\n            }\n        }\n        return true;\n    }\n\n    function calculateOffset(obsOffset, militaryOffset, numOffset) {\n        if (obsOffset) {\n            return obsOffsets[obsOffset];\n        } else if (militaryOffset) {\n            // the only allowed military tz is Z\n            return 0;\n        } else {\n            var hm = parseInt(numOffset, 10),\n                m = hm % 100,\n                h = (hm - m) / 100;\n            return h * 60 + m;\n        }\n    }\n\n    // date and time from ref 2822 format\n    function configFromRFC2822(config) {\n        var match = rfc2822.exec(preprocessRFC2822(config._i)),\n            parsedArray;\n        if (match) {\n            parsedArray = extractFromRFC2822Strings(\n                match[4],\n                match[3],\n                match[2],\n                match[5],\n                match[6],\n                match[7]\n            );\n            if (!checkWeekday(match[1], parsedArray, config)) {\n                return;\n            }\n\n            config._a = parsedArray;\n            config._tzm = calculateOffset(match[8], match[9], match[10]);\n\n            config._d = createUTCDate.apply(null, config._a);\n            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n\n            getParsingFlags(config).rfc2822 = true;\n        } else {\n            config._isValid = false;\n        }\n    }\n\n    // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict\n    function configFromString(config) {\n        var matched = aspNetJsonRegex.exec(config._i);\n        if (matched !== null) {\n            config._d = new Date(+matched[1]);\n            return;\n        }\n\n        configFromISO(config);\n        if (config._isValid === false) {\n            delete config._isValid;\n        } else {\n            return;\n        }\n\n        configFromRFC2822(config);\n        if (config._isValid === false) {\n            delete config._isValid;\n        } else {\n            return;\n        }\n\n        if (config._strict) {\n            config._isValid = false;\n        } else {\n            // Final attempt, use Input Fallback\n            hooks.createFromInputFallback(config);\n        }\n    }\n\n    hooks.createFromInputFallback = deprecate(\n        'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +\n            'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +\n            'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',\n        function (config) {\n            config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));\n        }\n    );\n\n    // Pick the first defined of two or three arguments.\n    function defaults(a, b, c) {\n        if (a != null) {\n            return a;\n        }\n        if (b != null) {\n            return b;\n        }\n        return c;\n    }\n\n    function currentDateArray(config) {\n        // hooks is actually the exported moment object\n        var nowValue = new Date(hooks.now());\n        if (config._useUTC) {\n            return [\n                nowValue.getUTCFullYear(),\n                nowValue.getUTCMonth(),\n                nowValue.getUTCDate(),\n            ];\n        }\n        return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];\n    }\n\n    // convert an array to a date.\n    // the array should mirror the parameters below\n    // note: all values past the year are optional and will default to the lowest possible value.\n    // [year, month, day , hour, minute, second, millisecond]\n    function configFromArray(config) {\n        var i,\n            date,\n            input = [],\n            currentDate,\n            expectedWeekday,\n            yearToUse;\n\n        if (config._d) {\n            return;\n        }\n\n        currentDate = currentDateArray(config);\n\n        //compute day of the year from weeks and weekdays\n        if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {\n            dayOfYearFromWeekInfo(config);\n        }\n\n        //if the day of the year is set, figure out what it is\n        if (config._dayOfYear != null) {\n            yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\n\n            if (\n                config._dayOfYear > daysInYear(yearToUse) ||\n                config._dayOfYear === 0\n            ) {\n                getParsingFlags(config)._overflowDayOfYear = true;\n            }\n\n            date = createUTCDate(yearToUse, 0, config._dayOfYear);\n            config._a[MONTH] = date.getUTCMonth();\n            config._a[DATE] = date.getUTCDate();\n        }\n\n        // Default to current date.\n        // * if no year, month, day of month are given, default to today\n        // * if day of month is given, default month and year\n        // * if month is given, default only year\n        // * if year is given, don't default anything\n        for (i = 0; i < 3 && config._a[i] == null; ++i) {\n            config._a[i] = input[i] = currentDate[i];\n        }\n\n        // Zero out whatever was not defaulted, including time\n        for (; i < 7; i++) {\n            config._a[i] = input[i] =\n                config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];\n        }\n\n        // Check for 24:00:00.000\n        if (\n            config._a[HOUR] === 24 &&\n            config._a[MINUTE] === 0 &&\n            config._a[SECOND] === 0 &&\n            config._a[MILLISECOND] === 0\n        ) {\n            config._nextDay = true;\n            config._a[HOUR] = 0;\n        }\n\n        config._d = (config._useUTC ? createUTCDate : createDate).apply(\n            null,\n            input\n        );\n        expectedWeekday = config._useUTC\n            ? config._d.getUTCDay()\n            : config._d.getDay();\n\n        // Apply timezone offset from input. The actual utcOffset can be changed\n        // with parseZone.\n        if (config._tzm != null) {\n            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n        }\n\n        if (config._nextDay) {\n            config._a[HOUR] = 24;\n        }\n\n        // check for mismatching day of week\n        if (\n            config._w &&\n            typeof config._w.d !== 'undefined' &&\n            config._w.d !== expectedWeekday\n        ) {\n            getParsingFlags(config).weekdayMismatch = true;\n        }\n    }\n\n    function dayOfYearFromWeekInfo(config) {\n        var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;\n\n        w = config._w;\n        if (w.GG != null || w.W != null || w.E != null) {\n            dow = 1;\n            doy = 4;\n\n            // TODO: We need to take the current isoWeekYear, but that depends on\n            // how we interpret now (local, utc, fixed offset). So create\n            // a now version of current config (take local/utc/offset flags, and\n            // create now).\n            weekYear = defaults(\n                w.GG,\n                config._a[YEAR],\n                weekOfYear(createLocal(), 1, 4).year\n            );\n            week = defaults(w.W, 1);\n            weekday = defaults(w.E, 1);\n            if (weekday < 1 || weekday > 7) {\n                weekdayOverflow = true;\n            }\n        } else {\n            dow = config._locale._week.dow;\n            doy = config._locale._week.doy;\n\n            curWeek = weekOfYear(createLocal(), dow, doy);\n\n            weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);\n\n            // Default to current week.\n            week = defaults(w.w, curWeek.week);\n\n            if (w.d != null) {\n                // weekday -- low day numbers are considered next week\n                weekday = w.d;\n                if (weekday < 0 || weekday > 6) {\n                    weekdayOverflow = true;\n                }\n            } else if (w.e != null) {\n                // local weekday -- counting starts from beginning of week\n                weekday = w.e + dow;\n                if (w.e < 0 || w.e > 6) {\n                    weekdayOverflow = true;\n                }\n            } else {\n                // default to beginning of week\n                weekday = dow;\n            }\n        }\n        if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {\n            getParsingFlags(config)._overflowWeeks = true;\n        } else if (weekdayOverflow != null) {\n            getParsingFlags(config)._overflowWeekday = true;\n        } else {\n            temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n            config._a[YEAR] = temp.year;\n            config._dayOfYear = temp.dayOfYear;\n        }\n    }\n\n    // constant that refers to the ISO standard\n    hooks.ISO_8601 = function () {};\n\n    // constant that refers to the RFC 2822 form\n    hooks.RFC_2822 = function () {};\n\n    // date from string and format string\n    function configFromStringAndFormat(config) {\n        // TODO: Move this to another part of the creation flow to prevent circular deps\n        if (config._f === hooks.ISO_8601) {\n            configFromISO(config);\n            return;\n        }\n        if (config._f === hooks.RFC_2822) {\n            configFromRFC2822(config);\n            return;\n        }\n        config._a = [];\n        getParsingFlags(config).empty = true;\n\n        // This array is used to make a Date, either with `new Date` or `Date.UTC`\n        var string = '' + config._i,\n            i,\n            parsedInput,\n            tokens,\n            token,\n            skipped,\n            stringLength = string.length,\n            totalParsedInputLength = 0,\n            era,\n            tokenLen;\n\n        tokens =\n            expandFormat(config._f, config._locale).match(formattingTokens) || [];\n        tokenLen = tokens.length;\n        for (i = 0; i < tokenLen; i++) {\n            token = tokens[i];\n            parsedInput = (string.match(getParseRegexForToken(token, config)) ||\n                [])[0];\n            if (parsedInput) {\n                skipped = string.substr(0, string.indexOf(parsedInput));\n                if (skipped.length > 0) {\n                    getParsingFlags(config).unusedInput.push(skipped);\n                }\n                string = string.slice(\n                    string.indexOf(parsedInput) + parsedInput.length\n                );\n                totalParsedInputLength += parsedInput.length;\n            }\n            // don't parse if it's not a known token\n            if (formatTokenFunctions[token]) {\n                if (parsedInput) {\n                    getParsingFlags(config).empty = false;\n                } else {\n                    getParsingFlags(config).unusedTokens.push(token);\n                }\n                addTimeToArrayFromToken(token, parsedInput, config);\n            } else if (config._strict && !parsedInput) {\n                getParsingFlags(config).unusedTokens.push(token);\n            }\n        }\n\n        // add remaining unparsed input length to the string\n        getParsingFlags(config).charsLeftOver =\n            stringLength - totalParsedInputLength;\n        if (string.length > 0) {\n            getParsingFlags(config).unusedInput.push(string);\n        }\n\n        // clear _12h flag if hour is <= 12\n        if (\n            config._a[HOUR] <= 12 &&\n            getParsingFlags(config).bigHour === true &&\n            config._a[HOUR] > 0\n        ) {\n            getParsingFlags(config).bigHour = undefined;\n        }\n\n        getParsingFlags(config).parsedDateParts = config._a.slice(0);\n        getParsingFlags(config).meridiem = config._meridiem;\n        // handle meridiem\n        config._a[HOUR] = meridiemFixWrap(\n            config._locale,\n            config._a[HOUR],\n            config._meridiem\n        );\n\n        // handle era\n        era = getParsingFlags(config).era;\n        if (era !== null) {\n            config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);\n        }\n\n        configFromArray(config);\n        checkOverflow(config);\n    }\n\n    function meridiemFixWrap(locale, hour, meridiem) {\n        var isPm;\n\n        if (meridiem == null) {\n            // nothing to do\n            return hour;\n        }\n        if (locale.meridiemHour != null) {\n            return locale.meridiemHour(hour, meridiem);\n        } else if (locale.isPM != null) {\n            // Fallback\n            isPm = locale.isPM(meridiem);\n            if (isPm && hour < 12) {\n                hour += 12;\n            }\n            if (!isPm && hour === 12) {\n                hour = 0;\n            }\n            return hour;\n        } else {\n            // this is not supposed to happen\n            return hour;\n        }\n    }\n\n    // date from string and array of format strings\n    function configFromStringAndArray(config) {\n        var tempConfig,\n            bestMoment,\n            scoreToBeat,\n            i,\n            currentScore,\n            validFormatFound,\n            bestFormatIsValid = false,\n            configfLen = config._f.length;\n\n        if (configfLen === 0) {\n            getParsingFlags(config).invalidFormat = true;\n            config._d = new Date(NaN);\n            return;\n        }\n\n        for (i = 0; i < configfLen; i++) {\n            currentScore = 0;\n            validFormatFound = false;\n            tempConfig = copyConfig({}, config);\n            if (config._useUTC != null) {\n                tempConfig._useUTC = config._useUTC;\n            }\n            tempConfig._f = config._f[i];\n            configFromStringAndFormat(tempConfig);\n\n            if (isValid(tempConfig)) {\n                validFormatFound = true;\n            }\n\n            // if there is any input that was not parsed add a penalty for that format\n            currentScore += getParsingFlags(tempConfig).charsLeftOver;\n\n            //or tokens\n            currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n\n            getParsingFlags(tempConfig).score = currentScore;\n\n            if (!bestFormatIsValid) {\n                if (\n                    scoreToBeat == null ||\n                    currentScore < scoreToBeat ||\n                    validFormatFound\n                ) {\n                    scoreToBeat = currentScore;\n                    bestMoment = tempConfig;\n                    if (validFormatFound) {\n                        bestFormatIsValid = true;\n                    }\n                }\n            } else {\n                if (currentScore < scoreToBeat) {\n                    scoreToBeat = currentScore;\n                    bestMoment = tempConfig;\n                }\n            }\n        }\n\n        extend(config, bestMoment || tempConfig);\n    }\n\n    function configFromObject(config) {\n        if (config._d) {\n            return;\n        }\n\n        var i = normalizeObjectUnits(config._i),\n            dayOrDate = i.day === undefined ? i.date : i.day;\n        config._a = map(\n            [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],\n            function (obj) {\n                return obj && parseInt(obj, 10);\n            }\n        );\n\n        configFromArray(config);\n    }\n\n    function createFromConfig(config) {\n        var res = new Moment(checkOverflow(prepareConfig(config)));\n        if (res._nextDay) {\n            // Adding is smart enough around DST\n            res.add(1, 'd');\n            res._nextDay = undefined;\n        }\n\n        return res;\n    }\n\n    function prepareConfig(config) {\n        var input = config._i,\n            format = config._f;\n\n        config._locale = config._locale || getLocale(config._l);\n\n        if (input === null || (format === undefined && input === '')) {\n            return createInvalid({ nullInput: true });\n        }\n\n        if (typeof input === 'string') {\n            config._i = input = config._locale.preparse(input);\n        }\n\n        if (isMoment(input)) {\n            return new Moment(checkOverflow(input));\n        } else if (isDate(input)) {\n            config._d = input;\n        } else if (isArray(format)) {\n            configFromStringAndArray(config);\n        } else if (format) {\n            configFromStringAndFormat(config);\n        } else {\n            configFromInput(config);\n        }\n\n        if (!isValid(config)) {\n            config._d = null;\n        }\n\n        return config;\n    }\n\n    function configFromInput(config) {\n        var input = config._i;\n        if (isUndefined(input)) {\n            config._d = new Date(hooks.now());\n        } else if (isDate(input)) {\n            config._d = new Date(input.valueOf());\n        } else if (typeof input === 'string') {\n            configFromString(config);\n        } else if (isArray(input)) {\n            config._a = map(input.slice(0), function (obj) {\n                return parseInt(obj, 10);\n            });\n            configFromArray(config);\n        } else if (isObject(input)) {\n            configFromObject(config);\n        } else if (isNumber(input)) {\n            // from milliseconds\n            config._d = new Date(input);\n        } else {\n            hooks.createFromInputFallback(config);\n        }\n    }\n\n    function createLocalOrUTC(input, format, locale, strict, isUTC) {\n        var c = {};\n\n        if (format === true || format === false) {\n            strict = format;\n            format = undefined;\n        }\n\n        if (locale === true || locale === false) {\n            strict = locale;\n            locale = undefined;\n        }\n\n        if (\n            (isObject(input) && isObjectEmpty(input)) ||\n            (isArray(input) && input.length === 0)\n        ) {\n            input = undefined;\n        }\n        // object construction must be done this way.\n        // https://github.com/moment/moment/issues/1423\n        c._isAMomentObject = true;\n        c._useUTC = c._isUTC = isUTC;\n        c._l = locale;\n        c._i = input;\n        c._f = format;\n        c._strict = strict;\n\n        return createFromConfig(c);\n    }\n\n    function createLocal(input, format, locale, strict) {\n        return createLocalOrUTC(input, format, locale, strict, false);\n    }\n\n    var prototypeMin = deprecate(\n            'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',\n            function () {\n                var other = createLocal.apply(null, arguments);\n                if (this.isValid() && other.isValid()) {\n                    return other < this ? this : other;\n                } else {\n                    return createInvalid();\n                }\n            }\n        ),\n        prototypeMax = deprecate(\n            'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',\n            function () {\n                var other = createLocal.apply(null, arguments);\n                if (this.isValid() && other.isValid()) {\n                    return other > this ? this : other;\n                } else {\n                    return createInvalid();\n                }\n            }\n        );\n\n    // Pick a moment m from moments so that m[fn](other) is true for all\n    // other. This relies on the function fn to be transitive.\n    //\n    // moments should either be an array of moment objects or an array, whose\n    // first element is an array of moment objects.\n    function pickBy(fn, moments) {\n        var res, i;\n        if (moments.length === 1 && isArray(moments[0])) {\n            moments = moments[0];\n        }\n        if (!moments.length) {\n            return createLocal();\n        }\n        res = moments[0];\n        for (i = 1; i < moments.length; ++i) {\n            if (!moments[i].isValid() || moments[i][fn](res)) {\n                res = moments[i];\n            }\n        }\n        return res;\n    }\n\n    // TODO: Use [].sort instead?\n    function min() {\n        var args = [].slice.call(arguments, 0);\n\n        return pickBy('isBefore', args);\n    }\n\n    function max() {\n        var args = [].slice.call(arguments, 0);\n\n        return pickBy('isAfter', args);\n    }\n\n    var now = function () {\n        return Date.now ? Date.now() : +new Date();\n    };\n\n    var ordering = [\n        'year',\n        'quarter',\n        'month',\n        'week',\n        'day',\n        'hour',\n        'minute',\n        'second',\n        'millisecond',\n    ];\n\n    function isDurationValid(m) {\n        var key,\n            unitHasDecimal = false,\n            i,\n            orderLen = ordering.length;\n        for (key in m) {\n            if (\n                hasOwnProp(m, key) &&\n                !(\n                    indexOf.call(ordering, key) !== -1 &&\n                    (m[key] == null || !isNaN(m[key]))\n                )\n            ) {\n                return false;\n            }\n        }\n\n        for (i = 0; i < orderLen; ++i) {\n            if (m[ordering[i]]) {\n                if (unitHasDecimal) {\n                    return false; // only allow non-integers for smallest unit\n                }\n                if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {\n                    unitHasDecimal = true;\n                }\n            }\n        }\n\n        return true;\n    }\n\n    function isValid$1() {\n        return this._isValid;\n    }\n\n    function createInvalid$1() {\n        return createDuration(NaN);\n    }\n\n    function Duration(duration) {\n        var normalizedInput = normalizeObjectUnits(duration),\n            years = normalizedInput.year || 0,\n            quarters = normalizedInput.quarter || 0,\n            months = normalizedInput.month || 0,\n            weeks = normalizedInput.week || normalizedInput.isoWeek || 0,\n            days = normalizedInput.day || 0,\n            hours = normalizedInput.hour || 0,\n            minutes = normalizedInput.minute || 0,\n            seconds = normalizedInput.second || 0,\n            milliseconds = normalizedInput.millisecond || 0;\n\n        this._isValid = isDurationValid(normalizedInput);\n\n        // representation for dateAddRemove\n        this._milliseconds =\n            +milliseconds +\n            seconds * 1e3 + // 1000\n            minutes * 6e4 + // 1000 * 60\n            hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n        // Because of dateAddRemove treats 24 hours as different from a\n        // day when working around DST, we need to store them separately\n        this._days = +days + weeks * 7;\n        // It is impossible to translate months into days without knowing\n        // which months you are are talking about, so we have to store\n        // it separately.\n        this._months = +months + quarters * 3 + years * 12;\n\n        this._data = {};\n\n        this._locale = getLocale();\n\n        this._bubble();\n    }\n\n    function isDuration(obj) {\n        return obj instanceof Duration;\n    }\n\n    function absRound(number) {\n        if (number < 0) {\n            return Math.round(-1 * number) * -1;\n        } else {\n            return Math.round(number);\n        }\n    }\n\n    // compare two arrays, return the number of differences\n    function compareArrays(array1, array2, dontConvert) {\n        var len = Math.min(array1.length, array2.length),\n            lengthDiff = Math.abs(array1.length - array2.length),\n            diffs = 0,\n            i;\n        for (i = 0; i < len; i++) {\n            if (\n                (dontConvert && array1[i] !== array2[i]) ||\n                (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))\n            ) {\n                diffs++;\n            }\n        }\n        return diffs + lengthDiff;\n    }\n\n    // FORMATTING\n\n    function offset(token, separator) {\n        addFormatToken(token, 0, 0, function () {\n            var offset = this.utcOffset(),\n                sign = '+';\n            if (offset < 0) {\n                offset = -offset;\n                sign = '-';\n            }\n            return (\n                sign +\n                zeroFill(~~(offset / 60), 2) +\n                separator +\n                zeroFill(~~offset % 60, 2)\n            );\n        });\n    }\n\n    offset('Z', ':');\n    offset('ZZ', '');\n\n    // PARSING\n\n    addRegexToken('Z', matchShortOffset);\n    addRegexToken('ZZ', matchShortOffset);\n    addParseToken(['Z', 'ZZ'], function (input, array, config) {\n        config._useUTC = true;\n        config._tzm = offsetFromString(matchShortOffset, input);\n    });\n\n    // HELPERS\n\n    // timezone chunker\n    // '+10:00' > ['10',  '00']\n    // '-1530'  > ['-15', '30']\n    var chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n\n    function offsetFromString(matcher, string) {\n        var matches = (string || '').match(matcher),\n            chunk,\n            parts,\n            minutes;\n\n        if (matches === null) {\n            return null;\n        }\n\n        chunk = matches[matches.length - 1] || [];\n        parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];\n        minutes = +(parts[1] * 60) + toInt(parts[2]);\n\n        return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;\n    }\n\n    // Return a moment from input, that is local/utc/zone equivalent to model.\n    function cloneWithOffset(input, model) {\n        var res, diff;\n        if (model._isUTC) {\n            res = model.clone();\n            diff =\n                (isMoment(input) || isDate(input)\n                    ? input.valueOf()\n                    : createLocal(input).valueOf()) - res.valueOf();\n            // Use low-level api, because this fn is low-level api.\n            res._d.setTime(res._d.valueOf() + diff);\n            hooks.updateOffset(res, false);\n            return res;\n        } else {\n            return createLocal(input).local();\n        }\n    }\n\n    function getDateOffset(m) {\n        // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n        // https://github.com/moment/moment/pull/1871\n        return -Math.round(m._d.getTimezoneOffset());\n    }\n\n    // HOOKS\n\n    // This function will be called whenever a moment is mutated.\n    // It is intended to keep the offset in sync with the timezone.\n    hooks.updateOffset = function () {};\n\n    // MOMENTS\n\n    // keepLocalTime = true means only change the timezone, without\n    // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n    // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n    // +0200, so we adjust the time as needed, to be valid.\n    //\n    // Keeping the time actually adds/subtracts (one hour)\n    // from the actual represented time. That is why we call updateOffset\n    // a second time. In case it wants us to change the offset again\n    // _changeInProgress == true case, then we have to adjust, because\n    // there is no such time in the given timezone.\n    function getSetOffset(input, keepLocalTime, keepMinutes) {\n        var offset = this._offset || 0,\n            localAdjust;\n        if (!this.isValid()) {\n            return input != null ? this : NaN;\n        }\n        if (input != null) {\n            if (typeof input === 'string') {\n                input = offsetFromString(matchShortOffset, input);\n                if (input === null) {\n                    return this;\n                }\n            } else if (Math.abs(input) < 16 && !keepMinutes) {\n                input = input * 60;\n            }\n            if (!this._isUTC && keepLocalTime) {\n                localAdjust = getDateOffset(this);\n            }\n            this._offset = input;\n            this._isUTC = true;\n            if (localAdjust != null) {\n                this.add(localAdjust, 'm');\n            }\n            if (offset !== input) {\n                if (!keepLocalTime || this._changeInProgress) {\n                    addSubtract(\n                        this,\n                        createDuration(input - offset, 'm'),\n                        1,\n                        false\n                    );\n                } else if (!this._changeInProgress) {\n                    this._changeInProgress = true;\n                    hooks.updateOffset(this, true);\n                    this._changeInProgress = null;\n                }\n            }\n            return this;\n        } else {\n            return this._isUTC ? offset : getDateOffset(this);\n        }\n    }\n\n    function getSetZone(input, keepLocalTime) {\n        if (input != null) {\n            if (typeof input !== 'string') {\n                input = -input;\n            }\n\n            this.utcOffset(input, keepLocalTime);\n\n            return this;\n        } else {\n            return -this.utcOffset();\n        }\n    }\n\n    function setOffsetToUTC(keepLocalTime) {\n        return this.utcOffset(0, keepLocalTime);\n    }\n\n    function setOffsetToLocal(keepLocalTime) {\n        if (this._isUTC) {\n            this.utcOffset(0, keepLocalTime);\n            this._isUTC = false;\n\n            if (keepLocalTime) {\n                this.subtract(getDateOffset(this), 'm');\n            }\n        }\n        return this;\n    }\n\n    function setOffsetToParsedOffset() {\n        if (this._tzm != null) {\n            this.utcOffset(this._tzm, false, true);\n        } else if (typeof this._i === 'string') {\n            var tZone = offsetFromString(matchOffset, this._i);\n            if (tZone != null) {\n                this.utcOffset(tZone);\n            } else {\n                this.utcOffset(0, true);\n            }\n        }\n        return this;\n    }\n\n    function hasAlignedHourOffset(input) {\n        if (!this.isValid()) {\n            return false;\n        }\n        input = input ? createLocal(input).utcOffset() : 0;\n\n        return (this.utcOffset() - input) % 60 === 0;\n    }\n\n    function isDaylightSavingTime() {\n        return (\n            this.utcOffset() > this.clone().month(0).utcOffset() ||\n            this.utcOffset() > this.clone().month(5).utcOffset()\n        );\n    }\n\n    function isDaylightSavingTimeShifted() {\n        if (!isUndefined(this._isDSTShifted)) {\n            return this._isDSTShifted;\n        }\n\n        var c = {},\n            other;\n\n        copyConfig(c, this);\n        c = prepareConfig(c);\n\n        if (c._a) {\n            other = c._isUTC ? createUTC(c._a) : createLocal(c._a);\n            this._isDSTShifted =\n                this.isValid() && compareArrays(c._a, other.toArray()) > 0;\n        } else {\n            this._isDSTShifted = false;\n        }\n\n        return this._isDSTShifted;\n    }\n\n    function isLocal() {\n        return this.isValid() ? !this._isUTC : false;\n    }\n\n    function isUtcOffset() {\n        return this.isValid() ? this._isUTC : false;\n    }\n\n    function isUtc() {\n        return this.isValid() ? this._isUTC && this._offset === 0 : false;\n    }\n\n    // ASP.NET json date format regex\n    var aspNetRegex = /^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,\n        // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n        // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n        // and further modified to allow for strings containing both week and day\n        isoRegex =\n            /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n\n    function createDuration(input, key) {\n        var duration = input,\n            // matching against regexp is expensive, do it on demand\n            match = null,\n            sign,\n            ret,\n            diffRes;\n\n        if (isDuration(input)) {\n            duration = {\n                ms: input._milliseconds,\n                d: input._days,\n                M: input._months,\n            };\n        } else if (isNumber(input) || !isNaN(+input)) {\n            duration = {};\n            if (key) {\n                duration[key] = +input;\n            } else {\n                duration.milliseconds = +input;\n            }\n        } else if ((match = aspNetRegex.exec(input))) {\n            sign = match[1] === '-' ? -1 : 1;\n            duration = {\n                y: 0,\n                d: toInt(match[DATE]) * sign,\n                h: toInt(match[HOUR]) * sign,\n                m: toInt(match[MINUTE]) * sign,\n                s: toInt(match[SECOND]) * sign,\n                ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match\n            };\n        } else if ((match = isoRegex.exec(input))) {\n            sign = match[1] === '-' ? -1 : 1;\n            duration = {\n                y: parseIso(match[2], sign),\n                M: parseIso(match[3], sign),\n                w: parseIso(match[4], sign),\n                d: parseIso(match[5], sign),\n                h: parseIso(match[6], sign),\n                m: parseIso(match[7], sign),\n                s: parseIso(match[8], sign),\n            };\n        } else if (duration == null) {\n            // checks for null or undefined\n            duration = {};\n        } else if (\n            typeof duration === 'object' &&\n            ('from' in duration || 'to' in duration)\n        ) {\n            diffRes = momentsDifference(\n                createLocal(duration.from),\n                createLocal(duration.to)\n            );\n\n            duration = {};\n            duration.ms = diffRes.milliseconds;\n            duration.M = diffRes.months;\n        }\n\n        ret = new Duration(duration);\n\n        if (isDuration(input) && hasOwnProp(input, '_locale')) {\n            ret._locale = input._locale;\n        }\n\n        if (isDuration(input) && hasOwnProp(input, '_isValid')) {\n            ret._isValid = input._isValid;\n        }\n\n        return ret;\n    }\n\n    createDuration.fn = Duration.prototype;\n    createDuration.invalid = createInvalid$1;\n\n    function parseIso(inp, sign) {\n        // We'd normally use ~~inp for this, but unfortunately it also\n        // converts floats to ints.\n        // inp may be undefined, so careful calling replace on it.\n        var res = inp && parseFloat(inp.replace(',', '.'));\n        // apply sign while we're at it\n        return (isNaN(res) ? 0 : res) * sign;\n    }\n\n    function positiveMomentsDifference(base, other) {\n        var res = {};\n\n        res.months =\n            other.month() - base.month() + (other.year() - base.year()) * 12;\n        if (base.clone().add(res.months, 'M').isAfter(other)) {\n            --res.months;\n        }\n\n        res.milliseconds = +other - +base.clone().add(res.months, 'M');\n\n        return res;\n    }\n\n    function momentsDifference(base, other) {\n        var res;\n        if (!(base.isValid() && other.isValid())) {\n            return { milliseconds: 0, months: 0 };\n        }\n\n        other = cloneWithOffset(other, base);\n        if (base.isBefore(other)) {\n            res = positiveMomentsDifference(base, other);\n        } else {\n            res = positiveMomentsDifference(other, base);\n            res.milliseconds = -res.milliseconds;\n            res.months = -res.months;\n        }\n\n        return res;\n    }\n\n    // TODO: remove 'name' arg after deprecation is removed\n    function createAdder(direction, name) {\n        return function (val, period) {\n            var dur, tmp;\n            //invert the arguments, but complain about it\n            if (period !== null && !isNaN(+period)) {\n                deprecateSimple(\n                    name,\n                    'moment().' +\n                        name +\n                        '(period, number) is deprecated. Please use moment().' +\n                        name +\n                        '(number, period). ' +\n                        'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'\n                );\n                tmp = val;\n                val = period;\n                period = tmp;\n            }\n\n            dur = createDuration(val, period);\n            addSubtract(this, dur, direction);\n            return this;\n        };\n    }\n\n    function addSubtract(mom, duration, isAdding, updateOffset) {\n        var milliseconds = duration._milliseconds,\n            days = absRound(duration._days),\n            months = absRound(duration._months);\n\n        if (!mom.isValid()) {\n            // No op\n            return;\n        }\n\n        updateOffset = updateOffset == null ? true : updateOffset;\n\n        if (months) {\n            setMonth(mom, get(mom, 'Month') + months * isAdding);\n        }\n        if (days) {\n            set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);\n        }\n        if (milliseconds) {\n            mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\n        }\n        if (updateOffset) {\n            hooks.updateOffset(mom, days || months);\n        }\n    }\n\n    var add = createAdder(1, 'add'),\n        subtract = createAdder(-1, 'subtract');\n\n    function isString(input) {\n        return typeof input === 'string' || input instanceof String;\n    }\n\n    // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined\n    function isMomentInput(input) {\n        return (\n            isMoment(input) ||\n            isDate(input) ||\n            isString(input) ||\n            isNumber(input) ||\n            isNumberOrStringArray(input) ||\n            isMomentInputObject(input) ||\n            input === null ||\n            input === undefined\n        );\n    }\n\n    function isMomentInputObject(input) {\n        var objectTest = isObject(input) && !isObjectEmpty(input),\n            propertyTest = false,\n            properties = [\n                'years',\n                'year',\n                'y',\n                'months',\n                'month',\n                'M',\n                'days',\n                'day',\n                'd',\n                'dates',\n                'date',\n                'D',\n                'hours',\n                'hour',\n                'h',\n                'minutes',\n                'minute',\n                'm',\n                'seconds',\n                'second',\n                's',\n                'milliseconds',\n                'millisecond',\n                'ms',\n            ],\n            i,\n            property,\n            propertyLen = properties.length;\n\n        for (i = 0; i < propertyLen; i += 1) {\n            property = properties[i];\n            propertyTest = propertyTest || hasOwnProp(input, property);\n        }\n\n        return objectTest && propertyTest;\n    }\n\n    function isNumberOrStringArray(input) {\n        var arrayTest = isArray(input),\n            dataTypeTest = false;\n        if (arrayTest) {\n            dataTypeTest =\n                input.filter(function (item) {\n                    return !isNumber(item) && isString(input);\n                }).length === 0;\n        }\n        return arrayTest && dataTypeTest;\n    }\n\n    function isCalendarSpec(input) {\n        var objectTest = isObject(input) && !isObjectEmpty(input),\n            propertyTest = false,\n            properties = [\n                'sameDay',\n                'nextDay',\n                'lastDay',\n                'nextWeek',\n                'lastWeek',\n                'sameElse',\n            ],\n            i,\n            property;\n\n        for (i = 0; i < properties.length; i += 1) {\n            property = properties[i];\n            propertyTest = propertyTest || hasOwnProp(input, property);\n        }\n\n        return objectTest && propertyTest;\n    }\n\n    function getCalendarFormat(myMoment, now) {\n        var diff = myMoment.diff(now, 'days', true);\n        return diff < -6\n            ? 'sameElse'\n            : diff < -1\n            ? 'lastWeek'\n            : diff < 0\n            ? 'lastDay'\n            : diff < 1\n            ? 'sameDay'\n            : diff < 2\n            ? 'nextDay'\n            : diff < 7\n            ? 'nextWeek'\n            : 'sameElse';\n    }\n\n    function calendar$1(time, formats) {\n        // Support for single parameter, formats only overload to the calendar function\n        if (arguments.length === 1) {\n            if (!arguments[0]) {\n                time = undefined;\n                formats = undefined;\n            } else if (isMomentInput(arguments[0])) {\n                time = arguments[0];\n                formats = undefined;\n            } else if (isCalendarSpec(arguments[0])) {\n                formats = arguments[0];\n                time = undefined;\n            }\n        }\n        // We want to compare the start of today, vs this.\n        // Getting start-of-today depends on whether we're local/utc/offset or not.\n        var now = time || createLocal(),\n            sod = cloneWithOffset(now, this).startOf('day'),\n            format = hooks.calendarFormat(this, sod) || 'sameElse',\n            output =\n                formats &&\n                (isFunction(formats[format])\n                    ? formats[format].call(this, now)\n                    : formats[format]);\n\n        return this.format(\n            output || this.localeData().calendar(format, this, createLocal(now))\n        );\n    }\n\n    function clone() {\n        return new Moment(this);\n    }\n\n    function isAfter(input, units) {\n        var localInput = isMoment(input) ? input : createLocal(input);\n        if (!(this.isValid() && localInput.isValid())) {\n            return false;\n        }\n        units = normalizeUnits(units) || 'millisecond';\n        if (units === 'millisecond') {\n            return this.valueOf() > localInput.valueOf();\n        } else {\n            return localInput.valueOf() < this.clone().startOf(units).valueOf();\n        }\n    }\n\n    function isBefore(input, units) {\n        var localInput = isMoment(input) ? input : createLocal(input);\n        if (!(this.isValid() && localInput.isValid())) {\n            return false;\n        }\n        units = normalizeUnits(units) || 'millisecond';\n        if (units === 'millisecond') {\n            return this.valueOf() < localInput.valueOf();\n        } else {\n            return this.clone().endOf(units).valueOf() < localInput.valueOf();\n        }\n    }\n\n    function isBetween(from, to, units, inclusivity) {\n        var localFrom = isMoment(from) ? from : createLocal(from),\n            localTo = isMoment(to) ? to : createLocal(to);\n        if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {\n            return false;\n        }\n        inclusivity = inclusivity || '()';\n        return (\n            (inclusivity[0] === '('\n                ? this.isAfter(localFrom, units)\n                : !this.isBefore(localFrom, units)) &&\n            (inclusivity[1] === ')'\n                ? this.isBefore(localTo, units)\n                : !this.isAfter(localTo, units))\n        );\n    }\n\n    function isSame(input, units) {\n        var localInput = isMoment(input) ? input : createLocal(input),\n            inputMs;\n        if (!(this.isValid() && localInput.isValid())) {\n            return false;\n        }\n        units = normalizeUnits(units) || 'millisecond';\n        if (units === 'millisecond') {\n            return this.valueOf() === localInput.valueOf();\n        } else {\n            inputMs = localInput.valueOf();\n            return (\n                this.clone().startOf(units).valueOf() <= inputMs &&\n                inputMs <= this.clone().endOf(units).valueOf()\n            );\n        }\n    }\n\n    function isSameOrAfter(input, units) {\n        return this.isSame(input, units) || this.isAfter(input, units);\n    }\n\n    function isSameOrBefore(input, units) {\n        return this.isSame(input, units) || this.isBefore(input, units);\n    }\n\n    function diff(input, units, asFloat) {\n        var that, zoneDelta, output;\n\n        if (!this.isValid()) {\n            return NaN;\n        }\n\n        that = cloneWithOffset(input, this);\n\n        if (!that.isValid()) {\n            return NaN;\n        }\n\n        zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n\n        units = normalizeUnits(units);\n\n        switch (units) {\n            case 'year':\n                output = monthDiff(this, that) / 12;\n                break;\n            case 'month':\n                output = monthDiff(this, that);\n                break;\n            case 'quarter':\n                output = monthDiff(this, that) / 3;\n                break;\n            case 'second':\n                output = (this - that) / 1e3;\n                break; // 1000\n            case 'minute':\n                output = (this - that) / 6e4;\n                break; // 1000 * 60\n            case 'hour':\n                output = (this - that) / 36e5;\n                break; // 1000 * 60 * 60\n            case 'day':\n                output = (this - that - zoneDelta) / 864e5;\n                break; // 1000 * 60 * 60 * 24, negate dst\n            case 'week':\n                output = (this - that - zoneDelta) / 6048e5;\n                break; // 1000 * 60 * 60 * 24 * 7, negate dst\n            default:\n                output = this - that;\n        }\n\n        return asFloat ? output : absFloor(output);\n    }\n\n    function monthDiff(a, b) {\n        if (a.date() < b.date()) {\n            // end-of-month calculations work correct when the start month has more\n            // days than the end month.\n            return -monthDiff(b, a);\n        }\n        // difference in months\n        var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),\n            // b is in (anchor - 1 month, anchor + 1 month)\n            anchor = a.clone().add(wholeMonthDiff, 'months'),\n            anchor2,\n            adjust;\n\n        if (b - anchor < 0) {\n            anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');\n            // linear across the month\n            adjust = (b - anchor) / (anchor - anchor2);\n        } else {\n            anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');\n            // linear across the month\n            adjust = (b - anchor) / (anchor2 - anchor);\n        }\n\n        //check for negative zero, return zero if negative zero\n        return -(wholeMonthDiff + adjust) || 0;\n    }\n\n    hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';\n    hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';\n\n    function toString() {\n        return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');\n    }\n\n    function toISOString(keepOffset) {\n        if (!this.isValid()) {\n            return null;\n        }\n        var utc = keepOffset !== true,\n            m = utc ? this.clone().utc() : this;\n        if (m.year() < 0 || m.year() > 9999) {\n            return formatMoment(\n                m,\n                utc\n                    ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'\n                    : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'\n            );\n        }\n        if (isFunction(Date.prototype.toISOString)) {\n            // native implementation is ~50x faster, use it when we can\n            if (utc) {\n                return this.toDate().toISOString();\n            } else {\n                return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)\n                    .toISOString()\n                    .replace('Z', formatMoment(m, 'Z'));\n            }\n        }\n        return formatMoment(\n            m,\n            utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'\n        );\n    }\n\n    /**\n     * Return a human readable representation of a moment that can\n     * also be evaluated to get a new moment which is the same\n     *\n     * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\n     */\n    function inspect() {\n        if (!this.isValid()) {\n            return 'moment.invalid(/* ' + this._i + ' */)';\n        }\n        var func = 'moment',\n            zone = '',\n            prefix,\n            year,\n            datetime,\n            suffix;\n        if (!this.isLocal()) {\n            func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';\n            zone = 'Z';\n        }\n        prefix = '[' + func + '(\"]';\n        year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';\n        datetime = '-MM-DD[T]HH:mm:ss.SSS';\n        suffix = zone + '[\")]';\n\n        return this.format(prefix + year + datetime + suffix);\n    }\n\n    function format(inputString) {\n        if (!inputString) {\n            inputString = this.isUtc()\n                ? hooks.defaultFormatUtc\n                : hooks.defaultFormat;\n        }\n        var output = formatMoment(this, inputString);\n        return this.localeData().postformat(output);\n    }\n\n    function from(time, withoutSuffix) {\n        if (\n            this.isValid() &&\n            ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n        ) {\n            return createDuration({ to: this, from: time })\n                .locale(this.locale())\n                .humanize(!withoutSuffix);\n        } else {\n            return this.localeData().invalidDate();\n        }\n    }\n\n    function fromNow(withoutSuffix) {\n        return this.from(createLocal(), withoutSuffix);\n    }\n\n    function to(time, withoutSuffix) {\n        if (\n            this.isValid() &&\n            ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n        ) {\n            return createDuration({ from: this, to: time })\n                .locale(this.locale())\n                .humanize(!withoutSuffix);\n        } else {\n            return this.localeData().invalidDate();\n        }\n    }\n\n    function toNow(withoutSuffix) {\n        return this.to(createLocal(), withoutSuffix);\n    }\n\n    // If passed a locale key, it will set the locale for this\n    // instance.  Otherwise, it will return the locale configuration\n    // variables for this instance.\n    function locale(key) {\n        var newLocaleData;\n\n        if (key === undefined) {\n            return this._locale._abbr;\n        } else {\n            newLocaleData = getLocale(key);\n            if (newLocaleData != null) {\n                this._locale = newLocaleData;\n            }\n            return this;\n        }\n    }\n\n    var lang = deprecate(\n        'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',\n        function (key) {\n            if (key === undefined) {\n                return this.localeData();\n            } else {\n                return this.locale(key);\n            }\n        }\n    );\n\n    function localeData() {\n        return this._locale;\n    }\n\n    var MS_PER_SECOND = 1000,\n        MS_PER_MINUTE = 60 * MS_PER_SECOND,\n        MS_PER_HOUR = 60 * MS_PER_MINUTE,\n        MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;\n\n    // actual modulo - handles negative numbers (for dates before 1970):\n    function mod$1(dividend, divisor) {\n        return ((dividend % divisor) + divisor) % divisor;\n    }\n\n    function localStartOfDate(y, m, d) {\n        // the date constructor remaps years 0-99 to 1900-1999\n        if (y < 100 && y >= 0) {\n            // preserve leap years using a full 400 year cycle, then reset\n            return new Date(y + 400, m, d) - MS_PER_400_YEARS;\n        } else {\n            return new Date(y, m, d).valueOf();\n        }\n    }\n\n    function utcStartOfDate(y, m, d) {\n        // Date.UTC remaps years 0-99 to 1900-1999\n        if (y < 100 && y >= 0) {\n            // preserve leap years using a full 400 year cycle, then reset\n            return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;\n        } else {\n            return Date.UTC(y, m, d);\n        }\n    }\n\n    function startOf(units) {\n        var time, startOfDate;\n        units = normalizeUnits(units);\n        if (units === undefined || units === 'millisecond' || !this.isValid()) {\n            return this;\n        }\n\n        startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n        switch (units) {\n            case 'year':\n                time = startOfDate(this.year(), 0, 1);\n                break;\n            case 'quarter':\n                time = startOfDate(\n                    this.year(),\n                    this.month() - (this.month() % 3),\n                    1\n                );\n                break;\n            case 'month':\n                time = startOfDate(this.year(), this.month(), 1);\n                break;\n            case 'week':\n                time = startOfDate(\n                    this.year(),\n                    this.month(),\n                    this.date() - this.weekday()\n                );\n                break;\n            case 'isoWeek':\n                time = startOfDate(\n                    this.year(),\n                    this.month(),\n                    this.date() - (this.isoWeekday() - 1)\n                );\n                break;\n            case 'day':\n            case 'date':\n                time = startOfDate(this.year(), this.month(), this.date());\n                break;\n            case 'hour':\n                time = this._d.valueOf();\n                time -= mod$1(\n                    time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n                    MS_PER_HOUR\n                );\n                break;\n            case 'minute':\n                time = this._d.valueOf();\n                time -= mod$1(time, MS_PER_MINUTE);\n                break;\n            case 'second':\n                time = this._d.valueOf();\n                time -= mod$1(time, MS_PER_SECOND);\n                break;\n        }\n\n        this._d.setTime(time);\n        hooks.updateOffset(this, true);\n        return this;\n    }\n\n    function endOf(units) {\n        var time, startOfDate;\n        units = normalizeUnits(units);\n        if (units === undefined || units === 'millisecond' || !this.isValid()) {\n            return this;\n        }\n\n        startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n        switch (units) {\n            case 'year':\n                time = startOfDate(this.year() + 1, 0, 1) - 1;\n                break;\n            case 'quarter':\n                time =\n                    startOfDate(\n                        this.year(),\n                        this.month() - (this.month() % 3) + 3,\n                        1\n                    ) - 1;\n                break;\n            case 'month':\n                time = startOfDate(this.year(), this.month() + 1, 1) - 1;\n                break;\n            case 'week':\n                time =\n                    startOfDate(\n                        this.year(),\n                        this.month(),\n                        this.date() - this.weekday() + 7\n                    ) - 1;\n                break;\n            case 'isoWeek':\n                time =\n                    startOfDate(\n                        this.year(),\n                        this.month(),\n                        this.date() - (this.isoWeekday() - 1) + 7\n                    ) - 1;\n                break;\n            case 'day':\n            case 'date':\n                time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;\n                break;\n            case 'hour':\n                time = this._d.valueOf();\n                time +=\n                    MS_PER_HOUR -\n                    mod$1(\n                        time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n                        MS_PER_HOUR\n                    ) -\n                    1;\n                break;\n            case 'minute':\n                time = this._d.valueOf();\n                time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;\n                break;\n            case 'second':\n                time = this._d.valueOf();\n                time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;\n                break;\n        }\n\n        this._d.setTime(time);\n        hooks.updateOffset(this, true);\n        return this;\n    }\n\n    function valueOf() {\n        return this._d.valueOf() - (this._offset || 0) * 60000;\n    }\n\n    function unix() {\n        return Math.floor(this.valueOf() / 1000);\n    }\n\n    function toDate() {\n        return new Date(this.valueOf());\n    }\n\n    function toArray() {\n        var m = this;\n        return [\n            m.year(),\n            m.month(),\n            m.date(),\n            m.hour(),\n            m.minute(),\n            m.second(),\n            m.millisecond(),\n        ];\n    }\n\n    function toObject() {\n        var m = this;\n        return {\n            years: m.year(),\n            months: m.month(),\n            date: m.date(),\n            hours: m.hours(),\n            minutes: m.minutes(),\n            seconds: m.seconds(),\n            milliseconds: m.milliseconds(),\n        };\n    }\n\n    function toJSON() {\n        // new Date(NaN).toJSON() === null\n        return this.isValid() ? this.toISOString() : null;\n    }\n\n    function isValid$2() {\n        return isValid(this);\n    }\n\n    function parsingFlags() {\n        return extend({}, getParsingFlags(this));\n    }\n\n    function invalidAt() {\n        return getParsingFlags(this).overflow;\n    }\n\n    function creationData() {\n        return {\n            input: this._i,\n            format: this._f,\n            locale: this._locale,\n            isUTC: this._isUTC,\n            strict: this._strict,\n        };\n    }\n\n    addFormatToken('N', 0, 0, 'eraAbbr');\n    addFormatToken('NN', 0, 0, 'eraAbbr');\n    addFormatToken('NNN', 0, 0, 'eraAbbr');\n    addFormatToken('NNNN', 0, 0, 'eraName');\n    addFormatToken('NNNNN', 0, 0, 'eraNarrow');\n\n    addFormatToken('y', ['y', 1], 'yo', 'eraYear');\n    addFormatToken('y', ['yy', 2], 0, 'eraYear');\n    addFormatToken('y', ['yyy', 3], 0, 'eraYear');\n    addFormatToken('y', ['yyyy', 4], 0, 'eraYear');\n\n    addRegexToken('N', matchEraAbbr);\n    addRegexToken('NN', matchEraAbbr);\n    addRegexToken('NNN', matchEraAbbr);\n    addRegexToken('NNNN', matchEraName);\n    addRegexToken('NNNNN', matchEraNarrow);\n\n    addParseToken(\n        ['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],\n        function (input, array, config, token) {\n            var era = config._locale.erasParse(input, token, config._strict);\n            if (era) {\n                getParsingFlags(config).era = era;\n            } else {\n                getParsingFlags(config).invalidEra = input;\n            }\n        }\n    );\n\n    addRegexToken('y', matchUnsigned);\n    addRegexToken('yy', matchUnsigned);\n    addRegexToken('yyy', matchUnsigned);\n    addRegexToken('yyyy', matchUnsigned);\n    addRegexToken('yo', matchEraYearOrdinal);\n\n    addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);\n    addParseToken(['yo'], function (input, array, config, token) {\n        var match;\n        if (config._locale._eraYearOrdinalRegex) {\n            match = input.match(config._locale._eraYearOrdinalRegex);\n        }\n\n        if (config._locale.eraYearOrdinalParse) {\n            array[YEAR] = config._locale.eraYearOrdinalParse(input, match);\n        } else {\n            array[YEAR] = parseInt(input, 10);\n        }\n    });\n\n    function localeEras(m, format) {\n        var i,\n            l,\n            date,\n            eras = this._eras || getLocale('en')._eras;\n        for (i = 0, l = eras.length; i < l; ++i) {\n            switch (typeof eras[i].since) {\n                case 'string':\n                    // truncate time\n                    date = hooks(eras[i].since).startOf('day');\n                    eras[i].since = date.valueOf();\n                    break;\n            }\n\n            switch (typeof eras[i].until) {\n                case 'undefined':\n                    eras[i].until = +Infinity;\n                    break;\n                case 'string':\n                    // truncate time\n                    date = hooks(eras[i].until).startOf('day').valueOf();\n                    eras[i].until = date.valueOf();\n                    break;\n            }\n        }\n        return eras;\n    }\n\n    function localeErasParse(eraName, format, strict) {\n        var i,\n            l,\n            eras = this.eras(),\n            name,\n            abbr,\n            narrow;\n        eraName = eraName.toUpperCase();\n\n        for (i = 0, l = eras.length; i < l; ++i) {\n            name = eras[i].name.toUpperCase();\n            abbr = eras[i].abbr.toUpperCase();\n            narrow = eras[i].narrow.toUpperCase();\n\n            if (strict) {\n                switch (format) {\n                    case 'N':\n                    case 'NN':\n                    case 'NNN':\n                        if (abbr === eraName) {\n                            return eras[i];\n                        }\n                        break;\n\n                    case 'NNNN':\n                        if (name === eraName) {\n                            return eras[i];\n                        }\n                        break;\n\n                    case 'NNNNN':\n                        if (narrow === eraName) {\n                            return eras[i];\n                        }\n                        break;\n                }\n            } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {\n                return eras[i];\n            }\n        }\n    }\n\n    function localeErasConvertYear(era, year) {\n        var dir = era.since <= era.until ? +1 : -1;\n        if (year === undefined) {\n            return hooks(era.since).year();\n        } else {\n            return hooks(era.since).year() + (year - era.offset) * dir;\n        }\n    }\n\n    function getEraName() {\n        var i,\n            l,\n            val,\n            eras = this.localeData().eras();\n        for (i = 0, l = eras.length; i < l; ++i) {\n            // truncate time\n            val = this.clone().startOf('day').valueOf();\n\n            if (eras[i].since <= val && val <= eras[i].until) {\n                return eras[i].name;\n            }\n            if (eras[i].until <= val && val <= eras[i].since) {\n                return eras[i].name;\n            }\n        }\n\n        return '';\n    }\n\n    function getEraNarrow() {\n        var i,\n            l,\n            val,\n            eras = this.localeData().eras();\n        for (i = 0, l = eras.length; i < l; ++i) {\n            // truncate time\n            val = this.clone().startOf('day').valueOf();\n\n            if (eras[i].since <= val && val <= eras[i].until) {\n                return eras[i].narrow;\n            }\n            if (eras[i].until <= val && val <= eras[i].since) {\n                return eras[i].narrow;\n            }\n        }\n\n        return '';\n    }\n\n    function getEraAbbr() {\n        var i,\n            l,\n            val,\n            eras = this.localeData().eras();\n        for (i = 0, l = eras.length; i < l; ++i) {\n            // truncate time\n            val = this.clone().startOf('day').valueOf();\n\n            if (eras[i].since <= val && val <= eras[i].until) {\n                return eras[i].abbr;\n            }\n            if (eras[i].until <= val && val <= eras[i].since) {\n                return eras[i].abbr;\n            }\n        }\n\n        return '';\n    }\n\n    function getEraYear() {\n        var i,\n            l,\n            dir,\n            val,\n            eras = this.localeData().eras();\n        for (i = 0, l = eras.length; i < l; ++i) {\n            dir = eras[i].since <= eras[i].until ? +1 : -1;\n\n            // truncate time\n            val = this.clone().startOf('day').valueOf();\n\n            if (\n                (eras[i].since <= val && val <= eras[i].until) ||\n                (eras[i].until <= val && val <= eras[i].since)\n            ) {\n                return (\n                    (this.year() - hooks(eras[i].since).year()) * dir +\n                    eras[i].offset\n                );\n            }\n        }\n\n        return this.year();\n    }\n\n    function erasNameRegex(isStrict) {\n        if (!hasOwnProp(this, '_erasNameRegex')) {\n            computeErasParse.call(this);\n        }\n        return isStrict ? this._erasNameRegex : this._erasRegex;\n    }\n\n    function erasAbbrRegex(isStrict) {\n        if (!hasOwnProp(this, '_erasAbbrRegex')) {\n            computeErasParse.call(this);\n        }\n        return isStrict ? this._erasAbbrRegex : this._erasRegex;\n    }\n\n    function erasNarrowRegex(isStrict) {\n        if (!hasOwnProp(this, '_erasNarrowRegex')) {\n            computeErasParse.call(this);\n        }\n        return isStrict ? this._erasNarrowRegex : this._erasRegex;\n    }\n\n    function matchEraAbbr(isStrict, locale) {\n        return locale.erasAbbrRegex(isStrict);\n    }\n\n    function matchEraName(isStrict, locale) {\n        return locale.erasNameRegex(isStrict);\n    }\n\n    function matchEraNarrow(isStrict, locale) {\n        return locale.erasNarrowRegex(isStrict);\n    }\n\n    function matchEraYearOrdinal(isStrict, locale) {\n        return locale._eraYearOrdinalRegex || matchUnsigned;\n    }\n\n    function computeErasParse() {\n        var abbrPieces = [],\n            namePieces = [],\n            narrowPieces = [],\n            mixedPieces = [],\n            i,\n            l,\n            eras = this.eras();\n\n        for (i = 0, l = eras.length; i < l; ++i) {\n            namePieces.push(regexEscape(eras[i].name));\n            abbrPieces.push(regexEscape(eras[i].abbr));\n            narrowPieces.push(regexEscape(eras[i].narrow));\n\n            mixedPieces.push(regexEscape(eras[i].name));\n            mixedPieces.push(regexEscape(eras[i].abbr));\n            mixedPieces.push(regexEscape(eras[i].narrow));\n        }\n\n        this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n        this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');\n        this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');\n        this._erasNarrowRegex = new RegExp(\n            '^(' + narrowPieces.join('|') + ')',\n            'i'\n        );\n    }\n\n    // FORMATTING\n\n    addFormatToken(0, ['gg', 2], 0, function () {\n        return this.weekYear() % 100;\n    });\n\n    addFormatToken(0, ['GG', 2], 0, function () {\n        return this.isoWeekYear() % 100;\n    });\n\n    function addWeekYearFormatToken(token, getter) {\n        addFormatToken(0, [token, token.length], 0, getter);\n    }\n\n    addWeekYearFormatToken('gggg', 'weekYear');\n    addWeekYearFormatToken('ggggg', 'weekYear');\n    addWeekYearFormatToken('GGGG', 'isoWeekYear');\n    addWeekYearFormatToken('GGGGG', 'isoWeekYear');\n\n    // ALIASES\n\n    addUnitAlias('weekYear', 'gg');\n    addUnitAlias('isoWeekYear', 'GG');\n\n    // PRIORITY\n\n    addUnitPriority('weekYear', 1);\n    addUnitPriority('isoWeekYear', 1);\n\n    // PARSING\n\n    addRegexToken('G', matchSigned);\n    addRegexToken('g', matchSigned);\n    addRegexToken('GG', match1to2, match2);\n    addRegexToken('gg', match1to2, match2);\n    addRegexToken('GGGG', match1to4, match4);\n    addRegexToken('gggg', match1to4, match4);\n    addRegexToken('GGGGG', match1to6, match6);\n    addRegexToken('ggggg', match1to6, match6);\n\n    addWeekParseToken(\n        ['gggg', 'ggggg', 'GGGG', 'GGGGG'],\n        function (input, week, config, token) {\n            week[token.substr(0, 2)] = toInt(input);\n        }\n    );\n\n    addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {\n        week[token] = hooks.parseTwoDigitYear(input);\n    });\n\n    // MOMENTS\n\n    function getSetWeekYear(input) {\n        return getSetWeekYearHelper.call(\n            this,\n            input,\n            this.week(),\n            this.weekday(),\n            this.localeData()._week.dow,\n            this.localeData()._week.doy\n        );\n    }\n\n    function getSetISOWeekYear(input) {\n        return getSetWeekYearHelper.call(\n            this,\n            input,\n            this.isoWeek(),\n            this.isoWeekday(),\n            1,\n            4\n        );\n    }\n\n    function getISOWeeksInYear() {\n        return weeksInYear(this.year(), 1, 4);\n    }\n\n    function getISOWeeksInISOWeekYear() {\n        return weeksInYear(this.isoWeekYear(), 1, 4);\n    }\n\n    function getWeeksInYear() {\n        var weekInfo = this.localeData()._week;\n        return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n    }\n\n    function getWeeksInWeekYear() {\n        var weekInfo = this.localeData()._week;\n        return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);\n    }\n\n    function getSetWeekYearHelper(input, week, weekday, dow, doy) {\n        var weeksTarget;\n        if (input == null) {\n            return weekOfYear(this, dow, doy).year;\n        } else {\n            weeksTarget = weeksInYear(input, dow, doy);\n            if (week > weeksTarget) {\n                week = weeksTarget;\n            }\n            return setWeekAll.call(this, input, week, weekday, dow, doy);\n        }\n    }\n\n    function setWeekAll(weekYear, week, weekday, dow, doy) {\n        var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),\n            date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n\n        this.year(date.getUTCFullYear());\n        this.month(date.getUTCMonth());\n        this.date(date.getUTCDate());\n        return this;\n    }\n\n    // FORMATTING\n\n    addFormatToken('Q', 0, 'Qo', 'quarter');\n\n    // ALIASES\n\n    addUnitAlias('quarter', 'Q');\n\n    // PRIORITY\n\n    addUnitPriority('quarter', 7);\n\n    // PARSING\n\n    addRegexToken('Q', match1);\n    addParseToken('Q', function (input, array) {\n        array[MONTH] = (toInt(input) - 1) * 3;\n    });\n\n    // MOMENTS\n\n    function getSetQuarter(input) {\n        return input == null\n            ? Math.ceil((this.month() + 1) / 3)\n            : this.month((input - 1) * 3 + (this.month() % 3));\n    }\n\n    // FORMATTING\n\n    addFormatToken('D', ['DD', 2], 'Do', 'date');\n\n    // ALIASES\n\n    addUnitAlias('date', 'D');\n\n    // PRIORITY\n    addUnitPriority('date', 9);\n\n    // PARSING\n\n    addRegexToken('D', match1to2);\n    addRegexToken('DD', match1to2, match2);\n    addRegexToken('Do', function (isStrict, locale) {\n        // TODO: Remove \"ordinalParse\" fallback in next major release.\n        return isStrict\n            ? locale._dayOfMonthOrdinalParse || locale._ordinalParse\n            : locale._dayOfMonthOrdinalParseLenient;\n    });\n\n    addParseToken(['D', 'DD'], DATE);\n    addParseToken('Do', function (input, array) {\n        array[DATE] = toInt(input.match(match1to2)[0]);\n    });\n\n    // MOMENTS\n\n    var getSetDayOfMonth = makeGetSet('Date', true);\n\n    // FORMATTING\n\n    addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');\n\n    // ALIASES\n\n    addUnitAlias('dayOfYear', 'DDD');\n\n    // PRIORITY\n    addUnitPriority('dayOfYear', 4);\n\n    // PARSING\n\n    addRegexToken('DDD', match1to3);\n    addRegexToken('DDDD', match3);\n    addParseToken(['DDD', 'DDDD'], function (input, array, config) {\n        config._dayOfYear = toInt(input);\n    });\n\n    // HELPERS\n\n    // MOMENTS\n\n    function getSetDayOfYear(input) {\n        var dayOfYear =\n            Math.round(\n                (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5\n            ) + 1;\n        return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');\n    }\n\n    // FORMATTING\n\n    addFormatToken('m', ['mm', 2], 0, 'minute');\n\n    // ALIASES\n\n    addUnitAlias('minute', 'm');\n\n    // PRIORITY\n\n    addUnitPriority('minute', 14);\n\n    // PARSING\n\n    addRegexToken('m', match1to2);\n    addRegexToken('mm', match1to2, match2);\n    addParseToken(['m', 'mm'], MINUTE);\n\n    // MOMENTS\n\n    var getSetMinute = makeGetSet('Minutes', false);\n\n    // FORMATTING\n\n    addFormatToken('s', ['ss', 2], 0, 'second');\n\n    // ALIASES\n\n    addUnitAlias('second', 's');\n\n    // PRIORITY\n\n    addUnitPriority('second', 15);\n\n    // PARSING\n\n    addRegexToken('s', match1to2);\n    addRegexToken('ss', match1to2, match2);\n    addParseToken(['s', 'ss'], SECOND);\n\n    // MOMENTS\n\n    var getSetSecond = makeGetSet('Seconds', false);\n\n    // FORMATTING\n\n    addFormatToken('S', 0, 0, function () {\n        return ~~(this.millisecond() / 100);\n    });\n\n    addFormatToken(0, ['SS', 2], 0, function () {\n        return ~~(this.millisecond() / 10);\n    });\n\n    addFormatToken(0, ['SSS', 3], 0, 'millisecond');\n    addFormatToken(0, ['SSSS', 4], 0, function () {\n        return this.millisecond() * 10;\n    });\n    addFormatToken(0, ['SSSSS', 5], 0, function () {\n        return this.millisecond() * 100;\n    });\n    addFormatToken(0, ['SSSSSS', 6], 0, function () {\n        return this.millisecond() * 1000;\n    });\n    addFormatToken(0, ['SSSSSSS', 7], 0, function () {\n        return this.millisecond() * 10000;\n    });\n    addFormatToken(0, ['SSSSSSSS', 8], 0, function () {\n        return this.millisecond() * 100000;\n    });\n    addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {\n        return this.millisecond() * 1000000;\n    });\n\n    // ALIASES\n\n    addUnitAlias('millisecond', 'ms');\n\n    // PRIORITY\n\n    addUnitPriority('millisecond', 16);\n\n    // PARSING\n\n    addRegexToken('S', match1to3, match1);\n    addRegexToken('SS', match1to3, match2);\n    addRegexToken('SSS', match1to3, match3);\n\n    var token, getSetMillisecond;\n    for (token = 'SSSS'; token.length <= 9; token += 'S') {\n        addRegexToken(token, matchUnsigned);\n    }\n\n    function parseMs(input, array) {\n        array[MILLISECOND] = toInt(('0.' + input) * 1000);\n    }\n\n    for (token = 'S'; token.length <= 9; token += 'S') {\n        addParseToken(token, parseMs);\n    }\n\n    getSetMillisecond = makeGetSet('Milliseconds', false);\n\n    // FORMATTING\n\n    addFormatToken('z', 0, 0, 'zoneAbbr');\n    addFormatToken('zz', 0, 0, 'zoneName');\n\n    // MOMENTS\n\n    function getZoneAbbr() {\n        return this._isUTC ? 'UTC' : '';\n    }\n\n    function getZoneName() {\n        return this._isUTC ? 'Coordinated Universal Time' : '';\n    }\n\n    var proto = Moment.prototype;\n\n    proto.add = add;\n    proto.calendar = calendar$1;\n    proto.clone = clone;\n    proto.diff = diff;\n    proto.endOf = endOf;\n    proto.format = format;\n    proto.from = from;\n    proto.fromNow = fromNow;\n    proto.to = to;\n    proto.toNow = toNow;\n    proto.get = stringGet;\n    proto.invalidAt = invalidAt;\n    proto.isAfter = isAfter;\n    proto.isBefore = isBefore;\n    proto.isBetween = isBetween;\n    proto.isSame = isSame;\n    proto.isSameOrAfter = isSameOrAfter;\n    proto.isSameOrBefore = isSameOrBefore;\n    proto.isValid = isValid$2;\n    proto.lang = lang;\n    proto.locale = locale;\n    proto.localeData = localeData;\n    proto.max = prototypeMax;\n    proto.min = prototypeMin;\n    proto.parsingFlags = parsingFlags;\n    proto.set = stringSet;\n    proto.startOf = startOf;\n    proto.subtract = subtract;\n    proto.toArray = toArray;\n    proto.toObject = toObject;\n    proto.toDate = toDate;\n    proto.toISOString = toISOString;\n    proto.inspect = inspect;\n    if (typeof Symbol !== 'undefined' && Symbol.for != null) {\n        proto[Symbol.for('nodejs.util.inspect.custom')] = function () {\n            return 'Moment<' + this.format() + '>';\n        };\n    }\n    proto.toJSON = toJSON;\n    proto.toString = toString;\n    proto.unix = unix;\n    proto.valueOf = valueOf;\n    proto.creationData = creationData;\n    proto.eraName = getEraName;\n    proto.eraNarrow = getEraNarrow;\n    proto.eraAbbr = getEraAbbr;\n    proto.eraYear = getEraYear;\n    proto.year = getSetYear;\n    proto.isLeapYear = getIsLeapYear;\n    proto.weekYear = getSetWeekYear;\n    proto.isoWeekYear = getSetISOWeekYear;\n    proto.quarter = proto.quarters = getSetQuarter;\n    proto.month = getSetMonth;\n    proto.daysInMonth = getDaysInMonth;\n    proto.week = proto.weeks = getSetWeek;\n    proto.isoWeek = proto.isoWeeks = getSetISOWeek;\n    proto.weeksInYear = getWeeksInYear;\n    proto.weeksInWeekYear = getWeeksInWeekYear;\n    proto.isoWeeksInYear = getISOWeeksInYear;\n    proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;\n    proto.date = getSetDayOfMonth;\n    proto.day = proto.days = getSetDayOfWeek;\n    proto.weekday = getSetLocaleDayOfWeek;\n    proto.isoWeekday = getSetISODayOfWeek;\n    proto.dayOfYear = getSetDayOfYear;\n    proto.hour = proto.hours = getSetHour;\n    proto.minute = proto.minutes = getSetMinute;\n    proto.second = proto.seconds = getSetSecond;\n    proto.millisecond = proto.milliseconds = getSetMillisecond;\n    proto.utcOffset = getSetOffset;\n    proto.utc = setOffsetToUTC;\n    proto.local = setOffsetToLocal;\n    proto.parseZone = setOffsetToParsedOffset;\n    proto.hasAlignedHourOffset = hasAlignedHourOffset;\n    proto.isDST = isDaylightSavingTime;\n    proto.isLocal = isLocal;\n    proto.isUtcOffset = isUtcOffset;\n    proto.isUtc = isUtc;\n    proto.isUTC = isUtc;\n    proto.zoneAbbr = getZoneAbbr;\n    proto.zoneName = getZoneName;\n    proto.dates = deprecate(\n        'dates accessor is deprecated. Use date instead.',\n        getSetDayOfMonth\n    );\n    proto.months = deprecate(\n        'months accessor is deprecated. Use month instead',\n        getSetMonth\n    );\n    proto.years = deprecate(\n        'years accessor is deprecated. Use year instead',\n        getSetYear\n    );\n    proto.zone = deprecate(\n        'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',\n        getSetZone\n    );\n    proto.isDSTShifted = deprecate(\n        'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',\n        isDaylightSavingTimeShifted\n    );\n\n    function createUnix(input) {\n        return createLocal(input * 1000);\n    }\n\n    function createInZone() {\n        return createLocal.apply(null, arguments).parseZone();\n    }\n\n    function preParsePostFormat(string) {\n        return string;\n    }\n\n    var proto$1 = Locale.prototype;\n\n    proto$1.calendar = calendar;\n    proto$1.longDateFormat = longDateFormat;\n    proto$1.invalidDate = invalidDate;\n    proto$1.ordinal = ordinal;\n    proto$1.preparse = preParsePostFormat;\n    proto$1.postformat = preParsePostFormat;\n    proto$1.relativeTime = relativeTime;\n    proto$1.pastFuture = pastFuture;\n    proto$1.set = set;\n    proto$1.eras = localeEras;\n    proto$1.erasParse = localeErasParse;\n    proto$1.erasConvertYear = localeErasConvertYear;\n    proto$1.erasAbbrRegex = erasAbbrRegex;\n    proto$1.erasNameRegex = erasNameRegex;\n    proto$1.erasNarrowRegex = erasNarrowRegex;\n\n    proto$1.months = localeMonths;\n    proto$1.monthsShort = localeMonthsShort;\n    proto$1.monthsParse = localeMonthsParse;\n    proto$1.monthsRegex = monthsRegex;\n    proto$1.monthsShortRegex = monthsShortRegex;\n    proto$1.week = localeWeek;\n    proto$1.firstDayOfYear = localeFirstDayOfYear;\n    proto$1.firstDayOfWeek = localeFirstDayOfWeek;\n\n    proto$1.weekdays = localeWeekdays;\n    proto$1.weekdaysMin = localeWeekdaysMin;\n    proto$1.weekdaysShort = localeWeekdaysShort;\n    proto$1.weekdaysParse = localeWeekdaysParse;\n\n    proto$1.weekdaysRegex = weekdaysRegex;\n    proto$1.weekdaysShortRegex = weekdaysShortRegex;\n    proto$1.weekdaysMinRegex = weekdaysMinRegex;\n\n    proto$1.isPM = localeIsPM;\n    proto$1.meridiem = localeMeridiem;\n\n    function get$1(format, index, field, setter) {\n        var locale = getLocale(),\n            utc = createUTC().set(setter, index);\n        return locale[field](utc, format);\n    }\n\n    function listMonthsImpl(format, index, field) {\n        if (isNumber(format)) {\n            index = format;\n            format = undefined;\n        }\n\n        format = format || '';\n\n        if (index != null) {\n            return get$1(format, index, field, 'month');\n        }\n\n        var i,\n            out = [];\n        for (i = 0; i < 12; i++) {\n            out[i] = get$1(format, i, field, 'month');\n        }\n        return out;\n    }\n\n    // ()\n    // (5)\n    // (fmt, 5)\n    // (fmt)\n    // (true)\n    // (true, 5)\n    // (true, fmt, 5)\n    // (true, fmt)\n    function listWeekdaysImpl(localeSorted, format, index, field) {\n        if (typeof localeSorted === 'boolean') {\n            if (isNumber(format)) {\n                index = format;\n                format = undefined;\n            }\n\n            format = format || '';\n        } else {\n            format = localeSorted;\n            index = format;\n            localeSorted = false;\n\n            if (isNumber(format)) {\n                index = format;\n                format = undefined;\n            }\n\n            format = format || '';\n        }\n\n        var locale = getLocale(),\n            shift = localeSorted ? locale._week.dow : 0,\n            i,\n            out = [];\n\n        if (index != null) {\n            return get$1(format, (index + shift) % 7, field, 'day');\n        }\n\n        for (i = 0; i < 7; i++) {\n            out[i] = get$1(format, (i + shift) % 7, field, 'day');\n        }\n        return out;\n    }\n\n    function listMonths(format, index) {\n        return listMonthsImpl(format, index, 'months');\n    }\n\n    function listMonthsShort(format, index) {\n        return listMonthsImpl(format, index, 'monthsShort');\n    }\n\n    function listWeekdays(localeSorted, format, index) {\n        return listWeekdaysImpl(localeSorted, format, index, 'weekdays');\n    }\n\n    function listWeekdaysShort(localeSorted, format, index) {\n        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');\n    }\n\n    function listWeekdaysMin(localeSorted, format, index) {\n        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');\n    }\n\n    getSetGlobalLocale('en', {\n        eras: [\n            {\n                since: '0001-01-01',\n                until: +Infinity,\n                offset: 1,\n                name: 'Anno Domini',\n                narrow: 'AD',\n                abbr: 'AD',\n            },\n            {\n                since: '0000-12-31',\n                until: -Infinity,\n                offset: 1,\n                name: 'Before Christ',\n                narrow: 'BC',\n                abbr: 'BC',\n            },\n        ],\n        dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n        ordinal: function (number) {\n            var b = number % 10,\n                output =\n                    toInt((number % 100) / 10) === 1\n                        ? 'th'\n                        : b === 1\n                        ? 'st'\n                        : b === 2\n                        ? 'nd'\n                        : b === 3\n                        ? 'rd'\n                        : 'th';\n            return number + output;\n        },\n    });\n\n    // Side effect imports\n\n    hooks.lang = deprecate(\n        'moment.lang is deprecated. Use moment.locale instead.',\n        getSetGlobalLocale\n    );\n    hooks.langData = deprecate(\n        'moment.langData is deprecated. Use moment.localeData instead.',\n        getLocale\n    );\n\n    var mathAbs = Math.abs;\n\n    function abs() {\n        var data = this._data;\n\n        this._milliseconds = mathAbs(this._milliseconds);\n        this._days = mathAbs(this._days);\n        this._months = mathAbs(this._months);\n\n        data.milliseconds = mathAbs(data.milliseconds);\n        data.seconds = mathAbs(data.seconds);\n        data.minutes = mathAbs(data.minutes);\n        data.hours = mathAbs(data.hours);\n        data.months = mathAbs(data.months);\n        data.years = mathAbs(data.years);\n\n        return this;\n    }\n\n    function addSubtract$1(duration, input, value, direction) {\n        var other = createDuration(input, value);\n\n        duration._milliseconds += direction * other._milliseconds;\n        duration._days += direction * other._days;\n        duration._months += direction * other._months;\n\n        return duration._bubble();\n    }\n\n    // supports only 2.0-style add(1, 's') or add(duration)\n    function add$1(input, value) {\n        return addSubtract$1(this, input, value, 1);\n    }\n\n    // supports only 2.0-style subtract(1, 's') or subtract(duration)\n    function subtract$1(input, value) {\n        return addSubtract$1(this, input, value, -1);\n    }\n\n    function absCeil(number) {\n        if (number < 0) {\n            return Math.floor(number);\n        } else {\n            return Math.ceil(number);\n        }\n    }\n\n    function bubble() {\n        var milliseconds = this._milliseconds,\n            days = this._days,\n            months = this._months,\n            data = this._data,\n            seconds,\n            minutes,\n            hours,\n            years,\n            monthsFromDays;\n\n        // if we have a mix of positive and negative values, bubble down first\n        // check: https://github.com/moment/moment/issues/2166\n        if (\n            !(\n                (milliseconds >= 0 && days >= 0 && months >= 0) ||\n                (milliseconds <= 0 && days <= 0 && months <= 0)\n            )\n        ) {\n            milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n            days = 0;\n            months = 0;\n        }\n\n        // The following code bubbles up values, see the tests for\n        // examples of what that means.\n        data.milliseconds = milliseconds % 1000;\n\n        seconds = absFloor(milliseconds / 1000);\n        data.seconds = seconds % 60;\n\n        minutes = absFloor(seconds / 60);\n        data.minutes = minutes % 60;\n\n        hours = absFloor(minutes / 60);\n        data.hours = hours % 24;\n\n        days += absFloor(hours / 24);\n\n        // convert days to months\n        monthsFromDays = absFloor(daysToMonths(days));\n        months += monthsFromDays;\n        days -= absCeil(monthsToDays(monthsFromDays));\n\n        // 12 months -> 1 year\n        years = absFloor(months / 12);\n        months %= 12;\n\n        data.days = days;\n        data.months = months;\n        data.years = years;\n\n        return this;\n    }\n\n    function daysToMonths(days) {\n        // 400 years have 146097 days (taking into account leap year rules)\n        // 400 years have 12 months === 4800\n        return (days * 4800) / 146097;\n    }\n\n    function monthsToDays(months) {\n        // the reverse of daysToMonths\n        return (months * 146097) / 4800;\n    }\n\n    function as(units) {\n        if (!this.isValid()) {\n            return NaN;\n        }\n        var days,\n            months,\n            milliseconds = this._milliseconds;\n\n        units = normalizeUnits(units);\n\n        if (units === 'month' || units === 'quarter' || units === 'year') {\n            days = this._days + milliseconds / 864e5;\n            months = this._months + daysToMonths(days);\n            switch (units) {\n                case 'month':\n                    return months;\n                case 'quarter':\n                    return months / 3;\n                case 'year':\n                    return months / 12;\n            }\n        } else {\n            // handle milliseconds separately because of floating point math errors (issue #1867)\n            days = this._days + Math.round(monthsToDays(this._months));\n            switch (units) {\n                case 'week':\n                    return days / 7 + milliseconds / 6048e5;\n                case 'day':\n                    return days + milliseconds / 864e5;\n                case 'hour':\n                    return days * 24 + milliseconds / 36e5;\n                case 'minute':\n                    return days * 1440 + milliseconds / 6e4;\n                case 'second':\n                    return days * 86400 + milliseconds / 1000;\n                // Math.floor prevents floating point math errors here\n                case 'millisecond':\n                    return Math.floor(days * 864e5) + milliseconds;\n                default:\n                    throw new Error('Unknown unit ' + units);\n            }\n        }\n    }\n\n    // TODO: Use this.as('ms')?\n    function valueOf$1() {\n        if (!this.isValid()) {\n            return NaN;\n        }\n        return (\n            this._milliseconds +\n            this._days * 864e5 +\n            (this._months % 12) * 2592e6 +\n            toInt(this._months / 12) * 31536e6\n        );\n    }\n\n    function makeAs(alias) {\n        return function () {\n            return this.as(alias);\n        };\n    }\n\n    var asMilliseconds = makeAs('ms'),\n        asSeconds = makeAs('s'),\n        asMinutes = makeAs('m'),\n        asHours = makeAs('h'),\n        asDays = makeAs('d'),\n        asWeeks = makeAs('w'),\n        asMonths = makeAs('M'),\n        asQuarters = makeAs('Q'),\n        asYears = makeAs('y');\n\n    function clone$1() {\n        return createDuration(this);\n    }\n\n    function get$2(units) {\n        units = normalizeUnits(units);\n        return this.isValid() ? this[units + 's']() : NaN;\n    }\n\n    function makeGetter(name) {\n        return function () {\n            return this.isValid() ? this._data[name] : NaN;\n        };\n    }\n\n    var milliseconds = makeGetter('milliseconds'),\n        seconds = makeGetter('seconds'),\n        minutes = makeGetter('minutes'),\n        hours = makeGetter('hours'),\n        days = makeGetter('days'),\n        months = makeGetter('months'),\n        years = makeGetter('years');\n\n    function weeks() {\n        return absFloor(this.days() / 7);\n    }\n\n    var round = Math.round,\n        thresholds = {\n            ss: 44, // a few seconds to seconds\n            s: 45, // seconds to minute\n            m: 45, // minutes to hour\n            h: 22, // hours to day\n            d: 26, // days to month/week\n            w: null, // weeks to month\n            M: 11, // months to year\n        };\n\n    // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\n    function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n        return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\n    }\n\n    function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {\n        var duration = createDuration(posNegDuration).abs(),\n            seconds = round(duration.as('s')),\n            minutes = round(duration.as('m')),\n            hours = round(duration.as('h')),\n            days = round(duration.as('d')),\n            months = round(duration.as('M')),\n            weeks = round(duration.as('w')),\n            years = round(duration.as('y')),\n            a =\n                (seconds <= thresholds.ss && ['s', seconds]) ||\n                (seconds < thresholds.s && ['ss', seconds]) ||\n                (minutes <= 1 && ['m']) ||\n                (minutes < thresholds.m && ['mm', minutes]) ||\n                (hours <= 1 && ['h']) ||\n                (hours < thresholds.h && ['hh', hours]) ||\n                (days <= 1 && ['d']) ||\n                (days < thresholds.d && ['dd', days]);\n\n        if (thresholds.w != null) {\n            a =\n                a ||\n                (weeks <= 1 && ['w']) ||\n                (weeks < thresholds.w && ['ww', weeks]);\n        }\n        a = a ||\n            (months <= 1 && ['M']) ||\n            (months < thresholds.M && ['MM', months]) ||\n            (years <= 1 && ['y']) || ['yy', years];\n\n        a[2] = withoutSuffix;\n        a[3] = +posNegDuration > 0;\n        a[4] = locale;\n        return substituteTimeAgo.apply(null, a);\n    }\n\n    // This function allows you to set the rounding function for relative time strings\n    function getSetRelativeTimeRounding(roundingFunction) {\n        if (roundingFunction === undefined) {\n            return round;\n        }\n        if (typeof roundingFunction === 'function') {\n            round = roundingFunction;\n            return true;\n        }\n        return false;\n    }\n\n    // This function allows you to set a threshold for relative time strings\n    function getSetRelativeTimeThreshold(threshold, limit) {\n        if (thresholds[threshold] === undefined) {\n            return false;\n        }\n        if (limit === undefined) {\n            return thresholds[threshold];\n        }\n        thresholds[threshold] = limit;\n        if (threshold === 's') {\n            thresholds.ss = limit - 1;\n        }\n        return true;\n    }\n\n    function humanize(argWithSuffix, argThresholds) {\n        if (!this.isValid()) {\n            return this.localeData().invalidDate();\n        }\n\n        var withSuffix = false,\n            th = thresholds,\n            locale,\n            output;\n\n        if (typeof argWithSuffix === 'object') {\n            argThresholds = argWithSuffix;\n            argWithSuffix = false;\n        }\n        if (typeof argWithSuffix === 'boolean') {\n            withSuffix = argWithSuffix;\n        }\n        if (typeof argThresholds === 'object') {\n            th = Object.assign({}, thresholds, argThresholds);\n            if (argThresholds.s != null && argThresholds.ss == null) {\n                th.ss = argThresholds.s - 1;\n            }\n        }\n\n        locale = this.localeData();\n        output = relativeTime$1(this, !withSuffix, th, locale);\n\n        if (withSuffix) {\n            output = locale.pastFuture(+this, output);\n        }\n\n        return locale.postformat(output);\n    }\n\n    var abs$1 = Math.abs;\n\n    function sign(x) {\n        return (x > 0) - (x < 0) || +x;\n    }\n\n    function toISOString$1() {\n        // for ISO strings we do not use the normal bubbling rules:\n        //  * milliseconds bubble up until they become hours\n        //  * days do not bubble at all\n        //  * months bubble up until they become years\n        // This is because there is no context-free conversion between hours and days\n        // (think of clock changes)\n        // and also not between days and months (28-31 days per month)\n        if (!this.isValid()) {\n            return this.localeData().invalidDate();\n        }\n\n        var seconds = abs$1(this._milliseconds) / 1000,\n            days = abs$1(this._days),\n            months = abs$1(this._months),\n            minutes,\n            hours,\n            years,\n            s,\n            total = this.asSeconds(),\n            totalSign,\n            ymSign,\n            daysSign,\n            hmsSign;\n\n        if (!total) {\n            // this is the same as C#'s (Noda) and python (isodate)...\n            // but not other JS (goog.date)\n            return 'P0D';\n        }\n\n        // 3600 seconds -> 60 minutes -> 1 hour\n        minutes = absFloor(seconds / 60);\n        hours = absFloor(minutes / 60);\n        seconds %= 60;\n        minutes %= 60;\n\n        // 12 months -> 1 year\n        years = absFloor(months / 12);\n        months %= 12;\n\n        // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n        s = seconds ? seconds.toFixed(3).replace(/\\.?0+$/, '') : '';\n\n        totalSign = total < 0 ? '-' : '';\n        ymSign = sign(this._months) !== sign(total) ? '-' : '';\n        daysSign = sign(this._days) !== sign(total) ? '-' : '';\n        hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';\n\n        return (\n            totalSign +\n            'P' +\n            (years ? ymSign + years + 'Y' : '') +\n            (months ? ymSign + months + 'M' : '') +\n            (days ? daysSign + days + 'D' : '') +\n            (hours || minutes || seconds ? 'T' : '') +\n            (hours ? hmsSign + hours + 'H' : '') +\n            (minutes ? hmsSign + minutes + 'M' : '') +\n            (seconds ? hmsSign + s + 'S' : '')\n        );\n    }\n\n    var proto$2 = Duration.prototype;\n\n    proto$2.isValid = isValid$1;\n    proto$2.abs = abs;\n    proto$2.add = add$1;\n    proto$2.subtract = subtract$1;\n    proto$2.as = as;\n    proto$2.asMilliseconds = asMilliseconds;\n    proto$2.asSeconds = asSeconds;\n    proto$2.asMinutes = asMinutes;\n    proto$2.asHours = asHours;\n    proto$2.asDays = asDays;\n    proto$2.asWeeks = asWeeks;\n    proto$2.asMonths = asMonths;\n    proto$2.asQuarters = asQuarters;\n    proto$2.asYears = asYears;\n    proto$2.valueOf = valueOf$1;\n    proto$2._bubble = bubble;\n    proto$2.clone = clone$1;\n    proto$2.get = get$2;\n    proto$2.milliseconds = milliseconds;\n    proto$2.seconds = seconds;\n    proto$2.minutes = minutes;\n    proto$2.hours = hours;\n    proto$2.days = days;\n    proto$2.weeks = weeks;\n    proto$2.months = months;\n    proto$2.years = years;\n    proto$2.humanize = humanize;\n    proto$2.toISOString = toISOString$1;\n    proto$2.toString = toISOString$1;\n    proto$2.toJSON = toISOString$1;\n    proto$2.locale = locale;\n    proto$2.localeData = localeData;\n\n    proto$2.toIsoString = deprecate(\n        'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',\n        toISOString$1\n    );\n    proto$2.lang = lang;\n\n    // FORMATTING\n\n    addFormatToken('X', 0, 0, 'unix');\n    addFormatToken('x', 0, 0, 'valueOf');\n\n    // PARSING\n\n    addRegexToken('x', matchSigned);\n    addRegexToken('X', matchTimestamp);\n    addParseToken('X', function (input, array, config) {\n        config._d = new Date(parseFloat(input) * 1000);\n    });\n    addParseToken('x', function (input, array, config) {\n        config._d = new Date(toInt(input));\n    });\n\n    //! moment.js\n\n    hooks.version = '2.29.4';\n\n    setHookCallback(createLocal);\n\n    hooks.fn = proto;\n    hooks.min = min;\n    hooks.max = max;\n    hooks.now = now;\n    hooks.utc = createUTC;\n    hooks.unix = createUnix;\n    hooks.months = listMonths;\n    hooks.isDate = isDate;\n    hooks.locale = getSetGlobalLocale;\n    hooks.invalid = createInvalid;\n    hooks.duration = createDuration;\n    hooks.isMoment = isMoment;\n    hooks.weekdays = listWeekdays;\n    hooks.parseZone = createInZone;\n    hooks.localeData = getLocale;\n    hooks.isDuration = isDuration;\n    hooks.monthsShort = listMonthsShort;\n    hooks.weekdaysMin = listWeekdaysMin;\n    hooks.defineLocale = defineLocale;\n    hooks.updateLocale = updateLocale;\n    hooks.locales = listLocales;\n    hooks.weekdaysShort = listWeekdaysShort;\n    hooks.normalizeUnits = normalizeUnits;\n    hooks.relativeTimeRounding = getSetRelativeTimeRounding;\n    hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;\n    hooks.calendarFormat = getCalendarFormat;\n    hooks.prototype = proto;\n\n    // currently HTML5 input type only supports 24-hour formats\n    hooks.HTML5_FMT = {\n        DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type=\"datetime-local\" />\n        DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type=\"datetime-local\" step=\"1\" />\n        DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type=\"datetime-local\" step=\"0.001\" />\n        DATE: 'YYYY-MM-DD', // <input type=\"date\" />\n        TIME: 'HH:mm', // <input type=\"time\" />\n        TIME_SECONDS: 'HH:mm:ss', // <input type=\"time\" step=\"1\" />\n        TIME_MS: 'HH:mm:ss.SSS', // <input type=\"time\" step=\"0.001\" />\n        WEEK: 'GGGG-[W]WW', // <input type=\"week\" />\n        MONTH: 'YYYY-MM', // <input type=\"month\" />\n    };\n\n    return hooks;\n\n})));\n\n\n//# sourceURL=webpack://ic_portal/./node_modules/moment/moment.js?");

/***/ }),

/***/ "false sync recursive ^\\.\\/.*$":
/*!****************************!*\
  !*** false/ sync ^\.\/.*$ ***!
  \****************************/
/***/ ((module) => {

eval("function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = \"false sync recursive ^\\\\.\\\\/.*$\";\nmodule.exports = webpackEmptyContext;\n\n//# sourceURL=webpack://ic_portal/false/_sync_^\\.\\/.*$?");

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			id: moduleId,
/******/ 			loaded: false,
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/global */
/******/ 	(() => {
/******/ 		__webpack_require__.g = (function() {
/******/ 			if (typeof globalThis === 'object') return globalThis;
/******/ 			try {
/******/ 				return this || new Function('return this')();
/******/ 			} catch (e) {
/******/ 				if (typeof window === 'object') return window;
/******/ 			}
/******/ 		})();
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	(() => {
/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/node module decorator */
/******/ 	(() => {
/******/ 		__webpack_require__.nmd = (module) => {
/******/ 			module.paths = [];
/******/ 			if (!module.children) module.children = [];
/******/ 			return module;
/******/ 		};
/******/ 	})();
/******/ 	
/************************************************************************/
/******/ 	
/******/ 	// startup
/******/ 	// Load entry module and return exports
/******/ 	// This entry module is referenced by other modules so it can't be inlined
/******/ 	var __webpack_exports__ = __webpack_require__("./assets/dist/js/reducedjs/combined.js");
/******/ 	
/******/ })()
;