Skip to content

Instantly share code, notes, and snippets.

@jesi-rgb
Last active October 21, 2022 01:42
Show Gist options
  • Save jesi-rgb/b9bff93a3d8806578051f49427a7d928 to your computer and use it in GitHub Desktop.
Save jesi-rgb/b9bff93a3d8806578051f49427a7d928 to your computer and use it in GitHub Desktop.
saveGif is coming to p5.js! 🌸
This file has been truncated, but you can view the full file.
/*! p5.js v1.4.1 July 26, 2022 */
"use strict";function _typeof3(e){return(_typeof3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){if("object"===("undefined"==typeof exports?"undefined":_typeof3(exports))&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).p5=e()}}(function(){var a,e,t;return function a(i,s,l){function p(t,e){if(!s[t]){if(!i[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var o=s[t]={exports:{}};i[t][0].call(o.exports,function(e){return p(i[t][1][e]||e)},o,o.exports,a,i,s,l)}return s[t].exports}for(var c="function"==typeof require&&require,e=0;e<l.length;e++)p(l[e]);return p}({1:[function(e,t,r){t.exports={p5:{describe:{name:"describe",params:[{name:"text",description:"<p>description of the canvas</p>\n",type:"String"},{name:"display",description:"<p>either LABEL or FALLBACK</p>\n",type:"Constant",optional:!0}],class:"p5",module:"Environment"},describeElement:{name:"describeElement",params:[{name:"name",description:"<p>name of the element</p>\n",type:"String"},{name:"text",description:"<p>description of the element</p>\n",type:"String"},{name:"display",description:"<p>either LABEL or FALLBACK</p>\n",type:"Constant",optional:!0}],class:"p5",module:"Environment"},textOutput:{name:"textOutput",params:[{name:"display",description:"<p>either FALLBACK or LABEL</p>\n",type:"Constant",optional:!0}],class:"p5",module:"Environment"},gridOutput:{name:"gridOutput",params:[{name:"display",description:"<p>either FALLBACK or LABEL</p>\n",type:"Constant",optional:!0}],class:"p5",module:"Environment"},alpha:{name:"alpha",params:[{name:"color",description:'<p><a href="#/p5.Color">p5.Color</a> object, color components,\n or CSS color</p>\n',type:"p5.Color|Number[]|String"}],class:"p5",module:"Color"},blue:{name:"blue",params:[{name:"color",description:'<p><a href="#/p5.Color">p5.Color</a> object, color components,\n or CSS color</p>\n',type:"p5.Color|Number[]|String"}],class:"p5",module:"Color"},brightness:{name:"brightness",params:[{name:"color",description:'<p><a href="#/p5.Color">p5.Color</a> object, color components,\n or CSS color</p>\n',type:"p5.Color|Number[]|String"}],class:"p5",module:"Color"},color:{name:"color",class:"p5",module:"Color",overloads:[{params:[{name:"gray",description:"<p>number specifying value between white and black.</p>\n",type:"Number"},{name:"alpha",description:"<p>alpha value relative to current color range\n (default is 0-255)</p>\n",type:"Number",optional:!0}]},{params:[{name:"v1",description:"<p>red or hue value relative to\n the current color range</p>\n",type:"Number"},{name:"v2",description:"<p>green or saturation value\n relative to the current color range</p>\n",type:"Number"},{name:"v3",description:"<p>blue or brightness value\n relative to the current color range</p>\n",type:"Number"},{name:"alpha",description:"",type:"Number",optional:!0}]},{params:[{name:"value",description:"<p>a color string</p>\n",type:"String"}]},{params:[{name:"values",description:"<p>an array containing the red,green,blue &\n and alpha components of the color</p>\n",type:"Number[]"}]},{params:[{name:"color",description:"",type:"p5.Color"}]}]},green:{name:"green",params:[{name:"color",description:'<p><a href="#/p5.Color">p5.Color</a> object, color components,\n or CSS color</p>\n',type:"p5.Color|Number[]|String"}],class:"p5",module:"Color"},hue:{name:"hue",params:[{name:"color",description:'<p><a href="#/p5.Color">p5.Color</a> object, color components,\n or CSS color</p>\n',type:"p5.Color|Number[]|String"}],class:"p5",module:"Color"},lerpColor:{name:"lerpColor",params:[{name:"c1",description:"<p>interpolate from this color</p>\n",type:"p5.Color"},{name:"c2",description:"<p>interpolate to this color</p>\n",type:"p5.Color"},{name:"amt",description:"<p>number between 0 and 1</p>\n",type:"Number"}],class:"p5",module:"Color"},lightness:{name:"lightness",params:[{name:"color",description:'<p><a href="#/p5.Color">p5.Color</a> object, color components,\n or CSS color</p>\n',type:"p5.Color|Number[]|String"}],class:"p5",module:"Color"},red:{name:"red",params:[{name:"color",description:'<p><a href="#/p5.Color">p5.Color</a> object, color components,\n or CSS color</p>\n',type:"p5.Color|Number[]|String"}],class:"p5",module:"Color"},saturation:{name:"saturation",params:[{name:"color",description:'<p><a href="#/p5.Color">p5.Color</a> object, color components,\n or CSS color</p>\n',type:"p5.Color|Number[]|String"}],class:"p5",module:"Color"},background:{name:"background",class:"p5",module:"Color",overloads:[{params:[{name:"color",description:'<p>any value created by the <a href="#/p5/color">color()</a> function</p>\n',type:"p5.Color"}],chainable:1},{params:[{name:"colorstring",description:"<p>color string, possible formats include: integer\n rgb() or rgba(), percentage rgb() or rgba(),\n 3-digit hex, 6-digit hex</p>\n",type:"String"},{name:"a",description:"<p>opacity of the background relative to current\n color range (default is 0-255)</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"gray",description:"<p>specifies a value between white and black</p>\n",type:"Number"},{name:"a",description:"",type:"Number",optional:!0}],chainable:1},{params:[{name:"v1",description:"<p>red or hue value (depending on the current color\n mode)</p>\n",type:"Number"},{name:"v2",description:"<p>green or saturation value (depending on the current\n color mode)</p>\n",type:"Number"},{name:"v3",description:"<p>blue or brightness value (depending on the current\n color mode)</p>\n",type:"Number"},{name:"a",description:"",type:"Number",optional:!0}],chainable:1},{params:[{name:"values",description:"<p>an array containing the red, green, blue\n and alpha components of the color</p>\n",type:"Number[]"}],chainable:1},{params:[{name:"image",description:'<p>image created with <a href="#/p5/loadImage">loadImage()</a> or <a href="#/p5/createImage">createImage()</a>,\n to set as background\n (must be same size as the sketch window)</p>\n',type:"p5.Image"},{name:"a",description:"",type:"Number",optional:!0}],chainable:1}]},clear:{name:"clear",params:[{name:"r",description:"<p>normalized red val.</p>\n",type:"Number"},{name:"g",description:"<p>normalized green val.</p>\n",type:"Number"},{name:"b",description:"<p>normalized blue val.</p>\n",type:"Number"},{name:"a",description:"<p>normalized alpha val.</p>\n",type:"Number"}],class:"p5",module:"Color"},colorMode:{name:"colorMode",class:"p5",module:"Color",overloads:[{params:[{name:"mode",description:"<p>either RGB, HSB or HSL, corresponding to\n Red/Green/Blue and Hue/Saturation/Brightness\n (or Lightness)</p>\n",type:"Constant"},{name:"max",description:"<p>range for all values</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"mode",description:"",type:"Constant"},{name:"max1",description:"<p>range for the red or hue depending on the\n current color mode</p>\n",type:"Number"},{name:"max2",description:"<p>range for the green or saturation depending\n on the current color mode</p>\n",type:"Number"},{name:"max3",description:"<p>range for the blue or brightness/lightness\n depending on the current color mode</p>\n",type:"Number"},{name:"maxA",description:"<p>range for the alpha</p>\n",type:"Number",optional:!0}],chainable:1}]},fill:{name:"fill",class:"p5",module:"Color",overloads:[{params:[{name:"v1",description:"<p>red or hue value relative to\n the current color range</p>\n",type:"Number"},{name:"v2",description:"<p>green or saturation value\n relative to the current color range</p>\n",type:"Number"},{name:"v3",description:"<p>blue or brightness value\n relative to the current color range</p>\n",type:"Number"},{name:"alpha",description:"",type:"Number",optional:!0}],chainable:1},{params:[{name:"value",description:"<p>a color string</p>\n",type:"String"}],chainable:1},{params:[{name:"gray",description:"<p>a gray value</p>\n",type:"Number"},{name:"alpha",description:"",type:"Number",optional:!0}],chainable:1},{params:[{name:"values",description:"<p>an array containing the red,green,blue &\n and alpha components of the color</p>\n",type:"Number[]"}],chainable:1},{params:[{name:"color",description:"<p>the fill color</p>\n",type:"p5.Color"}],chainable:1}]},noFill:{name:"noFill",class:"p5",module:"Color"},noStroke:{name:"noStroke",class:"p5",module:"Color"},stroke:{name:"stroke",class:"p5",module:"Color",overloads:[{params:[{name:"v1",description:"<p>red or hue value relative to\n the current color range</p>\n",type:"Number"},{name:"v2",description:"<p>green or saturation value\n relative to the current color range</p>\n",type:"Number"},{name:"v3",description:"<p>blue or brightness value\n relative to the current color range</p>\n",type:"Number"},{name:"alpha",description:"",type:"Number",optional:!0}],chainable:1},{params:[{name:"value",description:"<p>a color string</p>\n",type:"String"}],chainable:1},{params:[{name:"gray",description:"<p>a gray value</p>\n",type:"Number"},{name:"alpha",description:"",type:"Number",optional:!0}],chainable:1},{params:[{name:"values",description:"<p>an array containing the red,green,blue &\n and alpha components of the color</p>\n",type:"Number[]"}],chainable:1},{params:[{name:"color",description:"<p>the stroke color</p>\n",type:"p5.Color"}],chainable:1}]},erase:{name:"erase",params:[{name:"strengthFill",description:"<p>A number (0-255) for the strength of erasing for a shape's fill.\n This will default to 255 when no argument is given, which\n is full strength.</p>\n",type:"Number",optional:!0},{name:"strengthStroke",description:"<p>A number (0-255) for the strength of erasing for a shape's stroke.\n This will default to 255 when no argument is given, which\n is full strength.</p>\n",type:"Number",optional:!0}],class:"p5",module:"Color"},noErase:{name:"noErase",class:"p5",module:"Color"},arc:{name:"arc",params:[{name:"x",description:"<p>x-coordinate of the arc's ellipse</p>\n",type:"Number"},{name:"y",description:"<p>y-coordinate of the arc's ellipse</p>\n",type:"Number"},{name:"w",description:"<p>width of the arc's ellipse by default</p>\n",type:"Number"},{name:"h",description:"<p>height of the arc's ellipse by default</p>\n",type:"Number"},{name:"start",description:"<p>angle to start the arc, specified in radians</p>\n",type:"Number"},{name:"stop",description:"<p>angle to stop the arc, specified in radians</p>\n",type:"Number"},{name:"mode",description:"<p>optional parameter to determine the way of drawing\n the arc. either CHORD, PIE or OPEN</p>\n",type:"Constant",optional:!0},{name:"detail",description:"<p>optional parameter for WebGL mode only. This is to\n specify the number of vertices that makes up the\n perimeter of the arc. Default value is 25. Won't\n draw a stroke for a detail of more than 50.</p>\n",type:"Integer",optional:!0}],class:"p5",module:"Shape"},ellipse:{name:"ellipse",class:"p5",module:"Shape",overloads:[{params:[{name:"x",description:"<p>x-coordinate of the center of the ellipse.</p>\n",type:"Number"},{name:"y",description:"<p>y-coordinate of the center of the ellipse.</p>\n",type:"Number"},{name:"w",description:"<p>width of the ellipse.</p>\n",type:"Number"},{name:"h",description:"<p>height of the ellipse.</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"x",description:"",type:"Number"},{name:"y",description:"",type:"Number"},{name:"w",description:"",type:"Number"},{name:"h",description:"",type:"Number"},{name:"detail",description:"<p>optional parameter for WEBGL mode only. This is to\n specify the number of vertices that makes up the\n perimeter of the ellipse. Default value is 25. Won't\n draw a stroke for a detail of more than 50.</p>\n",type:"Integer",optional:!0}]}]},circle:{name:"circle",params:[{name:"x",description:"<p>x-coordinate of the center of the circle.</p>\n",type:"Number"},{name:"y",description:"<p>y-coordinate of the center of the circle.</p>\n",type:"Number"},{name:"d",description:"<p>diameter of the circle.</p>\n",type:"Number"}],class:"p5",module:"Shape"},line:{name:"line",class:"p5",module:"Shape",overloads:[{params:[{name:"x1",description:"<p>the x-coordinate of the first point</p>\n",type:"Number"},{name:"y1",description:"<p>the y-coordinate of the first point</p>\n",type:"Number"},{name:"x2",description:"<p>the x-coordinate of the second point</p>\n",type:"Number"},{name:"y2",description:"<p>the y-coordinate of the second point</p>\n",type:"Number"}],chainable:1},{params:[{name:"x1",description:"",type:"Number"},{name:"y1",description:"",type:"Number"},{name:"z1",description:"<p>the z-coordinate of the first point</p>\n",type:"Number"},{name:"x2",description:"",type:"Number"},{name:"y2",description:"",type:"Number"},{name:"z2",description:"<p>the z-coordinate of the second point</p>\n",type:"Number"}],chainable:1}]},point:{name:"point",class:"p5",module:"Shape",overloads:[{params:[{name:"x",description:"<p>the x-coordinate</p>\n",type:"Number"},{name:"y",description:"<p>the y-coordinate</p>\n",type:"Number"},{name:"z",description:"<p>the z-coordinate (for WebGL mode)</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"coordinate_vector",description:"<p>the coordinate vector</p>\n",type:"p5.Vector"}],chainable:1}]},quad:{name:"quad",class:"p5",module:"Shape",overloads:[{params:[{name:"x1",description:"<p>the x-coordinate of the first point</p>\n",type:"Number"},{name:"y1",description:"<p>the y-coordinate of the first point</p>\n",type:"Number"},{name:"x2",description:"<p>the x-coordinate of the second point</p>\n",type:"Number"},{name:"y2",description:"<p>the y-coordinate of the second point</p>\n",type:"Number"},{name:"x3",description:"<p>the x-coordinate of the third point</p>\n",type:"Number"},{name:"y3",description:"<p>the y-coordinate of the third point</p>\n",type:"Number"},{name:"x4",description:"<p>the x-coordinate of the fourth point</p>\n",type:"Number"},{name:"y4",description:"<p>the y-coordinate of the fourth point</p>\n",type:"Number"},{name:"detailX",description:"<p>number of segments in the x-direction</p>\n",type:"Integer",optional:!0},{name:"detailY",description:"<p>number of segments in the y-direction</p>\n",type:"Integer",optional:!0}],chainable:1},{params:[{name:"x1",description:"",type:"Number"},{name:"y1",description:"",type:"Number"},{name:"z1",description:"<p>the z-coordinate of the first point</p>\n",type:"Number"},{name:"x2",description:"",type:"Number"},{name:"y2",description:"",type:"Number"},{name:"z2",description:"<p>the z-coordinate of the second point</p>\n",type:"Number"},{name:"x3",description:"",type:"Number"},{name:"y3",description:"",type:"Number"},{name:"z3",description:"<p>the z-coordinate of the third point</p>\n",type:"Number"},{name:"x4",description:"",type:"Number"},{name:"y4",description:"",type:"Number"},{name:"z4",description:"<p>the z-coordinate of the fourth point</p>\n",type:"Number"},{name:"detailX",description:"",type:"Integer",optional:!0},{name:"detailY",description:"",type:"Integer",optional:!0}],chainable:1}]},rect:{name:"rect",class:"p5",module:"Shape",overloads:[{params:[{name:"x",description:"<p>x-coordinate of the rectangle.</p>\n",type:"Number"},{name:"y",description:"<p>y-coordinate of the rectangle.</p>\n",type:"Number"},{name:"w",description:"<p>width of the rectangle.</p>\n",type:"Number"},{name:"h",description:"<p>height of the rectangle.</p>\n",type:"Number",optional:!0},{name:"tl",description:"<p>optional radius of top-left corner.</p>\n",type:"Number",optional:!0},{name:"tr",description:"<p>optional radius of top-right corner.</p>\n",type:"Number",optional:!0},{name:"br",description:"<p>optional radius of bottom-right corner.</p>\n",type:"Number",optional:!0},{name:"bl",description:"<p>optional radius of bottom-left corner.</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"x",description:"",type:"Number"},{name:"y",description:"",type:"Number"},{name:"w",description:"",type:"Number"},{name:"h",description:"",type:"Number"},{name:"detailX",description:"<p>number of segments in the x-direction (for WebGL mode)</p>\n",type:"Integer",optional:!0},{name:"detailY",description:"<p>number of segments in the y-direction (for WebGL mode)</p>\n",type:"Integer",optional:!0}],chainable:1}]},square:{name:"square",params:[{name:"x",description:"<p>x-coordinate of the square.</p>\n",type:"Number"},{name:"y",description:"<p>y-coordinate of the square.</p>\n",type:"Number"},{name:"s",description:"<p>side size of the square.</p>\n",type:"Number"},{name:"tl",description:"<p>optional radius of top-left corner.</p>\n",type:"Number",optional:!0},{name:"tr",description:"<p>optional radius of top-right corner.</p>\n",type:"Number",optional:!0},{name:"br",description:"<p>optional radius of bottom-right corner.</p>\n",type:"Number",optional:!0},{name:"bl",description:"<p>optional radius of bottom-left corner.</p>\n",type:"Number",optional:!0}],class:"p5",module:"Shape"},triangle:{name:"triangle",params:[{name:"x1",description:"<p>x-coordinate of the first point</p>\n",type:"Number"},{name:"y1",description:"<p>y-coordinate of the first point</p>\n",type:"Number"},{name:"x2",description:"<p>x-coordinate of the second point</p>\n",type:"Number"},{name:"y2",description:"<p>y-coordinate of the second point</p>\n",type:"Number"},{name:"x3",description:"<p>x-coordinate of the third point</p>\n",type:"Number"},{name:"y3",description:"<p>y-coordinate of the third point</p>\n",type:"Number"}],class:"p5",module:"Shape"},ellipseMode:{name:"ellipseMode",params:[{name:"mode",description:"<p>either CENTER, RADIUS, CORNER, or CORNERS</p>\n",type:"Constant"}],class:"p5",module:"Shape"},noSmooth:{name:"noSmooth",class:"p5",module:"Shape"},rectMode:{name:"rectMode",params:[{name:"mode",description:"<p>either CORNER, CORNERS, CENTER, or RADIUS</p>\n",type:"Constant"}],class:"p5",module:"Shape"},smooth:{name:"smooth",class:"p5",module:"Shape"},strokeCap:{name:"strokeCap",params:[{name:"cap",description:"<p>either ROUND, SQUARE or PROJECT</p>\n",type:"Constant"}],class:"p5",module:"Shape"},strokeJoin:{name:"strokeJoin",params:[{name:"join",description:"<p>either MITER, BEVEL, ROUND</p>\n",type:"Constant"}],class:"p5",module:"Shape"},strokeWeight:{name:"strokeWeight",params:[{name:"weight",description:"<p>the weight of the stroke (in pixels)</p>\n",type:"Number"}],class:"p5",module:"Shape"},bezier:{name:"bezier",class:"p5",module:"Shape",overloads:[{params:[{name:"x1",description:"<p>x-coordinate for the first anchor point</p>\n",type:"Number"},{name:"y1",description:"<p>y-coordinate for the first anchor point</p>\n",type:"Number"},{name:"x2",description:"<p>x-coordinate for the first control point</p>\n",type:"Number"},{name:"y2",description:"<p>y-coordinate for the first control point</p>\n",type:"Number"},{name:"x3",description:"<p>x-coordinate for the second control point</p>\n",type:"Number"},{name:"y3",description:"<p>y-coordinate for the second control point</p>\n",type:"Number"},{name:"x4",description:"<p>x-coordinate for the second anchor point</p>\n",type:"Number"},{name:"y4",description:"<p>y-coordinate for the second anchor point</p>\n",type:"Number"}],chainable:1},{params:[{name:"x1",description:"",type:"Number"},{name:"y1",description:"",type:"Number"},{name:"z1",description:"<p>z-coordinate for the first anchor point</p>\n",type:"Number"},{name:"x2",description:"",type:"Number"},{name:"y2",description:"",type:"Number"},{name:"z2",description:"<p>z-coordinate for the first control point</p>\n",type:"Number"},{name:"x3",description:"",type:"Number"},{name:"y3",description:"",type:"Number"},{name:"z3",description:"<p>z-coordinate for the second control point</p>\n",type:"Number"},{name:"x4",description:"",type:"Number"},{name:"y4",description:"",type:"Number"},{name:"z4",description:"<p>z-coordinate for the second anchor point</p>\n",type:"Number"}],chainable:1}]},bezierDetail:{name:"bezierDetail",params:[{name:"detail",description:"<p>resolution of the curves</p>\n",type:"Number"}],class:"p5",module:"Shape"},bezierPoint:{name:"bezierPoint",params:[{name:"a",description:"<p>coordinate of first point on the curve</p>\n",type:"Number"},{name:"b",description:"<p>coordinate of first control point</p>\n",type:"Number"},{name:"c",description:"<p>coordinate of second control point</p>\n",type:"Number"},{name:"d",description:"<p>coordinate of second point on the curve</p>\n",type:"Number"},{name:"t",description:"<p>value between 0 and 1</p>\n",type:"Number"}],class:"p5",module:"Shape"},bezierTangent:{name:"bezierTangent",params:[{name:"a",description:"<p>coordinate of first point on the curve</p>\n",type:"Number"},{name:"b",description:"<p>coordinate of first control point</p>\n",type:"Number"},{name:"c",description:"<p>coordinate of second control point</p>\n",type:"Number"},{name:"d",description:"<p>coordinate of second point on the curve</p>\n",type:"Number"},{name:"t",description:"<p>value between 0 and 1</p>\n",type:"Number"}],class:"p5",module:"Shape"},curve:{name:"curve",class:"p5",module:"Shape",overloads:[{params:[{name:"x1",description:"<p>x-coordinate for the beginning control point</p>\n",type:"Number"},{name:"y1",description:"<p>y-coordinate for the beginning control point</p>\n",type:"Number"},{name:"x2",description:"<p>x-coordinate for the first point</p>\n",type:"Number"},{name:"y2",description:"<p>y-coordinate for the first point</p>\n",type:"Number"},{name:"x3",description:"<p>x-coordinate for the second point</p>\n",type:"Number"},{name:"y3",description:"<p>y-coordinate for the second point</p>\n",type:"Number"},{name:"x4",description:"<p>x-coordinate for the ending control point</p>\n",type:"Number"},{name:"y4",description:"<p>y-coordinate for the ending control point</p>\n",type:"Number"}],chainable:1},{params:[{name:"x1",description:"",type:"Number"},{name:"y1",description:"",type:"Number"},{name:"z1",description:"<p>z-coordinate for the beginning control point</p>\n",type:"Number"},{name:"x2",description:"",type:"Number"},{name:"y2",description:"",type:"Number"},{name:"z2",description:"<p>z-coordinate for the first point</p>\n",type:"Number"},{name:"x3",description:"",type:"Number"},{name:"y3",description:"",type:"Number"},{name:"z3",description:"<p>z-coordinate for the second point</p>\n",type:"Number"},{name:"x4",description:"",type:"Number"},{name:"y4",description:"",type:"Number"},{name:"z4",description:"<p>z-coordinate for the ending control point</p>\n",type:"Number"}],chainable:1}]},curveDetail:{name:"curveDetail",params:[{name:"resolution",description:"<p>resolution of the curves</p>\n",type:"Number"}],class:"p5",module:"Shape"},curveTightness:{name:"curveTightness",params:[{name:"amount",description:"<p>amount of deformation from the original vertices</p>\n",type:"Number"}],class:"p5",module:"Shape"},curvePoint:{name:"curvePoint",params:[{name:"a",description:"<p>coordinate of first control point of the curve</p>\n",type:"Number"},{name:"b",description:"<p>coordinate of first point</p>\n",type:"Number"},{name:"c",description:"<p>coordinate of second point</p>\n",type:"Number"},{name:"d",description:"<p>coordinate of second control point</p>\n",type:"Number"},{name:"t",description:"<p>value between 0 and 1</p>\n",type:"Number"}],class:"p5",module:"Shape"},curveTangent:{name:"curveTangent",params:[{name:"a",description:"<p>coordinate of first control point</p>\n",type:"Number"},{name:"b",description:"<p>coordinate of first point on the curve</p>\n",type:"Number"},{name:"c",description:"<p>coordinate of second point on the curve</p>\n",type:"Number"},{name:"d",description:"<p>coordinate of second conrol point</p>\n",type:"Number"},{name:"t",description:"<p>value between 0 and 1</p>\n",type:"Number"}],class:"p5",module:"Shape"},beginContour:{name:"beginContour",class:"p5",module:"Shape"},beginShape:{name:"beginShape",params:[{name:"kind",description:"<p>either POINTS, LINES, TRIANGLES, TRIANGLE_FAN\n TRIANGLE_STRIP, QUADS, QUAD_STRIP or TESS</p>\n",type:"Constant",optional:!0}],class:"p5",module:"Shape"},bezierVertex:{name:"bezierVertex",class:"p5",module:"Shape",overloads:[{params:[{name:"x2",description:"<p>x-coordinate for the first control point</p>\n",type:"Number"},{name:"y2",description:"<p>y-coordinate for the first control point</p>\n",type:"Number"},{name:"x3",description:"<p>x-coordinate for the second control point</p>\n",type:"Number"},{name:"y3",description:"<p>y-coordinate for the second control point</p>\n",type:"Number"},{name:"x4",description:"<p>x-coordinate for the anchor point</p>\n",type:"Number"},{name:"y4",description:"<p>y-coordinate for the anchor point</p>\n",type:"Number"}],chainable:1},{params:[{name:"x2",description:"",type:"Number"},{name:"y2",description:"",type:"Number"},{name:"z2",description:"<p>z-coordinate for the first control point (for WebGL mode)</p>\n",type:"Number"},{name:"x3",description:"",type:"Number"},{name:"y3",description:"",type:"Number"},{name:"z3",description:"<p>z-coordinate for the second control point (for WebGL mode)</p>\n",type:"Number"},{name:"x4",description:"",type:"Number"},{name:"y4",description:"",type:"Number"},{name:"z4",description:"<p>z-coordinate for the anchor point (for WebGL mode)</p>\n",type:"Number"}],chainable:1}]},curveVertex:{name:"curveVertex",class:"p5",module:"Shape",overloads:[{params:[{name:"x",description:"<p>x-coordinate of the vertex</p>\n",type:"Number"},{name:"y",description:"<p>y-coordinate of the vertex</p>\n",type:"Number"}],chainable:1},{params:[{name:"x",description:"",type:"Number"},{name:"y",description:"",type:"Number"},{name:"z",description:"<p>z-coordinate of the vertex (for WebGL mode)</p>\n",type:"Number",optional:!0}],chainable:1}]},endContour:{name:"endContour",class:"p5",module:"Shape"},endShape:{name:"endShape",params:[{name:"mode",description:"<p>use CLOSE to close the shape</p>\n",type:"Constant",optional:!0}],class:"p5",module:"Shape"},quadraticVertex:{name:"quadraticVertex",class:"p5",module:"Shape",overloads:[{params:[{name:"cx",description:"<p>x-coordinate for the control point</p>\n",type:"Number"},{name:"cy",description:"<p>y-coordinate for the control point</p>\n",type:"Number"},{name:"x3",description:"<p>x-coordinate for the anchor point</p>\n",type:"Number"},{name:"y3",description:"<p>y-coordinate for the anchor point</p>\n",type:"Number"}],chainable:1},{params:[{name:"cx",description:"",type:"Number"},{name:"cy",description:"",type:"Number"},{name:"cz",description:"<p>z-coordinate for the control point (for WebGL mode)</p>\n",type:"Number"},{name:"x3",description:"",type:"Number"},{name:"y3",description:"",type:"Number"},{name:"z3",description:"<p>z-coordinate for the anchor point (for WebGL mode)</p>\n",type:"Number"}],chainable:1}]},vertex:{name:"vertex",class:"p5",module:"Shape",overloads:[{params:[{name:"x",description:"<p>x-coordinate of the vertex</p>\n",type:"Number"},{name:"y",description:"<p>y-coordinate of the vertex</p>\n",type:"Number"}],chainable:1},{params:[{name:"x",description:"",type:"Number"},{name:"y",description:"",type:"Number"},{name:"z",description:"<p>z-coordinate of the vertex.\n Defaults to 0 if not specified.</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"x",description:"",type:"Number"},{name:"y",description:"",type:"Number"},{name:"z",description:"",type:"Number",optional:!0},{name:"u",description:"<p>the vertex's texture u-coordinate</p>\n",type:"Number",optional:!0},{name:"v",description:"<p>the vertex's texture v-coordinate</p>\n",type:"Number",optional:!0}],chainable:1}]},normal:{name:"normal",class:"p5",module:"Shape",overloads:[{params:[{name:"vector",description:"<p>A p5.Vector representing the vertex normal.</p>\n",type:"Vector"}],chainable:1},{params:[{name:"x",description:"<p>The x component of the vertex normal.</p>\n",type:"Number"},{name:"y",description:"<p>The y component of the vertex normal.</p>\n",type:"Number"},{name:"z",description:"<p>The z component of the vertex normal.</p>\n",type:"Number"}],chainable:1}]},VERSION:{name:"VERSION",class:"p5",module:"Constants"},P2D:{name:"P2D",class:"p5",module:"Constants"},WEBGL:{name:"WEBGL",class:"p5",module:"Constants"},ARROW:{name:"ARROW",class:"p5",module:"Constants"},CROSS:{name:"CROSS",class:"p5",module:"Constants"},HAND:{name:"HAND",class:"p5",module:"Constants"},MOVE:{name:"MOVE",class:"p5",module:"Constants"},TEXT:{name:"TEXT",class:"p5",module:"Constants"},WAIT:{name:"WAIT",class:"p5",module:"Constants"},HALF_PI:{name:"HALF_PI",class:"p5",module:"Constants"},PI:{name:"PI",class:"p5",module:"Constants"},QUARTER_PI:{name:"QUARTER_PI",class:"p5",module:"Constants"},TAU:{name:"TAU",class:"p5",module:"Constants"},TWO_PI:{name:"TWO_PI",class:"p5",module:"Constants"},DEGREES:{name:"DEGREES",class:"p5",module:"Constants"},RADIANS:{name:"RADIANS",class:"p5",module:"Constants"},CORNER:{name:"CORNER",class:"p5",module:"Constants"},CORNERS:{name:"CORNERS",class:"p5",module:"Constants"},RADIUS:{name:"RADIUS",class:"p5",module:"Constants"},RIGHT:{name:"RIGHT",class:"p5",module:"Constants"},LEFT:{name:"LEFT",class:"p5",module:"Constants"},CENTER:{name:"CENTER",class:"p5",module:"Constants"},TOP:{name:"TOP",class:"p5",module:"Constants"},BOTTOM:{name:"BOTTOM",class:"p5",module:"Constants"},BASELINE:{name:"BASELINE",class:"p5",module:"Constants"},POINTS:{name:"POINTS",class:"p5",module:"Constants"},LINES:{name:"LINES",class:"p5",module:"Constants"},LINE_STRIP:{name:"LINE_STRIP",class:"p5",module:"Constants"},LINE_LOOP:{name:"LINE_LOOP",class:"p5",module:"Constants"},TRIANGLES:{name:"TRIANGLES",class:"p5",module:"Constants"},TRIANGLE_FAN:{name:"TRIANGLE_FAN",class:"p5",module:"Constants"},TRIANGLE_STRIP:{name:"TRIANGLE_STRIP",class:"p5",module:"Constants"},QUADS:{name:"QUADS",class:"p5",module:"Constants"},QUAD_STRIP:{name:"QUAD_STRIP",class:"p5",module:"Constants"},TESS:{name:"TESS",class:"p5",module:"Constants"},CLOSE:{name:"CLOSE",class:"p5",module:"Constants"},OPEN:{name:"OPEN",class:"p5",module:"Constants"},CHORD:{name:"CHORD",class:"p5",module:"Constants"},PIE:{name:"PIE",class:"p5",module:"Constants"},PROJECT:{name:"PROJECT",class:"p5",module:"Constants"},SQUARE:{name:"SQUARE",class:"p5",module:"Constants"},ROUND:{name:"ROUND",class:"p5",module:"Constants"},BEVEL:{name:"BEVEL",class:"p5",module:"Constants"},MITER:{name:"MITER",class:"p5",module:"Constants"},RGB:{name:"RGB",class:"p5",module:"Constants"},HSB:{name:"HSB",class:"p5",module:"Constants"},HSL:{name:"HSL",class:"p5",module:"Constants"},AUTO:{name:"AUTO",class:"p5",module:"Constants"},ALT:{name:"ALT",class:"p5",module:"Constants"},BACKSPACE:{name:"BACKSPACE",class:"p5",module:"Constants"},CONTROL:{name:"CONTROL",class:"p5",module:"Constants"},DELETE:{name:"DELETE",class:"p5",module:"Constants"},DOWN_ARROW:{name:"DOWN_ARROW",class:"p5",module:"Constants"},ENTER:{name:"ENTER",class:"p5",module:"Constants"},ESCAPE:{name:"ESCAPE",class:"p5",module:"Constants"},LEFT_ARROW:{name:"LEFT_ARROW",class:"p5",module:"Constants"},OPTION:{name:"OPTION",class:"p5",module:"Constants"},RETURN:{name:"RETURN",class:"p5",module:"Constants"},RIGHT_ARROW:{name:"RIGHT_ARROW",class:"p5",module:"Constants"},SHIFT:{name:"SHIFT",class:"p5",module:"Constants"},TAB:{name:"TAB",class:"p5",module:"Constants"},UP_ARROW:{name:"UP_ARROW",class:"p5",module:"Constants"},BLEND:{name:"BLEND",class:"p5",module:"Constants"},REMOVE:{name:"REMOVE",class:"p5",module:"Constants"},ADD:{name:"ADD",class:"p5",module:"Constants"},DARKEST:{name:"DARKEST",class:"p5",module:"Constants"},LIGHTEST:{name:"LIGHTEST",class:"p5",module:"Constants"},DIFFERENCE:{name:"DIFFERENCE",class:"p5",module:"Constants"},SUBTRACT:{name:"SUBTRACT",class:"p5",module:"Constants"},EXCLUSION:{name:"EXCLUSION",class:"p5",module:"Constants"},MULTIPLY:{name:"MULTIPLY",class:"p5",module:"Constants"},SCREEN:{name:"SCREEN",class:"p5",module:"Constants"},REPLACE:{name:"REPLACE",class:"p5",module:"Constants"},OVERLAY:{name:"OVERLAY",class:"p5",module:"Constants"},HARD_LIGHT:{name:"HARD_LIGHT",class:"p5",module:"Constants"},SOFT_LIGHT:{name:"SOFT_LIGHT",class:"p5",module:"Constants"},DODGE:{name:"DODGE",class:"p5",module:"Constants"},BURN:{name:"BURN",class:"p5",module:"Constants"},THRESHOLD:{name:"THRESHOLD",class:"p5",module:"Constants"},GRAY:{name:"GRAY",class:"p5",module:"Constants"},OPAQUE:{name:"OPAQUE",class:"p5",module:"Constants"},INVERT:{name:"INVERT",class:"p5",module:"Constants"},POSTERIZE:{name:"POSTERIZE",class:"p5",module:"Constants"},DILATE:{name:"DILATE",class:"p5",module:"Constants"},ERODE:{name:"ERODE",class:"p5",module:"Constants"},BLUR:{name:"BLUR",class:"p5",module:"Constants"},NORMAL:{name:"NORMAL",class:"p5",module:"Constants"},ITALIC:{name:"ITALIC",class:"p5",module:"Constants"},BOLD:{name:"BOLD",class:"p5",module:"Constants"},BOLDITALIC:{name:"BOLDITALIC",class:"p5",module:"Constants"},CHAR:{name:"CHAR",class:"p5",module:"Constants"},WORD:{name:"WORD",class:"p5",module:"Constants"},LINEAR:{name:"LINEAR",class:"p5",module:"Constants"},QUADRATIC:{name:"QUADRATIC",class:"p5",module:"Constants"},BEZIER:{name:"BEZIER",class:"p5",module:"Constants"},CURVE:{name:"CURVE",class:"p5",module:"Constants"},STROKE:{name:"STROKE",class:"p5",module:"Constants"},FILL:{name:"FILL",class:"p5",module:"Constants"},TEXTURE:{name:"TEXTURE",class:"p5",module:"Constants"},IMMEDIATE:{name:"IMMEDIATE",class:"p5",module:"Constants"},IMAGE:{name:"IMAGE",class:"p5",module:"Constants"},NEAREST:{name:"NEAREST",class:"p5",module:"Constants"},REPEAT:{name:"REPEAT",class:"p5",module:"Constants"},CLAMP:{name:"CLAMP",class:"p5",module:"Constants"},MIRROR:{name:"MIRROR",class:"p5",module:"Constants"},LANDSCAPE:{name:"LANDSCAPE",class:"p5",module:"Constants"},PORTRAIT:{name:"PORTRAIT",class:"p5",module:"Constants"},GRID:{name:"GRID",class:"p5",module:"Constants"},AXES:{name:"AXES",class:"p5",module:"Constants"},LABEL:{name:"LABEL",class:"p5",module:"Constants"},FALLBACK:{name:"FALLBACK",class:"p5",module:"Constants"},print:{name:"print",params:[{name:"contents",description:"<p>any combination of Number, String, Object, Boolean,\n Array to print</p>\n",type:"Any"}],class:"p5",module:"Environment"},frameCount:{name:"frameCount",class:"p5",module:"Environment"},deltaTime:{name:"deltaTime",class:"p5",module:"Environment"},focused:{name:"focused",class:"p5",module:"Environment"},cursor:{name:"cursor",params:[{name:"type",description:"<p>Built-In: either ARROW, CROSS, HAND, MOVE, TEXT and WAIT\n Native CSS properties: 'grab', 'progress', 'cell' etc.\n External: path for cursor's images\n (Allowed File extensions: .cur, .gif, .jpg, .jpeg, .png)\n For more information on Native CSS cursors and url visit:\n <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/cursor\">https://developer.mozilla.org/en-US/docs/Web/CSS/cursor</a></p>\n",type:"String|Constant"},{name:"x",description:"<p>the horizontal active spot of the cursor (must be less than 32)</p>\n",type:"Number",optional:!0},{name:"y",description:"<p>the vertical active spot of the cursor (must be less than 32)</p>\n",type:"Number",optional:!0}],class:"p5",module:"Environment"},frameRate:{name:"frameRate",class:"p5",module:"Environment",overloads:[{params:[{name:"fps",description:"<p>number of frames to be displayed every second</p>\n",type:"Number"}],chainable:1},{params:[]}]},noCursor:{name:"noCursor",class:"p5",module:"Environment"},displayWidth:{name:"displayWidth",class:"p5",module:"Environment"},displayHeight:{name:"displayHeight",class:"p5",module:"Environment"},windowWidth:{name:"windowWidth",class:"p5",module:"Environment"},windowHeight:{name:"windowHeight",class:"p5",module:"Environment"},windowResized:{name:"windowResized",params:[{name:"event",description:"<p>optional Event callback argument.</p>\n",type:"Object",optional:!0}],class:"p5",module:"Environment"},width:{name:"width",class:"p5",module:"Environment"},height:{name:"height",class:"p5",module:"Environment"},fullscreen:{name:"fullscreen",params:[{name:"val",description:"<p>whether the sketch should be in fullscreen mode\nor not</p>\n",type:"Boolean",optional:!0}],class:"p5",module:"Environment"},pixelDensity:{name:"pixelDensity",class:"p5",module:"Environment",overloads:[{params:[{name:"val",description:"<p>whether or how much the sketch should scale</p>\n",type:"Number"}],chainable:1},{params:[]}]},displayDensity:{name:"displayDensity",class:"p5",module:"Environment"},getURL:{name:"getURL",class:"p5",module:"Environment"},getURLPath:{name:"getURLPath",class:"p5",module:"Environment"},getURLParams:{name:"getURLParams",class:"p5",module:"Environment"},preload:{name:"preload",class:"p5",module:"Structure"},setup:{name:"setup",class:"p5",module:"Structure"},draw:{name:"draw",class:"p5",module:"Structure"},remove:{name:"remove",class:"p5",module:"Structure"},disableFriendlyErrors:{name:"disableFriendlyErrors",class:"p5",module:"Structure"},let:{name:"let",class:"p5",module:"Foundation"},const:{name:"const",class:"p5",module:"Foundation"},"===":{name:"===",class:"p5",module:"Foundation"},">":{name:">",class:"p5",module:"Foundation"},">=":{name:">=",class:"p5",module:"Foundation"},"<":{name:"<",class:"p5",module:"Foundation"},"<=":{name:"<=",class:"p5",module:"Foundation"},"if-else":{name:"if-else",class:"p5",module:"Foundation"},function:{name:"function",class:"p5",module:"Foundation"},return:{name:"return",class:"p5",module:"Foundation"},boolean:{name:"boolean",params:[{name:"n",description:"<p>value to parse</p>\n",type:"String|Boolean|Number|Array"}],class:"p5",module:"Data"},string:{name:"string",class:"p5",module:"Foundation"},number:{name:"number",class:"p5",module:"Foundation"},object:{name:"object",class:"p5",module:"Foundation"},class:{name:"class",class:"p5",module:"Foundation"},for:{name:"for",class:"p5",module:"Foundation"},while:{name:"while",class:"p5",module:"Foundation"},createCanvas:{name:"createCanvas",params:[{name:"w",description:"<p>width of the canvas</p>\n",type:"Number"},{name:"h",description:"<p>height of the canvas</p>\n",type:"Number"},{name:"renderer",description:"<p>either P2D or WEBGL</p>\n",type:"Constant",optional:!0}],class:"p5",module:"Rendering"},resizeCanvas:{name:"resizeCanvas",params:[{name:"w",description:"<p>width of the canvas</p>\n",type:"Number"},{name:"h",description:"<p>height of the canvas</p>\n",type:"Number"},{name:"noRedraw",description:"<p>don't redraw the canvas immediately</p>\n",type:"Boolean",optional:!0}],class:"p5",module:"Rendering"},noCanvas:{name:"noCanvas",class:"p5",module:"Rendering"},createGraphics:{name:"createGraphics",params:[{name:"w",description:"<p>width of the offscreen graphics buffer</p>\n",type:"Number"},{name:"h",description:"<p>height of the offscreen graphics buffer</p>\n",type:"Number"},{name:"renderer",description:"<p>either P2D or WEBGL\n undefined defaults to p2d</p>\n",type:"Constant",optional:!0}],class:"p5",module:"Rendering"},blendMode:{name:"blendMode",params:[{name:"mode",description:"<p>blend mode to set for canvas.\n either BLEND, DARKEST, LIGHTEST, DIFFERENCE, MULTIPLY,\n EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,\n SOFT_LIGHT, DODGE, BURN, ADD, REMOVE or SUBTRACT</p>\n",type:"Constant"}],class:"p5",module:"Rendering"},drawingContext:{name:"drawingContext",class:"p5",module:"Rendering"},noLoop:{name:"noLoop",class:"p5",module:"Structure"},loop:{name:"loop",class:"p5",module:"Structure"},isLooping:{name:"isLooping",class:"p5",module:"Structure"},push:{name:"push",class:"p5",module:"Structure"},pop:{name:"pop",class:"p5",module:"Structure"},redraw:{name:"redraw",params:[{name:"n",description:"<p>Redraw for n-times. The default value is 1.</p>\n",type:"Integer",optional:!0}],class:"p5",module:"Structure"},p5:{name:"p5",params:[{name:"sketch",description:"<p>a function containing a p5.js sketch</p>\n",type:"Object"},{name:"node",description:"<p>ID or pointer to HTML DOM node to contain sketch in</p>\n",type:"String|Object"}],class:"p5",module:"Structure"},applyMatrix:{name:"applyMatrix",class:"p5",module:"Transform",overloads:[{params:[{name:"arr",description:"<p>an array of numbers - should be 6 or 16 length (2<em>3 or 4</em>4 matrix values)</p>\n",type:"Array"}],chainable:1},{params:[{name:"a",description:"<p>numbers which define the 2×3 or 4x4 matrix to be multiplied</p>\n",type:"Number"},{name:"b",description:"<p>numbers which define the 2×3 or 4x4 matrix to be multiplied</p>\n",type:"Number"},{name:"c",description:"<p>numbers which define the 2×3 or 4x4 matrix to be multiplied</p>\n",type:"Number"},{name:"d",description:"<p>numbers which define the 2×3 or 4x4 matrix to be multiplied</p>\n",type:"Number"},{name:"e",description:"<p>numbers which define the 2×3 or 4x4 matrix to be multiplied</p>\n",type:"Number"},{name:"f",description:"<p>numbers which define the 2×3 or 4x4 matrix to be multiplied</p>\n",type:"Number"}],chainable:1},{params:[{name:"a",description:"",type:"Number"},{name:"b",description:"",type:"Number"},{name:"c",description:"",type:"Number"},{name:"d",description:"",type:"Number"},{name:"e",description:"",type:"Number"},{name:"f",description:"",type:"Number"},{name:"g",description:"<p>numbers which define the 4x4 matrix to be multiplied</p>\n",type:"Number"},{name:"h",description:"<p>numbers which define the 4x4 matrix to be multiplied</p>\n",type:"Number"},{name:"i",description:"<p>numbers which define the 4x4 matrix to be multiplied</p>\n",type:"Number"},{name:"j",description:"<p>numbers which define the 4x4 matrix to be multiplied</p>\n",type:"Number"},{name:"k",description:"<p>numbers which define the 4x4 matrix to be multiplied</p>\n",type:"Number"},{name:"l",description:"<p>numbers which define the 4x4 matrix to be multiplied</p>\n",type:"Number"},{name:"m",description:"<p>numbers which define the 4x4 matrix to be multiplied</p>\n",type:"Number"},{name:"n",description:"<p>numbers which define the 4x4 matrix to be multiplied</p>\n",type:"Number"},{name:"o",description:"<p>numbers which define the 4x4 matrix to be multiplied</p>\n",type:"Number"},{name:"p",description:"<p>numbers which define the 4x4 matrix to be multiplied</p>\n",type:"Number"}],chainable:1}]},resetMatrix:{name:"resetMatrix",class:"p5",module:"Transform"},rotate:{name:"rotate",params:[{name:"angle",description:"<p>the angle of rotation, specified in radians\n or degrees, depending on current angleMode</p>\n",type:"Number"},{name:"axis",description:"<p>(in 3d) the axis to rotate around</p>\n",type:"p5.Vector|Number[]",optional:!0}],class:"p5",module:"Transform"},rotateX:{name:"rotateX",params:[{name:"angle",description:"<p>the angle of rotation, specified in radians\n or degrees, depending on current angleMode</p>\n",type:"Number"}],class:"p5",module:"Transform"},rotateY:{name:"rotateY",params:[{name:"angle",description:"<p>the angle of rotation, specified in radians\n or degrees, depending on current angleMode</p>\n",type:"Number"}],class:"p5",module:"Transform"},rotateZ:{name:"rotateZ",params:[{name:"angle",description:"<p>the angle of rotation, specified in radians\n or degrees, depending on current angleMode</p>\n",type:"Number"}],class:"p5",module:"Transform"},scale:{name:"scale",class:"p5",module:"Transform",overloads:[{params:[{name:"s",description:"<p>percent to scale the object, or percentage to\n scale the object in the x-axis if multiple arguments\n are given</p>\n",type:"Number|p5.Vector|Number[]"},{name:"y",description:"<p>percent to scale the object in the y-axis</p>\n",type:"Number",optional:!0},{name:"z",description:"<p>percent to scale the object in the z-axis (webgl only)</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"scales",description:"<p>per-axis percents to scale the object</p>\n",type:"p5.Vector|Number[]"}],chainable:1}]},shearX:{name:"shearX",params:[{name:"angle",description:"<p>angle of shear specified in radians or degrees,\n depending on current angleMode</p>\n",type:"Number"}],class:"p5",module:"Transform"},shearY:{name:"shearY",params:[{name:"angle",description:"<p>angle of shear specified in radians or degrees,\n depending on current angleMode</p>\n",type:"Number"}],class:"p5",module:"Transform"},translate:{name:"translate",class:"p5",module:"Transform",overloads:[{params:[{name:"x",description:"<p>left/right translation</p>\n",type:"Number"},{name:"y",description:"<p>up/down translation</p>\n",type:"Number"},{name:"z",description:"<p>forward/backward translation (WEBGL only)</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"vector",description:"<p>the vector to translate by</p>\n",type:"p5.Vector"}],chainable:1}]},storeItem:{name:"storeItem",params:[{name:"key",description:"",type:"String"},{name:"value",description:"",type:"String|Number|Object|Boolean|p5.Color|p5.Vector"}],class:"p5",module:"Data"},getItem:{name:"getItem",params:[{name:"key",description:"<p>name that you wish to use to store in local storage</p>\n",type:"String"}],class:"p5",module:"Data"},clearStorage:{name:"clearStorage",class:"p5",module:"Data"},removeItem:{name:"removeItem",params:[{name:"key",description:"",type:"String"}],class:"p5",module:"Data"},createStringDict:{name:"createStringDict",class:"p5",module:"Data",overloads:[{params:[{name:"key",description:"",type:"String"},{name:"value",description:"",type:"String"}]},{params:[{name:"object",description:"<p>object</p>\n",type:"Object"}]}]},createNumberDict:{name:"createNumberDict",class:"p5",module:"Data",overloads:[{params:[{name:"key",description:"",type:"Number"},{name:"value",description:"",type:"Number"}]},{params:[{name:"object",description:"<p>object</p>\n",type:"Object"}]}]},select:{name:"select",params:[{name:"selectors",description:"<p>CSS selector string of element to search for</p>\n",type:"String"},{name:"container",description:'<p>CSS selector string, <a href="#/p5.Element">p5.Element</a>, or\n HTML element to search within</p>\n',type:"String|p5.Element|HTMLElement",optional:!0}],class:"p5",module:"DOM"},selectAll:{name:"selectAll",params:[{name:"selectors",description:"<p>CSS selector string of elements to search for</p>\n",type:"String"},{name:"container",description:'<p>CSS selector string, <a href="#/p5.Element">p5.Element</a>\n , or HTML element to search within</p>\n',type:"String|p5.Element|HTMLElement",optional:!0}],class:"p5",module:"DOM"},removeElements:{name:"removeElements",class:"p5",module:"DOM"},changed:{name:"changed",params:[{name:"fxn",description:"<p>function to be fired when the value of\n an element changes.\n if <code>false</code> is passed instead, the previously\n firing function will no longer fire.</p>\n",type:"Function|Boolean"}],class:"p5",module:"DOM"},input:{name:"input",params:[{name:"fxn",description:"<p>function to be fired when any user input is\n detected within the element.\n if <code>false</code> is passed instead, the previously\n firing function will no longer fire.</p>\n",type:"Function|Boolean"}],class:"p5",module:"DOM"},createDiv:{name:"createDiv",params:[{name:"html",description:"<p>inner HTML for element created</p>\n",type:"String",optional:!0}],class:"p5",module:"DOM"},createP:{name:"createP",params:[{name:"html",description:"<p>inner HTML for element created</p>\n",type:"String",optional:!0}],class:"p5",module:"DOM"},createSpan:{name:"createSpan",params:[{name:"html",description:"<p>inner HTML for element created</p>\n",type:"String",optional:!0}],class:"p5",module:"DOM"},createImg:{name:"createImg",class:"p5",module:"DOM",overloads:[{params:[{name:"src",description:"<p>src path or url for image</p>\n",type:"String"},{name:"alt",description:'<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Img#Attributes">alternate text</a> to be used if image does not load. You can use also an empty string (<code>""</code>) if that an image is not intended to be viewed.</p>\n',type:"String"}]},{params:[{name:"src",description:"",type:"String"},{name:"alt",description:"",type:"String"},{name:"crossOrigin",description:"<p><a href=\"https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes\">crossOrigin property</a> of the <code>img</code> element; use either 'anonymous' or 'use-credentials' to retrieve the image with cross-origin access (for later use with <code>canvas</code>. if an empty string(<code>\"\"</code>) is passed, CORS is not used</p>\n",type:"String"},{name:"successCallback",description:'<p>callback to be called once image data is loaded with the <a href="#/p5.Element">p5.Element</a> as argument</p>\n',type:"Function",optional:!0}]}]},createA:{name:"createA",params:[{name:"href",description:"<p>url of page to link to</p>\n",type:"String"},{name:"html",description:"<p>inner html of link element to display</p>\n",type:"String"},{name:"target",description:"<p>target where new link should open,\n could be _blank, _self, _parent, _top.</p>\n",type:"String",optional:!0}],class:"p5",module:"DOM"},createSlider:{name:"createSlider",params:[{name:"min",description:"<p>minimum value of the slider</p>\n",type:"Number"},{name:"max",description:"<p>maximum value of the slider</p>\n",type:"Number"},{name:"value",description:"<p>default value of the slider</p>\n",type:"Number",optional:!0},{name:"step",description:"<p>step size for each tick of the slider (if step is set to 0, the slider will move continuously from the minimum to the maximum value)</p>\n",type:"Number",optional:!0}],class:"p5",module:"DOM"},createButton:{name:"createButton",params:[{name:"label",description:"<p>label displayed on the button</p>\n",type:"String"},{name:"value",description:"<p>value of the button</p>\n",type:"String",optional:!0}],class:"p5",module:"DOM"},createCheckbox:{name:"createCheckbox",params:[{name:"label",description:"<p>label displayed after checkbox</p>\n",type:"String",optional:!0},{name:"value",description:"<p>value of the checkbox; checked is true, unchecked is false</p>\n",type:"Boolean",optional:!0}],class:"p5",module:"DOM"},createSelect:{name:"createSelect",class:"p5",module:"DOM",overloads:[{params:[{name:"multiple",description:"<p>true if dropdown should support multiple selections</p>\n",type:"Boolean",optional:!0}]},{params:[{name:"existing",description:"<p>DOM select element</p>\n",type:"Object"}]}]},createRadio:{name:"createRadio",class:"p5",module:"DOM",overloads:[{params:[{name:"containerElement",description:"<p>A container HTML Element, either a div\nor span, inside which all existing radio inputs will be considered as options.</p>\n",type:"Object"},{name:"name",description:"<p>A name parameter for each Input Element.</p>\n",type:"String",optional:!0}]},{params:[{name:"name",description:"",type:"String"}]},{params:[]}]},createColorPicker:{name:"createColorPicker",params:[{name:"value",description:"<p>default color of element</p>\n",type:"String|p5.Color",optional:!0}],class:"p5",module:"DOM"},createInput:{name:"createInput",class:"p5",module:"DOM",overloads:[{params:[{name:"value",description:"<p>default value of the input box</p>\n",type:"String"},{name:"type",description:"<p>type of text, ie text, password etc. Defaults to text.\n Needs a value to be specified first.</p>\n",type:"String",optional:!0}]},{params:[{name:"value",description:"",type:"String",optional:!0}]}]},createFileInput:{name:"createFileInput",params:[{name:"callback",description:"<p>callback function for when a file is loaded</p>\n",type:"Function"},{name:"multiple",description:"<p>optional, to allow multiple files to be selected</p>\n",type:"Boolean",optional:!0}],class:"p5",module:"DOM"},createVideo:{name:"createVideo",params:[{name:"src",description:"<p>path to a video file, or array of paths for\n supporting different browsers</p>\n",type:"String|String[]"},{name:"callback",description:"<p>callback function to be called upon\n 'canplaythrough' event fire, that is, when the\n browser can play the media, and estimates that\n enough data has been loaded to play the media\n up to its end without having to stop for\n further buffering of content</p>\n",type:"Function",optional:!0}],class:"p5",module:"DOM"},createAudio:{name:"createAudio",params:[{name:"src",description:"<p>path to an audio file, or array of paths\n for supporting different browsers</p>\n",type:"String|String[]",optional:!0},{name:"callback",description:"<p>callback function to be called upon\n 'canplaythrough' event fire, that is, when the\n browser can play the media, and estimates that\n enough data has been loaded to play the media\n up to its end without having to stop for\n further buffering of content</p>\n",type:"Function",optional:!0}],class:"p5",module:"DOM"},VIDEO:{name:"VIDEO",class:"p5",module:"DOM"},AUDIO:{name:"AUDIO",class:"p5",module:"DOM"},createCapture:{name:"createCapture",params:[{name:"type",description:"<p>type of capture, either VIDEO or\n AUDIO if none specified, default both,\n or a Constraints object</p>\n",type:"String|Constant|Object"},{name:"callback",description:"<p>function to be called once\n stream has loaded</p>\n",type:"Function",optional:!0}],class:"p5",module:"DOM"},createElement:{name:"createElement",params:[{name:"tag",description:"<p>tag for the new element</p>\n",type:"String"},{name:"content",description:"<p>html content to be inserted into the element</p>\n",type:"String",optional:!0}],class:"p5",module:"DOM"},deviceOrientation:{name:"deviceOrientation",class:"p5",module:"Events"},accelerationX:{name:"accelerationX",class:"p5",module:"Events"},accelerationY:{name:"accelerationY",class:"p5",module:"Events"},accelerationZ:{name:"accelerationZ",class:"p5",module:"Events"},pAccelerationX:{name:"pAccelerationX",class:"p5",module:"Events"},pAccelerationY:{name:"pAccelerationY",class:"p5",module:"Events"},pAccelerationZ:{name:"pAccelerationZ",class:"p5",module:"Events"},rotationX:{name:"rotationX",class:"p5",module:"Events"},rotationY:{name:"rotationY",class:"p5",module:"Events"},rotationZ:{name:"rotationZ",class:"p5",module:"Events"},pRotationX:{name:"pRotationX",class:"p5",module:"Events"},pRotationY:{name:"pRotationY",class:"p5",module:"Events"},pRotationZ:{name:"pRotationZ",class:"p5",module:"Events"},turnAxis:{name:"turnAxis",class:"p5",module:"Events"},setMoveThreshold:{name:"setMoveThreshold",params:[{name:"value",description:"<p>The threshold value</p>\n",type:"Number"}],class:"p5",module:"Events"},setShakeThreshold:{name:"setShakeThreshold",params:[{name:"value",description:"<p>The threshold value</p>\n",type:"Number"}],class:"p5",module:"Events"},deviceMoved:{name:"deviceMoved",class:"p5",module:"Events"},deviceTurned:{name:"deviceTurned",class:"p5",module:"Events"},deviceShaken:{name:"deviceShaken",class:"p5",module:"Events"},keyIsPressed:{name:"keyIsPressed",class:"p5",module:"Events"},key:{name:"key",class:"p5",module:"Events"},keyCode:{name:"keyCode",class:"p5",module:"Events"},keyPressed:{name:"keyPressed",params:[{name:"event",description:"<p>optional KeyboardEvent callback argument.</p>\n",type:"Object",optional:!0}],class:"p5",module:"Events"},keyReleased:{name:"keyReleased",params:[{name:"event",description:"<p>optional KeyboardEvent callback argument.</p>\n",type:"Object",optional:!0}],class:"p5",module:"Events"},keyTyped:{name:"keyTyped",params:[{name:"event",description:"<p>optional KeyboardEvent callback argument.</p>\n",type:"Object",optional:!0}],class:"p5",module:"Events"},keyIsDown:{name:"keyIsDown",params:[{name:"code",description:"<p>The key to check for.</p>\n",type:"Number"}],class:"p5",module:"Events"},movedX:{name:"movedX",class:"p5",module:"Events"},movedY:{name:"movedY",class:"p5",module:"Events"},mouseX:{name:"mouseX",class:"p5",module:"Events"},mouseY:{name:"mouseY",class:"p5",module:"Events"},pmouseX:{name:"pmouseX",class:"p5",module:"Events"},pmouseY:{name:"pmouseY",class:"p5",module:"Events"},winMouseX:{name:"winMouseX",class:"p5",module:"Events"},winMouseY:{name:"winMouseY",class:"p5",module:"Events"},pwinMouseX:{name:"pwinMouseX",class:"p5",module:"Events"},pwinMouseY:{name:"pwinMouseY",class:"p5",module:"Events"},mouseButton:{name:"mouseButton",class:"p5",module:"Events"},mouseIsPressed:{name:"mouseIsPressed",class:"p5",module:"Events"},mouseMoved:{name:"mouseMoved",params:[{name:"event",description:"<p>optional MouseEvent callback argument.</p>\n",type:"Object",optional:!0}],class:"p5",module:"Events"},mouseDragged:{name:"mouseDragged",params:[{name:"event",description:"<p>optional MouseEvent callback argument.</p>\n",type:"Object",optional:!0}],class:"p5",module:"Events"},mousePressed:{name:"mousePressed",params:[{name:"event",description:"<p>optional MouseEvent callback argument.</p>\n",type:"Object",optional:!0}],class:"p5",module:"Events"},mouseReleased:{name:"mouseReleased",params:[{name:"event",description:"<p>optional MouseEvent callback argument.</p>\n",type:"Object",optional:!0}],class:"p5",module:"Events"},mouseClicked:{name:"mouseClicked",params:[{name:"event",description:"<p>optional MouseEvent callback argument.</p>\n",type:"Object",optional:!0}],class:"p5",module:"Events"},doubleClicked:{name:"doubleClicked",params:[{name:"event",description:"<p>optional MouseEvent callback argument.</p>\n",type:"Object",optional:!0}],class:"p5",module:"Events"},mouseWheel:{name:"mouseWheel",params:[{name:"event",description:"<p>optional WheelEvent callback argument.</p>\n",type:"Object",optional:!0}],class:"p5",module:"Events"},requestPointerLock:{name:"requestPointerLock",class:"p5",module:"Events"},exitPointerLock:{name:"exitPointerLock",class:"p5",module:"Events"},touches:{name:"touches",class:"p5",module:"Events"},touchStarted:{name:"touchStarted",params:[{name:"event",description:"<p>optional TouchEvent callback argument.</p>\n",type:"Object",optional:!0}],class:"p5",module:"Events"},touchMoved:{name:"touchMoved",params:[{name:"event",description:"<p>optional TouchEvent callback argument.</p>\n",type:"Object",optional:!0}],class:"p5",module:"Events"},touchEnded:{name:"touchEnded",params:[{name:"event",description:"<p>optional TouchEvent callback argument.</p>\n",type:"Object",optional:!0}],class:"p5",module:"Events"},createImage:{name:"createImage",params:[{name:"width",description:"<p>width in pixels</p>\n",type:"Integer"},{name:"height",description:"<p>height in pixels</p>\n",type:"Integer"}],class:"p5",module:"Image"},saveCanvas:{name:"saveCanvas",class:"p5",module:"Image",overloads:[{params:[{name:"selectedCanvas",description:"<p>a variable\n representing a specific html5 canvas (optional)</p>\n",type:"p5.Element|HTMLCanvasElement"},{name:"filename",description:"",type:"String",optional:!0},{name:"extension",description:"<p>'jpg' or 'png'</p>\n",type:"String",optional:!0}]},{params:[{name:"filename",description:"",type:"String",optional:!0},{name:"extension",description:"",type:"String",optional:!0}]}]},saveFrames:{name:"saveFrames",params:[{name:"filename",description:"",type:"String"},{name:"extension",description:"<p>'jpg' or 'png'</p>\n",type:"String"},{name:"duration",description:"<p>Duration in seconds to save the frames for.</p>\n",type:"Number"},{name:"framerate",description:"<p>Framerate to save the frames in.</p>\n",type:"Number"},{name:"callback",description:"<p>A callback function that will be executed\n to handle the image data. This function\n should accept an array as argument. The\n array will contain the specified number of\n frames of objects. Each object has three\n properties: imageData - an\n image/octet-stream, filename and extension.</p>\n",type:"Function(Array)",optional:!0}],class:"p5",module:"Image"},loadImage:{name:"loadImage",params:[{name:"path",description:"<p>Path of the image to be loaded</p>\n",type:"String"},{name:"successCallback",description:'<p>Function to be called once\n the image is loaded. Will be passed the\n <a href="#/p5.Image">p5.Image</a>.</p>\n',type:"function(p5.Image)",optional:!0},{name:"failureCallback",description:"<p>called with event error if\n the image fails to load.</p>\n",type:"Function(Event)",optional:!0}],class:"p5",module:"Image"},saveGif:{name:"saveGif",params:[{name:"filename",description:"<p>File name of your gif</p>\n",type:"String"},{name:"duration",description:"<p>Duration in seconds that you wish to capture from your sketch</p>\n",type:"String"},{name:"delay",description:"<p>Duration in seconds that you wish to wait before starting to capture</p>\n",type:"String"}],class:"p5",module:"Image"},image:{name:"image",class:"p5",module:"Image",overloads:[{params:[{name:"img",description:"<p>the image to display</p>\n",type:"p5.Image|p5.Element|p5.Texture"},{name:"x",description:"<p>the x-coordinate of the top-left corner of the image</p>\n",type:"Number"},{name:"y",description:"<p>the y-coordinate of the top-left corner of the image</p>\n",type:"Number"},{name:"width",description:"<p>the width to draw the image</p>\n",type:"Number",optional:!0},{name:"height",description:"<p>the height to draw the image</p>\n",type:"Number",optional:!0}]},{params:[{name:"img",description:"",type:"p5.Image|p5.Element|p5.Texture"},{name:"dx",description:"<p>the x-coordinate of the destination\n rectangle in which to draw the source image</p>\n",type:"Number"},{name:"dy",description:"<p>the y-coordinate of the destination\n rectangle in which to draw the source image</p>\n",type:"Number"},{name:"dWidth",description:"<p>the width of the destination rectangle</p>\n",type:"Number"},{name:"dHeight",description:"<p>the height of the destination rectangle</p>\n",type:"Number"},{name:"sx",description:"<p>the x-coordinate of the subsection of the source\nimage to draw into the destination rectangle</p>\n",type:"Number"},{name:"sy",description:"<p>the y-coordinate of the subsection of the source\nimage to draw into the destination rectangle</p>\n",type:"Number"},{name:"sWidth",description:"<p>the width of the subsection of the\n source image to draw into the destination\n rectangle</p>\n",type:"Number",optional:!0},{name:"sHeight",description:"<p>the height of the subsection of the\n source image to draw into the destination rectangle</p>\n",type:"Number",optional:!0}]}]},tint:{name:"tint",class:"p5",module:"Image",overloads:[{params:[{name:"v1",description:"<p>red or hue value relative to\n the current color range</p>\n",type:"Number"},{name:"v2",description:"<p>green or saturation value\n relative to the current color range</p>\n",type:"Number"},{name:"v3",description:"<p>blue or brightness value\n relative to the current color range</p>\n",type:"Number"},{name:"alpha",description:"",type:"Number",optional:!0}]},{params:[{name:"value",description:"<p>a color string</p>\n",type:"String"}]},{params:[{name:"gray",description:"<p>a gray value</p>\n",type:"Number"},{name:"alpha",description:"",type:"Number",optional:!0}]},{params:[{name:"values",description:"<p>an array containing the red,green,blue &\n and alpha components of the color</p>\n",type:"Number[]"}]},{params:[{name:"color",description:"<p>the tint color</p>\n",type:"p5.Color"}]}]},noTint:{name:"noTint",class:"p5",module:"Image"},imageMode:{name:"imageMode",params:[{name:"mode",description:"<p>either CORNER, CORNERS, or CENTER</p>\n",type:"Constant"}],class:"p5",module:"Image"},pixels:{name:"pixels",class:"p5",module:"Image"},blend:{name:"blend",class:"p5",module:"Image",overloads:[{params:[{name:"srcImage",description:"<p>source image</p>\n",type:"p5.Image"},{name:"sx",description:"<p>X coordinate of the source's upper left corner</p>\n",type:"Integer"},{name:"sy",description:"<p>Y coordinate of the source's upper left corner</p>\n",type:"Integer"},{name:"sw",description:"<p>source image width</p>\n",type:"Integer"},{name:"sh",description:"<p>source image height</p>\n",type:"Integer"},{name:"dx",description:"<p>X coordinate of the destination's upper left corner</p>\n",type:"Integer"},{name:"dy",description:"<p>Y coordinate of the destination's upper left corner</p>\n",type:"Integer"},{name:"dw",description:"<p>destination image width</p>\n",type:"Integer"},{name:"dh",description:"<p>destination image height</p>\n",type:"Integer"},{name:"blendMode",description:"<p>the blend mode. either\n BLEND, DARKEST, LIGHTEST, DIFFERENCE,\n MULTIPLY, EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,\n SOFT_LIGHT, DODGE, BURN, ADD or NORMAL.</p>\n",type:"Constant"}]},{params:[{name:"sx",description:"",type:"Integer"},{name:"sy",description:"",type:"Integer"},{name:"sw",description:"",type:"Integer"},{name:"sh",description:"",type:"Integer"},{name:"dx",description:"",type:"Integer"},{name:"dy",description:"",type:"Integer"},{name:"dw",description:"",type:"Integer"},{name:"dh",description:"",type:"Integer"},{name:"blendMode",description:"",type:"Constant"}]}]},copy:{name:"copy",class:"p5",module:"Image",overloads:[{params:[{name:"srcImage",description:"<p>source image</p>\n",type:"p5.Image|p5.Element"},{name:"sx",description:"<p>X coordinate of the source's upper left corner</p>\n",type:"Integer"},{name:"sy",description:"<p>Y coordinate of the source's upper left corner</p>\n",type:"Integer"},{name:"sw",description:"<p>source image width</p>\n",type:"Integer"},{name:"sh",description:"<p>source image height</p>\n",type:"Integer"},{name:"dx",description:"<p>X coordinate of the destination's upper left corner</p>\n",type:"Integer"},{name:"dy",description:"<p>Y coordinate of the destination's upper left corner</p>\n",type:"Integer"},{name:"dw",description:"<p>destination image width</p>\n",type:"Integer"},{name:"dh",description:"<p>destination image height</p>\n",type:"Integer"}]},{params:[{name:"sx",description:"",type:"Integer"},{name:"sy",description:"",type:"Integer"},{name:"sw",description:"",type:"Integer"},{name:"sh",description:"",type:"Integer"},{name:"dx",description:"",type:"Integer"},{name:"dy",description:"",type:"Integer"},{name:"dw",description:"",type:"Integer"},{name:"dh",description:"",type:"Integer"}]}]},filter:{name:"filter",params:[{name:"filterType",description:"<p>either THRESHOLD, GRAY, OPAQUE, INVERT,\n POSTERIZE, BLUR, ERODE, DILATE or BLUR.\n See Filters.js for docs on\n each available filter</p>\n",type:"Constant"},{name:"filterParam",description:"<p>an optional parameter unique\n to each filter, see above</p>\n",type:"Number",optional:!0}],class:"p5",module:"Image"},get:{name:"get",class:"p5",module:"Image",overloads:[{params:[{name:"x",description:"<p>x-coordinate of the pixel</p>\n",type:"Number"},{name:"y",description:"<p>y-coordinate of the pixel</p>\n",type:"Number"},{name:"w",description:"<p>width</p>\n",type:"Number"},{name:"h",description:"<p>height</p>\n",type:"Number"}]},{params:[]},{params:[{name:"x",description:"",type:"Number"},{name:"y",description:"",type:"Number"}]}]},loadPixels:{name:"loadPixels",class:"p5",module:"Image"},set:{name:"set",params:[{name:"x",description:"<p>x-coordinate of the pixel</p>\n",type:"Number"},{name:"y",description:"<p>y-coordinate of the pixel</p>\n",type:"Number"},{name:"c",description:'<p>insert a grayscale value | a pixel array |\n a <a href="#/p5.Color">p5.Color</a> object | a <a href="#/p5.Image">p5.Image</a> to copy</p>\n',type:"Number|Number[]|Object"}],class:"p5",module:"Image"},updatePixels:{name:"updatePixels",params:[{name:"x",description:"<p>x-coordinate of the upper-left corner of region\n to update</p>\n",type:"Number",optional:!0},{name:"y",description:"<p>y-coordinate of the upper-left corner of region\n to update</p>\n",type:"Number",optional:!0},{name:"w",description:"<p>width of region to update</p>\n",type:"Number",optional:!0},{name:"h",description:"<p>height of region to update</p>\n",type:"Number",optional:!0}],class:"p5",module:"Image"},loadJSON:{name:"loadJSON",class:"p5",module:"IO",overloads:[{params:[{name:"path",description:"<p>name of the file or url to load</p>\n",type:"String"},{name:"jsonpOptions",description:"<p>options object for jsonp related settings</p>\n",type:"Object",optional:!0},{name:"datatype",description:'<p>"json" or "jsonp"</p>\n',type:"String",optional:!0},{name:"callback",description:'<p>function to be executed after\n <a href="#/p5/loadJSON">loadJSON()</a> completes, data is passed\n in as first argument</p>\n',type:"Function",optional:!0},{name:"errorCallback",description:"<p>function to be executed if\n there is an error, response is passed\n in as first argument</p>\n",type:"Function",optional:!0}]},{params:[{name:"path",description:"",type:"String"},{name:"datatype",description:"",type:"String"},{name:"callback",description:"",type:"Function",optional:!0},{name:"errorCallback",description:"",type:"Function",optional:!0}]},{params:[{name:"path",description:"",type:"String"},{name:"callback",description:"",type:"Function"},{name:"errorCallback",description:"",type:"Function",optional:!0}]}]},loadStrings:{name:"loadStrings",params:[{name:"filename",description:"<p>name of the file or url to load</p>\n",type:"String"},{name:"callback",description:'<p>function to be executed after <a href="#/p5/loadStrings">loadStrings()</a>\n completes, Array is passed in as first\n argument</p>\n',type:"Function",optional:!0},{name:"errorCallback",description:"<p>function to be executed if\n there is an error, response is passed\n in as first argument</p>\n",type:"Function",optional:!0}],class:"p5",module:"IO"},loadTable:{name:"loadTable",params:[{name:"filename",description:"<p>name of the file or URL to load</p>\n",type:"String"},{name:"extension",description:'<p>parse the table by comma-separated values "csv", semicolon-separated\n values "ssv", or tab-separated values "tsv"</p>\n',type:"String",optional:!0},{name:"header",description:'<p>"header" to indicate table has header row</p>\n',type:"String",optional:!0},{name:"callback",description:'<p>function to be executed after\n <a href="#/p5/loadTable">loadTable()</a> completes. On success, the\n <a href="#/p5.Table">Table</a> object is passed in as the\n first argument.</p>\n',type:"Function",optional:!0},{name:"errorCallback",description:"<p>function to be executed if\n there is an error, response is passed\n in as first argument</p>\n",type:"Function",optional:!0}],class:"p5",module:"IO"},loadXML:{name:"loadXML",params:[{name:"filename",description:"<p>name of the file or URL to load</p>\n",type:"String"},{name:"callback",description:'<p>function to be executed after <a href="#/p5/loadXML">loadXML()</a>\n completes, XML object is passed in as\n first argument</p>\n',type:"Function",optional:!0},{name:"errorCallback",description:"<p>function to be executed if\n there is an error, response is passed\n in as first argument</p>\n",type:"Function",optional:!0}],class:"p5",module:"IO"},loadBytes:{name:"loadBytes",params:[{name:"file",description:"<p>name of the file or URL to load</p>\n",type:"String"},{name:"callback",description:'<p>function to be executed after <a href="#/p5/loadBytes">loadBytes()</a>\n completes</p>\n',type:"Function",optional:!0},{name:"errorCallback",description:"<p>function to be executed if there\n is an error</p>\n",type:"Function",optional:!0}],class:"p5",module:"IO"},httpGet:{name:"httpGet",class:"p5",module:"IO",overloads:[{params:[{name:"path",description:"<p>name of the file or url to load</p>\n",type:"String"},{name:"datatype",description:'<p>"json", "jsonp", "binary", "arrayBuffer",\n "xml", or "text"</p>\n',type:"String",optional:!0},{name:"data",description:"<p>param data passed sent with request</p>\n",type:"Object|Boolean",optional:!0},{name:"callback",description:'<p>function to be executed after\n <a href="#/p5/httpGet">httpGet()</a> completes, data is passed in\n as first argument</p>\n',type:"Function",optional:!0},{name:"errorCallback",description:"<p>function to be executed if\n there is an error, response is passed\n in as first argument</p>\n",type:"Function",optional:!0}]},{params:[{name:"path",description:"",type:"String"},{name:"data",description:"",type:"Object|Boolean"},{name:"callback",description:"",type:"Function",optional:!0},{name:"errorCallback",description:"",type:"Function",optional:!0}]},{params:[{name:"path",description:"",type:"String"},{name:"callback",description:"",type:"Function"},{name:"errorCallback",description:"",type:"Function",optional:!0}]}]},httpPost:{name:"httpPost",class:"p5",module:"IO",overloads:[{params:[{name:"path",description:"<p>name of the file or url to load</p>\n",type:"String"},{name:"datatype",description:'<p>"json", "jsonp", "xml", or "text".\n If omitted, <a href="#/p5/httpPost">httpPost()</a> will guess.</p>\n',type:"String",optional:!0},{name:"data",description:"<p>param data passed sent with request</p>\n",type:"Object|Boolean",optional:!0},{name:"callback",description:'<p>function to be executed after\n <a href="#/p5/httpPost">httpPost()</a> completes, data is passed in\n as first argument</p>\n',type:"Function",optional:!0},{name:"errorCallback",description:"<p>function to be executed if\n there is an error, response is passed\n in as first argument</p>\n",type:"Function",optional:!0}]},{params:[{name:"path",description:"",type:"String"},{name:"data",description:"",type:"Object|Boolean"},{name:"callback",description:"",type:"Function",optional:!0},{name:"errorCallback",description:"",type:"Function",optional:!0}]},{params:[{name:"path",description:"",type:"String"},{name:"callback",description:"",type:"Function"},{name:"errorCallback",description:"",type:"Function",optional:!0}]}]},httpDo:{name:"httpDo",class:"p5",module:"IO",overloads:[{params:[{name:"path",description:"<p>name of the file or url to load</p>\n",type:"String"},{name:"method",description:'<p>either "GET", "POST", or "PUT",\n defaults to "GET"</p>\n',type:"String",optional:!0},{name:"datatype",description:'<p>"json", "jsonp", "xml", or "text"</p>\n',type:"String",optional:!0},{name:"data",description:"<p>param data passed sent with request</p>\n",type:"Object",optional:!0},{name:"callback",description:'<p>function to be executed after\n <a href="#/p5/httpGet">httpGet()</a> completes, data is passed in\n as first argument</p>\n',type:"Function",optional:!0},{name:"errorCallback",description:"<p>function to be executed if\n there is an error, response is passed\n in as first argument</p>\n",type:"Function",optional:!0}]},{params:[{name:"path",description:"",type:"String"},{name:"options",description:'<p>Request object options as documented in the\n "fetch" API\n<a href="https://developer.mozilla.org/en/docs/Web/API/Fetch_API">reference</a></p>\n',type:"Object"},{name:"callback",description:"",type:"Function",optional:!0},{name:"errorCallback",description:"",type:"Function",optional:!0}]}]},createWriter:{name:"createWriter",params:[{name:"name",description:"<p>name of the file to be created</p>\n",type:"String"},{name:"extension",description:"",type:"String",optional:!0}],class:"p5",module:"IO"},save:{name:"save",params:[{name:"objectOrFilename",description:"<p>If filename is provided, will\n save canvas as an image with\n either png or jpg extension\n depending on the filename.\n If object is provided, will\n save depending on the object\n and filename (see examples\n above).</p>\n",type:"Object|String",optional:!0},{name:"filename",description:"<p>If an object is provided as the first\n parameter, then the second parameter\n indicates the filename,\n and should include an appropriate\n file extension (see examples above).</p>\n",type:"String",optional:!0},{name:"options",description:"<p>Additional options depend on\n filetype. For example, when saving JSON,\n <code>true</code> indicates that the\n output will be optimized for filesize,\n rather than readability.</p>\n",type:"Boolean|String",optional:!0}],class:"p5",module:"IO"},saveJSON:{name:"saveJSON",params:[{name:"json",description:"",type:"Array|Object"},{name:"filename",description:"",type:"String"},{name:"optimize",description:"<p>If true, removes line breaks\n and spaces from the output\n file to optimize filesize\n (but not readability).</p>\n",type:"Boolean",optional:!0}],class:"p5",module:"IO"},saveStrings:{name:"saveStrings",params:[{name:"list",description:"<p>string array to be written</p>\n",type:"String[]"},{name:"filename",description:"<p>filename for output</p>\n",type:"String"},{name:"extension",description:"<p>the filename's extension</p>\n",type:"String",optional:!0},{name:"isCRLF",description:"<p>if true, change line-break to CRLF</p>\n",type:"Boolean",optional:!0}],class:"p5",module:"IO"},saveTable:{name:"saveTable",params:[{name:"Table",description:'<p>the <a href="#/p5.Table">Table</a> object to save to a file</p>\n',type:"p5.Table"},{name:"filename",description:"<p>the filename to which the Table should be saved</p>\n",type:"String"},{name:"options",description:'<p>can be one of "tsv", "csv", or "html"</p>\n',type:"String",optional:!0}],class:"p5",module:"IO"},abs:{name:"abs",params:[{name:"n",description:"<p>number to compute</p>\n",type:"Number"}],class:"p5",module:"Math"},ceil:{name:"ceil",params:[{name:"n",description:"<p>number to round up</p>\n",type:"Number"}],class:"p5",module:"Math"},constrain:{name:"constrain",params:[{name:"n",description:"<p>number to constrain</p>\n",type:"Number"},{name:"low",description:"<p>minimum limit</p>\n",type:"Number"},{name:"high",description:"<p>maximum limit</p>\n",type:"Number"}],class:"p5",module:"Math"},dist:{name:"dist",class:"p5",module:"Math",overloads:[{params:[{name:"x1",description:"<p>x-coordinate of the first point</p>\n",type:"Number"},{name:"y1",description:"<p>y-coordinate of the first point</p>\n",type:"Number"},{name:"x2",description:"<p>x-coordinate of the second point</p>\n",type:"Number"},{name:"y2",description:"<p>y-coordinate of the second point</p>\n",type:"Number"}]},{params:[{name:"x1",description:"",type:"Number"},{name:"y1",description:"",type:"Number"},{name:"z1",description:"<p>z-coordinate of the first point</p>\n",type:"Number"},{name:"x2",description:"",type:"Number"},{name:"y2",description:"",type:"Number"},{name:"z2",description:"<p>z-coordinate of the second point</p>\n",type:"Number"}]}]},exp:{name:"exp",params:[{name:"n",description:"<p>exponent to raise</p>\n",type:"Number"}],class:"p5",module:"Math"},floor:{name:"floor",params:[{name:"n",description:"<p>number to round down</p>\n",type:"Number"}],class:"p5",module:"Math"},lerp:{name:"lerp",params:[{name:"start",description:"<p>first value</p>\n",type:"Number"},{name:"stop",description:"<p>second value</p>\n",type:"Number"},{name:"amt",description:"<p>number</p>\n",type:"Number"}],class:"p5",module:"Math"},log:{name:"log",params:[{name:"n",description:"<p>number greater than 0</p>\n",type:"Number"}],class:"p5",module:"Math"},mag:{name:"mag",params:[{name:"a",description:"<p>first value</p>\n",type:"Number"},{name:"b",description:"<p>second value</p>\n",type:"Number"}],class:"p5",module:"Math"},map:{name:"map",params:[{name:"value",description:"<p>the incoming value to be converted</p>\n",type:"Number"},{name:"start1",description:"<p>lower bound of the value's current range</p>\n",type:"Number"},{name:"stop1",description:"<p>upper bound of the value's current range</p>\n",type:"Number"},{name:"start2",description:"<p>lower bound of the value's target range</p>\n",type:"Number"},{name:"stop2",description:"<p>upper bound of the value's target range</p>\n",type:"Number"},{name:"withinBounds",description:"<p>constrain the value to the newly mapped range</p>\n",type:"Boolean",optional:!0}],class:"p5",module:"Math"},max:{name:"max",class:"p5",module:"Math",overloads:[{params:[{name:"n0",description:"<p>Number to compare</p>\n",type:"Number"},{name:"n1",description:"<p>Number to compare</p>\n",type:"Number"}]},{params:[{name:"nums",description:"<p>Numbers to compare</p>\n",type:"Number[]"}]}]},min:{name:"min",class:"p5",module:"Math",overloads:[{params:[{name:"n0",description:"<p>Number to compare</p>\n",type:"Number"},{name:"n1",description:"<p>Number to compare</p>\n",type:"Number"}]},{params:[{name:"nums",description:"<p>Numbers to compare</p>\n",type:"Number[]"}]}]},norm:{name:"norm",params:[{name:"value",description:"<p>incoming value to be normalized</p>\n",type:"Number"},{name:"start",description:"<p>lower bound of the value's current range</p>\n",type:"Number"},{name:"stop",description:"<p>upper bound of the value's current range</p>\n",type:"Number"}],class:"p5",module:"Math"},pow:{name:"pow",params:[{name:"n",description:"<p>base of the exponential expression</p>\n",type:"Number"},{name:"e",description:"<p>power by which to raise the base</p>\n",type:"Number"}],class:"p5",module:"Math"},round:{name:"round",params:[{name:"n",description:"<p>number to round</p>\n",type:"Number"},{name:"decimals",description:"<p>number of decimal places to round to, default is 0</p>\n",type:"Number",optional:!0}],class:"p5",module:"Math"},sq:{name:"sq",params:[{name:"n",description:"<p>number to square</p>\n",type:"Number"}],class:"p5",module:"Math"},sqrt:{name:"sqrt",params:[{name:"n",description:"<p>non-negative number to square root</p>\n",type:"Number"}],class:"p5",module:"Math"},fract:{name:"fract",params:[{name:"num",description:"<p>Number whose fractional part needs to be found out</p>\n",type:"Number"}],class:"p5",module:"Math"},createVector:{name:"createVector",params:[{name:"x",description:"<p>x component of the vector</p>\n",type:"Number",optional:!0},{name:"y",description:"<p>y component of the vector</p>\n",type:"Number",optional:!0},{name:"z",description:"<p>z component of the vector</p>\n",type:"Number",optional:!0}],class:"p5",module:"Math"},noise:{name:"noise",params:[{name:"x",description:"<p>x-coordinate in noise space</p>\n",type:"Number"},{name:"y",description:"<p>y-coordinate in noise space</p>\n",type:"Number",optional:!0},{name:"z",description:"<p>z-coordinate in noise space</p>\n",type:"Number",optional:!0}],class:"p5",module:"Math"},noiseDetail:{name:"noiseDetail",params:[{name:"lod",description:"<p>number of octaves to be used by the noise</p>\n",type:"Number"},{name:"falloff",description:"<p>falloff factor for each octave</p>\n",type:"Number"}],class:"p5",module:"Math"},noiseSeed:{name:"noiseSeed",params:[{name:"seed",description:"<p>the seed value</p>\n",type:"Number"}],class:"p5",module:"Math"},randomSeed:{name:"randomSeed",params:[{name:"seed",description:"<p>the seed value</p>\n",type:"Number"}],class:"p5",module:"Math"},random:{name:"random",class:"p5",module:"Math",overloads:[{params:[{name:"min",description:"<p>the lower bound (inclusive)</p>\n",type:"Number",optional:!0},{name:"max",description:"<p>the upper bound (exclusive)</p>\n",type:"Number",optional:!0}]},{params:[{name:"choices",description:"<p>the array to choose from</p>\n",type:"Array"}]}]},randomGaussian:{name:"randomGaussian",params:[{name:"mean",description:"<p>the mean</p>\n",type:"Number",optional:!0},{name:"sd",description:"<p>the standard deviation</p>\n",type:"Number",optional:!0}],class:"p5",module:"Math"},acos:{name:"acos",params:[{name:"value",description:"<p>the value whose arc cosine is to be returned</p>\n",type:"Number"}],class:"p5",module:"Math"},asin:{name:"asin",params:[{name:"value",description:"<p>the value whose arc sine is to be returned</p>\n",type:"Number"}],class:"p5",module:"Math"},atan:{name:"atan",params:[{name:"value",description:"<p>the value whose arc tangent is to be returned</p>\n",type:"Number"}],class:"p5",module:"Math"},atan2:{name:"atan2",params:[{name:"y",description:"<p>y-coordinate of the point</p>\n",type:"Number"},{name:"x",description:"<p>x-coordinate of the point</p>\n",type:"Number"}],class:"p5",module:"Math"},cos:{name:"cos",params:[{name:"angle",description:"<p>the angle</p>\n",type:"Number"}],class:"p5",module:"Math"},sin:{name:"sin",params:[{name:"angle",description:"<p>the angle</p>\n",type:"Number"}],class:"p5",module:"Math"},tan:{name:"tan",params:[{name:"angle",description:"<p>the angle</p>\n",type:"Number"}],class:"p5",module:"Math"},degrees:{name:"degrees",params:[{name:"radians",description:"<p>the radians value to convert to degrees</p>\n",type:"Number"}],class:"p5",module:"Math"},radians:{name:"radians",params:[{name:"degrees",description:"<p>the degree value to convert to radians</p>\n",type:"Number"}],class:"p5",module:"Math"},angleMode:{name:"angleMode",params:[{name:"mode",description:"<p>either RADIANS or DEGREES</p>\n",type:"Constant"}],class:"p5",module:"Math"},textAlign:{name:"textAlign",class:"p5",module:"Typography",overloads:[{params:[{name:"horizAlign",description:"<p>horizontal alignment, either LEFT,\n CENTER, or RIGHT</p>\n",type:"Constant"},{name:"vertAlign",description:"<p>vertical alignment, either TOP,\n BOTTOM, CENTER, or BASELINE</p>\n",type:"Constant",optional:!0}],chainable:1},{params:[]}]},textLeading:{name:"textLeading",class:"p5",module:"Typography",overloads:[{params:[{name:"leading",description:"<p>the size in pixels for spacing between lines</p>\n",type:"Number"}],chainable:1},{params:[]}]},textSize:{name:"textSize",class:"p5",module:"Typography",overloads:[{params:[{name:"theSize",description:"<p>the size of the letters in units of pixels</p>\n",type:"Number"}],chainable:1},{params:[]}]},textStyle:{name:"textStyle",class:"p5",module:"Typography",overloads:[{params:[{name:"theStyle",description:"<p>styling for text, either NORMAL,\n ITALIC, BOLD or BOLDITALIC</p>\n",type:"Constant"}],chainable:1},{params:[]}]},textWidth:{name:"textWidth",params:[{name:"theText",description:"<p>the String of characters to measure</p>\n",type:"String"}],class:"p5",module:"Typography"},textAscent:{name:"textAscent",class:"p5",module:"Typography"},textDescent:{name:"textDescent",class:"p5",module:"Typography"},textWrap:{name:"textWrap",params:[{name:"wrapStyle",description:"<p>text wrapping style, either WORD or CHAR</p>\n",type:"Constant"}],class:"p5",module:"Typography"},loadFont:{name:"loadFont",params:[{name:"path",description:"<p>name of the file or url to load</p>\n",type:"String"},{name:"callback",description:'<p>function to be executed after\n <a href="#/p5/loadFont">loadFont()</a> completes</p>\n',type:"Function",optional:!0},{name:"onError",description:"<p>function to be executed if\n an error occurs</p>\n",type:"Function",optional:!0}],class:"p5",module:"Typography"},text:{name:"text",params:[{name:"str",description:"<p>the alphanumeric\n symbols to be displayed</p>\n",type:"String|Object|Array|Number|Boolean"},{name:"x",description:"<p>x-coordinate of text</p>\n",type:"Number"},{name:"y",description:"<p>y-coordinate of text</p>\n",type:"Number"},{name:"x2",description:'<p>by default, the width of the text box,\n see <a href="#/p5/rectMode">rectMode()</a> for more info</p>\n',type:"Number",optional:!0},{name:"y2",description:'<p>by default, the height of the text box,\n see <a href="#/p5/rectMode">rectMode()</a> for more info</p>\n',type:"Number",optional:!0}],class:"p5",module:"Typography"},textFont:{name:"textFont",class:"p5",module:"Typography",overloads:[{params:[]},{params:[{name:"font",description:'<p>a font loaded via <a href="#/p5/loadFont">loadFont()</a>,\nor a String representing a <a href="https://mzl.la/2dOw8WD">web safe font</a>\n(a font that is generally available across all systems)</p>\n',type:"Object|String"},{name:"size",description:"<p>the font size to use</p>\n",type:"Number",optional:!0}],chainable:1}]},append:{name:"append",params:[{name:"array",description:"<p>Array to append</p>\n",type:"Array"},{name:"value",description:"<p>to be added to the Array</p>\n",type:"Any"}],class:"p5",module:"Data"},arrayCopy:{name:"arrayCopy",class:"p5",module:"Data",overloads:[{params:[{name:"src",description:"<p>the source Array</p>\n",type:"Array"},{name:"srcPosition",description:"<p>starting position in the source Array</p>\n",type:"Integer"},{name:"dst",description:"<p>the destination Array</p>\n",type:"Array"},{name:"dstPosition",description:"<p>starting position in the destination Array</p>\n",type:"Integer"},{name:"length",description:"<p>number of Array elements to be copied</p>\n",type:"Integer"}]},{params:[{name:"src",description:"",type:"Array"},{name:"dst",description:"",type:"Array"},{name:"length",description:"",type:"Integer",optional:!0}]}]},concat:{name:"concat",params:[{name:"a",description:"<p>first Array to concatenate</p>\n",type:"Array"},{name:"b",description:"<p>second Array to concatenate</p>\n",type:"Array"}],class:"p5",module:"Data"},reverse:{name:"reverse",params:[{name:"list",description:"<p>Array to reverse</p>\n",type:"Array"}],class:"p5",module:"Data"},shorten:{name:"shorten",params:[{name:"list",description:"<p>Array to shorten</p>\n",type:"Array"}],class:"p5",module:"Data"},shuffle:{name:"shuffle",params:[{name:"array",description:"<p>Array to shuffle</p>\n",type:"Array"},{name:"bool",description:"<p>modify passed array</p>\n",type:"Boolean",optional:!0}],class:"p5",module:"Data"},sort:{name:"sort",params:[{name:"list",description:"<p>Array to sort</p>\n",type:"Array"},{name:"count",description:"<p>number of elements to sort, starting from 0</p>\n",type:"Integer",optional:!0}],class:"p5",module:"Data"},splice:{name:"splice",params:[{name:"list",description:"<p>Array to splice into</p>\n",type:"Array"},{name:"value",description:"<p>value to be spliced in</p>\n",type:"Any"},{name:"position",description:"<p>in the array from which to insert data</p>\n",type:"Integer"}],class:"p5",module:"Data"},subset:{name:"subset",params:[{name:"list",description:"<p>Array to extract from</p>\n",type:"Array"},{name:"start",description:"<p>position to begin</p>\n",type:"Integer"},{name:"count",description:"<p>number of values to extract</p>\n",type:"Integer",optional:!0}],class:"p5",module:"Data"},float:{name:"float",params:[{name:"str",description:"<p>float string to parse</p>\n",type:"String"}],class:"p5",module:"Data"},int:{name:"int",class:"p5",module:"Data",overloads:[{params:[{name:"n",description:"<p>value to parse</p>\n",type:"String|Boolean|Number"},{name:"radix",description:"<p>the radix to convert to (default: 10)</p>\n",type:"Integer",optional:!0}]},{params:[{name:"ns",description:"<p>values to parse</p>\n",type:"Array"},{name:"radix",description:"",type:"Integer",optional:!0}]}]},str:{name:"str",params:[{name:"n",description:"<p>value to parse</p>\n",type:"String|Boolean|Number|Array"}],class:"p5",module:"Data"},byte:{name:"byte",class:"p5",module:"Data",overloads:[{params:[{name:"n",description:"<p>value to parse</p>\n",type:"String|Boolean|Number"}]},{params:[{name:"ns",description:"<p>values to parse</p>\n",type:"Array"}]}]},char:{name:"char",class:"p5",module:"Data",overloads:[{params:[{name:"n",description:"<p>value to parse</p>\n",type:"String|Number"}]},{params:[{name:"ns",description:"<p>values to parse</p>\n",type:"Array"}]}]},unchar:{name:"unchar",class:"p5",module:"Data",overloads:[{params:[{name:"n",description:"<p>value to parse</p>\n",type:"String"}]},{params:[{name:"ns",description:"<p>values to parse</p>\n",type:"Array"}]}]},hex:{name:"hex",class:"p5",module:"Data",overloads:[{params:[{name:"n",description:"<p>value to parse</p>\n",type:"Number"},{name:"digits",description:"",type:"Number",optional:!0}]},{params:[{name:"ns",description:"<p>array of values to parse</p>\n",type:"Number[]"},{name:"digits",description:"",type:"Number",optional:!0}]}]},unhex:{name:"unhex",class:"p5",module:"Data",overloads:[{params:[{name:"n",description:"<p>value to parse</p>\n",type:"String"}]},{params:[{name:"ns",description:"<p>values to parse</p>\n",type:"Array"}]}]},join:{name:"join",params:[{name:"list",description:"<p>array of Strings to be joined</p>\n",type:"Array"},{name:"separator",description:"<p>String to be placed between each item</p>\n",type:"String"}],class:"p5",module:"Data"},match:{name:"match",params:[{name:"str",description:"<p>the String to be searched</p>\n",type:"String"},{name:"regexp",description:"<p>the regexp to be used for matching</p>\n",type:"String"}],class:"p5",module:"Data"},matchAll:{name:"matchAll",params:[{name:"str",description:"<p>the String to be searched</p>\n",type:"String"},{name:"regexp",description:"<p>the regexp to be used for matching</p>\n",type:"String"}],class:"p5",module:"Data"},nf:{name:"nf",class:"p5",module:"Data",overloads:[{params:[{name:"num",description:"<p>the Number to format</p>\n",type:"Number|String"},{name:"left",description:"<p>number of digits to the left of the\n decimal point</p>\n",type:"Integer|String",optional:!0},{name:"right",description:"<p>number of digits to the right of the\n decimal point</p>\n",type:"Integer|String",optional:!0}]},{params:[{name:"nums",description:"<p>the Numbers to format</p>\n",type:"Array"},{name:"left",description:"",type:"Integer|String",optional:!0},{name:"right",description:"",type:"Integer|String",optional:!0}]}]},nfc:{name:"nfc",class:"p5",module:"Data",overloads:[{params:[{name:"num",description:"<p>the Number to format</p>\n",type:"Number|String"},{name:"right",description:"<p>number of digits to the right of the\n decimal point</p>\n",type:"Integer|String",optional:!0}]},{params:[{name:"nums",description:"<p>the Numbers to format</p>\n",type:"Array"},{name:"right",description:"",type:"Integer|String",optional:!0}]}]},nfp:{name:"nfp",class:"p5",module:"Data",overloads:[{params:[{name:"num",description:"<p>the Number to format</p>\n",type:"Number"},{name:"left",description:"<p>number of digits to the left of the decimal\n point</p>\n",type:"Integer",optional:!0},{name:"right",description:"<p>number of digits to the right of the\n decimal point</p>\n",type:"Integer",optional:!0}]},{params:[{name:"nums",description:"<p>the Numbers to format</p>\n",type:"Number[]"},{name:"left",description:"",type:"Integer",optional:!0},{name:"right",description:"",type:"Integer",optional:!0}]}]},nfs:{name:"nfs",class:"p5",module:"Data",overloads:[{params:[{name:"num",description:"<p>the Number to format</p>\n",type:"Number"},{name:"left",description:"<p>number of digits to the left of the decimal\n point</p>\n",type:"Integer",optional:!0},{name:"right",description:"<p>number of digits to the right of the\n decimal point</p>\n",type:"Integer",optional:!0}]},{params:[{name:"nums",description:"<p>the Numbers to format</p>\n",type:"Array"},{name:"left",description:"",type:"Integer",optional:!0},{name:"right",description:"",type:"Integer",optional:!0}]}]},split:{name:"split",params:[{name:"value",description:"<p>the String to be split</p>\n",type:"String"},{name:"delim",description:"<p>the String used to separate the data</p>\n",type:"String"}],class:"p5",module:"Data"},splitTokens:{name:"splitTokens",params:[{name:"value",description:"<p>the String to be split</p>\n",type:"String"},{name:"delim",description:"<p>list of individual Strings that will be used as\n separators</p>\n",type:"String",optional:!0}],class:"p5",module:"Data"},trim:{name:"trim",class:"p5",module:"Data",overloads:[{params:[{name:"str",description:"<p>a String to be trimmed</p>\n",type:"String"}]},{params:[{name:"strs",description:"<p>an Array of Strings to be trimmed</p>\n",type:"Array"}]}]},day:{name:"day",class:"p5",module:"IO"},hour:{name:"hour",class:"p5",module:"IO"},minute:{name:"minute",class:"p5",module:"IO"},millis:{name:"millis",class:"p5",module:"IO"},month:{name:"month",class:"p5",module:"IO"},second:{name:"second",class:"p5",module:"IO"},year:{name:"year",class:"p5",module:"IO"},plane:{name:"plane",params:[{name:"width",description:"<p>width of the plane</p>\n",type:"Number",optional:!0},{name:"height",description:"<p>height of the plane</p>\n",type:"Number",optional:!0},{name:"detailX",description:"<p>Optional number of triangle\n subdivisions in x-dimension</p>\n",type:"Integer",optional:!0},{name:"detailY",description:"<p>Optional number of triangle\n subdivisions in y-dimension</p>\n",type:"Integer",optional:!0}],class:"p5",module:"Shape"},box:{name:"box",params:[{name:"width",description:"<p>width of the box</p>\n",type:"Number",optional:!0},{name:"Height",description:"<p>height of the box</p>\n",type:"Number",optional:!0},{name:"depth",description:"<p>depth of the box</p>\n",type:"Number",optional:!0},{name:"detailX",description:"<p>Optional number of triangle\n subdivisions in x-dimension</p>\n",type:"Integer",optional:!0},{name:"detailY",description:"<p>Optional number of triangle\n subdivisions in y-dimension</p>\n",type:"Integer",optional:!0}],class:"p5",module:"Shape"},sphere:{name:"sphere",params:[{name:"radius",description:"<p>radius of circle</p>\n",type:"Number",optional:!0},{name:"detailX",description:"<p>optional number of subdivisions in x-dimension</p>\n",type:"Integer",optional:!0},{name:"detailY",description:"<p>optional number of subdivisions in y-dimension</p>\n",type:"Integer",optional:!0}],class:"p5",module:"Shape"},cylinder:{name:"cylinder",params:[{name:"radius",description:"<p>radius of the surface</p>\n",type:"Number",optional:!0},{name:"height",description:"<p>height of the cylinder</p>\n",type:"Number",optional:!0},{name:"detailX",description:"<p>number of subdivisions in x-dimension;\n default is 24</p>\n",type:"Integer",optional:!0},{name:"detailY",description:"<p>number of subdivisions in y-dimension;\n default is 1</p>\n",type:"Integer",optional:!0},{name:"bottomCap",description:"<p>whether to draw the bottom of the cylinder</p>\n",type:"Boolean",optional:!0},{name:"topCap",description:"<p>whether to draw the top of the cylinder</p>\n",type:"Boolean",optional:!0}],class:"p5",module:"Shape"},cone:{name:"cone",params:[{name:"radius",description:"<p>radius of the bottom surface</p>\n",type:"Number",optional:!0},{name:"height",description:"<p>height of the cone</p>\n",type:"Number",optional:!0},{name:"detailX",description:"<p>number of segments,\n the more segments the smoother geometry\n default is 24</p>\n",type:"Integer",optional:!0},{name:"detailY",description:"<p>number of segments,\n the more segments the smoother geometry\n default is 1</p>\n",type:"Integer",optional:!0},{name:"cap",description:"<p>whether to draw the base of the cone</p>\n",type:"Boolean",optional:!0}],class:"p5",module:"Shape"},ellipsoid:{name:"ellipsoid",params:[{name:"radiusx",description:"<p>x-radius of ellipsoid</p>\n",type:"Number",optional:!0},{name:"radiusy",description:"<p>y-radius of ellipsoid</p>\n",type:"Number",optional:!0},{name:"radiusz",description:"<p>z-radius of ellipsoid</p>\n",type:"Number",optional:!0},{name:"detailX",description:"<p>number of segments,\n the more segments the smoother geometry\n default is 24. Avoid detail number above\n 150, it may crash the browser.</p>\n",type:"Integer",optional:!0},{name:"detailY",description:"<p>number of segments,\n the more segments the smoother geometry\n default is 16. Avoid detail number above\n 150, it may crash the browser.</p>\n",type:"Integer",optional:!0}],class:"p5",module:"Shape"},torus:{name:"torus",params:[{name:"radius",description:"<p>radius of the whole ring</p>\n",type:"Number",optional:!0},{name:"tubeRadius",description:"<p>radius of the tube</p>\n",type:"Number",optional:!0},{name:"detailX",description:"<p>number of segments in x-dimension,\n the more segments the smoother geometry\n default is 24</p>\n",type:"Integer",optional:!0},{name:"detailY",description:"<p>number of segments in y-dimension,\n the more segments the smoother geometry\n default is 16</p>\n",type:"Integer",optional:!0}],class:"p5",module:"Shape"},orbitControl:{name:"orbitControl",params:[{name:"sensitivityX",description:"<p>sensitivity to mouse movement along X axis</p>\n",type:"Number",optional:!0},{name:"sensitivityY",description:"<p>sensitivity to mouse movement along Y axis</p>\n",type:"Number",optional:!0},{name:"sensitivityZ",description:"<p>sensitivity to scroll movement along Z axis</p>\n",type:"Number",optional:!0}],class:"p5",module:"3D"},debugMode:{name:"debugMode",class:"p5",module:"3D",overloads:[{params:[]},{params:[{name:"mode",description:"<p>either GRID or AXES</p>\n",type:"Constant"}]},{params:[{name:"mode",description:"",type:"Constant"},{name:"gridSize",description:"<p>size of one side of the grid</p>\n",type:"Number",optional:!0},{name:"gridDivisions",description:"<p>number of divisions in the grid</p>\n",type:"Number",optional:!0},{name:"xOff",description:"<p>X axis offset from origin (0,0,0)</p>\n",type:"Number",optional:!0},{name:"yOff",description:"<p>Y axis offset from origin (0,0,0)</p>\n",type:"Number",optional:!0},{name:"zOff",description:"<p>Z axis offset from origin (0,0,0)</p>\n",type:"Number",optional:!0}]},{params:[{name:"mode",description:"",type:"Constant"},{name:"axesSize",description:"<p>size of axes icon</p>\n",type:"Number",optional:!0},{name:"xOff",description:"",type:"Number",optional:!0},{name:"yOff",description:"",type:"Number",optional:!0},{name:"zOff",description:"",type:"Number",optional:!0}]},{params:[{name:"gridSize",description:"",type:"Number",optional:!0},{name:"gridDivisions",description:"",type:"Number",optional:!0},{name:"gridXOff",description:"",type:"Number",optional:!0},{name:"gridYOff",description:"",type:"Number",optional:!0},{name:"gridZOff",description:"",type:"Number",optional:!0},{name:"axesSize",description:"",type:"Number",optional:!0},{name:"axesXOff",description:"",type:"Number",optional:!0},{name:"axesYOff",description:"",type:"Number",optional:!0},{name:"axesZOff",description:"",type:"Number",optional:!0}]}]},noDebugMode:{name:"noDebugMode",class:"p5",module:"3D"},ambientLight:{name:"ambientLight",class:"p5",module:"3D",overloads:[{params:[{name:"v1",description:"<p>red or hue value relative to\n the current color range</p>\n",type:"Number"},{name:"v2",description:"<p>green or saturation value\n relative to the current color range</p>\n",type:"Number"},{name:"v3",description:"<p>blue or brightness value\n relative to the current color range</p>\n",type:"Number"},{name:"alpha",description:"<p>alpha value relative to current\n color range (default is 0-255)</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"gray",description:"<p>number specifying value between\n white and black</p>\n",type:"Number"},{name:"alpha",description:"",type:"Number",optional:!0}],chainable:1},{params:[{name:"value",description:"<p>a color string</p>\n",type:"String"}],chainable:1},{params:[{name:"values",description:"<p>an array containing the red,green,blue &\n and alpha components of the color</p>\n",type:"Number[]"}],chainable:1},{params:[{name:"color",description:'<p>color as a <a href="#/p5.Color">p5.Color</a></p>\n',type:"p5.Color"}],chainable:1}]},specularColor:{name:"specularColor",class:"p5",module:"3D",overloads:[{params:[{name:"v1",description:"<p>red or hue value relative to\n the current color range</p>\n",type:"Number"},{name:"v2",description:"<p>green or saturation value\n relative to the current color range</p>\n",type:"Number"},{name:"v3",description:"<p>blue or brightness value\n relative to the current color range</p>\n",type:"Number"}],chainable:1},{params:[{name:"gray",description:"<p>number specifying value between\n white and black</p>\n",type:"Number"}],chainable:1},{params:[{name:"value",description:"<p>color as a CSS string</p>\n",type:"String"}],chainable:1},{params:[{name:"values",description:"<p>color as an array containing the\n red, green, and blue components</p>\n",type:"Number[]"}],chainable:1},{params:[{name:"color",description:'<p>color as a <a href="#/p5.Color">p5.Color</a></p>\n',type:"p5.Color"}],chainable:1}]},directionalLight:{name:"directionalLight",class:"p5",module:"3D",overloads:[{params:[{name:"v1",description:"<p>red or hue value relative to the current\n color range</p>\n",type:"Number"},{name:"v2",description:"<p>green or saturation value relative to the\n current color range</p>\n",type:"Number"},{name:"v3",description:"<p>blue or brightness value relative to the\n current color range</p>\n",type:"Number"},{name:"x",description:"<p>x component of direction (inclusive range of -1 to 1)</p>\n",type:"Number"},{name:"y",description:"<p>y component of direction (inclusive range of -1 to 1)</p>\n",type:"Number"},{name:"z",description:"<p>z component of direction (inclusive range of -1 to 1)</p>\n",type:"Number"}],chainable:1},{params:[{name:"v1",description:"",type:"Number"},{name:"v2",description:"",type:"Number"},{name:"v3",description:"",type:"Number"},{name:"direction",description:'<p>direction of light as a\n <a href="#/p5.Vector">p5.Vector</a></p>\n',type:"p5.Vector"}],chainable:1},{params:[{name:"color",description:'<p>color as a <a href="#/p5.Color">p5.Color</a>,\n as an array, or as a CSS string</p>\n',type:"p5.Color|Number[]|String"},{name:"x",description:"",type:"Number"},{name:"y",description:"",type:"Number"},{name:"z",description:"",type:"Number"}],chainable:1},{params:[{name:"color",description:"",type:"p5.Color|Number[]|String"},{name:"direction",description:"",type:"p5.Vector"}],chainable:1}]},pointLight:{name:"pointLight",class:"p5",module:"3D",overloads:[{params:[{name:"v1",description:"<p>red or hue value relative to the current\n color range</p>\n",type:"Number"},{name:"v2",description:"<p>green or saturation value relative to the\n current color range</p>\n",type:"Number"},{name:"v3",description:"<p>blue or brightness value relative to the\n current color range</p>\n",type:"Number"},{name:"x",description:"<p>x component of position</p>\n",type:"Number"},{name:"y",description:"<p>y component of position</p>\n",type:"Number"},{name:"z",description:"<p>z component of position</p>\n",type:"Number"}],chainable:1},{params:[{name:"v1",description:"",type:"Number"},{name:"v2",description:"",type:"Number"},{name:"v3",description:"",type:"Number"},{name:"position",description:'<p>of light as a <a href="#/p5.Vector">p5.Vector</a></p>\n',type:"p5.Vector"}],chainable:1},{params:[{name:"color",description:'<p>color as a <a href="#/p5.Color">p5.Color</a>,\n as an array, or as a CSS string</p>\n',type:"p5.Color|Number[]|String"},{name:"x",description:"",type:"Number"},{name:"y",description:"",type:"Number"},{name:"z",description:"",type:"Number"}],chainable:1},{params:[{name:"color",description:"",type:"p5.Color|Number[]|String"},{name:"position",description:"",type:"p5.Vector"}],chainable:1}]},lights:{name:"lights",class:"p5",module:"3D"},lightFalloff:{name:"lightFalloff",params:[{name:"constant",description:"<p>CONSTANT value for determining falloff</p>\n",type:"Number"},{name:"linear",description:"<p>LINEAR value for determining falloff</p>\n",type:"Number"},{name:"quadratic",description:"<p>QUADRATIC value for determining falloff</p>\n",type:"Number"}],class:"p5",module:"3D"},spotLight:{name:"spotLight",class:"p5",module:"3D",overloads:[{params:[{name:"v1",description:"<p>red or hue value relative to the current color range</p>\n",type:"Number"},{name:"v2",description:"<p>green or saturation value relative to the current color range</p>\n",type:"Number"},{name:"v3",description:"<p>blue or brightness value relative to the current color range</p>\n",type:"Number"},{name:"x",description:"<p>x component of position</p>\n",type:"Number"},{name:"y",description:"<p>y component of position</p>\n",type:"Number"},{name:"z",description:"<p>z component of position</p>\n",type:"Number"},{name:"rx",description:"<p>x component of light direction (inclusive range of -1 to 1)</p>\n",type:"Number"},{name:"ry",description:"<p>y component of light direction (inclusive range of -1 to 1)</p>\n",type:"Number"},{name:"rz",description:"<p>z component of light direction (inclusive range of -1 to 1)</p>\n",type:"Number"},{name:"angle",description:"<p>angle of cone. Defaults to PI/3</p>\n",type:"Number",optional:!0},{name:"concentration",description:"<p>concentration of cone. Defaults to 100</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"color",description:'<p>color as a <a href="#/p5.Color">p5.Color</a>,\n as an array, or as a CSS string</p>\n',type:"p5.Color|Number[]|String"},{name:"position",description:'<p>position of light as a <a href="#/p5.Vector">p5.Vector</a></p>\n',type:"p5.Vector"},{name:"direction",description:'<p>direction of light as a <a href="#/p5.Vector">p5.Vector</a></p>\n',type:"p5.Vector"},{name:"angle",description:"",type:"Number",optional:!0},{name:"concentration",description:"",type:"Number",optional:!0}]},{params:[{name:"v1",description:"",type:"Number"},{name:"v2",description:"",type:"Number"},{name:"v3",description:"",type:"Number"},{name:"position",description:"",type:"p5.Vector"},{name:"direction",description:"",type:"p5.Vector"},{name:"angle",description:"",type:"Number",optional:!0},{name:"concentration",description:"",type:"Number",optional:!0}]},{params:[{name:"color",description:"",type:"p5.Color|Number[]|String"},{name:"x",description:"",type:"Number"},{name:"y",description:"",type:"Number"},{name:"z",description:"",type:"Number"},{name:"direction",description:"",type:"p5.Vector"},{name:"angle",description:"",type:"Number",optional:!0},{name:"concentration",description:"",type:"Number",optional:!0}]},{params:[{name:"color",description:"",type:"p5.Color|Number[]|String"},{name:"position",description:"",type:"p5.Vector"},{name:"rx",description:"",type:"Number"},{name:"ry",description:"",type:"Number"},{name:"rz",description:"",type:"Number"},{name:"angle",description:"",type:"Number",optional:!0},{name:"concentration",description:"",type:"Number",optional:!0}]},{params:[{name:"v1",description:"",type:"Number"},{name:"v2",description:"",type:"Number"},{name:"v3",description:"",type:"Number"},{name:"x",description:"",type:"Number"},{name:"y",description:"",type:"Number"},{name:"z",description:"",type:"Number"},{name:"direction",description:"",type:"p5.Vector"},{name:"angle",description:"",type:"Number",optional:!0},{name:"concentration",description:"",type:"Number",optional:!0}]},{params:[{name:"v1",description:"",type:"Number"},{name:"v2",description:"",type:"Number"},{name:"v3",description:"",type:"Number"},{name:"position",description:"",type:"p5.Vector"},{name:"rx",description:"",type:"Number"},{name:"ry",description:"",type:"Number"},{name:"rz",description:"",type:"Number"},{name:"angle",description:"",type:"Number",optional:!0},{name:"concentration",description:"",type:"Number",optional:!0}]},{params:[{name:"color",description:"",type:"p5.Color|Number[]|String"},{name:"x",description:"",type:"Number"},{name:"y",description:"",type:"Number"},{name:"z",description:"",type:"Number"},{name:"rx",description:"",type:"Number"},{name:"ry",description:"",type:"Number"},{name:"rz",description:"",type:"Number"},{name:"angle",description:"",type:"Number",optional:!0},{name:"concentration",description:"",type:"Number",optional:!0}]}]},noLights:{name:"noLights",class:"p5",module:"3D"},loadModel:{name:"loadModel",class:"p5",module:"Shape",overloads:[{params:[{name:"path",description:"<p>Path of the model to be loaded</p>\n",type:"String"},{name:"normalize",description:"<p>If true, scale the model to a\n standardized size when loading</p>\n",type:"Boolean"},{name:"successCallback",description:"<p>Function to be called\n once the model is loaded. Will be passed\n the 3D model object.</p>\n",type:"function(p5.Geometry)",optional:!0},{name:"failureCallback",description:"<p>called with event error if\n the model fails to load.</p>\n",type:"Function(Event)",optional:!0},{name:"fileType",description:"<p>The file extension of the model\n (<code>.stl</code>, <code>.obj</code>).</p>\n",type:"String",optional:!0}]},{params:[{name:"path",description:"",type:"String"},{name:"successCallback",description:"",type:"function(p5.Geometry)",optional:!0},{name:"failureCallback",description:"",type:"Function(Event)",optional:!0},{name:"fileType",description:"",type:"String",optional:!0}]}]},model:{name:"model",params:[{name:"model",description:"<p>Loaded 3d model to be rendered</p>\n",type:"p5.Geometry"}],class:"p5",module:"Shape"},loadShader:{name:"loadShader",params:[{name:"vertFilename",description:"<p>path to file containing vertex shader\nsource code</p>\n",type:"String"},{name:"fragFilename",description:"<p>path to file containing fragment shader\nsource code</p>\n",type:"String"},{name:"callback",description:"<p>callback to be executed after loadShader\ncompletes. On success, the p5.Shader object is passed as the first argument.</p>\n",type:"Function",optional:!0},{name:"errorCallback",description:"<p>callback to be executed when an error\noccurs inside loadShader. On error, the error is passed as the first\nargument.</p>\n",type:"Function",optional:!0}],class:"p5",module:"3D"},createShader:{name:"createShader",params:[{name:"vertSrc",description:"<p>source code for the vertex shader</p>\n",type:"String"},{name:"fragSrc",description:"<p>source code for the fragment shader</p>\n",type:"String"}],class:"p5",module:"3D"},shader:{name:"shader",params:[{name:"s",description:'<p>the <a href="#/p5.Shader">p5.Shader</a> object\nto use for rendering shapes.</p>\n',type:"p5.Shader"}],class:"p5",module:"3D"},resetShader:{name:"resetShader",class:"p5",module:"3D"},texture:{name:"texture",params:[{name:"tex",description:"<p>image to use as texture</p>\n",type:"p5.Image|p5.MediaElement|p5.Graphics|p5.Texture"}],class:"p5",module:"3D"},textureMode:{name:"textureMode",params:[{name:"mode",description:"<p>either IMAGE or NORMAL</p>\n",type:"Constant"}],class:"p5",module:"3D"},textureWrap:{name:"textureWrap",params:[{name:"wrapX",description:"<p>either CLAMP, REPEAT, or MIRROR</p>\n",type:"Constant"},{name:"wrapY",description:"<p>either CLAMP, REPEAT, or MIRROR</p>\n",type:"Constant",optional:!0}],class:"p5",module:"3D"},normalMaterial:{name:"normalMaterial",class:"p5",module:"3D"},ambientMaterial:{name:"ambientMaterial",class:"p5",module:"3D",overloads:[{params:[{name:"v1",description:"<p>red or hue value relative to the current\n color range</p>\n",type:"Number"},{name:"v2",description:"<p>green or saturation value relative to the\n current color range</p>\n",type:"Number"},{name:"v3",description:"<p>blue or brightness value relative to the\n current color range</p>\n",type:"Number"}],chainable:1},{params:[{name:"gray",description:"<p>number specifying value between\n white and black</p>\n",type:"Number"}],chainable:1},{params:[{name:"color",description:'<p>color as a <a href="#/p5.Color">p5.Color</a>,\n as an array, or as a CSS string</p>\n',type:"p5.Color|Number[]|String"}],chainable:1}]},emissiveMaterial:{name:"emissiveMaterial",class:"p5",module:"3D",overloads:[{params:[{name:"v1",description:"<p>red or hue value relative to the current\n color range</p>\n",type:"Number"},{name:"v2",description:"<p>green or saturation value relative to the\n current color range</p>\n",type:"Number"},{name:"v3",description:"<p>blue or brightness value relative to the\n current color range</p>\n",type:"Number"},{name:"alpha",description:"<p>alpha value relative to current color\n range (default is 0-255)</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"gray",description:"<p>number specifying value between\n white and black</p>\n",type:"Number"}],chainable:1},{params:[{name:"color",description:'<p>color as a <a href="#/p5.Color">p5.Color</a>,\n as an array, or as a CSS string</p>\n',type:"p5.Color|Number[]|String"}],chainable:1}]},specularMaterial:{name:"specularMaterial",class:"p5",module:"3D",overloads:[{params:[{name:"gray",description:"<p>number specifying value between white and black.</p>\n",type:"Number"},{name:"alpha",description:"<p>alpha value relative to current color range\n (default is 0-255)</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"v1",description:"<p>red or hue value relative to\n the current color range</p>\n",type:"Number"},{name:"v2",description:"<p>green or saturation value\n relative to the current color range</p>\n",type:"Number"},{name:"v3",description:"<p>blue or brightness value\n relative to the current color range</p>\n",type:"Number"},{name:"alpha",description:"",type:"Number",optional:!0}],chainable:1},{params:[{name:"color",description:'<p>color as a <a href="#/p5.Color">p5.Color</a>,\n as an array, or as a CSS string</p>\n',type:"p5.Color|Number[]|String"}],chainable:1}]},shininess:{name:"shininess",params:[{name:"shine",description:"<p>degree of shininess</p>\n",type:"Number"}],class:"p5",module:"3D"},camera:{name:"camera",params:[{name:"x",description:"<p>camera position value on x axis</p>\n",type:"Number",optional:!0},{name:"y",description:"<p>camera position value on y axis</p>\n",type:"Number",optional:!0},{name:"z",description:"<p>camera position value on z axis</p>\n",type:"Number",optional:!0},{name:"centerX",description:"<p>x coordinate representing center of the sketch</p>\n",type:"Number",optional:!0},{name:"centerY",description:"<p>y coordinate representing center of the sketch</p>\n",type:"Number",optional:!0},{name:"centerZ",description:"<p>z coordinate representing center of the sketch</p>\n",type:"Number",optional:!0},{name:"upX",description:"<p>x component of direction 'up' from camera</p>\n",type:"Number",optional:!0},{name:"upY",description:"<p>y component of direction 'up' from camera</p>\n",type:"Number",optional:!0},{name:"upZ",description:"<p>z component of direction 'up' from camera</p>\n",type:"Number",optional:!0}],class:"p5",module:"3D"},perspective:{name:"perspective",params:[{name:"fovy",description:'<p>camera frustum vertical field of view,\n from bottom to top of view, in <a href="#/p5/angleMode">angleMode</a> units</p>\n',type:"Number",optional:!0},{name:"aspect",description:"<p>camera frustum aspect ratio</p>\n",type:"Number",optional:!0},{name:"near",description:"<p>frustum near plane length</p>\n",type:"Number",optional:!0},{name:"far",description:"<p>frustum far plane length</p>\n",type:"Number",optional:!0}],class:"p5",module:"3D"},ortho:{name:"ortho",params:[{name:"left",description:"<p>camera frustum left plane</p>\n",type:"Number",optional:!0},{name:"right",description:"<p>camera frustum right plane</p>\n",type:"Number",optional:!0},{name:"bottom",description:"<p>camera frustum bottom plane</p>\n",type:"Number",optional:!0},{name:"top",description:"<p>camera frustum top plane</p>\n",type:"Number",optional:!0},{name:"near",description:"<p>camera frustum near plane</p>\n",type:"Number",optional:!0},{name:"far",description:"<p>camera frustum far plane</p>\n",type:"Number",optional:!0}],class:"p5",module:"3D"},frustum:{name:"frustum",params:[{name:"left",description:"<p>camera frustum left plane</p>\n",type:"Number",optional:!0},{name:"right",description:"<p>camera frustum right plane</p>\n",type:"Number",optional:!0},{name:"bottom",description:"<p>camera frustum bottom plane</p>\n",type:"Number",optional:!0},{name:"top",description:"<p>camera frustum top plane</p>\n",type:"Number",optional:!0},{name:"near",description:"<p>camera frustum near plane</p>\n",type:"Number",optional:!0},{name:"far",description:"<p>camera frustum far plane</p>\n",type:"Number",optional:!0}],class:"p5",module:"3D"},createCamera:{name:"createCamera",class:"p5",module:"3D"},setCamera:{name:"setCamera",params:[{name:"cam",description:"<p>p5.Camera object</p>\n",type:"p5.Camera"}],class:"p5",module:"3D"},setAttributes:{name:"setAttributes",class:"p5",module:"Rendering",overloads:[{params:[{name:"key",description:"<p>Name of attribute</p>\n",type:"String"},{name:"value",description:"<p>New value of named attribute</p>\n",type:"Boolean"}]},{params:[{name:"obj",description:"<p>object with key-value pairs</p>\n",type:"Object"}]}]},getAudioContext:{name:"getAudioContext",class:"p5",module:"p5.sound"},userStartAudio:{params:[{name:"elements",description:"<p>This argument can be an Element,\n Selector String, NodeList, p5.Element,\n jQuery Element, or an Array of any of those.</p>\n",type:"Element|Array",optional:!0},{name:"callback",description:"<p>Callback to invoke when the AudioContext\n has started</p>\n",type:"Function",optional:!0}],name:"userStartAudio",class:"p5",module:"p5.sound"},getOutputVolume:{name:"getOutputVolume",class:"p5",module:"p5.sound"},outputVolume:{name:"outputVolume",params:[{name:"volume",description:"<p>Volume (amplitude) between 0.0\n and 1.0 or modulating signal/oscillator</p>\n",type:"Number|Object"},{name:"rampTime",description:"<p>Fade for t seconds</p>\n",type:"Number",optional:!0},{name:"timeFromNow",description:"<p>Schedule this event to happen at\n t seconds in the future</p>\n",type:"Number",optional:!0}],class:"p5",module:"p5.sound"},soundOut:{name:"soundOut",class:"p5",module:"p5.sound"},sampleRate:{name:"sampleRate",class:"p5",module:"p5.sound"},freqToMidi:{name:"freqToMidi",params:[{name:"frequency",description:'<p>A freqeuncy, for example, the "A"\n above Middle C is 440Hz</p>\n',type:"Number"}],class:"p5",module:"p5.sound"},midiToFreq:{name:"midiToFreq",params:[{name:"midiNote",description:"<p>The number of a MIDI note</p>\n",type:"Number"}],class:"p5",module:"p5.sound"},soundFormats:{name:"soundFormats",params:[{name:"formats",description:"<p>i.e. 'mp3', 'wav', 'ogg'</p>\n",type:"String",optional:!0,multiple:!0}],class:"p5",module:"p5.sound"},saveSound:{name:"saveSound",params:[{name:"soundFile",description:"<p>p5.SoundFile that you wish to save</p>\n",type:"p5.SoundFile"},{name:"fileName",description:"<p>name of the resulting .wav file.</p>\n",type:"String"}],class:"p5",module:"p5.sound"},loadSound:{name:"loadSound",params:[{name:"path",description:"<p>Path to the sound file, or an array with\n paths to soundfiles in multiple formats\n i.e. ['sound.ogg', 'sound.mp3'].\n Alternately, accepts an object: either\n from the HTML5 File API, or a p5.File.</p>\n",type:"String|Array"},{name:"successCallback",description:"<p>Name of a function to call once file loads</p>\n",type:"Function",optional:!0},{name:"errorCallback",description:"<p>Name of a function to call if there is\n an error loading the file.</p>\n",type:"Function",optional:!0},{name:"whileLoading",description:"<p>Name of a function to call while file is loading.\n This function will receive the percentage loaded\n so far, from 0.0 to 1.0.</p>\n",type:"Function",optional:!0}],class:"p5",module:"p5.sound"},createConvolver:{name:"createConvolver",params:[{name:"path",description:"<p>path to a sound file</p>\n",type:"String"},{name:"callback",description:"<p>function to call if loading is successful.\n The object will be passed in as the argument\n to the callback function.</p>\n",type:"Function",optional:!0},{name:"errorCallback",description:"<p>function to call if loading is not successful.\n A custom error will be passed in as the argument\n to the callback function.</p>\n",type:"Function",optional:!0}],class:"p5",module:"p5.sound"},setBPM:{name:"setBPM",params:[{name:"BPM",description:"<p>Beats Per Minute</p>\n",type:"Number"},{name:"rampTime",description:"<p>Seconds from now</p>\n",type:"Number"}],class:"p5",module:"p5.sound"}},"p5.Color":{toString:{name:"toString",params:[{name:"format",description:"<p>How the color string will be formatted.\nLeaving this empty formats the string as rgba(r, g, b, a).\n'#rgb' '#rgba' '#rrggbb' and '#rrggbbaa' format as hexadecimal color codes.\n'rgb' 'hsb' and 'hsl' return the color formatted in the specified color mode.\n'rgba' 'hsba' and 'hsla' are the same as above but with alpha channels.\n'rgb%' 'hsb%' 'hsl%' 'rgba%' 'hsba%' and 'hsla%' format as percentages.</p>\n",type:"String",optional:!0}],class:"p5.Color",module:"Color"},setRed:{name:"setRed",params:[{name:"red",description:"<p>the new red value</p>\n",type:"Number"}],class:"p5.Color",module:"Color"},setGreen:{name:"setGreen",params:[{name:"green",description:"<p>the new green value</p>\n",type:"Number"}],class:"p5.Color",module:"Color"},setBlue:{name:"setBlue",params:[{name:"blue",description:"<p>the new blue value</p>\n",type:"Number"}],class:"p5.Color",module:"Color"},setAlpha:{name:"setAlpha",params:[{name:"alpha",description:"<p>the new alpha value</p>\n",type:"Number"}],class:"p5.Color",module:"Color"}},"p5.Element":{elt:{name:"elt",class:"p5.Element",module:"DOM"},parent:{name:"parent",class:"p5.Element",module:"DOM",overloads:[{params:[{name:"parent",description:'<p>the ID, DOM node, or <a href="#/p5.Element">p5.Element</a>\n of desired parent element</p>\n',type:"String|p5.Element|Object"}],chainable:1},{params:[]}]},id:{name:"id",class:"p5.Element",module:"DOM",overloads:[{params:[{name:"id",description:"<p>ID of the element</p>\n",type:"String"}],chainable:1},{params:[]}]},class:{name:"class",class:"p5.Element",module:"DOM",overloads:[{params:[{name:"class",description:"<p>class to add</p>\n",type:"String"}],chainable:1},{params:[]}]},mousePressed:{name:"mousePressed",params:[{name:"fxn",description:"<p>function to be fired when mouse is\n pressed over the element.\n if <code>false</code> is passed instead, the previously\n firing function will no longer fire.</p>\n",type:"Function|Boolean"}],class:"p5.Element",module:"DOM"},doubleClicked:{name:"doubleClicked",params:[{name:"fxn",description:"<p>function to be fired when mouse is\n double clicked over the element.\n if <code>false</code> is passed instead, the previously\n firing function will no longer fire.</p>\n",type:"Function|Boolean"}],class:"p5.Element",module:"DOM"},mouseWheel:{name:"mouseWheel",params:[{name:"fxn",description:"<p>function to be fired when mouse is\n scrolled over the element.\n if <code>false</code> is passed instead, the previously\n firing function will no longer fire.</p>\n",type:"Function|Boolean"}],class:"p5.Element",module:"DOM"},mouseReleased:{name:"mouseReleased",params:[{name:"fxn",description:"<p>function to be fired when mouse is\n released over the element.\n if <code>false</code> is passed instead, the previously\n firing function will no longer fire.</p>\n",type:"Function|Boolean"}],class:"p5.Element",module:"DOM"},mouseClicked:{name:"mouseClicked",params:[{name:"fxn",description:"<p>function to be fired when mouse is\n clicked over the element.\n if <code>false</code> is passed instead, the previously\n firing function will no longer fire.</p>\n",type:"Function|Boolean"}],class:"p5.Element",module:"DOM"},mouseMoved:{name:"mouseMoved",params:[{name:"fxn",description:"<p>function to be fired when a mouse moves\n over the element.\n if <code>false</code> is passed instead, the previously\n firing function will no longer fire.</p>\n",type:"Function|Boolean"}],class:"p5.Element",module:"DOM"},mouseOver:{name:"mouseOver",params:[{name:"fxn",description:"<p>function to be fired when a mouse moves\n onto the element.\n if <code>false</code> is passed instead, the previously\n firing function will no longer fire.</p>\n",type:"Function|Boolean"}],class:"p5.Element",module:"DOM"},mouseOut:{name:"mouseOut",params:[{name:"fxn",description:"<p>function to be fired when a mouse\n moves off of an element.\n if <code>false</code> is passed instead, the previously\n firing function will no longer fire.</p>\n",type:"Function|Boolean"}],class:"p5.Element",module:"DOM"},touchStarted:{name:"touchStarted",params:[{name:"fxn",description:"<p>function to be fired when a touch\n starts over the element.\n if <code>false</code> is passed instead, the previously\n firing function will no longer fire.</p>\n",type:"Function|Boolean"}],class:"p5.Element",module:"DOM"},touchMoved:{name:"touchMoved",params:[{name:"fxn",description:"<p>function to be fired when a touch moves over\n the element.\n if <code>false</code> is passed instead, the previously\n firing function will no longer fire.</p>\n",type:"Function|Boolean"}],class:"p5.Element",module:"DOM"},touchEnded:{name:"touchEnded",params:[{name:"fxn",description:"<p>function to be fired when a touch ends\n over the element.\n if <code>false</code> is passed instead, the previously\n firing function will no longer fire.</p>\n",type:"Function|Boolean"}],class:"p5.Element",module:"DOM"},dragOver:{name:"dragOver",params:[{name:"fxn",description:"<p>function to be fired when a file is\n dragged over the element.\n if <code>false</code> is passed instead, the previously\n firing function will no longer fire.</p>\n",type:"Function|Boolean"}],class:"p5.Element",module:"DOM"},dragLeave:{name:"dragLeave",params:[{name:"fxn",description:"<p>function to be fired when a file is\n dragged off the element.\n if <code>false</code> is passed instead, the previously\n firing function will no longer fire.</p>\n",type:"Function|Boolean"}],class:"p5.Element",module:"DOM"},addClass:{name:"addClass",params:[{name:"class",description:"<p>name of class to add</p>\n",type:"String"}],class:"p5.Element",module:"DOM"},removeClass:{name:"removeClass",params:[{name:"class",description:"<p>name of class to remove</p>\n",type:"String"}],class:"p5.Element",module:"DOM"},hasClass:{name:"hasClass",params:[{name:"c",description:"<p>class name of class to check</p>\n",type:"String"}],class:"p5.Element",module:"DOM"},toggleClass:{name:"toggleClass",params:[{name:"c",description:"<p>class name to toggle</p>\n",type:"String"}],class:"p5.Element",module:"DOM"},child:{name:"child",class:"p5.Element",module:"DOM",overloads:[{params:[]},{params:[{name:"child",description:'<p>the ID, DOM node, or <a href="#/p5.Element">p5.Element</a>\n to add to the current element</p>\n',type:"String|p5.Element",optional:!0}],chainable:1}]},center:{name:"center",params:[{name:"align",description:"<p>passing 'vertical', 'horizontal' aligns element accordingly</p>\n",type:"String",optional:!0}],class:"p5.Element",module:"DOM"},html:{name:"html",class:"p5.Element",module:"DOM",overloads:[{params:[]},{params:[{name:"html",description:"<p>the HTML to be placed inside the element</p>\n",type:"String",optional:!0},{name:"append",description:"<p>whether to append HTML to existing</p>\n",type:"Boolean",optional:!0}],chainable:1}]},position:{name:"position",class:"p5.Element",module:"DOM",overloads:[{params:[]},{params:[{name:"x",description:"<p>x-position relative to upper left of window (optional)</p>\n",type:"Number",optional:!0},{name:"y",description:"<p>y-position relative to upper left of window (optional)</p>\n",type:"Number",optional:!0},{name:"positionType",description:"<p>it can be static, fixed, relative, sticky, initial or inherit (optional)</p>\n",type:"String",optional:!0}],chainable:1}]},style:{name:"style",class:"p5.Element",module:"DOM",overloads:[{params:[{name:"property",description:"<p>property to be set</p>\n",type:"String"}]},{params:[{name:"property",description:"",type:"String"},{name:"value",description:"<p>value to assign to property</p>\n",type:"String|p5.Color"}],chainable:1}]},attribute:{name:"attribute",class:"p5.Element",module:"DOM",overloads:[{params:[]},{params:[{name:"attr",description:"<p>attribute to set</p>\n",type:"String"},{name:"value",description:"<p>value to assign to attribute</p>\n",type:"String"}],chainable:1}]},removeAttribute:{name:"removeAttribute",params:[{name:"attr",description:"<p>attribute to remove</p>\n",type:"String"}],class:"p5.Element",module:"DOM"},value:{name:"value",class:"p5.Element",module:"DOM",overloads:[{params:[]},{params:[{name:"value",description:"",type:"String|Number"}],chainable:1}]},show:{name:"show",class:"p5.Element",module:"DOM"},hide:{name:"hide",class:"p5.Element",module:"DOM"},size:{name:"size",class:"p5.Element",module:"DOM",overloads:[{params:[]},{params:[{name:"w",description:"<p>width of the element, either AUTO, or a number</p>\n",type:"Number|Constant"},{name:"h",description:"<p>height of the element, either AUTO, or a number</p>\n",type:"Number|Constant",optional:!0}],chainable:1}]},remove:{name:"remove",class:"p5.Element",module:"DOM"},drop:{name:"drop",params:[{name:"callback",description:"<p>callback to receive loaded file, called for each file dropped.</p>\n",type:"Function"},{name:"fxn",description:"<p>callback triggered once when files are dropped with the drop event.</p>\n",type:"Function",optional:!0}],class:"p5.Element",module:"DOM"}},"p5.Graphics":{reset:{name:"reset",class:"p5.Graphics",module:"Rendering"},remove:{name:"remove",class:"p5.Graphics",module:"Rendering"}},JSON:{stringify:{name:"stringify",params:[{name:"object",description:"<p>:Javascript object that you would like to convert to JSON</p>\n",type:"Object"}],class:"JSON",module:"Foundation"}},console:{log:{name:"log",params:[{name:"message",description:"<p>:Message that you would like to print to the console</p>\n",type:"String|Expression|Object"}],class:"console",module:"Foundation"}},"p5.TypedDict":{size:{name:"size",class:"p5.TypedDict",module:"Data"},hasKey:{name:"hasKey",params:[{name:"key",description:"<p>that you want to look up</p>\n",type:"Number|String"}],class:"p5.TypedDict",module:"Data"},get:{name:"get",params:[{name:"the",description:"<p>key you want to access</p>\n",type:"Number|String"}],class:"p5.TypedDict",module:"Data"},set:{name:"set",params:[{name:"key",description:"",type:"Number|String"},{name:"value",description:"",type:"Number|String"}],class:"p5.TypedDict",module:"Data"},create:{name:"create",class:"p5.TypedDict",module:"Data",overloads:[{params:[{name:"key",description:"",type:"Number|String"},{name:"value",description:"",type:"Number|String"}]},{params:[{name:"obj",description:"<p>key/value pair</p>\n",type:"Object"}]}]},clear:{name:"clear",class:"p5.TypedDict",module:"Data"},remove:{name:"remove",params:[{name:"key",description:"<p>for the pair to remove</p>\n",type:"Number|String"}],class:"p5.TypedDict",module:"Data"},print:{name:"print",class:"p5.TypedDict",module:"Data"},saveTable:{name:"saveTable",class:"p5.TypedDict",module:"Data"},saveJSON:{name:"saveJSON",class:"p5.TypedDict",module:"Data"}},"p5.NumberDict":{add:{name:"add",params:[{name:"Key",description:"<p>for the value you wish to add to</p>\n",type:"Number"},{name:"Number",description:"<p>to add to the value</p>\n",type:"Number"}],class:"p5.NumberDict",module:"Data"},sub:{name:"sub",params:[{name:"Key",description:"<p>for the value you wish to subtract from</p>\n",type:"Number"},{name:"Number",description:"<p>to subtract from the value</p>\n",type:"Number"}],class:"p5.NumberDict",module:"Data"},mult:{name:"mult",params:[{name:"Key",description:"<p>for value you wish to multiply</p>\n",type:"Number"},{name:"Amount",description:"<p>to multiply the value by</p>\n",type:"Number"}],class:"p5.NumberDict",module:"Data"},div:{name:"div",params:[{name:"Key",description:"<p>for value you wish to divide</p>\n",type:"Number"},{name:"Amount",description:"<p>to divide the value by</p>\n",type:"Number"}],class:"p5.NumberDict",module:"Data"},minValue:{name:"minValue",class:"p5.NumberDict",module:"Data"},maxValue:{name:"maxValue",class:"p5.NumberDict",module:"Data"},minKey:{name:"minKey",class:"p5.NumberDict",module:"Data"},maxKey:{name:"maxKey",class:"p5.NumberDict",module:"Data"}},"p5.MediaElement":{src:{name:"src",class:"p5.MediaElement",module:"DOM"},play:{name:"play",class:"p5.MediaElement",module:"DOM"},stop:{name:"stop",class:"p5.MediaElement",module:"DOM"},pause:{name:"pause",class:"p5.MediaElement",module:"DOM"},loop:{name:"loop",class:"p5.MediaElement",module:"DOM"},noLoop:{name:"noLoop",class:"p5.MediaElement",module:"DOM"},autoplay:{name:"autoplay",params:[{name:"shouldAutoplay",description:"<p>whether the element should autoplay</p>\n",type:"Boolean"}],class:"p5.MediaElement",module:"DOM"},volume:{name:"volume",class:"p5.MediaElement",module:"DOM",overloads:[{params:[]},{params:[{name:"val",description:"<p>volume between 0.0 and 1.0</p>\n",type:"Number"}],chainable:1}]},speed:{name:"speed",class:"p5.MediaElement",module:"DOM",overloads:[{params:[]},{params:[{name:"speed",description:"<p>speed multiplier for element playback</p>\n",type:"Number"}],chainable:1}]},time:{name:"time",class:"p5.MediaElement",module:"DOM",overloads:[{params:[]},{params:[{name:"time",description:"<p>time to jump to (in seconds)</p>\n",type:"Number"}],chainable:1}]},duration:{name:"duration",class:"p5.MediaElement",module:"DOM"},onended:{name:"onended",params:[{name:"callback",description:"<p>function to call when the\n soundfile has ended. The\n media element will be passed\n in as the argument to the\n callback.</p>\n",type:"Function"}],class:"p5.MediaElement",module:"DOM"},connect:{name:"connect",params:[{name:"audioNode",description:"<p>AudioNode from the Web Audio API,\nor an object from the p5.sound library</p>\n",type:"AudioNode|Object"}],class:"p5.MediaElement",module:"DOM"},disconnect:{name:"disconnect",class:"p5.MediaElement",module:"DOM"},showControls:{name:"showControls",class:"p5.MediaElement",module:"DOM"},hideControls:{name:"hideControls",class:"p5.MediaElement",module:"DOM"},addCue:{name:"addCue",params:[{name:"time",description:"<p>Time in seconds, relative to this media\n element's playback. For example, to trigger\n an event every time playback reaches two\n seconds, pass in the number 2. This will be\n passed as the first parameter to\n the callback function.</p>\n",type:"Number"},{name:"callback",description:"<p>Name of a function that will be\n called at the given time. The callback will\n receive time and (optionally) param as its\n two parameters.</p>\n",type:"Function"},{name:"value",description:"<p>An object to be passed as the\n second parameter to the\n callback function.</p>\n",type:"Object",optional:!0}],class:"p5.MediaElement",module:"DOM"},removeCue:{name:"removeCue",params:[{name:"id",description:"<p>ID of the cue, as returned by addCue</p>\n",type:"Number"}],class:"p5.MediaElement",module:"DOM"},clearCues:{name:"clearCues",params:[{name:"id",description:"<p>ID of the cue, as returned by addCue</p>\n",type:"Number"}],class:"p5.MediaElement",module:"DOM"}},"p5.File":{file:{name:"file",class:"p5.File",module:"DOM"},type:{name:"type",class:"p5.File",module:"DOM"},subtype:{name:"subtype",class:"p5.File",module:"DOM"},name:{name:"name",class:"p5.File",module:"DOM"},size:{name:"size",class:"p5.File",module:"DOM"},data:{name:"data",class:"p5.File",module:"DOM"}},"p5.Image":{width:{name:"width",class:"p5.Image",module:"Image"},height:{name:"height",class:"p5.Image",module:"Image"},pixels:{name:"pixels",class:"p5.Image",module:"Image"},loadPixels:{name:"loadPixels",class:"p5.Image",module:"Image"},updatePixels:{name:"updatePixels",class:"p5.Image",module:"Image",overloads:[{params:[{name:"x",description:"<p>x-offset of the target update area for the\n underlying canvas</p>\n",type:"Integer"},{name:"y",description:"<p>y-offset of the target update area for the\n underlying canvas</p>\n",type:"Integer"},{name:"w",description:"<p>width of the target update area for the\n underlying canvas</p>\n",type:"Integer"},{name:"h",description:"<p>height of the target update area for the\n underlying canvas</p>\n",type:"Integer"}]},{params:[]}]},get:{name:"get",class:"p5.Image",module:"Image",overloads:[{params:[{name:"x",description:"<p>x-coordinate of the pixel</p>\n",type:"Number"},{name:"y",description:"<p>y-coordinate of the pixel</p>\n",type:"Number"},{name:"w",description:"<p>width</p>\n",type:"Number"},{name:"h",description:"<p>height</p>\n",type:"Number"}]},{params:[]},{params:[{name:"x",description:"",type:"Number"},{name:"y",description:"",type:"Number"}]}]},set:{name:"set",params:[{name:"x",description:"<p>x-coordinate of the pixel</p>\n",type:"Number"},{name:"y",description:"<p>y-coordinate of the pixel</p>\n",type:"Number"},{name:"a",description:'<p>grayscale value | pixel array |\n a <a href="#/p5.Color">p5.Color</a> | image to copy</p>\n',type:"Number|Number[]|Object"}],class:"p5.Image",module:"Image"},resize:{name:"resize",params:[{name:"width",description:"<p>the resized image width</p>\n",type:"Number"},{name:"height",description:"<p>the resized image height</p>\n",type:"Number"}],class:"p5.Image",module:"Image"},copy:{name:"copy",class:"p5.Image",module:"Image",overloads:[{params:[{name:"srcImage",description:"<p>source image</p>\n",type:"p5.Image|p5.Element"},{name:"sx",description:"<p>X coordinate of the source's upper left corner</p>\n",type:"Integer"},{name:"sy",description:"<p>Y coordinate of the source's upper left corner</p>\n",type:"Integer"},{name:"sw",description:"<p>source image width</p>\n",type:"Integer"},{name:"sh",description:"<p>source image height</p>\n",type:"Integer"},{name:"dx",description:"<p>X coordinate of the destination's upper left corner</p>\n",type:"Integer"},{name:"dy",description:"<p>Y coordinate of the destination's upper left corner</p>\n",type:"Integer"},{name:"dw",description:"<p>destination image width</p>\n",type:"Integer"},{name:"dh",description:"<p>destination image height</p>\n",type:"Integer"}]},{params:[{name:"sx",description:"",type:"Integer"},{name:"sy",description:"",type:"Integer"},{name:"sw",description:"",type:"Integer"},{name:"sh",description:"",type:"Integer"},{name:"dx",description:"",type:"Integer"},{name:"dy",description:"",type:"Integer"},{name:"dw",description:"",type:"Integer"},{name:"dh",description:"",type:"Integer"}]}]},mask:{name:"mask",params:[{name:"srcImage",description:"<p>source image</p>\n",type:"p5.Image"}],class:"p5.Image",module:"Image"},filter:{name:"filter",params:[{name:"filterType",description:"<p>either THRESHOLD, GRAY, OPAQUE, INVERT,\n POSTERIZE, ERODE, DILATE or BLUR.\n See Filters.js for docs on\n each available filter</p>\n",type:"Constant"},{name:"filterParam",description:"<p>an optional parameter unique\n to each filter, see above</p>\n",type:"Number",optional:!0}],class:"p5.Image",module:"Image"},blend:{name:"blend",class:"p5.Image",module:"Image",overloads:[{params:[{name:"srcImage",description:"<p>source image</p>\n",type:"p5.Image"},{name:"sx",description:"<p>X coordinate of the source's upper left corner</p>\n",type:"Integer"},{name:"sy",description:"<p>Y coordinate of the source's upper left corner</p>\n",type:"Integer"},{name:"sw",description:"<p>source image width</p>\n",type:"Integer"},{name:"sh",description:"<p>source image height</p>\n",type:"Integer"},{name:"dx",description:"<p>X coordinate of the destination's upper left corner</p>\n",type:"Integer"},{name:"dy",description:"<p>Y coordinate of the destination's upper left corner</p>\n",type:"Integer"},{name:"dw",description:"<p>destination image width</p>\n",type:"Integer"},{name:"dh",description:"<p>destination image height</p>\n",type:"Integer"},{name:"blendMode",description:'<p>the blend mode. either\n BLEND, DARKEST, LIGHTEST, DIFFERENCE,\n MULTIPLY, EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,\n SOFT_LIGHT, DODGE, BURN, ADD or NORMAL.</p>\n<p>Available blend modes are: normal | multiply | screen | overlay |\n darken | lighten | color-dodge | color-burn | hard-light |\n soft-light | difference | exclusion | hue | saturation |\n color | luminosity</p>\n<p><a href="http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/">http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/</a></p>\n',type:"Constant"}]},{params:[{name:"sx",description:"",type:"Integer"},{name:"sy",description:"",type:"Integer"},{name:"sw",description:"",type:"Integer"},{name:"sh",description:"",type:"Integer"},{name:"dx",description:"",type:"Integer"},{name:"dy",description:"",type:"Integer"},{name:"dw",description:"",type:"Integer"},{name:"dh",description:"",type:"Integer"},{name:"blendMode",description:"",type:"Constant"}]}]},save:{name:"save",params:[{name:"filename",description:"<p>give your file a name</p>\n",type:"String"},{name:"extension",description:"<p>'png' or 'jpg'</p>\n",type:"String"}],class:"p5.Image",module:"Image"},reset:{name:"reset",class:"p5.Image",module:"Image"},getCurrentFrame:{name:"getCurrentFrame",class:"p5.Image",module:"Image"},setFrame:{name:"setFrame",params:[{name:"index",description:"<p>the index for the frame that should be displayed</p>\n",type:"Number"}],class:"p5.Image",module:"Image"},numFrames:{name:"numFrames",class:"p5.Image",module:"Image"},play:{name:"play",class:"p5.Image",module:"Image"},pause:{name:"pause",class:"p5.Image",module:"Image"},delay:{name:"delay",params:[{name:"d",description:"<p>the amount in milliseconds to delay between switching frames</p>\n",type:"Number"},{name:"index",description:"<p>the index of the frame that should have the new delay value {optional}</p>\n",type:"Number",optional:!0}],class:"p5.Image",module:"Image"}},"p5.PrintWriter":{write:{name:"write",params:[{name:"data",description:"<p>all data to be written by the PrintWriter</p>\n",type:"Array"}],class:"p5.PrintWriter",module:"IO"},print:{name:"print",params:[{name:"data",description:"<p>all data to be printed by the PrintWriter</p>\n",type:"Array"}],class:"p5.PrintWriter",module:"IO"},clear:{name:"clear",class:"p5.PrintWriter",module:"IO"},close:{name:"close",class:"p5.PrintWriter",module:"IO"}},"p5.Table":{columns:{name:"columns",class:"p5.Table",module:"IO"},rows:{name:"rows",class:"p5.Table",module:"IO"},addRow:{name:"addRow",params:[{name:"row",description:"<p>row to be added to the table</p>\n",type:"p5.TableRow",optional:!0}],class:"p5.Table",module:"IO"},removeRow:{name:"removeRow",params:[{name:"id",description:"<p>ID number of the row to remove</p>\n",type:"Integer"}],class:"p5.Table",module:"IO"},getRow:{name:"getRow",params:[{name:"rowID",description:"<p>ID number of the row to get</p>\n",type:"Integer"}],class:"p5.Table",module:"IO"},getRows:{name:"getRows",class:"p5.Table",module:"IO"},findRow:{name:"findRow",params:[{name:"value",description:"<p>The value to match</p>\n",type:"String"},{name:"column",description:"<p>ID number or title of the\n column to search</p>\n",type:"Integer|String"}],class:"p5.Table",module:"IO"},findRows:{name:"findRows",params:[{name:"value",description:"<p>The value to match</p>\n",type:"String"},{name:"column",description:"<p>ID number or title of the\n column to search</p>\n",type:"Integer|String"}],class:"p5.Table",module:"IO"},matchRow:{name:"matchRow",params:[{name:"regexp",description:"<p>The regular expression to match</p>\n",type:"String|RegExp"},{name:"column",description:"<p>The column ID (number) or\n title (string)</p>\n",type:"String|Integer"}],class:"p5.Table",module:"IO"},matchRows:{name:"matchRows",params:[{name:"regexp",description:"<p>The regular expression to match</p>\n",type:"String"},{name:"column",description:"<p>The column ID (number) or\n title (string)</p>\n",type:"String|Integer",optional:!0}],class:"p5.Table",module:"IO"},getColumn:{name:"getColumn",params:[{name:"column",description:"<p>String or Number of the column to return</p>\n",type:"String|Number"}],class:"p5.Table",module:"IO"},clearRows:{name:"clearRows",class:"p5.Table",module:"IO"},addColumn:{name:"addColumn",params:[{name:"title",description:"<p>title of the given column</p>\n",type:"String",optional:!0}],class:"p5.Table",module:"IO"},getColumnCount:{name:"getColumnCount",class:"p5.Table",module:"IO"},getRowCount:{name:"getRowCount",class:"p5.Table",module:"IO"},removeTokens:{name:"removeTokens",params:[{name:"chars",description:"<p>String listing characters to be removed</p>\n",type:"String"},{name:"column",description:"<p>Column ID (number)\n or name (string)</p>\n",type:"String|Integer",optional:!0}],class:"p5.Table",module:"IO"},trim:{name:"trim",params:[{name:"column",description:"<p>Column ID (number)\n or name (string)</p>\n",type:"String|Integer",optional:!0}],class:"p5.Table",module:"IO"},removeColumn:{name:"removeColumn",params:[{name:"column",description:"<p>columnName (string) or ID (number)</p>\n",type:"String|Integer"}],class:"p5.Table",module:"IO"},set:{name:"set",params:[{name:"row",description:"<p>row ID</p>\n",type:"Integer"},{name:"column",description:"<p>column ID (Number)\n or title (String)</p>\n",type:"String|Integer"},{name:"value",description:"<p>value to assign</p>\n",type:"String|Number"}],class:"p5.Table",module:"IO"},setNum:{name:"setNum",params:[{name:"row",description:"<p>row ID</p>\n",type:"Integer"},{name:"column",description:"<p>column ID (Number)\n or title (String)</p>\n",type:"String|Integer"},{name:"value",description:"<p>value to assign</p>\n",type:"Number"}],class:"p5.Table",module:"IO"},setString:{name:"setString",params:[{name:"row",description:"<p>row ID</p>\n",type:"Integer"},{name:"column",description:"<p>column ID (Number)\n or title (String)</p>\n",type:"String|Integer"},{name:"value",description:"<p>value to assign</p>\n",type:"String"}],class:"p5.Table",module:"IO"},get:{name:"get",params:[{name:"row",description:"<p>row ID</p>\n",type:"Integer"},{name:"column",description:"<p>columnName (string) or\n ID (number)</p>\n",type:"String|Integer"}],class:"p5.Table",module:"IO"},getNum:{name:"getNum",params:[{name:"row",description:"<p>row ID</p>\n",type:"Integer"},{name:"column",description:"<p>columnName (string) or\n ID (number)</p>\n",type:"String|Integer"}],class:"p5.Table",module:"IO"},getString:{name:"getString",params:[{name:"row",description:"<p>row ID</p>\n",type:"Integer"},{name:"column",description:"<p>columnName (string) or\n ID (number)</p>\n",type:"String|Integer"}],class:"p5.Table",module:"IO"},getObject:{name:"getObject",params:[{name:"headerColumn",description:"<p>Name of the column which should be used to\n title each row object (optional)</p>\n",type:"String",optional:!0}],class:"p5.Table",module:"IO"},getArray:{name:"getArray",class:"p5.Table",module:"IO"}},"p5.TableRow":{set:{name:"set",params:[{name:"column",description:"<p>Column ID (Number)\n or Title (String)</p>\n",type:"String|Integer"},{name:"value",description:"<p>The value to be stored</p>\n",type:"String|Number"}],class:"p5.TableRow",module:"IO"},setNum:{name:"setNum",params:[{name:"column",description:"<p>Column ID (Number)\n or Title (String)</p>\n",type:"String|Integer"},{name:"value",description:"<p>The value to be stored\n as a Float</p>\n",type:"Number|String"}],class:"p5.TableRow",module:"IO"},setString:{name:"setString",params:[{name:"column",description:"<p>Column ID (Number)\n or Title (String)</p>\n",type:"String|Integer"},{name:"value",description:"<p>The value to be stored\n as a String</p>\n",type:"String|Number|Boolean|Object"}],class:"p5.TableRow",module:"IO"},get:{name:"get",params:[{name:"column",description:"<p>columnName (string) or\n ID (number)</p>\n",type:"String|Integer"}],class:"p5.TableRow",module:"IO"},getNum:{name:"getNum",params:[{name:"column",description:"<p>columnName (string) or\n ID (number)</p>\n",type:"String|Integer"}],class:"p5.TableRow",module:"IO"},getString:{name:"getString",params:[{name:"column",description:"<p>columnName (string) or\n ID (number)</p>\n",type:"String|Integer"}],class:"p5.TableRow",module:"IO"}},"p5.XML":{getParent:{name:"getParent",class:"p5.XML",module:"IO"},getName:{name:"getName",class:"p5.XML",module:"IO"},setName:{name:"setName",params:[{name:"the",description:"<p>new name of the node</p>\n",type:"String"}],class:"p5.XML",module:"IO"},hasChildren:{name:"hasChildren",class:"p5.XML",module:"IO"},listChildren:{name:"listChildren",class:"p5.XML",module:"IO"},getChildren:{name:"getChildren",params:[{name:"name",description:"<p>element name</p>\n",type:"String",optional:!0}],class:"p5.XML",module:"IO"},getChild:{name:"getChild",params:[{name:"name",description:"<p>element name or index</p>\n",type:"String|Integer"}],class:"p5.XML",module:"IO"},addChild:{name:"addChild",params:[{name:"node",description:'<p>a <a href="#/p5.XML">p5.XML</a> Object which will be the child to be added</p>\n',type:"p5.XML"}],class:"p5.XML",module:"IO"},removeChild:{name:"removeChild",params:[{name:"name",description:"<p>element name or index</p>\n",type:"String|Integer"}],class:"p5.XML",module:"IO"},getAttributeCount:{name:"getAttributeCount",class:"p5.XML",module:"IO"},listAttributes:{name:"listAttributes",class:"p5.XML",module:"IO"},hasAttribute:{name:"hasAttribute",params:[{name:"the",description:"<p>attribute to be checked</p>\n",type:"String"}],class:"p5.XML",module:"IO"},getNum:{name:"getNum",params:[{name:"name",description:"<p>the non-null full name of the attribute</p>\n",type:"String"},{name:"defaultValue",description:"<p>the default value of the attribute</p>\n",type:"Number",optional:!0}],class:"p5.XML",module:"IO"},getString:{name:"getString",params:[{name:"name",description:"<p>the non-null full name of the attribute</p>\n",type:"String"},{name:"defaultValue",description:"<p>the default value of the attribute</p>\n",type:"Number",optional:!0}],class:"p5.XML",module:"IO"},setAttribute:{name:"setAttribute",params:[{name:"name",description:"<p>the full name of the attribute</p>\n",type:"String"},{name:"value",description:"<p>the value of the attribute</p>\n",type:"Number|String|Boolean"}],class:"p5.XML",module:"IO"},getContent:{name:"getContent",params:[{name:"defaultValue",description:"<p>value returned if no content is found</p>\n",type:"String",optional:!0}],class:"p5.XML",module:"IO"},setContent:{name:"setContent",params:[{name:"text",description:"<p>the new content</p>\n",type:"String"}],class:"p5.XML",module:"IO"},serialize:{name:"serialize",class:"p5.XML",module:"IO"}},"p5.Vector":{x:{name:"x",class:"p5.Vector",module:"Math"},y:{name:"y",class:"p5.Vector",module:"Math"},z:{name:"z",class:"p5.Vector",module:"Math"},toString:{name:"toString",class:"p5.Vector",module:"Math"},set:{name:"set",class:"p5.Vector",module:"Math",overloads:[{params:[{name:"x",description:"<p>The x component of the vector</p>\n",type:"Number",optional:!0},{name:"y",description:"<p>The y component of the vector</p>\n",type:"Number",optional:!0},{name:"z",description:"<p>The z component of the vector</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"value",description:"<p>The vector to set</p>\n",type:"p5.Vector|Number[]"}],chainable:1}]},copy:{name:"copy",class:"p5.Vector",module:"Math"},add:{name:"add",class:"p5.Vector",module:"Math",overloads:[{params:[{name:"x",description:"<p>The x component of the vector to be added</p>\n",type:"Number"},{name:"y",description:"<p>The y component of the vector to be added</p>\n",type:"Number",optional:!0},{name:"z",description:"<p>The z component of the vector to be added</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"value",description:"<p>The vector to add</p>\n",type:"p5.Vector|Number[]"}],chainable:1},{params:[{name:"v1",description:'<p>A <a href="#/p5.Vector">p5.Vector</a> to add</p>\n',type:"p5.Vector"},{name:"v2",description:'<p>A <a href="#/p5.Vector">p5.Vector</a> to add</p>\n',type:"p5.Vector"},{name:"target",description:"<p>The vector to receive the result</p>\n",type:"p5.Vector",optional:!0}],static:1}]},rem:{name:"rem",class:"p5.Vector",module:"Math",overloads:[{params:[{name:"x",description:"<p>The x component of divisor vector</p>\n",type:"Number"},{name:"y",description:"<p>The y component of divisor vector</p>\n",type:"Number"},{name:"z",description:"<p>The z component of divisor vector</p>\n",type:"Number"}],chainable:1},{params:[{name:"value",description:"<p>The divisor vector</p>\n",type:"p5.Vector | Number[]"}],chainable:1},{params:[{name:"v1",description:'<p>The dividend <a href="#/p5.Vector">p5.Vector</a></p>\n',type:"p5.Vector"},{name:"v2",description:'<p>The divisor <a href="#/p5.Vector">p5.Vector</a></p>\n',type:"p5.Vector"}],static:1},{params:[{name:"v1",description:"",type:"p5.Vector"},{name:"v2",description:"",type:"p5.Vector"}],static:1}]},sub:{name:"sub",class:"p5.Vector",module:"Math",overloads:[{params:[{name:"x",description:"<p>The x component of the vector to subtract</p>\n",type:"Number"},{name:"y",description:"<p>The y component of the vector to subtract</p>\n",type:"Number",optional:!0},{name:"z",description:"<p>The z component of the vector to subtract</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"value",description:"<p>the vector to subtract</p>\n",type:"p5.Vector|Number[]"}],chainable:1},{params:[{name:"v1",description:'<p>A <a href="#/p5.Vector">p5.Vector</a> to subtract from</p>\n',type:"p5.Vector"},{name:"v2",description:'<p>A <a href="#/p5.Vector">p5.Vector</a> to subtract</p>\n',type:"p5.Vector"},{name:"target",description:"<p>The vector to receive the result</p>\n",type:"p5.Vector",optional:!0}],static:1}]},mult:{name:"mult",class:"p5.Vector",module:"Math",overloads:[{params:[{name:"n",description:"<p>The number to multiply with the vector</p>\n",type:"Number"}],chainable:1},{params:[{name:"x",description:"<p>The number to multiply with the x component of the vector</p>\n",type:"Number"},{name:"y",description:"<p>The number to multiply with the y component of the vector</p>\n",type:"Number"},{name:"z",description:"<p>The number to multiply with the z component of the vector</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"arr",description:"<p>The array to multiply with the components of the vector</p>\n",type:"Number[]"}],chainable:1},{params:[{name:"v",description:"<p>The vector to multiply with the components of the original vector</p>\n",type:"p5.Vector"}],chainable:1},{params:[{name:"x",description:"",type:"Number"},{name:"y",description:"",type:"Number"},{name:"z",description:"",type:"Number",optional:!0}],static:1},{params:[{name:"v",description:"",type:"p5.Vector"},{name:"n",description:"",type:"Number"},{name:"target",description:"<p>the vector to receive the result</p>\n",type:"p5.Vector",optional:!0}],static:1},{params:[{name:"v0",description:"",type:"p5.Vector"},{name:"v1",description:"",type:"p5.Vector"},{name:"target",description:"",type:"p5.Vector",optional:!0}],static:1},{params:[{name:"v0",description:"",type:"p5.Vector"},{name:"arr",description:"",type:"Number[]"},{name:"target",description:"",type:"p5.Vector",optional:!0}],static:1}]},div:{name:"div",class:"p5.Vector",module:"Math",overloads:[{params:[{name:"n",description:"<p>The number to divide the vector by</p>\n",type:"Number"}],chainable:1},{params:[{name:"x",description:"<p>The number to divide with the x component of the vector</p>\n",type:"Number"},{name:"y",description:"<p>The number to divide with the y component of the vector</p>\n",type:"Number"},{name:"z",description:"<p>The number to divide with the z component of the vector</p>\n",type:"Number",optional:!0}],chainable:1},{params:[{name:"arr",description:"<p>The array to divide the components of the vector by</p>\n",type:"Number[]"}],chainable:1},{params:[{name:"v",description:"<p>The vector to divide the components of the original vector by</p>\n",type:"p5.Vector"}],chainable:1},{params:[{name:"x",description:"",type:"Number"},{name:"y",description:"",type:"Number"},{name:"z",description:"",type:"Number",optional:!0}],static:1},{params:[{name:"v",description:"",type:"p5.Vector"},{name:"n",description:"",type:"Number"},{name:"target",description:"<p>The vector to receive the result</p>\n",type:"p5.Vector",optional:!0}],static:1},{params:[{name:"v0",description:"",type:"p5.Vector"},{name:"v1",description:"",type:"p5.Vector"},{name:"target",description:"",type:"p5.Vector",optional:!0}],static:1},{params:[{name:"v0",description:"",type:"p5.Vector"},{name:"arr",description:"",type:"Number[]"},{name:"target",description:"",type:"p5.Vector",optional:!0}],static:1}]},mag:{name:"mag",class:"p5.Vector",module:"Math",overloads:[{params:[]},{params:[{name:"vecT",description:"<p>The vector to return the magnitude of</p>\n",type:"p5.Vector"}],static:1}]},magSq:{name:"magSq",class:"p5.Vector",module:"Math"},dot:{name:"dot",class:"p5.Vector",module:"Math",overloads:[{params:[{name:"x",description:"<p>The x component of the vector</p>\n",type:"Number"},{name:"y",description:"<p>The y component of the vector</p>\n",type:"Number",optional:!0},{name:"z",description:"<p>The z component of the vector</p>\n",type:"Number",optional:!0}]},{params:[{name:"value",description:'<p>value component of the vector or a <a href="#/p5.Vector">p5.Vector</a></p>\n',type:"p5.Vector"}]},{params:[{name:"v1",description:'<p>The first <a href="#/p5.Vector">p5.Vector</a></p>\n',type:"p5.Vector"},{name:"v2",description:'<p>The second <a href="#/p5.Vector">p5.Vector</a></p>\n',type:"p5.Vector"}],static:1}]},cross:{name:"cross",class:"p5.Vector",module:"Math",overloads:[{params:[{name:"v",description:'<p><a href="#/p5.Vector">p5.Vector</a> to be crossed</p>\n',type:"p5.Vector"}]},{params:[{name:"v1",description:'<p>The first <a href="#/p5.Vector">p5.Vector</a></p>\n',type:"p5.Vector"},{name:"v2",description:'<p>The second <a href="#/p5.Vector">p5.Vector</a></p>\n',type:"p5.Vector"}],static:1}]},dist:{name:"dist",class:"p5.Vector",module:"Math",overloads:[{params:[{name:"v",description:'<p>The x, y, and z coordinates of a <a href="#/p5.Vector">p5.Vector</a></p>\n',type:"p5.Vector"}]},{params:[{name:"v1",description:'<p>The first <a href="#/p5.Vector">p5.Vector</a></p>\n',type:"p5.Vector"},{name:"v2",description:'<p>The second <a href="#/p5.Vector">p5.Vector</a></p>\n',type:"p5.Vector"}],static:1}]},normalize:{name:"normalize",class:"p5.Vector",module:"Math",overloads:[{params:[]},{params:[{name:"v",description:"<p>The vector to normalize</p>\n",type:"p5.Vector"},{name:"target",description:"<p>The vector to receive the result</p>\n",type:"p5.Vector",optional:!0}],static:1}]},limit:{name:"limit",params:[{name:"max",description:"<p>The maximum magnitude for the vector</p>\n",type:"Number"}],class:"p5.Vector",module:"Math"},setMag:{name:"setMag",params:[{name:"len",description:"<p>The new length for this vector</p>\n",type:"Number"}],class:"p5.Vector",module:"Math"},heading:{name:"heading",class:"p5.Vector",module:"Math"},setHeading:{name:"setHeading",params:[{name:"angle",description:"<p>The angle of rotation</p>\n",type:"Number"}],class:"p5.Vector",module:"Math"},rotate:{name:"rotate",class:"p5.Vector",module:"Math",overloads:[{params:[{name:"angle",description:"<p>The angle of rotation</p>\n",type:"Number"}],chainable:1},{params:[{name:"v",description:"",type:"p5.Vector"},{name:"angle",description:"",type:"Number"},{name:"target",description:"<p>The vector to receive the result</p>\n",type:"p5.Vector",optional:!0}],static:1}]},angleBetween:{name:"angleBetween",params:[{name:"value",description:'<p>The x, y, and z components of a <a href="#/p5.Vector">p5.Vector</a></p>\n',type:"p5.Vector"}],class:"p5.Vector",module:"Math"},lerp:{name:"lerp",class:"p5.Vector",module:"Math",overloads:[{params:[{name:"x",description:"<p>The x component</p>\n",type:"Number"},{name:"y",description:"<p>The y component</p>\n",type:"Number"},{name:"z",description:"<p>The z component</p>\n",type:"Number"},{name:"amt",description:"<p>The amount of interpolation; some value between 0.0\n (old vector) and 1.0 (new vector). 0.9 is very near\n the new vector. 0.5 is halfway in between.</p>\n",type:"Number"}],chainable:1},{params:[{name:"v",description:'<p>The <a href="#/p5.Vector">p5.Vector</a> to lerp to</p>\n',type:"p5.Vector"},{name:"amt",description:"",type:"Number"}],chainable:1},{params:[{name:"v1",description:"",type:"p5.Vector"},{name:"v2",description:"",type:"p5.Vector"},{name:"amt",description:"",type:"Number"},{name:"target",description:"<p>The vector to receive the result</p>\n",type:"p5.Vector",optional:!0}],static:1}]},reflect:{name:"reflect",params:[{name:"surfaceNormal",description:'<p>The <a href="#/p5.Vector">p5.Vector</a> to reflect about; will be normalized by this method.</p>\n',type:"p5.Vector"}],class:"p5.Vector",module:"Math"},array:{name:"array",class:"p5.Vector",module:"Math"},equals:{name:"equals",class:"p5.Vector",module:"Math",overloads:[{params:[{name:"x",description:"<p>The x component of the vector</p>\n",type:"Number",optional:!0},{name:"y",description:"<p>The y component of the vector</p>\n",type:"Number",optional:!0},{name:"z",description:"<p>The z component of the vector</p>\n",type:"Number",optional:!0}]},{params:[{name:"value",description:"<p>The vector to compare</p>\n",type:"p5.Vector|Array"}]}]},fromAngle:{name:"fromAngle",params:[{name:"angle",description:'<p>The desired angle, in radians (unaffected by <a href="#/p5/angleMode">angleMode</a>)</p>\n',type:"Number"},{name:"length",description:"<p>The length of the new vector (defaults to 1)</p>\n",type:"Number",optional:!0}],class:"p5.Vector",module:"Math"},fromAngles:{name:"fromAngles",params:[{name:"theta",description:"<p>The polar angle, in radians (zero is up)</p>\n",type:"Number"},{name:"phi",description:"<p>The azimuthal angle, in radians\n (zero is out of the screen)</p>\n",type:"Number"},{name:"length",description:"<p>The length of the new vector (defaults to 1)</p>\n",type:"Number",optional:!0}],class:"p5.Vector",module:"Math"},random2D:{name:"random2D",class:"p5.Vector",module:"Math"},random3D:{name:"random3D",class:"p5.Vector",module:"Math"}},"p5.Font":{font:{name:"font",class:"p5.Font",module:"Typography"},textBounds:{name:"textBounds",params:[{name:"line",description:"<p>a line of text</p>\n",type:"String"},{name:"x",description:"<p>x-position</p>\n",type:"Number"},{name:"y",description:"<p>y-position</p>\n",type:"Number"},{name:"fontSize",description:"<p>font size to use (optional) Default is 12.</p>\n",type:"Number",optional:!0},{name:"options",description:"<p>opentype options (optional)\n opentype fonts contains alignment and baseline options.\n Default is 'LEFT' and 'alphabetic'</p>\n",type:"Object",optional:!0}],class:"p5.Font",module:"Typography"},textToPoints:{name:"textToPoints",params:[{name:"txt",description:"<p>a line of text</p>\n",type:"String"},{name:"x",description:"<p>x-position</p>\n",type:"Number"},{name:"y",description:"<p>y-position</p>\n",type:"Number"},{name:"fontSize",description:"<p>font size to use (optional)</p>\n",type:"Number"},{name:"options",description:"<p>an (optional) object that can contain:</p>\n<p><br>sampleFactor - the ratio of path-length to number of samples\n(default=.1); higher values yield more points and are therefore\nmore precise</p>\n<p><br>simplifyThreshold - if set to a non-zero value, collinear points will be\nbe removed from the polygon; the value represents the threshold angle to use\nwhen determining whether two edges are collinear</p>\n",type:"Object",optional:!0}],class:"p5.Font",module:"Typography"}},"p5.Camera":{eyeX:{name:"eyeX",class:"p5.Camera",module:"3D"},eyeY:{name:"eyeY",class:"p5.Camera",module:"3D"},eyeZ:{name:"eyeZ",class:"p5.Camera",module:"3D"},centerX:{name:"centerX",class:"p5.Camera",module:"3D"},centerY:{name:"centerY",class:"p5.Camera",module:"3D"},centerZ:{name:"centerZ",class:"p5.Camera",module:"3D"},upX:{name:"upX",class:"p5.Camera",module:"3D"},upY:{name:"upY",class:"p5.Camera",module:"3D"},upZ:{name:"upZ",class:"p5.Camera",module:"3D"},perspective:{name:"perspective",class:"p5.Camera",module:"3D"},ortho:{name:"ortho",class:"p5.Camera",module:"3D"},frustum:{name:"frustum",class:"p5.Camera",module:"3D"},pan:{name:"pan",params:[{name:"angle",description:'<p>amount to rotate camera in current\n<a href="#/p5/angleMode">angleMode</a> units.\nGreater than 0 values rotate counterclockwise (to the left).</p>\n',type:"Number"}],class:"p5.Camera",module:"3D"},tilt:{name:"tilt",params:[{name:"angle",description:'<p>amount to rotate camera in current\n<a href="#/p5/angleMode">angleMode</a> units.\nGreater than 0 values rotate counterclockwise (to the left).</p>\n',type:"Number"}],class:"p5.Camera",module:"3D"},lookAt:{name:"lookAt",params:[{name:"x",description:"<p>x position of a point in world space</p>\n",type:"Number"},{name:"y",description:"<p>y position of a point in world space</p>\n",type:"Number"},{name:"z",description:"<p>z position of a point in world space</p>\n",type:"Number"}],class:"p5.Camera",module:"3D"},camera:{name:"camera",class:"p5.Camera",module:"3D"},move:{name:"move",params:[{name:"x",description:"<p>amount to move along camera's left-right axis</p>\n",type:"Number"},{name:"y",description:"<p>amount to move along camera's up-down axis</p>\n",type:"Number"},{name:"z",description:"<p>amount to move along camera's forward-backward axis</p>\n",type:"Number"}],class:"p5.Camera",module:"3D"},setPosition:{name:"setPosition",params:[{name:"x",description:"<p>x position of a point in world space</p>\n",type:"Number"},{name:"y",description:"<p>y position of a point in world space</p>\n",type:"Number"},{name:"z",description:"<p>z position of a point in world space</p>\n",type:"Number"}],class:"p5.Camera",module:"3D"}},"p5.Geometry":{computeFaces:{name:"computeFaces",class:"p5.Geometry",module:"Shape"},computeNormals:{name:"computeNormals",class:"p5.Geometry",module:"Shape"},averageNormals:{name:"averageNormals",class:"p5.Geometry",module:"Shape"},averagePoleNormals:{name:"averagePoleNormals",class:"p5.Geometry",module:"Shape"},normalize:{name:"normalize",class:"p5.Geometry",module:"Shape"}},"p5.Shader":{setUniform:{name:"setUniform",params:[{name:"uniformName",description:"<p>the name of the uniform.\nMust correspond to the name used in the vertex and fragment shaders</p>\n",type:"String"},{name:"data",description:"<p>the data to associate with the uniform. The type can be\na boolean (true/false), a number, an array of numbers, or\nan image (p5.Image, p5.Graphics, p5.MediaElement, p5.Texture)</p>\n",type:"Boolean|Number|Number[]|p5.Image|p5.Graphics|p5.MediaElement|p5.Texture"}],class:"p5.Shader",module:"3D"}},"p5.SoundFile":{isLoaded:{name:"isLoaded",class:"p5.SoundFile",module:"p5.sound"},play:{name:"play",params:[{name:"startTime",description:"<p>(optional) schedule playback to start (in seconds from now).</p>\n",type:"Number",optional:!0},{name:"rate",description:"<p>(optional) playback rate</p>\n",type:"Number",optional:!0},{name:"amp",description:"<p>(optional) amplitude (volume)\n of playback</p>\n",type:"Number",optional:!0},{name:"cueStart",description:"<p>(optional) cue start time in seconds</p>\n",type:"Number",optional:!0},{name:"duration",description:"<p>(optional) duration of playback in seconds</p>\n",type:"Number",optional:!0}],class:"p5.SoundFile",module:"p5.sound"},playMode:{name:"playMode",params:[{name:"str",description:"<p>'restart' or 'sustain' or 'untilDone'</p>\n",type:"String"}],class:"p5.SoundFile",module:"p5.sound"},pause:{name:"pause",params:[{name:"startTime",description:"<p>(optional) schedule event to occur\n seconds from now</p>\n",type:"Number",optional:!0}],class:"p5.SoundFile",module:"p5.sound"},loop:{name:"loop",params:[{name:"startTime",description:"<p>(optional) schedule event to occur\n seconds from now</p>\n",type:"Number",optional:!0},{name:"rate",description:"<p>(optional) playback rate</p>\n",type:"Number",optional:!0},{name:"amp",description:"<p>(optional) playback volume</p>\n",type:"Number",optional:!0},{name:"cueLoopStart",description:"<p>(optional) startTime in seconds</p>\n",type:"Number",optional:!0},{name:"duration",description:"<p>(optional) loop duration in seconds</p>\n",type:"Number",optional:!0}],class:"p5.SoundFile",module:"p5.sound"},setLoop:{name:"setLoop",params:[{name:"Boolean",description:"<p>set looping to true or false</p>\n",type:"Boolean"}],class:"p5.SoundFile",module:"p5.sound"},isLooping:{name:"isLooping",class:"p5.SoundFile",module:"p5.sound"},isPlaying:{name:"isPlaying",class:"p5.SoundFile",module:"p5.sound"},isPaused:{name:"isPaused",class:"p5.SoundFile",module:"p5.sound"},stop:{name:"stop",params:[{name:"startTime",description:"<p>(optional) schedule event to occur\n in seconds from now</p>\n",type:"Number",optional:!0}],class:"p5.SoundFile",module:"p5.sound"},pan:{name:"pan",params:[{name:"panValue",description:"<p>Set the stereo panner</p>\n",type:"Number",optional:!0},{name:"timeFromNow",description:"<p>schedule this event to happen\n seconds from now</p>\n",type:"Number",optional:!0}],class:"p5.SoundFile",module:"p5.sound"},getPan:{name:"getPan",class:"p5.SoundFile",module:"p5.sound"},rate:{name:"rate",params:[{name:"playbackRate",description:"<p>Set the playback rate. 1.0 is normal,\n .5 is half-speed, 2.0 is twice as fast.\n Values less than zero play backwards.</p>\n",type:"Number",optional:!0}],class:"p5.SoundFile",module:"p5.sound"},setVolume:{name:"setVolume",params:[{name:"volume",description:"<p>Volume (amplitude) between 0.0\n and 1.0 or modulating signal/oscillator</p>\n",type:"Number|Object"},{name:"rampTime",description:"<p>Fade for t seconds</p>\n",type:"Number",optional:!0},{name:"timeFromNow",description:"<p>Schedule this event to happen at\n t seconds in the future</p>\n",type:"Number",optional:!0}],class:"p5.SoundFile",module:"p5.sound"},duration:{name:"duration",class:"p5.SoundFile",module:"p5.sound"},currentTime:{name:"currentTime",class:"p5.SoundFile",module:"p5.sound"},jump:{name:"jump",params:[{name:"cueTime",description:"<p>cueTime of the soundFile in seconds.</p>\n",type:"Number"},{name:"duration",description:"<p>duration in seconds.</p>\n",type:"Number"}],class:"p5.SoundFile",module:"p5.sound"},channels:{name:"channels",class:"p5.SoundFile",module:"p5.sound"},sampleRate:{name:"sampleRate",class:"p5.SoundFile",module:"p5.sound"},frames:{name:"frames",class:"p5.SoundFile",module:"p5.sound"},getPeaks:{name:"getPeaks",params:[{name:"length",description:"<p>length is the size of the returned array.\n Larger length results in more precision.\n Defaults to 5*width of the browser window.</p>\n",type:"Number",optional:!0}],class:"p5.SoundFile",module:"p5.sound"},reverseBuffer:{name:"reverseBuffer",class:"p5.SoundFile",module:"p5.sound"},onended:{name:"onended",params:[{name:"callback",description:"<p>function to call when the\n soundfile has ended.</p>\n",type:"Function"}],class:"p5.SoundFile",module:"p5.sound"},connect:{name:"connect",params:[{name:"object",description:"<p>Audio object that accepts an input</p>\n",type:"Object",optional:!0}],class:"p5.SoundFile",module:"p5.sound"},disconnect:{name:"disconnect",class:"p5.SoundFile",module:"p5.sound"},setPath:{name:"setPath",params:[{name:"path",description:"<p>path to audio file</p>\n",type:"String"},{name:"callback",description:"<p>Callback</p>\n",type:"Function"}],class:"p5.SoundFile",module:"p5.sound"},setBuffer:{name:"setBuffer",params:[{name:"buf",description:"<p>Array of Float32 Array(s). 2 Float32 Arrays\n will create a stereo source. 1 will create\n a mono source.</p>\n",type:"Array"}],class:"p5.SoundFile",module:"p5.sound"},addCue:{name:"addCue",params:[{name:"time",description:"<p>Time in seconds, relative to this media\n element's playback. For example, to trigger\n an event every time playback reaches two\n seconds, pass in the number 2. This will be\n passed as the first parameter to\n the callback function.</p>\n",type:"Number"},{name:"callback",description:"<p>Name of a function that will be\n called at the given time. The callback will\n receive time and (optionally) param as its\n two parameters.</p>\n",type:"Function"},{name:"value",description:"<p>An object to be passed as the\n second parameter to the\n callback function.</p>\n",type:"Object",optional:!0}],class:"p5.SoundFile",module:"p5.sound"},removeCue:{name:"removeCue",params:[{name:"id",description:"<p>ID of the cue, as returned by addCue</p>\n",type:"Number"}],class:"p5.SoundFile",module:"p5.sound"},clearCues:{name:"clearCues",class:"p5.SoundFile",module:"p5.sound"},save:{name:"save",params:[{name:"fileName",description:"<p>name of the resulting .wav file.</p>\n",type:"String",optional:!0}],class:"p5.SoundFile",module:"p5.sound"},getBlob:{name:"getBlob",class:"p5.SoundFile",module:"p5.sound"}},"p5.Amplitude":{setInput:{name:"setInput",params:[{name:"snd",description:"<p>set the sound source\n (optional, defaults to\n main output)</p>\n",type:"SoundObject|undefined",optional:!0},{name:"smoothing",description:"<p>a range between 0.0 and 1.0\n to smooth amplitude readings</p>\n",type:"Number|undefined",optional:!0}],class:"p5.Amplitude",module:"p5.sound"},getLevel:{name:"getLevel",params:[{name:"channel",description:"<p>Optionally return only channel 0 (left) or 1 (right)</p>\n",type:"Number",optional:!0}],class:"p5.Amplitude",module:"p5.sound"},toggleNormalize:{name:"toggleNormalize",params:[{name:"boolean",description:"<p>set normalize to true (1) or false (0)</p>\n",type:"Boolean",optional:!0}],class:"p5.Amplitude",module:"p5.sound"},smooth:{name:"smooth",params:[{name:"set",description:"<p>smoothing from 0.0 <= 1</p>\n",type:"Number"}],class:"p5.Amplitude",module:"p5.sound"}},"p5.FFT":{setInput:{name:"setInput",params:[{name:"source",description:"<p>p5.sound object (or web audio API source node)</p>\n",type:"Object",optional:!0}],class:"p5.FFT",module:"p5.sound"},waveform:{name:"waveform",params:[{name:"bins",description:"<p>Must be a power of two between\n 16 and 1024. Defaults to 1024.</p>\n",type:"Number",optional:!0},{name:"precision",description:"<p>If any value is provided, will return results\n in a Float32 Array which is more precise\n than a regular array.</p>\n",type:"String",optional:!0}],class:"p5.FFT",module:"p5.sound"},analyze:{name:"analyze",params:[{name:"bins",description:"<p>Must be a power of two between\n 16 and 1024. Defaults to 1024.</p>\n",type:"Number",optional:!0},{name:"scale",description:'<p>If "dB," returns decibel\n float measurements between\n -140 and 0 (max).\n Otherwise returns integers from 0-255.</p>\n',type:"Number",optional:!0}],class:"p5.FFT",module:"p5.sound"},getEnergy:{name:"getEnergy",params:[{name:"frequency1",description:'<p>Will return a value representing\n energy at this frequency. Alternately,\n the strings "bass", "lowMid" "mid",\n "highMid", and "treble" will return\n predefined frequency ranges.</p>\n',type:"Number|String"},{name:"frequency2",description:"<p>If a second frequency is given,\n will return average amount of\n energy that exists between the\n two frequencies.</p>\n",type:"Number",optional:!0}],class:"p5.FFT",module:"p5.sound"},getCentroid:{name:"getCentroid",class:"p5.FFT",module:"p5.sound"},smooth:{name:"smooth",params:[{name:"smoothing",description:"<p>0.0 < smoothing < 1.0.\n Defaults to 0.8.</p>\n",type:"Number"}],class:"p5.FFT",module:"p5.sound"},linAverages:{name:"linAverages",params:[{name:"N",description:"<p>Number of returned frequency groups</p>\n",type:"Number"}],class:"p5.FFT",module:"p5.sound"},logAverages:{name:"logAverages",params:[{name:"octaveBands",description:"<p>Array of Octave Bands objects for grouping</p>\n",type:"Array"}],class:"p5.FFT",module:"p5.sound"},getOctaveBands:{name:"getOctaveBands",params:[{name:"N",description:"<p>Specifies the 1/N type of generated octave bands</p>\n",type:"Number"},{name:"fCtr0",description:"<p>Minimum central frequency for the lowest band</p>\n",type:"Number"}],class:"p5.FFT",module:"p5.sound"}},"p5.Oscillator":{start:{name:"start",params:[{name:"time",description:"<p>startTime in seconds from now.</p>\n",type:"Number",optional:!0},{name:"frequency",description:"<p>frequency in Hz.</p>\n",type:"Number",optional:!0}],class:"p5.Oscillator",module:"p5.sound"},stop:{name:"stop",params:[{name:"secondsFromNow",description:"<p>Time, in seconds from now.</p>\n",type:"Number"}],class:"p5.Oscillator",module:"p5.sound"},amp:{name:"amp",params:[{name:"vol",description:"<p>between 0 and 1.0\n or a modulating signal/oscillator</p>\n",type:"Number|Object"},{name:"rampTime",description:"<p>create a fade that lasts rampTime</p>\n",type:"Number",optional:!0},{name:"timeFromNow",description:"<p>schedule this event to happen\n seconds from now</p>\n",type:"Number",optional:!0}],class:"p5.Oscillator",module:"p5.sound"},getAmp:{name:"getAmp",class:"p5.Oscillator",module:"p5.sound"},freq:{name:"freq",params:[{name:"Frequency",description:"<p>Frequency in Hz\n or modulating signal/oscillator</p>\n",type:"Number|Object"},{name:"rampTime",description:"<p>Ramp time (in seconds)</p>\n",type:"Number",optional:!0},{name:"timeFromNow",description:"<p>Schedule this event to happen\n at x seconds from now</p>\n",type:"Number",optional:!0}],class:"p5.Oscillator",module:"p5.sound"},getFreq:{name:"getFreq",class:"p5.Oscillator",module:"p5.sound"},setType:{name:"setType",params:[{name:"type",description:"<p>'sine', 'triangle', 'sawtooth' or 'square'.</p>\n",type:"String"}],class:"p5.Oscillator",module:"p5.sound"},getType:{name:"getType",class:"p5.Oscillator",module:"p5.sound"},connect:{name:"connect",params:[{name:"unit",description:"<p>A p5.sound or Web Audio object</p>\n",type:"Object"}],class:"p5.Oscillator",module:"p5.sound"},disconnect:{name:"disconnect",class:"p5.Oscillator",module:"p5.sound"},pan:{name:"pan",params:[{name:"panning",description:"<p>Number between -1 and 1</p>\n",type:"Number"},{name:"timeFromNow",description:"<p>schedule this event to happen\n seconds from now</p>\n",type:"Number"}],class:"p5.Oscillator",module:"p5.sound"},getPan:{name:"getPan",class:"p5.Oscillator",module:"p5.sound"},phase:{name:"phase",params:[{name:"phase",description:"<p>float between 0.0 and 1.0</p>\n",type:"Number"}],class:"p5.Oscillator",module:"p5.sound"},add:{name:"add",params:[{name:"number",description:"<p>Constant number to add</p>\n",type:"Number"}],class:"p5.Oscillator",module:"p5.sound"},mult:{name:"mult",params:[{name:"number",description:"<p>Constant number to multiply</p>\n",type:"Number"}],class:"p5.Oscillator",module:"p5.sound"},scale:{name:"scale",params:[{name:"inMin",description:"<p>input range minumum</p>\n",type:"Number"},{name:"inMax",description:"<p>input range maximum</p>\n",type:"Number"},{name:"outMin",description:"<p>input range minumum</p>\n",type:"Number"},{name:"outMax",description:"<p>input range maximum</p>\n",type:"Number"}],class:"p5.Oscillator",module:"p5.sound"}},"p5.Envelope":{attackTime:{name:"attackTime",class:"p5.Envelope",module:"p5.sound"},attackLevel:{name:"attackLevel",class:"p5.Envelope",module:"p5.sound"},decayTime:{name:"decayTime",class:"p5.Envelope",module:"p5.sound"},decayLevel:{name:"decayLevel",class:"p5.Envelope",module:"p5.sound"},releaseTime:{name:"releaseTime",class:"p5.Envelope",module:"p5.sound"},releaseLevel:{name:"releaseLevel",class:"p5.Envelope",module:"p5.sound"},set:{name:"set",params:[{name:"attackTime",description:"<p>Time (in seconds) before level\n reaches attackLevel</p>\n",type:"Number"},{name:"attackLevel",description:"<p>Typically an amplitude between\n 0.0 and 1.0</p>\n",type:"Number"},{name:"decayTime",description:"<p>Time</p>\n",type:"Number"},{name:"decayLevel",description:"<p>Amplitude (In a standard ADSR envelope,\n decayLevel = sustainLevel)</p>\n",type:"Number"},{name:"releaseTime",description:"<p>Release Time (in seconds)</p>\n",type:"Number"},{name:"releaseLevel",description:"<p>Amplitude</p>\n",type:"Number"}],class:"p5.Envelope",module:"p5.sound"},setADSR:{name:"setADSR",params:[{name:"attackTime",description:"<p>Time (in seconds before envelope\n reaches Attack Level</p>\n",type:"Number"},{name:"decayTime",description:"<p>Time (in seconds) before envelope\n reaches Decay/Sustain Level</p>\n",type:"Number",optional:!0},{name:"susRatio",description:"<p>Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n where 1.0 = attackLevel, 0.0 = releaseLevel.\n The susRatio determines the decayLevel and the level at which the\n sustain portion of the envelope will sustain.\n For example, if attackLevel is 0.4, releaseLevel is 0,\n and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n increased to 1.0 (using <code>setRange</code>),\n then decayLevel would increase proportionally, to become 0.5.</p>\n",type:"Number",optional:!0},{name:"releaseTime",description:"<p>Time in seconds from now (defaults to 0)</p>\n",type:"Number",optional:!0}],class:"p5.Envelope",module:"p5.sound"},setRange:{name:"setRange",params:[{name:"aLevel",description:"<p>attack level (defaults to 1)</p>\n",type:"Number"},{name:"rLevel",description:"<p>release level (defaults to 0)</p>\n",type:"Number"}],class:"p5.Envelope",module:"p5.sound"},setInput:{name:"setInput",params:[{name:"inputs",description:"<p>A p5.sound object or\n Web Audio Param.</p>\n",type:"Object",optional:!0,multiple:!0}],class:"p5.Envelope",module:"p5.sound"},setExp:{name:"setExp",params:[{name:"isExp",description:"<p>true is exponential, false is linear</p>\n",type:"Boolean"}],class:"p5.Envelope",module:"p5.sound"},play:{name:"play",params:[{name:"unit",description:"<p>A p5.sound object or\n Web Audio Param.</p>\n",type:"Object"},{name:"startTime",description:"<p>time from now (in seconds) at which to play</p>\n",type:"Number",optional:!0},{name:"sustainTime",description:"<p>time to sustain before releasing the envelope</p>\n",type:"Number",optional:!0}],class:"p5.Envelope",module:"p5.sound"},triggerAttack:{name:"triggerAttack",params:[{name:"unit",description:"<p>p5.sound Object or Web Audio Param</p>\n",type:"Object"},{name:"secondsFromNow",description:"<p>time from now (in seconds)</p>\n",type:"Number"}],class:"p5.Envelope",module:"p5.sound"},triggerRelease:{name:"triggerRelease",params:[{name:"unit",description:"<p>p5.sound Object or Web Audio Param</p>\n",type:"Object"},{name:"secondsFromNow",description:"<p>time to trigger the release</p>\n",type:"Number"}],class:"p5.Envelope",module:"p5.sound"},ramp:{name:"ramp",params:[{name:"unit",description:"<p>p5.sound Object or Web Audio Param</p>\n",type:"Object"},{name:"secondsFromNow",description:"<p>When to trigger the ramp</p>\n",type:"Number"},{name:"v",description:"<p>Target value</p>\n",type:"Number"},{name:"v2",description:"<p>Second target value</p>\n",type:"Number",optional:!0}],class:"p5.Envelope",module:"p5.sound"},add:{name:"add",params:[{name:"number",description:"<p>Constant number to add</p>\n",type:"Number"}],class:"p5.Envelope",module:"p5.sound"},mult:{name:"mult",params:[{name:"number",description:"<p>Constant number to multiply</p>\n",type:"Number"}],class:"p5.Envelope",module:"p5.sound"},scale:{name:"scale",params:[{name:"inMin",description:"<p>input range minumum</p>\n",type:"Number"},{name:"inMax",description:"<p>input range maximum</p>\n",type:"Number"},{name:"outMin",description:"<p>input range minumum</p>\n",type:"Number"},{name:"outMax",description:"<p>input range maximum</p>\n",type:"Number"}],class:"p5.Envelope",module:"p5.sound"}},"p5.Noise":{setType:{name:"setType",params:[{name:"type",description:"<p>'white', 'pink' or 'brown'</p>\n",type:"String",optional:!0}],class:"p5.Noise",module:"p5.sound"}},"p5.Pulse":{width:{name:"width",params:[{name:"width",description:"<p>Width between the pulses (0 to 1.0,\n defaults to 0)</p>\n",type:"Number",optional:!0}],class:"p5.Pulse",module:"p5.sound"}},"p5.AudioIn":{input:{name:"input",class:"p5.AudioIn",module:"p5.sound"},output:{name:"output",class:"p5.AudioIn",module:"p5.sound"},stream:{name:"stream",class:"p5.AudioIn",module:"p5.sound"},mediaStream:{name:"mediaStream",class:"p5.AudioIn",module:"p5.sound"},currentSource:{name:"currentSource",class:"p5.AudioIn",module:"p5.sound"},enabled:{name:"enabled",class:"p5.AudioIn",module:"p5.sound"},amplitude:{name:"amplitude",class:"p5.AudioIn",module:"p5.sound"},start:{name:"start",params:[{name:"successCallback",description:"<p>Name of a function to call on\n success.</p>\n",type:"Function",optional:!0},{name:"errorCallback",description:"<p>Name of a function to call if\n there was an error. For example,\n some browsers do not support\n getUserMedia.</p>\n",type:"Function",optional:!0}],class:"p5.AudioIn",module:"p5.sound"},stop:{name:"stop",class:"p5.AudioIn",module:"p5.sound"},connect:{name:"connect",params:[{name:"unit",description:"<p>An object that accepts audio input,\n such as an FFT</p>\n",type:"Object",optional:!0}],class:"p5.AudioIn",module:"p5.sound"},disconnect:{name:"disconnect",class:"p5.AudioIn",module:"p5.sound"},getLevel:{name:"getLevel",params:[{name:"smoothing",description:"<p>Smoothing is 0.0 by default.\n Smooths values based on previous values.</p>\n",type:"Number",optional:!0}],class:"p5.AudioIn",module:"p5.sound"},amp:{name:"amp",params:[{name:"vol",description:"<p>between 0 and 1.0</p>\n",type:"Number"},{name:"time",description:"<p>ramp time (optional)</p>\n",type:"Number",optional:!0}],class:"p5.AudioIn",module:"p5.sound"},getSources:{name:"getSources",params:[{name:"successCallback",description:"<p>This callback function handles the sources when they\n have been enumerated. The callback function\n receives the deviceList array as its only argument</p>\n",type:"Function",optional:!0},{name:"errorCallback",description:"<p>This optional callback receives the error\n message as its argument.</p>\n",type:"Function",optional:!0}],class:"p5.AudioIn",module:"p5.sound"},setSource:{name:"setSource",params:[{name:"num",description:"<p>position of input source in the array</p>\n",type:"Number"}],class:"p5.AudioIn",module:"p5.sound"}},"p5.Effect":{amp:{name:"amp",params:[{name:"vol",description:"<p>amplitude between 0 and 1.0</p>\n",type:"Number",optional:!0},{name:"rampTime",description:"<p>create a fade that lasts until rampTime</p>\n",type:"Number",optional:!0},{name:"tFromNow",description:"<p>schedule this event to happen in tFromNow seconds</p>\n",type:"Number",optional:!0}],class:"p5.Effect",module:"p5.sound"},chain:{name:"chain",params:[{name:"arguments",description:"<p>Chain together multiple sound objects</p>\n",type:"Object",optional:!0}],class:"p5.Effect",module:"p5.sound"},drywet:{name:"drywet",params:[{name:"fade",description:"<p>The desired drywet value (0 - 1.0)</p>\n",type:"Number",optional:!0}],class:"p5.Effect",module:"p5.sound"},connect:{name:"connect",params:[{name:"unit",description:"",type:"Object"}],class:"p5.Effect",module:"p5.sound"},disconnect:{name:"disconnect",class:"p5.Effect",module:"p5.sound"}},"p5.Filter":{biquadFilter:{name:"biquadFilter",class:"p5.Filter",module:"p5.sound"},process:{name:"process",params:[{name:"Signal",description:"<p>An object that outputs audio</p>\n",type:"Object"},{name:"freq",description:"<p>Frequency in Hz, from 10 to 22050</p>\n",type:"Number",optional:!0},{name:"res",description:"<p>Resonance/Width of the filter frequency\n from 0.001 to 1000</p>\n",type:"Number",optional:!0}],class:"p5.Filter",module:"p5.sound"},set:{name:"set",params:[{name:"freq",description:"<p>Frequency in Hz, from 10 to 22050</p>\n",type:"Number",optional:!0},{name:"res",description:"<p>Resonance (Q) from 0.001 to 1000</p>\n",type:"Number",optional:!0},{name:"timeFromNow",description:"<p>schedule this event to happen\n seconds from now</p>\n",type:"Number",optional:!0}],class:"p5.Filter",module:"p5.sound"},freq:{name:"freq",params:[{name:"freq",description:"<p>Filter Frequency</p>\n",type:"Number"},{name:"timeFromNow",description:"<p>schedule this event to happen\n seconds from now</p>\n",type:"Number",optional:!0}],class:"p5.Filter",module:"p5.sound"},res:{name:"res",params:[{name:"res",description:"<p>Resonance/Width of filter freq\n from 0.001 to 1000</p>\n",type:"Number"},{name:"timeFromNow",description:"<p>schedule this event to happen\n seconds from now</p>\n",type:"Number",optional:!0}],class:"p5.Filter",module:"p5.sound"},gain:{name:"gain",params:[{name:"gain",description:"",type:"Number"}],class:"p5.Filter",module:"p5.sound"},toggle:{name:"toggle",class:"p5.Filter",module:"p5.sound"},setType:{name:"setType",params:[{name:"t",description:"",type:"String"}],class:"p5.Filter",module:"p5.sound"}},"p5.EQ":{bands:{name:"bands",class:"p5.EQ",module:"p5.sound"},process:{name:"process",params:[{name:"src",description:"<p>Audio source</p>\n",type:"Object"}],class:"p5.EQ",module:"p5.sound"}},"p5.Panner3D":{panner:{name:"panner",class:"p5.Panner3D",module:"p5.sound"},process:{name:"process",params:[{name:"src",description:"<p>Input source</p>\n",type:"Object"}],class:"p5.Panner3D",module:"p5.sound"},set:{name:"set",params:[{name:"xVal",description:"",type:"Number"},{name:"yVal",description:"",type:"Number"},{name:"zVal",description:"",type:"Number"},{name:"time",description:"",type:"Number"}],class:"p5.Panner3D",module:"p5.sound"},positionX:{name:"positionX",class:"p5.Panner3D",module:"p5.sound"},positionY:{name:"positionY",class:"p5.Panner3D",module:"p5.sound"},positionZ:{name:"positionZ",class:"p5.Panner3D",module:"p5.sound"},orient:{name:"orient",params:[{name:"xVal",description:"",type:"Number"},{name:"yVal",description:"",type:"Number"},{name:"zVal",description:"",type:"Number"},{name:"time",description:"",type:"Number"}],class:"p5.Panner3D",module:"p5.sound"},orientX:{name:"orientX",class:"p5.Panner3D",module:"p5.sound"},orientY:{name:"orientY",class:"p5.Panner3D",module:"p5.sound"},orientZ:{name:"orientZ",class:"p5.Panner3D",module:"p5.sound"},setFalloff:{name:"setFalloff",params:[{name:"maxDistance",description:"",type:"Number",optional:!0},{name:"rolloffFactor",description:"",type:"Number",optional:!0}],class:"p5.Panner3D",module:"p5.sound"},maxDist:{name:"maxDist",params:[{name:"maxDistance",description:"",type:"Number"}],class:"p5.Panner3D",module:"p5.sound"},rollof:{name:"rollof",params:[{name:"rolloffFactor",description:"",type:"Number"}],class:"p5.Panner3D",module:"p5.sound"}},"p5.Delay":{leftDelay:{name:"leftDelay",class:"p5.Delay",module:"p5.sound"},rightDelay:{name:"rightDelay",class:"p5.Delay",module:"p5.sound"},process:{name:"process",params:[{name:"Signal",description:"<p>An object that outputs audio</p>\n",type:"Object"},{name:"delayTime",description:"<p>Time (in seconds) of the delay/echo.\n Some browsers limit delayTime to\n 1 second.</p>\n",type:"Number",optional:!0},{name:"feedback",description:"<p>sends the delay back through itself\n in a loop that decreases in volume\n each time.</p>\n",type:"Number",optional:!0},{name:"lowPass",description:"<p>Cutoff frequency. Only frequencies\n below the lowPass will be part of the\n delay.</p>\n",type:"Number",optional:!0}],class:"p5.Delay",module:"p5.sound"},delayTime:{name:"delayTime",params:[{name:"delayTime",description:"<p>Time (in seconds) of the delay</p>\n",type:"Number"}],class:"p5.Delay",module:"p5.sound"},feedback:{name:"feedback",params:[{name:"feedback",description:"<p>0.0 to 1.0, or an object such as an\n Oscillator that can be used to\n modulate this param</p>\n",type:"Number|Object"}],class:"p5.Delay",module:"p5.sound"},filter:{name:"filter",params:[{name:"cutoffFreq",description:"<p>A lowpass filter will cut off any\n frequencies higher than the filter frequency.</p>\n",type:"Number|Object"},{name:"res",description:"<p>Resonance of the filter frequency\n cutoff, or an object (i.e. a p5.Oscillator)\n that can be used to modulate this parameter.\n High numbers (i.e. 15) will produce a resonance,\n low numbers (i.e. .2) will produce a slope.</p>\n",type:"Number|Object"}],class:"p5.Delay",module:"p5.sound"},setType:{name:"setType",params:[{name:"type",description:"<p>'pingPong' (1) or 'default' (0)</p>\n",type:"String|Number"}],class:"p5.Delay",module:"p5.sound"},amp:{name:"amp",params:[{name:"volume",description:"<p>amplitude between 0 and 1.0</p>\n",type:"Number"},{name:"rampTime",description:"<p>create a fade that lasts rampTime</p>\n",type:"Number",optional:!0},{name:"timeFromNow",description:"<p>schedule this event to happen\n seconds from now</p>\n",type:"Number",optional:!0}],class:"p5.Delay",module:"p5.sound"},connect:{name:"connect",params:[{name:"unit",description:"",type:"Object"}],class:"p5.Delay",module:"p5.sound"},disconnect:{name:"disconnect",class:"p5.Delay",module:"p5.sound"}},"p5.Reverb":{process:{name:"process",params:[{name:"src",description:"<p>p5.sound / Web Audio object with a sound\n output.</p>\n",type:"Object"},{name:"seconds",description:"<p>Duration of the reverb, in seconds.\n Min: 0, Max: 10. Defaults to 3.</p>\n",type:"Number",optional:!0},{name:"decayRate",description:"<p>Percentage of decay with each echo.\n Min: 0, Max: 100. Defaults to 2.</p>\n",type:"Number",optional:!0},{name:"reverse",description:"<p>Play the reverb backwards or forwards.</p>\n",type:"Boolean",optional:!0}],class:"p5.Reverb",module:"p5.sound"},set:{name:"set",params:[{name:"seconds",description:"<p>Duration of the reverb, in seconds.\n Min: 0, Max: 10. Defaults to 3.</p>\n",type:"Number",optional:!0},{name:"decayRate",description:"<p>Percentage of decay with each echo.\n Min: 0, Max: 100. Defaults to 2.</p>\n",type:"Number",optional:!0},{name:"reverse",description:"<p>Play the reverb backwards or forwards.</p>\n",type:"Boolean",optional:!0}],class:"p5.Reverb",module:"p5.sound"},amp:{name:"amp",params:[{name:"volume",description:"<p>amplitude between 0 and 1.0</p>\n",type:"Number"},{name:"rampTime",description:"<p>create a fade that lasts rampTime</p>\n",type:"Number",optional:!0},{name:"timeFromNow",description:"<p>schedule this event to happen\n seconds from now</p>\n",type:"Number",optional:!0}],class:"p5.Reverb",module:"p5.sound"},connect:{name:"connect",params:[{name:"unit",description:"",type:"Object"}],class:"p5.Reverb",module:"p5.sound"},disconnect:{name:"disconnect",class:"p5.Reverb",module:"p5.sound"}},"p5.Convolver":{convolverNode:{name:"convolverNode",class:"p5.Convolver",module:"p5.sound"},impulses:{name:"impulses",class:"p5.Convolver",module:"p5.sound"},process:{name:"process",params:[{name:"src",description:"<p>p5.sound / Web Audio object with a sound\n output.</p>\n",type:"Object"}],class:"p5.Convolver",module:"p5.sound"},addImpulse:{name:"addImpulse",params:[{name:"path",description:"<p>path to a sound file</p>\n",type:"String"},{name:"callback",description:"<p>function (optional)</p>\n",type:"Function"},{name:"errorCallback",description:"<p>function (optional)</p>\n",type:"Function"}],class:"p5.Convolver",module:"p5.sound"},resetImpulse:{name:"resetImpulse",params:[{name:"path",description:"<p>path to a sound file</p>\n",type:"String"},{name:"callback",description:"<p>function (optional)</p>\n",type:"Function"},{name:"errorCallback",description:"<p>function (optional)</p>\n",type:"Function"}],class:"p5.Convolver",module:"p5.sound"},toggleImpulse:{name:"toggleImpulse",params:[{name:"id",description:"<p>Identify the impulse by its original filename\n (String), or by its position in the\n <code>.impulses</code> Array (Number).</p>\n",type:"String|Number"}],class:"p5.Convolver",module:"p5.sound"}},"p5.Phrase":{sequence:{name:"sequence",class:"p5.Phrase",module:"p5.sound"}},"p5.Part":{setBPM:{name:"setBPM",params:[{name:"BPM",description:"<p>Beats Per Minute</p>\n",type:"Number"},{name:"rampTime",description:"<p>Seconds from now</p>\n",type:"Number",optional:!0}],class:"p5.Part",module:"p5.sound"},getBPM:{name:"getBPM",class:"p5.Part",module:"p5.sound"},start:{name:"start",params:[{name:"time",description:"<p>seconds from now</p>\n",type:"Number",optional:!0}],class:"p5.Part",module:"p5.sound"},loop:{name:"loop",params:[{name:"time",description:"<p>seconds from now</p>\n",type:"Number",optional:!0}],class:"p5.Part",module:"p5.sound"},noLoop:{name:"noLoop",class:"p5.Part",module:"p5.sound"},stop:{name:"stop",params:[{name:"time",description:"<p>seconds from now</p>\n",type:"Number",optional:!0}],class:"p5.Part",module:"p5.sound"},pause:{name:"pause",params:[{name:"time",description:"<p>seconds from now</p>\n",type:"Number"}],class:"p5.Part",module:"p5.sound"},addPhrase:{name:"addPhrase",params:[{name:"phrase",description:"<p>reference to a p5.Phrase</p>\n",type:"p5.Phrase"}],class:"p5.Part",module:"p5.sound"},removePhrase:{name:"removePhrase",params:[{name:"phraseName",description:"",type:"String"}],class:"p5.Part",module:"p5.sound"},getPhrase:{name:"getPhrase",params:[{name:"phraseName",description:"",type:"String"}],class:"p5.Part",module:"p5.sound"},replaceSequence:{name:"replaceSequence",params:[{name:"phraseName",description:"",type:"String"},{name:"sequence",description:"<p>Array of values to pass into the callback\n at each step of the phrase.</p>\n",type:"Array"}],class:"p5.Part",module:"p5.sound"},onStep:{name:"onStep",params:[{name:"callback",description:"<p>The name of the callback\n you want to fire\n on every beat/tatum.</p>\n",type:"Function"}],class:"p5.Part",module:"p5.sound"}},"p5.Score":{start:{name:"start",class:"p5.Score",module:"p5.sound"},stop:{name:"stop",class:"p5.Score",module:"p5.sound"},pause:{name:"pause",class:"p5.Score",module:"p5.sound"},loop:{name:"loop",class:"p5.Score",module:"p5.sound"},noLoop:{name:"noLoop",class:"p5.Score",module:"p5.sound"},setBPM:{name:"setBPM",params:[{name:"BPM",description:"<p>Beats Per Minute</p>\n",type:"Number"},{name:"rampTime",description:"<p>Seconds from now</p>\n",type:"Number"}],class:"p5.Score",module:"p5.sound"}},"p5.SoundLoop":{bpm:{name:"bpm",class:"p5.SoundLoop",module:"p5.sound"},timeSignature:{name:"timeSignature",class:"p5.SoundLoop",module:"p5.sound"},interval:{name:"interval",class:"p5.SoundLoop",module:"p5.sound"},iterations:{name:"iterations",class:"p5.SoundLoop",module:"p5.sound"},musicalTimeMode:{name:"musicalTimeMode",class:"p5.SoundLoop",module:"p5.sound"},maxIterations:{name:"maxIterations",class:"p5.SoundLoop",module:"p5.sound"},start:{name:"start",params:[{name:"timeFromNow",description:"<p>schedule a starting time</p>\n",type:"Number",optional:!0}],class:"p5.SoundLoop",module:"p5.sound"},stop:{name:"stop",params:[{name:"timeFromNow",description:"<p>schedule a stopping time</p>\n",type:"Number",optional:!0}],class:"p5.SoundLoop",module:"p5.sound"},pause:{name:"pause",params:[{name:"timeFromNow",description:"<p>schedule a pausing time</p>\n",type:"Number",optional:!0}],class:"p5.SoundLoop",module:"p5.sound"},syncedStart:{name:"syncedStart",params:[{name:"otherLoop",description:"<p>a p5.SoundLoop to sync with</p>\n",type:"Object"},{name:"timeFromNow",description:"<p>Start the loops in sync after timeFromNow seconds</p>\n",type:"Number",optional:!0}],class:"p5.SoundLoop",module:"p5.sound"}},"p5.Compressor":{compressor:{name:"compressor",class:"p5.Compressor",module:"p5.sound"},process:{name:"process",params:[{name:"src",description:"<p>Sound source to be connected</p>\n",type:"Object"},{name:"attack",description:"<p>The amount of time (in seconds) to reduce the gain by 10dB,\n default = .003, range 0 - 1</p>\n",type:"Number",optional:!0},{name:"knee",description:'<p>A decibel value representing the range above the\n threshold where the curve smoothly transitions to the "ratio" portion.\n default = 30, range 0 - 40</p>\n',type:"Number",optional:!0},{name:"ratio",description:"<p>The amount of dB change in input for a 1 dB change in output\n default = 12, range 1 - 20</p>\n",type:"Number",optional:!0},{name:"threshold",description:"<p>The decibel value above which the compression will start taking effect\n default = -24, range -100 - 0</p>\n",type:"Number",optional:!0},{name:"release",description:"<p>The amount of time (in seconds) to increase the gain by 10dB\n default = .25, range 0 - 1</p>\n",type:"Number",optional:!0}],class:"p5.Compressor",module:"p5.sound"},set:{name:"set",params:[{name:"attack",description:"<p>The amount of time (in seconds) to reduce the gain by 10dB,\n default = .003, range 0 - 1</p>\n",type:"Number"},{name:"knee",description:'<p>A decibel value representing the range above the\n threshold where the curve smoothly transitions to the "ratio" portion.\n default = 30, range 0 - 40</p>\n',type:"Number"},{name:"ratio",description:"<p>The amount of dB change in input for a 1 dB change in output\n default = 12, range 1 - 20</p>\n",type:"Number"},{name:"threshold",description:"<p>The decibel value above which the compression will start taking effect\n default = -24, range -100 - 0</p>\n",type:"Number"},{name:"release",description:"<p>The amount of time (in seconds) to increase the gain by 10dB\n default = .25, range 0 - 1</p>\n",type:"Number"}],class:"p5.Compressor",module:"p5.sound"},attack:{name:"attack",params:[{name:"attack",description:"<p>Attack is the amount of time (in seconds) to reduce the gain by 10dB,\n default = .003, range 0 - 1</p>\n",type:"Number",optional:!0},{name:"time",description:"<p>Assign time value to schedule the change in value</p>\n",type:"Number",optional:!0}],class:"p5.Compressor",module:"p5.sound"},knee:{name:"knee",params:[{name:"knee",description:'<p>A decibel value representing the range above the\n threshold where the curve smoothly transitions to the "ratio" portion.\n default = 30, range 0 - 40</p>\n',type:"Number",optional:!0},{name:"time",description:"<p>Assign time value to schedule the change in value</p>\n",type:"Number",optional:!0}],class:"p5.Compressor",module:"p5.sound"},ratio:{name:"ratio",params:[{name:"ratio",description:"<p>The amount of dB change in input for a 1 dB change in output\n default = 12, range 1 - 20</p>\n",type:"Number",optional:!0},{name:"time",description:"<p>Assign time value to schedule the change in value</p>\n",type:"Number",optional:!0}],class:"p5.Compressor",module:"p5.sound"},threshold:{name:"threshold",params:[{name:"threshold",description:"<p>The decibel value above which the compression will start taking effect\n default = -24, range -100 - 0</p>\n",type:"Number"},{name:"time",description:"<p>Assign time value to schedule the change in value</p>\n",type:"Number",optional:!0}],class:"p5.Compressor",module:"p5.sound"},release:{name:"release",params:[{name:"release",description:"<p>The amount of time (in seconds) to increase the gain by 10dB\n default = .25, range 0 - 1</p>\n",type:"Number"},{name:"time",description:"<p>Assign time value to schedule the change in value</p>\n",type:"Number",optional:!0}],class:"p5.Compressor",module:"p5.sound"},reduction:{name:"reduction",class:"p5.Compressor",module:"p5.sound"}},"p5.PeakDetect":{isDetected:{name:"isDetected",class:"p5.PeakDetect",module:"p5.sound"},update:{name:"update",params:[{name:"fftObject",description:"<p>A p5.FFT object</p>\n",type:"p5.FFT"}],class:"p5.PeakDetect",module:"p5.sound"},onPeak:{name:"onPeak",params:[{name:"callback",description:"<p>Name of a function that will\n be called when a peak is\n detected.</p>\n",type:"Function"},{name:"val",description:"<p>Optional value to pass\n into the function when\n a peak is detected.</p>\n",type:"Object",optional:!0}],class:"p5.PeakDetect",module:"p5.sound"}},"p5.SoundRecorder":{setInput:{name:"setInput",params:[{name:"unit",description:"<p>p5.sound object or a web audio unit\n that outputs sound</p>\n",type:"Object",optional:!0}],class:"p5.SoundRecorder",module:"p5.sound"},record:{name:"record",params:[{name:"soundFile",description:"<p>p5.SoundFile</p>\n",type:"p5.SoundFile"},{name:"duration",description:"<p>Time (in seconds)</p>\n",type:"Number",optional:!0},{name:"callback",description:"<p>The name of a function that will be\n called once the recording completes</p>\n",type:"Function",optional:!0}],class:"p5.SoundRecorder",module:"p5.sound"},stop:{name:"stop",class:"p5.SoundRecorder",module:"p5.sound"}},"p5.Distortion":{WaveShaperNode:{name:"WaveShaperNode",class:"p5.Distortion",module:"p5.sound"},process:{name:"process",params:[{name:"amount",description:"<p>Unbounded distortion amount.\n Normal values range from 0-1.</p>\n",type:"Number",optional:!0,optdefault:"0.25"},{name:"oversample",description:"<p>'none', '2x', or '4x'.</p>\n",type:"String",optional:!0,optdefault:"'none'"}],class:"p5.Distortion",module:"p5.sound"},set:{name:"set",params:[{name:"amount",description:"<p>Unbounded distortion amount.\n Normal values range from 0-1.</p>\n",type:"Number",optional:!0,optdefault:"0.25"},{name:"oversample",description:"<p>'none', '2x', or '4x'.</p>\n",type:"String",optional:!0,optdefault:"'none'"}],class:"p5.Distortion",module:"p5.sound"},getAmount:{name:"getAmount",class:"p5.Distortion",module:"p5.sound"},getOversample:{name:"getOversample",class:"p5.Distortion",module:"p5.sound"}},"p5.Gain":{setInput:{name:"setInput",params:[{name:"src",description:"<p>p5.sound / Web Audio object with a sound\n output.</p>\n",type:"Object"}],class:"p5.Gain",module:"p5.sound"},connect:{name:"connect",params:[{name:"unit",description:"",type:"Object"}],class:"p5.Gain",module:"p5.sound"},disconnect:{name:"disconnect",class:"p5.Gain",module:"p5.sound"},amp:{name:"amp",params:[{name:"volume",description:"<p>amplitude between 0 and 1.0</p>\n",type:"Number"},{name:"rampTime",description:"<p>create a fade that lasts rampTime</p>\n",type:"Number",optional:!0},{name:"timeFromNow",description:"<p>schedule this event to happen\n seconds from now</p>\n",type:"Number",optional:!0}],class:"p5.Gain",module:"p5.sound"}},"p5.AudioVoice":{connect:{name:"connect",params:[{name:"unit",description:"",type:"Object"}],class:"p5.AudioVoice",module:"p5.sound"},disconnect:{name:"disconnect",class:"p5.AudioVoice",module:"p5.sound"}},"p5.MonoSynth":{attack:{name:"attack",class:"p5.MonoSynth",module:"p5.sound"},decay:{name:"decay",class:"p5.MonoSynth",module:"p5.sound"},sustain:{name:"sustain",class:"p5.MonoSynth",module:"p5.sound"},release:{name:"release",class:"p5.MonoSynth",module:"p5.sound"},play:{name:"play",params:[{name:"note",description:'<p>the note you want to play, specified as a\n frequency in Hertz (Number) or as a midi\n value in Note/Octave format ("C4", "Eb3"...etc")\n See <a href = "https://github.com/Tonejs/Tone.js/wiki/Instruments">\n Tone</a>. Defaults to 440 hz.</p>\n',type:"String | Number"},{name:"velocity",description:"<p>velocity of the note to play (ranging from 0 to 1)</p>\n",type:"Number",optional:!0},{name:"secondsFromNow",description:"<p>time from now (in seconds) at which to play</p>\n",type:"Number",optional:!0},{name:"sustainTime",description:"<p>time to sustain before releasing the envelope. Defaults to 0.15 seconds.</p>\n",type:"Number",optional:!0}],class:"p5.MonoSynth",module:"p5.sound"},triggerAttack:{params:[{name:"note",description:'<p>the note you want to play, specified as a\n frequency in Hertz (Number) or as a midi\n value in Note/Octave format ("C4", "Eb3"...etc")\n See <a href = "https://github.com/Tonejs/Tone.js/wiki/Instruments">\n Tone</a>. Defaults to 440 hz</p>\n',type:"String | Number"},{name:"velocity",description:"<p>velocity of the note to play (ranging from 0 to 1)</p>\n",type:"Number",optional:!0},{name:"secondsFromNow",description:"<p>time from now (in seconds) at which to play</p>\n",type:"Number",optional:!0}],name:"triggerAttack",class:"p5.MonoSynth",module:"p5.sound"},triggerRelease:{params:[{name:"secondsFromNow",description:"<p>time to trigger the release</p>\n",type:"Number"}],name:"triggerRelease",class:"p5.MonoSynth",module:"p5.sound"},setADSR:{name:"setADSR",params:[{name:"attackTime",description:"<p>Time (in seconds before envelope\n reaches Attack Level</p>\n",type:"Number"},{name:"decayTime",description:"<p>Time (in seconds) before envelope\n reaches Decay/Sustain Level</p>\n",type:"Number",optional:!0},{name:"susRatio",description:"<p>Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n where 1.0 = attackLevel, 0.0 = releaseLevel.\n The susRatio determines the decayLevel and the level at which the\n sustain portion of the envelope will sustain.\n For example, if attackLevel is 0.4, releaseLevel is 0,\n and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n increased to 1.0 (using <code>setRange</code>),\n then decayLevel would increase proportionally, to become 0.5.</p>\n",type:"Number",optional:!0},{name:"releaseTime",description:"<p>Time in seconds from now (defaults to 0)</p>\n",type:"Number",optional:!0}],class:"p5.MonoSynth",module:"p5.sound"},amp:{name:"amp",params:[{name:"vol",description:"<p>desired volume</p>\n",type:"Number"},{name:"rampTime",description:"<p>Time to reach new volume</p>\n",type:"Number",optional:!0}],class:"p5.MonoSynth",module:"p5.sound"},connect:{name:"connect",params:[{name:"unit",description:"<p>A p5.sound or Web Audio object</p>\n",type:"Object"}],class:"p5.MonoSynth",module:"p5.sound"},disconnect:{name:"disconnect",class:"p5.MonoSynth",module:"p5.sound"},dispose:{name:"dispose",class:"p5.MonoSynth",module:"p5.sound"}},"p5.PolySynth":{notes:{name:"notes",class:"p5.PolySynth",module:"p5.sound"},polyvalue:{name:"polyvalue",class:"p5.PolySynth",module:"p5.sound"},AudioVoice:{name:"AudioVoice",class:"p5.PolySynth",module:"p5.sound"},play:{name:"play",params:[{name:"note",description:"<p>midi note to play (ranging from 0 to 127 - 60 being a middle C)</p>\n",type:"Number",optional:!0},{name:"velocity",description:"<p>velocity of the note to play (ranging from 0 to 1)</p>\n",type:"Number",optional:!0},{name:"secondsFromNow",description:"<p>time from now (in seconds) at which to play</p>\n",type:"Number",optional:!0},{name:"sustainTime",description:"<p>time to sustain before releasing the envelope</p>\n",type:"Number",optional:!0}],class:"p5.PolySynth",module:"p5.sound"},noteADSR:{name:"noteADSR",params:[{name:"note",description:"<p>Midi note on which ADSR should be set.</p>\n",type:"Number",optional:!0},{name:"attackTime",description:"<p>Time (in seconds before envelope\n reaches Attack Level</p>\n",type:"Number",optional:!0},{name:"decayTime",description:"<p>Time (in seconds) before envelope\n reaches Decay/Sustain Level</p>\n",type:"Number",optional:!0},{name:"susRatio",description:"<p>Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n where 1.0 = attackLevel, 0.0 = releaseLevel.\n The susRatio determines the decayLevel and the level at which the\n sustain portion of the envelope will sustain.\n For example, if attackLevel is 0.4, releaseLevel is 0,\n and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n increased to 1.0 (using <code>setRange</code>),\n then decayLevel would increase proportionally, to become 0.5.</p>\n",type:"Number",optional:!0},{name:"releaseTime",description:"<p>Time in seconds from now (defaults to 0)</p>\n",type:"Number",optional:!0}],class:"p5.PolySynth",module:"p5.sound"},setADSR:{name:"setADSR",params:[{name:"attackTime",description:"<p>Time (in seconds before envelope\n reaches Attack Level</p>\n",type:"Number",optional:!0},{name:"decayTime",description:"<p>Time (in seconds) before envelope\n reaches Decay/Sustain Level</p>\n",type:"Number",optional:!0},{name:"susRatio",description:"<p>Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n where 1.0 = attackLevel, 0.0 = releaseLevel.\n The susRatio determines the decayLevel and the level at which the\n sustain portion of the envelope will sustain.\n For example, if attackLevel is 0.4, releaseLevel is 0,\n and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n increased to 1.0 (using <code>setRange</code>),\n then decayLevel would increase proportionally, to become 0.5.</p>\n",type:"Number",optional:!0},{name:"releaseTime",description:"<p>Time in seconds from now (defaults to 0)</p>\n",type:"Number",optional:!0}],class:"p5.PolySynth",module:"p5.sound"},noteAttack:{name:"noteAttack",params:[{name:"note",description:"<p>midi note on which attack should be triggered.</p>\n",type:"Number",optional:!0},{name:"velocity",description:"<p>velocity of the note to play (ranging from 0 to 1)/</p>\n",type:"Number",optional:!0},{name:"secondsFromNow",description:"<p>time from now (in seconds)</p>\n",type:"Number",optional:!0}],class:"p5.PolySynth",module:"p5.sound"},noteRelease:{name:"noteRelease",params:[{name:"note",description:"<p>midi note on which attack should be triggered.\n If no value is provided, all notes will be released.</p>\n",type:"Number",optional:!0},{name:"secondsFromNow",description:"<p>time to trigger the release</p>\n",type:"Number",optional:!0}],class:"p5.PolySynth",module:"p5.sound"},connect:{name:"connect",params:[{name:"unit",description:"<p>A p5.sound or Web Audio object</p>\n",type:"Object"}],class:"p5.PolySynth",module:"p5.sound"},disconnect:{name:"disconnect",class:"p5.PolySynth",module:"p5.sound"},dispose:{name:"dispose",class:"p5.PolySynth",module:"p5.sound"}}}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],3:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],4:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},{}],5:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},{}],6:[function(e,t,r){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}t.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},{}],7:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],8:[function(e,t,r){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}t.exports=n},{}],9:[function(e,t,r){var n=e("./setPrototypeOf");t.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}},{"./setPrototypeOf":16}],10:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},{}],11:[function(e,t,r){t.exports=function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},{}],13:[function(e,t,r){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},{}],14:[function(e,t,r){var o=e("./defineProperty");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(e){o(t,e,r[e])})}return t}},{"./defineProperty":7}],15:[function(e,t,r){var n=e("../helpers/typeof"),o=e("./assertThisInitialized");t.exports=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?o(e):t}},{"../helpers/typeof":19,"./assertThisInitialized":4}],16:[function(e,r,t){function n(e,t){return r.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}r.exports=n},{}],17:[function(e,t,r){var n=e("./arrayWithHoles"),o=e("./iterableToArrayLimit"),a=e("./nonIterableRest");t.exports=function(e,t){return n(e)||o(e,t)||a()}},{"./arrayWithHoles":2,"./iterableToArrayLimit":11,"./nonIterableRest":12}],18:[function(e,t,r){var n=e("./arrayWithoutHoles"),o=e("./iterableToArray"),a=e("./nonIterableSpread");t.exports=function(e){return n(e)||o(e)||a()}},{"./arrayWithoutHoles":3,"./iterableToArray":10,"./nonIterableSpread":13}],19:[function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}function o(e){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?t.exports=o=function(e){return n(e)}:t.exports=o=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},o(e)}t.exports=o},{}],20:[function(e,t,r){r.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=u(e),o=n[0],a=n[1],i=new c(function(e,t){return 3*(e+t)/4-t}(o,a)),s=0,l=0<a?o-4:o;for(r=0;r<l;r+=4)t=p[e.charCodeAt(r)]<<18|p[e.charCodeAt(r+1)]<<12|p[e.charCodeAt(r+2)]<<6|p[e.charCodeAt(r+3)],i[s++]=t>>16&255,i[s++]=t>>8&255,i[s++]=255&t;2===a&&(t=p[e.charCodeAt(r)]<<2|p[e.charCodeAt(r+1)]>>4,i[s++]=255&t);1===a&&(t=p[e.charCodeAt(r)]<<10|p[e.charCodeAt(r+1)]<<4|p[e.charCodeAt(r+2)]>>2,i[s++]=t>>8&255,i[s++]=255&t);return i},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,o=[],a=0,i=r-n;a<i;a+=16383)o.push(l(e,a,i<a+16383?i:a+16383));1==n?(t=e[r-1],o.push(s[t>>2]+s[t<<4&63]+"==")):2==n&&(t=(e[r-2]<<8)+e[r-1],o.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"="));return o.join("")};for(var s=[],p=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)s[o]=n[o],p[n.charCodeAt(o)]=o;function u(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var n,o,a=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),a.push(s[(o=n)>>18&63]+s[o>>12&63]+s[o>>6&63]+s[63&o]);return a.join("")}p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63},{}],21:[function(e,t,r){},{}],22:[function(D,e,F){(function(u){var n=D("base64-js"),a=D("ieee754"),e="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;F.Buffer=u,F.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function i(e){if(r<e)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"!=typeof e)return o(e,t,r);if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}function o(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|d(e,t),n=i(r),o=n.write(e,t);o!==r&&(n=n.slice(0,o));return n}(e,t);if(ArrayBuffer.isView(e))return p(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+_typeof3(e));if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(n,u.prototype),n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return u.from(n,t,r);var o=function(e){if(u.isBuffer(e)){var t=0|c(e.length),r=i(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||R(e.length)?i(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+_typeof3(e))}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return s(e),i(e<0?0:0|c(e))}function p(e){for(var t=e.length<0?0:0|c(e.length),r=i(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function c(e){if(r<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+_typeof3(e));var r=e.length,n=2<arguments.length&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(e).length;default:if(o)return n?-1:k(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function f(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),R(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,o){var a,i=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s/=i=2,l/=2,r/=2}function p(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var c=-1;for(a=r;a<s;a++)if(p(e,a)===p(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*i}else-1!==c&&(a-=a-c),c=-1}else for(s<r+l&&(r=s-l),a=r;0<=a;a--){for(var u=!0,d=0;d<l;d++)if(p(e,a+d)!==p(t,d)){u=!1;break}if(u)return a}return-1}function y(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?o<(n=Number(n))&&(n=o):n=o;var a=t.length;a/2<n&&(n=a/2);for(var i=0;i<n;++i){var s=parseInt(t.substr(2*i,2),16);if(R(s))return i;e[r+i]=s}return i}function g(e,t,r,n){return A(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function v(e,t,r,n){return A(function(e,t){for(var r,n,o,a=[],i=0;i<e.length&&!((t-=2)<0);++i)r=e.charCodeAt(i),n=r>>8,o=r%256,a.push(o),a.push(n);return a}(t,e.length-r),e,r,n)}function b(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function x(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var a,i,s,l,p=e[o],c=null,u=239<p?4:223<p?3:191<p?2:1;if(o+u<=r)switch(u){case 1:p<128&&(c=p);break;case 2:128==(192&(a=e[o+1]))&&127<(l=(31&p)<<6|63&a)&&(c=l);break;case 3:a=e[o+1],i=e[o+2],128==(192&a)&&128==(192&i)&&2047<(l=(15&p)<<12|(63&a)<<6|63&i)&&(l<55296||57343<l)&&(c=l);break;case 4:a=e[o+1],i=e[o+2],s=e[o+3],128==(192&a)&&128==(192&i)&&128==(192&s)&&65535<(l=(15&p)<<18|(63&a)<<12|(63&i)<<6|63&s)&&l<1114112&&(c=l)}null===c?(c=65533,u=1):65535<c&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=u}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=w));return r}(n)}F.kMaxLength=r,(u.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),u.poolSize=8192,u.from=function(e,t,r){return o(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return o=t,a=r,s(n=e),n<=0?i(n):void 0!==o?"string"==typeof a?i(n).fill(o,a):i(n).fill(o):i(n);var n,o,a},u.allocUnsafe=function(e){return l(e)},u.allocUnsafeSlow=function(e){return l(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(I(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,a=Math.min(r,n);o<a;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).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!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var a=e[r];if(I(a,Uint8Array)&&(a=u.from(a)),!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},u.prototype.toLocaleString=u.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?x(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return j(this,t,r);case"utf8":case"utf-8":return x(this,t,r);case"ascii":return _(this,t,r);case"latin1":case"binary":return S(this,t,r);case"base64":return b(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",t=F.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},e&&(u.prototype[e]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,o){if(I(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+_typeof3(e));if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(o<=n&&r<=t)return 0;if(o<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var a=(o>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0),s=Math.min(a,i),l=this.slice(n,o),p=e.slice(t,r),c=0;c<s;++c)if(l[c]!==p[c]){a=l[c],i=p[c];break}return a<i?-1:i<a?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return f(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return f(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||o<r)&&(r=o),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var a,i,s,l,p,c,u=!1;;)switch(n){case"hex":return y(this,e,t,r);case"utf8":case"utf-8":return p=t,c=r,A(k(e,(l=this).length-p),l,p,c);case"ascii":return g(this,e,t,r);case"latin1":case"binary":return g(this,e,t,r);case"base64":return a=this,i=t,s=r,A(L(e),a,i,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,t,r);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function _(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function S(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function j(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||n<r)&&(r=n);for(var o="",a=t;a<r;++a)o+=P[e[a]];return o}function E(e,t,r){for(var n=e.slice(t,r),o="",a=0;a<n.length;a+=2)o+=String.fromCharCode(n[a]+256*n[a+1]);return o}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(r<e+t)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,n,o,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<t||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function C(e,t,r,n){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(e,t,r,n,o){return t=+t,r>>>=0,o||C(e,0,r,4),a.write(e,t,r,n,23,4),r+4}function N(e,t,r,n,o){return t=+t,r>>>=0,o||C(e,0,r,8),a.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var n=this[e],o=1,a=0;++a<t&&(o*=256);)n+=this[e+a]*o;return n},u.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var n=this[e+--t],o=1;0<t&&(o*=256);)n+=this[e+--t]*o;return n},u.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var n=this[e],o=1,a=0;++a<t&&(o*=256);)n+=this[e+a]*o;return(o*=128)<=n&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var n=t,o=1,a=this[e+--n];0<n&&(o*=256);)a+=this[e+--n]*o;return(o*=128)<=a&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),a.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),a.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),a.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),a.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||M(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||M(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,a=1;for(this[t+o]=255&e;0<=--o&&(a*=256);)this[t+o]=e/a&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);M(this,e,t,r,o-1,-o)}var a=0,i=1,s=0;for(this[t]=255&e;++a<r&&(i*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/i>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);M(this,e,t,r,o-1,-o)}var a=r-1,i=1,s=0;for(this[t+a]=255&e;0<=--a&&(i*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/i>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return N(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return N(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r=r||0,n||0===n||(n=this.length),t>=e.length&&(t=e.length),t=t||0,0<n&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var a=o-1;0<=a;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(e=e||0))for(a=t;a<r;++a)this[a]=e;else{var i=u.isBuffer(e)?e:u.from(e,n),s=i.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=i[a%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function k(e,t){var r;t=t||1/0;for(var n=e.length,o=null,a=[],i=0;i<n;++i){if(55295<(r=e.charCodeAt(i))&&r<57344){if(!o){if(56319<r){-1<(t-=3)&&a.push(239,191,189);continue}if(i+1===n){-1<(t-=3)&&a.push(239,191,189);continue}o=r;continue}if(r<56320){-1<(t-=3)&&a.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&-1<(t-=3)&&a.push(239,191,189);if(o=null,r<128){if(--t<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function L(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(t,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function A(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function R(e){return e!=e}var P=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()}).call(this,D("buffer").Buffer)},{"base64-js":20,buffer:22,ieee754:259}],23:[function(e,t,r){t.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},{}],24:[function(e,t,r){var n=e("../internals/is-object");t.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},{"../internals/is-object":92}],25:[function(e,t,r){var n=e("../internals/well-known-symbol"),o=e("../internals/object-create"),a=e("../internals/object-define-property"),i=n("unscopables"),s=Array.prototype;null==s[i]&&a.f(s,i,{configurable:!0,value:o(null)}),t.exports=function(e){s[i][e]=!0}},{"../internals/object-create":108,"../internals/object-define-property":110,"../internals/well-known-symbol":164}],26:[function(e,t,r){var n=e("../internals/string-multibyte").charAt;t.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},{"../internals/string-multibyte":141}],27:[function(e,t,r){t.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},{}],28:[function(e,t,r){var n=e("../internals/is-object");t.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},{"../internals/is-object":92}],29:[function(e,t,r){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},{}],30:[function(e,t,r){function n(e){return l(e)&&p(N,c(e))}var o,a=e("../internals/array-buffer-native"),i=e("../internals/descriptors"),s=e("../internals/global"),l=e("../internals/is-object"),p=e("../internals/has"),c=e("../internals/classof"),u=e("../internals/create-non-enumerable-property"),d=e("../internals/redefine"),h=e("../internals/object-define-property").f,f=e("../internals/object-get-prototype-of"),m=e("../internals/object-set-prototype-of"),y=e("../internals/well-known-symbol"),g=e("../internals/uid"),v=s.Int8Array,b=v&&v.prototype,x=s.Uint8ClampedArray,w=x&&x.prototype,_=v&&f(v),S=b&&f(b),j=Object.prototype,E=j.isPrototypeOf,T=y("toStringTag"),M=g("TYPED_ARRAY_TAG"),C=a&&!!m&&"Opera"!==c(s.opera),O=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8};for(o in N)s[o]||(C=!1);if((!C||"function"!=typeof _||_===Function.prototype)&&(_=function(){throw TypeError("Incorrect invocation")},C))for(o in N)s[o]&&m(s[o],_);if((!C||!S||S===j)&&(S=_.prototype,C))for(o in N)s[o]&&m(s[o].prototype,S);if(C&&f(w)!==S&&m(w,S),i&&!p(S,T))for(o in O=!0,h(S,T,{get:function(){return l(this)?this[M]:void 0}}),N)s[o]&&u(s[o],M,o);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:C,TYPED_ARRAY_TAG:O&&M,aTypedArray:function(e){if(n(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(m){if(E.call(_,e))return e}else for(var t in N)if(p(N,o)){var r=s[t];if(r&&(e===r||E.call(r,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r){if(i){if(r)for(var n in N){var o=s[n];o&&p(o.prototype,e)&&delete o.prototype[e]}S[e]&&!r||d(S,e,r?t:C&&b[e]||t)}},exportTypedArrayStaticMethod:function(e,t,r){var n,o;if(i){if(m){if(r)for(n in N)(o=s[n])&&p(o,e)&&delete o[e];if(_[e]&&!r)return;try{return d(_,e,r?t:C&&v[e]||t)}catch(e){}}for(n in N)!(o=s[n])||o[e]&&!r||d(o,e,t)}},isView:function(e){var t=c(e);return"DataView"===t||p(N,t)},isTypedArray:n,TypedArray:_,TypedArrayPrototype:S}},{"../internals/array-buffer-native":29,"../internals/classof":47,"../internals/create-non-enumerable-property":55,"../internals/descriptors":60,"../internals/global":77,"../internals/has":78,"../internals/is-object":92,"../internals/object-define-property":110,"../internals/object-get-prototype-of":115,"../internals/object-set-prototype-of":119,"../internals/redefine":126,"../internals/uid":161,"../internals/well-known-symbol":164}],31:[function(e,t,r){function n(e){return[255&e]}function o(e){return[255&e,e>>8&255]}function a(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function i(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function s(e){return V(e,23,4)}function l(e){return V(e,52,8)}function p(e,t){T(e[I],t,{get:function(){return N(this)[t]}})}function c(e,t,r,n){var o=w(r),a=N(e);if(o+t>a.byteLength)throw G(R);var i=N(a.buffer).bytes,s=o+a.byteOffset,l=i.slice(s,s+t);return n?l:l.reverse()}function u(e,t,r,n,o,a){var i=w(r),s=N(e);if(i+t>s.byteLength)throw G(R);for(var l=N(s.buffer).bytes,p=i+s.byteOffset,c=n(+o),u=0;u<t;u++)l[p+u]=c[a?u:t-u-1]}var d=e("../internals/global"),h=e("../internals/descriptors"),f=e("../internals/array-buffer-native"),m=e("../internals/create-non-enumerable-property"),y=e("../internals/redefine-all"),g=e("../internals/fails"),v=e("../internals/an-instance"),b=e("../internals/to-integer"),x=e("../internals/to-length"),w=e("../internals/to-index"),_=e("../internals/ieee754"),S=e("../internals/object-get-prototype-of"),j=e("../internals/object-set-prototype-of"),E=e("../internals/object-get-own-property-names").f,T=e("../internals/object-define-property").f,M=e("../internals/array-fill"),C=e("../internals/set-to-string-tag"),O=e("../internals/internal-state"),N=O.get,k=O.set,L="ArrayBuffer",A="DataView",I="prototype",R="Wrong index",P=d[L],D=P,F=d[A],U=F&&F[I],B=Object.prototype,G=d.RangeError,V=_.pack,z=_.unpack;if(f){if(!g(function(){P(1)})||!g(function(){new P(-1)})||g(function(){return new P,new P(1.5),new P(NaN),P.name!=L})){for(var H,W=(D=function(e){return v(this,D),new P(w(e))})[I]=P[I],q=E(P),X=0;q.length>X;)(H=q[X++])in D||m(D,H,P[H]);W.constructor=D}j&&S(U)!==B&&j(U,B);var Y=new F(new D(2)),Z=U.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||y(U,{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},{unsafe:!0})}else D=function(e){v(this,D,L);var t=w(e);k(this,{bytes:M.call(new Array(t),0),byteLength:t}),h||(this.byteLength=t)},F=function(e,t,r){v(this,F,A),v(e,D,A);var n=N(e).byteLength,o=b(t);if(o<0||n<o)throw G("Wrong offset");if(n<o+(r=void 0===r?n-o:x(r)))throw G("Wrong length");k(this,{buffer:e,byteLength:r,byteOffset:o}),h||(this.buffer=e,this.byteLength=r,this.byteOffset=o)},h&&(p(D,"byteLength"),p(F,"buffer"),p(F,"byteLength"),p(F,"byteOffset")),y(F[I],{getInt8:function(e){return c(this,1,e)[0]<<24>>24},getUint8:function(e){return c(this,1,e)[0]},getInt16:function(e,t){var r=c(this,2,e,1<arguments.length?t:void 0);return(r[1]<<8|r[0])<<16>>16},getUint16:function(e,t){var r=c(this,2,e,1<arguments.length?t:void 0);return r[1]<<8|r[0]},getInt32:function(e,t){return i(c(this,4,e,1<arguments.length?t:void 0))},getUint32:function(e,t){return i(c(this,4,e,1<arguments.length?t:void 0))>>>0},getFloat32:function(e,t){return z(c(this,4,e,1<arguments.length?t:void 0),23)},getFloat64:function(e,t){return z(c(this,8,e,1<arguments.length?t:void 0),52)},setInt8:function(e,t){u(this,1,e,n,t)},setUint8:function(e,t){u(this,1,e,n,t)},setInt16:function(e,t,r){u(this,2,e,o,t,2<arguments.length?r:void 0)},setUint16:function(e,t,r){u(this,2,e,o,t,2<arguments.length?r:void 0)},setInt32:function(e,t,r){u(this,4,e,a,t,2<arguments.length?r:void 0)},setUint32:function(e,t,r){u(this,4,e,a,t,2<arguments.length?r:void 0)},setFloat32:function(e,t,r){u(this,4,e,s,t,2<arguments.length?r:void 0)},setFloat64:function(e,t,r){u(this,8,e,l,t,2<arguments.length?r:void 0)}});C(D,L),C(F,A),t.exports={ArrayBuffer:D,DataView:F}},{"../internals/an-instance":27,"../internals/array-buffer-native":29,"../internals/array-fill":33,"../internals/create-non-enumerable-property":55,"../internals/descriptors":60,"../internals/fails":68,"../internals/global":77,"../internals/ieee754":83,"../internals/internal-state":88,"../internals/object-define-property":110,"../internals/object-get-own-property-names":113,"../internals/object-get-prototype-of":115,"../internals/object-set-prototype-of":119,"../internals/redefine-all":125,"../internals/set-to-string-tag":135,"../internals/to-index":149,"../internals/to-integer":151,"../internals/to-length":152}],32:[function(e,t,r){var c=e("../internals/to-object"),u=e("../internals/to-absolute-index"),d=e("../internals/to-length"),h=Math.min;t.exports=[].copyWithin||function(e,t,r){var n=c(this),o=d(n.length),a=u(e,o),i=u(t,o),s=2<arguments.length?r:void 0,l=h((void 0===s?o:u(s,o))-i,o-a),p=1;for(i<a&&a<i+l&&(p=-1,i+=l-1,a+=l-1);0<l--;)i in n?n[a]=n[i]:delete n[a],a+=p,i+=p;return n}},{"../internals/to-absolute-index":148,"../internals/to-length":152,"../internals/to-object":153}],33:[function(e,t,r){var p=e("../internals/to-object"),c=e("../internals/to-absolute-index"),u=e("../internals/to-length");t.exports=function(e,t,r){for(var n=p(this),o=u(n.length),a=arguments.length,i=c(1<a?t:void 0,o),s=2<a?r:void 0,l=void 0===s?o:c(s,o);i<l;)n[i++]=e;return n}},{"../internals/to-absolute-index":148,"../internals/to-length":152,"../internals/to-object":153}],34:[function(e,t,r){var n=e("../internals/array-iteration").forEach,o=e("../internals/array-method-is-strict"),a=e("../internals/array-method-uses-to-length"),i=o("forEach"),s=a("forEach");t.exports=i&&s?[].forEach:function(e,t){return n(this,e,1<arguments.length?t:void 0)}},{"../internals/array-iteration":37,"../internals/array-method-is-strict":40,"../internals/array-method-uses-to-length":41}],35:[function(e,t,r){var y=e("../internals/function-bind-context"),g=e("../internals/to-object"),v=e("../internals/call-with-safe-iteration-closing"),b=e("../internals/is-array-iterator-method"),x=e("../internals/to-length"),w=e("../internals/create-property"),_=e("../internals/get-iterator-method");t.exports=function(e,t,r){var n,o,a,i,s,l,p=g(e),c="function"==typeof this?this:Array,u=arguments.length,d=1<u?t:void 0,h=void 0!==d,f=_(p),m=0;if(h&&(d=y(d,2<u?r:void 0,2)),null==f||c==Array&&b(f))for(o=new c(n=x(p.length));m<n;m++)l=h?d(p[m],m):p[m],w(o,m,l);else for(s=(i=f.call(p)).next,o=new c;!(a=s.call(i)).done;m++)l=h?v(i,d,[a.value,m],!0):a.value,w(o,m,l);return o.length=m,o}},{"../internals/call-with-safe-iteration-closing":44,"../internals/create-property":57,"../internals/function-bind-context":72,"../internals/get-iterator-method":75,"../internals/is-array-iterator-method":89,"../internals/to-length":152,"../internals/to-object":153}],36:[function(e,t,r){function n(s){return function(e,t,r){var n,o=l(e),a=p(o.length),i=c(r,a);if(s&&t!=t){for(;i<a;)if((n=o[i++])!=n)return!0}else for(;i<a;i++)if((s||i in o)&&o[i]===t)return s||i||0;return!s&&-1}}var l=e("../internals/to-indexed-object"),p=e("../internals/to-length"),c=e("../internals/to-absolute-index");t.exports={includes:n(!0),indexOf:n(!1)}},{"../internals/to-absolute-index":148,"../internals/to-indexed-object":150,"../internals/to-length":152}],37:[function(e,t,r){function n(h){var f=1==h,m=2==h,y=3==h,g=4==h,v=6==h,b=5==h||v;return function(e,t,r,n){for(var o,a,i=_(e),s=w(i),l=x(t,r,3),p=S(s.length),c=0,u=n||j,d=f?u(e,p):m?u(e,0):void 0;c<p;c++)if((b||c in s)&&(a=l(o=s[c],c,i),h))if(f)d[c]=a;else if(a)switch(h){case 3:return!0;case 5:return o;case 6:return c;case 2:E.call(d,o)}else if(g)return!1;return v?-1:y||g?g:d}}var x=e("../internals/function-bind-context"),w=e("../internals/indexed-object"),_=e("../internals/to-object"),S=e("../internals/to-length"),j=e("../internals/array-species-create"),E=[].push;t.exports={forEach:n(0),map:n(1),filter:n(2),some:n(3),every:n(4),find:n(5),findIndex:n(6)}},{"../internals/array-species-create":43,"../internals/function-bind-context":72,"../internals/indexed-object":84,"../internals/to-length":152,"../internals/to-object":153}],38:[function(e,t,r){var a=e("../internals/to-indexed-object"),i=e("../internals/to-integer"),s=e("../internals/to-length"),n=e("../internals/array-method-is-strict"),o=e("../internals/array-method-uses-to-length"),l=Math.min,p=[].lastIndexOf,c=!!p&&1/[1].lastIndexOf(1,-0)<0,u=n("lastIndexOf"),d=o("indexOf",{ACCESSORS:!0,1:0}),h=c||!u||!d;t.exports=h?function(e,t){if(c)return p.apply(this,arguments)||0;var r=a(this),n=s(r.length),o=n-1;for(1<arguments.length&&(o=l(o,i(t))),o<0&&(o=n+o);0<=o;o--)if(o in r&&r[o]===e)return o||0;return-1}:p},{"../internals/array-method-is-strict":40,"../internals/array-method-uses-to-length":41,"../internals/to-indexed-object":150,"../internals/to-integer":151,"../internals/to-length":152}],39:[function(e,t,r){var n=e("../internals/fails"),o=e("../internals/well-known-symbol"),a=e("../internals/engine-v8-version"),i=o("species");t.exports=function(t){return 51<=a||!n(function(){var e=[];return(e.constructor={})[i]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},{"../internals/engine-v8-version":65,"../internals/fails":68,"../internals/well-known-symbol":164}],40:[function(e,t,r){var n=e("../internals/fails");t.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){throw 1},1)})}},{"../internals/fails":68}],41:[function(e,t,r){function i(e){throw e}var s=e("../internals/descriptors"),l=e("../internals/fails"),p=e("../internals/has"),c=Object.defineProperty,u={};t.exports=function(e,t){if(p(u,e))return u[e];var r=[][e],n=!!p(t=t||{},"ACCESSORS")&&t.ACCESSORS,o=p(t,0)?t[0]:i,a=p(t,1)?t[1]:void 0;return u[e]=!!r&&!l(function(){if(n&&!s)return!0;var e={length:-1};n?c(e,1,{enumerable:!0,get:i}):e[1]=1,r.call(e,o,a)})}},{"../internals/descriptors":60,"../internals/fails":68,"../internals/has":78}],42:[function(e,t,r){function n(p){return function(e,t,r,n){c(t);var o=u(e),a=d(o),i=h(o.length),s=p?i-1:0,l=p?-1:1;if(r<2)for(;;){if(s in a){n=a[s],s+=l;break}if(s+=l,p?s<0:i<=s)throw TypeError("Reduce of empty array with no initial value")}for(;p?0<=s:s<i;s+=l)s in a&&(n=t(n,a[s],s,o));return n}}var c=e("../internals/a-function"),u=e("../internals/to-object"),d=e("../internals/indexed-object"),h=e("../internals/to-length");t.exports={left:n(!1),right:n(!0)}},{"../internals/a-function":23,"../internals/indexed-object":84,"../internals/to-length":152,"../internals/to-object":153}],43:[function(e,t,r){var n=e("../internals/is-object"),o=e("../internals/is-array"),a=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var r;return o(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[a])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},{"../internals/is-array":90,"../internals/is-object":92,"../internals/well-known-symbol":164}],44:[function(e,t,r){var a=e("../internals/an-object");t.exports=function(t,e,r,n){try{return n?e(a(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&a(o.call(t)),e}}},{"../internals/an-object":28}],45:[function(e,t,r){var o=e("../internals/well-known-symbol")("iterator"),a=!1;try{var n=0,i={next:function(){return{done:!!n++}},return:function(){a=!0}};i[o]=function(){return this},Array.from(i,function(){throw 2})}catch(e){}t.exports=function(e,t){if(!t&&!a)return!1;var r=!1;try{var n={};n[o]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}},{"../internals/well-known-symbol":164}],46:[function(e,t,r){var n={}.toString;t.exports=function(e){return n.call(e).slice(8,-1)}},{}],47:[function(e,t,r){var n=e("../internals/to-string-tag-support"),o=e("../internals/classof-raw"),a=e("../internals/well-known-symbol")("toStringTag"),i="Arguments"==o(function(){return arguments}());t.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?r:i?o(t):"Object"==(n=o(t))&&"function"==typeof t.callee?"Arguments":n}},{"../internals/classof-raw":46,"../internals/to-string-tag-support":157,"../internals/well-known-symbol":164}],48:[function(e,t,r){var p=e("../internals/object-define-property").f,c=e("../internals/object-create"),u=e("../internals/redefine-all"),d=e("../internals/function-bind-context"),h=e("../internals/an-instance"),f=e("../internals/iterate"),i=e("../internals/define-iterator"),s=e("../internals/set-species"),m=e("../internals/descriptors"),y=e("../internals/internal-metadata").fastKey,n=e("../internals/internal-state"),g=n.set,v=n.getterFor;t.exports={getConstructor:function(e,r,n,o){function a(e,t,r){var n,o,a=s(e),i=l(e,t);return i?i.value=r:(a.last=i={index:o=y(t,!0),key:t,value:r,previous:n=a.last,next:void 0,removed:!1},a.first||(a.first=i),n&&(n.next=i),m?a.size++:e.size++,"F"!==o&&(a.index[o]=i)),e}var i=e(function(e,t){h(e,i,r),g(e,{type:r,index:c(null),first:void 0,last:void 0,size:0}),m||(e.size=0),null!=t&&f(t,e[o],e,n)}),s=v(r),l=function(e,t){var r,n=s(e),o=y(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return u(i.prototype,{clear:function(){for(var e=s(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,m?e.size=0:this.size=0},delete:function(e){var t=s(this),r=l(this,e);if(r){var n=r.next,o=r.previous;delete t.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),t.first==r&&(t.first=n),t.last==r&&(t.last=o),m?t.size--:this.size--}return!!r},forEach:function(e,t){for(var r,n=s(this),o=d(e,1<arguments.length?t:void 0,3);r=r?r.next:n.first;)for(o(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(e){return!!l(this,e)}}),u(i.prototype,n?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return a(this,0===e?0:e,t)}}:{add:function(e){return a(this,e=0===e?0:e,e)}}),m&&p(i.prototype,"size",{get:function(){return s(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",o=v(t),a=v(n);i(e,t,function(e,t){g(this,{type:n,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=a(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:{value:e.target=void 0,done:!0}},r?"entries":"values",!r,!0),s(t)}}},{"../internals/an-instance":27,"../internals/define-iterator":58,"../internals/descriptors":60,"../internals/function-bind-context":72,"../internals/internal-metadata":87,"../internals/internal-state":88,"../internals/iterate":95,"../internals/object-create":108,"../internals/object-define-property":110,"../internals/redefine-all":125,"../internals/set-species":134}],49:[function(e,t,r){var y=e("../internals/export"),g=e("../internals/global"),v=e("../internals/is-forced"),b=e("../internals/redefine"),x=e("../internals/internal-metadata"),w=e("../internals/iterate"),_=e("../internals/an-instance"),S=e("../internals/is-object"),j=e("../internals/fails"),E=e("../internals/check-correctness-of-iteration"),T=e("../internals/set-to-string-tag"),M=e("../internals/inherit-if-required");t.exports=function(n,e,t){function r(e){var r=l[e];b(l,e,"add"==e?function(e){return r.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(a&&!S(e))&&r.call(this,0===e?0:e)}:"get"==e?function(e){return a&&!S(e)?void 0:r.call(this,0===e?0:e)}:"has"==e?function(e){return!(a&&!S(e))&&r.call(this,0===e?0:e)}:function(e,t){return r.call(this,0===e?0:e,t),this})}var o=-1!==n.indexOf("Map"),a=-1!==n.indexOf("Weak"),i=o?"set":"add",s=g[n],l=s&&s.prototype,p=s,c={};if(v(n,"function"!=typeof s||!(a||l.forEach&&!j(function(){(new s).entries().next()}))))p=t.getConstructor(e,n,o,i),x.REQUIRED=!0;else if(v(n,!0)){var u=new p,d=u[i](a?{}:-0,1)!=u,h=j(function(){u.has(1)}),f=E(function(e){new s(e)}),m=!a&&j(function(){for(var e=new s,t=5;t--;)e[i](t,t);return!e.has(-0)});f||(((p=e(function(e,t){_(e,p,n);var r=M(new s,e,p);return null!=t&&w(t,r[i],r,o),r})).prototype=l).constructor=p),(h||m)&&(r("delete"),r("has"),o&&r("get")),(m||d)&&r(i),a&&l.clear&&delete l.clear}return c[n]=p,y({global:!0,forced:p!=s},c),T(p,n),a||t.setStrong(p,n,o),p}},{"../internals/an-instance":27,"../internals/check-correctness-of-iteration":45,"../internals/export":67,"../internals/fails":68,"../internals/global":77,"../internals/inherit-if-required":85,"../internals/internal-metadata":87,"../internals/is-forced":91,"../internals/is-object":92,"../internals/iterate":95,"../internals/redefine":126,"../internals/set-to-string-tag":135}],50:[function(e,t,r){var s=e("../internals/has"),l=e("../internals/own-keys"),p=e("../internals/object-get-own-property-descriptor"),c=e("../internals/object-define-property");t.exports=function(e,t){for(var r=l(t),n=c.f,o=p.f,a=0;a<r.length;a++){var i=r[a];s(e,i)||n(e,i,o(t,i))}}},{"../internals/has":78,"../internals/object-define-property":110,"../internals/object-get-own-property-descriptor":111,"../internals/own-keys":121}],51:[function(e,t,r){var n=e("../internals/well-known-symbol")("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[n]=!1,"/./"[t](r)}catch(e){}}return!1}},{"../internals/well-known-symbol":164}],52:[function(e,t,r){var n=e("../internals/fails");t.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},{"../internals/fails":68}],53:[function(e,t,r){var i=e("../internals/require-object-coercible"),s=/"/g;t.exports=function(e,t,r,n){var o=String(i(e)),a="<"+t;return""!==r&&(a+=" "+r+'="'+String(n).replace(s,"&quot;")+'"'),a+">"+o+"</"+t+">"}},{"../internals/require-object-coercible":131}],54:[function(e,t,r){function o(){return this}var a=e("../internals/iterators-core").IteratorPrototype,i=e("../internals/object-create"),s=e("../internals/create-property-descriptor"),l=e("../internals/set-to-string-tag"),p=e("../internals/iterators");t.exports=function(e,t,r){var n=t+" Iterator";return e.prototype=i(a,{next:s(1,r)}),l(e,n,!1,!0),p[n]=o,e}},{"../internals/create-property-descriptor":56,"../internals/iterators":97,"../internals/iterators-core":96,"../internals/object-create":108,"../internals/set-to-string-tag":135}],55:[function(e,t,r){var n=e("../internals/descriptors"),o=e("../internals/object-define-property"),a=e("../internals/create-property-descriptor");t.exports=n?function(e,t,r){return o.f(e,t,a(1,r))}:function(e,t,r){return e[t]=r,e}},{"../internals/create-property-descriptor":56,"../internals/descriptors":60,"../internals/object-define-property":110}],56:[function(e,t,r){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],57:[function(e,t,r){var o=e("../internals/to-primitive"),a=e("../internals/object-define-property"),i=e("../internals/create-property-descriptor");t.exports=function(e,t,r){var n=o(t);n in e?a.f(e,n,i(0,r)):e[n]=r}},{"../internals/create-property-descriptor":56,"../internals/object-define-property":110,"../internals/to-primitive":156}],58:[function(e,t,r){function g(){return this}var v=e("../internals/export"),b=e("../internals/create-iterator-constructor"),x=e("../internals/object-get-prototype-of"),w=e("../internals/object-set-prototype-of"),_=e("../internals/set-to-string-tag"),S=e("../internals/create-non-enumerable-property"),j=e("../internals/redefine"),n=e("../internals/well-known-symbol"),E=e("../internals/is-pure"),T=e("../internals/iterators"),o=e("../internals/iterators-core"),M=o.IteratorPrototype,C=o.BUGGY_SAFARI_ITERATORS,O=n("iterator"),N="values",k="entries";t.exports=function(e,t,r,n,o,a,i){b(r,t,n);function s(e){if(e===o&&m)return m;if(!C&&e in h)return h[e];switch(e){case"keys":case N:case k:return function(){return new r(this,e)}}return function(){return new r(this)}}var l,p,c,u=t+" Iterator",d=!1,h=e.prototype,f=h[O]||h["@@iterator"]||o&&h[o],m=!C&&f||s(o),y="Array"==t&&h.entries||f;if(y&&(l=x(y.call(new e)),M!==Object.prototype&&l.next&&(E||x(l)===M||(w?w(l,M):"function"!=typeof l[O]&&S(l,O,g)),_(l,u,!0,!0),E&&(T[u]=g))),o==N&&f&&f.name!==N&&(d=!0,m=function(){return f.call(this)}),E&&!i||h[O]===m||S(h,O,m),T[t]=m,o)if(p={values:s(N),keys:a?m:s("keys"),entries:s(k)},i)for(c in p)!C&&!d&&c in h||j(h,c,p[c]);else v({target:t,proto:!0,forced:C||d},p);return p}},{"../internals/create-iterator-constructor":54,"../internals/create-non-enumerable-property":55,"../internals/export":67,"../internals/is-pure":93,"../internals/iterators":97,"../internals/iterators-core":96,"../internals/object-get-prototype-of":115,"../internals/object-set-prototype-of":119,"../internals/redefine":126,"../internals/set-to-string-tag":135,"../internals/well-known-symbol":164}],59:[function(e,t,r){var n=e("../internals/path"),o=e("../internals/has"),a=e("../internals/well-known-symbol-wrapped"),i=e("../internals/object-define-property").f;t.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},{"../internals/has":78,"../internals/object-define-property":110,"../internals/path":122,"../internals/well-known-symbol-wrapped":163}],60:[function(e,t,r){var n=e("../internals/fails");t.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},{"../internals/fails":68}],61:[function(e,t,r){var n=e("../internals/global"),o=e("../internals/is-object"),a=n.document,i=o(a)&&o(a.createElement);t.exports=function(e){return i?a.createElement(e):{}}},{"../internals/global":77,"../internals/is-object":92}],62:[function(e,t,r){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],63:[function(e,t,r){var n=e("../internals/engine-user-agent");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},{"../internals/engine-user-agent":64}],64:[function(e,t,r){var n=e("../internals/get-built-in");t.exports=n("navigator","userAgent")||""},{"../internals/get-built-in":74}],65:[function(e,t,r){var n,o,a=e("../internals/global"),i=e("../internals/engine-user-agent"),s=a.process,l=s&&s.versions,p=l&&l.v8;p?o=(n=p.split("."))[0]+n[1]:i&&(!(n=i.match(/Edge\/(\d+)/))||74<=n[1])&&(n=i.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},{"../internals/engine-user-agent":64,"../internals/global":77}],66:[function(e,t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],67:[function(e,t,r){var c=e("../internals/global"),u=e("../internals/object-get-own-property-descriptor").f,d=e("../internals/create-non-enumerable-property"),h=e("../internals/redefine"),f=e("../internals/set-global"),m=e("../internals/copy-constructor-properties"),y=e("../internals/is-forced");t.exports=function(e,t){var r,n,o,a,i,s=e.target,l=e.global,p=e.stat;if(r=l?c:p?c[s]||f(s,{}):(c[s]||{}).prototype)for(n in t){if(a=t[n],o=e.noTargetGet?(i=u(r,n))&&i.value:r[n],!y(l?n:s+(p?".":"#")+n,e.forced)&&void 0!==o){if(_typeof3(a)===_typeof3(o))continue;m(a,o)}(e.sham||o&&o.sham)&&d(a,"sham",!0),h(r,n,a,e)}}},{"../internals/copy-constructor-properties":50,"../internals/create-non-enumerable-property":55,"../internals/global":77,"../internals/is-forced":91,"../internals/object-get-own-property-descriptor":111,"../internals/redefine":126,"../internals/set-global":133}],68:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],69:[function(e,t,r){e("../modules/es.regexp.exec");var u=e("../internals/redefine"),d=e("../internals/fails"),h=e("../internals/well-known-symbol"),f=e("../internals/regexp-exec"),m=e("../internals/create-non-enumerable-property"),y=h("species"),g=!d(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),v="$0"==="a".replace(/./,"$0"),n=h("replace"),b=!!/./[n]&&""===/./[n]("a","$0"),x=!d(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]});t.exports=function(r,e,t,n){var o=h(r),a=!d(function(){var e={};return e[o]=function(){return 7},7!=""[r](e)}),i=a&&!d(function(){var e=!1,t=/a/;return"split"===r&&((t={constructor:{}}).constructor[y]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return e=!0,null},t[o](""),!e});if(!a||!i||"replace"===r&&(!g||!v||b)||"split"===r&&!x){var s=/./[o],l=t(o,""[r],function(e,t,r,n,o){return t.exec===f?a&&!o?{done:!0,value:s.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}},{REPLACE_KEEPS_$0:v,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:b}),p=l[0],c=l[1];u(String.prototype,r,p),u(RegExp.prototype,o,2==e?function(e,t){return c.call(e,this,t)}:function(e){return c.call(e,this)})}n&&m(RegExp.prototype[o],"sham",!0)}},{"../internals/create-non-enumerable-property":55,"../internals/fails":68,"../internals/redefine":126,"../internals/regexp-exec":128,"../internals/well-known-symbol":164,"../modules/es.regexp.exec":199}],70:[function(e,t,r){var h=e("../internals/is-array"),f=e("../internals/to-length"),m=e("../internals/function-bind-context");t.exports=function e(t,r,n,o,a,i,s,l){for(var p,c=a,u=0,d=!!s&&m(s,l,3);u<o;){if(u in n){if(p=d?d(n[u],u,r):n[u],0<i&&h(p))c=e(t,r,p,f(p.length),c,i-1)-1;else{if(9007199254740991<=c)throw TypeError("Exceed the acceptable array length");t[c]=p}c++}u++}return c}},{"../internals/function-bind-context":72,"../internals/is-array":90,"../internals/to-length":152}],71:[function(e,t,r){var n=e("../internals/fails");t.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},{"../internals/fails":68}],72:[function(e,t,r){var a=e("../internals/a-function");t.exports=function(n,o,e){if(a(n),void 0===o)return n;switch(e){case 0:return function(){return n.call(o)};case 1:return function(e){return n.call(o,e)};case 2:return function(e,t){return n.call(o,e,t)};case 3:return function(e,t,r){return n.call(o,e,t,r)}}return function(){return n.apply(o,arguments)}}},{"../internals/a-function":23}],73:[function(e,t,r){var a=e("../internals/a-function"),i=e("../internals/is-object"),s=[].slice,l={};t.exports=Function.bind||function(t){var r=a(this),n=s.call(arguments,1),o=function(){var e=n.concat(s.call(arguments));return this instanceof o?function(e,t,r){if(!(t in l)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";l[t]=Function("C,a","return new C("+n.join(",")+")")}return l[t](e,r)}(r,e.length,e):r.apply(t,e)};return i(r.prototype)&&(o.prototype=r.prototype),o}},{"../internals/a-function":23,"../internals/is-object":92}],74:[function(e,t,r){function n(e){return"function"==typeof e?e:void 0}var o=e("../internals/path"),a=e("../internals/global");t.exports=function(e,t){return arguments.length<2?n(o[e])||n(a[e]):o[e]&&o[e][t]||a[e]&&a[e][t]}},{"../internals/global":77,"../internals/path":122}],75:[function(e,t,r){var n=e("../internals/classof"),o=e("../internals/iterators"),a=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(null!=e)return e[a]||e["@@iterator"]||o[n(e)]}},{"../internals/classof":47,"../internals/iterators":97,"../internals/well-known-symbol":164}],76:[function(e,t,r){var n=e("../internals/an-object"),o=e("../internals/get-iterator-method");t.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return n(t.call(e))}},{"../internals/an-object":28,"../internals/get-iterator-method":75}],77:[function(e,r,t){(function(e){function t(e){return e&&e.Math==Math&&e}r.exports=t("object"==("undefined"==typeof globalThis?"undefined":_typeof3(globalThis))&&globalThis)||t("object"==("undefined"==typeof window?"undefined":_typeof3(window))&&window)||t("object"==("undefined"==typeof self?"undefined":_typeof3(self))&&self)||t("object"==_typeof3(e)&&e)||Function("return this")()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],78:[function(e,t,r){var n={}.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}},{}],79:[function(e,t,r){t.exports={}},{}],80:[function(e,t,r){var n=e("../internals/global");t.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},{"../internals/global":77}],81:[function(e,t,r){var n=e("../internals/get-built-in");t.exports=n("document","documentElement")},{"../internals/get-built-in":74}],82:[function(e,t,r){var n=e("../internals/descriptors"),o=e("../internals/fails"),a=e("../internals/document-create-element");t.exports=!n&&!o(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},{"../internals/descriptors":60,"../internals/document-create-element":61,"../internals/fails":68}],83:[function(e,t,r){var h=Math.abs,f=Math.pow,m=Math.floor,y=Math.log,g=Math.LN2;t.exports={pack:function(e,t,r){var n,o,a,i=new Array(r),s=8*r-t-1,l=(1<<s)-1,p=l>>1,c=23===t?f(2,-24)-f(2,-77):0,u=e<0||0===e&&1/e<0?1:0,d=0;for((e=h(e))!=e||e===1/0?(o=e!=e?1:0,n=l):(n=m(y(e)/g),e*(a=f(2,-n))<1&&(n--,a*=2),2<=(e+=1<=n+p?c/a:c*f(2,1-p))*a&&(n++,a/=2),l<=n+p?(o=0,n=l):1<=n+p?(o=(e*a-1)*f(2,t),n+=p):(o=e*f(2,p-1)*f(2,t),n=0));8<=t;i[d++]=255&o,o/=256,t-=8);for(n=n<<t|o,s+=t;0<s;i[d++]=255&n,n/=256,s-=8);return i[--d]|=128*u,i},unpack:function(e,t){var r,n=e.length,o=8*n-t-1,a=(1<<o)-1,i=a>>1,s=o-7,l=n-1,p=e[l--],c=127&p;for(p>>=7;0<s;c=256*c+e[l],l--,s-=8);for(r=c&(1<<-s)-1,c>>=-s,s+=t;0<s;r=256*r+e[l],l--,s-=8);if(0===c)c=1-i;else{if(c===a)return r?NaN:p?-1/0:1/0;r+=f(2,t),c-=i}return(p?-1:1)*r*f(2,c-t)}}},{}],84:[function(e,t,r){var n=e("../internals/fails"),o=e("../internals/classof-raw"),a="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?a.call(e,""):Object(e)}:Object},{"../internals/classof-raw":46,"../internals/fails":68}],85:[function(e,t,r){var a=e("../internals/is-object"),i=e("../internals/object-set-prototype-of");t.exports=function(e,t,r){var n,o;return i&&"function"==typeof(n=t.constructor)&&n!==r&&a(o=n.prototype)&&o!==r.prototype&&i(e,o),e}},{"../internals/is-object":92,"../internals/object-set-prototype-of":119}],86:[function(e,t,r){var n=e("../internals/shared-store"),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),t.exports=n.inspectSource},{"../internals/shared-store":137}],87:[function(e,t,r){function n(e){s(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})}var o=e("../internals/hidden-keys"),a=e("../internals/is-object"),i=e("../internals/has"),s=e("../internals/object-define-property").f,l=e("../internals/uid"),p=e("../internals/freezing"),c=l("meta"),u=0,d=Object.isExtensible||function(){return!0},h=t.exports={REQUIRED:!1,fastKey:function(e,t){if(!a(e))return"symbol"==_typeof3(e)?e:("string"==typeof e?"S":"P")+e;if(!i(e,c)){if(!d(e))return"F";if(!t)return"E";n(e)}return e[c].objectID},getWeakData:function(e,t){if(!i(e,c)){if(!d(e))return!0;if(!t)return!1;n(e)}return e[c].weakData},onFreeze:function(e){return p&&h.REQUIRED&&d(e)&&!i(e,c)&&n(e),e}};o[c]=!0},{"../internals/freezing":71,"../internals/has":78,"../internals/hidden-keys":79,"../internals/is-object":92,"../internals/object-define-property":110,"../internals/uid":161}],88:[function(e,t,r){var n,o,a,i=e("../internals/native-weak-map"),s=e("../internals/global"),l=e("../internals/is-object"),p=e("../internals/create-non-enumerable-property"),c=e("../internals/has"),u=e("../internals/shared-key"),d=e("../internals/hidden-keys"),h=s.WeakMap;if(i){var f=new h,m=f.get,y=f.has,g=f.set;n=function(e,t){return g.call(f,e,t),t},o=function(e){return m.call(f,e)||{}},a=function(e){return y.call(f,e)}}else{var v=u("state");d[v]=!0,n=function(e,t){return p(e,v,t),t},o=function(e){return c(e,v)?e[v]:{}},a=function(e){return c(e,v)}}t.exports={set:n,get:o,has:a,enforce:function(e){return a(e)?o(e):n(e,{})},getterFor:function(r){return function(e){var t;if(!l(e)||(t=o(e)).type!==r)throw TypeError("Incompatible receiver, "+r+" required");return t}}}},{"../internals/create-non-enumerable-property":55,"../internals/global":77,"../internals/has":78,"../internals/hidden-keys":79,"../internals/is-object":92,"../internals/native-weak-map":103,"../internals/shared-key":136}],89:[function(e,t,r){var n=e("../internals/well-known-symbol"),o=e("../internals/iterators"),a=n("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(o.Array===e||i[a]===e)}},{"../internals/iterators":97,"../internals/well-known-symbol":164}],90:[function(e,t,r){var n=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"==n(e)}},{"../internals/classof-raw":46}],91:[function(e,t,r){function n(e,t){var r=s[i(e)];return r==p||r!=l&&("function"==typeof t?o(t):!!t)}var o=e("../internals/fails"),a=/#|\.prototype\./,i=n.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=n.data={},l=n.NATIVE="N",p=n.POLYFILL="P";t.exports=n},{"../internals/fails":68}],92:[function(e,t,r){t.exports=function(e){return"object"===_typeof3(e)?null!==e:"function"==typeof e}},{}],93:[function(e,t,r){t.exports=!1},{}],94:[function(e,t,r){var n=e("../internals/is-object"),o=e("../internals/classof-raw"),a=e("../internals/well-known-symbol")("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},{"../internals/classof-raw":46,"../internals/is-object":92,"../internals/well-known-symbol":164}],95:[function(e,t,r){function h(e,t){this.stopped=e,this.result=t}var f=e("../internals/an-object"),m=e("../internals/is-array-iterator-method"),y=e("../internals/to-length"),g=e("../internals/function-bind-context"),v=e("../internals/get-iterator-method"),b=e("../internals/call-with-safe-iteration-closing");(t.exports=function(e,t,r,n,o){var a,i,s,l,p,c,u,d=g(t,r,n?2:1);if(o)a=e;else{if("function"!=typeof(i=v(e)))throw TypeError("Target is not iterable");if(m(i)){for(s=0,l=y(e.length);s<l;s++)if((p=n?d(f(u=e[s])[0],u[1]):d(e[s]))&&p instanceof h)return p;return new h(!1)}a=i.call(e)}for(c=a.next;!(u=c.call(a)).done;)if("object"==_typeof3(p=b(a,d,u.value,n))&&p&&p instanceof h)return p;return new h(!1)}).stop=function(e){return new h(!0,e)}},{"../internals/an-object":28,"../internals/call-with-safe-iteration-closing":44,"../internals/function-bind-context":72,"../internals/get-iterator-method":75,"../internals/is-array-iterator-method":89,"../internals/to-length":152}],96:[function(e,t,r){var n,o,a,i=e("../internals/object-get-prototype-of"),s=e("../internals/create-non-enumerable-property"),l=e("../internals/has"),p=e("../internals/well-known-symbol"),c=e("../internals/is-pure"),u=p("iterator"),d=!1;[].keys&&("next"in(a=[].keys())?(o=i(i(a)))!==Object.prototype&&(n=o):d=!0),null==n&&(n={}),c||l(n,u)||s(n,u,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},{"../internals/create-non-enumerable-property":55,"../internals/has":78,"../internals/is-pure":93,"../internals/object-get-prototype-of":115,"../internals/well-known-symbol":164}],97:[function(e,t,r){arguments[4][79][0].apply(r,arguments)},{dup:79}],98:[function(e,t,r){t.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},{}],99:[function(e,t,r){var n,o,a,i,s,l,p,c,u=e("../internals/global"),d=e("../internals/object-get-own-property-descriptor").f,h=e("../internals/classof-raw"),f=e("../internals/task").set,m=e("../internals/engine-is-ios"),y=u.MutationObserver||u.WebKitMutationObserver,g=u.process,v=u.Promise,b="process"==h(g),x=d(u,"queueMicrotask"),w=x&&x.value;w||(n=function(){var e,t;for(b&&(e=g.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?i():a=void 0,e}}a=void 0,e&&e.enter()},i=b?function(){g.nextTick(n)}:y&&!m?(s=!0,l=document.createTextNode(""),new y(n).observe(l,{characterData:!0}),function(){l.data=s=!s}):v&&v.resolve?(p=v.resolve(void 0),c=p.then,function(){c.call(p,n)}):function(){f.call(u,n)}),t.exports=w||function(e){var t={fn:e,next:void 0};a&&(a.next=t),o||(o=t,i()),a=t}},{"../internals/classof-raw":46,"../internals/engine-is-ios":63,"../internals/global":77,"../internals/object-get-own-property-descriptor":111,"../internals/task":146}],100:[function(e,t,r){var n=e("../internals/global");t.exports=n.Promise},{"../internals/global":77}],101:[function(e,t,r){var n=e("../internals/fails");t.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},{"../internals/fails":68}],102:[function(e,t,r){var n=e("../internals/fails"),o=e("../internals/well-known-symbol"),a=e("../internals/is-pure"),i=o("iterator");t.exports=!n(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),r=e.searchParams,n="";return e.pathname="c%20d",r.forEach(function(e,t){r.delete("b"),n+=t+e}),a&&!e.toJSON||!r.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})},{"../internals/fails":68,"../internals/is-pure":93,"../internals/well-known-symbol":164}],103:[function(e,t,r){var n=e("../internals/global"),o=e("../internals/inspect-source"),a=n.WeakMap;t.exports="function"==typeof a&&/native code/.test(o(a))},{"../internals/global":77,"../internals/inspect-source":86}],104:[function(e,t,r){function n(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=e,n=t}),this.resolve=o(r),this.reject=o(n)}var o=e("../internals/a-function");t.exports.f=function(e){return new n(e)}},{"../internals/a-function":23}],105:[function(e,t,r){var n=e("../internals/is-regexp");t.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":94}],106:[function(e,t,r){var n=e("../internals/global").isFinite;t.exports=Number.isFinite||function(e){return"number"==typeof e&&n(e)}},{"../internals/global":77}],107:[function(e,t,r){var d=e("../internals/descriptors"),n=e("../internals/fails"),h=e("../internals/object-keys"),f=e("../internals/object-get-own-property-symbols"),m=e("../internals/object-property-is-enumerable"),y=e("../internals/to-object"),g=e("../internals/indexed-object"),o=Object.assign,a=Object.defineProperty;t.exports=!o||n(function(){if(d&&1!==o({b:1},o(a({},"a",{enumerable:!0,get:function(){a(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=o({},e)[r]||h(o({},t)).join("")!=n})?function(e,t){for(var r=y(e),n=arguments.length,o=1,a=f.f,i=m.f;o<n;)for(var s,l=g(arguments[o++]),p=a?h(l).concat(a(l)):h(l),c=p.length,u=0;u<c;)s=p[u++],d&&!i.call(l,s)||(r[s]=l[s]);return r}:o},{"../internals/descriptors":60,"../internals/fails":68,"../internals/indexed-object":84,"../internals/object-get-own-property-symbols":114,"../internals/object-keys":117,"../internals/object-property-is-enumerable":118,"../internals/to-object":153}],108:[function(e,t,r){function n(){}function o(e){return"<script>"+e+"</"+f+">"}var a,i=e("../internals/an-object"),s=e("../internals/object-define-properties"),l=e("../internals/enum-bug-keys"),p=e("../internals/hidden-keys"),c=e("../internals/html"),u=e("../internals/document-create-element"),d=e("../internals/shared-key"),h="prototype",f="script",m=d("IE_PROTO"),y=function(){try{a=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;y=a?function(e){e.write(o("")),e.close();var t=e.parentWindow.Object;return e=null,t}(a):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(o("document.F=Object")),e.close(),e.F);for(var r=l.length;r--;)delete y[h][l[r]];return y()};p[m]=!0,t.exports=Object.create||function(e,t){var r;return null!==e?(n[h]=i(e),r=new n,n[h]=null,r[m]=e):r=y(),void 0===t?r:s(r,t)}},{"../internals/an-object":28,"../internals/document-create-element":61,"../internals/enum-bug-keys":66,"../internals/hidden-keys":79,"../internals/html":81,"../internals/object-define-properties":109,"../internals/shared-key":136}],109:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/object-define-property"),s=e("../internals/an-object"),l=e("../internals/object-keys");t.exports=n?Object.defineProperties:function(e,t){s(e);for(var r,n=l(t),o=n.length,a=0;a<o;)i.f(e,r=n[a++],t[r]);return e}},{"../internals/an-object":28,"../internals/descriptors":60,"../internals/object-define-property":110,"../internals/object-keys":117}],110:[function(e,t,r){var n=e("../internals/descriptors"),o=e("../internals/ie8-dom-define"),a=e("../internals/an-object"),i=e("../internals/to-primitive"),s=Object.defineProperty;r.f=n?s:function(e,t,r){if(a(e),t=i(t,!0),a(r),o)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},{"../internals/an-object":28,"../internals/descriptors":60,"../internals/ie8-dom-define":82,"../internals/to-primitive":156}],111:[function(e,t,r){var n=e("../internals/descriptors"),o=e("../internals/object-property-is-enumerable"),a=e("../internals/create-property-descriptor"),i=e("../internals/to-indexed-object"),s=e("../internals/to-primitive"),l=e("../internals/has"),p=e("../internals/ie8-dom-define"),c=Object.getOwnPropertyDescriptor;r.f=n?c:function(e,t){if(e=i(e),t=s(t,!0),p)try{return c(e,t)}catch(e){}if(l(e,t))return a(!o.f.call(e,t),e[t])}},{"../internals/create-property-descriptor":56,"../internals/descriptors":60,"../internals/has":78,"../internals/ie8-dom-define":82,"../internals/object-property-is-enumerable":118,"../internals/to-indexed-object":150,"../internals/to-primitive":156}],112:[function(e,t,r){var n=e("../internals/to-indexed-object"),o=e("../internals/object-get-own-property-names").f,a={}.toString,i="object"==("undefined"==typeof window?"undefined":_typeof3(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return i&&"[object Window]"==a.call(e)?function(e){try{return o(e)}catch(e){return i.slice()}}(e):o(n(e))}},{"../internals/object-get-own-property-names":113,"../internals/to-indexed-object":150}],113:[function(e,t,r){var n=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},{"../internals/enum-bug-keys":66,"../internals/object-keys-internal":116}],114:[function(e,t,r){r.f=Object.getOwnPropertySymbols},{}],115:[function(e,t,r){var n=e("../internals/has"),o=e("../internals/to-object"),a=e("../internals/shared-key"),i=e("../internals/correct-prototype-getter"),s=a("IE_PROTO"),l=Object.prototype;t.exports=i?Object.getPrototypeOf:function(e){return e=o(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},{"../internals/correct-prototype-getter":52,"../internals/has":78,"../internals/shared-key":136,"../internals/to-object":153}],116:[function(e,t,r){var i=e("../internals/has"),s=e("../internals/to-indexed-object"),l=e("../internals/array-includes").indexOf,p=e("../internals/hidden-keys");t.exports=function(e,t){var r,n=s(e),o=0,a=[];for(r in n)!i(p,r)&&i(n,r)&&a.push(r);for(;t.length>o;)i(n,r=t[o++])&&(~l(a,r)||a.push(r));return a}},{"../internals/array-includes":36,"../internals/has":78,"../internals/hidden-keys":79,"../internals/to-indexed-object":150}],117:[function(e,t,r){var n=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return n(e,o)}},{"../internals/enum-bug-keys":66,"../internals/object-keys-internal":116}],118:[function(e,t,r){var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!n.call({1:2},1);r.f=a?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},{}],119:[function(e,t,r){var o=e("../internals/an-object"),a=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return o(e),a(t),n?r.call(e,t):e.__proto__=t,e}}():void 0)},{"../internals/a-possible-prototype":24,"../internals/an-object":28}],120:[function(e,t,r){var n=e("../internals/to-string-tag-support"),o=e("../internals/classof");t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},{"../internals/classof":47,"../internals/to-string-tag-support":157}],121:[function(e,t,r){var n=e("../internals/get-built-in"),o=e("../internals/object-get-own-property-names"),a=e("../internals/object-get-own-property-symbols"),i=e("../internals/an-object");t.exports=n("Reflect","ownKeys")||function(e){var t=o.f(i(e)),r=a.f;return r?t.concat(r(e)):t}},{"../internals/an-object":28,"../internals/get-built-in":74,"../internals/object-get-own-property-names":113,"../internals/object-get-own-property-symbols":114}],122:[function(e,t,r){var n=e("../internals/global");t.exports=n},{"../internals/global":77}],123:[function(e,t,r){t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},{}],124:[function(e,t,r){var n=e("../internals/an-object"),o=e("../internals/is-object"),a=e("../internals/new-promise-capability");t.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=a.f(e);return(0,r.resolve)(t),r.promise}},{"../internals/an-object":28,"../internals/is-object":92,"../internals/new-promise-capability":104}],125:[function(e,t,r){var o=e("../internals/redefine");t.exports=function(e,t,r){for(var n in t)o(e,n,t[n],r);return e}},{"../internals/redefine":126}],126:[function(e,t,r){var s=e("../internals/global"),l=e("../internals/create-non-enumerable-property"),p=e("../internals/has"),c=e("../internals/set-global"),n=e("../internals/inspect-source"),o=e("../internals/internal-state"),a=o.get,u=o.enforce,d=String(String).split("String");(t.exports=function(e,t,r,n){var o=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,i=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof t||p(r,"name")||l(r,"name",t),u(r).source=d.join("string"==typeof t?t:"")),e!==s?(o?!i&&e[t]&&(a=!0):delete e[t],a?e[t]=r:l(e,t,r)):a?e[t]=r:c(t,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&a(this).source||n(this)})},{"../internals/create-non-enumerable-property":55,"../internals/global":77,"../internals/has":78,"../internals/inspect-source":86,"../internals/internal-state":88,"../internals/set-global":133}],127:[function(e,t,r){var o=e("./classof-raw"),a=e("./regexp-exec");t.exports=function(e,t){var r=e.exec;if("function"==typeof r){var n=r.call(e,t);if("object"!==_typeof3(n))throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==o(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},{"./classof-raw":46,"./regexp-exec":128}],128:[function(e,t,r){var n,o,u=e("./regexp-flags"),a=e("./regexp-sticky-helpers"),d=RegExp.prototype.exec,h=String.prototype.replace,i=d,f=(n=/a/,o=/b*/g,d.call(n,"a"),d.call(o,"a"),0!==n.lastIndex||0!==o.lastIndex),m=a.UNSUPPORTED_Y||a.BROKEN_CARET,y=void 0!==/()??/.exec("")[1];(f||y||m)&&(i=function(e){var t,r,n,o,a=this,i=m&&a.sticky,s=u.call(a),l=a.source,p=0,c=e;return i&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),c=String(e).slice(a.lastIndex),0<a.lastIndex&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(l="(?: "+l+")",c=" "+c,p++),r=new RegExp("^(?:"+l+")",s)),y&&(r=new RegExp("^"+l+"$(?!\\s)",s)),f&&(t=a.lastIndex),n=d.call(i?r:a,c),i?n?(n.input=n.input.slice(p),n[0]=n[0].slice(p),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:f&&n&&(a.lastIndex=a.global?n.index+n[0].length:t),y&&n&&1<n.length&&h.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n}),t.exports=i},{"./regexp-flags":129,"./regexp-sticky-helpers":130}],129:[function(e,t,r){var n=e("../internals/an-object");t.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},{"../internals/an-object":28}],130:[function(e,t,r){var n=e("./fails");function o(e,t){return RegExp(e,t)}r.UNSUPPORTED_Y=n(function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),r.BROKEN_CARET=n(function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},{"./fails":68}],131:[function(e,t,r){t.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],132:[function(e,t,r){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},{}],133:[function(e,t,r){var n=e("../internals/global"),o=e("../internals/create-non-enumerable-property");t.exports=function(t,r){try{o(n,t,r)}catch(e){n[t]=r}return r}},{"../internals/create-non-enumerable-property":55,"../internals/global":77}],134:[function(e,t,r){var n=e("../internals/get-built-in"),o=e("../internals/object-define-property"),a=e("../internals/well-known-symbol"),i=e("../internals/descriptors"),s=a("species");t.exports=function(e){var t=n(e),r=o.f;i&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":60,"../internals/get-built-in":74,"../internals/object-define-property":110,"../internals/well-known-symbol":164}],135:[function(e,t,r){var n=e("../internals/object-define-property").f,o=e("../internals/has"),a=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},{"../internals/has":78,"../internals/object-define-property":110,"../internals/well-known-symbol":164}],136:[function(e,t,r){var n=e("../internals/shared"),o=e("../internals/uid"),a=n("keys");t.exports=function(e){return a[e]||(a[e]=o(e))}},{"../internals/shared":138,"../internals/uid":161}],137:[function(e,t,r){var n=e("../internals/global"),o=e("../internals/set-global"),a="__core-js_shared__",i=n[a]||o(a,{});t.exports=i},{"../internals/global":77,"../internals/set-global":133}],138:[function(e,t,r){var n=e("../internals/is-pure"),o=e("../internals/shared-store");(t.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},{"../internals/is-pure":93,"../internals/shared-store":137}],139:[function(e,t,r){var o=e("../internals/an-object"),a=e("../internals/a-function"),i=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var r,n=o(e).constructor;return void 0===n||null==(r=o(n)[i])?t:a(r)}},{"../internals/a-function":23,"../internals/an-object":28,"../internals/well-known-symbol":164}],140:[function(e,t,r){var n=e("../internals/fails");t.exports=function(t){return n(function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length})}},{"../internals/fails":68}],141:[function(e,t,r){function n(s){return function(e,t){var r,n,o=String(p(e)),a=l(t),i=o.length;return a<0||i<=a?s?"":void 0:(r=o.charCodeAt(a))<55296||56319<r||a+1===i||(n=o.charCodeAt(a+1))<56320||57343<n?s?o.charAt(a):r:s?o.slice(a,a+2):n-56320+(r-55296<<10)+65536}}var l=e("../internals/to-integer"),p=e("../internals/require-object-coercible");t.exports={codeAt:n(!1),charAt:n(!0)}},{"../internals/require-object-coercible":131,"../internals/to-integer":151}],142:[function(e,t,r){function g(e){return e+22+75*(e<26)}function v(e,t,r){var n=0;for(e=r?w(e/700):e>>1,e+=w(e/t);455<e;n+=36)e=w(e/35);return w(n+36*e/(e+38))}function a(e){var t,r,n=[],o=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(55296<=o&&o<=56319&&r<n){var a=e.charCodeAt(r++);56320==(64512&a)?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),r--)}else t.push(o)}return t}(e)).length,a=128,i=0,s=72;for(t=0;t<e.length;t++)(r=e[t])<128&&n.push(_(r));var l=n.length,p=l;for(l&&n.push("-");p<o;){var c=b;for(t=0;t<e.length;t++)a<=(r=e[t])&&r<c&&(c=r);var u=p+1;if(c-a>w((b-i)/u))throw RangeError(x);for(i+=(c-a)*u,a=c,t=0;t<e.length;t++){if((r=e[t])<a&&++i>b)throw RangeError(x);if(r==a){for(var d=i,h=36;;h+=36){var f=h<=s?1:s+26<=h?26:h-s;if(d<f)break;var m=d-f,y=36-f;n.push(_(g(f+m%y))),d=w(m/y)}n.push(_(g(d))),s=v(i,u,p==l),i=0,++p}}++i,++a}return n.join("")}var b=2147483647,i=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,x="Overflow: input needs wider integers to process",w=Math.floor,_=String.fromCharCode;t.exports=function(e){var t,r,n=[],o=e.toLowerCase().replace(s,".").split(".");for(t=0;t<o.length;t++)r=o[t],n.push(i.test(r)?"xn--"+a(r):r);return n.join(".")}},{}],143:[function(e,t,r){var o=e("../internals/to-integer"),a=e("../internals/require-object-coercible");t.exports="".repeat||function(e){var t=String(a(this)),r="",n=o(e);if(n<0||n==1/0)throw RangeError("Wrong number of repetitions");for(;0<n;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r}},{"../internals/require-object-coercible":131,"../internals/to-integer":151}],144:[function(e,t,r){var n=e("../internals/fails"),o=e("../internals/whitespaces");t.exports=function(e){return n(function(){return!!o[e]()||"​…᠎"!="​…᠎"[e]()||o[e].name!==e})}},{"../internals/fails":68,"../internals/whitespaces":165}],145:[function(e,t,r){function n(r){return function(e){var t=String(o(e));return 1&r&&(t=t.replace(i,"")),2&r&&(t=t.replace(s,"")),t}}var o=e("../internals/require-object-coercible"),a="["+e("../internals/whitespaces")+"]",i=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$");t.exports={start:n(1),end:n(2),trim:n(3)}},{"../internals/require-object-coercible":131,"../internals/whitespaces":165}],146:[function(e,t,r){function n(e){if(j.hasOwnProperty(e)){var t=j[e];delete j[e],t()}}function o(e){return function(){n(e)}}function a(e){n(e.data)}function i(e){c.postMessage(e+"",g.protocol+"//"+g.host)}var s,l,p,c=e("../internals/global"),u=e("../internals/fails"),d=e("../internals/classof-raw"),h=e("../internals/function-bind-context"),f=e("../internals/html"),m=e("../internals/document-create-element"),y=e("../internals/engine-is-ios"),g=c.location,v=c.setImmediate,b=c.clearImmediate,x=c.process,w=c.MessageChannel,_=c.Dispatch,S=0,j={},E="onreadystatechange";v&&b||(v=function(e){for(var t=[],r=1;r<arguments.length;)t.push(arguments[r++]);return j[++S]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},s(S),S},b=function(e){delete j[e]},"process"==d(x)?s=function(e){x.nextTick(o(e))}:_&&_.now?s=function(e){_.now(o(e))}:w&&!y?(p=(l=new w).port2,l.port1.onmessage=a,s=h(p.postMessage,p,1)):!c.addEventListener||"function"!=typeof postMessage||c.importScripts||u(i)||"file:"===g.protocol?s=E in m("script")?function(e){f.appendChild(m("script"))[E]=function(){f.removeChild(this),n(e)}}:function(e){setTimeout(o(e),0)}:(s=i,c.addEventListener("message",a,!1))),t.exports={set:v,clear:b}},{"../internals/classof-raw":46,"../internals/document-create-element":61,"../internals/engine-is-ios":63,"../internals/fails":68,"../internals/function-bind-context":72,"../internals/global":77,"../internals/html":81}],147:[function(e,t,r){var n=e("../internals/classof-raw");t.exports=function(e){if("number"!=typeof e&&"Number"!=n(e))throw TypeError("Incorrect invocation");return+e}},{"../internals/classof-raw":46}],148:[function(e,t,r){var n=e("../internals/to-integer"),o=Math.max,a=Math.min;t.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):a(r,t)}},{"../internals/to-integer":151}],149:[function(e,t,r){var n=e("../internals/to-integer"),o=e("../internals/to-length");t.exports=function(e){if(void 0===e)return 0;var t=n(e),r=o(t);if(t!==r)throw RangeError("Wrong length or index");return r}},{"../internals/to-integer":151,"../internals/to-length":152}],150:[function(e,t,r){var n=e("../internals/indexed-object"),o=e("../internals/require-object-coercible");t.exports=function(e){return n(o(e))}},{"../internals/indexed-object":84,"../internals/require-object-coercible":131}],151:[function(e,t,r){var n=Math.ceil,o=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(0<e?o:n)(e)}},{}],152:[function(e,t,r){var n=e("../internals/to-integer"),o=Math.min;t.exports=function(e){return 0<e?o(n(e),9007199254740991):0}},{"../internals/to-integer":151}],153:[function(e,t,r){var n=e("../internals/require-object-coercible");t.exports=function(e){return Object(n(e))}},{"../internals/require-object-coercible":131}],154:[function(e,t,r){var n=e("../internals/to-positive-integer");t.exports=function(e,t){var r=n(e);if(r%t)throw RangeError("Wrong offset");return r}},{"../internals/to-positive-integer":155}],155:[function(e,t,r){var n=e("../internals/to-integer");t.exports=function(e){var t=n(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},{"../internals/to-integer":151}],156:[function(e,t,r){var o=e("../internals/is-object");t.exports=function(e,t){if(!o(e))return e;var r,n;if(t&&"function"==typeof(r=e.toString)&&!o(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!o(n=r.call(e)))return n;if(!t&&"function"==typeof(r=e.toString)&&!o(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},{"../internals/is-object":92}],157:[function(e,t,r){var n={};n[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(n)},{"../internals/well-known-symbol":164}],158:[function(e,t,r){function f(e,t){for(var r=0,n=t.length,o=new(X(e))(n);r<n;)o[r]=t[r++];return o}function n(e,t){D(e,t,{get:function(){return R(this)[t]}})}function m(e){var t;return e instanceof G||"ArrayBuffer"==(t=S(e))||"SharedArrayBuffer"==t}function o(e,t){return Y(e)&&"symbol"!=_typeof3(t)&&t in e&&String(+t)==String(t)}function a(e,t){return o(e,t=h(t,!0))?d(2,e[t]):F(e,t)}function i(e,t,r){return!(o(e,t=h(t,!0))&&j(r)&&_(r,"value"))||_(r,"get")||_(r,"set")||r.configurable||_(r,"writable")&&!r.writable||_(r,"enumerable")&&!r.enumerable?D(e,t,r):(e[t]=r.value,e)}var l=e("../internals/export"),p=e("../internals/global"),s=e("../internals/descriptors"),y=e("../internals/typed-array-constructors-require-wrappers"),c=e("../internals/array-buffer-view-core"),u=e("../internals/array-buffer"),g=e("../internals/an-instance"),d=e("../internals/create-property-descriptor"),v=e("../internals/create-non-enumerable-property"),b=e("../internals/to-length"),x=e("../internals/to-index"),w=e("../internals/to-offset"),h=e("../internals/to-primitive"),_=e("../internals/has"),S=e("../internals/classof"),j=e("../internals/is-object"),E=e("../internals/object-create"),T=e("../internals/object-set-prototype-of"),M=e("../internals/object-get-own-property-names").f,C=e("../internals/typed-array-from"),O=e("../internals/array-iteration").forEach,N=e("../internals/set-species"),k=e("../internals/object-define-property"),L=e("../internals/object-get-own-property-descriptor"),A=e("../internals/internal-state"),I=e("../internals/inherit-if-required"),R=A.get,P=A.set,D=k.f,F=L.f,U=Math.round,B=p.RangeError,G=u.ArrayBuffer,V=u.DataView,z=c.NATIVE_ARRAY_BUFFER_VIEWS,H=c.TYPED_ARRAY_TAG,W=c.TypedArray,q=c.TypedArrayPrototype,X=c.aTypedArrayConstructor,Y=c.isTypedArray,Z="BYTES_PER_ELEMENT",K="Wrong length";s?(z||(L.f=a,k.f=i,n(q,"buffer"),n(q,"byteOffset"),n(q,"byteLength"),n(q,"length")),l({target:"Object",stat:!0,forced:!z},{getOwnPropertyDescriptor:a,defineProperty:i}),t.exports=function(e,t,a){function c(e,o){D(e,o,{get:function(){return e=o,(t=R(this)).view[r](e*u+t.byteOffset,!0);var e,t},set:function(e){return t=o,r=e,n=R(this),a&&(r=(r=U(r))<0?0:255<r?255:255&r),void n.view[i](t*u+n.byteOffset,r,!0);var t,r,n},enumerable:!0})}var u=e.match(/\d+$/)[0]/8,d=e+(a?"Clamped":"")+"Array",r="get"+e,i="set"+e,o=p[d],h=o,n=h&&h.prototype,s={};z?y&&(h=t(function(e,t,r,n){return g(e,h,d),I(j(t)?m(t)?void 0!==n?new o(t,w(r,u),n):void 0!==r?new o(t,w(r,u)):new o(t):Y(t)?f(h,t):C.call(h,t):new o(x(t)),e,h)}),T&&T(h,W),O(M(o),function(e){e in h||v(h,e,o[e])}),h.prototype=n):(h=t(function(e,t,r,n){g(e,h,d);var o,a,i,s=0,l=0;if(j(t)){if(!m(t))return Y(t)?f(h,t):C.call(h,t);o=t,l=w(r,u);var p=t.byteLength;if(void 0===n){if(p%u)throw B(K);if((a=p-l)<0)throw B(K)}else if(p<(a=b(n)*u)+l)throw B(K);i=a/u}else i=x(t),o=new G(a=i*u);for(P(e,{buffer:o,byteOffset:l,byteLength:a,length:i,view:new V(o)});s<i;)c(e,s++)}),T&&T(h,W),n=h.prototype=E(q)),n.constructor!==h&&v(n,"constructor",h),H&&v(n,H,d),s[d]=h,l({global:!0,forced:h!=o,sham:!z},s),Z in h||v(h,Z,u),Z in n||v(n,Z,u),N(d)}):t.exports=function(){}},{"../internals/an-instance":27,"../internals/array-buffer":31,"../internals/array-buffer-view-core":30,"../internals/array-iteration":37,"../internals/classof":47,"../internals/create-non-enumerable-property":55,"../internals/create-property-descriptor":56,"../internals/descriptors":60,"../internals/export":67,"../internals/global":77,"../internals/has":78,"../internals/inherit-if-required":85,"../internals/internal-state":88,"../internals/is-object":92,"../internals/object-create":108,"../internals/object-define-property":110,"../internals/object-get-own-property-descriptor":111,"../internals/object-get-own-property-names":113,"../internals/object-set-prototype-of":119,"../internals/set-species":134,"../internals/to-index":149,"../internals/to-length":152,"../internals/to-offset":154,"../internals/to-primitive":156,"../internals/typed-array-constructors-require-wrappers":159,"../internals/typed-array-from":160}],159:[function(e,t,r){var n=e("../internals/global"),o=e("../internals/fails"),a=e("../internals/check-correctness-of-iteration"),i=e("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,l=n.Int8Array;t.exports=!i||!o(function(){l(1)})||!o(function(){new l(-1)})||!a(function(e){new l,new l(null),new l(1.5),new l(e)},!0)||o(function(){return 1!==new l(new s(2),1,void 0).length})},{"../internals/array-buffer-view-core":30,"../internals/check-correctness-of-iteration":45,"../internals/fails":68,"../internals/global":77}],160:[function(e,t,r){var f=e("../internals/to-object"),m=e("../internals/to-length"),y=e("../internals/get-iterator-method"),g=e("../internals/is-array-iterator-method"),v=e("../internals/function-bind-context"),b=e("../internals/array-buffer-view-core").aTypedArrayConstructor;t.exports=function(e,t,r){var n,o,a,i,s,l,p=f(e),c=arguments.length,u=1<c?t:void 0,d=void 0!==u,h=y(p);if(null!=h&&!g(h))for(l=(s=h.call(p)).next,p=[];!(i=l.call(s)).done;)p.push(i.value);for(d&&2<c&&(u=v(u,r,2)),o=m(p.length),a=new(b(this))(o),n=0;n<o;n++)a[n]=d?u(p[n],n):p[n];return a}},{"../internals/array-buffer-view-core":30,"../internals/function-bind-context":72,"../internals/get-iterator-method":75,"../internals/is-array-iterator-method":89,"../internals/to-length":152,"../internals/to-object":153}],161:[function(e,t,r){var n=0,o=Math.random();t.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+o).toString(36)}},{}],162:[function(e,t,r){var n=e("../internals/native-symbol");t.exports=n&&!Symbol.sham&&"symbol"==_typeof3(Symbol.iterator)},{"../internals/native-symbol":101}],163:[function(e,t,r){var n=e("../internals/well-known-symbol");r.f=n},{"../internals/well-known-symbol":164}],164:[function(e,t,r){var n=e("../internals/global"),o=e("../internals/shared"),a=e("../internals/has"),i=e("../internals/uid"),s=e("../internals/native-symbol"),l=e("../internals/use-symbol-as-uid"),p=o("wks"),c=n.Symbol,u=l?c:c&&c.withoutSetter||i;t.exports=function(e){return a(p,e)||(s&&a(c,e)?p[e]=c[e]:p[e]=u("Symbol."+e)),p[e]}},{"../internals/global":77,"../internals/has":78,"../internals/native-symbol":101,"../internals/shared":138,"../internals/uid":161,"../internals/use-symbol-as-uid":162}],165:[function(e,t,r){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},{}],166:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/global"),a=e("../internals/array-buffer"),i=e("../internals/set-species"),s="ArrayBuffer",l=a[s];n({global:!0,forced:o[s]!==l},{ArrayBuffer:l}),i(s)},{"../internals/array-buffer":31,"../internals/export":67,"../internals/global":77,"../internals/set-species":134}],167:[function(e,t,r){function p(e){if(!i(e))return!1;var t=e[m];return void 0!==t?!!t:a(e)}var n=e("../internals/export"),o=e("../internals/fails"),a=e("../internals/is-array"),i=e("../internals/is-object"),c=e("../internals/to-object"),u=e("../internals/to-length"),d=e("../internals/create-property"),h=e("../internals/array-species-create"),s=e("../internals/array-method-has-species-support"),l=e("../internals/well-known-symbol"),f=e("../internals/engine-v8-version"),m=l("isConcatSpreadable"),y=9007199254740991,g="Maximum allowed index exceeded",v=51<=f||!o(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),b=s("concat");n({target:"Array",proto:!0,forced:!v||!b},{concat:function(e){var t,r,n,o,a,i=c(this),s=h(i,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(p(a=-1===t?i:arguments[t])){if(o=u(a.length),y<l+o)throw TypeError(g);for(r=0;r<o;r++,l++)r in a&&d(s,l,a[r])}else{if(y<=l)throw TypeError(g);d(s,l++,a)}return s.length=l,s}})},{"../internals/array-method-has-species-support":39,"../internals/array-species-create":43,"../internals/create-property":57,"../internals/engine-v8-version":65,"../internals/export":67,"../internals/fails":68,"../internals/is-array":90,"../internals/is-object":92,"../internals/to-length":152,"../internals/to-object":153,"../internals/well-known-symbol":164}],168:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/array-iteration").every,a=e("../internals/array-method-is-strict"),i=e("../internals/array-method-uses-to-length"),s=a("every"),l=i("every");n({target:"Array",proto:!0,forced:!s||!l},{every:function(e,t){return o(this,e,1<arguments.length?t:void 0)}})},{"../internals/array-iteration":37,"../internals/array-method-is-strict":40,"../internals/array-method-uses-to-length":41,"../internals/export":67}],169:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/array-fill"),a=e("../internals/add-to-unscopables");n({target:"Array",proto:!0},{fill:o}),a("fill")},{"../internals/add-to-unscopables":25,"../internals/array-fill":33,"../internals/export":67}],170:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/array-iteration").filter,a=e("../internals/array-method-has-species-support"),i=e("../internals/array-method-uses-to-length"),s=a("filter"),l=i("filter");n({target:"Array",proto:!0,forced:!s||!l},{filter:function(e,t){return o(this,e,1<arguments.length?t:void 0)}})},{"../internals/array-iteration":37,"../internals/array-method-has-species-support":39,"../internals/array-method-uses-to-length":41,"../internals/export":67}],171:[function(e,t,r){var n=e("../internals/export"),a=e("../internals/flatten-into-array"),i=e("../internals/to-object"),s=e("../internals/to-length"),l=e("../internals/a-function"),p=e("../internals/array-species-create");n({target:"Array",proto:!0},{flatMap:function(e,t){var r,n=i(this),o=s(n.length);return l(e),(r=p(n,0)).length=a(r,n,n,o,0,1,e,1<arguments.length?t:void 0),r}})},{"../internals/a-function":23,"../internals/array-species-create":43,"../internals/export":67,"../internals/flatten-into-array":70,"../internals/to-length":152,"../internals/to-object":153}],172:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/array-for-each");n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},{"../internals/array-for-each":34,"../internals/export":67}],173:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/array-from");n({target:"Array",stat:!0,forced:!e("../internals/check-correctness-of-iteration")(function(e){Array.from(e)})},{from:o})},{"../internals/array-from":35,"../internals/check-correctness-of-iteration":45,"../internals/export":67}],174:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/array-includes").includes,a=e("../internals/add-to-unscopables");n({target:"Array",proto:!0,forced:!e("../internals/array-method-uses-to-length")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e,t){return o(this,e,1<arguments.length?t:void 0)}}),a("includes")},{"../internals/add-to-unscopables":25,"../internals/array-includes":36,"../internals/array-method-uses-to-length":41,"../internals/export":67}],175:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/array-includes").indexOf,a=e("../internals/array-method-is-strict"),i=e("../internals/array-method-uses-to-length"),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,p=a("indexOf"),c=i("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:l||!p||!c},{indexOf:function(e,t){return l?s.apply(this,arguments)||0:o(this,e,1<arguments.length?t:void 0)}})},{"../internals/array-includes":36,"../internals/array-method-is-strict":40,"../internals/array-method-uses-to-length":41,"../internals/export":67}],176:[function(e,t,r){var n=e("../internals/to-indexed-object"),o=e("../internals/add-to-unscopables"),a=e("../internals/iterators"),i=e("../internals/internal-state"),s=e("../internals/define-iterator"),l="Array Iterator",p=i.set,c=i.getterFor(l);t.exports=s(Array,"Array",function(e,t){p(this,{type:l,target:n(e),index:0,kind:t})},function(){var e=c(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},{"../internals/add-to-unscopables":25,"../internals/define-iterator":58,"../internals/internal-state":88,"../internals/iterators":97,"../internals/to-indexed-object":150}],177:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/indexed-object"),a=e("../internals/to-indexed-object"),i=e("../internals/array-method-is-strict"),s=[].join,l=o!=Object,p=i("join",",");n({target:"Array",proto:!0,forced:l||!p},{join:function(e){return s.call(a(this),void 0===e?",":e)}})},{"../internals/array-method-is-strict":40,"../internals/export":67,"../internals/indexed-object":84,"../internals/to-indexed-object":150}],178:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/array-last-index-of");n({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},{"../internals/array-last-index-of":38,"../internals/export":67}],179:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/array-iteration").map,a=e("../internals/array-method-has-species-support"),i=e("../internals/array-method-uses-to-length"),s=a("map"),l=i("map");n({target:"Array",proto:!0,forced:!s||!l},{map:function(e,t){return o(this,e,1<arguments.length?t:void 0)}})},{"../internals/array-iteration":37,"../internals/array-method-has-species-support":39,"../internals/array-method-uses-to-length":41,"../internals/export":67}],180:[function(e,t,r){var n=e("../internals/export"),p=e("../internals/is-object"),c=e("../internals/is-array"),u=e("../internals/to-absolute-index"),d=e("../internals/to-length"),h=e("../internals/to-indexed-object"),f=e("../internals/create-property"),o=e("../internals/well-known-symbol"),a=e("../internals/array-method-has-species-support"),i=e("../internals/array-method-uses-to-length"),s=a("slice"),l=i("slice",{ACCESSORS:!0,0:0,1:2}),m=o("species"),y=[].slice,g=Math.max;n({target:"Array",proto:!0,forced:!s||!l},{slice:function(e,t){var r,n,o,a=h(this),i=d(a.length),s=u(e,i),l=u(void 0===t?i:t,i);if(c(a)&&("function"!=typeof(r=a.constructor)||r!==Array&&!c(r.prototype)?p(r)&&null===(r=r[m])&&(r=void 0):r=void 0,r===Array||void 0===r))return y.call(a,s,l);for(n=new(void 0===r?Array:r)(g(l-s,0)),o=0;s<l;s++,o++)s in a&&f(n,o,a[s]);return n.length=o,n}})},{"../internals/array-method-has-species-support":39,"../internals/array-method-uses-to-length":41,"../internals/create-property":57,"../internals/export":67,"../internals/is-array":90,"../internals/is-object":92,"../internals/to-absolute-index":148,"../internals/to-indexed-object":150,"../internals/to-length":152,"../internals/well-known-symbol":164}],181:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/array-iteration").some,a=e("../internals/array-method-is-strict"),i=e("../internals/array-method-uses-to-length"),s=a("some"),l=i("some");n({target:"Array",proto:!0,forced:!s||!l},{some:function(e,t){return o(this,e,1<arguments.length?t:void 0)}})},{"../internals/array-iteration":37,"../internals/array-method-is-strict":40,"../internals/array-method-uses-to-length":41,"../internals/export":67}],182:[function(e,t,r){var n=e("../internals/export"),d=e("../internals/to-absolute-index"),h=e("../internals/to-integer"),f=e("../internals/to-length"),m=e("../internals/to-object"),y=e("../internals/array-species-create"),g=e("../internals/create-property"),o=e("../internals/array-method-has-species-support"),a=e("../internals/array-method-uses-to-length"),i=o("splice"),s=a("splice",{ACCESSORS:!0,0:0,1:2}),v=Math.max,b=Math.min;n({target:"Array",proto:!0,forced:!i||!s},{splice:function(e,t){var r,n,o,a,i,s,l=m(this),p=f(l.length),c=d(e,p),u=arguments.length;if(0===u?r=n=0:n=1===u?(r=0,p-c):(r=u-2,b(v(h(t),0),p-c)),9007199254740991<p+r-n)throw TypeError("Maximum allowed length exceeded");for(o=y(l,n),a=0;a<n;a++)(i=c+a)in l&&g(o,a,l[i]);if(r<(o.length=n)){for(a=c;a<p-n;a++)s=a+r,(i=a+n)in l?l[s]=l[i]:delete l[s];for(a=p;p-n+r<a;a--)delete l[a-1]}else if(n<r)for(a=p-n;c<a;a--)s=a+r-1,(i=a+n-1)in l?l[s]=l[i]:delete l[s];for(a=0;a<r;a++)l[a+c]=arguments[a+2];return l.length=p-n+r,o}})},{"../internals/array-method-has-species-support":39,"../internals/array-method-uses-to-length":41,"../internals/array-species-create":43,"../internals/create-property":57,"../internals/export":67,"../internals/to-absolute-index":148,"../internals/to-integer":151,"../internals/to-length":152,"../internals/to-object":153}],183:[function(e,t,r){e("../internals/add-to-unscopables")("flatMap")},{"../internals/add-to-unscopables":25}],184:[function(e,t,r){var n=e("../internals/descriptors"),o=e("../internals/object-define-property").f,a=Function.prototype,i=a.toString,s=/^\s*function ([^ (]*)/;!n||"name"in a||o(a,"name",{configurable:!0,get:function(){try{return i.call(this).match(s)[1]}catch(e){return""}}})},{"../internals/descriptors":60,"../internals/object-define-property":110}],185:[function(e,t,r){var n=e("../internals/collection"),o=e("../internals/collection-strong");t.exports=n("Map",function(t){return function(e){return t(this,arguments.length?e:void 0)}},o)},{"../internals/collection":49,"../internals/collection-strong":48}],186:[function(e,t,r){var n=e("../internals/export"),o=Math.hypot,l=Math.abs,p=Math.sqrt;n({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(e,t){for(var r,n,o=0,a=0,i=arguments.length,s=0;a<i;)s<(r=l(arguments[a++]))?(o=o*(n=s/r)*n+1,s=r):o+=0<r?(n=r/s)*n:r;return s===1/0?1/0:s*p(o)}})},{"../internals/export":67}],187:[function(e,t,r){e("../internals/export")({target:"Math",stat:!0},{sign:e("../internals/math-sign")})},{"../internals/export":67,"../internals/math-sign":98}],188:[function(e,t,r){function n(e){var t,r,n,o,a,i,s,l,p=u(e,!1);if("string"==typeof p&&2<p.length)if(43===(t=(p=g(p)).charCodeAt(0))||45===t){if(88===(r=p.charCodeAt(2))||120===r)return NaN}else if(48===t){switch(p.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+p}for(i=(a=p.slice(2)).length,s=0;s<i;s++)if((l=a.charCodeAt(s))<48||o<l)return NaN;return parseInt(a,n)}return+p}var o=e("../internals/descriptors"),a=e("../internals/global"),i=e("../internals/is-forced"),s=e("../internals/redefine"),l=e("../internals/has"),p=e("../internals/classof-raw"),c=e("../internals/inherit-if-required"),u=e("../internals/to-primitive"),d=e("../internals/fails"),h=e("../internals/object-create"),f=e("../internals/object-get-own-property-names").f,m=e("../internals/object-get-own-property-descriptor").f,y=e("../internals/object-define-property").f,g=e("../internals/string-trim").trim,v="Number",b=a[v],x=b.prototype,w=p(h(x))==v;if(i(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var _,S=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof S&&(w?d(function(){x.valueOf.call(r)}):p(r)!=v)?c(new b(n(t)),r,S):n(t)},j=o?f(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;j.length>E;E++)l(b,_=j[E])&&!l(S,_)&&y(S,_,m(b,_));(S.prototype=x).constructor=S,s(a,v,S)}},{"../internals/classof-raw":46,"../internals/descriptors":60,"../internals/fails":68,"../internals/global":77,"../internals/has":78,"../internals/inherit-if-required":85,"../internals/is-forced":91,"../internals/object-create":108,"../internals/object-define-property":110,"../internals/object-get-own-property-descriptor":111,"../internals/object-get-own-property-names":113,"../internals/redefine":126,"../internals/string-trim":145,"../internals/to-primitive":156}],189:[function(e,t,r){e("../internals/export")({target:"Number",stat:!0},{isFinite:e("../internals/number-is-finite")})},{"../internals/export":67,"../internals/number-is-finite":106}],190:[function(e,t,r){function h(e,t,r){return 0===t?r:t%2==1?h(e,t-1,r*e):h(e*e,t/2,r)}var n=e("../internals/export"),f=e("../internals/to-integer"),m=e("../internals/this-number-value"),y=e("../internals/string-repeat"),o=e("../internals/fails"),a=1..toFixed,g=Math.floor;n({target:"Number",proto:!0,forced:a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o(function(){a.call({})})},{toFixed:function(e){function t(e,t){for(var r=-1,n=t;++r<6;)n+=e*c[r],c[r]=n%1e7,n=g(n/1e7)}function r(e){for(var t=6,r=0;0<=--t;)r+=c[t],c[t]=g(r/e),r=r%e*1e7}function n(){for(var e=6,t="";0<=--e;)if(""!==t||0===e||0!==c[e]){var r=String(c[e]);t=""===t?r:t+y.call("0",7-r.length)+r}return t}var o,a,i,s,l=m(this),p=f(e),c=[0,0,0,0,0,0],u="",d="0";if(p<0||20<p)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||1e21<=l)return String(l);if(l<0&&(u="-",l=-l),1e-21<l)if(a=(o=function(e){for(var t=0,r=e;4096<=r;)t+=12,r/=4096;for(;2<=r;)t+=1,r/=2;return t}(l*h(2,69,1))-69)<0?l*h(2,-o,1):l/h(2,o,1),a*=4503599627370496,0<(o=52-o)){for(t(0,a),i=p;7<=i;)t(1e7,0),i-=7;for(t(h(10,i,1),0),i=o-1;23<=i;)r(1<<23),i-=23;r(1<<i),t(1,1),r(2),d=n()}else t(0,a),t(1<<-o,0),d=n()+y.call("0",p);return d=0<p?u+((s=d.length)<=p?"0."+y.call("0",p-s)+d:d.slice(0,s-p)+"."+d.slice(s-p)):u+d}})},{"../internals/export":67,"../internals/fails":68,"../internals/string-repeat":143,"../internals/this-number-value":147,"../internals/to-integer":151}],191:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/object-assign");n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},{"../internals/export":67,"../internals/object-assign":107}],192:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/fails"),a=e("../internals/object-get-own-property-names-external").f;n({target:"Object",stat:!0,forced:o(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:a})},{"../internals/export":67,"../internals/fails":68,"../internals/object-get-own-property-names-external":112}],193:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/fails"),a=e("../internals/to-object"),i=e("../internals/object-get-prototype-of"),s=e("../internals/correct-prototype-getter");n({target:"Object",stat:!0,forced:o(function(){i(1)}),sham:!s},{getPrototypeOf:function(e){return i(a(e))}})},{"../internals/correct-prototype-getter":52,"../internals/export":67,"../internals/fails":68,"../internals/object-get-prototype-of":115,"../internals/to-object":153}],194:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/to-object"),a=e("../internals/object-keys");n({target:"Object",stat:!0,forced:e("../internals/fails")(function(){a(1)})},{keys:function(e){return a(o(e))}})},{"../internals/export":67,"../internals/fails":68,"../internals/object-keys":117,"../internals/to-object":153}],195:[function(e,t,r){var n=e("../internals/to-string-tag-support"),o=e("../internals/redefine"),a=e("../internals/object-to-string");n||o(Object.prototype,"toString",a,{unsafe:!0})},{"../internals/object-to-string":120,"../internals/redefine":126,"../internals/to-string-tag-support":157}],196:[function(e,t,r){function m(e){var t;return!(!_(e)||"function"!=typeof(t=e.then))&&t}function a(u,d,h){if(!d.notified){d.notified=!0;var f=d.reactions;k(function(){for(var e=d.value,t=1==d.state,r=0;f.length>r;){var n,o,a,i=f[r++],s=t?i.ok:i.fail,l=i.resolve,p=i.reject,c=i.domain;try{s?(t||(2===d.rejection&&ae(u,d),d.rejection=1),!0===s?n=e:(c&&c.enter(),n=s(e),c&&(c.exit(),a=!0)),n===i.promise?p(q("Promise-chain cycle")):(o=m(n))?o.call(n,l,p):l(n)):p(e)}catch(e){c&&!a&&c.exit(),p(e)}}d.reactions=[],d.notified=!1,h&&!d.rejection&&ne(u,d)})}}function o(e,t,r){var n,o;$?((n=X.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),f.dispatchEvent(n)):n={promise:t,reason:r},(o=f["on"+e])?o(n):e===ee&&A("Unhandled promise rejection",r)}function i(t,r,n,o){return function(e){t(r,n,e,o)}}function s(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,a(e,t,!0))}function l(r,n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(r===e)throw q("Promise can't be resolved itself");var o=m(e);o?k(function(){var t={done:!1};try{o.call(e,i(l,r,t,n),i(s,r,t,n))}catch(e){s(r,t,e,n)}}):(n.value=e,n.state=1,a(r,n,!1))}catch(e){s(r,{done:!1},e,n)}}}var n,p,c,u,d=e("../internals/export"),h=e("../internals/is-pure"),f=e("../internals/global"),y=e("../internals/get-built-in"),g=e("../internals/native-promise-constructor"),v=e("../internals/redefine"),b=e("../internals/redefine-all"),x=e("../internals/set-to-string-tag"),w=e("../internals/set-species"),_=e("../internals/is-object"),S=e("../internals/a-function"),j=e("../internals/an-instance"),E=e("../internals/classof-raw"),T=e("../internals/inspect-source"),M=e("../internals/iterate"),C=e("../internals/check-correctness-of-iteration"),O=e("../internals/species-constructor"),N=e("../internals/task").set,k=e("../internals/microtask"),L=e("../internals/promise-resolve"),A=e("../internals/host-report-errors"),I=e("../internals/new-promise-capability"),R=e("../internals/perform"),P=e("../internals/internal-state"),D=e("../internals/is-forced"),F=e("../internals/well-known-symbol"),U=e("../internals/engine-v8-version"),B=F("species"),G="Promise",V=P.get,z=P.set,H=P.getterFor(G),W=g,q=f.TypeError,X=f.document,Y=f.process,Z=y("fetch"),K=I.f,Q=K,J="process"==E(Y),$=!!(X&&X.createEvent&&f.dispatchEvent),ee="unhandledrejection",te=D(G,function(){if(!(T(W)!==String(W))){if(66===U)return!0;if(!J&&"function"!=typeof PromiseRejectionEvent)return!0}if(h&&!W.prototype.finally)return!0;if(51<=U&&/native code/.test(W))return!1;function e(e){e(function(){},function(){})}var t=W.resolve(1);return(t.constructor={})[B]=e,!(t.then(function(){})instanceof e)}),re=te||!C(function(e){W.all(e).catch(function(){})}),ne=function(r,n){N.call(f,function(){var e,t=n.value;if(oe(n)&&(e=R(function(){J?Y.emit("unhandledRejection",t,r):o(ee,r,t)}),n.rejection=J||oe(n)?2:1,e.error))throw e.value})},oe=function(e){return 1!==e.rejection&&!e.parent},ae=function(e,t){N.call(f,function(){J?Y.emit("rejectionHandled",e):o("rejectionhandled",e,t.value)})};te&&(W=function(e){j(this,W,G),S(e),n.call(this);var t=V(this);try{e(i(l,this,t),i(s,this,t))}catch(e){s(this,t,e)}},(n=function(){z(this,{type:G,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=b(W.prototype,{then:function(e,t){var r=H(this),n=K(O(this,W));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=J?Y.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&a(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),p=function(){var e=new n,t=V(e);this.promise=e,this.resolve=i(l,e,t),this.reject=i(s,e,t)},I.f=K=function(e){return e===W||e===c?new p(e):Q(e)},h||"function"!=typeof g||(u=g.prototype.then,v(g.prototype,"then",function(e,t){var r=this;return new W(function(e,t){u.call(r,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof Z&&d({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return L(W,Z.apply(f,arguments))}}))),d({global:!0,wrap:!0,forced:te},{Promise:W}),x(W,G,!1,!0),w(G),c=y(G),d({target:G,stat:!0,forced:te},{reject:function(e){var t=K(this);return t.reject.call(void 0,e),t.promise}}),d({target:G,stat:!0,forced:h||te},{resolve:function(e){return L(h&&this===c?W:this,e)}}),d({target:G,stat:!0,forced:re},{all:function(e){var s=this,t=K(s),l=t.resolve,p=t.reject,r=R(function(){var n=S(s.resolve),o=[],a=0,i=1;M(e,function(e){var t=a++,r=!1;o.push(void 0),i++,n.call(s,e).then(function(e){r||(r=!0,o[t]=e,--i||l(o))},p)}),--i||l(o)});return r.error&&p(r.value),t.promise},race:function(e){var r=this,n=K(r),o=n.reject,t=R(function(){var t=S(r.resolve);M(e,function(e){t.call(r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}})},{"../internals/a-function":23,"../internals/an-instance":27,"../internals/check-correctness-of-iteration":45,"../internals/classof-raw":46,"../internals/engine-v8-version":65,"../internals/export":67,"../internals/get-built-in":74,"../internals/global":77,"../internals/host-report-errors":80,"../internals/inspect-source":86,"../internals/internal-state":88,"../internals/is-forced":91,"../internals/is-object":92,"../internals/is-pure":93,"../internals/iterate":95,"../internals/microtask":99,"../internals/native-promise-constructor":100,"../internals/new-promise-capability":104,"../internals/perform":123,"../internals/promise-resolve":124,"../internals/redefine":126,"../internals/redefine-all":125,"../internals/set-species":134,"../internals/set-to-string-tag":135,"../internals/species-constructor":139,"../internals/task":146,"../internals/well-known-symbol":164}],197:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/get-built-in"),l=e("../internals/a-function"),p=e("../internals/an-object"),c=e("../internals/is-object"),u=e("../internals/object-create"),d=e("../internals/function-bind"),a=e("../internals/fails"),h=o("Reflect","construct"),f=a(function(){function e(){}return!(h(function(){},[],e)instanceof e)}),m=!a(function(){h(function(){})}),i=f||m;n({target:"Reflect",stat:!0,forced:i,sham:i},{construct:function(e,t,r){l(e),p(t);var n=arguments.length<3?e:l(r);if(m&&!f)return h(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var o=[null];return o.push.apply(o,t),new(d.apply(e,o))}var a=n.prototype,i=u(c(a)?a:Object.prototype),s=Function.apply.call(e,i,t);return c(s)?s:i}})},{"../internals/a-function":23,"../internals/an-object":28,"../internals/export":67,"../internals/fails":68,"../internals/function-bind":73,"../internals/get-built-in":74,"../internals/is-object":92,"../internals/object-create":108}],198:[function(e,t,r){var n=e("../internals/descriptors"),o=e("../internals/global"),a=e("../internals/is-forced"),s=e("../internals/inherit-if-required"),i=e("../internals/object-define-property").f,l=e("../internals/object-get-own-property-names").f,p=e("../internals/is-regexp"),c=e("../internals/regexp-flags"),u=e("../internals/regexp-sticky-helpers"),d=e("../internals/redefine"),h=e("../internals/fails"),f=e("../internals/internal-state").set,m=e("../internals/set-species"),y=e("../internals/well-known-symbol")("match"),g=o.RegExp,v=g.prototype,b=/a/g,x=/a/g,w=new g(b)!==b,_=u.UNSUPPORTED_Y;if(n&&a("RegExp",!w||_||h(function(){return x[y]=!1,g(b)!=b||g(x)==x||"/a/i"!=g(b,"i")}))){for(var S=function(e,t){var r,n=this instanceof S,o=p(e),a=void 0===t;if(!n&&o&&e.constructor===S&&a)return e;w?o&&!a&&(e=e.source):e instanceof S&&(a&&(t=c.call(e)),e=e.source),_&&(r=!!t&&-1<t.indexOf("y"))&&(t=t.replace(/y/g,""));var i=s(w?new g(e,t):g(e,t),n?this:v,S);return _&&r&&f(i,{sticky:r}),i},j=function(t){t in S||i(S,t,{configurable:!0,get:function(){return g[t]},set:function(e){g[t]=e}})},E=l(g),T=0;E.length>T;)j(E[T++]);(v.constructor=S).prototype=v,d(o,"RegExp",S)}m("RegExp")},{"../internals/descriptors":60,"../internals/fails":68,"../internals/global":77,"../internals/inherit-if-required":85,"../internals/internal-state":88,"../internals/is-forced":91,"../internals/is-regexp":94,"../internals/object-define-property":110,"../internals/object-get-own-property-names":113,"../internals/redefine":126,"../internals/regexp-flags":129,"../internals/regexp-sticky-helpers":130,"../internals/set-species":134,"../internals/well-known-symbol":164}],199:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/regexp-exec");n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},{"../internals/export":67,"../internals/regexp-exec":128}],200:[function(e,t,r){var n=e("../internals/redefine"),o=e("../internals/an-object"),a=e("../internals/fails"),i=e("../internals/regexp-flags"),s="toString",l=RegExp.prototype,p=l[s],c=a(function(){return"/a/b"!=p.call({source:"a",flags:"b"})}),u=p.name!=s;(c||u)&&n(RegExp.prototype,s,function(){var e=o(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(void 0===r&&e instanceof RegExp&&!("flags"in l)?i.call(e):r)},{unsafe:!0})},{"../internals/an-object":28,"../internals/fails":68,"../internals/redefine":126,"../internals/regexp-flags":129}],201:[function(e,t,r){var n=e("../internals/collection"),o=e("../internals/collection-strong");t.exports=n("Set",function(t){return function(e){return t(this,arguments.length?e:void 0)}},o)},{"../internals/collection":49,"../internals/collection-strong":48}],202:[function(e,t,r){var n,o=e("../internals/export"),a=e("../internals/object-get-own-property-descriptor").f,s=e("../internals/to-length"),l=e("../internals/not-a-regexp"),p=e("../internals/require-object-coercible"),i=e("../internals/correct-is-regexp-logic"),c=e("../internals/is-pure"),u="".endsWith,d=Math.min,h=i("endsWith");o({target:"String",proto:!0,forced:!!(c||h||(!(n=a(String.prototype,"endsWith"))||n.writable))&&!h},{endsWith:function(e,t){var r=String(p(this));l(e);var n=1<arguments.length?t:void 0,o=s(r.length),a=void 0===n?o:d(s(n),o),i=String(e);return u?u.call(r,i,a):r.slice(a-i.length,a)===i}})},{"../internals/correct-is-regexp-logic":51,"../internals/export":67,"../internals/is-pure":93,"../internals/not-a-regexp":105,"../internals/object-get-own-property-descriptor":111,"../internals/require-object-coercible":131,"../internals/to-length":152}],203:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/not-a-regexp"),a=e("../internals/require-object-coercible");n({target:"String",proto:!0,forced:!e("../internals/correct-is-regexp-logic")("includes")},{includes:function(e,t){return!!~String(a(this)).indexOf(o(e),1<arguments.length?t:void 0)}})},{"../internals/correct-is-regexp-logic":51,"../internals/export":67,"../internals/not-a-regexp":105,"../internals/require-object-coercible":131}],204:[function(e,t,r){var o=e("../internals/string-multibyte").charAt,n=e("../internals/internal-state"),a=e("../internals/define-iterator"),i="String Iterator",s=n.set,l=n.getterFor(i);a(String,"String",function(e){s(this,{type:i,string:String(e),index:0})},function(){var e,t=l(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=o(r,n),t.index+=e.length,{value:e,done:!1})})},{"../internals/define-iterator":58,"../internals/internal-state":88,"../internals/string-multibyte":141}],205:[function(e,t,r){var n=e("../internals/fix-regexp-well-known-symbol-logic"),u=e("../internals/an-object"),d=e("../internals/to-length"),o=e("../internals/require-object-coercible"),h=e("../internals/advance-string-index"),f=e("../internals/regexp-exec-abstract");n("match",1,function(n,p,c){return[function(e){var t=o(this),r=null==e?void 0:e[n];return void 0!==r?r.call(e,t):new RegExp(e)[n](String(t))},function(e){var t=c(p,e,this);if(t.done)return t.value;var r=u(e),n=String(this);if(!r.global)return f(r,n);for(var o,a=r.unicode,i=[],s=r.lastIndex=0;null!==(o=f(r,n));){var l=String(o[0]);""===(i[s]=l)&&(r.lastIndex=h(n,d(r.lastIndex),a)),s++}return 0===s?null:i}]})},{"../internals/advance-string-index":26,"../internals/an-object":28,"../internals/fix-regexp-well-known-symbol-logic":69,"../internals/regexp-exec-abstract":127,"../internals/require-object-coercible":131,"../internals/to-length":152}],206:[function(e,t,r){e("../internals/export")({target:"String",proto:!0},{repeat:e("../internals/string-repeat")})},{"../internals/export":67,"../internals/string-repeat":143}],207:[function(e,t,r){var n=e("../internals/fix-regexp-well-known-symbol-logic"),M=e("../internals/an-object"),d=e("../internals/to-object"),C=e("../internals/to-length"),O=e("../internals/to-integer"),a=e("../internals/require-object-coercible"),N=e("../internals/advance-string-index"),k=e("../internals/regexp-exec-abstract"),L=Math.max,A=Math.min,h=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;n("replace",2,function(o,w,_,e){var S=e.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,j=e.REPLACE_KEEPS_$0,E=S?"$":"$0";return[function(e,t){var r=a(this),n=null==e?void 0:e[o];return void 0!==n?n.call(e,r,t):w.call(String(r),e,t)},function(e,t){if(!S&&j||"string"==typeof t&&-1===t.indexOf(E)){var r=_(w,e,this,t);if(r.done)return r.value}var n=M(e),o=String(this),a="function"==typeof t;a||(t=String(t));var i=n.global;if(i){var s=n.unicode;n.lastIndex=0}for(var l=[];;){var p=k(n,o);if(null===p)break;if(l.push(p),!i)break;""===String(p[0])&&(n.lastIndex=N(o,C(n.lastIndex),s))}for(var c,u="",d=0,h=0;h<l.length;h++){p=l[h];for(var f=String(p[0]),m=L(A(O(p.index),o.length),0),y=[],g=1;g<p.length;g++)y.push(void 0===(c=p[g])?c:String(c));var v=p.groups;if(a){var b=[f].concat(y,m,o);void 0!==v&&b.push(v);var x=String(t.apply(void 0,b))}else x=T(f,o,m,y,v,t);d<=m&&(u+=o.slice(d,m)+x,d=m+f.length)}return u+o.slice(d)}];function T(a,i,s,l,p,e){var c=s+a.length,u=l.length,t=m;return void 0!==p&&(p=d(p),t=f),w.call(e,t,function(e,t){var r;switch(t.charAt(0)){case"$":return"$";case"&":return a;case"`":return i.slice(0,s);case"'":return i.slice(c);case"<":r=p[t.slice(1,-1)];break;default:var n=+t;if(0==n)return e;if(u<n){var o=h(n/10);return 0===o?e:o<=u?void 0===l[o-1]?t.charAt(1):l[o-1]+t.charAt(1):e}r=l[n-1]}return void 0===r?"":r})}})},{"../internals/advance-string-index":26,"../internals/an-object":28,"../internals/fix-regexp-well-known-symbol-logic":69,"../internals/regexp-exec-abstract":127,"../internals/require-object-coercible":131,"../internals/to-integer":151,"../internals/to-length":152,"../internals/to-object":153}],208:[function(e,t,r){var n=e("../internals/fix-regexp-well-known-symbol-logic"),l=e("../internals/an-object"),o=e("../internals/require-object-coercible"),p=e("../internals/same-value"),c=e("../internals/regexp-exec-abstract");n("search",1,function(n,i,s){return[function(e){var t=o(this),r=null==e?void 0:e[n];return void 0!==r?r.call(e,t):new RegExp(e)[n](String(t))},function(e){var t=s(i,e,this);if(t.done)return t.value;var r=l(e),n=String(this),o=r.lastIndex;p(o,0)||(r.lastIndex=0);var a=c(r,n);return p(r.lastIndex,o)||(r.lastIndex=o),null===a?-1:a.index}]})},{"../internals/an-object":28,"../internals/fix-regexp-well-known-symbol-logic":69,"../internals/regexp-exec-abstract":127,"../internals/require-object-coercible":131,"../internals/same-value":132}],209:[function(e,t,r){var n=e("../internals/fix-regexp-well-known-symbol-logic"),u=e("../internals/is-regexp"),b=e("../internals/an-object"),d=e("../internals/require-object-coercible"),x=e("../internals/species-constructor"),w=e("../internals/advance-string-index"),_=e("../internals/to-length"),S=e("../internals/regexp-exec-abstract"),h=e("../internals/regexp-exec"),o=e("../internals/fails"),f=[].push,j=Math.min,E=4294967295,T=!o(function(){return!RegExp(E,"y")});n("split",2,function(o,y,g){var v;return v="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var r=String(d(this)),n=void 0===t?E:t>>>0;if(0==n)return[];if(void 0===e)return[r];if(!u(e))return y.call(r,e,n);for(var o,a,i,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,c=new RegExp(e.source,l+"g");(o=h.call(c,r))&&!(p<(a=c.lastIndex)&&(s.push(r.slice(p,o.index)),1<o.length&&o.index<r.length&&f.apply(s,o.slice(1)),i=o[0].length,p=a,s.length>=n));)c.lastIndex===o.index&&c.lastIndex++;return p===r.length?!i&&c.test("")||s.push(""):s.push(r.slice(p)),s.length>n?s.slice(0,n):s}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:y.call(this,e,t)}:y,[function(e,t){var r=d(this),n=null==e?void 0:e[o];return void 0!==n?n.call(e,r,t):v.call(String(r),e,t)},function(e,t){var r=g(v,e,this,t,v!==y);if(r.done)return r.value;var n=b(e),o=String(this),a=x(n,RegExp),i=n.unicode,s=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(T?"y":"g"),l=new a(T?n:"^(?:"+n.source+")",s),p=void 0===t?E:t>>>0;if(0==p)return[];if(0===o.length)return null===S(l,o)?[o]:[];for(var c=0,u=0,d=[];u<o.length;){l.lastIndex=T?u:0;var h,f=S(l,T?o:o.slice(u));if(null===f||(h=j(_(l.lastIndex+(T?0:u)),o.length))===c)u=w(o,u,i);else{if(d.push(o.slice(c,u)),d.length===p)return d;for(var m=1;m<=f.length-1;m++)if(d.push(f[m]),d.length===p)return d;u=c=h}}return d.push(o.slice(c)),d}]},!T)},{"../internals/advance-string-index":26,"../internals/an-object":28,"../internals/fails":68,"../internals/fix-regexp-well-known-symbol-logic":69,"../internals/is-regexp":94,"../internals/regexp-exec":128,"../internals/regexp-exec-abstract":127,"../internals/require-object-coercible":131,"../internals/species-constructor":139,"../internals/to-length":152}],210:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/create-html");n({target:"String",proto:!0,forced:e("../internals/string-html-forced")("sub")},{sub:function(){return o(this,"sub","","")}})},{"../internals/create-html":53,"../internals/export":67,"../internals/string-html-forced":140}],211:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/string-trim").trim;n({target:"String",proto:!0,forced:e("../internals/string-trim-forced")("trim")},{trim:function(){return o(this)}})},{"../internals/export":67,"../internals/string-trim":145,"../internals/string-trim-forced":144}],212:[function(e,t,r){var n=e("../internals/export"),o=e("../internals/descriptors"),a=e("../internals/global"),i=e("../internals/has"),s=e("../internals/is-object"),l=e("../internals/object-define-property").f,p=e("../internals/copy-constructor-properties"),c=a.Symbol;if(o&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var u={},d=function(e){var t=arguments.length<1||void 0===e?void 0:String(e),r=this instanceof d?new c(t):void 0===t?c():c(t);return""===t&&(u[r]=!0),r};p(d,c);var h=d.prototype=c.prototype;h.constructor=d;var f=h.toString,m="Symbol(test)"==String(c("test")),y=/^Symbol\((.*)\)[^)]+$/;l(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=f.call(e);if(i(u,e))return"";var r=m?t.slice(7,-1):t.replace(y,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:d})}},{"../internals/copy-constructor-properties":50,"../internals/descriptors":60,"../internals/export":67,"../internals/global":77,"../internals/has":78,"../internals/is-object":92,"../internals/object-define-property":110}],213:[function(e,t,r){e("../internals/define-well-known-symbol")("iterator")},{"../internals/define-well-known-symbol":59}],214:[function(e,t,r){function n(e,t){var r=re[e]=S(K[W]);return X(r,{type:H,tag:e,description:t}),u||(r.description=t),r}function o(t,e){v(t);var r=x(e),n=j(r).concat(he(r));return V(n,function(e){u&&!de.call(r,e)||ue(t,e,r[e])}),t}function a(e,t){var r=x(e),n=w(t,!0);if(r!==Z||!m(re,n)||m(ne,n)){var o=J(r,n);return!o||!m(re,n)||m(r,z)&&r[z][n]||(o.enumerable=!0),o}}function i(e){var t=ee(x(e)),r=[];return V(t,function(e){m(re,e)||m(R,e)||r.push(e)}),r}var s=e("../internals/export"),l=e("../internals/global"),p=e("../internals/get-built-in"),c=e("../internals/is-pure"),u=e("../internals/descriptors"),d=e("../internals/native-symbol"),h=e("../internals/use-symbol-as-uid"),f=e("../internals/fails"),m=e("../internals/has"),y=e("../internals/is-array"),g=e("../internals/is-object"),v=e("../internals/an-object"),b=e("../internals/to-object"),x=e("../internals/to-indexed-object"),w=e("../internals/to-primitive"),_=e("../internals/create-property-descriptor"),S=e("../internals/object-create"),j=e("../internals/object-keys"),E=e("../internals/object-get-own-property-names"),T=e("../internals/object-get-own-property-names-external"),M=e("../internals/object-get-own-property-symbols"),C=e("../internals/object-get-own-property-descriptor"),O=e("../internals/object-define-property"),N=e("../internals/object-property-is-enumerable"),k=e("../internals/create-non-enumerable-property"),L=e("../internals/redefine"),A=e("../internals/shared"),I=e("../internals/shared-key"),R=e("../internals/hidden-keys"),P=e("../internals/uid"),D=e("../internals/well-known-symbol"),F=e("../internals/well-known-symbol-wrapped"),U=e("../internals/define-well-known-symbol"),B=e("../internals/set-to-string-tag"),G=e("../internals/internal-state"),V=e("../internals/array-iteration").forEach,z=I("hidden"),H="Symbol",W="prototype",q=D("toPrimitive"),X=G.set,Y=G.getterFor(H),Z=Object[W],K=l.Symbol,Q=p("JSON","stringify"),J=C.f,$=O.f,ee=T.f,te=N.f,re=A("symbols"),ne=A("op-symbols"),oe=A("string-to-symbol-registry"),ae=A("symbol-to-string-registry"),ie=A("wks"),se=l.QObject,le=!se||!se[W]||!se[W].findChild,pe=u&&f(function(){return 7!=S($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=J(Z,t);n&&delete Z[t],$(e,t,r),n&&e!==Z&&$(Z,t,n)}:$,ce=h?function(e){return"symbol"==_typeof3(e)}:function(e){return Object(e)instanceof K},ue=function(e,t,r){e===Z&&ue(ne,t,r),v(e);var n=w(t,!0);return v(r),m(re,n)?(r.enumerable?(m(e,z)&&e[z][n]&&(e[z][n]=!1),r=S(r,{enumerable:_(0,!1)})):(m(e,z)||$(e,z,_(1,{})),e[z][n]=!0),pe(e,n,r)):$(e,n,r)},de=function(e){var t=w(e,!0),r=te.call(this,t);return!(this===Z&&m(re,t)&&!m(ne,t))&&(!(r||!m(this,t)||!m(re,t)||m(this,z)&&this[z][t])||r)},he=function(e){var t=e===Z,r=ee(t?ne:x(e)),n=[];return V(r,function(e){!m(re,e)||t&&!m(Z,e)||n.push(re[e])}),n};d||(L((K=function(e){if(this instanceof K)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==e?String(e):void 0,r=P(t);return u&&le&&pe(Z,r,{configurable:!0,set:function e(t){this===Z&&e.call(ne,t),m(this,z)&&m(this[z],r)&&(this[z][r]=!1),pe(this,r,_(1,t))}}),n(r,t)})[W],"toString",function(){return Y(this).tag}),L(K,"withoutSetter",function(e){return n(P(e),e)}),N.f=de,O.f=ue,C.f=a,E.f=T.f=i,M.f=he,F.f=function(e){return n(D(e),e)},u&&($(K[W],"description",{configurable:!0,get:function(){return Y(this).description}}),c||L(Z,"propertyIsEnumerable",de,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:K}),V(j(ie),function(e){U(e)}),s({target:H,stat:!0,forced:!d},{for:function(e){var t=String(e);if(m(oe,t))return oe[t];var r=K(t);return oe[t]=r,ae[r]=t,r},keyFor:function(e){if(!ce(e))throw TypeError(e+" is not a symbol");if(m(ae,e))return ae[e]},useSetter:function(){le=!0},useSimple:function(){le=!1}}),s({target:"Object",stat:!0,forced:!d,sham:!u},{create:function(e,t){return void 0===t?S(e):o(S(e),t)},defineProperty:ue,defineProperties:o,getOwnPropertyDescriptor:a}),s({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:i,getOwnPropertySymbols:he}),s({target:"Object",stat:!0,forced:f(function(){M.f(1)})},{getOwnPropertySymbols:function(e){return M.f(b(e))}}),Q&&s({target:"JSON",stat:!0,forced:!d||f(function(){var e=K();return"[null]"!=Q([e])||"{}"!=Q({a:e})||"{}"!=Q(Object(e))})},{stringify:function(e,t,r){for(var n,o=[e],a=1;a<arguments.length;)o.push(arguments[a++]);if((g(n=t)||void 0!==e)&&!ce(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!ce(t))return t}),o[1]=t,Q.apply(null,o)}});K[W][q]||k(K[W],q,K[W].valueOf),B(K,H),R[z]=!0},{"../internals/an-object":28,"../internals/array-iteration":37,"../internals/create-non-enumerable-property":55,"../internals/create-property-descriptor":56,"../internals/define-well-known-symbol":59,"../internals/descriptors":60,"../internals/export":67,"../internals/fails":68,"../internals/get-built-in":74,"../internals/global":77,"../internals/has":78,"../internals/hidden-keys":79,"../internals/internal-state":88,"../internals/is-array":90,"../internals/is-object":92,"../internals/is-pure":93,"../internals/native-symbol":101,"../internals/object-create":108,"../internals/object-define-property":110,"../internals/object-get-own-property-descriptor":111,"../internals/object-get-own-property-names":113,"../internals/object-get-own-property-names-external":112,"../internals/object-get-own-property-symbols":114,"../internals/object-keys":117,"../internals/object-property-is-enumerable":118,"../internals/redefine":126,"../internals/set-to-string-tag":135,"../internals/shared":138,"../internals/shared-key":136,"../internals/to-indexed-object":150,"../internals/to-object":153,"../internals/to-primitive":156,"../internals/uid":161,"../internals/use-symbol-as-uid":162,"../internals/well-known-symbol":164,"../internals/well-known-symbol-wrapped":163}],215:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=e("../internals/array-copy-within"),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("copyWithin",function(e,t,r){return o.call(a(this),e,t,2<arguments.length?r:void 0)})},{"../internals/array-buffer-view-core":30,"../internals/array-copy-within":32}],216:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=e("../internals/array-iteration").every,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",function(e,t){return o(a(this),e,1<arguments.length?t:void 0)})},{"../internals/array-buffer-view-core":30,"../internals/array-iteration":37}],217:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=e("../internals/array-fill"),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("fill",function(e){return o.apply(a(this),arguments)})},{"../internals/array-buffer-view-core":30,"../internals/array-fill":33}],218:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),s=e("../internals/array-iteration").filter,l=e("../internals/species-constructor"),p=n.aTypedArray,c=n.aTypedArrayConstructor;(0,n.exportTypedArrayMethod)("filter",function(e,t){for(var r=s(p(this),e,1<arguments.length?t:void 0),n=l(this,this.constructor),o=0,a=r.length,i=new(c(n))(a);o<a;)i[o]=r[o++];return i})},{"../internals/array-buffer-view-core":30,"../internals/array-iteration":37,"../internals/species-constructor":139}],219:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=e("../internals/array-iteration").findIndex,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",function(e,t){return o(a(this),e,1<arguments.length?t:void 0)})},{"../internals/array-buffer-view-core":30,"../internals/array-iteration":37}],220:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=e("../internals/array-iteration").find,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",function(e,t){return o(a(this),e,1<arguments.length?t:void 0)})},{"../internals/array-buffer-view-core":30,"../internals/array-iteration":37}],221:[function(e,t,r){e("../internals/typed-array-constructor")("Float32",function(n){return function(e,t,r){return n(this,e,t,r)}})},{"../internals/typed-array-constructor":158}],222:[function(e,t,r){e("../internals/typed-array-constructor")("Float64",function(n){return function(e,t,r){return n(this,e,t,r)}})},{"../internals/typed-array-constructor":158}],223:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=e("../internals/array-iteration").forEach,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",function(e,t){o(a(this),e,1<arguments.length?t:void 0)})},{"../internals/array-buffer-view-core":30,"../internals/array-iteration":37}],224:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=e("../internals/array-includes").includes,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",function(e,t){return o(a(this),e,1<arguments.length?t:void 0)})},{"../internals/array-buffer-view-core":30,"../internals/array-includes":36}],225:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=e("../internals/array-includes").indexOf,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",function(e,t){return o(a(this),e,1<arguments.length?t:void 0)})},{"../internals/array-buffer-view-core":30,"../internals/array-includes":36}],226:[function(e,t,r){e("../internals/typed-array-constructor")("Int16",function(n){return function(e,t,r){return n(this,e,t,r)}})},{"../internals/typed-array-constructor":158}],227:[function(e,t,r){e("../internals/typed-array-constructor")("Int32",function(n){return function(e,t,r){return n(this,e,t,r)}})},{"../internals/typed-array-constructor":158}],228:[function(e,t,r){function n(){return p.call(d(this))}var o=e("../internals/global"),a=e("../internals/array-buffer-view-core"),i=e("../modules/es.array.iterator"),s=e("../internals/well-known-symbol")("iterator"),l=o.Uint8Array,p=i.values,c=i.keys,u=i.entries,d=a.aTypedArray,h=a.exportTypedArrayMethod,f=l&&l.prototype[s],m=!!f&&("values"==f.name||null==f.name);h("entries",function(){return u.call(d(this))}),h("keys",function(){return c.call(d(this))}),h("values",n,!m),h(s,n,!m)},{"../internals/array-buffer-view-core":30,"../internals/global":77,"../internals/well-known-symbol":164,"../modules/es.array.iterator":176}],229:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=n.aTypedArray,a=n.exportTypedArrayMethod,i=[].join;a("join",function(e){return i.apply(o(this),arguments)})},{"../internals/array-buffer-view-core":30}],230:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=e("../internals/array-last-index-of"),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",function(e){return o.apply(a(this),arguments)})},{"../internals/array-buffer-view-core":30,"../internals/array-last-index-of":38}],231:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=e("../internals/array-iteration").map,a=e("../internals/species-constructor"),i=n.aTypedArray,s=n.aTypedArrayConstructor;(0,n.exportTypedArrayMethod)("map",function(e,t){return o(i(this),e,1<arguments.length?t:void 0,function(e,t){return new(s(a(e,e.constructor)))(t)})})},{"../internals/array-buffer-view-core":30,"../internals/array-iteration":37,"../internals/species-constructor":139}],232:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=e("../internals/array-reduce").right,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",function(e,t){return o(a(this),e,arguments.length,1<arguments.length?t:void 0)})},{"../internals/array-buffer-view-core":30,"../internals/array-reduce":42}],233:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=e("../internals/array-reduce").left,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",function(e,t){return o(a(this),e,arguments.length,1<arguments.length?t:void 0)})},{"../internals/array-buffer-view-core":30,"../internals/array-reduce":42}],234:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=n.aTypedArray,a=n.exportTypedArrayMethod,i=Math.floor;a("reverse",function(){for(var e,t=o(this).length,r=i(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this})},{"../internals/array-buffer-view-core":30}],235:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),s=e("../internals/to-length"),l=e("../internals/to-offset"),p=e("../internals/to-object"),o=e("../internals/fails"),c=n.aTypedArray;(0,n.exportTypedArrayMethod)("set",function(e,t){c(this);var r=l(1<arguments.length?t:void 0,1),n=this.length,o=p(e),a=s(o.length),i=0;if(n<a+r)throw RangeError("Wrong length");for(;i<a;)this[r+i]=o[i++]},o(function(){new Int8Array(1).set({})}))},{"../internals/array-buffer-view-core":30,"../internals/fails":68,"../internals/to-length":152,"../internals/to-object":153,"../internals/to-offset":154}],236:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),s=e("../internals/species-constructor"),o=e("../internals/fails"),l=n.aTypedArray,p=n.aTypedArrayConstructor,a=n.exportTypedArrayMethod,c=[].slice;a("slice",function(e,t){for(var r=c.call(l(this),e,t),n=s(this,this.constructor),o=0,a=r.length,i=new(p(n))(a);o<a;)i[o]=r[o++];return i},o(function(){new Int8Array(1).slice()}))},{"../internals/array-buffer-view-core":30,"../internals/fails":68,"../internals/species-constructor":139}],237:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=e("../internals/array-iteration").some,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",function(e,t){return o(a(this),e,1<arguments.length?t:void 0)})},{"../internals/array-buffer-view-core":30,"../internals/array-iteration":37}],238:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),o=n.aTypedArray,a=n.exportTypedArrayMethod,i=[].sort;a("sort",function(e){return i.call(o(this),e)})},{"../internals/array-buffer-view-core":30}],239:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),a=e("../internals/to-length"),i=e("../internals/to-absolute-index"),s=e("../internals/species-constructor"),l=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",function(e,t){var r=l(this),n=r.length,o=i(e,n);return new(s(r,r.constructor))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,a((void 0===t?n:i(t,n))-o))})},{"../internals/array-buffer-view-core":30,"../internals/species-constructor":139,"../internals/to-absolute-index":148,"../internals/to-length":152}],240:[function(e,t,r){var n=e("../internals/global"),o=e("../internals/array-buffer-view-core"),a=e("../internals/fails"),i=n.Int8Array,s=o.aTypedArray,l=o.exportTypedArrayMethod,p=[].toLocaleString,c=[].slice,u=!!i&&a(function(){p.call(new i(1))});l("toLocaleString",function(){return p.apply(u?c.call(s(this)):s(this),arguments)},a(function(){return[1,2].toLocaleString()!=new i([1,2]).toLocaleString()})||!a(function(){i.prototype.toLocaleString.call([1,2])}))},{"../internals/array-buffer-view-core":30,"../internals/fails":68,"../internals/global":77}],241:[function(e,t,r){var n=e("../internals/array-buffer-view-core").exportTypedArrayMethod,o=e("../internals/fails"),a=e("../internals/global").Uint8Array,i=a&&a.prototype||{},s=[].toString,l=[].join;o(function(){s.call({})})&&(s=function(){return l.call(this)}),n("toString",s,i.toString!=s)},{"../internals/array-buffer-view-core":30,"../internals/fails":68,"../internals/global":77}],242:[function(e,t,r){e("../internals/typed-array-constructor")("Uint16",function(n){return function(e,t,r){return n(this,e,t,r)}})},{"../internals/typed-array-constructor":158}],243:[function(e,t,r){e("../internals/typed-array-constructor")("Uint32",function(n){return function(e,t,r){return n(this,e,t,r)}})},{"../internals/typed-array-constructor":158}],244:[function(e,t,r){e("../internals/typed-array-constructor")("Uint8",function(n){return function(e,t,r){return n(this,e,t,r)}})},{"../internals/typed-array-constructor":158}],245:[function(e,t,r){e("../internals/typed-array-constructor")("Uint8",function(n){return function(e,t,r){return n(this,e,t,r)}},!0)},{"../internals/typed-array-constructor":158}],246:[function(e,t,r){var n=e("../internals/global"),o=e("../internals/dom-iterables"),a=e("../internals/array-for-each"),i=e("../internals/create-non-enumerable-property");for(var s in o){var l=n[s],p=l&&l.prototype;if(p&&p.forEach!==a)try{i(p,"forEach",a)}catch(e){p.forEach=a}}},{"../internals/array-for-each":34,"../internals/create-non-enumerable-property":55,"../internals/dom-iterables":62,"../internals/global":77}],247:[function(e,t,r){var n=e("../internals/global"),o=e("../internals/dom-iterables"),a=e("../modules/es.array.iterator"),i=e("../internals/create-non-enumerable-property"),s=e("../internals/well-known-symbol"),l=s("iterator"),p=s("toStringTag"),c=a.values;for(var u in o){var d=n[u],h=d&&d.prototype;if(h){if(h[l]!==c)try{i(h,l,c)}catch(e){h[l]=c}if(h[p]||i(h,p,u),o[u])for(var f in a)if(h[f]!==a[f])try{i(h,f,a[f])}catch(e){h[f]=a[f]}}}},{"../internals/create-non-enumerable-property":55,"../internals/dom-iterables":62,"../internals/global":77,"../internals/well-known-symbol":164,"../modules/es.array.iterator":176}],248:[function(e,t,r){e("../modules/es.array.iterator");function o(t){try{return decodeURIComponent(t)}catch(e){return t}}function i(e){var t,r=e.replace(D," "),n=4;try{return decodeURIComponent(r)}catch(e){for(;n;)r=r.replace((t=n--,F[t-1]||(F[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))),o);return r}}function n(e){return B[e]}function a(e){return encodeURIComponent(e).replace(U,n)}function d(e,t){if(t)for(var r,n,o=t.split("&"),a=0;a<o.length;)(r=o[a++]).length&&(n=r.split("="),e.push({key:i(n.shift()),value:i(n.join("="))}))}function h(e){this.entries.length=0,d(this.entries,e)}function p(e,t){if(e<t)throw TypeError("Not enough arguments")}var s=e("../internals/export"),l=e("../internals/get-built-in"),c=e("../internals/native-url"),u=e("../internals/redefine"),f=e("../internals/redefine-all"),m=e("../internals/set-to-string-tag"),y=e("../internals/create-iterator-constructor"),g=e("../internals/internal-state"),v=e("../internals/an-instance"),b=e("../internals/has"),x=e("../internals/function-bind-context"),w=e("../internals/classof"),_=e("../internals/an-object"),S=e("../internals/is-object"),j=e("../internals/object-create"),E=e("../internals/create-property-descriptor"),T=e("../internals/get-iterator"),M=e("../internals/get-iterator-method"),C=e("../internals/well-known-symbol"),O=l("fetch"),N=l("Headers"),k=C("iterator"),L="URLSearchParams",A=L+"Iterator",I=g.set,R=g.getterFor(L),P=g.getterFor(A),D=/\+/g,F=Array(4),U=/[!'()~]|%20/g,B={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},G=y(function(e,t){I(this,{type:A,iterator:T(R(e).entries),kind:t})},"Iterator",function(){var e=P(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),V=function(e){v(this,V,L);var t,r,n,o,a,i,s,l,p,c=0<arguments.length?e:void 0,u=[];if(I(this,{type:L,entries:u,updateURL:function(){},updateSearchParams:h}),void 0!==c)if(S(c))if("function"==typeof(t=M(c)))for(n=(r=t.call(c)).next;!(o=n.call(r)).done;){if((s=(i=(a=T(_(o.value))).next).call(a)).done||(l=i.call(a)).done||!i.call(a).done)throw TypeError("Expected sequence with length 2");u.push({key:s.value+"",value:l.value+""})}else for(p in c)b(c,p)&&u.push({key:p,value:c[p]+""});else d(u,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},z=V.prototype;f(z,{append:function(e,t){p(arguments.length,2);var r=R(this);r.entries.push({key:e+"",value:t+""}),r.updateURL()},delete:function(e){p(arguments.length,1);for(var t=R(this),r=t.entries,n=e+"",o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;t.updateURL()},get:function(e){p(arguments.length,1);for(var t=R(this).entries,r=e+"",n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){p(arguments.length,1);for(var t=R(this).entries,r=e+"",n=[],o=0;o<t.length;o++)t[o].key===r&&n.push(t[o].value);return n},has:function(e){p(arguments.length,1);for(var t=R(this).entries,r=e+"",n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){p(arguments.length,1);for(var r,n=R(this),o=n.entries,a=!1,i=e+"",s=t+"",l=0;l<o.length;l++)(r=o[l]).key===i&&(a?o.splice(l--,1):(a=!0,r.value=s));a||o.push({key:i,value:s}),n.updateURL()},sort:function(){var e,t,r,n=R(this),o=n.entries,a=o.slice();for(r=o.length=0;r<a.length;r++){for(e=a[r],t=0;t<r;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===r&&o.push(e)}n.updateURL()},forEach:function(e,t){for(var r,n=R(this).entries,o=x(e,1<arguments.length?t:void 0,3),a=0;a<n.length;)o((r=n[a++]).value,r.key,this)},keys:function(){return new G(this,"keys")},values:function(){return new G(this,"values")},entries:function(){return new G(this,"entries")}},{enumerable:!0}),u(z,k,z.entries),u(z,"toString",function(){for(var e,t=R(this).entries,r=[],n=0;n<t.length;)e=t[n++],r.push(a(e.key)+"="+a(e.value));return r.join("&")},{enumerable:!0}),m(V,L),s({global:!0,forced:!c},{URLSearchParams:V}),c||"function"!=typeof O||"function"!=typeof N||s({global:!0,enumerable:!0,forced:!0},{fetch:function(e,t){var r,n,o,a=[e];return 1<arguments.length&&(S(r=t)&&(n=r.body,w(n)===L&&((o=r.headers?new N(r.headers):new N).has("content-type")||o.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),r=j(r,{body:E(0,String(n)),headers:E(0,o)}))),a.push(r)),O.apply(this,a)}}),t.exports={URLSearchParams:V,getState:R}},{"../internals/an-instance":27,"../internals/an-object":28,"../internals/classof":47,"../internals/create-iterator-constructor":54,"../internals/create-property-descriptor":56,"../internals/export":67,"../internals/function-bind-context":72,"../internals/get-built-in":74,"../internals/get-iterator":76,"../internals/get-iterator-method":75,"../internals/has":78,"../internals/internal-state":88,"../internals/is-object":92,"../internals/native-url":102,"../internals/object-create":108,"../internals/redefine":126,"../internals/redefine-all":125,"../internals/set-to-string-tag":135,"../internals/well-known-symbol":164,"../modules/es.array.iterator":176}],249:[function(e,t,r){e("../modules/es.string.iterator");function x(e,t){var r,n,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return P;if(!(r=K(t.slice(1,-1))))return P;e.host=r}else if(ne(e)){if(t=y(t),W.test(t))return P;if(null===(r=Z(t)))return P;e.host=r}else{if(q.test(t))return P;for(r="",n=M(t),o=0;o<n.length;o++)r+=te(n[o],Q);e.host=r}}function c(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)t.unshift(e%256),e=A(e/256);return t.join(".")}if("object"!=_typeof3(e))return e;for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,a=0;a<8;a++)0!==e[a]?(r<o&&(t=n,r=o),n=null,o=0):(null===n&&(n=a),++o);return r<o&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o=o&&!1,n===r?(t+=r?":":"::",o=!0):(t+=e[r].toString(16),r<7&&(t+=":")));return"["+t+"]"}function w(e){return""!=e.username||""!=e.password}function o(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme}function _(e,t){var r;return 2==e.length&&F.test(e.charAt(0))&&(":"==(r=e.charAt(1))||!t&&"|"==r)}function S(e){var t;return 1<e.length&&_(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)}function j(e){var t=e.path,r=t.length;!r||"file"==e.scheme&&1==r&&_(t[0],!0)||t.pop()}function u(e,t,r,n){var o,a,i,s,l,p,c=r||oe,u=0,d="",h=!1,f=!1,m=!1;for(r||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(X,"")),t=t.replace(Y,""),o=M(t);u<=o.length;){switch(a=o[u],c){case oe:if(!a||!F.test(a)){if(r)return R;c=ie;continue}d+=a.toLowerCase(),c=ae;break;case ae:if(a&&(U.test(a)||"+"==a||"-"==a||"."==a))d+=a.toLowerCase();else{if(":"!=a){if(r)return R;d="",c=ie,u=0;continue}if(r&&(ne(e)!=T(re,d)||"file"==d&&(w(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,r)return void(ne(e)&&re[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?c=ge:ne(e)&&n&&n.scheme==e.scheme?c=se:ne(e)?c=ue:"/"==o[u+1]?(c=le,u++):(e.cannotBeABaseURL=!0,e.path.push(""),c=_e)}break;case ie:if(!n||n.cannotBeABaseURL&&"#"!=a)return R;if(n.cannotBeABaseURL&&"#"==a){e.scheme=n.scheme,e.path=n.path.slice(),e.query=n.query,e.fragment="",e.cannotBeABaseURL=!0,c=je;break}c="file"==n.scheme?ge:pe;continue;case se:if("/"!=a||"/"!=o[u+1]){c=pe;continue}c=de,u++;break;case le:if("/"==a){c=he;break}c=we;continue;case pe:if(e.scheme=n.scheme,a==E)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query;else if("/"==a||"\\"==a&&ne(e))c=ce;else if("?"==a)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query="",c=Se;else{if("#"!=a){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.path.pop(),c=we;continue}e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query,e.fragment="",c=je}break;case ce:if(!ne(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,c=we;continue}c=he}else c=de;break;case ue:if(c=de,"/"!=a||"/"!=d.charAt(u+1))continue;u++;break;case de:if("/"==a||"\\"==a)break;c=he;continue;case he:if("@"==a){h&&(d="%40"+d),h=!0,i=M(d);for(var y=0;y<i.length;y++){var g=i[y];if(":"!=g||m){var v=te(g,ee);m?e.password+=v:e.username+=v}else m=!0}d=""}else if(a==E||"/"==a||"?"==a||"#"==a||"\\"==a&&ne(e)){if(h&&""==d)return"Invalid authority";u-=M(d).length+1,d="",c=fe}else d+=a;break;case fe:case me:if(r&&"file"==e.scheme){c=be;continue}if(":"!=a||f){if(a==E||"/"==a||"?"==a||"#"==a||"\\"==a&&ne(e)){if(ne(e)&&""==d)return P;if(r&&""==d&&(w(e)||null!==e.port))return;if(s=x(e,d))return s;if(d="",c=xe,r)return;continue}"["==a?f=!0:"]"==a&&(f=!1),d+=a}else{if(""==d)return P;if(s=x(e,d))return s;if(d="",c=ye,r==me)return}break;case ye:if(!B.test(a)){if(a==E||"/"==a||"?"==a||"#"==a||"\\"==a&&ne(e)||r){if(""!=d){var b=parseInt(d,10);if(65535<b)return D;e.port=ne(e)&&b===re[e.scheme]?null:b,d=""}if(r)return;c=xe;continue}return D}d+=a;break;case ge:if(e.scheme="file","/"==a||"\\"==a)c=ve;else{if(!n||"file"!=n.scheme){c=we;continue}if(a==E)e.host=n.host,e.path=n.path.slice(),e.query=n.query;else if("?"==a)e.host=n.host,e.path=n.path.slice(),e.query="",c=Se;else{if("#"!=a){S(o.slice(u).join(""))||(e.host=n.host,e.path=n.path.slice(),j(e)),c=we;continue}e.host=n.host,e.path=n.path.slice(),e.query=n.query,e.fragment="",c=je}}break;case ve:if("/"==a||"\\"==a){c=be;break}n&&"file"==n.scheme&&!S(o.slice(u).join(""))&&(_(n.path[0],!0)?e.path.push(n.path[0]):e.host=n.host),c=we;continue;case be:if(a==E||"/"==a||"\\"==a||"?"==a||"#"==a){if(!r&&_(d))c=we;else if(""==d){if(e.host="",r)return;c=xe}else{if(s=x(e,d))return s;if("localhost"==e.host&&(e.host=""),r)return;d="",c=xe}continue}d+=a;break;case xe:if(ne(e)){if(c=we,"/"!=a&&"\\"!=a)continue}else if(r||"?"!=a)if(r||"#"!=a){if(a!=E&&(c=we,"/"!=a))continue}else e.fragment="",c=je;else e.query="",c=Se;break;case we:if(a==E||"/"==a||"\\"==a&&ne(e)||!r&&("?"==a||"#"==a)){if(".."===(p=(p=d).toLowerCase())||"%2e."===p||".%2e"===p||"%2e%2e"===p?(j(e),"/"==a||"\\"==a&&ne(e)||e.path.push("")):"."===(l=d)||"%2e"===l.toLowerCase()?"/"==a||"\\"==a&&ne(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&_(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(a==E||"?"==a||"#"==a))for(;1<e.path.length&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",c=Se):"#"==a&&(e.fragment="",c=je)}else d+=te(a,$);break;case _e:"?"==a?(e.query="",c=Se):"#"==a?(e.fragment="",c=je):a!=E&&(e.path[0]+=te(a,Q));break;case Se:r||"#"!=a?a!=E&&("'"==a&&ne(e)?e.query+="%27":e.query+="#"==a?"%23":te(a,Q)):(e.fragment="",c=je);break;case je:a!=E&&(e.fragment+=te(a,J))}u++}}function n(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}}var E,a=e("../internals/export"),d=e("../internals/descriptors"),i=e("../internals/native-url"),s=e("../internals/global"),l=e("../internals/object-define-properties"),p=e("../internals/redefine"),h=e("../internals/an-instance"),T=e("../internals/has"),f=e("../internals/object-assign"),M=e("../internals/array-from"),m=e("../internals/string-multibyte").codeAt,y=e("../internals/string-punycode-to-ascii"),g=e("../internals/set-to-string-tag"),v=e("../modules/web.url-search-params"),b=e("../internals/internal-state"),C=s.URL,O=v.URLSearchParams,N=v.getState,k=b.set,L=b.getterFor("URL"),A=Math.floor,I=Math.pow,R="Invalid scheme",P="Invalid host",D="Invalid port",F=/[A-Za-z]/,U=/[\d+-.A-Za-z]/,B=/\d/,G=/^(0x|0X)/,V=/^[0-7]+$/,z=/^\d+$/,H=/^[\dA-Fa-f]+$/,W=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,q=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,X=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Y=/[\u0009\u000A\u000D]/g,Z=function(e){var t,r,n,o,a,i,s,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),4<(t=l.length))return e;for(r=[],n=0;n<t;n++){if(""==(o=l[n]))return e;if(a=10,1<o.length&&"0"==o.charAt(0)&&(a=G.test(o)?16:8,o=o.slice(8==a?1:2)),""===o)i=0;else{if(!(10==a?z:8==a?V:H).test(o))return e;i=parseInt(o,a)}r.push(i)}for(n=0;n<t;n++)if(i=r[n],n==t-1){if(i>=I(256,5-t))return null}else if(255<i)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*I(256,3-n);return s},K=function(e){function t(){return e.charAt(d)}var r,n,o,a,i,s,l,p=[0,0,0,0,0,0,0,0],c=0,u=null,d=0;if(":"==t()){if(":"!=e.charAt(1))return;d+=2,u=++c}for(;t();){if(8==c)return;if(":"!=t()){for(r=n=0;n<4&&H.test(t());)r=16*r+parseInt(t(),16),d++,n++;if("."==t()){if(0==n)return;if(d-=n,6<c)return;for(o=0;t();){if(a=null,0<o){if(!("."==t()&&o<4))return;d++}if(!B.test(t()))return;for(;B.test(t());){if(i=parseInt(t(),10),null===a)a=i;else{if(0==a)return;a=10*a+i}if(255<a)return;d++}p[c]=256*p[c]+a,2!=++o&&4!=o||c++}if(4!=o)return;break}if(":"==t()){if(d++,!t())return}else if(t())return;p[c++]=r}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(s=c-u,c=7;0!=c&&0<s;)l=p[c],p[c--]=p[u+s-1],p[u+--s]=l;else if(8!=c)return;return p},Q={},J=f({},Q,{" ":1,'"':1,"<":1,">":1,"`":1}),$=f({},J,{"#":1,"?":1,"{":1,"}":1}),ee=f({},$,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),te=function(e,t){var r=m(e,0);return 32<r&&r<127&&!T(t,e)?e:encodeURIComponent(e)},re={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ne=function(e){return T(re,e.scheme)},oe={},ae={},ie={},se={},le={},pe={},ce={},ue={},de={},he={},fe={},me={},ye={},ge={},ve={},be={},xe={},we={},_e={},Se={},je={},Ee=function(e,t){var r,n,o=h(this,Ee,"URL"),a=1<arguments.length?t:void 0,i=String(e),s=k(o,{type:"URL"});if(void 0!==a)if(a instanceof Ee)r=L(a);else if(n=u(r={},String(a)))throw TypeError(n);if(n=u(s,i,null,r))throw TypeError(n);var l=s.searchParams=new O,p=N(l);p.updateSearchParams(s.query),p.updateURL=function(){s.query=String(l)||null},d||(o.href=Me.call(o),o.origin=Ce.call(o),o.protocol=Oe.call(o),o.username=Ne.call(o),o.password=ke.call(o),o.host=Le.call(o),o.hostname=Ae.call(o),o.port=Ie.call(o),o.pathname=Re.call(o),o.search=Pe.call(o),o.searchParams=De.call(o),o.hash=Fe.call(o))},Te=Ee.prototype,Me=function(){var e=L(this),t=e.scheme,r=e.username,n=e.password,o=e.host,a=e.port,i=e.path,s=e.query,l=e.fragment,p=t+":";return null!==o?(p+="//",w(e)&&(p+=r+(n?":"+n:"")+"@"),p+=c(o),null!==a&&(p+=":"+a)):"file"==t&&(p+="//"),p+=e.cannotBeABaseURL?i[0]:i.length?"/"+i.join("/"):"",null!==s&&(p+="?"+s),null!==l&&(p+="#"+l),p},Ce=function(){var e=L(this),t=e.scheme,r=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&ne(e)?t+"://"+c(e.host)+(null!==r?":"+r:""):"null"},Oe=function(){return L(this).scheme+":"},Ne=function(){return L(this).username},ke=function(){return L(this).password},Le=function(){var e=L(this),t=e.host,r=e.port;return null===t?"":null===r?c(t):c(t)+":"+r},Ae=function(){var e=L(this).host;return null===e?"":c(e)},Ie=function(){var e=L(this).port;return null===e?"":String(e)},Re=function(){var e=L(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Pe=function(){var e=L(this).query;return e?"?"+e:""},De=function(){return L(this).searchParams},Fe=function(){var e=L(this).fragment;return e?"#"+e:""};if(d&&l(Te,{href:n(Me,function(e){var t=L(this),r=String(e),n=u(t,r);if(n)throw TypeError(n);N(t.searchParams).updateSearchParams(t.query)}),origin:n(Ce),protocol:n(Oe,function(e){var t=L(this);u(t,String(e)+":",oe)}),username:n(Ne,function(e){var t=L(this),r=M(String(e));if(!o(t)){t.username="";for(var n=0;n<r.length;n++)t.username+=te(r[n],ee)}}),password:n(ke,function(e){var t=L(this),r=M(String(e));if(!o(t)){t.password="";for(var n=0;n<r.length;n++)t.password+=te(r[n],ee)}}),host:n(Le,function(e){var t=L(this);t.cannotBeABaseURL||u(t,String(e),fe)}),hostname:n(Ae,function(e){var t=L(this);t.cannotBeABaseURL||u(t,String(e),me)}),port:n(Ie,function(e){var t=L(this);o(t)||(""==(e=String(e))?t.port=null:u(t,e,ye))}),pathname:n(Re,function(e){var t=L(this);t.cannotBeABaseURL||(t.path=[],u(t,e+"",xe))}),search:n(Pe,function(e){var t=L(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",u(t,e,Se)),N(t.searchParams).updateSearchParams(t.query)}),searchParams:n(De),hash:n(Fe,function(e){var t=L(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",u(t,e,je)):t.fragment=null})}),p(Te,"toJSON",function(){return Me.call(this)},{enumerable:!0}),p(Te,"toString",function(){return Me.call(this)},{enumerable:!0}),C){var Ue=C.createObjectURL,Be=C.revokeObjectURL;Ue&&p(Ee,"createObjectURL",function(e){return Ue.apply(C,arguments)}),Be&&p(Ee,"revokeObjectURL",function(e){return Be.apply(C,arguments)})}g(Ee,"URL"),a({global:!0,forced:!i,sham:!d},{URL:Ee})},{"../internals/an-instance":27,"../internals/array-from":35,"../internals/descriptors":60,"../internals/export":67,"../internals/global":77,"../internals/has":78,"../internals/internal-state":88,"../internals/native-url":102,"../internals/object-assign":107,"../internals/object-define-properties":109,"../internals/redefine":126,"../internals/set-to-string-tag":135,"../internals/string-multibyte":141,"../internals/string-punycode-to-ascii":142,"../modules/es.string.iterator":204,"../modules/web.url-search-params":248}],250:[function(e,t,r){t.exports=e("./").polyfill()},{"./":251}],251:[function(z,r,n){(function(G,V){var e,t;e=this,t=function(){function l(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=0,t=void 0,o=void 0,i=function(e,t){d[n]=e,d[n+1]=t,2===(n+=2)&&(o?o(h):v())};var e="undefined"!=typeof window?window:void 0,a=e||{},s=a.MutationObserver||a.WebKitMutationObserver,p="undefined"==typeof self&&void 0!==G&&"[object process]"==={}.toString.call(G),c="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function u(){var e=setTimeout;return function(){return e(h,1)}}var d=new Array(1e3);function h(){for(var e=0;e<n;e+=2){(0,d[e])(d[e+1]),d[e]=void 0,d[e+1]=void 0}n=0}var f,m,y,g,v=void 0;function b(e,t){var r=this,n=new this.constructor(_);void 0===n[w]&&P(n);var o=r._state;if(o){var a=arguments[o-1];i(function(){return I(o,n,a,r._result)})}else L(r,n,e,t);return n}function x(e){if(e&&"object"===_typeof3(e)&&e.constructor===this)return e;var t=new this(_);return C(t,e),t}v=p?function(){return G.nextTick(h)}:s?(m=0,y=new s(h),g=document.createTextNode(""),y.observe(g,{characterData:!0}),function(){g.data=m=++m%2}):c?((f=new MessageChannel).port1.onmessage=h,function(){return f.port2.postMessage(0)}):void 0===e&&"function"==typeof z?function(){try{var e=Function("return this")().require("vertx");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(h)}:u()}catch(e){return u()}}():u();var w=Math.random().toString(36).substring(2);function _(){}var S=void 0,j=1,E=2;function T(e,n,o){i(function(t){var r=!1,e=function(e,t,r,n){try{e.call(t,r,n)}catch(e){return e}}(o,n,function(e){r||(r=!0,n!==e?C(t,e):N(t,e))},function(e){r||(r=!0,k(t,e))},t._label);!r&&e&&(r=!0,k(t,e))},e)}function M(e,t,r){var n,o;t.constructor===e.constructor&&r===b&&t.constructor.resolve===x?(n=e,(o=t)._state===j?N(n,o._result):o._state===E?k(n,o._result):L(o,void 0,function(e){return C(n,e)},function(e){return k(n,e)})):void 0===r?N(e,t):l(r)?T(e,t,r):N(e,t)}function C(t,e){if(t===e)k(t,new TypeError("You cannot resolve a promise with itself"));else if(o=_typeof3(n=e),null===n||"object"!==o&&"function"!==o)N(t,e);else{var r=void 0;try{r=e.then}catch(e){return void k(t,e)}M(t,e,r)}var n,o}function O(e){e._onerror&&e._onerror(e._result),A(e)}function N(e,t){e._state===S&&(e._result=t,e._state=j,0!==e._subscribers.length&&i(A,e))}function k(e,t){e._state===S&&(e._state=E,e._result=t,i(O,e))}function L(e,t,r,n){var o=e._subscribers,a=o.length;e._onerror=null,o[a]=t,o[a+j]=r,o[a+E]=n,0===a&&e._state&&i(A,e)}function A(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var n=void 0,o=void 0,a=e._result,i=0;i<t.length;i+=3)n=t[i],o=t[i+r],n?I(r,n,o,a):o(a);e._subscribers.length=0}}function I(e,t,r,n){var o=l(r),a=void 0,i=void 0,s=!0;if(o){try{a=r(n)}catch(e){s=!1,i=e}if(t===a)return void k(t,new TypeError("A promises callback cannot return that same promise."))}else a=n;t._state!==S||(o&&s?C(t,a):!1===s?k(t,i):e===j?N(t,a):e===E&&k(t,a))}var R=0;function P(e){e[w]=R++,e._state=void 0,e._result=void 0,e._subscribers=[]}var D=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,n=r.resolve;if(n===x){var o=void 0,a=void 0,i=!1;try{o=t.then}catch(e){i=!0,a=e}if(o===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(r===U){var s=new r(_);i?k(s,a):M(s,t,o),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(n(t),e)},F.prototype._settledAt=function(e,t,r){var n=this.promise;n._state===S&&(this._remaining--,e===E?k(n,r):this._result[t]=r),0===this._remaining&&N(n,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;L(e,void 0,function(e){return r._settledAt(j,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(_),this.promise[w]||P(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?N(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&N(this.promise,this._result))):k(this.promise,new Error("Array Methods must be provided an Array"))}var U=(B.prototype.catch=function(e){return this.then(null,e)},B.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},B);function B(e){this[w]=R++,this._result=this._state=void 0,this._subscribers=[],_!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof B?function(t,e){try{e(function(e){C(t,e)},function(e){k(t,e)})}catch(e){k(t,e)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return U.prototype.then=b,U.all=function(e){return new D(this,e).promise},U.race=function(o){var a=this;return r(o)?new a(function(e,t){for(var r=o.length,n=0;n<r;n++)a.resolve(o[n]).then(e,t)}):new a(function(e,t){return t(new TypeError("You must pass an array to race."))})},U.resolve=x,U.reject=function(e){var t=new this(_);return k(t,e),t},U._setScheduler=function(e){o=e},U._setAsap=function(e){i=e},U._asap=i,U.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=U},U.Promise=U},"object"===_typeof3(n)&&void 0!==r?r.exports=t():"function"==typeof a&&a.amd?a(t):e.ES6Promise=t()}).call(this,z("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:264}],252:[function(e,n,o){!function(e,t){if("function"==typeof a&&a.amd)a(["exports","module"],t);else if(void 0!==o&&void 0!==n)t(o,n);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){var r=5e3,n="callback";function u(t){try{delete window[t]}catch(e){window[t]=void 0}}function d(e){var t=document.getElementById(e);t&&document.getElementsByTagName("head")[0].removeChild(t)}t.exports=function(a){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=a,l=i.timeout||r,p=i.jsonpCallback||n,c=void 0;return new Promise(function(t,e){var r=i.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),n=p+"_"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),c&&clearTimeout(c),d(n),u(r)},s+=-1===s.indexOf("?")?"?":"&";var o=document.createElement("script");o.setAttribute("src",""+s+p+"="+r),i.charset&&o.setAttribute("charset",i.charset),o.id=n,document.getElementsByTagName("head")[0].appendChild(o),c=setTimeout(function(){e(new Error("JSONP request to "+a+" timed out")),u(r),d(n),window[r]=function(){u(r)}},l),o.onerror=function(){e(new Error("JSONP request to "+a+" failed")),u(r),d(n),c&&clearTimeout(c)}})}})},{}],253:[function(e,t,r){var n=n||function(s){if(!(void 0===s||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},p=e.createElementNS("http://www.w3.org/1999/xhtml","a"),c="download"in p,u=/constructor/i.test(s.HTMLElement)||s.safari,d=/CriOS\/[\d]+/.test(navigator.userAgent),h=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},f=function(e){setTimeout(function(){"string"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},n=function(e,r,t){t||(e=m(e));function n(){!function(e,t,r){for(var n=(t=[].concat(t)).length;n--;){var o=e["on"+t[n]];if("function"==typeof o)try{o.call(e,r||e)}catch(e){h(e)}}}(a,"writestart progress write writeend".split(" "))}var o,a=this,i="application/octet-stream"===e.type;if(a.readyState=a.INIT,c)return o=l().createObjectURL(e),void setTimeout(function(){var e,t;p.href=o,p.download=r,e=p,t=new MouseEvent("click"),e.dispatchEvent(t),n(),f(o),a.readyState=a.DONE});!function(){if((d||i&&u)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=d?t.result:t.result.replace(/^data:[^;]*;/,"data:attachment/file;");s.open(e,"_blank")||(s.location.href=e),e=void 0,a.readyState=a.DONE,n()},t.readAsDataURL(e),a.readyState=a.INIT}(o=o||l().createObjectURL(e),i)?s.location.href=o:s.open(o,"_blank")||(s.location.href=o);a.readyState=a.DONE,n(),f(o)}()},t=n.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||"download",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new n(e,t||e.name||"download",r)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);void 0!==t&&t.exports?t.exports.saveAs=n:null!=a&&null!==a.amd&&a("FileSaver.js",function(){return n})},{}],254:[function(e,t,r){var n=Object.defineProperty;n(r,"__esModule",{value:!0}),function(e,t){for(var r in t)n(e,r,{get:t[r],enumerable:!0})}(r,{GIFEncoder:function(){return f},applyPalette:function(){return s},default:function(){return y},nearestColor:function(){return h},nearestColorIndex:function(){return p},nearestColorIndexWithDistance:function(){return d},prequantize:function(){return i},quantize:function(){return a},snapColorsToPalette:function(){return l}});var o={signature:"GIF",version:"89a",trailer:59,extensionIntroducer:33,applicationExtensionLabel:255,graphicControlExtensionLabel:249,imageSeparator:44,signatureSize:3,versionSize:3,globalColorTableFlagMask:128,colorResolutionMask:112,sortFlagMask:8,globalColorTableSizeMask:7,applicationIdentifierSize:8,applicationAuthCodeSize:3,disposalMethodMask:28,userInputFlagMask:2,transparentColorFlagMask:1,localColorTableFlagMask:128,interlaceFlagMask:64,idSortFlagMask:32,localColorTableSizeMask:7};function k(e){var i=0,s=new Uint8Array(0<arguments.length&&void 0!==e?e:256);return{get buffer(){return s.buffer},reset:function(){i=0},bytesView:function(){return s.subarray(0,i)},bytes:function(){return s.slice(0,i)},writeByte:function(e){l(i+1),s[i]=e,i++},writeBytes:function(e,t,r){var n=1<arguments.length&&void 0!==t?t:0,o=2<arguments.length&&void 0!==r?r:e.length;l(i+o);for(var a=0;a<o;a++)s[i++]=e[a+n]},writeBytesView:function(e,t,r){var n=1<arguments.length&&void 0!==t?t:0,o=2<arguments.length&&void 0!==r?r:e.byteLength;l(i+o),s.set(e.subarray(n,n+o),i),i+=o}};function l(e){var t=s.length;if(!(e<=t)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var r=s;s=new Uint8Array(e),0<i&&s.set(r.subarray(0,i),0)}}}var L=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];var A=function(e,t,r,n){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:k(512),a=5<arguments.length&&void 0!==arguments[5]?arguments[5]:new Uint8Array(256),i=6<arguments.length&&void 0!==arguments[6]?arguments[6]:new Int32Array(5003),s=7<arguments.length&&void 0!==arguments[7]?arguments[7]:new Int32Array(5003),l=i.length,p=Math.max(2,n);a.fill(0),s.fill(0),i.fill(-1);for(var c=0,u=0,d=p+1,h=d,f=!1,m=h,y=(1<<m)-1,g=1<<d-1,v=1+g,b=2+g,x=0,w=r[0],_=0,S=l;S<65536;S*=2)++_;_=8-_,o.writeByte(p),N(g);for(var j=r.length,E=1;E<j;E++)e:{var T=r[E],M=(T<<12)+w,C=T<<_^w;if(i[C]!==M){for(var O=0===C?1:l-C;0<=i[C];)if((C-=O)<0&&(C+=l),i[C]===M){w=s[C];break e}N(w),w=T,b<4096?(s[C]=b++,i[C]=M):(i.fill(-1),b=2+g,f=!0,N(g))}else w=s[C]}return N(w),N(v),o.writeByte(0),o.bytesView();function N(e){for(c&=L[u],0<u?c|=e<<u:c=e,u+=m;8<=u;)a[x++]=255&c,254<=x&&(o.writeByte(x),o.writeBytesView(a,0,x),x=0),c>>=8,u-=8;if((y<b||f)&&(f?(y=(1<<(m=h))-1,f=!1):y=12===++m?1<<m:(1<<m)-1),e==v){for(;0<u;)a[x++]=255&c,254<=x&&(o.writeByte(x),o.writeBytesView(a,0,x),x=0),c>>=8,u-=8;0<x&&(o.writeByte(x),o.writeBytesView(a,0,x),x=0)}}};function B(e,t,r){return e<<8&63488|t<<2&992|r>>3}function G(e,t,r,n){return e>>4|240&t|(240&r)<<4|(240&n)<<8}function V(e,t,r){return e>>4<<8|240&t|r>>4}function z(e,t,r){return e<t?t:r<e?r:e}function H(e){return e*e}function W(e,t,r){for(var n=0,o=1e100,a=e[t],i=a.cnt,s=a.ac,l=a.rc,p=a.gc,c=a.bc,u=a.fw;0!=u;u=e[u].fw){var d=e[u],h=d.cnt,f=i*h/(i+h);if(!(o<=f)){var m=0;r&&o<=(m+=f*H(d.ac-s))||o<=(m+=f*H(d.rc-l))||o<=(m+=f*H(d.gc-p))||o<=(m+=f*H(d.bc-c))||(o=m,n=u)}}a.err=o,a.nn=n}function q(){return{ac:0,rc:0,gc:0,bc:0,cnt:0,nn:0,fw:0,bk:0,tm:0,mtm:0,err:0}}function a(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},n=r.format,o=void 0===n?"rgb565":n,a=r.clearAlpha,i=void 0===a||a,s=r.clearAlphaColor,l=void 0===s?0:s,p=r.clearAlphaThreshold,c=void 0===p?0:p,u=r.oneBitAlpha,d=void 0!==u&&u;if(!e||!e.buffer)throw new Error("quantize() expected RGBA Uint8Array data");if(!(e instanceof Uint8Array||e instanceof Uint8ClampedArray))throw new Error("quantize() expected RGBA Uint8Array data");for(var h=new Uint32Array(e.buffer),f=!1!==r.useSqrt,m="rgba4444"===o,y=function(e,t){var r=new Array("rgb444"===t?4096:65536),n=e.length;if("rgba4444"===t)for(var o=0;o<n;++o){var a=e[o],i=a>>24&255,s=a>>16&255,l=a>>8&255,p=255&a,c=G(p,l,s,i),u=c in r?r[c]:r[c]=q();u.rc+=p,u.gc+=l,u.bc+=s,u.ac+=i,u.cnt++}else if("rgb444"===t)for(var d=0;d<n;++d){var h=e[d],f=h>>16&255,m=h>>8&255,y=255&h,g=V(y,m,f),v=g in r?r[g]:r[g]=q();v.rc+=y,v.gc+=m,v.bc+=f,v.cnt++}else for(var b=0;b<n;++b){var x=e[b],w=x>>16&255,_=x>>8&255,S=255&x,j=B(S,_,w),E=j in r?r[j]:r[j]=q();E.rc+=S,E.gc+=_,E.bc+=w,E.cnt++}return r}(h,o),g=y.length,v=g-1,b=new Uint32Array(g+1),x=0,w=0;w<g;++w){var _=y[w];if(null!=_){var S=1/_.cnt;m&&(_.ac*=S),_.rc*=S,_.gc*=S,_.bc*=S,y[x++]=_}}H(t)/x<.022&&(f=!1);var j,E,T;for(w=0;w<x-1;++w)y[w].fw=w+1,y[w+1].bk=w,f&&(y[w].cnt=Math.sqrt(y[w].cnt));for(f&&(y[w].cnt=Math.sqrt(y[w].cnt)),w=0;w<x;++w){W(y,w,!1);var M=y[w].err;for(E=++b[0];1<E&&!(y[j=b[T=E>>1]].err<=M);E=T)b[E]=j;b[E]=w}var C=x-t;for(w=0;w<C;){for(var O;;){var N=b[1];if((O=y[N]).tm>=O.mtm&&y[O.nn].mtm<=O.tm)break;O.mtm==v?N=b[1]=b[b[0]--]:(W(y,N,!1),O.tm=w);M=y[N].err;for(E=1;(T=E+E)<=b[0]&&(T<b[0]&&y[b[T]].err>y[b[T+1]].err&&T++,!(M<=y[j=b[T]].err));E=T)b[E]=j;b[E]=N}var k=y[O.nn],L=O.cnt,A=k.cnt;S=1/(L+A);m&&(O.ac=S*(L*O.ac+A*k.ac)),O.rc=S*(L*O.rc+A*k.rc),O.gc=S*(L*O.gc+A*k.gc),O.bc=S*(L*O.bc+A*k.bc),O.cnt+=k.cnt,O.mtm=++w,y[k.bk].fw=k.fw,y[k.fw].bk=k.bk,k.mtm=v}var I=[];for(w=0;;0){var R=z(Math.round(y[w].rc),0,255),P=z(Math.round(y[w].gc),0,255),D=z(Math.round(y[w].bc),0,255),F=255;if(m){if(F=z(Math.round(y[w].ac),0,255),d)F=F<=("number"==typeof d?d:127)?0:255;i&&F<=c&&(R=P=D=l,F=0)}var U=m?[R,P,D,F]:[R,P,D];if(X(I,U)||I.push(U),0==(w=y[w].fw))break}return I}function X(e,t){for(var r=0;r<e.length;r++){var n=e[r],o=n[0]===t[0]&&n[1]===t[1]&&n[2]===t[2],a=!(4<=n.length&&4<=t.length)||n[3]===t[3];if(o&&a)return!0}return!1}function u(e,t){var r,n=0;for(r=0;r<e.length;r++){var o=e[r]-t[r];n+=o*o}return n}function m(e,t){return 1<t?Math.round(e/t)*t:e}function i(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=t.roundRGB,n=void 0===r?5:r,o=t.roundAlpha,a=void 0===o?10:o,i=t.oneBitAlpha,s=void 0===i?null:i,l=new Uint32Array(e.buffer),p=0;p<l.length;p++){var c=l[p],u=c>>24&255,d=c>>16&255,h=c>>8&255,f=255&c;if(u=m(u,a),s)u=u<=("number"==typeof s?s:127)?0:255;f=m(f,n),h=m(h,n),d=m(d,n),l[p]=u<<24|d<<16|h<<8|f<<0}}function s(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"rgb565";if(!e||!e.buffer)throw new Error("quantize() expected RGBA Uint8Array data");if(!(e instanceof Uint8Array||e instanceof Uint8ClampedArray))throw new Error("quantize() expected RGBA Uint8Array data");if(256<t.length)throw new Error("applyPalette() only works with 256 colors or less");var n=new Uint32Array(e.buffer),o=n.length,a="rgb444"===r?4096:65536,i=new Uint8Array(o),s=new Array(a);if("rgba4444"===r)for(var l=0;l<o;l++){var p=n[l],c=p>>24&255,u=p>>16&255,d=p>>8&255,h=255&p,f=G(h,d,u,c),m=f in s?s[f]:s[f]=j(h,d,u,c,t);i[l]=m}else for(var y="rgb444"===r?V:B,g=0;g<o;g++){var v=n[g],b=v>>16&255,x=v>>8&255,w=255&v,_=y(w,x,b),S=_ in s?s[_]:s[_]=E(w,x,b,t);i[g]=S}return i}function j(e,t,r,n,o){for(var a=0,i=1e100,s=0;s<o.length;s++){var l=o[s],p=c(l[3]-n);if(!(i<p))if(!(i<(p+=c(l[0]-e))))if(!(i<(p+=c(l[1]-t))))i<(p+=c(l[2]-r))||(i=p,a=s)}return a}function E(e,t,r,n){for(var o=0,a=1e100,i=0;i<n.length;i++){var s=n[i],l=c(s[0]-e);if(!(a<l))if(!(a<(l+=c(s[1]-t))))a<(l+=c(s[2]-r))||(a=l,o=i)}return o}function l(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:5;if(e.length&&t.length)for(var n=e.map(function(e){return e.slice(0,3)}),o=r*r,a=e[0].length,i=0;i<t.length;i++){var s=t[i],l=d(n,(s=s.length<a?[s[0],s[1],s[2],255]:s.length>a?s.slice(0,3):s.slice()).slice(0,3),u),p=l[0],c=l[1];0<c&&c<=o&&(e[p]=s)}}function c(e){return e*e}function p(e,t){for(var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:u,n=1/0,o=-1,a=0;a<e.length;a++){var i=r(t,e[a]);i<n&&(n=i,o=a)}return o}function d(e,t){for(var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:u,n=1/0,o=-1,a=0;a<e.length;a++){var i=r(t,e[a]);i<n&&(n=i,o=a)}return[o,n]}function h(e,t){return e[p(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:u)]}function f(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.initialCapacity,r=void 0===t?4096:t,n=e.auto,j=void 0===n||n,E=k(r),T=new Uint8Array(256),M=new Int32Array(5003),C=new Int32Array(5003),O=!1;return{reset:function(){E.reset(),O=!1},finish:function(){E.writeByte(o.trailer)},bytes:function(){return E.bytes()},bytesView:function(){return E.bytesView()},get buffer(){return E.buffer},get stream(){return E},writeHeader:N,writeFrame:function(e,t,r,n){var o,a,i=3<arguments.length&&void 0!==n?n:{},s=i.transparent,l=void 0!==s&&s,p=i.transparentIndex,c=void 0===p?0:p,u=i.delay,d=void 0===u?0:u,h=i.palette,f=void 0===h?null:h,m=i.repeat,y=void 0===m?0:m,g=i.colorDepth,v=void 0===g?8:g,b=i.dispose,x=void 0===b?-1:b,w=!1;if(j?O||(w=!0,N(),O=!0):w=Boolean(i.first),t=Math.max(0,Math.floor(t)),r=Math.max(0,Math.floor(r)),w){if(!f)throw new Error("First frame must include a { palette } option");!function(e,t,r,n){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:8,a=D(n.length)-1,i=128|o-1<<4|a;R(e,t),R(e,r),e.writeBytes([i,0,0])}(E,t,r,f,v),I(E,f),0<=y&&(a=y,(o=E).writeByte(33),o.writeByte(255),o.writeByte(11),P(o,"NETSCAPE2.0"),o.writeByte(3),o.writeByte(1),R(o,a),o.writeByte(0))}var _=Math.round(d/10);!function(e,t,r,n,o){e.writeByte(33),e.writeByte(249),e.writeByte(4),o<0&&(o=0,n=!1);var a,i;i=n?(a=1,2):a=0;0<=t&&(i=7&t);i<<=2;e.writeByte(0|i|a),R(e,r),e.writeByte(o||0),e.writeByte(0)}(E,x,_,l,c);var S=Boolean(f)&&!w;!function(e,t,r,n){if(e.writeByte(44),R(e,0),R(e,0),R(e,t),R(e,r),n){var o=D(n.length)-1;e.writeByte(128|o)}else e.writeByte(0)}(E,t,r,S?f:null),S&&I(E,f),function(e,t,r,n){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:8,a=5<arguments.length?arguments[5]:void 0,i=6<arguments.length?arguments[6]:void 0,s=7<arguments.length?arguments[7]:void 0;A(r,n,t,o,e,a,i,s)}(E,e,t,r,v,T,M,C)}};function N(){P(E,"GIF89a")}}function I(e,t){for(var r=1<<D(t.length),n=0;n<r;n++){var o=[0,0,0];n<t.length&&(o=t[n]),e.writeByte(o[0]),e.writeByte(o[1]),e.writeByte(o[2])}}function R(e,t){e.writeByte(255&t),e.writeByte(t>>8&255)}function P(e,t){for(var r=0;r<t.length;r++)e.writeByte(t.charCodeAt(r))}function D(e){return Math.max(Math.ceil(Math.log2(e)),1)}var y=f},{}],255:[function(e,t,r){function n(e){return e&&"object"===_typeof3(e)&&"default"in e?e.default:e}var o=n(e("@babel/runtime/helpers/classCallCheck")),a=n(e("@babel/runtime/helpers/createClass")),i=[],s=i.forEach,l=i.slice;var p,c=function(e,t,r,n){var o;if(r){var a=new Date;a.setTime(a.getTime()+60*r*1e3),o="; expires="+a.toGMTString()}else o="";n=n?"domain="+n+";":"",document.cookie=e+"="+t+o+";"+n+"path=/"},u=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},d={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var r=u(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&c(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},h={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window)for(var r=window.location.search.substring(1).split("&"),n=0;n<r.length;n++){var o=r[n].indexOf("=");if(0<o)r[n].substring(0,o)===e.lookupQuerystring&&(t=r[n].substring(o+1))}return t}};try{p="undefined"!==window&&null!==window.localStorage;var f="i18next.translate.boo";window.localStorage.setItem(f,"foo"),window.localStorage.removeItem(f)}catch(e){p=!1}var m={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&p){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&p&&window.localStorage.setItem(t.lookupLocalStorage,e)}},y={name:"navigator",lookup:function(){var e=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},g={name:"htmlTag",lookup:function(e){var t,r=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return r&&"function"==typeof r.getAttribute&&(t=r.getAttribute("lang")),t}},v={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace("/","")}else t=r[0].replace("/","")}return t}},b={name:"subdomain",lookup:function(e){var t;if("undefined"!=typeof window){var r=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);r instanceof Array&&(t="number"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):r[0].replace("http://","").replace("https://","").replace(".",""))}return t}};var x=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};o(this,r),this.type="languageDetector",this.detectors={},this.init(e,t)}return a(r,[{key:"init",value:function(e,t,r){var n=1<arguments.length&&void 0!==t?t:{},o=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(n,this.options||{},{order:["querystring","cookie","localStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(d),this.addDetector(h),this.addDetector(m),this.addDetector(y),this.addDetector(g),this.addDetector(v),this.addDetector(b)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var r=this;e=e||this.options.order;var n,o=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&"string"==typeof t&&(t=[t]),t&&(o=o.concat(t))}}),o.forEach(function(e){if(!n){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(n=t)}}),!n){var t=this.i18nOptions.fallbackLng;"string"==typeof t&&(t=[t]),t=t||[],n="[object Array]"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return n}},{key:"cacheUserLanguage",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();x.type="languageDetector",t.exports=x},{"@babel/runtime/helpers/classCallCheck":256,"@babel/runtime/helpers/createClass":257}],256:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],257:[function(e,t,r){arguments[4][6][0].apply(r,arguments)},{dup:6}],258:[function(e,t,r){function n(e){return e&&"object"===_typeof3(e)&&"default"in e?e.default:e}var L=n(e("@babel/runtime/helpers/typeof")),A=n(e("@babel/runtime/helpers/objectSpread")),l=n(e("@babel/runtime/helpers/classCallCheck")),o=n(e("@babel/runtime/helpers/createClass")),p=n(e("@babel/runtime/helpers/possibleConstructorReturn")),c=n(e("@babel/runtime/helpers/getPrototypeOf")),u=n(e("@babel/runtime/helpers/assertThisInitialized")),d=n(e("@babel/runtime/helpers/inherits")),a=n(e("@babel/runtime/helpers/toConsumableArray")),h=n(e("@babel/runtime/helpers/slicedToArray")),i={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,a(t))}},f=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return o(r,[{key:"init",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||"i18next:",this.logger=e||i,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(e){return new r(this.logger,A({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return o(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:"emit",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function y(){var r,n,e=new Promise(function(e,t){r=e,n=t});return e.resolve=r,e.reject=n,e}function g(e){return null==e?"":""+e}function v(e,t,r){function n(e){return e&&-1<e.indexOf("###")?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var a="string"!=typeof t?[].concat(t):t.split(".");1<a.length;){if(o())return{};var i=n(a.shift());!e[i]&&r&&(e[i]=new r),e=e[i]}return o()?{}:{obj:e,k:n(a.shift())}}function b(e,t,r){var n=v(e,t,Object);n.obj[n.k]=r}function x(e,t){var r=v(e,t),n=r.obj,o=r.k;if(n)return n[o]}function w(e,t,r){var n=x(e,r);return void 0!==n?n:x(t,r)}function s(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function S(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return _[e]}):e}var j=function(){function n(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return l(this,n),t=p(this,c(n).call(this)),m.call(u(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t}return d(n,m),o(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r,n){var o=3<arguments.length&&void 0!==n?n:{},a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,i=[e,t];return r&&"string"!=typeof r&&(i=i.concat(r)),r&&"string"==typeof r&&(i=i.concat(a?r.split(a):r)),-1<e.indexOf(".")&&(i=e.split(".")),x(this.data,i)}},{key:"addResource",value:function(e,t,r,n,o){var a=4<arguments.length&&void 0!==o?o:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var s=[e,t];r&&(s=s.concat(i?r.split(i):r)),-1<e.indexOf(".")&&(n=t,t=(s=e.split("."))[1]),this.addNamespaces(t),b(this.data,s,n),a.silent||this.emit("added",e,t,r,n)}},{key:"addResources",value:function(e,t,r,n){var o=3<arguments.length&&void 0!==n?n:{silent:!1};for(var a in r)"string"!=typeof r[a]&&"[object Array]"!==Object.prototype.toString.apply(r[a])||this.addResource(e,t,a,r[a],{silent:!0});o.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,n,o,a){var i=5<arguments.length&&void 0!==a?a:{silent:!1},s=[e,t];-1<e.indexOf(".")&&(n=r,r=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var l=x(this.data,s)||{};n?function e(t,r,n){for(var o in r)o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof r[o]||r[o]instanceof String?n&&(t[o]=r[o]):e(t[o],r[o],n):t[o]=r[o];return t}(l,r,o):l=A({},l,r),b(this.data,s,l),i.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t=t||this.options.defaultNS,"v1"===this.options.compatibilityAPI?A({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),n}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,o){var a=this;return e.forEach(function(e){a.processors[e]&&(t=a.processors[e].process(t,r,n,o))}),t}},T={},M=function(){function i(e){var t,r,n,o,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,i),t=p(this,c(i).call(this)),m.call(u(t)),r=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n=e,o=u(t),r.forEach(function(e){n[e]&&(o[e]=n[e])}),t.options=a,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=f.create("translator"),t}return d(i,m),o(i,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},n=this.resolve(e,r);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var a=e.split(r);(r!==n||r===n&&-1<this.options.ns.indexOf(a[0]))&&(o=a.shift()),e=a.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,r){var n=this;if("object"!==L(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return"";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=this.extractFromKey(e[e.length-1],r),a=o.key,i=o.namespaces,s=i[i.length-1],l=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(p){var c=r.nsSeparator||this.options.nsSeparator;return s+c+a}return a}var u=this.resolve(e,r),d=u&&u.res,h=u&&u.usedKey||a,f=u&&u.exactUsedKey||a,m=Object.prototype.toString.apply(d),y=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&d&&("string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(m)<0&&("string"!=typeof y||"[object Array]"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,d,r):"key '".concat(a," (").concat(this.language,")' returned an object instead of string.");if(t){var v="[object Array]"===m,b=v?[]:{},x=v?f:h;for(var w in d)if(Object.prototype.hasOwnProperty.call(d,w)){var _="".concat(x).concat(t).concat(w);b[w]=this.translate(_,A({},r,{joinArrays:!1,ns:i})),b[w]===_&&(b[w]=d[w])}d=b}}else if(g&&"string"==typeof y&&"[object Array]"===m)d=(d=d.join(y))&&this.extendTranslation(d,e,r);else{var S=!1,j=!1;if(!this.isValidLookup(d)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);d=r["defaultValue".concat(E)]}d=d||r.defaultValue}this.isValidLookup(d)||(j=!0,d=a);var T=r.defaultValue&&r.defaultValue!==d&&this.options.updateMissing;if(j||S||T){this.logger.log(T?"updateKey":"missingKey",l,s,a,T?r.defaultValue:d);var M=[],C=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&C&&C[0])for(var O=0;O<C.length;O++)M.push(C[O]);else"all"===this.options.saveMissingTo?M=this.languageUtils.toResolveHierarchy(r.lng||this.language):M.push(r.lng||this.language);var N=function(e,t){n.options.missingKeyHandler?n.options.missingKeyHandler(e,s,t,T?r.defaultValue:d,T,r):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(e,s,t,T?r.defaultValue:d,T,r),n.emit("missingKey",e,s,t,d)};if(this.options.saveMissing){var k=void 0!==r.count&&"string"!=typeof r.count;this.options.saveMissingPlurals&&k?M.forEach(function(t){n.pluralResolver.getPluralFormsOfKey(t,a).forEach(function(e){return N([t],e)})}):N(M,a)}}d=this.extendTranslation(d,e,r,u),j&&d===a&&this.options.appendNamespaceToMissingKey&&(d="".concat(s,":").concat(a)),j&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(d))}return d}},{key:"extendTranslation",value:function(e,t,r,n){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(A({},r,{interpolation:A({},this.options.interpolation,r.interpolation)}));var a=r.replace&&"string"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(a=A({},this.options.interpolation.defaultVariables,a)),e=this.interpolator.interpolate(e,a,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return o.translate.apply(o,arguments)},r)),r.interpolation&&this.interpolator.reset()}var i=r.postProcess||this.options.postProcess,s="string"==typeof i?[i]:i;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?A({i18nResolved:n},r):r,this)),e}},{key:"resolve",value:function(e,t){var p,o,c,u,d,h=this,f=1<arguments.length&&void 0!==t?t:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!h.isValidLookup(p)){var t=h.extractFromKey(e,f),i=t.key;o=i;var r=t.namespaces;h.options.fallbackNS&&(r=r.concat(h.options.fallbackNS));var s=void 0!==f.count&&"string"!=typeof f.count,l=void 0!==f.context&&"string"==typeof f.context&&""!==f.context,n=f.lngs?f.lngs:h.languageUtils.toResolveHierarchy(f.lng||h.language,f.fallbackLng);r.forEach(function(a){h.isValidLookup(p)||(d=a,!T["".concat(n[0],"-").concat(a)]&&h.utils&&h.utils.hasLoadedNamespace&&!h.utils.hasLoadedNamespace(d)&&(T["".concat(n[0],"-").concat(a)]=!0,h.logger.warn('key "'.concat(o,'" for namespace "').concat(d,'" for languages "').concat(n.join(", "),"\" won't get resolved as namespace was not yet loaded"),"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),n.forEach(function(e){if(!h.isValidLookup(p)){u=e;var t,r,n=i,o=[n];if(h.i18nFormat&&h.i18nFormat.addLookupKeys)h.i18nFormat.addLookupKeys(o,i,e,a,f);else s&&(t=h.pluralResolver.getSuffix(e,f.count)),s&&l&&o.push(n+t),l&&o.push(n+="".concat(h.options.contextSeparator).concat(f.context)),s&&o.push(n+=t);for(;r=o.pop();)h.isValidLookup(p)||(c=r,p=h.getResource(e,a,r,f))}}))})}}),{res:p,usedKey:o,exactUsedKey:c,usedLng:u,usedNS:d}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r,n){var o=3<arguments.length&&void 0!==n?n:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,o):this.resourceStore.getResource(e,t,r,o)}}]),i}();function C(e){return e.charAt(0).toUpperCase()+e.slice(1)}var O=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=f.create("languageUtils")}return o(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&-1<e.indexOf("-")){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=C(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=C(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=C(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return"languageOnly"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:"toResolveHierarchy",value:function(e,t){function r(e){e&&(n.isWhitelisted(e)?a.push(e):n.logger.warn("rejecting non-whitelisted language code: ".concat(e)))}var n=this,o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[];return"string"==typeof e&&-1<e.indexOf("-")?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):"string"==typeof e&&r(this.formatLanguageCode(e)),o.forEach(function(e){a.indexOf(e)<0&&r(n.formatLanguageCode(e))}),a}}]),t}(),N=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he"],nr:[1,2,20,21],fc:22}],k={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var I=function(){function n(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,n),this.languageUtils=e,this.options=t,this.logger=f.create("pluralResolver"),this.rules=(r={},N.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:k[t.fc]}})}),r)}return o(n,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:"getPluralFormsOfKey",value:function(r,n){var o=this,a=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=o.getSuffix(r,e);a.push("".concat(n).concat(t))}),a}},{key:"getSuffix",value:function(e,t){var r=this,n=this.getRule(e);if(n){var o=n.noAbs?n.plurals(t):n.plurals(Math.abs(t)),a=n.numbers[o];this.options.simplifyPluralSuffix&&2===n.numbers.length&&1===n.numbers[0]&&(2===a?a="plural":1===a&&(a=""));var i=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return"v1"===this.options.compatibilityJSON?1===a?"":"number"==typeof a?"_plural_".concat(a.toString()):i():"v2"===this.options.compatibilityJSON?i():this.options.simplifyPluralSuffix&&2===n.numbers.length&&1===n.numbers[0]?i():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),n}(),R=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=f.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return o(t,[{key:"init",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s("$t("),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(")"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,o,a,t){var r,n,i,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function p(e){return e.replace(/\$/g,"$$$$")}function c(e){if(e.indexOf(s.formatSeparator)<0)return w(o,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),n=t.join(s.formatSeparator).trim();return s.format(w(o,l,r),n,a)}this.resetRegExp();var u=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(i=0;r=this.regexpUnescape.exec(e);){if(void 0===(n=c(r[1].trim())))if("function"==typeof u){var d=u(e,r,t);n="string"==typeof d?d:""}else this.logger.warn("missed to pass in variable ".concat(r[1]," for interpolating ").concat(e)),n="";else"string"==typeof n||this.useRawValueToEscape||(n=g(n));if(e=e.replace(r[0],p(n)),this.regexpUnescape.lastIndex=0,++i>=this.maxReplaces)break}for(i=0;r=this.regexp.exec(e);){if(void 0===(n=c(r[1].trim())))if("function"==typeof u){var h=u(e,r,t);n="string"==typeof h?h:""}else this.logger.warn("missed to pass in variable ".concat(r[1]," for interpolating ").concat(e)),n="";else"string"==typeof n||this.useRawValueToEscape||(n=g(n));if(n=this.escapeValue?p(this.escape(n)):p(n),e=e.replace(r[0],n),this.regexp.lastIndex=0,++i>=this.maxReplaces)break}return e}},{key:"nest",value:function(e,t,r){var n,o,a=A({},2<arguments.length&&void 0!==r?r:{});function i(t,e){if(t.indexOf(",")<0)return t;var r=t.split(",");t=r.shift();var n=r.join(",");n=(n=this.interpolate(n,a)).replace(/'/g,'"');try{a=JSON.parse(n),e&&(a=A({},e,a))}catch(e){this.logger.error("failed parsing options string in nesting for key ".concat(t),e)}return delete a.defaultValue,t}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){if((o=t(i.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=g(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),t}();var P=function(){function a(e,t,r){var n,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,a),n=p(this,c(a).call(this)),m.call(u(n)),n.backend=e,n.store=t,n.services=r,n.languageUtils=r.languageUtils,n.options=o,n.logger=f.create("backendConnector"),n.state={},n.queue=[],n.backend&&n.backend.init&&n.backend.init(r,o.backend,o),n}return d(a,m),o(a,[{key:"queueLoad",value:function(e,t,o,r){var a=this,i=[],s=[],l=[],p=[];return e.forEach(function(r){var n=!0;t.forEach(function(e){var t="".concat(r,"|").concat(e);!o.reload&&a.store.hasResourceBundle(r,e)?a.state[t]=2:a.state[t]<0||(1===a.state[t]?s.indexOf(t)<0&&s.push(t):(a.state[t]=1,n=!1,s.indexOf(t)<0&&s.push(t),i.indexOf(t)<0&&i.push(t),p.indexOf(e)<0&&p.push(e)))}),n||l.push(r)}),(i.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:i,pending:s,toLoadLanguages:l,toLoadNamespaces:p}}},{key:"loaded",value:function(s,l,e){var t=s.split("|"),r=h(t,2),p=r[0],c=r[1];l&&this.emit("failedLoading",p,c,l),e&&this.store.addResourceBundle(p,c,e),this.state[s]=l?-1:2;var u={};this.queue.forEach(function(e){var t,r,n,o,a,i;t=e.loaded,r=c,o=v(t,[p],Object),a=o.obj,i=o.k,a[i]=a[i]||[],n&&(a[i]=a[i].concat(r)),n||a[i].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){u[t]||(u[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){u[t].indexOf(e)<0&&u[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(r,n,o,e,t,a){var i=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,p=5<arguments.length?a:void 0;return r.length?this.backend[o](r,n,function(e,t){e&&t&&s<5?setTimeout(function(){i.read.call(i,r,n,o,s+1,2*l,p)},l):p(e,t)}):p(null,{})}},{key:"prepareLoading",value:function(e,t,r,n){var o=this,a=2<arguments.length&&void 0!==r?r:{},i=3<arguments.length?n:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,a,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(function(e){o.loadOne(e)})}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(r,e){var n=this,o=1<arguments.length&&void 0!==e?e:"",t=r.split("|"),a=h(t,2),i=a[0],s=a[1];this.read(i,s,"read",null,null,function(e,t){e&&n.logger.warn("".concat(o,"loading namespace ").concat(s," for language ").concat(i," failed"),e),!e&&t&&n.logger.log("".concat(o,"loaded namespace ").concat(s," for language ").concat(i),t),n.loaded(r,e,t)})}},{key:"saveMissing",value:function(e,t,r,n,o,a){var i=5<arguments.length&&void 0!==a?a:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(r,'" for namespace "').concat(t,'" as the namespace was not yet loaded'),"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,n,null,A({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,r,n))}}]),a}();function D(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e}function F(){}var U=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=p(this,c(s).call(this)),m.call(u(e)),e.options=D(t),e.services={},e.logger=f,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),p(e,u(e));setTimeout(function(){e.init(t,r)},0)}return e}return d(s,m),o(s,[{key:"init",value:function(e,t){var o=this,r=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length?t:void 0;function a(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof r&&(n=r,r={}),this.options=A({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===L(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===L(e[2])||"object"===L(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",maxReplaces:1e3}},this.options,D(r)),this.format=this.options.interpolation.format,n=n||F,!this.options.isClone){this.modules.logger?f.init(a(this.modules.logger),this.options):f.init(null,this.options);var i=new O(this.options);this.store=new j(this.options.resources,this.options);var s=this.services;s.logger=f,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new I(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new R(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new P(a(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];o.emit.apply(o,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=a(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=a(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new M(this.services,this.options),this.translator.on("*",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];o.emit.apply(o,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(o)})}["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){o[t]=function(){var e;return(e=o.store)[t].apply(e,arguments)}});function l(){o.changeLanguage(o.options.lng,function(e,t){o.isInitialized=!0,o.logger.log("initialized",o.options),o.emit("initialized",o.options),p.resolve(t),n(e,t)})}var p=y();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),p}},{key:"loadResources",value:function(e,t){var r=this,n=1<arguments.length&&void 0!==t?t:F,o="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return n();var a=[],i=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){a.indexOf(e)<0&&a.push(e)})};if(o)i(o);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return i(e)});this.options.preload&&this.options.preload.forEach(function(e){return i(e)}),this.services.backendConnector.load(a,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,r){var n=y();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){n.resolve(),r(e)}),n}},{key:"use",value:function(e){return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&E.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,o){var a=this;this.isLanguageChangingTo=e;var i=y();this.emit("languageChanging",e);function t(n){n&&(a.language||(a.language=n,a.languages=a.services.languageUtils.toResolveHierarchy(n)),a.translator.language||a.translator.changeLanguage(n),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage(n)),a.loadResources(n,function(e){var t,r;t=e,(r=n)?(a.language=r,a.languages=a.services.languageUtils.toResolveHierarchy(r),a.translator.changeLanguage(r),a.isLanguageChangingTo=void 0,a.emit("languageChanged",r),a.logger.log("languageChanged",r)):a.isLanguageChangingTo=void 0,i.resolve(function(){return a.t.apply(a,arguments)}),o&&o(t,function(){return a.t.apply(a,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t){function i(e,t){var r;if("object"!==L(t)){for(var n=arguments.length,o=new Array(2<n?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];r=s.options.overloadTranslationOptionHandler([e,t].concat(o))}else r=A({},t);return r.lng=r.lng||i.lng,r.lngs=r.lngs||i.lngs,r.ns=r.ns||i.ns,s.t(e,r)}var s=this;return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var n=this;if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===t.toLowerCase())return!0;function a(e,t){var r=n.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!a(t,e)||r&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,n=y();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=y();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],o=e.filter(function(e){return n.indexOf(e)<0});return o.length?(this.options.preload=n.concat(o),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return"rtl";return 0<=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?"rtl":"ltr"}},{key:"createInstance",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:"cloneInstance",value:function(e,t){var r=this,n=0<arguments.length&&void 0!==e?e:{},o=1<arguments.length&&void 0!==t?t:F,a=A({},this.options,n,{isClone:!0}),i=new s(a);return["store","services","language"].forEach(function(e){i[e]=r[e]}),i.translator=new M(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];i.emit.apply(i,[e].concat(r))}),i.init(a,o),i.translator.options=i.options,i}}]),s}());t.exports=U},{"@babel/runtime/helpers/assertThisInitialized":4,"@babel/runtime/helpers/classCallCheck":5,"@babel/runtime/helpers/createClass":6,"@babel/runtime/helpers/getPrototypeOf":8,"@babel/runtime/helpers/inherits":9,"@babel/runtime/helpers/objectSpread":14,"@babel/runtime/helpers/possibleConstructorReturn":15,"@babel/runtime/helpers/slicedToArray":17,"@babel/runtime/helpers/toConsumableArray":18,"@babel/runtime/helpers/typeof":19}],259:[function(e,t,r){r.read=function(e,t,r,n,o){var a,i,s=8*o-n-1,l=(1<<s)-1,p=l>>1,c=-7,u=r?o-1:0,d=r?-1:1,h=e[t+u];for(u+=d,a=h&(1<<-c)-1,h>>=-c,c+=s;0<c;a=256*a+e[t+u],u+=d,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=n;0<c;i=256*i+e[t+u],u+=d,c-=8);if(0===a)a=1-p;else{if(a===l)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,n),a-=p}return(h?-1:1)*i*Math.pow(2,a-n)},r.write=function(e,t,r,n,o,a){var i,s,l,p=8*a-o-1,c=(1<<p)-1,u=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),2<=(t+=1<=i+u?d/l:d*Math.pow(2,1-u))*l&&(i++,l/=2),c<=i+u?(s=0,i=c):1<=i+u?(s=(t*l-1)*Math.pow(2,o),i+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,o),i=0));8<=o;e[r+h]=255&s,h+=f,s/=256,o-=8);for(i=i<<o|s,p+=o;0<p;e[r+h]=255&i,h+=f,i/=256,p-=8);e[r+h-f]|=128*m}},{}],260:[function(e,t,r){var n;function y(e,t){return e.b===t.b&&e.a===t.a}function g(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function v(e,t,r){var n=t.b-e.b,o=r.b-t.b;return 0<n+o?n<o?t.a-e.a+n/(n+o)*(e.a-r.a):t.a-r.a+o/(n+o)*(r.a-e.a):0}function b(e,t,r){var n=t.b-e.b,o=r.b-t.b;return 0<n+o?(t.a-r.a)*n+(t.a-e.a)*o:0}function x(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function w(e,t,r){var n=t.a-e.a,o=r.a-t.a;return 0<n+o?n<o?t.b-e.b+n/(n+o)*(e.b-r.b):t.b-r.b+o/(n+o)*(r.b-e.b):0}function _(e,t,r){var n=t.a-e.a,o=r.a-t.a;return 0<n+o?(t.b-r.b)*n+(t.b-e.b)*o:0}function S(e,t,r,n){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+n)/2:t+e/(e+r)*(n-t):n+r/(e+r)*(t-n)}function i(e){var t=a(e.b);return o(t,e.c),o(t.b,e.c),s(t,e.a),t}function j(e,t){var r=!1,n=!1;e!==t&&(t.a!==e.a&&(n=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),h(t,e),n||(o(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function u(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=Q(e),e.a.c=e.c,h(e,Q(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=Q(t),t.a.c=t.c,h(t,Q(t))),f(e)}function E(e){var t=a(e),r=t.b;return h(t,e.e),t.a=e.b.a,o(r,t.a),t.d=r.d=e.d,t=t.b,h(e.b,Q(e.b)),h(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function d(e,t){var r=!1,n=a(e),o=n.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),h(n,e.e),h(o,t),n.a=e.b.a,o.a=t.a,n.d=o.d=e.d,e.d.a=o,r||s(n,e.d),n}function a(e){var t=new K,r=new K,n=e.b.h;return(((r.h=n).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function h(e,t){var r=e.c,n=t.c;r.b.e=t,(n.b.e=e).c=n,t.c=r}function o(e,t){var r=t.f,n=new $(t,r);for(r.e=n,r=(t.f=n).c=e;r.a=n,(r=r.c)!==e;);}function s(e,t){var r=t.d,n=new Z(t,r);for(r.b=n,(t.d=n).a=e,n.c=t.c,r=e;r.d=n,(r=r.e)!==e;);}function f(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,n=r;n.a=t,(n=n.c)!==r;);r=e.f,((n=e.e).f=r).e=n}function l(e,t){for(var r=e.a,n=r;n.d=t,(n=n.e)!==r;);r=e.d,((n=e.b).d=r).b=n}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}function M(e,t){e.f+=t.f,e.b.f+=t.b.f}function p(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?g(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=v(t.b.a,e,t.a),(e=v(r.b.a,e,r.a))<=t)}function C(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function c(e,t){u(e.a),e.c=!1,(e.a=t).i=e}function O(e){for(var t=e.a.a;(e=ue(e)).a.a===t;);return e.c&&(c(e,t=d(ce(e).a.b,e.a.e)),e=ue(e)),e}function N(e,t,r){var n=new pe;return n.a=r,n.e=H(e.f,t.e,n),r.i=n}function k(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function L(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,C(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var n=ce(e),o=n.a;if(o.a!==t.a){if(!n.c){L(e);break}c(n,o=d(t.c.b,o.b))}t.c!==o&&(j(Q(o),o),j(t,o)),L(e),t=n.a,e=n}return t}function I(e,t,r,n,o,a){for(var i=!0;N(e,t,r.b),(r=r.c)!==n;);for(null===o&&(o=ce(t).a.b.c);(r=(n=ce(t)).a.b).a===o.a;)r.c!==o&&(j(Q(r),r),j(Q(o),r)),n.f=t.f-r.f,n.d=k(e,n.f),t.b=!0,!i&&F(e,t)&&(M(r,o),C(t),u(o)),i=!1,t=n,o=r;t.b=!0,a&&B(e,t)}function R(e,t,r,n,o){var a=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(a,r,n,e.c)||null,null===t.d&&(o?e.n||(Y(e,100156),e.n=!0):t.d=r[0])}function P(e,t,r){var n=[null,null,null,null];n[0]=t.a.d,n[1]=r.a.d,R(e,t.a,n,[.5,.5,0,0],!1),j(t,r)}function D(e,t,r,n,o){var a=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),i=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=o+1;n[o]=.5*i/(a+i),n[s]=.5*a/(a+i),e.g[0]+=n[o]*t.g[0]+n[s]*r.g[0],e.g[1]+=n[o]*t.g[1]+n[s]*r.g[1],e.g[2]+=n[o]*t.g[2]+n[s]*r.g[2]}function F(e,t){var r=ce(t),n=t.a,o=r.a;if(g(n.a,o.a)){if(0<b(o.b.a,n.a,o.a))return!1;if(y(n.a,o.a)){if(n.a!==o.a){r=e.e;var a=n.a.h;if(0<=a){var i=(r=r.b).d,s=r.e,l=r.c,p=l[a];i[p]=i[r.a],(l[i[p]]=p)<=--r.a&&(p<=1?se(r,p):g(s[i[p>>1]],s[i[p]])?se(r,p):le(r,p)),s[a]=null,l[a]=r.b,r.b=a}else for(r.c[-(a+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;P(e,Q(o),n)}}else E(o.b),j(n,Q(o)),t.b=r.b=!0}else{if(b(n.b.a,o.a,n.a)<0)return!1;ue(t).b=t.b=!0,E(n.b),j(Q(o),n)}return!0}function U(e,t){var r=ce(t),n=t.a,o=r.a,a=n.a,i=o.a,s=n.b.a,l=o.b.a,p=new $;if(b(s,e.a,a),b(l,e.a,i),a===i||Math.min(a.a,s.a)>Math.max(i.a,l.a))return!1;if(g(a,i)){if(0<b(l,a,i))return!1}else if(b(s,i,a)<0)return!1;var c,u,d=s,h=a,f=l,m=i;if(g(d,h)||(c=d,d=h,h=c),g(f,m)||(c=f,f=m,m=c),g(d,f)||(c=d,d=f,f=c,c=h,h=m,m=c),g(f,h)?g(h,m)?((c=v(d,f,h))+(u=v(f,h,m))<0&&(c=-c,u=-u),p.b=S(c,f.b,u,h.b)):((c=b(d,f,h))+(u=-b(d,m,h))<0&&(c=-c,u=-u),p.b=S(c,f.b,u,m.b)):p.b=(f.b+h.b)/2,x(d,h)||(c=d,d=h,h=c),x(f,m)||(c=f,f=m,m=c),x(d,f)||(c=d,d=f,f=c,c=h,h=m,m=c),x(f,h)?x(h,m)?((c=w(d,f,h))+(u=w(f,h,m))<0&&(c=-c,u=-u),p.a=S(c,f.a,u,h.a)):((c=_(d,f,h))+(u=-_(d,m,h))<0&&(c=-c,u=-u),p.a=S(c,f.a,u,m.a)):p.a=(f.a+h.a)/2,g(p,e.a)&&(p.b=e.a.b,p.a=e.a.a),d=g(a,i)?a:i,g(d,p)&&(p.b=d.b,p.a=d.a),y(p,a)||y(p,i))return F(e,t),!1;if(!y(s,e.a)&&0<=b(s,e.a,p)||!y(l,e.a)&&b(l,e.a,p)<=0){if(l===e.a)return E(n.b),j(o.b,n),n=ce(t=O(t)).a,A(e,ce(t),r),I(e,t,Q(n),n,n,!0),!0;if(s!==e.a)return 0<=b(s,e.a,p)&&(ue(t).b=t.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),b(l,e.a,p)<=0&&(t.b=r.b=!0,E(o.b),o.a.b=e.a.b,o.a.a=e.a.a),!1;for(E(o.b),j(n.e,Q(o)),i=(a=r=t).a.b.a;(a=ue(a)).a.b.a===i;);return a=ce(t=a).a.b.c,r.a=Q(o),I(e,t,(o=A(e,r,null)).c,n.b.c,a,!0),!0}return E(n.b),E(o.b),j(Q(o),n),n.a.b=p.b,n.a.a=p.a,n.a.h=te(e.e,n.a),n=n.a,o=[0,0,0,0],p=[a.d,s.d,i.d,l.d],n.g[0]=n.g[1]=n.g[2]=0,D(n,a,s,o,0),D(n,i,l,o,2),R(e,n,p,o,!0),ue(t).b=t.b=r.b=!0,!1}function B(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=ue(r=t))||!t.b))break;t.b=!1;var n,o=t.a,a=r.a;if(n=o.b.a!==a.b.a)e:{var i=ce(n=t),s=n.a,l=i.a,p=void 0;if(g(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){n=!1;break e}ue(n).b=n.b=!0,p=E(s),j(l.b,p),p.d.c=n.d}else{if(0<b(l.b.a,s.b.a,l.a)){n=!1;break e}n.b=i.b=!0,p=E(l),j(s.e,l.b),p.b.d.c=n.d}n=!0}if(n&&(r.c?(C(r),u(a),a=(r=ce(t)).a):t.c&&(C(t),u(o),o=(t=ue(r)).a)),o.a!==a.a)if(o.b.a===a.b.a||t.c||r.c||o.b.a!==e.a&&a.b.a!==e.a)F(e,t);else if(U(e,t))break;o.a===a.a&&o.b.a===a.b.a&&(M(a,o),C(t),u(o),t=ue(r))}}function G(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var n=t;(i=new pe).a=n.c.b;for(var o=(l=r.f).a;null!==(o=o.a).b&&!l.c(l.b,i,o.b););var a=ce(l=o.b),i=l.a;o=a.a;if(0===b(i.b.a,n,i.a))y((i=l.a).a,n)||y(i.b.a,n)||(E(i.b),l.c&&(u(i.c),l.c=!1),j(n.c,i),G(r,n));else{var s=g(o.b.a,i.b.a)?l:a;a=void 0;l.d||s.c?(a=s===l?d(n.c.b,i.e):d(o.b.c.b,n.c).b,s.c?c(s,a):((l=N(i=r,l,a)).f=ue(l).f+l.a.f,l.d=k(i,l.f)),G(r,n)):I(r,l,n.c,n.c,null,!0)}return}if(l=(i=ce(r=O(r.i))).a,(i=A(e,i,null)).c===l){i=(l=i).c,o=ce(r),a=r.a,s=o.a;var l,p=!1;a.b.a!==s.b.a&&U(e,r),y(a.a,e.a)&&(j(Q(i),a),i=ce(r=O(r)).a,A(e,ce(r),o),p=!0),y(s.a,e.a)&&(j(l,Q(s)),l=A(e,o,null),p=!0),p?I(e,r,l.c,i,i,!0):(n=g(s.a,a.a)?Q(s):a,I(e,r,n=d(l.c.b,n),n.c,n.c,!1),n.b.i.c=!0,B(e,r))}else I(e,r,i.c,l,l,!0)}function V(e,t){var r=new pe,n=i(e.b);n.a.b=4e150,n.a.a=t,n.b.a.b=-4e150,n.b.a.a=t,e.a=n.b.a,r.a=n,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,n=H(n=e.f,n.a,r),r.e=n}function z(e){this.a=new W,this.b=e,this.c=p}function H(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new W(r,t.a,t),t.a.c=e,t.a=e}function W(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function X(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Y(e,100151),e.u(null);break;case 1:Y(e,100152),e.t()}else switch(e.d){case 2:Y(e,100154),e.v();break;case 1:Y(e,100153),e.w()}}function Y(e,t){e.p&&e.p(t,e.c)}function Z(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function Q(e){return e.b.e}function J(){this.c=new $,this.a=new Z,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function $(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function ee(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function te(e,t){if(e.e){var r,n=e.b,o=++n.a;return 2*o>n.f&&(n.f*=2,n.c=oe(n.c,n.f+1)),0===n.b?r=o:(r=n.b,n.b=n.c[n.b]),n.e[r]=t,n.c[r]=o,n.d[o]=r,n.h&&le(n,o),r}return n=e.a++,e.c[n]=t,-(n+1)}function re(e){if(0===e.a)return ie(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&g(ae(e.b),t))return ie(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),n=0;n<e.length;n++)r[n]=e[n];for(;n<t;n++)r[n]=0;return r}function ae(e){return e.e[e.d[1]]}function ie(e){var t=e.d,r=e.e,n=e.c,o=t[1],a=r[o];return 0<e.a&&(t[1]=t[e.a],n[t[1]]=1,r[o]=null,n[o]=e.b,e.b=o,0<--e.a&&se(e,1)),a}function se(e,t){for(var r=e.d,n=e.e,o=e.c,a=t,i=r[a];;){var s=a<<1;s<e.a&&g(n[r[s+1]],n[r[s]])&&(s+=1);var l=r[s];if(s>e.a||g(n[i],n[l])){o[r[a]=i]=a;break}o[r[a]=l]=a,a=s}}function le(e,t){for(var r=e.d,n=e.e,o=e.c,a=t,i=r[a];;){var s=a>>1,l=r[s];if(0==s||g(n[l],n[i])){o[r[a]=i]=a;break}o[r[a]=l]=a,a=s}}function pe(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function ue(e){return e.e.a.b}(n=q.prototype).x=function(){X(this,0)},n.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Y(this,100900)}Y(this,100901)},n.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Y(this,100900)}return!1},n.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},n.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Y(this,100900)}},n.C=function(e,t){var r=!1,n=[0,0,0];X(this,2);for(var o=0;o<3;++o){var a=e[o];a<-1e150&&(a=-1e150,r=!0),1e150<a&&(a=1e150,r=!0),n[o]=a}r&&Y(this,100155),null===(r=this.q)?j(r=i(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=n[0],r.a.g[1]=n[1],r.a.g[2]=n[2],r.f=1,r.b.f=-1,this.q=r},n.u=function(e){X(this,0),this.d=1,this.b=new J,this.c=e},n.t=function(){X(this,1),this.d=2,this.q=null},n.v=function(){X(this,2),this.d=1},n.w=function(){X(this,1),this.d=0;var e,t,r=!1,n=[l=this.j[0],o=this.j[1],i=this.j[2]];if(0===l&&0===o&&0===i){for(var o=[-2e150,-2e150,-2e150],a=[2e150,2e150,2e150],i=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var p=0;p<3;++p){var c=l.g[p];c<a[p]&&(a[p]=c,s[p]=l),c>o[p]&&(o[p]=c,i[p]=l)}if(l=0,o[1]-a[1]>o[0]-a[0]&&(l=1),o[2]-a[2]>o[l]-a[l]&&(l=2),a[l]>=o[l])n[0]=0,n[1]=0,n[2]=1;else{for(o=0,a=s[l],i=i[l],s=[0,0,0],a=[a.g[0]-i.g[0],a.g[1]-i.g[1],a.g[2]-i.g[2]],p=[0,0,0],l=r.e;l!==r;l=l.e)p[0]=l.g[0]-i.g[0],p[1]=l.g[1]-i.g[1],p[2]=l.g[2]-i.g[2],s[0]=a[1]*p[2]-a[2]*p[1],s[1]=a[2]*p[0]-a[0]*p[2],s[2]=a[0]*p[1]-a[1]*p[0],o<(c=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(o=c,n[0]=s[0],n[1]=s[1],n[2]=s[2]);o<=0&&(n[0]=n[1]=n[2]=0,n[T(a)]=1)}r=!0}for(s=T(n),l=this.b.c,o=(s+1)%3,i=(s+2)%3,s=0<n[s]?1:-1,n=l.e;n!==l;n=n.e)n.b=n.g[o],n.a=s*n.g[i];if(r){for(n=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((o=l.a).f<=0))for(;n+=(o.a.b-o.b.a.b)*(o.a.a+o.b.a.a),(o=o.e)!==l.a;);if(n<0)for(r=(n=this.b.c).e;r!==n;r=r.e)r.a=-r.a}for(this.n=!1,l=(n=this.b.b).h;l!==n;l=r)r=l.h,o=l.e,y(l.a,l.b.a)&&l.e.e!==l&&(P(this,o,l),u(l),o=(l=o).e),o.e===l&&(o!==l&&(o!==r&&o!==r.b||(r=r.h),u(o)),l!==r&&l!==r.b||(r=r.h),u(l));for(this.e=n=new ee,l=(r=this.b.c).e;l!==r;l=l.e)l.h=te(n,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return g(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)se(e,t);e.h=!0}(e.b)}(n),this.f=new z(this),V(this,-4e150),V(this,4e150);null!==(n=re(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),g(l,r))){r=l;break e}if(null===r||!y(r,n))break;r=re(this.e),P(this,n.c,r.c)}G(this,n)}for(this.a=this.f.a.a.b.a.a,n=0;null!==(r=this.f.a.a.b);)r.h||++n,C(r);for(this.f=null,(n=this.e).b=null,n.d=null,this.e=n.c=null,l=(n=this.b).a.b;l!==n.a;l=r)r=l.b,(l=l.a).e.e===l&&(M(l.c,l),u(l));if(!this.n){if(n=this.b,this.m)for(l=n.b.h;l!==n.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:u(l);else for(l=n.a.b;l!==n.a;l=r)if(r=l.b,l.c){for(l=l.a;g(l.b.a,l.a);l=l.c.b);for(;g(l.a,l.b.a);l=l.e);for(o=l.c.b,i=void 0;l.e!==o;)if(g(l.b.a,o.a)){for(;o.e!==l&&(g((t=o.e).b.a,t.a)||b(o.a,o.b.a,o.e.b.a)<=0);)o=(i=d(o.e,o)).b;o=o.c.b}else{for(;o.e!==l&&(g((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(i=d(l,l.c.b)).b;l=l.e}for(;o.e.e!==l;)o=(i=d(o.e,o)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(n=this.b).a.b;r!==n.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(n=this.b,r=!!this.l,l=!1,o=-1,i=n.a.d;i!==n.a;i=i.d)if(i.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=i.a;!r||o!==(a=s.b.d.c?0:1)&&(o=a,this.l&&this.l(!!o,this.c)),this.k&&this.k(s.a.d,this.c),(s=s.e)!==i.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(n=this.b).a.b;l!==n.a;l=r)if(r=l.b,!l.c){for(i=(o=l.a).e,s=void 0;i=(s=i).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,h(s,Q(s))),(a=s.b).c===a?m(a.a,null):(a.a.c=a.c,h(a,Q(a))),f(s)),s!==o;);o=l.d,((l=l.b).d=o).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],261:[function(e,t,r){function C(e,t,r,n){for(var o=e[t++],a=1<<o,i=1+a,s=1+i,l=o+1,p=(1<<l)-1,c=0,u=0,d=0,h=e[t++],f=new Int32Array(4096),m=null;;){for(;c<16&&0!==h;)u|=e[t++]<<c,c+=8,1===h?h=e[t++]:--h;if(c<l)break;var y=u&p;if(u>>=l,c-=l,y!=a){if(y==i)break;for(var g=y<s?y:m,v=0,b=g;a<b;)b=f[b]>>8,++v;var x=b;if(n<d+v+(g!==y?1:0))return void console.log("Warning, gif stream longer than expected.");r[d++]=x;var w=d+=v;for(g!==y&&(r[d++]=x),b=g;v--;)b=f[b],r[--w]=255&b,b>>=8;null!==m&&s<4096&&(f[s++]=m<<8|x,p+1<=s&&l<12&&(++l,p=p<<1|1)),m=y}else s=1+i,p=(1<<(l=o+1))-1,m=null}return d!==n&&console.log("Warning, gif stream shorter than expected."),r}try{r.GifWriter=function(g,e,t,r){var v=0,n=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error("Width/Height invalid.");function x(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return t}g[v++]=71,g[v++]=73,g[v++]=70,g[v++]=56,g[v++]=57,g[v++]=97;var o=0,a=0;if(null!==b){for(var i=x(b);i>>=1;)++o;if(i=1<<o,--o,void 0!==r.background){if(i<=(a=r.background))throw new Error("Background index out of range.");if(0===a)throw new Error("Background index explicitly passed as 0.")}}if(g[v++]=255&e,g[v++]=e>>8&255,g[v++]=255&t,g[v++]=t>>8&255,g[v++]=(null!==b?128:0)|o,g[v++]=a,g[v++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var p=b[s];g[v++]=p>>16&255,g[v++]=p>>8&255,g[v++]=255&p}if(null!==n){if(n<0||65535<n)throw new Error("Loop count invalid.");g[v++]=33,g[v++]=255,g[v++]=11,g[v++]=78,g[v++]=69,g[v++]=84,g[v++]=83,g[v++]=67,g[v++]=65,g[v++]=80,g[v++]=69,g[v++]=50,g[v++]=46,g[v++]=48,g[v++]=3,g[v++]=1,g[v++]=255&n,g[v++]=n>>8&255,g[v++]=0}var w=!1;this.addFrame=function(e,t,r,n,o,a){if(!0===w&&(--v,w=!1),a=void 0===a?{}:a,e<0||t<0||65535<e||65535<t)throw new Error("x/y invalid.");if(r<=0||n<=0||65535<r||65535<n)throw new Error("Width/Height invalid.");if(o.length<r*n)throw new Error("Not enough pixels for the frame size.");var i=!0,s=a.palette;if(null==s&&(i=!1,s=b),null==s)throw new Error("Must supply either a local or global palette.");for(var l=x(s),p=0;l>>=1;)++p;l=1<<p;var c=void 0===a.delay?0:a.delay,u=void 0===a.disposal?0:a.disposal;if(u<0||3<u)throw new Error("Disposal out of range.");var d=!1,h=0;if(void 0!==a.transparent&&null!==a.transparent&&(d=!0,(h=a.transparent)<0||l<=h))throw new Error("Transparent color index.");if(0===u&&!d&&0===c||(g[v++]=33,g[v++]=249,g[v++]=4,g[v++]=u<<2|(!0===d?1:0),g[v++]=255&c,g[v++]=c>>8&255,g[v++]=h,g[v++]=0),g[v++]=44,g[v++]=255&e,g[v++]=e>>8&255,g[v++]=255&t,g[v++]=t>>8&255,g[v++]=255&r,g[v++]=r>>8&255,g[v++]=255&n,g[v++]=n>>8&255,g[v++]=!0===i?128|p-1:0,!0===i)for(var f=0,m=s.length;f<m;++f){var y=s[f];g[v++]=y>>16&255,g[v++]=y>>8&255,g[v++]=255&y}return v=function(t,r,e,n){t[r++]=e;var o=r++,a=1<<e,i=a-1,s=1+a,l=1+s,p=e+1,c=0,u=0;function d(e){for(;e<=c;)t[r++]=255&u,u>>=8,c-=8,r===o+256&&(t[o]=255,o=r++)}function h(e){u|=e<<c,c+=p,d(8)}var f=n[0]&i,m={};h(a);for(var y=1,g=n.length;y<g;++y){var v=n[y]&i,b=f<<8|v,x=m[b];if(void 0===x){for(u|=f<<c,c+=p;8<=c;)t[r++]=255&u,u>>=8,c-=8,r===o+256&&(t[o]=255,o=r++);4096===l?(h(a),l=1+s,p=e+1,m={}):(1<<p<=l&&++p,m[b]=l++),f=v}else f=x}h(f),h(s),d(1),o+1===r?t[o]=0:(t[o]=r-o-1,t[r++]=0);return r}(g,v,p<2?2:p,o)},this.end=function(){return!1===w&&(g[v++]=59,w=!0),v},this.getOutputBuffer=function(){return g},this.setOutputBuffer=function(e){g=e},this.getOutputBufferPosition=function(){return v},this.setOutputBufferPosition=function(e){v=e}},r.GifReader=function(w){var e=0;if(71!==w[e++]||73!==w[e++]||70!==w[e++]||56!==w[e++]||56!=(w[e++]+1&253)||97!==w[e++])throw new Error("Invalid GIF 87a/89a header.");var _=w[e++]|w[e++]<<8,t=w[e++]|w[e++]<<8,r=w[e++],n=r>>7,o=1<<1+(7&r);w[e++],w[e++];var a=null,i=null;n&&(a=e,e+=3*(i=o));var s=!0,l=[],p=0,c=null,u=0,d=null;for(this.width=_,this.height=t;s&&e<w.length;)switch(w[e++]){case 33:switch(w[e++]){case 255:if(11!==w[e]||78==w[e+1]&&69==w[e+2]&&84==w[e+3]&&83==w[e+4]&&67==w[e+5]&&65==w[e+6]&&80==w[e+7]&&69==w[e+8]&&50==w[e+9]&&46==w[e+10]&&48==w[e+11]&&3==w[e+12]&&1==w[e+13]&&0==w[e+16])e+=14,d=w[e++]|w[e++]<<8,e++;else for(e+=12;;){if(!(0<=(M=w[e++])))throw Error("Invalid block size");if(0===M)break;e+=M}break;case 249:if(4!==w[e++]||0!==w[e+4])throw new Error("Invalid graphics extension block.");var h=w[e++];p=w[e++]|w[e++]<<8,c=w[e++],0==(1&h)&&(c=null),u=h>>2&7,e++;break;case 254:for(;;){if(!(0<=(M=w[e++])))throw Error("Invalid block size");if(0===M)break;e+=M}break;default:throw new Error("Unknown graphic control label: 0x"+w[e-1].toString(16))}break;case 44:var f=w[e++]|w[e++]<<8,m=w[e++]|w[e++]<<8,y=w[e++]|w[e++]<<8,g=w[e++]|w[e++]<<8,v=w[e++],b=v>>6&1,x=1<<1+(7&v),S=a,j=i,E=!1;if(v>>7){E=!0;S=e,e+=3*(j=x)}var T=e;for(e++;;){var M;if(!(0<=(M=w[e++])))throw Error("Invalid block size");if(0===M)break;e+=M}l.push({x:f,y:m,width:y,height:g,has_local_palette:E,palette_offset:S,palette_size:j,data_offset:T,data_length:e-T,transparent_index:c,interlaced:!!b,delay:p,disposal:u});break;case 59:s=!1;break;default:throw new Error("Unknown gif block: 0x"+w[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return d},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error("Frame index out of range.");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),n=r.width*r.height,o=new Uint8Array(n);C(w,r.data_offset,o,n);var a=r.palette_offset,i=r.transparent_index;null===i&&(i=256);var s=r.width,l=_-s,p=s,c=4*(r.y*_+r.x),u=4*((r.y+r.height)*_+r.x),d=c,h=4*l;!0===r.interlaced&&(h+=4*_*7);for(var f=8,m=0,y=o.length;m<y;++m){var g=o[m];if(0===p&&(p=s,u<=(d+=h)&&(h=4*l+4*_*(f-1),d=c+(s+l)*(f<<1),f>>=1)),g===i)d+=4;else{var v=w[a+3*g],b=w[a+3*g+1],x=w[a+3*g+2];t[d++]=x,t[d++]=b,t[d++]=v,t[d++]=255}--p}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),n=r.width*r.height,o=new Uint8Array(n);C(w,r.data_offset,o,n);var a=r.palette_offset,i=r.transparent_index;null===i&&(i=256);var s=r.width,l=_-s,p=s,c=4*(r.y*_+r.x),u=4*((r.y+r.height)*_+r.x),d=c,h=4*l;!0===r.interlaced&&(h+=4*_*7);for(var f=8,m=0,y=o.length;m<y;++m){var g=o[m];if(0===p&&(p=s,u<=(d+=h)&&(h=4*l+4*_*(f-1),d=c+(s+l)*(f<<1),f>>=1)),g===i)d+=4;else{var v=w[a+3*g],b=w[a+3*g+1],x=w[a+3*g+2];t[d++]=v,t[d++]=b,t[d++]=x,t[d++]=255}--p}}}}catch(e){}},{}],262:[function(Br,r,n){(function(Ur){var e,t;e=this,t=function(E){function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,n=e?Number(e):0;if(n!=n&&(n=0),!(n<0||r<=n)){var o,a=t.charCodeAt(n);return 55296<=a&&a<=56319&&n+1<r&&56320<=(o=t.charCodeAt(n+1))&&o<=57343?1024*(a-55296)+o-56320+65536:a}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,"codePointAt",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,a=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function i(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,p=new r,c=new Uint8Array(30),u=new Uint16Array(30),d=new Uint8Array(30),h=new Uint16Array(30),f=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,y=new Uint8Array(320);function n(e,t,r,n){var o,a;for(o=0;o<r;++o)e[o]=0;for(o=0;o<30-r;++o)e[o+r]=o/r|0;for(a=n,o=0;o<30;++o)t[o]=a,a+=1<<e[o]}var g=new Uint16Array(16);function v(e,t,r,n){var o,a;for(o=0;o<16;++o)e.table[o]=0;for(o=0;o<n;++o)e.table[t[r+o]]++;for(o=a=e.table[0]=0;o<16;++o)g[o]=a,a+=e.table[o];for(o=0;o<n;++o)t[r+o]&&(e.trans[g[t[r+o]]++]=o)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function x(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,n+r}function w(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,n=0,o=0,a=e.tag;n=2*n+(1&a),a>>>=1,++o,r+=t.table[o],0<=(n-=t.table[o]););return e.tag=a,e.bitcount-=o,t.trans[r+n]}function _(e,t,r){var n,o,a,i,s,l;for(n=x(e,5,257),o=x(e,5,1),a=x(e,4,4),i=0;i<19;++i)y[i]=0;for(i=0;i<a;++i){var p=x(e,3,0);y[f[i]]=p}for(v(m,y,0,19),s=0;s<n+o;){var c=w(e,m);switch(c){case 16:var u=y[s-1];for(l=x(e,2,3);l;--l)y[s++]=u;break;case 17:for(l=x(e,3,3);l;--l)y[s++]=0;break;case 18:for(l=x(e,7,11);l;--l)y[s++]=0;break;default:y[s++]=c}}v(t,y,0,n),v(r,y,n,o)}function S(e,t,r){for(;;){var n,o,a,i,s=w(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(n=x(e,c[s-=257],u[s]),o=w(e,r),i=a=e.destLen-x(e,d[o],h[o]);i<a+n;++i)e.dest[e.destLen++]=e.dest[i]}}function j(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return a;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,p),n(c,u,4,3),n(d,h,2,1),c[28]=0,u[28]=258;var o=function(e,t){var r,n,o=new i(e,t);do{switch(r=b(o),x(o,2,0)){case 0:n=j(o);break;case 1:n=S(o,s,p);break;case 2:_(o,o.ltree,o.dtree),n=S(o,o.ltree,o.dtree);break;default:n=a}if(n!==l)throw new Error("Data error")}while(!r);return o.destLen<o.dest.length?"function"==typeof o.dest.slice?o.dest.slice(0,o.destLen):o.dest.subarray(0,o.destLen):o.dest};function T(e,t,r,n,o){return Math.pow(1-o,3)*e+3*Math.pow(1-o,2)*o*t+3*(1-o)*Math.pow(o,2)*r+Math.pow(o,3)*n}function M(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function R(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}function C(e){throw new Error(e)}function O(e,t){e||C(t)}M.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},M.prototype.addPoint=function(e,t){"number"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),"number"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},M.prototype.addX=function(e){this.addPoint(e,null)},M.prototype.addY=function(e){this.addPoint(null,e)},M.prototype.addBezier=function(e,t,r,n,o,a,i,s){var l=[e,t],p=[r,n],c=[o,a],u=[i,s];this.addPoint(e,t),this.addPoint(i,s);for(var d=0;d<=1;d++){var h=6*l[d]-12*p[d]+6*c[d],f=-3*l[d]+9*p[d]-9*c[d]+3*u[d],m=3*p[d]-3*l[d];if(0!=f){var y=Math.pow(h,2)-4*m*f;if(!(y<0)){var g=(-h+Math.sqrt(y))/(2*f);0<g&&g<1&&(0===d&&this.addX(T(l[d],p[d],c[d],u[d],g)),1===d&&this.addY(T(l[d],p[d],c[d],u[d],g)));var v=(-h-Math.sqrt(y))/(2*f);0<v&&v<1&&(0===d&&this.addX(T(l[d],p[d],c[d],u[d],v)),1===d&&this.addY(T(l[d],p[d],c[d],u[d],v)))}}else{if(0==h)continue;var b=-m/h;0<b&&b<1&&(0===d&&this.addX(T(l[d],p[d],c[d],u[d],b)),1===d&&this.addY(T(l[d],p[d],c[d],u[d],b)))}}},M.prototype.addQuad=function(e,t,r,n,o,a){var i=e+2/3*(r-e),s=t+2/3*(n-t),l=i+1/3*(o-e),p=s+1/3*(a-t);this.addBezier(e,t,i,s,l,p,o,a)},R.prototype.moveTo=function(e,t){this.commands.push({type:"M",x:e,y:t})},R.prototype.lineTo=function(e,t){this.commands.push({type:"L",x:e,y:t})},R.prototype.curveTo=R.prototype.bezierCurveTo=function(e,t,r,n,o,a){this.commands.push({type:"C",x1:e,y1:t,x2:r,y2:n,x:o,y:a})},R.prototype.quadTo=R.prototype.quadraticCurveTo=function(e,t,r,n){this.commands.push({type:"Q",x1:e,y1:t,x:r,y:n})},R.prototype.close=R.prototype.closePath=function(){this.commands.push({type:"Z"})},R.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof M){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},R.prototype.getBoundingBox=function(){for(var e=new M,t=0,r=0,n=0,o=0,a=0;a<this.commands.length;a++){var i=this.commands[a];switch(i.type){case"M":e.addPoint(i.x,i.y),t=n=i.x,r=o=i.y;break;case"L":e.addPoint(i.x,i.y),n=i.x,o=i.y;break;case"Q":e.addQuad(n,o,i.x1,i.y1,i.x,i.y),n=i.x,o=i.y;break;case"C":e.addBezier(n,o,i.x1,i.y1,i.x2,i.y2,i.x,i.y),n=i.x,o=i.y;break;case"Z":n=t,o=r;break;default:throw new Error("Unexpected path command "+i.type)}}return e.isEmpty()&&e.addPoint(0,0),e},R.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];"M"===r.type?e.moveTo(r.x,r.y):"L"===r.type?e.lineTo(r.x,r.y):"C"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):"Q"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):"Z"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},R.prototype.toPathData=function(a){function e(){for(var e,t=arguments,r="",n=0;n<arguments.length;n+=1){var o=t[n];0<=o&&0<n&&(r+=" "),r+=(e=o,Math.round(e)===e?""+Math.round(e):e.toFixed(a))}return r}a=void 0!==a?a:2;for(var t="",r=0;r<this.commands.length;r+=1){var n=this.commands[r];"M"===n.type?t+="M"+e(n.x,n.y):"L"===n.type?t+="L"+e(n.x,n.y):"C"===n.type?t+="C"+e(n.x1,n.y1,n.x2,n.y2,n.x,n.y):"Q"===n.type?t+="Q"+e(n.x1,n.y1,n.x,n.y):"Z"===n.type&&(t+="Z")}return t},R.prototype.toSVG=function(e){var t='<path d="';return t+=this.toPathData(e),t+='"',this.fill&&"black"!==this.fill&&(null===this.fill?t+=' fill="none"':t+=' fill="'+this.fill+'"'),this.stroke&&(t+=' stroke="'+this.stroke+'" stroke-width="'+this.strokeWidth+'"'),t+="/>"},R.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d",t),r};var N={fail:C,argument:O,assert:O},k={},L={},A={};function I(e){return function(){return e}}L.BYTE=function(e){return N.argument(0<=e&&e<=255,"Byte value should be between 0 and 255."),[e]},A.BYTE=I(1),L.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=I(1),L.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},L.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=I(2),L.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=I(2),L.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=I(3),L.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=I(4),L.LONG=function(e){return 2147483648<=e&&(e=-(4294967296-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=I(4),L.FIXED=L.ULONG,A.FIXED=A.ULONG,L.FWORD=L.SHORT,A.FWORD=A.SHORT,L.UFWORD=L.USHORT,A.UFWORD=A.USHORT,L.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=I(8),L.TAG=function(e){return N.argument(4===e.length,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=I(4),L.Card8=L.BYTE,A.Card8=A.BYTE,L.Card16=L.USHORT,A.Card16=A.USHORT,L.OffSize=L.BYTE,A.OffSize=A.BYTE,L.SID=L.USHORT,A.SID=A.USHORT,L.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?L.NUMBER16(e):L.NUMBER32(e)},A.NUMBER=function(e){return L.NUMBER(e).length},L.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=I(3),L.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=I(5),L.REAL=function(e){var t=e.toString(),r=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var n=parseFloat("1e"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*n)/n).toString()}for(var o="",a=0,i=t.length;a<i;a+=1){var s=t[a];o+="e"===s?"-"===t[++a]?"c":"b":"."===s?"a":"-"===s?"e":s}for(var l=[30],p=0,c=(o+=1&o.length?"f":"ff").length;p<c;p+=2)l.push(parseInt(o.substr(p,2),16));return l},A.REAL=function(e){return L.REAL(e).length},L.NAME=L.CHARARRAY,A.NAME=A.CHARARRAY,L.STRING=L.CHARARRAY,A.STRING=A.CHARARRAY,k.UTF8=function(e,t,r){for(var n=[],o=r,a=0;a<o;a++,t+=1)n[a]=e.getUint8(t);return String.fromCharCode.apply(null,n)},k.UTF16=function(e,t,r){for(var n=[],o=r/2,a=0;a<o;a++,t+=2)n[a]=e.getUint16(t);return String.fromCharCode.apply(null,n)},L.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var n=e.charCodeAt(r);t[t.length]=n>>8&255,t[t.length]=255&n}return t},A.UTF16=function(e){return 2*e.length};var P={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-cyrillic":"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",macintosh:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"};k.MACSTRING=function(e,t,r,n){var o=P[n];if(void 0!==o){for(var a="",i=0;i<r;i++){var s=e.getUint8(t+i);a+=s<=127?String.fromCharCode(s):o[127&s]}return a}};var D,F="function"==typeof WeakMap&&new WeakMap;function U(e){return-128<=e&&e<=127}function B(e,t,r){for(var n=0,o=e.length;t<o&&n<64&&0===e[t];)++t,++n;return r.push(128|n-1),t}function G(e,t,r){for(var n=0,o=e.length,a=t;a<o&&n<64;){var i=e[a];if(!U(i))break;if(0===i&&a+1<o&&0===e[a+1])break;++a,++n}r.push(n-1);for(var s=t;s<a;++s)r.push(e[s]+256&255);return a}function V(e,t,r){for(var n=0,o=e.length,a=t;a<o&&n<64;){var i=e[a];if(0===i)break;if(U(i)&&a+1<o&&U(e[a+1]))break;++a,++n}r.push(64|n-1);for(var s=t;s<a;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return a}L.MACSTRING=function(e,t){var r=function(e){if(!D)for(var t in D={},P)D[t]=new String(t);var r=D[e];if(void 0!==r){if(F){var n=F.get(r);if(void 0!==n)return n}var o=P[e];if(void 0!==o){for(var a={},i=0;i<o.length;i++)a[o.charCodeAt(i)]=i+128;return F&&F.set(r,a),a}}}(t);if(void 0!==r){for(var n=[],o=0;o<e.length;o++){var a=e.charCodeAt(o);if(128<=a&&void 0===(a=r[a]))return;n[o]=a}return n}},A.MACSTRING=function(e,t){var r=L.MACSTRING(e,t);return void 0!==r?r.length:0},L.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var n=e[t];t=0===n?B(e,t,r):-128<=n&&n<=127?G(e,t,r):V(e,t,r)}return r},L.INDEX=function(e){for(var t=1,r=[t],n=[],o=0;o<e.length;o+=1){var a=L.OBJECT(e[o]);Array.prototype.push.apply(n,a),t+=a.length,r.push(t)}if(0===n.length)return[0,0];for(var i=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,L.BYTE,L.USHORT,L.UINT24,L.ULONG][s],p=0;p<r.length;p+=1){var c=l(r[p]);Array.prototype.push.apply(i,c)}return Array.prototype.concat(L.Card16(e.length),L.OffSize(s),i,n)},A.INDEX=function(e){return L.INDEX(e).length},L.DICT=function(e){for(var t=[],r=Object.keys(e),n=r.length,o=0;o<n;o+=1){var a=parseInt(r[o],0),i=e[a];t=(t=t.concat(L.OPERAND(i.value,i.type))).concat(L.OPERATOR(a))}return t},A.DICT=function(e){return L.DICT(e).length},L.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},L.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var n=0;n<t.length;n+=1)N.argument(e.length===t.length,"Not enough arguments given for type"+t),r=r.concat(L.OPERAND(e[n],t[n]));else if("SID"===t)r=r.concat(L.NUMBER(e));else if("offset"===t)r=r.concat(L.NUMBER32(e));else if("number"===t)r=r.concat(L.NUMBER(e));else{if("real"!==t)throw new Error("Unknown operand type "+t);r=r.concat(L.REAL(e))}return r},L.OP=L.BYTE,A.OP=A.BYTE;var z="function"==typeof WeakMap&&new WeakMap;function H(e,t,r){for(var n=0;n<t.length;n+=1){var o=t[n];this[o.name]=o.value}if(this.tableName=e,this.fields=t,r)for(var a=Object.keys(r),i=0;i<a.length;i+=1){var s=a[i],l=r[s];void 0!==this[s]&&(this[s]=l)}}function W(e,t,r){void 0===r&&(r=t.length);var n=new Array(t.length+1);n[0]={name:e+"Count",type:"USHORT",value:r};for(var o=0;o<t.length;o++)n[o+1]={name:e+o,type:"USHORT",value:t[o]};return n}function q(e,t,r){var n=t.length,o=new Array(n+1);o[0]={name:e+"Count",type:"USHORT",value:n};for(var a=0;a<n;a++)o[a+1]={name:e+a,type:"TABLE",value:r(t[a],a)};return o}function X(e,t,r){var n=t.length,o=[];o[0]={name:e+"Count",type:"USHORT",value:n};for(var a=0;a<n;a++)o=o.concat(r(t[a],a));return o}function Y(e){1===e.format?H.call(this,"coverageTable",[{name:"coverageFormat",type:"USHORT",value:1}].concat(W("glyph",e.glyphs))):N.assert(!1,"Can't create coverage table format 2 yet.")}function Z(e){H.call(this,"scriptListTable",X("scriptRecord",e,function(e,t){var r=e.script,n=r.defaultLangSys;return N.assert(!!n,"Unable to write GSUB: script "+e.tag+" has no default language system."),[{name:"scriptTag"+t,type:"TAG",value:e.tag},{name:"script"+t,type:"TABLE",value:new H("scriptTable",[{name:"defaultLangSys",type:"TABLE",value:new H("defaultLangSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:n.reqFeatureIndex}].concat(W("featureIndex",n.featureIndexes)))}].concat(X("langSys",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:"langSysTag"+t,type:"TAG",value:e.tag},{name:"langSys"+t,type:"TABLE",value:new H("langSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:r.reqFeatureIndex}].concat(W("featureIndex",r.featureIndexes)))}]})))}]}))}function K(e){H.call(this,"featureListTable",X("featureRecord",e,function(e,t){var r=e.feature;return[{name:"featureTag"+t,type:"TAG",value:e.tag},{name:"feature"+t,type:"TABLE",value:new H("featureTable",[{name:"featureParams",type:"USHORT",value:r.featureParams}].concat(W("lookupListIndex",r.lookupListIndexes)))}]}))}function Q(e,r){H.call(this,"lookupListTable",q("lookup",e,function(e){var t=r[e.lookupType];return N.assert(!!t,"Unable to write GSUB lookup type "+e.lookupType+" tables."),new H("lookupTable",[{name:"lookupType",type:"USHORT",value:e.lookupType},{name:"lookupFlag",type:"USHORT",value:e.lookupFlag}].concat(q("subtable",e.subtables,t)))}))}L.CHARSTRING=function(e){if(z){var t=z.get(e);if(void 0!==t)return t}for(var r=[],n=e.length,o=0;o<n;o+=1){var a=e[o];r=r.concat(L[a.type](a.value))}return z&&z.set(e,r),r},A.CHARSTRING=function(e){return L.CHARSTRING(e).length},L.OBJECT=function(e){var t=L[e.type];return N.argument(void 0!==t,"No encoding function for type "+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return N.argument(void 0!==t,"No sizeOf function for type "+e.type),t(e.value)},L.TABLE=function(e){for(var t=[],r=e.fields.length,n=[],o=[],a=0;a<r;a+=1){var i=e.fields[a],s=L[i.type];N.argument(void 0!==s,"No encoding function for field type "+i.type+" ("+i.name+")");var l=e[i.name];void 0===l&&(l=i.value);var p=s(l);"TABLE"===i.type?(o.push(t.length),t=t.concat([0,0]),n.push(p)):t=t.concat(p)}for(var c=0;c<n.length;c+=1){var u=o[c],d=t.length;N.argument(d<65536,"Table "+e.tableName+" too big."),t[u]=d>>8,t[u+1]=255&d,t=t.concat(n[c])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,n=0;n<r;n+=1){var o=e.fields[n],a=A[o.type];N.argument(void 0!==a,"No sizeOf function for field type "+o.type+" ("+o.name+")");var i=e[o.name];void 0===i&&(i=o.value),t+=a(i),"TABLE"===o.type&&(t+=2)}return t},L.RECORD=L.TABLE,A.RECORD=A.TABLE,L.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},H.prototype.encode=function(){return L.TABLE(this)},H.prototype.sizeOf=function(){return A.TABLE(this)};var J={Table:H,Record:H,Coverage:(Y.prototype=Object.create(H.prototype)).constructor=Y,ScriptList:(Z.prototype=Object.create(H.prototype)).constructor=Z,FeatureList:(K.prototype=Object.create(H.prototype)).constructor=K,LookupList:(Q.prototype=Object.create(H.prototype)).constructor=Q,ushortList:W,tableList:q,recordList:X};function $(e,t){return e.getUint8(t)}function ee(e,t){return e.getUint16(t,!1)}function te(e,t){return e.getUint32(t,!1)}function re(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=te(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,n="";this.relativeOffset+=e;for(var o=0;o<e;o++)n+=String.fromCharCode(t.getUint8(r+o));return n},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=te(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=ee(this.data,this.offset+this.relativeOffset),r=ee(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,o=0;o<e;o++)t[o]=r.getUint32(n),n+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,o=0;o<e;o++)t[o]=r.getUint16(n),n+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,o=0;o<e;o++)t[o]=r.getInt16(n),n+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,o=0;o<e;o++)t[o]=r.getUint8(n++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),n=0;n<e;n++)r[n]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),n=0;n<e;n++)r[n]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),n=Object.keys(t),o=0;o<e;o++){for(var a={},i=0;i<n.length;i++){var s=n[i],l=t[s];a[s]=l.call(this)}r[o]=a}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),n=Object.keys(t),o=0;o<e;o++){for(var a={},i=0;i<n.length;i++){var s=n[i],l=t[s];a[s]=l.call(this)}r[o]=a}return r},oe.prototype.parseStruct=function(e){if("function"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n],a=e[o];r[o]=a.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),n=0;n<t;n++)r[n]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this.parseOffset16List(),r=t.length,n=this.relativeOffset,o=new Array(r),a=0;a<r;a++){var i=t[a];if(0!==i)if(this.relativeOffset=i,e){for(var s=this.parseOffset16List(),l=new Array(s.length),p=0;p<s.length;p++)this.relativeOffset=i+s[p],l[p]=e.call(this);o[a]=l}else o[a]=this.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error("0x"+e.toString(16)+": Coverage format must be 1 or 2.");for(var n=new Array(r),o=0;o<r;o++)n[o]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:n}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error("0x"+e.toString(16)+": ClassDef format must be 1 or 2.")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(n){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();N.argument(1<=e&&e<=9,"GPOS/GSUB lookup type "+e+" unknown.");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(n[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return N.argument(1===e&&t<1,"GPOS/GSUB feature variations table unknown."),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var ie={getByte:$,getCard8:$,getUShort:ee,getCard16:ee,getShort:function(e,t){return e.getInt16(t,!1)},getULong:te,getFixed:re,getTag:function(e,t){for(var r="",n=t;n<t+4;n+=1)r+=String.fromCharCode(e.getInt8(n));return r},getOffset:function(e,t,r){for(var n=0,o=0;o<r;o+=1)n<<=8,n+=e.getUint8(t+o);return n},getBytes:function(e,t,r){for(var n=[],o=t;o<r;o+=1)n.push(e.getUint8(o));return n},bytesToString:function(e){for(var t="",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var se={parse:function(e,t){var r={};r.version=ie.getUShort(e,t),N.argument(0===r.version,"cmap table version should be 0."),r.numTables=ie.getUShort(e,t+2);for(var n=-1,o=r.numTables-1;0<=o;--o){var a=ie.getUShort(e,t+4+8*o),i=ie.getUShort(e,t+4+8*o+2);if(3===a&&(0===i||1===i||10===i)||0===a&&(0===i||1===i||2===i||3===i||4===i)){n=ie.getULong(e,t+4+8*o+4);break}}if(-1===n)throw new Error("No valid cmap sub-tables found.");var s=new ie.Parser(e,t+n);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var n=0;n<r;n+=1)for(var o=t.parseULong(),a=t.parseULong(),i=t.parseULong(),s=o;s<=a;s+=1)e.glyphIndexMap[s]=i,i++}(r,s);else{if(4!==r.format)throw new Error("Only format 4 and 12 cmap tables are supported (found format "+r.format+").");!function(e,t,r,n,o){var a;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=a=t.parseUShort()>>1,t.skip("uShort",3),e.glyphIndexMap={};for(var i=new ie.Parser(r,n+o+14),s=new ie.Parser(r,n+o+16+2*a),l=new ie.Parser(r,n+o+16+4*a),p=new ie.Parser(r,n+o+16+6*a),c=n+o+16+8*a,u=0;u<a-1;u+=1)for(var d=void 0,h=i.parseUShort(),f=s.parseUShort(),m=l.parseShort(),y=p.parseUShort(),g=f;g<=h;g+=1)0!==y?(c=p.offset+p.relativeOffset-2,c+=y,c+=2*(g-f),0!==(d=ie.getUShort(r,c))&&(d=d+m&65535)):d=g+m&65535,e.glyphIndexMap[g]=d}(r,s,e,t,n)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log("Adding CMAP format 12 (needed!)"),r=!1;break}}var n=[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:r?1:2},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:r?12:20}];r||(n=n.concat([{name:"cmap12PlatformID",type:"USHORT",value:3},{name:"cmap12EncodingID",type:"USHORT",value:10},{name:"cmap12Offset",type:"ULONG",value:0}])),n=n.concat([{name:"format",type:"USHORT",value:4},{name:"cmap4Length",type:"USHORT",value:0},{name:"language",type:"USHORT",value:0},{name:"segCountX2",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);var o,a,i,s=new J.Table("cmap",n);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),p=0;p<l.unicodes.length;p+=1)o=s,a=l.unicodes[p],i=t,o.segments.push({end:a,start:a,delta:-(a-i),offset:0,glyphIndex:i});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var c=s.segments.length,u=0,d=[],h=[],f=[],m=[],y=[],g=[];for(t=0;t<c;t+=1){var v=s.segments[t];v.end<=65535&&v.start<=65535?(d=d.concat({name:"end_"+t,type:"USHORT",value:v.end}),h=h.concat({name:"start_"+t,type:"USHORT",value:v.start}),f=f.concat({name:"idDelta_"+t,type:"SHORT",value:v.delta}),m=m.concat({name:"idRangeOffset_"+t,type:"USHORT",value:v.offset}),void 0!==v.glyphId&&(y=y.concat({name:"glyph_"+t,type:"USHORT",value:v.glyphId}))):u+=1,r||void 0===v.glyphIndex||(g=(g=(g=g.concat({name:"cmap12Start_"+t,type:"ULONG",value:v.start})).concat({name:"cmap12End_"+t,type:"ULONG",value:v.end})).concat({name:"cmap12Glyph_"+t,type:"ULONG",value:v.glyphIndex}))}if(s.segCountX2=2*(c-u),s.searchRange=2*Math.pow(2,Math.floor(Math.log(c-u)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(d),s.fields.push({name:"reservedPad",type:"USHORT",value:0}),s.fields=s.fields.concat(h),s.fields=s.fields.concat(f),s.fields=s.fields.concat(m),s.fields=s.fields.concat(y),s.cmap4Length=14+2*d.length+2+2*h.length+2*f.length+2*m.length+2*y.length,!r){var b=16+4*g.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:"cmap12Format",type:"USHORT",value:12},{name:"cmap12Reserved",type:"USHORT",value:0},{name:"cmap12Length",type:"ULONG",value:b},{name:"cmap12Language",type:"ULONG",value:0},{name:"cmap12nGroups",type:"ULONG",value:g.length/3}]),s.fields=s.fields.concat(g)}return s}},le=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],pe=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],ce=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],ue=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function de(e){this.font=e}function he(e){this.cmap=e}function fe(e,t){this.encoding=e,this.charset=t}function me(e){switch(e.version){case 1:this.names=ue.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<ue.length?this.names[t]=ue[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-ue.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=ue[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var n=0;n<r.length;n+=1)for(var o=r.get(n),a=0;a<o.unicodes.length;a+=1)if(o.unicodes[a]===t)return n;return null},he.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},fe.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},me.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},me.prototype.glyphIndexToName=function(e){return this.names[e]};var ye={line:function(e,t,r,n,o){e.beginPath(),e.moveTo(t,r),e.lineTo(n,o),e.stroke()}};function ge(e){this.bindConstructorValues(e)}function ve(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function be(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ge.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,"path",(t=e.path,r=t||new R,{configurable:!0,get:function(){return"function"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ge.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ge.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ge.prototype.getPath=function(e,t,r,n,o){var a,i;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(n=n||{}).xScale,l=n.yScale;if(n.hinting&&o&&o.hinting&&(i=this.path&&o.hinting.exec(this,r)),i)a=o.hinting.getCommands(i),e=Math.round(e),t=Math.round(t),s=l=1;else{a=this.path.commands;var p=1/this.path.unitsPerEm*r;void 0===s&&(s=p),void 0===l&&(l=p)}for(var c=new R,u=0;u<a.length;u+=1){var d=a[u];"M"===d.type?c.moveTo(e+d.x*s,t+-d.y*l):"L"===d.type?c.lineTo(e+d.x*s,t+-d.y*l):"Q"===d.type?c.quadraticCurveTo(e+d.x1*s,t+-d.y1*l,e+d.x*s,t+-d.y*l):"C"===d.type?c.curveTo(e+d.x1*s,t+-d.y1*l,e+d.x2*s,t+-d.y2*l,e+d.x*s,t+-d.y*l):"Z"===d.type&&c.closePath()}return c},ge.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var n=this.points[r];t.push(n),n.lastPointOfContour&&(e.push(t),t=[])}return N.argument(0===t.length,"There are still points left in the current contour."),e},ge.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],n=0;n<e.length;n+=1){var o=e[n];"Z"!==o.type&&(t.push(o.x),r.push(o.y)),"Q"!==o.type&&"C"!==o.type||(t.push(o.x1),r.push(o.y1)),"C"===o.type&&(t.push(o.x2),r.push(o.y2))}var a={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(a.xMin)||(a.xMin=0),isFinite(a.xMax)||(a.xMax=this.advanceWidth),isFinite(a.yMin)||(a.yMin=0),isFinite(a.yMax)||(a.yMax=0),a.rightSideBearing=this.advanceWidth-a.leftSideBearing-(a.xMax-a.xMin),a},ge.prototype.draw=function(e,t,r,n,o){this.getPath(t,r,n,o).draw(e)},ge.prototype.drawPoints=function(i,e,t,r){function n(e,t,r,n){var o=2*Math.PI;i.beginPath();for(var a=0;a<e.length;a+=1)i.moveTo(t+e[a].x*n,r+e[a].y*n),i.arc(t+e[a].x*n,r+e[a].y*n,2,0,o,!1);i.closePath(),i.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var o=1/this.path.unitsPerEm*r,a=[],s=[],l=this.path,p=0;p<l.commands.length;p+=1){var c=l.commands[p];void 0!==c.x&&a.push({x:c.x,y:-c.y}),void 0!==c.x1&&s.push({x:c.x1,y:-c.y1}),void 0!==c.x2&&s.push({x:c.x2,y:-c.y2})}i.fillStyle="blue",n(a,e,t,o),i.fillStyle="red",n(s,e,t,o)},ge.prototype.drawMetrics=function(e,t,r,n){var o;t=void 0!==t?t:0,r=void 0!==r?r:0,n=void 0!==n?n:24,o=1/this.path.unitsPerEm*n,e.lineWidth=1,e.strokeStyle="black",ye.line(e,t,-1e4,t,1e4),ye.line(e,-1e4,r,1e4,r);var a=this.xMin||0,i=this.yMin||0,s=this.xMax||0,l=this.yMax||0,p=this.advanceWidth||0;e.strokeStyle="blue",ye.line(e,t+a*o,-1e4,t+a*o,1e4),ye.line(e,t+s*o,-1e4,t+s*o,1e4),ye.line(e,-1e4,r+-i*o,1e4,r+-i*o),ye.line(e,-1e4,r+-l*o,1e4,r+-l*o),e.strokeStyle="green",ye.line(e,t+p*o,-1e4,t+p*o,1e4)},be.prototype.get=function(e){return"function"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},be.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:be,glyphLoader:function(e,t){return new ge({index:t,font:e})},ttfGlyphLoader:function(r,e,n,o,a,i){return function(){var t=new ge({index:e,font:r});return t.path=function(){n(t,o,a);var e=i(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},ve(t,"xMin","_xMin"),ve(t,"xMax","_xMax"),ve(t,"yMin","_yMin"),ve(t,"yMax","_yMax"),t}},cffGlyphLoader:function(r,e,n,o){return function(){var t=new ge({index:e,font:r});return t.path=function(){var e=n(r,t,o);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function _e(e){return e.length<1240?107:e.length<33900?1131:32768}function Se(e,t,r){var n,o,a=[],i=[],s=ie.getCard16(e,t);if(0!==s){var l=ie.getByte(e,t+2);n=t+(s+1)*l+2;for(var p=t+3,c=0;c<s+1;c+=1)a.push(ie.getOffset(e,p,l)),p+=l;o=n+a[s]}else o=t+2;for(var u=0;u<a.length-1;u+=1){var d=ie.getBytes(e,n+a[u],n+a[u+1]);r&&(d=r(d)),i.push(d)}return{objects:i,startOffset:t,endOffset:o}}function je(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t="",r=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];;){var n=e.parseByte(),o=n>>4,a=15&n;if(15==o)break;if(t+=r[o],15==a)break;t+=r[a]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error("Invalid b0 "+t)}function Ee(e,t,r){t=void 0!==t?t:0;var n=new ie.Parser(e,t),o=[],a=[];for(r=void 0!==r?r:e.length;n.relativeOffset<r;){var i=n.parseByte();i<=21?(12===i&&(i=1200+n.parseByte()),o.push([i,a]),a=[]):a.push(je(n,i))}return function(e){for(var t={},r=0;r<e.length;r+=1){var n=e[r][0],o=e[r][1],a=void 0;if(a=1===o.length?o[0]:o,t.hasOwnProperty(n)&&!isNaN(t[n]))throw new Error("Object "+t+" already has key "+n);t[n]=a}return t}(o)}function Te(e,t){return t=t<=390?le[t]:e[t-391]}function Me(e,t,r){for(var n,o={},a=0;a<t.length;a+=1){var i=t[a];if(Array.isArray(i.type)){var s=[];s.length=i.type.length;for(var l=0;l<i.type.length;l++)void 0===(n=void 0!==e[i.op]?e[i.op][l]:void 0)&&(n=void 0!==i.value&&void 0!==i.value[l]?i.value[l]:null),"SID"===i.type[l]&&(n=Te(r,n)),s[l]=n;o[i.name]=s}else void 0===(n=e[i.op])&&(n=void 0!==i.value?i.value:null),"SID"===i.type&&(n=Te(r,n)),o[i.name]=n}return o}var Ce=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[.001,0,0,.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]},{name:"ros",op:1230,type:["SID","SID","number"]},{name:"cidFontVersion",op:1231,type:"number",value:0},{name:"cidFontRevision",op:1232,type:"number",value:0},{name:"cidFontType",op:1233,type:"number",value:0},{name:"cidCount",op:1234,type:"number",value:8720},{name:"uidBase",op:1235,type:"number"},{name:"fdArray",op:1236,type:"offset"},{name:"fdSelect",op:1237,type:"offset"},{name:"fontName",op:1238,type:"SID"}],Oe=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];function Ne(e,t,r,n){return Me(Ee(e,t,r),Oe,n)}function ke(e,t,r,n){for(var o,a,i=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),p=(a=n,Me(Ee(o=l,0,o.byteLength),Ce,a));p._subrs=[],p._subrsBias=0;var c=p.private[0],u=p.private[1];if(0!==c&&0!==u){var d=Ne(e,u+t,c,n);if(p._defaultWidthX=d.defaultWidthX,p._nominalWidthX=d.nominalWidthX,0!==d.subrs){var h=Se(e,u+d.subrs+t);p._subrs=h.objects,p._subrsBias=_e(p._subrs)}p._privateDict=d}i.push(p)}return i}function Le(y,g,e){var v,b,x,w,_,S,t,j,E=new R,T=[],M=0,C=!1,O=!1,N=0,k=0;if(y.isCIDFont){var r=y.tables.cff.topDict._fdSelect[g.index],n=y.tables.cff.topDict._fdArray[r];_=n._subrs,S=n._subrsBias,t=n._defaultWidthX,j=n._nominalWidthX}else _=y.tables.cff.topDict._subrs,S=y.tables.cff.topDict._subrsBias,t=y.tables.cff.topDict._defaultWidthX,j=y.tables.cff.topDict._nominalWidthX;var L=t;function A(e,t){O&&E.closePath(),E.moveTo(e,t),O=!0}function I(){T.length%2==0||C||(L=T.shift()+j),M+=T.length>>1,T.length=0,C=!0}return function e(t){for(var r,n,o,a,i,s,l,p,c,u,d,h,f=0;f<t.length;){var m=t[f];switch(f+=1,m){case 1:case 3:I();break;case 4:1<T.length&&!C&&(L=T.shift()+j,C=!0),k+=T.pop(),A(N,k);break;case 5:for(;0<T.length;)N+=T.shift(),k+=T.shift(),E.lineTo(N,k);break;case 6:for(;0<T.length&&(N+=T.shift(),E.lineTo(N,k),0!==T.length);)k+=T.shift(),E.lineTo(N,k);break;case 7:for(;0<T.length&&(k+=T.shift(),E.lineTo(N,k),0!==T.length);)N+=T.shift(),E.lineTo(N,k);break;case 8:for(;0<T.length;)v=N+T.shift(),b=k+T.shift(),x=v+T.shift(),w=b+T.shift(),N=x+T.shift(),k=w+T.shift(),E.curveTo(v,b,x,w,N,k);break;case 10:i=T.pop()+S,(s=_[i])&&e(s);break;case 11:return;case 12:switch(m=t[f],f+=1,m){case 35:v=N+T.shift(),b=k+T.shift(),x=v+T.shift(),w=b+T.shift(),l=x+T.shift(),p=w+T.shift(),c=l+T.shift(),u=p+T.shift(),d=c+T.shift(),h=u+T.shift(),N=d+T.shift(),k=h+T.shift(),T.shift(),E.curveTo(v,b,x,w,l,p),E.curveTo(c,u,d,h,N,k);break;case 34:v=N+T.shift(),b=k,x=v+T.shift(),w=b+T.shift(),l=x+T.shift(),p=w,c=l+T.shift(),u=w,d=c+T.shift(),h=k,N=d+T.shift(),E.curveTo(v,b,x,w,l,p),E.curveTo(c,u,d,h,N,k);break;case 36:v=N+T.shift(),b=k+T.shift(),x=v+T.shift(),w=b+T.shift(),l=x+T.shift(),p=w,c=l+T.shift(),u=w,d=c+T.shift(),h=u+T.shift(),N=d+T.shift(),E.curveTo(v,b,x,w,l,p),E.curveTo(c,u,d,h,N,k);break;case 37:v=N+T.shift(),b=k+T.shift(),x=v+T.shift(),w=b+T.shift(),l=x+T.shift(),p=w+T.shift(),c=l+T.shift(),u=p+T.shift(),d=c+T.shift(),h=u+T.shift(),Math.abs(d-N)>Math.abs(h-k)?N=d+T.shift():k=h+T.shift(),E.curveTo(v,b,x,w,l,p),E.curveTo(c,u,d,h,N,k);break;default:console.log("Glyph "+g.index+": unknown operator 1200"+m),T.length=0}break;case 14:0<T.length&&!C&&(L=T.shift()+j,C=!0),O&&(E.closePath(),O=!1);break;case 18:I();break;case 19:case 20:I(),f+=M+7>>3;break;case 21:2<T.length&&!C&&(L=T.shift()+j,C=!0),k+=T.pop(),A(N+=T.pop(),k);break;case 22:1<T.length&&!C&&(L=T.shift()+j,C=!0),A(N+=T.pop(),k);break;case 23:I();break;case 24:for(;2<T.length;)v=N+T.shift(),b=k+T.shift(),x=v+T.shift(),w=b+T.shift(),N=x+T.shift(),k=w+T.shift(),E.curveTo(v,b,x,w,N,k);N+=T.shift(),k+=T.shift(),E.lineTo(N,k);break;case 25:for(;6<T.length;)N+=T.shift(),k+=T.shift(),E.lineTo(N,k);v=N+T.shift(),b=k+T.shift(),x=v+T.shift(),w=b+T.shift(),N=x+T.shift(),k=w+T.shift(),E.curveTo(v,b,x,w,N,k);break;case 26:for(T.length%2&&(N+=T.shift());0<T.length;)v=N,b=k+T.shift(),x=v+T.shift(),w=b+T.shift(),N=x,k=w+T.shift(),E.curveTo(v,b,x,w,N,k);break;case 27:for(T.length%2&&(k+=T.shift());0<T.length;)v=N+T.shift(),b=k,x=v+T.shift(),w=b+T.shift(),N=x+T.shift(),k=w,E.curveTo(v,b,x,w,N,k);break;case 28:r=t[f],n=t[f+1],T.push((r<<24|n<<16)>>16),f+=2;break;case 29:i=T.pop()+y.gsubrsBias,(s=y.gsubrs[i])&&e(s);break;case 30:for(;0<T.length&&(v=N,b=k+T.shift(),x=v+T.shift(),w=b+T.shift(),N=x+T.shift(),k=w+(1===T.length?T.shift():0),E.curveTo(v,b,x,w,N,k),0!==T.length);)v=N+T.shift(),b=k,x=v+T.shift(),w=b+T.shift(),k=w+T.shift(),N=x+(1===T.length?T.shift():0),E.curveTo(v,b,x,w,N,k);break;case 31:for(;0<T.length&&(v=N+T.shift(),b=k,x=v+T.shift(),w=b+T.shift(),k=w+T.shift(),N=x+(1===T.length?T.shift():0),E.curveTo(v,b,x,w,N,k),0!==T.length);)v=N,b=k+T.shift(),x=v+T.shift(),w=b+T.shift(),N=x+T.shift(),k=w+(1===T.length?T.shift():0),E.curveTo(v,b,x,w,N,k);break;default:m<32?console.log("Glyph "+g.index+": unknown operator "+m):m<247?T.push(m-139):m<251?(r=t[f],f+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[f],f+=1,T.push(256*-(m-251)-r-108)):(r=t[f],n=t[f+1],o=t[f+2],a=t[f+3],f+=4,T.push((r<<24|n<<16|o<<8|a)/65536))}}}(e),g.advanceWidth=L,E}function Ae(e,t){var r,n=le.indexOf(e);return 0<=n&&(r=n),0<=(n=t.indexOf(e))?r=n+le.length:(r=le.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var n={},o=0;o<e.length;o+=1){var a=e[o],i=t[a.name];void 0===i||we(i,a.value)||("SID"===a.type&&(i=Ae(i,r)),n[a.op]={name:a.name,type:a.type,value:i})}return n}function Re(e,t){var r=new J.Record("Top DICT",[{name:"dict",type:"DICT",value:{}}]);return r.dict=Ie(Ce,e,t),r}function Pe(e){var t=new J.Record("Top DICT INDEX",[{name:"topDicts",type:"INDEX",value:[]}]);return t.topDicts=[{name:"topDict_0",type:"TABLE",value:e}],t}function De(e){var t=[],r=e.path;t.push({name:"width",type:"NUMBER",value:e.advanceWidth});for(var n=0,o=0,a=0;a<r.commands.length;a+=1){var i=void 0,s=void 0,l=r.commands[a];if("Q"===l.type){l={type:"C",x:l.x,y:l.y,x1:1/3*n+2/3*l.x1,y1:1/3*o+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if("M"===l.type)i=Math.round(l.x-n),s=Math.round(l.y-o),t.push({name:"dx",type:"NUMBER",value:i}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rmoveto",type:"OP",value:21}),n=Math.round(l.x),o=Math.round(l.y);else if("L"===l.type)i=Math.round(l.x-n),s=Math.round(l.y-o),t.push({name:"dx",type:"NUMBER",value:i}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rlineto",type:"OP",value:5}),n=Math.round(l.x),o=Math.round(l.y);else if("C"===l.type){var p=Math.round(l.x1-n),c=Math.round(l.y1-o),u=Math.round(l.x2-l.x1),d=Math.round(l.y2-l.y1);i=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:"dx1",type:"NUMBER",value:p}),t.push({name:"dy1",type:"NUMBER",value:c}),t.push({name:"dx2",type:"NUMBER",value:u}),t.push({name:"dy2",type:"NUMBER",value:d}),t.push({name:"dx",type:"NUMBER",value:i}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rrcurveto",type:"OP",value:8}),n=Math.round(l.x),o=Math.round(l.y)}}return t.push({name:"endchar",type:"OP",value:14}),t}var Fe={parse:function(e,t,r){r.tables.cff={};var n,o,a,i=Se(e,(n=e,o=t,(a={}).formatMajor=ie.getCard8(n,o),a.formatMinor=ie.getCard8(n,o+1),a.size=ie.getCard8(n,o+2),a.offsetSize=ie.getCard8(n,o+3),a.startOffset=o,a.endOffset=o+4,a).endOffset,ie.bytesToString),s=Se(e,i.endOffset),l=Se(e,s.endOffset,ie.bytesToString),p=Se(e,l.endOffset);r.gsubrs=p.objects,r.gsubrsBias=_e(r.gsubrs);var c=ke(e,t,s.objects,l.objects);if(1!==c.length)throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+c.length);var u=c[0];if((r.tables.cff.topDict=u)._privateDict&&(r.defaultWidthX=u._privateDict.defaultWidthX,r.nominalWidthX=u._privateDict.nominalWidthX),void 0!==u.ros[0]&&void 0!==u.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var d=u.fdArray,h=u.fdSelect;if(0===d||0===h)throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");var f=ke(e,t,Se(e,d+=t).objects,l.objects);u._fdArray=f,h+=t,u._fdSelect=function(e,t,r,n){var o,a=[],i=new ie.Parser(e,t),s=i.parseCard8();if(0===s)for(var l=0;l<r;l++){if(n<=(o=i.parseCard8()))throw new Error("CFF table CID Font FDSelect has bad FD index value "+o+" (FD count "+n+")");a.push(o)}else{if(3!==s)throw new Error("CFF Table CID Font FDSelect table has unsupported format "+s);var p,c=i.parseCard16(),u=i.parseCard16();if(0!==u)throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+u);for(var d=0;d<c;d++){if(o=i.parseCard8(),p=i.parseCard16(),n<=o)throw new Error("CFF table CID Font FDSelect has bad FD index value "+o+" (FD count "+n+")");if(r<p)throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID "+p);for(;u<p;u++)a.push(o);u=p}if(p!==r)throw new Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+p)}return a}(e,h,r.numGlyphs,f.length)}var m=t+u.private[1],y=Ne(e,m,u.private[0],l.objects);if(r.defaultWidthX=y.defaultWidthX,r.nominalWidthX=y.nominalWidthX,0!==y.subrs){var g=Se(e,m+y.subrs);r.subrs=g.objects,r.subrsBias=_e(r.subrs)}else r.subrs=[],r.subrsBias=0;var v=Se(e,t+u.charStrings);r.nGlyphs=v.objects.length;var b=function(e,t,r,n){var o,a,i=new ie.Parser(e,t);--r;var s=[".notdef"],l=i.parseCard8();if(0===l)for(var p=0;p<r;p+=1)o=i.parseSID(),s.push(Te(n,o));else if(1===l)for(;s.length<=r;){o=i.parseSID(),a=i.parseCard8();for(var c=0;c<=a;c+=1)s.push(Te(n,o)),o+=1}else{if(2!==l)throw new Error("Unknown charset format "+l);for(;s.length<=r;){o=i.parseSID(),a=i.parseCard16();for(var u=0;u<=a;u+=1)s.push(Te(n,o)),o+=1}}return s}(e,t+u.charset,r.nGlyphs,l.objects);0===u.encoding?r.cffEncoding=new fe(pe,b):1===u.encoding?r.cffEncoding=new fe(ce,b):r.cffEncoding=function(e,t,r){var n,o={},a=new ie.Parser(e,t),i=a.parseCard8();if(0===i)for(var s=a.parseCard8(),l=0;l<s;l+=1)o[n=a.parseCard8()]=l;else{if(1!==i)throw new Error("Unknown encoding format "+i);var p=a.parseCard8();n=1;for(var c=0;c<p;c+=1)for(var u=a.parseCard8(),d=a.parseCard8(),h=u;h<=u+d;h+=1)o[h]=n,n+=1}return new fe(o,r)}(e,t+u.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var x=0;x<r.nGlyphs;x+=1){var w=v.objects[x];r.glyphs.push(x,xe.cffGlyphLoader(r,x,Le,w))}},make:function(e,t){for(var r,n=new J.Table("CFF ",[{name:"header",type:"RECORD"},{name:"nameIndex",type:"RECORD"},{name:"topDictIndex",type:"RECORD"},{name:"stringIndex",type:"RECORD"},{name:"globalSubrIndex",type:"RECORD"},{name:"charsets",type:"RECORD"},{name:"charStringsIndex",type:"RECORD"},{name:"privateDict",type:"RECORD"}]),o=1/t.unitsPerEm,a={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[o,0,0,o,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},i=[],s=1;s<e.length;s+=1)r=e.get(s),i.push(r.name);var l=[];n.header=new J.Record("Header",[{name:"major",type:"Card8",value:1},{name:"minor",type:"Card8",value:0},{name:"hdrSize",type:"Card8",value:4},{name:"major",type:"Card8",value:1}]),n.nameIndex=function(e){var t=new J.Record("Name INDEX",[{name:"names",type:"INDEX",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:"name_"+r,type:"NAME",value:e[r]});return t}([t.postScriptName]);var p,c,u,d=Re(a,l);n.topDictIndex=Pe(d),n.globalSubrIndex=new J.Record("Global Subr INDEX",[{name:"subrs",type:"INDEX",value:[]}]),n.charsets=function(e,t){for(var r=new J.Record("Charsets",[{name:"format",type:"Card8",value:0}]),n=0;n<e.length;n+=1){var o=Ae(e[n],t);r.fields.push({name:"glyph_"+n,type:"SID",value:o})}return r}(i,l),n.charStringsIndex=function(e){for(var t=new J.Record("CharStrings INDEX",[{name:"charStrings",type:"INDEX",value:[]}]),r=0;r<e.length;r+=1){var n=e.get(r),o=De(n);t.charStrings.push({name:n.name,type:"CHARSTRING",value:o})}return t}(e),n.privateDict=(p={},c=l,(u=new J.Record("Private DICT",[{name:"dict",type:"DICT",value:{}}])).dict=Ie(Oe,p,c),u),n.stringIndex=function(e){var t=new J.Record("String INDEX",[{name:"strings",type:"INDEX",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:"string_"+r,type:"STRING",value:e[r]});return t}(l);var h=n.header.sizeOf()+n.nameIndex.sizeOf()+n.topDictIndex.sizeOf()+n.stringIndex.sizeOf()+n.globalSubrIndex.sizeOf();return a.charset=h,a.encoding=0,a.charStrings=a.charset+n.charsets.sizeOf(),a.private[1]=a.charStrings+n.charStringsIndex.sizeOf(),d=Re(a,l),n.topDictIndex=Pe(d),n}};var Ue={parse:function(e,t){var r={},n=new ie.Parser(e,t);return r.version=n.parseVersion(),r.fontRevision=Math.round(1e3*n.parseFixed())/1e3,r.checkSumAdjustment=n.parseULong(),r.magicNumber=n.parseULong(),N.argument(1594834165===r.magicNumber,"Font header has wrong magic number."),r.flags=n.parseUShort(),r.unitsPerEm=n.parseUShort(),r.created=n.parseLongDateTime(),r.modified=n.parseLongDateTime(),r.xMin=n.parseShort(),r.yMin=n.parseShort(),r.xMax=n.parseShort(),r.yMax=n.parseShort(),r.macStyle=n.parseUShort(),r.lowestRecPPEM=n.parseUShort(),r.fontDirectionHint=n.parseShort(),r.indexToLocFormat=n.parseShort(),r.glyphDataFormat=n.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new J.Table("head",[{name:"version",type:"FIXED",value:65536},{name:"fontRevision",type:"FIXED",value:65536},{name:"checkSumAdjustment",type:"ULONG",value:0},{name:"magicNumber",type:"ULONG",value:1594834165},{name:"flags",type:"USHORT",value:0},{name:"unitsPerEm",type:"USHORT",value:1e3},{name:"created",type:"LONGDATETIME",value:r},{name:"modified",type:"LONGDATETIME",value:t},{name:"xMin",type:"SHORT",value:0},{name:"yMin",type:"SHORT",value:0},{name:"xMax",type:"SHORT",value:0},{name:"yMax",type:"SHORT",value:0},{name:"macStyle",type:"USHORT",value:0},{name:"lowestRecPPEM",type:"USHORT",value:0},{name:"fontDirectionHint",type:"SHORT",value:2},{name:"indexToLocFormat",type:"SHORT",value:0},{name:"glyphDataFormat",type:"SHORT",value:0}],e)}};var Be={parse:function(e,t){var r={},n=new ie.Parser(e,t);return r.version=n.parseVersion(),r.ascender=n.parseShort(),r.descender=n.parseShort(),r.lineGap=n.parseShort(),r.advanceWidthMax=n.parseUShort(),r.minLeftSideBearing=n.parseShort(),r.minRightSideBearing=n.parseShort(),r.xMaxExtent=n.parseShort(),r.caretSlopeRise=n.parseShort(),r.caretSlopeRun=n.parseShort(),r.caretOffset=n.parseShort(),n.relativeOffset+=8,r.metricDataFormat=n.parseShort(),r.numberOfHMetrics=n.parseUShort(),r},make:function(e){return new J.Table("hhea",[{name:"version",type:"FIXED",value:65536},{name:"ascender",type:"FWORD",value:0},{name:"descender",type:"FWORD",value:0},{name:"lineGap",type:"FWORD",value:0},{name:"advanceWidthMax",type:"UFWORD",value:0},{name:"minLeftSideBearing",type:"FWORD",value:0},{name:"minRightSideBearing",type:"FWORD",value:0},{name:"xMaxExtent",type:"FWORD",value:0},{name:"caretSlopeRise",type:"SHORT",value:1},{name:"caretSlopeRun",type:"SHORT",value:0},{name:"caretOffset",type:"SHORT",value:0},{name:"reserved1",type:"SHORT",value:0},{name:"reserved2",type:"SHORT",value:0},{name:"reserved3",type:"SHORT",value:0},{name:"reserved4",type:"SHORT",value:0},{name:"metricDataFormat",type:"SHORT",value:0},{name:"numberOfHMetrics",type:"USHORT",value:0}],e)}};var Ge={parse:function(e,t,r,n,o){for(var a,i,s=new ie.Parser(e,t),l=0;l<n;l+=1){l<r&&(a=s.parseUShort(),i=s.parseShort());var p=o.get(l);p.advanceWidth=a,p.leftSideBearing=i}},make:function(e){for(var t=new J.Table("hmtx",[]),r=0;r<e.length;r+=1){var n=e.get(r),o=n.advanceWidth||0,a=n.leftSideBearing||0;t.fields.push({name:"advanceWidth_"+r,type:"USHORT",value:o}),t.fields.push({name:"leftSideBearing_"+r,type:"SHORT",value:a})}return t}};var Ve={make:function(e){for(var t=new J.Table("ltag",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"numTags",type:"ULONG",value:e.length}]),r="",n=12+4*e.length,o=0;o<e.length;++o){var a=r.indexOf(e[o]);a<0&&(a=r.length,r+=e[o]),t.fields.push({name:"offset "+o,type:"USHORT",value:n+a}),t.fields.push({name:"length "+o,type:"USHORT",value:e[o].length})}return t.fields.push({name:"stringPool",type:"CHARARRAY",value:r}),t},parse:function(e,t){var r=new ie.Parser(e,t),n=r.parseULong();N.argument(1===n,"Unsupported ltag table version."),r.skip("uLong",1);for(var o=r.parseULong(),a=[],i=0;i<o;i++){for(var s="",l=t+r.parseUShort(),p=r.parseUShort(),c=l;c<l+p;++c)s+=String.fromCharCode(e.getInt8(c));a.push(s)}return a}};var ze={parse:function(e,t){var r={},n=new ie.Parser(e,t);return r.version=n.parseVersion(),r.numGlyphs=n.parseUShort(),1===r.version&&(r.maxPoints=n.parseUShort(),r.maxContours=n.parseUShort(),r.maxCompositePoints=n.parseUShort(),r.maxCompositeContours=n.parseUShort(),r.maxZones=n.parseUShort(),r.maxTwilightPoints=n.parseUShort(),r.maxStorage=n.parseUShort(),r.maxFunctionDefs=n.parseUShort(),r.maxInstructionDefs=n.parseUShort(),r.maxStackElements=n.parseUShort(),r.maxSizeOfInstructions=n.parseUShort(),r.maxComponentElements=n.parseUShort(),r.maxComponentDepth=n.parseUShort()),r},make:function(e){return new J.Table("maxp",[{name:"version",type:"FIXED",value:20480},{name:"numGlyphs",type:"USHORT",value:e}])}},He=["copyright","fontFamily","fontSubfamily","uniqueID","fullName","version","postScriptName","trademark","manufacturer","designer","description","manufacturerURL","designerURL","license","licenseURL","reserved","preferredFamily","preferredSubfamily","compatibleFullName","sampleText","postScriptFindFontName","wwsFamily","wwsSubfamily"],We={0:"en",1:"fr",2:"de",3:"it",4:"nl",5:"sv",6:"es",7:"da",8:"pt",9:"no",10:"he",11:"ja",12:"ar",13:"fi",14:"el",15:"is",16:"mt",17:"tr",18:"hr",19:"zh-Hant",20:"ur",21:"hi",22:"th",23:"ko",24:"lt",25:"pl",26:"hu",27:"es",28:"lv",29:"se",30:"fo",31:"fa",32:"ru",33:"zh",34:"nl-BE",35:"ga",36:"sq",37:"ro",38:"cz",39:"sk",40:"si",41:"yi",42:"sr",43:"mk",44:"bg",45:"uk",46:"be",47:"uz",48:"kk",49:"az-Cyrl",50:"az-Arab",51:"hy",52:"ka",53:"mo",54:"ky",55:"tg",56:"tk",57:"mn-CN",58:"mn",59:"ps",60:"ks",61:"ku",62:"sd",63:"bo",64:"ne",65:"sa",66:"mr",67:"bn",68:"as",69:"gu",70:"pa",71:"or",72:"ml",73:"kn",74:"ta",75:"te",76:"si",77:"my",78:"km",79:"lo",80:"vi",81:"id",82:"tl",83:"ms",84:"ms-Arab",85:"am",86:"ti",87:"om",88:"so",89:"sw",90:"rw",91:"rn",92:"ny",93:"mg",94:"eo",128:"cy",129:"eu",130:"ca",131:"la",132:"qu",133:"gn",134:"ay",135:"tt",136:"ug",137:"dz",138:"jv",139:"su",140:"gl",141:"af",142:"br",143:"iu",144:"gd",145:"gv",146:"ga",147:"to",148:"el-polyton",149:"kl",150:"az",151:"nn"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Xe={1078:"af",1052:"sq",1156:"gsw",1118:"am",5121:"ar-DZ",15361:"ar-BH",3073:"ar",2049:"ar-IQ",11265:"ar-JO",13313:"ar-KW",12289:"ar-LB",4097:"ar-LY",6145:"ary",8193:"ar-OM",16385:"ar-QA",1025:"ar-SA",10241:"ar-SY",7169:"aeb",14337:"ar-AE",9217:"ar-YE",1067:"hy",1101:"as",2092:"az-Cyrl",1068:"az",1133:"ba",1069:"eu",1059:"be",2117:"bn",1093:"bn-IN",8218:"bs-Cyrl",5146:"bs",1150:"br",1026:"bg",1027:"ca",3076:"zh-HK",5124:"zh-MO",2052:"zh",4100:"zh-SG",1028:"zh-TW",1155:"co",1050:"hr",4122:"hr-BA",1029:"cs",1030:"da",1164:"prs",1125:"dv",2067:"nl-BE",1043:"nl",3081:"en-AU",10249:"en-BZ",4105:"en-CA",9225:"en-029",16393:"en-IN",6153:"en-IE",8201:"en-JM",17417:"en-MY",5129:"en-NZ",13321:"en-PH",18441:"en-SG",7177:"en-ZA",11273:"en-TT",2057:"en-GB",1033:"en",12297:"en-ZW",1061:"et",1080:"fo",1124:"fil",1035:"fi",2060:"fr-BE",3084:"fr-CA",1036:"fr",5132:"fr-LU",6156:"fr-MC",4108:"fr-CH",1122:"fy",1110:"gl",1079:"ka",3079:"de-AT",1031:"de",5127:"de-LI",4103:"de-LU",2055:"de-CH",1032:"el",1135:"kl",1095:"gu",1128:"ha",1037:"he",1081:"hi",1038:"hu",1039:"is",1136:"ig",1057:"id",1117:"iu",2141:"iu-Latn",2108:"ga",1076:"xh",1077:"zu",1040:"it",2064:"it-CH",1041:"ja",1099:"kn",1087:"kk",1107:"km",1158:"quc",1159:"rw",1089:"sw",1111:"kok",1042:"ko",1088:"ky",1108:"lo",1062:"lv",1063:"lt",2094:"dsb",1134:"lb",1071:"mk",2110:"ms-BN",1086:"ms",1100:"ml",1082:"mt",1153:"mi",1146:"arn",1102:"mr",1148:"moh",1104:"mn",2128:"mn-CN",1121:"ne",1044:"nb",2068:"nn",1154:"oc",1096:"or",1123:"ps",1045:"pl",1046:"pt",2070:"pt-PT",1094:"pa",1131:"qu-BO",2155:"qu-EC",3179:"qu",1048:"ro",1047:"rm",1049:"ru",9275:"smn",4155:"smj-NO",5179:"smj",3131:"se-FI",1083:"se",2107:"se-SE",8251:"sms",6203:"sma-NO",7227:"sms",1103:"sa",7194:"sr-Cyrl-BA",3098:"sr",6170:"sr-Latn-BA",2074:"sr-Latn",1132:"nso",1074:"tn",1115:"si",1051:"sk",1060:"sl",11274:"es-AR",16394:"es-BO",13322:"es-CL",9226:"es-CO",5130:"es-CR",7178:"es-DO",12298:"es-EC",17418:"es-SV",4106:"es-GT",18442:"es-HN",2058:"es-MX",19466:"es-NI",6154:"es-PA",15370:"es-PY",10250:"es-PE",20490:"es-PR",3082:"es",1034:"es",21514:"es-US",14346:"es-UY",8202:"es-VE",2077:"sv-FI",1053:"sv",1114:"syr",1064:"tg",2143:"tzm",1097:"ta",1092:"tt",1098:"te",1054:"th",1105:"bo",1055:"tr",1090:"tk",1152:"ug",1058:"uk",1070:"hsb",1056:"ur",2115:"uz-Cyrl",1091:"uz",1066:"vi",1106:"cy",1160:"wo",1157:"sah",1144:"ii",1130:"yo"};function Ye(e,t,r){switch(e){case 0:if(65535===t)return"und";if(r)return r[t];break;case 1:return We[t];case 3:return Xe[t]}}var Ze="utf-16",Ke={0:"macintosh",1:"x-mac-japanese",2:"x-mac-chinesetrad",3:"x-mac-korean",6:"x-mac-greek",7:"x-mac-cyrillic",9:"x-mac-devanagai",10:"x-mac-gurmukhi",11:"x-mac-gujarati",12:"x-mac-oriya",13:"x-mac-bengali",14:"x-mac-tamil",15:"x-mac-telugu",16:"x-mac-kannada",17:"x-mac-malayalam",18:"x-mac-sinhalese",19:"x-mac-burmese",20:"x-mac-khmer",21:"x-mac-thai",22:"x-mac-lao",23:"x-mac-georgian",24:"x-mac-armenian",25:"x-mac-chinesesimp",26:"x-mac-tibetan",27:"x-mac-mongolian",28:"x-mac-ethiopic",29:"x-mac-ce",30:"x-mac-vietnamese",31:"x-mac-extarabic"},Qe={15:"x-mac-icelandic",17:"x-mac-turkish",18:"x-mac-croatian",24:"x-mac-ce",25:"x-mac-ce",26:"x-mac-ce",27:"x-mac-ce",28:"x-mac-ce",30:"x-mac-icelandic",37:"x-mac-romanian",38:"x-mac-ce",39:"x-mac-ce",40:"x-mac-ce",143:"x-mac-inuit",146:"x-mac-gaelic"};function Je(e,t,r){switch(e){case 0:return Ze;case 1:return Qe[r]||Ke[t];case 3:if(1===t||10===t)return Ze}}function $e(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function et(e,t,r,n,o,a){return new J.Record("NameRecord",[{name:"platformID",type:"USHORT",value:e},{name:"encodingID",type:"USHORT",value:t},{name:"languageID",type:"USHORT",value:r},{name:"nameID",type:"USHORT",value:n},{name:"length",type:"USHORT",value:o},{name:"offset",type:"USHORT",value:a}])}function tt(e,t){var r=function(e,t){var r=e.length,n=t.length-r+1;e:for(var o=0;o<n;o++)for(;o<n;o++){for(var a=0;a<r;a++)if(t[o+a]!==e[a])continue e;return o}return-1}(e,t);if(r<0){r=t.length;for(var n=0,o=e.length;n<o;++n)t.push(e[n])}return r}var rt={parse:function(e,t,r){for(var n={},o=new ie.Parser(e,t),a=o.parseUShort(),i=o.parseUShort(),s=o.offset+o.parseUShort(),l=0;l<i;l++){var p=o.parseUShort(),c=o.parseUShort(),u=o.parseUShort(),d=o.parseUShort(),h=He[d]||d,f=o.parseUShort(),m=o.parseUShort(),y=Ye(p,u,r),g=Je(p,c,u);if(void 0!==g&&void 0!==y){var v=void 0;if(v=g===Ze?k.UTF16(e,s+m,f):k.MACSTRING(e,s+m,f,g)){var b=n[h];void 0===b&&(b=n[h]={}),b[y]=v}}}return 1===a&&o.parseUShort(),n},make:function(e,t){var r,n=[],o={},a=$e(He);for(var i in e){var s=a[i];if(void 0===s&&(s=i),r=parseInt(s),isNaN(r))throw new Error('Name table entry "'+i+'" does not exist, see nameTableNames for complete list.');o[r]=e[i],n.push(r)}for(var l=$e(We),p=$e(Xe),c=[],u=[],d=0;d<n.length;d++){var h=o[r=n[d]];for(var f in h){var m=h[f],y=1,g=l[f],v=qe[g],b=Je(y,v,g),x=L.MACSTRING(m,b);void 0===x&&(y=0,(g=t.indexOf(f))<0&&(g=t.length,t.push(f)),v=4,x=L.UTF16(m));var w=tt(x,u);c.push(et(y,v,g,r,x.length,w));var _=p[f];if(void 0!==_){var S=L.UTF16(m),j=tt(S,u);c.push(et(3,1,_,r,S.length,j))}}}c.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new J.Table("name",[{name:"format",type:"USHORT",value:0},{name:"count",type:"USHORT",value:c.length},{name:"stringOffset",type:"USHORT",value:6+12*c.length}]),T=0;T<c.length;T++)E.fields.push({name:"record_"+T,type:"RECORD",value:c[T]});return E.fields.push({name:"strings",type:"LITERAL",value:u}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},n=new ie.Parser(e,t);r.version=n.parseUShort(),r.xAvgCharWidth=n.parseShort(),r.usWeightClass=n.parseUShort(),r.usWidthClass=n.parseUShort(),r.fsType=n.parseUShort(),r.ySubscriptXSize=n.parseShort(),r.ySubscriptYSize=n.parseShort(),r.ySubscriptXOffset=n.parseShort(),r.ySubscriptYOffset=n.parseShort(),r.ySuperscriptXSize=n.parseShort(),r.ySuperscriptYSize=n.parseShort(),r.ySuperscriptXOffset=n.parseShort(),r.ySuperscriptYOffset=n.parseShort(),r.yStrikeoutSize=n.parseShort(),r.yStrikeoutPosition=n.parseShort(),r.sFamilyClass=n.parseShort(),r.panose=[];for(var o=0;o<10;o++)r.panose[o]=n.parseByte();return r.ulUnicodeRange1=n.parseULong(),r.ulUnicodeRange2=n.parseULong(),r.ulUnicodeRange3=n.parseULong(),r.ulUnicodeRange4=n.parseULong(),r.achVendID=String.fromCharCode(n.parseByte(),n.parseByte(),n.parseByte(),n.parseByte()),r.fsSelection=n.parseUShort(),r.usFirstCharIndex=n.parseUShort(),r.usLastCharIndex=n.parseUShort(),r.sTypoAscender=n.parseShort(),r.sTypoDescender=n.parseShort(),r.sTypoLineGap=n.parseShort(),r.usWinAscent=n.parseUShort(),r.usWinDescent=n.parseUShort(),1<=r.version&&(r.ulCodePageRange1=n.parseULong(),r.ulCodePageRange2=n.parseULong()),2<=r.version&&(r.sxHeight=n.parseShort(),r.sCapHeight=n.parseShort(),r.usDefaultChar=n.parseUShort(),r.usBreakChar=n.parseUShort(),r.usMaxContent=n.parseUShort()),r},make:function(e){return new J.Table("OS/2",[{name:"version",type:"USHORT",value:3},{name:"xAvgCharWidth",type:"SHORT",value:0},{name:"usWeightClass",type:"USHORT",value:0},{name:"usWidthClass",type:"USHORT",value:0},{name:"fsType",type:"USHORT",value:0},{name:"ySubscriptXSize",type:"SHORT",value:650},{name:"ySubscriptYSize",type:"SHORT",value:699},{name:"ySubscriptXOffset",type:"SHORT",value:0},{name:"ySubscriptYOffset",type:"SHORT",value:140},{name:"ySuperscriptXSize",type:"SHORT",value:650},{name:"ySuperscriptYSize",type:"SHORT",value:699},{name:"ySuperscriptXOffset",type:"SHORT",value:0},{name:"ySuperscriptYOffset",type:"SHORT",value:479},{name:"yStrikeoutSize",type:"SHORT",value:49},{name:"yStrikeoutPosition",type:"SHORT",value:258},{name:"sFamilyClass",type:"SHORT",value:0},{name:"bFamilyType",type:"BYTE",value:0},{name:"bSerifStyle",type:"BYTE",value:0},{name:"bWeight",type:"BYTE",value:0},{name:"bProportion",type:"BYTE",value:0},{name:"bContrast",type:"BYTE",value:0},{name:"bStrokeVariation",type:"BYTE",value:0},{name:"bArmStyle",type:"BYTE",value:0},{name:"bLetterform",type:"BYTE",value:0},{name:"bMidline",type:"BYTE",value:0},{name:"bXHeight",type:"BYTE",value:0},{name:"ulUnicodeRange1",type:"ULONG",value:0},{name:"ulUnicodeRange2",type:"ULONG",value:0},{name:"ulUnicodeRange3",type:"ULONG",value:0},{name:"ulUnicodeRange4",type:"ULONG",value:0},{name:"achVendID",type:"CHARARRAY",value:"XXXX"},{name:"fsSelection",type:"USHORT",value:0},{name:"usFirstCharIndex",type:"USHORT",value:0},{name:"usLastCharIndex",type:"USHORT",value:0},{name:"sTypoAscender",type:"SHORT",value:0},{name:"sTypoDescender",type:"SHORT",value:0},{name:"sTypoLineGap",type:"SHORT",value:0},{name:"usWinAscent",type:"USHORT",value:0},{name:"usWinDescent",type:"USHORT",value:0},{name:"ulCodePageRange1",type:"ULONG",value:0},{name:"ulCodePageRange2",type:"ULONG",value:0},{name:"sxHeight",type:"SHORT",value:0},{name:"sCapHeight",type:"SHORT",value:0},{name:"usDefaultChar",type:"USHORT",value:0},{name:"usBreakChar",type:"USHORT",value:0},{name:"usMaxContext",type:"USHORT",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},n=new ie.Parser(e,t);switch(r.version=n.parseVersion(),r.italicAngle=n.parseFixed(),r.underlinePosition=n.parseShort(),r.underlineThickness=n.parseShort(),r.isFixedPitch=n.parseULong(),r.minMemType42=n.parseULong(),r.maxMemType42=n.parseULong(),r.minMemType1=n.parseULong(),r.maxMemType1=n.parseULong(),r.version){case 1:r.names=ue.slice();break;case 2:r.numberOfGlyphs=n.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var o=0;o<r.numberOfGlyphs;o++)r.glyphNameIndex[o]=n.parseUShort();r.names=[];for(var a=0;a<r.numberOfGlyphs;a++)if(r.glyphNameIndex[a]>=ue.length){var i=n.parseChar();r.names.push(n.parseString(i))}break;case 2.5:r.numberOfGlyphs=n.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=n.parseChar()}return r},make:function(){return new J.Table("post",[{name:"version",type:"FIXED",value:196608},{name:"italicAngle",type:"FIXED",value:0},{name:"underlinePosition",type:"FWORD",value:0},{name:"underlineThickness",type:"FWORD",value:0},{name:"isFixedPitch",type:"ULONG",value:0},{name:"minMemType42",type:"ULONG",value:0},{name:"maxMemType42",type:"ULONG",value:0},{name:"minMemType1",type:"ULONG",value:0},{name:"maxMemType1",type:"ULONG",value:0}])}},it=new Array(9);it[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void N.assert(!1,"0x"+e.toString(16)+": lookup type 1 format must be 1 or 2.")},it[2]=function(){var e=this.parseUShort();return N.argument(1===e,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},it[3]=function(){var e=this.parseUShort();return N.argument(1===e,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},it[4]=function(){var e=this.parseUShort();return N.argument(1===e,"GSUB ligature table identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var st={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};it[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,st)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,st)}})};if(3===t){var r=this.parseUShort(),n=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(n,st)}}N.assert(!1,"0x"+e.toString(16)+": lookup type 5 format must be 1, 2 or 3.")},it[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(st)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(st)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(st)}:void N.assert(!1,"0x"+e.toString(16)+": lookup type 6 format must be 1, 2 or 3.")},it[7]=function(){var e=this.parseUShort();N.argument(1===e,"GSUB Extension Substitution subtable identifier-format must be 1");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:it[t].call(r)}},it[8]=function(){var e=this.parseUShort();return N.argument(1===e,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var lt=new Array(9);lt[1]=function(e){return 1===e.substFormat?new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)},{name:"deltaGlyphID",type:"USHORT",value:e.deltaGlyphId}]):new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:2},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)}].concat(J.ushortList("substitute",e.substitute)))},lt[3]=function(e){return N.assert(1===e.substFormat,"Lookup type 3 substFormat must be 1."),new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)}].concat(J.tableList("altSet",e.alternateSets,function(e){return new J.Table("alternateSetTable",J.ushortList("alternate",e))})))},lt[4]=function(e){return N.assert(1===e.substFormat,"Lookup type 4 substFormat must be 1."),new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)}].concat(J.tableList("ligSet",e.ligatureSets,function(e){return new J.Table("ligatureSetTable",J.tableList("ligature",e,function(e){return new J.Table("ligatureTable",[{name:"ligGlyph",type:"USHORT",value:e.ligGlyph}].concat(J.ushortList("component",e.components,e.components.length+1)))}))})))};var pt={parse:function(e,t){var r=new oe(e,t=t||0),n=r.parseVersion(1);return N.argument(1===n||1.1===n,"Unsupported GSUB table version."),1===n?{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(it)}:{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(it),variations:r.parseFeatureVariationsList()}},make:function(e){return new J.Table("GSUB",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new J.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new J.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new J.LookupList(e.lookups,lt)}])}};var ct={parse:function(e,t){var r=new ie.Parser(e,t),n=r.parseULong();N.argument(1===n,"Unsupported META table version."),r.parseULong(),r.parseULong();for(var o=r.parseULong(),a={},i=0;i<o;i++){var s=r.parseTag(),l=r.parseULong(),p=r.parseULong(),c=k.UTF8(e,t+l,p);a[s]=c}return a},make:function(e){var t=Object.keys(e).length,r="",n=16+12*t,o=new J.Table("meta",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"offset",type:"ULONG",value:n},{name:"numTags",type:"ULONG",value:t}]);for(var a in e){var i=r.length;r+=e[a],o.fields.push({name:"tag "+a,type:"TAG",value:a}),o.fields.push({name:"offset "+a,type:"ULONG",value:n+i}),o.fields.push({name:"length "+a,type:"ULONG",value:e[a].length})}return o.fields.push({name:"stringPool",type:"CHARARRAY",value:r}),o}};function ut(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function ht(e,t,r,n){return new J.Record("Table Record",[{name:"tag",type:"TAG",value:void 0!==e?e:""},{name:"checkSum",type:"ULONG",value:void 0!==t?t:0},{name:"offset",type:"ULONG",value:void 0!==r?r:0},{name:"length",type:"ULONG",value:void 0!==n?n:0}])}function ft(e){var t=new J.Table("sfnt",[{name:"version",type:"TAG",value:"OTTO"},{name:"numTables",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ut(t.numTables));t.searchRange=16*r,t.entrySelector=ut(r),t.rangeShift=16*t.numTables-t.searchRange;for(var n=[],o=[],a=t.sizeOf()+ht().sizeOf()*t.numTables;a%4!=0;)a+=1,o.push({name:"padding",type:"BYTE",value:0});for(var i=0;i<e.length;i+=1){var s=e[i];N.argument(4===s.tableName.length,"Table name"+s.tableName+" is invalid.");var l=s.sizeOf(),p=ht(s.tableName,dt(s.encode()),a,l);for(n.push({name:p.tag+" Table Record",type:"RECORD",value:p}),o.push({name:s.tableName+" table",type:"RECORD",value:s}),a+=l,N.argument(!isNaN(a),"Something went wrong calculating the offset.");a%4!=0;)a+=1,o.push({name:"padding",type:"BYTE",value:0})}return n.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(n),t.fields=t.fields.concat(o),t}function mt(e,t,r){for(var n=0;n<t.length;n+=1){var o=e.charToGlyphIndex(t[n]);if(0<o)return e.glyphs.get(o).getMetrics()}return r}var yt={make:ft,fontToTable:function(e){for(var t,r=[],n=[],o=[],a=[],i=[],s=[],l=[],p=0,c=0,u=0,d=0,h=0,f=0;f<e.glyphs.length;f+=1){var m=e.glyphs.get(f),y=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error("Glyph "+m.name+" ("+f+"): advanceWidth is not a number.");(y<t||void 0===t)&&0<y&&(t=y),p<y&&(p=y);var g=ot.getUnicodeRange(y);if(g<32)c|=1<<g;else if(g<64)u|=1<<g-32;else if(g<96)d|=1<<g-64;else{if(!(g<123))throw new Error("Unicode ranges bits > 123 are reserved for internal usage");h|=1<<g-96}if(".notdef"!==m.name){var v=m.getMetrics();r.push(v.xMin),n.push(v.yMin),o.push(v.xMax),a.push(v.yMax),s.push(v.leftSideBearing),l.push(v.rightSideBearing),i.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,o),yMax:Math.max.apply(null,a),advanceWidthMax:Math.max.apply(null,i),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(i),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var x=Ue.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),w=Be.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),_=ze.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:p,ulUnicodeRange1:c,ulUnicodeRange2:u,ulUnicodeRange3:d,ulUnicodeRange4:h,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:mt(e,"xyvw",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:mt(e,"HIKLEFJMNTZBDPRAGOQSUVWXY",b).yMax,usDefaultChar:e.hasChar(" ")?32:0,usBreakChar:e.hasChar(" ")?32:0}),j=Ge.make(e.glyphs),E=se.make(e.glyphs),T=e.getEnglishName("fontFamily"),M=e.getEnglishName("fontSubfamily"),C=T+" "+M,O=e.getEnglishName("postScriptName");O=O||T.replace(/\s/g,"")+"-"+M;var N={};for(var k in e.names)N[k]=e.names[k];N.uniqueID||(N.uniqueID={en:e.getEnglishName("manufacturer")+":"+C}),N.postScriptName||(N.postScriptName={en:O}),N.preferredFamily||(N.preferredFamily=e.names.fontFamily),N.preferredSubfamily||(N.preferredSubfamily=e.names.fontSubfamily);var L=[],A=rt.make(N,L),I=0<L.length?Ve.make(L):void 0,R=at.make(),P=Fe.make(e.glyphs,{version:e.getEnglishName("version"),fullName:C,familyName:T,weightName:M,postScriptName:O,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),D=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[x,w,_,S,A,E,R,P,j];I&&F.push(I),e.tables.gsub&&F.push(pt.make(e.tables.gsub)),D&&F.push(D);for(var U=ft(F),B=dt(U.encode()),G=U.fields,V=!1,z=0;z<G.length;z+=1)if("head table"===G[z].name){G[z].value.checkSumAdjustment=2981146554-B,V=!0;break}if(!V)throw new Error("Could not find head table with checkSum to adjust.");return U},computeCheckSum:dt};function gt(e,t){for(var r=0,n=e.length-1;r<=n;){var o=r+n>>>1,a=e[o].tag;if(a===t)return o;a<t?r=1+o:n=o-1}return-r-1}function vt(e,t){for(var r=0,n=e.length-1;r<=n;){var o=r+n>>>1,a=e[o];if(a===t)return o;a<t?r=1+o:n=o-1}return-r-1}function bt(e,t){for(var r,n=0,o=e.length-1;n<=o;){var a=n+o>>>1,i=(r=e[a]).start;if(i===t)return r;i<t?n=1+a:o=a-1}if(0<n)return t>(r=e[n-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,"gpos")}function _t(e){xt.call(this,e,"gsub")}function St(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function jt(e,t,r){for(var n=e.subtables,o=0;o<n.length;o++){var a=n[o];if(a.substFormat===t)return a}if(r)return n.push(r),r}function Et(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n<e.length;++n)r[n]=e[n];return t}function Tt(e,t){if(!e)throw t}function Mt(e,t,r,n,o){var a;return a=0<(t&n)?(a=e.parseByte(),0==(t&o)&&(a=-a),r+a):0<(t&o)?r:r+e.parseShort()}function Ct(e,t,r){var n,o,a=new ie.Parser(t,r);if(e.numberOfContours=a.parseShort(),e._xMin=a.parseShort(),e._yMin=a.parseShort(),e._xMax=a.parseShort(),e._yMax=a.parseShort(),0<e.numberOfContours){for(var i=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)i.push(a.parseUShort());e.instructionLength=a.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(a.parseByte());var p=i[i.length-1]+1;n=[];for(var c=0;c<p;c+=1)if(o=a.parseByte(),n.push(o),0<(8&o))for(var u=a.parseByte(),d=0;d<u;d+=1)n.push(o),c+=1;if(N.argument(n.length===p,"Bad flags."),0<i.length){var h,f=[];if(0<p){for(var m=0;m<p;m+=1)o=n[m],(h={}).onCurve=!!(1&o),h.lastPointOfContour=0<=i.indexOf(m),f.push(h);for(var y=0,g=0;g<p;g+=1)o=n[g],(h=f[g]).x=Mt(a,o,y,2,16),y=h.x;for(var v=0,b=0;b<p;b+=1)o=n[b],(h=f[b]).y=Mt(a,o,v,4,32),v=h.y}e.points=f}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var x=!0;x;){n=a.parseUShort();var w={glyphIndex:a.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&n)?0<(2&n)?(w.dx=a.parseShort(),w.dy=a.parseShort()):w.matchedPoints=[a.parseUShort(),a.parseUShort()]:0<(2&n)?(w.dx=a.parseChar(),w.dy=a.parseChar()):w.matchedPoints=[a.parseByte(),a.parseByte()],0<(8&n)?w.xScale=w.yScale=a.parseF2Dot14():0<(64&n)?(w.xScale=a.parseF2Dot14(),w.yScale=a.parseF2Dot14()):0<(128&n)&&(w.xScale=a.parseF2Dot14(),w.scale01=a.parseF2Dot14(),w.scale10=a.parseF2Dot14(),w.yScale=a.parseF2Dot14()),e.components.push(w),x=!!(32&n)}if(256&n){e.instructionLength=a.parseUShort(),e.instructions=[];for(var _=0;_<e.instructionLength;_+=1)e.instructions.push(a.parseByte())}}}function Ot(e,t){for(var r=[],n=0;n<e.length;n+=1){var o=e[n],a={x:t.xScale*o.x+t.scale01*o.y+t.dx,y:t.scale10*o.x+t.yScale*o.y+t.dy,onCurve:o.onCurve,lastPointOfContour:o.lastPointOfContour};r.push(a)}return r}function Nt(e){var t=new R;if(!e)return t;for(var r=function(e){for(var t=[],r=[],n=0;n<e.length;n+=1){var o=e[n];r.push(o),o.lastPointOfContour&&(t.push(r),r=[])}return N.argument(0===r.length,"There are still points left in the current contour."),t}(e),n=0;n<r.length;++n){var o=r[n],a=null,i=o[o.length-1],s=o[0];if(i.onCurve)t.moveTo(i.x,i.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(i.x+s.x),y:.5*(i.y+s.y)};t.moveTo(l.x,l.y)}for(var p=0;p<o.length;++p)if(a=i,i=s,s=o[(p+1)%o.length],i.onCurve)t.lineTo(i.x,i.y);else{var c=s;a.onCurve||{x:.5*(i.x+a.x),y:.5*(i.y+a.y)},s.onCurve||(c={x:.5*(i.x+s.x),y:.5*(i.y+s.y)}),t.quadraticCurveTo(i.x,i.y,c.x,c.y)}t.closePath()}return t}function kt(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var n=t.components[r],o=e.get(n.glyphIndex);if(o.getPath(),o.points){var a=void 0;if(void 0===n.matchedPoints)a=Ot(o.points,n);else{if(n.matchedPoints[0]>t.points.length-1||n.matchedPoints[1]>o.points.length-1)throw Error("Matched points out of range in "+t.name);var i=t.points[n.matchedPoints[0]],s=o.points[n.matchedPoints[1]],l={xScale:n.xScale,scale01:n.scale01,scale10:n.scale10,yScale:n.yScale,dx:0,dy:0};s=Ot([s],l)[0],l.dx=i.x-s.x,l.dy=i.y-s.y,a=Ot(o.points,l)}t.points=t.points.concat(a)}}return Nt(t.points)}(wt.prototype=xt.prototype={searchTag:gt,binSearch:vt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var n=e.scripts[r].tag;if("DFLT"===n)return n;"latn"===n&&(t=!0)}return t?"latn":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||"DFLT";var n=r.scripts,o=gt(r.scripts,e);if(0<=o)return n[o].script;if(t){var a={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return n.splice(-1-o,0,a),a.script}}},getLangSysTable:function(e,t,r){var n=this.getScriptTable(e,r);if(n){if(!t||"dflt"===t||"DFLT"===t)return n.defaultLangSys;var o=gt(n.langSysRecords,t);if(0<=o)return n.langSysRecords[o].langSys;if(r){var a={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return n.langSysRecords.splice(-1-o,0,a),a.langSys}}},getFeatureTable:function(e,t,r,n){var o=this.getLangSysTable(e,t,n);if(o){for(var a,i=o.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<i.length;l++)if((a=s[i[l]]).tag===r)return a.feature;if(n){var p=s.length;return N.assert(0===p||r>=s[p-1].tag,"Features must be added in alphabetical order."),a={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(a),i.push(p),a.feature}}},getLookupTables:function(e,t,r,n,o){var a=this.getFeatureTable(e,t,r,o),i=[];if(a){for(var s,l=a.lookupListIndexes,p=this.font.tables[this.tableName].lookups,c=0;c<l.length;c++)(s=p[l[c]]).lookupType===n&&i.push(s);if(0===i.length&&o){s={lookupType:n,lookupFlag:0,subtables:[],markFilteringSet:void 0};var u=p.length;return p.push(s),l.push(u),[s]}}return i},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=bt(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=vt(e.glyphs,t);return 0<=r?r:-1;case 2:var n=bt(e.ranges,t);return n?n.index+t-n.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,n=0;n<r.length;n++)for(var o=r[n],a=o.start,i=o.end,s=a;s<=i;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var n=0;n<e.length;n++)for(var o=e[n].subtables,a=0;a<o.length;a++){var i=o[a],s=this.getCoverageIndex(i.coverage,t);if(!(s<0))switch(i.posFormat){case 1:for(var l=i.pairSets[s],p=0;p<l.length;p++){var c=l[p];if(c.secondGlyph===r)return c.value1&&c.value1.xAdvance||0}break;case 2:var u=this.getGlyphClass(i.classDef1,t),d=this.getGlyphClass(i.classDef2,r),h=i.classRecords[u][d];return h.value1&&h.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,"kern",2)},(_t.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},_t.prototype.getSingle=function(e,t,r){for(var n=[],o=this.getLookupTables(t,r,e,1),a=0;a<o.length;a++)for(var i=o[a].subtables,s=0;s<i.length;s++){var l=i[s],p=this.expandCoverage(l.coverage),c=void 0;if(1===l.substFormat){var u=l.deltaGlyphId;for(c=0;c<p.length;c++){var d=p[c];n.push({sub:d,by:d+u})}}else{var h=l.substitute;for(c=0;c<p.length;c++)n.push({sub:p[c],by:h[c]})}}return n},_t.prototype.getAlternates=function(e,t,r){for(var n=[],o=this.getLookupTables(t,r,e,3),a=0;a<o.length;a++)for(var i=o[a].subtables,s=0;s<i.length;s++)for(var l=i[s],p=this.expandCoverage(l.coverage),c=l.alternateSets,u=0;u<p.length;u++)n.push({sub:p[u],by:c[u]});return n},_t.prototype.getLigatures=function(e,t,r){for(var n=[],o=this.getLookupTables(t,r,e,4),a=0;a<o.length;a++)for(var i=o[a].subtables,s=0;s<i.length;s++)for(var l=i[s],p=this.expandCoverage(l.coverage),c=l.ligatureSets,u=0;u<p.length;u++)for(var d=p[u],h=c[u],f=0;f<h.length;f++){var m=h[f];n.push({sub:[d].concat(m.components),by:m.ligGlyph})}return n},_t.prototype.addSingle=function(e,t,r,n){var o=jt(this.getLookupTables(r,n,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});N.assert(1===o.coverage.format,"Ligature: unable to modify coverage table format "+o.coverage.format);var a=t.sub,i=this.binSearch(o.coverage.glyphs,a);i<0&&(i=-1-i,o.coverage.glyphs.splice(i,0,a),o.substitute.splice(i,0,0)),o.substitute[i]=t.by},_t.prototype.addAlternate=function(e,t,r,n){var o=jt(this.getLookupTables(r,n,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});N.assert(1===o.coverage.format,"Ligature: unable to modify coverage table format "+o.coverage.format);var a=t.sub,i=this.binSearch(o.coverage.glyphs,a);i<0&&(i=-1-i,o.coverage.glyphs.splice(i,0,a),o.alternateSets.splice(i,0,0)),o.alternateSets[i]=t.by},_t.prototype.addLigature=function(e,t,r,n){var o=this.getLookupTables(r,n,e,4,!0)[0],a=o.subtables[0];a||(a={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},o.subtables[0]=a),N.assert(1===a.coverage.format,"Ligature: unable to modify coverage table format "+a.coverage.format);var i=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},p=this.binSearch(a.coverage.glyphs,i);if(0<=p){for(var c=a.ligatureSets[p],u=0;u<c.length;u++)if(St(c[u].components,s))return;c.push(l)}else p=-1-p,a.coverage.glyphs.splice(p,0,i),a.ligatureSets.splice(p,0,[l])},_t.prototype.getFeature=function(e,t,r){if(/ss\d\d/.test(e))return this.getSingle(e,t,r);switch(e){case"aalt":case"salt":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case"dlig":case"liga":case"rlig":return this.getLigatures(e,t,r)}},_t.prototype.add=function(e,t,r,n){if(/ss\d\d/.test(e))return this.addSingle(e,t,r,n);switch(e){case"aalt":case"salt":return"number"==typeof t.by?this.addSingle(e,t,r,n):this.addAlternate(e,t,r,n);case"dlig":case"liga":case"rlig":return this.addLigature(e,t,r,n)}};var Lt,At,It,Rt,Pt={getPath:Nt,parse:function(e,t,r,n){for(var o=new xe.GlyphSet(n),a=0;a<r.length-1;a+=1){var i=r[a];i!==r[a+1]?o.push(a,xe.ttfGlyphLoader(n,a,Ct,e,t+i,kt)):o.push(a,xe.glyphLoader(n,a))}return o}};function Dt(e){this.font=e,this.getCommands=function(e){return Pt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Ft(e){return e}function Ut(e){return Math.sign(e)*Math.round(Math.abs(e))}function Bt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Gt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function Vt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function zt(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Ht(e){var t=this.srPeriod,r=this.srPhase,n=1;return e<0&&(e=-e,n=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*n:e*n}var Wt={x:1,y:0,axis:"x",distance:function(e,t,r,n){return(r?e.xo:e.x)-(n?t.xo:t.x)},interpolate:function(e,t,r,n){var o,a,i,s,l,p,c;if(!n||n===this)return o=e.xo-t.xo,a=e.xo-r.xo,l=t.x-t.xo,p=r.x-r.xo,0===(c=(i=Math.abs(o))+(s=Math.abs(a)))?void(e.x=e.xo+(l+p)/2):void(e.x=e.xo+(l*s+p*i)/c);o=n.distance(e,t,!0,!0),a=n.distance(e,r,!0,!0),l=n.distance(t,t,!1,!0),p=n.distance(r,r,!1,!0),0!==(c=(i=Math.abs(o))+(s=Math.abs(a)))?Wt.setRelative(e,e,(l*s+p*i)/c,n,!0):Wt.setRelative(e,e,(l+p)/2,n,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,n,o){if(n&&n!==this){var a=o?t.xo:t.x,i=o?t.yo:t.y,s=a+r*n.x,l=i+r*n.y;e.x=s+(e.y-l)/n.normalSlope}else e.x=(o?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:"y",distance:function(e,t,r,n){return(r?e.yo:e.y)-(n?t.yo:t.y)},interpolate:function(e,t,r,n){var o,a,i,s,l,p,c;if(!n||n===this)return o=e.yo-t.yo,a=e.yo-r.yo,l=t.y-t.yo,p=r.y-r.yo,0===(c=(i=Math.abs(o))+(s=Math.abs(a)))?void(e.y=e.yo+(l+p)/2):void(e.y=e.yo+(l*s+p*i)/c);o=n.distance(e,t,!0,!0),a=n.distance(e,r,!0,!0),l=n.distance(t,t,!1,!0),p=n.distance(r,r,!1,!0),0!==(c=(i=Math.abs(o))+(s=Math.abs(a)))?qt.setRelative(e,e,(l*s+p*i)/c,n,!0):qt.setRelative(e,e,(l+p)/2,n,!0)},normalSlope:0,setRelative:function(e,t,r,n,o){if(n&&n!==this){var a=o?t.xo:t.x,i=o?t.yo:t.y,s=a+r*n.x,l=i+r*n.y;e.y=l+n.normalSlope*(e.x-s)}else e.y=(o?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Xt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Yt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Wt:0===e&&1===t?qt:new Xt(e,t)}function Zt(e,t,r,n){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=n,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Wt),Object.freeze(qt),Xt.prototype.distance=function(e,t,r,n){return this.x*Wt.distance(e,t,r,n)+this.y*qt.distance(e,t,r,n)},Xt.prototype.interpolate=function(e,t,r,n){var o,a,i,s,l,p,c;i=n.distance(e,t,!0,!0),s=n.distance(e,r,!0,!0),o=n.distance(t,t,!1,!0),a=n.distance(r,r,!1,!0),0!==(c=(l=Math.abs(i))+(p=Math.abs(s)))?this.setRelative(e,e,(o*p+a*l)/c,n,!0):this.setRelative(e,e,(o+a)/2,n,!0)},Xt.prototype.setRelative=function(e,t,r,n,o){n=n||this;var a=o?t.xo:t.x,i=o?t.yo:t.y,s=a+r*n.x,l=i+r*n.y,p=n.normalSlope,c=this.slope,u=e.x,d=e.y;e.x=(c*u-p*s+l-d)/(c-p),e.y=c*(e.x-u)+d},Xt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Zt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Zt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Zt(0,0)),Qt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function Jt(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=Wt,this.round=Ut}}function $t(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Zt(0,0)}function er(e,t){var r,n=e.prog,o=e.ip,a=1;do{if(88===(r=n[++o]))a++;else if(89===r)a--;else if(64===r)o+=n[o+1]+1;else if(65===r)o+=2*n[o+1]+1;else if(176<=r&&r<=183)o+=r-176+1;else if(184<=r&&r<=191)o+=2*(r-184+1);else if(t&&1===a&&27===r)break}while(0<a);e.ip=o}function tr(e,t){E.DEBUG&&console.log(t.step,"SVTCA["+e.axis+"]"),t.fv=t.pv=t.dpv=e}function rr(e,t){E.DEBUG&&console.log(t.step,"SPVTCA["+e.axis+"]"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,"SFVTCA["+e.axis+"]"),t.fv=e}function or(e,t){var r,n,o=t.stack,a=o.pop(),i=o.pop(),s=t.z2[a],l=t.z1[i];E.DEBUG&&console.log("SPVTL["+e+"]",a,i),n=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Yt(r,n)}function ar(e,t){var r,n,o=t.stack,a=o.pop(),i=o.pop(),s=t.z2[a],l=t.z1[i];E.DEBUG&&console.log("SFVTL["+e+"]",a,i),n=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Yt(r,n)}function ir(e){E.DEBUG&&console.log(e.step,"POP[]"),e.stack.pop()}function sr(e,t){var r=t.stack.pop(),n=t.z0[r],o=t.fv,a=t.pv;E.DEBUG&&console.log(t.step,"MDAP["+e+"]",r);var i=a.distance(n,Kt);e&&(i=t.round(i)),o.setRelative(n,Kt,i,a),o.touch(n),t.rp0=t.rp1=r}function lr(e,t){var r,n,o,a=t.z2,i=a.length-2;E.DEBUG&&console.log(t.step,"IUP["+e.axis+"]");for(var s=0;s<i;s++)r=a[s],e.touched(r)||(n=r.prevTouched(e))!==r&&(n===(o=r.nextTouched(e))&&e.setRelative(r,r,e.distance(n,n,!1,!0),e,!0),e.interpolate(r,n,o,e))}function pr(e,t){for(var r=t.stack,n=e?t.rp1:t.rp2,o=(e?t.z0:t.z1)[n],a=t.fv,i=t.pv,s=t.loop,l=t.z2;s--;){var p=r.pop(),c=l[p],u=i.distance(o,o,!1,!0);a.setRelative(c,c,u,i),a.touch(c),E.DEBUG&&console.log(t.step,(1<t.loop?"loop "+(t.loop-s)+": ":"")+"SHP["+(e?"rp1":"rp2")+"]",p)}t.loop=1}function cr(e,t){var r=t.stack,n=e?t.rp1:t.rp2,o=(e?t.z0:t.z1)[n],a=t.fv,i=t.pv,s=r.pop(),l=t.z2[t.contours[s]],p=l;E.DEBUG&&console.log(t.step,"SHC["+e+"]",s);for(var c=i.distance(o,o,!1,!0);p!==o&&a.setRelative(p,p,c,i),(p=p.nextPointOnContour)!==l;);}function ur(e,t){var r,n,o=t.stack,a=e?t.rp1:t.rp2,i=(e?t.z0:t.z1)[a],s=t.fv,l=t.pv,p=o.pop();switch(E.DEBUG&&console.log(t.step,"SHZ["+e+"]",p),p){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error("Invalid zone")}for(var c=l.distance(i,i,!1,!0),u=r.length-2,d=0;d<u;d++)n=r[d],s.setRelative(n,n,c,l)}function dr(e,t){var r=t.stack,n=r.pop()/64,o=r.pop(),a=t.z1[o],i=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(a,i,n,l),s.touch(a),E.DEBUG&&console.log(t.step,"MSIRP["+e+"]",n,o),t.rp1=t.rp0,t.rp2=o,e&&(t.rp0=o)}function hr(e,t){var r=t.stack,n=r.pop(),o=r.pop(),a=t.z0[o],i=t.fv,s=t.pv,l=t.cvt[n];E.DEBUG&&console.log(t.step,"MIAP["+e+"]",n,"(",l,")",o);var p=s.distance(a,Kt);e&&(Math.abs(p-l)<t.cvCutIn&&(p=l),p=t.round(p)),i.setRelative(a,Kt,p,s),0===t.zp0&&(a.xo=a.x,a.yo=a.y),i.touch(a),t.rp0=t.rp1=o}function fr(e,t){var r=t.stack,n=r.pop(),o=t.z2[n];E.DEBUG&&console.log(t.step,"GC["+e+"]",n),r.push(64*t.dpv.distance(o,Kt,e,!1))}function mr(e,t){var r=t.stack,n=r.pop(),o=r.pop(),a=t.z1[n],i=t.z0[o],s=t.dpv.distance(i,a,e,e);E.DEBUG&&console.log(t.step,"MD["+e+"]",n,o,"->",s),t.stack.push(Math.round(64*s))}function yr(e,t){var r=t.stack,n=r.pop(),o=t.fv,a=t.pv,i=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,p=t.z0;E.DEBUG&&console.log(t.step,"DELTAP["+e+"]",n,r);for(var c=0;c<n;c++){var u=r.pop(),d=r.pop();if(s+((240&d)>>4)===i){var h=(15&d)-8;0<=h&&h++,E.DEBUG&&console.log(t.step,"DELTAPFIX",u,"by",h*l);var f=p[u];o.setRelative(f,f,h*l,a)}}}function gr(e,t){var r=t.stack,n=r.pop();E.DEBUG&&console.log(t.step,"ROUND[]"),r.push(64*t.round(n/64))}function vr(e,t){var r=t.stack,n=r.pop(),o=t.ppem,a=t.deltaBase+16*(e-1),i=t.deltaShift;E.DEBUG&&console.log(t.step,"DELTAC["+e+"]",n,r);for(var s=0;s<n;s++){var l=r.pop(),p=r.pop();if(a+((240&p)>>4)===o){var c=(15&p)-8;0<=c&&c++;var u=c*i;E.DEBUG&&console.log(t.step,"DELTACFIX",l,"by",u),t.cvt[l]+=u}}}function br(e,t){var r,n,o=t.stack,a=o.pop(),i=o.pop(),s=t.z2[a],l=t.z1[i];E.DEBUG&&console.log(t.step,"SDPVTL["+e+"]",a,i),n=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Yt(r,n)}function xr(e,t){var r=t.stack,n=t.prog,o=t.ip;E.DEBUG&&console.log(t.step,"PUSHB["+e+"]");for(var a=0;a<e;a++)r.push(n[++o]);t.ip=o}function wr(e,t){var r=t.ip,n=t.prog,o=t.stack;E.DEBUG&&console.log(t.ip,"PUSHW["+e+"]");for(var a=0;a<e;a++){var i=n[++r]<<8|n[++r];32768&i&&(i=-(1+(65535^i))),o.push(i)}t.ip=r}function _r(e,t,r,n,o,a){var i,s,l,p,c=a.stack,u=e&&c.pop(),d=c.pop(),h=a.rp0,f=a.z0[h],m=a.z1[d],y=a.minDis,g=a.fv,v=a.dpv;l=0<=(s=i=v.distance(m,f,!0,!0))?1:-1,s=Math.abs(s),e&&(p=a.cvt[u],n&&Math.abs(s-p)<a.cvCutIn&&(s=p)),r&&s<y&&(s=y),n&&(s=a.round(s)),g.setRelative(m,f,l*s,v),g.touch(m),E.DEBUG&&console.log(a.step,(e?"MIRP[":"MDRP[")+(t?"M":"m")+(r?">":"_")+(n?"R":"_")+(0===o?"Gr":1===o?"Bl":2===o?"Wh":"")+"]",e?u+"("+a.cvt[u]+","+p+")":"",d,"(d =",i,"->",l*s,")"),a.rp1=a.rp0,a.rp2=d,t&&(a.rp0=d)}Dt.prototype.exec=function(e,t){if("number"!=typeof t)throw new Error("Point size is not a number!");if(!(2<this._errorState)){var r=this.font,n=this._prepState;if(!n||n.ppem!==t){var o=this._fpgmState;if(!o){Jt.prototype=Qt,(o=this._fpgmState=new Jt("fpgm",r.tables.fpgm)).funcs=[],o.font=r,E.DEBUG&&(console.log("---EXEC FPGM---"),o.step=-1);try{At(o)}catch(e){return console.log("Hinting error in FPGM:"+e),void(this._errorState=3)}}Jt.prototype=o,(n=this._prepState=new Jt("prep",r.tables.prep)).ppem=t;var a=r.tables.cvt;if(a)for(var i=n.cvt=new Array(a.length),s=t/r.unitsPerEm,l=0;l<a.length;l++)i[l]=a[l]*s;else n.cvt=[];E.DEBUG&&(console.log("---EXEC PREP---"),n.step=-1);try{At(n)}catch(e){this._errorState<2&&console.log("Hinting error in PREP:"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,n)}catch(e){return this._errorState<1&&(console.log("Hinting error:"+e),console.log("Note: further hinting errors are silenced")),void(this._errorState=1)}}},It=function(e,t){var r,n,o,a=t.ppem/t.font.unitsPerEm,i=a,s=e.components;if(Jt.prototype=t,s){var l=t.font;n=[],r=[];for(var p=0;p<s.length;p++){var c=s[p],u=l.glyphs.get(c.glyphIndex);o=new Jt("glyf",u.instructions),E.DEBUG&&(console.log("---EXEC COMP "+p+"---"),o.step=-1),Rt(u,o,a,i);for(var d=Math.round(c.dx*a),h=Math.round(c.dy*i),f=o.gZone,m=o.contours,y=0;y<f.length;y++){var g=f[y];g.xTouched=g.yTouched=!1,g.xo=g.x=g.x+d,g.yo=g.y=g.y+h}var v=n.length;n.push.apply(n,f);for(var b=0;b<m.length;b++)r.push(m[b]+v)}e.instructions&&!o.inhibitGridFit&&((o=new Jt("glyf",e.instructions)).gZone=o.z0=o.z1=o.z2=n,o.contours=r,n.push(new Zt(0,0),new Zt(Math.round(e.advanceWidth*a),0)),E.DEBUG&&(console.log("---EXEC COMPOSITE---"),o.step=-1),At(o),n.length-=2)}else o=new Jt("glyf",e.instructions),E.DEBUG&&(console.log("---EXEC GLYPH---"),o.step=-1),Rt(e,o,a,i),n=o.gZone;return n},Rt=function(e,t,r,n){for(var o,a,i,s=e.points||[],l=s.length,p=t.gZone=t.z0=t.z1=t.z2=[],c=t.contours=[],u=0;u<l;u++)o=s[u],p[u]=new Zt(o.x*r,o.y*n,o.lastPointOfContour,o.onCurve);for(var d=0;d<l;d++)o=p[d],a||(a=o,c.push(d)),o.lastPointOfContour?((o.nextPointOnContour=a).prevPointOnContour=o,a=void 0):(i=p[d+1],(o.nextPointOnContour=i).prevPointOnContour=o);if(!t.inhibitGridFit){if(E.DEBUG){console.log("PROCESSING GLYPH",t.stack);for(var h=0;h<l;h++)console.log(h,p[h].x,p[h].y)}if(p.push(new Zt(0,0),new Zt(Math.round(e.advanceWidth*r),0)),At(t),p.length-=2,E.DEBUG){console.log("FINISHED GLYPH",t.stack);for(var f=0;f<l;f++)console.log(f,p[f].x,p[f].y)}}},At=function(e){var t=e.prog;if(t){var r,n=t.length;for(e.ip=0;e.ip<n;e.ip++){if(E.DEBUG&&e.step++,!(r=Lt[t[e.ip]]))throw new Error("unknown instruction: 0x"+Number(t[e.ip]).toString(16));r(e)}}},Lt=[tr.bind(void 0,qt),tr.bind(void 0,Wt),rr.bind(void 0,qt),rr.bind(void 0,Wt),nr.bind(void 0,qt),nr.bind(void 0,Wt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"SPVFS[]",r,n),e.pv=e.dpv=Yt(n,r)},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"SPVFS[]",r,n),e.fv=Yt(n,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,"GPV[]"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,"GFV[]"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,"SFVTPV[]")},function(e){var t=e.stack,r=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),i=t.pop(),s=e.z0,l=e.z1,p=s[r],c=s[n],u=l[o],d=l[a],h=e.z2[i];E.DEBUG&&console.log("ISECT[], ",r,n,o,a,i);var f=p.x,m=p.y,y=c.x,g=c.y,v=u.x,b=u.y,x=d.x,w=d.y,_=(f-y)*(b-w)-(m-g)*(v-x),S=f*g-m*y,j=v*w-b*x;h.x=(S*(v-x)-j*(f-y))/_,h.y=(S*(b-w)-j*(m-g))/_},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,"SRP0[]",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,"SRP1[]",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,"SRP2[]",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,"SZP0[]",t),e.zp0=t){case 0:e.tZone||$t(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error("Invalid zone pointer")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,"SZP1[]",t),e.zp1=t){case 0:e.tZone||$t(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error("Invalid zone pointer")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,"SZP2[]",t),e.zp2=t){case 0:e.tZone||$t(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error("Invalid zone pointer")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,"SZPS[]",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||$t(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error("Invalid zone pointer")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,"SLOOP[]",e.loop)},function(e){E.DEBUG&&console.log(e.step,"RTG[]"),e.round=Ut},function(e){E.DEBUG&&console.log(e.step,"RTHG[]"),e.round=Gt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,"SMD[]",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,"ELSE[]"),er(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,"JMPR[]",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,"SCVTCI[]",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,"DUP[]"),t.push(t[t.length-1])},ir,function(e){E.DEBUG&&console.log(e.step,"CLEAR[]"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"SWAP[]"),t.push(r),t.push(n)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,"DEPTH[]"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,"CINDEX[]",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,"MINDEX[]",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"LOOPCALL[]",r,n);var o=e.ip,a=e.prog;e.prog=e.funcs[r];for(var i=0;i<n;i++)At(e),E.DEBUG&&console.log(++e.step,i+1<n?"next loopcall":"done loopcall",i);e.ip=o,e.prog=a},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,"CALL[]",t);var r=e.ip,n=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=n,E.DEBUG&&console.log(++e.step,"returning from",t)},function(e){if("fpgm"!==e.env)throw new Error("FDEF not allowed here");var t=e.stack,r=e.prog,n=e.ip,o=t.pop(),a=n;for(E.DEBUG&&console.log(e.step,"FDEF[]",o);45!==r[++n];);e.ip=n,e.funcs[o]=r.slice(a+1,n)},void 0,sr.bind(void 0,0),sr.bind(void 0,1),lr.bind(void 0,qt),lr.bind(void 0,Wt),pr.bind(void 0,0),pr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),ur.bind(void 0,0),ur.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,n=e.fv,o=t.pop()/64,a=e.z2;r--;){var i=t.pop(),s=a[i];E.DEBUG&&console.log(e.step,(1<e.loop?"loop "+(e.loop-r)+": ":"")+"SHPIX[]",i,o),n.setRelative(s,s,o),n.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,n=e.rp2,o=e.loop,a=e.z0[r],i=e.z1[n],s=e.fv,l=e.dpv,p=e.z2;o--;){var c=t.pop(),u=p[c];E.DEBUG&&console.log(e.step,(1<e.loop?"loop "+(e.loop-o)+": ":"")+"IP[]",c,r,"<->",n),s.interpolate(u,a,i,l),s.touch(u)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,n=e.z0[r],o=e.loop,a=e.fv,i=e.pv,s=e.z1;o--;){var l=t.pop(),p=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?"loop "+(e.loop-o)+": ":"")+"ALIGNRP[]",l),a.setRelative(p,n,0,i),a.touch(p)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,"RTDG[]"),e.round=Bt},hr.bind(void 0,0),hr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,n=e.stack,o=t[++r];E.DEBUG&&console.log(e.step,"NPUSHB[]",o);for(var a=0;a<o;a++)n.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,n=e.stack,o=r[++t];E.DEBUG&&console.log(e.step,"NPUSHW[]",o);for(var a=0;a<o;a++){var i=r[++t]<<8|r[++t];32768&i&&(i=-(1+(65535^i))),n.push(i)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var n=t.pop(),o=t.pop();E.DEBUG&&console.log(e.step,"WS",n,o),r[o]=n},function(e){var t=e.stack,r=e.store,n=t.pop();E.DEBUG&&console.log(e.step,"RS",n);var o=r&&r[n]||0;t.push(o)},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"WCVTP",r,n),e.cvt[n]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,"RCVT",r),t.push(64*e.cvt[r])},fr.bind(void 0,0),fr.bind(void 0,1),void 0,mr.bind(void 0,0),mr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,"MPPEM[]"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,"FLIPON[]"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"LT[]",r,n),t.push(n<r?1:0)},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"LTEQ[]",r,n),t.push(n<=r?1:0)},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"GT[]",r,n),t.push(r<n?1:0)},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"GTEQ[]",r,n),t.push(r<=n?1:0)},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"EQ[]",r,n),t.push(r===n?1:0)},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"NEQ[]",r,n),t.push(r!==n?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,"ODD[]",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,"EVEN[]",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,"IF[]",t),t||(er(e,!0),E.DEBUG&&console.log(e.step,"EIF[]"))},function(e){E.DEBUG&&console.log(e.step,"EIF[]")},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"AND[]",r,n),t.push(r&&n?1:0)},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"OR[]",r,n),t.push(r||n?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,"NOT[]",r),t.push(r?0:1)},yr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,"SDB[]",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,"SDS[]",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"ADD[]",r,n),t.push(n+r)},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"SUB[]",r,n),t.push(n-r)},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"DIV[]",r,n),t.push(64*n/r)},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"MUL[]",r,n),t.push(n*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,"ABS[]",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,"NEG[]",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,"FLOOR[]",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,"CEILING[]",r),t.push(64*Math.ceil(r/64))},gr.bind(void 0,0),gr.bind(void 0,1),gr.bind(void 0,2),gr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"WCVTF[]",r,n),e.cvt[n]=r*e.ppem/e.font.unitsPerEm},yr.bind(void 0,2),yr.bind(void 0,3),vr.bind(void 0,1),vr.bind(void 0,2),vr.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,"SROUND[]",r),e.round=Ht,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error("invalid SROUND value")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error("invalid SROUND value")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,"S45ROUND[]",r),e.round=Ht,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error("invalid S45ROUND value")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error("invalid S45ROUND value")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,"ROFF[]"),e.round=Ft},void 0,function(e){E.DEBUG&&console.log(e.step,"RUTG[]"),e.round=Vt},function(e){E.DEBUG&&console.log(e.step,"RDTG[]"),e.round=zt},ir,ir,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,"SCANCTRL[]",t)},br.bind(void 0,0),br.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),n=0;E.DEBUG&&console.log(e.step,"GETINFO[]",r),1&r&&(n=35),32&r&&(n|=4096),t.push(n)},void 0,function(e){var t=e.stack,r=t.pop(),n=t.pop(),o=t.pop();E.DEBUG&&console.log(e.step,"ROLL[]"),t.push(n),t.push(r),t.push(o)},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"MAX[]",r,n),t.push(Math.max(n,r))},function(e){var t=e.stack,r=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,"MIN[]",r,n),t.push(Math.min(n,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,"SCANTYPE[]",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,"INSTCTRL[]",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error("invalid INSTCTRL[] selector")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),_r.bind(void 0,0,0,0,0,0),_r.bind(void 0,0,0,0,0,1),_r.bind(void 0,0,0,0,0,2),_r.bind(void 0,0,0,0,0,3),_r.bind(void 0,0,0,0,1,0),_r.bind(void 0,0,0,0,1,1),_r.bind(void 0,0,0,0,1,2),_r.bind(void 0,0,0,0,1,3),_r.bind(void 0,0,0,1,0,0),_r.bind(void 0,0,0,1,0,1),_r.bind(void 0,0,0,1,0,2),_r.bind(void 0,0,0,1,0,3),_r.bind(void 0,0,0,1,1,0),_r.bind(void 0,0,0,1,1,1),_r.bind(void 0,0,0,1,1,2),_r.bind(void 0,0,0,1,1,3),_r.bind(void 0,0,1,0,0,0),_r.bind(void 0,0,1,0,0,1),_r.bind(void 0,0,1,0,0,2),_r.bind(void 0,0,1,0,0,3),_r.bind(void 0,0,1,0,1,0),_r.bind(void 0,0,1,0,1,1),_r.bind(void 0,0,1,0,1,2),_r.bind(void 0,0,1,0,1,3),_r.bind(void 0,0,1,1,0,0),_r.bind(void 0,0,1,1,0,1),_r.bind(void 0,0,1,1,0,2),_r.bind(void 0,0,1,1,0,3),_r.bind(void 0,0,1,1,1,0),_r.bind(void 0,0,1,1,1,1),_r.bind(void 0,0,1,1,1,2),_r.bind(void 0,0,1,1,1,3),_r.bind(void 0,1,0,0,0,0),_r.bind(void 0,1,0,0,0,1),_r.bind(void 0,1,0,0,0,2),_r.bind(void 0,1,0,0,0,3),_r.bind(void 0,1,0,0,1,0),_r.bind(void 0,1,0,0,1,1),_r.bind(void 0,1,0,0,1,2),_r.bind(void 0,1,0,0,1,3),_r.bind(void 0,1,0,1,0,0),_r.bind(void 0,1,0,1,0,1),_r.bind(void 0,1,0,1,0,2),_r.bind(void 0,1,0,1,0,3),_r.bind(void 0,1,0,1,1,0),_r.bind(void 0,1,0,1,1,1),_r.bind(void 0,1,0,1,1,2),_r.bind(void 0,1,0,1,1,3),_r.bind(void 0,1,1,0,0,0),_r.bind(void 0,1,1,0,0,1),_r.bind(void 0,1,1,0,0,2),_r.bind(void 0,1,1,0,0,3),_r.bind(void 0,1,1,0,1,0),_r.bind(void 0,1,1,0,1,1),_r.bind(void 0,1,1,0,1,2),_r.bind(void 0,1,1,0,1,3),_r.bind(void 0,1,1,1,0,0),_r.bind(void 0,1,1,1,0,1),_r.bind(void 0,1,1,1,0,2),_r.bind(void 0,1,1,1,0,3),_r.bind(void 0,1,1,1,1,0),_r.bind(void 0,1,1,1,1,1),_r.bind(void 0,1,1,1,1,2),_r.bind(void 0,1,1,1,1,3)];var Sr=Array.from||function(e){return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]?|[^\uD800-\uDFFF]|./g)||[]};function jr(e){(e=e||{}).empty||(Tt(e.familyName,"When creating a new Font object, familyName is required."),Tt(e.styleName,"When creating a new Font object, styleName is required."),Tt(e.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),Tt(e.ascender,"When creating a new Font object, ascender is required."),Tt(e.descender,"When creating a new Font object, descender is required."),Tt(e.descender<0,"Descender should be negative (e.g. -512)."),this.names={fontFamily:{en:e.familyName||" "},fontSubfamily:{en:e.styleName||" "},fullName:{en:e.fullName||e.familyName+" "+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\s/g,"")},designer:{en:e.designer||" "},designerURL:{en:e.designerURL||" "},manufacturer:{en:e.manufacturer||" "},manufacturerURL:{en:e.manufacturerURL||" "},license:{en:e.license||" "},licenseURL:{en:e.licenseURL||" "},version:{en:e.version||"Version 0.1"},description:{en:e.description||" "},copyright:{en:e.copyright||" "},trademark:{en:e.trademark||" "}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new _t(this),this.tables=this.tables||{},Object.defineProperty(this,"hinting",{get:function(){return this._hinting?this._hinting:"truetype"===this.outlinesFormat?this._hinting=new Dt(this):void 0}})}function Er(e,t){var r=JSON.stringify(e),n=256;for(var o in t){var a=parseInt(o);if(a&&!(a<256)){if(JSON.stringify(t[o])===r)return a;n<=a&&(n=a+1)}}return t[n]=e,n}function Tr(e,t,r,n){for(var o=[{name:"nameID_"+e,type:"USHORT",value:Er(t.name,n)},{name:"flags_"+e,type:"USHORT",value:0}],a=0;a<r.length;++a){var i=r[a].tag;o.push({name:"axis_"+e+" "+i,type:"FIXED",value:t.coordinates[i]<<16})}return o}function Mr(e,t,r,n){var o={},a=new ie.Parser(e,t);o.name=n[a.parseUShort()]||{},a.skip("uShort",1),o.coordinates={};for(var i=0;i<r.length;++i)o.coordinates[r[i].tag]=a.parseFixed();return o}jr.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},jr.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},jr.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},jr.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Sr(e),n=[],o=0;o<r.length;o+=1){var a=r[o];n.push(this.charToGlyphIndex(a))}var i=n.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature("liga",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature("rlig",s,t.language)));for(var p=0;p<i;p+=1)for(var c=0;c<l.length;c++){for(var u=l[c],d=u.sub,h=d.length,f=0;f<h&&d[f]===n[p+f];)f++;f===h&&(n.splice(p,h,u.by),i=i-h+1)}}for(var m=new Array(i),y=this.glyphs.get(0),g=0;g<i;g+=1)m[g]=this.glyphs.get(n[g])||y;return m},jr.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},jr.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},jr.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):""},jr.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+","+t]||0},jr.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},jr.prototype.forEachGlyph=function(e,t,r,n,o,a){t=void 0!==t?t:0,r=void 0!==r?r:0,n=void 0!==n?n:72,o=o||this.defaultRenderOptions;var i,s=1/this.unitsPerEm*n,l=this.stringToGlyphs(e,o);if(o.kerning){var p=o.script||this.position.getDefaultScriptName();i=this.position.getKerningTables(p,o.language)}for(var c=0;c<l.length;c+=1){var u=l[c];if(a.call(this,u,t,r,n,o),u.advanceWidth&&(t+=u.advanceWidth*s),o.kerning&&c<l.length-1)t+=(i?this.position.getKerningValue(i,u.index,l[c+1].index):this.getKerningValue(u,l[c+1]))*s;o.letterSpacing?t+=o.letterSpacing*n:o.tracking&&(t+=o.tracking/1e3*n)}return t},jr.prototype.getPath=function(e,t,r,n,a){var i=new R;return this.forEachGlyph(e,t,r,n,a,function(e,t,r,n){var o=e.getPath(t,r,n,a,this);i.extend(o)}),i},jr.prototype.getPaths=function(e,t,r,n,a){var i=[];return this.forEachGlyph(e,t,r,n,a,function(e,t,r,n){var o=e.getPath(t,r,n,a,this);i.push(o)}),i},jr.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},jr.prototype.draw=function(e,t,r,n,o,a){this.getPath(t,r,n,o,a).draw(e)},jr.prototype.drawPoints=function(o,e,t,r,n,a){this.forEachGlyph(e,t,r,n,a,function(e,t,r,n){e.drawPoints(o,t,r,n)})},jr.prototype.drawMetrics=function(o,e,t,r,n,a){this.forEachGlyph(e,t,r,n,a,function(e,t,r,n){e.drawMetrics(o,t,r,n)})},jr.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},jr.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e("fontFamily"),e("weightName"),e("manufacturer"),e("copyright"),e("version"),this.unitsPerEm},jr.prototype.toTables=function(){return yt.fontToTable(this)},jr.prototype.toBuffer=function(){return console.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."),this.toArrayBuffer()},jr.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n<e.length;n++)r[n]=e[n];return t},jr.prototype.download=function(t){var e=this.getEnglishName("fontFamily"),r=this.getEnglishName("fontSubfamily");t=t||e.replace(/\s/g,"")+"-"+r+".otf";var o=this.toArrayBuffer();if("undefined"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,o.byteLength,function(e){e.root.getFile(t,{create:!0},function(n){n.createWriter(function(e){var t=new DataView(o),r=new Blob([t],{type:"font/opentype"});e.write(r),e.addEventListener("writeend",function(){location.href=n.toURL()},!1)})})},function(e){throw new Error(e.name+": "+e.message)});else{var n=Br("fs"),a=function(e){for(var t=new Ur(e.byteLength),r=new Uint8Array(e),n=0;n<t.length;++n)t[n]=r[n];return t}(o);n.writeFileSync(t,a)}},jr.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},jr.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},jr.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Cr={make:function(e,t){var r,n,o,a,i=new J.Table("fvar",[{name:"version",type:"ULONG",value:65536},{name:"offsetToData",type:"USHORT",value:0},{name:"countSizePairs",type:"USHORT",value:2},{name:"axisCount",type:"USHORT",value:e.axes.length},{name:"axisSize",type:"USHORT",value:20},{name:"instanceCount",type:"USHORT",value:e.instances.length},{name:"instanceSize",type:"USHORT",value:4+4*e.axes.length}]);i.offsetToData=i.sizeOf();for(var s=0;s<e.axes.length;s++)i.fields=i.fields.concat((r=s,n=e.axes[s],o=t,a=Er(n.name,o),[{name:"tag_"+r,type:"TAG",value:n.tag},{name:"minValue_"+r,type:"FIXED",value:n.minValue<<16},{name:"defaultValue_"+r,type:"FIXED",value:n.defaultValue<<16},{name:"maxValue_"+r,type:"FIXED",value:n.maxValue<<16},{name:"flags_"+r,type:"USHORT",value:0},{name:"nameID_"+r,type:"USHORT",value:a}]));for(var l=0;l<e.instances.length;l++)i.fields=i.fields.concat(Tr(l,e.instances[l],e.axes,t));return i},parse:function(e,t,r){var n=new ie.Parser(e,t),o=n.parseULong();N.argument(65536===o,"Unsupported fvar table version.");var a=n.parseOffset16();n.skip("uShort",1);for(var i,s,l,p,c,u=n.parseUShort(),d=n.parseUShort(),h=n.parseUShort(),f=n.parseUShort(),m=[],y=0;y<u;y++)m.push((i=e,s=t+a+y*d,l=r,c=p=void 0,p={},c=new ie.Parser(i,s),p.tag=c.parseTag(),p.minValue=c.parseFixed(),p.defaultValue=c.parseFixed(),p.maxValue=c.parseFixed(),c.skip("uShort",1),p.name=l[c.parseUShort()]||{},p));for(var g=[],v=t+a+u*d,b=0;b<h;b++)g.push(Mr(e,v+b*f,m,r));return{axes:m,instances:g}}},Or=new Array(10);Or[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void N.assert(!1,"0x"+e.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")},Or[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();N.assert(1===t||2===t,"0x"+e.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var r=this.parsePointer(oe.coverage),n=this.parseUShort(),o=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:n,valueFormat2:o,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(n),value2:this.parseValueRecord(o)}})))};if(2===t){var a=this.parsePointer(oe.classDef),i=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:n,valueFormat2:o,classDef1:a,classDef2:i,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(n),value2:this.parseValueRecord(o)}}))}}},Or[3]=function(){return{error:"GPOS Lookup 3 not supported"}},Or[4]=function(){return{error:"GPOS Lookup 4 not supported"}},Or[5]=function(){return{error:"GPOS Lookup 5 not supported"}},Or[6]=function(){return{error:"GPOS Lookup 6 not supported"}},Or[7]=function(){return{error:"GPOS Lookup 7 not supported"}},Or[8]=function(){return{error:"GPOS Lookup 8 not supported"}},Or[9]=function(){return{error:"GPOS Lookup 9 not supported"}};var Nr=new Array(10);var kr={parse:function(e,t){var r=new oe(e,t=t||0),n=r.parseVersion(1);return N.argument(1===n||1.1===n,"Unsupported GPOS table version "+n),1===n?{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(Or)}:{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(Or),variations:r.parseFeatureVariationsList()}},make:function(e){return new J.Table("GPOS",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new J.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new J.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new J.LookupList(e.lookups,Nr)}])}};var Lr={parse:function(e,t){var r=new ie.Parser(e,t),n=r.parseUShort();if(0===n)return function(e){var t={};e.skip("uShort");var r=e.parseUShort();N.argument(0===r,"Unsupported kern sub-table version."),e.skip("uShort",2);var n=e.parseUShort();e.skip("uShort",3);for(var o=0;o<n;o+=1){var a=e.parseUShort(),i=e.parseUShort(),s=e.parseShort();t[a+","+i]=s}return t}(r);if(1===n)return function(e){var t={};e.skip("uShort"),1<e.parseULong()&&console.warn("Only the first kern subtable is supported."),e.skip("uLong");var r=255&e.parseUShort();if(e.skip("uShort"),0==r){var n=e.parseUShort();e.skip("uShort",3);for(var o=0;o<n;o+=1){var a=e.parseUShort(),i=e.parseUShort(),s=e.parseShort();t[a+","+i]=s}}return t}(r);throw new Error("Unsupported kern table version ("+n+").")}};var Ar={parse:function(e,t,r,n){for(var o=new ie.Parser(e,t),a=n?o.parseUShort:o.parseULong,i=[],s=0;s<r+1;s+=1){var l=a.call(o);n&&(l*=2),i.push(l)}return i}};function Ir(e,r){Br("fs").readFile(e,function(e,t){if(e)return r(e.message);r(null,Et(t))})}function Rr(e,t){var r=new XMLHttpRequest;r.open("get",e,!0),r.responseType="arraybuffer",r.onload=function(){return r.response?t(null,r.response):t("Font could not be loaded: "+r.statusText)},r.onerror=function(){t("Font could not be loaded")},r.send()}function Pr(e,t){for(var r=[],n=12,o=0;o<t;o+=1){var a=ie.getTag(e,n),i=ie.getULong(e,n+4),s=ie.getULong(e,n+8),l=ie.getULong(e,n+12);r.push({tag:a,checksum:i,offset:s,length:l,compression:!1}),n+=16}return r}function Dr(e,t){if("WOFF"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),n=new Uint8Array(t.length);if(o(r,n),n.byteLength!==t.length)throw new Error("Decompression error: "+t.tag+" decompressed length doesn't match recorded length");return{data:new DataView(n.buffer,0),offset:0}}function Fr(e){var t,r,n,o,a,i,s,l,p,c,u,d,h,f,m=new jr({empty:!0}),y=new DataView(e,0),g=[],v=ie.getTag(y,0);if(v===String.fromCharCode(0,1,0,0)||"true"===v||"typ1"===v)m.outlinesFormat="truetype",g=Pr(y,n=ie.getUShort(y,4));else if("OTTO"===v)m.outlinesFormat="cff",g=Pr(y,n=ie.getUShort(y,4));else{if("wOFF"!==v)throw new Error("Unsupported OpenType signature "+v);var b=ie.getTag(y,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat="truetype";else{if("OTTO"!==b)throw new Error("Unsupported OpenType flavor "+v);m.outlinesFormat="cff"}g=function(e,t){for(var r=[],n=44,o=0;o<t;o+=1){var a=ie.getTag(e,n),i=ie.getULong(e,n+4),s=ie.getULong(e,n+8),l=ie.getULong(e,n+12),p=void 0;p=s<l&&"WOFF",r.push({tag:a,offset:i,compression:p,compressedLength:s,length:l}),n+=20}return r}(y,n=ie.getUShort(y,12))}for(var x=0;x<n;x+=1){var w=g[x],_=void 0;switch(w.tag){case"cmap":_=Dr(y,w),m.tables.cmap=se.parse(_.data,_.offset),m.encoding=new he(m.tables.cmap);break;case"cvt ":_=Dr(y,w),f=new ie.Parser(_.data,_.offset),m.tables.cvt=f.parseShortList(w.length/2);break;case"fvar":a=w;break;case"fpgm":_=Dr(y,w),f=new ie.Parser(_.data,_.offset),m.tables.fpgm=f.parseByteList(w.length);break;case"head":_=Dr(y,w),m.tables.head=Ue.parse(_.data,_.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case"hhea":_=Dr(y,w),m.tables.hhea=Be.parse(_.data,_.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case"hmtx":p=w;break;case"ltag":_=Dr(y,w),r=Ve.parse(_.data,_.offset);break;case"maxp":_=Dr(y,w),m.tables.maxp=ze.parse(_.data,_.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case"name":d=w;break;case"OS/2":_=Dr(y,w),m.tables.os2=ot.parse(_.data,_.offset);break;case"post":_=Dr(y,w),m.tables.post=at.parse(_.data,_.offset),m.glyphNames=new me(m.tables.post);break;case"prep":_=Dr(y,w),f=new ie.Parser(_.data,_.offset),m.tables.prep=f.parseByteList(w.length);break;case"glyf":i=w;break;case"loca":u=w;break;case"CFF ":o=w;break;case"kern":c=w;break;case"GPOS":s=w;break;case"GSUB":l=w;break;case"meta":h=w}}var S=Dr(y,d);if(m.tables.name=rt.parse(S.data,S.offset,r),m.names=m.tables.name,i&&u){var j=0===t,E=Dr(y,u),T=Ar.parse(E.data,E.offset,m.numGlyphs,j),M=Dr(y,i);m.glyphs=Pt.parse(M.data,M.offset,T,m)}else{if(!o)throw new Error("Font doesn't contain TrueType or CFF outlines.");var C=Dr(y,o);Fe.parse(C.data,C.offset,m)}var O=Dr(y,p);if(Ge.parse(O.data,O.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,n=Object.keys(r),o=0;o<n.length;o+=1){var a=n[o],i=r[a];(t=e.glyphs.get(i)).addUnicode(parseInt(a))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name="gid"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),c){var N=Dr(y,c);m.kerningPairs=Lr.parse(N.data,N.offset)}else m.kerningPairs={};if(s){var k=Dr(y,s);m.tables.gpos=kr.parse(k.data,k.offset),m.position.init()}if(l){var L=Dr(y,l);m.tables.gsub=pt.parse(L.data,L.offset)}if(a){var A=Dr(y,a);m.tables.fvar=Cr.parse(A.data,A.offset,m.names)}if(h){var I=Dr(y,h);m.tables.meta=ct.parse(I.data,I.offset),m.metas=m.tables.meta}return m}E.Font=jr,E.Glyph=ge,E.Path=R,E.BoundingBox=M,E._parse=ie,E.parse=Fr,E.load=function(e,n){("undefined"==typeof window?Ir:Rr)(e,function(e,t){if(e)return n(e);var r;try{r=Fr(t)}catch(e){return n(e,null)}return n(null,r)})},E.loadSync=function(e){return Fr(Et(Br("fs").readFileSync(e)))},Object.defineProperty(E,"__esModule",{value:!0})},"object"===_typeof3(n)&&void 0!==r?t(n):"function"==typeof a&&a.amd?a(["exports"],t):t(e.opentype={})}).call(this,Br("buffer").Buffer)},{buffer:22,fs:21}],263:[function(e,t,p){(function(o){function a(e,t){for(var r=0,n=e.length-1;0<=n;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;)e.unshift("..");return e}function i(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}p.resolve=function(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var n=0<=r?arguments[r]:o.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return(t?"/":"")+(e=a(i(e.split("/"),function(e){return!!e}),!t).join("/"))||"."},p.normalize=function(e){var t=p.isAbsolute(e),r="/"===n(e,-1);return(e=a(i(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},p.isAbsolute=function(e){return"/"===e.charAt(0)},p.join=function(){var e=Array.prototype.slice.call(arguments,0);return p.normalize(i(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},p.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;0<=r&&""===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=p.resolve(e).substr(1),t=p.resolve(t).substr(1);for(var n=r(e.split("/")),o=r(t.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var l=[];for(s=i;s<n.length;s++)l.push("..");return(l=l.concat(o.slice(i))).join("/")},p.sep="/",p.delimiter=":",p.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,o=!0,a=e.length-1;1<=a;--a)if(47===(t=e.charCodeAt(a))){if(!o){n=a;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},p.basename=function(e,t){var r=function(e){"string"!=typeof e&&(e+="");var t,r=0,n=-1,o=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!o){r=t+1;break}}else-1===n&&(o=!1,n=t+1);return-1===n?"":e.slice(r,n)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},p.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,r=0,n=-1,o=!0,a=0,i=e.length-1;0<=i;--i){var s=e.charCodeAt(i);if(47===s){if(o)continue;r=i+1;break}-1===n&&(o=!1,n=i+1),46===s?-1===t?t=i:1!==a&&(a=1):-1!==t&&(a=-1)}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)};var n="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e("_process"))},{_process:264}],264:[function(e,t,r){var n,o,a=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var p,c=[],u=!1,d=-1;function h(){u&&p&&(u=!1,p.length?c=p.concat(c):d=-1,c.length&&f())}function f(){if(!u){var e=l(h);u=!0;for(var t=c.length;t;){for(p=c,c=[];++d<t;)p&&p[d].run();d=-1,t=c.length}p=null,u=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function y(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new m(e,t)),1!==c.length||u||l(f)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=y,a.addListener=y,a.once=y,a.off=y,a.removeListener=y,a.removeAllListeners=y,a.emit=y,a.prependListener=y,a.prependOnceListener=y,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],265:[function(e,t,r){var n=function(a){var l,e=Object.prototype,p=e.hasOwnProperty,t="function"==typeof Symbol?Symbol:{},o=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",n=t.toStringTag||"@@toStringTag";function i(e,t,r,n){var a,i,s,l,o=t&&t.prototype instanceof g?t:g,p=Object.create(o.prototype),c=new M(n||[]);return p._invoke=(a=e,i=r,s=c,l=d,function(e,t){if(l===f)throw new Error("Generator is already running");if(l===m){if("throw"===e)throw t;return O()}for(s.method=e,s.arg=t;;){var r=s.delegate;if(r){var n=j(r,s);if(n){if(n===y)continue;return n}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(l===d)throw l=m,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l=f;var o=u(a,i,s);if("normal"===o.type){if(l=s.done?m:h,o.arg===y)continue;return{value:o.arg,done:s.done}}"throw"===o.type&&(l=m,s.method="throw",s.arg=o.arg)}}),p}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}a.wrap=i;var d="suspendedStart",h="suspendedYield",f="executing",m="completed",y={};function g(){}function s(){}function c(){}var v={};v[o]=function(){return this};var b=Object.getPrototypeOf,x=b&&b(b(C([])));x&&x!==e&&p.call(x,o)&&(v=x);var w=c.prototype=g.prototype=Object.create(v);function _(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function S(l){var t;this._invoke=function(r,n){function e(){return new Promise(function(e,t){!function t(e,r,n,o){var a=u(l[e],l,r);if("throw"!==a.type){var i=a.arg,s=i.value;return s&&"object"===_typeof3(s)&&p.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,n,o)},function(e){t("throw",e,n,o)}):Promise.resolve(s).then(function(e){i.value=e,n(i)},function(e){return t("throw",e,n,o)})}o(a.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}}function j(e,t){var r=e.iterator[t.method];if(r===l){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=l,j(e,t),"throw"===t.method))return y;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,y;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=l),t.delegate=null,y):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(p.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=l,e.done=!0,e};return n.next=n}}return{next:O}}function O(){return{value:l,done:!0}}return s.prototype=w.constructor=c,c.constructor=s,c[n]=s.displayName="GeneratorFunction",a.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===s||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,n in e||(e[n]="GeneratorFunction")),e.prototype=Object.create(w),e},a.awrap=function(e){return{__await:e}},_(S.prototype),S.prototype[r]=function(){return this},a.AsyncIterator=S,a.async=function(e,t,r,n){var o=new S(i(e,t,r,n));return a.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},_(w),w[n]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},a.keys=function(r){var n=[];for(var e in r)n.push(e);return n.reverse(),function e(){for(;n.length;){var t=n.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},a.values=C,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&p.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=l)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function e(e,t){return a.type="throw",a.arg=r,n.next=e,t&&(n.method="next",n.arg=l),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var o=this.tryEntries[t],a=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var i=p.call(o,"catchLoc"),s=p.call(o,"finallyLoc");if(i&&s){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&p.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=l),y}},a}("object"===_typeof3(t)?t.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},{}],266:[function(e,t,r){!function(e){if(!e.fetch){var t="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),n="FormData"in e,o="ArrayBuffer"in e;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<a.indexOf(Object.prototype.toString.call(e))};f.prototype.append=function(e,t){e=u(e),t=d(t);var r=this.map[e];this.map[e]=r?r+","+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=d(t)},f.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},f.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),h(r)},f.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),h(t)},f.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),h(r)},r&&(f.prototype[Symbol.iterator]=f.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},b.call(x.prototype),b.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var c=[301,302,303,307,308];_.redirect=function(e,t){if(-1===c.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},e.Headers=f,e.Request=x,e.Response=_,e.fetch=function(r,o){return new Promise(function(n,e){var t=new x(r,o),a=new XMLHttpRequest;a.onload=function(){var e,o,t={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",o=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var t=e.split(":"),r=t.shift().trim();if(r){var n=t.join(":").trim();o.append(r,n)}}),o)};t.url="responseURL"in a?a.responseURL:t.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;n(new _(r,t))},a.onerror=function(){e(new TypeError("Network request failed"))},a.ontimeout=function(){e(new TypeError("Network request failed"))},a.open(t.method,t.url,!0),"include"===t.credentials?a.withCredentials=!0:"omit"===t.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),t.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function f(t){this.map={},t instanceof f?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function y(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function g(e){var t=new FileReader,r=y(t);return t.readAsArrayBuffer(e),r}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if("string"==typeof e)this._bodyText=e;else if(i&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(n&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(o&&i&&s(e))this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!o||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=v(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,r,n=m(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=y(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}function x(e,t){var r,n,o=(t=t||{}).body;if(e instanceof x){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),-1<p.indexOf(n)?n:r),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(e){var o=new FormData;return e.trim().split("&").forEach(function(e){if(e){var t=e.split("="),r=t.shift().replace(/\+/g," "),n=t.join("=").replace(/\+/g," ");o.append(decodeURIComponent(r),decodeURIComponent(n))}}),o}function _(e,t){t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},{}],267:[function(e,t,r){e("core-js/modules/es.function.name"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.split"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var l,n=a(e("../core/main")),o=a(e("../color/color_conversion"));function a(e){return e&&e.__esModule?e:{default:e}}var p=[{h:0,s:0,b:.8275,name:"gray"},{h:0,s:0,b:.8627,name:"gray"},{h:0,s:0,b:.7529,name:"gray"},{h:.0167,s:.1176,b:1,name:"light pink"}],c=[{h:0,s:0,b:0,name:"black"},{h:0,s:0,b:.5,name:"gray"},{h:0,s:0,b:1,name:"white"},{h:0,s:.5,b:.5,name:"dark maroon"},{h:0,s:.5,b:1,name:"salmon pink"},{h:0,s:1,b:0,name:"black"},{h:0,s:1,b:.5,name:"dark red"},{h:0,s:1,b:1,name:"red"},{h:5,s:0,b:1,name:"very light peach"},{h:5,s:.5,b:.5,name:"brown"},{h:5,s:.5,b:1,name:"peach"},{h:5,s:1,b:.5,name:"brick red"},{h:5,s:1,b:1,name:"crimson"},{h:10,s:0,b:1,name:"light peach"},{h:10,s:.5,b:.5,name:"brown"},{h:10,s:.5,b:1,name:"light orange"},{h:10,s:1,b:.5,name:"brown"},{h:10,s:1,b:1,name:"orange"},{h:15,s:0,b:1,name:"very light yellow"},{h:15,s:.5,b:.5,name:"olive green"},{h:15,s:.5,b:1,name:"light yellow"},{h:15,s:1,b:0,name:"dark olive green"},{h:15,s:1,b:.5,name:"olive green"},{h:15,s:1,b:1,name:"yellow"},{h:20,s:0,b:1,name:"very light yellow"},{h:20,s:.5,b:.5,name:"olive green"},{h:20,s:.5,b:1,name:"light yellow green"},{h:20,s:1,b:0,name:"dark olive green"},{h:20,s:1,b:.5,name:"dark yellow green"},{h:20,s:1,b:1,name:"yellow green"},{h:25,s:.5,b:.5,name:"dark yellow green"},{h:25,s:.5,b:1,name:"light green"},{h:25,s:1,b:.5,name:"dark green"},{h:25,s:1,b:1,name:"green"},{h:30,s:.5,b:1,name:"light green"},{h:30,s:1,b:.5,name:"dark green"},{h:30,s:1,b:1,name:"green"},{h:35,s:0,b:.5,name:"light green"},{h:35,s:0,b:1,name:"very light green"},{h:35,s:.5,b:.5,name:"dark green"},{h:35,s:.5,b:1,name:"light green"},{h:35,s:1,b:0,name:"very dark green"},{h:35,s:1,b:.5,name:"dark green"},{h:35,s:1,b:1,name:"green"},{h:40,s:0,b:1,name:"very light green"},{h:40,s:.5,b:.5,name:"dark green"},{h:40,s:.5,b:1,name:"light green"},{h:40,s:1,b:.5,name:"dark green"},{h:40,s:1,b:1,name:"green"},{h:45,s:.5,b:1,name:"light turquoise"},{h:45,s:1,b:.5,name:"dark turquoise"},{h:45,s:1,b:1,name:"turquoise"},{h:50,s:0,b:1,name:"light sky blue"},{h:50,s:.5,b:.5,name:"dark cyan"},{h:50,s:.5,b:1,name:"light cyan"},{h:50,s:1,b:.5,name:"dark cyan"},{h:50,s:1,b:1,name:"cyan"},{h:55,s:0,b:1,name:"light sky blue"},{h:55,s:.5,b:1,name:"light sky blue"},{h:55,s:1,b:.5,name:"dark blue"},{h:55,s:1,b:1,name:"sky blue"},{h:60,s:0,b:.5,name:"gray"},{h:60,s:0,b:1,name:"very light blue"},{h:60,s:.5,b:.5,name:"blue"},{h:60,s:.5,b:1,name:"light blue"},{h:60,s:1,b:.5,name:"navy blue"},{h:60,s:1,b:1,name:"blue"},{h:65,s:0,b:1,name:"lavender"},{h:65,s:.5,b:.5,name:"navy blue"},{h:65,s:.5,b:1,name:"light purple"},{h:65,s:1,b:.5,name:"dark navy blue"},{h:65,s:1,b:1,name:"blue"},{h:70,s:0,b:1,name:"lavender"},{h:70,s:.5,b:.5,name:"navy blue"},{h:70,s:.5,b:1,name:"lavender blue"},{h:70,s:1,b:.5,name:"dark navy blue"},{h:70,s:1,b:1,name:"blue"},{h:75,s:.5,b:1,name:"lavender"},{h:75,s:1,b:.5,name:"dark purple"},{h:75,s:1,b:1,name:"purple"},{h:80,s:.5,b:1,name:"pinkish purple"},{h:80,s:1,b:.5,name:"dark purple"},{h:80,s:1,b:1,name:"purple"},{h:85,s:0,b:1,name:"light pink"},{h:85,s:.5,b:.5,name:"purple"},{h:85,s:.5,b:1,name:"light fuchsia"},{h:85,s:1,b:.5,name:"dark fuchsia"},{h:85,s:1,b:1,name:"fuchsia"},{h:90,s:.5,b:.5,name:"dark fuchsia"},{h:90,s:.5,b:1,name:"hot pink"},{h:90,s:1,b:.5,name:"dark fuchsia"},{h:90,s:1,b:1,name:"fuchsia"},{h:95,s:0,b:1,name:"pink"},{h:95,s:.5,b:1,name:"light pink"},{h:95,s:1,b:.5,name:"dark magenta"},{h:95,s:1,b:1,name:"magenta"}];n.default.prototype._rgbColorName=function(e){var t=o.default._rgbaToHSBA(e);return function(e){var t;if(0!==e[0]){e[0]=Math.round(100*e[0]);var r=e[0].toString().split(""),n=r.length-1;r[n]=parseInt(r[n]),r[n]<2.5?r[n]=0:2.5<=r[n]&&r[n]<7.5&&(r[n]=5),2===r.length?(r[0]=parseInt(r[0]),7.5<=r[n]&&(r[n]=0,r[0]=r[0]+1),e[0]=10*r[0]+r[1]):7.5<=r[n]?e[0]=10:e[0]=r[n]}e[2]=e[2]/255;for(var o=e.length-1;1<=o;o--)e[o]<=.25?e[o]=0:.25<e[o]&&e[o]<.75?e[o]=.5:e[o]=1;if(0===e[0]&&0===e[1]&&1===e[2]){for(var a=2;0<=a;a--)l[a]=Math.round(1e4*l[a])/1e4;for(var i=0;i<p.length;i++){if(p[i].h===l[0]&&p[i].s===l[1]&&p[i].b===l[2]){t=p[i].name;break}t="white"}}else for(var s=0;s<c.length;s++)if(c[s].h===e[0]&&c[s].s===e[1]&&c[s].b===e[2]){t=c[s].name;break}return t}([(l=t)[0],t[1],t[2]])};var i=n.default;r.default=i},{"../color/color_conversion":273,"../core/main":289,"core-js/modules/es.function.name":184,"core-js/modules/es.object.to-string":195,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.regexp.to-string":200,"core-js/modules/es.string.split":209}],268:[function(e,t,r){e("core-js/modules/es.array.concat"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.ends-with"),e("core-js/modules/es.string.replace"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,i=(n=e("../core/main"))&&n.__esModule?n:{default:n};var l="_Description",p="_fallbackDesc",c="_fallbackTable",u="_Label",d="_labelDesc",h="_labelTable";function s(e){if("label"===e||"fallback"===e)throw new Error("description should not be LABEL or FALLBACK");return e.endsWith(".")||e.endsWith(";")||e.endsWith(",")||e.endsWith("?")||e.endsWith("!")||(e+="."),e}i.default.prototype.describe=function(e,t){if(i.default._validateParameters("describe",arguments),"string"==typeof e){var r=this.canvas.id;e=s(e),this.dummyDOM||(this.dummyDOM=document.getElementById(r).parentNode),this.descriptions||(this.descriptions={}),this.descriptions.fallback?this.descriptions.fallback.innerHTML!==e&&(this.descriptions.fallback.innerHTML=e):this._describeHTML("fallback",e),t===this.LABEL&&(this.descriptions.label?this.descriptions.label.innerHTML!==e&&(this.descriptions.label.innerHTML=e):this._describeHTML("label",e))}},i.default.prototype.describeElement=function(e,t,r){if(i.default._validateParameters("describeElement",arguments),"string"==typeof t&&"string"==typeof e){var n=this.canvas.id;t=s(t);var o=function(e){if("label"===e||"fallback"===e)throw new Error("element name should not be LABEL or FALLBACK");e.endsWith(".")||e.endsWith(";")||e.endsWith(",")?e=e.replace(/.$/,":"):e.endsWith(":")||(e+=":");return e}(e);e=e.replace(/[^a-zA-Z0-9]/g,"");var a='<th scope="row">'.concat(o,"</th><td>").concat(t,"</td>");this.dummyDOM||(this.dummyDOM=document.getElementById(n).parentNode),this.descriptions?this.descriptions.fallbackElements||(this.descriptions.fallbackElements={}):this.descriptions={fallbackElements:{}},this.descriptions.fallbackElements[e]?this.descriptions.fallbackElements[e].innerHTML!==a&&(this.descriptions.fallbackElements[e].innerHTML=a):this._describeElementHTML("fallback",e,a),r===this.LABEL&&(this.descriptions.labelElements||(this.descriptions.labelElements={}),this.descriptions.labelElements[e]?this.descriptions.labelElements[e].innerHTML!==a&&(this.descriptions.labelElements[e].innerHTML=a):this._describeElementHTML("label",e,a))}},i.default.prototype._describeHTML=function(e,t){var r=this.canvas.id;if("fallback"===e){if(this.dummyDOM.querySelector("#".concat(r+l)))this.dummyDOM.querySelector("#"+r+c).insertAdjacentHTML("beforebegin",'<p id="'.concat(r+p,'"></p>'));else{var n='<div id="'.concat(r).concat(l,'" role="region" aria-label="Canvas Description"><p id="').concat(r).concat(p,'"></p></div>');this.dummyDOM.querySelector("#".concat(r,"accessibleOutput"))?this.dummyDOM.querySelector("#".concat(r,"accessibleOutput")).insertAdjacentHTML("beforebegin",n):this.dummyDOM.querySelector("#".concat(r)).innerHTML=n}return this.descriptions.fallback=this.dummyDOM.querySelector("#".concat(r).concat(p)),void(this.descriptions.fallback.innerHTML=t)}if("label"===e){if(this.dummyDOM.querySelector("#".concat(r+u)))this.dummyDOM.querySelector("#".concat(r+h))&&this.dummyDOM.querySelector("#".concat(r+h)).insertAdjacentHTML("beforebegin",'<p id="'.concat(r).concat(d,'"></p>'));else{var o='<div id="'.concat(r).concat(u,'" class="p5Label"><p id="').concat(r).concat(d,'"></p></div>');this.dummyDOM.querySelector("#".concat(r,"accessibleOutputLabel"))?this.dummyDOM.querySelector("#".concat(r,"accessibleOutputLabel")).insertAdjacentHTML("beforebegin",o):this.dummyDOM.querySelector("#"+r).insertAdjacentHTML("afterend",o)}return this.descriptions.label=this.dummyDOM.querySelector("#"+r+d),void(this.descriptions.label.innerHTML=t)}},i.default.prototype._describeElementHTML=function(e,t,r){var n=this.canvas.id;if("fallback"===e){if(this.dummyDOM.querySelector("#".concat(n+l)))this.dummyDOM.querySelector("#"+n+c)||this.dummyDOM.querySelector("#"+n+p).insertAdjacentHTML("afterend",'<table id="'.concat(n).concat(c,'"><caption>Canvas elements and their descriptions</caption></table>'));else{var o='<div id="'.concat(n).concat(l,'" role="region" aria-label="Canvas Description"><table id="').concat(n).concat(c,'"><caption>Canvas elements and their descriptions</caption></table></div>');this.dummyDOM.querySelector("#".concat(n,"accessibleOutput"))?this.dummyDOM.querySelector("#".concat(n,"accessibleOutput")).insertAdjacentHTML("beforebegin",o):this.dummyDOM.querySelector("#"+n).innerHTML=o}var a=document.createElement("tr");return a.id=n+"_fte_"+t,this.dummyDOM.querySelector("#"+n+c).appendChild(a),this.descriptions.fallbackElements[t]=this.dummyDOM.querySelector("#".concat(n).concat("_fte_").concat(t)),void(this.descriptions.fallbackElements[t].innerHTML=r)}if("label"===e){if(this.dummyDOM.querySelector("#".concat(n+u)))this.dummyDOM.querySelector("#".concat(n+h))||this.dummyDOM.querySelector("#"+n+d).insertAdjacentHTML("afterend",'<table id="'.concat(n+h,'"></table>'));else{var i='<div id="'.concat(n).concat(u,'" class="p5Label"><table id="').concat(n).concat(h,'"></table></div>');this.dummyDOM.querySelector("#".concat(n,"accessibleOutputLabel"))?this.dummyDOM.querySelector("#".concat(n,"accessibleOutputLabel")).insertAdjacentHTML("beforebegin",i):this.dummyDOM.querySelector("#"+n).insertAdjacentHTML("afterend",i)}var s=document.createElement("tr");s.id=n+"_lte_"+t,this.dummyDOM.querySelector("#"+n+h).appendChild(s),this.descriptions.labelElements[t]=this.dummyDOM.querySelector("#".concat(n).concat("_lte_").concat(t)),this.descriptions.labelElements[t].innerHTML=r}};var o=i.default;r.default=o},{"../core/main":289,"core-js/modules/es.array.concat":167,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.string.ends-with":202,"core-js/modules/es.string.replace":207}],269:[function(e,t,r){e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.map"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n};o.default.prototype._updateGridOutput=function(e){if(this.dummyDOM.querySelector("#".concat(e,"_summary"))){var t=this._accessibleOutputs[e],r=function(e,t){var r="",n="",o=0;for(var a in t){var i=0;for(var s in t[a]){var l='<li id="'.concat(e,"shape").concat(o,'">').concat(t[a][s].color," ").concat(a,",");"line"===a?l+=" location = ".concat(t[a][s].pos,", length = ").concat(t[a][s].length," pixels"):(l+=" location = ".concat(t[a][s].pos),"point"!==a&&(l+=", area = ".concat(t[a][s].area," %")),l+="</li>"),r+=l,i++,o++}n=1<i?"".concat(n," ").concat(i," ").concat(a,"s"):"".concat(n," ").concat(i," ").concat(a)}return{numShapes:[o,n],details:r}}(e,this.ingredients.shapes),n=function(e,t,r,n){var o="".concat(t," canvas, ").concat(r," by ").concat(n," pixels, contains ").concat(e[0]);o=1===e[0]?"".concat(o," shape: ").concat(e[1]):"".concat(o," shapes: ").concat(e[1]);return o}(r.numShapes,this.ingredients.colors.background,this.width,this.height),o=function(e,t){var r=0,n="",o=Array.apply(null,Array(10)).map(function(){});for(var a in o)o[a]=Array.apply(null,Array(10)).map(function(){});for(var i in t)for(var s in t[i]){var l=void 0;l="line"!==i?'<a href="#'.concat(e,"shape").concat(r,'">').concat(t[i][s].color," ").concat(i,"</a>"):'<a href="#'.concat(e,"shape").concat(r,'">').concat(t[i][s].color," ").concat(i," midpoint</a>"),o[t[i][s].loc.locY][t[i][s].loc.locX]?o[t[i][s].loc.locY][t[i][s].loc.locX]=o[t[i][s].loc.locY][t[i][s].loc.locX]+" "+l:o[t[i][s].loc.locY][t[i][s].loc.locX]=l,r++}for(var p in o){var c="<tr>";for(var u in o[p])c+="<td>",void 0!==o[p][u]&&(c+=o[p][u]),c+="</td>";n=n+c+"</tr>"}return n}(e,this.ingredients.shapes);n!==t.summary.innerHTML&&(t.summary.innerHTML=n),o!==t.map.innerHTML&&(t.map.innerHTML=o),r.details!==t.shapeDetails.innerHTML&&(t.shapeDetails.innerHTML=r.details),this._accessibleOutputs[e]=t}};var a=o.default;r.default=a},{"../core/main":289,"core-js/modules/es.array.concat":167,"core-js/modules/es.array.map":179}],270:[function(e,t,r){e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.fill"),e("core-js/modules/es.array.map"),e("core-js/modules/es.number.to-fixed"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n};function l(e,t,r){return e[0]<.4*t?e[1]<.4*r?"top left":e[1]>.6*r?"bottom left":"mid left":e[0]>.6*t?e[1]<.4*r?"top right":e[1]>.6*r?"bottom right":"mid right":e[1]<.4*r?"top middle":e[1]>.6*r?"bottom middle":"middle"}function p(e,t,r){var n=Math.floor(e[0]/t*10),o=Math.floor(e[1]/r*10);return 10===n&&--n,10===o&&--o,{locX:n,locY:o}}o.default.prototype.textOutput=function(e){o.default._validateParameters("textOutput",arguments),this._accessibleOutputs.text||(this._accessibleOutputs.text=!0,this._createOutput("textOutput","Fallback"),e===this.LABEL&&(this._accessibleOutputs.textLabel=!0,this._createOutput("textOutput","Label")))},o.default.prototype.gridOutput=function(e){o.default._validateParameters("gridOutput",arguments),this._accessibleOutputs.grid||(this._accessibleOutputs.grid=!0,this._createOutput("gridOutput","Fallback"),e===this.LABEL&&(this._accessibleOutputs.gridLabel=!0,this._createOutput("gridOutput","Label")))},o.default.prototype._addAccsOutput=function(){return this._accessibleOutputs||(this._accessibleOutputs={text:!1,grid:!1,textLabel:!1,gridLabel:!1}),this._accessibleOutputs.grid||this._accessibleOutputs.text},o.default.prototype._createOutput=function(e,t){var r,n,o,a=this.canvas.id;this.ingredients||(this.ingredients={shapes:{},colors:{background:"white",fill:"white",stroke:"black"},pShapes:""}),this.dummyDOM||(this.dummyDOM=document.getElementById(a).parentNode);var i="";"Fallback"===t?(r=a+e,n=a+"accessibleOutput",this.dummyDOM.querySelector("#".concat(n))||(this.dummyDOM.querySelector("#".concat(a,"_Description"))?this.dummyDOM.querySelector("#".concat(a,"_Description")).insertAdjacentHTML("afterend",'<div id="'.concat(n,'" role="region" aria-label="Canvas Outputs"></div>')):this.dummyDOM.querySelector("#".concat(a)).innerHTML='<div id="'.concat(n,'" role="region" aria-label="Canvas Outputs"></div>'))):"Label"===t&&(r=a+e+(i=t),n=a+"accessibleOutput"+t,this.dummyDOM.querySelector("#".concat(n))||(this.dummyDOM.querySelector("#".concat(a,"_Label"))?this.dummyDOM.querySelector("#".concat(a,"_Label")).insertAdjacentHTML("afterend",'<div id="'.concat(n,'"></div>')):this.dummyDOM.querySelector("#".concat(a)).insertAdjacentHTML("afterend",'<div id="'.concat(n,'"></div>')))),this._accessibleOutputs[r]={},"textOutput"===e?(i="#".concat(a,"gridOutput").concat(i),o='<div id="'.concat(r,'">Text Output<div id="').concat(r,'Summary" aria-label="text output summary"><p id="').concat(r,'_summary"></p><ul id="').concat(r,'_list"></ul></div><table id="').concat(r,'_shapeDetails" summary="text output shape details"></table></div>'),this.dummyDOM.querySelector(i)?this.dummyDOM.querySelector(i).insertAdjacentHTML("beforebegin",o):this.dummyDOM.querySelector("#".concat(n)).innerHTML=o,this._accessibleOutputs[r].list=this.dummyDOM.querySelector("#".concat(r,"_list"))):"gridOutput"===e&&(i="#".concat(a,"textOutput").concat(i),o='<div id="'.concat(r,'">Grid Output<p id="').concat(r,'_summary" aria-label="grid output summary"><table id="').concat(r,'_map" summary="grid output content"></table><ul id="').concat(r,'_shapeDetails" aria-label="grid output shape details"></ul></div>'),this.dummyDOM.querySelector(i)?this.dummyDOM.querySelector(i).insertAdjacentHTML("afterend",o):this.dummyDOM.querySelector("#".concat(n)).innerHTML=o,this._accessibleOutputs[r].map=this.dummyDOM.querySelector("#".concat(r,"_map"))),this._accessibleOutputs[r].shapeDetails=this.dummyDOM.querySelector("#".concat(r,"_shapeDetails")),this._accessibleOutputs[r].summary=this.dummyDOM.querySelector("#".concat(r,"_summary"))},o.default.prototype._updateAccsOutput=function(){var e=this.canvas.id;JSON.stringify(this.ingredients.shapes)!==this.ingredients.pShapes&&(this.ingredients.pShapes=JSON.stringify(this.ingredients.shapes),this._accessibleOutputs.text&&this._updateTextOutput(e+"textOutput"),this._accessibleOutputs.grid&&this._updateGridOutput(e+"gridOutput"),this._accessibleOutputs.textLabel&&this._updateTextOutput(e+"textOutputLabel"),this._accessibleOutputs.gridLabel&&this._updateGridOutput(e+"gridOutputLabel"))},o.default.prototype._accsBackground=function(e){this.ingredients.pShapes=JSON.stringify(this.ingredients.shapes),this.ingredients.shapes={},this.ingredients.colors.backgroundRGBA!==e&&(this.ingredients.colors.backgroundRGBA=e,this.ingredients.colors.background=this._rgbColorName(e))},o.default.prototype._accsCanvasColors=function(e,t){"fill"===e?this.ingredients.colors.fillRGBA!==t&&(this.ingredients.colors.fillRGBA=t,this.ingredients.colors.fill=this._rgbColorName(t)):"stroke"===e&&this.ingredients.colors.strokeRGBA!==t&&(this.ingredients.colors.strokeRGBA=t,this.ingredients.colors.stroke=this._rgbColorName(t))},o.default.prototype._accsOutput=function(e,t){"ellipse"===e&&t[2]===t[3]?e="circle":"rectangle"===e&&t[2]===t[3]&&(e="square");var r={},n=!0,o=function(e,t){var r,n;n="rectangle"===e||"ellipse"===e||"arc"===e||"circle"===e||"square"===e?(r=Math.round(t[0]+t[2]/2),Math.round(t[1]+t[3]/2)):"triangle"===e?(r=(t[0]+t[2]+t[4])/3,(t[1]+t[3]+t[5])/3):"quadrilateral"===e?(r=(t[0]+t[2]+t[4]+t[6])/4,(t[1]+t[3]+t[5]+t[7])/4):"line"===e?(r=(t[0]+t[2])/2,(t[1]+t[3])/2):(r=t[0],t[1]);return[r,n]}(e,t);if("line"===e){r.color=this.ingredients.colors.stroke,r.length=Math.round(this.dist(t[0],t[1],t[2],t[3]));var a=l([t[0],[1]],this.width,this.height),i=l([t[2],[3]],this.width,this.height);r.loc=p(o,this.width,this.height),r.pos=a===i?"at ".concat(a):"from ".concat(a," to ").concat(i)}else"point"===e?r.color=this.ingredients.colors.stroke:(r.color=this.ingredients.colors.fill,r.area=function(e,t,r,n){var o=0;if("arc"===e){var a=((t[5]-t[4])%(2*Math.PI)+2*Math.PI)%(2*Math.PI);if(o=a*t[2]*t[3]/8,"open"===t[6]||"chord"===t[6]){var i=t[0],s=t[1],l=t[0]+t[2]/2*Math.cos(t[4]).toFixed(2),p=t[1]+t[3]/2*Math.sin(t[4]).toFixed(2),c=t[0]+t[2]/2*Math.cos(t[5]).toFixed(2),u=t[1]+t[3]/2*Math.sin(t[5]).toFixed(2),d=Math.abs(i*(p-u)+l*(u-s)+c*(s-p))/2;a>Math.PI?o+=d:o-=d}}else"ellipse"===e||"circle"===e?o=3.14*t[2]/2*t[3]/2:"line"===e?o=0:"point"===e?o=0:"quadrilateral"===e?o=Math.abs((t[6]+t[0])*(t[7]-t[1])+(t[0]+t[2])*(t[1]-t[3])+(t[2]+t[4])*(t[3]-t[5])+(t[4]+t[6])*(t[5]-t[7]))/2:"rectangle"===e||"square"===e?o=t[2]*t[3]:"triangle"===e&&(o=Math.abs(t[0]*(t[3]-t[5])+t[2]*(t[5]-t[1])+t[4]*(t[1]-t[3]))/2);return Math.round(100*o/(r*n))}(e,t,this.width,this.height)),r.pos=l(o,this.width,this.height),r.loc=p(o,this.width,this.height);if(this.ingredients.shapes[e]){if(this.ingredients.shapes[e]!==[r]){for(var s in this.ingredients.shapes[e])JSON.stringify(this.ingredients.shapes[e][s])===JSON.stringify(r)&&(n=!1);!0===n&&this.ingredients.shapes[e].push(r)}}else this.ingredients.shapes[e]=[r]};var a=o.default;r.default=a},{"../core/main":289,"core-js/modules/es.array.concat":167,"core-js/modules/es.array.fill":169,"core-js/modules/es.array.map":179,"core-js/modules/es.number.to-fixed":190}],271:[function(e,t,r){e("core-js/modules/es.array.concat"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n};o.default.prototype._updateTextOutput=function(e){if(this.dummyDOM.querySelector("#".concat(e,"_summary"))){var t=this._accessibleOutputs[e],r=function(e,t){var r="",n=0;for(var o in t)for(var a in t[o]){var i='<li><a href="#'.concat(e,"shape").concat(n,'">').concat(t[o][a].color," ").concat(o,"</a>");"line"===o?i+=", ".concat(t[o][a].pos,", ").concat(t[o][a].length," pixels long.</li>"):(i+=", at ".concat(t[o][a].pos),"point"!==o&&(i+=", covering ".concat(t[o][a].area,"% of the canvas")),i+=".</li>"),r+=i,n++}return{numShapes:n,listShapes:r}}(e,this.ingredients.shapes),n=function(e,t,r,n){var o="Your output is a, ".concat(r," by ").concat(n," pixels, ").concat(t," canvas containing the following");o=1===e?"".concat(o," shape:"):"".concat(o," ").concat(e," shapes:");return o}(r.numShapes,this.ingredients.colors.background,this.width,this.height),o=function(e,t){var r="",n=0;for(var o in t)for(var a in t[o]){var i='<tr id="'.concat(e,"shape").concat(n,'"><th>').concat(t[o][a].color," ").concat(o,"</th>");"line"===o?i+="<td>location = ".concat(t[o][a].pos,"</td><td>length = ").concat(t[o][a].length," pixels</td></tr>"):(i+="<td>location = ".concat(t[o][a].pos,"</td>"),"point"!==o&&(i+="<td> area = ".concat(t[o][a].area,"%</td>")),i+="</tr>"),r+=i,n++}return r}(e,this.ingredients.shapes);n!==t.summary.innerHTML&&(t.summary.innerHTML=n),r.listShapes!==t.list.innerHTML&&(t.list.innerHTML=r.listShapes),o!==t.shapeDetails.innerHTML&&(t.shapeDetails.innerHTML=o),this._accessibleOutputs[e]=t}};var a=o.default;r.default=a},{"../core/main":289,"core-js/modules/es.array.concat":167}],272:[function(e,t,r){var n,o=(n=e("./core/main"))&&n.__esModule?n:{default:n};e("./core/constants"),e("./core/environment"),e("./core/friendly_errors/stacktrace"),e("./core/friendly_errors/validate_params"),e("./core/friendly_errors/file_errors"),e("./core/friendly_errors/fes_core"),e("./core/friendly_errors/sketch_reader"),e("./core/helpers"),e("./core/legacy"),e("./core/preload"),e("./core/p5.Element"),e("./core/p5.Graphics"),e("./core/p5.Renderer"),e("./core/p5.Renderer2D"),e("./core/rendering"),e("./core/shim"),e("./core/structure"),e("./core/transform"),e("./core/shape/2d_primitives"),e("./core/shape/attributes"),e("./core/shape/curves"),e("./core/shape/vertex"),e("./accessibility/outputs"),e("./accessibility/textOutput"),e("./accessibility/gridOutput"),e("./accessibility/color_namer"),e("./color/color_conversion"),e("./color/creating_reading"),e("./color/p5.Color"),e("./color/setting"),e("./data/p5.TypedDict"),e("./data/local_storage.js"),e("./dom/dom"),e("./accessibility/describe"),e("./events/acceleration"),e("./events/keyboard"),e("./events/mouse"),e("./events/touch"),e("./image/filters"),e("./image/image"),e("./image/loading_displaying"),e("./image/p5.Image"),e("./image/pixels"),e("./io/files"),e("./io/p5.Table"),e("./io/p5.TableRow"),e("./io/p5.XML"),e("./math/calculation"),e("./math/math"),e("./math/noise"),e("./math/p5.Vector"),e("./math/random"),e("./math/trigonometry"),e("./typography/attributes"),e("./typography/loading_displaying"),e("./typography/p5.Font"),e("./utilities/array_functions"),e("./utilities/conversion"),e("./utilities/string_functions"),e("./utilities/time_date"),e("./webgl/3d_primitives"),e("./webgl/interaction"),e("./webgl/light"),e("./webgl/loading"),e("./webgl/material"),e("./webgl/p5.Camera"),e("./webgl/p5.Geometry"),e("./webgl/p5.Matrix"),e("./webgl/p5.RendererGL.Immediate"),e("./webgl/p5.RendererGL"),e("./webgl/p5.RendererGL.Retained"),e("./webgl/p5.Shader"),e("./webgl/p5.RenderBuffer"),e("./webgl/p5.Texture"),e("./webgl/text"),e("./core/init"),t.exports=o.default},{"./accessibility/color_namer":267,"./accessibility/describe":268,"./accessibility/gridOutput":269,"./accessibility/outputs":270,"./accessibility/textOutput":271,"./color/color_conversion":273,"./color/creating_reading":274,"./color/p5.Color":275,"./color/setting":276,"./core/constants":277,"./core/environment":278,"./core/friendly_errors/fes_core":280,"./core/friendly_errors/file_errors":281,"./core/friendly_errors/sketch_reader":282,"./core/friendly_errors/stacktrace":283,"./core/friendly_errors/validate_params":284,"./core/helpers":285,"./core/init":286,"./core/legacy":288,"./core/main":289,"./core/p5.Element":290,"./core/p5.Graphics":291,"./core/p5.Renderer":292,"./core/p5.Renderer2D":293,"./core/preload":294,"./core/rendering":295,"./core/shape/2d_primitives":296,"./core/shape/attributes":297,"./core/shape/curves":298,"./core/shape/vertex":299,"./core/shim":300,"./core/structure":301,"./core/transform":302,"./data/local_storage.js":303,"./data/p5.TypedDict":304,"./dom/dom":305,"./events/acceleration":306,"./events/keyboard":307,"./events/mouse":308,"./events/touch":309,"./image/filters":310,"./image/image":311,"./image/loading_displaying":312,"./image/p5.Image":313,"./image/pixels":314,"./io/files":315,"./io/p5.Table":316,"./io/p5.TableRow":317,"./io/p5.XML":318,"./math/calculation":319,"./math/math":320,"./math/noise":321,"./math/p5.Vector":322,"./math/random":323,"./math/trigonometry":324,"./typography/attributes":325,"./typography/loading_displaying":326,"./typography/p5.Font":327,"./utilities/array_functions":328,"./utilities/conversion":329,"./utilities/string_functions":330,"./utilities/time_date":331,"./webgl/3d_primitives":332,"./webgl/interaction":333,"./webgl/light":334,"./webgl/loading":335,"./webgl/material":336,"./webgl/p5.Camera":337,"./webgl/p5.Geometry":338,"./webgl/p5.Matrix":339,"./webgl/p5.RenderBuffer":340,"./webgl/p5.RendererGL":343,"./webgl/p5.RendererGL.Immediate":341,"./webgl/p5.RendererGL.Retained":342,"./webgl/p5.Shader":344,"./webgl/p5.Texture":345,"./webgl/text":346}],273:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n};o.default.ColorConversion={},o.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],n=e[2],o=(2-r)*n/2;return 0!=o&&(1==o?r=0:o<.5?r/=2-r:r=r*n/(2-2*o)),[t,r,o,e[3]]},o.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],n=e[2],o=[];if(0===r)o=[n,n,n,e[3]];else{var a,i,s,l=Math.floor(t),p=n*(1-r),c=n*(1-r*(t-l)),u=n*(1-r*(1+l-t));s=1===l?(a=c,i=n,p):2===l?(a=p,i=n,u):3===l?(a=p,i=c,n):4===l?(a=u,i=p,n):5===l?(a=n,i=p,c):(a=n,i=u,p),o=[a,i,s,e[3]]}return o},o.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],n=e[1],o=e[2];return[r,n=2*((t=o<.5?(1+n)*o:o+n-o*n)-o)/t,t,e[3]]},o.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],n=e[2],o=[];if(0===r)o=[n,n,n,e[3]];else{var a,i=2*n-(a=n<.5?(1+r)*n:n+r-n*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};o=[s(2+t,i,a),s(t,i,a),s(t-2,i,a),e[3]]}return o},o.default.ColorConversion._rgbaToHSBA=function(e){var t,r,n=e[0],o=e[1],a=e[2],i=Math.max(n,o,a),s=i-Math.min(n,o,a);return 0==s?r=t=0:(r=s/i,n===i?t=(o-a)/s:o===i?t=2+(a-n)/s:a===i&&(t=4+(n-o)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,i,e[3]]},o.default.ColorConversion._rgbaToHSLA=function(e){var t,r,n=e[0],o=e[1],a=e[2],i=Math.max(n,o,a),s=Math.min(n,o,a),l=i+s,p=i-s;return 0==p?r=t=0:(r=l<1?p/l:p/(2-l),n===i?t=(o-a)/p:o===i?t=2+(a-n)/p:a===i&&(t=4+(n-o)/p),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var a=o.default.ColorConversion;r.default=a},{"../core/main":289}],274:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}e("core-js/modules/es.array.map"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,u=(n=e("../core/main"))&&n.__esModule?n:{default:n},d=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("../core/constants"));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e("./p5.Color"),e("../core/friendly_errors/validate_params"),e("../core/friendly_errors/file_errors"),e("../core/friendly_errors/fes_core"),u.default.prototype.alpha=function(e){return u.default._validateParameters("alpha",arguments),this.color(e)._getAlpha()},u.default.prototype.blue=function(e){return u.default._validateParameters("blue",arguments),this.color(e)._getBlue()},u.default.prototype.brightness=function(e){return u.default._validateParameters("brightness",arguments),this.color(e)._getBrightness()},u.default.prototype.color=function(){if(u.default._validateParameters("color",arguments),arguments[0]instanceof u.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new u.default.Color(this,e)},u.default.prototype.green=function(e){return u.default._validateParameters("green",arguments),this.color(e)._getGreen()},u.default.prototype.hue=function(e){return u.default._validateParameters("hue",arguments),this.color(e)._getHue()},u.default.prototype.lerpColor=function(e,t,r){u.default._validateParameters("lerpColor",arguments);var n,o,a,i,s,l,p=this._colorMode,c=this._colorMaxes;if(p===d.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(p===d.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(p!==d.HSL)throw new Error("".concat(p,"cannot be used for interpolation."));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),n=this.lerp(s[0],l[0],r),o=this.lerp(s[1],l[1],r),a=this.lerp(s[2],l[2],r),i=this.lerp(s[3],l[3],r),n*=c[p][0],o*=c[p][1],a*=c[p][2],i*=c[p][3],this.color(n,o,a,i)},u.default.prototype.lightness=function(e){return u.default._validateParameters("lightness",arguments),this.color(e)._getLightness()},u.default.prototype.red=function(e){return u.default._validateParameters("red",arguments),this.color(e)._getRed()},u.default.prototype.saturation=function(e){return u.default._validateParameters("saturation",arguments),this.color(e)._getSaturation()};var o=u.default;r.default=o},{"../core/constants":277,"../core/friendly_errors/fes_core":280,"../core/friendly_errors/file_errors":281,"../core/friendly_errors/validate_params":284,"../core/main":289,"./p5.Color":275,"core-js/modules/es.array.map":179}],275:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}e("core-js/modules/es.array.join"),e("core-js/modules/es.array.map"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.constructor"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.trim"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var u=n(e("../core/main")),d=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("../core/constants")),h=n(e("./color_conversion"));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}u.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==d.RGB&&this.mode!==d.HSL&&this.mode!==d.HSB)throw new Error("".concat(this.mode," is an invalid colorMode."));return this._array=u.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},u.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,n=r[3];switch(e){case"#rrggbb":return"#".concat(t[0]<16?"0".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?"0".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?"0".concat(t[2].toString(16)):t[2].toString(16));case"#rrggbbaa":return"#".concat(t[0]<16?"0".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?"0".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?"0".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?"0".concat(t[3].toString(16)):t[3].toString(16));case"#rgb":return"#".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case"#rgba":return"#".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case"rgb":return"rgb(".concat(t[0],", ",t[1],", ",t[2],")");case"rgb%":return"rgb(".concat((100*r[0]).toPrecision(3),"%, ",(100*r[1]).toPrecision(3),"%, ",(100*r[2]).toPrecision(3),"%)");case"rgba%":return"rgba(".concat((100*r[0]).toPrecision(3),"%, ",(100*r[1]).toPrecision(3),"%, ",(100*r[2]).toPrecision(3),"%, ",(100*r[3]).toPrecision(3),"%)");case"hsb":case"hsv":return this.hsba||(this.hsba=h.default._rgbaToHSBA(this._array)),"hsb(".concat(this.hsba[0]*this.maxes[d.HSB][0],", ",this.hsba[1]*this.maxes[d.HSB][1],", ",this.hsba[2]*this.maxes[d.HSB][2],")");case"hsb%":case"hsv%":return this.hsba||(this.hsba=h.default._rgbaToHSBA(this._array)),"hsb(".concat((100*this.hsba[0]).toPrecision(3),"%, ",(100*this.hsba[1]).toPrecision(3),"%, ",(100*this.hsba[2]).toPrecision(3),"%)");case"hsba":case"hsva":return this.hsba||(this.hsba=h.default._rgbaToHSBA(this._array)),"hsba(".concat(this.hsba[0]*this.maxes[d.HSB][0],", ",this.hsba[1]*this.maxes[d.HSB][1],", ",this.hsba[2]*this.maxes[d.HSB][2],", ",n,")");case"hsba%":case"hsva%":return this.hsba||(this.hsba=h.default._rgbaToHSBA(this._array)),"hsba(".concat((100*this.hsba[0]).toPrecision(3),"%, ",(100*this.hsba[1]).toPrecision(3),"%, ",(100*this.hsba[2]).toPrecision(3),"%, ",(100*n).toPrecision(3),"%)");case"hsl":return this.hsla||(this.hsla=h.default._rgbaToHSLA(this._array)),"hsl(".concat(this.hsla[0]*this.maxes[d.HSL][0],", ",this.hsla[1]*this.maxes[d.HSL][1],", ",this.hsla[2]*this.maxes[d.HSL][2],")");case"hsl%":return this.hsla||(this.hsla=h.default._rgbaToHSLA(this._array)),"hsl(".concat((100*this.hsla[0]).toPrecision(3),"%, ",(100*this.hsla[1]).toPrecision(3),"%, ",(100*this.hsla[2]).toPrecision(3),"%)");case"hsla":return this.hsla||(this.hsla=h.default._rgbaToHSLA(this._array)),"hsla(".concat(this.hsla[0]*this.maxes[d.HSL][0],", ",this.hsla[1]*this.maxes[d.HSL][1],", ",this.hsla[2]*this.maxes[d.HSL][2],", ",n,")");case"hsla%":return this.hsla||(this.hsla=h.default._rgbaToHSLA(this._array)),"hsl(".concat((100*this.hsla[0]).toPrecision(3),"%, ",(100*this.hsla[1]).toPrecision(3),"%, ",(100*this.hsla[2]).toPrecision(3),"%, ",(100*n).toPrecision(3),"%)");case"rgba":default:return"rgba(".concat(t[0],",",t[1],",",t[2],",",n,")")}},u.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[d.RGB][0],this._calculateLevels()},u.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[d.RGB][1],this._calculateLevels()},u.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[d.RGB][2],this._calculateLevels()},u.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},u.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r]);this.hsla=null,this.hsba=null},u.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},u.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},u.default.Color.prototype._getMode=function(){return this.mode},u.default.Color.prototype._getMaxes=function(){return this.maxes},u.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[d.RGB][2]},u.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=h.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[d.HSB][2]},u.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[d.RGB][1]},u.default.Color.prototype._getHue=function(){return this.mode===d.HSB?(this.hsba||(this.hsba=h.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[d.HSB][0]):(this.hsla||(this.hsla=h.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[d.HSL][0])},u.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=h.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[d.HSL][2]},u.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[d.RGB][0]},u.default.Color.prototype._getSaturation=function(){return this.mode===d.HSB?(this.hsba||(this.hsba=h.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[d.HSB][1]):(this.hsla||(this.hsla=h.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[d.HSL][1])};var f={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},o=/\s*/,a=/(\d{1,3})/,l=/((?:\d+(?:\.\d+)?)|(?:\.\d+))/,p=new RegExp("".concat(l.source,"%")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp(["^rgb\\(",a.source,",",a.source,",",a.source,"\\)$"].join(o.source),"i"),RGB_PERCENT:new RegExp(["^rgb\\(",p.source,",",p.source,",",p.source,"\\)$"].join(o.source),"i"),RGBA:new RegExp(["^rgba\\(",a.source,",",a.source,",",a.source,",",l.source,"\\)$"].join(o.source),"i"),RGBA_PERCENT:new RegExp(["^rgba\\(",p.source,",",p.source,",",p.source,",",l.source,"\\)$"].join(o.source),"i"),HSL:new RegExp(["^hsl\\(",a.source,",",p.source,",",p.source,"\\)$"].join(o.source),"i"),HSLA:new RegExp(["^hsla\\(",a.source,",",p.source,",",p.source,",",l.source,"\\)$"].join(o.source),"i"),HSB:new RegExp(["^hsb\\(",a.source,",",p.source,",",p.source,"\\)$"].join(o.source),"i"),HSBA:new RegExp(["^hsba\\(",a.source,",",p.source,",",p.source,",",l.source,"\\)$"].join(o.source),"i")};u.default.Color._parseInputs=function(e,t,r,n){var o,a=arguments.length,i=this.mode,s=this.maxes[i],l=[];if(3<=a){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]="number"==typeof n?n/s[3]:1,o=l.length-1;0<=o;--o){var p=l[o];p<0?l[o]=0:1<p&&(l[o]=1)}return i===d.HSL?h.default._hslaToRGBA(l):i===d.HSB?h.default._hsbaToRGBA(l):l}if(1===a&&"string"==typeof e){var c=e.trim().toLowerCase();if(f[c])return u.default.Color._parseInputs.call(this,f[c]);if(m.HEX3.test(c))return(l=m.HEX3.exec(c).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(c))return(l=m.HEX6.exec(c).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(c))return l=m.HEX4.exec(c).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(c))return l=m.HEX8.exec(c).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(c))return(l=m.RGB.exec(c).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(c))return(l=m.RGB_PERCENT.exec(c).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(c))return l=m.RGBA.exec(c).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(c))return l=m.RGBA_PERCENT.exec(c).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(c)?(l=m.HSL.exec(c).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(c)&&(l=m.HSLA.exec(c).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return h.default._hslaToRGBA(l);if(m.HSB.test(c)?(l=m.HSB.exec(c).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(c)&&(l=m.HSBA.exec(c).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(o=l.length-1;0<=o;--o)l[o]=Math.max(Math.min(l[o],1),0);return h.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==a&&2!==a||"number"!=typeof e)throw new Error("".concat(arguments,"is not a valid color representation."));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]="number"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var c=u.default.Color;r.default=c},{"../core/constants":277,"../core/main":289,"./color_conversion":273,"core-js/modules/es.array.join":177,"core-js/modules/es.array.map":179,"core-js/modules/es.array.slice":180,"core-js/modules/es.object.to-string":195,"core-js/modules/es.regexp.constructor":198,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.regexp.to-string":200,"core-js/modules/es.string.trim":211}],276:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}e("core-js/modules/es.array.fill"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,s=(n=e("../core/main"))&&n.__esModule?n:{default:n},l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("../core/constants"));function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}e("./p5.Color"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,n=(arguments.length<=3?void 0:arguments[3])||0;return this._renderer.clear(e,t,r,n),this},s.default.prototype.colorMode=function(e,t,r,n,o){if(s.default._validateParameters("colorMode",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var a=this._colorMaxes[e];2===arguments.length?(a[0]=t,a[1]=t,a[2]=t,a[3]=t):4===arguments.length?(a[0]=t,a[1]=r,a[2]=n):5===arguments.length&&(a[0]=t,a[1]=r,a[2]=n,a[3]=o)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty("_fillSet",!0),this._renderer._setProperty("_doFill",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty("_doFill",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty("_doStroke",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty("_strokeSet",!0),this._renderer._setProperty("_doStroke",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var o=s.default;r.default=o},{"../core/constants":277,"../core/main":289,"./p5.Color":275,"core-js/modules/es.array.fill":169}],277:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.WORD=r.CHAR=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=r.VERSION=void 0,r.FALLBACK=r.LABEL=r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=r.FILL=r.STROKE=r.CURVE=void 0;var n=Math.PI;r.VERSION="1.4.1";r.P2D="p2d";r.WEBGL="webgl";r.ARROW="default";r.CROSS="crosshair";r.HAND="pointer";r.MOVE="move";r.TEXT="text";r.WAIT="wait";var o=n/2;r.HALF_PI=o;var a=n;r.PI=a;var i=n/4;r.QUARTER_PI=i;var s=2*n;r.TAU=s;var l=2*n;r.TWO_PI=l;r.DEGREES="degrees";r.RADIANS="radians";var p=n/180;r.DEG_TO_RAD=p;var c=180/n;r.RAD_TO_DEG=c;r.CORNER="corner";r.CORNERS="corners";r.RADIUS="radius";r.RIGHT="right";r.LEFT="left";r.CENTER="center";r.TOP="top";r.BOTTOM="bottom";r.BASELINE="alphabetic";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS="quads";r.QUAD_STRIP="quad_strip";r.TESS="tess";r.CLOSE="close";r.OPEN="open";r.CHORD="chord";r.PIE="pie";r.PROJECT="square";r.SQUARE="butt";r.ROUND="round";r.BEVEL="bevel";r.MITER="miter";r.RGB="rgb";r.HSB="hsb";r.HSL="hsl";r.AUTO="auto";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND="source-over";r.REMOVE="destination-out";r.ADD="lighter";r.DARKEST="darken";r.LIGHTEST="lighten";r.DIFFERENCE="difference";r.SUBTRACT="subtract";r.EXCLUSION="exclusion";r.MULTIPLY="multiply";r.SCREEN="screen";r.REPLACE="copy";r.OVERLAY="overlay";r.HARD_LIGHT="hard-light";r.SOFT_LIGHT="soft-light";r.DODGE="color-dodge";r.BURN="color-burn";r.THRESHOLD="threshold";r.GRAY="gray";r.OPAQUE="opaque";r.INVERT="invert";r.POSTERIZE="posterize";r.DILATE="dilate";r.ERODE="erode";r.BLUR="blur";r.NORMAL="normal";r.ITALIC="italic";r.BOLD="bold";r.BOLDITALIC="bold italic";r.CHAR="CHAR";r.WORD="WORD";r._DEFAULT_TEXT_FILL="#000000";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE="middle";r.LINEAR="linear";r.QUADRATIC="quadratic";r.BEZIER="bezier";r.CURVE="curve";r.STROKE="stroke";r.FILL="fill";r.TEXTURE="texture";r.IMMEDIATE="immediate";r.IMAGE="image";r.NEAREST="nearest";r.REPEAT="repeat";r.CLAMP="clamp";r.MIRROR="mirror";r.LANDSCAPE="landscape";r.PORTRAIT="portrait";r._DEFAULT_STROKE="#000000";r._DEFAULT_FILL="#FFFFFF";r.GRID="grid";r.AXES="axes";r.LABEL="label";r.FALLBACK="fallback"},{}],278:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.filter"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.string.search"),e("core-js/modules/es.string.split"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("./main"))&&n.__esModule?n:{default:n},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("./constants"));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[a.ARROW,a.CROSS,a.HAND,a.MOVE,a.TEXT,a.WAIT];o.default.prototype._frameRate=0,o.default.prototype._lastFrameTime=window.performance.now(),o.default.prototype._targetFrameRate=60;var p=window.print;function c(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function u(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}o.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):p()},o.default.prototype.frameCount=0,o.default.prototype.deltaTime=0,o.default.prototype.focused=document.hasFocus(),o.default.prototype.cursor=function(e,t,r){var n="auto",o=this._curElement.elt;if(l.includes(e))n=e;else if("string"==typeof e){var a="";t&&r&&"number"==typeof t&&"number"==typeof r&&(a="".concat(t," ").concat(r)),n="http://"===e.substring(0,7)||"https://"===e.substring(0,8)?"url(".concat(e,") ").concat(a,", auto"):/\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?"url(".concat(e,") ").concat(a,", auto"):e}o.style.cursor=n},o.default.prototype.frameRate=function(e){return o.default._validateParameters("frameRate",arguments),"number"!=typeof e||e<0?this._frameRate:(this._setProperty("_targetFrameRate",e),0===e&&this._setProperty("_frameRate",e),this)},o.default.prototype.getFrameRate=function(){return this.frameRate()},o.default.prototype.setFrameRate=function(e){return this.frameRate(e)},o.default.prototype.noCursor=function(){this._curElement.elt.style.cursor="none"},o.default.prototype.displayWidth=screen.width,o.default.prototype.displayHeight=screen.height,o.default.prototype.windowWidth=c(),o.default.prototype.windowHeight=u(),o.default.prototype._onresize=function(e){this._setProperty("windowWidth",c()),this._setProperty("windowHeight",u());var t,r=this._isGlobal?window:this;"function"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},o.default.prototype.width=0,o.default.prototype.height=0,o.default.prototype.fullscreen=function(e){if(o.default._validateParameters("fullscreen",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error("Fullscreen not enabled in this browser.");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},o.default.prototype.pixelDensity=function(e){var t;return o.default._validateParameters("pixelDensity",arguments),"number"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},o.default.prototype.displayDensity=function(){return window.devicePixelRatio},o.default.prototype.getURL=function(){return location.href},o.default.prototype.getURLPath=function(){return location.pathname.split("/").filter(function(e){return""!==e})},o.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var d=o.default;r.default=d},{"./constants":277,"./main":289,"core-js/modules/es.array.concat":167,"core-js/modules/es.array.filter":170,"core-js/modules/es.array.includes":174,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.string.includes":203,"core-js/modules/es.string.search":208,"core-js/modules/es.string.split":209}],279:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={ReferenceError:[{msg:"{{}} is not defined",type:"NOTDEFINED",browser:"all"},{msg:"Can't find variable: {{}}",type:"NOTDEFINED",browser:"Safari"},{msg:"Cannot access '{{.}}' before initialization",type:"CANNOTACCESS",browser:"Chrome"},{msg:"can't access lexical declaration '{{.}}' before initialization",type:"CANNOTACCESS",browser:"Firefox"}],SyntaxError:[{msg:"illegal character",type:"INVALIDTOKEN",browser:"Firefox"},{msg:"Invalid character",type:"INVALIDTOKEN",browser:"Safari"},{msg:"Invalid or unexpected token",type:"INVALIDTOKEN",browser:"Chrome"},{msg:"Unexpected token '{{.}}'",type:"UNEXPECTEDTOKEN",browser:"Chrome"},{msg:"expected {{.}}, got '{{.}}'",type:"UNEXPECTEDTOKEN",browser:"Chrome"},{msg:"Identifier '{{.}}' has already been declared",type:"REDECLAREDVARIABLE",browser:"Chrome"},{msg:"redeclaration of {} {{.}}",type:"REDECLAREDVARIABLE",browser:"Firefox"},{msg:"Missing initializer in const declaration",type:"MISSINGINITIALIZER",browser:"Chrome"},{msg:"missing = in const declaration",type:"MISSINGINITIALIZER",browser:"Firefox"},{msg:"Illegal return statement",type:"BADRETURNORYIELD",browser:"Chrome"},{msg:"return not in function",type:"BADRETURNORYIELD",browser:"Firefox"}],TypeError:[{msg:"{{.}} is not a function",type:"NOTFUNC",browser:"all"},{msg:"Cannot read {{.}} null",type:"READNULL",browser:"Chrome"},{msg:"{{.}} is null",type:"READNULL",browser:"Firefox"},{msg:"Cannot read {{.}} undefined",type:"READUDEFINED",browser:"Chrome"},{msg:"{{.}} is undefined",type:"READUDEFINED",browser:"Firefox"},{msg:"Assignment to constant variable",type:"CONSTASSIGN",browser:"Chrome"},{msg:"invalid assignment to const '{{.}}'",type:"CONSTASSIGN",browser:"Firefox"}]};r.default=n},{}],280:[function(r,e,t){r("core-js/modules/es.symbol"),r("core-js/modules/es.symbol.description"),r("core-js/modules/es.symbol.iterator"),r("core-js/modules/es.array.concat"),r("core-js/modules/es.array.filter"),r("core-js/modules/es.array.for-each"),r("core-js/modules/es.array.includes"),r("core-js/modules/es.array.iterator"),r("core-js/modules/es.array.join"),r("core-js/modules/es.array.map"),r("core-js/modules/es.array.slice"),r("core-js/modules/es.array.some"),r("core-js/modules/es.function.name"),r("core-js/modules/es.object.assign"),r("core-js/modules/es.object.get-own-property-names"),r("core-js/modules/es.object.keys"),r("core-js/modules/es.object.to-string"),r("core-js/modules/es.regexp.constructor"),r("core-js/modules/es.regexp.exec"),r("core-js/modules/es.regexp.to-string"),r("core-js/modules/es.string.iterator"),r("core-js/modules/es.string.match"),r("core-js/modules/es.string.replace"),r("core-js/modules/es.string.search"),r("core-js/modules/es.string.split"),r("core-js/modules/web.dom-collections.for-each"),r("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r("../main"))&&n.__esModule?n:{default:n};r("../internationalization");var a=null,i=null;o.default._friendlyError=o.default._checkForUserDefinedFunctions=o.default._fesErrorMonitor=function(){},a=null;var s="https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup";i=function(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return"_"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t="function"==typeof r[e]?"function":e===e.toUpperCase()?"constant":"variable",{name:e,type:t}})}var t={};(a=[].concat(e(o.default.prototype),e(r("../constants")))).sort(function(e,t){return t.name.length-e.name.length})};function l(r,n){n=n||console.log.bind(console),a||i(),a.some(function(e){if(r.message&&null!==r.message.match("\\W?".concat(e.name,"\\W"))){var t="function"===e.type?"".concat(e.name,"()"):e.name;return n("Did you just try to use p5.js's ".concat(t," ").concat(e.type,"? If so, you may want to move it into your sketch's setup() function.\n\nFor more details, see: ").concat(s)),!0}})}o.default.prototype._helpForMisusedAtTopLevelCode=l,"complete"!==document.readyState&&(window.addEventListener("error",l,!1),window.addEventListener("load",function(){window.removeEventListener("error",l,!1)}));var p=o.default;t.default=p},{"../constants":277,"../internationalization":287,"../main":289,"./browser_errors":279,"core-js/modules/es.array.concat":167,"core-js/modules/es.array.filter":170,"core-js/modules/es.array.for-each":172,"core-js/modules/es.array.includes":174,"core-js/modules/es.array.iterator":176,"core-js/modules/es.array.join":177,"core-js/modules/es.array.map":179,"core-js/modules/es.array.slice":180,"core-js/modules/es.array.some":181,"core-js/modules/es.function.name":184,"core-js/modules/es.object.assign":191,"core-js/modules/es.object.get-own-property-names":192,"core-js/modules/es.object.keys":194,"core-js/modules/es.object.to-string":195,"core-js/modules/es.regexp.constructor":198,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.regexp.to-string":200,"core-js/modules/es.string.iterator":204,"core-js/modules/es.string.match":205,"core-js/modules/es.string.replace":207,"core-js/modules/es.string.search":208,"core-js/modules/es.string.split":209,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/web.dom-collections.for-each":246,"core-js/modules/web.dom-collections.iterator":247}],281:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../main"))&&n.__esModule?n:{default:n};e("../internationalization");o.default._friendlyFileLoadError=function(){};var a=o.default;r.default=a},{"../internationalization":287,"../main":289}],282:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.filter"),e("core-js/modules/es.array.flat-map"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.from"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.map"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.array.unscopables.flat-map"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.constructor"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.string.iterator"),e("core-js/modules/es.string.match"),e("core-js/modules/es.string.split"),e("core-js/modules/es.string.trim"),e("core-js/modules/web.dom-collections.for-each"),e("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=x(e("../main")),o=e("../internationalization"),a=b(e("../constants")),s,l,p,c,u,d,h,f,m,y,g;function v(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return v=function(){return e},e}function b(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=v();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}function x(e){return e&&e.__esModule?e:{default:e}}function w(e){return j(e)||S(e)||_()}function _(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function S(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function j(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}n.default._fesCodeReader=function(){};var E=n.default;r.default=E},{"../constants":277,"../internationalization":287,"../main":289,"core-js/modules/es.array.filter":170,"core-js/modules/es.array.flat-map":171,"core-js/modules/es.array.for-each":172,"core-js/modules/es.array.from":173,"core-js/modules/es.array.includes":174,"core-js/modules/es.array.index-of":175,"core-js/modules/es.array.iterator":176,"core-js/modules/es.array.map":179,"core-js/modules/es.array.slice":180,"core-js/modules/es.array.unscopables.flat-map":183,"core-js/modules/es.object.keys":194,"core-js/modules/es.object.to-string":195,"core-js/modules/es.regexp.constructor":198,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.regexp.to-string":200,"core-js/modules/es.string.includes":203,"core-js/modules/es.string.iterator":204,"core-js/modules/es.string.match":205,"core-js/modules/es.string.split":209,"core-js/modules/es.string.trim":211,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/web.dom-collections.for-each":246,"core-js/modules/web.dom-collections.iterator":247}],283:[function(e,t,r){e("core-js/modules/es.array.filter"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.array.join"),e("core-js/modules/es.array.map"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.match"),e("core-js/modules/es.string.replace"),e("core-js/modules/es.string.split"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../main"))&&n.__esModule?n:{default:n};function a(){var t=/(^|@)\S+:\d+/,r=/^\s*at .*(\S+:\d+|\(native\))/m,n=/^(eval@)?(\[native code])?$/;return{parse:function(e){return void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(r)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):void 0},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(r)},this).map(function(e){-1<e.indexOf("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),o=this.extractLocation(r?r[1]:n.pop());return{functionName:n.join(" ")||void 0,fileName:-1<["eval","<anonymous>"].indexOf(o[0])?void 0:o[0],lineNumber:o[1],columnNumber:o[2],source:e}},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(n)},this).map(function(e){if(-1<e.indexOf(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return{functionName:e};var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,o=this.extractLocation(e.replace(t,""));return{functionName:n,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:e}},this)},parseOpera:function(e){return!e.stacktrace||-1<e.message.indexOf("\n")&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],o=2,a=r.length;o<a;o+=2){var i=t.exec(r[o]);i&&n.push({fileName:i[2],lineNumber:i[1],source:r[o]})}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],o=0,a=r.length;o<a;o+=2){var i=t.exec(r[o]);i&&n.push({functionName:i[3]||void 0,fileName:i[2],lineNumber:i[1],source:r[o]})}return n},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(e){var t,r=e.split("@"),n=this.extractLocation(r.pop()),o=r.shift()||"",a=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return o.match(/\(([^)]*)\)/)&&(t=o.replace(/^[^(]+\(([^)]*)\)$/,"$1")),{functionName:a,args:void 0===t||"[arguments not available]"===t?void 0:t.split(","),fileName:n[0],lineNumber:n[1],columnNumber:n[2],source:e}},this)}}}o.default._getErrorStackParser=function(){return new a};var i=o.default;r.default=i},{"../main":289,"core-js/modules/es.array.filter":170,"core-js/modules/es.array.index-of":175,"core-js/modules/es.array.join":177,"core-js/modules/es.array.map":179,"core-js/modules/es.array.slice":180,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.string.match":205,"core-js/modules/es.string.replace":207,"core-js/modules/es.string.split":209}],284:[function(e,t,r){e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.join"),e("core-js/modules/es.array.last-index-of"),e("core-js/modules/es.array.map"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.function.name"),e("core-js/modules/es.map"),e("core-js/modules/es.number.constructor"),e("core-js/modules/es.object.get-prototype-of"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.reflect.construct"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.set"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.string.iterator"),e("core-js/modules/es.string.split"),e("core-js/modules/web.dom-collections.for-each"),e("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../main"))&&n.__esModule?n:{default:n};(function(e){if(e&&e.__esModule)return;if(null===e||"object"!==s(e)&&"function"!=typeof e)return;var t=i();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r)})(e("../constants")),e("../internationalization");function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function s(e){return(s="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}o.default._validateParameters=o.default._clearValidateParamsCache=function(){};var a=o.default;r.default=a},{"../../../docs/parameterData.json":1,"../constants":277,"../internationalization":287,"../main":289,"core-js/modules/es.array.concat":167,"core-js/modules/es.array.for-each":172,"core-js/modules/es.array.includes":174,"core-js/modules/es.array.index-of":175,"core-js/modules/es.array.iterator":176,"core-js/modules/es.array.join":177,"core-js/modules/es.array.last-index-of":178,"core-js/modules/es.array.map":179,"core-js/modules/es.array.slice":180,"core-js/modules/es.function.name":184,"core-js/modules/es.map":185,"core-js/modules/es.number.constructor":188,"core-js/modules/es.object.get-prototype-of":193,"core-js/modules/es.object.keys":194,"core-js/modules/es.object.to-string":195,"core-js/modules/es.reflect.construct":197,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.regexp.to-string":200,"core-js/modules/es.set":201,"core-js/modules/es.string.includes":203,"core-js/modules/es.string.iterator":204,"core-js/modules/es.string.split":209,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/web.dom-collections.for-each":246,"core-js/modules/web.dom-collections.iterator":247}],285:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("./constants"));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var n={modeAdjust:function(e,t,r,n,o){return o===a.CORNER?{x:e,y:t,w:r,h:n}:o===a.CORNERS?{x:e,y:t,w:r-e,h:n-t}:o===a.RADIUS?{x:e-r,y:t-n,w:2*r,h:2*n}:o===a.CENTER?{x:e-.5*r,y:t-.5*n,w:r,h:n}:void 0}};r.default=n},{"./constants":277}],286:[function(e,t,r){e("core-js/modules/es.array.iterator"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.promise"),e("core-js/modules/es.string.iterator"),e("core-js/modules/web.dom-collections.iterator");var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n};e("./internationalization");var a=Promise.resolve();Promise.all([new Promise(function(e,t){"complete"===document.readyState?e():window.addEventListener("load",e,!1)}),a]).then(function(){void 0===window._setupDone?window.mocha||(window.setup&&"function"==typeof window.setup||window.draw&&"function"==typeof window.draw)&&!o.default.instance&&new o.default:console.warn("p5.js seems to have been imported multiple times. Please remove the duplicate import")})},{"../core/main":289,"./internationalization":287,"core-js/modules/es.array.iterator":176,"core-js/modules/es.object.to-string":195,"core-js/modules/es.promise":196,"core-js/modules/es.string.iterator":204,"core-js/modules/web.dom-collections.iterator":247}],287:[function(e,t,r){e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.join"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.promise"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.string.iterator"),e("core-js/modules/es.string.split"),e("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(r,"__esModule",{value:!0}),r.setTranslatorLanguage=r.currentTranslatorLanguage=r.availableTranslatorLanguages=r.initialize=r.translator=void 0;var a,i,n=s(e("i18next")),o=s(e("i18next-browser-languagedetector"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var p=function(){function r(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.init(e,t)}var e,t,n;return e=r,(t=[{key:"fetchWithTimeout",value:function(e,t,r){var n=2<arguments.length&&void 0!==r?r:2e3;return Promise.race([fetch(e,t),new Promise(function(e,t){return setTimeout(function(){return t(new Error("timeout"))},n)})])}},{key:"init",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.services=e,this.options=r}},{key:"read",value:function(e,t,r){var n=this.options.loadPath;if(e===this.options.fallback)r(null,a[e][t]);else if(i.includes(e)){var o=this.services.interpolator.interpolate(n,{lng:e,ns:t});this.loadUrl(o,r)}else r("Not found",!1)}},{key:"loadUrl",value:function(t,r){this.fetchWithTimeout(t).then(function(e){if(!e.ok)throw new Error("failed loading ".concat(t));return e.json()},function(){throw new Error("failed loading ".concat(t))}).then(function(e){return r(null,e)}).catch(r)}}])&&l(e.prototype,t),n&&l(e,n),r}();p.type="backend";var c=function(e,t){console.debug("p5.js translator called before translations were loaded"),n.default.t(e,t)};r.translator=c;r.initialize=function(){return n.default.use(o.default).use(p).init({fallbackLng:"en",nestingPrefix:"$tr(",nestingSuffix:")",defaultNS:"translation",returnEmptyString:!1,interpolation:{escapeValue:!1},detection:{checkWhitelist:!1,order:["querystring","navigator","htmlTag","path","subdomain"],caches:[]},backend:{fallback:"en",loadPath:"https://cdn.jsdelivr.net/npm/p5/translations/{{lng}}/{{ns}}.json"},partialBundledLanguages:!0,resources:a}).then(function(e){r.translator=c=e},function(e){return console.debug("Translations failed to load (".concat(e,")"))})};r.availableTranslatorLanguages=function(){return n.default.languages};r.currentTranslatorLanguage=function(){return n.default.language};r.setTranslatorLanguage=function(e){return n.default.changeLanguage(e||void 0,function(e){return console.debug("Translations failed to load (".concat(e,")"))})}},{"../../translations":348,"../../translations/dev":void 0,"core-js/modules/es.array.includes":174,"core-js/modules/es.array.iterator":176,"core-js/modules/es.array.join":177,"core-js/modules/es.array.slice":180,"core-js/modules/es.object.keys":194,"core-js/modules/es.object.to-string":195,"core-js/modules/es.promise":196,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.string.includes":203,"core-js/modules/es.string.iterator":204,"core-js/modules/es.string.split":209,"core-js/modules/web.dom-collections.iterator":247,i18next:258,"i18next-browser-languagedetector":255}],288:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("./main"))&&n.__esModule?n:{default:n};o.default.prototype.pushStyle=function(){throw new Error("pushStyle() not used, see push()")},o.default.prototype.popStyle=function(){throw new Error("popStyle() not used, see pop()")},o.default.prototype.popMatrix=function(){throw new Error("popMatrix() not used, see pop()")},o.default.prototype.pushMatrix=function(){throw new Error("pushMatrix() not used, see push()")};var a=o.default;r.default=a},{"./main":289}],289:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.object.get-own-property-names"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.string.iterator"),e("core-js/modules/web.dom-collections.for-each"),e("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,e("./shim");var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("./constants"));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function x(e,t,r){var d=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,x),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId="p5_loading",this._registeredMethods={};var n=Object.getOwnPropertyNames(x.prototype._registeredMethods),o=!0,a=!1,i=void 0;try{for(var s,l=n[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var p=s.value;this._registeredMethods[p]=x.prototype._registeredMethods[p].slice()}}catch(e){a=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(a)throw i}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){d._userNode&&"string"==typeof d._userNode&&(d._userNode=document.getElementById(d._userNode));var e=d._isGlobal?window:d;if(e.preload){var t=document.getElementById(d._loadingScreenId);if(!t)(t=document.createElement("div")).innerHTML="Loading...",t.style.position="absolute",t.id=d._loadingScreenId,(d._userNode||document.body).appendChild(t);var r=d._preloadMethods;for(var n in r){r[n]=r[n]||x;var o=r[n];o!==x.prototype&&o!==x||(d._isGlobal&&(window[n]=d._wrapPreload(d,n)),o=d),d._registeredPreloadMethods[n]=o[n],o[n]=d._wrapPreload(o,n)}e.preload(),d._runIfPreloadsAreDone()}else d._setup(),d._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._setupDone||(this._lastFrameTime=window.performance.now(),e._setup(),e._draw())}},this._decrementPreload=function(){var e=this._isGlobal?window:this;"function"==typeof e.preload&&(e._setProperty("_preloadCount",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(n,o){var a=this;return function(){a._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return a._registeredPreloadMethods[o].apply(n,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty("_preloadCount",e._preloadCount+1)},this._setup=function(){d.createCanvas(d._defaultCanvasSize.width,d._defaultCanvasSize.height,"p2d");var e=d._isGlobal?window:d;if("function"==typeof e.preload)for(var t in d._preloadMethods)e[t]=d._preloadMethods[t][t],e[t]&&d&&(e[t]=e[t].bind(d));d._millisStart=window.performance.now(),"function"==typeof e.setup&&e.setup();var r=document.getElementsByTagName("canvas"),n=!0,o=!1,a=void 0;try{for(var i,s=r[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value;"true"===l.dataset.hidden&&(l.style.visibility="",delete l.dataset.hidden)}}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}d._lastFrameTime=window.performance.now(),d._setupDone=!0,(d._accessibleOutputs.grid||d._accessibleOutputs.text)&&d._updateAccsOutput()},this._draw=function(){var e=window.performance.now(),t=e-d._lastFrameTime,r=1e3/d._targetFrameRate;(!d._loop||r-5<=t)&&(d.redraw(),d._frameRate=1e3/(e-d._lastFrameTime),d.deltaTime=e-d._lastFrameTime,d._setProperty("deltaTime",d.deltaTime),d._lastFrameTime=e,void 0!==d._updateMouseCoords&&(d._updateMouseCoords(),d._setProperty("movedX",0),d._setProperty("movedY",0))),d._loop&&(d._requestAnimId=window.requestAnimationFrame(d._draw))},this._setProperty=function(e,t){d[e]=t,d._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(d._loadingScreenId);if(e&&(e.parentNode.removeChild(e),d._incrementPreload()),d._curElement){for(var t in d._loop=!1,d._requestAnimId&&window.cancelAnimationFrame(d._requestAnimId),d._events)window.removeEventListener(t,d._events[t]);var r=!0,n=!1,o=void 0;try{for(var a,i=d._elements[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var s=a.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){n=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw o}}var p=d;d._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(p)})}if(d._isGlobal){for(var c in x.prototype)try{delete window[c]}catch(e){window[c]=void 0}for(var u in d)if(d.hasOwnProperty(u))try{delete window[u]}catch(e){window[u]=void 0}x.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var c=this._createFriendlyGlobalFunctionBinder();if(e)e(this),x._checkForUserDefinedFunctions(this);else{for(var u in this._isGlobal=!0,x.instance=this,x.prototype)if("function"==typeof x.prototype[u]){var h=u.substring(2);this._events.hasOwnProperty(h)||(Math.hasOwnProperty(u)&&Math[u]===x.prototype[u]?c(u,x.prototype[u]):c(u,x.prototype[u].bind(this)))}else c(u,x.prototype[u]);for(var f in this)this.hasOwnProperty(f)&&c(f,this[f])}for(var m in this._events){var y=this["_on".concat(m)];if(y){var g=y.bind(this);window.addEventListener(m,g,{passive:!1}),this._events[m]=g}}function v(){d._setProperty("focused",!0)}function b(){d._setProperty("focused",!1)}window.addEventListener("focus",v),window.addEventListener("blur",b),this.registerMethod("remove",function(){window.removeEventListener("focus",v),window.removeEventListener("blur",b)}),"complete"===document.readyState?this._start():window.addEventListener("load",this._start.bind(this),!1)}var e,t,r;return e=x,(t=[{key:"_initializeInstanceVariables",value:function(){this._accessibleOutputs={text:!1,grid:!1,textLabel:!1,gridLabel:!1},this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=n.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:"registerPreloadMethod",value:function(e,t){x.prototype._preloadMethods.hasOwnProperty(e)||(x.prototype._preloadMethods[e]=t)}},{key:"registerMethod",value:function(e,t){var r=this||x.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:"_createFriendlyGlobalFunctionBinder",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&o(e.prototype,t),r&&o(e,r),x}();for(var l in a.instance=null,a.disableFriendlyErrors=!1,n)a.prototype[l]=n[l];a.VERSION=n.VERSION,a.prototype._preloadMethods={loadJSON:a.prototype,loadImage:a.prototype,loadStrings:a.prototype,loadXML:a.prototype,loadBytes:a.prototype,loadTable:a.prototype,loadFont:a.prototype,loadModel:a.prototype,loadShader:a.prototype},a.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},a.prototype._registeredPreloadMethods={};var p=a;r.default=p},{"./constants":277,"./shim":300,"core-js/modules/es.array.for-each":172,"core-js/modules/es.array.iterator":176,"core-js/modules/es.array.slice":180,"core-js/modules/es.object.get-own-property-names":192,"core-js/modules/es.object.to-string":195,"core-js/modules/es.string.iterator":204,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/web.dom-collections.for-each":246,"core-js/modules/web.dom-collections.iterator":247}],290:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("./main"))&&n.__esModule?n:{default:n};o.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},o.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:("string"==typeof e?("#"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof o.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},o.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},o.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},o.default.Element.prototype.mousePressed=function(t){return o.default.Element._adjustListener("mousedown",function(e){return this._pInst._setProperty("mouseIsPressed",!0),this._pInst._setMouseButton(e),t.call(this,e)},this),this},o.default.Element.prototype.doubleClicked=function(e){return o.default.Element._adjustListener("dblclick",e,this),this},o.default.Element.prototype.mouseWheel=function(e){return o.default.Element._adjustListener("wheel",e,this),this},o.default.Element.prototype.mouseReleased=function(e){return o.default.Element._adjustListener("mouseup",e,this),this},o.default.Element.prototype.mouseClicked=function(e){return o.default.Element._adjustListener("click",e,this),this},o.default.Element.prototype.mouseMoved=function(e){return o.default.Element._adjustListener("mousemove",e,this),this},o.default.Element.prototype.mouseOver=function(e){return o.default.Element._adjustListener("mouseover",e,this),this},o.default.Element.prototype.mouseOut=function(e){return o.default.Element._adjustListener("mouseout",e,this),this},o.default.Element.prototype.touchStarted=function(e){return o.default.Element._adjustListener("touchstart",e,this),this},o.default.Element.prototype.touchMoved=function(e){return o.default.Element._adjustListener("touchmove",e,this),this},o.default.Element.prototype.touchEnded=function(e){return o.default.Element._adjustListener("touchend",e,this),this},o.default.Element.prototype.dragOver=function(e){return o.default.Element._adjustListener("dragover",e,this),this},o.default.Element.prototype.dragLeave=function(e){return o.default.Element._adjustListener("dragleave",e,this),this},o.default.Element._adjustListener=function(e,t,r){return!1===t?o.default.Element._detachListener(e,r):o.default.Element._attachListener(e,t,r),this},o.default.Element._attachListener=function(e,t,r){r._events[e]&&o.default.Element._detachListener(e,r);var n=t.bind(r);r.elt.addEventListener(e,n,!1),r._events[e]=n},o.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},o.default.Element.prototype._setProperty=function(e,t){this[e]=t};var a=o.default.Element;r.default=a},{"./main":289}],291:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}e("core-js/modules/es.array.index-of"),e("core-js/modules/es.array.splice"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,s=(n=e("./main"))&&n.__esModule?n:{default:n},l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("./constants"));function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}s.default.Graphics=function(e,t,r,n){var o=r||l.P2D;this.canvas=document.createElement("canvas");var a=n._userNode||document.body;for(var i in a.appendChild(this.canvas),s.default.Element.call(this,this.canvas,n),s.default.prototype)this[i]||("function"==typeof s.default.prototype[i]?this[i]=s.default.prototype[i].bind(this):this[i]=s.default.prototype[i]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=n._pixelDensity,o===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),n._elements.push(this),Object.defineProperty(this,"deltaTime",{get:function(){return this._pInst.deltaTime}}),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var o=s.default.Graphics;r.default=o},{"./constants":277,"./main":289,"core-js/modules/es.array.index-of":175,"core-js/modules/es.array.splice":182}],292:[function(e,t,r){e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.number.constructor"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.iterator"),e("core-js/modules/es.string.replace"),e("core-js/modules/es.string.split"),e("core-js/modules/es.string.trim"),e("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,l=(n=e("./main"))&&n.__esModule?n:{default:n},A=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("../core/constants"));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function s(e){return(s="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}function p(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty("_curElement",this),this._pInst._setProperty("canvas",this.canvas),this._pInst._setProperty("width",this.width),this._pInst._setProperty("height",this.height)):(this.canvas.style.display="none",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont="sans-serif",this._textStyle=A.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=A.LEFT,this._textBaseline=A.BASELINE,this._textWrap=A.WORD,this._rectMode=A.CORNER,this._ellipseMode=A.CENTER,this._curveTightness=0,this._imageMode=A.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1,this._leadingSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_leadingSet:this._leadingSet,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle,_textWrap:this._textWrap}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width="".concat(e,"px"),this.elt.style.height="".concat(t,"px"),this._isMainCanvas&&(this._pInst._setProperty("width",this.width),this._pInst._setProperty("height",this.height))},l.default.Renderer.prototype.get=function(e,t,r,n){var o=this._pixelsState,a=o._pixelDensity,i=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=o.width,n=o.height;else if(e*=a,t*=a,void 0===r&&void 0===n)return e<0||t<0||e>=i.width||t>=i.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,n);return s.canvas.getContext("2d").drawImage(i,e,t,r*a,n*a,0,0,r,n),s},l.default.Renderer.prototype.textLeading=function(e){return"number"==typeof e?(this._setProperty("_leadingSet",!0),this._setProperty("_textLeading",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return"number"==typeof e?(this._setProperty("_textSize",e),this._leadingSet||this._setProperty("_textLeading",e*A._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==A.NORMAL&&e!==A.ITALIC&&e!==A.BOLD&&e!==A.BOLDITALIC||this._setProperty("_textStyle",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty("_textAlign",e),void 0!==t&&this._setProperty("_textBaseline",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.textWrap=function(e){return this._setProperty("_textWrap",e),this._textWrap},l.default.Renderer.prototype.text=function(e,t,r,n,o){var a,i,s,l,p,c,u,d=this._pInst,h=this._textWrap,f=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if("string"!=typeof e&&(e=e.toString()),a=(e=e.replace(/(\t)/g," ")).split("\n"),void 0!==n){switch(this._rectMode===A.CENTER&&(t-=n/2),this._textAlign){case A.CENTER:t+=n/2;break;case A.RIGHT:t+=n}var m=!1;if(void 0!==o){switch(this._rectMode===A.CENTER&&(r-=o/2),this._textBaseline){case A.BOTTOM:u=r+o,r=Math.max(u,r);break;case A.CENTER:u=r+o/2,r=Math.max(u,r);break;case A.BASELINE:m=!0,this._textBaseline=A.TOP}f=r+o-d.textAscent()}if(h===A.WORD){for(var y=[],g=0;g<a.length;g++){i="",p=a[g].split(" ");for(var v=0;v<p.length;v++)s="".concat(i+p[v])+" ",i=n<(l=this.textWidth(s))&&0<i.length?(y.push(i),"".concat(p[v])+" "):s;y.push(i)}var b=0,x=d.textAlign().vertical;x===A.CENTER?b=(y.length-1)*d.textLeading()/2:x===A.BOTTOM&&(b=(y.length-1)*d.textLeading());for(var w=0;w<a.length;w++){i="",p=a[w].split(" ");for(var _=0;_<p.length;_++)s="".concat(i+p[_])+" ",n<(l=this.textWidth(s))&&0<i.length?(this._renderText(d,i.trim(),t,r-b,f),i="".concat(p[_])+" ",r+=d.textLeading()):i=s;this._renderText(d,i.trim(),t,r-b,f),r+=d.textLeading(),m&&(this._textBaseline=A.BASELINE)}}else{for(var S=[],j=0;j<a.length;j++){i="",c=a[j].split("");for(var E=0;E<c.length;E++)s="".concat(i+c[E]),(l=this.textWidth(s))<=n?i+=c[E]:n<l&&0<i.length&&(S.push(i),i="".concat(c[E]))}S.push(i);var T=0,M=d.textAlign().vertical;M===A.CENTER?T=(S.length-1)*d.textLeading()/2:M===A.BOTTOM&&(T=(S.length-1)*d.textLeading());for(var C=0;C<a.length;C++){i="",c=a[C].split("");for(var O=0;O<c.length;O++)s="".concat(i+c[O]),(l=this.textWidth(s))<=n?i+=c[O]:n<l&&0<i.length&&(this._renderText(d,i.trim(),t,r-T,f),r+=d.textLeading(),i="".concat(c[O]))}this._renderText(d,i.trim(),t,r-T,f),r+=d.textLeading(),m&&(this._textBaseline=A.BASELINE)}}else{var N=0,k=d.textAlign().vertical;k===A.CENTER?N=(a.length-1)*d.textLeading()/2:k===A.BOTTOM&&(N=(a.length-1)*d.textLeading());for(var L=0;L<a.length;L++)this._renderText(d,a[L],t,r-N,f),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return"object"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty("_textAscent",this._textFont._textAscent()),this._setProperty("_textDescent",this._textFont._textDescent()),this;var e=document.createElement("span");e.style.fontFamily=this._textFont,e.style.fontSize="".concat(this._textSize,"px"),e.innerHTML="ABCjgq|";var t=document.createElement("div");t.style.display="inline-block",t.style.width="1px",t.style.height="0px";var r=document.createElement("div");r.appendChild(e),r.appendChild(t),r.style.height="0px",r.style.overflow="hidden",document.body.appendChild(r),t.style.verticalAlign="baseline";var n=p(t),o=p(e),a=n[1]-o[1];t.style.verticalAlign="bottom",n=p(t),o=p(e);var i=n[1]-o[1]-a;return document.body.removeChild(r),this._setProperty("_textAscent",a),this._setProperty("_textDescent",i),this};var o=l.default.Renderer;r.default=o},{"../core/constants":277,"./main":289,"core-js/modules/es.array.iterator":176,"core-js/modules/es.number.constructor":188,"core-js/modules/es.object.assign":191,"core-js/modules/es.object.to-string":195,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.regexp.to-string":200,"core-js/modules/es.string.iterator":204,"core-js/modules/es.string.replace":207,"core-js/modules/es.string.split":209,"core-js/modules/es.string.trim":211,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/web.dom-collections.iterator":247}],293:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.fill"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.function.name"),e("core-js/modules/es.number.to-fixed"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.to-string"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var u=n(e("./main")),f=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("./constants")),d=n(e("../image/filters"));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}e("./p5.Renderer");var y="rgba(0,0,0,0)";u.default.Renderer2D=function(e,t,r){return u.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext("2d"),this._pInst._setProperty("drawingContext",this.drawingContext),this},u.default.Renderer2D.prototype=Object.create(u.default.Renderer.prototype),u.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=f.BLEND,this._setFill(f._DEFAULT_FILL),this._setStroke(f._DEFAULT_STROKE),this.drawingContext.lineCap=f.ROUND,this.drawingContext.font="normal 12px sans-serif"},u.default.Renderer2D.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},u.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof u.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments);this._pInst._addAccsOutput()&&this._pInst._accsBackground(r.levels);var n=r.toString();this._setFill(n),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},u.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},u.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString()),this._pInst._addAccsOutput()&&this._pInst._accsCanvasColors("fill",t.levels)},u.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString()),this._pInst._addAccsOutput()&&this._pInst._accsCanvasColors("stroke",t.levels)},u.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var n=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=n;var o=this._cachedBlendMode;this.blendMode(f.REMOVE),this._cachedBlendMode=o,this._isErasing=!0}},u.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.Renderer2D.prototype.image=function(e,t,r,n,o,a,i,s,l){var p;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(u.default.MediaElement&&e instanceof u.default.MediaElement&&e.loadPixels(),e.canvas&&(p=this._getTintedImageCanvas(e))),p=p||(e.canvas||e.elt);var c=1;e.width&&0<e.width&&(c=p.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(p,c*t,c*r,c*n,c*o,a,i,s,l),this._isErasing&&this._pInst.erase()}catch(e){if("NS_ERROR_NOT_AVAILABLE"!==e.name)throw e}},u.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=d.default._toPixels(e.canvas),r=document.createElement("canvas");r.width=e.canvas.width,r.height=e.canvas.height;for(var n=r.getContext("2d"),o=n.createImageData(e.canvas.width,e.canvas.height),a=o.data,i=0;i<t.length;i+=4){var s=t[i],l=t[i+1],p=t[i+2],c=t[i+3];a[i]=s*this._tint[0]/255,a[i+1]=l*this._tint[1]/255,a[i+2]=p*this._tint[2]/255,a[i+3]=c*this._tint[3]/255}return n.putImageData(o,0,0),r},u.default.Renderer2D.prototype.blendMode=function(e){if(e===f.SUBTRACT)console.warn("blendMode(SUBTRACT) only works in WEBGL mode.");else{if(e!==f.BLEND&&e!==f.REMOVE&&e!==f.DARKEST&&e!==f.LIGHTEST&&e!==f.DIFFERENCE&&e!==f.MULTIPLY&&e!==f.EXCLUSION&&e!==f.SCREEN&&e!==f.REPLACE&&e!==f.OVERLAY&&e!==f.HARD_LIGHT&&e!==f.SOFT_LIGHT&&e!==f.DODGE&&e!==f.BURN&&e!==f.ADD)throw new Error("Mode ".concat(e," not recognized."));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},u.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r[r.length-1],a=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=o,u.default.prototype.copy.apply(this,a),this.drawingContext.globalCompositeOperation=e},u.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},u.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,n=this.height*t,o=this.drawingContext.getImageData(0,0,r,n);e._setProperty("imageData",o),e._setProperty("pixels",o.data)},u.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var n=this._pixelsState;if(r instanceof u.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(n._pixelDensity,n._pixelDensity),this.drawingContext.clearRect(e,t,r.width,r.height),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var o=0,a=0,i=0,s=0,l=4*(t*n._pixelDensity*(this.width*n._pixelDensity)+e*n._pixelDensity);if(n.imageData||n.loadPixels.call(n),"number"==typeof r)l<n.pixels.length&&(i=a=o=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error("pixel array must be of the form [R, G, B, A]");l<n.pixels.length&&(o=r[0],a=r[1],i=r[2],s=r[3])}else r instanceof u.default.Color&&l<n.pixels.length&&(o=r.levels[0],a=r.levels[1],i=r.levels[2],s=r.levels[3]);for(var p=0;p<n._pixelDensity;p++)for(var c=0;c<n._pixelDensity;c++)l=4*((t*n._pixelDensity+c)*this.width*n._pixelDensity+(e*n._pixelDensity+p)),n.pixels[l]=o,n.pixels[l+1]=a,n.pixels[l+2]=i,n.pixels[l+3]=s}},u.default.Renderer2D.prototype.updatePixels=function(e,t,r,n){var o=this._pixelsState,a=o._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===n&&(t=e=0,r=this.width,n=this.height),e*=a,t*=a,r*=a,n*=a,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=o.imageData),this.drawingContext.putImageData(o.imageData,e,t,0,0,r,n)},u.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,n=Math.cos(r),o=Math.sin(r),a=1/Math.tan(r),i=e+r,s=Math.cos(i),l=Math.sin(i),p=(4-n)/3,c=o+(n-p)*a;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(p*s+c*l).toFixed(7),by:(p*l-c*s).toFixed(7),cx:(p*s-c*l).toFixed(7),cy:(p*l+c*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},u.default.Renderer2D.prototype.arc=function(r,n,e,t,o,a,i){var s=this.drawingContext,l=e/2,p=t/2,c=0,u=[];for(r+=l,n+=p;1e-5<=a-o;)c=Math.min(a-o,f.HALF_PI),u.push(this._acuteArcToBezier(o,c)),o+=c;return this._doFill&&(s.beginPath(),u.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,n+e.ay*p),s.bezierCurveTo(r+e.bx*l,n+e.by*p,r+e.cx*l,n+e.cy*p,r+e.dx*l,n+e.dy*p)}),i!==f.PIE&&null!=i||s.lineTo(r,n),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),u.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,n+e.ay*p),s.bezierCurveTo(r+e.bx*l,n+e.by*p,r+e.cx*l,n+e.cy*p,r+e.dx*l,n+e.dy*p)}),i===f.PIE?(s.lineTo(r,n),s.closePath()):i===f.CHORD&&s.closePath(),s.stroke()),this},u.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,n=this._doStroke,o=parseFloat(e[0]),a=parseFloat(e[1]),i=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!n){if(this._getFill()===y)return this}else if(!r&&n&&this._getStroke()===y)return this;var l=i/2*.5522847498,p=s/2*.5522847498,c=o+i,u=a+s,d=o+i/2,h=a+s/2;t.beginPath(),t.moveTo(o,h),t.bezierCurveTo(o,h-p,d-l,a,d,a),t.bezierCurveTo(d+l,a,c,h-p,c,h),t.bezierCurveTo(c,h+p,d+l,u,d,u),t.bezierCurveTo(d-l,u,o,h+p,o,h),r&&t.fill(),n&&t.stroke()},u.default.Renderer2D.prototype.line=function(e,t,r,n){var o=this.drawingContext;return this._doStroke&&(this._getStroke()===y||(o.beginPath(),o.moveTo(e,t),o.lineTo(r,n),o.stroke())),this},u.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===y)return this;var n=this._getStroke(),o=this._getFill();this._setFill(n),r.beginPath(),r.arc(e,t,r.lineWidth/2,0,f.TWO_PI,!1),r.fill(),this._setFill(o)},u.default.Renderer2D.prototype.quad=function(e,t,r,n,o,a,i,s){var l=this.drawingContext,p=this._doFill,c=this._doStroke;if(p&&!c){if(this._getFill()===y)return this}else if(!p&&c&&this._getStroke()===y)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,n),l.lineTo(o,a),l.lineTo(i,s),l.closePath(),p&&l.fill(),c&&l.stroke(),this},u.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],n=e[2],o=e[3],a=e[4],i=e[5],s=e[6],l=e[7],p=this.drawingContext,c=this._doFill,u=this._doStroke;if(c&&!u){if(this._getFill()===y)return this}else if(!c&&u&&this._getStroke()===y)return this;if(p.beginPath(),void 0===a)p.rect(t,r,n,o);else{void 0===i&&(i=a),void 0===s&&(s=i),void 0===l&&(l=s);var d=Math.abs(n),h=Math.abs(o),f=d/2,m=h/2;d<2*a&&(a=f),h<2*a&&(a=m),d<2*i&&(i=f),h<2*i&&(i=m),d<2*s&&(s=f),h<2*s&&(s=m),d<2*l&&(l=f),h<2*l&&(l=m),p.beginPath(),p.moveTo(t+a,r),p.arcTo(t+n,r,t+n,r+o,i),p.arcTo(t+n,r+o,t,r+o,s),p.arcTo(t,r+o,t,r,l),p.arcTo(t,r,t+n,r,a),p.closePath()}return this._doFill&&p.fill(),this._doStroke&&p.stroke(),this},u.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,n=this._doStroke,o=e[0],a=e[1],i=e[2],s=e[3],l=e[4],p=e[5];if(r&&!n){if(this._getFill()===y)return this}else if(!r&&n&&this._getStroke()===y)return this;t.beginPath(),t.moveTo(o,a),t.lineTo(i,s),t.lineTo(l,p),t.closePath(),r&&t.fill(),n&&t.stroke()},u.default.Renderer2D.prototype.endShape=function(e,t,r,n,o,a,i){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,p,c=e===f.CLOSE;c&&!a&&t.push(t[0]);var u=t.length;if(!r||i!==f.POLYGON&&null!==i)if(!n||i!==f.POLYGON&&null!==i)if(!o||i!==f.POLYGON&&null!==i)if(i===f.POINTS)for(l=0;l<u;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(i===f.LINES)for(l=0;l+1<u;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(i===f.TRIANGLES)for(l=0;l+2<u;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(i===f.TRIANGLE_STRIP)for(l=0;l+1<u;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<u&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(c);else if(i===f.TRIANGLE_FAN){if(2<u){for(this.drawingContext.beginPath(),l=2;l<u;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<u-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(c)}}else if(i===f.QUADS)for(l=0;l+3<u;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),p=1;p<4;p++)this.drawingContext.lineTo(t[l+p][0],t[l+p][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(c)}else if(i===f.QUAD_STRIP){if(3<u)for(l=0;l+1<u;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<u?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(c)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<u;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(c)}else{for(this.drawingContext.beginPath(),l=0;l<u;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(c)}else{for(this.drawingContext.beginPath(),l=0;l<u;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(c)}else if(3<u){var d=[],h=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<u;l++)s=t[l],d[0]=[s[0],s[1]],d[1]=[s[0]+(h*t[l+1][0]-h*t[l-1][0])/6,s[1]+(h*t[l+1][1]-h*t[l-1][1])/6],d[2]=[t[l+1][0]+(h*t[l][0]-h*t[l+2][0])/6,t[l+1][1]+(h*t[l][1]-h*t[l+2][1])/6],d[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(d[1][0],d[1][1],d[2][0],d[2][1],d[3][0],d[3][1]);c&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(c)}return a=o=n=r=!1,c&&t.pop(),this},u.default.Renderer2D.prototype.strokeCap=function(e){return e!==f.ROUND&&e!==f.SQUARE&&e!==f.PROJECT||(this.drawingContext.lineCap=e),this},u.default.Renderer2D.prototype.strokeJoin=function(e){return e!==f.ROUND&&e!==f.BEVEL&&e!==f.MITER||(this.drawingContext.lineJoin=e),this},u.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},u.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},u.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},u.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},u.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},u.default.Renderer2D.prototype.bezier=function(e,t,r,n,o,a,i,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,n,o,a,i,s),this._pInst.endShape(),this},u.default.Renderer2D.prototype.curve=function(e,t,r,n,o,a,i,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,n),this._pInst.curveVertex(o,a),this._pInst.curveVertex(i,s),this._pInst.endShape(),this},u.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},u.default.Renderer2D.prototype.applyMatrix=function(e,t,r,n,o,a){this.drawingContext.transform(e,t,r,n,o,a)},u.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},u.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},u.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},u.default.Renderer2D.prototype.translate=function(e,t){return e instanceof u.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},u.default.Renderer2D.prototype.text=function(e,t,r,n,o){var a;void 0!==n&&this.drawingContext.textBaseline===f.BASELINE&&(a=!0,this.drawingContext.textBaseline=f.TOP);var i=u.default.Renderer.prototype.text.apply(this,arguments);return a&&(this.drawingContext.textBaseline=f.BASELINE),i},u.default.Renderer2D.prototype._renderText=function(e,t,r,n,o){if(!(o<=n))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,n,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,n),this._doFill&&(this._fillSet||this._setFill(f._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,n))),e.pop(),e},u.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},u.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty("_textAscent",null),this._setProperty("_textDescent",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty("_textStyle",this._textFont.font.styleName)),this.drawingContext.font="".concat(this._textStyle||"normal"," ").concat(this._textSize||12,"px ").concat(e||"sans-serif"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===f.CENTER?this.drawingContext.textBaseline=f._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},u.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),u.default.Renderer.prototype.push.apply(this)},u.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,u.default.Renderer.prototype.pop.call(this,e)};var o=u.default.Renderer2D;r.default=o},{"../image/filters":310,"./constants":277,"./main":289,"./p5.Renderer":292,"core-js/modules/es.array.concat":167,"core-js/modules/es.array.fill":169,"core-js/modules/es.array.for-each":172,"core-js/modules/es.array.slice":180,"core-js/modules/es.function.name":184,"core-js/modules/es.number.to-fixed":190,"core-js/modules/es.object.to-string":195,"core-js/modules/es.regexp.to-string":200}],294:[function(e,t,r){e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.promise"),e("core-js/modules/es.string.iterator"),e("core-js/modules/web.dom-collections.iterator");var n,d=(n=e("./main"))&&n.__esModule?n:{default:n};d.default.prototype._promisePreloads=[];var h=!(d.default.prototype.registerPromisePreload=function(e){d.default.prototype._promisePreloads.push(e)});d.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var n,o=this._promisePreloads[Symbol.iterator]();!(e=(n=o.next()).done);e=!0){var a=n.value,i=this,s=a.method,l=a.addCallbacks,p=a.legacyPreloadSetup,c=a.target||this,u=c[s].bind(c);if(c===d.default.prototype){if(h)continue;i=null,u=c[s]}if(c[s]=this._wrapPromisePreload(i,u,l),p)c[p.method]=this._legacyPreloadGenerator(i,p,c[s])}}catch(e){t=!0,r=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw r}}h=!0},d.default.prototype._wrapPromisePreload=function(e,l,p){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];if(p)for(var i=o.length-1;0<=i&&!r&&"function"==typeof o[i];i--)r=t,t=o.pop();var s=Promise.resolve(l.apply(this,o));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function a(){return{}}d.default.prototype._legacyPreloadGenerator=function(e,t,n){var o=t.createBaseObject||a,r=function(){var t=this;this._incrementPreload();var r=o.apply(this,arguments);return n.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{"./main":289,"core-js/modules/es.array.iterator":176,"core-js/modules/es.object.assign":191,"core-js/modules/es.object.to-string":195,"core-js/modules/es.promise":196,"core-js/modules/es.string.iterator":204,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/web.dom-collections.iterator":247}],295:[function(e,t,r){e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.filter"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.string.iterator"),e("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,l=(n=e("./main"))&&n.__esModule?n:{default:n},p=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("./constants"));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function s(e){return(s="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}e("./p5.Graphics"),e("./p5.Renderer2D"),e("../webgl/p5.RendererGL");var c="defaultCanvas0";l.default.prototype.createCanvas=function(e,t,r){l.default._validateParameters("createCanvas",arguments);var n,o=r||p.P2D;if(o===p.WEBGL){if(n=document.getElementById(c)){n.parentNode.removeChild(n);var a=this._renderer;this._elements=this._elements.filter(function(e){return e!==a})}(n=document.createElement("canvas")).id=c,n.classList.add("p5Canvas")}else if(this._defaultGraphicsCreated)n=this.canvas;else{n=document.createElement("canvas");for(var i=0;document.getElementById("defaultCanvas".concat(i));)i++;c="defaultCanvas".concat(i),n.id=c,n.classList.add("p5Canvas")}if(this._setupDone||(n.dataset.hidden=!0,n.style.visibility="hidden"),this._userNode)this._userNode.appendChild(n);else{if(0===document.getElementsByTagName("main").length){var s=document.createElement("main");document.body.appendChild(s)}document.getElementsByTagName("main")[0].appendChild(n)}return o===p.WEBGL?(this._setProperty("_renderer",new l.default.RendererGL(n,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty("_renderer",new l.default.Renderer2D(n,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},l.default.prototype.resizeCanvas=function(e,t,r){if(l.default._validateParameters("resizeCanvas",arguments),this._renderer){var n={};for(var o in this.drawingContext){var a=this.drawingContext[o];"object"!==s(a)&&"function"!=typeof a&&(n[o]=a)}for(var i in this._renderer.resize(e,t),this.width=e,this.height=t,n)try{this.drawingContext[i]=n[i]}catch(e){}r||this.redraw()}this._addAccsOutput()&&this._updateAccsOutput()},l.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},l.default.prototype.createGraphics=function(e,t,r){return l.default._validateParameters("createGraphics",arguments),new l.default.Graphics(e,t,r,this)},l.default.prototype.blendMode=function(e){l.default._validateParameters("blendMode",arguments),e===p.NORMAL&&(console.warn("NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead."),e=p.BLEND),this._renderer.blendMode(e)};var o=l.default;r.default=o},{"../webgl/p5.RendererGL":343,"./constants":277,"./main":289,"./p5.Graphics":291,"./p5.Renderer2D":293,"core-js/modules/es.array.filter":170,"core-js/modules/es.array.iterator":176,"core-js/modules/es.object.to-string":195,"core-js/modules/es.string.iterator":204,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/web.dom-collections.iterator":247}],296:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}e("core-js/modules/es.array.slice"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var c=n(e("../main")),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("../constants")),u=n(e("../helpers"));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}e("../friendly_errors/fes_core"),e("../friendly_errors/file_errors"),e("../friendly_errors/validate_params"),c.default.prototype._normalizeArcAngles=function(e,t,r,n,o){var a;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),a=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),o&&(e=e<=s.HALF_PI?Math.atan(r/n*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/n*Math.tan(e))+s.PI:Math.atan(r/n*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/n*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/n*Math.tan(t))+s.PI:Math.atan(r/n*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:a<1e-5}},c.default.prototype.arc=function(e,t,r,n,o,a,i,s){if(c.default._validateParameters("arc",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;if(o===a)return this;o=this._toRadians(o),a=this._toRadians(a),r=Math.abs(r),n=Math.abs(n);var l=u.default.modeAdjust(e,t,r,n,this._renderer._ellipseMode),p=this._normalizeArcAngles(o,a,l.w,l.h,!0);return p.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):(this._renderer.arc(l.x,l.y,l.w,l.h,p.start,p.stop,i,s),(this._accessibleOutputs.grid||this._accessibleOutputs.text)&&this._accsOutput("arc",[l.x,l.y,l.w,l.h,p.start,p.stop,i])),this},c.default.prototype.ellipse=function(e,t,r,n,o){return c.default._validateParameters("ellipse",arguments),this._renderEllipse.apply(this,arguments)},c.default.prototype.circle=function(){c.default._validateParameters("circle",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},c.default.prototype._renderEllipse=function(e,t,r,n,o){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===n?n=r:n<0&&(n=Math.abs(n));var a=u.default.modeAdjust(e,t,r,n,this._renderer._ellipseMode);return this._renderer.ellipse([a.x,a.y,a.w,a.h,o]),(this._accessibleOutputs.grid||this._accessibleOutputs.text)&&this._accsOutput("ellipse",[a.x,a.y,a.w,a.h]),this},c.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;c.default._validateParameters("line",t),this._renderer._doStroke&&(n=this._renderer).line.apply(n,t);return(this._accessibleOutputs.grid||this._accessibleOutputs.text)&&this._accsOutput("line",t),this},c.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;c.default._validateParameters("point",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof c.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):((n=this._renderer).point.apply(n,t),(this._accessibleOutputs.grid||this._accessibleOutputs.text)&&this._accsOutput("point",t)));return this},c.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;c.default._validateParameters("quad",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&t.length<=12?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0,t[8],t[9]):((n=this._renderer).quad.apply(n,t),(this._accessibleOutputs.grid||this._accessibleOutputs.text)&&this._accsOutput("quadrilateral",t)));return this},c.default.prototype.rect=function(){return c.default._validateParameters("rect",arguments),this._renderRect.apply(this,arguments)},c.default.prototype.square=function(e,t,r,n,o,a,i){return c.default._validateParameters("square",arguments),this._renderRect.call(this,e,t,r,r,n,o,a,i)},c.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=u.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t),(this._accessibleOutputs.grid||this._accessibleOutputs.text)&&this._accsOutput("rectangle",[e.x,e.y,e.w,e.h])}return this},c.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return c.default._validateParameters("triangle",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),(this._accessibleOutputs.grid||this._accessibleOutputs.text)&&this._accsOutput("triangle",t),this};var o=c.default;r.default=o},{"../constants":277,"../friendly_errors/fes_core":280,"../friendly_errors/file_errors":281,"../friendly_errors/validate_params":284,"../helpers":285,"../main":289,"core-js/modules/es.array.slice":180}],297:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../main"))&&n.__esModule?n:{default:n},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("../constants"));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}o.default.prototype.ellipseMode=function(e){return o.default._validateParameters("ellipseMode",arguments),e!==a.CORNER&&e!==a.CORNERS&&e!==a.RADIUS&&e!==a.CENTER||(this._renderer._ellipseMode=e),this},o.default.prototype.noSmooth=function(){return this.setAttributes("antialias",!1),this._renderer.isP3D||"imageSmoothingEnabled"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},o.default.prototype.rectMode=function(e){return o.default._validateParameters("rectMode",arguments),e!==a.CORNER&&e!==a.CORNERS&&e!==a.RADIUS&&e!==a.CENTER||(this._renderer._rectMode=e),this},o.default.prototype.smooth=function(){return this.setAttributes("antialias",!0),this._renderer.isP3D||"imageSmoothingEnabled"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},o.default.prototype.strokeCap=function(e){return o.default._validateParameters("strokeCap",arguments),e!==a.ROUND&&e!==a.SQUARE&&e!==a.PROJECT||this._renderer.strokeCap(e),this},o.default.prototype.strokeJoin=function(e){return o.default._validateParameters("strokeJoin",arguments),e!==a.ROUND&&e!==a.BEVEL&&e!==a.MITER||this._renderer.strokeJoin(e),this},o.default.prototype.strokeWeight=function(e){return o.default._validateParameters("strokeWeight",arguments),this._renderer.strokeWeight(e),this};var l=o.default;r.default=l},{"../constants":277,"../main":289}],298:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,s=(n=e("../main"))&&n.__esModule?n:{default:n};e("../friendly_errors/fes_core"),e("../friendly_errors/file_errors"),e("../friendly_errors/validate_params"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return s.default._validateParameters("bezier",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters("bezierDetail",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,n,o){s.default._validateParameters("bezierPoint",arguments);var a=1-o;return Math.pow(a,3)*e+3*Math.pow(a,2)*o*t+3*a*Math.pow(o,2)*r+Math.pow(o,3)*n},s.default.prototype.bezierTangent=function(e,t,r,n,o){s.default._validateParameters("bezierTangent",arguments);var a=1-o;return 3*n*Math.pow(o,2)-3*r*Math.pow(o,2)+6*r*a*o-6*t*a*o+3*t*Math.pow(a,2)-3*e*Math.pow(a,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;s.default._validateParameters("curve",t),this._renderer._doStroke&&(n=this._renderer).curve.apply(n,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters("curveDetail",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters("curveTightness",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,n,o){s.default._validateParameters("curvePoint",arguments);var a=o*o*o,i=o*o;return e*(-.5*a+i-.5*o)+t*(1.5*a-2.5*i+1)+r*(-1.5*a+2*i+.5*o)+n*(.5*a-.5*i)},s.default.prototype.curveTangent=function(e,t,r,n,o){s.default._validateParameters("curveTangent",arguments);var a=o*o;return e*(-3*a/2+2*o-.5)+t*(9*a/2-5*o)+r*(-9*a/2+4*o+.5)+n*(3*a/2-o)};var o=s.default;r.default=o},{"../friendly_errors/fes_core":280,"../friendly_errors/file_errors":281,"../friendly_errors/validate_params":284,"../main":289}],299:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}e("core-js/modules/es.array.slice"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,s=(n=e("../main"))&&n.__esModule?n:{default:n},l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("../constants"));function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}var o=null,c=[],u=[],d=!1,a=!1,h=!1,f=!1,m=!0;s.default.prototype.beginContour=function(){return u=[],f=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters("beginShape",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(o=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,c=[],u=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;if(s.default._validateParameters("bezierVertex",t),this._renderer.isP3D)(n=this._renderer).bezierVertex.apply(n,t);else if(0===c.length)s.default._friendlyError("vertex() must be used once before calling bezierVertex()","bezierVertex");else{d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,f?u.push(o):c.push(o)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;(s.default._validateParameters("curveVertex",t),this._renderer.isP3D)?(n=this._renderer).curveVertex.apply(n,t):(a=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=u[0].slice();e.isVert=u[0].isVert,e.moveTo=!1,u.push(e),m&&(c.push(c[0]),m=!1);for(var t=0;t<u.length;t++)c.push(u[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters("endShape",arguments),this._renderer.isP3D)this._renderer.endShape(e,a,d,h,f,o);else{if(0===c.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!f&&c.push(c[0]),this._renderer.endShape(e,c,a,d,h,f,o),m=!(f=h=d=a=!1),t&&c.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters("quadraticVertex",t),this._renderer.isP3D){var n;(n=this._renderer).quadraticVertex.apply(n,t)}else{if(this._contourInited){var o={};return o.x=t[0],o.y=t[1],o.x3=t[2],o.y3=t[3],o.type=l.QUADRATIC,this._contourVertices.push(o),this}if(0<c.length){h=!0;for(var a=[],i=0;i<t.length;i++)a[i]=t[i];a.isVert=!1,f?u.push(a):c.push(a)}else s.default._friendlyError("vertex() must be used once before calling quadraticVertex()","quadraticVertex")}return this},s.default.prototype.vertex=function(e,t,r,n,o){if(this._renderer.isP3D){var a;(a=this._renderer).vertex.apply(a,arguments)}else{var i=[];i.isVert=!0,i[0]=e,i[1]=t,i[2]=0,i[3]=0,i[4]=0,i[5]=this._renderer._getFill(),i[6]=this._renderer._getStroke(),r&&(i.moveTo=r),f?(0===u.length&&(i.moveTo=!0),u.push(i)):c.push(i)}return this},s.default.prototype.normal=function(e,t,r){var n;return this._assert3d("normal"),s.default._validateParameters("normal",arguments),(n=this._renderer).normal.apply(n,arguments),this};var y=s.default;r.default=y},{"../constants":277,"../main":289,"core-js/modules/es.array.slice":180}],300:[function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.filter"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.string.iterator"),e("core-js/modules/es.typed-array.uint8-clamped-array"),e("core-js/modules/es.typed-array.copy-within"),e("core-js/modules/es.typed-array.every"),e("core-js/modules/es.typed-array.fill"),e("core-js/modules/es.typed-array.filter"),e("core-js/modules/es.typed-array.find"),e("core-js/modules/es.typed-array.find-index"),e("core-js/modules/es.typed-array.for-each"),e("core-js/modules/es.typed-array.includes"),e("core-js/modules/es.typed-array.index-of"),e("core-js/modules/es.typed-array.iterator"),e("core-js/modules/es.typed-array.join"),e("core-js/modules/es.typed-array.last-index-of"),e("core-js/modules/es.typed-array.map"),e("core-js/modules/es.typed-array.reduce"),e("core-js/modules/es.typed-array.reduce-right"),e("core-js/modules/es.typed-array.reverse"),e("core-js/modules/es.typed-array.set"),e("core-js/modules/es.typed-array.slice"),e("core-js/modules/es.typed-array.some"),e("core-js/modules/es.typed-array.sort"),e("core-js/modules/es.typed-array.subarray"),e("core-js/modules/es.typed-array.to-locale-string"),e("core-js/modules/es.typed-array.to-string"),e("core-js/modules/web.dom-collections.iterator"),window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},"undefined"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,"slice",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l="function"==typeof Symbol&&"symbol"===n(Symbol()),r=Object.prototype.propertyIsEnumerable,p=function(t){return function(e){return r.call(t,e)}};e(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("target must be an object");var r,n,o,a,i=Object(e);for(r=1;r<arguments.length;++r)for(n=Object(arguments[r]),a=s(n),l&&Object.getOwnPropertySymbols&&a.push.apply(a,Object.getOwnPropertySymbols(n).filter(p(n))),o=0;o<a.length;++o)i[a[o]]=n[a[o]];return i},configurable:!0,enumerable:!1,writable:!0})}}()},{"core-js/modules/es.array.filter":170,"core-js/modules/es.array.iterator":176,"core-js/modules/es.array.slice":180,"core-js/modules/es.object.assign":191,"core-js/modules/es.object.keys":194,"core-js/modules/es.object.to-string":195,"core-js/modules/es.string.iterator":204,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/es.typed-array.copy-within":215,"core-js/modules/es.typed-array.every":216,"core-js/modules/es.typed-array.fill":217,"core-js/modules/es.typed-array.filter":218,"core-js/modules/es.typed-array.find":220,"core-js/modules/es.typed-array.find-index":219,"core-js/modules/es.typed-array.for-each":223,"core-js/modules/es.typed-array.includes":224,"core-js/modules/es.typed-array.index-of":225,"core-js/modules/es.typed-array.iterator":228,"core-js/modules/es.typed-array.join":229,"core-js/modules/es.typed-array.last-index-of":230,"core-js/modules/es.typed-array.map":231,"core-js/modules/es.typed-array.reduce":233,"core-js/modules/es.typed-array.reduce-right":232,"core-js/modules/es.typed-array.reverse":234,"core-js/modules/es.typed-array.set":235,"core-js/modules/es.typed-array.slice":236,"core-js/modules/es.typed-array.some":237,"core-js/modules/es.typed-array.sort":238,"core-js/modules/es.typed-array.subarray":239,"core-js/modules/es.typed-array.to-locale-string":240,"core-js/modules/es.typed-array.to-string":241,"core-js/modules/es.typed-array.uint8-clamped-array":245,"core-js/modules/web.dom-collections.iterator":247}],301:[function(e,t,r){e("core-js/modules/es.array.for-each"),e("core-js/modules/es.object.assign"),e("core-js/modules/web.dom-collections.for-each"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("./main"))&&n.__esModule?n:{default:n};o.default.prototype.noLoop=function(){this._loop=!1},o.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},o.default.prototype.isLooping=function(){return this._loop},o.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},o.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn("pop() was called without matching push()")},o.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this;if("function"==typeof r.draw){void 0===r.setup&&r.scale(r._pixelDensity,r._pixelDensity);for(var n=function(e){e.call(r)},o=0;o<t;o++){r.resetMatrix(),(this._accessibleOutputs.grid||this._accessibleOutputs.text)&&this._updateAccsOutput(),r._renderer.isP3D&&r._renderer._update(),r._setProperty("frameCount",r.frameCount+1),r._registeredMethods.pre.forEach(n),this._inUserDraw=!0;try{r.draw()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(n)}}}};var a=o.default;r.default=a},{"./main":289,"core-js/modules/es.array.for-each":172,"core-js/modules/es.object.assign":191,"core-js/modules/web.dom-collections.for-each":246}],302:[function(e,t,r){e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.from"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.object.get-prototype-of"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.iterator"),e("core-js/modules/es.typed-array.uint8-array"),e("core-js/modules/es.typed-array.copy-within"),e("core-js/modules/es.typed-array.every"),e("core-js/modules/es.typed-array.fill"),e("core-js/modules/es.typed-array.filter"),e("core-js/modules/es.typed-array.find"),e("core-js/modules/es.typed-array.find-index"),e("core-js/modules/es.typed-array.for-each"),e("core-js/modules/es.typed-array.includes"),e("core-js/modules/es.typed-array.index-of"),e("core-js/modules/es.typed-array.iterator"),e("core-js/modules/es.typed-array.join"),e("core-js/modules/es.typed-array.last-index-of"),e("core-js/modules/es.typed-array.map"),e("core-js/modules/es.typed-array.reduce"),e("core-js/modules/es.typed-array.reduce-right"),e("core-js/modules/es.typed-array.reverse"),e("core-js/modules/es.typed-array.set"),e("core-js/modules/es.typed-array.slice"),e("core-js/modules/es.typed-array.some"),e("core-js/modules/es.typed-array.sort"),e("core-js/modules/es.typed-array.subarray"),e("core-js/modules/es.typed-array.to-locale-string"),e("core-js/modules/es.typed-array.to-string"),e("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,a=(n=e("./main"))&&n.__esModule?n:{default:n};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}a.default.prototype.applyMatrix=function(){var e,t,r=arguments[0]instanceof Object.getPrototypeOf(Uint8Array);Array.isArray(arguments[0])||r?(e=this._renderer).applyMatrix.apply(e,o(arguments[0])):(t=this._renderer).applyMatrix.apply(t,arguments);return this},a.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},a.default.prototype.rotate=function(e,t){return a.default._validateParameters("rotate",arguments),this._renderer.rotate(this._toRadians(e),t),this},a.default.prototype.rotateX=function(e){return this._assert3d("rotateX"),a.default._validateParameters("rotateX",arguments),this._renderer.rotateX(this._toRadians(e)),this},a.default.prototype.rotateY=function(e){return this._assert3d("rotateY"),a.default._validateParameters("rotateY",arguments),this._renderer.rotateY(this._toRadians(e)),this},a.default.prototype.rotateZ=function(e){return this._assert3d("rotateZ"),a.default._validateParameters("rotateZ",arguments),this._renderer.rotateZ(this._toRadians(e)),this},a.default.prototype.scale=function(e,t,r){if(a.default._validateParameters("scale",arguments),e instanceof a.default.Vector){var n=e;e=n.x,t=n.y,r=n.z}else if(e instanceof Array){var o=e;e=o[0],t=o[1],r=o[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},a.default.prototype.shearX=function(e){a.default._validateParameters("shearX",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},a.default.prototype.shearY=function(e){a.default._validateParameters("shearY",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},a.default.prototype.translate=function(e,t,r){return a.default._validateParameters("translate",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var i=a.default;r.default=i},{"./main":289,"core-js/modules/es.array.from":173,"core-js/modules/es.array.iterator":176,"core-js/modules/es.object.get-prototype-of":193,"core-js/modules/es.object.to-string":195,"core-js/modules/es.regexp.to-string":200,"core-js/modules/es.string.iterator":204,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/es.typed-array.copy-within":215,"core-js/modules/es.typed-array.every":216,"core-js/modules/es.typed-array.fill":217,"core-js/modules/es.typed-array.filter":218,"core-js/modules/es.typed-array.find":220,"core-js/modules/es.typed-array.find-index":219,"core-js/modules/es.typed-array.for-each":223,"core-js/modules/es.typed-array.includes":224,"core-js/modules/es.typed-array.index-of":225,"core-js/modules/es.typed-array.iterator":228,"core-js/modules/es.typed-array.join":229,"core-js/modules/es.typed-array.last-index-of":230,"core-js/modules/es.typed-array.map":231,"core-js/modules/es.typed-array.reduce":233,"core-js/modules/es.typed-array.reduce-right":232,"core-js/modules/es.typed-array.reverse":234,"core-js/modules/es.typed-array.set":235,"core-js/modules/es.typed-array.slice":236,"core-js/modules/es.typed-array.some":237,"core-js/modules/es.typed-array.sort":238,"core-js/modules/es.typed-array.subarray":239,"core-js/modules/es.typed-array.to-locale-string":240,"core-js/modules/es.typed-array.to-string":241,"core-js/modules/es.typed-array.uint8-array":244,"core-js/modules/web.dom-collections.iterator":247}],303:[function(e,t,r){e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.from"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.ends-with"),e("core-js/modules/es.string.iterator"),e("core-js/modules/web.dom-collections.iterator");var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n};function a(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}o.default.prototype.storeItem=function(e,t){"string"!=typeof e&&console.log("The argument that you passed to storeItem() - ".concat(e," is not a string.")),e.endsWith("p5TypeID")&&console.log("The argument that you passed to storeItem() - ".concat(e," must not end with 'p5TypeID'.")),void 0===t&&console.log("You cannot store undefined variables using storeItem().");var r=i(t);switch(r){case"number":case"boolean":t=t.toString();break;case"object":if(t instanceof o.default.Color)r="p5.Color";else if(t instanceof o.default.Vector){r="p5.Vector",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var n="".concat(e,"p5TypeID");localStorage.setItem(n,r)},o.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem("".concat(e,"p5TypeID"));if(void 0===r)console.log("Unable to determine type of item stored under ".concat(e,"in local storage. Did you save the item with something other than setItem()?"));else if(null!==t)switch(r){case"number":t=parseFloat(t);break;case"boolean":t="true"===t;break;case"object":t=JSON.parse(t);break;case"p5.Color":t=JSON.parse(t),t=this.color.apply(this,a(t.levels));break;case"p5.Vector":t=JSON.parse(t),t=this.createVector.apply(this,a(t))}return t},o.default.prototype.clearStorage=function(){localStorage.clear()},o.default.prototype.removeItem=function(e){"string"!=typeof e&&console.log("The argument that you passed to removeItem() - ".concat(e," is not a string.")),localStorage.removeItem(e),localStorage.removeItem("".concat(e,"p5TypeID"))}},{"../core/main":289,"core-js/modules/es.array.from":173,"core-js/modules/es.array.iterator":176,"core-js/modules/es.object.to-string":195,"core-js/modules/es.regexp.to-string":200,"core-js/modules/es.string.ends-with":202,"core-js/modules/es.string.iterator":204,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/web.dom-collections.iterator":247}],304:[function(e,t,r){e("core-js/modules/es.array.concat"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.string.sub"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n};o.default.prototype.createStringDict=function(e,t){return o.default._validateParameters("createStringDict",arguments),new o.default.StringDict(e,t)},o.default.prototype.createNumberDict=function(e,t){return o.default._validateParameters("createNumberDict",arguments),new o.default.NumberDict(e,t)},o.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},o.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},o.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},o.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log("".concat(e," does not exist in this Dictionary"))},o.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log("Those values dont work for this dictionary type.")},o.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},o.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log("In order to create a new Dictionary entry you must pass an object or a key, value pair")},o.default.TypedDict.prototype.clear=function(){this.data={}},o.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error("".concat(e," does not exist in this Dictionary"));delete this.data[e]},o.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log("key:".concat(e," value:").concat(this.data[e]))},o.default.TypedDict.prototype.saveTable=function(e){var t="";for(var r in this.data)t+="".concat(r,",").concat(this.data[r],"\n");var n=new Blob([t],{type:"text/csv"});o.default.prototype.downloadFile(n,e||"mycsv","csv")},o.default.TypedDict.prototype.saveJSON=function(e,t){o.default.prototype.saveJSON(this.data,e,t)},o.default.TypedDict.prototype._validate=function(e){return!0},o.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];o.default.TypedDict.apply(this,t)},o.default.StringDict.prototype=Object.create(o.default.TypedDict.prototype),o.default.StringDict.prototype._validate=function(e){return"string"==typeof e},o.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];o.default.TypedDict.apply(this,t)},o.default.NumberDict.prototype=Object.create(o.default.TypedDict.prototype),o.default.NumberDict.prototype._validate=function(e){return"number"==typeof e},o.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log("The key - ".concat(e," does not exist in this dictionary."))},o.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},o.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log("The key - ".concat(e," does not exist in this dictionary."))},o.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log("The key - ".concat(e," does not exist in this dictionary."))},o.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error("Unable to search for a minimum or maximum value on an empty NumberDict");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},o.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},o.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},o.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error("Unable to use minValue on an empty NumberDict");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},o.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},o.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var a=o.default.TypedDict;r.default=a},{"../core/main":289,"core-js/modules/es.array.concat":167,"core-js/modules/es.object.keys":194,"core-js/modules/es.string.sub":210}],305:[function(e,t,r){e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.every"),e("core-js/modules/es.array.filter"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.from"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.map"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.array.splice"),e("core-js/modules/es.function.name"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.promise"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.iterator"),e("core-js/modules/es.string.replace"),e("core-js/modules/es.string.split"),e("core-js/modules/es.string.trim"),e("core-js/modules/web.dom-collections.for-each"),e("core-js/modules/web.dom-collections.iterator"),e("core-js/modules/web.url"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,d=(n=e("../core/main"))&&n.__esModule?n:{default:n};function h(e){return(h="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}function m(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var n=r?new d.default.MediaElement(e,t):new d.default.Element(e,t);return t._elements.push(n),n}function o(e,t,r,n){var o=document.createElement(t);"string"==typeof(r=r||"")&&(r=[r]);var a=!0,i=!1,s=void 0;try{for(var l,p=r[Symbol.iterator]();!(a=(l=p.next()).done);a=!0){var c=l.value,u=document.createElement("source");u.setAttribute("src",c),o.appendChild(u)}}catch(e){i=!0,s=e}finally{try{a||null==p.return||p.return()}finally{if(i)throw s}}if("function"==typeof n){o.addEventListener("canplaythrough",function e(){n(),o.removeEventListener("canplaythrough",e)})}var d=m(o,e,!0);return d.loadedmetadata=!1,o.addEventListener("loadedmetadata",function(){d.width=o.videoWidth,d.height=o.videoHeight,0===d.elt.width&&(d.elt.width=o.videoWidth),0===d.elt.height&&(d.elt.height=o.videoHeight),d.presetPlaybackRate&&(d.elt.playbackRate=d.presetPlaybackRate,delete d.presetPlaybackRate),d.loadedmetadata=!0}),d}d.default.prototype.select=function(e,t){d.default._validateParameters("select",arguments);var r=this._getContainer(t).querySelector(e);return r?this._wrapElement(r):null},d.default.prototype.selectAll=function(e,t){d.default._validateParameters("selectAll",arguments);var r=[],n=this._getContainer(t).querySelectorAll(e);if(n)for(var o=0;o<n.length;o++){var a=this._wrapElement(n[o]);r.push(a)}return r},d.default.prototype._getContainer=function(e){var t=document;return"string"==typeof e?t=document.querySelector(e)||document:e instanceof d.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t},d.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if("INPUT"!==e.tagName||"checkbox"!==e.type)return"VIDEO"===e.tagName||"AUDIO"===e.tagName?new d.default.MediaElement(e,this):"SELECT"===e.tagName?this.createSelect(new d.default.Element(e,this)):0<t.length&&t.every(function(e){return"INPUT"===e.tagName||"LABEL"===e.tagName})?this.createRadio(new d.default.Element(e,this)):new d.default.Element(e,this);var r=new d.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},d.default.prototype.removeElements=function(e){d.default._validateParameters("removeElements",arguments);this._elements.filter(function(e){return!(e.elt instanceof HTMLCanvasElement)}).map(function(e){return e.remove()})},d.default.Element.prototype.changed=function(e){return d.default.Element._adjustListener("change",e,this),this},d.default.Element.prototype.input=function(e){return d.default.Element._adjustListener("input",e,this),this},d.default.prototype.createDiv=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.innerHTML=e,m(t,this)},d.default.prototype.createP=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("p");return t.innerHTML=e,m(t,this)},d.default.prototype.createSpan=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("span");return t.innerHTML=e,m(t,this)},d.default.prototype.createImg=function(){d.default._validateParameters("createImg",arguments);var t,r=document.createElement("img"),n=arguments;return 1<n.length&&"string"==typeof n[1]&&(r.alt=n[1]),2<n.length&&"string"==typeof n[2]&&(r.crossOrigin=n[2]),r.src=n[0],t=m(r,this),r.addEventListener("load",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=n[n.length-1];"function"==typeof e&&e(t)}),t},d.default.prototype.createA=function(e,t,r){d.default._validateParameters("createA",arguments);var n=document.createElement("a");return n.href=e,n.innerHTML=t,r&&(n.target=r),m(n,this)},d.default.prototype.createSlider=function(e,t,r,n){d.default._validateParameters("createSlider",arguments);var o=document.createElement("input");return o.type="range",o.min=e,o.max=t,0===n?o.step=1e-18:n&&(o.step=n),"number"==typeof r&&(o.value=r),m(o,this)},d.default.prototype.createButton=function(e,t){d.default._validateParameters("createButton",arguments);var r=document.createElement("button");return r.innerHTML=e,t&&(r.value=t),m(r,this)},d.default.prototype.createCheckbox=function(){d.default._validateParameters("createCheckbox",arguments);var e=document.createElement("div"),t=document.createElement("input");t.type="checkbox";var r=document.createElement("label");r.appendChild(t),e.appendChild(r);var n=m(e,this);if(n.checked=function(){var e=n.elt.firstElementChild.getElementsByTagName("input")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return n},this.value=function(e){return n.value=e,this},arguments[0]){n.value(arguments[0]);var o=document.createElement("span");o.innerHTML=arguments[0],r.appendChild(o)}return arguments[1]&&(t.checked=!0),n},d.default.prototype.createSelect=function(){var e;d.default._validateParameters("createSelect",arguments);var t=arguments[0];if(t instanceof d.default.Element&&t.elt instanceof HTMLSelectElement)e=t,this.elt=t.elt;else if(t instanceof HTMLSelectElement)e=m(t,this),this.elt=t;else{var r=document.createElement("select");t&&"boolean"==typeof t&&r.setAttribute("multiple","true"),e=m(r,this),this.elt=r}return e.option=function(e,t){var r;if(void 0!==e){for(var n=0;n<this.elt.length;n+=1)if(this.elt[n].innerHTML===e){r=n;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].value=t;else{var o=document.createElement("option");o.innerHTML=e,o.value=void 0===t?e:t,this.elt.appendChild(o),this._pInst._elements.push(o)}}},e.selected=function(e){if(void 0!==e){for(var t=0;t<this.elt.length;t+=1)this.elt[t].value.toString()===e.toString()&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute("multiple")){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=this.elt.selectedOptions[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value;r.push(l.value)}}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}return this.elt.value},e.disable=function(e){if("string"==typeof e)for(var t=0;t<this.elt.length;t++)this.elt[t].value.toString()===e&&(this.elt[t].disabled=!0,this.elt[t].selected=!1);else this.elt.disabled=!0;return this},e},d.default.prototype.createRadio=function(){var e,t,r=arguments[0];r instanceof HTMLDivElement||r instanceof HTMLSpanElement?(e=r,"string"==typeof arguments[1]&&(t=arguments[1])):("string"==typeof r&&(t=r),e=document.createElement("div"));var f=m(this.elt=e,this);f._name=t||"radioOption";function n(e){return e instanceof HTMLInputElement&&"radio"===e.type}function u(e){return e instanceof HTMLLabelElement}return f._getOptionsArray=function(){return Array.from(this.elt.children).filter(function(e){return n(e)||u(e)&&n(e.firstElementChild)}).map(function(e){return n(e)?e:e.firstElementChild})},f.option=function(e,t){var r,n,o,a=!0,i=!1,s=void 0;try{for(var l,p=f._getOptionsArray()[Symbol.iterator]();!(a=(l=p.next()).done);a=!0){var c=l.value;if(c.value===e){r=c;break}}}catch(e){i=!0,s=e}finally{try{a||null==p.return||p.return()}finally{if(i)throw s}}return void 0===r&&((r=document.createElement("input")).setAttribute("type","radio"),r.setAttribute("value",e)),r.setAttribute("name",f._name),u(r.parentElement)?n=r.parentElement:(n=document.createElement("label")).insertAdjacentElement("afterbegin",r),n.lastElementChild instanceof HTMLSpanElement?o=n.lastElementChild:(o=document.createElement("span"),r.insertAdjacentElement("afterend",o)),o.innerHTML=void 0===t?e:t,this.elt.appendChild(n),r},f.remove=function(e){var t=!0,r=!1,n=void 0;try{for(var o,a=f._getOptionsArray()[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;if(i.value===e)return void(u(i.parentElement)?i.parentElement.remove():i.remove())}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}},f.value=function(){var e="",t=!0,r=!1,n=void 0;try{for(var o,a=f._getOptionsArray()[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;if(i.checked){e=i.value;break}}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return e},f.selected=function(e){var t=null;if(void 0===e){var r=!0,n=!1,o=void 0;try{for(var a,i=f._getOptionsArray()[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var s=a.value;if(s.checked){t=s;break}}}catch(e){n=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw o}}}else{f._getOptionsArray().forEach(function(e){e.checked=!1,e.removeAttribute("checked")});var l=!0,p=!1,c=void 0;try{for(var u,d=f._getOptionsArray()[Symbol.iterator]();!(l=(u=d.next()).done);l=!0){var h=u.value;h.value===e&&(h.setAttribute("checked",!0),h.checked=!0,t=h)}}catch(e){p=!0,c=e}finally{try{l||null==d.return||d.return()}finally{if(p)throw c}}}return t},f.disable=function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],t=!0,r=!1,n=void 0;try{for(var o,a=f._getOptionsArray()[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){o.value.setAttribute("disabled",e)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}},f},d.default.prototype.createColorPicker=function(e){d.default._validateParameters("createColorPicker",arguments);var t,r=document.createElement("input");return r.type="color",e?e instanceof d.default.Color?r.value=e.toString("#rrggbb"):(d.default.prototype._colorMode="rgb",d.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=d.default.prototype.color(e).toString("#rrggbb")):r.value="#000000",(t=m(r,this)).color=function(){return e&&(e.mode&&(d.default.prototype._colorMode=e.mode),e.maxes&&(d.default.prototype._colorMaxes=e.maxes)),d.default.prototype.color(this.elt.value)},t},d.default.prototype.createInput=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"text";d.default._validateParameters("createInput",arguments);var r=document.createElement("input");return r.setAttribute("value",e),r.setAttribute("type",t),m(r,this)},d.default.prototype.createFileInput=function(s){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];d.default._validateParameters("createFileInput",arguments);if(window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement("input");return t.setAttribute("type","file"),e&&t.setAttribute("multiple",!0),t.addEventListener("change",function(e){var t=!0,r=!1,n=void 0;try{for(var o,a=e.target.files[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;d.default.File._load(i,s)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}},!1),m(t,this)}console.log("The File APIs are not fully supported in this browser. Cannot create element.")},d.default.prototype.createVideo=function(e,t){return d.default._validateParameters("createVideo",arguments),o(this,"video",e,t)},d.default.prototype.createAudio=function(e,t){return d.default._validateParameters("createAudio",arguments),o(this,"audio",e,t)},d.default.prototype.VIDEO="video",d.default.prototype.AUDIO="audio",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var n=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return n?new Promise(function(e,t){n.call(navigator,r,e,t)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),d.default.prototype.createCapture=function(){if(d.default._validateParameters("createCapture",arguments),!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw new DOMException("getUserMedia not supported in this browser");var e,t,r=!0,n=!0,o=!0,a=!1,i=void 0;try{for(var s,l=arguments[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var p=s.value;p===d.default.prototype.VIDEO?n=!1:p===d.default.prototype.AUDIO?r=!1:"object"===h(p)?e=p:"function"==typeof p&&(t=p)}}catch(e){a=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(a)throw i}}e=e||{video:r,audio:n};var c=document.createElement("video");c.setAttribute("playsinline",""),navigator.mediaDevices.getUserMedia(e).then(function(t){try{"srcObject"in c?c.srcObject=t:c.src=window.URL.createObjectURL(t)}catch(e){c.src=t}},console.log);var u=m(c,this,!0);return u.loadedmetadata=!1,c.addEventListener("loadedmetadata",function(){c.play(),c.width?(u.width=c.width,u.height=c.height):(u.width=u.elt.width=c.videoWidth,u.height=u.elt.height=c.videoHeight),u.loadedmetadata=!0,t&&t(c.srcObject)}),u},d.default.prototype.createElement=function(e,t){d.default._validateParameters("createElement",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),m(r,this)},d.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+" "+e):this.elt.className=e,this},d.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},d.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},d.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},d.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:("string"==typeof e?("#"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof d.default.Element&&(e=e.elt),e instanceof HTMLElement&&this.elt.appendChild(e),this)},d.default.Element.prototype.center=function(e){var t=this.elt.style.display,r="none"===this.elt.style.display,n="none"===this.parent().style.display,o={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),n&&this.parent().show(),this.elt.style.display="block",this.position(0,0);var a=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),i=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight);return"both"===e||void 0===e?this.position(a/2+this.parent().offsetLeft,i/2+this.parent().offsetTop):"horizontal"===e?this.position(a/2+this.parent().offsetLeft,o.y):"vertical"===e&&this.position(o.x,i/2+this.parent().offsetTop),this.style("display",t),r&&this.hide(),n&&this.parent().hide(),this},d.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML("beforeend",arguments[0]):this.elt.innerHTML=arguments[0],this)},d.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e="absolute";return"static"!==arguments[2]&&"fixed"!==arguments[2]&&"relative"!==arguments[2]&&"sticky"!==arguments[2]&&"initial"!==arguments[2]&&"inherit"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+"px",this.elt.style.top=arguments[1]+"px",this.x=arguments[0],this.y=arguments[1],this},d.default.Element.prototype._translate=function(){this.elt.style.position="absolute";var e="";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\(.*\)/g,"")).replace(/translate[X-Z]?\(.*\)/g,"")),2===arguments.length?this.elt.style.transform="translate("+arguments[0]+"px, "+arguments[1]+"px)":2<arguments.length&&(this.elt.style.transform="translate3d("+arguments[0]+"px,"+arguments[1]+"px,"+arguments[2]+"px)",this.elt.parentElement.style.perspective=3===arguments.length?"1000px":arguments[3]+"px"),this.elt.style.transform+=e,this},d.default.Element.prototype._rotate=function(){var e="";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\(.*\)/g,"")).replace(/rotate[X-Z]?\(.*\)/g,"")),1===arguments.length?this.elt.style.transform="rotate("+arguments[0]+"deg)":2===arguments.length?this.elt.style.transform="rotate("+arguments[0]+"deg, "+arguments[1]+"deg)":3===arguments.length&&(this.elt.style.transform="rotateX("+arguments[0]+"deg)",this.elt.style.transform+="rotateY("+arguments[1]+"deg)",this.elt.style.transform+="rotateZ("+arguments[2]+"deg)"),this.elt.style.transform+=e,this},d.default.Element.prototype.style=function(e,t){if(t instanceof d.default.Color&&(t="rgba("+t.levels[0]+","+t.levels[1]+","+t.levels[2]+","+t.levels[3]/255+")"),void 0===t){if(-1===e.indexOf(":"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(";"),n=0;n<r.length;n++){var o=r[n].split(":");o[0]&&o[1]&&(this.elt.style[o[0].trim()]=o[1].trim())}}else if(this.elt.style[e]=t,"width"===e||"height"===e||"left"===e||"top"===e){var a=window.getComputedStyle(this.elt).getPropertyValue(e).replace(/\D+/g,"");this[e]=parseInt(a,10)}return this},d.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||"checkbox"!==this.elt.firstChild.type&&"radio"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},d.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&("checkbox"===this.elt.firstChild.type||"radio"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},d.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):"range"===this.elt.type?parseFloat(this.elt.value):this.elt.value},d.default.Element.prototype.show=function(){return this.elt.style.display="block",this},d.default.Element.prototype.hide=function(){return this.elt.style.display="none",this},d.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,n=t,o=d.default.prototype.AUTO;if(r!==o||n!==o){if(r===o?r=t*this.width/this.height:n===o&&(n=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var a,i={},s=this.elt.getContext("2d");for(a in s)i[a]=s[a];for(a in this.elt.setAttribute("width",r*this._pInst._pixelDensity),this.elt.setAttribute("height",n*this._pInst._pixelDensity),this.elt.style.width=r+"px",this.elt.style.height=n+"px",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),i)this.elt.getContext("2d")[a]=i[a]}else this.elt.style.width=r+"px",this.elt.style.height=n+"px",this.elt.width=r,this.elt.height=n;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty("width",this.elt.offsetWidth),this._pInst._setProperty("height",this.elt.offsetHeight))}return this},d.default.Element.prototype.remove=function(){if(this instanceof d.default.MediaElement){this.stop();var e=this.elt.srcObject;if(null!==e)e.getTracks().forEach(function(e){e.stop()})}var t=this._pInst._elements.indexOf(this);for(var r in-1!==t&&this._pInst._elements.splice(t,1),this._events)this.elt.removeEventListener(r,this._events[r]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},d.default.Element.prototype.drop=function(o,a){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener("dragover",e),this.elt.addEventListener("dragleave",e)}d.default.Element._attachListener("drop",function(e){e.preventDefault(),"function"==typeof a&&a.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var n=t[r];d.default.File._load(n,o)}},this)}else console.log("The File APIs are not fully supported in this browser.");return this},d.default.MediaElement=function(n,e){d.default.Element.call(this,n,e);var o=this;this.elt.crossOrigin="anonymous",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(o,"src",{get:function(){var e=o.elt.children[0].src,t=o.elt.src===window.location.href?"":o.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<o.elt.children.length;t++)o.elt.removeChild(o.elt.children[t]);var r=document.createElement("source");r.src=e,n.appendChild(r),o.elt.src=e,o.modified=!0}}),o._onended=function(){},o.elt.onended=function(){o._onended(o)}},d.default.MediaElement.prototype=Object.create(d.default.Element.prototype),d.default.MediaElement.prototype.play=function(){var e,t=this;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){"NotAllowedError"===e.name?d.default._friendlyAutoplayError(t.src):console.error("Media play method encountered an unexpected error",e)}),this},d.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},d.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},d.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute("loop",!0),this.play(),this},d.default.MediaElement.prototype.noLoop=function(){return this.elt.removeAttribute("loop"),this},d.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return d.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener("play",function(){return clearTimeout(t)},{passive:!0,once:!0})},d.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute("autoplay");if(this.elt.setAttribute("autoplay",e),e&&!r){var n=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?n():this.elt.addEventListener("canplay",n,{passive:!0,once:!0})}return this},d.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},d.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},d.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},d.default.MediaElement.prototype.duration=function(){return this.elt.duration},d.default.MediaElement.prototype.pixels=[],d.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement("canvas"),this.drawingContext=this.canvas.getContext("2d"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},d.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),d.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},d.default.MediaElement.prototype.updatePixels=function(e,t,r,n){return this.loadedmetadata&&(this._ensureCanvas(),d.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,n)),this.setModified(!0),this},d.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),d.default.Renderer2D.prototype.get.apply(this,arguments)},d.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),d.default.Renderer2D.prototype._getPixel.apply(this,arguments)},d.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),d.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},d.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),d.default.prototype.copy.apply(this,arguments)},d.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),d.default.Image.prototype.mask.apply(this,arguments)},d.default.MediaElement.prototype.isModified=function(){return this._modified},d.default.MediaElement.prototype.setModified=function(e){this._modified=e},d.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},d.default.MediaElement.prototype.connect=function(e){var t,r;if("function"==typeof d.default.prototype.getAudioContext)t=d.default.prototype.getAudioContext(),r=d.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw"connect() is meant to be used with Web Audio API or p5.sound.js"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},d.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw"nothing to disconnect";this.audioSourceNode.disconnect()},d.default.MediaElement.prototype.showControls=function(){this.elt.style["text-align"]="inherit",this.elt.controls=!0},d.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function a(e,t,r,n){this.callback=e,this.time=t,this.id=r,this.val=n}d.default.MediaElement.prototype.addCue=function(e,t,r){var n=this._cueIDCounter++,o=new a(t,e,n,r);return this._cues.push(o),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),n},d.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},d.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},d.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,n=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(n)}this._prevTime=e},d.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split("/");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},d.default.File._createLoader=function(n,o){var e=new FileReader;return e.onload=function(e){var t=new d.default.File(n);if("application/json"===t.file.type)t.data=JSON.parse(e.target.result);else if("text/xml"===t.file.type){var r=(new DOMParser).parseFromString(e.target.result,"text/xml");t.data=new d.default.XML(r.documentElement)}else t.data=e.target.result;o(t)},e},d.default.File._load=function(e,t){if(/^text\//.test(e.type)||"application/json"===e.type)d.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\//.test(e.type)){var r=new d.default.File(e);r.data=URL.createObjectURL(e),t(r)}else d.default.File._createLoader(e,t).readAsDataURL(e)};var i=d.default;r.default=i},{"../core/main":289,"core-js/modules/es.array.every":168,"core-js/modules/es.array.filter":170,"core-js/modules/es.array.for-each":172,"core-js/modules/es.array.from":173,"core-js/modules/es.array.index-of":175,"core-js/modules/es.array.iterator":176,"core-js/modules/es.array.map":179,"core-js/modules/es.array.slice":180,"core-js/modules/es.array.splice":182,"core-js/modules/es.function.name":184,"core-js/modules/es.object.to-string":195,"core-js/modules/es.promise":196,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.regexp.to-string":200,"core-js/modules/es.string.iterator":204,"core-js/modules/es.string.replace":207,"core-js/modules/es.string.split":209,"core-js/modules/es.string.trim":211,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/web.dom-collections.for-each":246,"core-js/modules/web.dom-collections.iterator":247,"core-js/modules/web.url":249}],306:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("../core/constants"));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}o.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?"landscape":"portrait",o.default.prototype.accelerationX=0,o.default.prototype.accelerationY=0,o.default.prototype.accelerationZ=0,o.default.prototype.pAccelerationX=0,o.default.prototype.pAccelerationY=0,o.default.prototype.pAccelerationZ=0,o.default.prototype._updatePAccelerations=function(){this._setProperty("pAccelerationX",this.accelerationX),this._setProperty("pAccelerationY",this.accelerationY),this._setProperty("pAccelerationZ",this.accelerationZ)},o.default.prototype.rotationX=0,o.default.prototype.rotationY=0,o.default.prototype.rotationZ=0,o.default.prototype.pRotationX=0,o.default.prototype.pRotationY=0;var p=o.default.prototype.pRotationZ=0,c=0,u=0,d="clockwise",h="clockwise",f="clockwise";o.default.prototype.pRotateDirectionX=void 0,o.default.prototype.pRotateDirectionY=void 0,o.default.prototype.pRotateDirectionZ=void 0,o.default.prototype._updatePRotations=function(){this._setProperty("pRotationX",this.rotationX),this._setProperty("pRotationY",this.rotationY),this._setProperty("pRotationZ",this.rotationZ)},o.default.prototype.turnAxis=void 0;var m=.5,y=30;o.default.prototype.setMoveThreshold=function(e){o.default._validateParameters("setMoveThreshold",arguments),m=e},o.default.prototype.setShakeThreshold=function(e){o.default._validateParameters("setShakeThreshold",arguments),y=e},o.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===a.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty("rotationX",e.beta),this._setProperty("rotationY",e.gamma),this._setProperty("rotationZ",e.alpha),this._handleMotion()},o.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty("accelerationX",2*e.acceleration.x),this._setProperty("accelerationY",2*e.acceleration.y),this._setProperty("accelerationZ",2*e.acceleration.z),this._handleMotion()},o.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty("deviceOrientation","landscape"):0===window.orientation?this._setProperty("deviceOrientation","portrait"):void 0===window.orientation&&this._setProperty("deviceOrientation","undefined");var e,t,r=this._isGlobal?window:this;if("function"==typeof r.deviceMoved&&(Math.abs(this.accelerationX-this.pAccelerationX)>m||Math.abs(this.accelerationY-this.pAccelerationY)>m||Math.abs(this.accelerationZ-this.pAccelerationZ)>m)&&r.deviceMoved(),"function"==typeof r.deviceTurned){var n=this.rotationX+180,o=this.pRotationX+180,a=p+180;0<n-o&&n-o<270||n-o<-270?d="clockwise":(n-o<0||270<n-o)&&(d="counter-clockwise"),d!==this.pRotateDirectionX&&(a=n),90<Math.abs(n-a)&&Math.abs(n-a)<270&&(a=n,this._setProperty("turnAxis","X"),r.deviceTurned()),this.pRotateDirectionX=d,p=a-180;var i=this.rotationY+180,s=this.pRotationY+180,l=c+180;0<i-s&&i-s<270||i-s<-270?h="clockwise":(i-s<0||270<i-this.pRotationY)&&(h="counter-clockwise"),h!==this.pRotateDirectionY&&(l=i),90<Math.abs(i-l)&&Math.abs(i-l)<270&&(l=i,this._setProperty("turnAxis","Y"),r.deviceTurned()),this.pRotateDirectionY=h,c=l-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?f="clockwise":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(f="counter-clockwise"),f!==this.pRotateDirectionZ&&(u=this.rotationZ),90<Math.abs(this.rotationZ-u)&&Math.abs(this.rotationZ-u)<270&&(u=this.rotationZ,this._setProperty("turnAxis","Z"),r.deviceTurned()),this.pRotateDirectionZ=f,this._setProperty("turnAxis",void 0)}"function"==typeof r.deviceShaken&&(null!==this.pAccelerationX&&(e=Math.abs(this.accelerationX-this.pAccelerationX),t=Math.abs(this.accelerationY-this.pAccelerationY)),y<e+t&&r.deviceShaken())};var l=o.default;r.default=l},{"../core/constants":277,"../core/main":289}],307:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n};o.default.prototype.isKeyPressed=!1,o.default.prototype.keyIsPressed=!1,o.default.prototype.key="",o.default.prototype.keyCode=0,o.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty("isKeyPressed",!0),this._setProperty("keyIsPressed",!0),this._setProperty("keyCode",e.which),this._downKeys[e.which]=!0,this._setProperty("key",e.key||String.fromCharCode(e.which)||e.which);var t=this._isGlobal?window:this;if("function"==typeof t.keyPressed&&!e.charCode)!1===t.keyPressed(e)&&e.preventDefault()}},o.default.prototype._onkeyup=function(e){this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty("isKeyPressed",!1),this._setProperty("keyIsPressed",!1)),this._setProperty("_lastKeyCodeTyped",null),this._setProperty("key",e.key||String.fromCharCode(e.which)||e.which),this._setProperty("keyCode",e.which);var t=this._isGlobal?window:this;"function"==typeof t.keyReleased&&!1===t.keyReleased(e)&&e.preventDefault()},o.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty("_lastKeyCodeTyped",e.which),this._setProperty("key",e.key||String.fromCharCode(e.which)||e.which);var t=this._isGlobal?window:this;if("function"==typeof t.keyTyped)!1===t.keyTyped(e)&&e.preventDefault()}},o.default.prototype._onblur=function(e){this._downKeys={}},o.default.prototype.keyIsDown=function(e){return o.default._validateParameters("keyIsDown",arguments),this._downKeys[e]||!1},o.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var a=o.default;r.default=a},{"../core/main":289}],308:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}e("core-js/modules/es.array.includes"),e("core-js/modules/es.string.includes"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("../core/constants"));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}o.default.prototype.movedX=0,o.default.prototype.movedY=0,o.default.prototype._hasMouseInteracted=!1,o.default.prototype.mouseX=0,o.default.prototype.mouseY=0,o.default.prototype.pmouseX=0,o.default.prototype.pmouseY=0,o.default.prototype.winMouseX=0,o.default.prototype.winMouseY=0,o.default.prototype.pwinMouseX=0,o.default.prototype.pwinMouseY=0,o.default.prototype.mouseButton=0,o.default.prototype.mouseIsPressed=!1,o.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,n){n&&!n.clientX&&(n.touches?n=n.touches[0]:n.changedTouches&&(n=n.changedTouches[0]));var o=e.getBoundingClientRect(),a=e.scrollWidth/t||1,i=e.scrollHeight/r||1;return{x:(n.clientX-o.left)/a,y:(n.clientY-o.top)/i,winX:n.clientX,winY:n.clientY,id:n.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty("movedX",e.movementX),this._setProperty("movedY",e.movementY),this._setProperty("mouseX",t.x),this._setProperty("mouseY",t.y),this._setProperty("winMouseX",t.winX),this._setProperty("winMouseY",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty("_hasMouseInteracted",!0))},o.default.prototype._updateMouseCoords=function(){this._setProperty("pmouseX",this.mouseX),this._setProperty("pmouseY",this.mouseY),this._setProperty("pwinMouseX",this.winMouseX),this._setProperty("pwinMouseY",this.winMouseY),this._setProperty("_pmouseWheelDeltaY",this._mouseWheelDeltaY)},o.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty("mouseButton",a.CENTER):2===e.button?this._setProperty("mouseButton",a.RIGHT):this._setProperty("mouseButton",a.LEFT)},o.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?"function"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():"function"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():"function"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},o.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty("mouseIsPressed",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),"function"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes("safari")&&"function"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},o.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty("mouseIsPressed",!1),"function"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():"function"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},o.default.prototype._ondragend=o.default.prototype._onmouseup,o.default.prototype._ondragover=o.default.prototype._onmousemove,o.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;"function"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},o.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;"function"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},o.default.prototype._mouseWheelDeltaY=0,o.default.prototype._pmouseWheelDeltaY=0,o.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty("_mouseWheelDeltaY",e.deltaY),"function"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},o.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log("requestPointerLock is not implemented in this browser"),!1)},o.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=o.default;r.default=l},{"../core/constants":277,"../core/main":289,"core-js/modules/es.array.includes":174,"core-js/modules/es.string.includes":203}],309:[function(e,t,r){e("core-js/modules/es.array.includes"),e("core-js/modules/es.string.includes"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n};function a(e,t,r,n,o){var a=4<arguments.length&&void 0!==o?o:0,i=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,p=n.touches[a]||n.changedTouches[a];return{x:(p.clientX-i.left)/s,y:(p.clientY-i.top)/l,winX:p.clientX,winY:p.clientY,id:p.identifier}}o.default.prototype.touches=[],o.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=a(this._curElement.elt,this.width,this.height,e,r);this._setProperty("touches",t)}},o.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty("mouseIsPressed",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),"function"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes("safari")&&"function"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},o.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),"function"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():"function"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},o.default.prototype._ontouchend=function(e){this._setProperty("mouseIsPressed",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;"function"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():"function"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var i=o.default;r.default=i},{"../core/main":289,"core-js/modules/es.array.includes":174,"core-js/modules/es.string.includes":203}],310:[function(e,t,r){e("core-js/modules/es.array.iterator"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.typed-array.int32-array"),e("core-js/modules/es.typed-array.uint8-array"),e("core-js/modules/es.typed-array.copy-within"),e("core-js/modules/es.typed-array.every"),e("core-js/modules/es.typed-array.fill"),e("core-js/modules/es.typed-array.filter"),e("core-js/modules/es.typed-array.find"),e("core-js/modules/es.typed-array.find-index"),e("core-js/modules/es.typed-array.for-each"),e("core-js/modules/es.typed-array.includes"),e("core-js/modules/es.typed-array.index-of"),e("core-js/modules/es.typed-array.iterator"),e("core-js/modules/es.typed-array.join"),e("core-js/modules/es.typed-array.last-index-of"),e("core-js/modules/es.typed-array.map"),e("core-js/modules/es.typed-array.reduce"),e("core-js/modules/es.typed-array.reduce-right"),e("core-js/modules/es.typed-array.reverse"),e("core-js/modules/es.typed-array.set"),e("core-js/modules/es.typed-array.slice"),e("core-js/modules/es.typed-array.some"),e("core-js/modules/es.typed-array.sort"),e("core-js/modules/es.typed-array.subarray"),e("core-js/modules/es.typed-array.to-locale-string"),e("core-js/modules/es.typed-array.to-string"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var C,O,N,k,L={};function n(e,t){for(var r,n,o,a,i,s,l,p,c,u,d=L._toPixels(e),h=e.width,f=e.height,m=h*f,y=new Int32Array(m),g=0;g<m;g++)y[g]=L._getARGB(d,g);var v,b,x,w,_=new Int32Array(m),S=new Int32Array(m),j=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(C!==(t=t<1?1:t<248?t:248)){O=1+(C=t)<<1,N=new Int32Array(O),k=new Array(O);for(var r=0;r<O;r++)k[r]=new Int32Array(256);for(var n,o,a,i,s=1,l=t-1;s<t;s++){N[t+s]=N[l]=o=l*l,a=k[t+s],i=k[l--];for(var p=0;p<256;p++)a[p]=i[p]=o*p}n=N[t]=t*t,a=k[t];for(var c=0;c<256;c++)a[c]=n*c}}(t),b=0;b<f;b++){for(v=0;v<h;v++){if(a=o=n=i=r=0,(s=v-C)<0)u=-s,s=0;else{if(h<=s)break;u=0}for(x=u;x<O&&!(h<=s);x++){var M=y[s+T];i+=(w=k[x])[(-16777216&M)>>>24],n+=w[(16711680&M)>>16],o+=w[(65280&M)>>8],a+=w[255&M],r+=N[x],s++}_[l=T+v]=i/r,S[l]=n/r,j[l]=o/r,E[l]=a/r}T+=h}for(c=(p=-C)*h,b=T=0;b<f;b++){for(v=0;v<h;v++){if(a=o=n=i=r=0,p<0)u=l=-p,s=v;else{if(f<=p)break;u=0,l=p,s=v+c}for(x=u;x<O&&!(f<=l);x++)i+=(w=k[x])[_[s]],n+=w[S[s]],o+=w[j[s]],a+=w[E[s]],r+=N[x],l++,s+=h;y[v+T]=i/r<<24|n/r<<16|o/r<<8|a/r}T+=h,c+=h,p++}L._setPixels(d,y)}L._toPixels=function(e){if(e instanceof ImageData)return e.data;if(e.getContext("2d"))return e.getContext("2d").getImageData(0,0,e.width,e.height).data;if(e.getContext("webgl")){var t=e.getContext("webgl"),r=t.drawingBufferWidth*t.drawingBufferHeight*4,n=new Uint8Array(r);return t.readPixels(0,0,e.width,e.height,t.RGBA,t.UNSIGNED_BYTE,n),n}},L._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},L._setPixels=function(e,t){for(var r=0,n=0,o=e.length;n<o;n++)e[(r=4*n)+0]=(16711680&t[n])>>>16,e[r+1]=(65280&t[n])>>>8,e[r+2]=255&t[n],e[r+3]=(4278190080&t[n])>>>24},L._toImageData=function(e){return e instanceof ImageData?e:e.getContext("2d").getImageData(0,0,e.width,e.height)},L._createImageData=function(e,t){return L._tmpCanvas=document.createElement("canvas"),L._tmpCtx=L._tmpCanvas.getContext("2d"),this._tmpCtx.createImageData(e,t)},L.apply=function(e,t,r){var n=e.getContext("2d"),o=n.getImageData(0,0,e.width,e.height),a=t(o,r);a instanceof ImageData?n.putImageData(a,0,0,0,0,e.width,e.height):n.putImageData(o,0,0,0,0,e.width,e.height)},L.threshold=function(e,t){var r=L._toPixels(e);void 0===t&&(t=.5);for(var n=Math.floor(255*t),o=0;o<r.length;o+=4){var a=void 0;a=n<=.2126*r[o]+.7152*r[o+1]+.0722*r[o+2]?255:0,r[o]=r[o+1]=r[o+2]=a}},L.gray=function(e){for(var t=L._toPixels(e),r=0;r<t.length;r+=4){var n=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=n}},L.opaque=function(e){for(var t=L._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},L.invert=function(e){for(var t=L._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},L.posterize=function(e,t){var r=L._toPixels(e);if(t<2||255<t)throw new Error("Level must be greater than 2 and less than 255 for posterize");for(var n=t-1,o=0;o<r.length;o+=4){var a=r[o],i=r[o+1],s=r[o+2];r[o]=255*(a*t>>8)/n,r[o+1]=255*(i*t>>8)/n,r[o+2]=255*(s*t>>8)/n}},L.dilate=function(e){for(var t,r,n,o,a,i,s,l,p,c,u,d,h,f,m,y,g,v=L._toPixels(e),b=0,x=v.length?v.length/4:0,w=new Int32Array(x);b<x;)for(r=(t=b)+e.width;b<r;)n=o=L._getARGB(v,b),(s=b-1)<t&&(s=b),r<=(i=b+1)&&(i=b),(l=b-e.width)<0&&(l=0),x<=(p=b+e.width)&&(p=b),d=L._getARGB(v,l),u=L._getARGB(v,s),h=L._getARGB(v,p),(a=77*(n>>16&255)+151*(n>>8&255)+28*(255&n))<(m=77*(u>>16&255)+151*(u>>8&255)+28*(255&u))&&(o=u,a=m),a<(f=77*((c=L._getARGB(v,i))>>16&255)+151*(c>>8&255)+28*(255&c))&&(o=c,a=f),a<(y=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(o=d,a=y),a<(g=77*(h>>16&255)+151*(h>>8&255)+28*(255&h))&&(o=h,a=g),w[b++]=o;L._setPixels(v,w)},L.erode=function(e){for(var t,r,n,o,a,i,s,l,p,c,u,d,h,f,m,y,g,v=L._toPixels(e),b=0,x=v.length?v.length/4:0,w=new Int32Array(x);b<x;)for(r=(t=b)+e.width;b<r;)n=o=L._getARGB(v,b),(s=b-1)<t&&(s=b),r<=(i=b+1)&&(i=b),(l=b-e.width)<0&&(l=0),x<=(p=b+e.width)&&(p=b),d=L._getARGB(v,l),u=L._getARGB(v,s),h=L._getARGB(v,p),(m=77*(u>>16&255)+151*(u>>8&255)+28*(255&u))<(a=77*(n>>16&255)+151*(n>>8&255)+28*(255&n))&&(o=u,a=m),(f=77*((c=L._getARGB(v,i))>>16&255)+151*(c>>8&255)+28*(255&c))<a&&(o=c,a=f),(y=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<a&&(o=d,a=y),(g=77*(h>>16&255)+151*(h>>8&255)+28*(255&h))<a&&(o=h,a=g),w[b++]=o;L._setPixels(v,w)},L.blur=function(e,t){n(e,t)};var o=L;r.default=o},{"core-js/modules/es.array.iterator":176,"core-js/modules/es.object.to-string":195,"core-js/modules/es.typed-array.copy-within":215,"core-js/modules/es.typed-array.every":216,"core-js/modules/es.typed-array.fill":217,"core-js/modules/es.typed-array.filter":218,"core-js/modules/es.typed-array.find":220,"core-js/modules/es.typed-array.find-index":219,"core-js/modules/es.typed-array.for-each":223,"core-js/modules/es.typed-array.includes":224,"core-js/modules/es.typed-array.index-of":225,"core-js/modules/es.typed-array.int32-array":227,"core-js/modules/es.typed-array.iterator":228,"core-js/modules/es.typed-array.join":229,"core-js/modules/es.typed-array.last-index-of":230,"core-js/modules/es.typed-array.map":231,"core-js/modules/es.typed-array.reduce":233,"core-js/modules/es.typed-array.reduce-right":232,"core-js/modules/es.typed-array.reverse":234,"core-js/modules/es.typed-array.set":235,"core-js/modules/es.typed-array.slice":236,"core-js/modules/es.typed-array.some":237,"core-js/modules/es.typed-array.sort":238,"core-js/modules/es.typed-array.subarray":239,"core-js/modules/es.typed-array.to-locale-string":240,"core-js/modules/es.typed-array.to-string":241,"core-js/modules/es.typed-array.uint8-array":244}],311:[function(e,t,r){e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.iterator"),e("core-js/modules/es.string.replace"),e("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,d=(n=e("../core/main"))&&n.__esModule?n:{default:n};d.default.prototype.createImage=function(e,t){return d.default._validateParameters("createImage",arguments),new d.default.Image(e,t)},d.default.prototype.saveCanvas=function(){d.default._validateParameters("saveCanvas",arguments);var e,t,r,n,o=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],o.shift()):arguments[0]instanceof d.default.Element?(e=arguments[0].elt,o.shift()):e=this._curElement&&this._curElement.elt,1<=o.length&&(t=o[0]),2<=o.length&&(r=o[1]),r=r||d.default.prototype._checkFileExtension(t,r)[1]||"png"){default:n="image/png";break;case"jpeg":case"jpg":n="image/jpeg"}e.toBlob(function(e){d.default.prototype.downloadFile(e,t,r)},n)},d.default.prototype.saveFrames=function(e,t,r,n,i){d.default._validateParameters("saveFrames",arguments);var o=r||3;o=d.default.prototype.constrain(o,0,15),o*=1e3;var a=n||15;a=d.default.prototype.constrain(a,0,22);var s=0,l=d.default.prototype._makeFrame,p=this._curElement.elt,c=[],u=setInterval(function(){c.push(l(e+s,t,p)),s++},1e3/a);setTimeout(function(){if(clearInterval(u),i)i(c);else{var e=!0,t=!1,r=void 0;try{for(var n,o=c[Symbol.iterator]();!(e=(n=o.next()).done);e=!0){var a=n.value;d.default.prototype.downloadFile(a.imageData,a.filename,a.ext)}}catch(e){t=!0,r=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw r}}}c=[]},o+.01)},d.default.prototype._makeFrame=function(e,t,r){var n,o;if(n=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case"png":o="image/png";break;case"jpeg":case"jpg":o="image/jpeg";break;default:o="image/png"}else t="png",o="image/png";var a=n.toDataURL(o);a=a.replace(o,"image/octet-stream");var i={};return i.imageData=a,i.filename=e,i.ext=t,i};var o=d.default;r.default=o},{"../core/main":289,"core-js/modules/es.array.iterator":176,"core-js/modules/es.array.slice":180,"core-js/modules/es.object.to-string":195,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.string.iterator":204,"core-js/modules/es.string.replace":207,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/web.dom-collections.iterator":247}],312:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.every"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.map"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.array.splice"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.promise"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.string.iterator"),e("core-js/modules/es.string.split"),e("core-js/modules/es.typed-array.uint8-array"),e("core-js/modules/es.typed-array.uint8-clamped-array"),e("core-js/modules/es.typed-array.copy-within"),e("core-js/modules/es.typed-array.every"),e("core-js/modules/es.typed-array.fill"),e("core-js/modules/es.typed-array.filter"),e("core-js/modules/es.typed-array.find"),e("core-js/modules/es.typed-array.find-index"),e("core-js/modules/es.typed-array.for-each"),e("core-js/modules/es.typed-array.includes"),e("core-js/modules/es.typed-array.index-of"),e("core-js/modules/es.typed-array.iterator"),e("core-js/modules/es.typed-array.join"),e("core-js/modules/es.typed-array.last-index-of"),e("core-js/modules/es.typed-array.map"),e("core-js/modules/es.typed-array.reduce"),e("core-js/modules/es.typed-array.reduce-right"),e("core-js/modules/es.typed-array.reverse"),e("core-js/modules/es.typed-array.set"),e("core-js/modules/es.typed-array.slice"),e("core-js/modules/es.typed-array.some"),e("core-js/modules/es.typed-array.sort"),e("core-js/modules/es.typed-array.subarray"),e("core-js/modules/es.typed-array.to-locale-string"),e("core-js/modules/es.typed-array.to-string"),e("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,e("regenerator-runtime/runtime");var I=o(e("../core/main")),u=o(e("./filters")),w=o(e("../core/helpers")),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("../core/constants")),y=o(e("omggif")),R=e("gifenc");function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function o(e){return e&&e.__esModule?e:{default:e}}function l(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function a(s){return function(){var e=this,i=arguments;return new Promise(function(t,r){var n=s.apply(e,i);function o(e){l(n,t,r,o,a,"next",e)}function a(e){l(n,t,r,o,a,"throw",e)}o(void 0)})}}function P(e,t){var r={},n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value,p=(0,R.quantize)(l,64,{format:t}),c=!0,u=!1,d=void 0;try{for(var h,f=p[Symbol.iterator]();!(c=(h=f.next()).done);c=!0){var m=h.value;m=m.toString(),void 0===r[m]?r[m]={count:1}:r[m].count+=1}}catch(e){u=!0,d=e}finally{try{c||null==f.return||f.return()}finally{if(u)throw d}}}}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return Object.keys(r).sort(function(e,t){return r[t].count-r[e].count}).map(function(e){return e.split(",").map(function(e){return parseInt(e)})}).splice(0,256)}function D(e,r){return Array.isArray(e)&&Array.isArray(r)&&e.length===r.length&&e.every(function(e,t){return e===r[t]})}function _(e,t){return 0<e&&e<t?e:t}e("../core/friendly_errors/validate_params"),e("../core/friendly_errors/file_errors"),e("../core/friendly_errors/fes_core"),I.default.prototype.loadImage=function(n,o,a){I.default._validateParameters("loadImage",arguments);var i=new I.default.Image(1,1,this),s=this,e=new Request(n,{method:"GET",mode:"cors"});return fetch(n,e).then(function(e){var t=e.headers.get("content-type");if(null===t&&console.warn("The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset."),t&&t.includes("image/gif"))e.arrayBuffer().then(function(e){e&&function(e,r,t,n,o){var a=new y.default.GifReader(e);r.width=r.canvas.width=a.width,r.height=r.canvas.height=a.height;var i=[],s=a.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var p=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){I.default._friendlyFileLoadError(8,r.src),"function"==typeof n?n(e):console.error(e)}},c=0;c<s;c++){var u=a.frameInfo(c),d=r.drawingContext.getImageData(0,0,r.width,r.height);l=d.data.slice(),p(c,a);var h=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(h,0,0);var f=u.delay;0===f&&(f=10),i.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*f}),2===u.disposal?r.drawingContext.clearRect(u.x,u.y,u.width,u.height):3===u.disposal&&r.drawingContext.putImageData(d,0,0,u.x,u.y,u.width,u.height)}var m=a.loopCount();null===m?m=1:0===m&&(m=null),r.drawingContext.putImageData(i[0].image,0,0),r.gifProperties={displayIndex:0,loopLimit:m,loopCount:0,frames:i,numFrames:s,playing:!0,timeDisplayed:0,lastChangeTime:0}}"function"==typeof t&&t(r);o()}(new Uint8Array(e),i,o,a,function(e){s._decrementPreload()}.bind(s))},function(e){"function"==typeof a?a(e):console.error(e)});else{var r=new Image;r.onload=function(){i.width=i.canvas.width=r.width,i.height=i.canvas.height=r.height,i.drawingContext.drawImage(r,0,0),i.modified=!0,"function"==typeof o&&o(i),s._decrementPreload()},r.onerror=function(e){I.default._friendlyFileLoadError(0,r.src),"function"==typeof a?a(e):console.error(e)},0!==n.indexOf("data:image/")&&(r.crossOrigin="Anonymous"),r.src=n}i.modified=!0}).catch(function(e){I.default._friendlyFileLoadError(0,n),"function"==typeof a?a(e):console.error(e)}),i},I.default.prototype.saveGif=a(regeneratorRuntime.mark(function e(){var t,r,n,o,a,i,s,l,p,c,u,d,h,f,m,y,g,v,b,x,w,_,S,j,E,T,M,C,O,N,k,L,A=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=A.length,e.next=2===e.t0?3:3===e.t0?6:10;break;case 3:return t=A.length<=0?void 0:A[0],r=A.length<=1?void 0:A[1],e.abrupt("break",10);case 6:return t=A.length<=0?void 0:A[0],r=A.length<=1?void 0:A[1],n=A.length<=2?void 0:A[2],e.abrupt("break",10);case 10:n=n||0,(o=this._targetFrameRate)!==1/0&&void 0!==o&&0!==o||(o=60),a=Math.ceil(r*o),i=Math.ceil(n*o),s=i,noLoop(),frameCount=i,l=this._pixelDensity,pixelDensity(1),p=this._pixelDensity,c=this.width*p,u=this.height*p,d=[],null!==document.getElementById("progressBar")&&document.getElementById("progressBar").remove(),(h=createP("")).id("progressBar"),h.style("font-size","16px"),h.style("font-family","Montserrat"),h.style("background-color","#ffffffa0"),h.position(0,0);case 31:if(s<a+i)return redraw(),f=this.drawingContext.getImageData(0,0,c,u).data,d.push(f),s++,h.html("Saved frame <b>"+d.length.toString()+"</b> out of "+a.toString()),e.next=39,new Promise(function(e){return setTimeout(e,0)});e.next=41;break;case 39:e.next=31;break;case 41:h.html("Frames processed, encoding gif. This may take a while..."),loop(),pixelDensity(l),m=(0,R.GIFEncoder)(),g=P(d,y="rgb444"),v=0;case 48:if(!(v<d.length)){e.next=67;break}if(0===v)return b=(0,R.applyPalette)(d[v],g,{format:y}),m.writeFrame(b,c,u,{palette:g,delay:20,dispose:1}),e.abrupt("continue",64);e.next=53;break;case 53:for(x=d[v],w=d[v-1],_=[],S=0;S<x.length;S+=4)j=[x[S],x[S+1],x[S+2],x[S+3]],E=[w[S],w[S+1],w[S+2],w[S+3]],D(j,E)&&_.push(parseInt(S/4));for(T=(0,R.applyPalette)(x,g,{format:y}),M=x[_[0]],C=0,O=_;C<O.length;C++)N=O[C],T[N]=M;return m.writeFrame(T,c,u,{delay:20,transparent:!0,transparentIndex:M,dispose:1}),h.html("Rendered frame <b>"+v.toString()+"</b> out of "+a.toString()),e.next=64,new Promise(function(e){return setTimeout(e,0)});case 64:v++,e.next=48;break;case 67:m.finish(),k=m.bytesView(),L=new Blob([k],{type:"image/gif"}),h.html("Done. Downloading!🌸"),I.default.prototype.downloadFile(L,t,"gif");case 73:case"end":return e.stop()}},e,this)})),I.default.prototype.image=function(e,t,r,n,o,a,i,s,l){I.default._validateParameters("image",arguments);var p=e.width,c=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(p=e.elt.videoWidth,c=e.elt.videoHeight);var u=t,d=r,h=n||p,f=o||c,m=a||0,y=i||0,g=s||p,v=l||c;g=_(g,p),v=_(v,c);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!n?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,y*=b,v*=b,g*=b;var x=w.default.modeAdjust(u,d,h,f,this._renderer._imageMode);this._renderer.image(e,m,y,g,v,x.x,x.y,x.w,x.h)},I.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];I.default._validateParameters("tint",t);var n=this.color.apply(this,t);this._renderer._tint=n.levels},I.default.prototype.noTint=function(){this._renderer._tint=null},I.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=u.default._toPixels(e.canvas),r=document.createElement("canvas");r.width=e.canvas.width,r.height=e.canvas.height;for(var n=r.getContext("2d"),o=n.createImageData(e.canvas.width,e.canvas.height),a=o.data,i=0;i<t.length;i+=4){var s=t[i],l=t[i+1],p=t[i+2],c=t[i+3];a[i]=s*this._renderer._tint[0]/255,a[i+1]=l*this._renderer._tint[1]/255,a[i+2]=p*this._renderer._tint[2]/255,a[i+3]=c*this._renderer._tint[3]/255}return n.putImageData(o,0,0),r},I.default.prototype.imageMode=function(e){I.default._validateParameters("imageMode",arguments),e!==n.CORNER&&e!==n.CORNERS&&e!==n.CENTER||(this._renderer._imageMode=e)};var p=I.default;r.default=p},{"../core/constants":277,"../core/friendly_errors/fes_core":280,"../core/friendly_errors/file_errors":281,"../core/friendly_errors/validate_params":284,"../core/helpers":285,"../core/main":289,"./filters":310,"core-js/modules/es.array.every":168,"core-js/modules/es.array.includes":174,"core-js/modules/es.array.index-of":175,"core-js/modules/es.array.iterator":176,"core-js/modules/es.array.map":179,"core-js/modules/es.array.slice":180,"core-js/modules/es.array.splice":182,"core-js/modules/es.object.keys":194,"core-js/modules/es.object.to-string":195,"core-js/modules/es.promise":196,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.regexp.to-string":200,"core-js/modules/es.string.includes":203,"core-js/modules/es.string.iterator":204,"core-js/modules/es.string.split":209,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/es.typed-array.copy-within":215,"core-js/modules/es.typed-array.every":216,"core-js/modules/es.typed-array.fill":217,"core-js/modules/es.typed-array.filter":218,"core-js/modules/es.typed-array.find":220,"core-js/modules/es.typed-array.find-index":219,"core-js/modules/es.typed-array.for-each":223,"core-js/modules/es.typed-array.includes":224,"core-js/modules/es.typed-array.index-of":225,"core-js/modules/es.typed-array.iterator":228,"core-js/modules/es.typed-array.join":229,"core-js/modules/es.typed-array.last-index-of":230,"core-js/modules/es.typed-array.map":231,"core-js/modules/es.typed-array.reduce":233,"core-js/modules/es.typed-array.reduce-right":232,"core-js/modules/es.typed-array.reverse":234,"core-js/modules/es.typed-array.set":235,"core-js/modules/es.typed-array.slice":236,"core-js/modules/es.typed-array.some":237,"core-js/modules/es.typed-array.sort":238,"core-js/modules/es.typed-array.subarray":239,"core-js/modules/es.typed-array.to-locale-string":240,"core-js/modules/es.typed-array.to-string":241,"core-js/modules/es.typed-array.uint8-array":244,"core-js/modules/es.typed-array.uint8-clamped-array":245,"core-js/modules/web.dom-collections.iterator":247,gifenc:254,omggif:261,"regenerator-runtime/runtime":265}],313:[function(e,t,r){e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.filter"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.string.iterator"),e("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=a(e("../core/main")),n=a(e("./filters"));function a(e){return e&&e.__esModule?e:{default:e}}o.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement("canvas"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext("2d"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},o.default.Image.prototype._animateGif=function(e){var t=this.gifProperties,r=e._lastFrameTime;if(0===t.lastChangeTime&&(t.lastChangeTime=r),t.playing){t.timeDisplayed=r-t.lastChangeTime;var n=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=n){var o=Math.floor(t.timeDisplayed/n);if(t.timeDisplayed=0,t.lastChangeTime=r,t.displayIndex+=o,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var a=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[a].image,0,0),t.displayIndex=a,this.setModified(!0)}}}},o.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},o.default.Image.prototype.loadPixels=function(){o.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},o.default.Image.prototype.updatePixels=function(e,t,r,n){o.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,n),this.setModified(!0)},o.default.Image.prototype.get=function(e,t,r,n){return o.default._validateParameters("p5.Image.get",arguments),o.default.Renderer2D.prototype.get.apply(this,arguments)},o.default.Image.prototype._getPixel=o.default.Renderer2D.prototype._getPixel,o.default.Image.prototype.set=function(e,t,r){o.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},o.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement("canvas");if(r.width=e,r.height=t,this.gifProperties)for(var n=this.gifProperties,o=function(e,t){for(var r=0,n=0;n<t.height;n++)for(var o=0;o<t.width;o++){var a=Math.floor(o*e.width/t.width),i=4*(Math.floor(n*e.height/t.height)*e.width+a);t.data[r++]=e.data[i++],t.data[r++]=e.data[i++],t.data[r++]=e.data[i++],t.data[r++]=e.data[i++]}},a=0;a<n.numFrames;a++){var i=this.drawingContext.createImageData(e,t);o(n.frames[a].image,i),n.frames[a].image=i}r.getContext("2d").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},o.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];o.default.prototype.copy.apply(this,t)},o.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof o.default.Renderer&&(r=e._pInst._pixelDensity);var n=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation="destination-in",o.default.Image.prototype.copy.apply(this,n),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},o.default.Image.prototype.filter=function(e,t){n.default.apply(this.canvas,n.default[e],t),this.setModified(!0)},o.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];o.default._validateParameters("p5.Image.blend",arguments),o.default.prototype.blend.apply(this,t),this.setModified(!0)},o.default.Image.prototype.setModified=function(e){this._modified=e},o.default.Image.prototype.isModified=function(){return this._modified},o.default.Image.prototype.save=function(e,t){this.gifProperties?o.default.prototype.saveGif(this,e):o.default.prototype.saveCanvas(this.canvas,e,t)},o.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.lastChangeTime=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},o.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},o.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.lastChangeTime=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log("Cannot set GIF to a frame number that is higher than total number of frames or below zero.")}},o.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},o.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},o.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},o.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var n=!0,o=!1,a=void 0;try{for(var i,s=r.frames[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){i.value.delay=e}}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}}}};var i=o.default.Image;r.default=i},{"../core/main":289,"./filters":310,"core-js/modules/es.array.filter":170,"core-js/modules/es.array.iterator":176,"core-js/modules/es.object.to-string":195,"core-js/modules/es.string.iterator":204,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/web.dom-collections.iterator":247}],314:[function(e,t,r){e("core-js/modules/es.array.filter"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var h=o(e("../core/main")),n=o(e("./filters"));function o(e){return e&&e.__esModule?e:{default:e}}e("../color/p5.Color"),h.default.prototype.pixels=[],h.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;(h.default._validateParameters("blend",t),this._renderer)?(n=this._renderer).blend.apply(n,t):h.default.Renderer2D.prototype.blend.apply(this,t)},h.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o,a,i,s,l,p,c,u;if(h.default._validateParameters("copy",t),9===t.length)n=t[0],o=t[1],a=t[2],i=t[3],s=t[4],l=t[5],p=t[6],c=t[7],u=t[8];else{if(8!==t.length)throw new Error("Signature not supported");n=this,o=t[0],a=t[1],i=t[2],s=t[3],l=t[4],p=t[5],c=t[6],u=t[7]}h.default.prototype._copyHelper(this,n,o,a,i,s,l,p,c,u)},h.default.prototype._copyHelper=function(e,t,r,n,o,a,i,s,l,p){t.loadPixels();var c=t.canvas.width/t.width,u=0,d=0;t._renderer&&t._renderer.isP3D&&(u=t.width/2,d=t.height/2),e._renderer&&e._renderer.isP3D?h.default.RendererGL.prototype.image.call(e._renderer,t,r+u,n+d,o,a,i,s,l,p):e.drawingContext.drawImage(t.canvas,c*(r+u),c*(n+d),c*o,c*a,i,s,l,p)},h.default.prototype.filter=function(e,t){h.default._validateParameters("filter",arguments),void 0!==this.canvas?n.default.apply(this.canvas,n.default[e],t):n.default.apply(this.elt,n.default[e],t)},h.default.prototype.get=function(e,t,r,n){var o;return h.default._validateParameters("get",arguments),(o=this._renderer).get.apply(o,arguments)},h.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];h.default._validateParameters("loadPixels",t),this._renderer.loadPixels()},h.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},h.default.prototype.updatePixels=function(e,t,r,n){h.default._validateParameters("updatePixels",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,n)};var a=h.default;r.default=a},{"../color/p5.Color":275,"../core/main":289,"./filters":310,"core-js/modules/es.array.filter":170}],315:[function(e,t,r){e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.last-index-of"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.array.splice"),e("core-js/modules/es.function.name"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.promise"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.string.iterator"),e("core-js/modules/es.string.replace"),e("core-js/modules/es.string.split"),e("core-js/modules/es.typed-array.uint8-array"),e("core-js/modules/es.typed-array.copy-within"),e("core-js/modules/es.typed-array.every"),e("core-js/modules/es.typed-array.fill"),e("core-js/modules/es.typed-array.filter"),e("core-js/modules/es.typed-array.find"),e("core-js/modules/es.typed-array.find-index"),e("core-js/modules/es.typed-array.for-each"),e("core-js/modules/es.typed-array.includes"),e("core-js/modules/es.typed-array.index-of"),e("core-js/modules/es.typed-array.iterator"),e("core-js/modules/es.typed-array.join"),e("core-js/modules/es.typed-array.last-index-of"),e("core-js/modules/es.typed-array.map"),e("core-js/modules/es.typed-array.reduce"),e("core-js/modules/es.typed-array.reduce-right"),e("core-js/modules/es.typed-array.reverse"),e("core-js/modules/es.typed-array.set"),e("core-js/modules/es.typed-array.slice"),e("core-js/modules/es.typed-array.some"),e("core-js/modules/es.typed-array.sort"),e("core-js/modules/es.typed-array.subarray"),e("core-js/modules/es.typed-array.to-locale-string"),e("core-js/modules/es.typed-array.to-string"),e("core-js/modules/web.dom-collections.iterator"),e("core-js/modules/web.url"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var g=n(e("../core/main"));e("whatwg-fetch"),e("es6-promise/auto");var y=n(e("fetch-jsonp")),s=n(e("file-saver"));function n(e){return e&&e.__esModule?e:{default:e}}function v(e){return(v="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}function b(e,t){var r={};if(void 0===(t=t||[]))for(var n=0;n<e.length;n++)t[n.toString()]=n;for(var o=0;o<t.length;o++){var a=t[o],i=e[o];r[a]=i}return r}function m(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function l(e,t){t&&!0!==t&&"true"!==t||(t="");var r="";return(e=e||"untitled")&&e.includes(".")&&(r=e.split(".").pop()),t&&r!==t&&(r=t,e="".concat(e,".").concat(r)),[e,r]}e("../core/friendly_errors/validate_params"),e("../core/friendly_errors/file_errors"),e("../core/friendly_errors/fes_core"),g.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];g.default._validateParameters("loadJSON",t);for(var n,o,a,i=t[0],s={},l="json",p=1;p<t.length;p++){var c=t[p];"string"==typeof c?"jsonp"!==c&&"json"!==c||(l=c):"function"==typeof c?n?o=c:n=c:"object"===v(c)&&(c.hasOwnProperty("jsonpCallback")||c.hasOwnProperty("jsonpCallbackFunction"))&&(l="jsonp",a=c)}var u=this;return this.httpDo(i,"GET",a,l,function(e){for(var t in e)s[t]=e[t];void 0!==n&&n(e),u._decrementPreload()},function(e){if(g.default._friendlyFileLoadError(5,i),!o)throw e;o(e)}),s},g.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];g.default._validateParameters("loadStrings",t);for(var o,n,a=[],i=1;i<t.length;i++){var s=t[i];"function"==typeof s&&(void 0===o?o=s:void 0===n&&(n=s))}var l=this;return g.default.prototype.httpDo.call(this,t[0],"GET","text",function(e){for(var t=e.replace(/\r\n/g,"\r").replace(/\n/g,"\r").split(/\r/),r=0,n=t.length;r<n;r+=32768)Array.prototype.push.apply(a,t.slice(r,Math.min(r+32768,n)));void 0!==o&&o(a),l._decrementPreload()},function(e){if(g.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),a},g.default.prototype.loadTable=function(t){var d,r,h,e=[],f=!1,n=t.substring(t.lastIndexOf(".")+1,t.length);"csv"===n?h=",":"ssv"===n?h=";":"tsv"===n&&(h="\t");for(var o=1;o<arguments.length;o++)"function"==typeof arguments[o]?void 0===d?d=arguments[o]:void 0===r&&(r=arguments[o]):"string"==typeof arguments[o]&&(e.push(arguments[o]),"header"===arguments[o]&&(f=!0),"csv"===arguments[o]?h=",":"ssv"===arguments[o]?h=";":"tsv"===arguments[o]&&(h="\t"));var m=new g.default.Table,y=this;return this.httpDo(t,"GET","table",function(e){for(var t,r,n={},o=[],a=0,i=null,s=function(){n.currentState=0,n.token=""},l=function(){i.push(n.token),s()},p=function(){n.currentState=4,o.push(i),i=null};;){if(null==(t=e[a++])){if(n.escaped)throw new Error("Unclosed quote in file.");if(i){l(),p();break}}if(null===i&&(n.escaped=!1,i=[],s()),0===n.currentState){if('"'===t){n.escaped=!0,n.currentState=1;continue}n.currentState=1}if(1===n.currentState&&n.escaped)if('"'===t)'"'===e[a]?(n.token+='"',a++):(n.escaped=!1,n.currentState=2);else{if("\r"===t)continue;n.token+=t}else"\r"===t?("\n"===e[a]&&a++,l(),p()):"\n"===t?(l(),p()):t===h?l():1===n.currentState&&(n.token+=t)}if(f)m.columns=o.shift();else for(var c=0;c<o[0].length;c++)m.columns[c]="null";for(var u=0;u<o.length;u++)(1!==o[u].length||"undefined"!==o[u][0]&&""!==o[u][0])&&((r=new g.default.TableRow).arr=o[u],r.obj=b(o[u],m.columns),m.addRow(r));"function"==typeof d&&d(m),y._decrementPreload()},function(e){g.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},g.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,o,a=new g.default.XML,i=1;i<t.length;i++){var s=t[i];"function"==typeof s&&(void 0===n?n=s:void 0===o&&(o=s))}var l=this;return this.httpDo(t[0],"GET","xml",function(e){for(var t in e)a[t]=e[t];void 0!==n&&n(a),l._decrementPreload()},function(e){if(g.default._friendlyFileLoadError(1,e),!o)throw e;o(e)}),a},g.default.prototype.loadBytes=function(t,r,n){var o={},a=this;return this.httpDo(t,"GET","arrayBuffer",function(e){o.bytes=new Uint8Array(e),"function"==typeof r&&r(o),a._decrementPreload()},function(e){if(g.default._friendlyFileLoadError(6,t),!n)throw e;n(e)}),o},g.default.prototype.httpGet=function(){g.default._validateParameters("httpGet",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,"GET"),g.default.prototype.httpDo.apply(this,e)},g.default.prototype.httpPost=function(){g.default._validateParameters("httpPost",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,"POST"),g.default.prototype.httpDo.apply(this,e)},g.default.prototype.httpDo=function(){for(var n,e,t,r,o,a={},i=0,s="text/plain",l=arguments.length-1;0<l&&"function"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)i++;var p=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-i&&"string"==typeof p&&"object"===v(arguments.length<=1?void 0:arguments[1]))r=new Request(p,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var c,u="GET",d=1;d<arguments.length;d++){var h=d<0||arguments.length<=d?void 0:arguments[d];if("string"==typeof h)"GET"===h||"POST"===h||"PUT"===h||"DELETE"===h?u=h:"json"===h||"jsonp"===h||"binary"===h||"arrayBuffer"===h||"xml"===h||"text"===h||"table"===h?n=h:c=h;else if("number"==typeof h)c=h.toString();else if("object"===v(h))if(h.hasOwnProperty("jsonpCallback")||h.hasOwnProperty("jsonpCallbackFunction"))for(var f in h)a[f]=h[f];else s=h instanceof g.default.XML?(c=h.serialize(),"application/xml"):(c=JSON.stringify(h),"application/json");else"function"==typeof h&&(e?t=h:e=h)}var m="GET"===u?new Headers:new Headers({"Content-Type":s});r=new Request(p,{method:u,mode:"cors",body:c,headers:m})}return(o=(o="jsonp"===(n=n||(p.includes("json")?"json":p.includes("xml")?"xml":"text"))?(0,y.default)(p,a):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch("jsonp"!==n&&(r=e.headers.get("content-length")),r&&64e6<r&&g.default._friendlyFileLoadError(7,p),n){case"json":case"jsonp":return e.json();case"binary":return e.blob();case"arrayBuffer":return e.arrayBuffer();case"xml":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,"text/xml");return new g.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),o.catch(t||console.error),o},window.URL=window.URL||window.webkitURL,g.default.prototype._pWriters=[],g.default.prototype.createWriter=function(e,t){var r;for(var n in g.default.prototype._pWriters)if(g.default.prototype._pWriters[n].name===e)return r=new g.default.PrintWriter(e+this.millis(),t),g.default.prototype._pWriters.push(r),r;return r=new g.default.PrintWriter(e,t),g.default.prototype._pWriters.push(r),r},g.default.PrintWriter=function(r,n){var o=this;this.name=r,this.content="",this.write=function(e){this.content+=e},this.print=function(e){this.content+="".concat(e,"\n")},this.clear=function(){this.content=""},this.close=function(){var e=[];for(var t in e.push(this.content),g.default.prototype.writeFile(e,r,n),g.default.prototype._pWriters)g.default.prototype._pWriters[t].name===this.name&&g.default.prototype._pWriters.splice(t,1);o.clear(),o={}}},g.default.prototype.save=function(e,t,r){var n=arguments,o=this._curElement?this._curElement.elt:this.elt;if(0!==n.length)if(n[0]instanceof g.default.Renderer||n[0]instanceof g.default.Graphics)g.default.prototype.saveCanvas(n[0].elt,n[1],n[2]);else if(1===n.length&&"string"==typeof n[0])g.default.prototype.saveCanvas(o,n[0]);else switch(l(n[1],n[2])[1]){case"json":return void g.default.prototype.saveJSON(n[0],n[1],n[2]);case"txt":return void g.default.prototype.saveStrings(n[0],n[1],n[2]);default:n[0]instanceof Array?g.default.prototype.saveStrings(n[0],n[1],n[2]):n[0]instanceof g.default.Table?g.default.prototype.saveTable(n[0],n[1],n[2]):n[0]instanceof g.default.Image?g.default.prototype.saveCanvas(n[0].canvas,n[1]):n[0]instanceof g.default.SoundFile&&g.default.prototype.saveSound(n[0],n[1],n[2],n[3])}else g.default.prototype.saveCanvas(o)},g.default.prototype.saveJSON=function(e,t,r){var n;g.default._validateParameters("saveJSON",arguments),n=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(n.split("\n"),t,"json")},g.default.prototype.saveJSONObject=g.default.prototype.saveJSON,g.default.prototype.saveJSONArray=g.default.prototype.saveJSON,g.default.prototype.saveStrings=function(e,t,r,n){g.default._validateParameters("saveStrings",arguments);for(var o=r||"txt",a=this.createWriter(t,o),i=0;i<e.length;i++)n?a.write(e[i]+"\r\n"):a.write(e[i]+"\n");a.close(),a.clear()},g.default.prototype.saveTable=function(e,t,r){var n;g.default._validateParameters("saveTable",arguments),n=void 0===r?t.substring(t.lastIndexOf(".")+1,t.length):r;var o=this.createWriter(t,n),a=e.columns,i=",";if("tsv"===n&&(i="\t"),"html"!==n){if("0"!==a[0]){for(var s=0;s<a.length;s++)s<a.length-1?o.write(a[s]+i):o.write(a[s]);o.write("\n")}for(var l=0;l<e.rows.length;l++){var p=void 0;for(p=0;p<e.rows[l].arr.length;p++)p<e.rows[l].arr.length-1?"csv"===n&&String(e.rows[l].arr[p]).includes(",")?o.write('"'+e.rows[l].arr[p]+'"'+i):o.write(e.rows[l].arr[p]+i):"csv"===n&&String(e.rows[l].arr[p]).includes(",")?o.write('"'+e.rows[l].arr[p]+'"'):o.write(e.rows[l].arr[p]);o.write("\n")}}else{o.print("<html>"),o.print("<head>");if(o.print(' <meta http-equiv="content-type" content="text/html;charset=utf-8" />'),o.print("</head>"),o.print("<body>"),o.print(" <table>"),"0"!==a[0]){o.print(" <tr>");for(var c=0;c<a.length;c++){var u=m(a[c]);o.print(" <td>".concat(u)),o.print(" </td>")}o.print(" </tr>")}for(var d=0;d<e.rows.length;d++){o.print(" <tr>");for(var h=0;h<e.columns.length;h++){var f=m(e.rows[d].getString(h));o.print(" <td>".concat(f)),o.print(" </td>")}o.print(" </tr>")}o.print(" </table>"),o.print("</body>"),o.print("</html>")}o.close(),o.clear()},g.default.prototype.writeFile=function(e,t,r){var n="application/octet-stream";g.default.prototype._isSafari()&&(n="text/plain");var o=new Blob(e,{type:n});g.default.prototype.downloadFile(o,t,r)},g.default.prototype.downloadFile=function(e,t,r){var n=l(t,r),o=n[0];if(e instanceof Blob)s.default.saveAs(e,o);else{var a=document.createElement("a");if(a.href=e,a.download=o,a.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},a.style.display="none",document.body.appendChild(a),g.default.prototype._isSafari()){var i="Hello, Safari user! To download this file...\n";i+="1. Go to File --\x3e Save As.\n",i+='2. Choose "Page Source" as the Format.\n',i+='3. Name it with this extension: ."'.concat(n[1],'"'),alert(i)}a.click()}},g.default.prototype._checkFileExtension=l,g.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")};var o=g.default;r.default=o},{"../core/friendly_errors/fes_core":280,"../core/friendly_errors/file_errors":281,"../core/friendly_errors/validate_params":284,"../core/main":289,"core-js/modules/es.array.concat":167,"core-js/modules/es.array.includes":174,"core-js/modules/es.array.index-of":175,"core-js/modules/es.array.iterator":176,"core-js/modules/es.array.last-index-of":178,"core-js/modules/es.array.slice":180,"core-js/modules/es.array.splice":182,"core-js/modules/es.function.name":184,"core-js/modules/es.object.to-string":195,"core-js/modules/es.promise":196,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.regexp.to-string":200,"core-js/modules/es.string.includes":203,"core-js/modules/es.string.iterator":204,"core-js/modules/es.string.replace":207,"core-js/modules/es.string.split":209,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/es.typed-array.copy-within":215,"core-js/modules/es.typed-array.every":216,"core-js/modules/es.typed-array.fill":217,"core-js/modules/es.typed-array.filter":218,"core-js/modules/es.typed-array.find":220,"core-js/modules/es.typed-array.find-index":219,"core-js/modules/es.typed-array.for-each":223,"core-js/modules/es.typed-array.includes":224,"core-js/modules/es.typed-array.index-of":225,"core-js/modules/es.typed-array.iterator":228,"core-js/modules/es.typed-array.join":229,"core-js/modules/es.typed-array.last-index-of":230,"core-js/modules/es.typed-array.map":231,"core-js/modules/es.typed-array.reduce":233,"core-js/modules/es.typed-array.reduce-right":232,"core-js/modules/es.typed-array.reverse":234,"core-js/modules/es.typed-array.set":235,"core-js/modules/es.typed-array.slice":236,"core-js/modules/es.typed-array.some":237,"core-js/modules/es.typed-array.sort":238,"core-js/modules/es.typed-array.subarray":239,"core-js/modules/es.typed-array.to-locale-string":240,"core-js/modules/es.typed-array.to-string":241,"core-js/modules/es.typed-array.uint8-array":244,"core-js/modules/web.dom-collections.iterator":247,"core-js/modules/web.url":249,"es6-promise/auto":250,"fetch-jsonp":252,"file-saver":253,"whatwg-fetch":266}],316:[function(e,t,r){e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.array.join"),e("core-js/modules/es.array.splice"),e("core-js/modules/es.regexp.constructor"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.match"),e("core-js/modules/es.string.replace"),e("core-js/modules/es.string.trim"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n};o.default.Table=function(e){this.columns=[],this.rows=[]},o.default.Table.prototype.addRow=function(e){var t=e||new o.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error("invalid TableRow: ".concat(t));return(t.table=this).rows.push(t),t},o.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},o.default.Table.prototype.getRow=function(e){return this.rows[e]},o.default.Table.prototype.getRows=function(){return this.rows},o.default.Table.prototype.findRow=function(e,t){if("string"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var n=0;n<this.rows.length;n++)if(this.rows[n].arr[t]===e)return this.rows[n];return null},o.default.Table.prototype.findRows=function(e,t){var r=[];if("string"==typeof t)for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t]===e&&r.push(this.rows[n]);else for(var o=0;o<this.rows.length;o++)this.rows[o].arr[t]===e&&r.push(this.rows[o]);return r},o.default.Table.prototype.matchRow=function(e,t){if("number"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var n=0;n<this.rows.length;n++)if(this.rows[n].obj[t].match(e))return this.rows[n];return null},o.default.Table.prototype.matchRows=function(e,t){var r=[];if("number"==typeof t)for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t].match(e)&&r.push(this.rows[n]);else for(var o=0;o<this.rows.length;o++)this.rows[o].obj[t].match(e)&&r.push(this.rows[o]);return r},o.default.Table.prototype.getColumn=function(e){var t=[];if("string"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var n=0;n<this.rows.length;n++)t.push(this.rows[n].arr[e]);return t},o.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},o.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},o.default.Table.prototype.getColumnCount=function(){return this.columns.length},o.default.Table.prototype.getRowCount=function(){return this.rows.length},o.default.Table.prototype.removeTokens=function(e,t){for(var r=[],n=0;n<e.length;n++)r.push(e.charAt(n).replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"));var o=new RegExp(r.join("|"),"g");if(void 0===t)for(var a=0;a<this.columns.length;a++)for(var i=0;i<this.rows.length;i++){var s=this.rows[i].arr[a];s=s.replace(o,""),this.rows[i].arr[a]=s,this.rows[i].obj[this.columns[a]]=s}else if("string"==typeof t)for(var l=0;l<this.rows.length;l++){var p=this.rows[l].obj[t];p=p.replace(o,""),this.rows[l].obj[t]=p;var c=this.columns.indexOf(t);this.rows[l].arr[c]=p}else for(var u=0;u<this.rows.length;u++){var d=this.rows[u].arr[t];d=d.replace(o,""),this.rows[u].arr[t]=d,this.rows[u].obj[this.columns[t]]=d}},o.default.Table.prototype.trim=function(e){var t=new RegExp(" ","g");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr[r];o=o.replace(t,""),this.rows[n].arr[r]=o,this.rows[n].obj[this.columns[r]]=o}else if("string"==typeof e)for(var a=0;a<this.rows.length;a++){var i=this.rows[a].obj[e];i=i.replace(t,""),this.rows[a].obj[e]=i;var s=this.columns.indexOf(e);this.rows[a].arr[s]=i}else for(var l=0;l<this.rows.length;l++){var p=this.rows[l].arr[e];p=p.replace(t,""),this.rows[l].arr[e]=p,this.rows[l].obj[this.columns[e]]=p}},o.default.Table.prototype.removeColumn=function(e){var t,r;"string"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var n=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(n);for(var o=0;o<this.rows.length;o++){var a=this.rows[o].arr,i=a.splice(r+1,a.length);a.pop(),this.rows[o].arr=a.concat(i),delete this.rows[o].obj[t]}},o.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},o.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},o.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},o.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},o.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},o.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},o.default.Table.prototype.getObject=function(e){for(var t,r={},n=0;n<this.rows.length;n++)if(t=this.rows[n].obj,"string"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named "'.concat(e,'"'));r[t[e]]=t}else r[n]=this.rows[n].obj;return r},o.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var a=o.default;r.default=a},{"../core/main":289,"core-js/modules/es.array.concat":167,"core-js/modules/es.array.index-of":175,"core-js/modules/es.array.join":177,"core-js/modules/es.array.splice":182,"core-js/modules/es.regexp.constructor":198,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.regexp.to-string":200,"core-js/modules/es.string.match":205,"core-js/modules/es.string.replace":207,"core-js/modules/es.string.trim":211}],317:[function(e,t,r){e("core-js/modules/es.array.index-of"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.split"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n};o.default.TableRow=function(e,t){var r=[],n={};e&&(t=t||",",r=e.split(t));for(var o=0;o<r.length;o++){var a=o,i=r[o];n[a]=i}this.arr=r,this.obj=n,this.table=null},o.default.TableRow.prototype.set=function(e,t){if("string"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named "'.concat(e,'"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error("Column #".concat(e," is out of the range of this table"));this.arr[e]=t;var n=this.table.columns[e];this.obj[n]=t}},o.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},o.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},o.default.TableRow.prototype.get=function(e){return"string"==typeof e?this.obj[e]:this.arr[e]},o.default.TableRow.prototype.getNum=function(e){var t;if("NaN"===(t="string"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw"Error: ".concat(this.obj[e]," is NaN (Not a Number)");return t},o.default.TableRow.prototype.getString=function(e){return"string"==typeof e?this.obj[e].toString():this.arr[e].toString()};var a=o.default;r.default=a},{"../core/main":289,"core-js/modules/es.array.index-of":175,"core-js/modules/es.object.to-string":195,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.regexp.to-string":200,"core-js/modules/es.string.split":209}],318:[function(e,t,r){e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.number.constructor"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.iterator"),e("core-js/modules/es.string.replace"),e("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,s=(n=e("../core/main"))&&n.__esModule?n:{default:n};function o(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,"doc");this.DOM=t.createElement("root")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,n=document.implementation.createDocument(null,"default").createElement(e);n.innerHTML=t;for(var o=0;o<r.length;o++)n.setAttribute(r[o].nodeName,r.nodeValue);this.DOM=n},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return o(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if("string"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,n=void 0;try{for(var o,a=this.DOM.children[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;if(i.tagName===e)return new s.default.XML(i)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if("string"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;e.push(i.nodeName)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,n=!1,o=void 0;try{for(var a,i=this.DOM.attributes[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var s=a.value;t[s.nodeName]=s.nodeValue}}catch(e){n=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw o}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},n=!0,o=!1,a=void 0;try{for(var i,s=this.DOM.attributes[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value;r[l.nodeName]=l.nodeValue}}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},n=!0,o=!1,a=void 0;try{for(var i,s=this.DOM.attributes[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value;r[l.nodeName]=l.nodeValue}}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\s\s+/g,",")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var a=s.default;r.default=a},{"../core/main":289,"core-js/modules/es.array.iterator":176,"core-js/modules/es.number.constructor":188,"core-js/modules/es.object.to-string":195,"core-js/modules/es.regexp.exec":199,"core-js/modules/es.string.iterator":204,"core-js/modules/es.string.replace":207,"core-js/modules/es.symbol":214,"core-js/modules/es.symbol.description":212,"core-js/modules/es.symbol.iterator":213,"core-js/modules/web.dom-collections.iterator":247}],319:[function(e,t,r){e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.array.map"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.math.hypot"),e("core-js/modules/es.number.constructor"),e("core-js/modules/es.string.includes"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,s=(n=e("../core/main"))&&n.__esModule?n:{default:n};function o(e,t,r){if("function"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var n=arguments.length,o=[],a=0,i=0;i<n;i++){var s=arguments[i];if((s=+s)===1/0||s===-1/0)return 1/0;a<(s=Math.abs(s))&&(a=s),o[i]=s}0===a&&(a=1);for(var l=0,p=0,c=0;c<n;c++){var u=o[c]/a,d=u*u-p,h=l+d;p=h-l-d,l=h}return Math.sqrt(l)*a}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters("constrain",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters("dist",t),4===t.length?o(t[2]-t[0],t[3]-t[1]):6===t.length?o(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters("lerp",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters("mag",arguments),o(e,t)},s.default.prototype.map=function(e,t,r,n,o,a){s.default._validateParameters("map",arguments);var i=(e-t)/(r-t)*(o-n)+n;return a?n<o?this.constrain(i,n,o):this.constrain(i,o,n):i},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters("norm",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){if(!t)return Math.round(e);var r=Math.pow(10,t);return Math.round(e*r)/r},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters("fract",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(".")||String(r).includes("e"))return r<1?Math.abs(t-r):0;var n=String(r);return n=Number("0"+n.slice(n.indexOf("."))),Math.abs(t-n)};var a=s.default;r.default=a},{"../core/main":289,"core-js/modules/es.array.includes":174,"core-js/modules/es.array.index-of":175,"core-js/modules/es.array.map":179,"core-js/modules/es.array.slice":180,"core-js/modules/es.math.hypot":186,"core-js/modules/es.number.constructor":188,"core-js/modules/es.string.includes":203}],320:[function(e,t,r){e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.reflect.construct"),e("core-js/modules/es.regexp.to-string"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n};function a(e,t,r){return(a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&i(o,r.prototype),o}).apply(null,arguments)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}o.default.prototype.createVector=function(e,t,r){return this instanceof o.default?a(o.default.Vector,[this._fromRadians.bind(this),this._toRadians.bind(this)].concat(Array.prototype.slice.call(arguments))):new o.default.Vector(e,t,r)};var s=o.default;r.default=s},{"../core/main":289,"core-js/modules/es.array.concat":167,"core-js/modules/es.array.slice":180,"core-js/modules/es.object.to-string":195,"core-js/modules/es.reflect.construct":197,"core-js/modules/es.regexp.to-string":200}],321:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n};function b(e){return.5*(1-Math.cos(e*Math.PI))}var x,w=4095,_=4,S=.5;o.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==x){x=new Array(4096);for(var n=0;n<4096;n++)x[n]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var o,a,i,s,l,p=Math.floor(e),c=Math.floor(t),u=Math.floor(r),d=e-p,h=t-c,f=r-u,m=0,y=.5,g=0;g<_;g++){var v=p+(c<<4)+(u<<8);o=b(d),a=b(h),i=x[v&w],i+=o*(x[v+1&w]-i),s=x[v+16&w],i+=a*((s+=o*(x[v+16+1&w]-s))-i),s=x[(v+=256)&w],s+=o*(x[v+1&w]-s),l=x[v+16&w],s+=a*((l+=o*(x[v+16+1&w]-l))-s),m+=(i+=b(f)*(s-i))*y,y*=S,p<<=1,c<<=1,u<<=1,1<=(d*=2)&&(p++,d--),1<=(h*=2)&&(c++,h--),1<=(f*=2)&&(u++,f--)}return m},o.default.prototype.noiseDetail=function(e,t){0<e&&(_=e),0<t&&(S=t)},o.default.prototype.noiseSeed=function(e){var t,r,n,o=(n=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*n:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%n)/n}});o.setSeed(e),x=new Array(4096);for(var a=0;a<4096;a++)x[a]=o.rand()};var a=o.default;r.default=a},{"../core/main":289}],322:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.every"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.array.some"),e("core-js/modules/es.math.sign"),e("core-js/modules/es.number.constructor"),e("core-js/modules/es.number.is-finite"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.sub"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,l=(n=e("../core/main"))&&n.__esModule?n:{default:n},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("../core/constants"));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r,n,o){var a,i,s;s="[object Function]"==={}.toString.call(e)?(this.isPInst=!0,this._fromRadians=e,this._toRadians=t,a=r||0,i=n||0,o||0):(a=e||0,i=t||0,r||0),this.x=a,this.y=i,this.z=s},l.default.Vector.prototype.toString=function(){return"p5.Vector Object : [".concat(this.x,", ").concat(this.y,", ").concat(this.z,"]")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.isPInst?new l.default.Vector(this._fromRadians,this._toRadians,this.x,this.y,this.z):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function p(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function c(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var n=parseFloat(e.x),o=parseFloat(e.y),a=parseFloat(e.z);return c.call(this,n,o,a)}}else if(e instanceof Array){if(e.every(function(e){return Number.isFinite(e)})){if(2===e.length)return p.call(this,e[0],e[1]);if(3===e.length)return c.call(this,e[0],e[1],e[2])}}else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var i=Array.prototype.slice.call(arguments);if(i.every(function(e){return Number.isFinite(e)})&&2===i.length)return p.call(this,i[0],i[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);if(s.every(function(e){return Number.isFinite(e)})&&3===s.length)return c.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e,t,r){if(e instanceof l.default.Vector)return Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)&&"number"==typeof e.x&&"number"==typeof e.y&&"number"==typeof e.z?(this.x*=e.x,this.y*=e.y,this.z*=e.z):console.warn("p5.Vector.prototype.mult:","x contains components that are either undefined or not finite numbers"),this;if(e instanceof Array)return e.every(function(e){return Number.isFinite(e)})&&e.every(function(e){return"number"==typeof e})?1===e.length?(this.x*=e[0],this.y*=e[0],this.z*=e[0]):2===e.length?(this.x*=e[0],this.y*=e[1]):3===e.length&&(this.x*=e[0],this.y*=e[1],this.z*=e[2]):console.warn("p5.Vector.prototype.mult:","x contains elements that are either undefined or not finite numbers"),this;var n=Array.prototype.slice.call(arguments);return n.every(function(e){return Number.isFinite(e)})&&n.every(function(e){return"number"==typeof e})?(1===arguments.length&&(this.x*=e,this.y*=e,this.z*=e),2===arguments.length&&(this.x*=e,this.y*=t),3===arguments.length&&(this.x*=e,this.y*=t,this.z*=r)):console.warn("p5.Vector.prototype.mult:","x, y, or z arguments are either undefined or not a finite number"),this},l.default.Vector.prototype.div=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)&&"number"==typeof e.x&&"number"==typeof e.y&&"number"==typeof e.z){if(0===e.x||0===e.y||0===e.z)return console.warn("p5.Vector.prototype.div:","divide by 0"),this;this.x/=e.x,this.y/=e.y,this.z/=e.z}else console.warn("p5.Vector.prototype.div:","x contains components that are either undefined or not finite numbers");return this}if(e instanceof Array){if(e.every(function(e){return Number.isFinite(e)})&&e.every(function(e){return"number"==typeof e})){if(e.some(function(e){return 0===e}))return console.warn("p5.Vector.prototype.div:","divide by 0"),this;1===e.length?(this.x/=e[0],this.y/=e[0],this.z/=e[0]):2===e.length?(this.x/=e[0],this.y/=e[1]):3===e.length&&(this.x/=e[0],this.y/=e[1],this.z/=e[2])}else console.warn("p5.Vector.prototype.div:","x contains components that are either undefined or not finite numbers");return this}var n=Array.prototype.slice.call(arguments);if(n.every(function(e){return Number.isFinite(e)})&&n.every(function(e){return"number"==typeof e})){if(n.some(function(e){return 0===e}))return console.warn("p5.Vector.prototype.div:","divide by 0"),this;1===arguments.length&&(this.x/=e,this.y/=e,this.z/=e),2===arguments.length&&(this.x/=e,this.y/=t),3===arguments.length&&(this.x/=e,this.y/=t,this.z/=r)}else console.warn("p5.Vector.prototype.div:","x, y, or z arguments are either undefined or not a finite number");return this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,n=this.x*e.y-this.y*e.x;return this.isPInst?new l.default.Vector(this._fromRadians,this._toRadians,t,r,n):new l.default.Vector(t,r,n)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.isPInst?this._fromRadians(e):e},l.default.Vector.prototype.setHeading=function(e){var t=this.mag();return this.x=t*Math.cos(e),this.y=t*Math.sin(e),this},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.isPInst&&(t=this._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.isPInst&&(t=this._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,n){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*n||0,this.y+=(t-this.y)*n||0,this.z+=(r-this.z)*n||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var n,o,a;return a=e instanceof l.default.Vector?(n=e.x||0,o=e.y||0,e.z||0):e instanceof Array?(n=e[0]||0,o=e[1]||0,e[2]||0):(n=e||0,o=t||0,r||0),this.x===n&&this.y===o&&this.z===a},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var n=Math.cos(t),o=Math.sin(t),a=Math.cos(e),i=Math.sin(e);return new l.default.Vector(r*i*o,-r*a,r*i*n)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*a.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*a.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),n=r*Math.cos(e),o=r*Math.sin(e);return new l.default.Vector(n,o,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):(r=e.copy(),3===arguments.length&&l.default._friendlyError("The target parameter is undefined, it should be of type p5.Vector","p5.Vector.add")),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):(r=e.copy(),3===arguments.length&&l.default._friendlyError("The target parameter is undefined, it should be of type p5.Vector","p5.Vector.sub")),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):(r=e.copy(),3===arguments.length&&l.default._friendlyError("The target parameter is undefined, it should be of type p5.Vector","p5.Vector.mult")),r.mult(t),r},l.default.Vector.rotate=function(e,t,r){return 2===arguments.length?r=e.copy():(r instanceof l.default.Vector||l.default._friendlyError("The target parameter should be of type p5.Vector","p5.Vector.rotate"),r.set(e)),r.rotate(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):(r=e.copy(),3===arguments.length&&l.default._friendlyError("The target parameter is undefined, it should be of type p5.Vector","p5.Vector.div")),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,n){return n?n.set(e):(n=e.copy(),4===arguments.length&&l.default._friendlyError("The target parameter is undefined, it should be of type p5.Vector","p5.Vector.lerp")),n.lerp(t,r),n},l.default.Vector.mag=function(e){var t=e.x,r=e.y,n=e.z,o=t*t+r*r+n*n;return Math.sqrt(o)},l.default.Vector.normalize=function(e,t){return arguments.length<2?t=e.copy():(t instanceof l.default.Vector||l.default._friendlyError("The target parameter should be of type p5.Vector","p5.Vector.normalize"),t.set(e)),t.normalize()};var o=l.default.Vector;r.default=o},{"../core/constants":277,"../core/main":289,"core-js/modules/es.array.concat":167,"core-js/modules/es.array.every":168,"core-js/modules/es.array.slice":180,"core-js/modules/es.array.some":181,"core-js/modules/es.math.sign":187,"core-js/modules/es.number.constructor":188,"core-js/modules/es.number.is-finite":189,"core-js/modules/es.object.to-string":195,"core-js/modules/es.regexp.to-string":200,"core-js/modules/es.string.sub":210}],323:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n};var a="_lcg_random_state",i=4294967296,s=0;o.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%i,this[e]/i},o.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*i:t)>>>0},o.default.prototype.randomSeed=function(e){this._lcgSetSeed(a,e),this._gaussian_previous=!1},o.default.prototype.random=function(e,t){var r;if(o.default._validateParameters("random",arguments),r=null!=this[a]?this._lcg(a):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var n=e;e=t,t=n}return r*(t-e)+e},o.default.prototype.randomGaussian=function(e){var t,r,n,o,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;if(this._gaussian_previous)t=s,this._gaussian_previous=!1;else{for(;1<=(o=(r=this.random(2)-1)*r+(n=this.random(2)-1)*n););t=r*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return t*a+(e||0)};var l=o.default;r.default=l},{"../core/main":289}],324:[function(e,t,r){function i(e){return(i="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(e("../core/constants"));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}o.default.prototype._angleMode=a.RADIANS,o.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},o.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},o.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},o.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},o.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},o.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},o.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},o.default.prototype.degrees=function(e){return e*a.RAD_TO_DEG},o.default.prototype.radians=function(e){return e*a.DEG_TO_RAD},o.default.prototype.angleMode=function(e){e!==a.DEGREES&&e!==a.RADIANS||(this._angleMode=e)},o.default.prototype._toRadians=function(e){return this._angleMode===a.DEGREES?e*a.DEG_TO_RAD:e},o.default.prototype._toDegrees=function(e){return this._angleMode===a.RADIANS?e*a.RAD_TO_DEG:e},o.default.prototype._fromRadians=function(e){return this._angleMode===a.DEGREES?e*a.RAD_TO_DEG:e};var l=o.default;r.default=l},{"../core/constants":277,"../core/main":289}],325:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=e("../core/main"))&&n.__esModule?n:{default:n};o.default.prototype.textAlign=function(e,t){var r;return o.default._validateParameters("textAlign",arguments),(r=this._renderer).textAlign.apply(r,arguments)},o.default.prototype.textLeading=function(e){var t;return o.default._validateParameters("textLeading",arguments),(t=this._renderer).textLeading.apply(t,arguments)},o.default.prototype.textSize=function(e){var t;return o.default._validateParameters("textSize",arguments),(t=this._renderer).textSize.apply(t,arguments)},o.default.prototype.textStyle=function(e){var t;return o.default._validateParameters("textStyle",arguments),(t=this._renderer).textStyle.apply(t,arguments)},o.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r[0]+="",o.default._validateParameters("textWidth",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},o.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.default._validateParameters("textAscent",t),this._renderer.textAscent()},o.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.default._validateParameters("textDescent",t),this._renderer.textDescent()},o.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()},o.de
@jesi-rgb
Copy link
Author

saveGif is coming to p5 🌸 !

This is the minified, first and extremely buggy version of the p5.js library with the saveGif functionality implemented.

Download and installation

Download this file to the folder in which you usually develop your sketches and make sure to import it properly from the index.html file!
<script src=/path/to/sketch/p5.save-gif.js/>

How to use

The saveGif function admits at most 3 arguments for now:

saveGif(filename, duration, delay)
  • filename for the name of the file downloaded to your computer
  • duration duration in seconds that you wish to download from your animation
  • delay delay in seconds that you wish to wait before recording the animation. The animation will nevertheless have a duration of what you specified on the duration argument.

As an example, I like to use it within the mouse/keyboard events:

 function mousePressed() {
   if (mouseButton === RIGHT) {
     saveGif('mySketch', 3, 1);
   }
 }

This piece of code will wait for 1 second and then encode 3 seconds worth of frames (180 frames at 60fps).

Final note

⚠️ There will be a gazillion bugs and things all over the place, but your help and feedback will surely help on smashing them! Thanks so much for your time and keep code-creating! 🌸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment